resolver-egretimp-plus 0.1.68 → 0.1.70

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/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_constants_index_mjs_c9f35684__ from"element-plus/es/constants/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_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_utils_index_mjs_0bb4f88e__ from"element-plus/es/utils/index.mjs";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__(70846),_rules_rulesDriver__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(9318),_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()}),100)}),{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){if((0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.Ts)(t,"parent",e),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.Ts)(t,"dynamicMapComp",dynamicMapComp),null!=t&&t.dynamicHireRelat_bak&&"operate"!==props.mode){var n;(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.Ts)(t,"dynamicHireRelat",_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7___default()(n="".concat(t.dynamicHireRelat_bak,"__@__")).call(n,props.mode,"__"))}else{var r,o,i=null!=e&&e.dynamicHireRelat?_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7___default()(r=_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7___default()(o="".concat(null==e?void 0:e.dynamicHireRelat)).call(o,(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.$3)(t,"rowIndex")?"[".concat(t.rowIndex,"]"):"","->")).call(r,t.metaCode||""):t.metaCode;(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.Ts)(t,"dynamicHireRelat",i),t.dynamicHireRelat_bak=i}return 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,o,i={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(i,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===(o=props.config)||void 0===o?void 0:o.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,o,i,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===(o=props.config)||void 0===o?void 0:o.metaNameZh:null===(i=props.config)||void 0===i?void 0:i.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:()=>i,Wb:()=>o,_Q:()=>p,aZ:()=>s,dF:()=>c,dL:()=>a,xx:()=>r});var r="/sa-lcp/api/v1/pageConfig/queryPageConfigData",o="/sa-lcp/login",i="/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"},35169:(e,t,n)=>{n.d(t,{dW:()=>B,Wg:()=>F});var r,o,i=n(7252),s=n(53811),a=n(37891),l=n(34963),c=n(39653),u=n(56213),p=n(49859),f=(n(44114),n(94870)),d=n.n(f),h=n(56255),m=n.n(h),y=n(61240),g=n.n(y),v=n(8628),b=n.n(v),_=n(71426),E=n.n(_),x=n(26327),w=n.n(x),S=n(385),T=n.n(S),A=(n(17427),n(16280),n(76918),n(23288),n(26099),n(27495),n(38781),n(25440),n(86226)),P=n.n(A),O=n(11393),C=n.n(O),k=function(){function e(t,n){var r=this;(0,c.A)(this,e),(0,p.A)(this,"context",null),(0,p.A)(this,"msgSdkInstance",null),(0,p.A)(this,"createComponentUUID",(function(e){var t,n="xxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return"".concat(("x"===e?t:3&t|8).toString(16))}));return C()(t="".concat(e,"_")).call(t,n,"_from_message")})),(0,p.A)(this,"getContext",(function(){return r.context})),n&&(this.context=(0,s.A)({subComponents:[]},n)),this.msgSdkInstance=t}return(0,u.A)(e,[{key:"insertComponent",value:function(e,t){var n=this;try{var i;P()(e).call(e,(function(e){var t,r,o=e.getContext();null===(t=o.props)||void 0===t||null===(t=t.customEvents)||void 0===t||P()(t).call(t,(function(e){n.msgSdkInstance.registerComponentCustomEvents((0,s.A)({id:o.id},e)),delete e.func})),null===(r=n.context.subComponents)||void 0===r||r.push(e.getContext())})),null===(i=this.msgSdkInstance)||void 0===i||i.postMessage({type:r.callMethod,methodName:o.insertComponent,methodConfig:t,data:this.context})}catch(e){console.error(e)}}},{key:"changeLayoutMaskStatus",value:function(e){var t;null===(t=this.msgSdkInstance)||void 0===t||t.postMessage({type:r.callMethod,methodName:o.changeLayoutMaskStatus,data:e})}},{key:"changeLayoutAreaStatus",value:function(e){var t;null===(t=this.msgSdkInstance)||void 0===t||t.postMessage({type:r.callMethod,methodName:o.changeLayoutAreaStatus,data:e})}},{key:"createComponent",value:function(t){return t.isContract=!0,t.isCreateByMessage=!0,t.id=t.id?t.id:this.createComponentUUID(t.type),new e(this.msgSdkInstance,t)}}])}(),I="__SEEYON_UDC__";!function(e){e.callMethod="callMethod",e.message="message",e.callEvent="callEvent"}(r||(r={})),function(e){e.ready="ready",e.insertComponent="insertComponent",e.changeLayoutMaskStatus="changeLayoutMaskStatus",e.changeLayoutAreaStatus="changeLayoutAreaStatus"}(o||(o={}));var N=new(function(){return(0,u.A)((function e(){var t=this;(0,c.A)(this,e),(0,p.A)(this,"_identifying",I),(0,p.A)(this,"_nameSpaceId",void 0),(0,p.A)(this,"_is_ready",!1),(0,p.A)(this,"_customEvents",{}),(0,p.A)(this,"_eventListener",(function(e,n){try{var r=e.data;if(!t._msgValidator(r))return;t._readyCallBack(r,n),t._callEvent(r)}catch(e){console.error(e)}})),(0,p.A)(this,"_eventListenerHandler",(function(){})),(0,p.A)(this,"contractComponent",(function(e,n){return new k(t,{type:e,id:null==n?void 0:n.id,isContract:!0})})),(0,p.A)(this,"createComponent",(function(e){return new k(t).createComponent(e)})),(0,p.A)(this,"registerComponentCustomEvents",(function(e){var n=e.id,r=e.type,o=e.func;t._customEvents[n]||(t._customEvents[n]={}),t._customEvents[n][r]=o})),(0,p.A)(this,"_customization",{CMI:{insertBtnForToolbar:function(e){var n=e.position,r=e.btns,o=e.id,i=t.contractComponent("UdcToolBar",{id:o}),s=[];null==r||P()(r).call(r,(function(e){s.push(t.createComponent({type:"UdcButton",props:e}))})),i.insertComponent(s,{position:n})},changeLayoutMaskStatus:function(e){var n=e.status,r=e.bgColor;t.contractComponent("UdcLayoutMask").changeLayoutMaskStatus({status:n,bgColor:r})},changeLayoutAreaStatus:function(e){var n=e.hiddenArea;t.contractComponent("UdcLayoutArea").changeLayoutAreaStatus({hiddenArea:n})}}}),(0,p.A)(this,"getCustomApi",(function(){var e=D.baseInfo.tenant||"CMI",n=t._customization[e];if(n)return n;console.error(e?"该tenant未定制过API":"缺少tenant信息")})),this._nameSpaceId=this._uuid()}),[{key:"_uuid",value:function(){var e="xxx_xxxx_xxxx_yxxx_xxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return"".concat(("x"===e?t:3&t|8).toString(16))}));return"x".concat(e)}},{key:"_msgValidator",value:function(e){return!("[object Object]"!==Object.prototype.toString.call(e)||e._identifying!==I||!r[e.type]||e._nameSpaceId!==this._nameSpaceId)}},{key:"_readyCallBack",value:function(e,t){var n,o,i;null===(n=e.data)||void 0===n||n.signatureMethods,null===(o=e.data)||void 0===o||o.version,e.type!==r.message||"ready"!==(null===(i=e.data)||void 0===i?void 0:i.status)||this._is_ready||(this._is_ready=!0,t&&t(this,{parentRuntimeContext:null,runtimeContext:null}))}},{key:"_registerEventListener",value:function(e){var t=this;this._eventListenerHandler=function(n){t._eventListener(n,e)},window.addEventListener("message",this._eventListenerHandler)}},{key:"_callEvent",value:function(e){var t=this;if(e.type===r.callEvent){var n=e.callEvents;null==n||P()(n).call(n,(function(e){var n,r,o=e.id,i=e.type;null===(n=t._customEvents[o])||void 0===n||null===(r=n[i])||void 0===r||r.call(n)}))}}},{key:"destory",value:function(){window.removeEventListener("message",this._eventListenerHandler)}},{key:"postMessage",value:function(e){(e.type==r.callMethod&&e.methodName==o.ready||this._is_ready)&&window.parent.postMessage((0,s.A)((0,s.A)({},e),{},{_identifying:this._identifying,_nameSpaceId:this._nameSpaceId}),"*")}},{key:"ready",value:function(e){this.postMessage({type:r.callMethod,methodName:o.ready}),this._registerEventListener(e)}}])}()),j={getUdcAppInfo:function(e){throw Error("getUdcAppInfo ONLY work under UDC app")},getUdcPageInParams:function(e){throw Error("getUdcPageInParams ONLY work under UDC app")},getUdcPageInfo:function(e){throw Error("getUdcPageInfo ONLY work under UDC app")},getUdcPageRuntimeVariable:function(e){throw Error("getUdcPageRuntimeVariable ONLY work under UDC app")},getUdcPageSignature:function(e){throw Error("getUdcPageSignature ONLY work under UDC app")},getUdcPageVariables:function(e,t){throw Error("getUdcPageVariables ONLY work under UDC app")},setUdcPageRuntimeVariable:function(e,t){throw Error("setUdcPageRuntimeVariable ONLY work under UDC app")},setUdcPageVariables:function(e,t,n){throw Error("setUdcPageVariables ONLY work under UDC app")},getUdcComponentInfo:function(e){throw Error("getUdcComponentInfo ONLY work under UDC app")},getUdcComponentSignature:function(e){throw Error("getUdcComponentSignature ONLY work under UDC app")},getUdcComponentValue:function(e,t){throw Error("getUdcComponentValue ONLY work under UDC app")},getUdcComponentViewState:function(e,t){throw Error("getUdcComponentViewState ONLY work under UDC app")},setUdcComponentValue:function(e,t,n){throw Error("setUdcComponentValue ONLY work under UDC app")},setUdcComponentViewState:function(e,t,n){throw Error("setUdcComponentViewState ONLY work under UDC app")},getUdcParentComponentInfo:function(e){throw Error("getUdcParentComponentInfo ONLY work under UDC app")},getUdcDataContainerComponentInfo:function(e){throw Error("getUdcDataContainerComponentInfo ONLY work under UDC app")},getComponentValueFromUiModelNode:function(e,t){throw Error("getComponentValueFromUiModelNode ONLY work under UDC app")},setComponentValueFromUiModelNode:function(e,t,n,r){throw Error("setComponentValueFromUiModelNode ONLY work under UDC app")},getUdcSubComponentViewState:function(e){throw Error("getUdcSubComponentViewState ONLY work under UDC app")},setUdcSubComponentViewState:function(e,t){throw Error("setUdcSubComponentViewState ONLY work under UDC app")},getUdcDatasouceMetaInfo:function(e,t){throw Error("getUdcDatasouceMetaInfo ONLY work under UDC app")},queryUdcDatasourceDetail:function(e,t){throw Error("queryUdcDatasourceDetail ONLY work under UDC app")},queryUdcDatasourceList:function(e,t){throw Error("queryUdcDatasourceList ONLY work under UDC app")},queryUdcDatasourceListSummary:function(e,t){throw Error("queryUdcDatasourceListSummary ONLY work under UDC app")},saveUdcDatasourceData:function(e,t){throw Error("saveUdcDatasourceData ONLY work under UDC app")},saveUdcDatasourceListData:function(e,t){throw Error("saveUdcDatasourceListData ONLY work under UDC app")},deleteAndSaveUdcDatasourceData:function(e,t,n){throw Error("deleteAndSaveUdcDatasourceData ONLY work under UDC app")},createUdcDatasourceData:function(e,t){throw Error("createUdcDatasourceData ONLY work under UDC app")},createUdcDatasourceDataFromSelectRows:function(e,t){throw Error("createUdcDatasourceDataFromSelectRows ONLY work under UDC app")},deleteUdcDatasourceData:function(e,t,n){throw Error("deleteUdcDatasourceData ONLY work under UDC app")},getUdcDatasourceData:function(e,t){throw Error("getUdcDatasourceData ONLY work under UDC app")},execParseUdcExpression:function(e,t){throw Error("parseUdcExpression ONLY work under UDC app")},callUdcPresetFunc:function(e,t,n){throw Error("execPresetFunctor ONLY work under UDC app")},callUdcPresetEventAction:function(e,t){throw Error("callUdcPresetEventAction ONLY work under UDC app")},i18n:function(e,t){throw Error("i18n ONLY work under UDC app")},getUdcComponent:function(e,t){throw Error("getUdcComponent ONLY work under UDC app")},getUdcProfile:function(e,t,n){throw Error("getUdcProfile ONLY work under UDC app")},getApiUrlByUdcAppInfo:function(e,t){throw Error("getApiUrlByAppInfo ONLY work under UDC app")},transformCtpEnumCode:function(e,t){throw Error("getApiUrlByAppInfo ONLY work under UDC app")},getUdcSdkForIframe:function(){return N},baseInfo:{tenant:null}},D=j;window.__UDC_OPEN_SDK__||(window.__UDC_OPEN_SDK__={default:j});var M=function(e,t){var n=function(e){var t=window.__UDC_OPEN_SDK__.default;return e in window.__UDC_OPEN_SDK__&&(t=window.__UDC_OPEN_SDK__[e]),t}(e);n.baseInfo=t},L="DRAFT_HANDLE",R="GET_FORM_DATA",B=null,q=function(){return(0,u.A)((function e(t,n,r,o){(0,c.A)(this,e),(0,p.A)(this,"params",{}),(0,p.A)(this,"bpmConfigs",{}),(0,p.A)(this,"eventData",null),(0,p.A)(this,"postOptions",null),(0,p.A)(this,"sdkInstance",null),(0,p.A)(this,"postMessageData",null),(0,p.A)(this,"actions",{}),(0,p.A)(this,"nativeMethods",{}),(0,p.A)(this,"saveResponse",null),this.postMessageData=t,this.actions=n,this.bpmConfigs=r||{},this.params=o||{},this.setNativeMethods(),this.init()}),[{key:"init",value:function(){var e;window.parent!==window&&window.parent.postMessage({hasListener:!0},"*"),window.addEventListener("message",d()(e=this.messageListener).call(e,this))}},{key:"setNativeMethods",value:function(){var e=this,t=this.params,n=t.validate,r=t.dynamicMapComp,o=t.bpmSubmitBtn,i=t.toExecuteLoadServices,s=this.bpmConfigs,c=s.getDetailReq,u=s.customValidate,p=s.saveValidate,f=function(){var t=(0,l.A)((0,a.A)().mark((function t(n){var i,s,c,u;return(0,a.A)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!p||"function"!=typeof p){t.next=6;break}return t.next=3,p();case 3:if(t.sent){t.next=6;break}return t.abrupt("return");case 6:if(!(i=r[o])){t.next=12;break}return s=function(t){return function(){var r=(0,l.A)((0,a.A)().mark((function r(o){var i;return(0,a.A)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=e.bpmConfigs.saveAfter,e.saveResponse=o,r.prev=2,r.next=5,null==i?void 0:i(o,n);case 5:r.next=10;break;case 7:r.prev=7,r.t0=r.catch(2),console.error("saveAfter error, error:",r.t0);case 10:m()((function(){null==t||t(o)}),0);case 11:case"end":return r.stop()}}),r,null,[[2,7]])})));return function(e){return r.apply(this,arguments)}}()},t.abrupt("return",new(g())((function(e){var t;null==i||null===(t=i.vm)||void 0===t||t.click({afterRequestService:s((function(t){e(t)}))})})));case 12:null===(c=messageInstance)||void 0===c||null===(u=c.warning)||void 0===u||u.call(c,"no set bpmSubmitBtn, or bpmSubmitBtn is invalid, at preset, bpmSubmitBtn:",props.bpmSubmitBtn);case 13:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),d=function(){var e=(0,l.A)((0,a.A)().mark((function e(t){return(0,a.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new(g())((function(e){n((function(t){e(t)}))}));case 2:if(e.sent){e.next=5;break}return e.abrupt("return",!1);case 5:if(!u||"function"!=typeof u){e.next=7;break}return e.abrupt("return",u(t));case 7:return e.abrupt("return",!0);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();this.nativeMethods={nativeValidate:n,customValidate:u,validate:d,toSave:f,getDetail:function(){var t=null==c?void 0:c(e.saveResponse);i(!0,!0,{params:t})}}}},{key:"messageListener",value:function(e){console.log("message event===:",e);var t=e.data||{};if(null!=t&&t.isFromBPM){var n=this.postOptions;this.postOptions=null,this.eventData=t,this.handleMessage&&this.handleMessage(e,n)}}},{key:"handleMessage",value:(n=(0,l.A)((0,a.A)().mark((function e(t,n){var r,o,i,s,l,c,u,p,f,d,h,m,y,g,v;return(0,a.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=this.eventData||{},i=o.messageType,s=o.submitType,l=null==o||null===(r=o.bpmInfo)||void 0===r?void 0:r.actionType,console.log("messageType==:",i),console.log("submitType==:",s),console.log("actionType==:",l),R!==i){e.next=24;break}if((p=null===(c=this.actions)||void 0===c||null===(c=c[s])||void 0===c?void 0:c.formAction)||(p=this.getDefaultAction(o)),!p){e.next=15;break}return e.next=12,null===(f=p)||void 0===f?void 0:f({eventData:this.eventData,nativeMethods:this.nativeMethods});case 12:if(!1!==e.sent){e.next=15;break}return e.abrupt("return");case 15:if((d=null===(u=this.actions)||void 0===u||null===(u=u[s])||void 0===u?void 0:u.postMessageData)||(d=this.postMessageData),"function"!=typeof d){e.next=21;break}return e.next=20,d({eventData:this.eventData});case 20:d=e.sent;case 21:this.postMessage(d),e.next=34;break;case 24:if("PROCESS_ACTION_SUCCESS"!==i){e.next=34;break}if(y=!0,y=!b()(h=["PROCESS_SHOW","BACK",L]).call(h,s),(g=null===(m=this.actions)||void 0===m||null===(m=m[s])||void 0===m?void 0:m.successAction)||(g=this.getDefaultAction(o)),!g){e.next=33;break}return e.next=32,null===(v=g)||void 0===v?void 0:v({eventData:this.eventData,originCloseFlag:y,nativeMethods:this.nativeMethods});case 32:y=e.sent;case 33:this.postMessage(null,{closeFlag:!!y});case 34:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"setSaveMessage",value:function(){this.eventData={submitType:"DRAFT_HANDLE",messageType:"GET_FORM_DATA",url:"*"}}},{key:"postMessage",value:(t=(0,l.A)((0,a.A)().mark((function e(){var t,n,r,o,i,l,c,u,p,f=arguments;return(0,a.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=f.length>0&&void 0!==f[0]?f[0]:{},n=f.length>1?f[1]:void 0,console.log("postmessage formData ===:",t,n),this.postOptions=n,(null==n?void 0:n.closeFlag)?(console.log("走进判断关闭页面===="),window.parent!==window&&window.parent.postMessage({messageType:"CLOSE_WINDOW"},"*")):(i=!b()(r=["BACK"]).call(r,null===(o=this.eventData)||void 0===o?void 0:o.submitType),console.log("eventData==:",this.eventData),window.parent!==window&&(p={success:!0,submitType:null===(l=this.eventData)||void 0===l?void 0:l.submitType,messageType:null===(c=this.eventData)||void 0===c?void 0:c.messageType,actionInfo:{preventClose:i},formData:(0,s.A)({},t)},console.log("url==:",this.eventData.url),console.log("postData==:",p),window.parent.postMessage(p,null===(u=this.eventData)||void 0===u?void 0:u.url)));case 6:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"getDefaultAction",value:function(e){var t=this,n=e.messageType,r=e.submitType;if(R===n)switch(r){case"SEND":case"SUBMIT":case"AGREE":return function(){var e=(0,l.A)((0,a.A)().mark((function e(n){var r,o,i,s,l,c;return(0,a.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.nativeMethods,o=r.validate,i=r.toSave,s=r.getDetail,e.next=3,o(n);case 3:if(!e.sent){e.next=16;break}return e.next=7,i(n);case 7:if(null==(c=e.sent)||null===(l=c.data)||void 0===l||!l.success){e.next=13;break}return s(),e.abrupt("return",!0);case 13:case 16:return e.abrupt("return",!1);case 14:e.next=17;break;case 17:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();case"NOTICE":case"GIVE":case L:case"MULTI_COOPERATE":return function(){var e=(0,l.A)((0,a.A)().mark((function e(n){var r,o,i,s,l,c,u;return(0,a.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=null==n||null===(r=n.bpmInfo)||void 0===r?void 0:r.actionType,i=t.nativeMethods,s=i.toSave,l=i.getDetail,o){e.next=14;break}return e.next=5,s(n);case 5:if(null==(u=e.sent)||null===(c=u.data)||void 0===c||!c.success){e.next=11;break}return l(),e.abrupt("return",!0);case 11:return e.abrupt("return",!1);case 12:e.next=15;break;case 14:return e.abrupt("return",!0);case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}}},{key:"on",value:function(e,t){var n=this.actions[e]||(this.actions[e]=[]);E()(n).call(n,(function(e){return e===t}))||null==n||n.push(t)}},{key:"remove",value:function(e,t){var n=this.actions[e]||(this.actions[e]=[]),r=w()(n).call(n,(function(e){return e===t}));-1!==r&&(null==n||T()(n).call(n,r,1))}},{key:"getSdkInstance",value:(e=(0,l.A)((0,a.A)().mark((function e(){var t=this;return(0,a.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("to get sdk===="),!this.sdkInstance){e.next=5;break}return e.abrupt("return",this.sdkInstance);case 5:return e.abrupt("return",new(g())((function(e){var n,r;r=function(n){console.log("instance===:",n),t.sdkInstance=n,e(n)},"iframe"===(n={mode:"iframe",tenant:"CMI"}).mode?(M(n.version,{tenant:n.tenant}),j.getUdcSdkForIframe().ready(r)):console.error("SDK当前仅支持iframe模式")})));case 6:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"changeSlide",value:function(e){this.getSdkInstance().then((function(t){var n;console.log("切换致远弹框===:",!0),null==t||null===(n=t.getCustomApi())||void 0===n||n.changeLayoutAreaStatus({hiddenArea:e?[]:["header","left","right","footer"]})}))}},{key:"insertBtn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3;this.getSdkInstance().then((function(n){var r;console.log("insert btns==:",e,t),null==n||null===(r=n.getCustomApi())||void 0===r||r.insertBtnForToolbar({position:t,btns:e})}))}},{key:"destroy",value:function(){window.removeEventListener("message",this.messageListener),this.sdkInstance=null}}]);var e,t,n}();function F(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return B=(0,i.A)(q,t)}},71143:(e,t,n)=>{n.d(t,{A:()=>f});var r=n(64007),o=n.n(r),i=(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,i.useAttrs)(),r=(0,i.computed)((function(){var e;return"1"==t.config.labelHidden||0==t.config.labelWidth||"0"==t.config.labelWidth?"":(o()(e=t.lang).call(e,"zh")>-1?t.config.metaNameZh:t.config.metaNameEn)||""})),p=(0,i.computed)((function(){return t.config.labelPosition?t.config.labelPosition:"left"}));function f(){var e,n;null===(e=messageInstance)||void 0===e||e.text(o()(n=t.lang).call(n,"zh")>-1?t.config.hintContentZh:t.config.hintContentEn)}return function(e,o){return(0,i.openBlock)(),(0,i.createElementBlock)("cmi-form-item",(0,i.mergeProps)((0,i.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,i.createElementVNode)("div",a,[(0,i.createElementVNode)("div",l,["1"==t.config.requiredFlag?((0,i.openBlock)(),(0,i.createElementBlock)("span",c,"*")):(0,i.createCommentVNode)("v-if",!0),(0,i.createElementVNode)("span",u,(0,i.toDisplayString)(r.value),1),"1"==t.config.hintFlag?((0,i.openBlock)(),(0,i.createElementBlock)("span",{key:1,class:"label-tip",onClick:f},o[0]||(o[0]=[(0,i.createElementVNode)("cmi-icon-question-circle",{size:"14"},null,-1)]))):(0,i.createCommentVNode)("v-if",!0)])]),(0,i.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:()=>i});var r=n(75286),o=n(24691);function i(e){var t=e.showTooltip,n=e.offset,i=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,o.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,o.fW)(f.value,0-n.value);u.value=e<t,h=(0,r.watch)((function(){return i.value}),(function(i){(0,r.nextTick)((function(){t=(0,o.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),o=0;o<n;o++)r[o]=arguments[o];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 o=n||{},s=o.wrapAttrs,a=void 0===s?{}:s,l=o.maintain,d=void 0!==l&&l,h=(0,r.defineComponent)(e);return d&&!t.value?(0,r.createVNode)(h,null,null):(0,r.createVNode)("div",(0,r.mergeProps)({class:"resolver-calc-contrainer"},a),[(0,r.createVNode)("span",{ref:function(e){return f.value=e},class:"resolver-calc-span"},[i.value]),u.value?(0,r.createVNode)((0,r.resolveComponent)("el-tooltip"),{placement:"top",visible:u.value&&!!c.value,content:i.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)(h,v.value,null)])])}}}},44026:(e,t,n)=>{n.d(t,{bt:()=>W});var r=n(37891),o=n(53811),i=n(34963),s=(n(48598),n(44114),n(27495),n(71761),n(73363)),a=n.n(s),l=n(64007),c=n.n(l),u=n(86226),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(56255),E=n.n(_),x=n(61240),w=n.n(x),S=n(36586),T=n.n(S),A=n(12935),P=n(76693),O=n(19022),C=n(157),k=n(17427),I=n(52644),N=n(35169);function j(e){return D.apply(this,arguments)}function D(){return(D=(0,i.A)((0,r.A)().mark((function e(t){var n,o,i,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,o=void 0===n?[]:n,i=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()(o).call(o,(function(e){return"1"==e.serviceType})),E=0;E<o.length;E++)M(o[E],{dynamicMapComp:l,requestTraceId:i,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 M(e,t){return L.apply(this,arguments)}function L(){return L=(0,i.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;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:x=function(){return x=(0,i.A)((0,r.A)().mark((function e(){var n,b,_,x,S,P,O,I,N,j,D,M,L,F,U,V,$,W,K,z,H,G,Q,X,Y,J,Z,ee,te,ne,re,oe,ie=arguments;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return b=!(ie.length>0&&void 0!==ie[0])||ie[0],_=c||{},x=null,S=(0,k.Ho)({extendAttr:t.extendAttr}),P=null,O=null,((I=null==h?void 0:h.beforeRequestService)||g)&&(P=function(){var e=(0,i.A)((0,r.A)().mark((function e(){var t,n,o,i,s=arguments;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=!0,n=s.length,o=new Array(n),i=0;i<n;i++)o[i]=s[i];return g&&(t=null==g?void 0:g.apply(void 0,o)),e.next=5,t;case 5:if(!1!==e.sent){e.next=8;break}return e.abrupt("return",!1);case 8:if(!I){e.next=12;break}return e.abrupt("return",null==I?void 0:I.apply(void 0,o));case 12:return e.abrupt("return",!0);case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()),((N=null==h?void 0:h.afterRequestService)||v)&&(O=function(){var e=(0,i.A)((0,r.A)().mark((function e(){var t,n,o,i=arguments;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),o=0;o<t;o++)n[o]=i[o];return e.next=3,null==v?void 0:v.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&&(_=R(t.inParamMappingList||[],{emptyUpdate:!0,dynamicMapComp:s,dynamicMapCompKeys:u,dynamicHireRelat:p}),x=q(t.outParamMappingList,{dynamicMapComp:s,dynamicMapCompKeys:u,dynamicHireRelat:p}),null!==(j=x)&&void 0!==j&&j.vm&&(b&&((0,k.Ts)(x,"serviceCurrentChangeLoad",!0),x.vm.page.pageNum=1,E()((function(){(0,k.Ts)(x,"serviceCurrentChangeLoad",!1)}),200)),(0,A.b0)(null===(D=x.vm.page)||void 0===D?void 0:D.pageNum)||(0,A.kZ)(null===(M=x.vm.page)||void 0===M?void 0:M.pageNum)||(0,k.oY)(_,t.pageNum||"pageNum",null===(U=x.vm.page)||void 0===U?void 0:U.pageNum),(0,A.b0)(null===(L=x.vm.page)||void 0===L?void 0:L.pageSize)||(0,A.kZ)(null===(F=x.vm.page)||void 0===F?void 0:F.pageSize)||(0,k.oY)(_,t.pageSize||"pageSize",null===(V=x.vm.page)||void 0===V?void 0:V.pageSize)),_=(0,o.A)({},_)),$=t.serviceCode,W=t.httpMethod||"post",K={aid_language:y,requestTraceId:a,pmHandleBusinessIdentity:{busiIdentityId:t.busiIdentityId,pageMetaId:t.pageMetaId,tenantId:t.tenantId,mainServiceCode:null==l?void 0:l.mainServiceCode}},(null==S?void 0:S.notDefaultParmas)&&(K={}),z=(0,k.Vv)(K,_),K=z,H=!0,P&&(H=P({dynamicMapComp:s,requestTraceId:a,mixinServiceConfig:l,rootValue:c,dynamicHireRelat:p,compConfig:h,service:t,reqData:K})),e.next=22,H;case 22:if(!1!==e.sent){e.next=25;break}return e.abrupt("return");case 25:return G={url:$,method:W,data:K},"get"===W.toLocaleLowerCase()&&(G.params=K,delete G.data),e.next=29,f&&f(G);case 29:if(Q=e.sent,!O){e.next=33;break}return e.next=33,O(Q,{dynamicMapComp:s,requestTraceId:a,mixinServiceConfig:l,rootValue:c,dynamicHireRelat:p,compConfig:h,service:t,reqData:K});case 33:if(X="get"===W.toLocaleLowerCase()||"1"==t.transactionType||(null==S?void 0:S.noSuccessIip),Y={messageCb:d,service:t,compConfig:h,noSuccessIip:X},S.resultCodeKey&&(Y.resultCodeKey=S.resultCodeKey),(0,C.N)(null==Q?void 0:Q.data,m,Y)){e.next=40;break}return e.next=39,w().reject();case 39:return e.abrupt("return");case 40:B(t.outParamMappingList,{dynamicMapComp:s,dynamicMapCompKeys:u,dynamicHireRelat:p,outResult:Q.data}),null!==(n=x)&&void 0!==n&&n.vm&&(ee=null===(J=Q.data)||void 0===J?void 0:J.result,te=t.pageTotalCount,ne=/^_deep:(.+)$/,(re=null===(Z=t.pageTotalCount)||void 0===Z?void 0:Z.match(ne))&&(ee=Q.data,te=re[1]),oe=T()((0,k.V9)(ee||{},te||"pageCount")),x.vm.page.total=oe);case 42:case"end":return e.stop()}}),e)}))),x.apply(this,arguments)},_=function(){return x.apply(this,arguments)},s=n.dynamicMapComp,a=n.requestTraceId,n.dialogReq,l=n.mixinServiceConfig,c=n.rootValue,u=n.dynamicMapCompKeys,p=n.dynamicHireRelat,f=n.axiosInstance,d=n.messageCb,h=n.compConfig,m=n.messageInstance,y=n.lang,g=n.beforeRequestService,v=n.afterRequestService,"1"==t.transactionType&&(b=q(t.outParamMappingList,{dynamicMapComp:s,dynamicMapCompKeys:u,dynamicHireRelat:p}))&&((0,k.Ts)(b,"serviceSizeChange",(function(e,t,n){_()})),(0,k.Ts)(b,"serviceCurrentChange",(function(e,t,n){_(!1)}))),_();case 5:case"end":return e.stop()}}),e)}))),L.apply(this,arguments)}function R(){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,o=t.dynamicMapCompKeys,i=t.dynamicHireRelat;return a()(e).call(e,(function(e,t){var s,a=t.orignParam,l=void 0===a?"":a,u=t.destParam,p=void 0===u?"":u,f=(0,O.qK)(o,l,i);f.length>1&&console.error("search arg muti",t,f);var d,h=f[0],m=null==r||null===(s=r[h])||void 0===s?void 0:s.refValue;return(((0,A.b0)(m)||(0,A.kZ)(m))&&n||!(0,A.b0)(m)&&!(0,A.kZ)(m))&&(d=-1!==(null==p?void 0:c()(p).call(p,"->"))?(null==p?void 0:p.split("->"))||[]:(null==p?void 0:p.split("."))||[],(0,k.oY)(e,d,(0,A.b0)(m)||(0,A.kZ)(m)?"":m)),e}),{})}function B(){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,o=t.dynamicHireRelat,i=t.outResult,s=void 0===i?{}:i;p()(e).call(e,(function(e){var t=e.orignParam,i=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,O.qK)(r,c,o);y.length>1&&console.error("search arg muti",e,y);var g=y[0],v=n[g];if(v){var b=i?null==i?void 0:i.split("."):[],_=a()(b).call(b,(function(e,t){if(e)return e[t]}),s);p&&((0,A.cy)(_)?(0,A.cy)(v.refValue)&&(0,A.cy)(_)&&(_=(0,k.q2)(v.refValue,_,(function(e,t){var n;return!(!h||!h.length)&&(null===(n=d()(h).call(h,(function(n){return((0,A.sw)(e[n])||(0,A.sw)(t[n]))&&e[n]==t[n]})))||void 0===n?void 0:m()(n).call(n,(function(e){return e})))}))):_=(0,A.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,o=t.dynamicHireRelat,i=0;i<e.length;i++){var s=e[i],a=s.destParam,l=void 0===a?"":a,c=(0,O.qK)(r,l,o);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 F(e){var t,n=e.beforeOpenDialog,s=e.afterOpenDialog,l=e.middleOpenDialog,c=e.components,u=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,w=e.compConfig,S=(0,k.Ho)({extendAttr:h.extendAttr}),T=h.popupBusiIdentityId,A=g()(y),P=R(h.inParamMappingList||[],{dynamicMapComp:y,dynamicMapCompKeys:A,dynamicHireRelat:v}),O="1"==(null==h?void 0:h.objOrList),C=(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==S?void 0:S.bindFormData)||O?t[t.length-1]:t.join("."):"";return(0,o.A)((0,o.A)({},e),{},{orignParam:n})})))||[],I={},j={};if(O){var D,M=[];I=null===(D=C)||void 0===D?void 0:a()(D).call(D,(function(e,t){var n=t.orignParam,r=t.destParam,o=t.primaryKeyFlag,i=void 0===o?"":o,s=r?r.split("->"):[];return e[r?s[s.length-1]:""]=n,"1"==i&&M.push(n),e}),{});var L=q(C=[{orignParam:"",destParam:h.parentTable||"",primaryKeys:M,isList:!0}],{dynamicMapComp:y,dynamicMapCompKeys:A,dynamicHireRelat:v});j.selections=(null==L?void 0:L.refValue)||[],j.primaryKeys=M}var F={},U={},V=null,$={};h.outDisplayTrigger&&($[h.outDisplayTrigger]=function(e){return{onClick:function(){var e,t=F.tableSelectedInfo;O&&(t=null===(e=F.tableSelectedInfo)||void 0===e?void 0:d()(e).call(e,(function(e){var t,n=(0,o.A)({},e);return p()(t=g()(I)).call(t,(function(t){I[t]&&(n[t]=e[I[t]])})),n}))),"1"!=(null==S?void 0:S.bindFormData)||O||(t=U);var n=null==w?void 0:w.middleOpenDialog,s=l;(n||s)&&(l=function(){var e=(0,i.A)((0,r.A)().mark((function e(t){var i,a;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=null,s&&(i=null==s?void 0:s(t)),!i){e.next=7;break}return e.next=5,i;case 5:return a=e.sent,e.abrupt("return",null==n?void 0:n((0,o.A)((0,o.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 c(e){var t;B(C,{dynamicMapComp:y,dynamicMapCompKeys:A,dynamicHireRelat:v,outResult:e}),null===(t=V)||void 0===t||t(),H(e)}l&&(a=l({dynamicMapComp:y,rootValue:u,dynamicHireRelat:v,compConfig:w,pagePopupMap:h,inputParams:P,outputParams:t})||a),(0,k.yL)(a)?a.then((function(e){c(e)})):c(a)}}}),h.closedTrigger&&($[h.closedTrigger]=function(e){return{onClick:function(){var e;null===(e=V)||void 0===e||e(),H()}}});var W=null==w?void 0:w.beforeOpenDialog,K=n;(W||K)&&(n=function(){var e=(0,i.A)((0,r.A)().mark((function e(){var t,n,o,i,s,a=arguments;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(null===N.dW||void 0===N.dW||null===(t=N.dW.changeSlide)||void 0===t||t.call(N.dW,!1),n=!0,o=a.length,i=new Array(o),s=0;s<o;s++)i[s]=a[s];return K&&(n=null==K?void 0:K.apply(void 0,i)),e.next=6,n;case 6:if(!1!==e.sent){e.next=9;break}return e.abrupt("return",!1);case 9:if(!W){e.next=13;break}return e.abrupt("return",null==W?void 0:W.apply(void 0,i));case 13:return e.abrupt("return",!0);case 14:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}());var z=!0;function H(e){var t=null==w?void 0:w.afterOpenDialog,n=s;(t||n)&&(s=function(){var e=(0,i.A)((0,r.A)().mark((function e(){var o,i,s,a,l=arguments;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(null===N.dW||void 0===N.dW||null===(o=N.dW.changeSlide)||void 0===o||o.call(N.dW,!0),i=l.length,s=new Array(i),a=0;a<i;a++)s[a]=l[a];null==n||n.apply(void 0,s),null==t||t.apply(void 0,s);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()),s&&s({dynamicMapComp:y,rootValue:u,dynamicHireRelat:v,compConfig:w,pagePopupMap:h,inputParams:P,outputParams:e})}function G(){V=E({buttonActions:_,dialogProps:(0,o.A)((0,o.A)({},S||{}),{},{beforeClose:function(){H()}}),parentRootValue:u,parentDynamicMapComp:y,selectionsObj:j,busiIdentityId:T,axiosInstance:m,lang:b,loadEvnetsReq:P,initData:P,components:c,parentSelects:null==w?void 0:w._selects,polyfillConfigs:(0,o.A)((0,o.A)({},$),f||{}),rootStoreChange:function(e){F=e},rootDataChange:function(e){U=e}},x)}n&&(z=n({dynamicMapComp:y,rootValue:u,dynamicHireRelat:v,compConfig:w,pagePopupMap:h,inputParams:P})),null!=z?(0,k.yL)(z)?z.then((function(e){!1!==e&&G()})):z&&G():G()}function U(e,t){return V.apply(this,arguments)}function V(){return V=(0,i.A)((0,r.A)().mark((function e(t,n){var s,a,l,u,p,f,d,h,m,y,g,v,b,_,E,x,S,T,A,O,k,N,j,D,M,L;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=n.beforeDataValidRequestService,u=n.afterDataValidRequestService,p=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||{},_=P.dL,((S=null==h?void 0:h.beforeDataValidRequestService)||l)&&(E=function(){var e=(0,i.A)((0,r.A)().mark((function e(){var t,n,o,i,s=arguments;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=!0,n=s.length,o=new Array(n),i=0;i<n;i++)o[i]=s[i];return l&&(t=null==l?void 0:l.apply(void 0,o)),e.next=5,t;case 5:if(!1!==e.sent){e.next=8;break}return e.abrupt("return",!1);case 8:if(!S){e.next=12;break}return e.abrupt("return",null==S?void 0:S.apply(void 0,o));case 12:return e.abrupt("return",!0);case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()),((T=null==h?void 0:h.afterDataValidRequestService)||u)&&(x=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];null==u||u.apply(void 0,t),null==T||T.apply(void 0,t)}),A=!0,E&&(A=E({dynamicMapComp:f,requestTraceId:d,mixinServiceConfig:m,rootValue:y,compConfig:h,service:t,reqData:b})),e.next=11,A;case 11:if(!1!==e.sent){e.next=14;break}return e.abrupt("return");case 14:return e.next=16,(0,I.ZW)(_,(0,o.A)((0,o.A)((0,o.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(O=e.sent,k=O.data||{},null!==(s=O.data)&&void 0!==s&&s.baseResponse&&(k=null===(N=O.data)||void 0===N?void 0:N.baseResponse),j=k.resultCode,D=(null===(a=k)||void 0===a?void 0:a.resultMessage)||"",M="",L=!1,C.O.SUCCESS===j){e.next=40;break}e.t0=j,e.next=e.t0===C.O.WARNING?27:e.t0===C.O.ERROR?30:e.t0===C.O.INFO?33:e.t0===C.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(w())((function(e,t){p(D,(null==v?void 0:c()(v).call(v,"zh"))>-1?"提示":"Hint",{type:M,showCancelButton:L}).then((function(){L?(x&&x(O,{valid:!0}),e(!0)):(x&&x(O,{valid:!1}),e(!1))})).catch((function(){x&&x(O,{valid:!1}),t(!1)}))})));case 40:return x&&x(O,{valid:!0}),e.abrupt("return",!0);case 42:case"end":return e.stop()}}),e)}))),V.apply(this,arguments)}function $(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 W(){return K.apply(this,arguments)}function K(){return K=(0,i.A)((0,r.A)().mark((function e(){var t,n,o,i,s,a,l,c,u,p,f,d,h,m,y,g,v,_,E,x,w,S,T,A,P,O,C,k,I,N,D,M,L,R,B,q=arguments;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=(n=q.length>0&&void 0!==q[0]?q[0]:{}).beforeDataValidRequestService,i=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,w=n.openChildDialog,S=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,U(I,{dynamicMapComp:E,requestTraceId:d,rootValue:g,axiosInstance:h,mixinServiceConfig:C,compConfig:f.config,confirmInstance:v,builtPolyfillReq:A,beforeDataValidRequestService:o,afterDataValidRequestService:i,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:S,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,F({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:S,buttonActions:y,openChildDialog:w,compConfig:f.config})),(B=f.config.lcpPageClosedMapVO)&&$(B);case 16:case"end":return e.stop()}}),e)}))),K.apply(this,arguments)}},87094:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Ya});var r=n(37891),o=n(34963),i=n(49859),s=n(53474),a=n(53811),l=n(75286),c=(n(76918),n(23288),n(2892),n(26099),n(27495),n(90906),n(38781),n(25440),n(73363)),u=n.n(c),p=n(50697),f=n.n(p),d=n(66615),h=n.n(d),m=n(48079),y=n.n(m),g=n(36586),v=n.n(g),b=n(18979),_=n.n(b),E=n(129),x=n.n(E),w=n(96319),S=n.n(w),T=n(71426),A=n.n(T),P=n(31721),O=n.n(P),C=n(14166),k=n.n(C),I=n(8628),N=n.n(I),j=n(74707),D=n.n(j),M=n(86226),L=n.n(M),R=n(64007),B=n.n(R),q=n(11393),F=n.n(q),U=n(84061),V=n(66825),$=["data-prefix"],W={ref:"hiddenColumns",class:"hidden-columns"},K=n(23149),z=n(41917);const H=function(){return z.A.Date.now()};var G=/\s/;var Q=/^\s+/;const X=function(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&G.test(e.charAt(t)););return t}(e)+1).replace(Q,""):e};var Y=n(2383),J=n(53098);const Z=function(e){return"symbol"==typeof e||(0,J.A)(e)&&"[object Symbol]"==(0,Y.A)(e)};var ee=/^[-+]0x[0-9a-f]+$/i,te=/^0b[01]+$/i,ne=/^0o[0-7]+$/i,re=parseInt;const oe=function(e){if("number"==typeof e)return e;if(Z(e))return NaN;if((0,K.A)(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=(0,K.A)(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=X(e);var n=te.test(e);return n||ne.test(e)?re(e.slice(2),n?2:8):ee.test(e)?NaN:+e};var ie=Math.max,se=Math.min;const ae=function(e,t,n){var r,o,i,s,a,l,c=0,u=!1,p=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function d(t){var n=r,i=o;return r=o=void 0,c=t,s=e.apply(i,n)}function h(e){var n=e-l;return void 0===l||n>=t||n<0||p&&e-c>=i}function m(){var e=H();if(h(e))return y(e);a=setTimeout(m,function(e){var n=t-(e-l);return p?se(n,i-(e-c)):n}(e))}function y(e){return a=void 0,f&&r?d(e):(r=o=void 0,s)}function g(){var e=H(),n=h(e);if(r=arguments,o=this,l=e,n){if(void 0===a)return function(e){return c=e,a=setTimeout(m,t),u?d(e):s}(l);if(p)return clearTimeout(a),a=setTimeout(m,t),d(l)}return void 0===a&&(a=setTimeout(m,t)),s}return t=oe(t)||0,(0,K.A)(n)&&(u=!!n.leading,i=(p="maxWait"in n)?ie(oe(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f),g.cancel=function(){void 0!==a&&clearTimeout(a),c=0,r=l=o=a=void 0},g.flush=function(){return void 0===a?s:y(H())},g};var le,ce,ue,pe,fe,de,he,me,ye,ge,ve,be,_e,Ee,xe,we=!1;function Se(){if(!we){we=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(be=/\b(iPhone|iP[ao]d)/.exec(e),_e=/\b(iP[ao]d)/.exec(e),ge=/Android/i.exec(e),Ee=/FBAN\/\w+;/i.exec(e),xe=/Mobile/i.exec(e),ve=!!/Win64/.exec(e),t){(le=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN)&&document&&document.documentMode&&(le=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);de=r?parseFloat(r[1])+4:le,ce=t[2]?parseFloat(t[2]):NaN,ue=t[3]?parseFloat(t[3]):NaN,(pe=t[4]?parseFloat(t[4]):NaN)?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),fe=t&&t[1]?parseFloat(t[1]):NaN):fe=NaN}else le=ce=ue=fe=pe=NaN;if(n){if(n[1]){var o=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);he=!o||parseFloat(o[1].replace("_","."))}else he=!1;me=!!n[2],ye=!!n[3]}else he=me=ye=!1}}var Te,Ae={ie:function(){return Se()||le},ieCompatibilityMode:function(){return Se()||de>le},ie64:function(){return Ae.ie()&&ve},firefox:function(){return Se()||ce},opera:function(){return Se()||ue},webkit:function(){return Se()||pe},safari:function(){return Ae.webkit()},chrome:function(){return Se()||fe},windows:function(){return Se()||me},osx:function(){return Se()||he},linux:function(){return Se()||ye},iphone:function(){return Se()||be},mobile:function(){return Se()||be||_e||ge||xe},nativeApp:function(){return Se()||Ee},android:function(){return Se()||ge},ipad:function(){return Se()||_e}},Pe=Ae,Oe=!!(typeof window<"u"&&window.document&&window.document.createElement),Ce=Oe;Oe&&!window.addEventListener&&window.attachEvent,Oe&&window.screen;Ce&&(Te=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""));function ke(e){var t=0,n=0,r=0,o=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=10*t,o=10*n,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||o)&&e.deltaMode&&(1==e.deltaMode?(r*=40,o*=40):(r*=800,o*=800)),r&&!t&&(t=r<1?-1:1),o&&!n&&(n=o<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:o}}ke.getEventType=function(){return Pe.firefox()?"DOMMouseScroll":function(e,t){if(!Ce||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var o=document.createElement("div");o.setAttribute(n,"return;"),r="function"==typeof o[n]}return!r&&Te&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}("wheel")?"wheel":"mousewheel"};var Ie=ke;const Ne={beforeMount(e,t){!function(e,t){if(e&&e.addEventListener){const n=function(e){const n=Ie(e);t&&Reflect.apply(t,this,[e,n])};e.addEventListener("wheel",n,{passive:!0})}}(e,t.value)}};var je=n(76172),De=n(97786);const Me={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}};var Le=n(22720);const Re=Symbol("scrollbarContextKey"),Be=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},qe=()=>{},Fe=(Object.assign,Object.prototype.hasOwnProperty),Ue=(e,t)=>Fe.call(e,t),Ve=Array.isArray,$e=e=>"function"==typeof e,We=e=>"string"==typeof e,Ke=e=>null!==e&&"object"==typeof e,ze=(Object.prototype.toString,e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))}),He=/-(\w)/g,Ge=(ze((e=>e.replace(He,((e,t)=>t?t.toUpperCase():"")))),/\B([A-Z])/g),Qe=(ze((e=>e.replace(Ge,"-$1").toLowerCase())),ze((e=>e.charAt(0).toUpperCase()+e.slice(1))));ze((e=>e?`on${Qe(e)}`:""));const Xe="__epPropKey",Ye=(e,t)=>{if(!Ke(e)||Ke(n=e)&&n[Xe])return e;var n;const{values:r,required:o,default:i,type:s,validator:a}=e,c=r||a?n=>{let o=!1,s=[];if(r&&(s=Array.from(r),Ue(e,"default")&&s.push(i),o||(o=s.includes(n))),a&&(o||(o=a(n))),!o&&s.length>0){const e=[...new Set(s)].map((e=>JSON.stringify(e))).join(", ");(0,l.warn)(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${e}], got value ${JSON.stringify(n)}.`)}return o}:void 0,u={type:s,required:!!o,validator:c,[Xe]:!0};return Ue(e,"default")&&(u.default=i),u},Je=e=>Be(Object.entries(e).map((([e,t])=>[e,Ye(t,e)]))),Ze=Je({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean});var et=(e,t)=>{const n=e.__vccOpts||e;for(const[e,r]of t)n[e]=r;return n};const tt="el",nt=(e,t,n,r,o)=>{let i=`${e}-${t}`;return n&&(i+=`-${n}`),r&&(i+=`__${r}`),o&&(i+=`--${o}`),i},rt=Symbol("namespaceContextKey"),ot=e=>{const t=e||((0,l.getCurrentInstance)()?(0,l.inject)(rt,(0,l.ref)(tt)):(0,l.ref)(tt));return(0,l.computed)((()=>(0,l.unref)(t)||tt))},it=(e,t)=>{const n=ot(t);return{namespace:n,b:(t="")=>nt(n.value,e,t,"",""),e:t=>t?nt(n.value,e,"",t,""):"",m:t=>t?nt(n.value,e,"","",t):"",be:(t,r)=>t&&r?nt(n.value,e,t,r,""):"",em:(t,r)=>t&&r?nt(n.value,e,"",t,r):"",bm:(t,r)=>t&&r?nt(n.value,e,t,"",r):"",bem:(t,r,o)=>t&&r&&o?nt(n.value,e,t,r,o):"",is:(e,...t)=>{const n=!(t.length>=1)||t[0];return e&&n?`is-${e}`:""},cssVar:e=>{const t={};for(const r in e)e[r]&&(t[`--${n.value}-${r}`]=e[r]);return t},cssVarName:e=>`--${n.value}-${e}`,cssVarBlock:t=>{const r={};for(const o in t)t[o]&&(r[`--${n.value}-${e}-${o}`]=t[o]);return r},cssVarBlockName:t=>`--${n.value}-${e}-${t}`}};class st extends Error{constructor(e){super(e),this.name="ElementPlusError"}}const at=(0,l.defineComponent)({__name:"thumb",props:Ze,setup(e){const t=e,n=(0,l.inject)(Re),r=it("scrollbar");n||function(){throw new st("[Thumb] can not inject scrollbar context")}();const o=(0,l.ref)(),i=(0,l.ref)(),s=(0,l.ref)({}),a=(0,l.ref)(!1);let c=!1,u=!1,p=Le.oc?document.onselectstart:null;const f=(0,l.computed)((()=>Me[t.vertical?"vertical":"horizontal"])),d=(0,l.computed)((()=>(({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}))({size:t.size,move:t.move,bar:f.value}))),h=(0,l.computed)((()=>o.value[f.value.offset]**2/n.wrapElement[f.value.scrollSize]/t.ratio/i.value[f.value.offset])),m=e=>{var t;if(e.stopPropagation(),e.ctrlKey||[1,2].includes(e.button))return;null==(t=window.getSelection())||t.removeAllRanges(),g(e);const n=e.currentTarget;n&&(s.value[f.value.axis]=n[f.value.offset]-(e[f.value.client]-n.getBoundingClientRect()[f.value.direction]))},y=e=>{if(!i.value||!o.value||!n.wrapElement)return;const t=100*(Math.abs(e.target.getBoundingClientRect()[f.value.direction]-e[f.value.client])-i.value[f.value.offset]/2)*h.value/o.value[f.value.offset];n.wrapElement[f.value.scroll]=t*n.wrapElement[f.value.scrollSize]/100},g=e=>{e.stopImmediatePropagation(),c=!0,document.addEventListener("mousemove",v),document.addEventListener("mouseup",b),p=document.onselectstart,document.onselectstart=()=>!1},v=e=>{if(!o.value||!i.value)return;if(!1===c)return;const t=s.value[f.value.axis];if(!t)return;const r=100*(-1*(o.value.getBoundingClientRect()[f.value.direction]-e[f.value.client])-(i.value[f.value.offset]-t))*h.value/o.value[f.value.offset];n.wrapElement[f.value.scroll]=r*n.wrapElement[f.value.scrollSize]/100},b=()=>{c=!1,s.value[f.value.axis]=0,document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",b),_(),u&&(a.value=!1)};(0,l.onBeforeUnmount)((()=>{_(),document.removeEventListener("mouseup",b)}));const _=()=>{document.onselectstart!==p&&(document.onselectstart=p)};return(0,De.MLh)((0,l.toRef)(n,"scrollbarElement"),"mousemove",(()=>{u=!1,a.value=!!t.size})),(0,De.MLh)((0,l.toRef)(n,"scrollbarElement"),"mouseleave",(()=>{u=!0,a.value=c})),(e,t)=>((0,l.openBlock)(),(0,l.createBlock)(l.Transition,{name:(0,l.unref)(r).b("fade"),persisted:""},{default:(0,l.withCtx)((()=>[(0,l.withDirectives)((0,l.createElementVNode)("div",{ref_key:"instance",ref:o,class:(0,l.normalizeClass)([(0,l.unref)(r).e("bar"),(0,l.unref)(r).is((0,l.unref)(f).key)]),onMousedown:y},[(0,l.createElementVNode)("div",{ref_key:"thumb",ref:i,class:(0,l.normalizeClass)((0,l.unref)(r).e("thumb")),style:(0,l.normalizeStyle)((0,l.unref)(d)),onMousedown:m},null,38)],34),[[l.vShow,e.always||a.value]])])),_:1},8,["name"]))}});var lt=et(at,[["__file","thumb.vue"]]);const ct=Je({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}});var ut=et((0,l.defineComponent)({__name:"bar",props:ct,setup(e,{expose:t}){const n=e,r=(0,l.inject)(Re),o=(0,l.ref)(0),i=(0,l.ref)(0),s=(0,l.ref)(""),a=(0,l.ref)(""),c=(0,l.ref)(1),u=(0,l.ref)(1);return t({handleScroll:e=>{if(e){const t=e.offsetHeight-4,n=e.offsetWidth-4;i.value=100*e.scrollTop/t*c.value,o.value=100*e.scrollLeft/n*u.value}},update:()=>{const e=null==r?void 0:r.wrapElement;if(!e)return;const t=e.offsetHeight-4,o=e.offsetWidth-4,i=t**2/e.scrollHeight,l=o**2/e.scrollWidth,p=Math.max(i,n.minSize),f=Math.max(l,n.minSize);c.value=i/(t-i)/(p/(t-p)),u.value=l/(o-l)/(f/(o-f)),a.value=p+4<t?`${p}px`:"",s.value=f+4<o?`${f}px`:""}}),(e,t)=>((0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,null,[(0,l.createVNode)(lt,{move:o.value,ratio:u.value,size:s.value,always:e.always},null,8,["move","ratio","size","always"]),(0,l.createVNode)(lt,{move:i.value,ratio:c.value,size:a.value,vertical:"",always:e.always},null,8,["move","ratio","size","always"])],64))}}),[["__file","bar.vue"]]),pt=n(92049),ft=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,dt=/^\w*$/;const ht=function(e,t){if((0,pt.A)(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Z(e))||dt.test(e)||!ft.test(e)||null!=t&&e in Object(t)};var mt=n(62050);function yt(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(yt.Cache||mt.A),n}yt.Cache=mt.A;const gt=yt;var vt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,bt=/\\(\\)?/g;const _t=function(){var e=gt((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(vt,(function(e,n,r,o){t.push(r?o.replace(bt,"$1"):n||e)})),t}),(function(e){return 500===t.size&&t.clear(),e})),t=e.cache;return e}();var Et=n(241),xt=n(45572),wt=Et.A?Et.A.prototype:void 0,St=wt?wt.toString:void 0;const Tt=function e(t){if("string"==typeof t)return t;if((0,pt.A)(t))return(0,xt.A)(t,e)+"";if(Z(t))return St?St.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n},At=function(e){return null==e?"":Tt(e)},Pt=function(e,t){return(0,pt.A)(e)?e:ht(e,t)?[e]:_t(At(e))},Ot=function(e){if("string"==typeof e||Z(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},Ct=function(e,t){for(var n=0,r=(t=Pt(t,e)).length;null!=e&&n<r;)e=e[Ot(t[n++])];return n&&n==r?e:void 0};var kt=n(52851),It=n(25353);const Nt=function(e,t,n,r){if(!(0,K.A)(e))return e;for(var o=-1,i=(t=Pt(t,e)).length,s=i-1,a=e;null!=a&&++o<i;){var l=Ot(t[o]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(o!=s){var u=a[l];void 0===(c=r?r(u,l,a):void 0)&&(c=(0,K.A)(u)?u:(0,It.A)(t[o+1])?[]:{})}(0,kt.A)(a,l,c),a=a[l]}return e},jt=function(e,t){return null!=e&&t in Object(e)};var Dt=n(25175),Mt=n(5254);const Lt=function(e,t){return null!=e&&function(e,t,n){for(var r=-1,o=(t=Pt(t,e)).length,i=!1;++r<o;){var s=Ot(t[r]);if(!(i=null!=e&&n(e,s)))break;e=e[s]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&(0,Mt.A)(o)&&(0,It.A)(s,o)&&((0,pt.A)(e)||(0,Dt.A)(e))}(e,t,jt)},Rt=function(e,t){return function(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var s=t[r],a=Ct(e,s);n(a,s)&&Nt(i,Pt(s,e),a)}return i}(e,t,(function(t,n){return Lt(e,n)}))};var Bt=n(87671);const qt=function(e){return null!=e&&e.length?(0,Bt.A)(e,1):[]};var Ft=n(65255),Ut=n(46778);const Vt=(Kt=function(e,t){return null==e?{}:Rt(e,t)},(0,Ut.A)((0,Ft.A)(Kt,void 0,qt),Kt+"")),$t=Je({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),Wt=e=>Vt($t,e);var Kt;const zt=function(e){return null==e},Ht=e=>void 0===e,Gt=e=>"boolean"==typeof e,Qt=e=>"number"==typeof e,Xt=e=>"undefined"!=typeof Element&&e instanceof Element,Yt=e=>zt(e),Jt=Je({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:[String,Object,Array],default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},id:String,role:String,...Wt(["ariaLabel","ariaOrientation"])}),Zt={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Qt)};function en(e,t="px"){return e?Qt(e)||We(n=e)&&!Number.isNaN(Number(n))?`${e}${t}`:We(e)?e:void 0:"";var n}const tn=(0,l.defineComponent)({name:"ElScrollbar"}),nn=(0,l.defineComponent)({...tn,props:Jt,emits:Zt,setup(e,{expose:t,emit:n}){const r=e,o=it("scrollbar");let i,s,a=0,c=0;const u=(0,l.ref)(),p=(0,l.ref)(),f=(0,l.ref)(),d=(0,l.ref)(),h=(0,l.computed)((()=>{const e={};return r.height&&(e.height=en(r.height)),r.maxHeight&&(e.maxHeight=en(r.maxHeight)),[r.wrapStyle,e]})),m=(0,l.computed)((()=>[r.wrapClass,o.e("wrap"),{[o.em("wrap","hidden-default")]:!r.native}])),y=(0,l.computed)((()=>[o.e("view"),r.viewClass])),g=()=>{var e;p.value&&(null==(e=d.value)||e.handleScroll(p.value),a=p.value.scrollTop,c=p.value.scrollLeft,n("scroll",{scrollTop:p.value.scrollTop,scrollLeft:p.value.scrollLeft}))},v=()=>{var e;null==(e=d.value)||e.update()};return(0,l.watch)((()=>r.noresize),(e=>{e?(null==i||i(),null==s||s()):(({stop:i}=(0,De.wYm)(f,v)),s=(0,De.MLh)("resize",v))}),{immediate:!0}),(0,l.watch)((()=>[r.maxHeight,r.height]),(()=>{r.native||(0,l.nextTick)((()=>{var e;v(),p.value&&(null==(e=d.value)||e.handleScroll(p.value))}))})),(0,l.provide)(Re,(0,l.reactive)({scrollbarElement:u,wrapElement:p})),(0,l.onActivated)((()=>{p.value.scrollTop=a,p.value.scrollLeft=c})),(0,l.onMounted)((()=>{r.native||(0,l.nextTick)((()=>{v()}))})),(0,l.onUpdated)((()=>v())),t({wrapRef:p,update:v,scrollTo:function(e,t){Ke(e)?p.value.scrollTo(e):Qt(e)&&Qt(t)&&p.value.scrollTo(e,t)},setScrollTop:e=>{Qt(e)&&(p.value.scrollTop=e)},setScrollLeft:e=>{Qt(e)&&(p.value.scrollLeft=e)},handleScroll:g}),(e,t)=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{ref_key:"scrollbarRef",ref:u,class:(0,l.normalizeClass)((0,l.unref)(o).b())},[(0,l.createElementVNode)("div",{ref_key:"wrapRef",ref:p,class:(0,l.normalizeClass)((0,l.unref)(m)),style:(0,l.normalizeStyle)((0,l.unref)(h)),onScroll:g},[((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.tag),{id:e.id,ref_key:"resizeRef",ref:f,class:(0,l.normalizeClass)((0,l.unref)(y)),style:(0,l.normalizeStyle)(e.viewStyle),role:e.role,"aria-label":e.ariaLabel,"aria-orientation":e.ariaOrientation},{default:(0,l.withCtx)((()=>[(0,l.renderSlot)(e.$slots,"default")])),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],38),e.native?(0,l.createCommentVNode)("v-if",!0):((0,l.openBlock)(),(0,l.createBlock)(ut,{key:0,ref_key:"barRef",ref:d,always:e.always,"min-size":e.minSize},null,8,["always","min-size"]))],2))}}),rn=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(null!=t?t:{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e},on=e=>(e.install=qe,e),sn=rn(et(nn,[["__file","scrollbar.vue"]]));var an=n(22204),ln=(n(16280),n(44114),n(29544)),cn=n.n(ln),un=n(385),pn=n.n(un),fn=n(26327),dn=n.n(fn),hn=n(6707),mn=n.n(hn),yn=(n(13609),n(71917),n(84864),n(57465),n(87745),n(71761),n(80668)),gn=n.n(yn),vn=n(82895),bn=n.n(vn),_n=n(57855),En=n.n(_n);const xn=function(e,t,n){var r=null==e?void 0:Ct(e,t);return void 0===r?n:r};var wn=n(22080),Sn=n(22955);const Tn=function(e){return e==e&&!(0,K.A)(e)};var An=n(37405);const Pn=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}},On=function(e){var t=function(e){for(var t=(0,An.A)(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Tn(o)]}return t}(e);return 1==t.length&&t[0][2]?Pn(t[0][0],t[0][1]):function(n){return n===e||function(e,t,n,r){var o=n.length,i=o,s=!r;if(null==e)return!i;for(e=Object(e);o--;){var a=n[o];if(s&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++o<i;){var l=(a=n[o])[0],c=e[l],u=a[1];if(s&&a[2]){if(void 0===c&&!(l in e))return!1}else{var p=new wn.A;if(r)var f=r(c,u,l,e,t,p);if(!(void 0===f?(0,Sn.A)(u,c,3,r,p):f))return!1}}return!0}(n,e,t)}};var Cn=n(29008);const kn=function(e){return ht(e)?(t=Ot(e),function(e){return null==e?void 0:e[t]}):function(e){return function(t){return Ct(t,e)}}(e);var t},In=function(e){return"function"==typeof e?e:null==e?Cn.A:"object"==typeof e?(0,pt.A)(e)?(t=e[0],n=e[1],ht(t)&&Tn(n)?Pn(Ot(t),n):function(e){var r=xn(e,t);return void 0===r&&r===n?Lt(e,t):(0,Sn.A)(n,r,3)}):On(e):kn(e);var t,n};var Nn=n(97132);var jn=n(38446);const Dn=(Mn=function(e,t){return e&&(0,Nn.A)(e,t,An.A)},function(e,t){if(null==e)return e;if(!(0,jn.A)(e))return Mn(e,t);for(var n=e.length,r=-1,o=Object(e);++r<n&&!1!==t(o[r],r,o););return e});var Mn;const Ln=function(e,t){var n=-1,r=(0,jn.A)(e)?Array(e.length):[];return Dn(e,(function(e,o,i){r[++n]=t(e,o,i)})),r},Rn=function(e,t){return((0,pt.A)(e)?xt.A:Ln)(e,In(t))},Bn=Symbol("popper"),qn=Symbol("popperContent"),Fn=Je({role:{type:String,values:["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],default:"tooltip"}}),Un=(0,l.defineComponent)({name:"ElPopper",inheritAttrs:!1}),Vn=rn(et((0,l.defineComponent)({...Un,props:Fn,setup(e,{expose:t}){const n=e,r={triggerRef:(0,l.ref)(),popperInstanceRef:(0,l.ref)(),contentRef:(0,l.ref)(),referenceRef:(0,l.ref)(),role:(0,l.computed)((()=>n.role))};return t(r),(0,l.provide)(Bn,r),(e,t)=>(0,l.renderSlot)(e.$slots,"default")}}),[["__file","popper.vue"]])),$n=Symbol("elTooltip");function Wn(){let e;const t=()=>window.clearTimeout(e);return(0,Le.Uo)((()=>t())),{registerTimeout:(n,r)=>{t(),e=window.setTimeout(n,r)},cancelTimeout:t}}const Kn=Je({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}});var zn="top",Hn="bottom",Gn="right",Qn="left",Xn="auto",Yn=[zn,Hn,Gn,Qn],Jn="start",Zn="end",er="viewport",tr="popper",nr=Yn.reduce((function(e,t){return e.concat([t+"-"+Jn,t+"-"+Zn])}),[]),rr=[].concat(Yn,[Xn]).reduce((function(e,t){return e.concat([t,t+"-"+Jn,t+"-"+Zn])}),[]),or=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];const ir=Je({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Array,default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:rr,default:"bottom"},popperOptions:{type:Object,default:()=>({})},strategy:{type:String,values:["fixed","absolute"],default:"absolute"}}),sr=Je({...ir,id:String,style:{type:[String,Array,Object]},className:{type:[String,Array,Object]},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:[String,Array,Object]},popperStyle:{type:[String,Array,Object]},referenceEl:{type:Object},triggerTargetEl:{type:Object},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...Wt(["ariaLabel"])}),ar={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},lr=Je({...Kn,...sr,appendTo:{type:[String,Object]},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:Boolean,default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...Wt(["ariaLabel"])}),cr=Je({virtualRef:{type:Object},virtualTriggering:Boolean,onMouseenter:{type:Function},onMouseleave:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onFocus:{type:Function},onBlur:{type:Function},onContextmenu:{type:Function},id:String,open:Boolean}),ur=Je({...cr,disabled:Boolean,trigger:{type:[String,Array],default:"hover"},triggerKeys:{type:Array,default:()=>["Enter","Space"]}}),pr=Ye({type:Boolean,default:null}),fr=Ye({type:Function}),dr=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t];return{useModelToggle:({indicator:r,toggleReason:o,shouldHideWhenRouteChanges:i,shouldProceed:s,onShow:a,onHide:c})=>{const u=(0,l.getCurrentInstance)(),{emit:p}=u,f=u.props,d=(0,l.computed)((()=>$e(f[n]))),h=(0,l.computed)((()=>null===f[e])),m=e=>{!0!==r.value&&(r.value=!0,o&&(o.value=e),$e(a)&&a(e))},y=e=>{!1!==r.value&&(r.value=!1,o&&(o.value=e),$e(c)&&c(e))},g=e=>{if(!0===f.disabled||$e(s)&&!s())return;const n=d.value&&Le.oc;n&&p(t,!0),!h.value&&n||m(e)},v=e=>{if(!0===f.disabled||!Le.oc)return;const n=d.value&&Le.oc;n&&p(t,!1),!h.value&&n||y(e)},b=e=>{Gt(e)&&(f.disabled&&e?d.value&&p(t,!1):r.value!==e&&(e?m():y()))};return(0,l.watch)((()=>f[e]),b),i&&void 0!==u.appContext.config.globalProperties.$route&&(0,l.watch)((()=>({...u.proxy.$route})),(()=>{i.value&&r.value&&v()})),(0,l.onMounted)((()=>{b(f[e])})),{hide:v,show:g,toggle:()=>{r.value?v():g()},hasUpdateHandler:d}},useModelToggleProps:{[e]:pr,[n]:fr},useModelToggleEmits:r}},{useModelToggle:hr,useModelToggleProps:mr,useModelToggleEmits:yr}=dr("modelValue"),gr=Je({arrowOffset:{type:Number,default:5}}),{useModelToggleProps:vr,useModelToggleEmits:br,useModelToggle:_r}=dr("visible"),Er=Je({...Fn,...vr,...lr,...ur,...gr,showArrow:{type:Boolean,default:!0}}),xr=[...br,"before-show","before-hide","show","hide","open","close"],wr=(e,t,n)=>r=>{((e,t)=>Ve(e)?e.includes(t):e===t)((0,l.unref)(e),t)&&n(r)},Sr=(e,t,{checkForDefaultPrevented:n=!0}={})=>r=>{const o=null==e?void 0:e(r);if(!1===n||!o)return null==t?void 0:t(r)},Tr=Symbol("elForwardRef"),Ar=(0,l.defineComponent)({name:"ElOnlyChild",setup(e,{slots:t,attrs:n}){var r;const o=(0,l.inject)(Tr),i=(s=null!=(r=null==o?void 0:o.setForwardRef)?r:qe,{mounted(e){s(e)},updated(e){s(e)},unmounted(){s(null)}});var s;return()=>{var e;const r=null==(e=t.default)?void 0:e.call(t,n);if(!r)return null;if(r.length>1)return null;const o=Pr(r);return o?(0,l.withDirectives)((0,l.cloneVNode)(o,n),[[i]]):null}}});function Pr(e){if(!e)return null;const t=e;for(const e of t){if(Ke(e))switch(e.type){case l.Comment:continue;case l.Text:case"svg":return Or(e);case l.Fragment:return Pr(e.children);default:return e}return Or(e)}return null}function Or(e){const t=it("only-child");return(0,l.createVNode)("span",{class:t.e("content")},[e])}const Cr=(0,l.defineComponent)({name:"ElPopperTrigger",inheritAttrs:!1}),kr=(0,l.defineComponent)({...Cr,props:cr,setup(e,{expose:t}){const n=e,{role:r,triggerRef:o}=(0,l.inject)(Bn,void 0);var i;i=o,(0,l.provide)(Tr,{setForwardRef:e=>{i.value=e}});const s=(0,l.computed)((()=>c.value?n.id:void 0)),a=(0,l.computed)((()=>{if(r&&"tooltip"===r.value)return n.open&&n.id?n.id:void 0})),c=(0,l.computed)((()=>{if(r&&"tooltip"!==r.value)return r.value})),u=(0,l.computed)((()=>c.value?`${n.open}`:void 0));let p;const f=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return(0,l.onMounted)((()=>{(0,l.watch)((()=>n.virtualRef),(e=>{e&&(o.value=(0,De.F4c)(e))}),{immediate:!0}),(0,l.watch)(o,((e,t)=>{null==p||p(),p=void 0,Xt(e)&&(f.forEach((r=>{var o;const i=n[r];i&&(e.addEventListener(r.slice(2).toLowerCase(),i),null==(o=null==t?void 0:t.removeEventListener)||o.call(t,r.slice(2).toLowerCase(),i))})),p=(0,l.watch)([s,a,c,u],(t=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(((n,r)=>{zt(t[r])?e.removeAttribute(n):e.setAttribute(n,t[r])}))}),{immediate:!0})),Xt(t)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((e=>t.removeAttribute(e)))}),{immediate:!0})})),(0,l.onBeforeUnmount)((()=>{if(null==p||p(),p=void 0,o.value&&Xt(o.value)){const e=o.value;f.forEach((t=>{const r=n[t];r&&e.removeEventListener(t.slice(2).toLowerCase(),r)})),o.value=void 0}})),t({triggerRef:o}),(e,t)=>e.virtualTriggering?(0,l.createCommentVNode)("v-if",!0):((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(Ar),(0,l.mergeProps)({key:0},e.$attrs,{"aria-controls":(0,l.unref)(s),"aria-describedby":(0,l.unref)(a),"aria-expanded":(0,l.unref)(u),"aria-haspopup":(0,l.unref)(c)}),{default:(0,l.withCtx)((()=>[(0,l.renderSlot)(e.$slots,"default")])),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var Ir=et(kr,[["__file","trigger.vue"]]);const Nr=(0,l.defineComponent)({name:"ElTooltipTrigger"});var jr=et((0,l.defineComponent)({...Nr,props:ur,setup(e,{expose:t}){const n=e,r=it("tooltip"),{controlled:o,id:i,open:s,onOpen:a,onClose:c,onToggle:u}=(0,l.inject)($n,void 0),p=(0,l.ref)(null),f=()=>{if((0,l.unref)(o)||n.disabled)return!0},d=(0,l.toRef)(n,"trigger"),h=Sr(f,wr(d,"hover",a)),m=Sr(f,wr(d,"hover",c)),y=Sr(f,wr(d,"click",(e=>{0===e.button&&u(e)}))),g=Sr(f,wr(d,"focus",a)),v=Sr(f,wr(d,"focus",c)),b=Sr(f,wr(d,"contextmenu",(e=>{e.preventDefault(),u(e)}))),_=Sr(f,(e=>{const{code:t}=e;n.triggerKeys.includes(t)&&(e.preventDefault(),u(e))}));return t({triggerRef:p}),(e,t)=>((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(Ir),{id:(0,l.unref)(i),"virtual-ref":e.virtualRef,open:(0,l.unref)(s),"virtual-triggering":e.virtualTriggering,class:(0,l.normalizeClass)((0,l.unref)(r).e("trigger")),onBlur:(0,l.unref)(v),onClick:(0,l.unref)(y),onContextmenu:(0,l.unref)(b),onFocus:(0,l.unref)(g),onMouseenter:(0,l.unref)(h),onMouseleave:(0,l.unref)(m),onKeydown:(0,l.unref)(_)},{default:(0,l.withCtx)((()=>[(0,l.renderSlot)(e.$slots,"default")])),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}}),[["__file","trigger.vue"]]);const Dr=Je({to:{type:[String,Object],required:!0},disabled:Boolean}),Mr=rn(et((0,l.defineComponent)({__name:"teleport",props:Dr,setup:e=>(e,t)=>e.disabled?(0,l.renderSlot)(e.$slots,"default",{key:0}):((0,l.openBlock)(),(0,l.createBlock)(l.Teleport,{key:1,to:e.to},[(0,l.renderSlot)(e.$slots,"default")],8,["to"]))}),[["__file","teleport.vue"]])),Lr={prefix:Math.floor(1e4*Math.random()),current:0},Rr=Symbol("elIdInjection"),Br=()=>(0,l.getCurrentInstance)()?(0,l.inject)(Rr,Lr):Lr,qr=e=>{const t=Br();Le.oc;const n=ot();return(0,l.computed)((()=>(0,l.unref)(e)||`${n.value}-id-${t.prefix}-${t.current++}`))};let Fr;const Ur=()=>{const e=ot(),t=Br(),n=(0,l.computed)((()=>`${e.value}-popper-container-${t.prefix}`)),r=(0,l.computed)((()=>`#${n.value}`));return{id:n,selector:r}};var Vr=n(69592);const $r=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:o}=e,i={placement:n,strategy:r,...o,modifiers:[...Wr(e),...t]};return function(e,t){t&&(e.modifiers=[...e.modifiers,...null!=t?t:[]])}(i,null==o?void 0:o.modifiers),i};function Wr(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,null!=t?t:12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function Kr(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function zr(e){return e instanceof Kr(e).Element||e instanceof Element}function Hr(e){return e instanceof Kr(e).HTMLElement||e instanceof HTMLElement}function Gr(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Kr(e).ShadowRoot||e instanceof ShadowRoot)}var Qr=Math.max,Xr=Math.min,Yr=Math.round;function Jr(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Zr(){return!/^((?!chrome|android).)*safari/i.test(Jr())}function eo(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Hr(e)&&(o=e.offsetWidth>0&&Yr(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Yr(r.height)/e.offsetHeight||1);var s=(zr(e)?Kr(e):window).visualViewport,a=!Zr()&&n,l=(r.left+(a&&s?s.offsetLeft:0))/o,c=(r.top+(a&&s?s.offsetTop:0))/i,u=r.width/o,p=r.height/i;return{width:u,height:p,top:c,right:l+u,bottom:c+p,left:l,x:l,y:c}}function to(e){var t=Kr(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function no(e){return e?(e.nodeName||"").toLowerCase():null}function ro(e){return((zr(e)?e.ownerDocument:e.document)||window.document).documentElement}function oo(e){return eo(ro(e)).left+to(e).scrollLeft}function io(e){return Kr(e).getComputedStyle(e)}function so(e){var t=io(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function ao(e,t,n){void 0===n&&(n=!1);var r,o,i=Hr(t),s=Hr(t)&&function(e){var t=e.getBoundingClientRect(),n=Yr(t.width)/e.offsetWidth||1,r=Yr(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),a=ro(t),l=eo(e,s,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!n)&&(("body"!==no(t)||so(a))&&(c=(r=t)!==Kr(r)&&Hr(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:to(r)),Hr(t)?((u=eo(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=oo(a))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function lo(e){var t=eo(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function co(e){return"html"===no(e)?e:e.assignedSlot||e.parentNode||(Gr(e)?e.host:null)||ro(e)}function uo(e){return["html","body","#document"].indexOf(no(e))>=0?e.ownerDocument.body:Hr(e)&&so(e)?e:uo(co(e))}function po(e,t){var n;void 0===t&&(t=[]);var r=uo(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Kr(r),s=o?[i].concat(i.visualViewport||[],so(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(po(co(s)))}function fo(e){return["table","td","th"].indexOf(no(e))>=0}function ho(e){return Hr(e)&&"fixed"!==io(e).position?e.offsetParent:null}function mo(e){for(var t=Kr(e),n=ho(e);n&&fo(n)&&"static"===io(n).position;)n=ho(n);return n&&("html"===no(n)||"body"===no(n)&&"static"===io(n).position)?t:n||function(e){var t=/firefox/i.test(Jr());if(/Trident/i.test(Jr())&&Hr(e)&&"fixed"===io(e).position)return null;var n=co(e);for(Gr(n)&&(n=n.host);Hr(n)&&["html","body"].indexOf(no(n))<0;){var r=io(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function yo(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var go={placement:"bottom",modifiers:[],strategy:"absolute"};function vo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function bo(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?go:o;return function(e,t,n){void 0===n&&(n=i);var o,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},go,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:a,setOptions:function(n){var o="function"==typeof n?n(a.options):n;p(),a.options=Object.assign({},i,a.options,o),a.scrollParents={reference:zr(e)?po(e):e.contextElement?po(e.contextElement):[],popper:po(t)};var s,c,f=function(e){var t=yo(e);return or.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((s=[].concat(r,a.options.modifiers),c=s.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return a.orderedModifiers=f.filter((function(e){return e.enabled})),a.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:a,name:t,instance:u,options:r});l.push(i||function(){})}})),u.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,n=e.popper;if(vo(t,n)){a.rects={reference:ao(t,mo(n),"fixed"===a.options.strategy),popper:lo(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<a.orderedModifiers.length;r++)if(!0!==a.reset){var o=a.orderedModifiers[r],i=o.fn,s=o.options,l=void 0===s?{}:s,p=o.name;"function"==typeof i&&(a=i({state:a,options:l,name:p,instance:u})||a)}else a.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){u.forceUpdate(),e(a)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(o())}))}))),s}),destroy:function(){p(),c=!0}};if(!vo(e,t))return u;function p(){l.forEach((function(e){return e()})),l=[]}return u.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var _o={passive:!0};function Eo(e){return e.split("-")[0]}function xo(e){return e.split("-")[1]}function wo(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function So(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?Eo(o):null,s=o?xo(o):null,a=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case zn:t={x:a,y:n.y-r.height};break;case Hn:t={x:a,y:n.y+n.height};break;case Gn:t={x:n.x+n.width,y:l};break;case Qn:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=i?wo(i):null;if(null!=c){var u="y"===c?"height":"width";switch(s){case Jn:t[c]=t[c]-(n[u]/2-r[u]/2);break;case Zn:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var To={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ao(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,p=e.isFixed,f=s.x,d=void 0===f?0:f,h=s.y,m=void 0===h?0:h,y="function"==typeof u?u({x:d,y:m}):{x:d,y:m};d=y.x,m=y.y;var g=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),b=Qn,_=zn,E=window;if(c){var x=mo(n),w="clientHeight",S="clientWidth";x===Kr(n)&&"static"!==io(x=ro(n)).position&&"absolute"===a&&(w="scrollHeight",S="scrollWidth"),(o===zn||(o===Qn||o===Gn)&&i===Zn)&&(_=Hn,m-=(p&&x===E&&E.visualViewport?E.visualViewport.height:x[w])-r.height,m*=l?1:-1),o!==Qn&&(o!==zn&&o!==Hn||i!==Zn)||(b=Gn,d-=(p&&x===E&&E.visualViewport?E.visualViewport.width:x[S])-r.width,d*=l?1:-1)}var T,A=Object.assign({position:a},c&&To),P=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Yr(n*o)/o||0,y:Yr(r*o)/o||0}}({x:d,y:m},Kr(n)):{x:d,y:m};return d=P.x,m=P.y,l?Object.assign({},A,((T={})[_]=v?"0":"",T[b]=g?"0":"",T.transform=(E.devicePixelRatio||1)<=1?"translate("+d+"px, "+m+"px)":"translate3d("+d+"px, "+m+"px, 0)",T)):Object.assign({},A,((t={})[_]=v?m+"px":"",t[b]=g?d+"px":"",t.transform="",t))}const Po={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,s=rr.reduce((function(e,n){return e[n]=function(e,t,n){var r=Eo(e),o=[Qn,zn].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[Qn,Gn].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}(n,t.rects,i),e}),{}),a=s[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}};var Oo={left:"right",right:"left",bottom:"top",top:"bottom"};function Co(e){return e.replace(/left|right|bottom|top/g,(function(e){return Oo[e]}))}var ko={start:"end",end:"start"};function Io(e){return e.replace(/start|end/g,(function(e){return ko[e]}))}function No(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Gr(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function jo(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Do(e,t,n){return t===er?jo(function(e,t){var n=Kr(e),r=ro(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var c=Zr();(c||!c&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+oo(e),y:l}}(e,n)):zr(t)?function(e,t){var n=eo(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):jo(function(e){var t,n=ro(e),r=to(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Qr(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Qr(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+oo(e),l=-r.scrollTop;return"rtl"===io(o||n).direction&&(a+=Qr(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}(ro(e)))}function Mo(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Lo(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function Ro(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,s=void 0===i?e.strategy:i,a=n.boundary,l=void 0===a?"clippingParents":a,c=n.rootBoundary,u=void 0===c?er:c,p=n.elementContext,f=void 0===p?tr:p,d=n.altBoundary,h=void 0!==d&&d,m=n.padding,y=void 0===m?0:m,g=Mo("number"!=typeof y?y:Lo(y,Yn)),v=f===tr?"reference":tr,b=e.rects.popper,_=e.elements[h?v:f],E=function(e,t,n,r){var o="clippingParents"===t?function(e){var t=po(co(e)),n=["absolute","fixed"].indexOf(io(e).position)>=0&&Hr(e)?mo(e):e;return zr(n)?t.filter((function(e){return zr(e)&&No(e,n)&&"body"!==no(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce((function(t,n){var o=Do(e,n,r);return t.top=Qr(o.top,t.top),t.right=Xr(o.right,t.right),t.bottom=Xr(o.bottom,t.bottom),t.left=Qr(o.left,t.left),t}),Do(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(zr(_)?_:_.contextElement||ro(e.elements.popper),l,u,s),x=eo(e.elements.reference),w=So({reference:x,element:b,strategy:"absolute",placement:o}),S=jo(Object.assign({},b,w)),T=f===tr?S:x,A={top:E.top-T.top+g.top,bottom:T.bottom-E.bottom+g.bottom,left:E.left-T.left+g.left,right:T.right-E.right+g.right},P=e.modifiersData.offset;if(f===tr&&P){var O=P[o];Object.keys(A).forEach((function(e){var t=[Gn,Hn].indexOf(e)>=0?1:-1,n=[zn,Hn].indexOf(e)>=0?"y":"x";A[e]+=O[n]*t}))}return A}const Bo={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,s=n.altAxis,a=void 0===s||s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,p=n.rootBoundary,f=n.altBoundary,d=n.flipVariations,h=void 0===d||d,m=n.allowedAutoPlacements,y=t.options.placement,g=Eo(y),v=l||(g!==y&&h?function(e){if(Eo(e)===Xn)return[];var t=Co(e);return[Io(e),t,Io(t)]}(y):[Co(y)]),b=[y].concat(v).reduce((function(e,n){return e.concat(Eo(n)===Xn?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?rr:l,u=xo(r),p=u?a?nr:nr.filter((function(e){return xo(e)===u})):Yn,f=p.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=p);var d=f.reduce((function(t,n){return t[n]=Ro(e,{placement:n,boundary:o,rootBoundary:i,padding:s})[Eo(n)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}(t,{placement:n,boundary:u,rootBoundary:p,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),_=t.rects.reference,E=t.rects.popper,x=new Map,w=!0,S=b[0],T=0;T<b.length;T++){var A=b[T],P=Eo(A),O=xo(A)===Jn,C=[zn,Hn].indexOf(P)>=0,k=C?"width":"height",I=Ro(t,{placement:A,boundary:u,rootBoundary:p,altBoundary:f,padding:c}),N=C?O?Gn:Qn:O?Hn:zn;_[k]>E[k]&&(N=Co(N));var j=Co(N),D=[];if(i&&D.push(I[P]<=0),a&&D.push(I[N]<=0,I[j]<=0),D.every((function(e){return e}))){S=A,w=!1;break}x.set(A,D)}if(w)for(var M=function(e){var t=b.find((function(t){var n=x.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},L=h?3:1;L>0&&"break"!==M(L);L--);t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function qo(e,t,n){return Qr(e,Xr(t,n))}const Fo={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,s=n.altAxis,a=void 0!==s&&s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,p=n.padding,f=n.tether,d=void 0===f||f,h=n.tetherOffset,m=void 0===h?0:h,y=Ro(t,{boundary:l,rootBoundary:c,padding:p,altBoundary:u}),g=Eo(t.placement),v=xo(t.placement),b=!v,_=wo(g),E="x"===_?"y":"x",x=t.modifiersData.popperOffsets,w=t.rects.reference,S=t.rects.popper,T="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,A="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(x){if(i){var C,k="y"===_?zn:Qn,I="y"===_?Hn:Gn,N="y"===_?"height":"width",j=x[_],D=j+y[k],M=j-y[I],L=d?-S[N]/2:0,R=v===Jn?w[N]:S[N],B=v===Jn?-S[N]:-w[N],q=t.elements.arrow,F=d&&q?lo(q):{width:0,height:0},U=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=U[k],$=U[I],W=qo(0,w[N],F[N]),K=b?w[N]/2-L-W-V-A.mainAxis:R-W-V-A.mainAxis,z=b?-w[N]/2+L+W+$+A.mainAxis:B+W+$+A.mainAxis,H=t.elements.arrow&&mo(t.elements.arrow),G=H?"y"===_?H.clientTop||0:H.clientLeft||0:0,Q=null!=(C=null==P?void 0:P[_])?C:0,X=j+z-Q,Y=qo(d?Xr(D,j+K-Q-G):D,j,d?Qr(M,X):M);x[_]=Y,O[_]=Y-j}if(a){var J,Z="x"===_?zn:Qn,ee="x"===_?Hn:Gn,te=x[E],ne="y"===E?"height":"width",re=te+y[Z],oe=te-y[ee],ie=-1!==[zn,Qn].indexOf(g),se=null!=(J=null==P?void 0:P[E])?J:0,ae=ie?re:te-w[ne]-S[ne]-se+A.altAxis,le=ie?te+w[ne]+S[ne]-se-A.altAxis:oe,ce=d&&ie?function(e,t,n){var r=qo(e,t,n);return r>n?n:r}(ae,te,le):qo(d?ae:re,te,d?le:oe);x[E]=ce,O[E]=ce-te}t.modifiersData[r]=O}},requiresIfExists:["offset"]};function Uo(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Vo(e){return[zn,Gn,Hn,Qn].some((function(t){return e[t]>=0}))}var $o=bo({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,s=r.resize,a=void 0===s||s,l=Kr(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,_o)})),a&&l.addEventListener("resize",n.update,_o),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,_o)})),a&&l.removeEventListener("resize",n.update,_o)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=So({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,s=void 0===i||i,a=n.roundOffsets,l=void 0===a||a,c={placement:Eo(t.placement),variation:xo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Ao(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ao(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];Hr(o)&&no(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Hr(r)&&no(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},Po,Bo,Fo,{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Eo(n.placement),l=wo(a),c=[Qn,Gn].indexOf(a)>=0?"height":"width";if(i&&s){var u=function(e,t){return Mo("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Lo(e,Yn))}(o.padding,n),p=lo(i),f="y"===l?zn:Qn,d="y"===l?Hn:Gn,h=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],m=s[l]-n.rects.reference[l],y=mo(i),g=y?"y"===l?y.clientHeight||0:y.clientWidth||0:0,v=h/2-m/2,b=u[f],_=g-p[c]-u[d],E=g/2-p[c]/2+v,x=qo(b,E,_),w=l;n.modifiersData[r]=((t={})[w]=x,t.centerOffset=x-E,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&No(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=Ro(t,{elementContext:"reference"}),a=Ro(t,{altBoundary:!0}),l=Uo(s,r),c=Uo(a,o,i),u=Vo(l),p=Vo(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":p})}}]});const Wo=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:o}=(0,l.inject)(Bn,void 0),i=(0,l.ref)(),s=(0,l.ref)(),a=(0,l.computed)((()=>({name:"eventListeners",enabled:!!e.visible}))),c=(0,l.computed)((()=>{var e;const t=(0,l.unref)(i),n=null!=(e=(0,l.unref)(s))?e:0;return{name:"arrow",enabled:!(0,Vr.A)(t),options:{element:t,padding:n}}})),u=(0,l.computed)((()=>({onFirstUpdate:()=>{m()},...$r(e,[(0,l.unref)(c),(0,l.unref)(a)])}))),p=(0,l.computed)((()=>(e=>{if(Le.oc)return(0,De.F4c)(e)})(e.referenceEl)||(0,l.unref)(r))),{attributes:f,state:d,styles:h,update:m,forceUpdate:y,instanceRef:g}=((e,t,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:e})=>{const t=function(e){const t=Object.keys(e.elements);return{styles:Be(t.map((t=>[t,e.styles[t]||{}]))),attributes:Be(t.map((t=>[t,e.attributes[t]])))}}(e);Object.assign(s.value,t)},requires:["computeStyles"]},o=(0,l.computed)((()=>{const{onFirstUpdate:e,placement:t,strategy:o,modifiers:i}=(0,l.unref)(n);return{onFirstUpdate:e,placement:t||"bottom",strategy:o||"absolute",modifiers:[...i||[],r,{name:"applyStyles",enabled:!1}]}})),i=(0,l.shallowRef)(),s=(0,l.ref)({styles:{popper:{position:(0,l.unref)(o).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),a=()=>{i.value&&(i.value.destroy(),i.value=void 0)};return(0,l.watch)(o,(e=>{const t=(0,l.unref)(i);t&&t.setOptions(e)}),{deep:!0}),(0,l.watch)([e,t],(([e,t])=>{a(),e&&t&&(i.value=$o(e,t,(0,l.unref)(o)))})),(0,l.onBeforeUnmount)((()=>{a()})),{state:(0,l.computed)((()=>{var e;return{...(null==(e=(0,l.unref)(i))?void 0:e.state)||{}}})),styles:(0,l.computed)((()=>(0,l.unref)(s).styles)),attributes:(0,l.computed)((()=>(0,l.unref)(s).attributes)),update:()=>{var e;return null==(e=(0,l.unref)(i))?void 0:e.update()},forceUpdate:()=>{var e;return null==(e=(0,l.unref)(i))?void 0:e.forceUpdate()},instanceRef:(0,l.computed)((()=>(0,l.unref)(i)))}})(p,n,u);return(0,l.watch)(g,(e=>t.value=e)),(0,l.onMounted)((()=>{(0,l.watch)((()=>{var e;return null==(e=(0,l.unref)(p))?void 0:e.getBoundingClientRect()}),(()=>{m()}))})),{attributes:f,arrowRef:i,contentRef:n,instanceRef:g,state:d,styles:h,role:o,forceUpdate:y,update:m}},Ko={current:0},zo=(0,l.ref)(0),Ho=Symbol("elZIndexContextKey"),Go=Symbol("zIndexContextKey"),Qo=Symbol("formContextKey"),Xo=Symbol("formItemContextKey"),Yo="focus-trap.focus-after-trapped",Jo="focus-trap.focus-after-released",Zo={cancelable:!0,bubbles:!1},ei={cancelable:!0,bubbles:!1},ti="focusAfterTrapped",ni="focusAfterReleased",ri=Symbol("elFocusTrap"),oi=(0,l.ref)(),ii=(0,l.ref)(0),si=(0,l.ref)(0);let ai=0;const li=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0||e===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},ci=(e,t)=>{for(const n of e)if(!ui(n,t))return n},ui=(e,t)=>{if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1},pi=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),si.value=window.performance.now(),e!==n&&(e=>e instanceof HTMLInputElement&&"select"in e)(e)&&t&&e.select()}};function fi(e,t){const n=[...e],r=e.indexOf(t);return-1!==r&&n.splice(r,1),n}const di=(()=>{let e=[];return{push:t=>{const n=e[0];n&&t!==n&&n.pause(),e=fi(e,t),e.unshift(t)},remove:t=>{var n,r;e=fi(e,t),null==(r=null==(n=e[0])?void 0:n.resume)||r.call(n)}}})(),hi=()=>{oi.value="pointer",ii.value=window.performance.now()},mi=()=>{oi.value="keyboard",ii.value=window.performance.now()},yi=()=>((0,l.onMounted)((()=>{0===ai&&(document.addEventListener("mousedown",hi),document.addEventListener("touchstart",hi),document.addEventListener("keydown",mi)),ai++})),(0,l.onBeforeUnmount)((()=>{ai--,ai<=0&&(document.removeEventListener("mousedown",hi),document.removeEventListener("touchstart",hi),document.removeEventListener("keydown",mi))})),{focusReason:oi,lastUserFocusTimestamp:ii,lastAutomatedFocusTimestamp:si}),gi=e=>new CustomEvent("focus-trap.focusout-prevented",{...ei,detail:e});let vi=[];const bi=e=>{const t=e;"Escape"===t.key&&vi.forEach((e=>e(t)))},_i=(0,l.defineComponent)({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[ti,ni,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=(0,l.ref)();let r,o;const{focusReason:i}=yi();var s;s=n=>{e.trapped&&!a.paused&&t("release-requested",n)},(0,l.onMounted)((()=>{0===vi.length&&document.addEventListener("keydown",bi),Le.oc&&vi.push(s)})),(0,l.onBeforeUnmount)((()=>{vi=vi.filter((e=>e!==s)),0===vi.length&&Le.oc&&document.removeEventListener("keydown",bi)}));const a={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},c=n=>{if(!e.loop&&!e.trapped)return;if(a.paused)return;const{key:r,altKey:o,ctrlKey:s,metaKey:l,currentTarget:c,shiftKey:u}=n,{loop:p}=e,f="Tab"===r&&!o&&!s&&!l,d=document.activeElement;if(f&&d){const e=c,[r,o]=(e=>{const t=li(e);return[ci(t,e),ci(t.reverse(),e)]})(e);if(r&&o)if(u||d!==o){if(u&&[r,e].includes(d)){const e=gi({focusReason:i.value});t("focusout-prevented",e),e.defaultPrevented||(n.preventDefault(),p&&pi(o,!0))}}else{const e=gi({focusReason:i.value});t("focusout-prevented",e),e.defaultPrevented||(n.preventDefault(),p&&pi(r,!0))}else if(d===e){const e=gi({focusReason:i.value});t("focusout-prevented",e),e.defaultPrevented||n.preventDefault()}}};(0,l.provide)(ri,{focusTrapRef:n,onKeydown:c}),(0,l.watch)((()=>e.focusTrapEl),(e=>{e&&(n.value=e)}),{immediate:!0}),(0,l.watch)([n],(([e],[t])=>{e&&(e.addEventListener("keydown",c),e.addEventListener("focusin",f),e.addEventListener("focusout",d)),t&&(t.removeEventListener("keydown",c),t.removeEventListener("focusin",f),t.removeEventListener("focusout",d))}));const u=e=>{t(ti,e)},p=e=>t(ni,e),f=i=>{const s=(0,l.unref)(n);if(!s)return;const c=i.target,u=i.relatedTarget,p=c&&s.contains(c);e.trapped||u&&s.contains(u)||(r=u),p&&t("focusin",i),a.paused||e.trapped&&(p?o=c:pi(o,!0))},d=r=>{const s=(0,l.unref)(n);if(!a.paused&&s)if(e.trapped){const n=r.relatedTarget;zt(n)||s.contains(n)||setTimeout((()=>{if(!a.paused&&e.trapped){const e=gi({focusReason:i.value});t("focusout-prevented",e),e.defaultPrevented||pi(o,!0)}}),0)}else{const e=r.target;e&&s.contains(e)||t("focusout",r)}};async function h(){await(0,l.nextTick)();const t=(0,l.unref)(n);if(t){di.push(a);const n=t.contains(document.activeElement)?r:document.activeElement;if(r=n,!t.contains(n)){const r=new Event(Yo,Zo);t.addEventListener(Yo,u),t.dispatchEvent(r),r.defaultPrevented||(0,l.nextTick)((()=>{let r=e.focusStartEl;We(r)||(pi(r),document.activeElement!==r&&(r="first")),"first"===r&&((e,t=!1)=>{const n=document.activeElement;for(const r of e)if(pi(r,t),document.activeElement!==n)return})(li(t),!0),document.activeElement!==n&&"container"!==r||pi(t)}))}}}function m(){const e=(0,l.unref)(n);if(e){e.removeEventListener(Yo,u);const t=new CustomEvent(Jo,{...Zo,detail:{focusReason:i.value}});e.addEventListener(Jo,p),e.dispatchEvent(t),t.defaultPrevented||"keyboard"!=i.value&&ii.value>si.value&&!e.contains(document.activeElement)||pi(null!=r?r:document.body),e.removeEventListener(Jo,p),di.remove(a)}}return(0,l.onMounted)((()=>{e.trapped&&h(),(0,l.watch)((()=>e.trapped),(e=>{e?h():m()}))})),(0,l.onBeforeUnmount)((()=>{e.trapped&&m(),n.value&&(n.value.removeEventListener("keydown",c),n.value.removeEventListener("focusin",f),n.value.removeEventListener("focusout",d),n.value=void 0)})),{onKeydown:c}}});var Ei=et(_i,[["render",function(e,t,n,r,o,i){return(0,l.renderSlot)(e.$slots,"default",{handleKeydown:e.onKeydown})}],["__file","focus-trap.vue"]]);const xi=(0,l.defineComponent)({name:"ElPopperContent"}),wi=(0,l.defineComponent)({...xi,props:sr,emits:ar,setup(e,{expose:t,emit:n}){const r=e,{focusStartRef:o,trapped:i,onFocusAfterReleased:s,onFocusAfterTrapped:a,onFocusInTrap:c,onFocusoutPrevented:u,onReleaseRequested:p}=((e,t)=>{const n=(0,l.ref)(!1),r=(0,l.ref)();return{focusStartRef:r,trapped:n,onFocusAfterReleased:e=>{var n;"pointer"!==(null==(n=e.detail)?void 0:n.focusReason)&&(r.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:t=>{e.visible&&!n.value&&(t.target&&(r.value=t.target),n.value=!0)},onFocusoutPrevented:t=>{e.trapping||("pointer"===t.detail.focusReason&&t.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}})(r,n),{attributes:f,arrowRef:d,contentRef:h,styles:m,instanceRef:y,role:g,update:v}=Wo(r),{ariaModal:b,arrowStyle:_,contentAttrs:E,contentClass:x,contentStyle:w,updateZIndex:S}=((e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:o}=(()=>{const e=(0,l.getCurrentInstance)()?(0,l.inject)(Ho,Ko):Ko,t=(0,l.getCurrentInstance)()?(0,l.inject)(Go,void 0):void 0,n=(0,l.computed)((()=>{const e=(0,l.unref)(t);return Qt(e)?e:2e3})),r=(0,l.computed)((()=>n.value+zo.value));return Le.oc||(0,l.inject)(Ho),{initialZIndex:n,currentZIndex:r,nextZIndex:()=>(e.current++,zo.value=e.current,r.value)}})(),i=it("popper"),s=(0,l.computed)((()=>(0,l.unref)(t).popper)),a=(0,l.ref)(Qt(e.zIndex)?e.zIndex:o()),c=(0,l.computed)((()=>[i.b(),i.is("pure",e.pure),i.is(e.effect),e.popperClass])),u=(0,l.computed)((()=>[{zIndex:(0,l.unref)(a)},(0,l.unref)(n).popper,e.popperStyle||{}]));return{ariaModal:(0,l.computed)((()=>"dialog"===r.value?"false":void 0)),arrowStyle:(0,l.computed)((()=>(0,l.unref)(n).arrow||{})),contentAttrs:s,contentClass:c,contentStyle:u,contentZIndex:a,updateZIndex:()=>{a.value=Qt(e.zIndex)?e.zIndex:o()}}})(r,{styles:m,attributes:f,role:g}),T=(0,l.inject)(Xo,void 0),A=(0,l.ref)();let P;(0,l.provide)(qn,{arrowStyle:_,arrowRef:d,arrowOffset:A}),T&&(0,l.provide)(Xo,{...T,addInputId:qe,removeInputId:qe});const O=(e=!0)=>{v(),e&&S()},C=()=>{O(!1),r.visible&&r.focusOnShow?i.value=!0:!1===r.visible&&(i.value=!1)};return(0,l.onMounted)((()=>{(0,l.watch)((()=>r.triggerTargetEl),((e,t)=>{null==P||P(),P=void 0;const n=(0,l.unref)(e||h.value),o=(0,l.unref)(t||h.value);Xt(n)&&(P=(0,l.watch)([g,()=>r.ariaLabel,b,()=>r.id],(e=>{["role","aria-label","aria-modal","id"].forEach(((t,r)=>{zt(e[r])?n.removeAttribute(t):n.setAttribute(t,e[r])}))}),{immediate:!0})),o!==n&&Xt(o)&&["role","aria-label","aria-modal","id"].forEach((e=>{o.removeAttribute(e)}))}),{immediate:!0}),(0,l.watch)((()=>r.visible),C,{immediate:!0})})),(0,l.onBeforeUnmount)((()=>{null==P||P(),P=void 0})),t({popperContentRef:h,popperInstanceRef:y,updatePopper:O,contentStyle:w}),(e,t)=>((0,l.openBlock)(),(0,l.createElementBlock)("div",(0,l.mergeProps)({ref_key:"contentRef",ref:h},(0,l.unref)(E),{style:(0,l.unref)(w),class:(0,l.unref)(x),tabindex:"-1",onMouseenter:t=>e.$emit("mouseenter",t),onMouseleave:t=>e.$emit("mouseleave",t)}),[(0,l.createVNode)((0,l.unref)(Ei),{trapped:(0,l.unref)(i),"trap-on-focus-in":!0,"focus-trap-el":(0,l.unref)(h),"focus-start-el":(0,l.unref)(o),onFocusAfterTrapped:(0,l.unref)(a),onFocusAfterReleased:(0,l.unref)(s),onFocusin:(0,l.unref)(c),onFocusoutPrevented:(0,l.unref)(u),onReleaseRequested:(0,l.unref)(p)},{default:(0,l.withCtx)((()=>[(0,l.renderSlot)(e.$slots,"default")])),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16,["onMouseenter","onMouseleave"]))}});var Si=et(wi,[["__file","content.vue"]]);const Ti=(0,l.defineComponent)({name:"ElTooltipContent",inheritAttrs:!1}),Ai=(0,l.defineComponent)({...Ti,props:lr,setup(e,{expose:t}){const n=e,{selector:r}=Ur(),o=it("tooltip"),i=(0,l.ref)(null);let s;const{controlled:a,id:c,open:u,trigger:p,onClose:f,onOpen:d,onShow:h,onHide:m,onBeforeShow:y,onBeforeHide:g}=(0,l.inject)($n,void 0),v=(0,l.computed)((()=>n.transition||`${o.namespace.value}-fade-in-linear`)),b=(0,l.computed)((()=>n.persistent));(0,l.onBeforeUnmount)((()=>{null==s||s()}));const _=(0,l.computed)((()=>!!(0,l.unref)(b)||(0,l.unref)(u))),E=(0,l.computed)((()=>!n.disabled&&(0,l.unref)(u))),x=(0,l.computed)((()=>n.appendTo||r.value)),w=(0,l.computed)((()=>{var e;return null!=(e=n.style)?e:{}})),S=(0,l.computed)((()=>!(0,l.unref)(u))),T=()=>{m()},A=()=>{if((0,l.unref)(a))return!0},P=Sr(A,(()=>{n.enterable&&"hover"===(0,l.unref)(p)&&d()})),O=Sr(A,(()=>{"hover"===(0,l.unref)(p)&&f()})),C=()=>{var e,t;null==(t=null==(e=i.value)?void 0:e.updatePopper)||t.call(e),null==y||y()},k=()=>{null==g||g()},I=()=>{h(),s=(0,De.X2F)((0,l.computed)((()=>{var e;return null==(e=i.value)?void 0:e.popperContentRef})),(()=>{(0,l.unref)(a)||"hover"!==(0,l.unref)(p)&&f()}))},N=()=>{n.virtualTriggering||f()};return(0,l.watch)((()=>(0,l.unref)(u)),(e=>{e||null==s||s()}),{flush:"post"}),(0,l.watch)((()=>n.content),(()=>{var e,t;null==(t=null==(e=i.value)?void 0:e.updatePopper)||t.call(e)})),t({contentRef:i}),(e,t)=>((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(Mr),{disabled:!e.teleported,to:(0,l.unref)(x)},{default:(0,l.withCtx)((()=>[(0,l.createVNode)(l.Transition,{name:(0,l.unref)(v),onAfterLeave:T,onBeforeEnter:C,onAfterEnter:I,onBeforeLeave:k},{default:(0,l.withCtx)((()=>[(0,l.unref)(_)?(0,l.withDirectives)(((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(Si),(0,l.mergeProps)({key:0,id:(0,l.unref)(c),ref_key:"contentRef",ref:i},e.$attrs,{"aria-label":e.ariaLabel,"aria-hidden":(0,l.unref)(S),"boundaries-padding":e.boundariesPadding,"fallback-placements":e.fallbackPlacements,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,placement:e.placement,"popper-options":e.popperOptions,strategy:e.strategy,effect:e.effect,enterable:e.enterable,pure:e.pure,"popper-class":e.popperClass,"popper-style":[e.popperStyle,(0,l.unref)(w)],"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,visible:(0,l.unref)(E),"z-index":e.zIndex,onMouseenter:(0,l.unref)(P),onMouseleave:(0,l.unref)(O),onBlur:N,onClose:(0,l.unref)(f)}),{default:(0,l.withCtx)((()=>[(0,l.renderSlot)(e.$slots,"default")])),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[l.vShow,(0,l.unref)(E)]]):(0,l.createCommentVNode)("v-if",!0)])),_:3},8,["name"])])),_:3},8,["disabled","to"]))}});var Pi=et(Ai,[["__file","content.vue"]]);const Oi=(0,l.defineComponent)({name:"ElPopperArrow",inheritAttrs:!1});var Ci=et((0,l.defineComponent)({...Oi,props:gr,setup(e,{expose:t}){const n=e,r=it("popper"),{arrowOffset:o,arrowRef:i,arrowStyle:s}=(0,l.inject)(qn,void 0);return(0,l.watch)((()=>n.arrowOffset),(e=>{o.value=e})),(0,l.onBeforeUnmount)((()=>{i.value=void 0})),t({arrowRef:i}),(e,t)=>((0,l.openBlock)(),(0,l.createElementBlock)("span",{ref_key:"arrowRef",ref:i,class:(0,l.normalizeClass)((0,l.unref)(r).e("arrow")),style:(0,l.normalizeStyle)((0,l.unref)(s)),"data-popper-arrow":""},null,6))}}),[["__file","arrow.vue"]]);const ki=(0,l.defineComponent)({name:"ElTooltip"}),Ii=(0,l.defineComponent)({...ki,props:Er,emits:xr,setup(e,{expose:t,emit:n}){const r=e;(()=>{const{id:e,selector:t}=Ur();(0,l.onBeforeMount)((()=>{Le.oc&&(Fr&&document.body.querySelector(t.value)||(Fr=(e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t})(e.value)))}))})();const o=qr(),i=(0,l.ref)(),s=(0,l.ref)(),a=()=>{var e;const t=(0,l.unref)(i);t&&(null==(e=t.popperInstanceRef)||e.update())},c=(0,l.ref)(!1),u=(0,l.ref)(),{show:p,hide:f,hasUpdateHandler:d}=_r({indicator:c,toggleReason:u}),{onOpen:h,onClose:m}=(({showAfter:e,hideAfter:t,autoClose:n,open:r,close:o})=>{const{registerTimeout:i}=Wn(),{registerTimeout:s,cancelTimeout:a}=Wn();return{onOpen:t=>{i((()=>{r(t);const e=(0,l.unref)(n);Qt(e)&&e>0&&s((()=>{o(t)}),e)}),(0,l.unref)(e))},onClose:e=>{a(),i((()=>{o(e)}),(0,l.unref)(t))}}})({showAfter:(0,l.toRef)(r,"showAfter"),hideAfter:(0,l.toRef)(r,"hideAfter"),autoClose:(0,l.toRef)(r,"autoClose"),open:p,close:f}),y=(0,l.computed)((()=>Gt(r.visible)&&!d.value));return(0,l.provide)($n,{controlled:y,id:o,open:(0,l.readonly)(c),trigger:(0,l.toRef)(r,"trigger"),onOpen:e=>{h(e)},onClose:e=>{m(e)},onToggle:e=>{(0,l.unref)(c)?m(e):h(e)},onShow:()=>{n("show",u.value)},onHide:()=>{n("hide",u.value)},onBeforeShow:()=>{n("before-show",u.value)},onBeforeHide:()=>{n("before-hide",u.value)},updatePopper:a}),(0,l.watch)((()=>r.disabled),(e=>{e&&c.value&&(c.value=!1)})),(0,l.onDeactivated)((()=>c.value&&f())),t({popperRef:i,contentRef:s,isFocusInsideContent:e=>{var t,n;const r=null==(n=null==(t=s.value)?void 0:t.contentRef)?void 0:n.popperContentRef,o=(null==e?void 0:e.relatedTarget)||document.activeElement;return r&&r.contains(o)},updatePopper:a,onOpen:h,onClose:m,hide:f}),(e,t)=>((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(Vn),{ref_key:"popperRef",ref:i,role:e.role},{default:(0,l.withCtx)((()=>[(0,l.createVNode)(jr,{disabled:e.disabled,trigger:e.trigger,"trigger-keys":e.triggerKeys,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering},{default:(0,l.withCtx)((()=>[e.$slots.default?(0,l.renderSlot)(e.$slots,"default",{key:0}):(0,l.createCommentVNode)("v-if",!0)])),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),(0,l.createVNode)(Pi,{ref_key:"contentRef",ref:s,"aria-label":e.ariaLabel,"boundaries-padding":e.boundariesPadding,content:e.content,disabled:e.disabled,effect:e.effect,enterable:e.enterable,"fallback-placements":e.fallbackPlacements,"hide-after":e.hideAfter,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,persistent:e.persistent,"popper-class":e.popperClass,"popper-style":e.popperStyle,placement:e.placement,"popper-options":e.popperOptions,pure:e.pure,"raw-content":e.rawContent,"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,"show-after":e.showAfter,strategy:e.strategy,teleported:e.teleported,transition:e.transition,"virtual-triggering":e.virtualTriggering,"z-index":e.zIndex,"append-to":e.appendTo},{default:(0,l.withCtx)((()=>[(0,l.renderSlot)(e.$slots,"content",{},(()=>[e.rawContent?((0,l.openBlock)(),(0,l.createElementBlock)("span",{key:0,innerHTML:e.content},null,8,["innerHTML"])):((0,l.openBlock)(),(0,l.createElementBlock)("span",{key:1},(0,l.toDisplayString)(e.content),1))])),e.showArrow?((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(Ci),{key:0,"arrow-offset":e.arrowOffset},null,8,["arrow-offset"])):(0,l.createCommentVNode)("v-if",!0)])),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])])),_:3},8,["role"]))}}),Ni=rn(et(Ii,[["__file","tooltip.vue"]]));var ji=function(){return ji=cn()||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ji.apply(this,arguments)},Di=function(e){var t;return null===(t=e.target)||void 0===t?void 0:t.closest("td")},Mi=function(e,t){var n,r=null;return L()(n=e.columns).call(n,(function(e){e.id===t&&(r=e)})),r},Li=function(e,t,n){var r=(t.className||"").match(new RegExp("".concat(n,"-table_[^\\s]+"),"gm"));return r?Mi(e,r[0]):null},Ri=function(e,t){if(!e)throw new Error("Row is required when get row identity");if("string"==typeof t){if(!N()(t).call(t,"."))return"".concat(e[t]);for(var n=e,r=0,o=t.split(".");r<o.length;r++)n=n[o[r]];return"".concat(n)}if("function"==typeof t)return t.call(null,e)},Bi=function(e,t){var n,r={};return L()(n=e||[]).call(n,(function(e,n){r[Ri(e,t)]={row:e,index:n}})),r};function qi(e){return""===e||void 0!==e&&(e=gn()(e,10),bn()(e)&&(e="")),e}function Fi(e){return""===e||void 0!==e&&(e=qi(e),bn()(e)&&(e=80)),e}function Ui(e,t,n){var r=!1,o=B()(e).call(e,t),i=-1!==o,s=function(s){var a;"add"===s?e.push(t):pn()(e).call(e,o,1),r=!0,(0,V.isArray)(t.children)&&L()(a=t.children).call(a,(function(t){Ui(e,t,null!=n?n:!i)}))};return(0,V.isBoolean)(n)?n&&!i?s("add"):!n&&i&&s("remove"):s(i?"remove":"add"),r}function Vi(e,t,n,r){void 0===n&&(n="children"),void 0===r&&(r="hasChildren");var o=function(e){return!(h()(e)&&e.length)};function i(e,s,a){t(e,s,a),L()(s).call(s,(function(e){if(e[r])t(e,null,a+1);else{var s=e[n];o(s)||i(e,s,a+1)}}))}L()(e).call(e,(function(e){if(e[r])t(e,null,0);else{var s=e[n];o(s)||i(e,s,0)}}))}var $i=null;function Wi(e){return e.children?(t=e.children,n=Wi,(0,Bt.A)(Rn(t,n),1)):[e];var t,n}function Ki(e,t){return e+t.colSpan}var zi=function(e,t,n,r){var o,i=0,s=e,a=n.states.columns.value;if(r){var l=Wi(r[e]),c=_()(a).call(a,0,B()(a).call(a,l[0]));s=(i=u()(c).call(c,Ki,0))+u()(l).call(l,Ki,0)-1}else i=e;switch(t){case"left":s<n.states.fixedLeafColumnsLength.value&&(o="left");break;case"right":i>=a.length-n.states.rightFixedLeafColumnsLength.value&&(o="right");break;default:s<n.states.fixedLeafColumnsLength.value?o="left":i>=a.length-n.states.rightFixedLeafColumnsLength.value&&(o="right")}return o?{direction:o,start:i,after:s}:{}},Hi=function(e,t,n,r,o,i){void 0===i&&(i=0);var s=[],a=zi(t,n,r,o),l=a.direction,c=a.start,u=a.after;if(l){var p,f="left"===l;s.push(F()(p="".concat(e,"-fixed-column--")).call(p,l)),f&&u+i===r.states.fixedLeafColumnsLength.value-1?s.push("is-last-column"):f||c-i!=r.states.columns.value.length-r.states.rightFixedLeafColumnsLength.value||s.push("is-first-column")}return s};function Gi(e,t){return e+(null===t.realWidth||bn()(t.realWidth)?Number(t.width):t.realWidth)}var Qi=function(e,t,n,r){var o=zi(e,t,n,r),i=o.direction,s=o.start,a=void 0===s?0:s,l=o.after,c=void 0===l?0:l;if(i){var p,f,d,h={},m="left"===i,y=n.states.columns.value;return m?h.left=u()(p=_()(y).call(y,0,a)).call(p,Gi,0):h.right=u()(f=En()(d=_()(y).call(y,c+1)).call(d)).call(f,Gi,0),h}},Xi=function(e,t){e&&(bn()(e[t])||(e[t]="".concat(e[t],"px")))};var Yi=function(){return Yi=cn()||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Yi.apply(this,arguments)};var Ji=function(){return Ji=cn()||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ji.apply(this,arguments)},Zi=function(e){var t=[];return L()(e).call(e,(function(e){e.children&&e.children.length>0?t.push.apply(t,Zi(e.children)):t.push(e)})),t};const es=function(){var e,t=(0,l.getCurrentInstance)(),n=(0,l.toRefs)(null===(e=t.proxy)||void 0===e?void 0:e.$props).size,r=(0,l.ref)(null),o=(0,l.ref)([]),i=(0,l.ref)([]),s=(0,l.ref)(!1),a=(0,l.ref)([]),c=(0,l.ref)([]),p=(0,l.ref)([]),d=(0,l.ref)([]),m=(0,l.ref)([]),g=(0,l.ref)([]),v=(0,l.ref)([]),b=(0,l.ref)([]),E=(0,l.ref)(0),w=(0,l.ref)(0),T=(0,l.ref)(0),P=(0,l.ref)(!1),C=(0,l.ref)([]),k=(0,l.ref)(!1),I=(0,l.ref)(!1),j=(0,l.ref)(null),D=(0,l.ref)({}),M=(0,l.ref)(null),R=(0,l.ref)(null),B=(0,l.ref)(null),q=(0,l.ref)(null),U=(0,l.ref)(null);(0,l.watch)(o,(function(){return t.state&&K(!1)}),{deep:!0});var $=function(e){var t;null===(t=e.children)||void 0===t||L()(t).call(t,(function(t){t.fixed=e.fixed,$(t)}))},W=function(){var e,t,n,r,o,i,l,u,f,h;L()(e=a.value).call(e,(function(e){$(e)})),d.value=S()(t=a.value).call(t,(function(e){return!0===e.fixed||"left"===e.fixed})),m.value=S()(n=a.value).call(n,(function(e){return"right"===e.fixed})),d.value.length>0&&a.value[0]&&"selection"===a.value[0].type&&!a.value[0].fixed&&(a.value[0].fixed=!0,d.value.unshift(a.value[0]));var y=S()(r=a.value).call(r,(function(e){return!e.fixed}));c.value=F()(o=F()(i=F()(l=[]).call(l,d.value)).call(i,y)).call(o,m.value);var g=Zi(y),v=Zi(d.value),b=Zi(m.value);E.value=g.length,w.value=v.length,T.value=b.length,p.value=F()(u=F()(f=F()(h=[]).call(h,v)).call(f,g)).call(u,b),s.value=d.value.length>0||m.value.length>0},K=function(e,n){void 0===n&&(n=!1),e&&W(),n?t.state.doLayout():t.state.debouncedUpdateLayout()},z=function(e){var n;if(!t||!t.store)return 0;var r=t.store.states.treeData,o=0,i=null===(n=r.value[e])||void 0===n?void 0:n.children;return i&&(o+=i.length,L()(i).call(i,(function(e){o+=z(e)}))),o},H=function(e,t,n){R.value&&R.value!==e&&(R.value.order=null),R.value=e,B.value=t,q.value=n},G=function(){var e,t=(0,l.unref)(i);L()(e=f()(D.value)).call(e,(function(e){var n=D.value[e];if(n&&0!==n.length){var r=Mi({columns:p.value},e);r&&r.filterMethod&&(t=S()(t).call(t,(function(e){return O()(n).call(n,(function(t){return r.filterMethod.call(null,t,e,r)}))})))}})),M.value=t},Q=function(){o.value=function(e,t){var n=t.sortingColumn;return n&&"string"!=typeof n.sortable?function(e,t,n,r,o){var i,s;if(!t&&!r&&(!o||h()(o)&&!o.length))return e;n="string"==typeof n?"descending"===n?-1:1:n&&n<0?-1:1;var a=r?null:function(n,r){return o?(h()(o)||(o=[o]),y()(o).call(o,(function(t){return"string"==typeof t?xn(n,t):t(n,r,e)}))):("$key"!==t&&(0,V.isObject)(n)&&"$value"in n&&(n=n.$value),[(0,V.isObject)(n)?xn(n,t):n])};return y()(i=x()(s=y()(e).call(e,(function(e,t){return{value:e,index:t,key:a?a(e,t):null}}))).call(s,(function(e,t){var o=function(e,t){if(r)return r(e.value,t.value);for(var n=0,o=e.key.length;n<o;n++){if(e.key[n]<t.key[n])return-1;if(e.key[n]>t.key[n])return 1}return 0}(e,t);return o||(o=e.index-t.index),o*+n}))).call(i,(function(e){return e.value}))}(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy):e}(M.value,{sortingColumn:R.value,sortProp:B.value,sortOrder:q.value})},X=function(e){var t=(0,l.getCurrentInstance)(),n=(0,l.ref)(!1),r=(0,l.ref)([]);return{updateExpandRows:function(){var t=e.data.value||[],o=e.rowKey.value;if(n.value)r.value=_()(t).call(t);else if(o){var i=Bi(r.value,o);r.value=u()(t).call(t,(function(e,t){var n=Ri(t,o);return i[n]&&e.push(t),e}),[])}else r.value=[]},toggleRowExpansion:function(e,n){var o;Ui(r.value,e,n)&&t.emit("expand-change",e,_()(o=r.value).call(o))},setExpandRowKeys:function(n){t.store.assertRowKey();var o=e.data.value||[],i=e.rowKey.value,s=Bi(o,i);r.value=u()(n).call(n,(function(e,t){var n=s[t];return n&&e.push(n.row),e}),[])},isRowExpanded:function(t){var n,o=e.rowKey.value;return o?!!Bi(r.value,o)[Ri(t,o)]:N()(n=r.value).call(n,t)},states:{expandRows:r,defaultExpandAll:n}}}({data:o,rowKey:r}),Y=X.setExpandRowKeys,J=X.toggleRowExpansion,Z=X.updateExpandRows,ee=X.states,te=X.isRowExpanded,ne=function(e){var t=(0,l.ref)([]),n=(0,l.ref)({}),r=(0,l.ref)(16),o=(0,l.ref)(!1),i=(0,l.ref)({}),s=(0,l.ref)("hasChildren"),a=(0,l.ref)("children"),c=(0,l.getCurrentInstance)(),u=(0,l.computed)((function(){if(!e.rowKey.value)return{};var t=e.data.value||[];return d(t)})),p=(0,l.computed)((function(){var t=e.rowKey.value,n=f()(i.value),r={};return n.length?(L()(n).call(n,(function(e){if(i.value[e].length){var n,o={children:[]};L()(n=i.value[e]).call(n,(function(e){var n=Ri(e,t);o.children.push(n),e[s.value]&&!r[n]&&(r[n]={children:[]})})),r[e]=o}})),r):r})),d=function(t){var n=e.rowKey.value,r={};return Vi(t,(function(e,t,i){var s=Ri(e,n);h()(t)?r[s]={children:y()(t).call(t,(function(e){return Ri(e,n)})),level:i}:o.value&&(r[s]={children:[],lazy:!0,level:i})}),a.value,s.value),r},m=function(e,r){var i,s;void 0===e&&(e=!1),void 0===r&&(r=null===(i=c.store)||void 0===i?void 0:i.states.defaultExpandAll.value);var a=u.value,d=p.value,h=f()(a),m={};if(h.length){var y=(0,l.unref)(n),g=[],v=function(n,o){var i;if(e)return t.value?r||N()(i=t.value).call(i,o):!(!r&&!(null==n?void 0:n.expanded));var s,a=r||t.value&&N()(s=t.value).call(s,o);return!(!(null==n?void 0:n.expanded)&&!a)};L()(h).call(h,(function(e){var t=y[e],n=Yi({},a[e]);if(n.expanded=v(t,e),n.lazy){var r=t||{},o=r.loaded,i=void 0!==o&&o,s=r.loading,l=void 0!==s&&s;n.loaded=!!i,n.loading=!!l,g.push(e)}m[e]=n}));var b=f()(d);o.value&&b.length&&g.length&&L()(b).call(b,(function(e){var t=y[e],n=d[e].children;if(N()(g).call(g,e)){if(0!==m[e].children.length)throw new Error("[ElTable]children must be an empty array.");m[e].children=n}else{var r=t||{},o=r.loaded,i=void 0!==o&&o,s=r.loading,a=void 0!==s&&s;m[e]={lazy:!0,loaded:!!i,loading:!!a,expanded:v(t,e),children:n,level:""}}}))}n.value=m,null===(s=c.store)||void 0===s||s.updateTableScrollY()};(0,l.watch)((function(){return t.value}),(function(){m(!0)})),(0,l.watch)((function(){return u.value}),(function(){m()})),(0,l.watch)((function(){return p.value}),(function(){m()}));var g=function(t,r){c.store.assertRowKey();var o=e.rowKey.value,i=Ri(t,o),s=i&&n.value[i];if(i&&s&&"expanded"in s){var a=s.expanded;r=void 0===r?!s.expanded:r,n.value[i].expanded=r,a!==r&&c.emit("expand-change",t,r),c.store.updateTableScrollY()}},v=function(e,t,r){var o=c.props.load;o&&!n.value[t].loaded&&(n.value[t].loading=!0,o(e,r,(function(r){if(!h()(r))throw new TypeError("[ElTable] data must be an array");n.value[t].loading=!1,n.value[t].loaded=!0,n.value[t].expanded=!0,r.length&&(i.value[t]=r),c.emit("expand-change",e,!0)})))};return{loadData:v,loadOrToggle:function(t){c.store.assertRowKey();var r=e.rowKey.value,i=Ri(t,r),s=n.value[i];o.value&&s&&"loaded"in s&&!s.loaded?v(t,i,s):g(t,void 0)},toggleTreeExpansion:g,updateTreeExpandKeys:function(e){t.value=e,m()},updateTreeData:m,normalize:d,states:{expandRowKeys:t,treeData:n,indent:r,lazy:o,lazyTreeNodeMap:i,lazyColumnIdentifier:s,childrenColumnName:a}}}({data:o,rowKey:r}),re=ne.updateTreeExpandKeys,oe=ne.toggleTreeExpansion,ie=ne.updateTreeData,se=ne.loadOrToggle,ae=ne.states,le=function(e){var t=(0,l.getCurrentInstance)(),n=(0,l.ref)(null),r=(0,l.ref)(null),o=function(){n.value=null},i=function(n){var o,i=e.data,s=e.rowKey,a=null;s.value&&(a=A()(o=(0,l.unref)(i)||[]).call(o,(function(e){return Ri(e,s.value)===n}))),r.value=a,t.emit("current-change",r.value,null)};return{setCurrentRowKey:function(e){t.store.assertRowKey(),n.value=e,i(e)},restoreCurrentRowKey:o,setCurrentRowByKey:i,updateCurrentRow:function(e){var n=r.value;if(e&&e!==n)return r.value=e,void t.emit("current-change",r.value,n);!e&&n&&(r.value=null,t.emit("current-change",null,n))},updateCurrentRowData:function(){var s=e.rowKey.value,a=e.data.value||[],l=r.value;if(!N()(a).call(a,l)&&l){if(s){var c=Ri(l,s);i(c)}else r.value=null;null===r.value&&t.emit("current-change",null,l)}else n.value&&(i(n.value),o())},states:{_currentRowKey:n,currentRow:r}}}({data:o,rowKey:r}),ce=le.updateCurrentRowData,ue=le.updateCurrentRow,pe=le.setCurrentRowKey,fe=le.states;return{assertRowKey:function(){if(!r.value)throw new Error("[ElTable] prop row-key is required")},updateColumns:W,scheduleLayout:K,isSelected:function(e){var t;return N()(t=C.value).call(t,e)},clearSelection:function(){P.value=!1;var e=C.value;C.value=[],e.length&&t.emit("selection-change",[])},cleanSelection:function(){var e;if(r.value){e=[];var n=Bi(C.value,r.value),i=Bi(o.value,r.value);for(var s in n)(0,V.hasOwn)(n,s)&&!i[s]&&e.push(n[s].row)}else{var a;e=S()(a=C.value).call(a,(function(e){var t;return!N()(t=o.value).call(t,e)}))}if(e.length){var l,c=S()(l=C.value).call(l,(function(t){return!N()(e).call(e,t)}));C.value=c,t.emit("selection-change",_()(c).call(c))}},getSelectionRows:function(){var e;return _()(e=C.value||[]).call(e)},toggleRowSelection:function(e,n,r){if(void 0===n&&(n=void 0),void 0===r&&(r=!0),Ui(C.value,e,n)){var o,i=_()(o=C.value||[]).call(o);r&&t.emit("select",i,e),t.emit("selection-change",i)}},_toggleAllSelection:function(){var e,n,r,i,s=I.value?!P.value:!(P.value||C.value.length);P.value=s;var a,l=!1,c=0,u=null===(i=null===(r=null==t?void 0:t.store)||void 0===r?void 0:r.states)||void 0===i?void 0:i.rowKey.value;L()(e=o.value).call(e,(function(e,t){var n=t+c;j.value?j.value.call(null,e,n)&&Ui(C.value,e,s)&&(l=!0):Ui(C.value,e,s)&&(l=!0),c+=z(Ri(e,u))})),l&&t.emit("selection-change",C.value?_()(a=C.value).call(a):[]),t.emit("select-all",_()(n=C.value||[]).call(n))},toggleAllSelection:null,updateSelectionByRowKey:function(){var e,t=Bi(C.value,r.value);L()(e=o.value).call(e,(function(e){var n=Ri(e,r.value),o=t[n];o&&(C.value[o.index]=e)}))},updateAllSelected:function(){var e,n,i;if(0!==(null===(e=o.value)||void 0===e?void 0:e.length)){var s;r.value&&(s=Bi(C.value,r.value));for(var a,l,c=!0,u=0,p=0,f=0,d=(o.value||[]).length;f<d;f++){var h=null===(i=null===(n=null==t?void 0:t.store)||void 0===n?void 0:n.states)||void 0===i?void 0:i.rowKey.value,m=f+p,y=o.value[f],g=j.value&&j.value.call(null,y,m);if(a=y,l=void 0,s?s[Ri(a,r.value)]:N()(l=C.value).call(l,a))u++;else if(!j.value||g){c=!1;break}p+=z(Ri(y,h))}0===u&&(c=!1),P.value=c}else P.value=!1},updateFilters:function(e,t){h()(e)||(e=[e]);var n={};return L()(e).call(e,(function(e){D.value[e.id]=t,n[e.columnKey||e.id]=t})),n},updateCurrentRow:ue,updateSort:H,execFilter:G,execSort:Q,execQuery:function(e){void 0===e&&(e=void 0),e&&S()(e)||G(),Q()},clearFilter:function(e){var n=t.refs.tableHeaderRef;if(n){var r=cn()({},n.filterPanels),o=f()(r);if(o.length)if("string"==typeof e&&(e=[e]),h()(e)){var i=y()(e).call(e,(function(e){return function(e,t){for(var n=null,r=0;r<e.columns.length;r++){var o=e.columns[r];if(o.columnKey===t){n=o;break}}return n||(0,V.throwError)("ElTable","No column matching with column-key: ".concat(t)),n}({columns:p.value},e)}));L()(o).call(o,(function(e){var t=A()(i).call(i,(function(t){return t.id===e}));t&&(t.filteredValue=[])})),t.store.commit("filterChange",{column:i,values:[],silent:!0,multi:!0})}else L()(o).call(o,(function(e){var t,n=A()(t=p.value).call(t,(function(t){return t.id===e}));n&&(n.filteredValue=[])})),D.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})}},clearSort:function(){R.value&&(H(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},toggleRowExpansion:J,setExpandRowKeysAdapter:function(e){Y(e),re(e)},setCurrentRowKey:pe,toggleRowExpansionAdapter:function(e,t){var n,r=O()(n=p.value).call(n,(function(e){return"expand"===e.type}));r?J(e,t):oe(e,t)},isRowExpanded:te,updateExpandRows:Z,updateCurrentRowData:ce,loadOrToggle:se,updateTreeData:ie,states:Ji(Ji(Ji({tableSize:n,rowKey:r,data:o,_data:i,isComplex:s,_columns:a,originColumns:c,columns:p,fixedColumns:d,rightFixedColumns:m,leafColumns:g,fixedLeafColumns:v,rightFixedLeafColumns:b,updateOrderFns:[],leafColumnsLength:E,fixedLeafColumnsLength:w,rightFixedLeafColumnsLength:T,isAllSelected:P,selection:C,reserveSelection:k,selectOnIndeterminate:I,selectable:j,filters:D,filteredData:M,sortingColumn:R,sortProp:B,sortOrder:q,hoverRow:U},ee),ae),fe)}};var ts=function(){return ts=cn()||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ts.apply(this,arguments)};function ns(e,t){return y()(e).call(e,(function(e){var n;return e.id===t.id?t:((null===(n=e.children)||void 0===n?void 0:n.length)&&(e.children=ns(e.children,t)),e)}))}function rs(e){L()(e).call(e,(function(e){var t,n;e.no=null===(t=e.getColumnIndex)||void 0===t?void 0:t.call(e),(null===(n=e.children)||void 0===n?void 0:n.length)&&rs(e.children)})),x()(e).call(e,(function(e,t){return e.no-t.no}))}const os=function(){var e=(0,l.getCurrentInstance)(),t=es(),n=(0,je.useNamespace)("table"),r={setData:function(t,n){var r=(0,l.unref)(t._data)!==n;t.data.value=n,t._data.value=n,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),(0,l.unref)(t.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):r?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn:function(t,n,r,o){var i=(0,l.unref)(t._columns),s=[];r?(r&&!r.children&&(r.children=[]),r.children.push(n),s=ns(i,r)):(i.push(n),s=i),rs(s),t._columns.value=s,t.updateOrderFns.push(o),"selection"===n.type&&(t.selectable.value=n.selectable,t.reserveSelection.value=n.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder:function(t,n){var r;(null===(r=n.getColumnIndex)||void 0===r?void 0:r.call(n))!==n.no&&(rs(t._columns.value),e.$ready&&e.store.updateColumns())},removeColumn:function(t,n,r,o){var i,s,a=(0,l.unref)(t._columns)||[];if(r){var c,u;pn()(c=r.children).call(c,dn()(u=r.children).call(u,(function(e){return e.id===n.id})),1),(0,l.nextTick)((function(){var e;0===(null===(e=r.children)||void 0===e?void 0:e.length)&&delete r.children})),t._columns.value=ns(a,r)}else{var p=B()(a).call(a,n);p>-1&&(pn()(a).call(a,p,1),t._columns.value=a)}var f=B()(i=t.updateOrderFns).call(i,o);f>-1&&pn()(s=t.updateOrderFns).call(s,f,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort:function(t,n){var r=n.prop,o=n.order,i=n.init;if(r){var s,a=A()(s=(0,l.unref)(t.columns)).call(s,(function(e){return e.property===r}));a&&(a.order=o,e.store.updateSort(a,r,o),e.store.commit("changeSortCondition",{init:i}))}},changeSortCondition:function(t,n){var r=t.sortingColumn,o=t.sortProp,i=t.sortOrder,s=(0,l.unref)(r),a=(0,l.unref)(o),c=(0,l.unref)(i);null===c&&(t.sortingColumn.value=null,t.sortProp.value=null),e.store.execQuery({filter:!0}),n&&(n.silent||n.init)||e.emit("sort-change",{column:s,prop:a,order:c}),e.store.updateTableScrollY()},filterChange:function(t,n){var r=n.column,o=mn()(n),i=n.silent,s=e.store.updateFilters(r,o);e.store.execQuery(),i||e.emit("filter-change",s),e.store.updateTableScrollY()},toggleAllSelection:function(){e.store.toggleAllSelection()},rowSelectedChanged:function(t,n){e.store.toggleRowSelection(n),e.store.updateAllSelected()},setHoverRow:function(e,t){e.hoverRow.value=t},setCurrentRow:function(t,n){e.store.updateCurrentRow(n)}};return ts(ts({ns:n},t),{mutations:r,commit:function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o,i=e.store.mutations;if(!i[t])throw new Error("Action not found: ".concat(t));i[t].apply(e,F()(o=[e.store.states]).call(o,n))},updateTableScrollY:function(){(0,l.nextTick)((function(){return e.layout.updateScrollY.apply(e.layout)}))}})};var is,ss=((is={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data"})["treeProps.hasChildren"]={key:"lazyColumnIdentifier",default:"hasChildren"},is["treeProps.children"]={key:"childrenColumnName",default:"children"},is);function as(e,t,n){var r=e,o=ss[t];"object"===(0,an.A)(ss[t])&&(o=o.key,r=r||ss[t].default),n.states[o].value=r}function ls(e,t){if(N()(t).call(t,".")){var n=t.split("."),r=e;return L()(n).call(n,(function(e){r=r[e]})),r}return e[t]}var cs=function(){function e(e){for(var t in this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=(0,l.ref)(null),this.scrollX=(0,l.ref)(!1),this.scrollY=(0,l.ref)(!1),this.bodyWidth=(0,l.ref)(null),this.fixedWidth=(0,l.ref)(null),this.rightFixedWidth=(0,l.ref)(null),this.gutterWidth=0,e)(0,V.hasOwn)(e,t)&&((0,l.isRef)(this[t])?this[t].value=e[t]:this[t]=e[t]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}return e.prototype.updateScrollY=function(){if(null===this.height.value)return!1;var e=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(null==e?void 0:e.wrapRef)){var t,n=this.scrollY.value;return t=e.wrapRef.scrollHeight>e.wrapRef.clientHeight,this.scrollY.value=t,n!==t}return!1},e.prototype.setHeight=function(e,t){var n=this;if(void 0===t&&(t="height"),V.isClient){var r,o=this.table.vnode.el;if(e="number"==typeof(r=e)?r:"string"==typeof r?/^\d+(?:px)?$/.test(r)?gn()(r,10):r:null,this.height.value=Number(e),!o&&(e||0===e))return(0,l.nextTick)((function(){return n.setHeight(e,t)}));"number"==typeof e?(o.style[t]="".concat(e,"px"),this.updateElsHeight()):"string"==typeof e&&(o.style[t]=e,this.updateElsHeight())}},e.prototype.setMaxHeight=function(e){this.setHeight(e,"max-height")},e.prototype.getFlattenColumns=function(){var e=[],t=this.table.store.states.columns.value;return L()(t).call(t,(function(t){t.isColumnGroup?e.push.apply(e,t.columns):e.push(t)})),e},e.prototype.updateElsHeight=function(){this.updateScrollY(),this.notifyObservers("scrollable")},e.prototype.headerDisplayNone=function(e){if(!e)return!0;for(var t=e;"DIV"!==t.tagName;){if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1},e.prototype.updateColumnsWidth=function(){if(V.isClient){var e=this.fit,t=this.table.vnode.el.clientWidth,n=0,r=this.getFlattenColumns(),o=S()(r).call(r,(function(e){return"number"!=typeof e.width}));if(L()(r).call(r,(function(e){"number"==typeof e.width&&e.realWidth&&(e.realWidth=null)})),o.length>0&&e){if(L()(r).call(r,(function(e){n+=Number(e.width||e.minWidth||80)})),n<=t){this.scrollX.value=!1;var i=t-n;if(1===o.length)o[0].realWidth=Number(o[0].minWidth||80)+i;else{var s=i/u()(o).call(o,(function(e,t){return e+Number(t.minWidth||80)}),0),a=0;L()(o).call(o,(function(e,t){if(0!==t){var n=Math.floor(Number(e.minWidth||80)*s);a+=n,e.realWidth=Number(e.minWidth||80)+n}})),o[0].realWidth=Number(o[0].minWidth||80)+i-a}}else this.scrollX.value=!0,L()(o).call(o,(function(e){e.realWidth=Number(e.minWidth)}));this.bodyWidth.value=Math.max(n,t),this.table.state.resizeState.value.width=this.bodyWidth.value}else L()(r).call(r,(function(e){e.width||e.minWidth?e.realWidth=Number(e.width||e.minWidth):e.realWidth=80,n+=e.realWidth})),this.scrollX.value=n>t,this.bodyWidth.value=n;var l=this.store.states.fixedColumns.value;if(l.length>0){var c=0;L()(l).call(l,(function(e){c+=Number(e.realWidth||e.width)})),this.fixedWidth.value=c}var p=this.store.states.rightFixedColumns.value;if(p.length>0){var f=0;L()(p).call(p,(function(e){f+=Number(e.realWidth||e.width)})),this.rightFixedWidth.value=f}this.notifyObservers("columns")}},e.prototype.addObserver=function(e){this.observers.push(e)},e.prototype.removeObserver=function(e){var t,n,r=B()(t=this.observers).call(t,e);-1!==r&&pn()(n=this.observers).call(n,r,1)},e.prototype.notifyObservers=function(e){var t=this,n=this.observers;L()(n).call(n,(function(n){var r,o;switch(e){case"columns":null===(r=n.state)||void 0===r||r.onColumnsChange(t);break;case"scrollable":null===(o=n.state)||void 0===o||o.onScrollableChange(t);break;default:throw new Error("Table Layout don't have event ".concat(e,"."))}}))},e}();const us=cs;var ps=n(61240),fs=n.n(ps),ds=n(27681),hs=n.n(ds),ms=n(16781),ys=n.n(ms),gs=n(27414),vs=n.n(gs);const bs=Ye({type:String,values:["","default","small","large"],required:!1}),_s=Symbol("size"),Es="update:modelValue",xs={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:bs,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...Wt(["ariaControls"])},ws={[Es]:e=>We(e)||Qt(e)||Gt(e),change:e=>We(e)||Qt(e)||Gt(e)},Ss=Symbol("checkboxGroupContextKey"),Ts=e=>{const t=(0,l.getCurrentInstance)();return(0,l.computed)((()=>{var n,r;return null==(r=null==(n=null==t?void 0:t.proxy)?void 0:n.$props)?void 0:r[e]}))},As=(e,t={})=>{const n=(0,l.ref)(void 0),r=t.prop?n:Ts("size"),o=t.global?n:(()=>{const e=(0,l.inject)(_s,{});return(0,l.computed)((()=>(0,l.unref)(e.size)||""))})(),i=t.form?{size:void 0}:(0,l.inject)(Qo,void 0),s=t.formItem?{size:void 0}:(0,l.inject)(Xo,void 0);return(0,l.computed)((()=>r.value||(0,l.unref)(e)||(null==s?void 0:s.size)||(null==i?void 0:i.size)||o.value||""))},Ps=e=>{const t=Ts("disabled"),n=(0,l.inject)(Qo,void 0);return(0,l.computed)((()=>t.value||(0,l.unref)(e)||(null==n?void 0:n.disabled)||!1))},Os=()=>({form:(0,l.inject)(Qo,void 0),formItem:(0,l.inject)(Xo,void 0)}),Cs=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=(0,l.ref)(!1)),r||(r=(0,l.ref)(!1));const o=(0,l.ref)();let i;const s=(0,l.computed)((()=>{var n;return!!(!e.label&&!e.ariaLabel&&t&&t.inputIds&&(null==(n=t.inputIds)?void 0:n.length)<=1)}));return(0,l.onMounted)((()=>{i=(0,l.watch)([(0,l.toRef)(e,"id"),n],(([e,n])=>{const i=null!=e?e:n?void 0:qr().value;i!==o.value&&((null==t?void 0:t.removeInputId)&&(o.value&&t.removeInputId(o.value),(null==r?void 0:r.value)||n||!i||t.addInputId(i)),o.value=i)}),{immediate:!0})})),(0,l.onUnmounted)((()=>{i&&i(),(null==t?void 0:t.removeInputId)&&o.value&&t.removeInputId(o.value)})),{isLabeledByFormItem:s,inputId:o}};var ks=n(46996);const Is=({from:e,replacement:t,scope:n,version:r,ref:o,type:i="API"},s)=>{(0,l.watch)((()=>(0,l.unref)(s)),(e=>{}),{immediate:!0})},Ns=(e,t)=>{const{formItem:n}=Os(),{model:r,isGroup:o,isLimitExceeded:i}=(e=>{const t=(0,l.ref)(!1),{emit:n}=(0,l.getCurrentInstance)(),r=(0,l.inject)(Ss,void 0),o=(0,l.computed)((()=>!1===Ht(r))),i=(0,l.ref)(!1),s=(0,l.computed)({get(){var n,i;return o.value?null==(n=null==r?void 0:r.modelValue)?void 0:n.value:null!=(i=e.modelValue)?i:t.value},set(e){var a,l;o.value&&Ve(e)?(i.value=void 0!==(null==(a=null==r?void 0:r.max)?void 0:a.value)&&e.length>(null==r?void 0:r.max.value)&&e.length>s.value.length,!1===i.value&&(null==(l=null==r?void 0:r.changeEvent)||l.call(r,e))):(n(Es,e),t.value=e)}});return{model:s,isGroup:o,isLimitExceeded:i}})(e),{isFocused:s,isChecked:a,checkboxButtonSize:c,checkboxSize:u,hasOwnLabel:p,actualValue:f}=((e,t,{model:n})=>{const r=(0,l.inject)(Ss,void 0),o=(0,l.ref)(!1),i=(0,l.computed)((()=>Yt(e.value)?e.label:e.value)),s=(0,l.computed)((()=>{const t=n.value;return Gt(t)?t:Ve(t)?Ke(i.value)?t.map(l.toRaw).some((e=>(0,ks.A)(e,i.value))):t.map(l.toRaw).includes(i.value):null!=t?t===e.trueValue||t===e.trueLabel:!!t})),a=As((0,l.computed)((()=>{var e;return null==(e=null==r?void 0:r.size)?void 0:e.value})),{prop:!0}),c=As((0,l.computed)((()=>{var e;return null==(e=null==r?void 0:r.size)?void 0:e.value})));return{checkboxButtonSize:a,isChecked:s,isFocused:o,checkboxSize:c,hasOwnLabel:(0,l.computed)((()=>!!t.default||!Yt(i.value))),actualValue:i}})(e,t,{model:r}),{isDisabled:d}=(({model:e,isChecked:t})=>{const n=(0,l.inject)(Ss,void 0),r=(0,l.computed)((()=>{var r,o;const i=null==(r=null==n?void 0:n.max)?void 0:r.value,s=null==(o=null==n?void 0:n.min)?void 0:o.value;return!Ht(i)&&e.value.length>=i&&!t.value||!Ht(s)&&e.value.length<=s&&t.value}));return{isDisabled:Ps((0,l.computed)((()=>(null==n?void 0:n.disabled.value)||r.value))),isLimitDisabled:r}})({model:r,isChecked:a}),{inputId:h,isLabeledByFormItem:m}=Cs(e,{formItemContext:n,disableIdGeneration:p,disableIdManagement:o}),{handleChange:y,onClickRoot:g}=((e,{model:t,isLimitExceeded:n,hasOwnLabel:r,isDisabled:o,isLabeledByFormItem:i})=>{const s=(0,l.inject)(Ss,void 0),{formItem:a}=Os(),{emit:c}=(0,l.getCurrentInstance)();function u(t){var n,r,o,i;return[!0,e.trueValue,e.trueLabel].includes(t)?null==(r=null!=(n=e.trueValue)?n:e.trueLabel)||r:null!=(i=null!=(o=e.falseValue)?o:e.falseLabel)&&i}const p=(0,l.computed)((()=>(null==s?void 0:s.validateEvent)||e.validateEvent));return(0,l.watch)((()=>e.modelValue),(()=>{p.value&&(null==a||a.validate("change").catch((e=>{})))})),{handleChange:function(e){if(n.value)return;const t=e.target;c("change",u(t.checked),e)},onClickRoot:async function(s){n.value||r.value||o.value||!i.value||s.composedPath().some((e=>"LABEL"===e.tagName))||(t.value=u([!1,e.falseValue,e.falseLabel].includes(t.value)),await(0,l.nextTick)(),function(e,t){c("change",u(e),t)}(t.value,s))}}})(e,{model:r,isLimitExceeded:i,hasOwnLabel:p,isDisabled:d,isLabeledByFormItem:m});return e.checked&&function(){var t,n;Ve(r.value)&&!r.value.includes(f.value)?r.value.push(f.value):r.value=null==(n=null!=(t=e.trueValue)?t:e.trueLabel)||n}(),Is({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},(0,l.computed)((()=>o.value&&Yt(e.value)))),Is({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},(0,l.computed)((()=>!!e.trueLabel))),Is({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},(0,l.computed)((()=>!!e.falseLabel))),{inputId:h,isLabeledByFormItem:m,isChecked:a,isDisabled:d,isFocused:s,checkboxButtonSize:c,checkboxSize:u,hasOwnLabel:p,model:r,actualValue:f,handleChange:y,onClickRoot:g}},js=(0,l.defineComponent)({name:"ElCheckbox"}),Ds=(0,l.defineComponent)({...js,props:xs,emits:ws,setup(e){const t=e,n=(0,l.useSlots)(),{inputId:r,isLabeledByFormItem:o,isChecked:i,isDisabled:s,isFocused:a,checkboxSize:c,hasOwnLabel:u,model:p,actualValue:f,handleChange:d,onClickRoot:h}=Ns(t,n),m=it("checkbox"),y=(0,l.computed)((()=>[m.b(),m.m(c.value),m.is("disabled",s.value),m.is("bordered",t.border),m.is("checked",i.value)])),g=(0,l.computed)((()=>[m.e("input"),m.is("disabled",s.value),m.is("checked",i.value),m.is("indeterminate",t.indeterminate),m.is("focus",a.value)]));return(e,t)=>((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(!(0,l.unref)(u)&&(0,l.unref)(o)?"span":"label"),{class:(0,l.normalizeClass)((0,l.unref)(y)),"aria-controls":e.indeterminate?e.ariaControls:null,onClick:(0,l.unref)(h)},{default:(0,l.withCtx)((()=>{var t,n;return[(0,l.createElementVNode)("span",{class:(0,l.normalizeClass)((0,l.unref)(g))},[e.trueValue||e.falseValue||e.trueLabel||e.falseLabel?(0,l.withDirectives)(((0,l.openBlock)(),(0,l.createElementBlock)("input",{key:0,id:(0,l.unref)(r),"onUpdate:modelValue":e=>(0,l.isRef)(p)?p.value=e:null,class:(0,l.normalizeClass)((0,l.unref)(m).e("original")),type:"checkbox",indeterminate:e.indeterminate,name:e.name,tabindex:e.tabindex,disabled:(0,l.unref)(s),"true-value":null!=(t=e.trueValue)?t:e.trueLabel,"false-value":null!=(n=e.falseValue)?n:e.falseLabel,onChange:(0,l.unref)(d),onFocus:e=>a.value=!0,onBlur:e=>a.value=!1,onClick:(0,l.withModifiers)((()=>{}),["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[l.vModelCheckbox,(0,l.unref)(p)]]):(0,l.withDirectives)(((0,l.openBlock)(),(0,l.createElementBlock)("input",{key:1,id:(0,l.unref)(r),"onUpdate:modelValue":e=>(0,l.isRef)(p)?p.value=e:null,class:(0,l.normalizeClass)((0,l.unref)(m).e("original")),type:"checkbox",indeterminate:e.indeterminate,disabled:(0,l.unref)(s),value:(0,l.unref)(f),name:e.name,tabindex:e.tabindex,onChange:(0,l.unref)(d),onFocus:e=>a.value=!0,onBlur:e=>a.value=!1,onClick:(0,l.withModifiers)((()=>{}),["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","disabled","value","name","tabindex","onChange","onFocus","onBlur","onClick"])),[[l.vModelCheckbox,(0,l.unref)(p)]]),(0,l.createElementVNode)("span",{class:(0,l.normalizeClass)((0,l.unref)(m).e("inner"))},null,2)],2),(0,l.unref)(u)?((0,l.openBlock)(),(0,l.createElementBlock)("span",{key:0,class:(0,l.normalizeClass)((0,l.unref)(m).e("label"))},[(0,l.renderSlot)(e.$slots,"default"),e.$slots.default?(0,l.createCommentVNode)("v-if",!0):((0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,{key:0},[(0,l.createTextVNode)((0,l.toDisplayString)(e.label),1)],64))],2)):(0,l.createCommentVNode)("v-if",!0)]})),_:3},8,["class","aria-controls","onClick"]))}});var Ms=et(Ds,[["__file","checkbox.vue"]]);const Ls=(0,l.defineComponent)({name:"ElCheckboxButton"}),Rs=(0,l.defineComponent)({...Ls,props:xs,emits:ws,setup(e){const t=e,n=(0,l.useSlots)(),{isFocused:r,isChecked:o,isDisabled:i,checkboxButtonSize:s,model:a,actualValue:c,handleChange:u}=Ns(t,n),p=(0,l.inject)(Ss,void 0),f=it("checkbox"),d=(0,l.computed)((()=>{var e,t,n,r;const o=null!=(t=null==(e=null==p?void 0:p.fill)?void 0:e.value)?t:"";return{backgroundColor:o,borderColor:o,color:null!=(r=null==(n=null==p?void 0:p.textColor)?void 0:n.value)?r:"",boxShadow:o?`-1px 0 0 0 ${o}`:void 0}})),h=(0,l.computed)((()=>[f.b("button"),f.bm("button",s.value),f.is("disabled",i.value),f.is("checked",o.value),f.is("focus",r.value)]));return(e,t)=>{var n,s;return(0,l.openBlock)(),(0,l.createElementBlock)("label",{class:(0,l.normalizeClass)((0,l.unref)(h))},[e.trueValue||e.falseValue||e.trueLabel||e.falseLabel?(0,l.withDirectives)(((0,l.openBlock)(),(0,l.createElementBlock)("input",{key:0,"onUpdate:modelValue":e=>(0,l.isRef)(a)?a.value=e:null,class:(0,l.normalizeClass)((0,l.unref)(f).be("button","original")),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:(0,l.unref)(i),"true-value":null!=(n=e.trueValue)?n:e.trueLabel,"false-value":null!=(s=e.falseValue)?s:e.falseLabel,onChange:(0,l.unref)(u),onFocus:e=>r.value=!0,onBlur:e=>r.value=!1,onClick:(0,l.withModifiers)((()=>{}),["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[l.vModelCheckbox,(0,l.unref)(a)]]):(0,l.withDirectives)(((0,l.openBlock)(),(0,l.createElementBlock)("input",{key:1,"onUpdate:modelValue":e=>(0,l.isRef)(a)?a.value=e:null,class:(0,l.normalizeClass)((0,l.unref)(f).be("button","original")),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:(0,l.unref)(i),value:(0,l.unref)(c),onChange:(0,l.unref)(u),onFocus:e=>r.value=!0,onBlur:e=>r.value=!1,onClick:(0,l.withModifiers)((()=>{}),["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","value","onChange","onFocus","onBlur","onClick"])),[[l.vModelCheckbox,(0,l.unref)(a)]]),e.$slots.default||e.label?((0,l.openBlock)(),(0,l.createElementBlock)("span",{key:2,class:(0,l.normalizeClass)((0,l.unref)(f).be("button","inner")),style:(0,l.normalizeStyle)((0,l.unref)(o)?(0,l.unref)(d):void 0)},[(0,l.renderSlot)(e.$slots,"default",{},(()=>[(0,l.createTextVNode)((0,l.toDisplayString)(e.label),1)]))],6)):(0,l.createCommentVNode)("v-if",!0)],2)}}});var Bs=et(Rs,[["__file","checkbox-button.vue"]]);const qs=Je({modelValue:{type:Array,default:()=>[]},disabled:Boolean,min:Number,max:Number,size:bs,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},...Wt(["ariaLabel"])}),Fs={[Es]:e=>Ve(e),change:e=>Ve(e)},Us=(0,l.defineComponent)({name:"ElCheckboxGroup"}),Vs=(0,l.defineComponent)({...Us,props:qs,emits:Fs,setup(e,{emit:t}){const n=e,r=it("checkbox"),{formItem:o}=Os(),{inputId:i,isLabeledByFormItem:s}=Cs(n,{formItemContext:o}),a=async e=>{t(Es,e),await(0,l.nextTick)(),t("change",e)},c=(0,l.computed)({get:()=>n.modelValue,set(e){a(e)}});return(0,l.provide)(Ss,{...Vt((0,l.toRefs)(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:c,changeEvent:a}),(0,l.watch)((()=>n.modelValue),(()=>{n.validateEvent&&(null==o||o.validate("change").catch((e=>{})))})),(e,t)=>{var n;return(0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.tag),{id:(0,l.unref)(i),class:(0,l.normalizeClass)((0,l.unref)(r).b("group")),role:"group","aria-label":(0,l.unref)(s)?void 0:e.ariaLabel||"checkbox-group","aria-labelledby":(0,l.unref)(s)?null==(n=(0,l.unref)(o))?void 0:n.labelId:void 0},{default:(0,l.withCtx)((()=>[(0,l.renderSlot)(e.$slots,"default")])),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var $s=et(Vs,[["__file","checkbox-group.vue"]]);const Ws=rn(Ms,{CheckboxButton:Bs,CheckboxGroup:$s});on(Bs),on($s);var Ks={key:0},zs=["disabled"],Hs=["label","onClick"],Gs=n(86864),Qs=n(27077);const Xs=new Map;if(Le.oc){let e;document.addEventListener("mousedown",(t=>e=t)),document.addEventListener("mouseup",(t=>{if(e){for(const n of Xs.values())for(const{documentHandler:r}of n)r(t,e);e=void 0}}))}function Ys(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:Xt(t.arg)&&n.push(t.arg),function(r,o){const i=t.instance.popperRef,s=r.target,a=null==o?void 0:o.target,l=!t||!t.instance,c=!s||!a,u=e.contains(s)||e.contains(a),p=e===s,f=n.length&&n.some((e=>null==e?void 0:e.contains(s)))||n.length&&n.includes(a),d=i&&(i.contains(s)||i.contains(a));l||c||u||p||f||d||t.value(r,o)}}const Js={beforeMount(e,t){Xs.has(e)||Xs.set(e,[]),Xs.get(e).push({documentHandler:Ys(e,t),bindingFn:t.value})},updated(e,t){Xs.has(e)||Xs.set(e,[]);const n=Xs.get(e),r=n.findIndex((e=>e.bindingFn===t.oldValue)),o={documentHandler:Ys(e,t),bindingFn:t.value};r>=0?n.splice(r,1,o):n.push(o)},unmounted(e){Xs.delete(e)}};var Zs=Ws.CheckboxGroup;const ea=(0,l.defineComponent)({name:"ElTableFilterPanel",components:{ElCheckbox:Ws,ElCheckboxGroup:Zs,ElScrollbar:sn,ElTooltip:Ni,ElIcon:Gs.ElIcon,ArrowDown:Qs.ArrowDown,ArrowUp:Qs.ArrowUp},directives:{ClickOutside:Js},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup:function(e){var t=(0,l.getCurrentInstance)(),n=(0,je.useLocale)().t,r=(0,je.useNamespace)("table-filter"),o=null==t?void 0:t.parent;o.filterPanels.value[e.column.id]||(o.filterPanels.value[e.column.id]=t);var i=(0,l.ref)(!1),s=(0,l.ref)(null),a=(0,l.computed)((function(){return e.column&&e.column.filters})),c=(0,l.computed)((function(){var t;return e.column.filterClassName?F()(t="".concat(r.b()," ")).call(t,e.column.filterClassName):r.b()})),u=(0,l.computed)({get:function(){var t;return((null===(t=e.column)||void 0===t?void 0:t.filteredValue)||[])[0]},set:function(e){var t,n;p.value&&(null!=e?pn()(t=p.value).call(t,0,1,e):pn()(n=p.value).call(n,0,1))}}),p=(0,l.computed)({get:function(){return e.column&&e.column.filteredValue||[]},set:function(t){e.column&&e.upDataColumn("filteredValue",t)}}),f=(0,l.computed)((function(){return!e.column||e.column.filterMultiple})),d=function(){i.value=!1},h=function(t){e.store.commit("filterChange",{column:e.column,values:t}),e.store.updateAllSelected()};(0,l.watch)(i,(function(t){e.column&&e.upDataColumn("filterOpened",t)}),{immediate:!0});var m=(0,l.computed)((function(){var e,t;return null===(t=null===(e=s.value)||void 0===e?void 0:e.popperRef)||void 0===t?void 0:t.contentRef}));return{tooltipVisible:i,multiple:f,filterClassName:c,filteredValue:p,filterValue:u,filters:a,handleConfirm:function(){h(p.value),d()},handleReset:function(){p.value=[],h(p.value),d()},handleSelect:function(e){u.value=e,h(null!=e?p.value:[]),d()},isActive:function(e){return e.value===u.value},t:n,ns:r,showFilterPanel:function(e){e.stopPropagation(),i.value=!i.value},hideFilterPanel:function(){i.value=!1},popperPaneRef:m,tooltip:s}}});var ta=n(66262);const na=(0,ta.A)(ea,[["render",function(e,t,n,r,o,i){var s=(0,l.resolveComponent)("el-checkbox"),a=(0,l.resolveComponent)("el-checkbox-group"),c=(0,l.resolveComponent)("el-scrollbar"),u=(0,l.resolveComponent)("arrow-up"),p=(0,l.resolveComponent)("arrow-down"),f=(0,l.resolveComponent)("el-icon"),d=(0,l.resolveComponent)("el-tooltip"),h=(0,l.resolveDirective)("click-outside");return(0,l.openBlock)(),(0,l.createBlock)(d,{ref:"tooltip",visible:e.tooltipVisible,offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.filterClassName,persistent:""},{content:(0,l.withCtx)((function(){var n,r;return[e.multiple?((0,l.openBlock)(),(0,l.createElementBlock)("div",Ks,[(0,l.createElementVNode)("div",{class:(0,l.normalizeClass)(e.ns.e("content"))},[(0,l.createVNode)(c,{"wrap-class":e.ns.e("wrap")},{default:(0,l.withCtx)((function(){return[(0,l.createVNode)(a,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.filteredValue=t}),class:(0,l.normalizeClass)(e.ns.e("checkbox-group"))},{default:(0,l.withCtx)((function(){return[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(e.filters,(function(e){return(0,l.openBlock)(),(0,l.createBlock)(s,{key:e.value,value:e.value},{default:(0,l.withCtx)((function(){return[(0,l.createTextVNode)((0,l.toDisplayString)(e.text),1)]})),_:2},1032,["value"])})),128))]})),_:1},8,["modelValue","class"])]})),_:1},8,["wrap-class"])],2),(0,l.createElementVNode)("div",{class:(0,l.normalizeClass)(e.ns.e("bottom"))},[(0,l.createElementVNode)("button",{class:(0,l.normalizeClass)((n={},n[e.ns.is("disabled")]=0===e.filteredValue.length,n)),disabled:0===e.filteredValue.length,type:"button",onClick:t[1]||(t[1]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.handleConfirm&&e.handleConfirm.apply(e,t)})},(0,l.toDisplayString)(e.t("el.table.confirmFilter")),11,zs),(0,l.createElementVNode)("button",{type:"button",onClick:t[2]||(t[2]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.handleReset&&e.handleReset.apply(e,t)})},(0,l.toDisplayString)(e.t("el.table.resetFilter")),1)],2)])):((0,l.openBlock)(),(0,l.createElementBlock)("ul",{key:1,class:(0,l.normalizeClass)(e.ns.e("list"))},[(0,l.createElementVNode)("li",{class:(0,l.normalizeClass)([e.ns.e("list-item"),(r={},r[e.ns.is("active")]=void 0===e.filterValue||null===e.filterValue,r)]),onClick:t[3]||(t[3]=function(t){return e.handleSelect(null)})},(0,l.toDisplayString)(e.t("el.table.clearFilter")),3),((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(e.filters,(function(t){return(0,l.openBlock)(),(0,l.createElementBlock)("li",{key:t.value,class:(0,l.normalizeClass)([e.ns.e("list-item"),e.ns.is("active",e.isActive(t))]),label:t.value,onClick:function(n){return e.handleSelect(t.value)}},(0,l.toDisplayString)(t.text),11,Hs)})),128))],2))]})),default:(0,l.withCtx)((function(){return[(0,l.withDirectives)(((0,l.openBlock)(),(0,l.createElementBlock)("span",{class:(0,l.normalizeClass)(["".concat(e.ns.namespace.value,"-table__column-filter-trigger"),"".concat(e.ns.namespace.value,"-none-outline")]),onClick:t[4]||(t[4]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.showFilterPanel&&e.showFilterPanel.apply(e,t)})},[(0,l.createVNode)(f,null,{default:(0,l.withCtx)((function(){return[e.column.filterOpened?((0,l.openBlock)(),(0,l.createBlock)(u,{key:0})):((0,l.openBlock)(),(0,l.createBlock)(p,{key:1}))]})),_:1})],2)),[[h,e.hideFilterPanel,e.popperPaneRef]])]})),_:1},8,["visible","placement","popper-class"])}]]),ra=na,oa=function(e){var t=(0,l.getCurrentInstance)();(0,l.onBeforeMount)((function(){n.value.addObserver(t)})),(0,l.onMounted)((function(){r(n.value),o(n.value)})),(0,l.onUpdated)((function(){r(n.value),o(n.value)})),(0,l.onUnmounted)((function(){n.value.removeObserver(t)}));var n=(0,l.computed)((function(){var t=e.layout;if(!t)throw new Error("Can not find table layout.");return t})),r=function(t){var n,r=(null===(n=e.vnode.el)||void 0===n?void 0:n.querySelectorAll("colgroup > col"))||[];if(r.length){var o=t.getFlattenColumns(),i={};L()(o).call(o,(function(e){i[e.id]=e}));for(var s=0,a=r.length;s<a;s++){var l=r[s],c=l.getAttribute("name"),u=i[c];u&&l.setAttribute("width",u.realWidth||u.width)}}},o=function(t){for(var n,r,o=(null===(n=e.vnode.el)||void 0===n?void 0:n.querySelectorAll("colgroup > col[name=gutter]"))||[],i=0,s=o.length;i<s;i++)o[i].setAttribute("width",t.scrollY.value?t.gutterWidth:"0");var a=(null===(r=e.vnode.el)||void 0===r?void 0:r.querySelectorAll("th.gutter"))||[];for(i=0,s=a.length;i<s;i++){var l=a[i];l.style.width=t.scrollY.value?"".concat(t.gutterWidth,"px"):"0",l.style.display=t.scrollY.value?"":"none"}};return{tableLayout:n.value,onColumnsChange:r,onScrollableChange:o}};var ia=ys()("ElTable"),sa=n(56255),aa=n.n(sa);n(48598);const la=function(e){var t=(0,l.inject)(ia),n=(0,je.useNamespace)("table");return{getHeaderRowStyle:function(e){var n=null==t?void 0:t.props.headerRowStyle;return"function"==typeof n?n.call(null,{rowIndex:e}):n},getHeaderRowClass:function(e){var n=[],r=null==t?void 0:t.props.headerRowClassName;return"string"==typeof r?n.push(r):"function"==typeof r&&n.push(r.call(null,{rowIndex:e})),n.join(" ")},getHeaderCellStyle:function(n,r,o,i){var s,a=null!==(s=null==t?void 0:t.props.headerCellStyle)&&void 0!==s?s:{};"function"==typeof a&&(a=a.call(null,{rowIndex:n,columnIndex:r,row:o,column:i}));var l=Qi(r,i.fixed,e.store,o);return Xi(l,"left"),Xi(l,"right"),cn()({},a,l)},getHeaderCellClass:function(r,o,i,s){var a=Hi(n.b(),o,s.fixed,e.store,i),l=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=_()(Array.prototype).call(t,0,o)),r[o]=t[o]);return F()(e).call(e,r||_()(Array.prototype).call(t))}([s.id,s.order,s.headerAlign,s.className,s.labelClassName],a,!0);s.children||l.push("is-leaf"),s.sortable&&l.push("is-sortable");var c=null==t?void 0:t.props.headerCellClassName;return"string"==typeof c?l.push(c):"function"==typeof c&&l.push(c.call(null,{rowIndex:r,columnIndex:o,row:i,column:s})),l.push(n.e("cell")),S()(l).call(l,(function(e){return Boolean(e)})).join(" ")}}};var ca=function(e){var t=[];return L()(e).call(e,(function(e){e.children?(t.push(e),t.push.apply(t,ca(e.children))):t.push(e)})),t},ua=function(e){var t=1,n=function(e,r){if(r&&(e.level=r.level+1,t<e.level&&(t=e.level)),e.children){var o,i=0;L()(o=e.children).call(o,(function(t){n(t,e),i+=t.colSpan})),e.colSpan=i}else e.colSpan=1};L()(e).call(e,(function(e){e.level=1,n(e,void 0)}));for(var r=[],o=0;o<t;o++)r.push([]);var i=ca(e);return L()(i).call(i,(function(e){var n;e.children?(e.rowSpan=1,L()(n=e.children).call(n,(function(e){return e.isSubColumn=!0}))):e.rowSpan=t-e.level+1,r[e.level-1].push(e)})),r};const pa=(0,l.defineComponent)({name:"ElTableHeader",components:{ElCheckbox:Ws},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:function(){return{prop:"",order:""}}}},setup:function(e,t){var n=this,r=t.emit,o=(0,l.getCurrentInstance)(),i=(0,l.inject)(ia),s=(0,je.useNamespace)("table"),a=(0,l.ref)({}),c=oa(i),u=c.onColumnsChange,p=c.onScrollableChange;(0,l.onMounted)((function(){return t=n,r=void 0,s=function(){var t,n,r;return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=hs()(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof ys()&&(s[vs()]=function(){return this}),s;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}(this,(function(o){switch(o.label){case 0:return[4,(0,l.nextTick)()];case 1:return o.sent(),[4,(0,l.nextTick)()];case 2:return o.sent(),t=e.defaultSort,n=t.prop,r=t.order,null==i||i.store.commit("sort",{prop:n,order:r,init:!0}),[2]}}))},new((o=void 0)||(o=fs()))((function(e,n){function i(e){try{l(s.next(e))}catch(e){n(e)}}function a(e){try{l(s.throw(e))}catch(e){n(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(i,a)}l((s=s.apply(t,r||[])).next())}));var t,r,o,s}));var f=function(e,t){var n=(0,l.getCurrentInstance)(),r=(0,l.inject)(ia),o=function(e){e.stopPropagation()},i=(0,l.ref)(null),s=(0,l.ref)(!1),a=(0,l.ref)({}),c=function(t,n,o){var i;t.stopPropagation();var s=n.order===o?null:o||function(e){var t=e.order,n=e.sortOrders;if(""===t)return n[0];var r=B()(n).call(n,t||null);return n[r>n.length-2?0:r+1]}(n),a=null===(i=t.target)||void 0===i?void 0:i.closest("th");if(a&&(0,V.hasClass)(a,"noclick"))(0,V.removeClass)(a,"noclick");else if(n.sortable){var l,c=e.store.states,u=c.sortProp.value,p=c.sortingColumn.value;(p!==n||p===n&&null===p.order)&&(p&&(p.order=null),c.sortingColumn.value=n,u=n.property),l=n.order=s||null,c.sortProp.value=u,c.sortOrder.value=l,null==r||r.store.commit("changeSortCondition")}};return{handleHeaderClick:function(e,t){!t.filters&&t.sortable?c(e,t,!1):t.filterable&&!t.sortable&&o(e),null==r||r.emit("header-click",t,e)},handleHeaderContextMenu:function(e,t){null==r||r.emit("header-contextmenu",t,e)},handleMouseDown:function(o,l){if(V.isClient&&!(l.children&&l.children.length>0)&&i.value&&e.border){s.value=!0;var c=r;t("set-drag-visible",!0);var u=(null==c?void 0:c.vnode.el).getBoundingClientRect().left,p=n.vnode.el.querySelector("th.".concat(l.id)),f=p.getBoundingClientRect(),d=f.left-u+30;(0,V.addClass)(p,"noclick"),a.value={startMouseLeft:o.clientX,startLeft:f.right-u,startColumnLeft:f.left-u,tableLeft:u};var h=null==c?void 0:c.refs.resizeProxy;h.style.left="".concat(a.value.startLeft,"px"),document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};var m=function(e){var t=e.clientX-a.value.startMouseLeft,n=a.value.startLeft+t;h.style.left="".concat(Math.max(d,n),"px")},y=function(){if(s.value){var n=a.value,r=n.startColumnLeft,u=n.startLeft,f=gn()(h.style.left,10)-r;l.width=l.realWidth=f,null==c||c.emit("header-dragend",l.width,u-r,l,o),requestAnimationFrame((function(){e.store.scheduleLayout(!1,!0)})),document.body.style.cursor="",s.value=!1,i.value=null,a.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",y),document.onselectstart=null,document.ondragstart=null,aa()((function(){(0,V.removeClass)(p,"noclick")}),0)};document.addEventListener("mousemove",m),document.addEventListener("mouseup",y)}},handleMouseMove:function(t,n){if(!(n.children&&n.children.length>0)){var r=t.target;if((0,V.isElement)(r)){var o=null==r?void 0:r.closest("th");if(n&&n.resizable&&!s.value&&e.border){var a=o.getBoundingClientRect(),l=document.body.style;a.width>12&&a.right-t.pageX<8?(l.cursor="col-resize",(0,V.hasClass)(o,"is-sortable")&&(o.style.cursor="col-resize"),i.value=n):s.value||(l.cursor="",(0,V.hasClass)(o,"is-sortable")&&(o.style.cursor="pointer"),i.value=null)}}}},handleMouseOut:function(){V.isClient&&(document.body.style.cursor="")},handleSortClick:c,handleFilterClick:o}}(e,r),d=f.handleHeaderClick,h=f.handleHeaderContextMenu,m=f.handleMouseDown,y=f.handleMouseMove,g=f.handleMouseOut,v=f.handleSortClick,b=f.handleFilterClick,_=la(e),E=_.getHeaderRowStyle,x=_.getHeaderRowClass,w=_.getHeaderCellStyle,S=_.getHeaderCellClass,T=function(e){var t=(0,l.inject)(ia),n=(0,l.computed)((function(){return ua(e.store.states.originColumns.value)}));return{isGroup:(0,l.computed)((function(){var e=n.value.length>1;return e&&t&&(t.state.isGroup.value=!0),e})),toggleAllSelection:function(e){e.stopPropagation(),null==t||t.store.commit("toggleAllSelection")},columnRows:n}}(e),A=T.isGroup,P=T.toggleAllSelection,O=T.columnRows;return o.state={onColumnsChange:u,onScrollableChange:p},o.filterPanels=a,{ns:s,filterPanels:a,onColumnsChange:u,onScrollableChange:p,columnRows:O,getHeaderRowClass:x,getHeaderRowStyle:E,getHeaderCellClass:S,getHeaderCellStyle:w,handleHeaderClick:d,handleHeaderContextMenu:h,handleMouseDown:m,handleMouseMove:y,handleMouseOut:g,handleSortClick:v,handleFilterClick:b,isGroup:A,toggleAllSelection:P}},render:function(){var e,t=this,n=t.ns,r=t.isGroup,o=t.columnRows,i=t.getHeaderCellStyle,s=t.getHeaderCellClass,a=t.getHeaderRowClass,c=t.getHeaderRowStyle,u=t.handleHeaderClick,p=t.handleHeaderContextMenu,f=t.handleMouseDown,d=t.handleMouseMove,h=t.handleSortClick,m=t.handleMouseOut,g=t.store,v=t.$parent,b=1;return(0,l.h)("thead",{class:(e={},e[n.is("group")]=r,e)},y()(o).call(o,(function(e,t){return(0,l.h)("tr",{class:a(t),key:t,style:c(t)},y()(e).call(e,(function(n,r){return n.rowSpan>b&&(b=n.rowSpan),(0,l.h)("th",{class:s(t,r,e,n),colspan:n.colSpan,key:"".concat(n.id,"-thead"),rowspan:n.rowSpan,style:i(t,r,e,n),onClick:function(e){e.currentTarget.classList.contains("noclick")||u(e,n)},onContextmenu:function(e){return p(e,n)},onMousedown:function(e){return f(e,n)},onMousemove:function(e){return d(e,n)},onMouseout:m},[(0,l.h)("div",{class:["cell",n.filteredValue&&n.filteredValue.length>0?"highlight":""]},[n.renderHeader?n.renderHeader({column:n,$index:r,store:g,_self:v}):n.label,n.sortable&&(0,l.h)("span",{onClick:function(e){return h(e,n)},class:"caret-wrapper"},[(0,l.h)("i",{onClick:function(e){return h(e,n,"ascending")},class:"sort-caret ascending"}),(0,l.h)("i",{onClick:function(e){return h(e,n,"descending")},class:"sort-caret descending"})]),n.filterable&&(0,l.h)(ra,{store:g,placement:n.filterPlacement||"bottom-start",column:n,upDataColumn:function(e,t){n[e]=t}})])])})))})))}});var fa=n(49763),da=n.n(fa),ha=n(14404);const ma=(0,n(41703).A)((function(e,t,n){(0,ha.A)(e,t,n)}));function ya(e,t,n){return void 0===n&&(n=.01),e-t>n}const ga=function(e){var t=(0,l.inject)(ia),n=(0,je.useNamespace)("table");return{getRowStyle:function(e,n){var r=null==t?void 0:t.props.rowStyle;return"function"==typeof r?r.call(null,{row:e,rowIndex:n}):r||null},getRowClass:function(r,o){var i=[n.e("row")];(null==t?void 0:t.props.highlightCurrentRow)&&r===e.store.states.currentRow.value&&i.push("current-row"),e.stripe&&o%2==1&&i.push(n.em("row","striped"));var s=null==t?void 0:t.props.rowClassName;return"string"==typeof s?i.push(s):"function"==typeof s&&i.push(s.call(null,{row:r,rowIndex:o})),i},getCellStyle:function(n,r,o,i){var s=null==t?void 0:t.props.cellStyle,a=null!=s?s:{};"function"==typeof s&&(a=s.call(null,{rowIndex:n,columnIndex:r,row:o,column:i}));var l=Qi(r,null==e?void 0:e.fixed,e.store);return Xi(l,"left"),Xi(l,"right"),cn()({},a,l)},getCellClass:function(r,o,i,s,a){var l=Hi(n.b(),o,null==e?void 0:e.fixed,e.store,void 0,a),c=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=_()(Array.prototype).call(t,0,o)),r[o]=t[o]);return F()(e).call(e,r||_()(Array.prototype).call(t))}([s.id,s.align,s.className],l,!0),u=null==t?void 0:t.props.cellClassName;return"string"==typeof u?c.push(u):"function"==typeof u&&c.push(u.call(null,{rowIndex:r,columnIndex:o,row:i,column:s})),c.push(n.e("cell")),S()(c).call(c,(function(e){return Boolean(e)})).join(" ")},getSpan:function(e,n,r,o){var i=1,s=1,a=null==t?void 0:t.props.spanMethod;if("function"==typeof a){var l=a({row:e,column:n,rowIndex:r,columnIndex:o});h()(l)?(i=l[0],s=l[1]):"object"===(0,an.A)(l)&&(i=l.rowspan,s=l.colspan)}return{rowspan:i,colspan:s}},getColspanRealWidth:function(e,t,n){var r;if(t<1)return e[n].realWidth;var o=_()(r=y()(e).call(e,(function(e){var t=e.realWidth,n=e.width;return t||n}))).call(r,n,n+t);return Number(u()(o).call(o,(function(e,t){return Number(e)+Number(t)}),-1))}}};var va=function(){return va=cn()||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},va.apply(this,arguments)};const ba=function(e){var t=(0,l.inject)(ia),n=(0,je.useNamespace)("table"),r=function(e){var t=(0,l.inject)(ia),n=(0,l.ref)(""),r=(0,l.ref)((0,l.h)("div")),o=function(n,r,o){var i,s,a=t,l=Di(n),c=null===(i=null==a?void 0:a.vnode.el)||void 0===i?void 0:i.dataset.prefix;l&&(s=Li({columns:e.store.states.columns.value},l,c))&&(null==a||a.emit("cell-".concat(o),r,s,l,n)),null==a||a.emit("row-".concat(o),r,s,n)},i=ae((function(t){e.store.commit("setHoverRow",t)}),30),s=ae((function(){e.store.commit("setHoverRow",null)}),30),a=function(e,t,n){for(var r=t.target.parentNode;e>1&&(r=null==r?void 0:r.nextSibling)&&"TR"===r.nodeName;)n(r,"hover-row hover-fixed-row"),e--};return{handleDoubleClick:function(e,t){o(e,t,"dblclick")},handleClick:function(t,n){e.store.commit("setCurrentRow",n),o(t,n,"click")},handleContextMenu:function(e,t){o(e,t,"contextmenu")},handleMouseEnter:i,handleMouseLeave:s,handleCellMouseEnter:function(n,r,o){var i,s=t,c=Di(n),u=null===(i=null==s?void 0:s.vnode.el)||void 0===i?void 0:i.dataset.prefix;if(c){var p=Li({columns:e.store.states.columns.value},c,u);c.rowSpan>1&&a(c.rowSpan,n,V.addClass);var f=s.hoverState={cell:c,column:p,row:r};null==s||s.emit("cell-mouse-enter",f.row,f.column,f.cell,n)}if(o&&(!o.showOverflowTooltip||"function"!=typeof o.showOverflowTooltip||o.showOverflowTooltip())){var d=n.target.querySelector(".cell");if((0,V.hasClass)(d,"".concat(u,"-tooltip"))&&d.childNodes.length){var h=document.createRange();h.setStart(d,0),h.setEnd(d,d.childNodes.length);var m=h.getBoundingClientRect(),y=m.width,g=m.height,v=y-Math.floor(y),b=d.getBoundingClientRect(),_=b.width,E=b.height;v<.001&&(y=Math.floor(y)),g-Math.floor(g)<.001&&(g=Math.floor(g));var x,w,S=(x=d,w=window.getComputedStyle(x,null),{left:gn()(w.paddingLeft,10)||0,right:gn()(w.paddingRight,10)||0,top:gn()(w.paddingTop,10)||0,bottom:gn()(w.paddingBottom,10)||0}),T=S.top+S.bottom;(ya(y+(S.left+S.right),_)||ya(g+T,E)||ya(d.scrollWidth,_))&&function(e,t,n,r){if((null==$i?void 0:$i.trigger)!==n){null==$i||$i();var o=null==r?void 0:r.refs.tableWrapper,i=null==o?void 0:o.dataset.prefix,s=ji({strategy:"fixed"},e.popperOptions),a=(0,l.createVNode)(Ni,ji(ji({content:t,virtualTriggering:!0,virtualRef:n,appendTo:o,placement:"top",transition:"none",offset:0,hideAfter:0},e),{popperOptions:s,onHide:function(){null==$i||$i()}}));a.appContext=ji(ji({},r.appContext),r);var c=document.createElement("div");(0,l.render)(a,c),a.component.exposed.onOpen();var u=null==o?void 0:o.querySelector(".".concat(i,"-scrollbar__wrap"));($i=function(){(0,l.render)(null,c),null==u||u.removeEventListener("scroll",$i),$i=null}).trigger=n,null==u||u.addEventListener("scroll",$i)}}(o,c.innerText||c.textContent,c,s)}}},handleCellMouseLeave:function(e){var n=Di(e);if(n){n.rowSpan>1&&a(n.rowSpan,e,V.removeClass);var r=null==t?void 0:t.hoverState;null==t||t.emit("cell-mouse-leave",null==r?void 0:r.row,null==r?void 0:r.column,null==r?void 0:r.cell,e)}},tooltipContent:n,tooltipTrigger:r}}(e),o=r.handleDoubleClick,i=r.handleClick,s=r.handleContextMenu,a=r.handleMouseEnter,c=r.handleMouseLeave,u=r.handleCellMouseEnter,p=r.handleCellMouseLeave,d=r.tooltipContent,h=r.tooltipTrigger,m=ga(e),g=m.getRowStyle,v=m.getRowClass,b=m.getCellStyle,_=m.getCellClass,E=m.getSpan,x=m.getColspanRealWidth,w=(0,l.computed)((function(){var t;return dn()(t=e.store.states.columns.value).call(t,(function(e){return"default"===e.type}))})),S=function(e,n){var r=t.props.rowKey;return r?Ri(e,r):n},T=function(r,f,d,h){var m;void 0===h&&(h=!1);var T=e.tooltipEffect,P=e.tooltipOptions,O=e.store.states,C=O.indent,k=O.columns,I=v(r,f),N=!0;d&&(I.push(n.em("row","level-".concat(d.level))),N=d.display);var j=N?null:{display:"none"};return(0,l.h)("tr",{style:[j,g(r,f)],class:I,key:S(r,f),onDblclick:function(e){return o(e,r)},onClick:function(e){return i(e,r)},onContextmenu:function(e){return s(e,r)},onMouseenter:function(){return a(f)},onMouseleave:c},y()(m=k.value).call(m,(function(n,o){var i,s,a=E(r,n,f,o),c=a.rowspan,m=a.colspan;if(!c||!m)return null;var y=cn()({},n);y.realWidth=x(k.value,m,o);var g={store:e.store,_self:e.context||t,column:y,row:r,$index:f,cellIndex:o,expanded:h};o===w.value&&d&&(g.treeNode={indent:d.level*C.value,level:d.level},"boolean"==typeof d.expanded&&(g.treeNode.expanded=d.expanded,"loading"in d&&(g.treeNode.loading=d.loading),"noLazyChildren"in d&&(g.treeNode.noLazyChildren=d.noLazyChildren)));var v=F()(i="".concat(S(r,f),",")).call(i,o),O=y.columnKey||y.rawColumnKey||"",I=A(o,n,g),N=n.showOverflowTooltip&&ma({effect:T},P,n.showOverflowTooltip);return"function"==typeof n.showOverflowTooltip&&(N.showOverflowTooltip=function(){return n.showOverflowTooltip(g)}),(0,l.h)("td",{style:b(f,o,r,n),class:_(f,o,r,n,m-1),key:F()(s="".concat(O)).call(s,v),rowspan:c,colspan:m,onMouseenter:function(e){return u(e,r,N)},onMouseleave:p},[I])})))},A=function(e,t,n){return t.renderCell(n)};return{wrappedRowRender:function(r,o){var i=e.store,s=i.isRowExpanded,a=i.assertRowKey,c=i.states,u=c.treeData,p=c.lazyTreeNodeMap,d=c.childrenColumnName,h=c.rowKey,m=i.states.columns.value,y=O()(m).call(m,(function(e){return"expand"===e.type}));if(y){var g,v=s(r),b=T(r,o,void 0,v),_=t.renderExpanded;return v?_?[[b,(0,l.h)("tr",{key:"expanded-row__".concat(b.key)},[(0,l.h)("td",{colspan:m.length,class:F()(g="".concat(n.e("cell")," ")).call(g,n.e("expanded-cell"))},[_({row:r,$index:o,store:i,expanded:v})])])]]:(console.error("[Element Error]renderExpanded is required."),b):[[b]]}if(f()(u.value).length){a();var E=Ri(r,h.value),x=u.value[E],w=null;x&&(w={expanded:x.expanded,level:x.level,display:!0},"boolean"==typeof x.lazy&&("boolean"==typeof x.loaded&&x.loaded&&(w.noLazyChildren=!(x.children&&x.children.length)),w.loading=x.loading));var S=[T(r,o,w)];if(x){var A=0,P=function(e,t){e&&e.length&&t&&L()(e).call(e,(function(e){var n={display:t.display&&t.expanded,level:t.level+1,expanded:!1,noLazyChildren:!1,loading:!1},r=Ri(e,h.value);if(null==r)throw new Error("For nested data item, row-key is required.");if((x=va({},u.value[r]))&&(n.expanded=x.expanded,x.level=x.level||n.level,x.display=!(!x.expanded||!n.display),"boolean"==typeof x.lazy&&("boolean"==typeof x.loaded&&x.loaded&&(n.noLazyChildren=!(x.children&&x.children.length)),n.loading=x.loading)),A++,S.push(T(e,o+A,n)),x){var i=p.value[r]||e[d.value];P(i,x)}}))};x.display=!0;var C=p.value[E]||r[d.value];P(C,x)}return S}return T(r,o,void 0)},tooltipContent:d,tooltipTrigger:h}},_a={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:function(){return{}},type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean},Ea=(0,l.defineComponent)({name:"ElTableBody",props:_a,setup:function(e){var t=(0,l.getCurrentInstance)(),n=(0,l.inject)(ia),r=(0,je.useNamespace)("table"),o=ba(e),i=o.wrappedRowRender,s=o.tooltipContent,a=o.tooltipTrigger,c=oa(n),p=c.onColumnsChange,f=c.onScrollableChange,d=[];return(0,l.watch)(e.store.states.hoverRow,(function(n,o){var i,s,a=null==t?void 0:t.vnode.el,l=S()(i=da()((null==a?void 0:a.children)||[])).call(i,(function(e){return null==e?void 0:e.classList.contains("".concat(r.e("row")))})),c=n,p=null===(s=l[c])||void 0===s?void 0:s.childNodes;if(null==p?void 0:p.length){var f,h=0,m=u()(f=da()(p)).call(f,(function(e,t,n){var r,o;return(null===(r=p[n])||void 0===r?void 0:r.colSpan)>1&&(h=null===(o=p[n])||void 0===o?void 0:o.colSpan),"TD"!==t.nodeName&&0===h&&e.push(n),h>0&&h--,e}),[]);L()(m).call(m,(function(e){var t;for(c=n;c>0;){var r=null===(t=l[c-1])||void 0===t?void 0:t.childNodes;if(r[e]&&"TD"===r[e].nodeName&&r[e].rowSpan>1){(0,V.addClass)(r[e],"hover-cell"),d.push(r[e]);break}c--}}))}else L()(d).call(d,(function(e){return(0,V.removeClass)(e,"hover-cell")})),d.length=0;e.store.states.isComplex.value&&V.isClient&&(0,V.rAF)((function(){var e=l[o],t=l[n];e&&!e.classList.contains("hover-fixed-row")&&(0,V.removeClass)(e,"hover-row"),t&&(0,V.addClass)(t,"hover-row")}))})),(0,l.onUnmounted)((function(){null==$i||$i()})),{ns:r,onColumnsChange:p,onScrollableChange:f,wrappedRowRender:i,tooltipContent:s,tooltipTrigger:a}},render:function(){var e=this.wrappedRowRender,t=this.store.states.data.value||[];return(0,l.h)("tbody",{tabIndex:-1},[u()(t).call(t,(function(t,n){return F()(t).call(t,e(n,t.length))}),[])])}});n(9868);var xa=n(63579),wa=n.n(xa);const Sa=function(e){var t=function(){var e=(0,l.inject)(ia),t=null==e?void 0:e.store;return{leftFixedLeafCount:(0,l.computed)((function(){return t.states.fixedLeafColumnsLength.value})),rightFixedLeafCount:(0,l.computed)((function(){return t.states.rightFixedColumns.value.length})),columnsCount:(0,l.computed)((function(){return t.states.columns.value.length})),leftFixedCount:(0,l.computed)((function(){return t.states.fixedColumns.value.length})),rightFixedCount:(0,l.computed)((function(){return t.states.rightFixedColumns.value.length})),columns:t.states.columns}}().columns,n=(0,je.useNamespace)("table");return{getCellClasses:function(t,r){var o=t[r],i=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=_()(Array.prototype).call(t,0,o)),r[o]=t[o]);return F()(e).call(e,r||_()(Array.prototype).call(t))}([n.e("cell"),o.id,o.align,o.labelClassName],Hi(n.b(),r,o.fixed,e.store),!0);return o.className&&i.push(o.className),o.children||i.push(n.is("leaf")),i},getCellStyles:function(t,n){var r=Qi(n,t.fixed,e.store);return Xi(r,"left"),Xi(r,"right"),r},columns:t}};var Ta=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=_()(Array.prototype).call(t,0,o)),r[o]=t[o]);return F()(e).call(e,r||_()(Array.prototype).call(t))};const Aa=(0,l.defineComponent)({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:function(){return{prop:"",order:""}}}},setup:function(e){var t=Sa(e),n=t.getCellClasses,r=t.getCellStyles,o=t.columns;return{ns:(0,je.useNamespace)("table"),getCellClasses:n,getCellStyles:r,columns:o}},render:function(){var e=this,t=e.columns,n=e.getCellStyles,r=e.getCellClasses,o=e.summaryMethod,i=e.sumText,s=this.store.states.data.value,a=[];return o?a=o({columns:t,data:s}):L()(t).call(t,(function(e,t){if(0!==t){var n=y()(s).call(s,(function(t){return Number(t[e.property])})),r=[],o=!0;L()(n).call(n,(function(e){if(!bn()(+e)){o=!1;var t="".concat(e).split(".")[1];r.push(t?t.length:0)}}));var l=Math.max.apply(null,r);a[t]=o?"":u()(n).call(n,(function(e,t){var n=Number(t);return bn()(+n)?e:wa()((e+t).toFixed(Math.min(l,20)))}),0)}else a[t]=i})),(0,l.h)((0,l.h)("tfoot",[(0,l.h)("tr",{},Ta([],y()(t).call(t,(function(e,o){return(0,l.h)("td",{key:o,colspan:e.colSpan,rowspan:e.rowSpan,class:r(t,o),style:n(e,o)},[(0,l.h)("div",{class:["cell",e.labelClassName]},[a[o]])])})),!0))]))}});var Pa=n(165),Oa=n.n(Pa);const Ca=function(e,t,n,r){var o=this,i=(0,l.ref)(!1),s=(0,l.ref)(null),a=(0,l.ref)(!1),c=(0,l.ref)({width:null,height:null,headerHeight:null}),u=(0,l.ref)(!1),p=(0,l.ref)(),f=(0,l.ref)(0),d=(0,l.ref)(0),h=(0,l.ref)(0),m=(0,l.ref)(0),y=(0,l.ref)(0);(0,l.watchEffect)((function(){t.setHeight(e.height)})),(0,l.watchEffect)((function(){t.setMaxHeight(e.maxHeight)})),(0,l.watch)((function(){return[e.currentRowKey,n.states.rowKey]}),(function(e){var t=e[0],r=e[1];(0,l.unref)(r)&&(0,l.unref)(t)&&n.setCurrentRowKey("".concat(t))}),{immediate:!0}),(0,l.watch)((function(){return e.data}),(function(e){r.store.commit("setData",e)}),{immediate:!0,deep:!0}),(0,l.watchEffect)((function(){e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)}));var g=(0,l.computed)((function(){return e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0})),v=(0,l.computed)((function(){return{width:t.bodyWidth.value?"".concat(t.bodyWidth.value,"px"):""}})),b=function(){g.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(E)};(0,l.onMounted)((function(){return t=o,i=void 0,a=function(){var t,o;return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=hs()(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof ys()&&(s[vs()]=function(){return this}),s;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}(this,(function(i){var s;switch(i.label){case 0:return[4,(0,l.nextTick)()];case 1:return i.sent(),n.updateColumns(),x(),requestAnimationFrame(b),t=r.vnode.el,o=r.refs.headerWrapper,e.flexible&&t&&t.parentElement&&(t.parentElement.style.minWidth="0"),c.value={width:p.value=t.offsetWidth,height:t.offsetHeight,headerHeight:e.showHeader&&o?o.offsetHeight:null},L()(s=n.states.columns.value).call(s,(function(e){e.filteredValue&&e.filteredValue.length&&r.store.commit("filterChange",{column:e,values:e.filteredValue,silent:!0})})),r.$ready=!0,[2]}}))},new((s=void 0)||(s=fs()))((function(e,n){function r(e){try{l(a.next(e))}catch(e){n(e)}}function o(e){try{l(a.throw(e))}catch(e){n(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof s?n:new s((function(e){e(n)}))).then(r,o)}l((a=a.apply(t,i||[])).next())}));var t,i,s,a}));var _=function(e){!function(e,n){var r;if(e){var o=S()(r=da()(e.classList)).call(r,(function(e){return!Oa()(e).call(e,"is-scrolling-")}));o.push(t.scrollX.value?n:"is-scrolling-none"),e.className=o.join(" ")}}(r.refs.tableWrapper,e)},E=function(){if(r.refs.scrollBarRef){if(!t.scrollX.value){var e="is-scrolling-none";return n=e,void((o=r.refs.tableWrapper)&&o.classList.contains(n)||_(e))}var n,o,i=r.refs.scrollBarRef.wrapRef;if(i){var s=i.scrollLeft,a=i.offsetWidth,l=i.scrollWidth,c=r.refs,u=c.headerWrapper,p=c.footerWrapper;u&&(u.scrollLeft=s),p&&(p.scrollLeft=s),_(s>=l-a-1?"is-scrolling-right":0===s?"is-scrolling-left":"is-scrolling-middle")}}},x=function(){r.refs.scrollBarRef&&(r.refs.scrollBarRef.wrapRef&&(0,De.MLh)(r.refs.scrollBarRef.wrapRef,"scroll",E,{passive:!0}),e.fit?(0,De.wYm)(r.vnode.el,w):(0,De.MLh)(window,"resize",w),(0,De.wYm)(r.refs.bodyWrapper,(function(){var e,t;w(),null===(t=null===(e=r.refs)||void 0===e?void 0:e.scrollBarRef)||void 0===t||t.update()})))},w=function(){var t,n,o,i,s=r.vnode.el;if(r.$ready&&s){var a=!1,l=c.value,u=l.width,v=l.height,_=l.headerHeight,E=p.value=s.offsetWidth;u!==E&&(a=!0);var x=s.offsetHeight;(e.height||g.value)&&v!==x&&(a=!0);var w="fixed"===e.tableLayout?r.refs.headerWrapper:null===(t=r.refs.tableHeaderRef)||void 0===t?void 0:t.$el;e.showHeader&&(null==w?void 0:w.offsetHeight)!==_&&(a=!0),f.value=(null===(n=r.refs.tableWrapper)||void 0===n?void 0:n.scrollHeight)||0,h.value=(null==w?void 0:w.scrollHeight)||0,m.value=(null===(o=r.refs.footerWrapper)||void 0===o?void 0:o.offsetHeight)||0,y.value=(null===(i=r.refs.appendWrapper)||void 0===i?void 0:i.offsetHeight)||0,d.value=f.value-h.value-m.value-y.value,a&&(c.value={width:E,height:x,headerHeight:e.showHeader&&(null==w?void 0:w.offsetHeight)||0},b())}},T=As(),A=(0,l.computed)((function(){var e=t.bodyWidth,n=t.scrollY,r=t.gutterWidth;return e.value?"".concat(e.value-(n.value?r:0),"px"):""})),P=(0,l.computed)((function(){return e.maxHeight?"fixed":e.tableLayout})),O=(0,l.computed)((function(){if(e.data&&e.data.length)return null;var t="100%";e.height&&d.value&&(t="".concat(d.value,"px"));var n=p.value;return{width:n?"".concat(n,"px"):"",height:t}})),C=(0,l.computed)((function(){return e.height?{height:bn()(Number(e.height))?e.height:"".concat(e.height,"px")}:e.maxHeight?{maxHeight:bn()(Number(e.maxHeight))?e.maxHeight:"".concat(e.maxHeight,"px")}:{}})),k=(0,l.computed)((function(){return e.height?{height:"100%"}:e.maxHeight?bn()(Number(e.maxHeight))?{maxHeight:F()(t="calc(".concat(e.maxHeight," - ")).call(t,h.value+m.value,"px)")}:{maxHeight:"".concat(e.maxHeight-h.value-m.value,"px")}:{};var t}));return{isHidden:i,renderExpanded:s,setDragVisible:function(e){a.value=e},isGroup:u,handleMouseLeave:function(){r.store.commit("setHoverRow",null),r.hoverState&&(r.hoverState=null)},handleHeaderFooterMousewheel:function(e,t){var n=t.pixelX,o=t.pixelY;Math.abs(n)>=Math.abs(o)&&(r.refs.bodyWrapper.scrollLeft+=t.pixelX/5)},tableSize:T,emptyBlockStyle:O,handleFixedMousewheel:function(e,t){var n=r.refs.bodyWrapper;if(Math.abs(t.spinY)>0){var o=n.scrollTop;t.pixelY<0&&0!==o&&e.preventDefault(),t.pixelY>0&&n.scrollHeight-n.clientHeight>o&&e.preventDefault(),n.scrollTop+=Math.ceil(t.pixelY/5)}else n.scrollLeft+=Math.ceil(t.pixelX/5)},resizeProxyVisible:a,bodyWidth:A,resizeState:c,doLayout:b,tableBodyStyles:v,tableLayout:P,scrollbarViewStyle:{display:"inline-block",verticalAlign:"middle"},tableInnerStyle:C,scrollbarStyle:k}};const ka={data:{type:Array,default:function(){return[]}},size:je.useSizeProp,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:function(){return{hasChildren:"hasChildren",children:"children"}}},lazy:Boolean,load:Function,style:{type:Object,default:function(){return{}}},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:Boolean,flexible:Boolean,showOverflowTooltip:[Boolean,Function,Object]};function Ia(e){var t="auto"===e.tableLayout,n=e.columns||[];return t&&k()(n).call(n,(function(e){return void 0===e.width}))&&(n=[]),(0,l.h)("colgroup",{},y()(n).call(n,(function(n){return(0,l.h)("col",function(n){var r,o={key:F()(r="".concat(e.tableLayout,"_")).call(r,n.id),style:{},name:void 0};return t?o.style={width:"".concat(n.width,"px")}:o.name=n.id,o}(n))})))}n(62010),Ia.props=["columns","tableLayout"];var Na=1;const ja=(0,l.defineComponent)({name:"ElTable",directives:{Mousewheel:Ne},components:{TableHeader:pa,TableBody:Ea,TableFooter:Aa,ElScrollbar:sn,hColgroup:Ia},props:ka,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change"],setup:function(e){var t,n=(0,je.useLocale)().t,r=(0,je.useNamespace)("table"),o=(0,l.getCurrentInstance)();(0,l.provide)(ia,o);var i=function(e,t){var n;if(!e)throw new Error("Table is required.");var r=os();return r.toggleAllSelection=ae(r._toggleAllSelection,10),L()(n=f()(ss)).call(n,(function(e){as(ls(t,e),e,r)})),function(e,t){var n;L()(n=f()(ss)).call(n,(function(n){(0,l.watch)((function(){return ls(t,n)}),(function(t){as(t,n,e)}))}))}(r,t),r}(o,e);o.store=i;var s=new us({store:o.store,table:o,fit:e.fit,showHeader:e.showHeader});o.layout=s;var a=(0,l.computed)((function(){return 0===(i.states.data.value||[]).length})),c=function(e){return{setCurrentRow:function(t){e.commit("setCurrentRow",t)},getSelectionRows:function(){return e.getSelectionRows()},toggleRowSelection:function(t,n){e.toggleRowSelection(t,n,!1),e.updateAllSelected()},clearSelection:function(){e.clearSelection()},clearFilter:function(t){e.clearFilter(t)},toggleAllSelection:function(){e.commit("toggleAllSelection")},toggleRowExpansion:function(t,n){e.toggleRowExpansionAdapter(t,n)},clearSort:function(){e.clearSort()},sort:function(t,n){e.commit("sort",{prop:t,order:n})}}}(i),u=c.setCurrentRow,p=c.getSelectionRows,d=c.toggleRowSelection,h=c.clearSelection,m=c.clearFilter,y=c.toggleAllSelection,g=c.toggleRowExpansion,v=c.clearSort,b=x()(c),_=Ca(e,s,i,o),E=_.isHidden,w=_.renderExpanded,S=_.setDragVisible,T=_.isGroup,A=_.handleMouseLeave,P=_.handleHeaderFooterMousewheel,O=_.tableSize,C=_.emptyBlockStyle,k=_.handleFixedMousewheel,I=_.resizeProxyVisible,j=_.bodyWidth,D=_.resizeState,M=_.doLayout,R=_.tableBodyStyles,B=_.tableLayout,q=_.scrollbarViewStyle,U=_.tableInnerStyle,$=_.scrollbarStyle,W=function(){var e=(0,l.ref)(),t=function(t,n){var r,o=e.value;o&&(0,V.isNumber)(n)&&N()(r=["Top","Left"]).call(r,t)&&o["setScroll".concat(t)](n)};return{scrollBarRef:e,scrollTo:function(t,n){var r=e.value;r&&r.scrollTo(t,n)},setScrollTop:function(e){return t("Top",e)},setScrollLeft:function(e){return t("Left",e)}}}(),K=W.scrollBarRef,z=W.scrollTo,H=W.setScrollLeft,G=W.setScrollTop,Q=ae(M,50),X=F()(t="".concat(r.namespace.value,"-table_")).call(t,Na++);o.tableId=X,o.state={isGroup:T,resizeState:D,doLayout:M,debouncedUpdateLayout:Q};var Y=(0,l.computed)((function(){return e.sumText||n("el.table.sumText")})),J=(0,l.computed)((function(){return e.emptyText||n("el.table.emptyText")})),Z=(0,l.computed)((function(){return ua(i.states.originColumns.value)[0]}));return function(e){var t=(0,l.ref)();(0,l.onMounted)((function(){var n,r;n=e.vnode.el.querySelector(".hidden-columns"),r=e.store.states.updateOrderFns,t.value=new MutationObserver((function(){L()(r).call(r,(function(e){return e()}))})),t.value.observe(n,{childList:!0,subtree:!0})})),(0,l.onUnmounted)((function(){var e;null===(e=t.value)||void 0===e||e.disconnect()}))}(o),{ns:r,layout:s,store:i,columns:Z,handleHeaderFooterMousewheel:P,handleMouseLeave:A,tableId:X,tableSize:O,isHidden:E,isEmpty:a,renderExpanded:w,resizeProxyVisible:I,resizeState:D,isGroup:T,bodyWidth:j,tableBodyStyles:R,emptyBlockStyle:C,debouncedUpdateLayout:Q,handleFixedMousewheel:k,setCurrentRow:u,getSelectionRows:p,toggleRowSelection:d,clearSelection:h,clearFilter:m,toggleAllSelection:y,toggleRowExpansion:g,clearSort:v,doLayout:M,sort:b,t:n,setDragVisible:S,context:o,computedSumText:Y,computedEmptyText:J,tableLayout:B,scrollbarViewStyle:q,tableInnerStyle:U,scrollbarStyle:$,scrollBarRef:K,scrollTo:z,setScrollLeft:H,setScrollTop:G}}}),Da=(0,ta.A)(ja,[["render",function(e,t,n,r,o,i){var s,a=(0,l.resolveComponent)("hColgroup"),c=(0,l.resolveComponent)("table-header"),u=(0,l.resolveComponent)("table-body"),p=(0,l.resolveComponent)("table-footer"),f=(0,l.resolveComponent)("el-scrollbar"),d=(0,l.resolveDirective)("mousewheel");return(0,l.openBlock)(),(0,l.createElementBlock)("div",{ref:"tableWrapper",class:(0,l.normalizeClass)([(s={},s[e.ns.m("fit")]=e.fit,s[e.ns.m("striped")]=e.stripe,s[e.ns.m("border")]=e.border||e.isGroup,s[e.ns.m("hidden")]=e.isHidden,s[e.ns.m("group")]=e.isGroup,s[e.ns.m("fluid-height")]=e.maxHeight,s[e.ns.m("scrollable-x")]=e.layout.scrollX.value,s[e.ns.m("scrollable-y")]=e.layout.scrollY.value,s[e.ns.m("enable-row-hover")]=!e.store.states.isComplex.value,s[e.ns.m("enable-row-transition")]=0!==(e.store.states.data.value||[]).length&&(e.store.states.data.value||[]).length<100,s["has-footer"]=e.showSummary,s),e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m("layout-".concat(e.tableLayout))]),style:(0,l.normalizeStyle)(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.handleMouseLeave&&e.handleMouseLeave.apply(e,t)})},[(0,l.createElementVNode)("div",{class:(0,l.normalizeClass)(e.ns.e("inner-wrapper")),style:(0,l.normalizeStyle)(e.tableInnerStyle)},[(0,l.createElementVNode)("div",W,[(0,l.renderSlot)(e.$slots,"default")],512),e.showHeader&&"fixed"===e.tableLayout?(0,l.withDirectives)(((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:0,ref:"headerWrapper",class:(0,l.normalizeClass)(e.ns.e("header-wrapper"))},[(0,l.createElementVNode)("table",{ref:"tableHeader",class:(0,l.normalizeClass)(e.ns.e("header")),style:(0,l.normalizeStyle)(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[(0,l.createVNode)(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),(0,l.createVNode)(c,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[d,e.handleHeaderFooterMousewheel]]):(0,l.createCommentVNode)("v-if",!0),(0,l.createElementVNode)("div",{ref:"bodyWrapper",class:(0,l.normalizeClass)(e.ns.e("body-wrapper"))},[(0,l.createVNode)(f,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn},{default:(0,l.withCtx)((function(){return[(0,l.createElementVNode)("table",{ref:"tableBody",class:(0,l.normalizeClass)(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:(0,l.normalizeStyle)({width:e.bodyWidth,tableLayout:e.tableLayout})},[(0,l.createVNode)(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&"auto"===e.tableLayout?((0,l.openBlock)(),(0,l.createBlock)(c,{key:0,ref:"tableHeaderRef",class:(0,l.normalizeClass)(e.ns.e("body-header")),border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["class","border","default-sort","store","onSetDragVisible"])):(0,l.createCommentVNode)("v-if",!0),(0,l.createVNode)(u,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"tooltip-options":e.tooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"]),e.showSummary&&"auto"===e.tableLayout?((0,l.openBlock)(),(0,l.createBlock)(p,{key:1,class:(0,l.normalizeClass)(e.ns.e("body-footer")),border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):(0,l.createCommentVNode)("v-if",!0)],6),e.isEmpty?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:0,ref:"emptyBlock",style:(0,l.normalizeStyle)(e.emptyBlockStyle),class:(0,l.normalizeClass)(e.ns.e("empty-block"))},[(0,l.createElementVNode)("span",{class:(0,l.normalizeClass)(e.ns.e("empty-text"))},[(0,l.renderSlot)(e.$slots,"empty",{},(function(){return[(0,l.createTextVNode)((0,l.toDisplayString)(e.computedEmptyText),1)]}))],2)],6)):(0,l.createCommentVNode)("v-if",!0),e.$slots.append?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:1,ref:"appendWrapper",class:(0,l.normalizeClass)(e.ns.e("append-wrapper"))},[(0,l.renderSlot)(e.$slots,"append")],2)):(0,l.createCommentVNode)("v-if",!0)]})),_:3},8,["view-style","wrap-style","always"])],2),e.showSummary&&"fixed"===e.tableLayout?(0,l.withDirectives)(((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:1,ref:"footerWrapper",class:(0,l.normalizeClass)(e.ns.e("footer-wrapper"))},[(0,l.createElementVNode)("table",{class:(0,l.normalizeClass)(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:(0,l.normalizeStyle)(e.tableBodyStyles)},[(0,l.createVNode)(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),(0,l.createVNode)(p,{border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[l.vShow,!e.isEmpty],[d,e.handleHeaderFooterMousewheel]]):(0,l.createCommentVNode)("v-if",!0),e.border||e.isGroup?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:2,class:(0,l.normalizeClass)(e.ns.e("border-left-patch"))},null,2)):(0,l.createCommentVNode)("v-if",!0)],6),(0,l.withDirectives)((0,l.createElementVNode)("div",{ref:"resizeProxy",class:(0,l.normalizeClass)(e.ns.e("column-resize-proxy"))},null,2),[[l.vShow,e.resizeProxyVisible]])],46,$)}]]),Ma=Da;var La={selection:"table-column--selection",expand:"table__expand-column"},Ra={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},Ba={selection:{renderHeader:function(e){var t=e.store,n=e.column;return(0,l.h)(Ws,{disabled:t.states.data.value&&0===t.states.data.value.length,size:t.states.tableSize.value,indeterminate:t.states.selection.value.length>0&&!t.states.isAllSelected.value,"onUpdate:modelValue":t.toggleAllSelection,modelValue:t.states.isAllSelected.value,ariaLabel:n.label})},renderCell:function(e){var t=e.row,n=e.column,r=e.store,o=e.$index;return(0,l.h)(Ws,{disabled:!!n.selectable&&!n.selectable.call(null,t,o),size:r.states.tableSize.value,onChange:function(){r.commit("rowSelectedChanged",t)},onClick:function(e){return e.stopPropagation()},modelValue:r.isSelected(t),ariaLabel:n.label})},sortable:!1,resizable:!1},index:{renderHeader:function(e){return e.column.label||"#"},renderCell:function(e){var t=e.column,n=e.$index,r=n+1,o=t.index;return"number"==typeof o?r=n+o:"function"==typeof o&&(r=o(n)),(0,l.h)("div",{},[r])},sortable:!1},expand:{renderHeader:function(e){return e.column.label||""},renderCell:function(e){var t=e.row,n=e.store,r=e.expanded,o=n.ns,i=[o.e("expand-icon")];return r&&i.push(o.em("expand-icon","expanded")),(0,l.h)("div",{class:i,onClick:function(e){e.stopPropagation(),n.toggleRowExpansion(t)}},{default:function(){return[(0,l.h)(Gs.ElIcon,null,{default:function(){return[(0,l.h)(Qs.ArrowRight)]}})]}})},sortable:!1,resizable:!1}};function qa(e){var t,n=e.row,r=e.column,o=e.$index,i=r.property,s=i&&(0,V.getProp)(n,i).value;return r&&r.formatter?r.formatter(n,r,s,o):(null===(t=null==s?void 0:s.toString)||void 0===t?void 0:t.call(s))||""}function Fa(e,t){return u()(e).call(e,(function(e,t){return e[t]=t,e}),t)}const Ua={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:{type:[Boolean,Object,Function],default:void 0},fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},filterClassName:String,index:[Number,Function],sortOrders:{type:Array,default:function(){return["ascending","descending",null]},validator:function(e){return k()(e).call(e,(function(e){var t;return N()(t=["ascending","descending",null]).call(t,e)}))}}};var Va=function(){return Va=cn()||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Va.apply(this,arguments)},$a=1;const Wa=(0,l.defineComponent)({name:"ElTableColumn",components:{ElCheckbox:Ws},props:Ua,setup:function(e,t){var n,r=t.slots,o=(0,l.getCurrentInstance)(),i=(0,l.ref)({}),s=(0,l.computed)((function(){for(var e=o.parent;e&&!e.tableId;)e=e.parent;return e})),a=function(e,t){var n=(0,l.getCurrentInstance)();return{registerComplexWatchers:function(){var r,o={realWidth:"width",realMinWidth:"minWidth"},i=Fa(["fixed"],o);L()(r=f()(i)).call(r,(function(r){var i=o[r];(0,V.hasOwn)(t,i)&&(0,l.watch)((function(){return t[i]}),(function(t){var o=t;"width"===i&&"realWidth"===r&&(o=qi(t)),"minWidth"===i&&"realMinWidth"===r&&(o=Fi(t)),n.columnConfig.value[i]=o,n.columnConfig.value[r]=o;var s="fixed"===i;e.value.store.scheduleLayout(s)}))}))},registerNormalWatchers:function(){var e,r={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},o=Fa(["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip"],r);L()(e=f()(o)).call(e,(function(e){var o=r[e];(0,V.hasOwn)(t,o)&&(0,l.watch)((function(){return t[o]}),(function(t){n.columnConfig.value[e]=t}))}))}}}(s,e),c=a.registerNormalWatchers,p=a.registerComplexWatchers,d=function(e,t,n){var r=(0,l.getCurrentInstance)(),o=(0,l.ref)(""),i=(0,l.ref)(!1),s=(0,l.ref)(),a=(0,l.ref)(),c=(0,je.useNamespace)("table");(0,l.watchEffect)((function(){s.value=e.align?"is-".concat(e.align):null,s.value})),(0,l.watchEffect)((function(){a.value=e.headerAlign?"is-".concat(e.headerAlign):s.value,a.value}));var p=(0,l.computed)((function(){for(var e=r.vnode.vParent||r.parent;e&&!e.tableId&&!e.columnId;)e=e.vnode.vParent||e.parent;return e})),d=(0,l.computed)((function(){var e=r.parent.store;if(!e)return!1;var t=e.states.treeData.value;return t&&f()(t).length>0})),m=(0,l.ref)(qi(e.width)),y=(0,l.ref)(Fi(e.minWidth));return{columnId:o,realAlign:s,isSubColumn:i,realHeaderAlign:a,columnOrTableParent:p,setColumnWidth:function(e){return m.value&&(e.width=m.value),y.value&&(e.minWidth=y.value),!m.value&&y.value&&(e.width=void 0),e.minWidth||(e.minWidth=80),e.realWidth=Number(void 0===e.width?e.minWidth:e.width),e},setColumnForcedProps:function(e){var t,n=e.type,r=Ba[n]||{};L()(t=f()(r)).call(t,(function(t){var n=r[t];"className"!==t&&void 0!==n&&(e[t]=n)}));var o=function(e){return La[e]||""}(n);if(o){var i,s,a=F()(i="".concat((0,l.unref)(c.namespace),"-")).call(i,o);e.className=e.className?F()(s="".concat(e.className," ")).call(s,a):a}return e},setColumnRenders:function(o){e.renderHeader?(0,V.debugWarn)("TableColumn","Comparing to render-header, scoped-slot header is easier to use. We recommend users to use scoped-slot header."):"selection"!==o.type&&(o.renderHeader=function(e){return r.columnConfig.value.label,(0,l.renderSlot)(t,"header",e,(function(){return[o.label]}))});var i=o.renderCell;return"expand"===o.type?(o.renderCell=function(e){return(0,l.h)("div",{class:"cell"},[i(e)])},n.value.renderExpanded=function(e){return t.default?t.default(e):t.default}):(i=i||qa,o.renderCell=function(e){var s,a=null;if(t.default){var u=t.default(e);a=O()(u).call(u,(function(e){return e.type!==l.Comment}))?u:i(e)}else a=i(e);var p,f=n.value.store.states.columns,m=dn()(s=f.value).call(s,(function(e){return"default"===e.type})),y=function(e,t){var n=e.row,r=e.treeNode,o=e.store;void 0===t&&(t=!1);var i=o.ns;if(!r)return t?[(0,l.h)("span",{class:i.e("placeholder")})]:null;var s=[];if(r.indent&&s.push((0,l.h)("span",{class:i.e("indent"),style:{"padding-left":"".concat(r.indent,"px")}})),"boolean"!=typeof r.expanded||r.noLazyChildren)s.push((0,l.h)("span",{class:i.e("placeholder")}));else{var a=[i.e("expand-icon"),r.expanded?i.em("expand-icon","expanded"):""],c=Qs.ArrowRight;r.loading&&(c=Qs.Loading),s.push((0,l.h)("div",{class:a,onClick:function(e){e.stopPropagation(),r.loading||o.loadOrToggle(n)}},{default:function(){var e;return[(0,l.h)(Gs.ElIcon,{class:(e={},e[i.is("loading")]=r.loading,e)},{default:function(){return[(0,l.h)(c)]}})]}}))}return s}(e,d.value&&e.cellIndex===m),g={class:"cell",style:{}};return o.showOverflowTooltip&&(g.class=F()(p="".concat(g.class," ")).call(p,(0,l.unref)(c.namespace),"-tooltip"),g.style={width:"".concat((e.column.realWidth||Number(e.column.width))-1,"px")}),function(e){function t(e){var t;"ElTableColumn"===(null===(t=null==e?void 0:e.type)||void 0===t?void 0:t.name)&&(e.vParent=r)}h()(e)?L()(e).call(e,(function(e){return t(e)})):t(e)}(a),(0,l.h)("div",g,[y,a])}),o},getPropsData:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return u()(t).call(t,(function(t,n){return h()(n)&&L()(n).call(n,(function(n){t[n]=e[n]})),t}),{})},getColumnElIndex:function(e,t){return B()(Array.prototype).call(e,t)},updateColumnOrder:function(){n.value.store.commit("updateColumnOrder",r.columnConfig.value)}}}(e,r,s),m=d.columnId,y=d.isSubColumn,g=d.realHeaderAlign,v=d.columnOrTableParent,b=d.setColumnWidth,_=d.setColumnForcedProps,E=d.setColumnRenders,x=d.getPropsData,w=d.getColumnElIndex,S=d.realAlign,T=d.updateColumnOrder,A=v.value;m.value=F()(n="".concat(A.tableId||A.columnId,"_column_")).call(n,$a++),(0,l.onBeforeMount)((function(){y.value=s.value!==A;var t=e.type||"default",n=""===e.sortable||e.sortable,r=(0,V.isUndefined)(e.showOverflowTooltip)?A.props.showOverflowTooltip:e.showOverflowTooltip,a=Va(Va({},Ra[t]),{id:m.value,type:t,property:e.prop||e.property,align:S,headerAlign:g,showOverflowTooltip:r,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:n,index:e.index,rawColumnKey:o.vnode.key}),l=x(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);l=function(e,t){var n,r={};for(n in e)r[n]=e[n];for(n in t)if((0,V.hasOwn)(t,n)){var o=t[n];void 0!==o&&(r[n]=o)}return r}(a,l);var f=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?function(e){return e}:1===e.length?e[0]:u()(e).call(e,(function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e(t.apply(void 0,n))}}))}(E,b,_);l=f(l),i.value=l,c(),p()})),(0,l.onMounted)((function(){var e,t=v.value,n=y.value?t.vnode.el.children:null===(e=t.refs.hiddenColumns)||void 0===e?void 0:e.children,r=function(){return w(n||[],o.vnode.el)};i.value.getColumnIndex=r,r()>-1&&s.value.store.commit("insertColumn",i.value,y.value?t.columnConfig.value:null,T)})),(0,l.onBeforeUnmount)((function(){i.value.getColumnIndex()>-1&&s.value.store.commit("removeColumn",i.value,y.value?A.columnConfig.value:null,T)})),o.columnId=m.value,o.columnConfig=i},render:function(){var e,t,n;try{var r=null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e,{row:{},column:{},$index:-1}),o=[];if(h()(r))for(var i=0,s=r;i<s.length;i++){var a=s[i];if("ElTableColumn"===(null===(n=a.type)||void 0===n?void 0:n.name)||2&a.shapeFlag)o.push(a);else if(a.type===l.Fragment&&h()(a.children)){var c;L()(c=a.children).call(c,(function(e){1024===(null==e?void 0:e.patchFlag)||(0,V.isString)(null==e?void 0:e.children)||o.push(e)}))}}return(0,l.h)("div",o)}catch(e){return(0,l.h)("div",[])}}}),Ka=Wa,za=(0,V.withInstall)(Ma,{TableColumn:Ka});var Ha=(0,V.withNoopInstall)(Ka),Ga=n(50510),Qa=n(17427);function Xa(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!(0,l.isVNode)(e)}const Ya={inheritAttrs:!1,name:"CustomComponentTable",props:(0,a.A)((0,a.A)((0,a.A)({},Qa.yz),za.props),U.ElPagination.props),setup:function(e,t){var n,c=t.expose,p=t.attrs,d=t.emit,m=(0,l.computed)({get:function(){return e.modelValue},set:function(e){d("update:modelValue",e)}}),g=(0,l.computed)((function(){var t,n=u()(t=f()(za.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})),b=function(e){var t=e.emits;return h()(t)||(t=f()(t)),u()(t).call(t,(function(e,t){var n="on".concat((0,Qa.ZH)((0,Qa.PT)(t)));return(0,Qa.$3)(p,n)&&(e[n]=p[n]),e}),{})},E=(0,l.computed)((function(){return b(za)})),w=(0,l.computed)((function(){var e=(0,a.A)({},E.value||{});return delete e.onSortChange,e})),T=(0,l.computed)((function(){return b(U.ElPagination)})),P=(0,l.inject)("indectModeRef",(0,l.ref)("")),C=((0,l.inject)("_ruleExecuter"),(0,l.inject)("dynamicMapComp"),(0,l.inject)("_parentRootValue",{})),I=(0,l.inject)("_parentDynamicMapComp",{}),j=(0,l.inject)("_selectionsObj",{}),M=(0,l.inject)("_rootStore",{}),R=(0,l.inject)("lang"),q=(0,l.inject)("rootValue"),V=(0,l.inject)("selects"),$=(0,l.ref)(""),W=(0,l.computed)((function(){var t=e.config.pmPageMetaList||[];return y()(t).call(t,(function(t){return t.displayType===Qa.Op||0==e.width||"0px"==e.width||"1"==t.hidden||$.value||($.value=t.metaCode),ee(t)}))})),K=5;null!==(n=e.config)&&void 0!==n&&n.pageSize&&(K=v()(e.config.pageSize)||5);var z=(0,l.reactive)({pageNum:1,pageSize:K,total:0}),H=(0,l.computed)((function(){var t;return"1"==(null===(t=e.config)||void 0===t?void 0:t.frontPageFlag)})),G=(0,l.computed)((function(){var e;return H.value?(null===(e=m.value||[])||void 0===e?void 0:e.length)||0:z.total})),Q=(0,l.computed)((function(){var e;return H.value?_()(e=m.value||[]).call(e,(z.pageNum-1)*z.pageSize,z.pageNum*z.pageSize):m.value||[]})),X=(0,l.ref)(null),Y=function(e){var t,n,r=e.prop,o=e.order;null===(t=E.value)||void 0===t||null===(n=t.onSortChange)||void 0===n||n.call(t,{prop:r,order:o}),X.value=null,o&&(X.value={prop:r,order:o})},J=(0,l.computed)((function(){if(!X.value)return[];var e=[X.value],t=u()(e).call(e,(function(e,t){return e=x()(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})),e}),(0,s.A)(Q.value||[]));return t})),Z=(0,l.computed)((function(){return X.value?J.value:Q.value})),ee=function(e){return(0,a.A)((0,a.A)({},e),{},{labelHidden:"1"})},te=(0,l.computed)((function(){return e.config.multiPmPageMetaList||[]})),ne=new(D());(0,l.watch)((function(){var e;return null==Z||null===(e=Z.value)||void 0===e?void 0:e.length}),(function(t){var n=[];if(t){var r,o=Z.value;n=null==o||null===(r=y()(o))||void 0===r?void 0:r.call(o,(function(t,n){var r=ne.get(t);if(r)return L()(r).call(r,(function(e){e.rowIndex=n})),r;var o,i=y()(o=W.value).call(o,(function(t,r){var o,i=(0,Qa.mg)(t);return i.width&&!i.columnWidth&&(i.columnWidth=i.width,delete i.width),i.columnId=(0,Qa.Ij)(),i.rowIndex=n,i.isColumn=!0,i.refConfig=null==e||null===(o=e.config)||void 0===o||null===(o=o.pmPageMetaList)||void 0===o?void 0:o[r],i.parent=null==e?void 0:e.config,i}));return ne.set(t,i),i}))}(0,Qa.Ts)(e.config,"multiPmPageMetaList",n)}),{immediate:!0,deep:!0});var re=(0,l.computed)((function(){var t;return(null===(t=e.config)||void 0===t?void 0:t.totalMetaCodes)||[]})),oe=(0,l.computed)((function(){var e,t;return S()(e=y()(t=re.value).call(t,(function(e){return"string"==typeof e?{code:e,totalFn:se}:(0,Qa.Qd)(e)&&(0,Qa.$3)(e,"code")?(e.totalFn="function"==typeof e.totalFn?e.totalFn:se,e):null}))).call(e,(function(e){return!!e}))})),ie=(0,l.computed)((function(){var e,t=(0,i.A)({},$.value,(function(){var e;return(0,l.createVNode)("div",null,[B()(e=R.value).call(e,"zh")>-1?"总计":"Total"])}));return u()(e=oe.value).call(e,(function(e,t){var n=t.code,r=t.render;return r&&"function"==typeof r&&(e[n]=r),e}),t)})),se=function(e,t,n){if(null==t)void 0===(t=0)&&(t="");else{var r=t.toString(),o=/^-/.test(r);t=r.replace(/[^\d\.]/g,""),o&&(t="-".concat(t))}var i=!isNaN(Number(t));return null==e&&(e=i?0:""),e+(i?Number(t):t)},ae=(0,l.computed)((function(){var e,t;return null!==(e=Z.value)&&void 0!==e&&e.length&&re.value.length&&oe.value.length?[u()(t=Z.value||[]).call(t,(function(e,t){var n;return L()(n=oe.value).call(n,(function(n){var r=n.code,o=n.totalFn;e[r]=o(e[r],t[r],t)})),e}),{totalFlag:!0})]:[]})),le=(0,l.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)})),ce=(0,l.ref)(null),ue=function(e){var t;ce.value=e,null==E||null===(t=E.onCurrentChange)||void 0===t||t.call(E,e),M.tableSelectedInfo=e},pe=(0,l.ref)([]),fe=function(e){pe.value=e,M.tableSelectedInfo=e},de=(0,l.computed)((function(){var t;return"1"==(null===(t=e.config)||void 0===t?void 0:t.pageable)})),he=(0,l.computed)((function(){var t;return null===(t=e.config)||void 0===t?void 0:t.pageAlign})),me="right",ye=(0,i.A)((0,i.A)((0,i.A)({},"left","flex-start"),me,"flex-end"),"center","center"),ge=(0,l.computed)((function(){var t,n=u()(t=f()(U.ElPagination.props)).call(t,(function(t,n){return(0,Qa.$3)(e.config,n)&&(t[n]=e.config[n]),t}),{});return(0,Qa.$3)(n,"background")||(n.background=!0),(0,Qa.$3)(n,"layout")||(n.layout="prev, pager, next, jumper, sizes, total"),(0,Qa.$3)(n,"page-sizes")||(0,Qa.$3)(n,"pageSizes")||(n.pageSizes=[5,10,20,40]),n}));(0,l.watch)((function(){return z.pageNum}),function(){var t=(0,o.A)((0,r.A)().mark((function t(n){var o,i,s,a,l,c;return(0,r.A)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null===(o=e.config)||void 0===o||!o.serviceCurrentChangeLoad){t.next=2;break}return t.abrupt("return");case 2:return a=null===(i=e.config)||void 0===i?void 0:i.currentChange,t.next=5,null==a?void 0:a(n,e,z);case 5:(l=t.sent)&&(0,Qa.cy)(l)&&(m.value=l),null==(c=null===(s=e.config)||void 0===s?void 0:s.serviceCurrentChange)||c(n,e,z);case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),(0,l.watch)((function(){return z.pageSize}),function(){var t=(0,o.A)((0,r.A)().mark((function t(n){var o,i,s,a,l;return(0,r.A)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return s=null===(o=e.config)||void 0===o?void 0:o.sizeChange,t.next=3,null==s?void 0:s(n,e,z);case 3:(a=t.sent)&&(0,Qa.cy)(a)&&(m.value=a),null==(l=null===(i=e.config)||void 0===i?void 0:i.serviceSizeChange)||l(n,e,z);case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());var ve=["clearSelection","getSelectionRows","toggleRowSelection","toggleAllSelection","toggleRowExpansion","setCurrentRow","clearSort","clearFilter","doLayout","sort","scrollTo","setScrollTop","setScrollLeft","columns"],be=(0,l.ref)(null),_e=u()(ve).call(ve,(function(e,t){return e[t]=function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===(e=be.value)||void 0===e||e[t].apply(e,r)},e}),{});c((0,a.A)({multipleSelection:pe,selectedRow:ce,page:z,changePage:function(e,t){z[t||"pageNum"]=e}},_e));var Ee=(0,l.computed)((function(){var e,t;return null!==(e=ae.value)&&void 0!==e&&e.length?F()(t=[]).call(t,(0,s.A)(Z.value),(0,s.A)(ae.value)):Z.value}));return function(){var t,n,r,o;return(0,l.createVNode)("div",{class:"custom-component-table"},[(0,l.createVNode)(za,(0,l.mergeProps)(g.value,w.value,{ref:function(e){be.value=e},"highlight-current-row":!!(le.value||null!==(n=g.value)&&void 0!==n&&n.highlightCurrentRow),onCurrentChange:le.value||null!==(r=g.value)&&void 0!==r&&r.highlightCurrentRow?ue:function(){},data:Ee.value,onSelectionChange:fe,onSortChange:Y}),Xa(t=y()(o=W.value).call(o,(function(t,n){return t.displayType==Qa.Op?null:(0,l.createVNode)(Ha,(0,l.mergeProps)({key:t.requiredFlag+t.metaCode},function(t,n){var r,o,i,s=_()(r=W.value).call(r,n+1),l=!(null!=s&&null!==(o=S()(s).call(s,(function(e){return e.displayType!=Qa.Op&&!(0==e.width||"0px"==e.width||"1"==e.hidden)})))&&void 0!==o&&o.length),c=A()(s).call(s,(function(e){return e.displayType!=Qa.Op})),p=u()(i=f()(Ha.props)).call(i,(function(e,n){return(0,Qa.$3)(t,n)&&(e[n]=t[n]),e}),{});if("1"==t.showOverflowTooltip||"1"==t["show-overflow-tooltip"]?(p["show-overflow-tooltip"]=!0,p.showOverflowTooltip=!0):(p["show-overflow-tooltip"]=!1,p.showOverflowTooltip=!1),p.prop||(p.prop=t.metaCode),t.columnWidth&&(p.width=t.columnWidth),p.width||(p.minWidth="160px"),0!=p.width&&"0px"!=p.width&&"1"!=t.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")),l&&(p.className="".concat(p.className||""," end-show-column")),"CustomComponentSelectEmployees"==t.metaType&&(p.className="".concat(p.className||""," clear-index")),(0,Qa.rn)((0,a.A)((0,a.A)({},t),{},{isColumn:!0}),!0)&&"0"!=t.showOverflowTooltip&&"0"!=t["show-overflow-tooltip"]){var d=function(e){var t,r=null===(t=te.value)||void 0===t||null===(t=t[e.$index])||void 0===t?void 0:t[n];return!r||(0,Qa.rn)((0,a.A)((0,a.A)({},r),{},{isColumn:!0}),(0,Qa.AP)(r,P.value))};p["show-overflow-tooltip"]=d,p.showOverflowTooltip=d}if("selection"===t.type){var h=p.selectable;p.selectable=function(t,n){var r=!0;h&&"function"==typeof h&&(r=h(t,n,{tableConfig:e.config,rootValue:q,parentRootValue:C,parentDynamicMapComp:I}));var o,i=!0;return j.selections&&j.selections.length&&j.primaryKeys&&j.primaryKeys.length&&(i=!(null===(o=j.selections)||void 0===o?void 0:O()(o).call(o,(function(e){var n,r;return k()(n=y()(r=j.primaryKeys).call(r,(function(n){return n&&e[n]==t[n]}))).call(n,(function(e){return e}))})))),r&&i}}return p}(t,n)),{header:function(){var n,r,o;return(0,l.createVNode)("span",{className:"head-span",title:B()(n=R.value).call(n,"zh")>-1?t.metaNameZh:t.metaNameEn},["1"==t.requiredFlag?(0,l.createVNode)("span",{style:"color: rgb(245, 34, 45); margin-right: 3px;"},[(0,l.createTextVNode)("*")]):"",t.headerRender?t.headerRender(l.h,{props:e,config:t,lang:R,rootValue:q,selects:V}):B()(r=R.value).call(r,"zh")>-1?t.metaNameZh:t.metaNameEn,"1"==t.hintFlag?(0,l.createVNode)((0,l.resolveComponent)("ElTooltip"),{effect:"dark",content:B()(o=R.value).call(o,"zh")>-1?t.hintContentZh:t.hintContentEn,placement:"top"},{default:function(){return[(0,l.createVNode)((0,l.resolveComponent)("elIcon"),{style:"fontSize: 16px; verticalAlign: sub; margin-left: 3px;"},{default:function(){return[(0,l.createVNode)((0,l.resolveComponent)("QuestionFilled"),null,null)]}})]}}):null])},default:function(e){var r,o,i=e.row,s=(e.column,e.$index);if(i.totalFlag)return ie.value[t.metaCode]?ie.value[t.metaCode]({val:i[t.metaCode],row:i,h:l.h}):null;var a,c,u=null===(r=te.value)||void 0===r||null===(r=r[s])||void 0===r?void 0:r[n];return function(e){var t;if(!e)return!0;if(N()(t=["selection","index"]).call(t,e.type))return!0;var n=O()(Qa.Bs).call(Qa.Bs,(function(t){return(0,Qa.ro)(t,e.metaType)}))||!e.metaType;return!e.renderby&&n}(u)?null:(0,l.createVNode)(Ga.A,{key:F()(o="".concat(u.columnId,"-")).call(o,u.rowIndex),class:"error-tip-block",rowScope:{row:i,$index:s},modelValue:(a=s,null===(c=Z.value)||void 0===c?void 0:c[a]),"onUpdate:modelValue":function(e){!function(e,t){m.value||(m.value=[]),m.value[t]=e}(e,s)},config:u},null)}})})))?t:{default:function(){return[t]}}),de.value?(0,l.createVNode)("div",{class:"pagination-wrap",style:{"justify-content":ye[he.value||me]}},[(0,l.createVNode)(U.ElPagination,(0,l.mergeProps)({style:"margin-top: 16px;"},ge.value,T,{"current-page":z.pageNum,"onUpdate:current-page":function(e){return z.pageNum=e},"page-size":z.pageSize,"onUpdate:page-size":function(e){return z.pageSize=e},total:G.value}),null)]):null])}}}},27243:(e,t,n)=>{n.r(t),n.d(t,{default:()=>_});var r=n(53811),o=n(75286),i=n(8628),s=n.n(i),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,i,a=t.emit,c=t.attrs,p=t.expose,d=t.slots,m=(0,o.ref)(!1),_=(0,o.ref)(!1),E=(0,o.ref)(null),x=(0,o.ref)(!1),w=(0,o.ref)(null),S=(0,o.ref)(null),T=(0,o.computed)((function(){var t,n,r,o,i=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&&(i.suffixIcon=null===(o=e.config)||void 0===o?void 0:o.icon),null!==(r=e.config)&&void 0!==r&&r.maxLength&&(i.maxlength=f()(e.config.maxLength)),e.textAreaCnt&&(i.rows=f()(e.textAreaCnt)),i})),A=(0,o.computed)((function(){var e=(0,r.A)({},T.value);return delete e.modelValue,delete e.suffixIcon,delete e.prefixIcon,e})),P=(0,o.computed)((function(){return"1"==(null==e?void 0:e.showTooltip)})),O=(0,o.computed)({get:function(){return e.modelValue},set:function(e){a("update:modelValue",e)}}),C=(0,o.ref)(""),k=(0,o.computed)((function(){return"1"==e.showMoney?m.value?C.value:q(O.value):O.value})),I=(0,o.computed)((function(){var t;return(null===(t=e.config)||void 0===t?void 0:t.lcpPagePopupMapVO)&&"Search"==T.value.suffixIcon})),N=(0,o.computed)((function(){var t;return!(0,v.$3)(e.config,"onlyIconClickFlag")||"1"==(null===(t=e.config)||void 0===t?void 0:t.onlyIconClickFlag)})),j=(0,o.computed)((function(){var t;return"1"==(null===(t=e.config)||void 0===t?void 0:t.pagePopupEditFlag)})),D=(0,o.computed)((function(){var t={modelValue:k.value};return!I.value||j.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,o="".concat(t).replace(/[^\d.-]/g,"").replace(/(\.\d*)/g,(function(e){var t=r;return r++,t?"":e})),i=Number(o);return isNaN(i)?"":i}(q(C.value))})):t.onClear=function(){var e;null==c||null===(e=c.onClear)||void 0===e||e.call(c),O.value=""},t})),M=(0,o.computed)((function(){return{class:null==c?void 0:c.class,style:null==c?void 0:c.style}})),L=(0,o.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 o;P.value&&(E.value=null==n||null===(o=n[0])||void 0===o?void 0:o.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&&N.value&&delete e.onClick,e.onWrapClick)if(e.onClick){var o=e.onClick;e.onClick=function(){o.apply(void 0,arguments),e.onWrapClick.apply(e,arguments)}}else e.onClick=e.onWrapClick;return e})),R=(n=null,i=null,{clear:function(){n&&n(),i&&window.removeEventListener("resize",i)},calc:function(){this.clear();var t=20;!e.disabled&&e.clearable&&(t=50);var r=(0,b.fW)(w.value,0),s=(0,b.fW)(S.value,0-t);x.value=r<s,n=(0,o.watch)((function(){return k.value}),(function(e){(0,o.nextTick)((function(){s=(0,b.fW)(S.value,0-t),x.value=r<s}))})),i=function(){r=(0,b.fW)(w.value,0),x.value=r<s},window.addEventListener("resize",i)}});(0,o.onMounted)((function(){(0,o.watch)(P,(function(e){e&&(null==R||R.calc())}),{immediate:!0})})),(0,o.onUnmounted)((function(){null==R||R.clear()}));var B=function(){var t,n,i=(0,r.A)({},d);if(null!==(t=T.value)&&void 0!==t&&t.suffixIcon){var s=(0,o.resolveComponent)(T.value.suffixIcon);i.suffix=function(){var t={};return I.value&&(e.disabled||(t.onClick=c.onClick,t.style={cursor:"pointer"})),(0,o.createVNode)((0,o.resolveComponent)("el-icon"),t,{default:function(){return[(0,o.createVNode)(s,null,null)]}})}}if(null!==(n=T.value)&&void 0!==n&&n.prefixIcon){var a=(0,o.resolveComponent)(T.value.prefixIcon);i.prefix=function(){return(0,o.createVNode)((0,o.resolveComponent)("el-icon"),null,{default:function(){return[(0,o.createVNode)(a,null,null)]}})}}return i};function q(t){var n,r,o;if(null!==(n=e.canShowFlag)&&void 0!==n&&s()(n).call(n,String(t).toLowerCase()))return t;if(null==t)return"";var i="".concat(t).replace(e.moneySeg,"");if(i=h()(i),isNaN(i))return"";i=Math.max(e.min,Math.min(e.max,i)),"-1"!=e.decimal&&(i=i.toFixed(e.decimal)),"1"!=e.decimalSuffix&&(i=h()(i));var a="".concat(i).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()(o="".concat(l," ")).call(o,e.symbol):l}var F=(0,o.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,o.createVNode)("div",(0,o.mergeProps)({class:"input-contrainer"},M.value),[(0,o.createVNode)("span",{ref:function(e){return S.value=e},class:"calc-span"},[k.value]),x.value?(0,o.createVNode)((0,o.resolveComponent)("el-tooltip"),{placement:"top",visible:x.value&&!!E.value,content:k.value,virtualTriggering:!0,virtualRef:E.value},null):null,(0,o.createVNode)("div",(0,o.mergeProps)({class:"input-wrap"},F.value,{ref:function(e){return w.value=e}}),[(0,o.createVNode)(g.ElInput,(0,o.mergeProps)(D.value,(0,r.A)((0,r.A)({},L.value),A.value)),(t=e=B(),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!(0,o.isVNode)(t)?e:{default:function(){return[e]}}))])])}}}},31810:(e,t,n)=>{n.r(t),n.d(t,{default:()=>_});var r=n(53811),o=n(75286),i=n(8628),s=n.n(i),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},keepLastZero:{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,i=t.attrs,a=t.expose,c=t.slots,p=(0,o.computed)((function(){var t,n,r,o,i=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&&(i.suffixIcon=null===(o=e.config)||void 0===o?void 0:o.icon),null!==(r=e.config)&&void 0!==r&&r.maxLength&&(i.maxlength=f()(e.config.maxLength)),e.textAreaCnt&&(i.rows=f()(e.textAreaCnt)),i})),d=(0,o.computed)((function(){var e=(0,r.A)({},p.value);return delete e.modelValue,delete e.suffixIcon,delete e.prefixIcon,e})),m=(0,o.computed)((function(){return"1"==(null==e?void 0:e.showTooltip)})),_=(0,o.computed)({get:function(){return e.modelValue},set:function(e){n("update:modelValue",e)}}),E=(0,o.ref)(""),x=(0,o.ref)(!1),w=(0,o.computed)((function(){return"1"==e.showMoney?x.value?E.value:I(_.value):_.value})),S=(0,b.D)({showTooltip:m,offset:(0,o.computed)((function(){var t=20;return!e.disabled&&e.clearable&&(t=50),t})),displayValue:w}).generateTooltipWrap,T=(0,o.computed)((function(){var t;return(null===(t=e.config)||void 0===t?void 0:t.lcpPagePopupMapVO)&&"Search"==p.value.suffixIcon})),A=(0,o.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,o.computed)((function(){var t;return"1"==(null===(t=e.config)||void 0===t?void 0:t.pagePopupEditFlag)})),O=(0,o.computed)((function(){var t={modelValue:w.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,o="".concat(t).replace(/[^\d.-]/g,"").replace(/(\.\d*)/g,(function(e){var t=r;return r++,t?"":e})),i=Number(o);return isNaN(i)?"":(0,v.iF)(i)}(I(E.value))})):t.onClear=function(){var e;null==i||null===(e=i.onClear)||void 0===e||e.call(i),_.value=""},t})),C=(0,o.computed)((function(){return{class:null==i?void 0:i.class,style:null==i?void 0:i.style}})),k=(0,o.computed)((function(){var e=(0,r.A)({},i);if(delete e.class,delete e.style,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 I(t){var n,r,o;if(null!==(n=e.canShowFlag)&&void 0!==n&&s()(n).call(n,String(t).toLowerCase()))return t;if(null==t)return"";var i="".concat(t).replace(e.moneySeg,"");if(i=h()(i),isNaN(i))return"";i=Math.max(e.min,Math.min(e.max,i)),"-1"!=e.decimal&&(i=i.toFixed(e.decimal)),"1"!=e.keepLastZero&&(i=(0,v.iF)(i));var a="".concat(i).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()(o="".concat(l," ")).call(o,e.symbol):l}return a({click:function(e){var t;null==i||null===(t=i.onClick)||void 0===t||t.call(i,null,e)}}),function(){var t,n;return S((0,o.createVNode)(g.ElInput,(0,o.mergeProps)(O.value,(0,r.A)((0,r.A)({},k.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,o.resolveComponent)(p.value.suffixIcon);s.suffix=function(){var t={};return T.value&&(e.disabled||(t.onClick=i.onClick,t.style={cursor:"pointer"})),(0,o.createVNode)((0,o.resolveComponent)("el-icon"),t,{default:function(){return[(0,o.createVNode)(a,null,null)]}})}}if(null!==(n=p.value)&&void 0!==n&&n.prefixIcon){var l=(0,o.resolveComponent)(p.value.prefixIcon);s.prefix=function(){return(0,o.createVNode)((0,o.resolveComponent)("el-icon"),null,{default:function(){return[(0,o.createVNode)(l,null,null)]}})}}return s}())||"[object Object]"===Object.prototype.toString.call(n)&&!(0,o.isVNode)(n)?t:{default:function(){return[t]}}),{wrapAttrs:C.value})}}}},80316:(e,t,n)=>{n.r(t),n.d(t,{default:()=>P});var r=n(53811),o=n(75286),i=n(57119),s=n.n(i),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(86226),v=n.n(g),b=n(8628),_=n.n(b),E=n(48079),x=n.n(E),w=n(64007),S=n.n(w),T=(n(76918),n(48598),n(23288),n(2892),n(26099),n(27495),n(38781),n(90744),n(84061)),A=n(17427);const P={inheritAttrs:!1,props:(0,r.A)((0,r.A)((0,r.A)({},T.ElSelect.props),A.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,i=t.attrs,a=(t.expose,t.slots),c=(0,o.computed)({get:function(){var t=e.modelValue;if(!e.hidden)if(m.value){if((0,A.Qd)(t)||(0,A.cy)(t))try{t=s()(t).join(e.separator),n("update:modelValue",t)}catch(e){}}else if(t&&(0,A.Kg)(t)||(0,A.Et)(t)){var r,o;t=null===(r="".concat(t))||void 0===r?void 0:r.split(e.separator),g.value&&(t=null===(o=t)||void 0===o?void 0:l()(o).call(o,(function(e,t,n){return e[n]=t,e}),{})),n("update:modelValue",t)}return t},set:function(e){n("update:modelValue",e)}}),p=(0,o.computed)((function(){return e.separator})),d=(0,o.computed)((function(){var t;return null===(t=e.config)||void 0===t?void 0:t.valueType})),m=(0,o.computed)((function(){return d.value!==A.K4.LIST&&d.value!==A.K4.OBJECT})),g=(0,o.computed)((function(){return d.value===A.K4.OBJECT})),b=(0,o.computed)((function(){return"1"==e.multiple})),E=(0,o.computed)((function(){var t,n,r,o,i=e.options;return e.rangeOptions&&e.rangeOptions.length&&(i=null===(t=i)||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&&(i=null===(r=i)||void 0===r||null===(o=u()(r))||void 0===o?void 0:o.call(r,(function(t){var n;return!(null!==(n=e.excludeOptions)&&void 0!==n&&f()(n).call(n,(function(e){return e==t.columnValue})))}))),i})),w=(0,o.computed)({get:function(){if(b.value){(0,A.$3)(e.config,"isMatch")&&(e.config.isMatch=!0);var t=c.value||"";return t?m.value?t.split(p.value):g.value?s()(t||{}):t:[]}var n;return null!==c.value&&void 0!==c.value?null!==(n=E.value)&&void 0!==n&&f()(n).call(n,(function(e){return e.columnValue==c.value}))?(e.config.isMatch=!0,"".concat(c.value)):(e.config.isMatch=!1,""):""},set:function(e){b.value?c.value=m.value?e.join(p.value):g.value?null==e?void 0:l()(e).call(e,(function(e,t,n){return e[n]=t,e}),{}):e:c.value=e}}),P=(0,o.computed)((function(){var t,n=l()(t=h()(T.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})),O=(0,o.inject)("lang"),C=function(){c.value=""};return function(){var e,t,n,s,l,c;return(0,o.createVNode)(T.ElSelect,(0,o.mergeProps)({class:"custom-self-select"},(0,r.A)((0,r.A)({},i),P.value),{modelValue:w.value,"onUpdate:modelValue":function(e){return w.value=e},onClear:C}),(s={optionDefault:"default"},l={},c={},v()(n=h()(a)).call(n,(function(e){var t;_()(t=h()(s)).call(t,e)?l[s[e]]=a[e]:c[e]=a[e]})),"function"==typeof(t=e=(0,r.A)((0,r.A)({},c),{},{default:function(){var e;return null===(e=E.value)||void 0===e?void 0:x()(e).call(e,(function(e){var t,n;return(0,o.createVNode)(T.ElOption,{key:e.columnValue,label:(null==O||null===(t=O.value)||void 0===t?void 0:S()(t).call(t,"zh"))>-1?e.columnDesc_zh:e.columnDesc,value:e.columnValue,disabled:"0"==e.columnStatus||"2"==e.columnStatus},{default:function(){return[null==l||null===(n=l.default)||void 0===n?void 0:n.call(l,e)]}})}))}}))||"[object Object]"===Object.prototype.toString.call(t)&&!(0,o.isVNode)(t)?e:{default:function(){return[e]}}))}}}},91413:(e,t,n)=>{n.r(t),n.d(t,{default:()=>b});var r=n(22204),o=n(53811),i=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,o.A)((0,o.A)((0,o.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,i.computed)({get:function(){return e.modelValue},set:function(e){s("update:modelValue",e)}}),h=(0,i.inject)("lang"),g=null===(n=(0,i.getCurrentInstance)())||void 0===n?void 0:n.appContext,b=(0,i.computed)((function(){var t;return null===(t=e.config)||void 0===t?void 0:t.lcpPagePopupMapVO})),_=(0,i.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 o,i=null==e||null===(t=e.options)||void 0===t?void 0:c()(t).call(t,(function(e){return e.columnValue==n}));return i?(null==h||null===(o=h.value)||void 0===o?void 0:p()(o).call(o,"zh"))>-1?i.columnDesc_zh:i.columnDesc:n})),E=(0,i.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,i.inject)("buttonActions",{}),w=(0,i.computed)((function(){return _.value})),S=(0,i.computed)((function(){return"1"==(null==e?void 0:e.showTooltip)})),T=(0,v.D)({showTooltip:S,offset:(0,i.computed)((function(){var t=0;return"1"==e.needWrap&&(t=22,e.suffixIcon&&(t=36)),t})),displayValue:w,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,i.inject)("dynamicMapComp"),P=(0,i.inject)("hireRelatMapRules"),O=(0,i.inject)("components"),C=(0,i.inject)("selects"),k=(0,i.inject)("rootValue"),I=(0,i.inject)("dataLoad"),N=(0,i.inject)("rootForm");function j(){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,i.withModifiers)(l.onClick,["stop"]),t.style={cursor:"pointer"}),n=(0,i.resolveComponent)(n)),(0,i.createVNode)(y.ElIcon,t,{default:function(){return[(0,i.createVNode)(n,null,null)]}})}return null}return function(){var t,n,r;return T((n=(0,i.createVNode)(y.ElText,(0,i.mergeProps)((0,o.A)((0,o.A)({},l),E.value),{onClickCapture:(0,i.withModifiers)((function(t){var n,r,o,i,s;i=(null===(n=e.config)||void 0===n?void 0:n.clickActionKey)||(null===(r=e.config)||void 0===r?void 0:r.buttonActionKey)||(null===(o=e.config)||void 0===o?void 0:o.hireRelat),(s=x[i])&&s(e,{dynamicMapComp:A,hireRelatMapRules:P,components:O,selects:C,rootValue:k,dataLoad:I,rootForm:N},g)}),["stop","self"]),class:{cursor:"1"==e.isPointer}}),"function"==typeof(r=t=(0,o.A)({default:function(){return w.value}},u))||"[object Object]"===Object.prototype.toString.call(r)&&!(0,i.isVNode)(r)?t:{default:function(){return[t]}}),"1"==e.needWrap?(0,i.createVNode)("div",{class:{"resolver-custom-cust-input-wrap":!0,"resolver-custom-is-disabled":e.disabled}},[n,j()]):n),{maintain:!0})}}}},77364:(e,t,n)=>{n.d(t,{m:()=>Z,A:()=>ee});var r=n(53474),o=n(37891),i=n(34963),s=n(49859),a=n(75286),l=n(8628),c=n.n(l),u=(n(62010),n(2892),n(66825));const p=(f={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},d={},n.d(d,f),d);var f,d,h=n(86864),m=n(27077),y=n(76172),g=n(16781),v=n.n(g)()("tabsRootContextKey"),b=n(11393),_=n.n(b),E=n(49763),x=n.n(E),w=n(64007),S=n.n(w),T=n(56255),A=n.n(T),P=n(48079),O=n.n(P),C=n(97786),k=n(29544),I=n.n(k),N=n(14166),j=n.n(N),D=n(63579),M=n.n(D),L=(0,u.buildProps)({tabs:{type:(0,u.definePropType)(Array),default:function(){return(0,u.mutable)([])}}}),R="ElTabBar";const B=I()({name:R},{__name:"tab-bar",props:L,setup:function(e,t){var n=t.expose,r=e,l=(0,a.getCurrentInstance)(),p=(0,a.inject)(v);p||(0,u.throwError)(R,"<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,o=0,i=0,a=c()(e=["top","bottom"]).call(e,p.props.tabPosition)?"width":"height",f="width"===a?"x":"y",d="x"===f?"left":"top";return j()(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;o=n["offset".concat((0,u.capitalize)(d))],i=n["client".concat((0,u.capitalize)(a))];var s=window.getComputedStyle(n);return"width"===a&&(r.tabs.length>1&&(i-=M()(s.paddingLeft)+M()(s.paddingRight)),o+=M()(s.paddingLeft)),!1})),(0,s.A)((0,s.A)({},a,"".concat(i,"px")),"transform",_()(n="translate".concat((0,u.capitalize)(f),"(")).call(n,o,"px)"))}()};return(0,a.watch)((function(){return r.tabs}),(0,i.A)((0,o.A)().mark((function e(){return(0,o.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}),(0,C.wYm)(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)}}}),q=B;var F=(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:""},showBar:{type:Boolean,default:!0},stretch:Boolean}),U={tabClick:function(e,t,n){return n instanceof Event},tabRemove:function(e,t){return t instanceof Event}},V="ElTabNav",$=(0,a.defineComponent)({name:V,props:F,emits:U,setup:function(e,t){var n=t.expose,s=t.emit,l=(0,a.getCurrentInstance)(),f=(0,a.inject)(v);f||(0,u.throwError)(V,"<el-tabs><tab-nav /></el-tabs>");var d=(0,y.useNamespace)("tabs"),g=(0,C.fho)(),b=(0,C.esz)(),E=(0,a.ref)(),w=(0,a.ref)(),T=(0,a.ref)(),P=(0,a.ref)(),k=(0,a.ref)(!1),I=(0,a.ref)(0),N=(0,a.ref)(!1),j=(0,a.ref)(!0),D=(0,a.computed)((function(){var e;return c()(e=["top","bottom"]).call(e,f.props.tabPosition)?"width":"height"})),M=(0,a.computed)((function(){var e,t="width"===D.value?"X":"Y";return{transform:_()(e="translate".concat(t,"(-")).call(e,I.value,"px)")}})),L=function(){if(E.value){var e=E.value["offset".concat((0,u.capitalize)(D.value))],t=I.value;if(t){var n=t>e?t-e:0;I.value=n}}},R=function(){if(E.value&&w.value){var e=w.value["offset".concat((0,u.capitalize)(D.value))],t=E.value["offset".concat((0,u.capitalize)(D.value))],n=I.value;if(!(e-n<=t)){var r=e-n>2*t?n+t:e-t;I.value=r}}},B=function(){var e=(0,i.A)((0,o.A)().mark((function e(){var t,n,r,i,s,l,u,p,d,h;return(0,o.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=w.value,k.value&&T.value&&E.value&&n){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,(0,a.nextTick)();case 5:if(r=T.value.querySelector(".is-active")){e.next=8;break}return e.abrupt("return");case 8:i=E.value,s=c()(t=["top","bottom"]).call(t,f.props.tabPosition),l=r.getBoundingClientRect(),u=i.getBoundingClientRect(),p=s?n.offsetWidth-u.width:n.offsetHeight-u.height,d=I.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),I.value=Math.min(h,p);case 18:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),F=function(){var t;if(w.value&&E.value){e.stretch&&(null===(t=P.value)||void 0===t||t.update());var n=w.value["offset".concat((0,u.capitalize)(D.value))],r=E.value["offset".concat((0,u.capitalize)(D.value))],o=I.value;r<n?(k.value=k.value||{},k.value.prev=o,k.value.next=o+r<n,n-o<r&&(I.value=n-r)):(k.value=!1,o>0&&(I.value=0))}},U=function(e){var t,n=e.code,r=p.EVENT_CODE.up,o=p.EVENT_CODE.down,i=p.EVENT_CODE.left,s=p.EVENT_CODE.right;if(c()(t=[r,o,i,s]).call(t,n)){var a,l=x()(e.currentTarget.querySelectorAll<HTMLDivElement>"[role=tab]:not(.is-disabled)"),u=S()(l).call(l,e.target);l[a=n===i||n===r?0===u?l.length-1:u-1:u<l.length-1?u+1:0].focus({preventScroll:!0}),l[a].click(),$()}},$=function(){j.value&&(N.value=!0)},W=function(){return N.value=!1};return(0,a.watch)(g,(function(e){"hidden"===e?j.value=!1:"visible"===e&&A()((function(){return j.value=!0}),50)})),(0,a.watch)(b,(function(e){e?A()((function(){return j.value=!0}),50):j.value=!1})),(0,C.wYm)(T,F),(0,a.onMounted)((function(){return A()((function(){return B()}),0)})),(0,a.onUpdated)((function(){return F()})),n({scrollToActiveTab:B,removeFocus:W}),(0,a.watch)((function(){return e.panes}),(function(){return l.update()}),{flush:"post",deep:!0}),function(){var t,n,o,i=k.value?[(0,a.createVNode)("span",{class:[d.e("nav-prev"),d.is("disabled",!k.value.prev)],onClick:L},[(0,a.createVNode)(h.ElIcon,null,{default:function(){return[(0,a.createVNode)(m.ArrowLeft,null,null)]}})]),(0,a.createVNode)("span",{class:[d.e("nav-next"),d.is("disabled",!k.value.next)],onClick:R},[(0,a.createVNode)(h.ElIcon,null,{default:function(){return[(0,a.createVNode)(m.ArrowRight,null,null)]}})])]:null,l=O()(t=e.panes).call(t,(function(t,n){var r,o,i,l,c,u=t.uid,y=t.props.disabled,g=null!==(r=null!==(o=t.props.name)&&void 0!==o?o:t.index)&&void 0!==r?r:"".concat(n),v=!y&&(t.isClosable||e.editable),b=t.props.hidden;t.index="".concat(n);var E=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===(i=(l=t.slots).label)||void 0===i?void 0:i.call(l))||t.props.label,w=!y&&t.active?0:-1;return b?null:(0,a.createVNode)("div",{ref:"tab-".concat(u),class:[d.e("item"),d.is(f.props.tabPosition),d.is("active",t.active),d.is("disabled",y),d.is("closable",v),d.is("focus",N.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:w,onFocus:function(){return $()},onBlur:function(){return W()},onClick:function(e){W(),s("tabClick",t,g,e)},onKeydown:function(e){!v||e.code!==p.EVENT_CODE.delete&&e.code!==p.EVENT_CODE.backspace||s("tabRemove",t,e)}},[(0,a.createVNode)("div",{title:x,class:"tabs__item-wrap"},_()(c=[x,E]).call(c))])}));return(0,a.createVNode)("div",{ref:T,class:[d.e("nav-wrap"),d.is("scrollable",!!k.value),d.is(f.props.tabPosition),e.showBar?"":"hidden-bar"]},[i,(0,a.createVNode)("div",{class:[d.e("nav-scroll")],ref:E},[(0,a.createVNode)("div",{class:[d.e("nav"),d.is(f.props.tabPosition),d.is("stretch",e.stretch&&c()(n=["top","bottom"]).call(n,f.props.tabPosition))],ref:w,style:M.value,role:"tablist",onKeydown:U},_()(o=[!e.type&&e.showBar?(0,a.createVNode)(q,{ref:P,tabs:(0,r.A)(e.panes)},null):null,l]).call(o))])])}}});const W=$;var K=(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}},showBar:{type:Boolean,default:!0},stretch:Boolean}),z=function(e){return(0,u.isString)(e)||(0,u.isNumber)(e)},H=(0,s.A)((0,s.A)((0,s.A)((0,s.A)((0,s.A)((0,s.A)({},p.UPDATE_MODEL_EVENT,(function(e){return z(e)})),"tabClick",(function(e,t){return t instanceof Event})),"tabChange",(function(e){return z(e)})),"edit",(function(e,t){var n;return c()(n=["remove","add"]).call(n,t)})),"tabRemove",(function(e){return z(e)})),"tabAdd",(function(){return!0}));const G=(0,a.defineComponent)({name:"ElTabs",props:K,emits:H,setup:function(e,t){var n,l=t.emit,c=t.slots,f=t.expose,d=(0,y.useNamespace)("tabs"),g=(0,y.useOrderedChildren)((0,a.getCurrentInstance)(),"ElTabPane"),b=g.children,_=g.addChild,E=g.removeChild,x=(0,a.ref)({}),w=(0,a.ref)(null!==(n=e.modelValue)&&void 0!==n?n:"0"),S=function(){var t=(0,i.A)((0,o.A)().mark((function t(n){var r,i,s,a,c=arguments;return(0,o.A)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=c.length>1&&void 0!==c[1]&&c[1],w.value!==n&&!(0,u.isUndefined)(n)){t.next=3;break}return t.abrupt("return");case 3:return t.prev=3,t.next=6,null===(i=e.beforeLeave)||void 0===i?void 0:i.call(e,n,w.value);case 6:!1!==t.sent&&(w.value=n,r&&(l(p.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||(S(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 S(e)})),(0,a.watch)(w,(0,i.A)((0,o.A)().mark((function e(){var t;return(0,o.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)(v,{props:e,currentName:w,registerPane:_,unregisterPane:E}),f({currentName:w}),function(){var t=c["add-icon"],n=e.editable||e.addable?(0,a.createVNode)("span",{class:d.e("new-tab"),tabindex:"0",onClick:P,onKeydown:function(e){e.code===p.EVENT_CODE.enter&&P()}},[t?(0,a.renderSlot)(c,"add-icon"):(0,a.createVNode)(h.default,{class:d.is("icon-plus")},{default:function(){return[(0,a.createVNode)(m.Plus,null,null)]}})]):null,o=(0,a.createVNode)("div",{class:[d.e("header"),d.is(e.tabPosition)]},[n,(0,a.createVNode)(W,{ref:x,currentName:w.value,editable:e.editable,showBar:e.showBar,type:e.type,panes:b.value,stretch:e.stretch,onTabClick:T,onTabRemove:A},null)]),i=(0,a.createVNode)("div",{class:d.e("content")},[(0,a.renderSlot)(c,"default")]);return(0,a.createVNode)("div",{class:["resolver-tabs",d.b(),d.m(e.tabPosition),(0,s.A)((0,s.A)({},d.m("card"),"card"===e.type),d.m("border-card"),"border-card"===e.type)]},(0,r.A)("bottom"!==e.tabPosition?[i,o]:[o,i]))}}});var Q=n(22720),X=(0,u.buildProps)({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean,hidden:Boolean}),Y=["id","aria-hidden","aria-labelledby"],J="ElTabPane";const Z=I()({name:J},{__name:"tab-pane",props:X,setup:function(e){var t=e,n=(0,a.getCurrentInstance)(),r=(0,a.useSlots)(),o=(0,a.inject)(v);o||(0,u.throwError)(J,"usage: <el-tabs><el-tab-pane /></el-tabs/>");var i=(0,y.useNamespace)("tab-pane"),s=(0,a.ref)(),l=(0,a.computed)((function(){return t.closable||o.props.closable})),c=(0,Q.uA)((function(){var e;return o.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=(0,Q.uA)((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(){o.registerPane(h)})),(0,a.onUnmounted)((function(){o.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)(i).b()),role:"tabpanel","aria-hidden":!(0,a.unref)(c),"aria-labelledby":"tab-".concat(f.value)},[(0,a.renderSlot)(e.$slots,"default")],10,Y)),[[a.vShow,(0,a.unref)(c)]]):(0,a.createCommentVNode)("v-if",!0)}}}),ee=G},32820:(e,t,n)=>{n.d(t,{A:()=>b});var r=n(53811),o=n(86226),i=n.n(o),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),o=e,i=(0,u.computed)((function(){return o.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=o.awalyCloseCb)||void 0===n||n.call(o),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===:",o),s=o.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[o.title?((0,u.openBlock)(),(0,u.createElementBlock)("div",f,[(0,u.createElementVNode)("span",null,(0,u.toDisplayString)(o.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?o.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=i.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 i()(t=a()(n)).call(t,(function(e){v.props[e]=n[e],v.vm.exposed.dialogVisible.value=!0})),v.close;var o=document.createElement("div"),s=(0,u.createVNode)(g,(0,r.A)({},n));return(0,u.render)(s,o),document.body.appendChild(o.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}},70846:(e,t,n)=>{n.d(t,{K:()=>_});var r=n(22204),o=n(49859),i=n(56255),s=n.n(i),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(9318),g=n(71835),v=n(17427);function b(e,t,n){var i=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,b=a.value[e.hireRelat],_=e.metaCode;if("update:modelValue"!==i){var E=i.match(/^update:(\w+)$/);if(!E)return;_=E[1];var x=e.dynamicHireRelat.replace(/->\w+$/,"->".concat(_));e=f[x]}return(0,m.computed)({get:function(){var n,r;if(e){var o=null!==(n=_?null===(r=t.modelValue)||void 0===r?void 0:r[_]:t.modelValue)&&void 0!==n?n:null;return"update:modelValue"===i&&null==o&&(0,g.A)(e),e&&(e.bindValue=o),e&&(!p.value||e.eventInit||e.notInit||s()((function(){null==u||u.run({rootValue:c,rules:b,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},b,!0),(0,v.Ts)(e,"eventInit",!0)}),0)),o}},set:function(i){if(e){var a=t.modelValue,p=_;if(p){if(a){var g;if(null!==(g=e)&&void 0!==g&&g.frameSet&&null!=a&&a[p]&&("object"!==(0,r.A)(a[p])&&"object"!==(0,r.A)(i)||(i=(0,v.Vv)(a[p],i))),(0,v.vr)(a[p])&&(0,v.vr)(i)&&a[p]===i)return;try{t.modelValue[p]=i}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,o.A)({},p,i));e&&s()((function(){null==u||u.run({rootValue:c,rules:b,config:e,dynamicMapComp:f,lang:d,messageInstance:l,_mapComp:h}),y.Ay.call({config:e,dynamicMapComp:f,lang:d,_mapComp:h,messageInstance:l},b)}),0)}}}})}function _(e,t){var n=(0,m.inject)("hireRelatMapRules"),r=(0,m.inject)("dataLoad"),o=(0,m.inject)("dynamicMapComp"),i=(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:o,lang:i,rootValue:a,_mapComp:s,ruleExecuter:c,messageInstance:null==p?void 0:p.value},y=(0,m.reactive)({}),g=b.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=b.call(d,e.config,e,t,n);if(r){var o=n.match(/^update:(\w+)$/);y["onUpdate:".concat(o[1])]=function(e){r.value=e},y[o[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),o=n(66615),i=n.n(o),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,o=t.attrs,s=(0,r.computed)({get:function(){return e.modelValue},set:function(e){n("update:modelValue",e)}}),l=(0,r.inject)("_messageInstance"),f=(0,r.inject)("_getNativeComps"),d=(0,r.inject)("_loadModuleCache"),h=(0,r.inject)("_isH5"),m=(0,r.inject)("injectMode",""),y=e.mode||m;(0,r.provide)("injectMode",y);var g=(0,r.inject)("indectModeRef",(0,r.ref)("")),v=(0,r.computed)((function(){return e.mode||g.value}));return(0,r.provide)("indectModeRef",v),function(){var t=i()(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,i=(0,u.AP)(t,v.value),a=(0,u.fw)({messageInstance:null==l?void 0:l.value,config:t,disabled:i,getNativeComps:f,isH5:null==h?void 0:h.value,loadModuleCache:d});return a?(0,u.ZB)(t,i,null==h?void 0:h.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},o,{mode:v.value,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:()=>I,MM:()=>D,NR:()=>B,Vf:()=>R,Vr:()=>k,Xe:()=>M,cv:()=>N,qK:()=>q});var r=n(53474),o=n(53811),i=(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(i),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),w=(n(66615),n(385)),S=n.n(w),T=n(73363),A=n.n(T),P=n(17427),O=n(71835),C=["setShow","setHidden"],k={};function I(){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 o=this.config,i=(this.dynamicMapComp,o.hireRelat),s=void 0===i?"":i;if(o.dynamicHireRelat,s===n)return o.bindValue;var a=j.call(this,n,o);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 N(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,o=j.call(this,e,r);s()(o).call(o,(function(e){if((0,P.$3)(e,"refValue"))"ElSelect"===e.metaType&&(t=(0,O.l)({config:e,val:t,isActive:!0})),e.refValue=t;else{var r,o,i=n._mapComp;null!=i&&null!==(r=i.value)&&void 0!==r&&r[e.hireRelat]&&(k[e.hireRelat]||(k[e.hireRelat]=[]),l()(o=k[e.hireRelat]).call(o,(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)}))||k[e.hireRelat].push(n))}}))}}function j(e,t,n){var r,o,i,a,c=this,p=t.dynamicHireRelat,d=void 0===p?"":p,m=d,g="",b=/(__@__[^(->)]*__)$/,E=null==d?void 0:d.match(b);E&&(g=E[1],m=null===(a=m)||void 0===a?void 0:a.replace(b,""));for(var x=u()(r=m.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}})),w=-1,S=e.split("->"),T=0;T<S.length;T++){var A=S[T];if(x[T].code!==A){w=T;break}}var P=h()(S).call(S,w),O=u()(o=h()(x).call(x,0,w)).call(o,(function(e){var t,n=e.idx,r=e.code;return-1!==n?y()(t="".concat(r,"[")).call(t,n,"]"):r})).join("->"),I=O,N=null,j=O.match(/^([\w\W]*)\[(\d*)\]$/);j&&(I=j[1],N=j[2]);var D=this.dynamicMapComp,M=this._mapComp,L=[];if(I){var R;L=[D[y()(R="".concat(I)).call(R,g)]]}else{var B,q=P.shift();L=[D[y()(B="".concat(q)).call(B,g)]]}for(var F,U=function(){var e=P.shift(),t=[];s()(L).call(L,(function(r){if(r.multiPmPageMetaList)if(null!==N){var o=r.multiPmPageMetaList[N],i=o&&v()(o).call(o,(function(t){return t.metaCode===e}));if(!i)return;t.push(i),N=null}else{var a;if(_()(C).call(C,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)}})),L=t};P.length;)U();return null!=M&&null!==(i=M.value)&&void 0!==i&&i[e]&&!L.length&&(k[e]||(k[e]=[]),l()(F=k[e]).call(F,(function(e){return(null==e?void 0:e.rules)===(null==c?void 0:c.rules)&&(null==e?void 0:e.config)===(null==c?void 0:c.config)}))||k[e].push(this)),L}function D(e,t){var n=L(e),r=L(t);return n&&r?Number(e)>Number(t):e+"">t+""}function M(e,t){var n=L(e),r=L(t);return n&&r?Number(e)<Number(t):e+""<t+""}function L(e){return!isNaN(Number(e))}function R(e,t){if(!e)return null;var n=this.config;return j.call(this,e,n,t)}function B(e){if(!e)return[];var t=[],n=e.pmRuleDefVoList,i=e.pmRuleDefVOList,a=n||(null==i?void 0:x()(i).call(i,(function(e){return"1"==(null==e?void 0:e.ruleType)})))||[];return s()(a).call(a,(function(e){var n=e.pmRuleEventRelVOList||e.pmRuleEventRelVoList||[],i=u()(n).call(n,(function(t){return(0,o.A)((0,o.A)({},t),{},{ruleType:e.ruleType})}));t.push.apply(t,(0,r.A)(i))})),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("->"):[],o=n?n.split("->"):[],i=-1,s=0;-1===i&&s<r.length&&s<o.length;){var a=r[s],l=new RegExp("^".concat(a,"(\\[\\d+\\])?$")),c=o[s];l.test(c)?(S()(r).call(r,s,1,c),s++):i=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)}))}},9318:(e,t,n)=>{n.d(t,{Ay:()=>X,Zt:()=>j});var r=n(38008),o=(n(44114),n(27495),n(71761),n(86226)),i=n.n(o),s=n(11393),a=n.n(s),l=n(56255),c=n.n(l),u=n(50697),p=n.n(u),f=n(96319),d=n.n(f),h=n(48079),m=n.n(h),y=n(36586),g=n.n(y),v=n(22204),b=n(49859),_=(n(23288),n(2892),n(79432),n(84864),n(57465),n(87745),n(90906),n(38781),n(66615)),E=n.n(_),x=n(64007),w=n.n(x),S=n(8628),T=n.n(S),A=n(31721),P=n.n(A),O=n(19022),C=n(17427),k={COMPONENT:1,SYSTEM:2,SELF:3,COMPONENT_ENMU:4,NULL:5},I=(0,b.A)((0,b.A)((0,b.A)((0,b.A)((0,b.A)({},k.COMPONENT,(function(e){var t,n=e.tabpanelCode,r=e.value;return O.Ct.call(this,a()(t="".concat(n?n+"->":"")).call(t,r))})),k.SYSTEM,(function(e){return function(e){var t=new Date;switch(e){case D.currentDate:return(0,C.Yq)(new Date,"yyyy-MM-dd");case D.currentTimestamp:return(new Date).getTime();case D.CurrentYear:return(0,C.Yq)(new Date,"yyyy");case D.CurrentMonth:return(0,C.Yq)(new Date,"MM");case D.CurrentDay:return(0,C.Yq)(new Date,"dd");case D.CurrentAfter30Day:return t.setDate(t.getDate()+30),(0,C.Yq)(t,"yyyy-MM-dd");case D.CurrentBefore30Day:return t.setDate(t.getDate()-30),(0,C.Yq)(t,"yyyy-MM-dd");default:return e}}(e.value)})),k.SELF,(function(e){return e.value})),k.COMPONENT_ENMU,(function(e){return e.value})),k.NULL,(function(){return null}));function N(e){var t=this,n=e||{},r=n.eventExpress,o=(n.pmRuleTargetEventVoList,n.ruleType,n.tabpanelCode);if(!r)return!1;var i=JSON.parse(r),s=i.relation,l=i.conditions;return m()(l).call(l,(function(e){var n,r=e.refType,i=e.refValue,s=e.targetType,l=e.targetValue;if(k.COMPONENT==r){var c,u=O.Vf.call(t,a()(c="".concat(o?o+"->":"")).call(c,i));if(!u||1!==u.length)return!1}if(!I[r])return!1;var p=I[r].call(t,{tabpanelCode:o,value:i});if(k.COMPONENT==s){var f,d=O.Vf.call(t,a()(f="".concat(o?o+"->":"")).call(f,l));if(!d||1!==d.length)return!1}if(!I[s])return!1;var h=I[s].call(t,{tabpanelCode:o,value:l}),m=p=null==p?"":p,y=h=null==h?"":h;switch(p==Number(p)&&h==Number(h)&&(m=Number(p),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 p==h||!h&&(0,C.cy)(p)&&!p.length;case 6:return p!=h;case 7:return"number"==typeof p&&(p="".concat(p)),!(!E()(p)&&"string"!=typeof p)&&w()(p).call(p,h)>-1;case 8:return!!T()(n=["string","number"]).call(n,(0,v.A)(h))&&new RegExp(h).test(p);default:return!1}}))[1==s?"every":"some"]((function(e){return e}))}function j(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t={};return i()(e).call(e,(function(e){var n=function(e){var t=[],n=e||{},r=n.eventExpress,o=(n.pmRuleTargetEventVoList,n.tabpanelCode);if(!r)return!1;var s=JSON.parse(r).conditions,l=void 0===s?[]:s;return i()(l).call(l,(function(n){var r,i;n.refType!=k.COMPONENT&&n.targetType!=k.COMPONENT||(n.refType==k.COMPONENT&&t.push({key:o?a()(r="".concat(o,"->")).call(r,n.refCode||n.refValue):n.refCode||n.refValue,rules:[e]}),n.targetType==k.COMPONENT&&t.push({key:o?a()(i="".concat(o,"->")).call(i,n.targetValue):n.targetValue,rules:[e]}))})),t}(e);n&&n.length&&i()(n).call(n,(function(e){var n=e.key,r=void 0===n?"":n,o=e.rules,s=void 0===o?[]:o;t[r]?i()(s).call(s,(function(e){var n;null!==(n=t[r])&&void 0!==n&&P()(n).call(n,(function(t){return(null==t?void 0:t.relId)===(null==e?void 0:e.relId)}))||t[r].push(e)})):t[r]=s}))})),t}((0,O.NR)(e))}var D={currentDate:"1",currentTimestamp:"2",CurrentYear:"3",CurrentMonth:"4",CurrentDay:"5",CurrentAfter30Day:"6",CurrentBefore30Day:"7"};var M=n(53474),L=n(85569),R=n.n(L),B=n(38048),q=n.n(B),F=n(9665),U=n.n(F),V=(n(25440),n(85352)),$=(0,M.A)(V.Lu),W=[],K={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"},z={setDefaultValue:function(e,t,n){var r,o=e.targetObj,i=e.targetObjVal;if(o){var s,l=this.config,c=this.dynamicMapComp,u=a()(r="".concat(n?n+"->":"")).call(r,o),p=/^_replace:/.test(i);p&&(i=function(e,t){var n=t.config,r=t.dynamicMapComp;return null==e?void 0:e.replace(/\$\{([^}]+)\}/g,(function(e,t,o){var i,s,a,l=null,c=null===(i=t)||void 0===i||null===(s=i.match)||void 0===s?void 0:s.call(i,/^_absoluteTarget:(.+)$/);if(t===V.DE.REF_VAL)t=null!==(a=null==n?void 0:n.bindValue)&&void 0!==a?a:"";else if(t===V.DE.CURRENT_DATE)t=(0,C.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=i)||void 0===s?void 0:s.replace(/^_replace:/,""),{config:l,dynamicMapComp:c}));var f="";try{f=JSON.parse(i)}catch(e){f=i||""}if("number"==typeof f&&(f="".concat(f)),p);else if(f===V.DE.REF_VAL){var d;f=null!==(d=null==l?void 0:l.bindValue)&&void 0!==d?d:""}else if(f===V.DE.CURRENT_DATE)f=(0,C.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==l||null===(v=l.route)||void 0===v?void 0:v.query;f=null==_?void 0:_[b]}else if("string"==typeof f&&/^_lang$/.test(f))f=null==l?void 0:l._lang;else if("string"==typeof f&&null!=g&&g[1]){var E=null==c?void 0:c[g[1]];f=(null==E?void 0:E.bindValue)||""}else{var x,w,S=null===(x=f)||void 0===x||null===(w=x.match)||void 0===w?void 0:w.call(x,/^_assgin:(.*)$/);if(S)f=null==S?void 0:S[1];else{var T=O.Ct.call(this,u,!0);(T||"0"==T)&&(f=T)}}}O.cv.call(this,u,f)}},setClear:function(e,t,n){var r;if(!t){var o=e.targetObj;if(o){var s=a()(r="".concat(n?n+"->":"")).call(r,o),l=O.Vf.call(this,s);i()(l).call(l,(function(e){if(e){var t="";T()($).call($,e.metaType||e.labelType)&&(t=[]),T()(W).call(W,e.metaType||e.labelType)&&(t=!1),(0,C.$3)(e,"refValue")&&(e.refValue=t)}}))}}},setDisable:function(e,t,n){var r,o=e.targetObj;if(o){var s=a()(r="".concat(n?n+"->":"")).call(r,o),l=O.Vf.call(this,s);return i()(l).call(l,(function(e){e&&(e.editFlag="0")})),function(){i()(l).call(l,(function(e){e&&(e.editFlag="1")}))}}},setDisableNotEffect:function(e,t,n){var r,o=e.targetObj;if(o){var s=a()(r="".concat(n?n+"->":"")).call(r,o),l=O.Vf.call(this,s),c=[];return i()(l).call(l,(function(e){var t=e&&e.editFlag;c.push(t),e&&(e.editFlag="0")})),function(){i()(l).call(l,(function(e,t){var n=c[t];e&&(e.editFlag=n)}))}}},setRequired:function(e,t,n){var r,o=e.targetObj;if(o){var s=a()(r="".concat(n?n+"->":"")).call(r,o),l=O.Vf.call(this,s);return i()(l).call(l,(function(e){e&&(e.requiredFlag="1"),e&&e.refConfig&&(e.refConfig.requiredFlag="1")})),function(){i()(l).call(l,(function(e){e&&(e.requiredFlag="0"),e&&e.refConfig&&(e.refConfig.requiredFlag="0")}))}}},setRequiredNotEffect:function(e,t,n){var r,o=e.targetObj;if(o){var s=a()(r="".concat(n?n+"->":"")).call(r,o),l=O.Vf.call(this,s),c=[];return i()(l).call(l,(function(e){var t=e&&e.requiredFlag;c.push(t),e&&(e.requiredFlag="1"),e&&e.refConfig&&(e.refConfig.requiredFlag="1")})),function(){i()(l).call(l,(function(e,t){var n=c[t];e&&(e.requiredFlag=n),e&&e.refConfig&&(e.refConfig.requiredFlag=n)}))}}},setHidden:function(e,t,n){var r,o=e.targetObj;if(o){var s=a()(r="".concat(n?n+"->":"")).call(r,o),l=O.Vf.call(this,s,"setHidden");return c()((function(){i()(l).call(l,(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(){i()(l).call(l,(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 o,s=e.targetObj;if(s){var l=a()(o="".concat(n?n+"->":"")).call(o,s),u=O.Vf.call(this,l,"setShow");return i()(u).call(u,(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 c()((function(){i()(u).call(u,(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,o=e.targetObj;if(o){var s=a()(r="".concat(n?n+"->":"")).call(r,o),l=O.Vf.call(this,s),c=[];return i()(l).call(l,(function(e){e&&"0"!=e.requiredFlag&&(e&&(e.requiredFlag="0"),c.push((function(){e&&(e.requiredFlag="1")})))})),function(){i()(c).call(c,(function(e){return e()}))}}},setNoRequiredNotEffect:function(e,t,n){var r,o=e.targetObj;if(o){var s=a()(r="".concat(n?n+"->":"")).call(r,o),l=O.Vf.call(this,s),c=[];return i()(l).call(l,(function(e){var t=e&&e.requiredFlag;c.push(t),e&&(e.requiredFlag="0")})),function(){i()(l).call(l,(function(e,t){var n=c[t];e&&(e.requiredFlag=n)}))}}},setNoDisable:function(e,t,n){var r,o=e.targetObj;if(o){var s=a()(r="".concat(n?n+"->":"")).call(r,o),l=O.Vf.call(this,s);return i()(l).call(l,(function(e){e&&(e.editFlag="1")})),function(){i()(l).call(l,(function(e){e&&(e.editFlag="0")}))}}},setNoDisableNotEffect:function(e,t,n){var r,o=e.targetObj;if(o){var s=a()(r="".concat(n?n+"->":"")).call(r,o),l=O.Vf.call(this,s),c=[];return i()(l).call(l,(function(e){var t=e&&e.editFlag;c.push(t),e&&(e.editFlag="1")})),function(){i()(l).call(l,(function(e,t){var n=c[t];e&&(e.editFlag=n)}))}}},limitDataRange:function(e,t,n){var r,o=this,s=e.targetObj,l=e.targetObjVal,c=void 0===l?"":l;if(s){var u,f=a()(r="".concat(n?n+"->":"")).call(r,s);if((u=(null==c?void 0:w()(c).call(c,"~"))>-1?c.split("~"):c.split(","))&&u.length){var d=[],h=O.Vf.call(this,f);return i()(h).call(h,(function(t){var n=!1,r={};if(d.push(r),t){var s=o.config,a="";if(-1!==(0,C.Tn)(["ElDatePicker"],(null==t?void 0:t.renderby)||(null==t?void 0:t.metaType))){var l=u[0],c=u[1];try{a=(0,C.Ho)({extendAttr:R()({min:l,max:c}),metaCode:"event limitDataRange code:".concat(t.metaCode)},null==s?void 0:s.bindValue)}catch(e){a=""}}else{if(-1===(0,C.Tn)(["ElSelect"],(null==t?void 0:t.renderby)||(null==t?void 0:t.metaType))){var h=O.Ct.call(o,f,!0);return min&&(0,O.Xe)(h,min)&&O.cv.call(o,t,min),void(max&&(0,O.MM)(h,max)&&O.cv.call(o,t,max))}try{console.log("event==:",e),a=(0,C.Ho)({extendAttr:R()({rangeOptions:u}),metaCode:"event limitDataRange code:".concat(t.metaCode)},null==s?void 0:s.bindValue)}catch(e){a=""}}if(delete a.metaCode,(0,C.Qd)(a)){var m,y,g=p()(a);i()(g).call(g,(function(e){if(r[e]=t[e],(0,C.$3)(t,e)||(n=!0),"string"==typeof a[e]){var i=o.config,s=null==i?void 0:i.bindValue;t[e]=a[e].replace(/\{([^}]+)\}/g,(function(e,t){var n,r;return q()(n=U()(t).call(t)).call(n)===V.DE.REF_VAL?s:q()(r=U()(t).call(t)).call(r)===V.DE.CURRENT_DATE?(0,C.Yq)(new Date,"yyyy-MM-dd"):e}))}else t[e]=a[e]})),n&&(null==t||null===(m=t.wrapVm)||void 0===m||null===(m=m.proxy)||void 0===m||null===(y=m.$forceUpdate)||void 0===y||y.call(m))}}})),function(){i()(h).call(h,(function(e,t){var n=d[t];if(e){var r=p()(n);i()(r).call(r,(function(t){e[t]=n[t]}))}}))}}}},setPopup:function(e,t,n){var r,o=e.targetMsg,i=e.targetMsgEn,s=w()(r=this.lang.value).call(r,"zh")>-1?o:i;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 o,s=this,l=e.targetObj,c=e.targetObjVal;if(l){var u=a()(o="".concat(n?n+"->":"")).call(o,l),f=this.config,d="";try{d=(0,C.Ho)({extendAttr:c,metaCode:"event setPorps code:".concat(f.metaCode)},null==f?void 0:f.bindValue)}catch(e){d=""}if(delete d.metaCode,(0,C.Qd)(d)){var h=O.Vf.call(this,u),m=[],y=p()(d);return i()(h).call(h,(function(e){var t,n,r=!1,o={};e&&(i()(y).call(y,(function(t){if(o[t]=e[t],(0,C.$3)(e,t)||(r=!0),"string"==typeof d[t]){var n=s.config,i=null==n?void 0:n.bindValue;e[t]=d[t].replace(/\{([^}]+)\}/g,(function(e,t){var n,r;return q()(n=U()(t).call(t)).call(n)===V.DE.REF_VAL?i:q()(r=U()(t).call(t)).call(r)===V.DE.CURRENT_DATE?(0,C.Yq)(new Date,"yyyy-MM-dd"):e}))}else e[t]=d[t]})),m.push(o),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(){i()(h).call(h,(function(e,t){var n=m[t];e&&i()(y).call(y,(function(t){e[t]=n[t]}))}))}}}}};function H(e,t,n,r){var o=this;return e=e||[],m()(e).call(e,(function(e){var i=e.eventId,s=K[i];return console.log("evnet===:",s,e),z[s]&&z[s].call(o,e,t,n,r)}))}var G={},Q={};function X(e,t){var n=this;e=e||[],this.rules=e;var o=this.config,s=o.dynamicHireRelat,l=o.columnId,u=o.id;o.metaCode,e&&e.length&&i()(e).call(e,(function(e){var o,f,h;if(e){var m=e.pmRuleTargetEventVoList,y=e.pmRuleTargetEventVOList,g=e.relId,v=e.tabpanelCode,b=a()(o=a()(f=a()(h="".concat(g,"__")).call(h,l||"")).call(f,u||"","__")).call(o,s);if(N.call(n,e))c()((function(){var r,o;G[b]&&i()(r=G[b]).call(r,(function(e){if(e){var t=null==e?void 0:e();t&&(Q[b]||(Q[b]=[]),Q[b].push(t))}})),Q[b]&&(null===(o=Q[b])||void 0===o||i()(o).call(o,(function(e){return e&&clearTimeout(e)})));var s=H.call(n,m||y,t,v,e);G[b]=s}),0);else{var _=p()(G),E=d()(_).call(_,(function(e){var t=e.split("__"),n=(0,r.A)(t,3),o=n[0],i=(n[1],n[2]);if(o==g){if(i===s)return!0;for(var a=Y(i).codes,l=Y(s).codes,c=0;c<l.length;c++){var u=l[c],p=a[c];if(!p||u.code!==p.code)return!1;if(u.idx!==p.idx)return!1}return!0}return!1}));i()(E).call(E,(function(e){var t;G[e]&&i()(t=G[e]).call(t,(function(t){if(t){var n=t();n&&(Q[e]||(Q[e]=[]),Q[e].push(n))}})),delete G[e]}))}}}))}function Y(e){var t,n="",r=m()(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:g()(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:()=>ce,$N:()=>fe,Dg:()=>_e,E1:()=>oe,Ij:()=>ge,M6:()=>J,Oe:()=>he,PT:()=>te,Qd:()=>ue,Tn:()=>re,Ts:()=>be,V9:()=>xe,Vv:()=>de,Yq:()=>pe,ZH:()=>ne,bO:()=>se,fN:()=>ve,fz:()=>ie,iF:()=>Ee,mg:()=>W.A,oY:()=>we,pp:()=>ye,q2:()=>K.A,ro:()=>ae,vr:()=>Z,yL:()=>me});var r=n(38008),o=n(53811),i=n(7252),s=n(53474),a=n(22204),l=(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(90744),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)),c=n.n(l),u=n(71426),p=n.n(u),f=n(27124),d=n.n(f),h=n(36586),m=n.n(h),y=n(18979),g=n.n(y),v=n(73363),b=n.n(v),_=n(86226),E=n.n(_),x=n(50697),w=n.n(x),S=(n(43981),n(11393)),T=n.n(S),A=n(66615),P=n.n(A),O=n(11265),C=n.n(O),k=n(48079),I=n.n(k),N=n(53930),j=n.n(N),D=n(87842),M=n.n(D),L=n(59261),R=n.n(L),B=n(74707),q=n.n(B),F=n(165),U=n.n(F),V=n(78010),$=n.n(V),W=n(88592),K=n(14835),z=n(36380),H=n(92049),G=n(46996),Q=n(10565),X=n(12935);function Y(e){var t=c()(null);return function(n){return t[n]||(t[n]=e(n))}}function J(e){if(!e)return null;var t=Number(e);if(isNaN(t)){var n=["px","%","vh","vw","rem","em"],r=p()(n).call(n,(function(t){return null==e?void 0:d()(e).call(e,t)}));return r?m()(e)+r:null}return t+"px"}function Z(e){var t=(0,a.A)(e);return"undefined"===t||"boolean"===t||"number"===t||"string"===t||"symbol"===t||"bigint"===t}n(75286);var ee=/-(\w)/g,te=Y((function(e){return e.replace(ee,(function(e,t){return t?t.toUpperCase():""}))})),ne=Y((function(e){return e.charAt(0).toUpperCase()+g()(e).call(e,1)}));function re(e,t){var n=ie(b()(e).call(e,(function(e,t,n){return e[t]=n,e}),{}),t);return null==n?-1:n}function oe(e,t){return-1!==re(e,null==t?void 0:t.renderby)||-1!==re(e,null==t?void 0:t.metaType)}function ie(e,t){if("string"!=typeof t)return null;var n=e;if(void 0!==n[t]&&null!==n[t])return n[t];var r=te(t);if(void 0!==n[r]&&null!==n[r])return n[r];var o=ne(r);return void 0!==n[o]&&null!==n[o]?n[o]:null}function se(e){return"string"!=typeof e?e:ne(te(e))}function ae(e,t){return"string"==typeof e&&"string"==typeof t&&ne(te(e))===ne(te(t))}var le=Object.prototype.hasOwnProperty;function ce(e,t){return le.call(e,t)}function ue(e){return"[object Object]"===Object.prototype.toString.call(e)&&null!=e}function pe(e,t){var n;if(!e)return"";(0,X.$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 E()(n=w()(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 fe(e,t,n){if(!t)return e;if(!e)return t;var r=(0,z.A)(e,t,(function(e,t){if(!t)return e;if(!e)return t;if((0,H.A)(t)&&(0,H.A)(e))switch(n){case"union":return(0,K.A)(e,t,G.A);case"intersection":return(0,Q.A)(e,t,G.A);case"concat":return T()(e).call(e,t);case"replace":return t;default:throw new Error("Unknown merge array strategy: ".concat(n))}return ue(t)&&ue(e)?fe(e,t,n):t}));if(P()(e)&&r&&!P()(r)){var o,i=[];E()(o=w()(r)).call(o,(function(e){i[e]=r[e]})),r=i}return r}function de(e,t){var n=t;if("object"===(0,a.A)(e)&&"object"===(0,a.A)(t)&&(n=(0,z.A)(e,t,(function(e,t){if((0,H.A)(e)&&(0,H.A)(t)){for(var n=[],r=0;r<e.length&&r<t.length;r++)n.push(de(e[r],t[r]));return r<e.length?n.push.apply(n,(0,s.A)(g()(e).call(e,r))):n.push.apply(n,(0,s.A)(g()(t).call(t,r))),n}return ue(t)&&ue(e)?de(e,t):t}))),P()(e)&&n&&!P()(n)){var r,o=[];E()(r=w()(n)).call(r,(function(e){o[e]=n[e]})),n=o}return n}function he(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 me(e){return e&&"function"==typeof e.then}function ye(){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 ge(){var e;return T()(e="".concat(pe(new Date,"yyyy-MM-dd hh:mm:ss"),"-")).call(e,function(){if("object"===("undefined"==typeof crypto?"undefined":(0,a.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 ve(e,t){var n,r,o,i=e.referenceOptions,s=e.selectKey,a=[];try{var l;a=I()(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===(o=t.value)||void 0===o?void 0:o[i])||a||[];return(null==e?void 0:e.priOptions)||c}function be(e,t,n,r){e[t]=n;var i=r||{};j()(e,t,(0,o.A)({value:n,writable:!0,enumerable:!1,configurable:!0},i))}function _e(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new(M());if(null===e||"object"!==(0,a.A)(e))switch((0,a.A)(e)){case"string":case"number":return"";default:return null}if(r.has(e))return r.get(e);if(P()(e))t=[],r.set(e,t),(n=t).push.apply(n,(0,s.A)(I()(e).call(e,(function(e){return _e(e,r)}))));else if(e instanceof Date)t=null;else if(e instanceof R())t=new(R());else if(e instanceof q())t=new(q());else{t={},r.set(e,t);for(var o=0,i=w()(e);o<i.length;o++){var l=i[o],c=_e(e[l],r);null!=c&&(t[l]=c)}}return t}function Ee(e){var t;if(null==e)return"NaN";var n=C()(t=String(e)).call(t).match(/^[+-]?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/);if(!n)return"NaN";var o=n[0];return/e/i.test(o)&&(o=function(e){var t=e.split(/e/gi),n=(0,r.A)(t,2),o=n[0],i=n[1],s=i?m()(i,10):0,a=o.split("."),l=(0,r.A)(a,2),c=l[0],u=l[1],p=void 0===u?"":u,f=U()(c).call(c,"-");f&&(c=g()(c).call(c,1));var d=c+p,h=c.length+s;return h>=d.length?(f?"-":"")+d+$()("0").call("0",h-d.length):h<=0?(f?"-":"")+"0."+$()("0").call("0",-h)+d:(f?"-":"")+g()(d).call(d,0,h)+(g()(d).call(d,h)?"."+g()(d).call(d,h):"")}(o)),function(e){if(""===e)return"0";var t=U()(e).call(e,"-"),n=(t?g()(e).call(e,1):e).split("."),o=(0,r.A)(n,2),i=o[0],s=o[1],a="";return a+=t?"-":"",a+=i=i.replace(/^0+/,"")||"0",a+=(s=(s||"").replace(/0+$/,""))?"."+s:"",U()(a).call(a,".")&&(a="0"+a),U()(a).call(a,"-.")&&(a="-0"+g()(a).call(a,1)),a}(o)}function xe(){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=b()(r).call(r,(function(e,t){return e?e[t]:null}),t))&&void 0!==e?e:""}function we(){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 o=e;E()(r).call(r,(function(e,t){t+1===r.length?o[e]=null!=n?n:"":(o[e]||(o[e]={}),o=o[e])}))}},85352:(e,t,n)=>{n.d(t,{AP:()=>I,Bs:()=>_,DE:()=>c,K4:()=>u,LX:()=>g,Lu:()=>v,MD:()=>E,Op:()=>T,R_:()=>h,UP:()=>m,V6:()=>b,Xj:()=>O,aX:()=>w,dK:()=>k,fH:()=>S,g:()=>l,jf:()=>y,of:()=>d,pL:()=>x,s1:()=>N,ue:()=>P,un:()=>f,yD:()=>A,yz:()=>C});var r=n(64007),o=n.n(r),i=n(11393),s=n.n(i),a=(n(2892),n(48618)),l={OPERATE:"operate",DETAIL:"detail",LOG:"log"},c={CURRENT_DATE:"_currentDate",CURRENT_DATE_TIME:"_currentDateTime",REF_VAL:"_refVal"},u={LIST:"list",OBJECT:"object",STRING:"string"},p=["CustomComponentTabs","CustomComponentTabPane","CustomComponentCycleTabPane","CustomComponentCollapse","CustomComponentTabPaneH5"],f="CustomComponentFormLayout",d="CustomComponentFormLayoutH5",h=["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"],m=["ElInput","ElButton","CmiInput","CmiButton","ElText"],y=["CmiInput","CmiSelect","CmiPicker"],g=["CustomComponentTabPane","CustomComponentDialog","CustomComponentCol","CustomComponentTabPaneH5"],v=["CustomComponentTable"],b=["el-select","el-date-picker","el-time-picker","el-time-select","el-cascader","el-input-number","CustomComponentTree","CustomComponentSteps"],_=["el-span"],E="el-",x="t-",w="cmi-",S="H5-",T="0",A=["ElText"],P=["ElInput","ElDatePicker","ElInputNumber"],O=["ElSelect"],C={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 I(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 k({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,i){return((null==i?void 0:o()(i).call(i,"zh"))>-1?e.defPlacehold:e.defPlaceholdEn)||""}},placeholderEn:{type:String,default:function(){return""},getValue:function(e,t,n,r,o){return e.defPlaceholdEn}}};function k(e){var t=e.config;return"boolean"==typeof t.hidden&&t.hidden||"1"==t.hidden||"1"==t.collapseHidden}function I(e,t){var n,r;return!(0,a.E1)(["CustomComponentTabs"],e)&&(t===l.LOG?!e.logAlong&&!(0,a.E1)(s()(n=[f]).call(n,p),e)||"0"==e.editFlag:t===l.DETAIL&&!e.detailAlong&&!(0,a.E1)(s()(r=[f]).call(r,p),e)||"0"==e.editFlag)}var N={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=C)},71835:(e,t,n)=>{n.d(t,{A:()=>m,l:()=>y});var r=n(8628),o=n.n(r),i=n(11393),s=n.n(i),a=n(57119),l=n.n(a),c=n(73363),u=n.n(c),p=(n(48598),n(23288),n(79432),n(27495),n(90906),n(71761),n(90744),n(75286)),f=n(48618),d=n(85352),h=n(12935);function m(e){if((e.defaultVal||e.defaultValue)&&!e.bindValue&&0!==e.bindValue&&(!(0,h.cy)(e.bindValue)||!e.bindValue.length)){var t=e.defaultVal||e.defaultValue,n=null;try{var r,i;if("string"==typeof t){var a=null;if("string"==typeof t&&(a=t.match(/^_route:(.*)$/))){var l,c=a[1],u=null==e||null===(l=e.route)||void 0===l?void 0:l.query;n=null==u?void 0:u[c]}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 m;n=t===d.DE.CURRENT_DATE||"currentDate"===t||t===d.DE.CURRENT_DATE_TIME?t===d.DE.CURRENT_DATE_TIME?(0,f.Yq)(new Date,"yyyy-MM-dd hh:mm:ss"):(0,f.Yq)(new Date,"yyyy-MM-dd"):o()(m=["true","false"]).call(m,t)?"true"==t:t}}else n=(0,p.toRaw)(t);"ElSelect"===e.metaType&&(n=y({config:e,val:n})),console.log(s()(r=s()(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)}}}function y(e){var t=e.config,n=e.val,r=e.isActive,o=void 0!==r&&r,i=n;if(!(0,d.dK)({config:t})||o){var s,a,c=null==t?void 0:t.valueType,p=null==t?void 0:t.separator;if(c==d.K4.STRING){if((0,f.Qd)(n)||(0,h.cy)(n))try{i=l()(n).join(p)}catch(e){i=n}}else(n&&(0,h.Kg)(n)||(0,h.Et)(n))&&(i=null===(s="".concat(n))||void 0===s?void 0:s.split(p),c==d.K4.OBJECT&&(i=null===(a=i)||void 0===a?void 0:u()(a).call(a,(function(e,t,n){return e[n]=t,e}),{})))}return i}},24691:(e,t,n)=>{function r(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=document.createRange();return o.setStart(e,0),o.setEnd(e,null==e||null===(t=e.childNodes)||void 0===t?void 0:t.length),(null===(n=o.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,AP:()=>i.AP,Bs:()=>i.Bs,Dg:()=>r.Dg,Et:()=>s.Et,Ho:()=>o.Ho,Ij:()=>r.Ij,K4:()=>i.K4,KK:()=>o.KK,Kg:()=>s.Kg,M9:()=>o.M9,Op:()=>i.Op,PT:()=>r.PT,Qd:()=>r.Qd,SK:()=>o.SK,Tn:()=>r.Tn,Ts:()=>r.Ts,UP:()=>i.UP,V9:()=>r.V9,Vv:()=>r.Vv,Yq:()=>r.Yq,ZB:()=>o.ZB,ZH:()=>r.ZH,cy:()=>s.cy,fw:()=>o.fw,iF:()=>r.iF,mg:()=>r.mg,oY:()=>r.oY,q2:()=>r.q2,qg:()=>o.qg,rn:()=>o.rn,ro:()=>r.ro,vr:()=>r.vr,yL:()=>r.yL,yo:()=>o.yo,yz:()=>i.yz});var r=n(48618),o=n(8069),i=n(85352),s=n(12935)},12935:(e,t,n)=>{n.d(t,{$P:()=>i.A,Et:()=>a.A,Kg:()=>c.A,Tn:()=>s.A,b0:()=>u.A,cy:()=>f,kZ:()=>l.A,sw:()=>d,yr:()=>p.A});var r=n(66615),o=n.n(r),i=(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),p=n(429);function f(e){return e&&o()(e)}function d(e){return null!=e}Object.prototype.toString},20807:(e,t,n)=>{n.d(t,{A:()=>A});var r=n(37891),o=n(34963),i=(n(79432),n(74707)),s=n.n(i),a=n(29544),l=n.n(a),c=n(86226),u=n.n(c),p=n(50697),f=n.n(p),d=n(75286),h=[(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 q.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 w.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 S.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 oe.default}}),Object.defineProperty(t,"isScope",{enumerable:!0,get:function(){return ie.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 N.default}}),Object.defineProperty(t,"toExpression",{enumerable:!0,get:function(){return j.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 o=n(348),i=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),w=n(174),S=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),N=n(379),j=n(380),D=n(178),M=n(381),L=n(382),R=n(383),B=n(9);Object.keys(B).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===B[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return B[e]}}))}));var q=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),oe=n(393),ie=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:o.default,isCompatTag:i.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 o.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 i.resolvePlugin}}),Object.defineProperty(t,"resolvePreset",{enumerable:!0,get:function(){return i.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),o=n(453),i=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=i,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,o.default)("isModuleDeclaration","isImportOrExportDeclaration"),i(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,o.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,o.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,o.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,o.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),o=n(58);function i(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:o,MAX_SAFE_INTEGER:i}=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>o)throw new TypeError(`version is longer than ${o} 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>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||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<i)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],o=e.prerelease[t];if(r("prerelease compare",t,n,o),void 0===n&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===n)return-1;if(n!==o)return c(n,o)}while(++t)}compareBuild(e){e instanceof u||(e=new u(e,this.options));let t=0;do{const n=this.build[t],o=e.build[t];if(r("prerelease compare",t,n,o),void 0===n&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===n)return-1;if(n!==o)return c(n,o)}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,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=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:o,computed:i,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,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"ClassDeclaration",id:e,superClass:t,body:n,decorators:o})},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,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"ClassExpression",id:e,superClass:t,body:n,decorators:o})},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,o=arguments.length>3?arguments[3]:void 0,i=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:o,computed:i,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,o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return(0,r.default)({type:"ClassPrivateMethod",kind:e,key:t,params:n,body:o,static:i})},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,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return(0,r.default)({type:"ClassPrivateProperty",key:e,value:t,decorators:n,static:o})},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,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=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:o,computed:i,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,o=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"DeclareClass",id:e,typeParameters:t,extends:n,body:o})},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,o=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"DeclareInterface",id:e,typeParameters:t,extends:n,body:o})},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 o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return(0,r.default)({type:"ForOfStatement",left:e,right:t,body:n,await:o})},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,o=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"ForStatement",init:e,test:t,update:n,body:o})},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,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return(0,r.default)({type:"FunctionDeclaration",id:e,params:t,body:n,generator:o,async:i})},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,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return(0,r.default)({type:"FunctionExpression",id:e,params:t,body:n,generator:o,async:i})},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,o=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"FunctionTypeAnnotation",typeParameters:e,params:t,rest:n,returnType:o})},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,o=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"InterfaceDeclaration",id:e,typeParameters:t,extends:n,body:o})},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,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"JSXElement",openingElement:e,closingElement:t,children:n,selfClosing:o})},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],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"MemberExpression",object:e,property:t,computed:n,optional:o})},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,o.default)("NumberLiteral","NumericLiteral","The node type "),i(e)},t.numberLiteralTypeAnnotation=function(e){return(0,r.default)({type:"NumberLiteralTypeAnnotation",value:e})},t.numberTypeAnnotation=function(){return{type:"NumberTypeAnnotation"}},t.numericLiteral=i,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,o=arguments.length>3?arguments[3]:void 0,i=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:o,computed:i,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],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;return(0,r.default)({type:"ObjectProperty",key:e,value:t,computed:n,shorthand:o,decorators:i})},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]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return(0,r.default)({type:"ObjectTypeAnnotation",properties:e,indexers:t,callProperties:n,internalSlots:o,exact:i})},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,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"ObjectTypeIndexer",id:e,key:t,value:n,variance:o,static:null})},t.objectTypeInternalSlot=function(e,t,n,o,i){return(0,r.default)({type:"ObjectTypeInternalSlot",id:e,value:t,optional:n,static:o,method:i})},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,o=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"OpaqueType",id:e,typeParameters:t,supertype:n,impltype:o})},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],o=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"OptionalMemberExpression",object:e,property:t,computed:n,optional:o})},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",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"Program",body:e,directives:t,sourceType:n,interpreter:o,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,o.default)("RegexLiteral","RegExpLiteral","The node type "),s(e,t)},t.restElement=a,t.restProperty=function(e){return(0,o.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,o.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,o){return(0,r.default)({type:"TSConditionalType",checkType:e,extendsType:t,trueType:n,falseType:o})},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,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"TSDeclareFunction",id:e,typeParameters:t,params:n,returnType:o})},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,o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;return(0,r.default)({type:"TSDeclareMethod",decorators:e,key:t,typeParameters:n,params:o,returnType:i})},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,o=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"TSInterfaceDeclaration",id:e,typeParameters:t,extends:n,body:o})},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,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"TSMethodSignature",key:e,typeParameters:t,parameters:n,typeAnnotation:o,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),o=n(58);function i(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=i(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=o.get(t);if(n)return n;const r=this.options.loose,i=r?c[u.HYPHENRANGELOOSE]:c[u.HYPHENRANGE];e=e.replace(i,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 o.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 o=new(n(132))({max:1e3}),i=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 o=r.pop();for(;n&&r.length;)n=r.every((e=>o.intersects(e,t))),o=r.pop();return n},b=(e,t)=>(a("comp",e,t),e=w(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,o,i)=>{let s;return a("tilde",e,t,n,r,o,i),_(n)?s="":_(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:_(o)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:i?(a("replaceTilde pr",i),s=`>=${n}.${r}.${o}-${i} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${o} <${n}.${+r+1}.0-0`,a("tilde return",s),s}))},w=(e,t)=>e.trim().split(/\s+/).map((e=>S(e,t))).join(" "),S=(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,o,i,s)=>{let l;return a("caret",e,t,n,o,i,s),_(n)?l="":_(o)?l=`>=${n}.0.0${r} <${+n+1}.0.0-0`:_(i)?l="0"===n?`>=${n}.${o}.0${r} <${n}.${+o+1}.0-0`:`>=${n}.${o}.0${r} <${+n+1}.0.0-0`:s?(a("replaceCaret pr",s),l="0"===n?"0"===o?`>=${n}.${o}.${i}-${s} <${n}.${o}.${+i+1}-0`:`>=${n}.${o}.${i}-${s} <${n}.${+o+1}.0-0`:`>=${n}.${o}.${i}-${s} <${+n+1}.0.0-0`):(a("no pr"),l="0"===n?"0"===o?`>=${n}.${o}.${i}${r} <${n}.${o}.${+i+1}-0`:`>=${n}.${o}.${i}${r} <${n}.${+o+1}.0-0`:`>=${n}.${o}.${i} <${+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,o,i,s,l)=>{a("xRange",e,n,r,o,i,s,l);const c=_(o),u=c||_(i),p=u||_(s),f=p;return"="===r&&f&&(r=""),l=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&f?(u&&(i=0),s=0,">"===r?(r=">=",u?(o=+o+1,i=0,s=0):(i=+i+1,s=0)):"<="===r&&(r="<",u?o=+o+1:i=+i+1),"<"===r&&(l="-0"),n=`${r+o}.${i}.${s}${l}`):u?n=`>=${o}.0.0${l} <${+o+1}.0.0-0`:p&&(n=`>=${o}.${i}.0${l} <${o}.${+i+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,o,i,s,a,l,c,u,p,f,d)=>`${n=_(r)?"":_(o)?`>=${r}.0.0${e?"-0":""}`:_(i)?`>=${r}.${o}.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 o.ALIAS_KEYS}}),Object.defineProperty(t,"BUILDER_KEYS",{enumerable:!0,get:function(){return o.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 o.DEPRECATED_KEYS}}),Object.defineProperty(t,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return o.FLIPPED_ALIAS_KEYS}}),Object.defineProperty(t,"NODE_FIELDS",{enumerable:!0,get:function(){return o.NODE_FIELDS}}),Object.defineProperty(t,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return o.NODE_PARENT_VALIDATIONS}}),Object.defineProperty(t,"PLACEHOLDERS",{enumerable:!0,get:function(){return i.PLACEHOLDERS}}),Object.defineProperty(t,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return i.PLACEHOLDERS_ALIAS}}),Object.defineProperty(t,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return i.PLACEHOLDERS_FLIPPED_ALIAS}}),t.TYPES=void 0,Object.defineProperty(t,"VISITOR_KEYS",{enumerable:!0,get:function(){return o.VISITOR_KEYS}});var r=n(166);n(167),n(356),n(357),n(358),n(359),n(360);var o=n(18),i=n(169),s=n(361);Object.keys(s.DEPRECATED_ALIASES).forEach((e=>{o.FLIPPED_ALIAS_KEYS[e]=o.FLIPPED_ALIAS_KEYS[s.DEPRECATED_ALIASES[e]]})),r(o.VISITOR_KEYS),r(o.ALIAS_KEYS),r(o.FLIPPED_ALIAS_KEYS),r(o.NODE_FIELDS),r(o.BUILDER_KEYS),r(o.DEPRECATED_KEYS),r(i.PLACEHOLDERS_ALIAS),r(i.PLACEHOLDERS_FLIPPED_ALIAS),t.TYPES=[].concat(Object.keys(o.VISITOR_KEYS),Object.keys(o.FLIPPED_ALIAS_KEYS),Object.keys(o.DEPRECATED_KEYS))},(e,t,n)=>{var r=n(17);function o(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function i(e,t){for(var n,r="",o=0,i=-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(i===a-1||1===s);else if(i!==a-1&&2===s){if(r.length<2||2!==o||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="",o=0):o=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),i=a,s=0;continue}}else if(2===r.length||1===r.length){r="",o=0,i=a,s=0;continue}t&&(r.length>0?r+="/..":r="..",o=2)}else r.length>0?r+="/"+e.slice(i+1,a):r=e.slice(i+1,a),o=a-i-1;i=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),o(a),0!==a.length&&(t=a+"/"+t,n=47===a.charCodeAt(0))}return t=i(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(o(e),0===e.length)return".";var t=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1);return 0!==(e=i(e,!t)).length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return o(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];o(n),n.length>0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":s.normalize(e)},relative:function(e,t){if(o(e),o(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,i=r-n,a=1;a<t.length&&47===t.charCodeAt(a);++a);for(var l=t.length-a,c=i<l?i: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 i>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(o(e),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,i=!0,s=e.length-1;s>=1;--s)if(47===(t=e.charCodeAt(s))){if(!i){r=s;break}}else i=!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');o(e);var n,r=0,i=-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&&(i=n):(a=-1,i=l))}return r===i?i=l:-1===i&&(i=e.length),e.slice(r,i)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!s){r=n+1;break}}else-1===i&&(s=!1,i=n+1);return-1===i?"":e.slice(r,i)},extname:function(e){o(e);for(var t=-1,n=0,r=-1,i=!0,s=0,a=e.length-1;a>=0;--a){var l=e.charCodeAt(a);if(47!==l)-1===r&&(i=!1,r=a+1),46===l?-1===t?t=a:1!==s&&(s=1):-1!==t&&(s=-1);else if(!i){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){o(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,r=e.charCodeAt(0),i=47===r;i?(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&&i?e.slice(1,l):e.slice(a,l)):(0===a&&i?(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):i&&(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),o=n(66),i=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=i.aTypedArray,m=i.exportTypedArrayMethod,y=!c((function(){var e=new Uint8ClampedArray(2);return o(d,e,{length:1,0:3},1),3!==e[1]})),g=y&&i.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 o(d,this,n,t);var r=this.length,i=s(n),c=0;if(i+t>r)throw new u("Wrong length");for(;c<i;)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",o="GENSYNC_EXPECTED_SUSPEND",i="GENSYNC_OPTIONS_ERROR",s="GENSYNC_RACE_NONEMPTY";function a(e,t,n,r){if(typeof n===e||r&&void 0===n)return;let o;throw o=r?`Expected opts.${t} to be either a ${e}, or undefined.`:`Expected opts.${t} to be a ${e}.`,l(o,i)}function l(e,t){return Object.assign(new Error(e),{code:t})}function c(e){let{name:r,arity:o,sync:i,async:s}=e;return m(r,o,(function*(){const e=yield t;for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];if(!e)return i.call(this,o);let l;try{s.call(this,o,(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,o=!1;const i=e.next((()=>{t?o=!0:r()}));if(t=!1,d(i,e),!o)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:i}=e;(i||r!==n)&&h(t,l(i?"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.`,o))}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:o,errback:s}=e;if(a("string","name",t,!0),a("number","arity",n,!0),a("function","sync",r),a("function","async",o,!0),a("function","errback",s,!0),o&&s)throw l("Expected one of either opts.async or opts.errback, but got _both_.",i);if("string"!=typeof t){let e;s&&s.name&&"errback"!==s.name&&(e=s.name),o&&o.name&&"async"!==o.name&&(e=o.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){o?o.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 o=n.pop();if("function"!=typeof o)throw l("Asynchronous function called without callback","GENSYNC_ERRBACK_NO_CALLBACK");let i;try{i=e.apply(this,n)}catch(e){return void o(e)}p(i,(e=>o(void 0,e)),(e=>o(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 o=0;const i=r.map((()=>{}));r.forEach(((e,r)=>{p(e,(e=>{i[r]=e,o+=1,o===i.length&&t(i)}),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 o=n(0),i=n(35),s=n(100),a=n(28),l=n(183),c=n(444);const{VISITOR_KEYS:u,removeProperties:p,traverseFast:f}=o;function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=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(!i&&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,o,i,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,o,i){(0,s.traverseNode)(e,t,n,r,o,i)},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=i},(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,o)=>{var s;let a;for(const e of Object.keys(n))t[e]||(null!=a||(a=i(t)),a[e]=n[e](a));return e(null!=(s=a)?s:t,r||{},o)}}Object.assign(n,{targets:()=>()=>({}),assumption:()=>()=>{}});const o=r;function i(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=o},e=>{var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!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:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();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===i||!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 i(e,n,i){for(const s of t)if(f(i)===s||(0,r.default)(s,i))return void(0,o.validateChild)(e,n,i);throw new TypeError(`Property ${n} of ${e.type} expected node to be of a type ${JSON.stringify(t)} but instead got ${JSON.stringify(null==i?void 0:i.type)}`)}return i.oneOfNodeOrValueTypes=t,i},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 i=[];for(const n of Object.keys(e))try{(0,o.validateField)(t,n,r[n],e[n])}catch(e){if(e instanceof TypeError){i.push(e.message);continue}throw e}if(i.length)throw new TypeError(`Property ${n} of ${t.type} expected to have the following:\n${i.join("\n")}`)}return t.shapeOf=e,t},t.assertValueType=b,t.chain=_,t.default=S,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 o;r||(n.inherits&&(r=null==(o=w[n.inherits].aliases)?void 0:o.slice()),null!=r||(r=[]),n.aliases=r);const i=t.filter((e=>!r.includes(e)));r.unshift(...i),S(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),o=n(97);const i=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 o=0;o<r.length;o++){const i=`${n}[${o}]`,s=r[o];e(t,i,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 i(e,n,i){for(const s of t)if((0,r.default)(s,i))return void(0,o.validateChild)(e,n,i);throw new TypeError(`Property ${n} of ${e.type} expected node to be of a type ${JSON.stringify(t)} but instead got ${JSON.stringify(null==i?void 0:i.type)}`)}return i.oneOfNodeTypes=t,i}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"],w={};function S(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=t.inherits&&w[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],o=e.default;if(Array.isArray(o)?o.length>0:o&&"object"==typeof o)throw new Error("field defaults can only be primitives or empty arrays currently");r[t]={default:Array.isArray(o)?[]:o,optional:e.optional,deprecated:e.deprecated,validate:e.validate}}}const o=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 o.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}`)}i[e]=t.visitor=o,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),w[e]=t}},(e,t,n)=>{var r=n(104),o=Function.prototype,i=o.call,s=r&&o.bind.bind(i,i);e.exports=r?s:function(e){return function(){return i.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,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n(44),Object.defineProperty(t,"__esModule",{value:!0});class o{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 i{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:i}=e;return new o(n,r+t,i+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,i){const s=new SyntaxError;return Object.assign(s,n,{loc:r,pos:r.index}),"missingPlugin"in i&&Object.assign(s,{missingPlugin:i.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 o(s,a,l),Object.assign({},i,t.details))})),y(s,"details",i),Object.defineProperty(s,"message",{configurable:!0,get(){const e=`${t(i)} (${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 o of Object.keys(e)){const i=e[o],s="string"==typeof i?{message:()=>i}:"function"==typeof i?{message:i}:i,{message:a}=s,l=r(s,m),c="string"==typeof a?()=>a:a;n[o]=g(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:o,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 w{constructor(e,t){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!t}}const S={brace:new w("{"),j_oTag:new w("<tag"),j_cTag:new w("</tag"),j_expr:new w("<tag>...</tag>",!0)};S.template=new w("`",!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 N(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 j(e,t){return U(e,{beforeExpr:T,binop:t})}let D=-1;const M=[],L=[],R=[],B=[],q=[],F=[];function U(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n,r,o,i;return++D,L.push(e),R.push(null!=(n=t.binop)?n:-1),B.push(null!=(r=t.beforeExpr)&&r),q.push(null!=(o=t.startsExpr)&&o),F.push(null!=(i=t.prefix)&&i),M.push(new k(e,t)),D}function V(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n,r,o,i;return++D,I.set(e,D),L.push(e),R.push(null!=(n=t.binop)?n:-1),B.push(null!=(r=t.beforeExpr)&&r),q.push(null!=(o=t.startsExpr)&&o),F.push(null!=(i=t.prefix)&&i),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:j("|>",0),nullishCoalescing:j("??",1),logicalOR:j("||",1),logicalAND:j("&&",2),bitwiseOR:j("|",3),bitwiseXOR:j("^",4),bitwiseAND:j("&",5),equality:j("==/!=/===/!==",6),lt:j("</>/<=/>=",7),gt:j("</>/<=/>=",7),relational:j("</>/<=/>=",7),bitShift:j("<</>>/>>>",8),bitShiftL:j("<</>>/>>>",8),bitShiftR:j("<</>>/>>>",8),plusMin:U("+/-",{beforeExpr:T,binop:9,prefix:C,startsExpr:A}),modulo:U("%",{binop:10,startsExpr:A}),star:U("*",{binop:10}),slash:j("/",10),exponent:U("**",{beforeExpr:T,binop:11,rightAssociative:!0}),_in:N("in",{beforeExpr:T,binop:7}),_instanceof:N("instanceof",{beforeExpr:T,binop:7}),_break:N("break"),_case:N("case",{beforeExpr:T}),_catch:N("catch"),_continue:N("continue"),_debugger:N("debugger"),_default:N("default",{beforeExpr:T}),_else:N("else",{beforeExpr:T}),_finally:N("finally"),_function:N("function",{startsExpr:A}),_if:N("if"),_return:N("return",{beforeExpr:T}),_switch:N("switch"),_throw:N("throw",{beforeExpr:T,prefix:C,startsExpr:A}),_try:N("try"),_var:N("var"),_const:N("const"),_with:N("with"),_new:N("new",{beforeExpr:T,startsExpr:A}),_this:N("this",{startsExpr:A}),_super:N("super",{startsExpr:A}),_class:N("class",{startsExpr:A}),_extends:N("extends",{beforeExpr:T}),_export:N("export"),_import:N("import",{startsExpr:A}),_null:N("null",{startsExpr:A}),_true:N("true",{startsExpr:A}),_false:N("false",{startsExpr:A}),_typeof:N("typeof",{beforeExpr:T,prefix:C,startsExpr:A}),_void:N("void",{beforeExpr:T,prefix:C,startsExpr:A}),_delete:N("delete",{beforeExpr:T,prefix:C,startsExpr:A}),_do:N("do",{isLoop:P,beforeExpr:T}),_for:N("for",{isLoop:P}),_while:N("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 q[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(S.brace)},M[22].updateContext=e=>{e[e.length-1]===S.template?e.pop():e.push(S.template)},M[142].updateContext=e=>{e.push(S.j_expr,S.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 oe=[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],ie=[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,o=t.length;r<o;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,oe)))}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,oe)||se(e,ie))))}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 o=r.names.get(e)||0;16&t?o|=4:(r.firstLexicalName||(r.firstLexicalName=e),o|=2),r.names.set(e,o),8&t&&this.maybeExportDefined(r,e)}else if(4&t)for(let o=this.scopeStack.length-1;o>=0&&(r=this.scopeStack[o],this.checkRedeclarationInScope(r,e,t,n),r.names.set(e,1|(r.names.get(e)||0)),this.maybeExportDefined(r,e),!(387&r.flags));--o);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 we(e,t){void 0===e.innerComments?e.innerComments=t:e.innerComments.unshift(...t)}function Se(e,t,n){let r=null,o=t.length;for(;null===r&&o>0;)r=t[--o];null===r||r.start>n.start?we(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 o=t[r];o.start===e.end&&(o.leadingNode=e,r--);const{start:i}=e;for(;r>=0;r--){const n=t[r],o=n.end;if(!(o>i)){o===i&&(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":Se(n,n.properties,e);break;case"CallExpression":case"OptionalCallExpression":Se(n,n.arguments,e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":Se(n,n.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":Se(n,n.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":Se(n,n.specifiers,e);break;default:we(n,t)}else we(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,o=r.length;if(0===o)return;let i=o-1;for(;i>=0;i--){const o=r[i],s=o.end;if(o.start===n)o.leadingNode=e;else if(s===t)o.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 Ne(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 je{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=[S.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:i}=e;this.strict=!1!==t&&(!0===t||"module"===n),this.curLine=r,this.lineStart=-i,this.startLoc=this.endLoc=new o(r,i,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 o(this.curLine,this.pos-this.lineStart,this.pos)}clone(){const e=new je;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,o,i){const s=n,a=r,l=o;let c="",u=null,p=n;const{length:f}=t;for(;;){if(n>=f){i.unterminated(s,a,l),c+=t.slice(p,n);break}const d=t.charCodeAt(n);if(Be(e,d,t,n)){c+=t.slice(p,n);break}if(92===d){c+=t.slice(p,n);const s=qe(t,n,r,o,"template"===e,i);null!==s.ch||u?c+=s.ch:u={pos:n,lineStart:r,curLine:o},({pos:n,lineStart:r,curLine:o}=s),p=n}else 8232===d||8233===d?(++o,r=++n):10===d||13===d?"template"===e?(c+=t.slice(p,n)+"\n",++n,13===d&&10===t.charCodeAt(n)&&++n,++o,p=r=n):i.unterminated(s,a,l):++n}return{pos:n,str:c,firstInvalidLoc:u,lineStart:r,curLine:o,containsInvalid:!!u}}function Be(e,t,n,r){return"template"===e?96===t||36===t&&123===n.charCodeAt(r+1):t===("double"===e?34:39)}function qe(e,t,n,r,o,i){const s=!o;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 o;return({code:o,pos:t}=Fe(e,t,n,r,2,!1,s,i)),a(null===o?null:String.fromCharCode(o))}case 117:{let o;return({code:o,pos:t}=Ve(e,t,n,r,s,i)),a(null===o?null:String.fromCodePoint(o))}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(o)return a(null);i.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(o)return a(null);i.strictNumericEscape(s,n,r)}return a(String.fromCharCode(c))}return a(String.fromCharCode(l))}}function Fe(e,t,n,r,o,i,s,a){const l=t;let c;return({n:c,pos:t}=Ue(e,t,n,r,16,o,i,!1,a,!s)),null===c&&(s?a.invalidEscapeSequence(l,n,r):t=l-1),{code:c,pos:t}}function Ue(e,t,n,r,o,i,s,a,l,c){const u=t,p=16===o?Me.hex:Me.decBinOct,f=16===o?Le.hex:10===o?Le.dec:8===o?Le.oct:Le.bin;let d=!1,h=0;for(let u=0,m=null==i?1/0:i;u<m;++u){const i=e.charCodeAt(t);let u;if(95!==i||"bail"===a){if(u=i>=97?i-97+10:i>=65?i-65+10:De(i)?i-48:1/0,u>=o){if(u<=9&&c)return{n:null,pos:t};if(u<=9&&l.invalidDigit(t,n,r,o))u=0;else{if(!s)break;u=0,d=!0}}++t,h=h*o+u}else{const o=e.charCodeAt(t-1),i=e.charCodeAt(t+1);if(a){if(Number.isNaN(i)||!f(i)||p.has(o)||p.has(i)){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!=i&&t-u!==i||d?{n:null,pos:t}:{n:h,pos:t}}function Ve(e,t,n,r,o,i){let s;if(123===e.charCodeAt(t)){if(++t,({code:s,pos:t}=Fe(e,t,n,r,e.indexOf("}",t)-t,!0,o,i)),++t,null!==s&&s>1114111){if(!o)return{code:null,pos:t};i.invalidCodePoint(t,n,r)}}else({code:s,pos:t}=Fe(e,t,n,r,4,!1,o,i));return{code:s,pos:t}}function $e(e,t,n){return new o(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 i(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 je,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 o={type:"CommentBlock",value:this.input.slice(n+2,r),start:n,end:r+e.length,loc:new i(t,this.state.curPosition())};return this.options.tokens&&this.pushToken(o),o}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 o=this.state.pos,s={type:"CommentLine",value:this.input.slice(t+e,o),start:t,end:o,loc:new i(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(Ne(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:o}=this.state;for(;;++o){if(o>=this.length)throw this.raise(b.UnterminatedRegExp,s(e,1));const t=this.input.charCodeAt(o);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 i=this.input.slice(t,o);++o;let a="";const l=()=>s(e,o+2-t);for(;o<this.length;){const e=this.codePointAtPos(o),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())}++o,a+=t}this.state.pos=o,this.finishToken(137,{pattern:i,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:o,pos:i}=Ue(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,t,n,r,this.errorHandlers_readInt,!1);return this.state.pos=i,o}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 o=this.input.charCodeAt(this.state.pos);if(110===o)++this.state.pos,n=!0;else if(109===o)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,o=!1,i=!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,o=!0),109===u&&(this.expectPlugin("decimal",this.state.curPosition()),(a||c)&&this.raise(b.InvalidDecimal,n),++this.state.pos,i=!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(o)return void this.finishToken(135,p);if(i)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:o}=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=o,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:i,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=i,n&&(this.state.firstInvalidTemplateEscapePos=new o(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(),o=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 i=this.readCodePoint(!0);null!==i&&(o(i)||this.raise(b.EscapedCharNotAnIdentifier,e),t+=String.fromCodePoint(i)),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 o?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 o?t:t.loc.start,i=r.index,s=this.state.errors;for(let t=s.length-1;t>=0;t--){const o=s[t];if(o.loc.index===i)return s[t]=e(r,n);if(o.loc.index<i)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:o,undefinedPrivateNames:i}=this.current();let s=r.has(e);if(3&t){const n=s&&o.get(e);n?(s=(3&n)==(3&t)||(4&n)!=(4&t),s||o.delete(e)):s||o.set(e,t)}s&&this.parser.raise(b.PrivateNameRedeclaration,n,{identifierName:e}),r.add(e),i.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 o=r.length-1,i=r[o];for(;!i.isCertainlyParameterDeclaration();){if(!i.canBeArrowParameterDeclaration())return;i.recordDeclarationError(e,n),i=r[--o]}this.parser.raise(e,n)}recordArrowParameterBindingError(e,t){const{stack:n}=this,r=n[n.length-1],o=t.loc.start;if(r.isCertainlyParameterDeclaration())this.parser.raise(e,o);else{if(!r.canBeArrowParameterDeclaration())return;r.recordDeclarationError(e,o)}}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 o=e.length-2,i=e[o];for(;i.canBeArrowParameterDeclaration();)i.clearDeclarationError(r.index),i=e[--o]}))}}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 o=e.extra=e.extra||{};r?o[t]=n:Object.defineProperty(o,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:o,optionalParametersLoc:i}=e;if(!t)return!!(n||r||i||o);null!=n&&this.raise(b.InvalidCoverInitializedName,n),null!=r&&this.raise(b.DuplicateProto,r),null!=o&&this.raise(b.UnexpectedPrivateField,o),null!=i&&this.unexpected(i)}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 o=this.scope,i=this.getScopeHandler();this.scope=new i(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=o,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 i(n),null!=e&&e.options.ranges&&(this.range=[t,0]),null!=e&&e.filename&&(this.loc.filename=e.filename)}}const ot=rt.prototype;function it(e){const{type:t,start:n,end:r,loc:o,range:i,extra:s,name:a}=e,l=Object.create(ot);return l.type=t,l.start=n,l.end=r,l.loc=o,l.range=i,l.extra=s,l.name=a,"Placeholder"===t&&(l.expectedNode=e.expectedNode),l}ot.__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 o=r.tsNames.get(e)||0;if(1024&t)return this.maybeExportDefined(r,e),void r.tsNames.set(e,16|o);super.declareName(e,t,n),2&t&&(1&t||(this.checkRedeclarationInScope(r,e,t,n),this.maybeExportDefined(r,e)),o|=1),256&t&&(o|=2),512&t&&(o|=4),128&t&&(o|=8),o&&r.tsNames.set(e,o)}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 o;switch(("ParenthesizedExpression"===e.type||null!=(n=e.extra)&&n.parenthesized)&&(o=vt(e),t?"Identifier"===o.type?this.expressionScope.recordArrowParameterBindingError(b.InvalidParenthesizedAssignment,e):"MemberExpression"===o.type||this.isOptionalMemberExpression(o)||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,o=r-1;n<r;n++){var i;const r=e.properties[n],s=n===o;this.toAssignableObjectExpressionProp(r,s,t),s&&"RestElement"===r.type&&null!=(i=e.extra)&&i.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(o,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 o=0;o<=r;o++){const i=e[o];if(i){if("SpreadElement"===i.type){i.type="RestElement";const e=i.argument;this.checkToRestConversion(e,!0),this.toAssignable(e,n)}else this.toAssignable(i,n);"RestElement"===i.type&&(o<r?this.raise(b.RestTrailingComma,i):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,o=[];let i=!0;for(;!this.eat(e);)if(i?i=!1:this.expect(12),r&&this.match(12))o.push(null);else{if(this.eat(e))break;if(this.match(21)){if(o.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());o.push(this.parseAssignableListItem(n,e))}}return o}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"},o=e,Object.hasOwnProperty.call(r,o)&&r[o];var r,o}isOptionalMemberExpression(e){return"OptionalMemberExpression"===e.type}checkLVal(e,t){let{in:n,binding:r=64,checkClashes:o=!1,strictModeChanged:i=!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,i);const{name:t}=e;return void(o&&(o.has(t)?this.raise(b.ParamDupe,e):o.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:o,strictModeChanged:i,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 wt(e){return"in"===e||"out"===e}function St(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||!!St(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,o=Object.keys(r),i=0===o.length;return e.some((e=>{if("string"==typeof e)return i&&e===n;{const[t,i]=e;if(t!==n)return!1;for(const e of o)if(i[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"],Nt=["^^","@@","^","%","#"],jt=["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 o=this.estreeParseLiteral(r);return o.regex={pattern:t,flags:n},o}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,o){super.parseBlockBody(e,t,n,r,o);const i=e.directives.map((e=>this.directiveToStmt(e)));e.body=i.concat(e.body),delete e.directives}pushClassMethod(e,t,n,r,o,i){this.parseMethod(t,n,r,o,i,"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,o,i){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,o,i,s),a.type="FunctionExpression",delete a.kind,e.value=a,"ClassPrivateMethod"===i&&(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,o){const i=super.parseObjectMethod(e,t,n,r,o);return i&&(i.type="Property","method"===i.kind&&(i.kind="init"),i.shorthand=!1),i}parseObjectProperty(e,t,n,r){const o=super.parseObjectProperty(e,t,n,r);return o&&(o.kind="init",o.type="Property"),o}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,o;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!=(o=n.arguments[1])?o: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 o;const{declaration:e}=r;"ClassDeclaration"===(null==e?void 0:e.type)&&(null==(o=e.decorators)?void 0:o.length)>0&&e.start===r.start&&this.resetStartLocation(r,n)}}return r}parseSubscript(e,t,n,r){const o=super.parseSubscript(e,t,n,r);if(r.optionalChainMember){if("OptionalMemberExpression"!==o.type&&"OptionalCallExpression"!==o.type||(o.type=o.type.substring(8)),r.stop){const e=this.startNodeAtNode(o);return e.expression=o,this.finishNode(e,"ChainExpression")}}else"MemberExpression"!==o.type&&"CallExpression"!==o.type||(o.optional=!1);return o}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(S.brace),this.next(),e=this.jsxParseExpressionContainer(e,S.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(S.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(S.brace),this.next(),this.expect(21),e.argument=this.parseMaybeAssignAllowIn(),this.setContext(S.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 o=null;if(!r.selfClosing){e:for(;;)switch(this.state.type){case 142:if(e=this.state.startLoc,this.next(),this.eat(56)){o=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(S.brace),this.next(),this.match(21)?n.push(this.jsxParseSpreadChild(e)):n.push(this.jsxParseExpressionContainer(e,S.j_expr));break}default:this.unexpected()}ht(r)&&!ht(o)&&null!==o?this.raise(dt.MissingClosingTagFragment,o):!ht(r)&&ht(o)?this.raise(dt.MissingClosingTagElement,o,{openingTagName:mt(r.name)}):ht(r)||ht(o)||mt(o.name)!==mt(r.name)&&this.raise(dt.MissingClosingTagElement,o,{openingTagName:mt(r.name)})}if(ht(r)?(t.openingFragment=r,t.closingFragment=o):(t.openingElement=r,t.closingElement=o),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!==S.j_expr){if(t===S.j_oTag||t===S.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===S.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,S.j_cTag),this.state.canStartJSXElement=!1;else if(142===n)t.push(S.j_oTag);else if(143===n){const n=t[t.length-1];n===S.j_oTag&&56===e||n===S.j_cTag?(t.pop(),this.state.canStartJSXElement=t[t.length-1]===S.j_expr):(this.setContext(S.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=B[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 o=this.flowParseFunctionTypeParams();return n.params=o.params,n.rest=o.rest,n.this=o._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,o=!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&&(o&&this.raise(lt.DuplicateDeclareModuleExports,e),"ES"===r&&this.raise(lt.AmbiguousDeclareModuleKind,e),r="CommonJS",o=!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(),o=this.flowParseTypeAnnotatableIdentifier();return n.name=o.name,n.variance=r,n.bound=o.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:o,allowInexact:i}=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(o&&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 o=this.flowParseObjectTypeProperty(l,e,n,p,t,r,null!=i?i:!c);null===o?(u=!0,s=this.state.lastTokStartLoc):a.properties.push(o)}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,o,i,s){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(i?s||this.raise(lt.InexactInsideExact,this.state.lastTokStartLoc):this.raise(lt.InexactInsideNonObject,this.state.lastTokStartLoc),r&&this.raise(lt.InexactVariance,r),null):(i||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=o;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"!==o&&"set"!==o||this.flowCheckGetterSetterParams(e),!i&&"constructor"===e.key.name&&e.value.this&&this.raise(lt.ThisParamBannedInConstructor,e.value.this)):("init"!==o&&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 o=this.startNode(),i=this.lookahead(),s=78===this.state.type;return 14===i.type||17===i.type?(s&&!e&&this.raise(lt.ThisParamMustBeFirst,o),t=this.parseIdentifier(s),this.eat(17)&&(n=!0,s&&this.raise(lt.ThisParamMayNotBeOptional,o)),r=this.flowParseTypeInitialiser()):r=this.flowParseType(),o.name=t,o.optional=n,o.typeAnnotation=r,this.finishNode(o,"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,o=!1;const i=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=i,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;o=17!==e&&14!==e}else o=!0;if(o){if(this.state.noAnonFunctionType=!1,r=this.flowParseType(),this.state.noAnonFunctionType=i,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),o=this.eat(18);n=n||o,this.expect(0),!o&&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=o,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(),o=this.state.noArrowAt,i=this.startNodeAt(t);let{consequent:s,failed:a}=this.tryParseConditionalConsequent(),[l,c]=this.getArrowLikeExpressions(s);if(a||c.length>0){const e=[...o];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=o,this.expect(14),i.test=e,i.consequent=s,i.alternate=this.forwardNoArrowParamsConversionAt(i,(()=>this.parseMaybeAssign(void 0,void 0))),this.finishNode(i,"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 o=0;o<e.length;o++)(t(e[o])?n:r).push(e[o]);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 o=e[r];!o||"TypeCastExpression"!==o.type||null!=(n=o.extra)&&n.parenthesized||!(e.length>1)&&t||this.raise(lt.TypeCastInPattern,o.typeAnnotation)}return e}parseArrayLike(e,t,n,r){const o=super.parseArrayLike(e,t,n,r);return t&&!this.state.maybeInArrowParameters&&this.toReferencedList(o.elements),o}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,o,i){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,o,i),t.params&&o){const e=t.params;e.length>0&&this.isThisParam(e[0])&&this.raise(lt.ThisParamBannedInConstructor,t)}else if("MethodDefinition"===t.type&&o&&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,o,i,s){let a;e.variance&&this.unexpected(e.variance.loc.start),delete e.variance,this.match(47)&&!i&&(a=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());const l=super.parseObjPropValue(e,t,n,r,o,i,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,o){const i=e.imported;let s=null;"Identifier"===i.type&&("type"===i.name?s="type":"typeof"===i.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=i,e.importKind=null,e.local=this.parseIdentifier()):(e.imported=t,e.importKind=s,e.local=it(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:i.value});e.imported=i,e.importKind=null}this.eatContextual(93)?e.local=this.parseIdentifier():(a=!0,e.local=it(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,o=null;if(this.hasPlugin("jsx")&&(this.match(142)||this.match(47))){if(o=this.state.clone(),r=this.tryParse((()=>super.parseMaybeAssign(e,t)),o),!r.error)return r.node;const{context:n}=this.state,i=n[n.length-1];i!==S.j_oTag&&i!==S.j_expr||n.pop()}if(null!=(n=r)&&n.error||this.match(47)){var i,s;let n;o=o||this.state.clone();const a=this.tryParse((r=>{var o;n=this.flowParseTypeParameterDeclaration();const i=this.forwardNoArrowParamsConversionAt(n,(()=>{const r=super.parseMaybeAssign(e,t);return this.resetStartLocationFromNode(r,n),r}));null!=(o=i.extra)&&o.parenthesized&&r();const s=this.maybeUnwrapTypeCastExpression(i);return"ArrowFunctionExpression"!==s.type&&r(),s.typeParameters=n,this.resetStartLocationFromNode(s,n),i}),o);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!=(i=r)&&i.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(),o=this.tryParse((e=>this.parseAsyncArrowWithTypeParameters(t)||e()),r);if(!o.error&&!o.aborted)return o.node;const i=this.tryParse((()=>super.parseSubscripts(e,t,n)),r);if(i.node&&!i.error)return i.node;if(o.node)return this.state=o.failState,o.node;if(i.node)return this.state=i.failState,i.node;throw o.error||i.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 o=this.startNodeAt(t);return o.callee=e,o.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),o.arguments=this.parseCallExpressionArguments(11,!1),o.optional=!0,this.finishCallExpression(o,!0)}if(!n&&this.shouldParseTypes()&&this.match(47)){const n=this.startNodeAt(t);n.callee=e;const o=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(o.node)return o.error&&(this.state=o.failState),o.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,o={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};let i=!1;for(;!this.match(8);){if(this.eat(21)){i=!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,o.booleanMembers.push(this.finishNode(e,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(a.loc,c,"number"),e.init=a.value,o.numberMembers.push(this.finishNode(e,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(a.loc,c,"string"),e.init=a.value,o.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:o.defaultedMembers.push(this.finishNode(e,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:o,hasUnknownMembers:i}}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,o=this.flowEnumParseExplicitType({enumName:n});this.expect(5);const{members:i,hasUnknownMembers:s}=this.flowEnumMembers({enumName:n,explicitType:o});switch(e.hasUnknownMembers=s,o){case"boolean":return e.explicitType=!0,e.members=i.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=i.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(i.stringMembers,i.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=i.defaultedMembers,this.expect(8),this.finishNode(e,"EnumSymbolBody");default:{const t=()=>(e.members=[],this.expect(8),this.finishNode(e,"EnumStringBody"));e.explicitType=!1;const o=i.booleanMembers.length,s=i.numberMembers.length,a=i.stringMembers.length,l=i.defaultedMembers.length;if(o||s||a||l){if(o||s){if(!s&&!a&&o>=l){for(const e of i.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(e.loc.start,{enumName:n,memberName:e.id.name});return e.members=i.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody")}if(!o&&!a&&s>=l){for(const e of i.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(e.loc.start,{enumName:n,memberName:e.id.name});return e.members=i.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody")}return this.raise(lt.EnumInconsistentMemberValues,r,{enumName:n}),t()}return e.members=this.flowEnumStringMembers(i.stringMembers,i.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:o,errorTemplate:i=Et.InvalidModifierOnTypeMember}=e;const s=(e,n,r,o)=>{n===r&&t[o]&&this.raise(Et.InvalidModifiersOrder,e,{orderedModifiers:[r,o]})},a=(e,n,r,o)=>{(t[r]&&n===o||t[o]&&n===r)&&this.raise(Et.IncompatibleModifiers,e,{modifiers:[r,o]})};for(;;){const{startLoc:e}=this.state,l=this.tsParseModifier(n.concat(null!=r?r:[]),o);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):wt(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(i,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 o=[];let i=-1;for(;!this.tsIsListTerminator(e);){i=-1;const r=t();if(null==r)return;if(o.push(r),!this.eat(12)){if(this.tsIsListTerminator(e))break;return void(n&&this.expect(12))}i=this.state.lastTokStartLoc.index}return r&&(r.value=i),o}tsParseBracketedList(e,t,n,r,o){r||(n?this.expect(0):this.expect(47));const i=this.tsParseDelimitedList(e,t,o);return n?this.expect(3):this.expect(48),i}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 o="parameters",i="typeAnnotation";if("get"===r.kind)r[o].length>0&&(this.raise(b.BadGetterArity,this.state.curPosition()),this.isThisParam(r[o][0])&&this.raise(Et.AccesorCannotDeclareThisParameter,this.state.curPosition()));else if("set"===r.kind){if(1!==r[o].length)this.raise(b.BadSetterArity,this.state.curPosition());else{const e=r[o][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[i]&&this.raise(Et.SetAccesorCannotHaveReturnType,r[i])}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,o,i;const s=K(this.state.type)?this.lookaheadCharCode():null;if(58===s)n=!0,o=!1,r=this.parseIdentifier(!0),this.expect(14),i=this.tsParseType();else if(63===s){o=!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),i=this.tsParseType()):(n=!1,i=s,this.expect(17))}else i=this.tsParseType(),o=this.eat(17),n=this.eat(14);if(n){let e;r?(e=this.startNodeAtNode(r),e.optional=o,e.label=r,e.elementType=i,this.eat(17)&&(e.optional=!0,this.raise(Et.TupleOptionalAfterType,this.state.lastTokStartLoc))):(e=this.startNodeAtNode(i),e.optional=o,this.raise(Et.InvalidTupleMemberLabel,i),e.label=i,e.elementType=this.tsParseType()),i=this.finishNode(e,"TSNamedTupleMember")}else if(o){const e=this.startNodeAtNode(i);e.typeAnnotation=i,i=this.finishNode(e,"TSOptionalType")}if(t){const t=this.startNodeAt(e);t.typeAnnotation=i,i=this.finishNode(t,"TSRestType")}return i}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(),o=this.eat(n),i=[];do{i.push(t())}while(this.eat(n));return 1!==i.length||o?(r.types=i,this.finishNode(r,e)):i[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 o=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!o)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 i=this.tsParseTypeAnnotation(!1);return n.parameterName=o,n.typeAnnotation=i,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()!==S.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 o=r.accessibility,i=r.override,s=r.readonly;4&e||!(o||s||i)||this.raise(Et.UnexpectedParameterModifier,n);const a=this.parseMaybeDefault();this.parseAssignableListItemTypes(a,e);const l=this.parseMaybeDefault(a.loc.start,a);if(o||s||i){const e=this.startNodeAt(n);return t.length&&(e.decorators=t),o&&(e.accessibility=o),s&&(e.readonly=s),i&&(e.override=i),"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 o=super.parseArrayLike(e,t,n,r);return"ArrayExpression"===o.type&&this.tsCheckForInvalidTypeCasts(o.elements),o}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 o=!1;if(this.match(18)&&60===this.lookaheadCharCode()){if(n)return r.stop=!0,e;r.optionalChainMember=o=!0,this.next()}if(this.match(47)||this.match(51)){let i;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(o&&!this.match(10))return void(i=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=o),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(i&&this.unexpected(i,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 o=this.startNodeAt(t);return o.expression=e,o.typeAnnotation=this.tsInType((()=>(this.next(),this.match(75)?(r&&this.raise(b.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType()))),this.finishNode(o,r?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(o,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,o=super.parseVarStatement(e,t,n||r);if(!r)return o;for(const{id:e,init:n}of o.declarations)n&&("const"!==t||e.typeAnnotation?this.raise(Et.InitializerNotAllowedInAmbientContext,n):Tt(n,this.hasPlugin("estree"))||this.raise(Et.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference,n));return o}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 o=()=>{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(o):o()}parseClassMemberWithIsStatic(e,t,n,r){const o=this.tsTryParseIndexSignature(t);if(o)return e.body.push(o),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 o=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);o&&(e.typeParameters=o)}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,o,i){const s=this.tsTryParseTypeParameters(this.tsParseConstModifier);s&&o&&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,o,i)}pushClassPrivateMethod(e,t,n,r){const o=this.tsTryParseTypeParameters(this.tsParseConstModifier);o&&(t.typeParameters=o),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,o,i,s){const a=this.tsTryParseTypeParameters(this.tsParseConstModifier);return a&&(e.typeParameters=a),super.parseObjPropValue(e,t,n,r,o,i,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,o,i,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!==S.j_oTag&&r!==S.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,o;u=this.tsParseTypeParameters(this.tsParseConstModifier);const i=super.parseMaybeAssign(e,t);return("ArrowFunctionExpression"!==i.type||null!=(r=i.extra)&&r.parenthesized)&&n(),0!==(null==(o=u)?void 0:o.params.length)&&this.resetStartLocationFromNode(i,u),i.typeParameters=u,i}),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!=(o=c)&&o.node)return this.state=c.failState,c.node;throw(null==(i=l)?void 0:i.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]},o=e,Object.hasOwnProperty.call(r,o)&&r[o]||super.isValidLVal(e,t,n);var r,o}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,o,i,s){const a=super.parseMethod(e,t,n,r,o,i,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,o){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",o=t?"local":"exported";let i,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,i=t?this.parseIdentifier():this.parseModuleExportName(),l=!1):(i=n,l=!1)}else K(this.state.type)?(l=!1,i=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[o]=i,e[t?"importKind":"exportKind"]=a?"type":"value",l&&this.eatContextual(93)&&(e[o]=t?this.parseIdentifier():this.parseModuleExportName()),e[o]||(e[o]=it(e[r])),t&&this.checkIdentifier(e[o],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 o=this.state.strict,i=this.parsePlaceholder("Identifier");if(i){if(!(this.match(81)||this.match(144)||this.match(5))){if(n||!t)return e.id=null,e.body=this.finishPlaceholder(i,"ClassBody"),this.finishNode(e,r);throw this.raise(Ot.ClassNameIsRequired,this.state.startLoc)}e.id=i}else this.parseClassId(e,t,n);return super.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!e.superClass,o),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 o=e.key;if("__proto__"===("Identifier"===o.type?o.name:o.value)){if(t)return void this.raise(b.RecordNoProto,o);n.used&&(r?null===r.doubleProtoLoc&&(r.doubleProtoLoc=o.loc.start):this.raise(b.DuplicateProto,o)),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:o}=this.state;(10===o||W(o))&&(this.state.potentialArrowAt=this.state.start);let i=this.parseMaybeConditional(e);if(t&&(i=t.call(this,i,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(i,!0),t.left=i;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=i;return this.next(),t.right=this.parseMaybeAssign(),this.checkLVal(i,{in:this.finishNode(t,"AssignmentExpression")}),t}var s;return r&&this.checkExpressionErrors(e,!0),i}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((o=r)>=39&&o<=59&&(this.prodParam.hasIn||!this.match(58))){let o=Y(r);if(o>n){if(39===r){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,t)}const i=this.startNodeAt(t);i.left=e,i.operator=this.state.value;const s=41===r||42===r,a=40===r;if(a&&(o=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);i.right=this.parseExprOpRightExpr(r,o);const l=this.finishNode(i,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 o;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 o=this.match(34),i=this.startNode();if(s=this.state.type,F[s]){i.operator=this.state.value,i.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");const n=this.match(89);if(this.next(),i.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&n){const e=i.argument;"Identifier"===e.type?this.raise(b.StrictDelete,i):this.hasPropertyAsPrivateName(e)&&this.raise(b.DeletePrivateField,i)}if(!o)return t||this.checkExponentialAfterUnary(i),this.finishNode(i,"UnaryExpression")}var s;const a=this.parseUpdate(i,o,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 o=this.parseExprSubscripts(n);if(this.checkExpressionErrors(n,!1))return o;for(;34===this.state.type&&!this.canInsertSemicolon();){const e=this.startNodeAt(r);e.operator=this.state.value,e.prefix=!1,e.argument=o,this.next(),this.checkLVal(o,{in:o=this.finishNode(e,"UpdateExpression")})}return o}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:o}=this.state;if(!n&&15===o)return this.parseBind(e,t,n,r);if(J(o))return this.parseTaggedTemplateExpression(e,t,r);let i=!1;if(18===o){if(n&&(this.raise(b.OptionalChainingNoNew,this.state.startLoc),40===this.lookaheadCharCode()))return r.stop=!0,e;r.optionalChainMember=i=!0,this.next()}if(!n&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,t,r,i);{const n=this.eat(0);return n||i||this.eat(16)?this.parseMember(e,t,r,n,i):(r.stop=!0,e)}}parseMember(e,t,n,r,o){const i=this.startNodeAt(t);return i.object=e,i.computed=r,r?(i.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),i.property=this.parsePrivateName()):i.property=this.parseIdentifier(!0),n.optionalChainMember?(i.optional=o,this.finishNode(i,"OptionalMemberExpression")):this.finishNode(i,"MemberExpression")}parseBind(e,t,n,r){const o=this.startNodeAt(t);return o.object=e,this.next(),o.callee=this.parseNoCallExpr(),r.stop=!0,this.parseSubscripts(this.finishNode(o,"BindExpression"),t,n)}parseCoverCallAndAsyncArrowHead(e,t,n,r){const o=this.state.maybeInArrowParameters;let i=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)),i=new nt),l&&(s.optional=r),s.arguments=r?this.parseCallExpressionArguments(11):this.parseCallExpressionArguments(11,"Import"===e.type,"Super"!==e.type,s,i);let c=this.finishCallExpression(s,l);return a&&this.shouldParseAsyncArrow()&&!r?(n.stop=!0,this.checkDestructuringPrivate(i),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),c=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),c)):(a&&(this.checkExpressionErrors(i,!0),this.expressionScope.exit()),this.toReferencedArguments(c)),this.state.maybeInArrowParameters=o,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,o){const i=[];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}i.push(this.parseExprListItem(!1,o,n))}return this.state.inFSharpPipelineDirectBody=a,i}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&&we(e,t.innerComments),t.callee.trailingComments&&we(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,o=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;const i=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=o;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(i),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:o}=this.state,i=t+1,a=this.startNodeAt(s(n,1));null===o&&(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(i,u).replace(/\r\n?/g,"\n"),cooked:null===o?null:o.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 o=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const i=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 o;t?o=this.parseBindingProperty():(o=this.parsePropertyDefinition(r),this.checkProto(o,n,i,r)),n&&!this.isObjectProperty(o)&&"SpreadElement"!==o.type&&this.raise(b.InvalidRecordProperty,o),o.shorthand&&this.addExtra(o,"shorthand",!0),a.properties.push(o)}this.next(),this.state.inFSharpPipelineDirectBody=o;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,o=!1,i=!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()||(o=!0,this.resetPreviousNodeTrailingComments(l),s=this.eat(55),this.parsePropertyName(n)),"get"!==e&&"set"!==e||(i=!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,o,!1,i,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,o){if(o){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,it(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,it(e.key))}else e.value=it(e.key);return e.shorthand=!0,this.finishNode(e,"ObjectProperty")}}parseObjPropValue(e,t,n,r,o,i,s){const a=this.parseObjectMethod(e,n,r,o,i)||this.parseObjectProperty(e,t,o,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 o;if(K(n))o=this.parseIdentifier(!0);else switch(n){case 134:o=this.parseNumericLiteral(r);break;case 133:o=this.parseStringLiteral(r);break;case 135:o=this.parseBigIntLiteral(r);break;case 136:o=this.parseDecimalLiteral(r);break;case 138:{const e=this.state.startLoc;null!=t?null===t.privateKeyLoc&&(t.privateKeyLoc=e):this.raise(b.UnexpectedPrivateField,e),o=this.parsePrivateName();break}default:this.unexpected()}e.key=o,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,o,i){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)|(o?32:0)),this.prodParam.enter(et(n,e.generator)),this.parseFunctionParams(e,r);const a=this.parseFunctionBodyAndFinish(e,i,!0);return this.prodParam.exit(),this.scope.exit(),a}parseArrayLike(e,t,n,r){n&&this.expectPlugin("recordAndTuple");const o=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const i=this.startNode();return this.next(),i.elements=this.parseExprList(e,!n,r,i),this.state.inFSharpPipelineDirectBody=o,this.finishNode(i,n?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,t,n,r){this.scope.enter(6);let o=et(n,!1);!this.match(5)&&this.prodParam.hasIn&&(o|=8),this.prodParam.enter(o),this.initFunction(e,n);const i=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=i,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,o=this.state.labels;this.state.labels=[],this.prodParam.enter(4|this.prodParam.currentFlags()),e.body=this.parseBlock(!0,!1,(o=>{const i=!this.isSimpleParamList(e.params);o&&i&&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||i),t,s),this.state.strict&&e.id&&this.checkIdentifier(e.id,65,s)})),this.prodParam.exit(),this.state.labels=o}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 o=!t&&new Set,i={type:"FormalParameters"};for(const t of e.params)this.checkLVal(t,{in:i,binding:5,checkClashes:o,strictModeChanged:r})}parseExprList(e,t,n,r){const o=[];let i=!0;for(;!this.eat(e);){if(i)i=!1;else if(this.expect(12),this.match(e)){r&&this.addTrailingCommaExtraToNode(r),this.next();break}o.push(this.parseExprListItem(t,n))}return o}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 o=r<=92;return e?o&&this.replaceToken(132):this.checkReservedWord(t,n,o,!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 Bt={kind:1},qt={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:o}=r;if("number"==typeof o){if(138===o){const{loc:t,start:o,value:i,end:a}=r,l=o+1,c=s(t.start,1);e.splice(n,1,new Ke({type:Z(27),value:"#",start:o,end:l,startLoc:t.start,endLoc:c}),new Ke({type:Z(132),value:i,start:l,end:a,startLoc:c,endLoc:t.end})),n++;continue}if(J(o)){const{loc:i,start:a,value:l,end:c}=r,u=a+1,p=s(i.start,1);let f,d,h,m,y;f=96===t.charCodeAt(a)?new Ke({type:Z(22),value:"`",start:a,end:u,startLoc:i.start,endLoc:p}):new Ke({type:Z(8),value:"}",start:a,end:u,startLoc:i.start,endLoc:p}),24===o?(h=c-1,m=s(i.end,-1),d=null===l?null:l.slice(1,-1),y=new Ke({type:Z(22),value:"`",start:h,end:c,startLoc:m,endLoc:i.end})):(h=c-2,m=s(i.end,-2),d=null===l?null:l.slice(1,-2),y=new Ke({type:Z(23),value:"${",start:h,end:c,startLoc:m,endLoc:i.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(o)}}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,o=this.input.slice(n.start,n.end),i=n.value=o.slice(1,-1);return this.addExtra(n,"raw",o),this.addExtra(n,"rawValue",i),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(),o=!!(2&e),i=!!(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 i||this.raise(this.state.strict?b.StrictFunction:this.options.annexB?b.SloppyFunctionAnnexB:b.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(r,!1,!o&&i);case 80:return o||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()?o||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):o||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(!o&&this.hasFollowingLineBreak())break;if(!this.chStartsBindingIdentifier(t,e)&&123!==t)break}}case 75:o||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 o||this.raise(b.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(r,!0,!o&&i)}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(Bt),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(Bt);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(),o=r||this.isContextual(107)&&this.startsUsingForOf(),i=n&&this.hasFollowingBindingAtom()||o;if(this.match(74)||this.match(75)||i){const n=this.startNode();let i;r?(i="await using",this.isAwaitAllowed()||this.raise(b.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):i=this.state.value,this.next(),this.parseVar(n,!0,i);const s=this.finishNode(n,"VariableDeclaration"),a=this.match(58);return a&&o&&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),o=new nt,i=this.parseExpression(!0,o),s=this.isContextual(102);if(s&&(n&&this.raise(b.ForOfLet,i),null===t&&r&&"Identifier"===i.type&&this.raise(b.ForOfAsync,i)),s||this.match(58)){this.checkDestructuringPrivate(o),this.toAssignable(i,!0);const n=s?"ForOfStatement":"ForInStatement";return this.checkLVal(i,{in:{type:n}}),this.parseForIn(e,i,t)}return this.checkExpressionErrors(o,!0),null!==t&&this.unexpected(t),this.parseFor(e,i)}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(qt),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(Bt),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 o=(i=this.state.type)>=90&&i<=92?1:this.match(71)?2:null;var i;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=o}return this.state.labels.push({name:t,kind:o,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,o){const i=e.body=[],s=e.directives=[];this.parseBlockOrModuleBlockBody(i,t?s:void 0,n,r,o)}parseBlockOrModuleBlockBody(e,t,n,r,o){const i=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==o||o.call(this,s),i||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 o=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"})),o.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),o=r&&!(4&t),i=!!(8&t);this.initFunction(e,i),this.match(55)&&(n&&this.raise(b.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),r&&(e.id=this.parseFunctionId(o));const s=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(et(i,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 o=this.startNode();if(o.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(o,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(o,"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 o=t,i=t,s=t,a=t,l=t,c=o,u=o;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,i,!0,!1):(this.isNonstaticConstructor(o)&&this.raise(b.ConstructorIsGenerator,o.key),void this.pushClassMethod(e,o,!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,i,!1,!1);const r=this.isNonstaticConstructor(o);let s=!1;r&&(o.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,o,!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,i,t,!0):(this.isNonstaticConstructor(o)&&this.raise(b.ConstructorIsAsync,o.key),this.pushClassMethod(e,o,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(o),t?this.pushClassPrivateMethod(e,i,!1,!1):(this.isNonstaticConstructor(o)&&this.raise(b.ConstructorIsAccessor,o.key),this.pushClassMethod(e,o,!1,!1,!1,!1)),this.checkGetterSetterParams(o)}}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 o=t.body=[];this.parseBlockOrModuleBlockBody(o,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,o,i){e.body.push(this.parseMethod(t,n,r,o,i,"ClassMethod",!0))}pushClassPrivateMethod(e,t,n,r){const o=this.parseMethod(t,n,r,!1,!1,"ClassPrivateMethod",!0);e.body.push(o);const i="get"===o.kind?o.static?6:2:"set"===o.kind?o.static?5:1:0;this.declareClassPrivateMethodInScope(o,i)}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),o=!r||this.eat(12),i=o&&this.eatExportStar(e),s=i&&this.maybeParseExportNamespaceSpecifier(e),a=o&&(!s||this.eat(12)),l=r||i;if(i&&!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&&o&&!i&&!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 o;if(t)if(n){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){var i;const t=e.declaration;"Identifier"!==t.type||"from"!==t.name||t.end-t.start!=4||null!=(i=t.extra)&&i.parenthesized||this.raise(b.ExportDefaultFromAsIdentifier,t)}}else if(null!=(o=e.specifiers)&&o.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),o=this.match(133),i=this.startNode();i.local=this.parseModuleExportName(),t.push(this.parseExportSpecifier(i,o,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:o,range:i,extra:s}=e;if("Placeholder"===t)return function(e){return it(e)}(e);const a=Object.create(ot);return a.type=t,a.start=n,a.end=r,a.loc=o,a.range=i,void 0!==e.raw?a.raw=e.raw:a.extra=s,a.value=e.value,a}(e.local):e.exported||(e.exported=it(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),o=this.isContextual(130);n.imported=this.parseModuleExportName();const i=this.parseImportSpecifier(n,r,"type"===e.importKind||"typeof"===e.importKind,o,void 0);e.specifiers.push(i)}}parseImportSpecifier(e,t,n,r,o){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=it(n))}return this.finishImportSpecifier(e,"ImportSpecifier",o)}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(!Nt.includes(t)){const e=Nt.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")&&!jt.includes(kt(e,"recordAndTuple","syntaxType")))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+jt.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 o=SyntaxError,i=Function,s=TypeError,a=function(e){try{return i('"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%":i,"%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%":o,"%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 o=e("%AsyncGenerator%");o&&d&&(n=d(o.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),w=_.call(Function.apply,Array.prototype.splice),S=_.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 i=y[r];if(i===h&&(i=v(r)),void 0===i&&!t)throw new s("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new o("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 o("`%` 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 o("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var r=[];return S(e,P,(function(e,t,n,o){r[r.length]=n?S(o,O,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",i=C("%"+r+"%",t),a=i.name,c=i.value,u=!1,p=i.alias;p&&(r=p[0],w(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 o("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),o=n(47),i=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),w=n(77),S=n(129),T=n(130),A=n(78),P=n(79),O=n(131),C=n(265),k=n(50),I=n(8),N=n(51),j=n(268),D=n(269),M=n(270),L=n(271),R=n(272),B=n(80),q=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:w,eq:S,neq:T,gte:A,lte:P,cmp:O,coerce:C,Comparator:k,Range:I,satisfies:N,toComparators:j,maxSatisfying:D,minSatisfying:M,minVersion:L,validRange:R,outside:B,gtr:q,ltr:F,intersects:U,simplifyRange:V,subset:$,SemVer:i,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:o.SEMVER_SPEC_VERSION,RELEASE_TYPES:o.RELEASE_TYPES,compareIdentifiers:s.compareIdentifiers,rcompareIdentifiers:s.rcompareIdentifiers}},(e,t,n)=>{let r,o,i,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),o=0;o<n;o++)r[o]=arguments[o];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),o=1;o<t;o++)r[o-1]=arguments[o];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),o=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let e of o)this.proxyOf.nodes.splice(r+1,0,e);for(let e in this.indexes)n=this.indexes[e],r<n&&(this.indexes[e]=n+o.length);return this.markDirty(),this}insertBefore(e,t){let n,r=this.index(e),o=0===r&&"prepend",i=this.normalize(t,this.proxyOf.nodes[r],o).reverse();r=this.index(e);for(let e of i)this.proxyOf.nodes.splice(r,0,e);for(let e in this.indexes)n=this.indexes[e],r<=n&&(this.indexes[e]=n+i.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 o(e)];else if(e.name)e=[new i(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=>{o=e},h.registerAtRule=e=>{i=e},h.registerRoot=e=>{s=e},e.exports=h,h.default=h,h.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,i.prototype):"rule"===e.type?Object.setPrototypeOf(e,o.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 o(e){return o="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},o(e)}var i,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);i=e.isDeepEqual,s=e.isDeepStrictEqual}new Map;var x=!1,w=e.exports=P,S={};function T(e){if(e.message instanceof Error)throw e.message;throw new d(e)}function A(e,t,n,r){if(!n){var o=!1;if(0===t)o=!0,r="No value argument passed to `assert.ok()`";else if(r instanceof Error)throw r;var i=new d({actual:n,expected:!0,message:r,operator:"==",stackStartFn:e});throw i.generatedMessage=o,i}}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))}w.fail=function e(t,n,o,i,s){var a,l=arguments.length;if(0===l?a="Failed":1===l?(o=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&&(i="!=")),o instanceof Error)throw o;var c={actual:t,expected:n,operator:void 0===i?"fail":i,stackStartFn:s||e};void 0!==o&&(c.message=o);var u=new d(c);throw a&&(u.message=a,u.generatedMessage=!0),u},w.AssertionError=d,w.ok=P,w.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})},w.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})},w.deepEqual=function e(t,n,r){if(arguments.length<2)throw new f("actual","expected");void 0===i&&E(),i(t,n)||T({actual:t,expected:n,message:r,operator:"deepEqual",stackStartFn:e})},w.notDeepEqual=function e(t,n,r){if(arguments.length<2)throw new f("actual","expected");void 0===i&&E(),i(t,n)&&T({actual:t,expected:n,message:r,operator:"notDeepEqual",stackStartFn:e})},w.deepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new f("actual","expected");void 0===i&&E(),s(t,n)||T({actual:t,expected:n,message:r,operator:"deepStrictEqual",stackStartFn:e})},w.notDeepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new f("actual","expected");void 0===i&&E(),s(t,n)&&T({actual:t,expected:n,message:r,operator:"notDeepStrictEqual",stackStartFn:e})},w.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})},w.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 o=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])?o[e]=r[e]:o[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"!==o(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===i&&E(),l.forEach((function(o){"string"==typeof e[o]&&g(t[o])&&_(t[o],e[o])||function(e,t,n,r,o,i){if(!(n in e)||!s(e[n],t[n])){if(!r){var a=new O(e,o),l=new O(t,o,e),c=new d({actual:a,expected:l,operator:"deepStrictEqual",stackStartFn:i});throw c.actual=e,c.expected=t,c.operator=i.name,c}T({actual:e,expected:t,message:r,operator:i.name,stackStartFn:i})}}(e,t,o,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 S}function I(e){return y(e)||null!==e&&"object"===o(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function N(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 S})).catch((function(e){return e}))}))}function j(e,t,n,r){if("string"==typeof n){if(4===arguments.length)throw new c("error",["Object","Error","Function","RegExp"],n);if("object"===o(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"!==o(n)&&"function"!=typeof n)throw new c("error",["Object","Error","Function","RegExp"],n);if(t===S){var i="";n&&n.name&&(i+=" (".concat(n.name,")")),i+=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(i),stackStartFn:e})}if(n&&!C(t,n,r,e))throw t}function D(e,t,n,r){if(t!==S){if("string"==typeof n&&(r=n,n=void 0),!n||C(t,n)){var o=r?": ".concat(r):".",i="doesNotReject"===e.name?"rejection":"exception";T({actual:t,expected:n,operator:e.name,message:"Got unwanted ".concat(i).concat(o,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function M(e,t,n,r,i){if(!g(t))throw new c("regexp","RegExp",t);var s="match"===i;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(o(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:i,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))}w.throws=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];j.apply(void 0,[e,k(t)].concat(r))},w.rejects=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return N(t).then((function(t){return j.apply(void 0,[e,t].concat(r))}))},w.doesNotThrow=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];D.apply(void 0,[e,k(t)].concat(r))},w.doesNotReject=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return N(t).then((function(t){return D.apply(void 0,[e,t].concat(r))}))},w.ifError=function e(t){if(null!=t){var n="ifError got unwanted exception: ";"object"===o(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}),i=t.stack;if("string"==typeof i){var s=i.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}},w.match=function e(t,n,r){M(t,n,r,e,"match")},w.doesNotMatch=function e(t,n,r){M(t,n,r,e,"doesNotMatch")},w.strict=v(L,w,{equal:w.strictEqual,deepEqual:w.deepStrictEqual,notEqual:w.notStrictEqual,notDeepEqual:w.notDeepStrictEqual}),w.strict.strict=w.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=[">","<",">=","<="]),o=t.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],i=t.COMPARISON_BINARY_OPERATORS=[...o,"in","instanceof"],s=t.BOOLEAN_BINARY_OPERATORS=[...i,...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),o=n(2);const i=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,o.isIdentifier)(e))u.name=e.name,i(e,"optional")&&"boolean"==typeof e.optional&&(u.optional=e.optional),i(e,"typeAnnotation")&&(u.typeAnnotation=t?a(e.typeAnnotation,!0,n,s):e.typeAnnotation);else{if(!i(r.NODE_FIELDS,l))throw new Error(`Unknown node type: "${l}"`);for(const p of Object.keys(r.NODE_FIELDS[l]))i(e,p)&&(u[p]=t?(0,o.isFile)(e)&&"comments"===p?c(e.comments,t,n,s):a(e[p],!0,n,s):e[p])}return i(e,"loc")&&(u.loc=n?null:e.loc),i(e,"leadingComments")&&(u.leadingComments=c(e.leadingComments,t,n,s)),i(e,"innerComments")&&(u.innerComments=c(e.innerComments,t,n,s)),i(e,"trailingComments")&&(u.trailingComments=c(e.trailingComments,t,n,s)),i(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:o,value:i,loc:s}=e,a={type:o,value:i,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),o=n(61),i=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:w}=a,S=o("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:o,listKey:i,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=o[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,o,i,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,i.default)(this.node,e,this.scope,t,this)}set(e,t){w(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){S.enabled&&S(`${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),o=n(63),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(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),o=n(418),i="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 o=r.write(e,t);return o!==n&&(r=r.slice(0,o)),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 o=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(o)return o;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 o=!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(o)return r?-1:z(e).length;t=(""+t).toLowerCase(),o=!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,o){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=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)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,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,o){let i,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(o){let r=-1;for(i=n;i<a;i++)if(c(e,i)===c(t,-1===r?0:i-r)){if(-1===r&&(r=i),i-r+1===l)return r*s}else-1!==r&&(i-=i-r),r=-1}else for(n+l>a&&(n=a-l),i=n;i>=0;i--){let n=!0;for(let r=0;r<l;r++)if(c(e,i+r)!==c(t,r)){n=!1;break}if(n)return i}return-1}function _(e,t,n,r){n=Number(n)||0;const o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;const i=t.length;let s;for(r>i/2&&(r=i/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 w(e,t,n,r){return G(H(t),e,n,r)}function S(e,t,n,r){return G(function(e,t){let n,r,o;const i=[];for(let s=0;s<e.length&&!((t-=2)<0);++s)n=e.charCodeAt(s),r=n>>8,o=n%256,i.push(o),i.push(r);return i}(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 o=t;for(;o<n;){const t=e[o];let i=null,s=t>239?4:t>223?3:t>191?2:1;if(o+s<=n){let n,r,a,l;switch(s){case 1:t<128&&(i=t);break;case 2:n=e[o+1],128==(192&n)&&(l=(31&t)<<6|63&n,l>127&&(i=l));break;case 3:n=e[o+1],r=e[o+2],128==(192&n)&&128==(192&r)&&(l=(15&t)<<12|(63&n)<<6|63&r,l>2047&&(l<55296||l>57343)&&(i=l));break;case 4:n=e[o+1],r=e[o+2],a=e[o+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&&(i=l))}}null===i?(i=65533,s=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|1023&i),r.push(i),o+=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 o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];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 o=0;for(n=0;n<e.length;++n){let t=e[n];if(Q(t,Uint8Array))o+t.length>r.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(r,o)):Uint8Array.prototype.set.call(r,t,o);else{if(!l.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,o)}o+=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+">"},i&&(l.prototype[i]=l.prototype.inspect),l.prototype.compare=function(e,t,n,r,o){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===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;let i=(o>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0);const a=Math.min(i,s),c=this.slice(r,o),u=e.slice(t,n);for(let e=0;e<a;++e)if(c[e]!==u[e]){i=c[e],s=u[e];break}return i<s?-1:s<i?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 o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let i=!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 w(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!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 o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function C(e,t,n){let r="";n=Math.min(e.length,n);for(let o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function k(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let o="";for(let r=t;r<n;++r)o+=Y[e[r]];return o}function I(e,t,n){const r=e.slice(t,n);let o="";for(let e=0;e<r.length-1;e+=2)o+=String.fromCharCode(r[e]+256*r[e+1]);return o}function N(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 j(e,t,n,r,o,i){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)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,o){V(t,r,o,e,n,7);let i=Number(t&BigInt(4294967295));e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i;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,o){V(t,r,o,e,n,7);let i=Number(t&BigInt(4294967295));e[n+7]=i,i>>=8,e[n+6]=i,i>>=8,e[n+5]=i,i>>=8,e[n+4]=i;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,o,i){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,i){return t=+t,n>>>=0,i||L(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function B(e,t,n,r,i){return t=+t,n>>>=0,i||L(e,0,n,8),o.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||N(e,t,this.length);let r=this[e],o=1,i=0;for(;++i<t&&(o*=256);)r+=this[e+i]*o;return r},l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);let r=this[e+--t],o=1;for(;t>0&&(o*=256);)r+=this[e+--t]*o;return r},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||N(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||N(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||N(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||N(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||N(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,o=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(o)<<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],o=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(o)})),l.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);let r=this[e],o=1,i=0;for(;++i<t&&(o*=256);)r+=this[e+i]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);let r=t,o=1,i=this[e+--r];for(;r>0&&(o*=256);)i+=this[e+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},l.prototype.readInt8=function(e,t){return e>>>=0,t||N(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||N(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||N(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||N(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||N(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||N(e,4,this.length),o.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||N(e,4,this.length),o.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||N(e,8,this.length),o.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||N(e,8,this.length),o.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||j(this,e,t,n,Math.pow(2,8*n)-1,0);let o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||j(this,e,t,n,Math.pow(2,8*n)-1,0);let o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||j(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||j(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||j(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||j(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||j(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);j(this,e,t,n,r-1,-r)}let o=0,i=1,s=0;for(this[t]=255&e;++o<n&&(i*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/i|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);j(this,e,t,n,r-1,-r)}let o=n-1,i=1,s=0;for(this[t+o]=255&e;--o>=0&&(i*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/i|0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||j(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||j(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||j(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||j(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||j(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 B(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return B(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 o=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),o},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 o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{const i=l.isBuffer(e)?e:l.from(e,r),s=i.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=i[o%s]}return this};const q={};function F(e,t,n){q[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,o,i){if(e>n||e<t){const r="bigint"==typeof t?"n":"";let o;throw o=i>3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(i+1)}${r}`:`>= -(2${r} ** ${8*(i+1)-1}${r}) and < 2 ** ${8*(i+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new q.ERR_OUT_OF_RANGE("value",o,e)}!function(e,t,n){$(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||W(t,e.length-(n+1))}(r,o,i)}function $(e,t){if("number"!=typeof e)throw new q.ERR_INVALID_ARG_TYPE(t,"number",e)}function W(e,t,n){if(Math.floor(e)!==e)throw $(e,n),new q.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new q.ERR_BUFFER_OUT_OF_BOUNDS;throw new q.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.`,o=n;return Number.isInteger(n)&&Math.abs(n)>2**32?o=U(String(n)):"bigint"==typeof n&&(o=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(o=U(o)),o+="n"),r+=` It must be ${t}. Received ${o}`,r}),RangeError);const K=/[^+/0-9A-Za-z-_]/g;function z(e,t){let n;t=t||1/0;const r=e.length;let o=null;const i=[];for(let s=0;s<r;++s){if(n=e.charCodeAt(s),n>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.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;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}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 o;for(o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}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 o=0;o<16;++o)t[r+o]=e[n]+e[o]}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),o=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},i=/%[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,o=r.length,s=String(e).replace(i,(function(e){if("%%"===e)return"%";if(n>=o)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<o;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 o=!1;return function(){if(!o){if(r.throwDeprecation)throw new Error(n);r.traceDeprecation,o=!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&&S(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return v(o)||(o=p(e,o,r)),o}var i=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(i)return i;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)),w(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return f(n);if(0===s.length){if(S(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(w(n))return f(n)}var c,u="",E=!1,T=["{","}"];return h(n)&&(E=!0,T=["[","]"]),S(n)&&(u=" [Function"+(n.name?": "+n.name:"")+"]"),_(n)&&(u=" "+RegExp.prototype.toString.call(n)),x(n)&&(u=" "+Date.prototype.toUTCString.call(n)),w(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,o){for(var i=[],s=0,a=t.length;s<a;++s)A(t,String(s))?i.push(d(e,t,n,r,String(s),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(d(e,t,n,r,o,!0))})),i}(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,o,i){var s,a,l;if((l=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?a=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(a=e.stylize("[Setter]","special")),A(r,o)||(s="["+o+"]"),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=i?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(i&&o.match(/^\d+$/))return a;(s=JSON.stringify(""+o)).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 w(e){return E(e)&&("[object Error]"===T(e)||e instanceof Error)}function S(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=w,t.types.isNativeError=w,t.isFunction=S,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})),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push((function(e,r){e?n(e):t(r)}));try{e.apply(this,o)}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,o(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 o=t.pop();if("function"!=typeof o)throw new TypeError("The last argument must be of type Function");var i=this,s=function(){return o.apply(i,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,o(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:o,MAX_LENGTH:i}=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",i],[f,o]],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),o=p++;s(e,o,t),u[e]=o,c[o]=t,a[o]=new RegExp(t,n?"g":void 0),l[o]=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(){o(),i()},t.clearPath=o,t.clearScope=i,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 o=r.get(t);return o||r.set(t,o=new Map),o},t.scope=t.path=void 0;let n=t.path=new WeakMap,r=t.scope=new WeakMap;function o(){t.path=n=new WeakMap}function i(){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 o=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}},o)};var o=n(428),i=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 o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}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,o.shouldHighlight)(n),s=n.forceColor?(null!=a||(a=new i.default.constructor({enabled:!0,level:1})),a):i.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),o=Object.assign({},r,e.end),{linesAbove:i=2,linesBelow:s=3}=n||{},a=r.line,l=r.column,c=o.line,u=o.column;let p=Math.max(a-(i+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,o.default)(e,n):e).split(c,d).slice(f,d).map(((e,t)=>{const r=f+1+t,o=` ${` ${r}`.slice(-y)} |`,i=h[r],s=!h[r+1];if(i){let t="";if(Array.isArray(i)){const r=e.slice(0,Math.max(i[0]-1,0)).replace(/[^\t]/g," "),a=i[1]||1;t=["\n ",u(l.gutter,o.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,o),e.length>0?` ${e}`:"",t].join("")}return` ${u(l.gutter,o)}${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),o=n(433);const i=(0,o.default)(r.smart);t.smart=i;const s=(0,o.default)(r.statement);t.statement=s;const a=(0,o.default)(r.statements);t.statements=a;const l=(0,o.default)(r.expression);t.expression=l;const c=(0,o.default)(r.program);t.program=c;var u=Object.assign(i.bind(void 0),{smart:i,statement:s,statements:a,expression:l,program:c,ast:i.ast});t.default=u},(e,t,n)=>{var r=n(22),o=n(41),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.beginHiddenCallStack=function(e){return o?Object.defineProperty((function(){return c(),e(...arguments)}),"name",{value:s}):e},t.endHiddenCallStack=function(e){return o?Object.defineProperty((function(){return e(...arguments)}),"name",{value:i}):e},t.expectedError=function(e){if(o)return a.add(e),e},t.injectVirtualStackFrame=function(e,t){if(!o)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),o=!!Error.captureStackTrace&&!0===(null==(n=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit"))?void 0:n.writable),i="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=[],o=a.has(t)?"hiding":"unknown";for(let e=0;e<n.length;e++){const a=n[e].getFunctionName();if(a===i)o="hiding";else if(a===s){if("hiding"===o)o="showing",l.has(t)&&r.unshift(...l.get(t));else if("unknown"===o){r=n;break}}else"hiding"!==o&&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,o,i=n(24);class s extends i{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 o,this,e).stringify()}}s.registerLazyResult=e=>{r=e},s.registerProcessor=e=>{o=e},e.exports=s,s.default=s,i.registerRoot(s)},(e,t,n)=>{var r=n(71),o=n(22),i=n(234),s=o("%TypeError%"),a=o("%Function.prototype.apply%"),l=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(l,a),u=o("%Object.defineProperty%",!0),p=o("%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 i(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,o.default)(t.type,e)?void 0===n||(0,r.default)(t,n):!n&&"Placeholder"===t.type&&e in s.FLIPPED_ALIAS_KEYS&&(0,i.default)(t.expectedNode,e))};var r=n(96),o=n(98),i=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),o=n(15),i=n(102),s=n(204),a=n(11),l=r.RegExp,c=l.prototype;o&&a((function(){var e=!0;try{l(".","d")}catch(t){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",o=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in e&&(i.hasIndices="d"),i)o(s,i[s]);return Object.getOwnPropertyDescriptor(c,"flags").get.call(t)!==r||n!==r}))&&i(c,"flags",{configurable:!0,get:s})},(e,t,n)=>{var r=n(5),o=n(116),i=n(29),s=n(67),a=n(113),l=n(112),c=r.Symbol,u=o("wks"),p=l?c.for||c:c&&c.withoutSetter||s;e.exports=function(e){return i(u,e)||(u[e]=a&&i(c,e)?c[e]:p("Symbol."+e)),u[e]}},(e,t,n)=>{var r=n(123),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=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(o=r)||"[object Function]"!==i.call(o)||!r())return;var o;l?a(e,t,n,!0):a(e,t,n)},u=function(e,t){var n=arguments.length>2?arguments[2]:{},i=r(t);o&&(i=s.call(i,Object.getOwnPropertySymbols(t)));for(var a=0;a<i.length;a+=1)c(e,i[a],t[i[a]],n[i[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 o=("object"==typeof r&&r.env,()=>{});e.exports=o},(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 o{static get ANY(){return r}constructor(e,t){if(t=i(t),e instanceof o){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 o))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=i(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=o;const i=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 o 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=o,o.default=o},(e,t,n)=>{let{isClean:r,my:o}=n(145),i=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 o=e[r],i=typeof o;"parent"===r&&"object"===i?t&&(n[r]=t):"source"===r?n[r]=o:Array.isArray(o)?n[r]=o.map((e=>l(e,n))):("object"===i&&null!==o&&(o=l(o)),n[r]=o)}return n}class c{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.raws={},this[r]=!1,this[o]=!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 i(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,o=this.source.start.line;for(let t=0;t<e;t++)"\n"===n[t]?(r=1,o+=1):r+=1;return{column:r,line:o}}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(),o=r.indexOf(e.word);-1!==o&&(t=this.positionInside(o,r),n=this.positionInside(o+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,o=!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?o=!0:o?(this.parent.insertAfter(r,e),r=e):this.parent.insertBefore(r,e);o||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 o=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 i=t.get(r.input);null==i&&(i=o,t.set(r.input,o),o++),n[e]={end:r.end,inputId:i,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 o(e,t){new r(t).stringify(e)}e.exports=o,o.default=o},(e,t,n)=>{let{SourceMapConsumer:r,SourceMapGenerator:o}=n(149),{fileURLToPath:i,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&&o),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,o,i,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);o=e.line,i=e.col}else o=r.line,i=r.column}else if(!n){let e=this.fromOffset(t);t=e.line,n=e.col}let l=this.origin(t,n,o,i);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===o?t:{column:n,line:t},void 0===o?n:{column:i,line:o},this.css,this.file,a.plugin),r.input={column:n,endColumn:i,endLine:o,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,o=e.length;r<o;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,o=n.length-2;for(;r<o;)if(t=r+(o-r>>1),e<n[t])o=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 o,l,c=this.map.consumer(),u=c.originalPositionFor({column:t,line:e});if(!u.source)return!1;"number"==typeof n&&(o=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:o&&o.column,endLine:o&&o.line,line:u.line,url:l.toString()};if("file:"===l.protocol){if(!i)throw new Error("file: protocol is not available in this PostCSS build");p.file=i(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 o extends r{constructor(e){super(e),this.type="comment"}}e.exports=o,o.default=o},(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 o=0;o<e.length;o++){const i=f(e[o]),s=t[o];let a=i;(s||n)&&(a=m(a,s,n)),b(r,a);for(const e of Object.keys(i)){if(v(e))continue;let t=i[e];(s||n)&&(t=m(t,s,n)),b(r[e]||(r[e]={}),t)}}return r},t.verify=d;var r=n(162),o=n(163),i=n(0);const{DEPRECATED_KEYS:s,DEPRECATED_ALIASES:a,FLIPPED_ALIAS_KEYS:l,TYPES:c,__internal__deprecationWarning:u}=i;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 o=r[t];if(null!==o)for(const t of o)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 o of["enter","exit"]){let i=e[o];Array.isArray(i)&&(i=i.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,o,r)),r!==e&&(r.toString=()=>e.toString()),r})),r[o]=i)}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=o[`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:o}=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 o.isKeyword}}),Object.defineProperty(t,"isReservedWord",{enumerable:!0,get:function(){return o.isReservedWord}}),Object.defineProperty(t,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return o.isStrictBindOnlyReservedWord}}),Object.defineProperty(t,"isStrictBindReservedWord",{enumerable:!0,get:function(){return o.isStrictBindReservedWord}}),Object.defineProperty(t,"isStrictReservedWord",{enumerable:!0,get:function(){return o.isStrictReservedWord}});var r=n(353),o=n(354)},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=n(2);function o(e,t,n,i){const s=[].concat(e),a=Object.create(null);for(;s.length;){const e=s.shift();if(!e)continue;if(i&&((0,r.isAssignmentExpression)(e)||(0,r.isUnaryExpression)(e)))continue;const l=o.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}o.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=o(p)));const d=n?t.node:l("var",[c(o(p),t.node)]),h=i(null,[s(o(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=i(null,r);return e.insertAfter(u),e.replaceWith(t.node),e};var r=n(0);const{cloneNode:o,exportNamedDeclaration:i,exportSpecifier:s,identifier:a,variableDeclaration:l,variableDeclarator:c}=r},(e,t,n)=>{var r=n(187),o=Object;e.exports=function(e){return o(r(e))}},(e,t,n)=>{var r=n(5),o=n(106),i="__core-js_shared__",s=r[i]||o(i,{});e.exports=s},(e,t,n)=>{var r=n(20),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not an object")}},(e,t,n)=>{var r=n(104),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},(e,t,n)=>{var r=n(19),o=0,i=Math.random(),s=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++o+i,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 i;const s=[],a=v(t.name);for(const e of t.importsNamespace)e!==t.name&&s.push(o.template.statement`var NAME = SOURCE;`({NAME:e,SOURCE:h(a)}));const l=null!=(i=r(a,t.wrap))?i:a;n&&s.push(...A(e,t,!0,r));for(const n of t.reexportNamespace)s.push((o.types.isIdentifier(l)?o.template.statement`EXPORTS.NAME = NAMESPACE;`:o.template.statement`
2
+ 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_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_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_utils_index_mjs_0bb4f88e__ from"element-plus/es/utils/index.mjs";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__(70846),_rules_rulesDriver__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(9318),_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()}),100)}),{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){if((0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.Ts)(t,"parent",e),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.Ts)(t,"dynamicMapComp",dynamicMapComp),null!=t&&t.dynamicHireRelat_bak&&"operate"!==props.mode){var n;(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.Ts)(t,"dynamicHireRelat",_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7___default()(n="".concat(t.dynamicHireRelat_bak,"__@__")).call(n,props.mode,"__"))}else{var r,o,i=null!=e&&e.dynamicHireRelat?_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7___default()(r=_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7___default()(o="".concat(null==e?void 0:e.dynamicHireRelat)).call(o,(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.$3)(t,"rowIndex")?"[".concat(t.rowIndex,"]"):"","->")).call(r,t.metaCode||""):t.metaCode;(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.Ts)(t,"dynamicHireRelat",i),t.dynamicHireRelat_bak=i}return 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,o,i={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(i,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===(o=props.config)||void 0===o?void 0:o.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,o,i,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===(o=props.config)||void 0===o?void 0:o.metaNameZh:null===(i=props.config)||void 0===i?void 0:i.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:()=>i,Wb:()=>o,_Q:()=>p,aZ:()=>s,dF:()=>c,dL:()=>a,xx:()=>r});var r="/sa-lcp/api/v1/pageConfig/queryPageConfigData",o="/sa-lcp/login",i="/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"},35169:(e,t,n)=>{n.d(t,{dW:()=>B,Wg:()=>F});var r,o,i=n(7252),s=n(53811),a=n(37891),l=n(34963),c=n(39653),u=n(56213),p=n(49859),f=(n(44114),n(94870)),d=n.n(f),h=n(56255),m=n.n(h),y=n(61240),g=n.n(y),v=n(8628),b=n.n(v),_=n(71426),E=n.n(_),x=n(26327),w=n.n(x),S=n(385),T=n.n(S),A=(n(17427),n(16280),n(76918),n(23288),n(26099),n(27495),n(38781),n(25440),n(86226)),P=n.n(A),O=n(11393),C=n.n(O),k=function(){function e(t,n){var r=this;(0,c.A)(this,e),(0,p.A)(this,"context",null),(0,p.A)(this,"msgSdkInstance",null),(0,p.A)(this,"createComponentUUID",(function(e){var t,n="xxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return"".concat(("x"===e?t:3&t|8).toString(16))}));return C()(t="".concat(e,"_")).call(t,n,"_from_message")})),(0,p.A)(this,"getContext",(function(){return r.context})),n&&(this.context=(0,s.A)({subComponents:[]},n)),this.msgSdkInstance=t}return(0,u.A)(e,[{key:"insertComponent",value:function(e,t){var n=this;try{var i;P()(e).call(e,(function(e){var t,r,o=e.getContext();null===(t=o.props)||void 0===t||null===(t=t.customEvents)||void 0===t||P()(t).call(t,(function(e){n.msgSdkInstance.registerComponentCustomEvents((0,s.A)({id:o.id},e)),delete e.func})),null===(r=n.context.subComponents)||void 0===r||r.push(e.getContext())})),null===(i=this.msgSdkInstance)||void 0===i||i.postMessage({type:r.callMethod,methodName:o.insertComponent,methodConfig:t,data:this.context})}catch(e){console.error(e)}}},{key:"changeLayoutMaskStatus",value:function(e){var t;null===(t=this.msgSdkInstance)||void 0===t||t.postMessage({type:r.callMethod,methodName:o.changeLayoutMaskStatus,data:e})}},{key:"changeLayoutAreaStatus",value:function(e){var t;null===(t=this.msgSdkInstance)||void 0===t||t.postMessage({type:r.callMethod,methodName:o.changeLayoutAreaStatus,data:e})}},{key:"createComponent",value:function(t){return t.isContract=!0,t.isCreateByMessage=!0,t.id=t.id?t.id:this.createComponentUUID(t.type),new e(this.msgSdkInstance,t)}}])}(),I="__SEEYON_UDC__";!function(e){e.callMethod="callMethod",e.message="message",e.callEvent="callEvent"}(r||(r={})),function(e){e.ready="ready",e.insertComponent="insertComponent",e.changeLayoutMaskStatus="changeLayoutMaskStatus",e.changeLayoutAreaStatus="changeLayoutAreaStatus"}(o||(o={}));var N=new(function(){return(0,u.A)((function e(){var t=this;(0,c.A)(this,e),(0,p.A)(this,"_identifying",I),(0,p.A)(this,"_nameSpaceId",void 0),(0,p.A)(this,"_is_ready",!1),(0,p.A)(this,"_customEvents",{}),(0,p.A)(this,"_eventListener",(function(e,n){try{var r=e.data;if(!t._msgValidator(r))return;t._readyCallBack(r,n),t._callEvent(r)}catch(e){console.error(e)}})),(0,p.A)(this,"_eventListenerHandler",(function(){})),(0,p.A)(this,"contractComponent",(function(e,n){return new k(t,{type:e,id:null==n?void 0:n.id,isContract:!0})})),(0,p.A)(this,"createComponent",(function(e){return new k(t).createComponent(e)})),(0,p.A)(this,"registerComponentCustomEvents",(function(e){var n=e.id,r=e.type,o=e.func;t._customEvents[n]||(t._customEvents[n]={}),t._customEvents[n][r]=o})),(0,p.A)(this,"_customization",{CMI:{insertBtnForToolbar:function(e){var n=e.position,r=e.btns,o=e.id,i=t.contractComponent("UdcToolBar",{id:o}),s=[];null==r||P()(r).call(r,(function(e){s.push(t.createComponent({type:"UdcButton",props:e}))})),i.insertComponent(s,{position:n})},changeLayoutMaskStatus:function(e){var n=e.status,r=e.bgColor;t.contractComponent("UdcLayoutMask").changeLayoutMaskStatus({status:n,bgColor:r})},changeLayoutAreaStatus:function(e){var n=e.hiddenArea;t.contractComponent("UdcLayoutArea").changeLayoutAreaStatus({hiddenArea:n})}}}),(0,p.A)(this,"getCustomApi",(function(){var e=D.baseInfo.tenant||"CMI",n=t._customization[e];if(n)return n;console.error(e?"该tenant未定制过API":"缺少tenant信息")})),this._nameSpaceId=this._uuid()}),[{key:"_uuid",value:function(){var e="xxx_xxxx_xxxx_yxxx_xxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return"".concat(("x"===e?t:3&t|8).toString(16))}));return"x".concat(e)}},{key:"_msgValidator",value:function(e){return!("[object Object]"!==Object.prototype.toString.call(e)||e._identifying!==I||!r[e.type]||e._nameSpaceId!==this._nameSpaceId)}},{key:"_readyCallBack",value:function(e,t){var n,o,i;null===(n=e.data)||void 0===n||n.signatureMethods,null===(o=e.data)||void 0===o||o.version,e.type!==r.message||"ready"!==(null===(i=e.data)||void 0===i?void 0:i.status)||this._is_ready||(this._is_ready=!0,t&&t(this,{parentRuntimeContext:null,runtimeContext:null}))}},{key:"_registerEventListener",value:function(e){var t=this;this._eventListenerHandler=function(n){t._eventListener(n,e)},window.addEventListener("message",this._eventListenerHandler)}},{key:"_callEvent",value:function(e){var t=this;if(e.type===r.callEvent){var n=e.callEvents;null==n||P()(n).call(n,(function(e){var n,r,o=e.id,i=e.type;null===(n=t._customEvents[o])||void 0===n||null===(r=n[i])||void 0===r||r.call(n)}))}}},{key:"destory",value:function(){window.removeEventListener("message",this._eventListenerHandler)}},{key:"postMessage",value:function(e){(e.type==r.callMethod&&e.methodName==o.ready||this._is_ready)&&window.parent.postMessage((0,s.A)((0,s.A)({},e),{},{_identifying:this._identifying,_nameSpaceId:this._nameSpaceId}),"*")}},{key:"ready",value:function(e){this.postMessage({type:r.callMethod,methodName:o.ready}),this._registerEventListener(e)}}])}()),j={getUdcAppInfo:function(e){throw Error("getUdcAppInfo ONLY work under UDC app")},getUdcPageInParams:function(e){throw Error("getUdcPageInParams ONLY work under UDC app")},getUdcPageInfo:function(e){throw Error("getUdcPageInfo ONLY work under UDC app")},getUdcPageRuntimeVariable:function(e){throw Error("getUdcPageRuntimeVariable ONLY work under UDC app")},getUdcPageSignature:function(e){throw Error("getUdcPageSignature ONLY work under UDC app")},getUdcPageVariables:function(e,t){throw Error("getUdcPageVariables ONLY work under UDC app")},setUdcPageRuntimeVariable:function(e,t){throw Error("setUdcPageRuntimeVariable ONLY work under UDC app")},setUdcPageVariables:function(e,t,n){throw Error("setUdcPageVariables ONLY work under UDC app")},getUdcComponentInfo:function(e){throw Error("getUdcComponentInfo ONLY work under UDC app")},getUdcComponentSignature:function(e){throw Error("getUdcComponentSignature ONLY work under UDC app")},getUdcComponentValue:function(e,t){throw Error("getUdcComponentValue ONLY work under UDC app")},getUdcComponentViewState:function(e,t){throw Error("getUdcComponentViewState ONLY work under UDC app")},setUdcComponentValue:function(e,t,n){throw Error("setUdcComponentValue ONLY work under UDC app")},setUdcComponentViewState:function(e,t,n){throw Error("setUdcComponentViewState ONLY work under UDC app")},getUdcParentComponentInfo:function(e){throw Error("getUdcParentComponentInfo ONLY work under UDC app")},getUdcDataContainerComponentInfo:function(e){throw Error("getUdcDataContainerComponentInfo ONLY work under UDC app")},getComponentValueFromUiModelNode:function(e,t){throw Error("getComponentValueFromUiModelNode ONLY work under UDC app")},setComponentValueFromUiModelNode:function(e,t,n,r){throw Error("setComponentValueFromUiModelNode ONLY work under UDC app")},getUdcSubComponentViewState:function(e){throw Error("getUdcSubComponentViewState ONLY work under UDC app")},setUdcSubComponentViewState:function(e,t){throw Error("setUdcSubComponentViewState ONLY work under UDC app")},getUdcDatasouceMetaInfo:function(e,t){throw Error("getUdcDatasouceMetaInfo ONLY work under UDC app")},queryUdcDatasourceDetail:function(e,t){throw Error("queryUdcDatasourceDetail ONLY work under UDC app")},queryUdcDatasourceList:function(e,t){throw Error("queryUdcDatasourceList ONLY work under UDC app")},queryUdcDatasourceListSummary:function(e,t){throw Error("queryUdcDatasourceListSummary ONLY work under UDC app")},saveUdcDatasourceData:function(e,t){throw Error("saveUdcDatasourceData ONLY work under UDC app")},saveUdcDatasourceListData:function(e,t){throw Error("saveUdcDatasourceListData ONLY work under UDC app")},deleteAndSaveUdcDatasourceData:function(e,t,n){throw Error("deleteAndSaveUdcDatasourceData ONLY work under UDC app")},createUdcDatasourceData:function(e,t){throw Error("createUdcDatasourceData ONLY work under UDC app")},createUdcDatasourceDataFromSelectRows:function(e,t){throw Error("createUdcDatasourceDataFromSelectRows ONLY work under UDC app")},deleteUdcDatasourceData:function(e,t,n){throw Error("deleteUdcDatasourceData ONLY work under UDC app")},getUdcDatasourceData:function(e,t){throw Error("getUdcDatasourceData ONLY work under UDC app")},execParseUdcExpression:function(e,t){throw Error("parseUdcExpression ONLY work under UDC app")},callUdcPresetFunc:function(e,t,n){throw Error("execPresetFunctor ONLY work under UDC app")},callUdcPresetEventAction:function(e,t){throw Error("callUdcPresetEventAction ONLY work under UDC app")},i18n:function(e,t){throw Error("i18n ONLY work under UDC app")},getUdcComponent:function(e,t){throw Error("getUdcComponent ONLY work under UDC app")},getUdcProfile:function(e,t,n){throw Error("getUdcProfile ONLY work under UDC app")},getApiUrlByUdcAppInfo:function(e,t){throw Error("getApiUrlByAppInfo ONLY work under UDC app")},transformCtpEnumCode:function(e,t){throw Error("getApiUrlByAppInfo ONLY work under UDC app")},getUdcSdkForIframe:function(){return N},baseInfo:{tenant:null}},D=j;window.__UDC_OPEN_SDK__||(window.__UDC_OPEN_SDK__={default:j});var M=function(e,t){var n=function(e){var t=window.__UDC_OPEN_SDK__.default;return e in window.__UDC_OPEN_SDK__&&(t=window.__UDC_OPEN_SDK__[e]),t}(e);n.baseInfo=t},L="DRAFT_HANDLE",R="GET_FORM_DATA",B=null,q=function(){return(0,u.A)((function e(t,n,r,o){(0,c.A)(this,e),(0,p.A)(this,"params",{}),(0,p.A)(this,"bpmConfigs",{}),(0,p.A)(this,"eventData",null),(0,p.A)(this,"postOptions",null),(0,p.A)(this,"sdkInstance",null),(0,p.A)(this,"postMessageData",null),(0,p.A)(this,"actions",{}),(0,p.A)(this,"nativeMethods",{}),(0,p.A)(this,"saveResponse",null),this.postMessageData=t,this.actions=n,this.bpmConfigs=r||{},this.params=o||{},this.setNativeMethods(),this.init()}),[{key:"init",value:function(){var e;window.parent!==window&&window.parent.postMessage({hasListener:!0},"*"),window.addEventListener("message",d()(e=this.messageListener).call(e,this))}},{key:"setNativeMethods",value:function(){var e=this,t=this.params,n=t.validate,r=t.dynamicMapComp,o=t.bpmSubmitBtn,i=t.toExecuteLoadServices,s=this.bpmConfigs,c=s.getDetailReq,u=s.customValidate,p=s.saveValidate,f=function(){var t=(0,l.A)((0,a.A)().mark((function t(n){var i,s,c,u;return(0,a.A)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!p||"function"!=typeof p){t.next=6;break}return t.next=3,p();case 3:if(t.sent){t.next=6;break}return t.abrupt("return");case 6:if(!(i=r[o])){t.next=12;break}return s=function(t){return function(){var r=(0,l.A)((0,a.A)().mark((function r(o){var i;return(0,a.A)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=e.bpmConfigs.saveAfter,e.saveResponse=o,r.prev=2,r.next=5,null==i?void 0:i(o,n);case 5:r.next=10;break;case 7:r.prev=7,r.t0=r.catch(2),console.error("saveAfter error, error:",r.t0);case 10:m()((function(){null==t||t(o)}),0);case 11:case"end":return r.stop()}}),r,null,[[2,7]])})));return function(e){return r.apply(this,arguments)}}()},t.abrupt("return",new(g())((function(e){var t;null==i||null===(t=i.vm)||void 0===t||t.click({afterRequestService:s((function(t){e(t)}))})})));case 12:null===(c=messageInstance)||void 0===c||null===(u=c.warning)||void 0===u||u.call(c,"no set bpmSubmitBtn, or bpmSubmitBtn is invalid, at preset, bpmSubmitBtn:",props.bpmSubmitBtn);case 13:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),d=function(){var e=(0,l.A)((0,a.A)().mark((function e(t){return(0,a.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new(g())((function(e){n((function(t){e(t)}))}));case 2:if(e.sent){e.next=5;break}return e.abrupt("return",!1);case 5:if(!u||"function"!=typeof u){e.next=7;break}return e.abrupt("return",u(t));case 7:return e.abrupt("return",!0);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();this.nativeMethods={nativeValidate:n,customValidate:u,validate:d,toSave:f,getDetail:function(){var t=null==c?void 0:c(e.saveResponse);i(!0,!0,{params:t})}}}},{key:"messageListener",value:function(e){console.log("message event===:",e);var t=e.data||{};if(null!=t&&t.isFromBPM){var n=this.postOptions;this.postOptions=null,this.eventData=t,this.handleMessage&&this.handleMessage(e,n)}}},{key:"handleMessage",value:(n=(0,l.A)((0,a.A)().mark((function e(t,n){var r,o,i,s,l,c,u,p,f,d,h,m,y,g,v;return(0,a.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=this.eventData||{},i=o.messageType,s=o.submitType,l=null==o||null===(r=o.bpmInfo)||void 0===r?void 0:r.actionType,console.log("messageType==:",i),console.log("submitType==:",s),console.log("actionType==:",l),R!==i){e.next=24;break}if((p=null===(c=this.actions)||void 0===c||null===(c=c[s])||void 0===c?void 0:c.formAction)||(p=this.getDefaultAction(o)),!p){e.next=15;break}return e.next=12,null===(f=p)||void 0===f?void 0:f({eventData:this.eventData,nativeMethods:this.nativeMethods});case 12:if(!1!==e.sent){e.next=15;break}return e.abrupt("return");case 15:if((d=null===(u=this.actions)||void 0===u||null===(u=u[s])||void 0===u?void 0:u.postMessageData)||(d=this.postMessageData),"function"!=typeof d){e.next=21;break}return e.next=20,d({eventData:this.eventData});case 20:d=e.sent;case 21:this.postMessage(d),e.next=34;break;case 24:if("PROCESS_ACTION_SUCCESS"!==i){e.next=34;break}if(y=!0,y=!b()(h=["PROCESS_SHOW","BACK",L]).call(h,s),(g=null===(m=this.actions)||void 0===m||null===(m=m[s])||void 0===m?void 0:m.successAction)||(g=this.getDefaultAction(o)),!g){e.next=33;break}return e.next=32,null===(v=g)||void 0===v?void 0:v({eventData:this.eventData,originCloseFlag:y,nativeMethods:this.nativeMethods});case 32:y=e.sent;case 33:this.postMessage(null,{closeFlag:!!y});case 34:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"setSaveMessage",value:function(){this.eventData={submitType:"DRAFT_HANDLE",messageType:"GET_FORM_DATA",url:"*"}}},{key:"postMessage",value:(t=(0,l.A)((0,a.A)().mark((function e(){var t,n,r,o,i,l,c,u,p,f=arguments;return(0,a.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=f.length>0&&void 0!==f[0]?f[0]:{},n=f.length>1?f[1]:void 0,console.log("postmessage formData ===:",t,n),this.postOptions=n,(null==n?void 0:n.closeFlag)?(console.log("走进判断关闭页面===="),window.parent!==window&&window.parent.postMessage({messageType:"CLOSE_WINDOW"},"*")):(i=!b()(r=["BACK"]).call(r,null===(o=this.eventData)||void 0===o?void 0:o.submitType),console.log("eventData==:",this.eventData),window.parent!==window&&(p={success:!0,submitType:null===(l=this.eventData)||void 0===l?void 0:l.submitType,messageType:null===(c=this.eventData)||void 0===c?void 0:c.messageType,actionInfo:{preventClose:i},formData:(0,s.A)({},t)},console.log("url==:",this.eventData.url),console.log("postData==:",p),window.parent.postMessage(p,null===(u=this.eventData)||void 0===u?void 0:u.url)));case 6:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"getDefaultAction",value:function(e){var t=this,n=e.messageType,r=e.submitType;if(R===n)switch(r){case"SEND":case"SUBMIT":case"AGREE":return function(){var e=(0,l.A)((0,a.A)().mark((function e(n){var r,o,i,s,l,c;return(0,a.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.nativeMethods,o=r.validate,i=r.toSave,s=r.getDetail,e.next=3,o(n);case 3:if(!e.sent){e.next=16;break}return e.next=7,i(n);case 7:if(null==(c=e.sent)||null===(l=c.data)||void 0===l||!l.success){e.next=13;break}return s(),e.abrupt("return",!0);case 13:case 16:return e.abrupt("return",!1);case 14:e.next=17;break;case 17:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();case"NOTICE":case"GIVE":case L:case"MULTI_COOPERATE":return function(){var e=(0,l.A)((0,a.A)().mark((function e(n){var r,o,i,s,l,c,u;return(0,a.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=null==n||null===(r=n.bpmInfo)||void 0===r?void 0:r.actionType,i=t.nativeMethods,s=i.toSave,l=i.getDetail,o){e.next=14;break}return e.next=5,s(n);case 5:if(null==(u=e.sent)||null===(c=u.data)||void 0===c||!c.success){e.next=11;break}return l(),e.abrupt("return",!0);case 11:return e.abrupt("return",!1);case 12:e.next=15;break;case 14:return e.abrupt("return",!0);case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}}},{key:"on",value:function(e,t){var n=this.actions[e]||(this.actions[e]=[]);E()(n).call(n,(function(e){return e===t}))||null==n||n.push(t)}},{key:"remove",value:function(e,t){var n=this.actions[e]||(this.actions[e]=[]),r=w()(n).call(n,(function(e){return e===t}));-1!==r&&(null==n||T()(n).call(n,r,1))}},{key:"getSdkInstance",value:(e=(0,l.A)((0,a.A)().mark((function e(){var t=this;return(0,a.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("to get sdk===="),!this.sdkInstance){e.next=5;break}return e.abrupt("return",this.sdkInstance);case 5:return e.abrupt("return",new(g())((function(e){var n,r;r=function(n){console.log("instance===:",n),t.sdkInstance=n,e(n)},"iframe"===(n={mode:"iframe",tenant:"CMI"}).mode?(M(n.version,{tenant:n.tenant}),j.getUdcSdkForIframe().ready(r)):console.error("SDK当前仅支持iframe模式")})));case 6:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"changeSlide",value:function(e){this.getSdkInstance().then((function(t){var n;console.log("切换致远弹框===:",!0),null==t||null===(n=t.getCustomApi())||void 0===n||n.changeLayoutAreaStatus({hiddenArea:e?[]:["header","left","right","footer"]})}))}},{key:"insertBtn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3;this.getSdkInstance().then((function(n){var r;console.log("insert btns==:",e,t),null==n||null===(r=n.getCustomApi())||void 0===r||r.insertBtnForToolbar({position:t,btns:e})}))}},{key:"destroy",value:function(){window.removeEventListener("message",this.messageListener),this.sdkInstance=null}}]);var e,t,n}();function F(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return B=(0,i.A)(q,t)}},71143:(e,t,n)=>{n.d(t,{A:()=>f});var r=n(64007),o=n.n(r),i=(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,i.useAttrs)(),r=(0,i.computed)((function(){var e;return"1"==t.config.labelHidden||0==t.config.labelWidth||"0"==t.config.labelWidth?"":(o()(e=t.lang).call(e,"zh")>-1?t.config.metaNameZh:t.config.metaNameEn)||""})),p=(0,i.computed)((function(){return t.config.labelPosition?t.config.labelPosition:"left"}));function f(){var e,n;null===(e=messageInstance)||void 0===e||e.text(o()(n=t.lang).call(n,"zh")>-1?t.config.hintContentZh:t.config.hintContentEn)}return function(e,o){return(0,i.openBlock)(),(0,i.createElementBlock)("cmi-form-item",(0,i.mergeProps)((0,i.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,i.createElementVNode)("div",a,[(0,i.createElementVNode)("div",l,["1"==t.config.requiredFlag?((0,i.openBlock)(),(0,i.createElementBlock)("span",c,"*")):(0,i.createCommentVNode)("v-if",!0),(0,i.createElementVNode)("span",u,(0,i.toDisplayString)(r.value),1),"1"==t.config.hintFlag?((0,i.openBlock)(),(0,i.createElementBlock)("span",{key:1,class:"label-tip",onClick:f},o[0]||(o[0]=[(0,i.createElementVNode)("cmi-icon-question-circle",{size:"14"},null,-1)]))):(0,i.createCommentVNode)("v-if",!0)])]),(0,i.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:()=>i});var r=n(75286),o=n(24691);function i(e){var t=e.showTooltip,n=e.offset,i=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,o.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,o.fW)(f.value,0-n.value);u.value=e<t,h=(0,r.watch)((function(){return i.value}),(function(i){(0,r.nextTick)((function(){t=(0,o.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),o=0;o<n;o++)r[o]=arguments[o];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 o=n||{},s=o.wrapAttrs,a=void 0===s?{}:s,l=o.maintain,d=void 0!==l&&l,h=(0,r.defineComponent)(e);return d&&!t.value?(0,r.createVNode)(h,null,null):(0,r.createVNode)("div",(0,r.mergeProps)({class:"resolver-calc-contrainer"},a),[(0,r.createVNode)("span",{ref:function(e){return f.value=e},class:"resolver-calc-span"},[i.value]),u.value?(0,r.createVNode)((0,r.resolveComponent)("el-tooltip"),{placement:"top",visible:u.value&&!!c.value,content:i.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)(h,v.value,null)])])}}}},44026:(e,t,n)=>{n.d(t,{bt:()=>W});var r=n(37891),o=n(53811),i=n(34963),s=(n(48598),n(44114),n(27495),n(71761),n(73363)),a=n.n(s),l=n(64007),c=n.n(l),u=n(86226),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(56255),E=n.n(_),x=n(61240),w=n.n(x),S=n(36586),T=n.n(S),A=n(12935),P=n(76693),O=n(19022),C=n(157),k=n(17427),I=n(52644),N=n(35169);function j(e){return D.apply(this,arguments)}function D(){return(D=(0,i.A)((0,r.A)().mark((function e(t){var n,o,i,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,o=void 0===n?[]:n,i=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()(o).call(o,(function(e){return"1"==e.serviceType})),E=0;E<o.length;E++)M(o[E],{dynamicMapComp:l,requestTraceId:i,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 M(e,t){return L.apply(this,arguments)}function L(){return L=(0,i.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;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:x=function(){return x=(0,i.A)((0,r.A)().mark((function e(){var n,b,_,x,S,P,O,I,N,j,D,M,L,F,U,V,$,W,K,z,H,G,Q,X,Y,J,Z,ee,te,ne,re,oe,ie=arguments;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return b=!(ie.length>0&&void 0!==ie[0])||ie[0],_=c||{},x=null,S=(0,k.Ho)({extendAttr:t.extendAttr}),P=null,O=null,((I=null==h?void 0:h.beforeRequestService)||g)&&(P=function(){var e=(0,i.A)((0,r.A)().mark((function e(){var t,n,o,i,s=arguments;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=!0,n=s.length,o=new Array(n),i=0;i<n;i++)o[i]=s[i];return g&&(t=null==g?void 0:g.apply(void 0,o)),e.next=5,t;case 5:if(!1!==e.sent){e.next=8;break}return e.abrupt("return",!1);case 8:if(!I){e.next=12;break}return e.abrupt("return",null==I?void 0:I.apply(void 0,o));case 12:return e.abrupt("return",!0);case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()),((N=null==h?void 0:h.afterRequestService)||v)&&(O=function(){var e=(0,i.A)((0,r.A)().mark((function e(){var t,n,o,i=arguments;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,n=new Array(t),o=0;o<t;o++)n[o]=i[o];return e.next=3,null==v?void 0:v.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&&(_=R(t.inParamMappingList||[],{emptyUpdate:!0,dynamicMapComp:s,dynamicMapCompKeys:u,dynamicHireRelat:p}),x=q(t.outParamMappingList,{dynamicMapComp:s,dynamicMapCompKeys:u,dynamicHireRelat:p}),null!==(j=x)&&void 0!==j&&j.vm&&(b&&((0,k.Ts)(x,"serviceCurrentChangeLoad",!0),x.vm.page.pageNum=1,E()((function(){(0,k.Ts)(x,"serviceCurrentChangeLoad",!1)}),200)),(0,A.b0)(null===(D=x.vm.page)||void 0===D?void 0:D.pageNum)||(0,A.kZ)(null===(M=x.vm.page)||void 0===M?void 0:M.pageNum)||(0,k.oY)(_,t.pageNum||"pageNum",null===(U=x.vm.page)||void 0===U?void 0:U.pageNum),(0,A.b0)(null===(L=x.vm.page)||void 0===L?void 0:L.pageSize)||(0,A.kZ)(null===(F=x.vm.page)||void 0===F?void 0:F.pageSize)||(0,k.oY)(_,t.pageSize||"pageSize",null===(V=x.vm.page)||void 0===V?void 0:V.pageSize)),_=(0,o.A)({},_)),$=t.serviceCode,W=t.httpMethod||"post",K={aid_language:y,requestTraceId:a,pmHandleBusinessIdentity:{busiIdentityId:t.busiIdentityId,pageMetaId:t.pageMetaId,tenantId:t.tenantId,mainServiceCode:null==l?void 0:l.mainServiceCode}},(null==S?void 0:S.notDefaultParmas)&&(K={}),z=(0,k.Vv)(K,_),K=z,H=!0,P&&(H=P({dynamicMapComp:s,requestTraceId:a,mixinServiceConfig:l,rootValue:c,dynamicHireRelat:p,compConfig:h,service:t,reqData:K})),e.next=22,H;case 22:if(!1!==e.sent){e.next=25;break}return e.abrupt("return");case 25:return G={url:$,method:W,data:K},"get"===W.toLocaleLowerCase()&&(G.params=K,delete G.data),e.next=29,f&&f(G);case 29:if(Q=e.sent,!O){e.next=33;break}return e.next=33,O(Q,{dynamicMapComp:s,requestTraceId:a,mixinServiceConfig:l,rootValue:c,dynamicHireRelat:p,compConfig:h,service:t,reqData:K});case 33:if(X="get"===W.toLocaleLowerCase()||"1"==t.transactionType||(null==S?void 0:S.noSuccessIip),Y={messageCb:d,service:t,compConfig:h,noSuccessIip:X},S.resultCodeKey&&(Y.resultCodeKey=S.resultCodeKey),(0,C.N)(null==Q?void 0:Q.data,m,Y)){e.next=40;break}return e.next=39,w().reject();case 39:return e.abrupt("return");case 40:B(t.outParamMappingList,{dynamicMapComp:s,dynamicMapCompKeys:u,dynamicHireRelat:p,outResult:Q.data}),null!==(n=x)&&void 0!==n&&n.vm&&(ee=null===(J=Q.data)||void 0===J?void 0:J.result,te=t.pageTotalCount,ne=/^_deep:(.+)$/,(re=null===(Z=t.pageTotalCount)||void 0===Z?void 0:Z.match(ne))&&(ee=Q.data,te=re[1]),oe=T()((0,k.V9)(ee||{},te||"pageCount")),x.vm.page.total=oe);case 42:case"end":return e.stop()}}),e)}))),x.apply(this,arguments)},_=function(){return x.apply(this,arguments)},s=n.dynamicMapComp,a=n.requestTraceId,n.dialogReq,l=n.mixinServiceConfig,c=n.rootValue,u=n.dynamicMapCompKeys,p=n.dynamicHireRelat,f=n.axiosInstance,d=n.messageCb,h=n.compConfig,m=n.messageInstance,y=n.lang,g=n.beforeRequestService,v=n.afterRequestService,"1"==t.transactionType&&(b=q(t.outParamMappingList,{dynamicMapComp:s,dynamicMapCompKeys:u,dynamicHireRelat:p}))&&((0,k.Ts)(b,"serviceSizeChange",(function(e,t,n){_()})),(0,k.Ts)(b,"serviceCurrentChange",(function(e,t,n){_(!1)}))),_();case 5:case"end":return e.stop()}}),e)}))),L.apply(this,arguments)}function R(){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,o=t.dynamicMapCompKeys,i=t.dynamicHireRelat;return a()(e).call(e,(function(e,t){var s,a=t.orignParam,l=void 0===a?"":a,u=t.destParam,p=void 0===u?"":u,f=(0,O.qK)(o,l,i);f.length>1&&console.error("search arg muti",t,f);var d,h=f[0],m=null==r||null===(s=r[h])||void 0===s?void 0:s.refValue;return(((0,A.b0)(m)||(0,A.kZ)(m))&&n||!(0,A.b0)(m)&&!(0,A.kZ)(m))&&(d=-1!==(null==p?void 0:c()(p).call(p,"->"))?(null==p?void 0:p.split("->"))||[]:(null==p?void 0:p.split("."))||[],(0,k.oY)(e,d,(0,A.b0)(m)||(0,A.kZ)(m)?"":m)),e}),{})}function B(){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,o=t.dynamicHireRelat,i=t.outResult,s=void 0===i?{}:i;p()(e).call(e,(function(e){var t=e.orignParam,i=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,O.qK)(r,c,o);y.length>1&&console.error("search arg muti",e,y);var g=y[0],v=n[g];if(v){var b=i?null==i?void 0:i.split("."):[],_=a()(b).call(b,(function(e,t){if(e)return e[t]}),s);p&&((0,A.cy)(_)?(0,A.cy)(v.refValue)&&(0,A.cy)(_)&&(_=(0,k.q2)(v.refValue,_,(function(e,t){var n;return!(!h||!h.length)&&(null===(n=d()(h).call(h,(function(n){return((0,A.sw)(e[n])||(0,A.sw)(t[n]))&&e[n]==t[n]})))||void 0===n?void 0:m()(n).call(n,(function(e){return e})))}))):_=(0,A.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,o=t.dynamicHireRelat,i=0;i<e.length;i++){var s=e[i],a=s.destParam,l=void 0===a?"":a,c=(0,O.qK)(r,l,o);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 F(e){var t,n=e.beforeOpenDialog,s=e.afterOpenDialog,l=e.middleOpenDialog,c=e.components,u=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,w=e.compConfig,S=(0,k.Ho)({extendAttr:h.extendAttr}),T=h.popupBusiIdentityId,A=g()(y),P=R(h.inParamMappingList||[],{dynamicMapComp:y,dynamicMapCompKeys:A,dynamicHireRelat:v}),O="1"==(null==h?void 0:h.objOrList),C=(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==S?void 0:S.bindFormData)||O?t[t.length-1]:t.join("."):"";return(0,o.A)((0,o.A)({},e),{},{orignParam:n})})))||[],I={},j={};if(O){var D,M=[];I=null===(D=C)||void 0===D?void 0:a()(D).call(D,(function(e,t){var n=t.orignParam,r=t.destParam,o=t.primaryKeyFlag,i=void 0===o?"":o,s=r?r.split("->"):[];return e[r?s[s.length-1]:""]=n,"1"==i&&M.push(n),e}),{});var L=q(C=[{orignParam:"",destParam:h.parentTable||"",primaryKeys:M,isList:!0}],{dynamicMapComp:y,dynamicMapCompKeys:A,dynamicHireRelat:v});j.selections=(null==L?void 0:L.refValue)||[],j.primaryKeys=M}var F={},U={},V=null,$={};h.outDisplayTrigger&&($[h.outDisplayTrigger]=function(e){return{onClick:function(){var e,t=F.tableSelectedInfo;O&&(t=null===(e=F.tableSelectedInfo)||void 0===e?void 0:d()(e).call(e,(function(e){var t,n=(0,o.A)({},e);return p()(t=g()(I)).call(t,(function(t){I[t]&&(n[t]=e[I[t]])})),n}))),"1"!=(null==S?void 0:S.bindFormData)||O||(t=U);var n=null==w?void 0:w.middleOpenDialog,s=l;(n||s)&&(l=function(){var e=(0,i.A)((0,r.A)().mark((function e(t){var i,a;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=null,s&&(i=null==s?void 0:s(t)),!i){e.next=7;break}return e.next=5,i;case 5:return a=e.sent,e.abrupt("return",null==n?void 0:n((0,o.A)((0,o.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 c(e){var t;B(C,{dynamicMapComp:y,dynamicMapCompKeys:A,dynamicHireRelat:v,outResult:e}),null===(t=V)||void 0===t||t(),H(e)}l&&(a=l({dynamicMapComp:y,rootValue:u,dynamicHireRelat:v,compConfig:w,pagePopupMap:h,inputParams:P,outputParams:t})||a),(0,k.yL)(a)?a.then((function(e){c(e)})):c(a)}}}),h.closedTrigger&&($[h.closedTrigger]=function(e){return{onClick:function(){var e;null===(e=V)||void 0===e||e(),H()}}});var W=null==w?void 0:w.beforeOpenDialog,K=n;(W||K)&&(n=function(){var e=(0,i.A)((0,r.A)().mark((function e(){var t,n,o,i,s,a=arguments;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(null===N.dW||void 0===N.dW||null===(t=N.dW.changeSlide)||void 0===t||t.call(N.dW,!1),n=!0,o=a.length,i=new Array(o),s=0;s<o;s++)i[s]=a[s];return K&&(n=null==K?void 0:K.apply(void 0,i)),e.next=6,n;case 6:if(!1!==e.sent){e.next=9;break}return e.abrupt("return",!1);case 9:if(!W){e.next=13;break}return e.abrupt("return",null==W?void 0:W.apply(void 0,i));case 13:return e.abrupt("return",!0);case 14:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}());var z=!0;function H(e){var t=null==w?void 0:w.afterOpenDialog,n=s;(t||n)&&(s=function(){var e=(0,i.A)((0,r.A)().mark((function e(){var o,i,s,a,l=arguments;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(null===N.dW||void 0===N.dW||null===(o=N.dW.changeSlide)||void 0===o||o.call(N.dW,!0),i=l.length,s=new Array(i),a=0;a<i;a++)s[a]=l[a];null==n||n.apply(void 0,s),null==t||t.apply(void 0,s);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()),s&&s({dynamicMapComp:y,rootValue:u,dynamicHireRelat:v,compConfig:w,pagePopupMap:h,inputParams:P,outputParams:e})}function G(){V=E({buttonActions:_,dialogProps:(0,o.A)((0,o.A)({},S||{}),{},{beforeClose:function(){H()}}),parentRootValue:u,parentDynamicMapComp:y,selectionsObj:j,busiIdentityId:T,axiosInstance:m,lang:b,loadEvnetsReq:P,initData:P,components:c,parentSelects:null==w?void 0:w._selects,polyfillConfigs:(0,o.A)((0,o.A)({},$),f||{}),rootStoreChange:function(e){F=e},rootDataChange:function(e){U=e}},x)}n&&(z=n({dynamicMapComp:y,rootValue:u,dynamicHireRelat:v,compConfig:w,pagePopupMap:h,inputParams:P})),null!=z?(0,k.yL)(z)?z.then((function(e){!1!==e&&G()})):z&&G():G()}function U(e,t){return V.apply(this,arguments)}function V(){return V=(0,i.A)((0,r.A)().mark((function e(t,n){var s,a,l,u,p,f,d,h,m,y,g,v,b,_,E,x,S,T,A,O,k,N,j,D,M,L;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=n.beforeDataValidRequestService,u=n.afterDataValidRequestService,p=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||{},_=P.dL,((S=null==h?void 0:h.beforeDataValidRequestService)||l)&&(E=function(){var e=(0,i.A)((0,r.A)().mark((function e(){var t,n,o,i,s=arguments;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=!0,n=s.length,o=new Array(n),i=0;i<n;i++)o[i]=s[i];return l&&(t=null==l?void 0:l.apply(void 0,o)),e.next=5,t;case 5:if(!1!==e.sent){e.next=8;break}return e.abrupt("return",!1);case 8:if(!S){e.next=12;break}return e.abrupt("return",null==S?void 0:S.apply(void 0,o));case 12:return e.abrupt("return",!0);case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()),((T=null==h?void 0:h.afterDataValidRequestService)||u)&&(x=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];null==u||u.apply(void 0,t),null==T||T.apply(void 0,t)}),A=!0,E&&(A=E({dynamicMapComp:f,requestTraceId:d,mixinServiceConfig:m,rootValue:y,compConfig:h,service:t,reqData:b})),e.next=11,A;case 11:if(!1!==e.sent){e.next=14;break}return e.abrupt("return");case 14:return e.next=16,(0,I.ZW)(_,(0,o.A)((0,o.A)((0,o.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(O=e.sent,k=O.data||{},null!==(s=O.data)&&void 0!==s&&s.baseResponse&&(k=null===(N=O.data)||void 0===N?void 0:N.baseResponse),j=k.resultCode,D=(null===(a=k)||void 0===a?void 0:a.resultMessage)||"",M="",L=!1,C.O.SUCCESS===j){e.next=40;break}e.t0=j,e.next=e.t0===C.O.WARNING?27:e.t0===C.O.ERROR?30:e.t0===C.O.INFO?33:e.t0===C.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(w())((function(e,t){p(D,(null==v?void 0:c()(v).call(v,"zh"))>-1?"提示":"Hint",{type:M,showCancelButton:L}).then((function(){L?(x&&x(O,{valid:!0}),e(!0)):(x&&x(O,{valid:!1}),e(!1))})).catch((function(){x&&x(O,{valid:!1}),t(!1)}))})));case 40:return x&&x(O,{valid:!0}),e.abrupt("return",!0);case 42:case"end":return e.stop()}}),e)}))),V.apply(this,arguments)}function $(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 W(){return K.apply(this,arguments)}function K(){return K=(0,i.A)((0,r.A)().mark((function e(){var t,n,o,i,s,a,l,c,u,p,f,d,h,m,y,g,v,_,E,x,w,S,T,A,P,O,C,k,I,N,D,M,L,R,B,q=arguments;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=(n=q.length>0&&void 0!==q[0]?q[0]:{}).beforeDataValidRequestService,i=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,w=n.openChildDialog,S=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,U(I,{dynamicMapComp:E,requestTraceId:d,rootValue:g,axiosInstance:h,mixinServiceConfig:C,compConfig:f.config,confirmInstance:v,builtPolyfillReq:A,beforeDataValidRequestService:o,afterDataValidRequestService:i,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:S,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,F({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:S,buttonActions:y,openChildDialog:w,compConfig:f.config})),(B=f.config.lcpPageClosedMapVO)&&$(B);case 16:case"end":return e.stop()}}),e)}))),K.apply(this,arguments)}},87094:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Ya});var r=n(37891),o=n(34963),i=n(49859),s=n(53474),a=n(53811),l=n(75286),c=(n(76918),n(23288),n(2892),n(26099),n(27495),n(90906),n(38781),n(25440),n(73363)),u=n.n(c),p=n(50697),f=n.n(p),d=n(66615),h=n.n(d),m=n(48079),y=n.n(m),g=n(36586),v=n.n(g),b=n(18979),_=n.n(b),E=n(129),x=n.n(E),w=n(96319),S=n.n(w),T=n(71426),A=n.n(T),P=n(31721),O=n.n(P),C=n(14166),k=n.n(C),I=n(8628),N=n.n(I),j=n(74707),D=n.n(j),M=n(86226),L=n.n(M),R=n(64007),B=n.n(R),q=n(11393),F=n.n(q),U=n(84061),V=n(66825),$=["data-prefix"],W={ref:"hiddenColumns",class:"hidden-columns"},K=n(23149),z=n(41917);const H=function(){return z.A.Date.now()};var G=/\s/;var Q=/^\s+/;const X=function(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&G.test(e.charAt(t)););return t}(e)+1).replace(Q,""):e};var Y=n(2383),J=n(53098);const Z=function(e){return"symbol"==typeof e||(0,J.A)(e)&&"[object Symbol]"==(0,Y.A)(e)};var ee=/^[-+]0x[0-9a-f]+$/i,te=/^0b[01]+$/i,ne=/^0o[0-7]+$/i,re=parseInt;const oe=function(e){if("number"==typeof e)return e;if(Z(e))return NaN;if((0,K.A)(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=(0,K.A)(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=X(e);var n=te.test(e);return n||ne.test(e)?re(e.slice(2),n?2:8):ee.test(e)?NaN:+e};var ie=Math.max,se=Math.min;const ae=function(e,t,n){var r,o,i,s,a,l,c=0,u=!1,p=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function d(t){var n=r,i=o;return r=o=void 0,c=t,s=e.apply(i,n)}function h(e){var n=e-l;return void 0===l||n>=t||n<0||p&&e-c>=i}function m(){var e=H();if(h(e))return y(e);a=setTimeout(m,function(e){var n=t-(e-l);return p?se(n,i-(e-c)):n}(e))}function y(e){return a=void 0,f&&r?d(e):(r=o=void 0,s)}function g(){var e=H(),n=h(e);if(r=arguments,o=this,l=e,n){if(void 0===a)return function(e){return c=e,a=setTimeout(m,t),u?d(e):s}(l);if(p)return clearTimeout(a),a=setTimeout(m,t),d(l)}return void 0===a&&(a=setTimeout(m,t)),s}return t=oe(t)||0,(0,K.A)(n)&&(u=!!n.leading,i=(p="maxWait"in n)?ie(oe(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f),g.cancel=function(){void 0!==a&&clearTimeout(a),c=0,r=l=o=a=void 0},g.flush=function(){return void 0===a?s:y(H())},g};var le,ce,ue,pe,fe,de,he,me,ye,ge,ve,be,_e,Ee,xe,we=!1;function Se(){if(!we){we=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(be=/\b(iPhone|iP[ao]d)/.exec(e),_e=/\b(iP[ao]d)/.exec(e),ge=/Android/i.exec(e),Ee=/FBAN\/\w+;/i.exec(e),xe=/Mobile/i.exec(e),ve=!!/Win64/.exec(e),t){(le=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN)&&document&&document.documentMode&&(le=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);de=r?parseFloat(r[1])+4:le,ce=t[2]?parseFloat(t[2]):NaN,ue=t[3]?parseFloat(t[3]):NaN,(pe=t[4]?parseFloat(t[4]):NaN)?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),fe=t&&t[1]?parseFloat(t[1]):NaN):fe=NaN}else le=ce=ue=fe=pe=NaN;if(n){if(n[1]){var o=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);he=!o||parseFloat(o[1].replace("_","."))}else he=!1;me=!!n[2],ye=!!n[3]}else he=me=ye=!1}}var Te,Ae={ie:function(){return Se()||le},ieCompatibilityMode:function(){return Se()||de>le},ie64:function(){return Ae.ie()&&ve},firefox:function(){return Se()||ce},opera:function(){return Se()||ue},webkit:function(){return Se()||pe},safari:function(){return Ae.webkit()},chrome:function(){return Se()||fe},windows:function(){return Se()||me},osx:function(){return Se()||he},linux:function(){return Se()||ye},iphone:function(){return Se()||be},mobile:function(){return Se()||be||_e||ge||xe},nativeApp:function(){return Se()||Ee},android:function(){return Se()||ge},ipad:function(){return Se()||_e}},Pe=Ae,Oe=!!(typeof window<"u"&&window.document&&window.document.createElement),Ce=Oe;Oe&&!window.addEventListener&&window.attachEvent,Oe&&window.screen;Ce&&(Te=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""));function ke(e){var t=0,n=0,r=0,o=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=10*t,o=10*n,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||o)&&e.deltaMode&&(1==e.deltaMode?(r*=40,o*=40):(r*=800,o*=800)),r&&!t&&(t=r<1?-1:1),o&&!n&&(n=o<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:o}}ke.getEventType=function(){return Pe.firefox()?"DOMMouseScroll":function(e,t){if(!Ce||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var o=document.createElement("div");o.setAttribute(n,"return;"),r="function"==typeof o[n]}return!r&&Te&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}("wheel")?"wheel":"mousewheel"};var Ie=ke;const Ne={beforeMount(e,t){!function(e,t){if(e&&e.addEventListener){const n=function(e){const n=Ie(e);t&&Reflect.apply(t,this,[e,n])};e.addEventListener("wheel",n,{passive:!0})}}(e,t.value)}};var je=n(76172),De=n(97786);const Me={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}};var Le=n(22720);const Re=Symbol("scrollbarContextKey"),Be=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},qe=()=>{},Fe=(Object.assign,Object.prototype.hasOwnProperty),Ue=(e,t)=>Fe.call(e,t),Ve=Array.isArray,$e=e=>"function"==typeof e,We=e=>"string"==typeof e,Ke=e=>null!==e&&"object"==typeof e,ze=(Object.prototype.toString,e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))}),He=/-(\w)/g,Ge=(ze((e=>e.replace(He,((e,t)=>t?t.toUpperCase():"")))),/\B([A-Z])/g),Qe=(ze((e=>e.replace(Ge,"-$1").toLowerCase())),ze((e=>e.charAt(0).toUpperCase()+e.slice(1))));ze((e=>e?`on${Qe(e)}`:""));const Xe="__epPropKey",Ye=(e,t)=>{if(!Ke(e)||Ke(n=e)&&n[Xe])return e;var n;const{values:r,required:o,default:i,type:s,validator:a}=e,c=r||a?n=>{let o=!1,s=[];if(r&&(s=Array.from(r),Ue(e,"default")&&s.push(i),o||(o=s.includes(n))),a&&(o||(o=a(n))),!o&&s.length>0){const e=[...new Set(s)].map((e=>JSON.stringify(e))).join(", ");(0,l.warn)(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${e}], got value ${JSON.stringify(n)}.`)}return o}:void 0,u={type:s,required:!!o,validator:c,[Xe]:!0};return Ue(e,"default")&&(u.default=i),u},Je=e=>Be(Object.entries(e).map((([e,t])=>[e,Ye(t,e)]))),Ze=Je({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean});var et=(e,t)=>{const n=e.__vccOpts||e;for(const[e,r]of t)n[e]=r;return n};const tt="el",nt=(e,t,n,r,o)=>{let i=`${e}-${t}`;return n&&(i+=`-${n}`),r&&(i+=`__${r}`),o&&(i+=`--${o}`),i},rt=Symbol("namespaceContextKey"),ot=e=>{const t=e||((0,l.getCurrentInstance)()?(0,l.inject)(rt,(0,l.ref)(tt)):(0,l.ref)(tt));return(0,l.computed)((()=>(0,l.unref)(t)||tt))},it=(e,t)=>{const n=ot(t);return{namespace:n,b:(t="")=>nt(n.value,e,t,"",""),e:t=>t?nt(n.value,e,"",t,""):"",m:t=>t?nt(n.value,e,"","",t):"",be:(t,r)=>t&&r?nt(n.value,e,t,r,""):"",em:(t,r)=>t&&r?nt(n.value,e,"",t,r):"",bm:(t,r)=>t&&r?nt(n.value,e,t,"",r):"",bem:(t,r,o)=>t&&r&&o?nt(n.value,e,t,r,o):"",is:(e,...t)=>{const n=!(t.length>=1)||t[0];return e&&n?`is-${e}`:""},cssVar:e=>{const t={};for(const r in e)e[r]&&(t[`--${n.value}-${r}`]=e[r]);return t},cssVarName:e=>`--${n.value}-${e}`,cssVarBlock:t=>{const r={};for(const o in t)t[o]&&(r[`--${n.value}-${e}-${o}`]=t[o]);return r},cssVarBlockName:t=>`--${n.value}-${e}-${t}`}};class st extends Error{constructor(e){super(e),this.name="ElementPlusError"}}const at=(0,l.defineComponent)({__name:"thumb",props:Ze,setup(e){const t=e,n=(0,l.inject)(Re),r=it("scrollbar");n||function(){throw new st("[Thumb] can not inject scrollbar context")}();const o=(0,l.ref)(),i=(0,l.ref)(),s=(0,l.ref)({}),a=(0,l.ref)(!1);let c=!1,u=!1,p=Le.oc?document.onselectstart:null;const f=(0,l.computed)((()=>Me[t.vertical?"vertical":"horizontal"])),d=(0,l.computed)((()=>(({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}))({size:t.size,move:t.move,bar:f.value}))),h=(0,l.computed)((()=>o.value[f.value.offset]**2/n.wrapElement[f.value.scrollSize]/t.ratio/i.value[f.value.offset])),m=e=>{var t;if(e.stopPropagation(),e.ctrlKey||[1,2].includes(e.button))return;null==(t=window.getSelection())||t.removeAllRanges(),g(e);const n=e.currentTarget;n&&(s.value[f.value.axis]=n[f.value.offset]-(e[f.value.client]-n.getBoundingClientRect()[f.value.direction]))},y=e=>{if(!i.value||!o.value||!n.wrapElement)return;const t=100*(Math.abs(e.target.getBoundingClientRect()[f.value.direction]-e[f.value.client])-i.value[f.value.offset]/2)*h.value/o.value[f.value.offset];n.wrapElement[f.value.scroll]=t*n.wrapElement[f.value.scrollSize]/100},g=e=>{e.stopImmediatePropagation(),c=!0,document.addEventListener("mousemove",v),document.addEventListener("mouseup",b),p=document.onselectstart,document.onselectstart=()=>!1},v=e=>{if(!o.value||!i.value)return;if(!1===c)return;const t=s.value[f.value.axis];if(!t)return;const r=100*(-1*(o.value.getBoundingClientRect()[f.value.direction]-e[f.value.client])-(i.value[f.value.offset]-t))*h.value/o.value[f.value.offset];n.wrapElement[f.value.scroll]=r*n.wrapElement[f.value.scrollSize]/100},b=()=>{c=!1,s.value[f.value.axis]=0,document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",b),_(),u&&(a.value=!1)};(0,l.onBeforeUnmount)((()=>{_(),document.removeEventListener("mouseup",b)}));const _=()=>{document.onselectstart!==p&&(document.onselectstart=p)};return(0,De.MLh)((0,l.toRef)(n,"scrollbarElement"),"mousemove",(()=>{u=!1,a.value=!!t.size})),(0,De.MLh)((0,l.toRef)(n,"scrollbarElement"),"mouseleave",(()=>{u=!0,a.value=c})),(e,t)=>((0,l.openBlock)(),(0,l.createBlock)(l.Transition,{name:(0,l.unref)(r).b("fade"),persisted:""},{default:(0,l.withCtx)((()=>[(0,l.withDirectives)((0,l.createElementVNode)("div",{ref_key:"instance",ref:o,class:(0,l.normalizeClass)([(0,l.unref)(r).e("bar"),(0,l.unref)(r).is((0,l.unref)(f).key)]),onMousedown:y},[(0,l.createElementVNode)("div",{ref_key:"thumb",ref:i,class:(0,l.normalizeClass)((0,l.unref)(r).e("thumb")),style:(0,l.normalizeStyle)((0,l.unref)(d)),onMousedown:m},null,38)],34),[[l.vShow,e.always||a.value]])])),_:1},8,["name"]))}});var lt=et(at,[["__file","thumb.vue"]]);const ct=Je({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}});var ut=et((0,l.defineComponent)({__name:"bar",props:ct,setup(e,{expose:t}){const n=e,r=(0,l.inject)(Re),o=(0,l.ref)(0),i=(0,l.ref)(0),s=(0,l.ref)(""),a=(0,l.ref)(""),c=(0,l.ref)(1),u=(0,l.ref)(1);return t({handleScroll:e=>{if(e){const t=e.offsetHeight-4,n=e.offsetWidth-4;i.value=100*e.scrollTop/t*c.value,o.value=100*e.scrollLeft/n*u.value}},update:()=>{const e=null==r?void 0:r.wrapElement;if(!e)return;const t=e.offsetHeight-4,o=e.offsetWidth-4,i=t**2/e.scrollHeight,l=o**2/e.scrollWidth,p=Math.max(i,n.minSize),f=Math.max(l,n.minSize);c.value=i/(t-i)/(p/(t-p)),u.value=l/(o-l)/(f/(o-f)),a.value=p+4<t?`${p}px`:"",s.value=f+4<o?`${f}px`:""}}),(e,t)=>((0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,null,[(0,l.createVNode)(lt,{move:o.value,ratio:u.value,size:s.value,always:e.always},null,8,["move","ratio","size","always"]),(0,l.createVNode)(lt,{move:i.value,ratio:c.value,size:a.value,vertical:"",always:e.always},null,8,["move","ratio","size","always"])],64))}}),[["__file","bar.vue"]]),pt=n(92049),ft=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,dt=/^\w*$/;const ht=function(e,t){if((0,pt.A)(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Z(e))||dt.test(e)||!ft.test(e)||null!=t&&e in Object(t)};var mt=n(62050);function yt(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(yt.Cache||mt.A),n}yt.Cache=mt.A;const gt=yt;var vt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,bt=/\\(\\)?/g;const _t=function(){var e=gt((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(vt,(function(e,n,r,o){t.push(r?o.replace(bt,"$1"):n||e)})),t}),(function(e){return 500===t.size&&t.clear(),e})),t=e.cache;return e}();var Et=n(241),xt=n(45572),wt=Et.A?Et.A.prototype:void 0,St=wt?wt.toString:void 0;const Tt=function e(t){if("string"==typeof t)return t;if((0,pt.A)(t))return(0,xt.A)(t,e)+"";if(Z(t))return St?St.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n},At=function(e){return null==e?"":Tt(e)},Pt=function(e,t){return(0,pt.A)(e)?e:ht(e,t)?[e]:_t(At(e))},Ot=function(e){if("string"==typeof e||Z(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},Ct=function(e,t){for(var n=0,r=(t=Pt(t,e)).length;null!=e&&n<r;)e=e[Ot(t[n++])];return n&&n==r?e:void 0};var kt=n(52851),It=n(25353);const Nt=function(e,t,n,r){if(!(0,K.A)(e))return e;for(var o=-1,i=(t=Pt(t,e)).length,s=i-1,a=e;null!=a&&++o<i;){var l=Ot(t[o]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(o!=s){var u=a[l];void 0===(c=r?r(u,l,a):void 0)&&(c=(0,K.A)(u)?u:(0,It.A)(t[o+1])?[]:{})}(0,kt.A)(a,l,c),a=a[l]}return e},jt=function(e,t){return null!=e&&t in Object(e)};var Dt=n(25175),Mt=n(5254);const Lt=function(e,t){return null!=e&&function(e,t,n){for(var r=-1,o=(t=Pt(t,e)).length,i=!1;++r<o;){var s=Ot(t[r]);if(!(i=null!=e&&n(e,s)))break;e=e[s]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&(0,Mt.A)(o)&&(0,It.A)(s,o)&&((0,pt.A)(e)||(0,Dt.A)(e))}(e,t,jt)},Rt=function(e,t){return function(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var s=t[r],a=Ct(e,s);n(a,s)&&Nt(i,Pt(s,e),a)}return i}(e,t,(function(t,n){return Lt(e,n)}))};var Bt=n(87671);const qt=function(e){return null!=e&&e.length?(0,Bt.A)(e,1):[]};var Ft=n(65255),Ut=n(46778);const Vt=(Kt=function(e,t){return null==e?{}:Rt(e,t)},(0,Ut.A)((0,Ft.A)(Kt,void 0,qt),Kt+"")),$t=Je({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),Wt=e=>Vt($t,e);var Kt;const zt=function(e){return null==e},Ht=e=>void 0===e,Gt=e=>"boolean"==typeof e,Qt=e=>"number"==typeof e,Xt=e=>"undefined"!=typeof Element&&e instanceof Element,Yt=e=>zt(e),Jt=Je({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:[String,Object,Array],default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},id:String,role:String,...Wt(["ariaLabel","ariaOrientation"])}),Zt={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Qt)};function en(e,t="px"){return e?Qt(e)||We(n=e)&&!Number.isNaN(Number(n))?`${e}${t}`:We(e)?e:void 0:"";var n}const tn=(0,l.defineComponent)({name:"ElScrollbar"}),nn=(0,l.defineComponent)({...tn,props:Jt,emits:Zt,setup(e,{expose:t,emit:n}){const r=e,o=it("scrollbar");let i,s,a=0,c=0;const u=(0,l.ref)(),p=(0,l.ref)(),f=(0,l.ref)(),d=(0,l.ref)(),h=(0,l.computed)((()=>{const e={};return r.height&&(e.height=en(r.height)),r.maxHeight&&(e.maxHeight=en(r.maxHeight)),[r.wrapStyle,e]})),m=(0,l.computed)((()=>[r.wrapClass,o.e("wrap"),{[o.em("wrap","hidden-default")]:!r.native}])),y=(0,l.computed)((()=>[o.e("view"),r.viewClass])),g=()=>{var e;p.value&&(null==(e=d.value)||e.handleScroll(p.value),a=p.value.scrollTop,c=p.value.scrollLeft,n("scroll",{scrollTop:p.value.scrollTop,scrollLeft:p.value.scrollLeft}))},v=()=>{var e;null==(e=d.value)||e.update()};return(0,l.watch)((()=>r.noresize),(e=>{e?(null==i||i(),null==s||s()):(({stop:i}=(0,De.wYm)(f,v)),s=(0,De.MLh)("resize",v))}),{immediate:!0}),(0,l.watch)((()=>[r.maxHeight,r.height]),(()=>{r.native||(0,l.nextTick)((()=>{var e;v(),p.value&&(null==(e=d.value)||e.handleScroll(p.value))}))})),(0,l.provide)(Re,(0,l.reactive)({scrollbarElement:u,wrapElement:p})),(0,l.onActivated)((()=>{p.value.scrollTop=a,p.value.scrollLeft=c})),(0,l.onMounted)((()=>{r.native||(0,l.nextTick)((()=>{v()}))})),(0,l.onUpdated)((()=>v())),t({wrapRef:p,update:v,scrollTo:function(e,t){Ke(e)?p.value.scrollTo(e):Qt(e)&&Qt(t)&&p.value.scrollTo(e,t)},setScrollTop:e=>{Qt(e)&&(p.value.scrollTop=e)},setScrollLeft:e=>{Qt(e)&&(p.value.scrollLeft=e)},handleScroll:g}),(e,t)=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{ref_key:"scrollbarRef",ref:u,class:(0,l.normalizeClass)((0,l.unref)(o).b())},[(0,l.createElementVNode)("div",{ref_key:"wrapRef",ref:p,class:(0,l.normalizeClass)((0,l.unref)(m)),style:(0,l.normalizeStyle)((0,l.unref)(h)),onScroll:g},[((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.tag),{id:e.id,ref_key:"resizeRef",ref:f,class:(0,l.normalizeClass)((0,l.unref)(y)),style:(0,l.normalizeStyle)(e.viewStyle),role:e.role,"aria-label":e.ariaLabel,"aria-orientation":e.ariaOrientation},{default:(0,l.withCtx)((()=>[(0,l.renderSlot)(e.$slots,"default")])),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],38),e.native?(0,l.createCommentVNode)("v-if",!0):((0,l.openBlock)(),(0,l.createBlock)(ut,{key:0,ref_key:"barRef",ref:d,always:e.always,"min-size":e.minSize},null,8,["always","min-size"]))],2))}}),rn=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(null!=t?t:{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e},on=e=>(e.install=qe,e),sn=rn(et(nn,[["__file","scrollbar.vue"]]));var an=n(22204),ln=(n(16280),n(44114),n(29544)),cn=n.n(ln),un=n(385),pn=n.n(un),fn=n(26327),dn=n.n(fn),hn=n(6707),mn=n.n(hn),yn=(n(13609),n(71917),n(84864),n(57465),n(87745),n(71761),n(80668)),gn=n.n(yn),vn=n(82895),bn=n.n(vn),_n=n(57855),En=n.n(_n);const xn=function(e,t,n){var r=null==e?void 0:Ct(e,t);return void 0===r?n:r};var wn=n(22080),Sn=n(22955);const Tn=function(e){return e==e&&!(0,K.A)(e)};var An=n(37405);const Pn=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}},On=function(e){var t=function(e){for(var t=(0,An.A)(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Tn(o)]}return t}(e);return 1==t.length&&t[0][2]?Pn(t[0][0],t[0][1]):function(n){return n===e||function(e,t,n,r){var o=n.length,i=o,s=!r;if(null==e)return!i;for(e=Object(e);o--;){var a=n[o];if(s&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++o<i;){var l=(a=n[o])[0],c=e[l],u=a[1];if(s&&a[2]){if(void 0===c&&!(l in e))return!1}else{var p=new wn.A;if(r)var f=r(c,u,l,e,t,p);if(!(void 0===f?(0,Sn.A)(u,c,3,r,p):f))return!1}}return!0}(n,e,t)}};var Cn=n(29008);const kn=function(e){return ht(e)?(t=Ot(e),function(e){return null==e?void 0:e[t]}):function(e){return function(t){return Ct(t,e)}}(e);var t},In=function(e){return"function"==typeof e?e:null==e?Cn.A:"object"==typeof e?(0,pt.A)(e)?(t=e[0],n=e[1],ht(t)&&Tn(n)?Pn(Ot(t),n):function(e){var r=xn(e,t);return void 0===r&&r===n?Lt(e,t):(0,Sn.A)(n,r,3)}):On(e):kn(e);var t,n};var Nn=n(97132);var jn=n(38446);const Dn=(Mn=function(e,t){return e&&(0,Nn.A)(e,t,An.A)},function(e,t){if(null==e)return e;if(!(0,jn.A)(e))return Mn(e,t);for(var n=e.length,r=-1,o=Object(e);++r<n&&!1!==t(o[r],r,o););return e});var Mn;const Ln=function(e,t){var n=-1,r=(0,jn.A)(e)?Array(e.length):[];return Dn(e,(function(e,o,i){r[++n]=t(e,o,i)})),r},Rn=function(e,t){return((0,pt.A)(e)?xt.A:Ln)(e,In(t))},Bn=Symbol("popper"),qn=Symbol("popperContent"),Fn=Je({role:{type:String,values:["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],default:"tooltip"}}),Un=(0,l.defineComponent)({name:"ElPopper",inheritAttrs:!1}),Vn=rn(et((0,l.defineComponent)({...Un,props:Fn,setup(e,{expose:t}){const n=e,r={triggerRef:(0,l.ref)(),popperInstanceRef:(0,l.ref)(),contentRef:(0,l.ref)(),referenceRef:(0,l.ref)(),role:(0,l.computed)((()=>n.role))};return t(r),(0,l.provide)(Bn,r),(e,t)=>(0,l.renderSlot)(e.$slots,"default")}}),[["__file","popper.vue"]])),$n=Symbol("elTooltip");function Wn(){let e;const t=()=>window.clearTimeout(e);return(0,Le.Uo)((()=>t())),{registerTimeout:(n,r)=>{t(),e=window.setTimeout(n,r)},cancelTimeout:t}}const Kn=Je({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}});var zn="top",Hn="bottom",Gn="right",Qn="left",Xn="auto",Yn=[zn,Hn,Gn,Qn],Jn="start",Zn="end",er="viewport",tr="popper",nr=Yn.reduce((function(e,t){return e.concat([t+"-"+Jn,t+"-"+Zn])}),[]),rr=[].concat(Yn,[Xn]).reduce((function(e,t){return e.concat([t,t+"-"+Jn,t+"-"+Zn])}),[]),or=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];const ir=Je({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Array,default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:rr,default:"bottom"},popperOptions:{type:Object,default:()=>({})},strategy:{type:String,values:["fixed","absolute"],default:"absolute"}}),sr=Je({...ir,id:String,style:{type:[String,Array,Object]},className:{type:[String,Array,Object]},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:[String,Array,Object]},popperStyle:{type:[String,Array,Object]},referenceEl:{type:Object},triggerTargetEl:{type:Object},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...Wt(["ariaLabel"])}),ar={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},lr=Je({...Kn,...sr,appendTo:{type:[String,Object]},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:Boolean,default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...Wt(["ariaLabel"])}),cr=Je({virtualRef:{type:Object},virtualTriggering:Boolean,onMouseenter:{type:Function},onMouseleave:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onFocus:{type:Function},onBlur:{type:Function},onContextmenu:{type:Function},id:String,open:Boolean}),ur=Je({...cr,disabled:Boolean,trigger:{type:[String,Array],default:"hover"},triggerKeys:{type:Array,default:()=>["Enter","Space"]}}),pr=Ye({type:Boolean,default:null}),fr=Ye({type:Function}),dr=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t];return{useModelToggle:({indicator:r,toggleReason:o,shouldHideWhenRouteChanges:i,shouldProceed:s,onShow:a,onHide:c})=>{const u=(0,l.getCurrentInstance)(),{emit:p}=u,f=u.props,d=(0,l.computed)((()=>$e(f[n]))),h=(0,l.computed)((()=>null===f[e])),m=e=>{!0!==r.value&&(r.value=!0,o&&(o.value=e),$e(a)&&a(e))},y=e=>{!1!==r.value&&(r.value=!1,o&&(o.value=e),$e(c)&&c(e))},g=e=>{if(!0===f.disabled||$e(s)&&!s())return;const n=d.value&&Le.oc;n&&p(t,!0),!h.value&&n||m(e)},v=e=>{if(!0===f.disabled||!Le.oc)return;const n=d.value&&Le.oc;n&&p(t,!1),!h.value&&n||y(e)},b=e=>{Gt(e)&&(f.disabled&&e?d.value&&p(t,!1):r.value!==e&&(e?m():y()))};return(0,l.watch)((()=>f[e]),b),i&&void 0!==u.appContext.config.globalProperties.$route&&(0,l.watch)((()=>({...u.proxy.$route})),(()=>{i.value&&r.value&&v()})),(0,l.onMounted)((()=>{b(f[e])})),{hide:v,show:g,toggle:()=>{r.value?v():g()},hasUpdateHandler:d}},useModelToggleProps:{[e]:pr,[n]:fr},useModelToggleEmits:r}},{useModelToggle:hr,useModelToggleProps:mr,useModelToggleEmits:yr}=dr("modelValue"),gr=Je({arrowOffset:{type:Number,default:5}}),{useModelToggleProps:vr,useModelToggleEmits:br,useModelToggle:_r}=dr("visible"),Er=Je({...Fn,...vr,...lr,...ur,...gr,showArrow:{type:Boolean,default:!0}}),xr=[...br,"before-show","before-hide","show","hide","open","close"],wr=(e,t,n)=>r=>{((e,t)=>Ve(e)?e.includes(t):e===t)((0,l.unref)(e),t)&&n(r)},Sr=(e,t,{checkForDefaultPrevented:n=!0}={})=>r=>{const o=null==e?void 0:e(r);if(!1===n||!o)return null==t?void 0:t(r)},Tr=Symbol("elForwardRef"),Ar=(0,l.defineComponent)({name:"ElOnlyChild",setup(e,{slots:t,attrs:n}){var r;const o=(0,l.inject)(Tr),i=(s=null!=(r=null==o?void 0:o.setForwardRef)?r:qe,{mounted(e){s(e)},updated(e){s(e)},unmounted(){s(null)}});var s;return()=>{var e;const r=null==(e=t.default)?void 0:e.call(t,n);if(!r)return null;if(r.length>1)return null;const o=Pr(r);return o?(0,l.withDirectives)((0,l.cloneVNode)(o,n),[[i]]):null}}});function Pr(e){if(!e)return null;const t=e;for(const e of t){if(Ke(e))switch(e.type){case l.Comment:continue;case l.Text:case"svg":return Or(e);case l.Fragment:return Pr(e.children);default:return e}return Or(e)}return null}function Or(e){const t=it("only-child");return(0,l.createVNode)("span",{class:t.e("content")},[e])}const Cr=(0,l.defineComponent)({name:"ElPopperTrigger",inheritAttrs:!1}),kr=(0,l.defineComponent)({...Cr,props:cr,setup(e,{expose:t}){const n=e,{role:r,triggerRef:o}=(0,l.inject)(Bn,void 0);var i;i=o,(0,l.provide)(Tr,{setForwardRef:e=>{i.value=e}});const s=(0,l.computed)((()=>c.value?n.id:void 0)),a=(0,l.computed)((()=>{if(r&&"tooltip"===r.value)return n.open&&n.id?n.id:void 0})),c=(0,l.computed)((()=>{if(r&&"tooltip"!==r.value)return r.value})),u=(0,l.computed)((()=>c.value?`${n.open}`:void 0));let p;const f=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return(0,l.onMounted)((()=>{(0,l.watch)((()=>n.virtualRef),(e=>{e&&(o.value=(0,De.F4c)(e))}),{immediate:!0}),(0,l.watch)(o,((e,t)=>{null==p||p(),p=void 0,Xt(e)&&(f.forEach((r=>{var o;const i=n[r];i&&(e.addEventListener(r.slice(2).toLowerCase(),i),null==(o=null==t?void 0:t.removeEventListener)||o.call(t,r.slice(2).toLowerCase(),i))})),p=(0,l.watch)([s,a,c,u],(t=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(((n,r)=>{zt(t[r])?e.removeAttribute(n):e.setAttribute(n,t[r])}))}),{immediate:!0})),Xt(t)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((e=>t.removeAttribute(e)))}),{immediate:!0})})),(0,l.onBeforeUnmount)((()=>{if(null==p||p(),p=void 0,o.value&&Xt(o.value)){const e=o.value;f.forEach((t=>{const r=n[t];r&&e.removeEventListener(t.slice(2).toLowerCase(),r)})),o.value=void 0}})),t({triggerRef:o}),(e,t)=>e.virtualTriggering?(0,l.createCommentVNode)("v-if",!0):((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(Ar),(0,l.mergeProps)({key:0},e.$attrs,{"aria-controls":(0,l.unref)(s),"aria-describedby":(0,l.unref)(a),"aria-expanded":(0,l.unref)(u),"aria-haspopup":(0,l.unref)(c)}),{default:(0,l.withCtx)((()=>[(0,l.renderSlot)(e.$slots,"default")])),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var Ir=et(kr,[["__file","trigger.vue"]]);const Nr=(0,l.defineComponent)({name:"ElTooltipTrigger"});var jr=et((0,l.defineComponent)({...Nr,props:ur,setup(e,{expose:t}){const n=e,r=it("tooltip"),{controlled:o,id:i,open:s,onOpen:a,onClose:c,onToggle:u}=(0,l.inject)($n,void 0),p=(0,l.ref)(null),f=()=>{if((0,l.unref)(o)||n.disabled)return!0},d=(0,l.toRef)(n,"trigger"),h=Sr(f,wr(d,"hover",a)),m=Sr(f,wr(d,"hover",c)),y=Sr(f,wr(d,"click",(e=>{0===e.button&&u(e)}))),g=Sr(f,wr(d,"focus",a)),v=Sr(f,wr(d,"focus",c)),b=Sr(f,wr(d,"contextmenu",(e=>{e.preventDefault(),u(e)}))),_=Sr(f,(e=>{const{code:t}=e;n.triggerKeys.includes(t)&&(e.preventDefault(),u(e))}));return t({triggerRef:p}),(e,t)=>((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(Ir),{id:(0,l.unref)(i),"virtual-ref":e.virtualRef,open:(0,l.unref)(s),"virtual-triggering":e.virtualTriggering,class:(0,l.normalizeClass)((0,l.unref)(r).e("trigger")),onBlur:(0,l.unref)(v),onClick:(0,l.unref)(y),onContextmenu:(0,l.unref)(b),onFocus:(0,l.unref)(g),onMouseenter:(0,l.unref)(h),onMouseleave:(0,l.unref)(m),onKeydown:(0,l.unref)(_)},{default:(0,l.withCtx)((()=>[(0,l.renderSlot)(e.$slots,"default")])),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}}),[["__file","trigger.vue"]]);const Dr=Je({to:{type:[String,Object],required:!0},disabled:Boolean}),Mr=rn(et((0,l.defineComponent)({__name:"teleport",props:Dr,setup:e=>(e,t)=>e.disabled?(0,l.renderSlot)(e.$slots,"default",{key:0}):((0,l.openBlock)(),(0,l.createBlock)(l.Teleport,{key:1,to:e.to},[(0,l.renderSlot)(e.$slots,"default")],8,["to"]))}),[["__file","teleport.vue"]])),Lr={prefix:Math.floor(1e4*Math.random()),current:0},Rr=Symbol("elIdInjection"),Br=()=>(0,l.getCurrentInstance)()?(0,l.inject)(Rr,Lr):Lr,qr=e=>{const t=Br();Le.oc;const n=ot();return(0,l.computed)((()=>(0,l.unref)(e)||`${n.value}-id-${t.prefix}-${t.current++}`))};let Fr;const Ur=()=>{const e=ot(),t=Br(),n=(0,l.computed)((()=>`${e.value}-popper-container-${t.prefix}`)),r=(0,l.computed)((()=>`#${n.value}`));return{id:n,selector:r}};var Vr=n(69592);const $r=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:o}=e,i={placement:n,strategy:r,...o,modifiers:[...Wr(e),...t]};return function(e,t){t&&(e.modifiers=[...e.modifiers,...null!=t?t:[]])}(i,null==o?void 0:o.modifiers),i};function Wr(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,null!=t?t:12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function Kr(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function zr(e){return e instanceof Kr(e).Element||e instanceof Element}function Hr(e){return e instanceof Kr(e).HTMLElement||e instanceof HTMLElement}function Gr(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Kr(e).ShadowRoot||e instanceof ShadowRoot)}var Qr=Math.max,Xr=Math.min,Yr=Math.round;function Jr(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Zr(){return!/^((?!chrome|android).)*safari/i.test(Jr())}function eo(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Hr(e)&&(o=e.offsetWidth>0&&Yr(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Yr(r.height)/e.offsetHeight||1);var s=(zr(e)?Kr(e):window).visualViewport,a=!Zr()&&n,l=(r.left+(a&&s?s.offsetLeft:0))/o,c=(r.top+(a&&s?s.offsetTop:0))/i,u=r.width/o,p=r.height/i;return{width:u,height:p,top:c,right:l+u,bottom:c+p,left:l,x:l,y:c}}function to(e){var t=Kr(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function no(e){return e?(e.nodeName||"").toLowerCase():null}function ro(e){return((zr(e)?e.ownerDocument:e.document)||window.document).documentElement}function oo(e){return eo(ro(e)).left+to(e).scrollLeft}function io(e){return Kr(e).getComputedStyle(e)}function so(e){var t=io(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function ao(e,t,n){void 0===n&&(n=!1);var r,o,i=Hr(t),s=Hr(t)&&function(e){var t=e.getBoundingClientRect(),n=Yr(t.width)/e.offsetWidth||1,r=Yr(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),a=ro(t),l=eo(e,s,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!n)&&(("body"!==no(t)||so(a))&&(c=(r=t)!==Kr(r)&&Hr(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:to(r)),Hr(t)?((u=eo(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=oo(a))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function lo(e){var t=eo(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function co(e){return"html"===no(e)?e:e.assignedSlot||e.parentNode||(Gr(e)?e.host:null)||ro(e)}function uo(e){return["html","body","#document"].indexOf(no(e))>=0?e.ownerDocument.body:Hr(e)&&so(e)?e:uo(co(e))}function po(e,t){var n;void 0===t&&(t=[]);var r=uo(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Kr(r),s=o?[i].concat(i.visualViewport||[],so(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(po(co(s)))}function fo(e){return["table","td","th"].indexOf(no(e))>=0}function ho(e){return Hr(e)&&"fixed"!==io(e).position?e.offsetParent:null}function mo(e){for(var t=Kr(e),n=ho(e);n&&fo(n)&&"static"===io(n).position;)n=ho(n);return n&&("html"===no(n)||"body"===no(n)&&"static"===io(n).position)?t:n||function(e){var t=/firefox/i.test(Jr());if(/Trident/i.test(Jr())&&Hr(e)&&"fixed"===io(e).position)return null;var n=co(e);for(Gr(n)&&(n=n.host);Hr(n)&&["html","body"].indexOf(no(n))<0;){var r=io(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function yo(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var go={placement:"bottom",modifiers:[],strategy:"absolute"};function vo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function bo(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?go:o;return function(e,t,n){void 0===n&&(n=i);var o,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},go,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:a,setOptions:function(n){var o="function"==typeof n?n(a.options):n;p(),a.options=Object.assign({},i,a.options,o),a.scrollParents={reference:zr(e)?po(e):e.contextElement?po(e.contextElement):[],popper:po(t)};var s,c,f=function(e){var t=yo(e);return or.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((s=[].concat(r,a.options.modifiers),c=s.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return a.orderedModifiers=f.filter((function(e){return e.enabled})),a.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:a,name:t,instance:u,options:r});l.push(i||function(){})}})),u.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,n=e.popper;if(vo(t,n)){a.rects={reference:ao(t,mo(n),"fixed"===a.options.strategy),popper:lo(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<a.orderedModifiers.length;r++)if(!0!==a.reset){var o=a.orderedModifiers[r],i=o.fn,s=o.options,l=void 0===s?{}:s,p=o.name;"function"==typeof i&&(a=i({state:a,options:l,name:p,instance:u})||a)}else a.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){u.forceUpdate(),e(a)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(o())}))}))),s}),destroy:function(){p(),c=!0}};if(!vo(e,t))return u;function p(){l.forEach((function(e){return e()})),l=[]}return u.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var _o={passive:!0};function Eo(e){return e.split("-")[0]}function xo(e){return e.split("-")[1]}function wo(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function So(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?Eo(o):null,s=o?xo(o):null,a=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case zn:t={x:a,y:n.y-r.height};break;case Hn:t={x:a,y:n.y+n.height};break;case Gn:t={x:n.x+n.width,y:l};break;case Qn:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=i?wo(i):null;if(null!=c){var u="y"===c?"height":"width";switch(s){case Jn:t[c]=t[c]-(n[u]/2-r[u]/2);break;case Zn:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var To={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ao(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,p=e.isFixed,f=s.x,d=void 0===f?0:f,h=s.y,m=void 0===h?0:h,y="function"==typeof u?u({x:d,y:m}):{x:d,y:m};d=y.x,m=y.y;var g=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),b=Qn,_=zn,E=window;if(c){var x=mo(n),w="clientHeight",S="clientWidth";x===Kr(n)&&"static"!==io(x=ro(n)).position&&"absolute"===a&&(w="scrollHeight",S="scrollWidth"),(o===zn||(o===Qn||o===Gn)&&i===Zn)&&(_=Hn,m-=(p&&x===E&&E.visualViewport?E.visualViewport.height:x[w])-r.height,m*=l?1:-1),o!==Qn&&(o!==zn&&o!==Hn||i!==Zn)||(b=Gn,d-=(p&&x===E&&E.visualViewport?E.visualViewport.width:x[S])-r.width,d*=l?1:-1)}var T,A=Object.assign({position:a},c&&To),P=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Yr(n*o)/o||0,y:Yr(r*o)/o||0}}({x:d,y:m},Kr(n)):{x:d,y:m};return d=P.x,m=P.y,l?Object.assign({},A,((T={})[_]=v?"0":"",T[b]=g?"0":"",T.transform=(E.devicePixelRatio||1)<=1?"translate("+d+"px, "+m+"px)":"translate3d("+d+"px, "+m+"px, 0)",T)):Object.assign({},A,((t={})[_]=v?m+"px":"",t[b]=g?d+"px":"",t.transform="",t))}const Po={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,s=rr.reduce((function(e,n){return e[n]=function(e,t,n){var r=Eo(e),o=[Qn,zn].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[Qn,Gn].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}(n,t.rects,i),e}),{}),a=s[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}};var Oo={left:"right",right:"left",bottom:"top",top:"bottom"};function Co(e){return e.replace(/left|right|bottom|top/g,(function(e){return Oo[e]}))}var ko={start:"end",end:"start"};function Io(e){return e.replace(/start|end/g,(function(e){return ko[e]}))}function No(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Gr(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function jo(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Do(e,t,n){return t===er?jo(function(e,t){var n=Kr(e),r=ro(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var c=Zr();(c||!c&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+oo(e),y:l}}(e,n)):zr(t)?function(e,t){var n=eo(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):jo(function(e){var t,n=ro(e),r=to(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Qr(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Qr(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+oo(e),l=-r.scrollTop;return"rtl"===io(o||n).direction&&(a+=Qr(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}(ro(e)))}function Mo(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Lo(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function Ro(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,s=void 0===i?e.strategy:i,a=n.boundary,l=void 0===a?"clippingParents":a,c=n.rootBoundary,u=void 0===c?er:c,p=n.elementContext,f=void 0===p?tr:p,d=n.altBoundary,h=void 0!==d&&d,m=n.padding,y=void 0===m?0:m,g=Mo("number"!=typeof y?y:Lo(y,Yn)),v=f===tr?"reference":tr,b=e.rects.popper,_=e.elements[h?v:f],E=function(e,t,n,r){var o="clippingParents"===t?function(e){var t=po(co(e)),n=["absolute","fixed"].indexOf(io(e).position)>=0&&Hr(e)?mo(e):e;return zr(n)?t.filter((function(e){return zr(e)&&No(e,n)&&"body"!==no(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce((function(t,n){var o=Do(e,n,r);return t.top=Qr(o.top,t.top),t.right=Xr(o.right,t.right),t.bottom=Xr(o.bottom,t.bottom),t.left=Qr(o.left,t.left),t}),Do(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(zr(_)?_:_.contextElement||ro(e.elements.popper),l,u,s),x=eo(e.elements.reference),w=So({reference:x,element:b,strategy:"absolute",placement:o}),S=jo(Object.assign({},b,w)),T=f===tr?S:x,A={top:E.top-T.top+g.top,bottom:T.bottom-E.bottom+g.bottom,left:E.left-T.left+g.left,right:T.right-E.right+g.right},P=e.modifiersData.offset;if(f===tr&&P){var O=P[o];Object.keys(A).forEach((function(e){var t=[Gn,Hn].indexOf(e)>=0?1:-1,n=[zn,Hn].indexOf(e)>=0?"y":"x";A[e]+=O[n]*t}))}return A}const Bo={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,s=n.altAxis,a=void 0===s||s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,p=n.rootBoundary,f=n.altBoundary,d=n.flipVariations,h=void 0===d||d,m=n.allowedAutoPlacements,y=t.options.placement,g=Eo(y),v=l||(g!==y&&h?function(e){if(Eo(e)===Xn)return[];var t=Co(e);return[Io(e),t,Io(t)]}(y):[Co(y)]),b=[y].concat(v).reduce((function(e,n){return e.concat(Eo(n)===Xn?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?rr:l,u=xo(r),p=u?a?nr:nr.filter((function(e){return xo(e)===u})):Yn,f=p.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=p);var d=f.reduce((function(t,n){return t[n]=Ro(e,{placement:n,boundary:o,rootBoundary:i,padding:s})[Eo(n)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}(t,{placement:n,boundary:u,rootBoundary:p,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),_=t.rects.reference,E=t.rects.popper,x=new Map,w=!0,S=b[0],T=0;T<b.length;T++){var A=b[T],P=Eo(A),O=xo(A)===Jn,C=[zn,Hn].indexOf(P)>=0,k=C?"width":"height",I=Ro(t,{placement:A,boundary:u,rootBoundary:p,altBoundary:f,padding:c}),N=C?O?Gn:Qn:O?Hn:zn;_[k]>E[k]&&(N=Co(N));var j=Co(N),D=[];if(i&&D.push(I[P]<=0),a&&D.push(I[N]<=0,I[j]<=0),D.every((function(e){return e}))){S=A,w=!1;break}x.set(A,D)}if(w)for(var M=function(e){var t=b.find((function(t){var n=x.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},L=h?3:1;L>0&&"break"!==M(L);L--);t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function qo(e,t,n){return Qr(e,Xr(t,n))}const Fo={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,s=n.altAxis,a=void 0!==s&&s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,p=n.padding,f=n.tether,d=void 0===f||f,h=n.tetherOffset,m=void 0===h?0:h,y=Ro(t,{boundary:l,rootBoundary:c,padding:p,altBoundary:u}),g=Eo(t.placement),v=xo(t.placement),b=!v,_=wo(g),E="x"===_?"y":"x",x=t.modifiersData.popperOffsets,w=t.rects.reference,S=t.rects.popper,T="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,A="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(x){if(i){var C,k="y"===_?zn:Qn,I="y"===_?Hn:Gn,N="y"===_?"height":"width",j=x[_],D=j+y[k],M=j-y[I],L=d?-S[N]/2:0,R=v===Jn?w[N]:S[N],B=v===Jn?-S[N]:-w[N],q=t.elements.arrow,F=d&&q?lo(q):{width:0,height:0},U=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=U[k],$=U[I],W=qo(0,w[N],F[N]),K=b?w[N]/2-L-W-V-A.mainAxis:R-W-V-A.mainAxis,z=b?-w[N]/2+L+W+$+A.mainAxis:B+W+$+A.mainAxis,H=t.elements.arrow&&mo(t.elements.arrow),G=H?"y"===_?H.clientTop||0:H.clientLeft||0:0,Q=null!=(C=null==P?void 0:P[_])?C:0,X=j+z-Q,Y=qo(d?Xr(D,j+K-Q-G):D,j,d?Qr(M,X):M);x[_]=Y,O[_]=Y-j}if(a){var J,Z="x"===_?zn:Qn,ee="x"===_?Hn:Gn,te=x[E],ne="y"===E?"height":"width",re=te+y[Z],oe=te-y[ee],ie=-1!==[zn,Qn].indexOf(g),se=null!=(J=null==P?void 0:P[E])?J:0,ae=ie?re:te-w[ne]-S[ne]-se+A.altAxis,le=ie?te+w[ne]+S[ne]-se-A.altAxis:oe,ce=d&&ie?function(e,t,n){var r=qo(e,t,n);return r>n?n:r}(ae,te,le):qo(d?ae:re,te,d?le:oe);x[E]=ce,O[E]=ce-te}t.modifiersData[r]=O}},requiresIfExists:["offset"]};function Uo(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Vo(e){return[zn,Gn,Hn,Qn].some((function(t){return e[t]>=0}))}var $o=bo({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,s=r.resize,a=void 0===s||s,l=Kr(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,_o)})),a&&l.addEventListener("resize",n.update,_o),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,_o)})),a&&l.removeEventListener("resize",n.update,_o)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=So({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,s=void 0===i||i,a=n.roundOffsets,l=void 0===a||a,c={placement:Eo(t.placement),variation:xo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Ao(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ao(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];Hr(o)&&no(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Hr(r)&&no(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},Po,Bo,Fo,{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Eo(n.placement),l=wo(a),c=[Qn,Gn].indexOf(a)>=0?"height":"width";if(i&&s){var u=function(e,t){return Mo("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Lo(e,Yn))}(o.padding,n),p=lo(i),f="y"===l?zn:Qn,d="y"===l?Hn:Gn,h=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],m=s[l]-n.rects.reference[l],y=mo(i),g=y?"y"===l?y.clientHeight||0:y.clientWidth||0:0,v=h/2-m/2,b=u[f],_=g-p[c]-u[d],E=g/2-p[c]/2+v,x=qo(b,E,_),w=l;n.modifiersData[r]=((t={})[w]=x,t.centerOffset=x-E,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&No(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=Ro(t,{elementContext:"reference"}),a=Ro(t,{altBoundary:!0}),l=Uo(s,r),c=Uo(a,o,i),u=Vo(l),p=Vo(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":p})}}]});const Wo=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:o}=(0,l.inject)(Bn,void 0),i=(0,l.ref)(),s=(0,l.ref)(),a=(0,l.computed)((()=>({name:"eventListeners",enabled:!!e.visible}))),c=(0,l.computed)((()=>{var e;const t=(0,l.unref)(i),n=null!=(e=(0,l.unref)(s))?e:0;return{name:"arrow",enabled:!(0,Vr.A)(t),options:{element:t,padding:n}}})),u=(0,l.computed)((()=>({onFirstUpdate:()=>{m()},...$r(e,[(0,l.unref)(c),(0,l.unref)(a)])}))),p=(0,l.computed)((()=>(e=>{if(Le.oc)return(0,De.F4c)(e)})(e.referenceEl)||(0,l.unref)(r))),{attributes:f,state:d,styles:h,update:m,forceUpdate:y,instanceRef:g}=((e,t,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:e})=>{const t=function(e){const t=Object.keys(e.elements);return{styles:Be(t.map((t=>[t,e.styles[t]||{}]))),attributes:Be(t.map((t=>[t,e.attributes[t]])))}}(e);Object.assign(s.value,t)},requires:["computeStyles"]},o=(0,l.computed)((()=>{const{onFirstUpdate:e,placement:t,strategy:o,modifiers:i}=(0,l.unref)(n);return{onFirstUpdate:e,placement:t||"bottom",strategy:o||"absolute",modifiers:[...i||[],r,{name:"applyStyles",enabled:!1}]}})),i=(0,l.shallowRef)(),s=(0,l.ref)({styles:{popper:{position:(0,l.unref)(o).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),a=()=>{i.value&&(i.value.destroy(),i.value=void 0)};return(0,l.watch)(o,(e=>{const t=(0,l.unref)(i);t&&t.setOptions(e)}),{deep:!0}),(0,l.watch)([e,t],(([e,t])=>{a(),e&&t&&(i.value=$o(e,t,(0,l.unref)(o)))})),(0,l.onBeforeUnmount)((()=>{a()})),{state:(0,l.computed)((()=>{var e;return{...(null==(e=(0,l.unref)(i))?void 0:e.state)||{}}})),styles:(0,l.computed)((()=>(0,l.unref)(s).styles)),attributes:(0,l.computed)((()=>(0,l.unref)(s).attributes)),update:()=>{var e;return null==(e=(0,l.unref)(i))?void 0:e.update()},forceUpdate:()=>{var e;return null==(e=(0,l.unref)(i))?void 0:e.forceUpdate()},instanceRef:(0,l.computed)((()=>(0,l.unref)(i)))}})(p,n,u);return(0,l.watch)(g,(e=>t.value=e)),(0,l.onMounted)((()=>{(0,l.watch)((()=>{var e;return null==(e=(0,l.unref)(p))?void 0:e.getBoundingClientRect()}),(()=>{m()}))})),{attributes:f,arrowRef:i,contentRef:n,instanceRef:g,state:d,styles:h,role:o,forceUpdate:y,update:m}},Ko={current:0},zo=(0,l.ref)(0),Ho=Symbol("elZIndexContextKey"),Go=Symbol("zIndexContextKey"),Qo=Symbol("formContextKey"),Xo=Symbol("formItemContextKey"),Yo="focus-trap.focus-after-trapped",Jo="focus-trap.focus-after-released",Zo={cancelable:!0,bubbles:!1},ei={cancelable:!0,bubbles:!1},ti="focusAfterTrapped",ni="focusAfterReleased",ri=Symbol("elFocusTrap"),oi=(0,l.ref)(),ii=(0,l.ref)(0),si=(0,l.ref)(0);let ai=0;const li=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0||e===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},ci=(e,t)=>{for(const n of e)if(!ui(n,t))return n},ui=(e,t)=>{if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1},pi=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),si.value=window.performance.now(),e!==n&&(e=>e instanceof HTMLInputElement&&"select"in e)(e)&&t&&e.select()}};function fi(e,t){const n=[...e],r=e.indexOf(t);return-1!==r&&n.splice(r,1),n}const di=(()=>{let e=[];return{push:t=>{const n=e[0];n&&t!==n&&n.pause(),e=fi(e,t),e.unshift(t)},remove:t=>{var n,r;e=fi(e,t),null==(r=null==(n=e[0])?void 0:n.resume)||r.call(n)}}})(),hi=()=>{oi.value="pointer",ii.value=window.performance.now()},mi=()=>{oi.value="keyboard",ii.value=window.performance.now()},yi=()=>((0,l.onMounted)((()=>{0===ai&&(document.addEventListener("mousedown",hi),document.addEventListener("touchstart",hi),document.addEventListener("keydown",mi)),ai++})),(0,l.onBeforeUnmount)((()=>{ai--,ai<=0&&(document.removeEventListener("mousedown",hi),document.removeEventListener("touchstart",hi),document.removeEventListener("keydown",mi))})),{focusReason:oi,lastUserFocusTimestamp:ii,lastAutomatedFocusTimestamp:si}),gi=e=>new CustomEvent("focus-trap.focusout-prevented",{...ei,detail:e});let vi=[];const bi=e=>{const t=e;"Escape"===t.key&&vi.forEach((e=>e(t)))},_i=(0,l.defineComponent)({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[ti,ni,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=(0,l.ref)();let r,o;const{focusReason:i}=yi();var s;s=n=>{e.trapped&&!a.paused&&t("release-requested",n)},(0,l.onMounted)((()=>{0===vi.length&&document.addEventListener("keydown",bi),Le.oc&&vi.push(s)})),(0,l.onBeforeUnmount)((()=>{vi=vi.filter((e=>e!==s)),0===vi.length&&Le.oc&&document.removeEventListener("keydown",bi)}));const a={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},c=n=>{if(!e.loop&&!e.trapped)return;if(a.paused)return;const{key:r,altKey:o,ctrlKey:s,metaKey:l,currentTarget:c,shiftKey:u}=n,{loop:p}=e,f="Tab"===r&&!o&&!s&&!l,d=document.activeElement;if(f&&d){const e=c,[r,o]=(e=>{const t=li(e);return[ci(t,e),ci(t.reverse(),e)]})(e);if(r&&o)if(u||d!==o){if(u&&[r,e].includes(d)){const e=gi({focusReason:i.value});t("focusout-prevented",e),e.defaultPrevented||(n.preventDefault(),p&&pi(o,!0))}}else{const e=gi({focusReason:i.value});t("focusout-prevented",e),e.defaultPrevented||(n.preventDefault(),p&&pi(r,!0))}else if(d===e){const e=gi({focusReason:i.value});t("focusout-prevented",e),e.defaultPrevented||n.preventDefault()}}};(0,l.provide)(ri,{focusTrapRef:n,onKeydown:c}),(0,l.watch)((()=>e.focusTrapEl),(e=>{e&&(n.value=e)}),{immediate:!0}),(0,l.watch)([n],(([e],[t])=>{e&&(e.addEventListener("keydown",c),e.addEventListener("focusin",f),e.addEventListener("focusout",d)),t&&(t.removeEventListener("keydown",c),t.removeEventListener("focusin",f),t.removeEventListener("focusout",d))}));const u=e=>{t(ti,e)},p=e=>t(ni,e),f=i=>{const s=(0,l.unref)(n);if(!s)return;const c=i.target,u=i.relatedTarget,p=c&&s.contains(c);e.trapped||u&&s.contains(u)||(r=u),p&&t("focusin",i),a.paused||e.trapped&&(p?o=c:pi(o,!0))},d=r=>{const s=(0,l.unref)(n);if(!a.paused&&s)if(e.trapped){const n=r.relatedTarget;zt(n)||s.contains(n)||setTimeout((()=>{if(!a.paused&&e.trapped){const e=gi({focusReason:i.value});t("focusout-prevented",e),e.defaultPrevented||pi(o,!0)}}),0)}else{const e=r.target;e&&s.contains(e)||t("focusout",r)}};async function h(){await(0,l.nextTick)();const t=(0,l.unref)(n);if(t){di.push(a);const n=t.contains(document.activeElement)?r:document.activeElement;if(r=n,!t.contains(n)){const r=new Event(Yo,Zo);t.addEventListener(Yo,u),t.dispatchEvent(r),r.defaultPrevented||(0,l.nextTick)((()=>{let r=e.focusStartEl;We(r)||(pi(r),document.activeElement!==r&&(r="first")),"first"===r&&((e,t=!1)=>{const n=document.activeElement;for(const r of e)if(pi(r,t),document.activeElement!==n)return})(li(t),!0),document.activeElement!==n&&"container"!==r||pi(t)}))}}}function m(){const e=(0,l.unref)(n);if(e){e.removeEventListener(Yo,u);const t=new CustomEvent(Jo,{...Zo,detail:{focusReason:i.value}});e.addEventListener(Jo,p),e.dispatchEvent(t),t.defaultPrevented||"keyboard"!=i.value&&ii.value>si.value&&!e.contains(document.activeElement)||pi(null!=r?r:document.body),e.removeEventListener(Jo,p),di.remove(a)}}return(0,l.onMounted)((()=>{e.trapped&&h(),(0,l.watch)((()=>e.trapped),(e=>{e?h():m()}))})),(0,l.onBeforeUnmount)((()=>{e.trapped&&m(),n.value&&(n.value.removeEventListener("keydown",c),n.value.removeEventListener("focusin",f),n.value.removeEventListener("focusout",d),n.value=void 0)})),{onKeydown:c}}});var Ei=et(_i,[["render",function(e,t,n,r,o,i){return(0,l.renderSlot)(e.$slots,"default",{handleKeydown:e.onKeydown})}],["__file","focus-trap.vue"]]);const xi=(0,l.defineComponent)({name:"ElPopperContent"}),wi=(0,l.defineComponent)({...xi,props:sr,emits:ar,setup(e,{expose:t,emit:n}){const r=e,{focusStartRef:o,trapped:i,onFocusAfterReleased:s,onFocusAfterTrapped:a,onFocusInTrap:c,onFocusoutPrevented:u,onReleaseRequested:p}=((e,t)=>{const n=(0,l.ref)(!1),r=(0,l.ref)();return{focusStartRef:r,trapped:n,onFocusAfterReleased:e=>{var n;"pointer"!==(null==(n=e.detail)?void 0:n.focusReason)&&(r.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:t=>{e.visible&&!n.value&&(t.target&&(r.value=t.target),n.value=!0)},onFocusoutPrevented:t=>{e.trapping||("pointer"===t.detail.focusReason&&t.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}})(r,n),{attributes:f,arrowRef:d,contentRef:h,styles:m,instanceRef:y,role:g,update:v}=Wo(r),{ariaModal:b,arrowStyle:_,contentAttrs:E,contentClass:x,contentStyle:w,updateZIndex:S}=((e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:o}=(()=>{const e=(0,l.getCurrentInstance)()?(0,l.inject)(Ho,Ko):Ko,t=(0,l.getCurrentInstance)()?(0,l.inject)(Go,void 0):void 0,n=(0,l.computed)((()=>{const e=(0,l.unref)(t);return Qt(e)?e:2e3})),r=(0,l.computed)((()=>n.value+zo.value));return Le.oc||(0,l.inject)(Ho),{initialZIndex:n,currentZIndex:r,nextZIndex:()=>(e.current++,zo.value=e.current,r.value)}})(),i=it("popper"),s=(0,l.computed)((()=>(0,l.unref)(t).popper)),a=(0,l.ref)(Qt(e.zIndex)?e.zIndex:o()),c=(0,l.computed)((()=>[i.b(),i.is("pure",e.pure),i.is(e.effect),e.popperClass])),u=(0,l.computed)((()=>[{zIndex:(0,l.unref)(a)},(0,l.unref)(n).popper,e.popperStyle||{}]));return{ariaModal:(0,l.computed)((()=>"dialog"===r.value?"false":void 0)),arrowStyle:(0,l.computed)((()=>(0,l.unref)(n).arrow||{})),contentAttrs:s,contentClass:c,contentStyle:u,contentZIndex:a,updateZIndex:()=>{a.value=Qt(e.zIndex)?e.zIndex:o()}}})(r,{styles:m,attributes:f,role:g}),T=(0,l.inject)(Xo,void 0),A=(0,l.ref)();let P;(0,l.provide)(qn,{arrowStyle:_,arrowRef:d,arrowOffset:A}),T&&(0,l.provide)(Xo,{...T,addInputId:qe,removeInputId:qe});const O=(e=!0)=>{v(),e&&S()},C=()=>{O(!1),r.visible&&r.focusOnShow?i.value=!0:!1===r.visible&&(i.value=!1)};return(0,l.onMounted)((()=>{(0,l.watch)((()=>r.triggerTargetEl),((e,t)=>{null==P||P(),P=void 0;const n=(0,l.unref)(e||h.value),o=(0,l.unref)(t||h.value);Xt(n)&&(P=(0,l.watch)([g,()=>r.ariaLabel,b,()=>r.id],(e=>{["role","aria-label","aria-modal","id"].forEach(((t,r)=>{zt(e[r])?n.removeAttribute(t):n.setAttribute(t,e[r])}))}),{immediate:!0})),o!==n&&Xt(o)&&["role","aria-label","aria-modal","id"].forEach((e=>{o.removeAttribute(e)}))}),{immediate:!0}),(0,l.watch)((()=>r.visible),C,{immediate:!0})})),(0,l.onBeforeUnmount)((()=>{null==P||P(),P=void 0})),t({popperContentRef:h,popperInstanceRef:y,updatePopper:O,contentStyle:w}),(e,t)=>((0,l.openBlock)(),(0,l.createElementBlock)("div",(0,l.mergeProps)({ref_key:"contentRef",ref:h},(0,l.unref)(E),{style:(0,l.unref)(w),class:(0,l.unref)(x),tabindex:"-1",onMouseenter:t=>e.$emit("mouseenter",t),onMouseleave:t=>e.$emit("mouseleave",t)}),[(0,l.createVNode)((0,l.unref)(Ei),{trapped:(0,l.unref)(i),"trap-on-focus-in":!0,"focus-trap-el":(0,l.unref)(h),"focus-start-el":(0,l.unref)(o),onFocusAfterTrapped:(0,l.unref)(a),onFocusAfterReleased:(0,l.unref)(s),onFocusin:(0,l.unref)(c),onFocusoutPrevented:(0,l.unref)(u),onReleaseRequested:(0,l.unref)(p)},{default:(0,l.withCtx)((()=>[(0,l.renderSlot)(e.$slots,"default")])),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16,["onMouseenter","onMouseleave"]))}});var Si=et(wi,[["__file","content.vue"]]);const Ti=(0,l.defineComponent)({name:"ElTooltipContent",inheritAttrs:!1}),Ai=(0,l.defineComponent)({...Ti,props:lr,setup(e,{expose:t}){const n=e,{selector:r}=Ur(),o=it("tooltip"),i=(0,l.ref)(null);let s;const{controlled:a,id:c,open:u,trigger:p,onClose:f,onOpen:d,onShow:h,onHide:m,onBeforeShow:y,onBeforeHide:g}=(0,l.inject)($n,void 0),v=(0,l.computed)((()=>n.transition||`${o.namespace.value}-fade-in-linear`)),b=(0,l.computed)((()=>n.persistent));(0,l.onBeforeUnmount)((()=>{null==s||s()}));const _=(0,l.computed)((()=>!!(0,l.unref)(b)||(0,l.unref)(u))),E=(0,l.computed)((()=>!n.disabled&&(0,l.unref)(u))),x=(0,l.computed)((()=>n.appendTo||r.value)),w=(0,l.computed)((()=>{var e;return null!=(e=n.style)?e:{}})),S=(0,l.computed)((()=>!(0,l.unref)(u))),T=()=>{m()},A=()=>{if((0,l.unref)(a))return!0},P=Sr(A,(()=>{n.enterable&&"hover"===(0,l.unref)(p)&&d()})),O=Sr(A,(()=>{"hover"===(0,l.unref)(p)&&f()})),C=()=>{var e,t;null==(t=null==(e=i.value)?void 0:e.updatePopper)||t.call(e),null==y||y()},k=()=>{null==g||g()},I=()=>{h(),s=(0,De.X2F)((0,l.computed)((()=>{var e;return null==(e=i.value)?void 0:e.popperContentRef})),(()=>{(0,l.unref)(a)||"hover"!==(0,l.unref)(p)&&f()}))},N=()=>{n.virtualTriggering||f()};return(0,l.watch)((()=>(0,l.unref)(u)),(e=>{e||null==s||s()}),{flush:"post"}),(0,l.watch)((()=>n.content),(()=>{var e,t;null==(t=null==(e=i.value)?void 0:e.updatePopper)||t.call(e)})),t({contentRef:i}),(e,t)=>((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(Mr),{disabled:!e.teleported,to:(0,l.unref)(x)},{default:(0,l.withCtx)((()=>[(0,l.createVNode)(l.Transition,{name:(0,l.unref)(v),onAfterLeave:T,onBeforeEnter:C,onAfterEnter:I,onBeforeLeave:k},{default:(0,l.withCtx)((()=>[(0,l.unref)(_)?(0,l.withDirectives)(((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(Si),(0,l.mergeProps)({key:0,id:(0,l.unref)(c),ref_key:"contentRef",ref:i},e.$attrs,{"aria-label":e.ariaLabel,"aria-hidden":(0,l.unref)(S),"boundaries-padding":e.boundariesPadding,"fallback-placements":e.fallbackPlacements,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,placement:e.placement,"popper-options":e.popperOptions,strategy:e.strategy,effect:e.effect,enterable:e.enterable,pure:e.pure,"popper-class":e.popperClass,"popper-style":[e.popperStyle,(0,l.unref)(w)],"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,visible:(0,l.unref)(E),"z-index":e.zIndex,onMouseenter:(0,l.unref)(P),onMouseleave:(0,l.unref)(O),onBlur:N,onClose:(0,l.unref)(f)}),{default:(0,l.withCtx)((()=>[(0,l.renderSlot)(e.$slots,"default")])),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[l.vShow,(0,l.unref)(E)]]):(0,l.createCommentVNode)("v-if",!0)])),_:3},8,["name"])])),_:3},8,["disabled","to"]))}});var Pi=et(Ai,[["__file","content.vue"]]);const Oi=(0,l.defineComponent)({name:"ElPopperArrow",inheritAttrs:!1});var Ci=et((0,l.defineComponent)({...Oi,props:gr,setup(e,{expose:t}){const n=e,r=it("popper"),{arrowOffset:o,arrowRef:i,arrowStyle:s}=(0,l.inject)(qn,void 0);return(0,l.watch)((()=>n.arrowOffset),(e=>{o.value=e})),(0,l.onBeforeUnmount)((()=>{i.value=void 0})),t({arrowRef:i}),(e,t)=>((0,l.openBlock)(),(0,l.createElementBlock)("span",{ref_key:"arrowRef",ref:i,class:(0,l.normalizeClass)((0,l.unref)(r).e("arrow")),style:(0,l.normalizeStyle)((0,l.unref)(s)),"data-popper-arrow":""},null,6))}}),[["__file","arrow.vue"]]);const ki=(0,l.defineComponent)({name:"ElTooltip"}),Ii=(0,l.defineComponent)({...ki,props:Er,emits:xr,setup(e,{expose:t,emit:n}){const r=e;(()=>{const{id:e,selector:t}=Ur();(0,l.onBeforeMount)((()=>{Le.oc&&(Fr&&document.body.querySelector(t.value)||(Fr=(e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t})(e.value)))}))})();const o=qr(),i=(0,l.ref)(),s=(0,l.ref)(),a=()=>{var e;const t=(0,l.unref)(i);t&&(null==(e=t.popperInstanceRef)||e.update())},c=(0,l.ref)(!1),u=(0,l.ref)(),{show:p,hide:f,hasUpdateHandler:d}=_r({indicator:c,toggleReason:u}),{onOpen:h,onClose:m}=(({showAfter:e,hideAfter:t,autoClose:n,open:r,close:o})=>{const{registerTimeout:i}=Wn(),{registerTimeout:s,cancelTimeout:a}=Wn();return{onOpen:t=>{i((()=>{r(t);const e=(0,l.unref)(n);Qt(e)&&e>0&&s((()=>{o(t)}),e)}),(0,l.unref)(e))},onClose:e=>{a(),i((()=>{o(e)}),(0,l.unref)(t))}}})({showAfter:(0,l.toRef)(r,"showAfter"),hideAfter:(0,l.toRef)(r,"hideAfter"),autoClose:(0,l.toRef)(r,"autoClose"),open:p,close:f}),y=(0,l.computed)((()=>Gt(r.visible)&&!d.value));return(0,l.provide)($n,{controlled:y,id:o,open:(0,l.readonly)(c),trigger:(0,l.toRef)(r,"trigger"),onOpen:e=>{h(e)},onClose:e=>{m(e)},onToggle:e=>{(0,l.unref)(c)?m(e):h(e)},onShow:()=>{n("show",u.value)},onHide:()=>{n("hide",u.value)},onBeforeShow:()=>{n("before-show",u.value)},onBeforeHide:()=>{n("before-hide",u.value)},updatePopper:a}),(0,l.watch)((()=>r.disabled),(e=>{e&&c.value&&(c.value=!1)})),(0,l.onDeactivated)((()=>c.value&&f())),t({popperRef:i,contentRef:s,isFocusInsideContent:e=>{var t,n;const r=null==(n=null==(t=s.value)?void 0:t.contentRef)?void 0:n.popperContentRef,o=(null==e?void 0:e.relatedTarget)||document.activeElement;return r&&r.contains(o)},updatePopper:a,onOpen:h,onClose:m,hide:f}),(e,t)=>((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(Vn),{ref_key:"popperRef",ref:i,role:e.role},{default:(0,l.withCtx)((()=>[(0,l.createVNode)(jr,{disabled:e.disabled,trigger:e.trigger,"trigger-keys":e.triggerKeys,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering},{default:(0,l.withCtx)((()=>[e.$slots.default?(0,l.renderSlot)(e.$slots,"default",{key:0}):(0,l.createCommentVNode)("v-if",!0)])),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),(0,l.createVNode)(Pi,{ref_key:"contentRef",ref:s,"aria-label":e.ariaLabel,"boundaries-padding":e.boundariesPadding,content:e.content,disabled:e.disabled,effect:e.effect,enterable:e.enterable,"fallback-placements":e.fallbackPlacements,"hide-after":e.hideAfter,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,persistent:e.persistent,"popper-class":e.popperClass,"popper-style":e.popperStyle,placement:e.placement,"popper-options":e.popperOptions,pure:e.pure,"raw-content":e.rawContent,"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,"show-after":e.showAfter,strategy:e.strategy,teleported:e.teleported,transition:e.transition,"virtual-triggering":e.virtualTriggering,"z-index":e.zIndex,"append-to":e.appendTo},{default:(0,l.withCtx)((()=>[(0,l.renderSlot)(e.$slots,"content",{},(()=>[e.rawContent?((0,l.openBlock)(),(0,l.createElementBlock)("span",{key:0,innerHTML:e.content},null,8,["innerHTML"])):((0,l.openBlock)(),(0,l.createElementBlock)("span",{key:1},(0,l.toDisplayString)(e.content),1))])),e.showArrow?((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(Ci),{key:0,"arrow-offset":e.arrowOffset},null,8,["arrow-offset"])):(0,l.createCommentVNode)("v-if",!0)])),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])])),_:3},8,["role"]))}}),Ni=rn(et(Ii,[["__file","tooltip.vue"]]));var ji=function(){return ji=cn()||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ji.apply(this,arguments)},Di=function(e){var t;return null===(t=e.target)||void 0===t?void 0:t.closest("td")},Mi=function(e,t){var n,r=null;return L()(n=e.columns).call(n,(function(e){e.id===t&&(r=e)})),r},Li=function(e,t,n){var r=(t.className||"").match(new RegExp("".concat(n,"-table_[^\\s]+"),"gm"));return r?Mi(e,r[0]):null},Ri=function(e,t){if(!e)throw new Error("Row is required when get row identity");if("string"==typeof t){if(!N()(t).call(t,"."))return"".concat(e[t]);for(var n=e,r=0,o=t.split(".");r<o.length;r++)n=n[o[r]];return"".concat(n)}if("function"==typeof t)return t.call(null,e)},Bi=function(e,t){var n,r={};return L()(n=e||[]).call(n,(function(e,n){r[Ri(e,t)]={row:e,index:n}})),r};function qi(e){return""===e||void 0!==e&&(e=gn()(e,10),bn()(e)&&(e="")),e}function Fi(e){return""===e||void 0!==e&&(e=qi(e),bn()(e)&&(e=80)),e}function Ui(e,t,n){var r=!1,o=B()(e).call(e,t),i=-1!==o,s=function(s){var a;"add"===s?e.push(t):pn()(e).call(e,o,1),r=!0,(0,V.isArray)(t.children)&&L()(a=t.children).call(a,(function(t){Ui(e,t,null!=n?n:!i)}))};return(0,V.isBoolean)(n)?n&&!i?s("add"):!n&&i&&s("remove"):s(i?"remove":"add"),r}function Vi(e,t,n,r){void 0===n&&(n="children"),void 0===r&&(r="hasChildren");var o=function(e){return!(h()(e)&&e.length)};function i(e,s,a){t(e,s,a),L()(s).call(s,(function(e){if(e[r])t(e,null,a+1);else{var s=e[n];o(s)||i(e,s,a+1)}}))}L()(e).call(e,(function(e){if(e[r])t(e,null,0);else{var s=e[n];o(s)||i(e,s,0)}}))}var $i=null;function Wi(e){return e.children?(t=e.children,n=Wi,(0,Bt.A)(Rn(t,n),1)):[e];var t,n}function Ki(e,t){return e+t.colSpan}var zi=function(e,t,n,r){var o,i=0,s=e,a=n.states.columns.value;if(r){var l=Wi(r[e]),c=_()(a).call(a,0,B()(a).call(a,l[0]));s=(i=u()(c).call(c,Ki,0))+u()(l).call(l,Ki,0)-1}else i=e;switch(t){case"left":s<n.states.fixedLeafColumnsLength.value&&(o="left");break;case"right":i>=a.length-n.states.rightFixedLeafColumnsLength.value&&(o="right");break;default:s<n.states.fixedLeafColumnsLength.value?o="left":i>=a.length-n.states.rightFixedLeafColumnsLength.value&&(o="right")}return o?{direction:o,start:i,after:s}:{}},Hi=function(e,t,n,r,o,i){void 0===i&&(i=0);var s=[],a=zi(t,n,r,o),l=a.direction,c=a.start,u=a.after;if(l){var p,f="left"===l;s.push(F()(p="".concat(e,"-fixed-column--")).call(p,l)),f&&u+i===r.states.fixedLeafColumnsLength.value-1?s.push("is-last-column"):f||c-i!=r.states.columns.value.length-r.states.rightFixedLeafColumnsLength.value||s.push("is-first-column")}return s};function Gi(e,t){return e+(null===t.realWidth||bn()(t.realWidth)?Number(t.width):t.realWidth)}var Qi=function(e,t,n,r){var o=zi(e,t,n,r),i=o.direction,s=o.start,a=void 0===s?0:s,l=o.after,c=void 0===l?0:l;if(i){var p,f,d,h={},m="left"===i,y=n.states.columns.value;return m?h.left=u()(p=_()(y).call(y,0,a)).call(p,Gi,0):h.right=u()(f=En()(d=_()(y).call(y,c+1)).call(d)).call(f,Gi,0),h}},Xi=function(e,t){e&&(bn()(e[t])||(e[t]="".concat(e[t],"px")))};var Yi=function(){return Yi=cn()||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Yi.apply(this,arguments)};var Ji=function(){return Ji=cn()||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ji.apply(this,arguments)},Zi=function(e){var t=[];return L()(e).call(e,(function(e){e.children&&e.children.length>0?t.push.apply(t,Zi(e.children)):t.push(e)})),t};const es=function(){var e,t=(0,l.getCurrentInstance)(),n=(0,l.toRefs)(null===(e=t.proxy)||void 0===e?void 0:e.$props).size,r=(0,l.ref)(null),o=(0,l.ref)([]),i=(0,l.ref)([]),s=(0,l.ref)(!1),a=(0,l.ref)([]),c=(0,l.ref)([]),p=(0,l.ref)([]),d=(0,l.ref)([]),m=(0,l.ref)([]),g=(0,l.ref)([]),v=(0,l.ref)([]),b=(0,l.ref)([]),E=(0,l.ref)(0),w=(0,l.ref)(0),T=(0,l.ref)(0),P=(0,l.ref)(!1),C=(0,l.ref)([]),k=(0,l.ref)(!1),I=(0,l.ref)(!1),j=(0,l.ref)(null),D=(0,l.ref)({}),M=(0,l.ref)(null),R=(0,l.ref)(null),B=(0,l.ref)(null),q=(0,l.ref)(null),U=(0,l.ref)(null);(0,l.watch)(o,(function(){return t.state&&K(!1)}),{deep:!0});var $=function(e){var t;null===(t=e.children)||void 0===t||L()(t).call(t,(function(t){t.fixed=e.fixed,$(t)}))},W=function(){var e,t,n,r,o,i,l,u,f,h;L()(e=a.value).call(e,(function(e){$(e)})),d.value=S()(t=a.value).call(t,(function(e){return!0===e.fixed||"left"===e.fixed})),m.value=S()(n=a.value).call(n,(function(e){return"right"===e.fixed})),d.value.length>0&&a.value[0]&&"selection"===a.value[0].type&&!a.value[0].fixed&&(a.value[0].fixed=!0,d.value.unshift(a.value[0]));var y=S()(r=a.value).call(r,(function(e){return!e.fixed}));c.value=F()(o=F()(i=F()(l=[]).call(l,d.value)).call(i,y)).call(o,m.value);var g=Zi(y),v=Zi(d.value),b=Zi(m.value);E.value=g.length,w.value=v.length,T.value=b.length,p.value=F()(u=F()(f=F()(h=[]).call(h,v)).call(f,g)).call(u,b),s.value=d.value.length>0||m.value.length>0},K=function(e,n){void 0===n&&(n=!1),e&&W(),n?t.state.doLayout():t.state.debouncedUpdateLayout()},z=function(e){var n;if(!t||!t.store)return 0;var r=t.store.states.treeData,o=0,i=null===(n=r.value[e])||void 0===n?void 0:n.children;return i&&(o+=i.length,L()(i).call(i,(function(e){o+=z(e)}))),o},H=function(e,t,n){R.value&&R.value!==e&&(R.value.order=null),R.value=e,B.value=t,q.value=n},G=function(){var e,t=(0,l.unref)(i);L()(e=f()(D.value)).call(e,(function(e){var n=D.value[e];if(n&&0!==n.length){var r=Mi({columns:p.value},e);r&&r.filterMethod&&(t=S()(t).call(t,(function(e){return O()(n).call(n,(function(t){return r.filterMethod.call(null,t,e,r)}))})))}})),M.value=t},Q=function(){o.value=function(e,t){var n=t.sortingColumn;return n&&"string"!=typeof n.sortable?function(e,t,n,r,o){var i,s;if(!t&&!r&&(!o||h()(o)&&!o.length))return e;n="string"==typeof n?"descending"===n?-1:1:n&&n<0?-1:1;var a=r?null:function(n,r){return o?(h()(o)||(o=[o]),y()(o).call(o,(function(t){return"string"==typeof t?xn(n,t):t(n,r,e)}))):("$key"!==t&&(0,V.isObject)(n)&&"$value"in n&&(n=n.$value),[(0,V.isObject)(n)?xn(n,t):n])};return y()(i=x()(s=y()(e).call(e,(function(e,t){return{value:e,index:t,key:a?a(e,t):null}}))).call(s,(function(e,t){var o=function(e,t){if(r)return r(e.value,t.value);for(var n=0,o=e.key.length;n<o;n++){if(e.key[n]<t.key[n])return-1;if(e.key[n]>t.key[n])return 1}return 0}(e,t);return o||(o=e.index-t.index),o*+n}))).call(i,(function(e){return e.value}))}(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy):e}(M.value,{sortingColumn:R.value,sortProp:B.value,sortOrder:q.value})},X=function(e){var t=(0,l.getCurrentInstance)(),n=(0,l.ref)(!1),r=(0,l.ref)([]);return{updateExpandRows:function(){var t=e.data.value||[],o=e.rowKey.value;if(n.value)r.value=_()(t).call(t);else if(o){var i=Bi(r.value,o);r.value=u()(t).call(t,(function(e,t){var n=Ri(t,o);return i[n]&&e.push(t),e}),[])}else r.value=[]},toggleRowExpansion:function(e,n){var o;Ui(r.value,e,n)&&t.emit("expand-change",e,_()(o=r.value).call(o))},setExpandRowKeys:function(n){t.store.assertRowKey();var o=e.data.value||[],i=e.rowKey.value,s=Bi(o,i);r.value=u()(n).call(n,(function(e,t){var n=s[t];return n&&e.push(n.row),e}),[])},isRowExpanded:function(t){var n,o=e.rowKey.value;return o?!!Bi(r.value,o)[Ri(t,o)]:N()(n=r.value).call(n,t)},states:{expandRows:r,defaultExpandAll:n}}}({data:o,rowKey:r}),Y=X.setExpandRowKeys,J=X.toggleRowExpansion,Z=X.updateExpandRows,ee=X.states,te=X.isRowExpanded,ne=function(e){var t=(0,l.ref)([]),n=(0,l.ref)({}),r=(0,l.ref)(16),o=(0,l.ref)(!1),i=(0,l.ref)({}),s=(0,l.ref)("hasChildren"),a=(0,l.ref)("children"),c=(0,l.getCurrentInstance)(),u=(0,l.computed)((function(){if(!e.rowKey.value)return{};var t=e.data.value||[];return d(t)})),p=(0,l.computed)((function(){var t=e.rowKey.value,n=f()(i.value),r={};return n.length?(L()(n).call(n,(function(e){if(i.value[e].length){var n,o={children:[]};L()(n=i.value[e]).call(n,(function(e){var n=Ri(e,t);o.children.push(n),e[s.value]&&!r[n]&&(r[n]={children:[]})})),r[e]=o}})),r):r})),d=function(t){var n=e.rowKey.value,r={};return Vi(t,(function(e,t,i){var s=Ri(e,n);h()(t)?r[s]={children:y()(t).call(t,(function(e){return Ri(e,n)})),level:i}:o.value&&(r[s]={children:[],lazy:!0,level:i})}),a.value,s.value),r},m=function(e,r){var i,s;void 0===e&&(e=!1),void 0===r&&(r=null===(i=c.store)||void 0===i?void 0:i.states.defaultExpandAll.value);var a=u.value,d=p.value,h=f()(a),m={};if(h.length){var y=(0,l.unref)(n),g=[],v=function(n,o){var i;if(e)return t.value?r||N()(i=t.value).call(i,o):!(!r&&!(null==n?void 0:n.expanded));var s,a=r||t.value&&N()(s=t.value).call(s,o);return!(!(null==n?void 0:n.expanded)&&!a)};L()(h).call(h,(function(e){var t=y[e],n=Yi({},a[e]);if(n.expanded=v(t,e),n.lazy){var r=t||{},o=r.loaded,i=void 0!==o&&o,s=r.loading,l=void 0!==s&&s;n.loaded=!!i,n.loading=!!l,g.push(e)}m[e]=n}));var b=f()(d);o.value&&b.length&&g.length&&L()(b).call(b,(function(e){var t=y[e],n=d[e].children;if(N()(g).call(g,e)){if(0!==m[e].children.length)throw new Error("[ElTable]children must be an empty array.");m[e].children=n}else{var r=t||{},o=r.loaded,i=void 0!==o&&o,s=r.loading,a=void 0!==s&&s;m[e]={lazy:!0,loaded:!!i,loading:!!a,expanded:v(t,e),children:n,level:""}}}))}n.value=m,null===(s=c.store)||void 0===s||s.updateTableScrollY()};(0,l.watch)((function(){return t.value}),(function(){m(!0)})),(0,l.watch)((function(){return u.value}),(function(){m()})),(0,l.watch)((function(){return p.value}),(function(){m()}));var g=function(t,r){c.store.assertRowKey();var o=e.rowKey.value,i=Ri(t,o),s=i&&n.value[i];if(i&&s&&"expanded"in s){var a=s.expanded;r=void 0===r?!s.expanded:r,n.value[i].expanded=r,a!==r&&c.emit("expand-change",t,r),c.store.updateTableScrollY()}},v=function(e,t,r){var o=c.props.load;o&&!n.value[t].loaded&&(n.value[t].loading=!0,o(e,r,(function(r){if(!h()(r))throw new TypeError("[ElTable] data must be an array");n.value[t].loading=!1,n.value[t].loaded=!0,n.value[t].expanded=!0,r.length&&(i.value[t]=r),c.emit("expand-change",e,!0)})))};return{loadData:v,loadOrToggle:function(t){c.store.assertRowKey();var r=e.rowKey.value,i=Ri(t,r),s=n.value[i];o.value&&s&&"loaded"in s&&!s.loaded?v(t,i,s):g(t,void 0)},toggleTreeExpansion:g,updateTreeExpandKeys:function(e){t.value=e,m()},updateTreeData:m,normalize:d,states:{expandRowKeys:t,treeData:n,indent:r,lazy:o,lazyTreeNodeMap:i,lazyColumnIdentifier:s,childrenColumnName:a}}}({data:o,rowKey:r}),re=ne.updateTreeExpandKeys,oe=ne.toggleTreeExpansion,ie=ne.updateTreeData,se=ne.loadOrToggle,ae=ne.states,le=function(e){var t=(0,l.getCurrentInstance)(),n=(0,l.ref)(null),r=(0,l.ref)(null),o=function(){n.value=null},i=function(n){var o,i=e.data,s=e.rowKey,a=null;s.value&&(a=A()(o=(0,l.unref)(i)||[]).call(o,(function(e){return Ri(e,s.value)===n}))),r.value=a,t.emit("current-change",r.value,null)};return{setCurrentRowKey:function(e){t.store.assertRowKey(),n.value=e,i(e)},restoreCurrentRowKey:o,setCurrentRowByKey:i,updateCurrentRow:function(e){var n=r.value;if(e&&e!==n)return r.value=e,void t.emit("current-change",r.value,n);!e&&n&&(r.value=null,t.emit("current-change",null,n))},updateCurrentRowData:function(){var s=e.rowKey.value,a=e.data.value||[],l=r.value;if(!N()(a).call(a,l)&&l){if(s){var c=Ri(l,s);i(c)}else r.value=null;null===r.value&&t.emit("current-change",null,l)}else n.value&&(i(n.value),o())},states:{_currentRowKey:n,currentRow:r}}}({data:o,rowKey:r}),ce=le.updateCurrentRowData,ue=le.updateCurrentRow,pe=le.setCurrentRowKey,fe=le.states;return{assertRowKey:function(){if(!r.value)throw new Error("[ElTable] prop row-key is required")},updateColumns:W,scheduleLayout:K,isSelected:function(e){var t;return N()(t=C.value).call(t,e)},clearSelection:function(){P.value=!1;var e=C.value;C.value=[],e.length&&t.emit("selection-change",[])},cleanSelection:function(){var e;if(r.value){e=[];var n=Bi(C.value,r.value),i=Bi(o.value,r.value);for(var s in n)(0,V.hasOwn)(n,s)&&!i[s]&&e.push(n[s].row)}else{var a;e=S()(a=C.value).call(a,(function(e){var t;return!N()(t=o.value).call(t,e)}))}if(e.length){var l,c=S()(l=C.value).call(l,(function(t){return!N()(e).call(e,t)}));C.value=c,t.emit("selection-change",_()(c).call(c))}},getSelectionRows:function(){var e;return _()(e=C.value||[]).call(e)},toggleRowSelection:function(e,n,r){if(void 0===n&&(n=void 0),void 0===r&&(r=!0),Ui(C.value,e,n)){var o,i=_()(o=C.value||[]).call(o);r&&t.emit("select",i,e),t.emit("selection-change",i)}},_toggleAllSelection:function(){var e,n,r,i,s=I.value?!P.value:!(P.value||C.value.length);P.value=s;var a,l=!1,c=0,u=null===(i=null===(r=null==t?void 0:t.store)||void 0===r?void 0:r.states)||void 0===i?void 0:i.rowKey.value;L()(e=o.value).call(e,(function(e,t){var n=t+c;j.value?j.value.call(null,e,n)&&Ui(C.value,e,s)&&(l=!0):Ui(C.value,e,s)&&(l=!0),c+=z(Ri(e,u))})),l&&t.emit("selection-change",C.value?_()(a=C.value).call(a):[]),t.emit("select-all",_()(n=C.value||[]).call(n))},toggleAllSelection:null,updateSelectionByRowKey:function(){var e,t=Bi(C.value,r.value);L()(e=o.value).call(e,(function(e){var n=Ri(e,r.value),o=t[n];o&&(C.value[o.index]=e)}))},updateAllSelected:function(){var e,n,i;if(0!==(null===(e=o.value)||void 0===e?void 0:e.length)){var s;r.value&&(s=Bi(C.value,r.value));for(var a,l,c=!0,u=0,p=0,f=0,d=(o.value||[]).length;f<d;f++){var h=null===(i=null===(n=null==t?void 0:t.store)||void 0===n?void 0:n.states)||void 0===i?void 0:i.rowKey.value,m=f+p,y=o.value[f],g=j.value&&j.value.call(null,y,m);if(a=y,l=void 0,s?s[Ri(a,r.value)]:N()(l=C.value).call(l,a))u++;else if(!j.value||g){c=!1;break}p+=z(Ri(y,h))}0===u&&(c=!1),P.value=c}else P.value=!1},updateFilters:function(e,t){h()(e)||(e=[e]);var n={};return L()(e).call(e,(function(e){D.value[e.id]=t,n[e.columnKey||e.id]=t})),n},updateCurrentRow:ue,updateSort:H,execFilter:G,execSort:Q,execQuery:function(e){void 0===e&&(e=void 0),e&&S()(e)||G(),Q()},clearFilter:function(e){var n=t.refs.tableHeaderRef;if(n){var r=cn()({},n.filterPanels),o=f()(r);if(o.length)if("string"==typeof e&&(e=[e]),h()(e)){var i=y()(e).call(e,(function(e){return function(e,t){for(var n=null,r=0;r<e.columns.length;r++){var o=e.columns[r];if(o.columnKey===t){n=o;break}}return n||(0,V.throwError)("ElTable","No column matching with column-key: ".concat(t)),n}({columns:p.value},e)}));L()(o).call(o,(function(e){var t=A()(i).call(i,(function(t){return t.id===e}));t&&(t.filteredValue=[])})),t.store.commit("filterChange",{column:i,values:[],silent:!0,multi:!0})}else L()(o).call(o,(function(e){var t,n=A()(t=p.value).call(t,(function(t){return t.id===e}));n&&(n.filteredValue=[])})),D.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})}},clearSort:function(){R.value&&(H(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},toggleRowExpansion:J,setExpandRowKeysAdapter:function(e){Y(e),re(e)},setCurrentRowKey:pe,toggleRowExpansionAdapter:function(e,t){var n,r=O()(n=p.value).call(n,(function(e){return"expand"===e.type}));r?J(e,t):oe(e,t)},isRowExpanded:te,updateExpandRows:Z,updateCurrentRowData:ce,loadOrToggle:se,updateTreeData:ie,states:Ji(Ji(Ji({tableSize:n,rowKey:r,data:o,_data:i,isComplex:s,_columns:a,originColumns:c,columns:p,fixedColumns:d,rightFixedColumns:m,leafColumns:g,fixedLeafColumns:v,rightFixedLeafColumns:b,updateOrderFns:[],leafColumnsLength:E,fixedLeafColumnsLength:w,rightFixedLeafColumnsLength:T,isAllSelected:P,selection:C,reserveSelection:k,selectOnIndeterminate:I,selectable:j,filters:D,filteredData:M,sortingColumn:R,sortProp:B,sortOrder:q,hoverRow:U},ee),ae),fe)}};var ts=function(){return ts=cn()||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ts.apply(this,arguments)};function ns(e,t){return y()(e).call(e,(function(e){var n;return e.id===t.id?t:((null===(n=e.children)||void 0===n?void 0:n.length)&&(e.children=ns(e.children,t)),e)}))}function rs(e){L()(e).call(e,(function(e){var t,n;e.no=null===(t=e.getColumnIndex)||void 0===t?void 0:t.call(e),(null===(n=e.children)||void 0===n?void 0:n.length)&&rs(e.children)})),x()(e).call(e,(function(e,t){return e.no-t.no}))}const os=function(){var e=(0,l.getCurrentInstance)(),t=es(),n=(0,je.useNamespace)("table"),r={setData:function(t,n){var r=(0,l.unref)(t._data)!==n;t.data.value=n,t._data.value=n,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),(0,l.unref)(t.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):r?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn:function(t,n,r,o){var i=(0,l.unref)(t._columns),s=[];r?(r&&!r.children&&(r.children=[]),r.children.push(n),s=ns(i,r)):(i.push(n),s=i),rs(s),t._columns.value=s,t.updateOrderFns.push(o),"selection"===n.type&&(t.selectable.value=n.selectable,t.reserveSelection.value=n.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder:function(t,n){var r;(null===(r=n.getColumnIndex)||void 0===r?void 0:r.call(n))!==n.no&&(rs(t._columns.value),e.$ready&&e.store.updateColumns())},removeColumn:function(t,n,r,o){var i,s,a=(0,l.unref)(t._columns)||[];if(r){var c,u;pn()(c=r.children).call(c,dn()(u=r.children).call(u,(function(e){return e.id===n.id})),1),(0,l.nextTick)((function(){var e;0===(null===(e=r.children)||void 0===e?void 0:e.length)&&delete r.children})),t._columns.value=ns(a,r)}else{var p=B()(a).call(a,n);p>-1&&(pn()(a).call(a,p,1),t._columns.value=a)}var f=B()(i=t.updateOrderFns).call(i,o);f>-1&&pn()(s=t.updateOrderFns).call(s,f,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort:function(t,n){var r=n.prop,o=n.order,i=n.init;if(r){var s,a=A()(s=(0,l.unref)(t.columns)).call(s,(function(e){return e.property===r}));a&&(a.order=o,e.store.updateSort(a,r,o),e.store.commit("changeSortCondition",{init:i}))}},changeSortCondition:function(t,n){var r=t.sortingColumn,o=t.sortProp,i=t.sortOrder,s=(0,l.unref)(r),a=(0,l.unref)(o),c=(0,l.unref)(i);null===c&&(t.sortingColumn.value=null,t.sortProp.value=null),e.store.execQuery({filter:!0}),n&&(n.silent||n.init)||e.emit("sort-change",{column:s,prop:a,order:c}),e.store.updateTableScrollY()},filterChange:function(t,n){var r=n.column,o=mn()(n),i=n.silent,s=e.store.updateFilters(r,o);e.store.execQuery(),i||e.emit("filter-change",s),e.store.updateTableScrollY()},toggleAllSelection:function(){e.store.toggleAllSelection()},rowSelectedChanged:function(t,n){e.store.toggleRowSelection(n),e.store.updateAllSelected()},setHoverRow:function(e,t){e.hoverRow.value=t},setCurrentRow:function(t,n){e.store.updateCurrentRow(n)}};return ts(ts({ns:n},t),{mutations:r,commit:function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o,i=e.store.mutations;if(!i[t])throw new Error("Action not found: ".concat(t));i[t].apply(e,F()(o=[e.store.states]).call(o,n))},updateTableScrollY:function(){(0,l.nextTick)((function(){return e.layout.updateScrollY.apply(e.layout)}))}})};var is,ss=((is={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data"})["treeProps.hasChildren"]={key:"lazyColumnIdentifier",default:"hasChildren"},is["treeProps.children"]={key:"childrenColumnName",default:"children"},is);function as(e,t,n){var r=e,o=ss[t];"object"===(0,an.A)(ss[t])&&(o=o.key,r=r||ss[t].default),n.states[o].value=r}function ls(e,t){if(N()(t).call(t,".")){var n=t.split("."),r=e;return L()(n).call(n,(function(e){r=r[e]})),r}return e[t]}var cs=function(){function e(e){for(var t in this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=(0,l.ref)(null),this.scrollX=(0,l.ref)(!1),this.scrollY=(0,l.ref)(!1),this.bodyWidth=(0,l.ref)(null),this.fixedWidth=(0,l.ref)(null),this.rightFixedWidth=(0,l.ref)(null),this.gutterWidth=0,e)(0,V.hasOwn)(e,t)&&((0,l.isRef)(this[t])?this[t].value=e[t]:this[t]=e[t]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}return e.prototype.updateScrollY=function(){if(null===this.height.value)return!1;var e=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(null==e?void 0:e.wrapRef)){var t,n=this.scrollY.value;return t=e.wrapRef.scrollHeight>e.wrapRef.clientHeight,this.scrollY.value=t,n!==t}return!1},e.prototype.setHeight=function(e,t){var n=this;if(void 0===t&&(t="height"),V.isClient){var r,o=this.table.vnode.el;if(e="number"==typeof(r=e)?r:"string"==typeof r?/^\d+(?:px)?$/.test(r)?gn()(r,10):r:null,this.height.value=Number(e),!o&&(e||0===e))return(0,l.nextTick)((function(){return n.setHeight(e,t)}));"number"==typeof e?(o.style[t]="".concat(e,"px"),this.updateElsHeight()):"string"==typeof e&&(o.style[t]=e,this.updateElsHeight())}},e.prototype.setMaxHeight=function(e){this.setHeight(e,"max-height")},e.prototype.getFlattenColumns=function(){var e=[],t=this.table.store.states.columns.value;return L()(t).call(t,(function(t){t.isColumnGroup?e.push.apply(e,t.columns):e.push(t)})),e},e.prototype.updateElsHeight=function(){this.updateScrollY(),this.notifyObservers("scrollable")},e.prototype.headerDisplayNone=function(e){if(!e)return!0;for(var t=e;"DIV"!==t.tagName;){if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1},e.prototype.updateColumnsWidth=function(){if(V.isClient){var e=this.fit,t=this.table.vnode.el.clientWidth,n=0,r=this.getFlattenColumns(),o=S()(r).call(r,(function(e){return"number"!=typeof e.width}));if(L()(r).call(r,(function(e){"number"==typeof e.width&&e.realWidth&&(e.realWidth=null)})),o.length>0&&e){if(L()(r).call(r,(function(e){n+=Number(e.width||e.minWidth||80)})),n<=t){this.scrollX.value=!1;var i=t-n;if(1===o.length)o[0].realWidth=Number(o[0].minWidth||80)+i;else{var s=i/u()(o).call(o,(function(e,t){return e+Number(t.minWidth||80)}),0),a=0;L()(o).call(o,(function(e,t){if(0!==t){var n=Math.floor(Number(e.minWidth||80)*s);a+=n,e.realWidth=Number(e.minWidth||80)+n}})),o[0].realWidth=Number(o[0].minWidth||80)+i-a}}else this.scrollX.value=!0,L()(o).call(o,(function(e){e.realWidth=Number(e.minWidth)}));this.bodyWidth.value=Math.max(n,t),this.table.state.resizeState.value.width=this.bodyWidth.value}else L()(r).call(r,(function(e){e.width||e.minWidth?e.realWidth=Number(e.width||e.minWidth):e.realWidth=80,n+=e.realWidth})),this.scrollX.value=n>t,this.bodyWidth.value=n;var l=this.store.states.fixedColumns.value;if(l.length>0){var c=0;L()(l).call(l,(function(e){c+=Number(e.realWidth||e.width)})),this.fixedWidth.value=c}var p=this.store.states.rightFixedColumns.value;if(p.length>0){var f=0;L()(p).call(p,(function(e){f+=Number(e.realWidth||e.width)})),this.rightFixedWidth.value=f}this.notifyObservers("columns")}},e.prototype.addObserver=function(e){this.observers.push(e)},e.prototype.removeObserver=function(e){var t,n,r=B()(t=this.observers).call(t,e);-1!==r&&pn()(n=this.observers).call(n,r,1)},e.prototype.notifyObservers=function(e){var t=this,n=this.observers;L()(n).call(n,(function(n){var r,o;switch(e){case"columns":null===(r=n.state)||void 0===r||r.onColumnsChange(t);break;case"scrollable":null===(o=n.state)||void 0===o||o.onScrollableChange(t);break;default:throw new Error("Table Layout don't have event ".concat(e,"."))}}))},e}();const us=cs;var ps=n(61240),fs=n.n(ps),ds=n(27681),hs=n.n(ds),ms=n(16781),ys=n.n(ms),gs=n(27414),vs=n.n(gs);const bs=Ye({type:String,values:["","default","small","large"],required:!1}),_s=Symbol("size"),Es="update:modelValue",xs={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:bs,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...Wt(["ariaControls"])},ws={[Es]:e=>We(e)||Qt(e)||Gt(e),change:e=>We(e)||Qt(e)||Gt(e)},Ss=Symbol("checkboxGroupContextKey"),Ts=e=>{const t=(0,l.getCurrentInstance)();return(0,l.computed)((()=>{var n,r;return null==(r=null==(n=null==t?void 0:t.proxy)?void 0:n.$props)?void 0:r[e]}))},As=(e,t={})=>{const n=(0,l.ref)(void 0),r=t.prop?n:Ts("size"),o=t.global?n:(()=>{const e=(0,l.inject)(_s,{});return(0,l.computed)((()=>(0,l.unref)(e.size)||""))})(),i=t.form?{size:void 0}:(0,l.inject)(Qo,void 0),s=t.formItem?{size:void 0}:(0,l.inject)(Xo,void 0);return(0,l.computed)((()=>r.value||(0,l.unref)(e)||(null==s?void 0:s.size)||(null==i?void 0:i.size)||o.value||""))},Ps=e=>{const t=Ts("disabled"),n=(0,l.inject)(Qo,void 0);return(0,l.computed)((()=>t.value||(0,l.unref)(e)||(null==n?void 0:n.disabled)||!1))},Os=()=>({form:(0,l.inject)(Qo,void 0),formItem:(0,l.inject)(Xo,void 0)}),Cs=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=(0,l.ref)(!1)),r||(r=(0,l.ref)(!1));const o=(0,l.ref)();let i;const s=(0,l.computed)((()=>{var n;return!!(!e.label&&!e.ariaLabel&&t&&t.inputIds&&(null==(n=t.inputIds)?void 0:n.length)<=1)}));return(0,l.onMounted)((()=>{i=(0,l.watch)([(0,l.toRef)(e,"id"),n],(([e,n])=>{const i=null!=e?e:n?void 0:qr().value;i!==o.value&&((null==t?void 0:t.removeInputId)&&(o.value&&t.removeInputId(o.value),(null==r?void 0:r.value)||n||!i||t.addInputId(i)),o.value=i)}),{immediate:!0})})),(0,l.onUnmounted)((()=>{i&&i(),(null==t?void 0:t.removeInputId)&&o.value&&t.removeInputId(o.value)})),{isLabeledByFormItem:s,inputId:o}};var ks=n(46996);const Is=({from:e,replacement:t,scope:n,version:r,ref:o,type:i="API"},s)=>{(0,l.watch)((()=>(0,l.unref)(s)),(e=>{}),{immediate:!0})},Ns=(e,t)=>{const{formItem:n}=Os(),{model:r,isGroup:o,isLimitExceeded:i}=(e=>{const t=(0,l.ref)(!1),{emit:n}=(0,l.getCurrentInstance)(),r=(0,l.inject)(Ss,void 0),o=(0,l.computed)((()=>!1===Ht(r))),i=(0,l.ref)(!1),s=(0,l.computed)({get(){var n,i;return o.value?null==(n=null==r?void 0:r.modelValue)?void 0:n.value:null!=(i=e.modelValue)?i:t.value},set(e){var a,l;o.value&&Ve(e)?(i.value=void 0!==(null==(a=null==r?void 0:r.max)?void 0:a.value)&&e.length>(null==r?void 0:r.max.value)&&e.length>s.value.length,!1===i.value&&(null==(l=null==r?void 0:r.changeEvent)||l.call(r,e))):(n(Es,e),t.value=e)}});return{model:s,isGroup:o,isLimitExceeded:i}})(e),{isFocused:s,isChecked:a,checkboxButtonSize:c,checkboxSize:u,hasOwnLabel:p,actualValue:f}=((e,t,{model:n})=>{const r=(0,l.inject)(Ss,void 0),o=(0,l.ref)(!1),i=(0,l.computed)((()=>Yt(e.value)?e.label:e.value)),s=(0,l.computed)((()=>{const t=n.value;return Gt(t)?t:Ve(t)?Ke(i.value)?t.map(l.toRaw).some((e=>(0,ks.A)(e,i.value))):t.map(l.toRaw).includes(i.value):null!=t?t===e.trueValue||t===e.trueLabel:!!t})),a=As((0,l.computed)((()=>{var e;return null==(e=null==r?void 0:r.size)?void 0:e.value})),{prop:!0}),c=As((0,l.computed)((()=>{var e;return null==(e=null==r?void 0:r.size)?void 0:e.value})));return{checkboxButtonSize:a,isChecked:s,isFocused:o,checkboxSize:c,hasOwnLabel:(0,l.computed)((()=>!!t.default||!Yt(i.value))),actualValue:i}})(e,t,{model:r}),{isDisabled:d}=(({model:e,isChecked:t})=>{const n=(0,l.inject)(Ss,void 0),r=(0,l.computed)((()=>{var r,o;const i=null==(r=null==n?void 0:n.max)?void 0:r.value,s=null==(o=null==n?void 0:n.min)?void 0:o.value;return!Ht(i)&&e.value.length>=i&&!t.value||!Ht(s)&&e.value.length<=s&&t.value}));return{isDisabled:Ps((0,l.computed)((()=>(null==n?void 0:n.disabled.value)||r.value))),isLimitDisabled:r}})({model:r,isChecked:a}),{inputId:h,isLabeledByFormItem:m}=Cs(e,{formItemContext:n,disableIdGeneration:p,disableIdManagement:o}),{handleChange:y,onClickRoot:g}=((e,{model:t,isLimitExceeded:n,hasOwnLabel:r,isDisabled:o,isLabeledByFormItem:i})=>{const s=(0,l.inject)(Ss,void 0),{formItem:a}=Os(),{emit:c}=(0,l.getCurrentInstance)();function u(t){var n,r,o,i;return[!0,e.trueValue,e.trueLabel].includes(t)?null==(r=null!=(n=e.trueValue)?n:e.trueLabel)||r:null!=(i=null!=(o=e.falseValue)?o:e.falseLabel)&&i}const p=(0,l.computed)((()=>(null==s?void 0:s.validateEvent)||e.validateEvent));return(0,l.watch)((()=>e.modelValue),(()=>{p.value&&(null==a||a.validate("change").catch((e=>{})))})),{handleChange:function(e){if(n.value)return;const t=e.target;c("change",u(t.checked),e)},onClickRoot:async function(s){n.value||r.value||o.value||!i.value||s.composedPath().some((e=>"LABEL"===e.tagName))||(t.value=u([!1,e.falseValue,e.falseLabel].includes(t.value)),await(0,l.nextTick)(),function(e,t){c("change",u(e),t)}(t.value,s))}}})(e,{model:r,isLimitExceeded:i,hasOwnLabel:p,isDisabled:d,isLabeledByFormItem:m});return e.checked&&function(){var t,n;Ve(r.value)&&!r.value.includes(f.value)?r.value.push(f.value):r.value=null==(n=null!=(t=e.trueValue)?t:e.trueLabel)||n}(),Is({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},(0,l.computed)((()=>o.value&&Yt(e.value)))),Is({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},(0,l.computed)((()=>!!e.trueLabel))),Is({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},(0,l.computed)((()=>!!e.falseLabel))),{inputId:h,isLabeledByFormItem:m,isChecked:a,isDisabled:d,isFocused:s,checkboxButtonSize:c,checkboxSize:u,hasOwnLabel:p,model:r,actualValue:f,handleChange:y,onClickRoot:g}},js=(0,l.defineComponent)({name:"ElCheckbox"}),Ds=(0,l.defineComponent)({...js,props:xs,emits:ws,setup(e){const t=e,n=(0,l.useSlots)(),{inputId:r,isLabeledByFormItem:o,isChecked:i,isDisabled:s,isFocused:a,checkboxSize:c,hasOwnLabel:u,model:p,actualValue:f,handleChange:d,onClickRoot:h}=Ns(t,n),m=it("checkbox"),y=(0,l.computed)((()=>[m.b(),m.m(c.value),m.is("disabled",s.value),m.is("bordered",t.border),m.is("checked",i.value)])),g=(0,l.computed)((()=>[m.e("input"),m.is("disabled",s.value),m.is("checked",i.value),m.is("indeterminate",t.indeterminate),m.is("focus",a.value)]));return(e,t)=>((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(!(0,l.unref)(u)&&(0,l.unref)(o)?"span":"label"),{class:(0,l.normalizeClass)((0,l.unref)(y)),"aria-controls":e.indeterminate?e.ariaControls:null,onClick:(0,l.unref)(h)},{default:(0,l.withCtx)((()=>{var t,n;return[(0,l.createElementVNode)("span",{class:(0,l.normalizeClass)((0,l.unref)(g))},[e.trueValue||e.falseValue||e.trueLabel||e.falseLabel?(0,l.withDirectives)(((0,l.openBlock)(),(0,l.createElementBlock)("input",{key:0,id:(0,l.unref)(r),"onUpdate:modelValue":e=>(0,l.isRef)(p)?p.value=e:null,class:(0,l.normalizeClass)((0,l.unref)(m).e("original")),type:"checkbox",indeterminate:e.indeterminate,name:e.name,tabindex:e.tabindex,disabled:(0,l.unref)(s),"true-value":null!=(t=e.trueValue)?t:e.trueLabel,"false-value":null!=(n=e.falseValue)?n:e.falseLabel,onChange:(0,l.unref)(d),onFocus:e=>a.value=!0,onBlur:e=>a.value=!1,onClick:(0,l.withModifiers)((()=>{}),["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[l.vModelCheckbox,(0,l.unref)(p)]]):(0,l.withDirectives)(((0,l.openBlock)(),(0,l.createElementBlock)("input",{key:1,id:(0,l.unref)(r),"onUpdate:modelValue":e=>(0,l.isRef)(p)?p.value=e:null,class:(0,l.normalizeClass)((0,l.unref)(m).e("original")),type:"checkbox",indeterminate:e.indeterminate,disabled:(0,l.unref)(s),value:(0,l.unref)(f),name:e.name,tabindex:e.tabindex,onChange:(0,l.unref)(d),onFocus:e=>a.value=!0,onBlur:e=>a.value=!1,onClick:(0,l.withModifiers)((()=>{}),["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","disabled","value","name","tabindex","onChange","onFocus","onBlur","onClick"])),[[l.vModelCheckbox,(0,l.unref)(p)]]),(0,l.createElementVNode)("span",{class:(0,l.normalizeClass)((0,l.unref)(m).e("inner"))},null,2)],2),(0,l.unref)(u)?((0,l.openBlock)(),(0,l.createElementBlock)("span",{key:0,class:(0,l.normalizeClass)((0,l.unref)(m).e("label"))},[(0,l.renderSlot)(e.$slots,"default"),e.$slots.default?(0,l.createCommentVNode)("v-if",!0):((0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,{key:0},[(0,l.createTextVNode)((0,l.toDisplayString)(e.label),1)],64))],2)):(0,l.createCommentVNode)("v-if",!0)]})),_:3},8,["class","aria-controls","onClick"]))}});var Ms=et(Ds,[["__file","checkbox.vue"]]);const Ls=(0,l.defineComponent)({name:"ElCheckboxButton"}),Rs=(0,l.defineComponent)({...Ls,props:xs,emits:ws,setup(e){const t=e,n=(0,l.useSlots)(),{isFocused:r,isChecked:o,isDisabled:i,checkboxButtonSize:s,model:a,actualValue:c,handleChange:u}=Ns(t,n),p=(0,l.inject)(Ss,void 0),f=it("checkbox"),d=(0,l.computed)((()=>{var e,t,n,r;const o=null!=(t=null==(e=null==p?void 0:p.fill)?void 0:e.value)?t:"";return{backgroundColor:o,borderColor:o,color:null!=(r=null==(n=null==p?void 0:p.textColor)?void 0:n.value)?r:"",boxShadow:o?`-1px 0 0 0 ${o}`:void 0}})),h=(0,l.computed)((()=>[f.b("button"),f.bm("button",s.value),f.is("disabled",i.value),f.is("checked",o.value),f.is("focus",r.value)]));return(e,t)=>{var n,s;return(0,l.openBlock)(),(0,l.createElementBlock)("label",{class:(0,l.normalizeClass)((0,l.unref)(h))},[e.trueValue||e.falseValue||e.trueLabel||e.falseLabel?(0,l.withDirectives)(((0,l.openBlock)(),(0,l.createElementBlock)("input",{key:0,"onUpdate:modelValue":e=>(0,l.isRef)(a)?a.value=e:null,class:(0,l.normalizeClass)((0,l.unref)(f).be("button","original")),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:(0,l.unref)(i),"true-value":null!=(n=e.trueValue)?n:e.trueLabel,"false-value":null!=(s=e.falseValue)?s:e.falseLabel,onChange:(0,l.unref)(u),onFocus:e=>r.value=!0,onBlur:e=>r.value=!1,onClick:(0,l.withModifiers)((()=>{}),["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[l.vModelCheckbox,(0,l.unref)(a)]]):(0,l.withDirectives)(((0,l.openBlock)(),(0,l.createElementBlock)("input",{key:1,"onUpdate:modelValue":e=>(0,l.isRef)(a)?a.value=e:null,class:(0,l.normalizeClass)((0,l.unref)(f).be("button","original")),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:(0,l.unref)(i),value:(0,l.unref)(c),onChange:(0,l.unref)(u),onFocus:e=>r.value=!0,onBlur:e=>r.value=!1,onClick:(0,l.withModifiers)((()=>{}),["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","value","onChange","onFocus","onBlur","onClick"])),[[l.vModelCheckbox,(0,l.unref)(a)]]),e.$slots.default||e.label?((0,l.openBlock)(),(0,l.createElementBlock)("span",{key:2,class:(0,l.normalizeClass)((0,l.unref)(f).be("button","inner")),style:(0,l.normalizeStyle)((0,l.unref)(o)?(0,l.unref)(d):void 0)},[(0,l.renderSlot)(e.$slots,"default",{},(()=>[(0,l.createTextVNode)((0,l.toDisplayString)(e.label),1)]))],6)):(0,l.createCommentVNode)("v-if",!0)],2)}}});var Bs=et(Rs,[["__file","checkbox-button.vue"]]);const qs=Je({modelValue:{type:Array,default:()=>[]},disabled:Boolean,min:Number,max:Number,size:bs,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},...Wt(["ariaLabel"])}),Fs={[Es]:e=>Ve(e),change:e=>Ve(e)},Us=(0,l.defineComponent)({name:"ElCheckboxGroup"}),Vs=(0,l.defineComponent)({...Us,props:qs,emits:Fs,setup(e,{emit:t}){const n=e,r=it("checkbox"),{formItem:o}=Os(),{inputId:i,isLabeledByFormItem:s}=Cs(n,{formItemContext:o}),a=async e=>{t(Es,e),await(0,l.nextTick)(),t("change",e)},c=(0,l.computed)({get:()=>n.modelValue,set(e){a(e)}});return(0,l.provide)(Ss,{...Vt((0,l.toRefs)(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:c,changeEvent:a}),(0,l.watch)((()=>n.modelValue),(()=>{n.validateEvent&&(null==o||o.validate("change").catch((e=>{})))})),(e,t)=>{var n;return(0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.tag),{id:(0,l.unref)(i),class:(0,l.normalizeClass)((0,l.unref)(r).b("group")),role:"group","aria-label":(0,l.unref)(s)?void 0:e.ariaLabel||"checkbox-group","aria-labelledby":(0,l.unref)(s)?null==(n=(0,l.unref)(o))?void 0:n.labelId:void 0},{default:(0,l.withCtx)((()=>[(0,l.renderSlot)(e.$slots,"default")])),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var $s=et(Vs,[["__file","checkbox-group.vue"]]);const Ws=rn(Ms,{CheckboxButton:Bs,CheckboxGroup:$s});on(Bs),on($s);var Ks={key:0},zs=["disabled"],Hs=["label","onClick"],Gs=n(86864),Qs=n(27077);const Xs=new Map;if(Le.oc){let e;document.addEventListener("mousedown",(t=>e=t)),document.addEventListener("mouseup",(t=>{if(e){for(const n of Xs.values())for(const{documentHandler:r}of n)r(t,e);e=void 0}}))}function Ys(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:Xt(t.arg)&&n.push(t.arg),function(r,o){const i=t.instance.popperRef,s=r.target,a=null==o?void 0:o.target,l=!t||!t.instance,c=!s||!a,u=e.contains(s)||e.contains(a),p=e===s,f=n.length&&n.some((e=>null==e?void 0:e.contains(s)))||n.length&&n.includes(a),d=i&&(i.contains(s)||i.contains(a));l||c||u||p||f||d||t.value(r,o)}}const Js={beforeMount(e,t){Xs.has(e)||Xs.set(e,[]),Xs.get(e).push({documentHandler:Ys(e,t),bindingFn:t.value})},updated(e,t){Xs.has(e)||Xs.set(e,[]);const n=Xs.get(e),r=n.findIndex((e=>e.bindingFn===t.oldValue)),o={documentHandler:Ys(e,t),bindingFn:t.value};r>=0?n.splice(r,1,o):n.push(o)},unmounted(e){Xs.delete(e)}};var Zs=Ws.CheckboxGroup;const ea=(0,l.defineComponent)({name:"ElTableFilterPanel",components:{ElCheckbox:Ws,ElCheckboxGroup:Zs,ElScrollbar:sn,ElTooltip:Ni,ElIcon:Gs.ElIcon,ArrowDown:Qs.ArrowDown,ArrowUp:Qs.ArrowUp},directives:{ClickOutside:Js},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup:function(e){var t=(0,l.getCurrentInstance)(),n=(0,je.useLocale)().t,r=(0,je.useNamespace)("table-filter"),o=null==t?void 0:t.parent;o.filterPanels.value[e.column.id]||(o.filterPanels.value[e.column.id]=t);var i=(0,l.ref)(!1),s=(0,l.ref)(null),a=(0,l.computed)((function(){return e.column&&e.column.filters})),c=(0,l.computed)((function(){var t;return e.column.filterClassName?F()(t="".concat(r.b()," ")).call(t,e.column.filterClassName):r.b()})),u=(0,l.computed)({get:function(){var t;return((null===(t=e.column)||void 0===t?void 0:t.filteredValue)||[])[0]},set:function(e){var t,n;p.value&&(null!=e?pn()(t=p.value).call(t,0,1,e):pn()(n=p.value).call(n,0,1))}}),p=(0,l.computed)({get:function(){return e.column&&e.column.filteredValue||[]},set:function(t){e.column&&e.upDataColumn("filteredValue",t)}}),f=(0,l.computed)((function(){return!e.column||e.column.filterMultiple})),d=function(){i.value=!1},h=function(t){e.store.commit("filterChange",{column:e.column,values:t}),e.store.updateAllSelected()};(0,l.watch)(i,(function(t){e.column&&e.upDataColumn("filterOpened",t)}),{immediate:!0});var m=(0,l.computed)((function(){var e,t;return null===(t=null===(e=s.value)||void 0===e?void 0:e.popperRef)||void 0===t?void 0:t.contentRef}));return{tooltipVisible:i,multiple:f,filterClassName:c,filteredValue:p,filterValue:u,filters:a,handleConfirm:function(){h(p.value),d()},handleReset:function(){p.value=[],h(p.value),d()},handleSelect:function(e){u.value=e,h(null!=e?p.value:[]),d()},isActive:function(e){return e.value===u.value},t:n,ns:r,showFilterPanel:function(e){e.stopPropagation(),i.value=!i.value},hideFilterPanel:function(){i.value=!1},popperPaneRef:m,tooltip:s}}});var ta=n(66262);const na=(0,ta.A)(ea,[["render",function(e,t,n,r,o,i){var s=(0,l.resolveComponent)("el-checkbox"),a=(0,l.resolveComponent)("el-checkbox-group"),c=(0,l.resolveComponent)("el-scrollbar"),u=(0,l.resolveComponent)("arrow-up"),p=(0,l.resolveComponent)("arrow-down"),f=(0,l.resolveComponent)("el-icon"),d=(0,l.resolveComponent)("el-tooltip"),h=(0,l.resolveDirective)("click-outside");return(0,l.openBlock)(),(0,l.createBlock)(d,{ref:"tooltip",visible:e.tooltipVisible,offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.filterClassName,persistent:""},{content:(0,l.withCtx)((function(){var n,r;return[e.multiple?((0,l.openBlock)(),(0,l.createElementBlock)("div",Ks,[(0,l.createElementVNode)("div",{class:(0,l.normalizeClass)(e.ns.e("content"))},[(0,l.createVNode)(c,{"wrap-class":e.ns.e("wrap")},{default:(0,l.withCtx)((function(){return[(0,l.createVNode)(a,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.filteredValue=t}),class:(0,l.normalizeClass)(e.ns.e("checkbox-group"))},{default:(0,l.withCtx)((function(){return[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(e.filters,(function(e){return(0,l.openBlock)(),(0,l.createBlock)(s,{key:e.value,value:e.value},{default:(0,l.withCtx)((function(){return[(0,l.createTextVNode)((0,l.toDisplayString)(e.text),1)]})),_:2},1032,["value"])})),128))]})),_:1},8,["modelValue","class"])]})),_:1},8,["wrap-class"])],2),(0,l.createElementVNode)("div",{class:(0,l.normalizeClass)(e.ns.e("bottom"))},[(0,l.createElementVNode)("button",{class:(0,l.normalizeClass)((n={},n[e.ns.is("disabled")]=0===e.filteredValue.length,n)),disabled:0===e.filteredValue.length,type:"button",onClick:t[1]||(t[1]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.handleConfirm&&e.handleConfirm.apply(e,t)})},(0,l.toDisplayString)(e.t("el.table.confirmFilter")),11,zs),(0,l.createElementVNode)("button",{type:"button",onClick:t[2]||(t[2]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.handleReset&&e.handleReset.apply(e,t)})},(0,l.toDisplayString)(e.t("el.table.resetFilter")),1)],2)])):((0,l.openBlock)(),(0,l.createElementBlock)("ul",{key:1,class:(0,l.normalizeClass)(e.ns.e("list"))},[(0,l.createElementVNode)("li",{class:(0,l.normalizeClass)([e.ns.e("list-item"),(r={},r[e.ns.is("active")]=void 0===e.filterValue||null===e.filterValue,r)]),onClick:t[3]||(t[3]=function(t){return e.handleSelect(null)})},(0,l.toDisplayString)(e.t("el.table.clearFilter")),3),((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(e.filters,(function(t){return(0,l.openBlock)(),(0,l.createElementBlock)("li",{key:t.value,class:(0,l.normalizeClass)([e.ns.e("list-item"),e.ns.is("active",e.isActive(t))]),label:t.value,onClick:function(n){return e.handleSelect(t.value)}},(0,l.toDisplayString)(t.text),11,Hs)})),128))],2))]})),default:(0,l.withCtx)((function(){return[(0,l.withDirectives)(((0,l.openBlock)(),(0,l.createElementBlock)("span",{class:(0,l.normalizeClass)(["".concat(e.ns.namespace.value,"-table__column-filter-trigger"),"".concat(e.ns.namespace.value,"-none-outline")]),onClick:t[4]||(t[4]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.showFilterPanel&&e.showFilterPanel.apply(e,t)})},[(0,l.createVNode)(f,null,{default:(0,l.withCtx)((function(){return[e.column.filterOpened?((0,l.openBlock)(),(0,l.createBlock)(u,{key:0})):((0,l.openBlock)(),(0,l.createBlock)(p,{key:1}))]})),_:1})],2)),[[h,e.hideFilterPanel,e.popperPaneRef]])]})),_:1},8,["visible","placement","popper-class"])}]]),ra=na,oa=function(e){var t=(0,l.getCurrentInstance)();(0,l.onBeforeMount)((function(){n.value.addObserver(t)})),(0,l.onMounted)((function(){r(n.value),o(n.value)})),(0,l.onUpdated)((function(){r(n.value),o(n.value)})),(0,l.onUnmounted)((function(){n.value.removeObserver(t)}));var n=(0,l.computed)((function(){var t=e.layout;if(!t)throw new Error("Can not find table layout.");return t})),r=function(t){var n,r=(null===(n=e.vnode.el)||void 0===n?void 0:n.querySelectorAll("colgroup > col"))||[];if(r.length){var o=t.getFlattenColumns(),i={};L()(o).call(o,(function(e){i[e.id]=e}));for(var s=0,a=r.length;s<a;s++){var l=r[s],c=l.getAttribute("name"),u=i[c];u&&l.setAttribute("width",u.realWidth||u.width)}}},o=function(t){for(var n,r,o=(null===(n=e.vnode.el)||void 0===n?void 0:n.querySelectorAll("colgroup > col[name=gutter]"))||[],i=0,s=o.length;i<s;i++)o[i].setAttribute("width",t.scrollY.value?t.gutterWidth:"0");var a=(null===(r=e.vnode.el)||void 0===r?void 0:r.querySelectorAll("th.gutter"))||[];for(i=0,s=a.length;i<s;i++){var l=a[i];l.style.width=t.scrollY.value?"".concat(t.gutterWidth,"px"):"0",l.style.display=t.scrollY.value?"":"none"}};return{tableLayout:n.value,onColumnsChange:r,onScrollableChange:o}};var ia=ys()("ElTable"),sa=n(56255),aa=n.n(sa);n(48598);const la=function(e){var t=(0,l.inject)(ia),n=(0,je.useNamespace)("table");return{getHeaderRowStyle:function(e){var n=null==t?void 0:t.props.headerRowStyle;return"function"==typeof n?n.call(null,{rowIndex:e}):n},getHeaderRowClass:function(e){var n=[],r=null==t?void 0:t.props.headerRowClassName;return"string"==typeof r?n.push(r):"function"==typeof r&&n.push(r.call(null,{rowIndex:e})),n.join(" ")},getHeaderCellStyle:function(n,r,o,i){var s,a=null!==(s=null==t?void 0:t.props.headerCellStyle)&&void 0!==s?s:{};"function"==typeof a&&(a=a.call(null,{rowIndex:n,columnIndex:r,row:o,column:i}));var l=Qi(r,i.fixed,e.store,o);return Xi(l,"left"),Xi(l,"right"),cn()({},a,l)},getHeaderCellClass:function(r,o,i,s){var a=Hi(n.b(),o,s.fixed,e.store,i),l=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=_()(Array.prototype).call(t,0,o)),r[o]=t[o]);return F()(e).call(e,r||_()(Array.prototype).call(t))}([s.id,s.order,s.headerAlign,s.className,s.labelClassName],a,!0);s.children||l.push("is-leaf"),s.sortable&&l.push("is-sortable");var c=null==t?void 0:t.props.headerCellClassName;return"string"==typeof c?l.push(c):"function"==typeof c&&l.push(c.call(null,{rowIndex:r,columnIndex:o,row:i,column:s})),l.push(n.e("cell")),S()(l).call(l,(function(e){return Boolean(e)})).join(" ")}}};var ca=function(e){var t=[];return L()(e).call(e,(function(e){e.children?(t.push(e),t.push.apply(t,ca(e.children))):t.push(e)})),t},ua=function(e){var t=1,n=function(e,r){if(r&&(e.level=r.level+1,t<e.level&&(t=e.level)),e.children){var o,i=0;L()(o=e.children).call(o,(function(t){n(t,e),i+=t.colSpan})),e.colSpan=i}else e.colSpan=1};L()(e).call(e,(function(e){e.level=1,n(e,void 0)}));for(var r=[],o=0;o<t;o++)r.push([]);var i=ca(e);return L()(i).call(i,(function(e){var n;e.children?(e.rowSpan=1,L()(n=e.children).call(n,(function(e){return e.isSubColumn=!0}))):e.rowSpan=t-e.level+1,r[e.level-1].push(e)})),r};const pa=(0,l.defineComponent)({name:"ElTableHeader",components:{ElCheckbox:Ws},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:function(){return{prop:"",order:""}}}},setup:function(e,t){var n=this,r=t.emit,o=(0,l.getCurrentInstance)(),i=(0,l.inject)(ia),s=(0,je.useNamespace)("table"),a=(0,l.ref)({}),c=oa(i),u=c.onColumnsChange,p=c.onScrollableChange;(0,l.onMounted)((function(){return t=n,r=void 0,s=function(){var t,n,r;return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=hs()(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof ys()&&(s[vs()]=function(){return this}),s;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}(this,(function(o){switch(o.label){case 0:return[4,(0,l.nextTick)()];case 1:return o.sent(),[4,(0,l.nextTick)()];case 2:return o.sent(),t=e.defaultSort,n=t.prop,r=t.order,null==i||i.store.commit("sort",{prop:n,order:r,init:!0}),[2]}}))},new((o=void 0)||(o=fs()))((function(e,n){function i(e){try{l(s.next(e))}catch(e){n(e)}}function a(e){try{l(s.throw(e))}catch(e){n(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(i,a)}l((s=s.apply(t,r||[])).next())}));var t,r,o,s}));var f=function(e,t){var n=(0,l.getCurrentInstance)(),r=(0,l.inject)(ia),o=function(e){e.stopPropagation()},i=(0,l.ref)(null),s=(0,l.ref)(!1),a=(0,l.ref)({}),c=function(t,n,o){var i;t.stopPropagation();var s=n.order===o?null:o||function(e){var t=e.order,n=e.sortOrders;if(""===t)return n[0];var r=B()(n).call(n,t||null);return n[r>n.length-2?0:r+1]}(n),a=null===(i=t.target)||void 0===i?void 0:i.closest("th");if(a&&(0,V.hasClass)(a,"noclick"))(0,V.removeClass)(a,"noclick");else if(n.sortable){var l,c=e.store.states,u=c.sortProp.value,p=c.sortingColumn.value;(p!==n||p===n&&null===p.order)&&(p&&(p.order=null),c.sortingColumn.value=n,u=n.property),l=n.order=s||null,c.sortProp.value=u,c.sortOrder.value=l,null==r||r.store.commit("changeSortCondition")}};return{handleHeaderClick:function(e,t){!t.filters&&t.sortable?c(e,t,!1):t.filterable&&!t.sortable&&o(e),null==r||r.emit("header-click",t,e)},handleHeaderContextMenu:function(e,t){null==r||r.emit("header-contextmenu",t,e)},handleMouseDown:function(o,l){if(V.isClient&&!(l.children&&l.children.length>0)&&i.value&&e.border){s.value=!0;var c=r;t("set-drag-visible",!0);var u=(null==c?void 0:c.vnode.el).getBoundingClientRect().left,p=n.vnode.el.querySelector("th.".concat(l.id)),f=p.getBoundingClientRect(),d=f.left-u+30;(0,V.addClass)(p,"noclick"),a.value={startMouseLeft:o.clientX,startLeft:f.right-u,startColumnLeft:f.left-u,tableLeft:u};var h=null==c?void 0:c.refs.resizeProxy;h.style.left="".concat(a.value.startLeft,"px"),document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};var m=function(e){var t=e.clientX-a.value.startMouseLeft,n=a.value.startLeft+t;h.style.left="".concat(Math.max(d,n),"px")},y=function(){if(s.value){var n=a.value,r=n.startColumnLeft,u=n.startLeft,f=gn()(h.style.left,10)-r;l.width=l.realWidth=f,null==c||c.emit("header-dragend",l.width,u-r,l,o),requestAnimationFrame((function(){e.store.scheduleLayout(!1,!0)})),document.body.style.cursor="",s.value=!1,i.value=null,a.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",y),document.onselectstart=null,document.ondragstart=null,aa()((function(){(0,V.removeClass)(p,"noclick")}),0)};document.addEventListener("mousemove",m),document.addEventListener("mouseup",y)}},handleMouseMove:function(t,n){if(!(n.children&&n.children.length>0)){var r=t.target;if((0,V.isElement)(r)){var o=null==r?void 0:r.closest("th");if(n&&n.resizable&&!s.value&&e.border){var a=o.getBoundingClientRect(),l=document.body.style;a.width>12&&a.right-t.pageX<8?(l.cursor="col-resize",(0,V.hasClass)(o,"is-sortable")&&(o.style.cursor="col-resize"),i.value=n):s.value||(l.cursor="",(0,V.hasClass)(o,"is-sortable")&&(o.style.cursor="pointer"),i.value=null)}}}},handleMouseOut:function(){V.isClient&&(document.body.style.cursor="")},handleSortClick:c,handleFilterClick:o}}(e,r),d=f.handleHeaderClick,h=f.handleHeaderContextMenu,m=f.handleMouseDown,y=f.handleMouseMove,g=f.handleMouseOut,v=f.handleSortClick,b=f.handleFilterClick,_=la(e),E=_.getHeaderRowStyle,x=_.getHeaderRowClass,w=_.getHeaderCellStyle,S=_.getHeaderCellClass,T=function(e){var t=(0,l.inject)(ia),n=(0,l.computed)((function(){return ua(e.store.states.originColumns.value)}));return{isGroup:(0,l.computed)((function(){var e=n.value.length>1;return e&&t&&(t.state.isGroup.value=!0),e})),toggleAllSelection:function(e){e.stopPropagation(),null==t||t.store.commit("toggleAllSelection")},columnRows:n}}(e),A=T.isGroup,P=T.toggleAllSelection,O=T.columnRows;return o.state={onColumnsChange:u,onScrollableChange:p},o.filterPanels=a,{ns:s,filterPanels:a,onColumnsChange:u,onScrollableChange:p,columnRows:O,getHeaderRowClass:x,getHeaderRowStyle:E,getHeaderCellClass:S,getHeaderCellStyle:w,handleHeaderClick:d,handleHeaderContextMenu:h,handleMouseDown:m,handleMouseMove:y,handleMouseOut:g,handleSortClick:v,handleFilterClick:b,isGroup:A,toggleAllSelection:P}},render:function(){var e,t=this,n=t.ns,r=t.isGroup,o=t.columnRows,i=t.getHeaderCellStyle,s=t.getHeaderCellClass,a=t.getHeaderRowClass,c=t.getHeaderRowStyle,u=t.handleHeaderClick,p=t.handleHeaderContextMenu,f=t.handleMouseDown,d=t.handleMouseMove,h=t.handleSortClick,m=t.handleMouseOut,g=t.store,v=t.$parent,b=1;return(0,l.h)("thead",{class:(e={},e[n.is("group")]=r,e)},y()(o).call(o,(function(e,t){return(0,l.h)("tr",{class:a(t),key:t,style:c(t)},y()(e).call(e,(function(n,r){return n.rowSpan>b&&(b=n.rowSpan),(0,l.h)("th",{class:s(t,r,e,n),colspan:n.colSpan,key:"".concat(n.id,"-thead"),rowspan:n.rowSpan,style:i(t,r,e,n),onClick:function(e){e.currentTarget.classList.contains("noclick")||u(e,n)},onContextmenu:function(e){return p(e,n)},onMousedown:function(e){return f(e,n)},onMousemove:function(e){return d(e,n)},onMouseout:m},[(0,l.h)("div",{class:["cell",n.filteredValue&&n.filteredValue.length>0?"highlight":""]},[n.renderHeader?n.renderHeader({column:n,$index:r,store:g,_self:v}):n.label,n.sortable&&(0,l.h)("span",{onClick:function(e){return h(e,n)},class:"caret-wrapper"},[(0,l.h)("i",{onClick:function(e){return h(e,n,"ascending")},class:"sort-caret ascending"}),(0,l.h)("i",{onClick:function(e){return h(e,n,"descending")},class:"sort-caret descending"})]),n.filterable&&(0,l.h)(ra,{store:g,placement:n.filterPlacement||"bottom-start",column:n,upDataColumn:function(e,t){n[e]=t}})])])})))})))}});var fa=n(49763),da=n.n(fa),ha=n(14404);const ma=(0,n(41703).A)((function(e,t,n){(0,ha.A)(e,t,n)}));function ya(e,t,n){return void 0===n&&(n=.01),e-t>n}const ga=function(e){var t=(0,l.inject)(ia),n=(0,je.useNamespace)("table");return{getRowStyle:function(e,n){var r=null==t?void 0:t.props.rowStyle;return"function"==typeof r?r.call(null,{row:e,rowIndex:n}):r||null},getRowClass:function(r,o){var i=[n.e("row")];(null==t?void 0:t.props.highlightCurrentRow)&&r===e.store.states.currentRow.value&&i.push("current-row"),e.stripe&&o%2==1&&i.push(n.em("row","striped"));var s=null==t?void 0:t.props.rowClassName;return"string"==typeof s?i.push(s):"function"==typeof s&&i.push(s.call(null,{row:r,rowIndex:o})),i},getCellStyle:function(n,r,o,i){var s=null==t?void 0:t.props.cellStyle,a=null!=s?s:{};"function"==typeof s&&(a=s.call(null,{rowIndex:n,columnIndex:r,row:o,column:i}));var l=Qi(r,null==e?void 0:e.fixed,e.store);return Xi(l,"left"),Xi(l,"right"),cn()({},a,l)},getCellClass:function(r,o,i,s,a){var l=Hi(n.b(),o,null==e?void 0:e.fixed,e.store,void 0,a),c=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=_()(Array.prototype).call(t,0,o)),r[o]=t[o]);return F()(e).call(e,r||_()(Array.prototype).call(t))}([s.id,s.align,s.className],l,!0),u=null==t?void 0:t.props.cellClassName;return"string"==typeof u?c.push(u):"function"==typeof u&&c.push(u.call(null,{rowIndex:r,columnIndex:o,row:i,column:s})),c.push(n.e("cell")),S()(c).call(c,(function(e){return Boolean(e)})).join(" ")},getSpan:function(e,n,r,o){var i=1,s=1,a=null==t?void 0:t.props.spanMethod;if("function"==typeof a){var l=a({row:e,column:n,rowIndex:r,columnIndex:o});h()(l)?(i=l[0],s=l[1]):"object"===(0,an.A)(l)&&(i=l.rowspan,s=l.colspan)}return{rowspan:i,colspan:s}},getColspanRealWidth:function(e,t,n){var r;if(t<1)return e[n].realWidth;var o=_()(r=y()(e).call(e,(function(e){var t=e.realWidth,n=e.width;return t||n}))).call(r,n,n+t);return Number(u()(o).call(o,(function(e,t){return Number(e)+Number(t)}),-1))}}};var va=function(){return va=cn()||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},va.apply(this,arguments)};const ba=function(e){var t=(0,l.inject)(ia),n=(0,je.useNamespace)("table"),r=function(e){var t=(0,l.inject)(ia),n=(0,l.ref)(""),r=(0,l.ref)((0,l.h)("div")),o=function(n,r,o){var i,s,a=t,l=Di(n),c=null===(i=null==a?void 0:a.vnode.el)||void 0===i?void 0:i.dataset.prefix;l&&(s=Li({columns:e.store.states.columns.value},l,c))&&(null==a||a.emit("cell-".concat(o),r,s,l,n)),null==a||a.emit("row-".concat(o),r,s,n)},i=ae((function(t){e.store.commit("setHoverRow",t)}),30),s=ae((function(){e.store.commit("setHoverRow",null)}),30),a=function(e,t,n){for(var r=t.target.parentNode;e>1&&(r=null==r?void 0:r.nextSibling)&&"TR"===r.nodeName;)n(r,"hover-row hover-fixed-row"),e--};return{handleDoubleClick:function(e,t){o(e,t,"dblclick")},handleClick:function(t,n){e.store.commit("setCurrentRow",n),o(t,n,"click")},handleContextMenu:function(e,t){o(e,t,"contextmenu")},handleMouseEnter:i,handleMouseLeave:s,handleCellMouseEnter:function(n,r,o){var i,s=t,c=Di(n),u=null===(i=null==s?void 0:s.vnode.el)||void 0===i?void 0:i.dataset.prefix;if(c){var p=Li({columns:e.store.states.columns.value},c,u);c.rowSpan>1&&a(c.rowSpan,n,V.addClass);var f=s.hoverState={cell:c,column:p,row:r};null==s||s.emit("cell-mouse-enter",f.row,f.column,f.cell,n)}if(o&&(!o.showOverflowTooltip||"function"!=typeof o.showOverflowTooltip||o.showOverflowTooltip())){var d=n.target.querySelector(".cell");if((0,V.hasClass)(d,"".concat(u,"-tooltip"))&&d.childNodes.length){var h=document.createRange();h.setStart(d,0),h.setEnd(d,d.childNodes.length);var m=h.getBoundingClientRect(),y=m.width,g=m.height,v=y-Math.floor(y),b=d.getBoundingClientRect(),_=b.width,E=b.height;v<.001&&(y=Math.floor(y)),g-Math.floor(g)<.001&&(g=Math.floor(g));var x,w,S=(x=d,w=window.getComputedStyle(x,null),{left:gn()(w.paddingLeft,10)||0,right:gn()(w.paddingRight,10)||0,top:gn()(w.paddingTop,10)||0,bottom:gn()(w.paddingBottom,10)||0}),T=S.top+S.bottom;(ya(y+(S.left+S.right),_)||ya(g+T,E)||ya(d.scrollWidth,_))&&function(e,t,n,r){if((null==$i?void 0:$i.trigger)!==n){null==$i||$i();var o=null==r?void 0:r.refs.tableWrapper,i=null==o?void 0:o.dataset.prefix,s=ji({strategy:"fixed"},e.popperOptions),a=(0,l.createVNode)(Ni,ji(ji({content:t,virtualTriggering:!0,virtualRef:n,appendTo:o,placement:"top",transition:"none",offset:0,hideAfter:0},e),{popperOptions:s,onHide:function(){null==$i||$i()}}));a.appContext=ji(ji({},r.appContext),r);var c=document.createElement("div");(0,l.render)(a,c),a.component.exposed.onOpen();var u=null==o?void 0:o.querySelector(".".concat(i,"-scrollbar__wrap"));($i=function(){(0,l.render)(null,c),null==u||u.removeEventListener("scroll",$i),$i=null}).trigger=n,null==u||u.addEventListener("scroll",$i)}}(o,c.innerText||c.textContent,c,s)}}},handleCellMouseLeave:function(e){var n=Di(e);if(n){n.rowSpan>1&&a(n.rowSpan,e,V.removeClass);var r=null==t?void 0:t.hoverState;null==t||t.emit("cell-mouse-leave",null==r?void 0:r.row,null==r?void 0:r.column,null==r?void 0:r.cell,e)}},tooltipContent:n,tooltipTrigger:r}}(e),o=r.handleDoubleClick,i=r.handleClick,s=r.handleContextMenu,a=r.handleMouseEnter,c=r.handleMouseLeave,u=r.handleCellMouseEnter,p=r.handleCellMouseLeave,d=r.tooltipContent,h=r.tooltipTrigger,m=ga(e),g=m.getRowStyle,v=m.getRowClass,b=m.getCellStyle,_=m.getCellClass,E=m.getSpan,x=m.getColspanRealWidth,w=(0,l.computed)((function(){var t;return dn()(t=e.store.states.columns.value).call(t,(function(e){return"default"===e.type}))})),S=function(e,n){var r=t.props.rowKey;return r?Ri(e,r):n},T=function(r,f,d,h){var m;void 0===h&&(h=!1);var T=e.tooltipEffect,P=e.tooltipOptions,O=e.store.states,C=O.indent,k=O.columns,I=v(r,f),N=!0;d&&(I.push(n.em("row","level-".concat(d.level))),N=d.display);var j=N?null:{display:"none"};return(0,l.h)("tr",{style:[j,g(r,f)],class:I,key:S(r,f),onDblclick:function(e){return o(e,r)},onClick:function(e){return i(e,r)},onContextmenu:function(e){return s(e,r)},onMouseenter:function(){return a(f)},onMouseleave:c},y()(m=k.value).call(m,(function(n,o){var i,s,a=E(r,n,f,o),c=a.rowspan,m=a.colspan;if(!c||!m)return null;var y=cn()({},n);y.realWidth=x(k.value,m,o);var g={store:e.store,_self:e.context||t,column:y,row:r,$index:f,cellIndex:o,expanded:h};o===w.value&&d&&(g.treeNode={indent:d.level*C.value,level:d.level},"boolean"==typeof d.expanded&&(g.treeNode.expanded=d.expanded,"loading"in d&&(g.treeNode.loading=d.loading),"noLazyChildren"in d&&(g.treeNode.noLazyChildren=d.noLazyChildren)));var v=F()(i="".concat(S(r,f),",")).call(i,o),O=y.columnKey||y.rawColumnKey||"",I=A(o,n,g),N=n.showOverflowTooltip&&ma({effect:T},P,n.showOverflowTooltip);return"function"==typeof n.showOverflowTooltip&&(N.showOverflowTooltip=function(){return n.showOverflowTooltip(g)}),(0,l.h)("td",{style:b(f,o,r,n),class:_(f,o,r,n,m-1),key:F()(s="".concat(O)).call(s,v),rowspan:c,colspan:m,onMouseenter:function(e){return u(e,r,N)},onMouseleave:p},[I])})))},A=function(e,t,n){return t.renderCell(n)};return{wrappedRowRender:function(r,o){var i=e.store,s=i.isRowExpanded,a=i.assertRowKey,c=i.states,u=c.treeData,p=c.lazyTreeNodeMap,d=c.childrenColumnName,h=c.rowKey,m=i.states.columns.value,y=O()(m).call(m,(function(e){return"expand"===e.type}));if(y){var g,v=s(r),b=T(r,o,void 0,v),_=t.renderExpanded;return v?_?[[b,(0,l.h)("tr",{key:"expanded-row__".concat(b.key)},[(0,l.h)("td",{colspan:m.length,class:F()(g="".concat(n.e("cell")," ")).call(g,n.e("expanded-cell"))},[_({row:r,$index:o,store:i,expanded:v})])])]]:(console.error("[Element Error]renderExpanded is required."),b):[[b]]}if(f()(u.value).length){a();var E=Ri(r,h.value),x=u.value[E],w=null;x&&(w={expanded:x.expanded,level:x.level,display:!0},"boolean"==typeof x.lazy&&("boolean"==typeof x.loaded&&x.loaded&&(w.noLazyChildren=!(x.children&&x.children.length)),w.loading=x.loading));var S=[T(r,o,w)];if(x){var A=0,P=function(e,t){e&&e.length&&t&&L()(e).call(e,(function(e){var n={display:t.display&&t.expanded,level:t.level+1,expanded:!1,noLazyChildren:!1,loading:!1},r=Ri(e,h.value);if(null==r)throw new Error("For nested data item, row-key is required.");if((x=va({},u.value[r]))&&(n.expanded=x.expanded,x.level=x.level||n.level,x.display=!(!x.expanded||!n.display),"boolean"==typeof x.lazy&&("boolean"==typeof x.loaded&&x.loaded&&(n.noLazyChildren=!(x.children&&x.children.length)),n.loading=x.loading)),A++,S.push(T(e,o+A,n)),x){var i=p.value[r]||e[d.value];P(i,x)}}))};x.display=!0;var C=p.value[E]||r[d.value];P(C,x)}return S}return T(r,o,void 0)},tooltipContent:d,tooltipTrigger:h}},_a={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:function(){return{}},type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean},Ea=(0,l.defineComponent)({name:"ElTableBody",props:_a,setup:function(e){var t=(0,l.getCurrentInstance)(),n=(0,l.inject)(ia),r=(0,je.useNamespace)("table"),o=ba(e),i=o.wrappedRowRender,s=o.tooltipContent,a=o.tooltipTrigger,c=oa(n),p=c.onColumnsChange,f=c.onScrollableChange,d=[];return(0,l.watch)(e.store.states.hoverRow,(function(n,o){var i,s,a=null==t?void 0:t.vnode.el,l=S()(i=da()((null==a?void 0:a.children)||[])).call(i,(function(e){return null==e?void 0:e.classList.contains("".concat(r.e("row")))})),c=n,p=null===(s=l[c])||void 0===s?void 0:s.childNodes;if(null==p?void 0:p.length){var f,h=0,m=u()(f=da()(p)).call(f,(function(e,t,n){var r,o;return(null===(r=p[n])||void 0===r?void 0:r.colSpan)>1&&(h=null===(o=p[n])||void 0===o?void 0:o.colSpan),"TD"!==t.nodeName&&0===h&&e.push(n),h>0&&h--,e}),[]);L()(m).call(m,(function(e){var t;for(c=n;c>0;){var r=null===(t=l[c-1])||void 0===t?void 0:t.childNodes;if(r[e]&&"TD"===r[e].nodeName&&r[e].rowSpan>1){(0,V.addClass)(r[e],"hover-cell"),d.push(r[e]);break}c--}}))}else L()(d).call(d,(function(e){return(0,V.removeClass)(e,"hover-cell")})),d.length=0;e.store.states.isComplex.value&&V.isClient&&(0,V.rAF)((function(){var e=l[o],t=l[n];e&&!e.classList.contains("hover-fixed-row")&&(0,V.removeClass)(e,"hover-row"),t&&(0,V.addClass)(t,"hover-row")}))})),(0,l.onUnmounted)((function(){null==$i||$i()})),{ns:r,onColumnsChange:p,onScrollableChange:f,wrappedRowRender:i,tooltipContent:s,tooltipTrigger:a}},render:function(){var e=this.wrappedRowRender,t=this.store.states.data.value||[];return(0,l.h)("tbody",{tabIndex:-1},[u()(t).call(t,(function(t,n){return F()(t).call(t,e(n,t.length))}),[])])}});n(9868);var xa=n(63579),wa=n.n(xa);const Sa=function(e){var t=function(){var e=(0,l.inject)(ia),t=null==e?void 0:e.store;return{leftFixedLeafCount:(0,l.computed)((function(){return t.states.fixedLeafColumnsLength.value})),rightFixedLeafCount:(0,l.computed)((function(){return t.states.rightFixedColumns.value.length})),columnsCount:(0,l.computed)((function(){return t.states.columns.value.length})),leftFixedCount:(0,l.computed)((function(){return t.states.fixedColumns.value.length})),rightFixedCount:(0,l.computed)((function(){return t.states.rightFixedColumns.value.length})),columns:t.states.columns}}().columns,n=(0,je.useNamespace)("table");return{getCellClasses:function(t,r){var o=t[r],i=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=_()(Array.prototype).call(t,0,o)),r[o]=t[o]);return F()(e).call(e,r||_()(Array.prototype).call(t))}([n.e("cell"),o.id,o.align,o.labelClassName],Hi(n.b(),r,o.fixed,e.store),!0);return o.className&&i.push(o.className),o.children||i.push(n.is("leaf")),i},getCellStyles:function(t,n){var r=Qi(n,t.fixed,e.store);return Xi(r,"left"),Xi(r,"right"),r},columns:t}};var Ta=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=_()(Array.prototype).call(t,0,o)),r[o]=t[o]);return F()(e).call(e,r||_()(Array.prototype).call(t))};const Aa=(0,l.defineComponent)({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:function(){return{prop:"",order:""}}}},setup:function(e){var t=Sa(e),n=t.getCellClasses,r=t.getCellStyles,o=t.columns;return{ns:(0,je.useNamespace)("table"),getCellClasses:n,getCellStyles:r,columns:o}},render:function(){var e=this,t=e.columns,n=e.getCellStyles,r=e.getCellClasses,o=e.summaryMethod,i=e.sumText,s=this.store.states.data.value,a=[];return o?a=o({columns:t,data:s}):L()(t).call(t,(function(e,t){if(0!==t){var n=y()(s).call(s,(function(t){return Number(t[e.property])})),r=[],o=!0;L()(n).call(n,(function(e){if(!bn()(+e)){o=!1;var t="".concat(e).split(".")[1];r.push(t?t.length:0)}}));var l=Math.max.apply(null,r);a[t]=o?"":u()(n).call(n,(function(e,t){var n=Number(t);return bn()(+n)?e:wa()((e+t).toFixed(Math.min(l,20)))}),0)}else a[t]=i})),(0,l.h)((0,l.h)("tfoot",[(0,l.h)("tr",{},Ta([],y()(t).call(t,(function(e,o){return(0,l.h)("td",{key:o,colspan:e.colSpan,rowspan:e.rowSpan,class:r(t,o),style:n(e,o)},[(0,l.h)("div",{class:["cell",e.labelClassName]},[a[o]])])})),!0))]))}});var Pa=n(165),Oa=n.n(Pa);const Ca=function(e,t,n,r){var o=this,i=(0,l.ref)(!1),s=(0,l.ref)(null),a=(0,l.ref)(!1),c=(0,l.ref)({width:null,height:null,headerHeight:null}),u=(0,l.ref)(!1),p=(0,l.ref)(),f=(0,l.ref)(0),d=(0,l.ref)(0),h=(0,l.ref)(0),m=(0,l.ref)(0),y=(0,l.ref)(0);(0,l.watchEffect)((function(){t.setHeight(e.height)})),(0,l.watchEffect)((function(){t.setMaxHeight(e.maxHeight)})),(0,l.watch)((function(){return[e.currentRowKey,n.states.rowKey]}),(function(e){var t=e[0],r=e[1];(0,l.unref)(r)&&(0,l.unref)(t)&&n.setCurrentRowKey("".concat(t))}),{immediate:!0}),(0,l.watch)((function(){return e.data}),(function(e){r.store.commit("setData",e)}),{immediate:!0,deep:!0}),(0,l.watchEffect)((function(){e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)}));var g=(0,l.computed)((function(){return e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0})),v=(0,l.computed)((function(){return{width:t.bodyWidth.value?"".concat(t.bodyWidth.value,"px"):""}})),b=function(){g.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(E)};(0,l.onMounted)((function(){return t=o,i=void 0,a=function(){var t,o;return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=hs()(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof ys()&&(s[vs()]=function(){return this}),s;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}(this,(function(i){var s;switch(i.label){case 0:return[4,(0,l.nextTick)()];case 1:return i.sent(),n.updateColumns(),x(),requestAnimationFrame(b),t=r.vnode.el,o=r.refs.headerWrapper,e.flexible&&t&&t.parentElement&&(t.parentElement.style.minWidth="0"),c.value={width:p.value=t.offsetWidth,height:t.offsetHeight,headerHeight:e.showHeader&&o?o.offsetHeight:null},L()(s=n.states.columns.value).call(s,(function(e){e.filteredValue&&e.filteredValue.length&&r.store.commit("filterChange",{column:e,values:e.filteredValue,silent:!0})})),r.$ready=!0,[2]}}))},new((s=void 0)||(s=fs()))((function(e,n){function r(e){try{l(a.next(e))}catch(e){n(e)}}function o(e){try{l(a.throw(e))}catch(e){n(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof s?n:new s((function(e){e(n)}))).then(r,o)}l((a=a.apply(t,i||[])).next())}));var t,i,s,a}));var _=function(e){!function(e,n){var r;if(e){var o=S()(r=da()(e.classList)).call(r,(function(e){return!Oa()(e).call(e,"is-scrolling-")}));o.push(t.scrollX.value?n:"is-scrolling-none"),e.className=o.join(" ")}}(r.refs.tableWrapper,e)},E=function(){if(r.refs.scrollBarRef){if(!t.scrollX.value){var e="is-scrolling-none";return n=e,void((o=r.refs.tableWrapper)&&o.classList.contains(n)||_(e))}var n,o,i=r.refs.scrollBarRef.wrapRef;if(i){var s=i.scrollLeft,a=i.offsetWidth,l=i.scrollWidth,c=r.refs,u=c.headerWrapper,p=c.footerWrapper;u&&(u.scrollLeft=s),p&&(p.scrollLeft=s),_(s>=l-a-1?"is-scrolling-right":0===s?"is-scrolling-left":"is-scrolling-middle")}}},x=function(){r.refs.scrollBarRef&&(r.refs.scrollBarRef.wrapRef&&(0,De.MLh)(r.refs.scrollBarRef.wrapRef,"scroll",E,{passive:!0}),e.fit?(0,De.wYm)(r.vnode.el,w):(0,De.MLh)(window,"resize",w),(0,De.wYm)(r.refs.bodyWrapper,(function(){var e,t;w(),null===(t=null===(e=r.refs)||void 0===e?void 0:e.scrollBarRef)||void 0===t||t.update()})))},w=function(){var t,n,o,i,s=r.vnode.el;if(r.$ready&&s){var a=!1,l=c.value,u=l.width,v=l.height,_=l.headerHeight,E=p.value=s.offsetWidth;u!==E&&(a=!0);var x=s.offsetHeight;(e.height||g.value)&&v!==x&&(a=!0);var w="fixed"===e.tableLayout?r.refs.headerWrapper:null===(t=r.refs.tableHeaderRef)||void 0===t?void 0:t.$el;e.showHeader&&(null==w?void 0:w.offsetHeight)!==_&&(a=!0),f.value=(null===(n=r.refs.tableWrapper)||void 0===n?void 0:n.scrollHeight)||0,h.value=(null==w?void 0:w.scrollHeight)||0,m.value=(null===(o=r.refs.footerWrapper)||void 0===o?void 0:o.offsetHeight)||0,y.value=(null===(i=r.refs.appendWrapper)||void 0===i?void 0:i.offsetHeight)||0,d.value=f.value-h.value-m.value-y.value,a&&(c.value={width:E,height:x,headerHeight:e.showHeader&&(null==w?void 0:w.offsetHeight)||0},b())}},T=As(),A=(0,l.computed)((function(){var e=t.bodyWidth,n=t.scrollY,r=t.gutterWidth;return e.value?"".concat(e.value-(n.value?r:0),"px"):""})),P=(0,l.computed)((function(){return e.maxHeight?"fixed":e.tableLayout})),O=(0,l.computed)((function(){if(e.data&&e.data.length)return null;var t="100%";e.height&&d.value&&(t="".concat(d.value,"px"));var n=p.value;return{width:n?"".concat(n,"px"):"",height:t}})),C=(0,l.computed)((function(){return e.height?{height:bn()(Number(e.height))?e.height:"".concat(e.height,"px")}:e.maxHeight?{maxHeight:bn()(Number(e.maxHeight))?e.maxHeight:"".concat(e.maxHeight,"px")}:{}})),k=(0,l.computed)((function(){return e.height?{height:"100%"}:e.maxHeight?bn()(Number(e.maxHeight))?{maxHeight:F()(t="calc(".concat(e.maxHeight," - ")).call(t,h.value+m.value,"px)")}:{maxHeight:"".concat(e.maxHeight-h.value-m.value,"px")}:{};var t}));return{isHidden:i,renderExpanded:s,setDragVisible:function(e){a.value=e},isGroup:u,handleMouseLeave:function(){r.store.commit("setHoverRow",null),r.hoverState&&(r.hoverState=null)},handleHeaderFooterMousewheel:function(e,t){var n=t.pixelX,o=t.pixelY;Math.abs(n)>=Math.abs(o)&&(r.refs.bodyWrapper.scrollLeft+=t.pixelX/5)},tableSize:T,emptyBlockStyle:O,handleFixedMousewheel:function(e,t){var n=r.refs.bodyWrapper;if(Math.abs(t.spinY)>0){var o=n.scrollTop;t.pixelY<0&&0!==o&&e.preventDefault(),t.pixelY>0&&n.scrollHeight-n.clientHeight>o&&e.preventDefault(),n.scrollTop+=Math.ceil(t.pixelY/5)}else n.scrollLeft+=Math.ceil(t.pixelX/5)},resizeProxyVisible:a,bodyWidth:A,resizeState:c,doLayout:b,tableBodyStyles:v,tableLayout:P,scrollbarViewStyle:{display:"inline-block",verticalAlign:"middle"},tableInnerStyle:C,scrollbarStyle:k}};const ka={data:{type:Array,default:function(){return[]}},size:je.useSizeProp,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:function(){return{hasChildren:"hasChildren",children:"children"}}},lazy:Boolean,load:Function,style:{type:Object,default:function(){return{}}},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:Boolean,flexible:Boolean,showOverflowTooltip:[Boolean,Function,Object]};function Ia(e){var t="auto"===e.tableLayout,n=e.columns||[];return t&&k()(n).call(n,(function(e){return void 0===e.width}))&&(n=[]),(0,l.h)("colgroup",{},y()(n).call(n,(function(n){return(0,l.h)("col",function(n){var r,o={key:F()(r="".concat(e.tableLayout,"_")).call(r,n.id),style:{},name:void 0};return t?o.style={width:"".concat(n.width,"px")}:o.name=n.id,o}(n))})))}n(62010),Ia.props=["columns","tableLayout"];var Na=1;const ja=(0,l.defineComponent)({name:"ElTable",directives:{Mousewheel:Ne},components:{TableHeader:pa,TableBody:Ea,TableFooter:Aa,ElScrollbar:sn,hColgroup:Ia},props:ka,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change"],setup:function(e){var t,n=(0,je.useLocale)().t,r=(0,je.useNamespace)("table"),o=(0,l.getCurrentInstance)();(0,l.provide)(ia,o);var i=function(e,t){var n;if(!e)throw new Error("Table is required.");var r=os();return r.toggleAllSelection=ae(r._toggleAllSelection,10),L()(n=f()(ss)).call(n,(function(e){as(ls(t,e),e,r)})),function(e,t){var n;L()(n=f()(ss)).call(n,(function(n){(0,l.watch)((function(){return ls(t,n)}),(function(t){as(t,n,e)}))}))}(r,t),r}(o,e);o.store=i;var s=new us({store:o.store,table:o,fit:e.fit,showHeader:e.showHeader});o.layout=s;var a=(0,l.computed)((function(){return 0===(i.states.data.value||[]).length})),c=function(e){return{setCurrentRow:function(t){e.commit("setCurrentRow",t)},getSelectionRows:function(){return e.getSelectionRows()},toggleRowSelection:function(t,n){e.toggleRowSelection(t,n,!1),e.updateAllSelected()},clearSelection:function(){e.clearSelection()},clearFilter:function(t){e.clearFilter(t)},toggleAllSelection:function(){e.commit("toggleAllSelection")},toggleRowExpansion:function(t,n){e.toggleRowExpansionAdapter(t,n)},clearSort:function(){e.clearSort()},sort:function(t,n){e.commit("sort",{prop:t,order:n})}}}(i),u=c.setCurrentRow,p=c.getSelectionRows,d=c.toggleRowSelection,h=c.clearSelection,m=c.clearFilter,y=c.toggleAllSelection,g=c.toggleRowExpansion,v=c.clearSort,b=x()(c),_=Ca(e,s,i,o),E=_.isHidden,w=_.renderExpanded,S=_.setDragVisible,T=_.isGroup,A=_.handleMouseLeave,P=_.handleHeaderFooterMousewheel,O=_.tableSize,C=_.emptyBlockStyle,k=_.handleFixedMousewheel,I=_.resizeProxyVisible,j=_.bodyWidth,D=_.resizeState,M=_.doLayout,R=_.tableBodyStyles,B=_.tableLayout,q=_.scrollbarViewStyle,U=_.tableInnerStyle,$=_.scrollbarStyle,W=function(){var e=(0,l.ref)(),t=function(t,n){var r,o=e.value;o&&(0,V.isNumber)(n)&&N()(r=["Top","Left"]).call(r,t)&&o["setScroll".concat(t)](n)};return{scrollBarRef:e,scrollTo:function(t,n){var r=e.value;r&&r.scrollTo(t,n)},setScrollTop:function(e){return t("Top",e)},setScrollLeft:function(e){return t("Left",e)}}}(),K=W.scrollBarRef,z=W.scrollTo,H=W.setScrollLeft,G=W.setScrollTop,Q=ae(M,50),X=F()(t="".concat(r.namespace.value,"-table_")).call(t,Na++);o.tableId=X,o.state={isGroup:T,resizeState:D,doLayout:M,debouncedUpdateLayout:Q};var Y=(0,l.computed)((function(){return e.sumText||n("el.table.sumText")})),J=(0,l.computed)((function(){return e.emptyText||n("el.table.emptyText")})),Z=(0,l.computed)((function(){return ua(i.states.originColumns.value)[0]}));return function(e){var t=(0,l.ref)();(0,l.onMounted)((function(){var n,r;n=e.vnode.el.querySelector(".hidden-columns"),r=e.store.states.updateOrderFns,t.value=new MutationObserver((function(){L()(r).call(r,(function(e){return e()}))})),t.value.observe(n,{childList:!0,subtree:!0})})),(0,l.onUnmounted)((function(){var e;null===(e=t.value)||void 0===e||e.disconnect()}))}(o),{ns:r,layout:s,store:i,columns:Z,handleHeaderFooterMousewheel:P,handleMouseLeave:A,tableId:X,tableSize:O,isHidden:E,isEmpty:a,renderExpanded:w,resizeProxyVisible:I,resizeState:D,isGroup:T,bodyWidth:j,tableBodyStyles:R,emptyBlockStyle:C,debouncedUpdateLayout:Q,handleFixedMousewheel:k,setCurrentRow:u,getSelectionRows:p,toggleRowSelection:d,clearSelection:h,clearFilter:m,toggleAllSelection:y,toggleRowExpansion:g,clearSort:v,doLayout:M,sort:b,t:n,setDragVisible:S,context:o,computedSumText:Y,computedEmptyText:J,tableLayout:B,scrollbarViewStyle:q,tableInnerStyle:U,scrollbarStyle:$,scrollBarRef:K,scrollTo:z,setScrollLeft:H,setScrollTop:G}}}),Da=(0,ta.A)(ja,[["render",function(e,t,n,r,o,i){var s,a=(0,l.resolveComponent)("hColgroup"),c=(0,l.resolveComponent)("table-header"),u=(0,l.resolveComponent)("table-body"),p=(0,l.resolveComponent)("table-footer"),f=(0,l.resolveComponent)("el-scrollbar"),d=(0,l.resolveDirective)("mousewheel");return(0,l.openBlock)(),(0,l.createElementBlock)("div",{ref:"tableWrapper",class:(0,l.normalizeClass)([(s={},s[e.ns.m("fit")]=e.fit,s[e.ns.m("striped")]=e.stripe,s[e.ns.m("border")]=e.border||e.isGroup,s[e.ns.m("hidden")]=e.isHidden,s[e.ns.m("group")]=e.isGroup,s[e.ns.m("fluid-height")]=e.maxHeight,s[e.ns.m("scrollable-x")]=e.layout.scrollX.value,s[e.ns.m("scrollable-y")]=e.layout.scrollY.value,s[e.ns.m("enable-row-hover")]=!e.store.states.isComplex.value,s[e.ns.m("enable-row-transition")]=0!==(e.store.states.data.value||[]).length&&(e.store.states.data.value||[]).length<100,s["has-footer"]=e.showSummary,s),e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m("layout-".concat(e.tableLayout))]),style:(0,l.normalizeStyle)(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.handleMouseLeave&&e.handleMouseLeave.apply(e,t)})},[(0,l.createElementVNode)("div",{class:(0,l.normalizeClass)(e.ns.e("inner-wrapper")),style:(0,l.normalizeStyle)(e.tableInnerStyle)},[(0,l.createElementVNode)("div",W,[(0,l.renderSlot)(e.$slots,"default")],512),e.showHeader&&"fixed"===e.tableLayout?(0,l.withDirectives)(((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:0,ref:"headerWrapper",class:(0,l.normalizeClass)(e.ns.e("header-wrapper"))},[(0,l.createElementVNode)("table",{ref:"tableHeader",class:(0,l.normalizeClass)(e.ns.e("header")),style:(0,l.normalizeStyle)(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[(0,l.createVNode)(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),(0,l.createVNode)(c,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[d,e.handleHeaderFooterMousewheel]]):(0,l.createCommentVNode)("v-if",!0),(0,l.createElementVNode)("div",{ref:"bodyWrapper",class:(0,l.normalizeClass)(e.ns.e("body-wrapper"))},[(0,l.createVNode)(f,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn},{default:(0,l.withCtx)((function(){return[(0,l.createElementVNode)("table",{ref:"tableBody",class:(0,l.normalizeClass)(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:(0,l.normalizeStyle)({width:e.bodyWidth,tableLayout:e.tableLayout})},[(0,l.createVNode)(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&"auto"===e.tableLayout?((0,l.openBlock)(),(0,l.createBlock)(c,{key:0,ref:"tableHeaderRef",class:(0,l.normalizeClass)(e.ns.e("body-header")),border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["class","border","default-sort","store","onSetDragVisible"])):(0,l.createCommentVNode)("v-if",!0),(0,l.createVNode)(u,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"tooltip-options":e.tooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"]),e.showSummary&&"auto"===e.tableLayout?((0,l.openBlock)(),(0,l.createBlock)(p,{key:1,class:(0,l.normalizeClass)(e.ns.e("body-footer")),border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):(0,l.createCommentVNode)("v-if",!0)],6),e.isEmpty?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:0,ref:"emptyBlock",style:(0,l.normalizeStyle)(e.emptyBlockStyle),class:(0,l.normalizeClass)(e.ns.e("empty-block"))},[(0,l.createElementVNode)("span",{class:(0,l.normalizeClass)(e.ns.e("empty-text"))},[(0,l.renderSlot)(e.$slots,"empty",{},(function(){return[(0,l.createTextVNode)((0,l.toDisplayString)(e.computedEmptyText),1)]}))],2)],6)):(0,l.createCommentVNode)("v-if",!0),e.$slots.append?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:1,ref:"appendWrapper",class:(0,l.normalizeClass)(e.ns.e("append-wrapper"))},[(0,l.renderSlot)(e.$slots,"append")],2)):(0,l.createCommentVNode)("v-if",!0)]})),_:3},8,["view-style","wrap-style","always"])],2),e.showSummary&&"fixed"===e.tableLayout?(0,l.withDirectives)(((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:1,ref:"footerWrapper",class:(0,l.normalizeClass)(e.ns.e("footer-wrapper"))},[(0,l.createElementVNode)("table",{class:(0,l.normalizeClass)(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:(0,l.normalizeStyle)(e.tableBodyStyles)},[(0,l.createVNode)(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),(0,l.createVNode)(p,{border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[l.vShow,!e.isEmpty],[d,e.handleHeaderFooterMousewheel]]):(0,l.createCommentVNode)("v-if",!0),e.border||e.isGroup?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:2,class:(0,l.normalizeClass)(e.ns.e("border-left-patch"))},null,2)):(0,l.createCommentVNode)("v-if",!0)],6),(0,l.withDirectives)((0,l.createElementVNode)("div",{ref:"resizeProxy",class:(0,l.normalizeClass)(e.ns.e("column-resize-proxy"))},null,2),[[l.vShow,e.resizeProxyVisible]])],46,$)}]]),Ma=Da;var La={selection:"table-column--selection",expand:"table__expand-column"},Ra={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},Ba={selection:{renderHeader:function(e){var t=e.store,n=e.column;return(0,l.h)(Ws,{disabled:t.states.data.value&&0===t.states.data.value.length,size:t.states.tableSize.value,indeterminate:t.states.selection.value.length>0&&!t.states.isAllSelected.value,"onUpdate:modelValue":t.toggleAllSelection,modelValue:t.states.isAllSelected.value,ariaLabel:n.label})},renderCell:function(e){var t=e.row,n=e.column,r=e.store,o=e.$index;return(0,l.h)(Ws,{disabled:!!n.selectable&&!n.selectable.call(null,t,o),size:r.states.tableSize.value,onChange:function(){r.commit("rowSelectedChanged",t)},onClick:function(e){return e.stopPropagation()},modelValue:r.isSelected(t),ariaLabel:n.label})},sortable:!1,resizable:!1},index:{renderHeader:function(e){return e.column.label||"#"},renderCell:function(e){var t=e.column,n=e.$index,r=n+1,o=t.index;return"number"==typeof o?r=n+o:"function"==typeof o&&(r=o(n)),(0,l.h)("div",{},[r])},sortable:!1},expand:{renderHeader:function(e){return e.column.label||""},renderCell:function(e){var t=e.row,n=e.store,r=e.expanded,o=n.ns,i=[o.e("expand-icon")];return r&&i.push(o.em("expand-icon","expanded")),(0,l.h)("div",{class:i,onClick:function(e){e.stopPropagation(),n.toggleRowExpansion(t)}},{default:function(){return[(0,l.h)(Gs.ElIcon,null,{default:function(){return[(0,l.h)(Qs.ArrowRight)]}})]}})},sortable:!1,resizable:!1}};function qa(e){var t,n=e.row,r=e.column,o=e.$index,i=r.property,s=i&&(0,V.getProp)(n,i).value;return r&&r.formatter?r.formatter(n,r,s,o):(null===(t=null==s?void 0:s.toString)||void 0===t?void 0:t.call(s))||""}function Fa(e,t){return u()(e).call(e,(function(e,t){return e[t]=t,e}),t)}const Ua={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:{type:[Boolean,Object,Function],default:void 0},fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},filterClassName:String,index:[Number,Function],sortOrders:{type:Array,default:function(){return["ascending","descending",null]},validator:function(e){return k()(e).call(e,(function(e){var t;return N()(t=["ascending","descending",null]).call(t,e)}))}}};var Va=function(){return Va=cn()||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Va.apply(this,arguments)},$a=1;const Wa=(0,l.defineComponent)({name:"ElTableColumn",components:{ElCheckbox:Ws},props:Ua,setup:function(e,t){var n,r=t.slots,o=(0,l.getCurrentInstance)(),i=(0,l.ref)({}),s=(0,l.computed)((function(){for(var e=o.parent;e&&!e.tableId;)e=e.parent;return e})),a=function(e,t){var n=(0,l.getCurrentInstance)();return{registerComplexWatchers:function(){var r,o={realWidth:"width",realMinWidth:"minWidth"},i=Fa(["fixed"],o);L()(r=f()(i)).call(r,(function(r){var i=o[r];(0,V.hasOwn)(t,i)&&(0,l.watch)((function(){return t[i]}),(function(t){var o=t;"width"===i&&"realWidth"===r&&(o=qi(t)),"minWidth"===i&&"realMinWidth"===r&&(o=Fi(t)),n.columnConfig.value[i]=o,n.columnConfig.value[r]=o;var s="fixed"===i;e.value.store.scheduleLayout(s)}))}))},registerNormalWatchers:function(){var e,r={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},o=Fa(["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip"],r);L()(e=f()(o)).call(e,(function(e){var o=r[e];(0,V.hasOwn)(t,o)&&(0,l.watch)((function(){return t[o]}),(function(t){n.columnConfig.value[e]=t}))}))}}}(s,e),c=a.registerNormalWatchers,p=a.registerComplexWatchers,d=function(e,t,n){var r=(0,l.getCurrentInstance)(),o=(0,l.ref)(""),i=(0,l.ref)(!1),s=(0,l.ref)(),a=(0,l.ref)(),c=(0,je.useNamespace)("table");(0,l.watchEffect)((function(){s.value=e.align?"is-".concat(e.align):null,s.value})),(0,l.watchEffect)((function(){a.value=e.headerAlign?"is-".concat(e.headerAlign):s.value,a.value}));var p=(0,l.computed)((function(){for(var e=r.vnode.vParent||r.parent;e&&!e.tableId&&!e.columnId;)e=e.vnode.vParent||e.parent;return e})),d=(0,l.computed)((function(){var e=r.parent.store;if(!e)return!1;var t=e.states.treeData.value;return t&&f()(t).length>0})),m=(0,l.ref)(qi(e.width)),y=(0,l.ref)(Fi(e.minWidth));return{columnId:o,realAlign:s,isSubColumn:i,realHeaderAlign:a,columnOrTableParent:p,setColumnWidth:function(e){return m.value&&(e.width=m.value),y.value&&(e.minWidth=y.value),!m.value&&y.value&&(e.width=void 0),e.minWidth||(e.minWidth=80),e.realWidth=Number(void 0===e.width?e.minWidth:e.width),e},setColumnForcedProps:function(e){var t,n=e.type,r=Ba[n]||{};L()(t=f()(r)).call(t,(function(t){var n=r[t];"className"!==t&&void 0!==n&&(e[t]=n)}));var o=function(e){return La[e]||""}(n);if(o){var i,s,a=F()(i="".concat((0,l.unref)(c.namespace),"-")).call(i,o);e.className=e.className?F()(s="".concat(e.className," ")).call(s,a):a}return e},setColumnRenders:function(o){e.renderHeader?(0,V.debugWarn)("TableColumn","Comparing to render-header, scoped-slot header is easier to use. We recommend users to use scoped-slot header."):"selection"!==o.type&&(o.renderHeader=function(e){return r.columnConfig.value.label,(0,l.renderSlot)(t,"header",e,(function(){return[o.label]}))});var i=o.renderCell;return"expand"===o.type?(o.renderCell=function(e){return(0,l.h)("div",{class:"cell"},[i(e)])},n.value.renderExpanded=function(e){return t.default?t.default(e):t.default}):(i=i||qa,o.renderCell=function(e){var s,a=null;if(t.default){var u=t.default(e);a=O()(u).call(u,(function(e){return e.type!==l.Comment}))?u:i(e)}else a=i(e);var p,f=n.value.store.states.columns,m=dn()(s=f.value).call(s,(function(e){return"default"===e.type})),y=function(e,t){var n=e.row,r=e.treeNode,o=e.store;void 0===t&&(t=!1);var i=o.ns;if(!r)return t?[(0,l.h)("span",{class:i.e("placeholder")})]:null;var s=[];if(r.indent&&s.push((0,l.h)("span",{class:i.e("indent"),style:{"padding-left":"".concat(r.indent,"px")}})),"boolean"!=typeof r.expanded||r.noLazyChildren)s.push((0,l.h)("span",{class:i.e("placeholder")}));else{var a=[i.e("expand-icon"),r.expanded?i.em("expand-icon","expanded"):""],c=Qs.ArrowRight;r.loading&&(c=Qs.Loading),s.push((0,l.h)("div",{class:a,onClick:function(e){e.stopPropagation(),r.loading||o.loadOrToggle(n)}},{default:function(){var e;return[(0,l.h)(Gs.ElIcon,{class:(e={},e[i.is("loading")]=r.loading,e)},{default:function(){return[(0,l.h)(c)]}})]}}))}return s}(e,d.value&&e.cellIndex===m),g={class:"cell",style:{}};return o.showOverflowTooltip&&(g.class=F()(p="".concat(g.class," ")).call(p,(0,l.unref)(c.namespace),"-tooltip"),g.style={width:"".concat((e.column.realWidth||Number(e.column.width))-1,"px")}),function(e){function t(e){var t;"ElTableColumn"===(null===(t=null==e?void 0:e.type)||void 0===t?void 0:t.name)&&(e.vParent=r)}h()(e)?L()(e).call(e,(function(e){return t(e)})):t(e)}(a),(0,l.h)("div",g,[y,a])}),o},getPropsData:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return u()(t).call(t,(function(t,n){return h()(n)&&L()(n).call(n,(function(n){t[n]=e[n]})),t}),{})},getColumnElIndex:function(e,t){return B()(Array.prototype).call(e,t)},updateColumnOrder:function(){n.value.store.commit("updateColumnOrder",r.columnConfig.value)}}}(e,r,s),m=d.columnId,y=d.isSubColumn,g=d.realHeaderAlign,v=d.columnOrTableParent,b=d.setColumnWidth,_=d.setColumnForcedProps,E=d.setColumnRenders,x=d.getPropsData,w=d.getColumnElIndex,S=d.realAlign,T=d.updateColumnOrder,A=v.value;m.value=F()(n="".concat(A.tableId||A.columnId,"_column_")).call(n,$a++),(0,l.onBeforeMount)((function(){y.value=s.value!==A;var t=e.type||"default",n=""===e.sortable||e.sortable,r=(0,V.isUndefined)(e.showOverflowTooltip)?A.props.showOverflowTooltip:e.showOverflowTooltip,a=Va(Va({},Ra[t]),{id:m.value,type:t,property:e.prop||e.property,align:S,headerAlign:g,showOverflowTooltip:r,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:n,index:e.index,rawColumnKey:o.vnode.key}),l=x(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);l=function(e,t){var n,r={};for(n in e)r[n]=e[n];for(n in t)if((0,V.hasOwn)(t,n)){var o=t[n];void 0!==o&&(r[n]=o)}return r}(a,l);var f=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?function(e){return e}:1===e.length?e[0]:u()(e).call(e,(function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e(t.apply(void 0,n))}}))}(E,b,_);l=f(l),i.value=l,c(),p()})),(0,l.onMounted)((function(){var e,t=v.value,n=y.value?t.vnode.el.children:null===(e=t.refs.hiddenColumns)||void 0===e?void 0:e.children,r=function(){return w(n||[],o.vnode.el)};i.value.getColumnIndex=r,r()>-1&&s.value.store.commit("insertColumn",i.value,y.value?t.columnConfig.value:null,T)})),(0,l.onBeforeUnmount)((function(){i.value.getColumnIndex()>-1&&s.value.store.commit("removeColumn",i.value,y.value?A.columnConfig.value:null,T)})),o.columnId=m.value,o.columnConfig=i},render:function(){var e,t,n;try{var r=null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e,{row:{},column:{},$index:-1}),o=[];if(h()(r))for(var i=0,s=r;i<s.length;i++){var a=s[i];if("ElTableColumn"===(null===(n=a.type)||void 0===n?void 0:n.name)||2&a.shapeFlag)o.push(a);else if(a.type===l.Fragment&&h()(a.children)){var c;L()(c=a.children).call(c,(function(e){1024===(null==e?void 0:e.patchFlag)||(0,V.isString)(null==e?void 0:e.children)||o.push(e)}))}}return(0,l.h)("div",o)}catch(e){return(0,l.h)("div",[])}}}),Ka=Wa,za=(0,V.withInstall)(Ma,{TableColumn:Ka});var Ha=(0,V.withNoopInstall)(Ka),Ga=n(50510),Qa=n(17427);function Xa(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!(0,l.isVNode)(e)}const Ya={inheritAttrs:!1,name:"CustomComponentTable",props:(0,a.A)((0,a.A)((0,a.A)({},Qa.yz),za.props),U.ElPagination.props),setup:function(e,t){var n,c=t.expose,p=t.attrs,d=t.emit,m=(0,l.computed)({get:function(){return e.modelValue},set:function(e){d("update:modelValue",e)}}),g=(0,l.computed)((function(){var t,n=u()(t=f()(za.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})),b=function(e){var t=e.emits;return h()(t)||(t=f()(t)),u()(t).call(t,(function(e,t){var n="on".concat((0,Qa.ZH)((0,Qa.PT)(t)));return(0,Qa.$3)(p,n)&&(e[n]=p[n]),e}),{})},E=(0,l.computed)((function(){return b(za)})),w=(0,l.computed)((function(){var e=(0,a.A)({},E.value||{});return delete e.onSortChange,e})),T=(0,l.computed)((function(){return b(U.ElPagination)})),P=(0,l.inject)("indectModeRef",(0,l.ref)("")),C=((0,l.inject)("_ruleExecuter"),(0,l.inject)("dynamicMapComp"),(0,l.inject)("_parentRootValue",{})),I=(0,l.inject)("_parentDynamicMapComp",{}),j=(0,l.inject)("_selectionsObj",{}),M=(0,l.inject)("_rootStore",{}),R=(0,l.inject)("lang"),q=(0,l.inject)("rootValue"),V=(0,l.inject)("selects"),$=(0,l.ref)(""),W=(0,l.computed)((function(){var t=e.config.pmPageMetaList||[];return y()(t).call(t,(function(t){return t.displayType===Qa.Op||0==e.width||"0px"==e.width||"1"==t.hidden||$.value||($.value=t.metaCode),ee(t)}))})),K=5;null!==(n=e.config)&&void 0!==n&&n.pageSize&&(K=v()(e.config.pageSize)||5);var z=(0,l.reactive)({pageNum:1,pageSize:K,total:0}),H=(0,l.computed)((function(){var t;return"1"==(null===(t=e.config)||void 0===t?void 0:t.frontPageFlag)})),G=(0,l.computed)((function(){var e;return H.value?(null===(e=m.value||[])||void 0===e?void 0:e.length)||0:z.total})),Q=(0,l.computed)((function(){var e;return H.value?_()(e=m.value||[]).call(e,(z.pageNum-1)*z.pageSize,z.pageNum*z.pageSize):m.value||[]})),X=(0,l.ref)(null),Y=function(e){var t,n,r=e.prop,o=e.order;null===(t=E.value)||void 0===t||null===(n=t.onSortChange)||void 0===n||n.call(t,{prop:r,order:o}),X.value=null,o&&(X.value={prop:r,order:o})},J=(0,l.computed)((function(){if(!X.value)return[];var e=[X.value],t=u()(e).call(e,(function(e,t){return e=x()(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})),e}),(0,s.A)(Q.value||[]));return t})),Z=(0,l.computed)((function(){return X.value?J.value:Q.value})),ee=function(e){return(0,a.A)((0,a.A)({},e),{},{labelHidden:"1"})},te=(0,l.computed)((function(){return e.config.multiPmPageMetaList||[]})),ne=new(D());(0,l.watch)((function(){var e;return null==Z||null===(e=Z.value)||void 0===e?void 0:e.length}),(function(t){var n=[];if(t){var r,o=Z.value;n=null==o||null===(r=y()(o))||void 0===r?void 0:r.call(o,(function(t,n){var r=ne.get(t);if(r)return L()(r).call(r,(function(e){e.rowIndex=n})),r;var o,i=y()(o=W.value).call(o,(function(t,r){var o,i=(0,Qa.mg)(t);return i.width&&!i.columnWidth&&(i.columnWidth=i.width,delete i.width),i.columnId=(0,Qa.Ij)(),i.rowIndex=n,i.isColumn=!0,i.refConfig=null==e||null===(o=e.config)||void 0===o||null===(o=o.pmPageMetaList)||void 0===o?void 0:o[r],i.parent=null==e?void 0:e.config,i}));return ne.set(t,i),i}))}(0,Qa.Ts)(e.config,"multiPmPageMetaList",n)}),{immediate:!0,deep:!0});var re=(0,l.computed)((function(){var t;return(null===(t=e.config)||void 0===t?void 0:t.totalMetaCodes)||[]})),oe=(0,l.computed)((function(){var e,t;return S()(e=y()(t=re.value).call(t,(function(e){return"string"==typeof e?{code:e,totalFn:se}:(0,Qa.Qd)(e)&&(0,Qa.$3)(e,"code")?(e.totalFn="function"==typeof e.totalFn?e.totalFn:se,e):null}))).call(e,(function(e){return!!e}))})),ie=(0,l.computed)((function(){var e,t=(0,i.A)({},$.value,(function(){var e;return(0,l.createVNode)("div",null,[B()(e=R.value).call(e,"zh")>-1?"总计":"Total"])}));return u()(e=oe.value).call(e,(function(e,t){var n=t.code,r=t.render;return r&&"function"==typeof r&&(e[n]=r),e}),t)})),se=function(e,t,n){if(null==t)void 0===(t=0)&&(t="");else{var r=t.toString(),o=/^-/.test(r);t=r.replace(/[^\d\.]/g,""),o&&(t="-".concat(t))}var i=!isNaN(Number(t));return null==e&&(e=i?0:""),e+(i?Number(t):t)},ae=(0,l.computed)((function(){var e,t;return null!==(e=Z.value)&&void 0!==e&&e.length&&re.value.length&&oe.value.length?[u()(t=Z.value||[]).call(t,(function(e,t){var n;return L()(n=oe.value).call(n,(function(n){var r=n.code,o=n.totalFn;e[r]=o(e[r],t[r],t)})),e}),{totalFlag:!0})]:[]})),le=(0,l.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)})),ce=(0,l.ref)(null),ue=function(e){var t;ce.value=e,null==E||null===(t=E.onCurrentChange)||void 0===t||t.call(E,e),M.tableSelectedInfo=e},pe=(0,l.ref)([]),fe=function(e){pe.value=e,M.tableSelectedInfo=e},de=(0,l.computed)((function(){var t;return"1"==(null===(t=e.config)||void 0===t?void 0:t.pageable)})),he=(0,l.computed)((function(){var t;return null===(t=e.config)||void 0===t?void 0:t.pageAlign})),me="right",ye=(0,i.A)((0,i.A)((0,i.A)({},"left","flex-start"),me,"flex-end"),"center","center"),ge=(0,l.computed)((function(){var t,n=u()(t=f()(U.ElPagination.props)).call(t,(function(t,n){return(0,Qa.$3)(e.config,n)&&(t[n]=e.config[n]),t}),{});return(0,Qa.$3)(n,"background")||(n.background=!0),(0,Qa.$3)(n,"layout")||(n.layout="prev, pager, next, jumper, sizes, total"),(0,Qa.$3)(n,"page-sizes")||(0,Qa.$3)(n,"pageSizes")||(n.pageSizes=[5,10,20,40]),n}));(0,l.watch)((function(){return z.pageNum}),function(){var t=(0,o.A)((0,r.A)().mark((function t(n){var o,i,s,a,l,c;return(0,r.A)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null===(o=e.config)||void 0===o||!o.serviceCurrentChangeLoad){t.next=2;break}return t.abrupt("return");case 2:return a=null===(i=e.config)||void 0===i?void 0:i.currentChange,t.next=5,null==a?void 0:a(n,e,z);case 5:(l=t.sent)&&(0,Qa.cy)(l)&&(m.value=l),null==(c=null===(s=e.config)||void 0===s?void 0:s.serviceCurrentChange)||c(n,e,z);case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),(0,l.watch)((function(){return z.pageSize}),function(){var t=(0,o.A)((0,r.A)().mark((function t(n){var o,i,s,a,l;return(0,r.A)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return s=null===(o=e.config)||void 0===o?void 0:o.sizeChange,t.next=3,null==s?void 0:s(n,e,z);case 3:(a=t.sent)&&(0,Qa.cy)(a)&&(m.value=a),null==(l=null===(i=e.config)||void 0===i?void 0:i.serviceSizeChange)||l(n,e,z);case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());var ve=["clearSelection","getSelectionRows","toggleRowSelection","toggleAllSelection","toggleRowExpansion","setCurrentRow","clearSort","clearFilter","doLayout","sort","scrollTo","setScrollTop","setScrollLeft","columns"],be=(0,l.ref)(null),_e=u()(ve).call(ve,(function(e,t){return e[t]=function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===(e=be.value)||void 0===e||e[t].apply(e,r)},e}),{});c((0,a.A)({multipleSelection:pe,selectedRow:ce,page:z,changePage:function(e,t){z[t||"pageNum"]=e}},_e));var Ee=(0,l.computed)((function(){var e,t;return null!==(e=ae.value)&&void 0!==e&&e.length?F()(t=[]).call(t,(0,s.A)(Z.value),(0,s.A)(ae.value)):Z.value}));return function(){var t,n,r,o;return(0,l.createVNode)("div",{class:"custom-component-table"},[(0,l.createVNode)(za,(0,l.mergeProps)(g.value,w.value,{ref:function(e){be.value=e},"highlight-current-row":!!(le.value||null!==(n=g.value)&&void 0!==n&&n.highlightCurrentRow),onCurrentChange:le.value||null!==(r=g.value)&&void 0!==r&&r.highlightCurrentRow?ue:function(){},data:Ee.value,onSelectionChange:fe,onSortChange:Y}),Xa(t=y()(o=W.value).call(o,(function(t,n){return t.displayType==Qa.Op?null:(0,l.createVNode)(Ha,(0,l.mergeProps)({key:t.requiredFlag+t.metaCode},function(t,n){var r,o,i,s=_()(r=W.value).call(r,n+1),l=!(null!=s&&null!==(o=S()(s).call(s,(function(e){return e.displayType!=Qa.Op&&!(0==e.width||"0px"==e.width||"1"==e.hidden)})))&&void 0!==o&&o.length),c=A()(s).call(s,(function(e){return e.displayType!=Qa.Op})),p=u()(i=f()(Ha.props)).call(i,(function(e,n){return(0,Qa.$3)(t,n)&&(e[n]=t[n]),e}),{});if("1"==t.showOverflowTooltip||"1"==t["show-overflow-tooltip"]?(p["show-overflow-tooltip"]=!0,p.showOverflowTooltip=!0):(p["show-overflow-tooltip"]=!1,p.showOverflowTooltip=!1),p.prop||(p.prop=t.metaCode),t.columnWidth&&(p.width=t.columnWidth),p.width||(p.minWidth="160px"),0!=p.width&&"0px"!=p.width&&"1"!=t.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")),l&&(p.className="".concat(p.className||""," end-show-column")),"CustomComponentSelectEmployees"==t.metaType&&(p.className="".concat(p.className||""," clear-index")),(0,Qa.rn)((0,a.A)((0,a.A)({},t),{},{isColumn:!0}),!0)&&"0"!=t.showOverflowTooltip&&"0"!=t["show-overflow-tooltip"]){var d=function(e){var t,r=null===(t=te.value)||void 0===t||null===(t=t[e.$index])||void 0===t?void 0:t[n];return!r||(0,Qa.rn)((0,a.A)((0,a.A)({},r),{},{isColumn:!0}),(0,Qa.AP)(r,P.value))};p["show-overflow-tooltip"]=d,p.showOverflowTooltip=d}if("selection"===t.type){var h=p.selectable;p.selectable=function(t,n){var r=!0;h&&"function"==typeof h&&(r=h(t,n,{tableConfig:e.config,rootValue:q,parentRootValue:C,parentDynamicMapComp:I}));var o,i=!0;return j.selections&&j.selections.length&&j.primaryKeys&&j.primaryKeys.length&&(i=!(null===(o=j.selections)||void 0===o?void 0:O()(o).call(o,(function(e){var n,r;return k()(n=y()(r=j.primaryKeys).call(r,(function(n){return n&&e[n]==t[n]}))).call(n,(function(e){return e}))})))),r&&i}}return p}(t,n)),{header:function(){var n,r,o;return(0,l.createVNode)("span",{className:"head-span",title:B()(n=R.value).call(n,"zh")>-1?t.metaNameZh:t.metaNameEn},["1"==t.requiredFlag?(0,l.createVNode)("span",{style:"color: rgb(245, 34, 45); margin-right: 3px;"},[(0,l.createTextVNode)("*")]):"",t.headerRender?t.headerRender(l.h,{props:e,config:t,lang:R,rootValue:q,selects:V}):B()(r=R.value).call(r,"zh")>-1?t.metaNameZh:t.metaNameEn,"1"==t.hintFlag?(0,l.createVNode)((0,l.resolveComponent)("ElTooltip"),{effect:"dark",content:B()(o=R.value).call(o,"zh")>-1?t.hintContentZh:t.hintContentEn,placement:"top"},{default:function(){return[(0,l.createVNode)((0,l.resolveComponent)("elIcon"),{style:"fontSize: 16px; verticalAlign: sub; margin-left: 3px;"},{default:function(){return[(0,l.createVNode)((0,l.resolveComponent)("QuestionFilled"),null,null)]}})]}}):null])},default:function(e){var r,o,i=e.row,s=(e.column,e.$index);if(i.totalFlag)return ie.value[t.metaCode]?ie.value[t.metaCode]({val:i[t.metaCode],row:i,h:l.h}):null;var a,c,u=null===(r=te.value)||void 0===r||null===(r=r[s])||void 0===r?void 0:r[n];return function(e){var t;if(!e)return!0;if(N()(t=["selection","index"]).call(t,e.type))return!0;var n=O()(Qa.Bs).call(Qa.Bs,(function(t){return(0,Qa.ro)(t,e.metaType)}))||!e.metaType;return!e.renderby&&n}(u)?null:(0,l.createVNode)(Ga.A,{key:F()(o="".concat(u.columnId,"-")).call(o,u.rowIndex),class:"error-tip-block",rowScope:{row:i,$index:s},modelValue:(a=s,null===(c=Z.value)||void 0===c?void 0:c[a]),"onUpdate:modelValue":function(e){!function(e,t){m.value||(m.value=[]),m.value[t]=e}(e,s)},config:u},null)}})})))?t:{default:function(){return[t]}}),de.value?(0,l.createVNode)("div",{class:"pagination-wrap",style:{"justify-content":ye[he.value||me]}},[(0,l.createVNode)(U.ElPagination,(0,l.mergeProps)({style:"margin-top: 16px;"},ge.value,T,{"current-page":z.pageNum,"onUpdate:current-page":function(e){return z.pageNum=e},"page-size":z.pageSize,"onUpdate:page-size":function(e){return z.pageSize=e},total:G.value}),null)]):null])}}}},27243:(e,t,n)=>{n.r(t),n.d(t,{default:()=>_});var r=n(53811),o=n(75286),i=n(8628),s=n.n(i),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,i,a=t.emit,c=t.attrs,p=t.expose,d=t.slots,m=(0,o.ref)(!1),_=(0,o.ref)(!1),E=(0,o.ref)(null),x=(0,o.ref)(!1),w=(0,o.ref)(null),S=(0,o.ref)(null),T=(0,o.computed)((function(){var t,n,r,o,i=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&&(i.suffixIcon=null===(o=e.config)||void 0===o?void 0:o.icon),null!==(r=e.config)&&void 0!==r&&r.maxLength&&(i.maxlength=f()(e.config.maxLength)),e.textAreaCnt&&(i.rows=f()(e.textAreaCnt)),i})),A=(0,o.computed)((function(){var e=(0,r.A)({},T.value);return delete e.modelValue,delete e.suffixIcon,delete e.prefixIcon,e})),P=(0,o.computed)((function(){return"1"==(null==e?void 0:e.showTooltip)})),O=(0,o.computed)({get:function(){return e.modelValue},set:function(e){a("update:modelValue",e)}}),C=(0,o.ref)(""),k=(0,o.computed)((function(){return"1"==e.showMoney?m.value?C.value:q(O.value):O.value})),I=(0,o.computed)((function(){var t;return(null===(t=e.config)||void 0===t?void 0:t.lcpPagePopupMapVO)&&"Search"==T.value.suffixIcon})),N=(0,o.computed)((function(){var t;return!(0,v.$3)(e.config,"onlyIconClickFlag")||"1"==(null===(t=e.config)||void 0===t?void 0:t.onlyIconClickFlag)})),j=(0,o.computed)((function(){var t;return"1"==(null===(t=e.config)||void 0===t?void 0:t.pagePopupEditFlag)})),D=(0,o.computed)((function(){var t={modelValue:k.value};return!I.value||j.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,o="".concat(t).replace(/[^\d.-]/g,"").replace(/(\.\d*)/g,(function(e){var t=r;return r++,t?"":e})),i=Number(o);return isNaN(i)?"":i}(q(C.value))})):t.onClear=function(){var e;null==c||null===(e=c.onClear)||void 0===e||e.call(c),O.value=""},t})),M=(0,o.computed)((function(){return{class:null==c?void 0:c.class,style:null==c?void 0:c.style}})),L=(0,o.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 o;P.value&&(E.value=null==n||null===(o=n[0])||void 0===o?void 0:o.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&&N.value&&delete e.onClick,e.onWrapClick)if(e.onClick){var o=e.onClick;e.onClick=function(){o.apply(void 0,arguments),e.onWrapClick.apply(e,arguments)}}else e.onClick=e.onWrapClick;return e})),R=(n=null,i=null,{clear:function(){n&&n(),i&&window.removeEventListener("resize",i)},calc:function(){this.clear();var t=20;!e.disabled&&e.clearable&&(t=50);var r=(0,b.fW)(w.value,0),s=(0,b.fW)(S.value,0-t);x.value=r<s,n=(0,o.watch)((function(){return k.value}),(function(e){(0,o.nextTick)((function(){s=(0,b.fW)(S.value,0-t),x.value=r<s}))})),i=function(){r=(0,b.fW)(w.value,0),x.value=r<s},window.addEventListener("resize",i)}});(0,o.onMounted)((function(){(0,o.watch)(P,(function(e){e&&(null==R||R.calc())}),{immediate:!0})})),(0,o.onUnmounted)((function(){null==R||R.clear()}));var B=function(){var t,n,i=(0,r.A)({},d);if(null!==(t=T.value)&&void 0!==t&&t.suffixIcon){var s=(0,o.resolveComponent)(T.value.suffixIcon);i.suffix=function(){var t={};return I.value&&(e.disabled||(t.onClick=c.onClick,t.style={cursor:"pointer"})),(0,o.createVNode)((0,o.resolveComponent)("el-icon"),t,{default:function(){return[(0,o.createVNode)(s,null,null)]}})}}if(null!==(n=T.value)&&void 0!==n&&n.prefixIcon){var a=(0,o.resolveComponent)(T.value.prefixIcon);i.prefix=function(){return(0,o.createVNode)((0,o.resolveComponent)("el-icon"),null,{default:function(){return[(0,o.createVNode)(a,null,null)]}})}}return i};function q(t){var n,r,o;if(null!==(n=e.canShowFlag)&&void 0!==n&&s()(n).call(n,String(t).toLowerCase()))return t;if(null==t)return"";var i="".concat(t).replace(e.moneySeg,"");if(i=h()(i),isNaN(i))return"";i=Math.max(e.min,Math.min(e.max,i)),"-1"!=e.decimal&&(i=i.toFixed(e.decimal)),"1"!=e.decimalSuffix&&(i=h()(i));var a="".concat(i).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()(o="".concat(l," ")).call(o,e.symbol):l}var F=(0,o.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,o.createVNode)("div",(0,o.mergeProps)({class:"input-contrainer"},M.value),[(0,o.createVNode)("span",{ref:function(e){return S.value=e},class:"calc-span"},[k.value]),x.value?(0,o.createVNode)((0,o.resolveComponent)("el-tooltip"),{placement:"top",visible:x.value&&!!E.value,content:k.value,virtualTriggering:!0,virtualRef:E.value},null):null,(0,o.createVNode)("div",(0,o.mergeProps)({class:"input-wrap"},F.value,{ref:function(e){return w.value=e}}),[(0,o.createVNode)(g.ElInput,(0,o.mergeProps)(D.value,(0,r.A)((0,r.A)({},L.value),A.value)),(t=e=B(),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!(0,o.isVNode)(t)?e:{default:function(){return[e]}}))])])}}}},31810:(e,t,n)=>{n.r(t),n.d(t,{default:()=>_});var r=n(53811),o=n(75286),i=n(8628),s=n.n(i),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},keepLastZero:{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,i=t.attrs,a=t.expose,c=t.slots,p=(0,o.computed)((function(){var t,n,r,o,i=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&&(i.suffixIcon=null===(o=e.config)||void 0===o?void 0:o.icon),null!==(r=e.config)&&void 0!==r&&r.maxLength&&(i.maxlength=f()(e.config.maxLength)),e.textAreaCnt&&(i.rows=f()(e.textAreaCnt)),i})),d=(0,o.computed)((function(){var e=(0,r.A)({},p.value);return delete e.modelValue,delete e.suffixIcon,delete e.prefixIcon,e})),m=(0,o.computed)((function(){return"1"==(null==e?void 0:e.showTooltip)})),_=(0,o.computed)({get:function(){return e.modelValue},set:function(e){n("update:modelValue",e)}}),E=(0,o.ref)(""),x=(0,o.ref)(!1),w=(0,o.computed)((function(){return"1"==e.showMoney?x.value?E.value:I(_.value):_.value})),S=(0,b.D)({showTooltip:m,offset:(0,o.computed)((function(){var t=20;return!e.disabled&&e.clearable&&(t=50),t})),displayValue:w}).generateTooltipWrap,T=(0,o.computed)((function(){var t;return(null===(t=e.config)||void 0===t?void 0:t.lcpPagePopupMapVO)&&"Search"==p.value.suffixIcon})),A=(0,o.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,o.computed)((function(){var t;return"1"==(null===(t=e.config)||void 0===t?void 0:t.pagePopupEditFlag)})),O=(0,o.computed)((function(){var t={modelValue:w.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,o="".concat(t).replace(/[^\d.-]/g,"").replace(/(\.\d*)/g,(function(e){var t=r;return r++,t?"":e})),i=Number(o);return isNaN(i)?"":(0,v.iF)(i)}(I(E.value))})):t.onClear=function(){var e;null==i||null===(e=i.onClear)||void 0===e||e.call(i),_.value=""},t})),C=(0,o.computed)((function(){return{class:null==i?void 0:i.class,style:null==i?void 0:i.style}})),k=(0,o.computed)((function(){var e=(0,r.A)({},i);if(delete e.class,delete e.style,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 I(t){var n,r,o;if(null!==(n=e.canShowFlag)&&void 0!==n&&s()(n).call(n,String(t).toLowerCase()))return t;if(null==t)return"";var i="".concat(t).replace(e.moneySeg,"");if(i=h()(i),isNaN(i))return"";i=Math.max(e.min,Math.min(e.max,i)),"-1"!=e.decimal&&(i=i.toFixed(e.decimal)),"1"!=e.keepLastZero&&(i=(0,v.iF)(i));var a="".concat(i).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()(o="".concat(l," ")).call(o,e.symbol):l}return a({click:function(e){var t;null==i||null===(t=i.onClick)||void 0===t||t.call(i,null,e)}}),function(){var t,n;return S((0,o.createVNode)(g.ElInput,(0,o.mergeProps)(O.value,(0,r.A)((0,r.A)({},k.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,o.resolveComponent)(p.value.suffixIcon);s.suffix=function(){var t={};return T.value&&(e.disabled||(t.onClick=i.onClick,t.style={cursor:"pointer"})),(0,o.createVNode)((0,o.resolveComponent)("el-icon"),t,{default:function(){return[(0,o.createVNode)(a,null,null)]}})}}if(null!==(n=p.value)&&void 0!==n&&n.prefixIcon){var l=(0,o.resolveComponent)(p.value.prefixIcon);s.prefix=function(){return(0,o.createVNode)((0,o.resolveComponent)("el-icon"),null,{default:function(){return[(0,o.createVNode)(l,null,null)]}})}}return s}())||"[object Object]"===Object.prototype.toString.call(n)&&!(0,o.isVNode)(n)?t:{default:function(){return[t]}}),{wrapAttrs:C.value})}}}},80316:(e,t,n)=>{n.r(t),n.d(t,{default:()=>P});var r=n(53811),o=n(75286),i=n(57119),s=n.n(i),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(86226),v=n.n(g),b=n(8628),_=n.n(b),E=n(48079),x=n.n(E),w=n(64007),S=n.n(w),T=(n(76918),n(48598),n(23288),n(2892),n(26099),n(27495),n(38781),n(90744),n(84061)),A=n(17427);const P={inheritAttrs:!1,props:(0,r.A)((0,r.A)((0,r.A)({},T.ElSelect.props),A.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,i=t.attrs,a=(t.expose,t.slots),c=(0,o.computed)({get:function(){var t=e.modelValue;if(!e.hidden)if(m.value){if((0,A.Qd)(t)||(0,A.cy)(t))try{t=s()(t).join(e.separator),n("update:modelValue",t)}catch(e){}}else if(t&&(0,A.Kg)(t)||(0,A.Et)(t)){var r,o;t=null===(r="".concat(t))||void 0===r?void 0:r.split(e.separator),g.value&&(t=null===(o=t)||void 0===o?void 0:l()(o).call(o,(function(e,t,n){return e[n]=t,e}),{})),n("update:modelValue",t)}return t},set:function(e){n("update:modelValue",e)}}),p=(0,o.computed)((function(){return e.separator})),d=(0,o.computed)((function(){var t;return null===(t=e.config)||void 0===t?void 0:t.valueType})),m=(0,o.computed)((function(){return d.value!==A.K4.LIST&&d.value!==A.K4.OBJECT})),g=(0,o.computed)((function(){return d.value===A.K4.OBJECT})),b=(0,o.computed)((function(){return"1"==e.multiple})),E=(0,o.computed)((function(){var t,n,r,o,i=e.options;return e.rangeOptions&&e.rangeOptions.length&&(i=null===(t=i)||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&&(i=null===(r=i)||void 0===r||null===(o=u()(r))||void 0===o?void 0:o.call(r,(function(t){var n;return!(null!==(n=e.excludeOptions)&&void 0!==n&&f()(n).call(n,(function(e){return e==t.columnValue})))}))),i})),w=(0,o.computed)({get:function(){if(b.value){(0,A.$3)(e.config,"isMatch")&&(e.config.isMatch=!0);var t=c.value||"";return t?m.value?t.split(p.value):g.value?s()(t||{}):t:[]}var n;return null!==c.value&&void 0!==c.value?null!==(n=E.value)&&void 0!==n&&f()(n).call(n,(function(e){return e.columnValue==c.value}))?(e.config.isMatch=!0,"".concat(c.value)):(e.config.isMatch=!1,""):""},set:function(e){b.value?c.value=m.value?e.join(p.value):g.value?null==e?void 0:l()(e).call(e,(function(e,t,n){return e[n]=t,e}),{}):e:c.value=e}}),P=(0,o.computed)((function(){var t,n=l()(t=h()(T.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})),O=(0,o.inject)("lang"),C=function(){c.value=""};return function(){var e,t,n,s,l,c;return(0,o.createVNode)(T.ElSelect,(0,o.mergeProps)({class:"custom-self-select"},(0,r.A)((0,r.A)({},i),P.value),{modelValue:w.value,"onUpdate:modelValue":function(e){return w.value=e},onClear:C}),(s={optionDefault:"default"},l={},c={},v()(n=h()(a)).call(n,(function(e){var t;_()(t=h()(s)).call(t,e)?l[s[e]]=a[e]:c[e]=a[e]})),"function"==typeof(t=e=(0,r.A)((0,r.A)({},c),{},{default:function(){var e;return null===(e=E.value)||void 0===e?void 0:x()(e).call(e,(function(e){var t,n;return(0,o.createVNode)(T.ElOption,{key:e.columnValue,label:(null==O||null===(t=O.value)||void 0===t?void 0:S()(t).call(t,"zh"))>-1?e.columnDesc_zh:e.columnDesc,value:e.columnValue,disabled:"0"==e.columnStatus||"2"==e.columnStatus},{default:function(){return[null==l||null===(n=l.default)||void 0===n?void 0:n.call(l,e)]}})}))}}))||"[object Object]"===Object.prototype.toString.call(t)&&!(0,o.isVNode)(t)?e:{default:function(){return[e]}}))}}}},91413:(e,t,n)=>{n.r(t),n.d(t,{default:()=>b});var r=n(22204),o=n(53811),i=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,o.A)((0,o.A)((0,o.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,i.computed)({get:function(){return e.modelValue},set:function(e){s("update:modelValue",e)}}),h=(0,i.inject)("lang"),g=null===(n=(0,i.getCurrentInstance)())||void 0===n?void 0:n.appContext,b=(0,i.computed)((function(){var t;return null===(t=e.config)||void 0===t?void 0:t.lcpPagePopupMapVO})),_=(0,i.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 o,i=null==e||null===(t=e.options)||void 0===t?void 0:c()(t).call(t,(function(e){return e.columnValue==n}));return i?(null==h||null===(o=h.value)||void 0===o?void 0:p()(o).call(o,"zh"))>-1?i.columnDesc_zh:i.columnDesc:n})),E=(0,i.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,i.inject)("buttonActions",{}),w=(0,i.computed)((function(){return _.value})),S=(0,i.computed)((function(){return"1"==(null==e?void 0:e.showTooltip)})),T=(0,v.D)({showTooltip:S,offset:(0,i.computed)((function(){var t=0;return"1"==e.needWrap&&(t=22,e.suffixIcon&&(t=36)),t})),displayValue:w,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,i.inject)("dynamicMapComp"),P=(0,i.inject)("hireRelatMapRules"),O=(0,i.inject)("components"),C=(0,i.inject)("selects"),k=(0,i.inject)("rootValue"),I=(0,i.inject)("dataLoad"),N=(0,i.inject)("rootForm");function j(){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,i.withModifiers)(l.onClick,["stop"]),t.style={cursor:"pointer"}),n=(0,i.resolveComponent)(n)),(0,i.createVNode)(y.ElIcon,t,{default:function(){return[(0,i.createVNode)(n,null,null)]}})}return null}return function(){var t,n,r;return T((n=(0,i.createVNode)(y.ElText,(0,i.mergeProps)((0,o.A)((0,o.A)({},l),E.value),{onClickCapture:(0,i.withModifiers)((function(t){var n,r,o,i,s;i=(null===(n=e.config)||void 0===n?void 0:n.clickActionKey)||(null===(r=e.config)||void 0===r?void 0:r.buttonActionKey)||(null===(o=e.config)||void 0===o?void 0:o.hireRelat),(s=x[i])&&s(e,{dynamicMapComp:A,hireRelatMapRules:P,components:O,selects:C,rootValue:k,dataLoad:I,rootForm:N},g)}),["stop","self"]),class:{cursor:"1"==e.isPointer}}),"function"==typeof(r=t=(0,o.A)({default:function(){return w.value}},u))||"[object Object]"===Object.prototype.toString.call(r)&&!(0,i.isVNode)(r)?t:{default:function(){return[t]}}),"1"==e.needWrap?(0,i.createVNode)("div",{class:{"resolver-custom-cust-input-wrap":!0,"resolver-custom-is-disabled":e.disabled}},[n,j()]):n),{maintain:!0})}}}},77364:(e,t,n)=>{n.d(t,{m:()=>Z,A:()=>ee});var r=n(53474),o=n(37891),i=n(34963),s=n(49859),a=n(75286),l=n(8628),c=n.n(l),u=(n(62010),n(2892),n(66825));const p=(f={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},d={},n.d(d,f),d);var f,d,h=n(86864),m=n(27077),y=n(76172),g=n(16781),v=n.n(g)()("tabsRootContextKey"),b=n(11393),_=n.n(b),E=n(49763),x=n.n(E),w=n(64007),S=n.n(w),T=n(56255),A=n.n(T),P=n(48079),O=n.n(P),C=n(97786),k=n(29544),I=n.n(k),N=n(14166),j=n.n(N),D=n(63579),M=n.n(D),L=(0,u.buildProps)({tabs:{type:(0,u.definePropType)(Array),default:function(){return(0,u.mutable)([])}}}),R="ElTabBar";const B=I()({name:R},{__name:"tab-bar",props:L,setup:function(e,t){var n=t.expose,r=e,l=(0,a.getCurrentInstance)(),p=(0,a.inject)(v);p||(0,u.throwError)(R,"<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,o=0,i=0,a=c()(e=["top","bottom"]).call(e,p.props.tabPosition)?"width":"height",f="width"===a?"x":"y",d="x"===f?"left":"top";return j()(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;o=n["offset".concat((0,u.capitalize)(d))],i=n["client".concat((0,u.capitalize)(a))];var s=window.getComputedStyle(n);return"width"===a&&(r.tabs.length>1&&(i-=M()(s.paddingLeft)+M()(s.paddingRight)),o+=M()(s.paddingLeft)),!1})),(0,s.A)((0,s.A)({},a,"".concat(i,"px")),"transform",_()(n="translate".concat((0,u.capitalize)(f),"(")).call(n,o,"px)"))}()};return(0,a.watch)((function(){return r.tabs}),(0,i.A)((0,o.A)().mark((function e(){return(0,o.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}),(0,C.wYm)(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)}}}),q=B;var F=(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:""},showBar:{type:Boolean,default:!0},stretch:Boolean}),U={tabClick:function(e,t,n){return n instanceof Event},tabRemove:function(e,t){return t instanceof Event}},V="ElTabNav",$=(0,a.defineComponent)({name:V,props:F,emits:U,setup:function(e,t){var n=t.expose,s=t.emit,l=(0,a.getCurrentInstance)(),f=(0,a.inject)(v);f||(0,u.throwError)(V,"<el-tabs><tab-nav /></el-tabs>");var d=(0,y.useNamespace)("tabs"),g=(0,C.fho)(),b=(0,C.esz)(),E=(0,a.ref)(),w=(0,a.ref)(),T=(0,a.ref)(),P=(0,a.ref)(),k=(0,a.ref)(!1),I=(0,a.ref)(0),N=(0,a.ref)(!1),j=(0,a.ref)(!0),D=(0,a.computed)((function(){var e;return c()(e=["top","bottom"]).call(e,f.props.tabPosition)?"width":"height"})),M=(0,a.computed)((function(){var e,t="width"===D.value?"X":"Y";return{transform:_()(e="translate".concat(t,"(-")).call(e,I.value,"px)")}})),L=function(){if(E.value){var e=E.value["offset".concat((0,u.capitalize)(D.value))],t=I.value;if(t){var n=t>e?t-e:0;I.value=n}}},R=function(){if(E.value&&w.value){var e=w.value["offset".concat((0,u.capitalize)(D.value))],t=E.value["offset".concat((0,u.capitalize)(D.value))],n=I.value;if(!(e-n<=t)){var r=e-n>2*t?n+t:e-t;I.value=r}}},B=function(){var e=(0,i.A)((0,o.A)().mark((function e(){var t,n,r,i,s,l,u,p,d,h;return(0,o.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=w.value,k.value&&T.value&&E.value&&n){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,(0,a.nextTick)();case 5:if(r=T.value.querySelector(".is-active")){e.next=8;break}return e.abrupt("return");case 8:i=E.value,s=c()(t=["top","bottom"]).call(t,f.props.tabPosition),l=r.getBoundingClientRect(),u=i.getBoundingClientRect(),p=s?n.offsetWidth-u.width:n.offsetHeight-u.height,d=I.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),I.value=Math.min(h,p);case 18:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),F=function(){var t;if(w.value&&E.value){e.stretch&&(null===(t=P.value)||void 0===t||t.update());var n=w.value["offset".concat((0,u.capitalize)(D.value))],r=E.value["offset".concat((0,u.capitalize)(D.value))],o=I.value;r<n?(k.value=k.value||{},k.value.prev=o,k.value.next=o+r<n,n-o<r&&(I.value=n-r)):(k.value=!1,o>0&&(I.value=0))}},U=function(e){var t,n=e.code,r=p.EVENT_CODE.up,o=p.EVENT_CODE.down,i=p.EVENT_CODE.left,s=p.EVENT_CODE.right;if(c()(t=[r,o,i,s]).call(t,n)){var a,l=x()(e.currentTarget.querySelectorAll<HTMLDivElement>"[role=tab]:not(.is-disabled)"),u=S()(l).call(l,e.target);l[a=n===i||n===r?0===u?l.length-1:u-1:u<l.length-1?u+1:0].focus({preventScroll:!0}),l[a].click(),$()}},$=function(){j.value&&(N.value=!0)},W=function(){return N.value=!1};return(0,a.watch)(g,(function(e){"hidden"===e?j.value=!1:"visible"===e&&A()((function(){return j.value=!0}),50)})),(0,a.watch)(b,(function(e){e?A()((function(){return j.value=!0}),50):j.value=!1})),(0,C.wYm)(T,F),(0,a.onMounted)((function(){return A()((function(){return B()}),0)})),(0,a.onUpdated)((function(){return F()})),n({scrollToActiveTab:B,removeFocus:W}),(0,a.watch)((function(){return e.panes}),(function(){return l.update()}),{flush:"post",deep:!0}),function(){var t,n,o,i=k.value?[(0,a.createVNode)("span",{class:[d.e("nav-prev"),d.is("disabled",!k.value.prev)],onClick:L},[(0,a.createVNode)(h.ElIcon,null,{default:function(){return[(0,a.createVNode)(m.ArrowLeft,null,null)]}})]),(0,a.createVNode)("span",{class:[d.e("nav-next"),d.is("disabled",!k.value.next)],onClick:R},[(0,a.createVNode)(h.ElIcon,null,{default:function(){return[(0,a.createVNode)(m.ArrowRight,null,null)]}})])]:null,l=O()(t=e.panes).call(t,(function(t,n){var r,o,i,l,c,u=t.uid,y=t.props.disabled,g=null!==(r=null!==(o=t.props.name)&&void 0!==o?o:t.index)&&void 0!==r?r:"".concat(n),v=!y&&(t.isClosable||e.editable),b=t.props.hidden;t.index="".concat(n);var E=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===(i=(l=t.slots).label)||void 0===i?void 0:i.call(l))||t.props.label,w=!y&&t.active?0:-1;return b?null:(0,a.createVNode)("div",{ref:"tab-".concat(u),class:[d.e("item"),d.is(f.props.tabPosition),d.is("active",t.active),d.is("disabled",y),d.is("closable",v),d.is("focus",N.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:w,onFocus:function(){return $()},onBlur:function(){return W()},onClick:function(e){W(),s("tabClick",t,g,e)},onKeydown:function(e){!v||e.code!==p.EVENT_CODE.delete&&e.code!==p.EVENT_CODE.backspace||s("tabRemove",t,e)}},[(0,a.createVNode)("div",{title:x,class:"tabs__item-wrap"},_()(c=[x,E]).call(c))])}));return(0,a.createVNode)("div",{ref:T,class:[d.e("nav-wrap"),d.is("scrollable",!!k.value),d.is(f.props.tabPosition),e.showBar?"":"hidden-bar"]},[i,(0,a.createVNode)("div",{class:[d.e("nav-scroll")],ref:E},[(0,a.createVNode)("div",{class:[d.e("nav"),d.is(f.props.tabPosition),d.is("stretch",e.stretch&&c()(n=["top","bottom"]).call(n,f.props.tabPosition))],ref:w,style:M.value,role:"tablist",onKeydown:U},_()(o=[!e.type&&e.showBar?(0,a.createVNode)(q,{ref:P,tabs:(0,r.A)(e.panes)},null):null,l]).call(o))])])}}});const W=$;var K=(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}},showBar:{type:Boolean,default:!0},stretch:Boolean}),z=function(e){return(0,u.isString)(e)||(0,u.isNumber)(e)},H=(0,s.A)((0,s.A)((0,s.A)((0,s.A)((0,s.A)((0,s.A)({},p.UPDATE_MODEL_EVENT,(function(e){return z(e)})),"tabClick",(function(e,t){return t instanceof Event})),"tabChange",(function(e){return z(e)})),"edit",(function(e,t){var n;return c()(n=["remove","add"]).call(n,t)})),"tabRemove",(function(e){return z(e)})),"tabAdd",(function(){return!0}));const G=(0,a.defineComponent)({name:"ElTabs",props:K,emits:H,setup:function(e,t){var n,l=t.emit,c=t.slots,f=t.expose,d=(0,y.useNamespace)("tabs"),g=(0,y.useOrderedChildren)((0,a.getCurrentInstance)(),"ElTabPane"),b=g.children,_=g.addChild,E=g.removeChild,x=(0,a.ref)({}),w=(0,a.ref)(null!==(n=e.modelValue)&&void 0!==n?n:"0"),S=function(){var t=(0,i.A)((0,o.A)().mark((function t(n){var r,i,s,a,c=arguments;return(0,o.A)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=c.length>1&&void 0!==c[1]&&c[1],w.value!==n&&!(0,u.isUndefined)(n)){t.next=3;break}return t.abrupt("return");case 3:return t.prev=3,t.next=6,null===(i=e.beforeLeave)||void 0===i?void 0:i.call(e,n,w.value);case 6:!1!==t.sent&&(w.value=n,r&&(l(p.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||(S(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 S(e)})),(0,a.watch)(w,(0,i.A)((0,o.A)().mark((function e(){var t;return(0,o.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)(v,{props:e,currentName:w,registerPane:_,unregisterPane:E}),f({currentName:w}),function(){var t=c["add-icon"],n=e.editable||e.addable?(0,a.createVNode)("span",{class:d.e("new-tab"),tabindex:"0",onClick:P,onKeydown:function(e){e.code===p.EVENT_CODE.enter&&P()}},[t?(0,a.renderSlot)(c,"add-icon"):(0,a.createVNode)(h.default,{class:d.is("icon-plus")},{default:function(){return[(0,a.createVNode)(m.Plus,null,null)]}})]):null,o=(0,a.createVNode)("div",{class:[d.e("header"),d.is(e.tabPosition)]},[n,(0,a.createVNode)(W,{ref:x,currentName:w.value,editable:e.editable,showBar:e.showBar,type:e.type,panes:b.value,stretch:e.stretch,onTabClick:T,onTabRemove:A},null)]),i=(0,a.createVNode)("div",{class:d.e("content")},[(0,a.renderSlot)(c,"default")]);return(0,a.createVNode)("div",{class:["resolver-tabs",d.b(),d.m(e.tabPosition),(0,s.A)((0,s.A)({},d.m("card"),"card"===e.type),d.m("border-card"),"border-card"===e.type)]},(0,r.A)("bottom"!==e.tabPosition?[i,o]:[o,i]))}}});var Q=n(22720),X=(0,u.buildProps)({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean,hidden:Boolean}),Y=["id","aria-hidden","aria-labelledby"],J="ElTabPane";const Z=I()({name:J},{__name:"tab-pane",props:X,setup:function(e){var t=e,n=(0,a.getCurrentInstance)(),r=(0,a.useSlots)(),o=(0,a.inject)(v);o||(0,u.throwError)(J,"usage: <el-tabs><el-tab-pane /></el-tabs/>");var i=(0,y.useNamespace)("tab-pane"),s=(0,a.ref)(),l=(0,a.computed)((function(){return t.closable||o.props.closable})),c=(0,Q.uA)((function(){var e;return o.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=(0,Q.uA)((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(){o.registerPane(h)})),(0,a.onUnmounted)((function(){o.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)(i).b()),role:"tabpanel","aria-hidden":!(0,a.unref)(c),"aria-labelledby":"tab-".concat(f.value)},[(0,a.renderSlot)(e.$slots,"default")],10,Y)),[[a.vShow,(0,a.unref)(c)]]):(0,a.createCommentVNode)("v-if",!0)}}}),ee=G},32820:(e,t,n)=>{n.d(t,{A:()=>b});var r=n(53811),o=n(86226),i=n.n(o),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),o=e,i=(0,u.computed)((function(){return o.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=o.awalyCloseCb)||void 0===n||n.call(o),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===:",o),s=o.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[o.title?((0,u.openBlock)(),(0,u.createElementBlock)("div",f,[(0,u.createElementVNode)("span",null,(0,u.toDisplayString)(o.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?o.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=i.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 i()(t=a()(n)).call(t,(function(e){v.props[e]=n[e],v.vm.exposed.dialogVisible.value=!0})),v.close;var o=document.createElement("div"),s=(0,u.createVNode)(g,(0,r.A)({},n));return(0,u.render)(s,o),document.body.appendChild(o.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}},70846:(e,t,n)=>{n.d(t,{K:()=>_});var r=n(22204),o=n(49859),i=n(56255),s=n.n(i),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(9318),g=n(71835),v=n(17427);function b(e,t,n){var i=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,b=a.value[e.hireRelat],_=e.metaCode;if("update:modelValue"!==i){var E=i.match(/^update:(\w+)$/);if(!E)return;_=E[1];var x=e.dynamicHireRelat.replace(/->\w+$/,"->".concat(_));e=f[x]}return(0,m.computed)({get:function(){var n,r;if(e){var o=null!==(n=_?null===(r=t.modelValue)||void 0===r?void 0:r[_]:t.modelValue)&&void 0!==n?n:null;return"update:modelValue"===i&&null==o&&(0,g.A)(e),e&&(e.bindValue=o),e&&(!p.value||e.eventInit||e.notInit||s()((function(){null==u||u.run({rootValue:c,rules:b,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},b,!0),(0,v.Ts)(e,"eventInit",!0)}),0)),o}},set:function(i){if(e){var a=t.modelValue,p=_;if(p){if(a){var g;if(null!==(g=e)&&void 0!==g&&g.frameSet&&null!=a&&a[p]&&("object"!==(0,r.A)(a[p])&&"object"!==(0,r.A)(i)||(i=(0,v.Vv)(a[p],i))),(0,v.vr)(a[p])&&(0,v.vr)(i)&&a[p]===i)return;try{t.modelValue[p]=i}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,o.A)({},p,i));e&&s()((function(){null==u||u.run({rootValue:c,rules:b,config:e,dynamicMapComp:f,lang:d,messageInstance:l,_mapComp:h}),y.Ay.call({config:e,dynamicMapComp:f,lang:d,_mapComp:h,messageInstance:l},b)}),0)}}}})}function _(e,t){var n=(0,m.inject)("hireRelatMapRules"),r=(0,m.inject)("dataLoad"),o=(0,m.inject)("dynamicMapComp"),i=(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:o,lang:i,rootValue:a,_mapComp:s,ruleExecuter:c,messageInstance:null==p?void 0:p.value},y=(0,m.reactive)({}),g=b.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=b.call(d,e.config,e,t,n);if(r){var o=n.match(/^update:(\w+)$/);y["onUpdate:".concat(o[1])]=function(e){r.value=e},y[o[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),o=n(66615),i=n.n(o),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,o=t.attrs,s=(0,r.computed)({get:function(){return e.modelValue},set:function(e){n("update:modelValue",e)}}),l=(0,r.inject)("_messageInstance"),f=(0,r.inject)("_getNativeComps"),d=(0,r.inject)("_loadModuleCache"),h=(0,r.inject)("_isH5"),m=(0,r.inject)("injectMode",""),y=e.mode||m;(0,r.provide)("injectMode",y);var g=(0,r.inject)("indectModeRef",(0,r.ref)("")),v=(0,r.computed)((function(){return e.mode||g.value}));return(0,r.provide)("indectModeRef",v),function(){var t=i()(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,i=(0,u.AP)(t,v.value),a=(0,u.fw)({messageInstance:null==l?void 0:l.value,config:t,disabled:i,getNativeComps:f,isH5:null==h?void 0:h.value,loadModuleCache:d});return a?(0,u.ZB)(t,i,null==h?void 0:h.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},o,{mode:v.value,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:()=>I,MM:()=>D,NR:()=>B,Vf:()=>R,Vr:()=>k,Xe:()=>M,cv:()=>N,qK:()=>q});var r=n(53474),o=n(53811),i=(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(i),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),w=(n(66615),n(385)),S=n.n(w),T=n(73363),A=n.n(T),P=n(17427),O=n(71835),C=["setShow","setHidden"],k={};function I(){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 o=this.config,i=(this.dynamicMapComp,o.hireRelat),s=void 0===i?"":i;if(o.dynamicHireRelat,s===n)return o.bindValue;var a=j.call(this,n,o);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 N(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,o=j.call(this,e,r);s()(o).call(o,(function(e){if((0,P.$3)(e,"refValue"))"ElSelect"===e.metaType&&(t=(0,O.l)({config:e,val:t,isActive:!0})),e.refValue=t;else{var r,o,i=n._mapComp;null!=i&&null!==(r=i.value)&&void 0!==r&&r[e.hireRelat]&&(k[e.hireRelat]||(k[e.hireRelat]=[]),l()(o=k[e.hireRelat]).call(o,(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)}))||k[e.hireRelat].push(n))}}))}}function j(e,t,n){var r,o,i,a,c=this,p=t.dynamicHireRelat,d=void 0===p?"":p,m=d,g="",b=/(__@__[^(->)]*__)$/,E=null==d?void 0:d.match(b);E&&(g=E[1],m=null===(a=m)||void 0===a?void 0:a.replace(b,""));for(var x=u()(r=m.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}})),w=-1,S=e.split("->"),T=0;T<S.length;T++){var A=S[T];if(x[T].code!==A){w=T;break}}var P=h()(S).call(S,w),O=u()(o=h()(x).call(x,0,w)).call(o,(function(e){var t,n=e.idx,r=e.code;return-1!==n?y()(t="".concat(r,"[")).call(t,n,"]"):r})).join("->"),I=O,N=null,j=O.match(/^([\w\W]*)\[(\d*)\]$/);j&&(I=j[1],N=j[2]);var D=this.dynamicMapComp,M=this._mapComp,L=[];if(I){var R;L=[D[y()(R="".concat(I)).call(R,g)]]}else{var B,q=P.shift();L=[D[y()(B="".concat(q)).call(B,g)]]}for(var F,U=function(){var e=P.shift(),t=[];s()(L).call(L,(function(r){if(r.multiPmPageMetaList)if(null!==N){var o=r.multiPmPageMetaList[N],i=o&&v()(o).call(o,(function(t){return t.metaCode===e}));if(!i)return;t.push(i),N=null}else{var a;if(_()(C).call(C,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)}})),L=t};P.length;)U();return null!=M&&null!==(i=M.value)&&void 0!==i&&i[e]&&!L.length&&(k[e]||(k[e]=[]),l()(F=k[e]).call(F,(function(e){return(null==e?void 0:e.rules)===(null==c?void 0:c.rules)&&(null==e?void 0:e.config)===(null==c?void 0:c.config)}))||k[e].push(this)),L}function D(e,t){var n=L(e),r=L(t);return n&&r?Number(e)>Number(t):e+"">t+""}function M(e,t){var n=L(e),r=L(t);return n&&r?Number(e)<Number(t):e+""<t+""}function L(e){return!isNaN(Number(e))}function R(e,t){if(!e)return null;var n=this.config;return j.call(this,e,n,t)}function B(e){if(!e)return[];var t=[],n=e.pmRuleDefVoList,i=e.pmRuleDefVOList,a=n||(null==i?void 0:x()(i).call(i,(function(e){return"1"==(null==e?void 0:e.ruleType)})))||[];return s()(a).call(a,(function(e){var n=e.pmRuleEventRelVOList||e.pmRuleEventRelVoList||[],i=u()(n).call(n,(function(t){return(0,o.A)((0,o.A)({},t),{},{ruleType:e.ruleType})}));t.push.apply(t,(0,r.A)(i))})),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("->"):[],o=n?n.split("->"):[],i=-1,s=0;-1===i&&s<r.length&&s<o.length;){var a=r[s],l=new RegExp("^".concat(a,"(\\[\\d+\\])?$")),c=o[s];l.test(c)?(S()(r).call(r,s,1,c),s++):i=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)}))}},9318:(e,t,n)=>{n.d(t,{Ay:()=>X,Zt:()=>j});var r=n(38008),o=(n(44114),n(27495),n(71761),n(86226)),i=n.n(o),s=n(11393),a=n.n(s),l=n(56255),c=n.n(l),u=n(50697),p=n.n(u),f=n(96319),d=n.n(f),h=n(48079),m=n.n(h),y=n(36586),g=n.n(y),v=n(22204),b=n(49859),_=(n(23288),n(2892),n(79432),n(84864),n(57465),n(87745),n(90906),n(38781),n(66615)),E=n.n(_),x=n(64007),w=n.n(x),S=n(8628),T=n.n(S),A=n(31721),P=n.n(A),O=n(19022),C=n(17427),k={COMPONENT:1,SYSTEM:2,SELF:3,COMPONENT_ENMU:4,NULL:5},I=(0,b.A)((0,b.A)((0,b.A)((0,b.A)((0,b.A)({},k.COMPONENT,(function(e){var t,n=e.tabpanelCode,r=e.value;return O.Ct.call(this,a()(t="".concat(n?n+"->":"")).call(t,r))})),k.SYSTEM,(function(e){return function(e){var t=new Date;switch(e){case D.currentDate:return(0,C.Yq)(new Date,"yyyy-MM-dd");case D.currentTimestamp:return(new Date).getTime();case D.CurrentYear:return(0,C.Yq)(new Date,"yyyy");case D.CurrentMonth:return(0,C.Yq)(new Date,"MM");case D.CurrentDay:return(0,C.Yq)(new Date,"dd");case D.CurrentAfter30Day:return t.setDate(t.getDate()+30),(0,C.Yq)(t,"yyyy-MM-dd");case D.CurrentBefore30Day:return t.setDate(t.getDate()-30),(0,C.Yq)(t,"yyyy-MM-dd");default:return e}}(e.value)})),k.SELF,(function(e){return e.value})),k.COMPONENT_ENMU,(function(e){return e.value})),k.NULL,(function(){return null}));function N(e){var t=this,n=e||{},r=n.eventExpress,o=(n.pmRuleTargetEventVoList,n.ruleType,n.tabpanelCode);if(!r)return!1;var i=JSON.parse(r),s=i.relation,l=i.conditions;return m()(l).call(l,(function(e){var n,r=e.refType,i=e.refValue,s=e.targetType,l=e.targetValue;if(k.COMPONENT==r){var c,u=O.Vf.call(t,a()(c="".concat(o?o+"->":"")).call(c,i));if(!u||1!==u.length)return!1}if(!I[r])return!1;var p=I[r].call(t,{tabpanelCode:o,value:i});if(k.COMPONENT==s){var f,d=O.Vf.call(t,a()(f="".concat(o?o+"->":"")).call(f,l));if(!d||1!==d.length)return!1}if(!I[s])return!1;var h=I[s].call(t,{tabpanelCode:o,value:l}),m=p=null==p?"":p,y=h=null==h?"":h;switch(p==Number(p)&&h==Number(h)&&(m=Number(p),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 p==h||!h&&(0,C.cy)(p)&&!p.length;case 6:return p!=h;case 7:return"number"==typeof p&&(p="".concat(p)),!(!E()(p)&&"string"!=typeof p)&&w()(p).call(p,h)>-1;case 8:return!!T()(n=["string","number"]).call(n,(0,v.A)(h))&&new RegExp(h).test(p);default:return!1}}))[1==s?"every":"some"]((function(e){return e}))}function j(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t={};return i()(e).call(e,(function(e){var n=function(e){var t=[],n=e||{},r=n.eventExpress,o=(n.pmRuleTargetEventVoList,n.tabpanelCode);if(!r)return!1;var s=JSON.parse(r).conditions,l=void 0===s?[]:s;return i()(l).call(l,(function(n){var r,i;n.refType!=k.COMPONENT&&n.targetType!=k.COMPONENT||(n.refType==k.COMPONENT&&t.push({key:o?a()(r="".concat(o,"->")).call(r,n.refCode||n.refValue):n.refCode||n.refValue,rules:[e]}),n.targetType==k.COMPONENT&&t.push({key:o?a()(i="".concat(o,"->")).call(i,n.targetValue):n.targetValue,rules:[e]}))})),t}(e);n&&n.length&&i()(n).call(n,(function(e){var n=e.key,r=void 0===n?"":n,o=e.rules,s=void 0===o?[]:o;t[r]?i()(s).call(s,(function(e){var n;null!==(n=t[r])&&void 0!==n&&P()(n).call(n,(function(t){return(null==t?void 0:t.relId)===(null==e?void 0:e.relId)}))||t[r].push(e)})):t[r]=s}))})),t}((0,O.NR)(e))}var D={currentDate:"1",currentTimestamp:"2",CurrentYear:"3",CurrentMonth:"4",CurrentDay:"5",CurrentAfter30Day:"6",CurrentBefore30Day:"7"};var M=n(53474),L=n(85569),R=n.n(L),B=n(38048),q=n.n(B),F=n(9665),U=n.n(F),V=(n(25440),n(85352)),$=(0,M.A)(V.Lu),W=[],K={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"},z={setDefaultValue:function(e,t,n){var r,o=e.targetObj,i=e.targetObjVal;if(o){var s,l=this.config,c=this.dynamicMapComp,u=a()(r="".concat(n?n+"->":"")).call(r,o),p=/^_replace:/.test(i);p&&(i=function(e,t){var n=t.config,r=t.dynamicMapComp;return null==e?void 0:e.replace(/\$\{([^}]+)\}/g,(function(e,t,o){var i,s,a,l=null,c=null===(i=t)||void 0===i||null===(s=i.match)||void 0===s?void 0:s.call(i,/^_absoluteTarget:(.+)$/);if(t===V.DE.REF_VAL)t=null!==(a=null==n?void 0:n.bindValue)&&void 0!==a?a:"";else if(t===V.DE.CURRENT_DATE)t=(0,C.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=i)||void 0===s?void 0:s.replace(/^_replace:/,""),{config:l,dynamicMapComp:c}));var f="";try{f=JSON.parse(i)}catch(e){f=i||""}if("number"==typeof f&&(f="".concat(f)),p);else if(f===V.DE.REF_VAL){var d;f=null!==(d=null==l?void 0:l.bindValue)&&void 0!==d?d:""}else if(f===V.DE.CURRENT_DATE)f=(0,C.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==l||null===(v=l.route)||void 0===v?void 0:v.query;f=null==_?void 0:_[b]}else if("string"==typeof f&&/^_lang$/.test(f))f=null==l?void 0:l._lang;else if("string"==typeof f&&null!=g&&g[1]){var E=null==c?void 0:c[g[1]];f=(null==E?void 0:E.bindValue)||""}else{var x,w,S=null===(x=f)||void 0===x||null===(w=x.match)||void 0===w?void 0:w.call(x,/^_assgin:(.*)$/);if(S)f=null==S?void 0:S[1];else{var T=O.Ct.call(this,u,!0);(T||"0"==T)&&(f=T)}}}O.cv.call(this,u,f)}},setClear:function(e,t,n){var r;if(!t){var o=e.targetObj;if(o){var s=a()(r="".concat(n?n+"->":"")).call(r,o),l=O.Vf.call(this,s);i()(l).call(l,(function(e){if(e){var t="";T()($).call($,e.metaType||e.labelType)&&(t=[]),T()(W).call(W,e.metaType||e.labelType)&&(t=!1),(0,C.$3)(e,"refValue")&&(e.refValue=t)}}))}}},setDisable:function(e,t,n){var r,o=e.targetObj;if(o){var s=a()(r="".concat(n?n+"->":"")).call(r,o),l=O.Vf.call(this,s);return i()(l).call(l,(function(e){e&&(e.editFlag="0")})),function(){i()(l).call(l,(function(e){e&&(e.editFlag="1")}))}}},setDisableNotEffect:function(e,t,n){var r,o=e.targetObj;if(o){var s=a()(r="".concat(n?n+"->":"")).call(r,o),l=O.Vf.call(this,s),c=[];return i()(l).call(l,(function(e){var t=e&&e.editFlag;c.push(t),e&&(e.editFlag="0")})),function(){i()(l).call(l,(function(e,t){var n=c[t];e&&(e.editFlag=n)}))}}},setRequired:function(e,t,n){var r,o=e.targetObj;if(o){var s=a()(r="".concat(n?n+"->":"")).call(r,o),l=O.Vf.call(this,s);return i()(l).call(l,(function(e){e&&(e.requiredFlag="1"),e&&e.refConfig&&(e.refConfig.requiredFlag="1")})),function(){i()(l).call(l,(function(e){e&&(e.requiredFlag="0"),e&&e.refConfig&&(e.refConfig.requiredFlag="0")}))}}},setRequiredNotEffect:function(e,t,n){var r,o=e.targetObj;if(o){var s=a()(r="".concat(n?n+"->":"")).call(r,o),l=O.Vf.call(this,s),c=[];return i()(l).call(l,(function(e){var t=e&&e.requiredFlag;c.push(t),e&&(e.requiredFlag="1"),e&&e.refConfig&&(e.refConfig.requiredFlag="1")})),function(){i()(l).call(l,(function(e,t){var n=c[t];e&&(e.requiredFlag=n),e&&e.refConfig&&(e.refConfig.requiredFlag=n)}))}}},setHidden:function(e,t,n){var r,o=e.targetObj;if(o){var s=a()(r="".concat(n?n+"->":"")).call(r,o),l=O.Vf.call(this,s,"setHidden");return c()((function(){i()(l).call(l,(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(){i()(l).call(l,(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 o,s=e.targetObj;if(s){var l=a()(o="".concat(n?n+"->":"")).call(o,s),u=O.Vf.call(this,l,"setShow");return i()(u).call(u,(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 c()((function(){i()(u).call(u,(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,o=e.targetObj;if(o){var s=a()(r="".concat(n?n+"->":"")).call(r,o),l=O.Vf.call(this,s),c=[];return i()(l).call(l,(function(e){e&&"0"!=e.requiredFlag&&(e&&(e.requiredFlag="0"),c.push((function(){e&&(e.requiredFlag="1")})))})),function(){i()(c).call(c,(function(e){return e()}))}}},setNoRequiredNotEffect:function(e,t,n){var r,o=e.targetObj;if(o){var s=a()(r="".concat(n?n+"->":"")).call(r,o),l=O.Vf.call(this,s),c=[];return i()(l).call(l,(function(e){var t=e&&e.requiredFlag;c.push(t),e&&(e.requiredFlag="0")})),function(){i()(l).call(l,(function(e,t){var n=c[t];e&&(e.requiredFlag=n)}))}}},setNoDisable:function(e,t,n){var r,o=e.targetObj;if(o){var s=a()(r="".concat(n?n+"->":"")).call(r,o),l=O.Vf.call(this,s);return i()(l).call(l,(function(e){e&&(e.editFlag="1")})),function(){i()(l).call(l,(function(e){e&&(e.editFlag="0")}))}}},setNoDisableNotEffect:function(e,t,n){var r,o=e.targetObj;if(o){var s=a()(r="".concat(n?n+"->":"")).call(r,o),l=O.Vf.call(this,s),c=[];return i()(l).call(l,(function(e){var t=e&&e.editFlag;c.push(t),e&&(e.editFlag="1")})),function(){i()(l).call(l,(function(e,t){var n=c[t];e&&(e.editFlag=n)}))}}},limitDataRange:function(e,t,n){var r,o=this,s=e.targetObj,l=e.targetObjVal,c=void 0===l?"":l;if(s){var u,f=a()(r="".concat(n?n+"->":"")).call(r,s);if((u=(null==c?void 0:w()(c).call(c,"~"))>-1?c.split("~"):c.split(","))&&u.length){var d=[],h=O.Vf.call(this,f);return i()(h).call(h,(function(t){var n=!1,r={};if(d.push(r),t){var s=o.config,a="";if(-1!==(0,C.Tn)(["ElDatePicker"],(null==t?void 0:t.renderby)||(null==t?void 0:t.metaType))){var l=u[0],c=u[1];try{a=(0,C.Ho)({extendAttr:R()({min:l,max:c}),metaCode:"event limitDataRange code:".concat(t.metaCode)},null==s?void 0:s.bindValue)}catch(e){a=""}}else{if(-1===(0,C.Tn)(["ElSelect"],(null==t?void 0:t.renderby)||(null==t?void 0:t.metaType))){var h=O.Ct.call(o,f,!0);return min&&(0,O.Xe)(h,min)&&O.cv.call(o,t,min),void(max&&(0,O.MM)(h,max)&&O.cv.call(o,t,max))}try{console.log("event==:",e),a=(0,C.Ho)({extendAttr:R()({rangeOptions:u}),metaCode:"event limitDataRange code:".concat(t.metaCode)},null==s?void 0:s.bindValue)}catch(e){a=""}}if(delete a.metaCode,(0,C.Qd)(a)){var m,y,g=p()(a);i()(g).call(g,(function(e){if(r[e]=t[e],(0,C.$3)(t,e)||(n=!0),"string"==typeof a[e]){var i=o.config,s=null==i?void 0:i.bindValue;t[e]=a[e].replace(/\{([^}]+)\}/g,(function(e,t){var n,r;return q()(n=U()(t).call(t)).call(n)===V.DE.REF_VAL?s:q()(r=U()(t).call(t)).call(r)===V.DE.CURRENT_DATE?(0,C.Yq)(new Date,"yyyy-MM-dd"):e}))}else t[e]=a[e]})),n&&(null==t||null===(m=t.wrapVm)||void 0===m||null===(m=m.proxy)||void 0===m||null===(y=m.$forceUpdate)||void 0===y||y.call(m))}}})),function(){i()(h).call(h,(function(e,t){var n=d[t];if(e){var r=p()(n);i()(r).call(r,(function(t){e[t]=n[t]}))}}))}}}},setPopup:function(e,t,n){var r,o=e.targetMsg,i=e.targetMsgEn,s=w()(r=this.lang.value).call(r,"zh")>-1?o:i;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 o,s=this,l=e.targetObj,c=e.targetObjVal;if(l){var u=a()(o="".concat(n?n+"->":"")).call(o,l),f=this.config,d="";try{d=(0,C.Ho)({extendAttr:c,metaCode:"event setPorps code:".concat(f.metaCode)},null==f?void 0:f.bindValue)}catch(e){d=""}if(delete d.metaCode,(0,C.Qd)(d)){var h=O.Vf.call(this,u),m=[],y=p()(d);return i()(h).call(h,(function(e){var t,n,r=!1,o={};e&&(i()(y).call(y,(function(t){if(o[t]=e[t],(0,C.$3)(e,t)||(r=!0),"string"==typeof d[t]){var n=s.config,i=null==n?void 0:n.bindValue;e[t]=d[t].replace(/\{([^}]+)\}/g,(function(e,t){var n,r;return q()(n=U()(t).call(t)).call(n)===V.DE.REF_VAL?i:q()(r=U()(t).call(t)).call(r)===V.DE.CURRENT_DATE?(0,C.Yq)(new Date,"yyyy-MM-dd"):e}))}else e[t]=d[t]})),m.push(o),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(){i()(h).call(h,(function(e,t){var n=m[t];e&&i()(y).call(y,(function(t){e[t]=n[t]}))}))}}}}};function H(e,t,n,r){var o=this;return e=e||[],m()(e).call(e,(function(e){var i=e.eventId,s=K[i];return console.log("evnet===:",s,e),z[s]&&z[s].call(o,e,t,n,r)}))}var G={},Q={};function X(e,t){var n=this;e=e||[],this.rules=e;var o=this.config,s=o.dynamicHireRelat,l=o.columnId,u=o.id;o.metaCode,e&&e.length&&i()(e).call(e,(function(e){var o,f,h;if(e){var m=e.pmRuleTargetEventVoList,y=e.pmRuleTargetEventVOList,g=e.relId,v=e.tabpanelCode,b=a()(o=a()(f=a()(h="".concat(g,"__")).call(h,l||"")).call(f,u||"","__")).call(o,s);if(N.call(n,e))c()((function(){var r,o;G[b]&&i()(r=G[b]).call(r,(function(e){if(e){var t=null==e?void 0:e();t&&(Q[b]||(Q[b]=[]),Q[b].push(t))}})),Q[b]&&(null===(o=Q[b])||void 0===o||i()(o).call(o,(function(e){return e&&clearTimeout(e)})));var s=H.call(n,m||y,t,v,e);G[b]=s}),0);else{var _=p()(G),E=d()(_).call(_,(function(e){var t=e.split("__"),n=(0,r.A)(t,3),o=n[0],i=(n[1],n[2]);if(o==g){if(i===s)return!0;for(var a=Y(i).codes,l=Y(s).codes,c=0;c<l.length;c++){var u=l[c],p=a[c];if(!p||u.code!==p.code)return!1;if(u.idx!==p.idx)return!1}return!0}return!1}));i()(E).call(E,(function(e){var t;G[e]&&i()(t=G[e]).call(t,(function(t){if(t){var n=t();n&&(Q[e]||(Q[e]=[]),Q[e].push(n))}})),delete G[e]}))}}}))}function Y(e){var t,n="",r=m()(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:g()(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:()=>ce,$N:()=>fe,Dg:()=>_e,E1:()=>oe,Ij:()=>ge,M6:()=>J,Oe:()=>he,PT:()=>te,Qd:()=>ue,Tn:()=>re,Ts:()=>be,V9:()=>xe,Vv:()=>de,Yq:()=>pe,ZH:()=>ne,bO:()=>se,fN:()=>ve,fz:()=>ie,iF:()=>Ee,mg:()=>W.A,oY:()=>we,pp:()=>ye,q2:()=>K.A,ro:()=>ae,vr:()=>Z,yL:()=>me});var r=n(38008),o=n(53811),i=n(7252),s=n(53474),a=n(22204),l=(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(90744),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)),c=n.n(l),u=n(71426),p=n.n(u),f=n(27124),d=n.n(f),h=n(36586),m=n.n(h),y=n(18979),g=n.n(y),v=n(73363),b=n.n(v),_=n(86226),E=n.n(_),x=n(50697),w=n.n(x),S=(n(43981),n(11393)),T=n.n(S),A=n(66615),P=n.n(A),O=n(11265),C=n.n(O),k=n(48079),I=n.n(k),N=n(53930),j=n.n(N),D=n(87842),M=n.n(D),L=n(59261),R=n.n(L),B=n(74707),q=n.n(B),F=n(165),U=n.n(F),V=n(78010),$=n.n(V),W=n(88592),K=n(14835),z=n(36380),H=n(92049),G=n(46996),Q=n(10565),X=n(12935);function Y(e){var t=c()(null);return function(n){return t[n]||(t[n]=e(n))}}function J(e){if(!e)return null;var t=Number(e);if(isNaN(t)){var n=["px","%","vh","vw","rem","em"],r=p()(n).call(n,(function(t){return null==e?void 0:d()(e).call(e,t)}));return r?m()(e)+r:null}return t+"px"}function Z(e){var t=(0,a.A)(e);return"undefined"===t||"boolean"===t||"number"===t||"string"===t||"symbol"===t||"bigint"===t}n(75286);var ee=/-(\w)/g,te=Y((function(e){return e.replace(ee,(function(e,t){return t?t.toUpperCase():""}))})),ne=Y((function(e){return e.charAt(0).toUpperCase()+g()(e).call(e,1)}));function re(e,t){var n=ie(b()(e).call(e,(function(e,t,n){return e[t]=n,e}),{}),t);return null==n?-1:n}function oe(e,t){return-1!==re(e,null==t?void 0:t.renderby)||-1!==re(e,null==t?void 0:t.metaType)}function ie(e,t){if("string"!=typeof t)return null;var n=e;if(void 0!==n[t]&&null!==n[t])return n[t];var r=te(t);if(void 0!==n[r]&&null!==n[r])return n[r];var o=ne(r);return void 0!==n[o]&&null!==n[o]?n[o]:null}function se(e){return"string"!=typeof e?e:ne(te(e))}function ae(e,t){return"string"==typeof e&&"string"==typeof t&&ne(te(e))===ne(te(t))}var le=Object.prototype.hasOwnProperty;function ce(e,t){return le.call(e,t)}function ue(e){return"[object Object]"===Object.prototype.toString.call(e)&&null!=e}function pe(e,t){var n;if(!e)return"";(0,X.$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 E()(n=w()(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 fe(e,t,n){if(!t)return e;if(!e)return t;var r=(0,z.A)(e,t,(function(e,t){if(!t)return e;if(!e)return t;if((0,H.A)(t)&&(0,H.A)(e))switch(n){case"union":return(0,K.A)(e,t,G.A);case"intersection":return(0,Q.A)(e,t,G.A);case"concat":return T()(e).call(e,t);case"replace":return t;default:throw new Error("Unknown merge array strategy: ".concat(n))}return ue(t)&&ue(e)?fe(e,t,n):t}));if(P()(e)&&r&&!P()(r)){var o,i=[];E()(o=w()(r)).call(o,(function(e){i[e]=r[e]})),r=i}return r}function de(e,t){var n=t;if("object"===(0,a.A)(e)&&"object"===(0,a.A)(t)&&(n=(0,z.A)(e,t,(function(e,t){if((0,H.A)(e)&&(0,H.A)(t)){for(var n=[],r=0;r<e.length&&r<t.length;r++)n.push(de(e[r],t[r]));return r<e.length?n.push.apply(n,(0,s.A)(g()(e).call(e,r))):n.push.apply(n,(0,s.A)(g()(t).call(t,r))),n}return ue(t)&&ue(e)?de(e,t):t}))),P()(e)&&n&&!P()(n)){var r,o=[];E()(r=w()(n)).call(r,(function(e){o[e]=n[e]})),n=o}return n}function he(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 me(e){return e&&"function"==typeof e.then}function ye(){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 ge(){var e;return T()(e="".concat(pe(new Date,"yyyy-MM-dd hh:mm:ss"),"-")).call(e,function(){if("object"===("undefined"==typeof crypto?"undefined":(0,a.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 ve(e,t){var n,r,o,i=e.referenceOptions,s=e.selectKey,a=[];try{var l;a=I()(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===(o=t.value)||void 0===o?void 0:o[i])||a||[];return(null==e?void 0:e.priOptions)||c}function be(e,t,n,r){e[t]=n;var i=r||{};j()(e,t,(0,o.A)({value:n,writable:!0,enumerable:!1,configurable:!0},i))}function _e(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new(M());if(null===e||"object"!==(0,a.A)(e))switch((0,a.A)(e)){case"string":case"number":return"";default:return null}if(r.has(e))return r.get(e);if(P()(e))t=[],r.set(e,t),(n=t).push.apply(n,(0,s.A)(I()(e).call(e,(function(e){return _e(e,r)}))));else if(e instanceof Date)t=null;else if(e instanceof R())t=new(R());else if(e instanceof q())t=new(q());else{t={},r.set(e,t);for(var o=0,i=w()(e);o<i.length;o++){var l=i[o],c=_e(e[l],r);null!=c&&(t[l]=c)}}return t}function Ee(e){var t;if(null==e)return"NaN";var n=C()(t=String(e)).call(t).match(/^[+-]?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/);if(!n)return"NaN";var o=n[0];return/e/i.test(o)&&(o=function(e){var t=e.split(/e/gi),n=(0,r.A)(t,2),o=n[0],i=n[1],s=i?m()(i,10):0,a=o.split("."),l=(0,r.A)(a,2),c=l[0],u=l[1],p=void 0===u?"":u,f=U()(c).call(c,"-");f&&(c=g()(c).call(c,1));var d=c+p,h=c.length+s;return h>=d.length?(f?"-":"")+d+$()("0").call("0",h-d.length):h<=0?(f?"-":"")+"0."+$()("0").call("0",-h)+d:(f?"-":"")+g()(d).call(d,0,h)+(g()(d).call(d,h)?"."+g()(d).call(d,h):"")}(o)),function(e){if(""===e)return"0";var t=U()(e).call(e,"-"),n=(t?g()(e).call(e,1):e).split("."),o=(0,r.A)(n,2),i=o[0],s=o[1],a="";return a+=t?"-":"",a+=i=i.replace(/^0+/,"")||"0",a+=(s=(s||"").replace(/0+$/,""))?"."+s:"",U()(a).call(a,".")&&(a="0"+a),U()(a).call(a,"-.")&&(a="-0"+g()(a).call(a,1)),a}(o)}function xe(){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=b()(r).call(r,(function(e,t){return e?e[t]:null}),t))&&void 0!==e?e:""}function we(){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 o=e;E()(r).call(r,(function(e,t){t+1===r.length?o[e]=null!=n?n:"":(o[e]||(o[e]={}),o=o[e])}))}},85352:(e,t,n)=>{n.d(t,{AP:()=>I,Bs:()=>_,DE:()=>c,K4:()=>u,LX:()=>g,Lu:()=>v,MD:()=>E,Op:()=>T,R_:()=>h,UP:()=>m,V6:()=>b,Xj:()=>O,aX:()=>w,dK:()=>k,fH:()=>S,g:()=>l,jf:()=>y,of:()=>d,pL:()=>x,s1:()=>N,ue:()=>P,un:()=>f,yD:()=>A,yz:()=>C});var r=n(64007),o=n.n(r),i=n(11393),s=n.n(i),a=(n(2892),n(48618)),l={OPERATE:"operate",DETAIL:"detail",LOG:"log"},c={CURRENT_DATE:"_currentDate",CURRENT_DATE_TIME:"_currentDateTime",REF_VAL:"_refVal"},u={LIST:"list",OBJECT:"object",STRING:"string"},p=["CustomComponentTabs","CustomComponentTabPane","CustomComponentCycleTabPane","CustomComponentCollapse","CustomComponentTabPaneH5"],f="CustomComponentFormLayout",d="CustomComponentFormLayoutH5",h=["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"],m=["ElInput","ElButton","CmiInput","CmiButton","ElText"],y=["CmiInput","CmiSelect","CmiPicker"],g=["CustomComponentTabPane","CustomComponentDialog","CustomComponentCol","CustomComponentTabPaneH5"],v=["CustomComponentTable"],b=["el-select","el-date-picker","el-time-picker","el-time-select","el-cascader","el-input-number","CustomComponentTree","CustomComponentSteps"],_=["el-span"],E="el-",x="t-",w="cmi-",S="H5-",T="0",A=["ElText"],P=["ElInput","ElDatePicker","ElInputNumber"],O=["ElSelect"],C={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 I(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 k({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,i){return((null==i?void 0:o()(i).call(i,"zh"))>-1?e.defPlacehold:e.defPlaceholdEn)||""}},placeholderEn:{type:String,default:function(){return""},getValue:function(e,t,n,r,o){return e.defPlaceholdEn}}};function k(e){var t=e.config;return"boolean"==typeof t.hidden&&t.hidden||"1"==t.hidden||"1"==t.collapseHidden}function I(e,t){var n,r;return!(0,a.E1)(["CustomComponentTabs"],e)&&(t===l.LOG?!e.logAlong&&!(0,a.E1)(s()(n=[f]).call(n,p),e)||"0"==e.editFlag:t===l.DETAIL&&!e.detailAlong&&!(0,a.E1)(s()(r=[f]).call(r,p),e)||"0"==e.editFlag)}var N={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=C)},71835:(e,t,n)=>{n.d(t,{A:()=>m,l:()=>y});var r=n(8628),o=n.n(r),i=n(11393),s=n.n(i),a=n(57119),l=n.n(a),c=n(73363),u=n.n(c),p=(n(48598),n(23288),n(79432),n(27495),n(90906),n(71761),n(90744),n(75286)),f=n(48618),d=n(85352),h=n(12935);function m(e){if((e.defaultVal||e.defaultValue)&&!e.bindValue&&0!==e.bindValue&&(!(0,h.cy)(e.bindValue)||!e.bindValue.length)){var t=e.defaultVal||e.defaultValue,n=null;try{var r,i;if("string"==typeof t){var a=null;if("string"==typeof t&&(a=t.match(/^_route:(.*)$/))){var l,c=a[1],u=null==e||null===(l=e.route)||void 0===l?void 0:l.query;n=null==u?void 0:u[c]}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 m;n=t===d.DE.CURRENT_DATE||"currentDate"===t||t===d.DE.CURRENT_DATE_TIME?t===d.DE.CURRENT_DATE_TIME?(0,f.Yq)(new Date,"yyyy-MM-dd hh:mm:ss"):(0,f.Yq)(new Date,"yyyy-MM-dd"):o()(m=["true","false"]).call(m,t)?"true"==t:t}}else n=(0,p.toRaw)(t);"ElSelect"===e.metaType&&(n=y({config:e,val:n})),console.log(s()(r=s()(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)}}}function y(e){var t=e.config,n=e.val,r=e.isActive,o=void 0!==r&&r,i=n;if(!(0,d.dK)({config:t})||o){var s,a,c=null==t?void 0:t.valueType,p=null==t?void 0:t.separator;if(c!==d.K4.LIST&&c!==d.K4.OBJECT){if((0,f.Qd)(n)||(0,h.cy)(n))try{i=l()(n).join(p)}catch(e){i=n}}else(n&&(0,h.Kg)(n)||(0,h.Et)(n))&&(i=null===(s="".concat(n))||void 0===s?void 0:s.split(p),c==d.K4.OBJECT&&(i=null===(a=i)||void 0===a?void 0:u()(a).call(a,(function(e,t,n){return e[n]=t,e}),{})))}return i}},24691:(e,t,n)=>{function r(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=document.createRange();return o.setStart(e,0),o.setEnd(e,null==e||null===(t=e.childNodes)||void 0===t?void 0:t.length),(null===(n=o.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,AP:()=>i.AP,Bs:()=>i.Bs,Dg:()=>r.Dg,Et:()=>s.Et,Ho:()=>o.Ho,Ij:()=>r.Ij,K4:()=>i.K4,KK:()=>o.KK,Kg:()=>s.Kg,M9:()=>o.M9,Op:()=>i.Op,PT:()=>r.PT,Qd:()=>r.Qd,SK:()=>o.SK,Tn:()=>r.Tn,Ts:()=>r.Ts,UP:()=>i.UP,V9:()=>r.V9,Vv:()=>r.Vv,Yq:()=>r.Yq,ZB:()=>o.ZB,ZH:()=>r.ZH,cy:()=>s.cy,fw:()=>o.fw,iF:()=>r.iF,mg:()=>r.mg,oY:()=>r.oY,q2:()=>r.q2,qg:()=>o.qg,rn:()=>o.rn,ro:()=>r.ro,vr:()=>r.vr,yL:()=>r.yL,yo:()=>o.yo,yz:()=>i.yz});var r=n(48618),o=n(8069),i=n(85352),s=n(12935)},12935:(e,t,n)=>{n.d(t,{$P:()=>i.A,Et:()=>a.A,Kg:()=>c.A,Tn:()=>s.A,b0:()=>u.A,cy:()=>f,kZ:()=>l.A,sw:()=>d,yr:()=>p.A});var r=n(66615),o=n.n(r),i=(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),p=n(429);function f(e){return e&&o()(e)}function d(e){return null!=e}Object.prototype.toString},20807:(e,t,n)=>{n.d(t,{A:()=>A});var r=n(37891),o=n(34963),i=(n(79432),n(74707)),s=n.n(i),a=n(29544),l=n.n(a),c=n(86226),u=n.n(c),p=n(50697),f=n.n(p),d=n(75286),h=[(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 q.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 w.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 S.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 oe.default}}),Object.defineProperty(t,"isScope",{enumerable:!0,get:function(){return ie.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 N.default}}),Object.defineProperty(t,"toExpression",{enumerable:!0,get:function(){return j.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 o=n(348),i=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),w=n(174),S=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),N=n(379),j=n(380),D=n(178),M=n(381),L=n(382),R=n(383),B=n(9);Object.keys(B).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===B[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return B[e]}}))}));var q=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),oe=n(393),ie=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:o.default,isCompatTag:i.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 o.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 i.resolvePlugin}}),Object.defineProperty(t,"resolvePreset",{enumerable:!0,get:function(){return i.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),o=n(453),i=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=i,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,o.default)("isModuleDeclaration","isImportOrExportDeclaration"),i(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,o.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,o.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,o.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,o.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),o=n(58);function i(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:o,MAX_SAFE_INTEGER:i}=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>o)throw new TypeError(`version is longer than ${o} 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>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||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<i)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],o=e.prerelease[t];if(r("prerelease compare",t,n,o),void 0===n&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===n)return-1;if(n!==o)return c(n,o)}while(++t)}compareBuild(e){e instanceof u||(e=new u(e,this.options));let t=0;do{const n=this.build[t],o=e.build[t];if(r("prerelease compare",t,n,o),void 0===n&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===n)return-1;if(n!==o)return c(n,o)}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,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=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:o,computed:i,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,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"ClassDeclaration",id:e,superClass:t,body:n,decorators:o})},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,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"ClassExpression",id:e,superClass:t,body:n,decorators:o})},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,o=arguments.length>3?arguments[3]:void 0,i=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:o,computed:i,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,o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return(0,r.default)({type:"ClassPrivateMethod",kind:e,key:t,params:n,body:o,static:i})},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,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return(0,r.default)({type:"ClassPrivateProperty",key:e,value:t,decorators:n,static:o})},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,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=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:o,computed:i,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,o=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"DeclareClass",id:e,typeParameters:t,extends:n,body:o})},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,o=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"DeclareInterface",id:e,typeParameters:t,extends:n,body:o})},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 o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return(0,r.default)({type:"ForOfStatement",left:e,right:t,body:n,await:o})},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,o=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"ForStatement",init:e,test:t,update:n,body:o})},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,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return(0,r.default)({type:"FunctionDeclaration",id:e,params:t,body:n,generator:o,async:i})},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,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return(0,r.default)({type:"FunctionExpression",id:e,params:t,body:n,generator:o,async:i})},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,o=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"FunctionTypeAnnotation",typeParameters:e,params:t,rest:n,returnType:o})},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,o=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"InterfaceDeclaration",id:e,typeParameters:t,extends:n,body:o})},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,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"JSXElement",openingElement:e,closingElement:t,children:n,selfClosing:o})},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],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"MemberExpression",object:e,property:t,computed:n,optional:o})},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,o.default)("NumberLiteral","NumericLiteral","The node type "),i(e)},t.numberLiteralTypeAnnotation=function(e){return(0,r.default)({type:"NumberLiteralTypeAnnotation",value:e})},t.numberTypeAnnotation=function(){return{type:"NumberTypeAnnotation"}},t.numericLiteral=i,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,o=arguments.length>3?arguments[3]:void 0,i=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:o,computed:i,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],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;return(0,r.default)({type:"ObjectProperty",key:e,value:t,computed:n,shorthand:o,decorators:i})},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]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return(0,r.default)({type:"ObjectTypeAnnotation",properties:e,indexers:t,callProperties:n,internalSlots:o,exact:i})},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,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"ObjectTypeIndexer",id:e,key:t,value:n,variance:o,static:null})},t.objectTypeInternalSlot=function(e,t,n,o,i){return(0,r.default)({type:"ObjectTypeInternalSlot",id:e,value:t,optional:n,static:o,method:i})},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,o=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"OpaqueType",id:e,typeParameters:t,supertype:n,impltype:o})},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],o=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"OptionalMemberExpression",object:e,property:t,computed:n,optional:o})},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",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"Program",body:e,directives:t,sourceType:n,interpreter:o,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,o.default)("RegexLiteral","RegExpLiteral","The node type "),s(e,t)},t.restElement=a,t.restProperty=function(e){return(0,o.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,o.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,o){return(0,r.default)({type:"TSConditionalType",checkType:e,extendsType:t,trueType:n,falseType:o})},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,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"TSDeclareFunction",id:e,typeParameters:t,params:n,returnType:o})},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,o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;return(0,r.default)({type:"TSDeclareMethod",decorators:e,key:t,typeParameters:n,params:o,returnType:i})},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,o=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"TSInterfaceDeclaration",id:e,typeParameters:t,extends:n,body:o})},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,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"TSMethodSignature",key:e,typeParameters:t,parameters:n,typeAnnotation:o,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),o=n(58);function i(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=i(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=o.get(t);if(n)return n;const r=this.options.loose,i=r?c[u.HYPHENRANGELOOSE]:c[u.HYPHENRANGE];e=e.replace(i,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 o.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 o=new(n(132))({max:1e3}),i=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 o=r.pop();for(;n&&r.length;)n=r.every((e=>o.intersects(e,t))),o=r.pop();return n},b=(e,t)=>(a("comp",e,t),e=w(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,o,i)=>{let s;return a("tilde",e,t,n,r,o,i),_(n)?s="":_(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:_(o)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:i?(a("replaceTilde pr",i),s=`>=${n}.${r}.${o}-${i} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${o} <${n}.${+r+1}.0-0`,a("tilde return",s),s}))},w=(e,t)=>e.trim().split(/\s+/).map((e=>S(e,t))).join(" "),S=(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,o,i,s)=>{let l;return a("caret",e,t,n,o,i,s),_(n)?l="":_(o)?l=`>=${n}.0.0${r} <${+n+1}.0.0-0`:_(i)?l="0"===n?`>=${n}.${o}.0${r} <${n}.${+o+1}.0-0`:`>=${n}.${o}.0${r} <${+n+1}.0.0-0`:s?(a("replaceCaret pr",s),l="0"===n?"0"===o?`>=${n}.${o}.${i}-${s} <${n}.${o}.${+i+1}-0`:`>=${n}.${o}.${i}-${s} <${n}.${+o+1}.0-0`:`>=${n}.${o}.${i}-${s} <${+n+1}.0.0-0`):(a("no pr"),l="0"===n?"0"===o?`>=${n}.${o}.${i}${r} <${n}.${o}.${+i+1}-0`:`>=${n}.${o}.${i}${r} <${n}.${+o+1}.0-0`:`>=${n}.${o}.${i} <${+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,o,i,s,l)=>{a("xRange",e,n,r,o,i,s,l);const c=_(o),u=c||_(i),p=u||_(s),f=p;return"="===r&&f&&(r=""),l=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&f?(u&&(i=0),s=0,">"===r?(r=">=",u?(o=+o+1,i=0,s=0):(i=+i+1,s=0)):"<="===r&&(r="<",u?o=+o+1:i=+i+1),"<"===r&&(l="-0"),n=`${r+o}.${i}.${s}${l}`):u?n=`>=${o}.0.0${l} <${+o+1}.0.0-0`:p&&(n=`>=${o}.${i}.0${l} <${o}.${+i+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,o,i,s,a,l,c,u,p,f,d)=>`${n=_(r)?"":_(o)?`>=${r}.0.0${e?"-0":""}`:_(i)?`>=${r}.${o}.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 o.ALIAS_KEYS}}),Object.defineProperty(t,"BUILDER_KEYS",{enumerable:!0,get:function(){return o.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 o.DEPRECATED_KEYS}}),Object.defineProperty(t,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return o.FLIPPED_ALIAS_KEYS}}),Object.defineProperty(t,"NODE_FIELDS",{enumerable:!0,get:function(){return o.NODE_FIELDS}}),Object.defineProperty(t,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return o.NODE_PARENT_VALIDATIONS}}),Object.defineProperty(t,"PLACEHOLDERS",{enumerable:!0,get:function(){return i.PLACEHOLDERS}}),Object.defineProperty(t,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return i.PLACEHOLDERS_ALIAS}}),Object.defineProperty(t,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return i.PLACEHOLDERS_FLIPPED_ALIAS}}),t.TYPES=void 0,Object.defineProperty(t,"VISITOR_KEYS",{enumerable:!0,get:function(){return o.VISITOR_KEYS}});var r=n(166);n(167),n(356),n(357),n(358),n(359),n(360);var o=n(18),i=n(169),s=n(361);Object.keys(s.DEPRECATED_ALIASES).forEach((e=>{o.FLIPPED_ALIAS_KEYS[e]=o.FLIPPED_ALIAS_KEYS[s.DEPRECATED_ALIASES[e]]})),r(o.VISITOR_KEYS),r(o.ALIAS_KEYS),r(o.FLIPPED_ALIAS_KEYS),r(o.NODE_FIELDS),r(o.BUILDER_KEYS),r(o.DEPRECATED_KEYS),r(i.PLACEHOLDERS_ALIAS),r(i.PLACEHOLDERS_FLIPPED_ALIAS),t.TYPES=[].concat(Object.keys(o.VISITOR_KEYS),Object.keys(o.FLIPPED_ALIAS_KEYS),Object.keys(o.DEPRECATED_KEYS))},(e,t,n)=>{var r=n(17);function o(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function i(e,t){for(var n,r="",o=0,i=-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(i===a-1||1===s);else if(i!==a-1&&2===s){if(r.length<2||2!==o||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="",o=0):o=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),i=a,s=0;continue}}else if(2===r.length||1===r.length){r="",o=0,i=a,s=0;continue}t&&(r.length>0?r+="/..":r="..",o=2)}else r.length>0?r+="/"+e.slice(i+1,a):r=e.slice(i+1,a),o=a-i-1;i=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),o(a),0!==a.length&&(t=a+"/"+t,n=47===a.charCodeAt(0))}return t=i(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(o(e),0===e.length)return".";var t=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1);return 0!==(e=i(e,!t)).length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return o(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];o(n),n.length>0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":s.normalize(e)},relative:function(e,t){if(o(e),o(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,i=r-n,a=1;a<t.length&&47===t.charCodeAt(a);++a);for(var l=t.length-a,c=i<l?i: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 i>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(o(e),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,i=!0,s=e.length-1;s>=1;--s)if(47===(t=e.charCodeAt(s))){if(!i){r=s;break}}else i=!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');o(e);var n,r=0,i=-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&&(i=n):(a=-1,i=l))}return r===i?i=l:-1===i&&(i=e.length),e.slice(r,i)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!s){r=n+1;break}}else-1===i&&(s=!1,i=n+1);return-1===i?"":e.slice(r,i)},extname:function(e){o(e);for(var t=-1,n=0,r=-1,i=!0,s=0,a=e.length-1;a>=0;--a){var l=e.charCodeAt(a);if(47!==l)-1===r&&(i=!1,r=a+1),46===l?-1===t?t=a:1!==s&&(s=1):-1!==t&&(s=-1);else if(!i){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){o(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,r=e.charCodeAt(0),i=47===r;i?(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&&i?e.slice(1,l):e.slice(a,l)):(0===a&&i?(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):i&&(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),o=n(66),i=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=i.aTypedArray,m=i.exportTypedArrayMethod,y=!c((function(){var e=new Uint8ClampedArray(2);return o(d,e,{length:1,0:3},1),3!==e[1]})),g=y&&i.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 o(d,this,n,t);var r=this.length,i=s(n),c=0;if(i+t>r)throw new u("Wrong length");for(;c<i;)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",o="GENSYNC_EXPECTED_SUSPEND",i="GENSYNC_OPTIONS_ERROR",s="GENSYNC_RACE_NONEMPTY";function a(e,t,n,r){if(typeof n===e||r&&void 0===n)return;let o;throw o=r?`Expected opts.${t} to be either a ${e}, or undefined.`:`Expected opts.${t} to be a ${e}.`,l(o,i)}function l(e,t){return Object.assign(new Error(e),{code:t})}function c(e){let{name:r,arity:o,sync:i,async:s}=e;return m(r,o,(function*(){const e=yield t;for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];if(!e)return i.call(this,o);let l;try{s.call(this,o,(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,o=!1;const i=e.next((()=>{t?o=!0:r()}));if(t=!1,d(i,e),!o)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:i}=e;(i||r!==n)&&h(t,l(i?"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.`,o))}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:o,errback:s}=e;if(a("string","name",t,!0),a("number","arity",n,!0),a("function","sync",r),a("function","async",o,!0),a("function","errback",s,!0),o&&s)throw l("Expected one of either opts.async or opts.errback, but got _both_.",i);if("string"!=typeof t){let e;s&&s.name&&"errback"!==s.name&&(e=s.name),o&&o.name&&"async"!==o.name&&(e=o.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){o?o.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 o=n.pop();if("function"!=typeof o)throw l("Asynchronous function called without callback","GENSYNC_ERRBACK_NO_CALLBACK");let i;try{i=e.apply(this,n)}catch(e){return void o(e)}p(i,(e=>o(void 0,e)),(e=>o(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 o=0;const i=r.map((()=>{}));r.forEach(((e,r)=>{p(e,(e=>{i[r]=e,o+=1,o===i.length&&t(i)}),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 o=n(0),i=n(35),s=n(100),a=n(28),l=n(183),c=n(444);const{VISITOR_KEYS:u,removeProperties:p,traverseFast:f}=o;function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=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(!i&&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,o,i,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,o,i){(0,s.traverseNode)(e,t,n,r,o,i)},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=i},(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,o)=>{var s;let a;for(const e of Object.keys(n))t[e]||(null!=a||(a=i(t)),a[e]=n[e](a));return e(null!=(s=a)?s:t,r||{},o)}}Object.assign(n,{targets:()=>()=>({}),assumption:()=>()=>{}});const o=r;function i(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=o},e=>{var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!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:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();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===i||!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 i(e,n,i){for(const s of t)if(f(i)===s||(0,r.default)(s,i))return void(0,o.validateChild)(e,n,i);throw new TypeError(`Property ${n} of ${e.type} expected node to be of a type ${JSON.stringify(t)} but instead got ${JSON.stringify(null==i?void 0:i.type)}`)}return i.oneOfNodeOrValueTypes=t,i},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 i=[];for(const n of Object.keys(e))try{(0,o.validateField)(t,n,r[n],e[n])}catch(e){if(e instanceof TypeError){i.push(e.message);continue}throw e}if(i.length)throw new TypeError(`Property ${n} of ${t.type} expected to have the following:\n${i.join("\n")}`)}return t.shapeOf=e,t},t.assertValueType=b,t.chain=_,t.default=S,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 o;r||(n.inherits&&(r=null==(o=w[n.inherits].aliases)?void 0:o.slice()),null!=r||(r=[]),n.aliases=r);const i=t.filter((e=>!r.includes(e)));r.unshift(...i),S(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),o=n(97);const i=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 o=0;o<r.length;o++){const i=`${n}[${o}]`,s=r[o];e(t,i,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 i(e,n,i){for(const s of t)if((0,r.default)(s,i))return void(0,o.validateChild)(e,n,i);throw new TypeError(`Property ${n} of ${e.type} expected node to be of a type ${JSON.stringify(t)} but instead got ${JSON.stringify(null==i?void 0:i.type)}`)}return i.oneOfNodeTypes=t,i}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"],w={};function S(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=t.inherits&&w[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],o=e.default;if(Array.isArray(o)?o.length>0:o&&"object"==typeof o)throw new Error("field defaults can only be primitives or empty arrays currently");r[t]={default:Array.isArray(o)?[]:o,optional:e.optional,deprecated:e.deprecated,validate:e.validate}}}const o=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 o.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}`)}i[e]=t.visitor=o,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),w[e]=t}},(e,t,n)=>{var r=n(104),o=Function.prototype,i=o.call,s=r&&o.bind.bind(i,i);e.exports=r?s:function(e){return function(){return i.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,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n(44),Object.defineProperty(t,"__esModule",{value:!0});class o{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 i{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:i}=e;return new o(n,r+t,i+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,i){const s=new SyntaxError;return Object.assign(s,n,{loc:r,pos:r.index}),"missingPlugin"in i&&Object.assign(s,{missingPlugin:i.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 o(s,a,l),Object.assign({},i,t.details))})),y(s,"details",i),Object.defineProperty(s,"message",{configurable:!0,get(){const e=`${t(i)} (${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 o of Object.keys(e)){const i=e[o],s="string"==typeof i?{message:()=>i}:"function"==typeof i?{message:i}:i,{message:a}=s,l=r(s,m),c="string"==typeof a?()=>a:a;n[o]=g(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:o,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 w{constructor(e,t){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!t}}const S={brace:new w("{"),j_oTag:new w("<tag"),j_cTag:new w("</tag"),j_expr:new w("<tag>...</tag>",!0)};S.template=new w("`",!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 N(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 j(e,t){return U(e,{beforeExpr:T,binop:t})}let D=-1;const M=[],L=[],R=[],B=[],q=[],F=[];function U(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n,r,o,i;return++D,L.push(e),R.push(null!=(n=t.binop)?n:-1),B.push(null!=(r=t.beforeExpr)&&r),q.push(null!=(o=t.startsExpr)&&o),F.push(null!=(i=t.prefix)&&i),M.push(new k(e,t)),D}function V(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n,r,o,i;return++D,I.set(e,D),L.push(e),R.push(null!=(n=t.binop)?n:-1),B.push(null!=(r=t.beforeExpr)&&r),q.push(null!=(o=t.startsExpr)&&o),F.push(null!=(i=t.prefix)&&i),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:j("|>",0),nullishCoalescing:j("??",1),logicalOR:j("||",1),logicalAND:j("&&",2),bitwiseOR:j("|",3),bitwiseXOR:j("^",4),bitwiseAND:j("&",5),equality:j("==/!=/===/!==",6),lt:j("</>/<=/>=",7),gt:j("</>/<=/>=",7),relational:j("</>/<=/>=",7),bitShift:j("<</>>/>>>",8),bitShiftL:j("<</>>/>>>",8),bitShiftR:j("<</>>/>>>",8),plusMin:U("+/-",{beforeExpr:T,binop:9,prefix:C,startsExpr:A}),modulo:U("%",{binop:10,startsExpr:A}),star:U("*",{binop:10}),slash:j("/",10),exponent:U("**",{beforeExpr:T,binop:11,rightAssociative:!0}),_in:N("in",{beforeExpr:T,binop:7}),_instanceof:N("instanceof",{beforeExpr:T,binop:7}),_break:N("break"),_case:N("case",{beforeExpr:T}),_catch:N("catch"),_continue:N("continue"),_debugger:N("debugger"),_default:N("default",{beforeExpr:T}),_else:N("else",{beforeExpr:T}),_finally:N("finally"),_function:N("function",{startsExpr:A}),_if:N("if"),_return:N("return",{beforeExpr:T}),_switch:N("switch"),_throw:N("throw",{beforeExpr:T,prefix:C,startsExpr:A}),_try:N("try"),_var:N("var"),_const:N("const"),_with:N("with"),_new:N("new",{beforeExpr:T,startsExpr:A}),_this:N("this",{startsExpr:A}),_super:N("super",{startsExpr:A}),_class:N("class",{startsExpr:A}),_extends:N("extends",{beforeExpr:T}),_export:N("export"),_import:N("import",{startsExpr:A}),_null:N("null",{startsExpr:A}),_true:N("true",{startsExpr:A}),_false:N("false",{startsExpr:A}),_typeof:N("typeof",{beforeExpr:T,prefix:C,startsExpr:A}),_void:N("void",{beforeExpr:T,prefix:C,startsExpr:A}),_delete:N("delete",{beforeExpr:T,prefix:C,startsExpr:A}),_do:N("do",{isLoop:P,beforeExpr:T}),_for:N("for",{isLoop:P}),_while:N("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 q[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(S.brace)},M[22].updateContext=e=>{e[e.length-1]===S.template?e.pop():e.push(S.template)},M[142].updateContext=e=>{e.push(S.j_expr,S.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 oe=[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],ie=[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,o=t.length;r<o;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,oe)))}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,oe)||se(e,ie))))}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 o=r.names.get(e)||0;16&t?o|=4:(r.firstLexicalName||(r.firstLexicalName=e),o|=2),r.names.set(e,o),8&t&&this.maybeExportDefined(r,e)}else if(4&t)for(let o=this.scopeStack.length-1;o>=0&&(r=this.scopeStack[o],this.checkRedeclarationInScope(r,e,t,n),r.names.set(e,1|(r.names.get(e)||0)),this.maybeExportDefined(r,e),!(387&r.flags));--o);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 we(e,t){void 0===e.innerComments?e.innerComments=t:e.innerComments.unshift(...t)}function Se(e,t,n){let r=null,o=t.length;for(;null===r&&o>0;)r=t[--o];null===r||r.start>n.start?we(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 o=t[r];o.start===e.end&&(o.leadingNode=e,r--);const{start:i}=e;for(;r>=0;r--){const n=t[r],o=n.end;if(!(o>i)){o===i&&(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":Se(n,n.properties,e);break;case"CallExpression":case"OptionalCallExpression":Se(n,n.arguments,e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":Se(n,n.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":Se(n,n.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":Se(n,n.specifiers,e);break;default:we(n,t)}else we(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,o=r.length;if(0===o)return;let i=o-1;for(;i>=0;i--){const o=r[i],s=o.end;if(o.start===n)o.leadingNode=e;else if(s===t)o.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 Ne(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 je{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=[S.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:i}=e;this.strict=!1!==t&&(!0===t||"module"===n),this.curLine=r,this.lineStart=-i,this.startLoc=this.endLoc=new o(r,i,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 o(this.curLine,this.pos-this.lineStart,this.pos)}clone(){const e=new je;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,o,i){const s=n,a=r,l=o;let c="",u=null,p=n;const{length:f}=t;for(;;){if(n>=f){i.unterminated(s,a,l),c+=t.slice(p,n);break}const d=t.charCodeAt(n);if(Be(e,d,t,n)){c+=t.slice(p,n);break}if(92===d){c+=t.slice(p,n);const s=qe(t,n,r,o,"template"===e,i);null!==s.ch||u?c+=s.ch:u={pos:n,lineStart:r,curLine:o},({pos:n,lineStart:r,curLine:o}=s),p=n}else 8232===d||8233===d?(++o,r=++n):10===d||13===d?"template"===e?(c+=t.slice(p,n)+"\n",++n,13===d&&10===t.charCodeAt(n)&&++n,++o,p=r=n):i.unterminated(s,a,l):++n}return{pos:n,str:c,firstInvalidLoc:u,lineStart:r,curLine:o,containsInvalid:!!u}}function Be(e,t,n,r){return"template"===e?96===t||36===t&&123===n.charCodeAt(r+1):t===("double"===e?34:39)}function qe(e,t,n,r,o,i){const s=!o;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 o;return({code:o,pos:t}=Fe(e,t,n,r,2,!1,s,i)),a(null===o?null:String.fromCharCode(o))}case 117:{let o;return({code:o,pos:t}=Ve(e,t,n,r,s,i)),a(null===o?null:String.fromCodePoint(o))}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(o)return a(null);i.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(o)return a(null);i.strictNumericEscape(s,n,r)}return a(String.fromCharCode(c))}return a(String.fromCharCode(l))}}function Fe(e,t,n,r,o,i,s,a){const l=t;let c;return({n:c,pos:t}=Ue(e,t,n,r,16,o,i,!1,a,!s)),null===c&&(s?a.invalidEscapeSequence(l,n,r):t=l-1),{code:c,pos:t}}function Ue(e,t,n,r,o,i,s,a,l,c){const u=t,p=16===o?Me.hex:Me.decBinOct,f=16===o?Le.hex:10===o?Le.dec:8===o?Le.oct:Le.bin;let d=!1,h=0;for(let u=0,m=null==i?1/0:i;u<m;++u){const i=e.charCodeAt(t);let u;if(95!==i||"bail"===a){if(u=i>=97?i-97+10:i>=65?i-65+10:De(i)?i-48:1/0,u>=o){if(u<=9&&c)return{n:null,pos:t};if(u<=9&&l.invalidDigit(t,n,r,o))u=0;else{if(!s)break;u=0,d=!0}}++t,h=h*o+u}else{const o=e.charCodeAt(t-1),i=e.charCodeAt(t+1);if(a){if(Number.isNaN(i)||!f(i)||p.has(o)||p.has(i)){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!=i&&t-u!==i||d?{n:null,pos:t}:{n:h,pos:t}}function Ve(e,t,n,r,o,i){let s;if(123===e.charCodeAt(t)){if(++t,({code:s,pos:t}=Fe(e,t,n,r,e.indexOf("}",t)-t,!0,o,i)),++t,null!==s&&s>1114111){if(!o)return{code:null,pos:t};i.invalidCodePoint(t,n,r)}}else({code:s,pos:t}=Fe(e,t,n,r,4,!1,o,i));return{code:s,pos:t}}function $e(e,t,n){return new o(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 i(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 je,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 o={type:"CommentBlock",value:this.input.slice(n+2,r),start:n,end:r+e.length,loc:new i(t,this.state.curPosition())};return this.options.tokens&&this.pushToken(o),o}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 o=this.state.pos,s={type:"CommentLine",value:this.input.slice(t+e,o),start:t,end:o,loc:new i(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(Ne(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:o}=this.state;for(;;++o){if(o>=this.length)throw this.raise(b.UnterminatedRegExp,s(e,1));const t=this.input.charCodeAt(o);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 i=this.input.slice(t,o);++o;let a="";const l=()=>s(e,o+2-t);for(;o<this.length;){const e=this.codePointAtPos(o),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())}++o,a+=t}this.state.pos=o,this.finishToken(137,{pattern:i,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:o,pos:i}=Ue(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,t,n,r,this.errorHandlers_readInt,!1);return this.state.pos=i,o}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 o=this.input.charCodeAt(this.state.pos);if(110===o)++this.state.pos,n=!0;else if(109===o)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,o=!1,i=!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,o=!0),109===u&&(this.expectPlugin("decimal",this.state.curPosition()),(a||c)&&this.raise(b.InvalidDecimal,n),++this.state.pos,i=!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(o)return void this.finishToken(135,p);if(i)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:o}=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=o,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:i,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=i,n&&(this.state.firstInvalidTemplateEscapePos=new o(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(),o=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 i=this.readCodePoint(!0);null!==i&&(o(i)||this.raise(b.EscapedCharNotAnIdentifier,e),t+=String.fromCodePoint(i)),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 o?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 o?t:t.loc.start,i=r.index,s=this.state.errors;for(let t=s.length-1;t>=0;t--){const o=s[t];if(o.loc.index===i)return s[t]=e(r,n);if(o.loc.index<i)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:o,undefinedPrivateNames:i}=this.current();let s=r.has(e);if(3&t){const n=s&&o.get(e);n?(s=(3&n)==(3&t)||(4&n)!=(4&t),s||o.delete(e)):s||o.set(e,t)}s&&this.parser.raise(b.PrivateNameRedeclaration,n,{identifierName:e}),r.add(e),i.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 o=r.length-1,i=r[o];for(;!i.isCertainlyParameterDeclaration();){if(!i.canBeArrowParameterDeclaration())return;i.recordDeclarationError(e,n),i=r[--o]}this.parser.raise(e,n)}recordArrowParameterBindingError(e,t){const{stack:n}=this,r=n[n.length-1],o=t.loc.start;if(r.isCertainlyParameterDeclaration())this.parser.raise(e,o);else{if(!r.canBeArrowParameterDeclaration())return;r.recordDeclarationError(e,o)}}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 o=e.length-2,i=e[o];for(;i.canBeArrowParameterDeclaration();)i.clearDeclarationError(r.index),i=e[--o]}))}}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 o=e.extra=e.extra||{};r?o[t]=n:Object.defineProperty(o,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:o,optionalParametersLoc:i}=e;if(!t)return!!(n||r||i||o);null!=n&&this.raise(b.InvalidCoverInitializedName,n),null!=r&&this.raise(b.DuplicateProto,r),null!=o&&this.raise(b.UnexpectedPrivateField,o),null!=i&&this.unexpected(i)}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 o=this.scope,i=this.getScopeHandler();this.scope=new i(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=o,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 i(n),null!=e&&e.options.ranges&&(this.range=[t,0]),null!=e&&e.filename&&(this.loc.filename=e.filename)}}const ot=rt.prototype;function it(e){const{type:t,start:n,end:r,loc:o,range:i,extra:s,name:a}=e,l=Object.create(ot);return l.type=t,l.start=n,l.end=r,l.loc=o,l.range=i,l.extra=s,l.name=a,"Placeholder"===t&&(l.expectedNode=e.expectedNode),l}ot.__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 o=r.tsNames.get(e)||0;if(1024&t)return this.maybeExportDefined(r,e),void r.tsNames.set(e,16|o);super.declareName(e,t,n),2&t&&(1&t||(this.checkRedeclarationInScope(r,e,t,n),this.maybeExportDefined(r,e)),o|=1),256&t&&(o|=2),512&t&&(o|=4),128&t&&(o|=8),o&&r.tsNames.set(e,o)}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 o;switch(("ParenthesizedExpression"===e.type||null!=(n=e.extra)&&n.parenthesized)&&(o=vt(e),t?"Identifier"===o.type?this.expressionScope.recordArrowParameterBindingError(b.InvalidParenthesizedAssignment,e):"MemberExpression"===o.type||this.isOptionalMemberExpression(o)||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,o=r-1;n<r;n++){var i;const r=e.properties[n],s=n===o;this.toAssignableObjectExpressionProp(r,s,t),s&&"RestElement"===r.type&&null!=(i=e.extra)&&i.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(o,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 o=0;o<=r;o++){const i=e[o];if(i){if("SpreadElement"===i.type){i.type="RestElement";const e=i.argument;this.checkToRestConversion(e,!0),this.toAssignable(e,n)}else this.toAssignable(i,n);"RestElement"===i.type&&(o<r?this.raise(b.RestTrailingComma,i):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,o=[];let i=!0;for(;!this.eat(e);)if(i?i=!1:this.expect(12),r&&this.match(12))o.push(null);else{if(this.eat(e))break;if(this.match(21)){if(o.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());o.push(this.parseAssignableListItem(n,e))}}return o}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"},o=e,Object.hasOwnProperty.call(r,o)&&r[o];var r,o}isOptionalMemberExpression(e){return"OptionalMemberExpression"===e.type}checkLVal(e,t){let{in:n,binding:r=64,checkClashes:o=!1,strictModeChanged:i=!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,i);const{name:t}=e;return void(o&&(o.has(t)?this.raise(b.ParamDupe,e):o.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:o,strictModeChanged:i,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 wt(e){return"in"===e||"out"===e}function St(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||!!St(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,o=Object.keys(r),i=0===o.length;return e.some((e=>{if("string"==typeof e)return i&&e===n;{const[t,i]=e;if(t!==n)return!1;for(const e of o)if(i[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"],Nt=["^^","@@","^","%","#"],jt=["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 o=this.estreeParseLiteral(r);return o.regex={pattern:t,flags:n},o}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,o){super.parseBlockBody(e,t,n,r,o);const i=e.directives.map((e=>this.directiveToStmt(e)));e.body=i.concat(e.body),delete e.directives}pushClassMethod(e,t,n,r,o,i){this.parseMethod(t,n,r,o,i,"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,o,i){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,o,i,s),a.type="FunctionExpression",delete a.kind,e.value=a,"ClassPrivateMethod"===i&&(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,o){const i=super.parseObjectMethod(e,t,n,r,o);return i&&(i.type="Property","method"===i.kind&&(i.kind="init"),i.shorthand=!1),i}parseObjectProperty(e,t,n,r){const o=super.parseObjectProperty(e,t,n,r);return o&&(o.kind="init",o.type="Property"),o}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,o;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!=(o=n.arguments[1])?o: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 o;const{declaration:e}=r;"ClassDeclaration"===(null==e?void 0:e.type)&&(null==(o=e.decorators)?void 0:o.length)>0&&e.start===r.start&&this.resetStartLocation(r,n)}}return r}parseSubscript(e,t,n,r){const o=super.parseSubscript(e,t,n,r);if(r.optionalChainMember){if("OptionalMemberExpression"!==o.type&&"OptionalCallExpression"!==o.type||(o.type=o.type.substring(8)),r.stop){const e=this.startNodeAtNode(o);return e.expression=o,this.finishNode(e,"ChainExpression")}}else"MemberExpression"!==o.type&&"CallExpression"!==o.type||(o.optional=!1);return o}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(S.brace),this.next(),e=this.jsxParseExpressionContainer(e,S.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(S.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(S.brace),this.next(),this.expect(21),e.argument=this.parseMaybeAssignAllowIn(),this.setContext(S.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 o=null;if(!r.selfClosing){e:for(;;)switch(this.state.type){case 142:if(e=this.state.startLoc,this.next(),this.eat(56)){o=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(S.brace),this.next(),this.match(21)?n.push(this.jsxParseSpreadChild(e)):n.push(this.jsxParseExpressionContainer(e,S.j_expr));break}default:this.unexpected()}ht(r)&&!ht(o)&&null!==o?this.raise(dt.MissingClosingTagFragment,o):!ht(r)&&ht(o)?this.raise(dt.MissingClosingTagElement,o,{openingTagName:mt(r.name)}):ht(r)||ht(o)||mt(o.name)!==mt(r.name)&&this.raise(dt.MissingClosingTagElement,o,{openingTagName:mt(r.name)})}if(ht(r)?(t.openingFragment=r,t.closingFragment=o):(t.openingElement=r,t.closingElement=o),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!==S.j_expr){if(t===S.j_oTag||t===S.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===S.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,S.j_cTag),this.state.canStartJSXElement=!1;else if(142===n)t.push(S.j_oTag);else if(143===n){const n=t[t.length-1];n===S.j_oTag&&56===e||n===S.j_cTag?(t.pop(),this.state.canStartJSXElement=t[t.length-1]===S.j_expr):(this.setContext(S.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=B[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 o=this.flowParseFunctionTypeParams();return n.params=o.params,n.rest=o.rest,n.this=o._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,o=!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&&(o&&this.raise(lt.DuplicateDeclareModuleExports,e),"ES"===r&&this.raise(lt.AmbiguousDeclareModuleKind,e),r="CommonJS",o=!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(),o=this.flowParseTypeAnnotatableIdentifier();return n.name=o.name,n.variance=r,n.bound=o.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:o,allowInexact:i}=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(o&&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 o=this.flowParseObjectTypeProperty(l,e,n,p,t,r,null!=i?i:!c);null===o?(u=!0,s=this.state.lastTokStartLoc):a.properties.push(o)}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,o,i,s){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(i?s||this.raise(lt.InexactInsideExact,this.state.lastTokStartLoc):this.raise(lt.InexactInsideNonObject,this.state.lastTokStartLoc),r&&this.raise(lt.InexactVariance,r),null):(i||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=o;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"!==o&&"set"!==o||this.flowCheckGetterSetterParams(e),!i&&"constructor"===e.key.name&&e.value.this&&this.raise(lt.ThisParamBannedInConstructor,e.value.this)):("init"!==o&&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 o=this.startNode(),i=this.lookahead(),s=78===this.state.type;return 14===i.type||17===i.type?(s&&!e&&this.raise(lt.ThisParamMustBeFirst,o),t=this.parseIdentifier(s),this.eat(17)&&(n=!0,s&&this.raise(lt.ThisParamMayNotBeOptional,o)),r=this.flowParseTypeInitialiser()):r=this.flowParseType(),o.name=t,o.optional=n,o.typeAnnotation=r,this.finishNode(o,"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,o=!1;const i=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=i,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;o=17!==e&&14!==e}else o=!0;if(o){if(this.state.noAnonFunctionType=!1,r=this.flowParseType(),this.state.noAnonFunctionType=i,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),o=this.eat(18);n=n||o,this.expect(0),!o&&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=o,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(),o=this.state.noArrowAt,i=this.startNodeAt(t);let{consequent:s,failed:a}=this.tryParseConditionalConsequent(),[l,c]=this.getArrowLikeExpressions(s);if(a||c.length>0){const e=[...o];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=o,this.expect(14),i.test=e,i.consequent=s,i.alternate=this.forwardNoArrowParamsConversionAt(i,(()=>this.parseMaybeAssign(void 0,void 0))),this.finishNode(i,"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 o=0;o<e.length;o++)(t(e[o])?n:r).push(e[o]);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 o=e[r];!o||"TypeCastExpression"!==o.type||null!=(n=o.extra)&&n.parenthesized||!(e.length>1)&&t||this.raise(lt.TypeCastInPattern,o.typeAnnotation)}return e}parseArrayLike(e,t,n,r){const o=super.parseArrayLike(e,t,n,r);return t&&!this.state.maybeInArrowParameters&&this.toReferencedList(o.elements),o}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,o,i){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,o,i),t.params&&o){const e=t.params;e.length>0&&this.isThisParam(e[0])&&this.raise(lt.ThisParamBannedInConstructor,t)}else if("MethodDefinition"===t.type&&o&&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,o,i,s){let a;e.variance&&this.unexpected(e.variance.loc.start),delete e.variance,this.match(47)&&!i&&(a=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());const l=super.parseObjPropValue(e,t,n,r,o,i,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,o){const i=e.imported;let s=null;"Identifier"===i.type&&("type"===i.name?s="type":"typeof"===i.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=i,e.importKind=null,e.local=this.parseIdentifier()):(e.imported=t,e.importKind=s,e.local=it(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:i.value});e.imported=i,e.importKind=null}this.eatContextual(93)?e.local=this.parseIdentifier():(a=!0,e.local=it(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,o=null;if(this.hasPlugin("jsx")&&(this.match(142)||this.match(47))){if(o=this.state.clone(),r=this.tryParse((()=>super.parseMaybeAssign(e,t)),o),!r.error)return r.node;const{context:n}=this.state,i=n[n.length-1];i!==S.j_oTag&&i!==S.j_expr||n.pop()}if(null!=(n=r)&&n.error||this.match(47)){var i,s;let n;o=o||this.state.clone();const a=this.tryParse((r=>{var o;n=this.flowParseTypeParameterDeclaration();const i=this.forwardNoArrowParamsConversionAt(n,(()=>{const r=super.parseMaybeAssign(e,t);return this.resetStartLocationFromNode(r,n),r}));null!=(o=i.extra)&&o.parenthesized&&r();const s=this.maybeUnwrapTypeCastExpression(i);return"ArrowFunctionExpression"!==s.type&&r(),s.typeParameters=n,this.resetStartLocationFromNode(s,n),i}),o);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!=(i=r)&&i.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(),o=this.tryParse((e=>this.parseAsyncArrowWithTypeParameters(t)||e()),r);if(!o.error&&!o.aborted)return o.node;const i=this.tryParse((()=>super.parseSubscripts(e,t,n)),r);if(i.node&&!i.error)return i.node;if(o.node)return this.state=o.failState,o.node;if(i.node)return this.state=i.failState,i.node;throw o.error||i.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 o=this.startNodeAt(t);return o.callee=e,o.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),o.arguments=this.parseCallExpressionArguments(11,!1),o.optional=!0,this.finishCallExpression(o,!0)}if(!n&&this.shouldParseTypes()&&this.match(47)){const n=this.startNodeAt(t);n.callee=e;const o=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(o.node)return o.error&&(this.state=o.failState),o.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,o={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};let i=!1;for(;!this.match(8);){if(this.eat(21)){i=!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,o.booleanMembers.push(this.finishNode(e,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(a.loc,c,"number"),e.init=a.value,o.numberMembers.push(this.finishNode(e,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(a.loc,c,"string"),e.init=a.value,o.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:o.defaultedMembers.push(this.finishNode(e,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:o,hasUnknownMembers:i}}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,o=this.flowEnumParseExplicitType({enumName:n});this.expect(5);const{members:i,hasUnknownMembers:s}=this.flowEnumMembers({enumName:n,explicitType:o});switch(e.hasUnknownMembers=s,o){case"boolean":return e.explicitType=!0,e.members=i.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=i.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(i.stringMembers,i.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=i.defaultedMembers,this.expect(8),this.finishNode(e,"EnumSymbolBody");default:{const t=()=>(e.members=[],this.expect(8),this.finishNode(e,"EnumStringBody"));e.explicitType=!1;const o=i.booleanMembers.length,s=i.numberMembers.length,a=i.stringMembers.length,l=i.defaultedMembers.length;if(o||s||a||l){if(o||s){if(!s&&!a&&o>=l){for(const e of i.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(e.loc.start,{enumName:n,memberName:e.id.name});return e.members=i.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody")}if(!o&&!a&&s>=l){for(const e of i.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(e.loc.start,{enumName:n,memberName:e.id.name});return e.members=i.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody")}return this.raise(lt.EnumInconsistentMemberValues,r,{enumName:n}),t()}return e.members=this.flowEnumStringMembers(i.stringMembers,i.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:o,errorTemplate:i=Et.InvalidModifierOnTypeMember}=e;const s=(e,n,r,o)=>{n===r&&t[o]&&this.raise(Et.InvalidModifiersOrder,e,{orderedModifiers:[r,o]})},a=(e,n,r,o)=>{(t[r]&&n===o||t[o]&&n===r)&&this.raise(Et.IncompatibleModifiers,e,{modifiers:[r,o]})};for(;;){const{startLoc:e}=this.state,l=this.tsParseModifier(n.concat(null!=r?r:[]),o);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):wt(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(i,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 o=[];let i=-1;for(;!this.tsIsListTerminator(e);){i=-1;const r=t();if(null==r)return;if(o.push(r),!this.eat(12)){if(this.tsIsListTerminator(e))break;return void(n&&this.expect(12))}i=this.state.lastTokStartLoc.index}return r&&(r.value=i),o}tsParseBracketedList(e,t,n,r,o){r||(n?this.expect(0):this.expect(47));const i=this.tsParseDelimitedList(e,t,o);return n?this.expect(3):this.expect(48),i}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 o="parameters",i="typeAnnotation";if("get"===r.kind)r[o].length>0&&(this.raise(b.BadGetterArity,this.state.curPosition()),this.isThisParam(r[o][0])&&this.raise(Et.AccesorCannotDeclareThisParameter,this.state.curPosition()));else if("set"===r.kind){if(1!==r[o].length)this.raise(b.BadSetterArity,this.state.curPosition());else{const e=r[o][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[i]&&this.raise(Et.SetAccesorCannotHaveReturnType,r[i])}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,o,i;const s=K(this.state.type)?this.lookaheadCharCode():null;if(58===s)n=!0,o=!1,r=this.parseIdentifier(!0),this.expect(14),i=this.tsParseType();else if(63===s){o=!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),i=this.tsParseType()):(n=!1,i=s,this.expect(17))}else i=this.tsParseType(),o=this.eat(17),n=this.eat(14);if(n){let e;r?(e=this.startNodeAtNode(r),e.optional=o,e.label=r,e.elementType=i,this.eat(17)&&(e.optional=!0,this.raise(Et.TupleOptionalAfterType,this.state.lastTokStartLoc))):(e=this.startNodeAtNode(i),e.optional=o,this.raise(Et.InvalidTupleMemberLabel,i),e.label=i,e.elementType=this.tsParseType()),i=this.finishNode(e,"TSNamedTupleMember")}else if(o){const e=this.startNodeAtNode(i);e.typeAnnotation=i,i=this.finishNode(e,"TSOptionalType")}if(t){const t=this.startNodeAt(e);t.typeAnnotation=i,i=this.finishNode(t,"TSRestType")}return i}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(),o=this.eat(n),i=[];do{i.push(t())}while(this.eat(n));return 1!==i.length||o?(r.types=i,this.finishNode(r,e)):i[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 o=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!o)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 i=this.tsParseTypeAnnotation(!1);return n.parameterName=o,n.typeAnnotation=i,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()!==S.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 o=r.accessibility,i=r.override,s=r.readonly;4&e||!(o||s||i)||this.raise(Et.UnexpectedParameterModifier,n);const a=this.parseMaybeDefault();this.parseAssignableListItemTypes(a,e);const l=this.parseMaybeDefault(a.loc.start,a);if(o||s||i){const e=this.startNodeAt(n);return t.length&&(e.decorators=t),o&&(e.accessibility=o),s&&(e.readonly=s),i&&(e.override=i),"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 o=super.parseArrayLike(e,t,n,r);return"ArrayExpression"===o.type&&this.tsCheckForInvalidTypeCasts(o.elements),o}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 o=!1;if(this.match(18)&&60===this.lookaheadCharCode()){if(n)return r.stop=!0,e;r.optionalChainMember=o=!0,this.next()}if(this.match(47)||this.match(51)){let i;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(o&&!this.match(10))return void(i=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=o),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(i&&this.unexpected(i,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 o=this.startNodeAt(t);return o.expression=e,o.typeAnnotation=this.tsInType((()=>(this.next(),this.match(75)?(r&&this.raise(b.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType()))),this.finishNode(o,r?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(o,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,o=super.parseVarStatement(e,t,n||r);if(!r)return o;for(const{id:e,init:n}of o.declarations)n&&("const"!==t||e.typeAnnotation?this.raise(Et.InitializerNotAllowedInAmbientContext,n):Tt(n,this.hasPlugin("estree"))||this.raise(Et.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference,n));return o}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 o=()=>{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(o):o()}parseClassMemberWithIsStatic(e,t,n,r){const o=this.tsTryParseIndexSignature(t);if(o)return e.body.push(o),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 o=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);o&&(e.typeParameters=o)}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,o,i){const s=this.tsTryParseTypeParameters(this.tsParseConstModifier);s&&o&&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,o,i)}pushClassPrivateMethod(e,t,n,r){const o=this.tsTryParseTypeParameters(this.tsParseConstModifier);o&&(t.typeParameters=o),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,o,i,s){const a=this.tsTryParseTypeParameters(this.tsParseConstModifier);return a&&(e.typeParameters=a),super.parseObjPropValue(e,t,n,r,o,i,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,o,i,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!==S.j_oTag&&r!==S.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,o;u=this.tsParseTypeParameters(this.tsParseConstModifier);const i=super.parseMaybeAssign(e,t);return("ArrowFunctionExpression"!==i.type||null!=(r=i.extra)&&r.parenthesized)&&n(),0!==(null==(o=u)?void 0:o.params.length)&&this.resetStartLocationFromNode(i,u),i.typeParameters=u,i}),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!=(o=c)&&o.node)return this.state=c.failState,c.node;throw(null==(i=l)?void 0:i.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]},o=e,Object.hasOwnProperty.call(r,o)&&r[o]||super.isValidLVal(e,t,n);var r,o}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,o,i,s){const a=super.parseMethod(e,t,n,r,o,i,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,o){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",o=t?"local":"exported";let i,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,i=t?this.parseIdentifier():this.parseModuleExportName(),l=!1):(i=n,l=!1)}else K(this.state.type)?(l=!1,i=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[o]=i,e[t?"importKind":"exportKind"]=a?"type":"value",l&&this.eatContextual(93)&&(e[o]=t?this.parseIdentifier():this.parseModuleExportName()),e[o]||(e[o]=it(e[r])),t&&this.checkIdentifier(e[o],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 o=this.state.strict,i=this.parsePlaceholder("Identifier");if(i){if(!(this.match(81)||this.match(144)||this.match(5))){if(n||!t)return e.id=null,e.body=this.finishPlaceholder(i,"ClassBody"),this.finishNode(e,r);throw this.raise(Ot.ClassNameIsRequired,this.state.startLoc)}e.id=i}else this.parseClassId(e,t,n);return super.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!e.superClass,o),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 o=e.key;if("__proto__"===("Identifier"===o.type?o.name:o.value)){if(t)return void this.raise(b.RecordNoProto,o);n.used&&(r?null===r.doubleProtoLoc&&(r.doubleProtoLoc=o.loc.start):this.raise(b.DuplicateProto,o)),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:o}=this.state;(10===o||W(o))&&(this.state.potentialArrowAt=this.state.start);let i=this.parseMaybeConditional(e);if(t&&(i=t.call(this,i,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(i,!0),t.left=i;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=i;return this.next(),t.right=this.parseMaybeAssign(),this.checkLVal(i,{in:this.finishNode(t,"AssignmentExpression")}),t}var s;return r&&this.checkExpressionErrors(e,!0),i}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((o=r)>=39&&o<=59&&(this.prodParam.hasIn||!this.match(58))){let o=Y(r);if(o>n){if(39===r){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,t)}const i=this.startNodeAt(t);i.left=e,i.operator=this.state.value;const s=41===r||42===r,a=40===r;if(a&&(o=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);i.right=this.parseExprOpRightExpr(r,o);const l=this.finishNode(i,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 o;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 o=this.match(34),i=this.startNode();if(s=this.state.type,F[s]){i.operator=this.state.value,i.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");const n=this.match(89);if(this.next(),i.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&n){const e=i.argument;"Identifier"===e.type?this.raise(b.StrictDelete,i):this.hasPropertyAsPrivateName(e)&&this.raise(b.DeletePrivateField,i)}if(!o)return t||this.checkExponentialAfterUnary(i),this.finishNode(i,"UnaryExpression")}var s;const a=this.parseUpdate(i,o,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 o=this.parseExprSubscripts(n);if(this.checkExpressionErrors(n,!1))return o;for(;34===this.state.type&&!this.canInsertSemicolon();){const e=this.startNodeAt(r);e.operator=this.state.value,e.prefix=!1,e.argument=o,this.next(),this.checkLVal(o,{in:o=this.finishNode(e,"UpdateExpression")})}return o}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:o}=this.state;if(!n&&15===o)return this.parseBind(e,t,n,r);if(J(o))return this.parseTaggedTemplateExpression(e,t,r);let i=!1;if(18===o){if(n&&(this.raise(b.OptionalChainingNoNew,this.state.startLoc),40===this.lookaheadCharCode()))return r.stop=!0,e;r.optionalChainMember=i=!0,this.next()}if(!n&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,t,r,i);{const n=this.eat(0);return n||i||this.eat(16)?this.parseMember(e,t,r,n,i):(r.stop=!0,e)}}parseMember(e,t,n,r,o){const i=this.startNodeAt(t);return i.object=e,i.computed=r,r?(i.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),i.property=this.parsePrivateName()):i.property=this.parseIdentifier(!0),n.optionalChainMember?(i.optional=o,this.finishNode(i,"OptionalMemberExpression")):this.finishNode(i,"MemberExpression")}parseBind(e,t,n,r){const o=this.startNodeAt(t);return o.object=e,this.next(),o.callee=this.parseNoCallExpr(),r.stop=!0,this.parseSubscripts(this.finishNode(o,"BindExpression"),t,n)}parseCoverCallAndAsyncArrowHead(e,t,n,r){const o=this.state.maybeInArrowParameters;let i=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)),i=new nt),l&&(s.optional=r),s.arguments=r?this.parseCallExpressionArguments(11):this.parseCallExpressionArguments(11,"Import"===e.type,"Super"!==e.type,s,i);let c=this.finishCallExpression(s,l);return a&&this.shouldParseAsyncArrow()&&!r?(n.stop=!0,this.checkDestructuringPrivate(i),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),c=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),c)):(a&&(this.checkExpressionErrors(i,!0),this.expressionScope.exit()),this.toReferencedArguments(c)),this.state.maybeInArrowParameters=o,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,o){const i=[];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}i.push(this.parseExprListItem(!1,o,n))}return this.state.inFSharpPipelineDirectBody=a,i}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&&we(e,t.innerComments),t.callee.trailingComments&&we(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,o=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;const i=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=o;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(i),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:o}=this.state,i=t+1,a=this.startNodeAt(s(n,1));null===o&&(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(i,u).replace(/\r\n?/g,"\n"),cooked:null===o?null:o.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 o=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const i=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 o;t?o=this.parseBindingProperty():(o=this.parsePropertyDefinition(r),this.checkProto(o,n,i,r)),n&&!this.isObjectProperty(o)&&"SpreadElement"!==o.type&&this.raise(b.InvalidRecordProperty,o),o.shorthand&&this.addExtra(o,"shorthand",!0),a.properties.push(o)}this.next(),this.state.inFSharpPipelineDirectBody=o;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,o=!1,i=!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()||(o=!0,this.resetPreviousNodeTrailingComments(l),s=this.eat(55),this.parsePropertyName(n)),"get"!==e&&"set"!==e||(i=!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,o,!1,i,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,o){if(o){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,it(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,it(e.key))}else e.value=it(e.key);return e.shorthand=!0,this.finishNode(e,"ObjectProperty")}}parseObjPropValue(e,t,n,r,o,i,s){const a=this.parseObjectMethod(e,n,r,o,i)||this.parseObjectProperty(e,t,o,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 o;if(K(n))o=this.parseIdentifier(!0);else switch(n){case 134:o=this.parseNumericLiteral(r);break;case 133:o=this.parseStringLiteral(r);break;case 135:o=this.parseBigIntLiteral(r);break;case 136:o=this.parseDecimalLiteral(r);break;case 138:{const e=this.state.startLoc;null!=t?null===t.privateKeyLoc&&(t.privateKeyLoc=e):this.raise(b.UnexpectedPrivateField,e),o=this.parsePrivateName();break}default:this.unexpected()}e.key=o,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,o,i){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)|(o?32:0)),this.prodParam.enter(et(n,e.generator)),this.parseFunctionParams(e,r);const a=this.parseFunctionBodyAndFinish(e,i,!0);return this.prodParam.exit(),this.scope.exit(),a}parseArrayLike(e,t,n,r){n&&this.expectPlugin("recordAndTuple");const o=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const i=this.startNode();return this.next(),i.elements=this.parseExprList(e,!n,r,i),this.state.inFSharpPipelineDirectBody=o,this.finishNode(i,n?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,t,n,r){this.scope.enter(6);let o=et(n,!1);!this.match(5)&&this.prodParam.hasIn&&(o|=8),this.prodParam.enter(o),this.initFunction(e,n);const i=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=i,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,o=this.state.labels;this.state.labels=[],this.prodParam.enter(4|this.prodParam.currentFlags()),e.body=this.parseBlock(!0,!1,(o=>{const i=!this.isSimpleParamList(e.params);o&&i&&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||i),t,s),this.state.strict&&e.id&&this.checkIdentifier(e.id,65,s)})),this.prodParam.exit(),this.state.labels=o}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 o=!t&&new Set,i={type:"FormalParameters"};for(const t of e.params)this.checkLVal(t,{in:i,binding:5,checkClashes:o,strictModeChanged:r})}parseExprList(e,t,n,r){const o=[];let i=!0;for(;!this.eat(e);){if(i)i=!1;else if(this.expect(12),this.match(e)){r&&this.addTrailingCommaExtraToNode(r),this.next();break}o.push(this.parseExprListItem(t,n))}return o}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 o=r<=92;return e?o&&this.replaceToken(132):this.checkReservedWord(t,n,o,!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 Bt={kind:1},qt={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:o}=r;if("number"==typeof o){if(138===o){const{loc:t,start:o,value:i,end:a}=r,l=o+1,c=s(t.start,1);e.splice(n,1,new Ke({type:Z(27),value:"#",start:o,end:l,startLoc:t.start,endLoc:c}),new Ke({type:Z(132),value:i,start:l,end:a,startLoc:c,endLoc:t.end})),n++;continue}if(J(o)){const{loc:i,start:a,value:l,end:c}=r,u=a+1,p=s(i.start,1);let f,d,h,m,y;f=96===t.charCodeAt(a)?new Ke({type:Z(22),value:"`",start:a,end:u,startLoc:i.start,endLoc:p}):new Ke({type:Z(8),value:"}",start:a,end:u,startLoc:i.start,endLoc:p}),24===o?(h=c-1,m=s(i.end,-1),d=null===l?null:l.slice(1,-1),y=new Ke({type:Z(22),value:"`",start:h,end:c,startLoc:m,endLoc:i.end})):(h=c-2,m=s(i.end,-2),d=null===l?null:l.slice(1,-2),y=new Ke({type:Z(23),value:"${",start:h,end:c,startLoc:m,endLoc:i.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(o)}}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,o=this.input.slice(n.start,n.end),i=n.value=o.slice(1,-1);return this.addExtra(n,"raw",o),this.addExtra(n,"rawValue",i),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(),o=!!(2&e),i=!!(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 i||this.raise(this.state.strict?b.StrictFunction:this.options.annexB?b.SloppyFunctionAnnexB:b.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(r,!1,!o&&i);case 80:return o||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()?o||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):o||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(!o&&this.hasFollowingLineBreak())break;if(!this.chStartsBindingIdentifier(t,e)&&123!==t)break}}case 75:o||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 o||this.raise(b.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(r,!0,!o&&i)}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(Bt),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(Bt);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(),o=r||this.isContextual(107)&&this.startsUsingForOf(),i=n&&this.hasFollowingBindingAtom()||o;if(this.match(74)||this.match(75)||i){const n=this.startNode();let i;r?(i="await using",this.isAwaitAllowed()||this.raise(b.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):i=this.state.value,this.next(),this.parseVar(n,!0,i);const s=this.finishNode(n,"VariableDeclaration"),a=this.match(58);return a&&o&&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),o=new nt,i=this.parseExpression(!0,o),s=this.isContextual(102);if(s&&(n&&this.raise(b.ForOfLet,i),null===t&&r&&"Identifier"===i.type&&this.raise(b.ForOfAsync,i)),s||this.match(58)){this.checkDestructuringPrivate(o),this.toAssignable(i,!0);const n=s?"ForOfStatement":"ForInStatement";return this.checkLVal(i,{in:{type:n}}),this.parseForIn(e,i,t)}return this.checkExpressionErrors(o,!0),null!==t&&this.unexpected(t),this.parseFor(e,i)}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(qt),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(Bt),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 o=(i=this.state.type)>=90&&i<=92?1:this.match(71)?2:null;var i;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=o}return this.state.labels.push({name:t,kind:o,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,o){const i=e.body=[],s=e.directives=[];this.parseBlockOrModuleBlockBody(i,t?s:void 0,n,r,o)}parseBlockOrModuleBlockBody(e,t,n,r,o){const i=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==o||o.call(this,s),i||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 o=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"})),o.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),o=r&&!(4&t),i=!!(8&t);this.initFunction(e,i),this.match(55)&&(n&&this.raise(b.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),r&&(e.id=this.parseFunctionId(o));const s=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(et(i,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 o=this.startNode();if(o.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(o,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(o,"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 o=t,i=t,s=t,a=t,l=t,c=o,u=o;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,i,!0,!1):(this.isNonstaticConstructor(o)&&this.raise(b.ConstructorIsGenerator,o.key),void this.pushClassMethod(e,o,!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,i,!1,!1);const r=this.isNonstaticConstructor(o);let s=!1;r&&(o.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,o,!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,i,t,!0):(this.isNonstaticConstructor(o)&&this.raise(b.ConstructorIsAsync,o.key),this.pushClassMethod(e,o,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(o),t?this.pushClassPrivateMethod(e,i,!1,!1):(this.isNonstaticConstructor(o)&&this.raise(b.ConstructorIsAccessor,o.key),this.pushClassMethod(e,o,!1,!1,!1,!1)),this.checkGetterSetterParams(o)}}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 o=t.body=[];this.parseBlockOrModuleBlockBody(o,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,o,i){e.body.push(this.parseMethod(t,n,r,o,i,"ClassMethod",!0))}pushClassPrivateMethod(e,t,n,r){const o=this.parseMethod(t,n,r,!1,!1,"ClassPrivateMethod",!0);e.body.push(o);const i="get"===o.kind?o.static?6:2:"set"===o.kind?o.static?5:1:0;this.declareClassPrivateMethodInScope(o,i)}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),o=!r||this.eat(12),i=o&&this.eatExportStar(e),s=i&&this.maybeParseExportNamespaceSpecifier(e),a=o&&(!s||this.eat(12)),l=r||i;if(i&&!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&&o&&!i&&!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 o;if(t)if(n){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){var i;const t=e.declaration;"Identifier"!==t.type||"from"!==t.name||t.end-t.start!=4||null!=(i=t.extra)&&i.parenthesized||this.raise(b.ExportDefaultFromAsIdentifier,t)}}else if(null!=(o=e.specifiers)&&o.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),o=this.match(133),i=this.startNode();i.local=this.parseModuleExportName(),t.push(this.parseExportSpecifier(i,o,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:o,range:i,extra:s}=e;if("Placeholder"===t)return function(e){return it(e)}(e);const a=Object.create(ot);return a.type=t,a.start=n,a.end=r,a.loc=o,a.range=i,void 0!==e.raw?a.raw=e.raw:a.extra=s,a.value=e.value,a}(e.local):e.exported||(e.exported=it(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),o=this.isContextual(130);n.imported=this.parseModuleExportName();const i=this.parseImportSpecifier(n,r,"type"===e.importKind||"typeof"===e.importKind,o,void 0);e.specifiers.push(i)}}parseImportSpecifier(e,t,n,r,o){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=it(n))}return this.finishImportSpecifier(e,"ImportSpecifier",o)}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(!Nt.includes(t)){const e=Nt.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")&&!jt.includes(kt(e,"recordAndTuple","syntaxType")))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+jt.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 o=SyntaxError,i=Function,s=TypeError,a=function(e){try{return i('"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%":i,"%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%":o,"%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 o=e("%AsyncGenerator%");o&&d&&(n=d(o.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),w=_.call(Function.apply,Array.prototype.splice),S=_.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 i=y[r];if(i===h&&(i=v(r)),void 0===i&&!t)throw new s("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new o("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 o("`%` 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 o("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var r=[];return S(e,P,(function(e,t,n,o){r[r.length]=n?S(o,O,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",i=C("%"+r+"%",t),a=i.name,c=i.value,u=!1,p=i.alias;p&&(r=p[0],w(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 o("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),o=n(47),i=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),w=n(77),S=n(129),T=n(130),A=n(78),P=n(79),O=n(131),C=n(265),k=n(50),I=n(8),N=n(51),j=n(268),D=n(269),M=n(270),L=n(271),R=n(272),B=n(80),q=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:w,eq:S,neq:T,gte:A,lte:P,cmp:O,coerce:C,Comparator:k,Range:I,satisfies:N,toComparators:j,maxSatisfying:D,minSatisfying:M,minVersion:L,validRange:R,outside:B,gtr:q,ltr:F,intersects:U,simplifyRange:V,subset:$,SemVer:i,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:o.SEMVER_SPEC_VERSION,RELEASE_TYPES:o.RELEASE_TYPES,compareIdentifiers:s.compareIdentifiers,rcompareIdentifiers:s.rcompareIdentifiers}},(e,t,n)=>{let r,o,i,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),o=0;o<n;o++)r[o]=arguments[o];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),o=1;o<t;o++)r[o-1]=arguments[o];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),o=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let e of o)this.proxyOf.nodes.splice(r+1,0,e);for(let e in this.indexes)n=this.indexes[e],r<n&&(this.indexes[e]=n+o.length);return this.markDirty(),this}insertBefore(e,t){let n,r=this.index(e),o=0===r&&"prepend",i=this.normalize(t,this.proxyOf.nodes[r],o).reverse();r=this.index(e);for(let e of i)this.proxyOf.nodes.splice(r,0,e);for(let e in this.indexes)n=this.indexes[e],r<=n&&(this.indexes[e]=n+i.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 o(e)];else if(e.name)e=[new i(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=>{o=e},h.registerAtRule=e=>{i=e},h.registerRoot=e=>{s=e},e.exports=h,h.default=h,h.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,i.prototype):"rule"===e.type?Object.setPrototypeOf(e,o.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 o(e){return o="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},o(e)}var i,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);i=e.isDeepEqual,s=e.isDeepStrictEqual}new Map;var x=!1,w=e.exports=P,S={};function T(e){if(e.message instanceof Error)throw e.message;throw new d(e)}function A(e,t,n,r){if(!n){var o=!1;if(0===t)o=!0,r="No value argument passed to `assert.ok()`";else if(r instanceof Error)throw r;var i=new d({actual:n,expected:!0,message:r,operator:"==",stackStartFn:e});throw i.generatedMessage=o,i}}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))}w.fail=function e(t,n,o,i,s){var a,l=arguments.length;if(0===l?a="Failed":1===l?(o=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&&(i="!=")),o instanceof Error)throw o;var c={actual:t,expected:n,operator:void 0===i?"fail":i,stackStartFn:s||e};void 0!==o&&(c.message=o);var u=new d(c);throw a&&(u.message=a,u.generatedMessage=!0),u},w.AssertionError=d,w.ok=P,w.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})},w.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})},w.deepEqual=function e(t,n,r){if(arguments.length<2)throw new f("actual","expected");void 0===i&&E(),i(t,n)||T({actual:t,expected:n,message:r,operator:"deepEqual",stackStartFn:e})},w.notDeepEqual=function e(t,n,r){if(arguments.length<2)throw new f("actual","expected");void 0===i&&E(),i(t,n)&&T({actual:t,expected:n,message:r,operator:"notDeepEqual",stackStartFn:e})},w.deepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new f("actual","expected");void 0===i&&E(),s(t,n)||T({actual:t,expected:n,message:r,operator:"deepStrictEqual",stackStartFn:e})},w.notDeepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new f("actual","expected");void 0===i&&E(),s(t,n)&&T({actual:t,expected:n,message:r,operator:"notDeepStrictEqual",stackStartFn:e})},w.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})},w.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 o=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])?o[e]=r[e]:o[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"!==o(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===i&&E(),l.forEach((function(o){"string"==typeof e[o]&&g(t[o])&&_(t[o],e[o])||function(e,t,n,r,o,i){if(!(n in e)||!s(e[n],t[n])){if(!r){var a=new O(e,o),l=new O(t,o,e),c=new d({actual:a,expected:l,operator:"deepStrictEqual",stackStartFn:i});throw c.actual=e,c.expected=t,c.operator=i.name,c}T({actual:e,expected:t,message:r,operator:i.name,stackStartFn:i})}}(e,t,o,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 S}function I(e){return y(e)||null!==e&&"object"===o(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function N(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 S})).catch((function(e){return e}))}))}function j(e,t,n,r){if("string"==typeof n){if(4===arguments.length)throw new c("error",["Object","Error","Function","RegExp"],n);if("object"===o(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"!==o(n)&&"function"!=typeof n)throw new c("error",["Object","Error","Function","RegExp"],n);if(t===S){var i="";n&&n.name&&(i+=" (".concat(n.name,")")),i+=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(i),stackStartFn:e})}if(n&&!C(t,n,r,e))throw t}function D(e,t,n,r){if(t!==S){if("string"==typeof n&&(r=n,n=void 0),!n||C(t,n)){var o=r?": ".concat(r):".",i="doesNotReject"===e.name?"rejection":"exception";T({actual:t,expected:n,operator:e.name,message:"Got unwanted ".concat(i).concat(o,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function M(e,t,n,r,i){if(!g(t))throw new c("regexp","RegExp",t);var s="match"===i;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(o(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:i,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))}w.throws=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];j.apply(void 0,[e,k(t)].concat(r))},w.rejects=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return N(t).then((function(t){return j.apply(void 0,[e,t].concat(r))}))},w.doesNotThrow=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];D.apply(void 0,[e,k(t)].concat(r))},w.doesNotReject=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return N(t).then((function(t){return D.apply(void 0,[e,t].concat(r))}))},w.ifError=function e(t){if(null!=t){var n="ifError got unwanted exception: ";"object"===o(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}),i=t.stack;if("string"==typeof i){var s=i.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}},w.match=function e(t,n,r){M(t,n,r,e,"match")},w.doesNotMatch=function e(t,n,r){M(t,n,r,e,"doesNotMatch")},w.strict=v(L,w,{equal:w.strictEqual,deepEqual:w.deepStrictEqual,notEqual:w.notStrictEqual,notDeepEqual:w.notDeepStrictEqual}),w.strict.strict=w.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=[">","<",">=","<="]),o=t.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],i=t.COMPARISON_BINARY_OPERATORS=[...o,"in","instanceof"],s=t.BOOLEAN_BINARY_OPERATORS=[...i,...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),o=n(2);const i=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,o.isIdentifier)(e))u.name=e.name,i(e,"optional")&&"boolean"==typeof e.optional&&(u.optional=e.optional),i(e,"typeAnnotation")&&(u.typeAnnotation=t?a(e.typeAnnotation,!0,n,s):e.typeAnnotation);else{if(!i(r.NODE_FIELDS,l))throw new Error(`Unknown node type: "${l}"`);for(const p of Object.keys(r.NODE_FIELDS[l]))i(e,p)&&(u[p]=t?(0,o.isFile)(e)&&"comments"===p?c(e.comments,t,n,s):a(e[p],!0,n,s):e[p])}return i(e,"loc")&&(u.loc=n?null:e.loc),i(e,"leadingComments")&&(u.leadingComments=c(e.leadingComments,t,n,s)),i(e,"innerComments")&&(u.innerComments=c(e.innerComments,t,n,s)),i(e,"trailingComments")&&(u.trailingComments=c(e.trailingComments,t,n,s)),i(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:o,value:i,loc:s}=e,a={type:o,value:i,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),o=n(61),i=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:w}=a,S=o("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:o,listKey:i,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=o[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,o,i,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,i.default)(this.node,e,this.scope,t,this)}set(e,t){w(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){S.enabled&&S(`${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),o=n(63),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(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),o=n(418),i="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 o=r.write(e,t);return o!==n&&(r=r.slice(0,o)),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 o=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(o)return o;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 o=!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(o)return r?-1:z(e).length;t=(""+t).toLowerCase(),o=!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,o){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=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)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,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,o){let i,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(o){let r=-1;for(i=n;i<a;i++)if(c(e,i)===c(t,-1===r?0:i-r)){if(-1===r&&(r=i),i-r+1===l)return r*s}else-1!==r&&(i-=i-r),r=-1}else for(n+l>a&&(n=a-l),i=n;i>=0;i--){let n=!0;for(let r=0;r<l;r++)if(c(e,i+r)!==c(t,r)){n=!1;break}if(n)return i}return-1}function _(e,t,n,r){n=Number(n)||0;const o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;const i=t.length;let s;for(r>i/2&&(r=i/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 w(e,t,n,r){return G(H(t),e,n,r)}function S(e,t,n,r){return G(function(e,t){let n,r,o;const i=[];for(let s=0;s<e.length&&!((t-=2)<0);++s)n=e.charCodeAt(s),r=n>>8,o=n%256,i.push(o),i.push(r);return i}(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 o=t;for(;o<n;){const t=e[o];let i=null,s=t>239?4:t>223?3:t>191?2:1;if(o+s<=n){let n,r,a,l;switch(s){case 1:t<128&&(i=t);break;case 2:n=e[o+1],128==(192&n)&&(l=(31&t)<<6|63&n,l>127&&(i=l));break;case 3:n=e[o+1],r=e[o+2],128==(192&n)&&128==(192&r)&&(l=(15&t)<<12|(63&n)<<6|63&r,l>2047&&(l<55296||l>57343)&&(i=l));break;case 4:n=e[o+1],r=e[o+2],a=e[o+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&&(i=l))}}null===i?(i=65533,s=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|1023&i),r.push(i),o+=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 o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];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 o=0;for(n=0;n<e.length;++n){let t=e[n];if(Q(t,Uint8Array))o+t.length>r.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(r,o)):Uint8Array.prototype.set.call(r,t,o);else{if(!l.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,o)}o+=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+">"},i&&(l.prototype[i]=l.prototype.inspect),l.prototype.compare=function(e,t,n,r,o){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===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;let i=(o>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0);const a=Math.min(i,s),c=this.slice(r,o),u=e.slice(t,n);for(let e=0;e<a;++e)if(c[e]!==u[e]){i=c[e],s=u[e];break}return i<s?-1:s<i?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 o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let i=!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 w(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!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 o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function C(e,t,n){let r="";n=Math.min(e.length,n);for(let o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function k(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let o="";for(let r=t;r<n;++r)o+=Y[e[r]];return o}function I(e,t,n){const r=e.slice(t,n);let o="";for(let e=0;e<r.length-1;e+=2)o+=String.fromCharCode(r[e]+256*r[e+1]);return o}function N(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 j(e,t,n,r,o,i){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)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,o){V(t,r,o,e,n,7);let i=Number(t&BigInt(4294967295));e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i;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,o){V(t,r,o,e,n,7);let i=Number(t&BigInt(4294967295));e[n+7]=i,i>>=8,e[n+6]=i,i>>=8,e[n+5]=i,i>>=8,e[n+4]=i;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,o,i){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,i){return t=+t,n>>>=0,i||L(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function B(e,t,n,r,i){return t=+t,n>>>=0,i||L(e,0,n,8),o.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||N(e,t,this.length);let r=this[e],o=1,i=0;for(;++i<t&&(o*=256);)r+=this[e+i]*o;return r},l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);let r=this[e+--t],o=1;for(;t>0&&(o*=256);)r+=this[e+--t]*o;return r},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||N(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||N(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||N(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||N(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||N(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,o=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(o)<<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],o=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(o)})),l.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);let r=this[e],o=1,i=0;for(;++i<t&&(o*=256);)r+=this[e+i]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);let r=t,o=1,i=this[e+--r];for(;r>0&&(o*=256);)i+=this[e+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},l.prototype.readInt8=function(e,t){return e>>>=0,t||N(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||N(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||N(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||N(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||N(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||N(e,4,this.length),o.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||N(e,4,this.length),o.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||N(e,8,this.length),o.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||N(e,8,this.length),o.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||j(this,e,t,n,Math.pow(2,8*n)-1,0);let o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||j(this,e,t,n,Math.pow(2,8*n)-1,0);let o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||j(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||j(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||j(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||j(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||j(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);j(this,e,t,n,r-1,-r)}let o=0,i=1,s=0;for(this[t]=255&e;++o<n&&(i*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/i|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);j(this,e,t,n,r-1,-r)}let o=n-1,i=1,s=0;for(this[t+o]=255&e;--o>=0&&(i*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/i|0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||j(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||j(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||j(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||j(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||j(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 B(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return B(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 o=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),o},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 o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{const i=l.isBuffer(e)?e:l.from(e,r),s=i.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=i[o%s]}return this};const q={};function F(e,t,n){q[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,o,i){if(e>n||e<t){const r="bigint"==typeof t?"n":"";let o;throw o=i>3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(i+1)}${r}`:`>= -(2${r} ** ${8*(i+1)-1}${r}) and < 2 ** ${8*(i+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new q.ERR_OUT_OF_RANGE("value",o,e)}!function(e,t,n){$(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||W(t,e.length-(n+1))}(r,o,i)}function $(e,t){if("number"!=typeof e)throw new q.ERR_INVALID_ARG_TYPE(t,"number",e)}function W(e,t,n){if(Math.floor(e)!==e)throw $(e,n),new q.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new q.ERR_BUFFER_OUT_OF_BOUNDS;throw new q.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.`,o=n;return Number.isInteger(n)&&Math.abs(n)>2**32?o=U(String(n)):"bigint"==typeof n&&(o=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(o=U(o)),o+="n"),r+=` It must be ${t}. Received ${o}`,r}),RangeError);const K=/[^+/0-9A-Za-z-_]/g;function z(e,t){let n;t=t||1/0;const r=e.length;let o=null;const i=[];for(let s=0;s<r;++s){if(n=e.charCodeAt(s),n>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.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;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}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 o;for(o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}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 o=0;o<16;++o)t[r+o]=e[n]+e[o]}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),o=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},i=/%[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,o=r.length,s=String(e).replace(i,(function(e){if("%%"===e)return"%";if(n>=o)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<o;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 o=!1;return function(){if(!o){if(r.throwDeprecation)throw new Error(n);r.traceDeprecation,o=!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&&S(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return v(o)||(o=p(e,o,r)),o}var i=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(i)return i;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)),w(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return f(n);if(0===s.length){if(S(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(w(n))return f(n)}var c,u="",E=!1,T=["{","}"];return h(n)&&(E=!0,T=["[","]"]),S(n)&&(u=" [Function"+(n.name?": "+n.name:"")+"]"),_(n)&&(u=" "+RegExp.prototype.toString.call(n)),x(n)&&(u=" "+Date.prototype.toUTCString.call(n)),w(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,o){for(var i=[],s=0,a=t.length;s<a;++s)A(t,String(s))?i.push(d(e,t,n,r,String(s),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(d(e,t,n,r,o,!0))})),i}(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,o,i){var s,a,l;if((l=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?a=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(a=e.stylize("[Setter]","special")),A(r,o)||(s="["+o+"]"),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=i?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(i&&o.match(/^\d+$/))return a;(s=JSON.stringify(""+o)).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 w(e){return E(e)&&("[object Error]"===T(e)||e instanceof Error)}function S(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=w,t.types.isNativeError=w,t.isFunction=S,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})),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push((function(e,r){e?n(e):t(r)}));try{e.apply(this,o)}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,o(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 o=t.pop();if("function"!=typeof o)throw new TypeError("The last argument must be of type Function");var i=this,s=function(){return o.apply(i,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,o(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:o,MAX_LENGTH:i}=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",i],[f,o]],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),o=p++;s(e,o,t),u[e]=o,c[o]=t,a[o]=new RegExp(t,n?"g":void 0),l[o]=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(){o(),i()},t.clearPath=o,t.clearScope=i,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 o=r.get(t);return o||r.set(t,o=new Map),o},t.scope=t.path=void 0;let n=t.path=new WeakMap,r=t.scope=new WeakMap;function o(){t.path=n=new WeakMap}function i(){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 o=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}},o)};var o=n(428),i=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 o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}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,o.shouldHighlight)(n),s=n.forceColor?(null!=a||(a=new i.default.constructor({enabled:!0,level:1})),a):i.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),o=Object.assign({},r,e.end),{linesAbove:i=2,linesBelow:s=3}=n||{},a=r.line,l=r.column,c=o.line,u=o.column;let p=Math.max(a-(i+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,o.default)(e,n):e).split(c,d).slice(f,d).map(((e,t)=>{const r=f+1+t,o=` ${` ${r}`.slice(-y)} |`,i=h[r],s=!h[r+1];if(i){let t="";if(Array.isArray(i)){const r=e.slice(0,Math.max(i[0]-1,0)).replace(/[^\t]/g," "),a=i[1]||1;t=["\n ",u(l.gutter,o.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,o),e.length>0?` ${e}`:"",t].join("")}return` ${u(l.gutter,o)}${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),o=n(433);const i=(0,o.default)(r.smart);t.smart=i;const s=(0,o.default)(r.statement);t.statement=s;const a=(0,o.default)(r.statements);t.statements=a;const l=(0,o.default)(r.expression);t.expression=l;const c=(0,o.default)(r.program);t.program=c;var u=Object.assign(i.bind(void 0),{smart:i,statement:s,statements:a,expression:l,program:c,ast:i.ast});t.default=u},(e,t,n)=>{var r=n(22),o=n(41),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.beginHiddenCallStack=function(e){return o?Object.defineProperty((function(){return c(),e(...arguments)}),"name",{value:s}):e},t.endHiddenCallStack=function(e){return o?Object.defineProperty((function(){return e(...arguments)}),"name",{value:i}):e},t.expectedError=function(e){if(o)return a.add(e),e},t.injectVirtualStackFrame=function(e,t){if(!o)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),o=!!Error.captureStackTrace&&!0===(null==(n=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit"))?void 0:n.writable),i="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=[],o=a.has(t)?"hiding":"unknown";for(let e=0;e<n.length;e++){const a=n[e].getFunctionName();if(a===i)o="hiding";else if(a===s){if("hiding"===o)o="showing",l.has(t)&&r.unshift(...l.get(t));else if("unknown"===o){r=n;break}}else"hiding"!==o&&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,o,i=n(24);class s extends i{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 o,this,e).stringify()}}s.registerLazyResult=e=>{r=e},s.registerProcessor=e=>{o=e},e.exports=s,s.default=s,i.registerRoot(s)},(e,t,n)=>{var r=n(71),o=n(22),i=n(234),s=o("%TypeError%"),a=o("%Function.prototype.apply%"),l=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(l,a),u=o("%Object.defineProperty%",!0),p=o("%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 i(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,o.default)(t.type,e)?void 0===n||(0,r.default)(t,n):!n&&"Placeholder"===t.type&&e in s.FLIPPED_ALIAS_KEYS&&(0,i.default)(t.expectedNode,e))};var r=n(96),o=n(98),i=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),o=n(15),i=n(102),s=n(204),a=n(11),l=r.RegExp,c=l.prototype;o&&a((function(){var e=!0;try{l(".","d")}catch(t){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",o=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in e&&(i.hasIndices="d"),i)o(s,i[s]);return Object.getOwnPropertyDescriptor(c,"flags").get.call(t)!==r||n!==r}))&&i(c,"flags",{configurable:!0,get:s})},(e,t,n)=>{var r=n(5),o=n(116),i=n(29),s=n(67),a=n(113),l=n(112),c=r.Symbol,u=o("wks"),p=l?c.for||c:c&&c.withoutSetter||s;e.exports=function(e){return i(u,e)||(u[e]=a&&i(c,e)?c[e]:p("Symbol."+e)),u[e]}},(e,t,n)=>{var r=n(123),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=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(o=r)||"[object Function]"!==i.call(o)||!r())return;var o;l?a(e,t,n,!0):a(e,t,n)},u=function(e,t){var n=arguments.length>2?arguments[2]:{},i=r(t);o&&(i=s.call(i,Object.getOwnPropertySymbols(t)));for(var a=0;a<i.length;a+=1)c(e,i[a],t[i[a]],n[i[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 o=("object"==typeof r&&r.env,()=>{});e.exports=o},(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 o{static get ANY(){return r}constructor(e,t){if(t=i(t),e instanceof o){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 o))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=i(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=o;const i=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 o 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=o,o.default=o},(e,t,n)=>{let{isClean:r,my:o}=n(145),i=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 o=e[r],i=typeof o;"parent"===r&&"object"===i?t&&(n[r]=t):"source"===r?n[r]=o:Array.isArray(o)?n[r]=o.map((e=>l(e,n))):("object"===i&&null!==o&&(o=l(o)),n[r]=o)}return n}class c{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.raws={},this[r]=!1,this[o]=!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 i(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,o=this.source.start.line;for(let t=0;t<e;t++)"\n"===n[t]?(r=1,o+=1):r+=1;return{column:r,line:o}}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(),o=r.indexOf(e.word);-1!==o&&(t=this.positionInside(o,r),n=this.positionInside(o+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,o=!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?o=!0:o?(this.parent.insertAfter(r,e),r=e):this.parent.insertBefore(r,e);o||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 o=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 i=t.get(r.input);null==i&&(i=o,t.set(r.input,o),o++),n[e]={end:r.end,inputId:i,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 o(e,t){new r(t).stringify(e)}e.exports=o,o.default=o},(e,t,n)=>{let{SourceMapConsumer:r,SourceMapGenerator:o}=n(149),{fileURLToPath:i,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&&o),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,o,i,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);o=e.line,i=e.col}else o=r.line,i=r.column}else if(!n){let e=this.fromOffset(t);t=e.line,n=e.col}let l=this.origin(t,n,o,i);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===o?t:{column:n,line:t},void 0===o?n:{column:i,line:o},this.css,this.file,a.plugin),r.input={column:n,endColumn:i,endLine:o,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,o=e.length;r<o;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,o=n.length-2;for(;r<o;)if(t=r+(o-r>>1),e<n[t])o=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 o,l,c=this.map.consumer(),u=c.originalPositionFor({column:t,line:e});if(!u.source)return!1;"number"==typeof n&&(o=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:o&&o.column,endLine:o&&o.line,line:u.line,url:l.toString()};if("file:"===l.protocol){if(!i)throw new Error("file: protocol is not available in this PostCSS build");p.file=i(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 o extends r{constructor(e){super(e),this.type="comment"}}e.exports=o,o.default=o},(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 o=0;o<e.length;o++){const i=f(e[o]),s=t[o];let a=i;(s||n)&&(a=m(a,s,n)),b(r,a);for(const e of Object.keys(i)){if(v(e))continue;let t=i[e];(s||n)&&(t=m(t,s,n)),b(r[e]||(r[e]={}),t)}}return r},t.verify=d;var r=n(162),o=n(163),i=n(0);const{DEPRECATED_KEYS:s,DEPRECATED_ALIASES:a,FLIPPED_ALIAS_KEYS:l,TYPES:c,__internal__deprecationWarning:u}=i;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 o=r[t];if(null!==o)for(const t of o)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 o of["enter","exit"]){let i=e[o];Array.isArray(i)&&(i=i.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,o,r)),r!==e&&(r.toString=()=>e.toString()),r})),r[o]=i)}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=o[`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:o}=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 o.isKeyword}}),Object.defineProperty(t,"isReservedWord",{enumerable:!0,get:function(){return o.isReservedWord}}),Object.defineProperty(t,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return o.isStrictBindOnlyReservedWord}}),Object.defineProperty(t,"isStrictBindReservedWord",{enumerable:!0,get:function(){return o.isStrictBindReservedWord}}),Object.defineProperty(t,"isStrictReservedWord",{enumerable:!0,get:function(){return o.isStrictReservedWord}});var r=n(353),o=n(354)},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=n(2);function o(e,t,n,i){const s=[].concat(e),a=Object.create(null);for(;s.length;){const e=s.shift();if(!e)continue;if(i&&((0,r.isAssignmentExpression)(e)||(0,r.isUnaryExpression)(e)))continue;const l=o.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}o.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=o(p)));const d=n?t.node:l("var",[c(o(p),t.node)]),h=i(null,[s(o(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=i(null,r);return e.insertAfter(u),e.replaceWith(t.node),e};var r=n(0);const{cloneNode:o,exportNamedDeclaration:i,exportSpecifier:s,identifier:a,variableDeclaration:l,variableDeclarator:c}=r},(e,t,n)=>{var r=n(187),o=Object;e.exports=function(e){return o(r(e))}},(e,t,n)=>{var r=n(5),o=n(106),i="__core-js_shared__",s=r[i]||o(i,{});e.exports=s},(e,t,n)=>{var r=n(20),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not an object")}},(e,t,n)=>{var r=n(104),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},(e,t,n)=>{var r=n(19),o=0,i=Math.random(),s=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++o+i,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 i;const s=[],a=v(t.name);for(const e of t.importsNamespace)e!==t.name&&s.push(o.template.statement`var NAME = SOURCE;`({NAME:e,SOURCE:h(a)}));const l=null!=(i=r(a,t.wrap))?i:a;n&&s.push(...A(e,t,!0,r));for(const n of t.reexportNamespace)s.push((o.types.isIdentifier(l)?o.template.statement`EXPORTS.NAME = NAMESPACE;`:o.template.statement`
3
3
  Object.defineProperty(EXPORTS, "NAME", {
4
4
  enumerable: true,
5
5
  get: function() {