resolver-egretimp-plus 0.1.142 → 0.1.143

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__={54554:(e,t,r)=>{function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(this,arguments)}function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function s(e,t,r){return s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&i(o,r.prototype),o},s.apply(null,arguments)}function a(e){var t="function"==typeof Map?new Map:void 0;return a=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return s(e,arguments,o(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),i(n,e)},a(e)}r.d(t,{A:()=>D});var l=/%[sdj%]/g;function c(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var r=e.field;t[r]=t[r]||[],t[r].push(e)})),t}function u(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=0,i=r.length;return"function"==typeof e?e.apply(null,r):"string"==typeof e?e.replace(l,(function(e){if("%%"===e)return"%";if(o>=i)return e;switch(e){case"%s":return String(r[o++]);case"%d":return Number(r[o++]);case"%j":try{return JSON.stringify(r[o++])}catch(e){return"[Circular]"}break;default:return e}})):e}function p(e,t){return null==e||!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e)}function d(e,t,r){var n=0,o=e.length;!function i(s){if(s&&s.length)r(s);else{var a=n;n+=1,a<o?t(e[a],i):r([])}}([])}"undefined"!=typeof process&&process.env;var f=function(e){var t,r;function n(t,r){var n;return(n=e.call(this,"Async Validation Error")||this).errors=t,n.fields=r,n}return r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,i(t,r),n}(a(Error));function h(e,t){return function(r){var n;return n=e.fullFields?function(e,t){for(var r=e,n=0;n<t.length;n++){if(null==r)return r;r=r[t[n]]}return r}(t,e.fullFields):t[r.field||e.fullField],function(e){return!(!e||void 0===e.message)}(r)?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:"function"==typeof r?r():r,fieldValue:n,field:r.field||e.fullField}}}function m(e,t){if(t)for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];"object"==typeof o&&"object"==typeof e[r]?e[r]=n({},e[r],o):e[r]=o}return e}var y,g=function(e,t,r,n,o,i){!e.required||r.hasOwnProperty(e.field)&&!p(t,i||e.type)||n.push(u(o.messages.required,e.fullField))},v=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,b=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,_={integer:function(e){return _.number(e)&&parseInt(e,10)===e},float:function(e){return _.number(e)&&!_.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"==typeof e&&!_.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(v)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(y)return y;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",o=("\n(?:\n(?:"+n+":){7}(?:"+n+"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:"+n+":){6}(?:"+r+"|:"+n+"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:"+n+":){5}(?::"+r+"|(?::"+n+"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:"+n+":){4}(?:(?::"+n+"){0,1}:"+r+"|(?::"+n+"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:"+n+":){3}(?:(?::"+n+"){0,2}:"+r+"|(?::"+n+"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:"+n+":){2}(?:(?::"+n+"){0,3}:"+r+"|(?::"+n+"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:"+n+":){1}(?:(?::"+n+"){0,4}:"+r+"|(?::"+n+"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+n+"){0,5}:"+r+"|(?::"+n+"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+r+"$)|(?:^"+o+"$)"),s=new RegExp("^"+r+"$"),a=new RegExp("^"+o+"$"),l=function(e){return e&&e.exact?i:new RegExp("(?:"+t(e)+r+t(e)+")|(?:"+t(e)+o+t(e)+")","g")};l.v4=function(e){return e&&e.exact?s:new RegExp(""+t(e)+r+t(e),"g")},l.v6=function(e){return e&&e.exact?a:new RegExp(""+t(e)+o+t(e),"g")};var c=l.v4().source,u=l.v6().source;return y=new RegExp("(?:^(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|"+c+"|"+u+'|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?$)',"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(b)}},E="enum",x=g,S=function(e,t,r,n,o){(/^\s+$/.test(t)||""===t)&&n.push(u(o.messages.whitespace,e.fullField))},w=function(e,t,r,n,o){if(e.required&&void 0===t)g(e,t,r,n,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?_[i](t)||n.push(u(o.messages.types[i],e.fullField,e.type)):i&&typeof t!==e.type&&n.push(u(o.messages.types[i],e.fullField,e.type))}},A=function(e,t,r,n,o){var i="number"==typeof e.len,s="number"==typeof e.min,a="number"==typeof e.max,l=t,c=null,p="number"==typeof t,d="string"==typeof t,f=Array.isArray(t);if(p?c="number":d?c="string":f&&(c="array"),!c)return!1;f&&(l=t.length),d&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?l!==e.len&&n.push(u(o.messages[c].len,e.fullField,e.len)):s&&!a&&l<e.min?n.push(u(o.messages[c].min,e.fullField,e.min)):a&&!s&&l>e.max?n.push(u(o.messages[c].max,e.fullField,e.max)):s&&a&&(l<e.min||l>e.max)&&n.push(u(o.messages[c].range,e.fullField,e.min,e.max))},T=function(e,t,r,n,o){e[E]=Array.isArray(e[E])?e[E]:[],-1===e[E].indexOf(t)&&n.push(u(o.messages[E],e.fullField,e[E].join(", ")))},P=function(e,t,r,n,o){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||n.push(u(o.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||n.push(u(o.messages.pattern.mismatch,e.fullField,t,e.pattern))))},C=function(e,t,r,n,o){var i=e.type,s=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(p(t,i)&&!e.required)return r();x(e,t,n,s,o,i),p(t,i)||w(e,t,n,s,o)}r(s)},O={string:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(p(t,"string")&&!e.required)return r();x(e,t,n,i,o,"string"),p(t,"string")||(w(e,t,n,i,o),A(e,t,n,i,o),P(e,t,n,i,o),!0===e.whitespace&&S(e,t,n,i,o))}r(i)},method:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(p(t)&&!e.required)return r();x(e,t,n,i,o),void 0!==t&&w(e,t,n,i,o)}r(i)},number:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(""===t&&(t=void 0),p(t)&&!e.required)return r();x(e,t,n,i,o),void 0!==t&&(w(e,t,n,i,o),A(e,t,n,i,o))}r(i)},boolean:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(p(t)&&!e.required)return r();x(e,t,n,i,o),void 0!==t&&w(e,t,n,i,o)}r(i)},regexp:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(p(t)&&!e.required)return r();x(e,t,n,i,o),p(t)||w(e,t,n,i,o)}r(i)},integer:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(p(t)&&!e.required)return r();x(e,t,n,i,o),void 0!==t&&(w(e,t,n,i,o),A(e,t,n,i,o))}r(i)},float:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(p(t)&&!e.required)return r();x(e,t,n,i,o),void 0!==t&&(w(e,t,n,i,o),A(e,t,n,i,o))}r(i)},array:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(null==t&&!e.required)return r();x(e,t,n,i,o,"array"),null!=t&&(w(e,t,n,i,o),A(e,t,n,i,o))}r(i)},object:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(p(t)&&!e.required)return r();x(e,t,n,i,o),void 0!==t&&w(e,t,n,i,o)}r(i)},enum:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(p(t)&&!e.required)return r();x(e,t,n,i,o),void 0!==t&&T(e,t,n,i,o)}r(i)},pattern:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(p(t,"string")&&!e.required)return r();x(e,t,n,i,o),p(t,"string")||P(e,t,n,i,o)}r(i)},date:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(p(t,"date")&&!e.required)return r();var s;x(e,t,n,i,o),p(t,"date")||(s=t instanceof Date?t:new Date(t),w(e,s,n,i,o),s&&A(e,s.getTime(),n,i,o))}r(i)},url:C,hex:C,email:C,required:function(e,t,r,n,o){var i=[],s=Array.isArray(t)?"array":typeof t;x(e,t,n,i,o,s),r(i)},any:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(p(t)&&!e.required)return r();x(e,t,n,i,o)}r(i)}};function I(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var k=I(),D=function(){function e(e){this.rules=null,this._messages=k,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(r){var n=e[r];t.rules[r]=Array.isArray(n)?n:[n]}))},t.messages=function(e){return e&&(this._messages=m(I(),e)),this._messages},t.validate=function(t,r,o){var i=this;void 0===r&&(r={}),void 0===o&&(o=function(){});var s=t,a=r,l=o;if("function"==typeof a&&(l=a,a={}),!this.rules||0===Object.keys(this.rules).length)return l&&l(null,s),Promise.resolve(s);if(a.messages){var p=this.messages();p===k&&(p=I()),m(p,a.messages),a.messages=p}else a.messages=this.messages();var y={};(a.keys||Object.keys(this.rules)).forEach((function(e){var r=i.rules[e],o=s[e];r.forEach((function(r){var a=r;"function"==typeof a.transform&&(s===t&&(s=n({},s)),o=s[e]=a.transform(o)),(a="function"==typeof a?{validator:a}:n({},a)).validator=i.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=i.getType(a),y[e]=y[e]||[],y[e].push({rule:a,value:o,source:s,field:e}))}))}));var g={};return function(e,t,r,n,o){if(t.first){var i=new Promise((function(t,i){var s=function(e){var t=[];return Object.keys(e).forEach((function(r){t.push.apply(t,e[r]||[])})),t}(e);d(s,r,(function(e){return n(e),e.length?i(new f(e,c(e))):t(o)}))}));return i.catch((function(e){return e})),i}var s=!0===t.firstFields?Object.keys(e):t.firstFields||[],a=Object.keys(e),l=a.length,u=0,p=[],h=new Promise((function(t,i){var h=function(e){if(p.push.apply(p,e),++u===l)return n(p),p.length?i(new f(p,c(p))):t(o)};a.length||(n(p),t(o)),a.forEach((function(t){var n=e[t];-1!==s.indexOf(t)?d(n,r,h):function(e,t,r){var n=[],o=0,i=e.length;function s(e){n.push.apply(n,e||[]),++o===i&&r(n)}e.forEach((function(e){t(e,s)}))}(n,r,h)}))}));return h.catch((function(e){return e})),h}(y,a,(function(t,r){var o,i=t.rule,l=!("object"!==i.type&&"array"!==i.type||"object"!=typeof i.fields&&"object"!=typeof i.defaultField);function c(e,t){return n({},t,{fullField:i.fullField+"."+e,fullFields:i.fullFields?[].concat(i.fullFields,[e]):[e]})}function p(o){void 0===o&&(o=[]);var p=Array.isArray(o)?o:[o];!a.suppressWarning&&p.length&&e.warning("async-validator:",p),p.length&&void 0!==i.message&&(p=[].concat(i.message));var d=p.map(h(i,s));if(a.first&&d.length)return g[i.field]=1,r(d);if(l){if(i.required&&!t.value)return void 0!==i.message?d=[].concat(i.message).map(h(i,s)):a.error&&(d=[a.error(i,u(a.messages.required,i.field))]),r(d);var f={};i.defaultField&&Object.keys(t.value).map((function(e){f[e]=i.defaultField})),f=n({},f,t.rule.fields);var m={};Object.keys(f).forEach((function(e){var t=f[e],r=Array.isArray(t)?t:[t];m[e]=r.map(c.bind(null,e))}));var y=new e(m);y.messages(a.messages),t.rule.options&&(t.rule.options.messages=a.messages,t.rule.options.error=a.error),y.validate(t.value,t.rule.options||a,(function(e){var t=[];d&&d.length&&t.push.apply(t,d),e&&e.length&&t.push.apply(t,e),r(t.length?t:null)}))}else r(d)}if(l=l&&(i.required||!i.required&&t.value),i.field=t.field,i.asyncValidator)o=i.asyncValidator(i,t.value,p,t.source,a);else if(i.validator){try{o=i.validator(i,t.value,p,t.source,a)}catch(e){null==console.error||console.error(e),a.suppressValidatorError||setTimeout((function(){throw e}),0),p(e.message)}!0===o?p():!1===o?p("function"==typeof i.message?i.message(i.fullField||i.field):i.message||(i.fullField||i.field)+" fails"):o instanceof Array?p(o):o instanceof Error&&p(o.message)}o&&o.then&&o.then((function(){return p()}),(function(e){return p(e)}))}),(function(e){!function(e){for(var t,r,n=[],o={},i=0;i<e.length;i++)t=e[i],r=void 0,Array.isArray(t)?n=(r=n).concat.apply(r,t):n.push(t);n.length?(o=c(n),l(n,o)):l(null,s)}(e)}),s)},t.getType=function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!O.hasOwnProperty(e.type))throw new Error(u("Unknown rule type %s",e.type));return e.type||"string"},t.getValidationMethod=function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),r=t.indexOf("message");return-1!==r&&t.splice(r,1),1===t.length&&"required"===t[0]?O.required:O[this.getType(e)]||void 0},e}();D.register=function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");O[e]=t},D.warning=function(){},D.messages=k,D.validators=O},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_25__=__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_24__=__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_array_push_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(44114),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es_date_to_string_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(23288),core_js_modules_es_date_to_string_js__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es_date_to_string_js__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(26099),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(27495),core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_5__),core_js_modules_es_regexp_test_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(90906),core_js_modules_es_regexp_test_js__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(core_js_modules_es_regexp_test_js__WEBPACK_IMPORTED_MODULE_6__),core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(38781),core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_7__),_babel_runtime_corejs3_core_js_stable_instance_for_each__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(86226),_babel_runtime_corejs3_core_js_stable_instance_for_each__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_for_each__WEBPACK_IMPORTED_MODULE_8__),_babel_runtime_corejs3_core_js_stable_set_timeout__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(56255),_babel_runtime_corejs3_core_js_stable_set_timeout__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_set_timeout__WEBPACK_IMPORTED_MODULE_9__),_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(11393),_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10__),_babel_runtime_corejs3_core_js_stable_instance_reduce__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(73363),_babel_runtime_corejs3_core_js_stable_instance_reduce__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_reduce__WEBPACK_IMPORTED_MODULE_11__),_babel_runtime_corejs3_core_js_stable_instance_index_of__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(64007),_babel_runtime_corejs3_core_js_stable_instance_index_of__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_index_of__WEBPACK_IMPORTED_MODULE_12__),_babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(385),_babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_13__),_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(50697),_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_14___default=__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_14__),_babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(61240),_babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_15___default=__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_15__),_utils_index_js__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(17427),_hooks_index_js__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(70846),_rules_rulesDriver__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(9318),_rules_ruleUtils_js__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(19022),vue_router__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(11292),_components_helper_eventOrchestration_js__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(44026),_components_loadingComponent_LoadingComponent_vue__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(30604),_hooks_configLoad_js__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__(82826);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_24__.A)({},attrs);return delete e.onClick,e}));(0,_hooks_configLoad_js__WEBPACK_IMPORTED_MODULE_23__.S)(props.config);var formContextKey=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_formContextKey"),formContext=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)(formContextKey,{}),_isH5=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_isH5"),configsSet=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_configsSet"),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_20__.useRouter)(),route=(0,vue_router__WEBPACK_IMPORTED_MODULE_20__.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"),OPEN_DATA_RULES=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("OPEN_DATA_RULES"),_dialogFooterTeleport=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_dialogFooterTeleport",(0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(null)),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_16__.Ts)(props.config,"_lang",lang),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(props.config,"_rootValue",rootValue),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(props.config,"router",router),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(props.config,"route",route),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(props.config,"_validate",validate),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(props.config,"_rowScope",props.rowScope),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(props.config,"_selects",selects),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(props.config,"_parentRootValue",_parentRootValue),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.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_16__.Ts)(props.config,"wrapVm",instance);var refFn=function(e){(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.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_16__.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_19__.Vr[hireRelat])&&void 0!==_penddingRules$hireRe&&_penddingRules$hireRe.length&&(_babel_runtime_corejs3_core_js_stable_instance_for_each__WEBPACK_IMPORTED_MODULE_8___default()(_context=_rules_ruleUtils_js__WEBPACK_IMPORTED_MODULE_19__.Vr[hireRelat]).call(_context,(function(e){var t=e.rules;delete e.rules,_babel_runtime_corejs3_core_js_stable_set_timeout__WEBPACK_IMPORTED_MODULE_9___default()((function(){_rules_rulesDriver__WEBPACK_IMPORTED_MODULE_18__.Ay.call(e,t,!1,OPEN_DATA_RULES)}),0)})),_rules_ruleUtils_js__WEBPACK_IMPORTED_MODULE_19__.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_8___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_9___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_9___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_17__.K)(props,emit,OPEN_DATA_RULES),vModelObjs=_useVmodels.vModelObjs,initVmodels=_useVmodels.initVmodels,modelValue=_useVmodels.modelValue;(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.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_8___default()(e=fnComponentkeys.value).call(e,(function(e){if((0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.$3)(props.config,e)){var r=props.config;_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.lb.test(e)&&"function"==typeof r[e]?t[e]=function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return r[e].apply(r,_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10___default()(n).call(n,[vm]))}:t[e]=r[e]}})),t}"function"==typeof props.component?null===(_props$component=props.component())||void 0===_props$component||_props$component.then((function(e){var t,r;null!=e&&null!==(t=e.default)&&void 0!==t&&t.emits&&initVmodels(null==e||null===(r=e.default)||void 0===r?void 0:r.emits),fnComponentkeys.value=(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.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_22__.A,delay:0}):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_10___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_25__.A)(props.additionConfigs),[props.config]);_babel_runtime_corejs3_core_js_stable_instance_reduce__WEBPACK_IMPORTED_MODULE_11___default()(configLinks).call(configLinks,(function(e,t){if((0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(t,"parent",e),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(t,"dynamicMapComp",dynamicMapComp),!OPEN_DATA_RULES){if(null==t||!t.dynamicHireRelat_bak||null!=configsSet&&configsSet.has(t)){var r,n,o=null!=e&&e.dynamicHireRelat?_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10___default()(r=_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10___default()(n="".concat(null==e?void 0:e.dynamicHireRelat)).call(n,(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.$3)(t,"rowIndex")?"[".concat(t.rowIndex,"]"):"","->")).call(r,t.metaCode||""):t.metaCode;(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(t,"dynamicHireRelat",o),t.dynamicHireRelat_bak=o}else{var i;(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(t,"dynamicHireRelat",_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10___default()(i="".concat(t.dynamicHireRelat_bak,"__@__")).call(i,props.mode,"__"))}null==configsSet||configsSet.add(t),t.dynamicHireRelat&&(dynamicMapComp[t.dynamicHireRelat]=t)}return t})),(0,vue__WEBPACK_IMPORTED_MODULE_0__.provide)("parent",props.config),OPEN_DATA_RULES?null!=_isH5&&_isH5.value||!props.config.renderby||(0,vue__WEBPACK_IMPORTED_MODULE_0__.provide)(formContextKey,(0,vue__WEBPACK_IMPORTED_MODULE_0__.reactive)((0,_Users_caowenbin_asia_xm_code_new_web_sa_egretimp_resolver_node_modules_babel_runtime_corejs3_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_24__.A)((0,_Users_caowenbin_asia_xm_code_new_web_sa_egretimp_resolver_node_modules_babel_runtime_corejs3_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_24__.A)({},formContext),{},{addField:function(e){var t,r;null!==(t=props.config)&&void 0!==t&&t._formFields||(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(props.config,"_formFields",[]),null===(r=props.config)||void 0===r||null===(r=r._formFields)||void 0===r||r.push(e),formContext.addField(e)},removeField:function(e){var t,r=null===(t=props.config)||void 0===t?void 0:t._formFields;if(e.prop&&r){var n=_babel_runtime_corejs3_core_js_stable_instance_index_of__WEBPACK_IMPORTED_MODULE_12___default()(r).call(r,e);-1!==n&&_babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_13___default()(r).call(r,n,1)}formContext.removeField(e)}}))):null!=_isH5&&_isH5.value||!props.config.renderby||(0,vue__WEBPACK_IMPORTED_MODULE_0__.provide)(formContextKey,(0,vue__WEBPACK_IMPORTED_MODULE_0__.reactive)((0,_Users_caowenbin_asia_xm_code_new_web_sa_egretimp_resolver_node_modules_babel_runtime_corejs3_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_24__.A)((0,_Users_caowenbin_asia_xm_code_new_web_sa_egretimp_resolver_node_modules_babel_runtime_corejs3_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_24__.A)({},formContext),{},{addField:function(e){if(e.validate&&(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.kL)(e.validate)){var t=e.validate;e.validate=function(){for(var e,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];var i=t.apply(this,n);return(null==i||null===(e=i.then((function(e){return e})))||void 0===e?void 0:e.catch((function(e){var t;return(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Qd)(e)&&_babel_runtime_corejs3_core_js_stable_instance_for_each__WEBPACK_IMPORTED_MODULE_8___default()(t=_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_14___default()(e)).call(t,(function(t){var r=e[t];delete e[t],e[props.config.dynamicHireRelat]=r})),_babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_15___default().reject(e)})))||!0}}formContext.addField(e)}})));var _onClick=function(e,t){var r,n,o,i={props,dynamicMapComp,hireRelatMapRules,components,selects,rootValue:null==rootValue?void 0:rootValue.value,dataLoad,rootForm,routeQuery,appContext};null==attrs||null===(r=attrs.onClick)||void 0===r||r.call(i,e),-1!==(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Tn)(_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.UP,(null===(n=props.config)||void 0===n?void 0:n.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_16__.Qd)(e)||(e={}),(0,_components_helper_eventOrchestration_js__WEBPACK_IMPORTED_MODULE_21__.bt)((0,_Users_caowenbin_asia_xm_code_new_web_sa_egretimp_resolver_node_modules_babel_runtime_corejs3_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_24__.A)((0,_Users_caowenbin_asia_xm_code_new_web_sa_egretimp_resolver_node_modules_babel_runtime_corejs3_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_24__.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,r){var n,o,i,s;console.error("component render failer",(null==lang||null===(n=lang.value)||void 0===n?void 0:_babel_runtime_corejs3_core_js_stable_instance_index_of__WEBPACK_IMPORTED_MODULE_12___default()(n).call(n,"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,r)})),function(){var e,t,r=getFncomponentProps(),n=(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.qg)({config:props.config,props,component:props.component,modelValue,selects,lang:lang.value,vm:instance.proxy}),o=null==n?void 0:n.onClick;delete n.onClick;var i=(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.M9)(props.config,lang.value,n,null==_isH5?void 0:_isH5.value,{lang,rootValue,dynamicMapComp,props,messageInstance:null==messageInstance?void 0:messageInstance.value,OPEN_DATA_RULES})((0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(currentComponent.value,(0,vue__WEBPACK_IMPORTED_MODULE_0__.mergeProps)({key:props.config.metaCode,ref:refFn,onVnodeMounted,onVnodeUnmounted},currentAttrs.value,{onClick:function(e,t){_onClick(e,t),null==o||o(e)}},r,n,vModelObjs),_isSlot(t=(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.yo)({config:props.config}))?t:{default:function(){return[t]}}));return"1"==(null===(e=props.config)||void 0===e?void 0:e.dialogFooterSlot)&&_dialogFooterTeleport.value?(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(vue__WEBPACK_IMPORTED_MODULE_0__.Teleport,{to:_dialogFooterTeleport.value},_isSlot(i)?i:{default:function(){return[i]}}):i}}}},76693:(e,t,r)=>{r.d(t,{FR:()=>u,Tl:()=>l,UU:()=>i,Wb:()=>o,_Q:()=>p,aZ:()=>s,dF:()=>c,dL:()=>a,xx:()=>n});var n="/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,r)=>{r.d(t,{dW:()=>$,Wg:()=>q});var n,o,i=r(7252),s=r(53811),a=r(37891),l=r(34963),c=r(39653),u=r(56213),p=r(49859),d=(r(44114),r(94870)),f=r.n(d),h=r(64007),m=r.n(h),y=r(8628),g=r.n(y),v=r(61240),b=r.n(v),_=r(56255),E=r.n(_),x=r(71426),S=r.n(x),w=r(26327),A=r.n(w),T=r(385),P=r.n(T),C=(r(16280),r(76918),r(23288),r(26099),r(27495),r(38781),r(25440),r(86226)),O=r.n(C),I=r(11393),k=r.n(I),D=function(){function e(t,r){var n=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,r="xxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return"".concat(("x"===e?t:3&t|8).toString(16))}));return k()(t="".concat(e,"_")).call(t,r,"_from_message")})),(0,p.A)(this,"getContext",(function(){return n.context})),r&&(this.context=(0,s.A)({subComponents:[]},r)),this.msgSdkInstance=t}return(0,u.A)(e,[{key:"insertComponent",value:function(e,t){var r=this;try{var i;O()(e).call(e,(function(e){var t,n,o=e.getContext();null===(t=o.props)||void 0===t||null===(t=t.customEvents)||void 0===t||O()(t).call(t,(function(e){r.msgSdkInstance.registerComponentCustomEvents((0,s.A)({id:o.id},e)),delete e.func})),null===(n=r.context.subComponents)||void 0===n||n.push(e.getContext())})),null===(i=this.msgSdkInstance)||void 0===i||i.postMessage({type:n.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:n.callMethod,methodName:o.changeLayoutMaskStatus,data:e})}},{key:"changeLayoutAreaStatus",value:function(e){var t;null===(t=this.msgSdkInstance)||void 0===t||t.postMessage({type:n.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)}}])}(),M="__SEEYON_UDC__";!function(e){e.callMethod="callMethod",e.message="message",e.callEvent="callEvent"}(n||(n={})),function(e){e.ready="ready",e.insertComponent="insertComponent",e.changeLayoutMaskStatus="changeLayoutMaskStatus",e.changeLayoutAreaStatus="changeLayoutAreaStatus"}(o||(o={}));var j=new(function(){return(0,u.A)((function e(){var t=this;(0,c.A)(this,e),(0,p.A)(this,"_identifying",M),(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,r){try{var n=e.data;if(!t._msgValidator(n))return;t._readyCallBack(n,r),t._callEvent(n)}catch(e){console.error(e)}})),(0,p.A)(this,"_eventListenerHandler",(function(){})),(0,p.A)(this,"contractComponent",(function(e,r){return new D(t,{type:e,id:null==r?void 0:r.id,isContract:!0})})),(0,p.A)(this,"createComponent",(function(e){return new D(t).createComponent(e)})),(0,p.A)(this,"registerComponentCustomEvents",(function(e){var r=e.id,n=e.type,o=e.func;t._customEvents[r]||(t._customEvents[r]={}),t._customEvents[r][n]=o})),(0,p.A)(this,"_customization",{CMI:{insertBtnForToolbar:function(e){var r=e.position,n=e.btns,o=e.id,i=t.contractComponent("UdcToolBar",{id:o}),s=[];null==n||O()(n).call(n,(function(e){s.push(t.createComponent({type:"UdcButton",props:e}))})),i.insertComponent(s,{position:r})},changeLayoutMaskStatus:function(e){var r=e.status,n=e.bgColor;t.contractComponent("UdcLayoutMask").changeLayoutMaskStatus({status:r,bgColor:n})},changeLayoutAreaStatus:function(e){var r=e.hiddenArea;t.contractComponent("UdcLayoutArea").changeLayoutAreaStatus({hiddenArea:r})}}}),(0,p.A)(this,"getCustomApi",(function(){var e=L.baseInfo.tenant||"CMI",r=t._customization[e];if(r)return r;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!==M||!n[e.type]||e._nameSpaceId!==this._nameSpaceId)}},{key:"_readyCallBack",value:function(e,t){var r,o,i;null===(r=e.data)||void 0===r||r.signatureMethods,null===(o=e.data)||void 0===o||o.version,e.type!==n.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(r){t._eventListener(r,e)},window.addEventListener("message",this._eventListenerHandler)}},{key:"_callEvent",value:function(e){var t=this;if(e.type===n.callEvent){var r=e.callEvents;null==r||O()(r).call(r,(function(e){var r,n,o=e.id,i=e.type;null===(r=t._customEvents[o])||void 0===r||null===(n=r[i])||void 0===n||n.call(r)}))}}},{key:"destory",value:function(){window.removeEventListener("message",this._eventListenerHandler)}},{key:"postMessage",value:function(e){(e.type==n.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:n.callMethod,methodName:o.ready}),this._registerEventListener(e)}}])}()),N={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,r){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,r){throw Error("setUdcComponentValue ONLY work under UDC app")},setUdcComponentViewState:function(e,t,r){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,r,n){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,r){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,r){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,r){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,r){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 j},baseInfo:{tenant:null}},L=N;window.__UDC_OPEN_SDK__||(window.__UDC_OPEN_SDK__={default:N});var R=function(e,t){var r=function(e){var t=window.__UDC_OPEN_SDK__.default;return e in window.__UDC_OPEN_SDK__&&(t=window.__UDC_OPEN_SDK__[e]),t}(e);r.baseInfo=t},B="SEND",F="SUBMIT",U="AGREE",V="DRAFT_HANDLE",W="GET_FORM_DATA",$=null,K=function(){return(0,u.A)((function e(t,r,n,o){(0,c.A)(this,e),(0,p.A)(this,"commonActionKey","common"),(0,p.A)(this,"showCopyModalCb",null),(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=r,this.bpmConfigs=n||{},this.params=o||{},this.setNativeMethods(),this.init()}),[{key:"init",value:function(){var e;window.parent!==window&&window.parent.postMessage({hasListener:!0},"*"),window.addEventListener("message",f()(e=this.messageListener).call(e,this))}},{key:"setNativeMethods",value:function(){var e=this,t=this.params,r=t.validate,n=t.dynamicMapComp,o=t.bpmSubmitBtn,i=t.toExecuteLoadServices,s=(t.messageInstance,this.bpmConfigs),c=s.getDetailReq,u=s.customValidate,p=s.saveValidate,d=function(){var t=(0,l.A)((0,a.A)().mark((function t(r){var i,s;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:return i=n[o],s=function(t){return function(){var n=(0,l.A)((0,a.A)().mark((function n(o){var i,s,c,u,p,d,f;return(0,a.A)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=e.bpmConfigs.saveAfter,e.saveResponse=o,s=e.params,c=s.copyModal,u=s.lang,p=s.calcShowCopyModal,n.prev=3,(d=p(o,r))&&(f=r.submitType,e.showCopyModalCb=function(){var t,r,n,o=(null==u||null===(t=u.value)||void 0===t?void 0:m()(t).call(t,"zh"))>-1?"提交成功":"Submit Success",i=(null==u||null===(r=u.value)||void 0===r?void 0:m()(r).call(r,"zh"))>-1?"保存成功":"Save Success",s=g()(n=[B,F,U]).call(n,f)?o:i;return e.showCopyModalCb=null,new(b())((function(e){var t,r;null==c||c({lang:null==u?void 0:u.value,type:"check",showcopy:!0,copytype:(null==u||null===(t=u.value)||void 0===t?void 0:m()(t).call(t,"zh"))>-1?"申请单号":"Application No.",copymsg:d,showCancle:!1,msg:s,handleOk:(r=(0,l.A)((0,a.A)().mark((function t(){return(0,a.A)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e(!0);case 1:case"end":return t.stop()}}),t)}))),function(){return r.apply(this,arguments)})})}))}),n.next=8,null==i?void 0:i(o,r);case 8:n.next=13;break;case 10:n.prev=10,n.t0=n.catch(3),console.error("saveAfter error, error:",n.t0);case 13:E()((function(){null==t||t(o)}),0);case 14:case"end":return n.stop()}}),n,null,[[3,10]])})));return function(e){return n.apply(this,arguments)}}()},t.abrupt("return",new(b())((function(e){var t,r=s((function(t){e(t)}));i?null==i||null===(t=i.vm)||void 0===t||t.click({afterRequestService:r}):(console.log("no set bpmSubmitBtn, or bpmSubmitBtn is invalid."),r({data:{success:!0}}))})));case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),f=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(b())((function(e){r((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:r,customValidate:u,validate:f,toSave:d,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 r=this.postOptions;this.postOptions=null,this.eventData=t,this.handleMessage&&this.handleMessage(e,r)}}},{key:"handleMessage",value:(r=(0,l.A)((0,a.A)().mark((function e(t,r){var n,o,i,s,l,c,u,p,d,f,h,m,y,v,b,_,E,x;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===(n=o.bpmInfo)||void 0===n?void 0:n.actionType,console.log("messageType==:",i),console.log("submitType==:",s),console.log("actionType==:",l),W!==i){e.next=25;break}if((p=null===(c=this.actions)||void 0===c||null===(c=c[s])||void 0===c?void 0:c.formAction)||(p=null===(d=this.actions)||void 0===d||null===(d=d[this.commonActionKey])||void 0===d?void 0:d.formAction),p||(p=this.getDefaultAction(o)),!p){e.next=16;break}return e.next=13,null===(f=p)||void 0===f?void 0:f({eventData:this.eventData,nativeMethods:this.nativeMethods});case 13:if(!1!==e.sent){e.next=16;break}return e.abrupt("return");case 16:if((h=null===(u=this.actions)||void 0===u||null===(u=u[s])||void 0===u?void 0:u.postMessageData)||(h=this.postMessageData),"function"!=typeof h){e.next=22;break}return e.next=21,h({eventData:this.eventData});case 21:h=e.sent;case 22:this.postMessage(h),e.next=38;break;case 25:if("PROCESS_ACTION_SUCCESS"!==i){e.next=38;break}return b=!0,b=!g()(m=["PROCESS_SHOW","BACK",V]).call(m,s),e.next=30,null===(y=this.showCopyModalCb)||void 0===y?void 0:y.call(this);case 30:if((_=null===(v=this.actions)||void 0===v||null===(v=v[s])||void 0===v?void 0:v.successAction)||(_=null===(E=this.actions)||void 0===E||null===(E=E[this.commonActionKey])||void 0===E?void 0:E.successAction),_||(_=this.getDefaultAction(o)),!_){e.next=37;break}return e.next=36,null===(x=_)||void 0===x?void 0:x({eventData:this.eventData,originCloseFlag:b,nativeMethods:this.nativeMethods});case 36:b=e.sent;case 37:this.postMessage(null,{closeFlag:!!b});case 38:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.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,r,n,o,i,l,c,u,p,d=arguments;return(0,a.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=d.length>0&&void 0!==d[0]?d[0]:{},r=d.length>1?d[1]:void 0,console.log("postmessage formData ===:",t,r),this.postOptions=r,(null==r?void 0:r.closeFlag)?(console.log("走进判断关闭页面===="),window.parent!==window&&window.parent.postMessage({messageType:"CLOSE_WINDOW"},"*")):(i=!g()(n=["BACK"]).call(n,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,r=e.messageType,n=e.submitType;if(W===r)switch(n){case B:case F:case U:return(0,l.A)((0,a.A)().mark((function r(){var n,o,i,s,l,c;return(0,a.A)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t.nativeMethods,o=n.validate,i=n.toSave,s=n.getDetail,r.next=3,o(e);case 3:if(!r.sent){r.next=16;break}return r.next=7,i(e);case 7:if(null==(c=r.sent)||null===(l=c.data)||void 0===l||!l.success){r.next=13;break}return s(),r.abrupt("return",!0);case 13:case 16:return r.abrupt("return",!1);case 14:r.next=17;break;case 17:case"end":return r.stop()}}),r)})));case"NOTICE":case"GIVE":case V:case"MULTI_COOPERATE":return(0,l.A)((0,a.A)().mark((function r(){var n,o,i,s,l,c,u;return(0,a.A)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o=null==e||null===(n=e.bpmInfo)||void 0===n?void 0:n.actionType,i=t.nativeMethods,s=i.toSave,l=i.getDetail,o){r.next=14;break}return r.next=5,s(e);case 5:if(null==(u=r.sent)||null===(c=u.data)||void 0===c||!c.success){r.next=11;break}return l(),r.abrupt("return",!0);case 11:return r.abrupt("return",!1);case 12:r.next=15;break;case 14:return r.abrupt("return",!0);case 15:case"end":return r.stop()}}),r)})))}}},{key:"on",value:function(e,t){var r=this.actions[e]||(this.actions[e]=[]);S()(r).call(r,(function(e){return e===t}))||null==r||r.push(t)}},{key:"remove",value:function(e,t){var r=this.actions[e]||(this.actions[e]=[]),n=A()(r).call(r,(function(e){return e===t}));-1!==n&&(null==r||P()(r).call(r,n,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(b())((function(e){var r,n;n=function(r){console.log("instance===:",r),t.sdkInstance=r,e(r)},"iframe"===(r={mode:"iframe",tenant:"CMI"}).mode?(R(r.version,{tenant:r.tenant}),N.getUdcSdkForIframe().ready(n)):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 r;console.log("切换致远弹框===:",!0),null==t||null===(r=t.getCustomApi())||void 0===r||r.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(r){var n;console.log("insert btns==:",e,t),null==r||null===(n=r.getCustomApi())||void 0===n||n.insertBtnForToolbar({position:t,btns:e})}))}},{key:"destroy",value:function(){window.removeEventListener("message",this.messageListener),this.sdkInstance=null}}]);var e,t,r}();function q(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return $=(0,i.A)(K,t)}},71143:(e,t,r)=>{r.d(t,{A:()=>d});var n=r(64007),o=r.n(n),i=(r(2892),r(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,r=(0,i.useAttrs)(),n=(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 d(){var e,r;null===(e=messageInstance)||void 0===e||e.text(o()(r=t.lang).call(r,"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)(r),{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)(n.value),1),"1"==t.config.hintFlag?((0,i.openBlock)(),(0,i.createElementBlock)("span",{key:1,class:"label-tip",onClick:d},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)}}};r(38709);const d=(0,r(66262).A)(p,[["__scopeId","data-v-d2c369a2"]])},85845:(e,t,r)=>{r.d(t,{D:()=>i});var n=r(75286),o=r(24691);function i(e){var t=e.showTooltip,r=e.offset,i=e.displayValue,s=e.calcFn,a=(e.config,(0,n.ref)(!1)),l=(0,n.ref)(!1),c=(0,n.ref)(null),u=(0,n.ref)(!1),p=(0,n.ref)(null),d=(0,n.ref)(null);function f(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=f(p.value),t=(0,o.fW)(d.value,0-r.value);u.value=e<t,h=(0,n.watch)((function(){return i.value}),(function(i){(0,n.nextTick)((function(){t=(0,o.fW)(d.value,0-r.value),u.value=e<t}))})),m=function(){e=f(p.value),u.value=e<t},window.addEventListener("resize",m)}}),g=(0,n.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,n.computed)((function(){var e={onFocus:function(){if(a.value=!0,t.value){for(var e,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];c.value=null==n||null===(e=n[0])||void 0===e?void 0:e.target}},onBlur:function(){a.value=!1,t.value&&(l.value||(c.value=null))}};return e}));return(0,n.onMounted)((function(){(0,n.watch)(t,(function(e){e&&(null==y||y.calc())}),{immediate:!0})})),(0,n.onUnmounted)((function(){null==y||y.clear()})),{isFocus:a,isEnter:l,generateTooltipWrap:function(e,r){var o=r||{},s=o.wrapAttrs,a=void 0===s?{}:s,l=o.maintain,f=void 0!==l&&l,h=(0,n.defineComponent)(e);return f&&!t.value?(0,n.createVNode)(h,null,null):(0,n.createVNode)("div",(0,n.mergeProps)({class:"resolver-calc-contrainer"},a),[(0,n.createVNode)("span",{ref:function(e){return d.value=e},class:"resolver-calc-span"},[i.value]),u.value?(0,n.createVNode)((0,n.resolveComponent)("el-tooltip"),{placement:"top",visible:u.value&&!!c.value,content:i.value,virtualTriggering:!0,virtualRef:c.value},null):null,(0,n.createVNode)("div",(0,n.mergeProps)({class:"resolver-calc-wrap"},g.value,{ref:function(e){return p.value=e}}),[(0,n.createVNode)(h,v.value,null)])])}}}},44026:(e,t,r)=>{r.d(t,{bt:()=>K});var n=r(37891),o=r(53811),i=r(34963),s=(r(48598),r(44114),r(27495),r(71761),r(73363)),a=r.n(s),l=r(64007),c=r.n(l),u=r(86226),p=r.n(u),d=r(48079),f=r.n(d),h=r(14166),m=r.n(h),y=r(50697),g=r.n(y),v=r(71426),b=r.n(v),_=r(56255),E=r.n(_),x=r(61240),S=r.n(x),w=r(36586),A=r.n(w),T=r(12935),P=r(76693),C=r(19022),O=r(157),I=r(17427),k=r(52644),D=r(35169);function M(e){return j.apply(this,arguments)}function j(){return(j=(0,i.A)((0,n.A)().mark((function e(t){var r,o,i,s,a,l,c,u,p,d,f,h,m,y,v,_,E;return(0,n.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(r=t.serviceList,o=void 0===r?[]:r,i=t.requestTraceId,s=t.axiosInstance,a=t.dialogReq,l=t.dynamicMapComp,c=t.rootValue,u=t.dynamicHireRelat,p=t.messageCb,d=t.compConfig,f=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++)N(o[E],{dynamicMapComp:l,requestTraceId:i,dialogReq:a,mixinServiceConfig:_,rootValue:c,dynamicMapCompKeys:v,dynamicHireRelat:u,axiosInstance:s,messageCb:p,compConfig:d,messageInstance:f,lang:h,beforeRequestService:m,afterRequestService:y});case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function N(e,t){return L.apply(this,arguments)}function L(){return L=(0,i.A)((0,n.A)().mark((function e(t,r){var s,a,l,c,u,p,d,f,h,m,y,g,v,b,_,x;return(0,n.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:x=function(){return x=(0,i.A)((0,n.A)().mark((function e(){var r,b,_,x,w,P,C,k,D,M,j,N,L,U,V,W,$,K,q,z,H,G,Q,X,Y,J,Z,ee,te,re,ne,oe,ie=arguments;return(0,n.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,w=(0,I.Ho)({extendAttr:t.extendAttr}),P=null,C=null,((k=null==h?void 0:h.beforeRequestService)||g)&&(P=function(){var e=(0,i.A)((0,n.A)().mark((function e(){var t,r,o,i,s=arguments;return(0,n.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=!0,r=s.length,o=new Array(r),i=0;i<r;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(!k){e.next=12;break}return e.abrupt("return",null==k?void 0:k.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)}}()),((D=null==h?void 0:h.afterRequestService)||v)&&(C=function(){var e=(0,i.A)((0,n.A)().mark((function e(){var t,r,o,i=arguments;return(0,n.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,r=new Array(t),o=0;o<t;o++)r[o]=i[o];return e.next=3,null==v?void 0:v.apply(void 0,r);case 3:return e.next=5,null==D?void 0:D.apply(void 0,r);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=F(t.outParamMappingList,{dynamicMapComp:s,dynamicMapCompKeys:u,dynamicHireRelat:p}),null!==(M=x)&&void 0!==M&&M.vm&&(b&&((0,I.Ts)(x,"serviceCurrentChangeLoad",!0),x.vm.page.pageNum=1,E()((function(){(0,I.Ts)(x,"serviceCurrentChangeLoad",!1)}),200)),(0,T.b0)(null===(j=x.vm.page)||void 0===j?void 0:j.pageNum)||(0,T.kZ)(null===(N=x.vm.page)||void 0===N?void 0:N.pageNum)||(0,I.oY)(_,t.pageNum||"pageNum",null===(V=x.vm.page)||void 0===V?void 0:V.pageNum),(0,T.b0)(null===(L=x.vm.page)||void 0===L?void 0:L.pageSize)||(0,T.kZ)(null===(U=x.vm.page)||void 0===U?void 0:U.pageSize)||(0,I.oY)(_,t.pageSize||"pageSize",null===(W=x.vm.page)||void 0===W?void 0:W.pageSize)),_=(0,o.A)({},_)),$=t.serviceCode,K=t.httpMethod||"post",q={aid_language:y,requestTraceId:a,pmHandleBusinessIdentity:{busiIdentityId:t.busiIdentityId,pageMetaId:t.pageMetaId,tenantId:t.tenantId,mainServiceCode:null==l?void 0:l.mainServiceCode}},(null==w?void 0:w.notDefaultParmas)&&(q={}),z=(0,I.Vv)(q,_),q=z,H=!0,P&&(H=P({dynamicMapComp:s,requestTraceId:a,mixinServiceConfig:l,rootValue:c,dynamicHireRelat:p,compConfig:h,service:t,reqData:q})),e.next=22,H;case 22:if(!1!==e.sent){e.next=25;break}return e.abrupt("return");case 25:return G={url:$,method:K,data:q},"get"===K.toLocaleLowerCase()&&(G.params=q,delete G.data),e.next=29,d&&d(G);case 29:if(Q=e.sent,!C){e.next=33;break}return e.next=33,C(Q,{dynamicMapComp:s,requestTraceId:a,mixinServiceConfig:l,rootValue:c,dynamicHireRelat:p,compConfig:h,service:t,reqData:q});case 33:if(X="get"===K.toLocaleLowerCase()||"1"==t.transactionType||(null==w?void 0:w.noSuccessIip),Y={messageCb:f,service:t,compConfig:h,noSuccessIip:X},w.resultCodeKey&&(Y.resultCodeKey=w.resultCodeKey),(0,O.N)(null==Q?void 0:Q.data,m,Y)){e.next=40;break}return e.next=39,S().reject();case 39:return e.abrupt("return");case 40:B(t.outParamMappingList,{dynamicMapComp:s,dynamicMapCompKeys:u,dynamicHireRelat:p,outResult:Q.data}),null!==(r=x)&&void 0!==r&&r.vm&&(ee=null===(J=Q.data)||void 0===J?void 0:J.result,te=t.pageTotalCount,re=/^_deep:(.+)$/,(ne=null===(Z=t.pageTotalCount)||void 0===Z?void 0:Z.match(re))&&(ee=Q.data,te=ne[1]),oe=A()((0,I.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=r.dynamicMapComp,a=r.requestTraceId,r.dialogReq,l=r.mixinServiceConfig,c=r.rootValue,u=r.dynamicMapCompKeys,p=r.dynamicHireRelat,d=r.axiosInstance,f=r.messageCb,h=r.compConfig,m=r.messageInstance,y=r.lang,g=r.beforeRequestService,v=r.afterRequestService,"1"==t.transactionType&&(b=F(t.outParamMappingList,{dynamicMapComp:s,dynamicMapCompKeys:u,dynamicHireRelat:p}))&&((0,I.Ts)(b,"serviceSizeChange",(function(e,t,r){_()})),(0,I.Ts)(b,"serviceCurrentChange",(function(e,t,r){_(!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,r=t.emptyUpdate,n=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,d=(0,C.qK)(o,l,i);d.length>1&&console.error("search arg muti",t,d);var f,h=d[0],m=null==n||null===(s=n[h])||void 0===s?void 0:s.refValue;return(((0,T.b0)(m)||(0,T.kZ)(m))&&r||!(0,T.b0)(m)&&!(0,T.kZ)(m))&&(f=-1!==(null==p?void 0:c()(p).call(p,"->"))?(null==p?void 0:p.split("->"))||[]:(null==p?void 0:p.split("."))||[],(0,I.oY)(e,f,(0,T.b0)(m)||(0,T.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,r=t.dynamicMapComp,n=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,d=e.primaryKeys,h=void 0===d?[]:d,y=(0,C.qK)(n,c,o);y.length>1&&console.error("search arg muti",e,y);var g=y[0],v=r[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,T.cy)(_)?(0,T.cy)(v.refValue)&&(0,T.cy)(_)&&(_=(0,I.q2)(v.refValue,_,(function(e,t){var r;return!(!h||!h.length)&&(null===(r=f()(h).call(h,(function(r){return((0,T.sw)(e[r])||(0,T.sw)(t[r]))&&e[r]==t[r]})))||void 0===r?void 0:m()(r).call(r,(function(e){return e})))}))):_=(0,T.cy)(v.refValue)?v.refValue:[]),v.refValue=_}}))}function F(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,r=t.dynamicMapComp,n=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,C.qK)(n,l,o);c.length>1&&console.error("search arg muti",s,c);var u=c[0];if(u){var p=r[u];if("CustomComponentTable"===p.metaType||"CustomComponentTableH5"===p.metaType)return p}}}function U(e){var t,r=e.beforeOpenDialog,s=e.afterOpenDialog,l=e.middleOpenDialog,c=e.components,u=e.rootValue,d=e.polyfillConfigs,h=e.pagePopupMap,m=e.axiosInstance,y=e.dynamicMapComp,v=e.dynamicHireRelat,b=e.lang,_=e.buttonActions,E=e.openChildDialog,x=e.appContext,S=e.compConfig,w=(0,I.Ho)({extendAttr:h.extendAttr}),A=h.popupBusiIdentityId,T=g()(y),P=R(h.inParamMappingList||[],{dynamicMapComp:y,dynamicMapCompKeys:T,dynamicHireRelat:v}),C="1"==(null==h?void 0:h.objOrList),O=(null==h||null===(t=h.outParamMappingList)||void 0===t?void 0:f()(t).call(t,(function(e){var t=e.orignParam?e.orignParam.split("->"):[],r=e.orignParam?"1"!=(null==w?void 0:w.bindFormData)||C?t[t.length-1]:t.join("."):"";return(0,o.A)((0,o.A)({},e),{},{orignParam:r})})))||[],k={},M={};if(C){var j,N=[];k=null===(j=O)||void 0===j?void 0:a()(j).call(j,(function(e,t){var r=t.orignParam,n=t.destParam,o=t.primaryKeyFlag,i=void 0===o?"":o,s=n?n.split("->"):[];return e[n?s[s.length-1]:""]=r,"1"==i&&N.push(r),e}),{});var L=F(O=[{orignParam:"",destParam:h.parentTable||"",primaryKeys:N,isList:!0}],{dynamicMapComp:y,dynamicMapCompKeys:T,dynamicHireRelat:v});M.selections=(null==L?void 0:L.refValue)||[],M.primaryKeys=N}var U={},V={},W=null,$={};h.outDisplayTrigger&&($[h.outDisplayTrigger]=function(e){return{onClick:function(){var e,t=U.tableSelectedInfo;C&&(t=null===(e=U.tableSelectedInfo)||void 0===e?void 0:f()(e).call(e,(function(e){var t,r=(0,o.A)({},e);return p()(t=g()(k)).call(t,(function(t){k[t]&&(r[t]=e[k[t]])})),r}))),"1"!=(null==w?void 0:w.bindFormData)||C||(t=V);var r=null==S?void 0:S.middleOpenDialog,s=l;(r||s)&&(l=function(){var e=(0,i.A)((0,n.A)().mark((function e(t){var i,a;return(0,n.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==r?void 0:r((0,o.A)((0,o.A)({},t),{},{outputParams:a})));case 7:return e.abrupt("return",null==r?void 0:r(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(O,{dynamicMapComp:y,dynamicMapCompKeys:T,dynamicHireRelat:v,outResult:e}),null===(t=W)||void 0===t||t(),H(e)}l&&(a=l({dynamicMapComp:y,rootValue:u,dynamicHireRelat:v,compConfig:S,pagePopupMap:h,inputParams:P,outputParams:t})||a),(0,I.yL)(a)?a.then((function(e){c(e)})):c(a)}}}),h.closedTrigger&&($[h.closedTrigger]=function(e){return{onClick:function(){var e;null===(e=W)||void 0===e||e(),H()}}});var K=null==S?void 0:S.beforeOpenDialog,q=r;r=function(){var e=(0,i.A)((0,n.A)().mark((function e(){var t,r,o,i,s,a=arguments;return(0,n.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(null===D.dW||void 0===D.dW||null===(t=D.dW.changeSlide)||void 0===t||t.call(D.dW,!1),r=!0,o=a.length,i=new Array(o),s=0;s<o;s++)i[s]=a[s];return q&&(r=null==q?void 0:q.apply(void 0,i)),e.next=6,r;case 6:if(!1!==e.sent){e.next=9;break}return e.abrupt("return",!1);case 9:if(!K){e.next=13;break}return e.abrupt("return",null==K?void 0:K.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==S?void 0:S.afterOpenDialog,r=s;s=function(){var e=(0,i.A)((0,n.A)().mark((function e(){var o,i,s,a,l=arguments;return(0,n.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(null===D.dW||void 0===D.dW||null===(o=D.dW.changeSlide)||void 0===o||o.call(D.dW,!0),i=l.length,s=new Array(i),a=0;a<i;a++)s[a]=l[a];null==r||r.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:S,pagePopupMap:h,inputParams:P,outputParams:e})}function G(){W=E({buttonActions:_,dialogProps:(0,o.A)((0,o.A)({},w||{}),{},{beforeClose:function(){H()}}),parentRootValue:u,parentDynamicMapComp:y,selectionsObj:M,busiIdentityId:A,axiosInstance:m,lang:b,loadEvnetsReq:P,initData:P,components:c,parentSelects:null==S?void 0:S._selects,polyfillConfigs:(0,o.A)((0,o.A)({},$),d||{}),rootStoreChange:function(e){U=e},rootDataChange:function(e){V=e}},x)}r&&(z=r({dynamicMapComp:y,rootValue:u,dynamicHireRelat:v,compConfig:S,pagePopupMap:h,inputParams:P})),null!=z?(0,I.yL)(z)?z.then((function(e){!1!==e&&G()})):z&&G():G()}function V(e,t){return W.apply(this,arguments)}function W(){return W=(0,i.A)((0,n.A)().mark((function e(t,r){var s,a,l,u,p,d,f,h,m,y,g,v,b,_,E,x,w,A,T,C,I,D,M,j,N,L;return(0,n.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=r.beforeDataValidRequestService,u=r.afterDataValidRequestService,p=r.confirmInstance,d=r.dynamicMapComp,f=r.requestTraceId,h=r.compConfig,m=r.mixinServiceConfig,y=r.rootValue,g=r.builtPolyfillReq,r.axiosInstance,v=r.lang,b=y||{},_=P.dL,((w=null==h?void 0:h.beforeDataValidRequestService)||l)&&(E=function(){var e=(0,i.A)((0,n.A)().mark((function e(){var t,r,o,i,s=arguments;return(0,n.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=!0,r=s.length,o=new Array(r),i=0;i<r;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(!w){e.next=12;break}return e.abrupt("return",null==w?void 0:w.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)}}()),((A=null==h?void 0:h.afterDataValidRequestService)||u)&&(x=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];null==u||u.apply(void 0,t),null==A||A.apply(void 0,t)}),T=!0,E&&(T=E({dynamicMapComp:d,requestTraceId:f,mixinServiceConfig:m,rootValue:y,compConfig:h,service:t,reqData:b})),e.next=11,T;case 11:if(!1!==e.sent){e.next=14;break}return e.abrupt("return");case 14:return e.next=16,(0,k.ZW)(_,(0,o.A)((0,o.A)((0,o.A)({aid_language:v,requestTraceId:f,busiIdentityId:t.busiIdentityId},b),g||{}),{},{pmHandleBusinessIdentity:{busiIdentityId:t.busiIdentityId,pageMetaId:t.pageMetaId,tenantId:t.tenantId,mainServiceCode:null==m?void 0:m.mainServiceCode}}),{method:"post"});case 16:if(C=e.sent,I=C.data||{},null!==(s=C.data)&&void 0!==s&&s.baseResponse&&(I=null===(D=C.data)||void 0===D?void 0:D.baseResponse),M=I.resultCode,j=(null===(a=I)||void 0===a?void 0:a.resultMessage)||"",N="",L=!1,O.O.SUCCESS===M){e.next=40;break}e.t0=M,e.next=e.t0===O.O.WARNING?27:e.t0===O.O.ERROR?30:e.t0===O.O.INFO?33:e.t0===O.O.OTHER?35:37;break;case 27:return N="warning",L=!0,e.abrupt("break",39);case 30:return N="error",L=!1,e.abrupt("break",39);case 33:return N="info",e.abrupt("break",39);case 35:case 37:return N="error",e.abrupt("break",39);case 39:return e.abrupt("return",new(S())((function(e,t){p(j,(null==v?void 0:c()(v).call(v,"zh"))>-1?"提示":"Hint",{type:N,showCancelButton:L}).then((function(){L?(x&&x(C,{valid:!0}),e(!0)):(x&&x(C,{valid:!1}),e(!1))})).catch((function(){x&&x(C,{valid:!1}),t(!1)}))})));case 40:return x&&x(C,{valid:!0}),e.abrupt("return",!0);case 42:case"end":return e.stop()}}),e)}))),W.apply(this,arguments)}function $(e){if("1"==(null==e?void 0:e.closedType)){var t=window.top;null==t||t.close()}else{var r;null===(r=window)||void 0===r||null===(r=r.history)||void 0===r||r.back()}}function K(){return q.apply(this,arguments)}function q(){return q=(0,i.A)((0,n.A)().mark((function e(){var t,r,o,i,s,a,l,c,u,p,d,f,h,m,y,g,v,_,E,x,S,w,A,T,P,C,O,I,k,D,j,N,L,R,B,F=arguments;return(0,n.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=(r=F.length>0&&void 0!==F[0]?F[0]:{}).beforeDataValidRequestService,i=r.afterDataValidRequestService,s=r.beforeRequestService,a=r.afterRequestService,l=r.beforeOpenDialog,c=r.afterOpenDialog,u=r.middleOpenDialog,p=r.components,d=r.props,f=r.requestTraceId,h=r.axiosInstance,m=r.polyfillConfigs,y=r.buttonActions,g=r.rootValue,v=r.confirmInstance,_=r.dialogReq,E=r.dynamicMapComp,x=r.messageInstance,S=r.openChildDialog,w=r.messageCb,A=r.lang,T=r.builtPolyfillReq,P=r.appContext,C=d.config.lcpPageServiceMapVOList||[],O=b()(C).call(C,(function(e){return"1"==e.serviceType})),null==(I=(null===(t=d.config)||void 0===t?void 0:t.lcpPageRuleVOList)||[])||!I.length){e.next=11;break}return k=I[0],e.next=8,V(k,{dynamicMapComp:E,requestTraceId:f,rootValue:g,axiosInstance:h,mixinServiceConfig:O,compConfig:d.config,confirmInstance:v,builtPolyfillReq:T,beforeDataValidRequestService:o,afterDataValidRequestService:i,lang:A});case 8:if(e.sent){e.next=11;break}return e.abrupt("return");case 11:null!=C&&C.length&&(j=null===(D=d.config)||void 0===D?void 0:D.dynamicHireRelat,M({serviceList:C,axiosInstance:h,requestTraceId:f,rootValue:g,dynamicMapComp:E,dynamicHireRelat:j,messageInstance:x,messageCb:w,compConfig:d.config,dialogReq:_,lang:A,beforeRequestService:s,afterRequestService:a})),(N=d.config.lcpPagePopupMapVO)&&(R=null===(L=d.config)||void 0===L?void 0:L.dynamicHireRelat,U({beforeOpenDialog:l,afterOpenDialog:c,middleOpenDialog:u,components:p,rootValue:g,polyfillConfigs:m,pagePopupMap:N,axiosInstance:h,dynamicMapComp:E,dynamicHireRelat:R,appContext:P,lang:A,messageCb:w,buttonActions:y,openChildDialog:S,compConfig:d.config})),(B=d.config.lcpPageClosedMapVO)&&$(B);case 16:case"end":return e.stop()}}),e)}))),q.apply(this,arguments)}},7365:(e,t,r)=>{r.d(t,{Mn:()=>x,QT:()=>w,o7:()=>A});var n=r(37891),o=r(53811),i=r(34963),s=r(71426),a=r.n(s),l=r(73363),c=r.n(l),u=r(66615),p=r.n(u),d=r(86226),f=r.n(d),h=r(50697),m=r.n(h),y=(r(11393),r(56255),r(96319)),g=r.n(y),v=r(61240),b=r.n(v),_=(r(9318),r(19022),r(17427)),E=r(157);function x(){return S.apply(this,arguments)}function S(){return S=(0,i.A)((0,n.A)().mark((function e(){var t,r,i,s,l,c,u,p,d,f,h,m,y,v,x,S,w,A,T,P,C,O,I,k,D,M,j,N,L=arguments;return(0,n.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=L.length>0&&void 0!==L[0]?L[0]:[],i=(r=L.length>1?L[1]:void 0).alongLoad,s=r.requestTraceId,l=r.businessIdentityReqData,c=void 0===l?{}:l,u=r.axiosInstance,p=r.messageInstance,d=r.reqData,f=r.respCb,h=r.loadEventsBefore,m=r.notLoadCb,i||null==d||!d.notLoad){e.next=5;break}return m&&m(),e.abrupt("return");case 5:if(delete(0,o.A)({},d||{}).notLoad,y=g()(t).call(t,(function(e){return"1"==e.eventType})),v=a()(t).call(t,(function(e){return"1"==e.serviceType})),y&&y.length){e.next=12;break}return m&&m(),e.abrupt("return");case 12:x=0;case 13:if(!(x<y.length)){e.next=52;break}if(C=y[x],O=C.serviceCode,I=C.httpMethod||"post",k=(0,o.A)({requestTraceId:s,pmHandleBusinessIdentity:(0,o.A)({busiIdentityId:C.busiIdentityId,pageMetaId:C.pageMetaId,tenantId:C.tenantId,mainServiceCode:null==v?void 0:v.mainServiceCode},c)},d||{}),D={url:O,method:I,data:k},"get"===I.toLocaleLowerCase()&&(D.params=k,delete D.data),!h||"function"!=typeof h){e.next=36;break}if(M=!0,h&&(M=h({reqConfig:D})),null==M){e.next=36;break}if(!(0,_.yL)(M)){e.next=33;break}return e.next=27,M;case 27:if(!1!==(M=e.sent)){e.next=30;break}return e.abrupt("return");case 30:(0,_.Qd)(M)&&(D=M),e.next=36;break;case 33:if(!1!==M){e.next=36;break}return console.warn("请求中断"),e.abrupt("return");case 36:return null===(S=window)||void 0===S||null===(S=S.performance)||void 0===S||S.mark("get_load_detal_start"),e.next=39,u.value&&u.value(D);case 39:if(j=e.sent,null===(w=window)||void 0===w||null===(w=w.performance)||void 0===w||w.mark("get_load_detal_end"),console.log("get_load_detal",null===(A=window)||void 0===A||null===(A=A.performance)||void 0===A?void 0:A.measure("get_load_detal","get_load_detal_start","get_load_detal_end")),!(0,E.N)(j.data,p,{noSuccessIip:!0})){e.next=45;break}return f&&f(null==j||null===(N=j.data)||void 0===N?void 0:N.result),e.abrupt("return");case 45:return f&&f({}),null==p||null===(T=p.value)||void 0===T||T.error((null==j||null===(P=j.data)||void 0===P?void 0:P.resultMessage)||""),e.next=49,b().reject();case 49:x++,e.next=13;break;case 52:case"end":return e.stop()}}),e)}))),S.apply(this,arguments)}function w(e,t){var r,n=null==e||null===(r=e.pmPageMetaList)||void 0===r?void 0:a()(r).call(r,(function(e){return"PC-root-panel"===e.metaType||"H5-root-panel"===e.metaType}));if(n&&(e.pmPageMetaList=n.pmPageMetaList,delete n.pmPageMetaList,e.rootOptionComp=n),t){var o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e;return t&&(metaCodes=t.split("->"),r=c()(metaCodes).call(metaCodes,(function(e,t){var r;return e&&e.pmPageMetaList&&p()(e.pmPageMetaList)?a()(r=e.pmPageMetaList).call(r,(function(e){return e.metaCode===t})):e}),e)),r}(e,t);o&&(e.pmPageMetaList=[o])}return e}function A(e){var t;f()(t=m()(e)).call(t,(function(t){(0,_.$3)(e[t],"eventInit")&&(e[t].eventInit=!1)}))}},84667:(e,t,r)=>{r.d(t,{W:()=>h,A:()=>l});var n=r(75286),o=r(56255),i=r.n(o),s=r(86226),a=r.n(s);r(2892),r(42710);const l={inheritAttrs:!1,name:"LazyLoadComponent",emits:["beforeInit","init","before-enter","before-leave","after-enter","after-leave"],props:{config:Object,timeout:{type:Number},tagName:{type:String,default:""},viewport:{type:"undefined"!=typeof window?window.HTMLElement:Object,default:function(){return null}},threshold:{type:String,default:"0px"},direction:{type:String,default:"vertical"},maxWaitingTime:{type:Number,default:50}},setup:function(e,t){var r=t.slots,o=t.emit,s=(t.attrs,Math.random()),l=(0,n.ref)(null),c=null,u=(0,n.reactive)({isInit:!1,timer:null,io:null,loading:!1});function p(e){null==e||a()(e).call(e,(function(e){var t;(e.isIntersecting||e.intersectionRatio)&&(d(),null===(t=c)||void 0===t||t.unobserve(l.value))}))}function d(){var t;o("beforeInit"),u.loading=!0,t=function(){u.isInit=!0,o("init")},i()((function(){u.isInit||t()}),e.maxWaitingTime),(window.requestAnimationFrame||function(e){return i()(e,1e3/60)})(t)}function f(t){t&&(c&&l.value&&c.unobserve(l.value),l.value=t,u.isInit||function(){if(!e.timeout){var t;switch(e.direction){case"vertical":t="".concat(e.threshold," 0px");break;case"horizontal":t="0px ".concat(e.threshold)}try{(c=new window.IntersectionObserver(p,{rootMargin:t,root:e.viewport,threshold:[0,Number.MIN_VALUE,.01,.25,.5,.75,1]})).observe(l.value)}catch(e){d()}}}())}return e.timeout&&i()((function(){d()}),e.timeout),(0,n.onBeforeUnmount)((function(){var t;c&&(console.log("props.config=:",e.config),null===(t=c)||void 0===t||t.disconnect())})),function(){return(0,n.createVNode)(n.Fragment,null,[u.isInit?null==r?void 0:r.default(u.loading):(0,n.createVNode)("div",{style:"width: 100%",key:s,ref:f},[null!=r&&r.skeleton?null==r?void 0:r.skeleton():null])])}}};var c=r(29544),u=r.n(c),p=r(8628),d=r.n(p);const f=u()({name:"LazyLoadSkeleton"},{__name:"LazyLoadSkeleton",props:{type:{type:String,default:"text",validator:function(e){var t;return d()(t=["text","avatar","image","button"]).call(t,e)}},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:null},animated:{type:Boolean,default:!0},round:{type:Boolean,default:!1}},setup:function(e){var t=e,r=(0,n.computed)((function(){var e={};return t.width&&(e.width=isNaN(t.width)?t.width:"".concat(t.width,"px")),t.height&&(e.height=isNaN(t.height)?t.height:"".concat(t.height,"px")),t.round&&(e.borderRadius="50%"),e}));return function(t,o){return(0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(["skeleton-item","skeleton-".concat(e.type),e.animated&&"skeleton-animated"]),style:(0,n.normalizeStyle)(r.value)},[(0,n.renderSlot)(t.$slots,"default")],6)}}});r(87128);const h=(0,r(66262).A)(f,[["__scopeId","data-v-5517e618"]])},20075:(e,t,r)=>{r.r(t),r.d(t,{default:()=>Va});var n,o,i,s,a,l,c,u,p,d,f,h,m,y,g,v=r(37891),b=r(34963),_=r(53474),E=r(53811),x=r(49859),S=r(75286),w=(r(76918),r(23288),r(2892),r(26099),r(27495),r(90906),r(38781),r(25440),r(36586)),A=r.n(w),T=r(73363),P=r.n(T),C=r(50697),O=r.n(C),I=r(11393),k=r.n(I),D=r(66615),M=r.n(D),j=r(48079),N=r.n(j),L=r(18979),R=r.n(L),B=r(129),F=r.n(B),U=r(82895),V=r.n(U),W=r(96319),$=r.n(W),K=r(71426),q=r.n(K),z=r(31721),H=r.n(z),G=r(14166),Q=r.n(G),X=r(8628),Y=r.n(X),J=r(74707),Z=r.n(J),ee=r(86226),te=r.n(ee),re=r(64007),ne=r.n(re),oe=r(84061),ie=r(66825),se=["data-prefix"],ae={ref:"hiddenColumns",class:"hidden-columns"},le=r(12223),ce=!1;function ue(){if(!ce){ce=!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),r=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(h=/\b(iPhone|iP[ao]d)/.exec(e),m=/\b(iP[ao]d)/.exec(e),d=/Android/i.exec(e),y=/FBAN\/\w+;/i.exec(e),g=/Mobile/i.exec(e),f=!!/Win64/.exec(e),t){(n=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN)&&document&&document.documentMode&&(n=document.documentMode);var v=/(?:Trident\/(\d+.\d+))/.exec(e);l=v?parseFloat(v[1])+4:n,o=t[2]?parseFloat(t[2]):NaN,i=t[3]?parseFloat(t[3]):NaN,(s=t[4]?parseFloat(t[4]):NaN)?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),a=t&&t[1]?parseFloat(t[1]):NaN):a=NaN}else n=o=i=a=s=NaN;if(r){if(r[1]){var b=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);c=!b||parseFloat(b[1].replace("_","."))}else c=!1;u=!!r[2],p=!!r[3]}else c=u=p=!1}}var pe,de={ie:function(){return ue()||n},ieCompatibilityMode:function(){return ue()||l>n},ie64:function(){return de.ie()&&f},firefox:function(){return ue()||o},opera:function(){return ue()||i},webkit:function(){return ue()||s},safari:function(){return de.webkit()},chrome:function(){return ue()||a},windows:function(){return ue()||u},osx:function(){return ue()||c},linux:function(){return ue()||p},iphone:function(){return ue()||h},mobile:function(){return ue()||h||m||d||g},nativeApp:function(){return ue()||y},android:function(){return ue()||d},ipad:function(){return ue()||m}},fe=de,he=!!(typeof window<"u"&&window.document&&window.document.createElement),me=he;he&&!window.addEventListener&&window.attachEvent,he&&window.screen;me&&(pe=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""));function ye(e){var t=0,r=0,n=0,o=0;return"detail"in e&&(r=e.detail),"wheelDelta"in e&&(r=-e.wheelDelta/120),"wheelDeltaY"in e&&(r=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=r,r=0),n=10*t,o=10*r,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||o)&&e.deltaMode&&(1==e.deltaMode?(n*=40,o*=40):(n*=800,o*=800)),n&&!t&&(t=n<1?-1:1),o&&!r&&(r=o<1?-1:1),{spinX:t,spinY:r,pixelX:n,pixelY:o}}ye.getEventType=function(){return fe.firefox()?"DOMMouseScroll":function(e,t){if(!me||t&&!("addEventListener"in document))return!1;var r="on"+e,n=r in document;if(!n){var o=document.createElement("div");o.setAttribute(r,"return;"),n="function"==typeof o[r]}return!n&&pe&&"wheel"===e&&(n=document.implementation.hasFeature("Events.wheel","3.0")),n}("wheel")?"wheel":"mousewheel"};var ge=ye;const ve={beforeMount(e,t){!function(e,t){if(e&&e.addEventListener){const r=function(e){const r=ge(e);t&&Reflect.apply(t,this,[e,r])};e.addEventListener("wheel",r,{passive:!0})}}(e,t.value)}};var be=r(76172),_e=r(97786);const Ee={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 xe=r(22720);const Se=Symbol("scrollbarContextKey"),we=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var o=e[t];n[o[0]]=o[1]}return n},Ae=()=>{},Te=(Object.assign,Object.prototype.hasOwnProperty),Pe=(e,t)=>Te.call(e,t),Ce=Array.isArray,Oe=e=>"function"==typeof e,Ie=e=>"string"==typeof e,ke=e=>null!==e&&"object"==typeof e,De=(Object.prototype.toString,e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))}),Me=/-(\w)/g,je=(De((e=>e.replace(Me,((e,t)=>t?t.toUpperCase():"")))),/\B([A-Z])/g),Ne=(De((e=>e.replace(je,"-$1").toLowerCase())),De((e=>e.charAt(0).toUpperCase()+e.slice(1))));De((e=>e?`on${Ne(e)}`:""));const Le="__epPropKey",Re=(e,t)=>{if(!ke(e)||ke(r=e)&&r[Le])return e;var r;const{values:n,required:o,default:i,type:s,validator:a}=e,l=n||a?r=>{let o=!1,s=[];if(n&&(s=Array.from(n),Pe(e,"default")&&s.push(i),o||(o=s.includes(r))),a&&(o||(o=a(r))),!o&&s.length>0){const e=[...new Set(s)].map((e=>JSON.stringify(e))).join(", ");(0,S.warn)(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${e}], got value ${JSON.stringify(r)}.`)}return o}:void 0,c={type:s,required:!!o,validator:l,[Le]:!0};return Pe(e,"default")&&(c.default=i),c},Be=e=>we(Object.entries(e).map((([e,t])=>[e,Re(t,e)]))),Fe=Be({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean});var Ue=(e,t)=>{const r=e.__vccOpts||e;for(const[e,n]of t)r[e]=n;return r};const Ve="el",We=(e,t,r,n,o)=>{let i=`${e}-${t}`;return r&&(i+=`-${r}`),n&&(i+=`__${n}`),o&&(i+=`--${o}`),i},$e=Symbol("namespaceContextKey"),Ke=e=>{const t=e||((0,S.getCurrentInstance)()?(0,S.inject)($e,(0,S.ref)(Ve)):(0,S.ref)(Ve));return(0,S.computed)((()=>(0,S.unref)(t)||Ve))},qe=(e,t)=>{const r=Ke(t);return{namespace:r,b:(t="")=>We(r.value,e,t,"",""),e:t=>t?We(r.value,e,"",t,""):"",m:t=>t?We(r.value,e,"","",t):"",be:(t,n)=>t&&n?We(r.value,e,t,n,""):"",em:(t,n)=>t&&n?We(r.value,e,"",t,n):"",bm:(t,n)=>t&&n?We(r.value,e,t,"",n):"",bem:(t,n,o)=>t&&n&&o?We(r.value,e,t,n,o):"",is:(e,...t)=>{const r=!(t.length>=1)||t[0];return e&&r?`is-${e}`:""},cssVar:e=>{const t={};for(const n in e)e[n]&&(t[`--${r.value}-${n}`]=e[n]);return t},cssVarName:e=>`--${r.value}-${e}`,cssVarBlock:t=>{const n={};for(const o in t)t[o]&&(n[`--${r.value}-${e}-${o}`]=t[o]);return n},cssVarBlockName:t=>`--${r.value}-${e}-${t}`}};class ze extends Error{constructor(e){super(e),this.name="ElementPlusError"}}const He=(0,S.defineComponent)({__name:"thumb",props:Fe,setup(e){const t=e,r=(0,S.inject)(Se),n=qe("scrollbar");r||function(){throw new ze("[Thumb] can not inject scrollbar context")}();const o=(0,S.ref)(),i=(0,S.ref)(),s=(0,S.ref)({}),a=(0,S.ref)(!1);let l=!1,c=!1,u=xe.oc?document.onselectstart:null;const p=(0,S.computed)((()=>Ee[t.vertical?"vertical":"horizontal"])),d=(0,S.computed)((()=>(({move:e,size:t,bar:r})=>({[r.size]:t,transform:`translate${r.axis}(${e}%)`}))({size:t.size,move:t.move,bar:p.value}))),f=(0,S.computed)((()=>o.value[p.value.offset]**2/r.wrapElement[p.value.scrollSize]/t.ratio/i.value[p.value.offset])),h=e=>{var t;if(e.stopPropagation(),e.ctrlKey||[1,2].includes(e.button))return;null==(t=window.getSelection())||t.removeAllRanges(),y(e);const r=e.currentTarget;r&&(s.value[p.value.axis]=r[p.value.offset]-(e[p.value.client]-r.getBoundingClientRect()[p.value.direction]))},m=e=>{if(!i.value||!o.value||!r.wrapElement)return;const t=100*(Math.abs(e.target.getBoundingClientRect()[p.value.direction]-e[p.value.client])-i.value[p.value.offset]/2)*f.value/o.value[p.value.offset];r.wrapElement[p.value.scroll]=t*r.wrapElement[p.value.scrollSize]/100},y=e=>{e.stopImmediatePropagation(),l=!0,document.addEventListener("mousemove",g),document.addEventListener("mouseup",v),u=document.onselectstart,document.onselectstart=()=>!1},g=e=>{if(!o.value||!i.value)return;if(!1===l)return;const t=s.value[p.value.axis];if(!t)return;const n=100*(-1*(o.value.getBoundingClientRect()[p.value.direction]-e[p.value.client])-(i.value[p.value.offset]-t))*f.value/o.value[p.value.offset];r.wrapElement[p.value.scroll]=n*r.wrapElement[p.value.scrollSize]/100},v=()=>{l=!1,s.value[p.value.axis]=0,document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",v),b(),c&&(a.value=!1)};(0,S.onBeforeUnmount)((()=>{b(),document.removeEventListener("mouseup",v)}));const b=()=>{document.onselectstart!==u&&(document.onselectstart=u)};return(0,_e.MLh)((0,S.toRef)(r,"scrollbarElement"),"mousemove",(()=>{c=!1,a.value=!!t.size})),(0,_e.MLh)((0,S.toRef)(r,"scrollbarElement"),"mouseleave",(()=>{c=!0,a.value=l})),(e,t)=>((0,S.openBlock)(),(0,S.createBlock)(S.Transition,{name:(0,S.unref)(n).b("fade"),persisted:""},{default:(0,S.withCtx)((()=>[(0,S.withDirectives)((0,S.createElementVNode)("div",{ref_key:"instance",ref:o,class:(0,S.normalizeClass)([(0,S.unref)(n).e("bar"),(0,S.unref)(n).is((0,S.unref)(p).key)]),onMousedown:m},[(0,S.createElementVNode)("div",{ref_key:"thumb",ref:i,class:(0,S.normalizeClass)((0,S.unref)(n).e("thumb")),style:(0,S.normalizeStyle)((0,S.unref)(d)),onMousedown:h},null,38)],34),[[S.vShow,e.always||a.value]])])),_:1},8,["name"]))}});var Ge=Ue(He,[["__file","thumb.vue"]]);const Qe=Be({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}});var Xe=Ue((0,S.defineComponent)({__name:"bar",props:Qe,setup(e,{expose:t}){const r=e,n=(0,S.inject)(Se),o=(0,S.ref)(0),i=(0,S.ref)(0),s=(0,S.ref)(""),a=(0,S.ref)(""),l=(0,S.ref)(1),c=(0,S.ref)(1);return t({handleScroll:e=>{if(e){const t=e.offsetHeight-4,r=e.offsetWidth-4;i.value=100*e.scrollTop/t*l.value,o.value=100*e.scrollLeft/r*c.value}},update:()=>{const e=null==n?void 0:n.wrapElement;if(!e)return;const t=e.offsetHeight-4,o=e.offsetWidth-4,i=t**2/e.scrollHeight,u=o**2/e.scrollWidth,p=Math.max(i,r.minSize),d=Math.max(u,r.minSize);l.value=i/(t-i)/(p/(t-p)),c.value=u/(o-u)/(d/(o-d)),a.value=p+4<t?`${p}px`:"",s.value=d+4<o?`${d}px`:""}}),(e,t)=>((0,S.openBlock)(),(0,S.createElementBlock)(S.Fragment,null,[(0,S.createVNode)(Ge,{move:o.value,ratio:c.value,size:s.value,always:e.always},null,8,["move","ratio","size","always"]),(0,S.createVNode)(Ge,{move:i.value,ratio:l.value,size:a.value,vertical:"",always:e.always},null,8,["move","ratio","size","always"])],64))}}),[["__file","bar.vue"]]),Ye=r(92049),Je=r(61882),Ze=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,et=/^\w*$/;const tt=function(e,t){if((0,Ye.A)(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!(0,Je.A)(e))||et.test(e)||!Ze.test(e)||null!=t&&e in Object(t)};var rt=r(62050);function nt(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var s=e.apply(this,n);return r.cache=i.set(o,s)||i,s};return r.cache=new(nt.Cache||rt.A),r}nt.Cache=rt.A;const ot=nt;var it=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,st=/\\(\\)?/g;const at=function(){var e=ot((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(it,(function(e,r,n,o){t.push(n?o.replace(st,"$1"):r||e)})),t}),(function(e){return 500===t.size&&t.clear(),e})),t=e.cache;return e}();var lt=r(241),ct=r(45572),ut=lt.A?lt.A.prototype:void 0,pt=ut?ut.toString:void 0;const dt=function e(t){if("string"==typeof t)return t;if((0,Ye.A)(t))return(0,ct.A)(t,e)+"";if((0,Je.A)(t))return pt?pt.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r},ft=function(e){return null==e?"":dt(e)},ht=function(e,t){return(0,Ye.A)(e)?e:tt(e,t)?[e]:at(ft(e))},mt=function(e){if("string"==typeof e||(0,Je.A)(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},yt=function(e,t){for(var r=0,n=(t=ht(t,e)).length;null!=e&&r<n;)e=e[mt(t[r++])];return r&&r==n?e:void 0};var gt=r(52851),vt=r(25353),bt=r(23149);const _t=function(e,t,r,n){if(!(0,bt.A)(e))return e;for(var o=-1,i=(t=ht(t,e)).length,s=i-1,a=e;null!=a&&++o<i;){var l=mt(t[o]),c=r;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(o!=s){var u=a[l];void 0===(c=n?n(u,l,a):void 0)&&(c=(0,bt.A)(u)?u:(0,vt.A)(t[o+1])?[]:{})}(0,gt.A)(a,l,c),a=a[l]}return e},Et=function(e,t){return null!=e&&t in Object(e)};var xt=r(25175),St=r(5254);const wt=function(e,t){return null!=e&&function(e,t,r){for(var n=-1,o=(t=ht(t,e)).length,i=!1;++n<o;){var s=mt(t[n]);if(!(i=null!=e&&r(e,s)))break;e=e[s]}return i||++n!=o?i:!!(o=null==e?0:e.length)&&(0,St.A)(o)&&(0,vt.A)(s,o)&&((0,Ye.A)(e)||(0,xt.A)(e))}(e,t,Et)},At=function(e,t){return function(e,t,r){for(var n=-1,o=t.length,i={};++n<o;){var s=t[n],a=yt(e,s);r(a,s)&&_t(i,ht(s,e),a)}return i}(e,t,(function(t,r){return wt(e,r)}))};var Tt=r(87671);const Pt=function(e){return null!=e&&e.length?(0,Tt.A)(e,1):[]};var Ct=r(65255),Ot=r(46778);const It=(Mt=function(e,t){return null==e?{}:At(e,t)},(0,Ot.A)((0,Ct.A)(Mt,void 0,Pt),Mt+"")),kt=Be({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),Dt=e=>It(kt,e);var Mt;const jt=function(e){return null==e},Nt=e=>void 0===e,Lt=e=>"boolean"==typeof e,Rt=e=>"number"==typeof e,Bt=e=>"undefined"!=typeof Element&&e instanceof Element,Ft=e=>jt(e),Ut=Be({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,...Dt(["ariaLabel","ariaOrientation"])}),Vt={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Rt)};function Wt(e,t="px"){return e?Rt(e)||Ie(r=e)&&!Number.isNaN(Number(r))?`${e}${t}`:Ie(e)?e:void 0:"";var r}const $t=(0,S.defineComponent)({name:"ElScrollbar"}),Kt=(0,S.defineComponent)({...$t,props:Ut,emits:Vt,setup(e,{expose:t,emit:r}){const n=e,o=qe("scrollbar");let i,s,a=0,l=0;const c=(0,S.ref)(),u=(0,S.ref)(),p=(0,S.ref)(),d=(0,S.ref)(),f=(0,S.computed)((()=>{const e={};return n.height&&(e.height=Wt(n.height)),n.maxHeight&&(e.maxHeight=Wt(n.maxHeight)),[n.wrapStyle,e]})),h=(0,S.computed)((()=>[n.wrapClass,o.e("wrap"),{[o.em("wrap","hidden-default")]:!n.native}])),m=(0,S.computed)((()=>[o.e("view"),n.viewClass])),y=()=>{var e;u.value&&(null==(e=d.value)||e.handleScroll(u.value),a=u.value.scrollTop,l=u.value.scrollLeft,r("scroll",{scrollTop:u.value.scrollTop,scrollLeft:u.value.scrollLeft}))},g=()=>{var e;null==(e=d.value)||e.update()};return(0,S.watch)((()=>n.noresize),(e=>{e?(null==i||i(),null==s||s()):(({stop:i}=(0,_e.wYm)(p,g)),s=(0,_e.MLh)("resize",g))}),{immediate:!0}),(0,S.watch)((()=>[n.maxHeight,n.height]),(()=>{n.native||(0,S.nextTick)((()=>{var e;g(),u.value&&(null==(e=d.value)||e.handleScroll(u.value))}))})),(0,S.provide)(Se,(0,S.reactive)({scrollbarElement:c,wrapElement:u})),(0,S.onActivated)((()=>{u.value.scrollTop=a,u.value.scrollLeft=l})),(0,S.onMounted)((()=>{n.native||(0,S.nextTick)((()=>{g()}))})),(0,S.onUpdated)((()=>g())),t({wrapRef:u,update:g,scrollTo:function(e,t){ke(e)?u.value.scrollTo(e):Rt(e)&&Rt(t)&&u.value.scrollTo(e,t)},setScrollTop:e=>{Rt(e)&&(u.value.scrollTop=e)},setScrollLeft:e=>{Rt(e)&&(u.value.scrollLeft=e)},handleScroll:y}),(e,t)=>((0,S.openBlock)(),(0,S.createElementBlock)("div",{ref_key:"scrollbarRef",ref:c,class:(0,S.normalizeClass)((0,S.unref)(o).b())},[(0,S.createElementVNode)("div",{ref_key:"wrapRef",ref:u,class:(0,S.normalizeClass)((0,S.unref)(h)),style:(0,S.normalizeStyle)((0,S.unref)(f)),onScroll:y},[((0,S.openBlock)(),(0,S.createBlock)((0,S.resolveDynamicComponent)(e.tag),{id:e.id,ref_key:"resizeRef",ref:p,class:(0,S.normalizeClass)((0,S.unref)(m)),style:(0,S.normalizeStyle)(e.viewStyle),role:e.role,"aria-label":e.ariaLabel,"aria-orientation":e.ariaOrientation},{default:(0,S.withCtx)((()=>[(0,S.renderSlot)(e.$slots,"default")])),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],38),e.native?(0,S.createCommentVNode)("v-if",!0):((0,S.openBlock)(),(0,S.createBlock)(Xe,{key:0,ref_key:"barRef",ref:d,always:e.always,"min-size":e.minSize},null,8,["always","min-size"]))],2))}}),qt=(e,t)=>{if(e.install=r=>{for(const n of[e,...Object.values(null!=t?t:{})])r.component(n.name,n)},t)for(const[r,n]of Object.entries(t))e[r]=n;return e},zt=e=>(e.install=Ae,e),Ht=qt(Ue(Kt,[["__file","scrollbar.vue"]]));var Gt=r(22204),Qt=(r(16280),r(44114),r(29544)),Xt=r.n(Qt),Yt=r(385),Jt=r.n(Yt),Zt=r(26327),er=r.n(Zt),tr=r(6707),rr=r.n(tr),nr=(r(13609),r(71917),r(84864),r(57465),r(87745),r(71761),r(80668)),or=r.n(nr),ir=r(57855),sr=r.n(ir);const ar=function(e,t,r){var n=null==e?void 0:yt(e,t);return void 0===n?r:n};var lr=r(22080),cr=r(22955);const ur=function(e){return e==e&&!(0,bt.A)(e)};var pr=r(27422);const dr=function(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}},fr=function(e){var t=function(e){for(var t=(0,pr.A)(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,ur(o)]}return t}(e);return 1==t.length&&t[0][2]?dr(t[0][0],t[0][1]):function(r){return r===e||function(e,t,r,n){var o=r.length,i=o,s=!n;if(null==e)return!i;for(e=Object(e);o--;){var a=r[o];if(s&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++o<i;){var l=(a=r[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 lr.A;if(n)var d=n(c,u,l,e,t,p);if(!(void 0===d?(0,cr.A)(u,c,3,n,p):d))return!1}}return!0}(r,e,t)}};var hr=r(29008);const mr=function(e){return tt(e)?(t=mt(e),function(e){return null==e?void 0:e[t]}):function(e){return function(t){return yt(t,e)}}(e);var t},yr=function(e){return"function"==typeof e?e:null==e?hr.A:"object"==typeof e?(0,Ye.A)(e)?(t=e[0],r=e[1],tt(t)&&ur(r)?dr(mt(t),r):function(e){var n=ar(e,t);return void 0===n&&n===r?wt(e,t):(0,cr.A)(r,n,3)}):fr(e):mr(e);var t,r};var gr=r(97132);var vr=r(38446);const br=(_r=function(e,t){return e&&(0,gr.A)(e,t,pr.A)},function(e,t){if(null==e)return e;if(!(0,vr.A)(e))return _r(e,t);for(var r=e.length,n=-1,o=Object(e);++n<r&&!1!==t(o[n],n,o););return e});var _r;const Er=function(e,t){var r=-1,n=(0,vr.A)(e)?Array(e.length):[];return br(e,(function(e,o,i){n[++r]=t(e,o,i)})),n},xr=function(e,t){return((0,Ye.A)(e)?ct.A:Er)(e,yr(t))},Sr=Symbol("popper"),wr=Symbol("popperContent"),Ar=Be({role:{type:String,values:["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],default:"tooltip"}}),Tr=(0,S.defineComponent)({name:"ElPopper",inheritAttrs:!1}),Pr=qt(Ue((0,S.defineComponent)({...Tr,props:Ar,setup(e,{expose:t}){const r=e,n={triggerRef:(0,S.ref)(),popperInstanceRef:(0,S.ref)(),contentRef:(0,S.ref)(),referenceRef:(0,S.ref)(),role:(0,S.computed)((()=>r.role))};return t(n),(0,S.provide)(Sr,n),(e,t)=>(0,S.renderSlot)(e.$slots,"default")}}),[["__file","popper.vue"]])),Cr=Symbol("elTooltip");function Or(){let e;const t=()=>window.clearTimeout(e);return(0,xe.Uo)((()=>t())),{registerTimeout:(r,n)=>{t(),e=window.setTimeout(r,n)},cancelTimeout:t}}const Ir=Be({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}});var kr="top",Dr="bottom",Mr="right",jr="left",Nr="auto",Lr=[kr,Dr,Mr,jr],Rr="start",Br="end",Fr="viewport",Ur="popper",Vr=Lr.reduce((function(e,t){return e.concat([t+"-"+Rr,t+"-"+Br])}),[]),Wr=[].concat(Lr,[Nr]).reduce((function(e,t){return e.concat([t,t+"-"+Rr,t+"-"+Br])}),[]),$r=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];const Kr=Be({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:Wr,default:"bottom"},popperOptions:{type:Object,default:()=>({})},strategy:{type:String,values:["fixed","absolute"],default:"absolute"}}),qr=Be({...Kr,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,...Dt(["ariaLabel"])}),zr={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},Hr=Be({...Ir,...qr,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,...Dt(["ariaLabel"])}),Gr=Be({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}),Qr=Be({...Gr,disabled:Boolean,trigger:{type:[String,Array],default:"hover"},triggerKeys:{type:Array,default:()=>["Enter","Space"]}}),Xr=Re({type:Boolean,default:null}),Yr=Re({type:Function}),Jr=e=>{const t=`update:${e}`,r=`onUpdate:${e}`,n=[t];return{useModelToggle:({indicator:n,toggleReason:o,shouldHideWhenRouteChanges:i,shouldProceed:s,onShow:a,onHide:l})=>{const c=(0,S.getCurrentInstance)(),{emit:u}=c,p=c.props,d=(0,S.computed)((()=>Oe(p[r]))),f=(0,S.computed)((()=>null===p[e])),h=e=>{!0!==n.value&&(n.value=!0,o&&(o.value=e),Oe(a)&&a(e))},m=e=>{!1!==n.value&&(n.value=!1,o&&(o.value=e),Oe(l)&&l(e))},y=e=>{if(!0===p.disabled||Oe(s)&&!s())return;const r=d.value&&xe.oc;r&&u(t,!0),!f.value&&r||h(e)},g=e=>{if(!0===p.disabled||!xe.oc)return;const r=d.value&&xe.oc;r&&u(t,!1),!f.value&&r||m(e)},v=e=>{Lt(e)&&(p.disabled&&e?d.value&&u(t,!1):n.value!==e&&(e?h():m()))};return(0,S.watch)((()=>p[e]),v),i&&void 0!==c.appContext.config.globalProperties.$route&&(0,S.watch)((()=>({...c.proxy.$route})),(()=>{i.value&&n.value&&g()})),(0,S.onMounted)((()=>{v(p[e])})),{hide:g,show:y,toggle:()=>{n.value?g():y()},hasUpdateHandler:d}},useModelToggleProps:{[e]:Xr,[r]:Yr},useModelToggleEmits:n}},{useModelToggle:Zr,useModelToggleProps:en,useModelToggleEmits:tn}=Jr("modelValue"),rn=Be({arrowOffset:{type:Number,default:5}}),{useModelToggleProps:nn,useModelToggleEmits:on,useModelToggle:sn}=Jr("visible"),an=Be({...Ar,...nn,...Hr,...Qr,...rn,showArrow:{type:Boolean,default:!0}}),ln=[...on,"before-show","before-hide","show","hide","open","close"],cn=(e,t,r)=>n=>{((e,t)=>Ce(e)?e.includes(t):e===t)((0,S.unref)(e),t)&&r(n)},un=(e,t,{checkForDefaultPrevented:r=!0}={})=>n=>{const o=null==e?void 0:e(n);if(!1===r||!o)return null==t?void 0:t(n)},pn=Symbol("elForwardRef"),dn=(0,S.defineComponent)({name:"ElOnlyChild",setup(e,{slots:t,attrs:r}){var n;const o=(0,S.inject)(pn),i=(s=null!=(n=null==o?void 0:o.setForwardRef)?n:Ae,{mounted(e){s(e)},updated(e){s(e)},unmounted(){s(null)}});var s;return()=>{var e;const n=null==(e=t.default)?void 0:e.call(t,r);if(!n)return null;if(n.length>1)return null;const o=fn(n);return o?(0,S.withDirectives)((0,S.cloneVNode)(o,r),[[i]]):null}}});function fn(e){if(!e)return null;const t=e;for(const e of t){if(ke(e))switch(e.type){case S.Comment:continue;case S.Text:case"svg":return hn(e);case S.Fragment:return fn(e.children);default:return e}return hn(e)}return null}function hn(e){const t=qe("only-child");return(0,S.createVNode)("span",{class:t.e("content")},[e])}const mn=(0,S.defineComponent)({name:"ElPopperTrigger",inheritAttrs:!1}),yn=(0,S.defineComponent)({...mn,props:Gr,setup(e,{expose:t}){const r=e,{role:n,triggerRef:o}=(0,S.inject)(Sr,void 0);var i;i=o,(0,S.provide)(pn,{setForwardRef:e=>{i.value=e}});const s=(0,S.computed)((()=>l.value?r.id:void 0)),a=(0,S.computed)((()=>{if(n&&"tooltip"===n.value)return r.open&&r.id?r.id:void 0})),l=(0,S.computed)((()=>{if(n&&"tooltip"!==n.value)return n.value})),c=(0,S.computed)((()=>l.value?`${r.open}`:void 0));let u;const p=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return(0,S.onMounted)((()=>{(0,S.watch)((()=>r.virtualRef),(e=>{e&&(o.value=(0,_e.F4c)(e))}),{immediate:!0}),(0,S.watch)(o,((e,t)=>{null==u||u(),u=void 0,Bt(e)&&(p.forEach((n=>{var o;const i=r[n];i&&(e.addEventListener(n.slice(2).toLowerCase(),i),null==(o=null==t?void 0:t.removeEventListener)||o.call(t,n.slice(2).toLowerCase(),i))})),u=(0,S.watch)([s,a,l,c],(t=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(((r,n)=>{jt(t[n])?e.removeAttribute(r):e.setAttribute(r,t[n])}))}),{immediate:!0})),Bt(t)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((e=>t.removeAttribute(e)))}),{immediate:!0})})),(0,S.onBeforeUnmount)((()=>{if(null==u||u(),u=void 0,o.value&&Bt(o.value)){const e=o.value;p.forEach((t=>{const n=r[t];n&&e.removeEventListener(t.slice(2).toLowerCase(),n)})),o.value=void 0}})),t({triggerRef:o}),(e,t)=>e.virtualTriggering?(0,S.createCommentVNode)("v-if",!0):((0,S.openBlock)(),(0,S.createBlock)((0,S.unref)(dn),(0,S.mergeProps)({key:0},e.$attrs,{"aria-controls":(0,S.unref)(s),"aria-describedby":(0,S.unref)(a),"aria-expanded":(0,S.unref)(c),"aria-haspopup":(0,S.unref)(l)}),{default:(0,S.withCtx)((()=>[(0,S.renderSlot)(e.$slots,"default")])),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var gn=Ue(yn,[["__file","trigger.vue"]]);const vn=(0,S.defineComponent)({name:"ElTooltipTrigger"});var bn=Ue((0,S.defineComponent)({...vn,props:Qr,setup(e,{expose:t}){const r=e,n=qe("tooltip"),{controlled:o,id:i,open:s,onOpen:a,onClose:l,onToggle:c}=(0,S.inject)(Cr,void 0),u=(0,S.ref)(null),p=()=>{if((0,S.unref)(o)||r.disabled)return!0},d=(0,S.toRef)(r,"trigger"),f=un(p,cn(d,"hover",a)),h=un(p,cn(d,"hover",l)),m=un(p,cn(d,"click",(e=>{0===e.button&&c(e)}))),y=un(p,cn(d,"focus",a)),g=un(p,cn(d,"focus",l)),v=un(p,cn(d,"contextmenu",(e=>{e.preventDefault(),c(e)}))),b=un(p,(e=>{const{code:t}=e;r.triggerKeys.includes(t)&&(e.preventDefault(),c(e))}));return t({triggerRef:u}),(e,t)=>((0,S.openBlock)(),(0,S.createBlock)((0,S.unref)(gn),{id:(0,S.unref)(i),"virtual-ref":e.virtualRef,open:(0,S.unref)(s),"virtual-triggering":e.virtualTriggering,class:(0,S.normalizeClass)((0,S.unref)(n).e("trigger")),onBlur:(0,S.unref)(g),onClick:(0,S.unref)(m),onContextmenu:(0,S.unref)(v),onFocus:(0,S.unref)(y),onMouseenter:(0,S.unref)(f),onMouseleave:(0,S.unref)(h),onKeydown:(0,S.unref)(b)},{default:(0,S.withCtx)((()=>[(0,S.renderSlot)(e.$slots,"default")])),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}}),[["__file","trigger.vue"]]);const _n=Be({to:{type:[String,Object],required:!0},disabled:Boolean}),En=qt(Ue((0,S.defineComponent)({__name:"teleport",props:_n,setup:e=>(e,t)=>e.disabled?(0,S.renderSlot)(e.$slots,"default",{key:0}):((0,S.openBlock)(),(0,S.createBlock)(S.Teleport,{key:1,to:e.to},[(0,S.renderSlot)(e.$slots,"default")],8,["to"]))}),[["__file","teleport.vue"]])),xn={prefix:Math.floor(1e4*Math.random()),current:0},Sn=Symbol("elIdInjection"),wn=()=>(0,S.getCurrentInstance)()?(0,S.inject)(Sn,xn):xn,An=e=>{const t=wn();xe.oc;const r=Ke();return(0,S.computed)((()=>(0,S.unref)(e)||`${r.value}-id-${t.prefix}-${t.current++}`))};let Tn;const Pn=()=>{const e=Ke(),t=wn(),r=(0,S.computed)((()=>`${e.value}-popper-container-${t.prefix}`)),n=(0,S.computed)((()=>`#${r.value}`));return{id:r,selector:n}};var Cn=r(69592);const On=(e,t=[])=>{const{placement:r,strategy:n,popperOptions:o}=e,i={placement:r,strategy:n,...o,modifiers:[...In(e),...t]};return function(e,t){t&&(e.modifiers=[...e.modifiers,...null!=t?t:[]])}(i,null==o?void 0:o.modifiers),i};function In(e){const{offset:t,gpuAcceleration:r,fallbackPlacements:n}=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:n}},{name:"computeStyles",options:{gpuAcceleration:r}}]}function kn(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Dn(e){return e instanceof kn(e).Element||e instanceof Element}function Mn(e){return e instanceof kn(e).HTMLElement||e instanceof HTMLElement}function jn(e){return"undefined"!=typeof ShadowRoot&&(e instanceof kn(e).ShadowRoot||e instanceof ShadowRoot)}var Nn=Math.max,Ln=Math.min,Rn=Math.round;function Bn(){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 Fn(){return!/^((?!chrome|android).)*safari/i.test(Bn())}function Un(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&Mn(e)&&(o=e.offsetWidth>0&&Rn(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Rn(n.height)/e.offsetHeight||1);var s=(Dn(e)?kn(e):window).visualViewport,a=!Fn()&&r,l=(n.left+(a&&s?s.offsetLeft:0))/o,c=(n.top+(a&&s?s.offsetTop:0))/i,u=n.width/o,p=n.height/i;return{width:u,height:p,top:c,right:l+u,bottom:c+p,left:l,x:l,y:c}}function Vn(e){var t=kn(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Wn(e){return e?(e.nodeName||"").toLowerCase():null}function $n(e){return((Dn(e)?e.ownerDocument:e.document)||window.document).documentElement}function Kn(e){return Un($n(e)).left+Vn(e).scrollLeft}function qn(e){return kn(e).getComputedStyle(e)}function zn(e){var t=qn(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Hn(e,t,r){void 0===r&&(r=!1);var n,o,i=Mn(t),s=Mn(t)&&function(e){var t=e.getBoundingClientRect(),r=Rn(t.width)/e.offsetWidth||1,n=Rn(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),a=$n(t),l=Un(e,s,r),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!r)&&(("body"!==Wn(t)||zn(a))&&(c=(n=t)!==kn(n)&&Mn(n)?{scrollLeft:(o=n).scrollLeft,scrollTop:o.scrollTop}:Vn(n)),Mn(t)?((u=Un(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=Kn(a))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function Gn(e){var t=Un(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Qn(e){return"html"===Wn(e)?e:e.assignedSlot||e.parentNode||(jn(e)?e.host:null)||$n(e)}function Xn(e){return["html","body","#document"].indexOf(Wn(e))>=0?e.ownerDocument.body:Mn(e)&&zn(e)?e:Xn(Qn(e))}function Yn(e,t){var r;void 0===t&&(t=[]);var n=Xn(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),i=kn(n),s=o?[i].concat(i.visualViewport||[],zn(n)?n:[]):n,a=t.concat(s);return o?a:a.concat(Yn(Qn(s)))}function Jn(e){return["table","td","th"].indexOf(Wn(e))>=0}function Zn(e){return Mn(e)&&"fixed"!==qn(e).position?e.offsetParent:null}function eo(e){for(var t=kn(e),r=Zn(e);r&&Jn(r)&&"static"===qn(r).position;)r=Zn(r);return r&&("html"===Wn(r)||"body"===Wn(r)&&"static"===qn(r).position)?t:r||function(e){var t=/firefox/i.test(Bn());if(/Trident/i.test(Bn())&&Mn(e)&&"fixed"===qn(e).position)return null;var r=Qn(e);for(jn(r)&&(r=r.host);Mn(r)&&["html","body"].indexOf(Wn(r))<0;){var n=qn(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}function to(e){var t=new Map,r=new Set,n=[];function o(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var n=t.get(e);n&&o(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||o(e)})),n}var ro={placement:"bottom",modifiers:[],strategy:"absolute"};function no(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function oo(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,o=t.defaultOptions,i=void 0===o?ro:o;return function(e,t,r){void 0===r&&(r=i);var o,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},ro,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:a,setOptions:function(r){var o="function"==typeof r?r(a.options):r;p(),a.options=Object.assign({},i,a.options,o),a.scrollParents={reference:Dn(e)?Yn(e):e.contextElement?Yn(e.contextElement):[],popper:Yn(t)};var s,c,d=function(e){var t=to(e);return $r.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}((s=[].concat(n,a.options.modifiers),c=s.reduce((function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return a.orderedModifiers=d.filter((function(e){return e.enabled})),a.orderedModifiers.forEach((function(e){var t=e.name,r=e.options,n=void 0===r?{}:r,o=e.effect;if("function"==typeof o){var i=o({state:a,name:t,instance:u,options:n});l.push(i||function(){})}})),u.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,r=e.popper;if(no(t,r)){a.rects={reference:Hn(t,eo(r),"fixed"===a.options.strategy),popper:Gn(r)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0;n<a.orderedModifiers.length;n++)if(!0!==a.reset){var o=a.orderedModifiers[n],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,n=-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(!no(e,t))return u;function p(){l.forEach((function(e){return e()})),l=[]}return u.setOptions(r).then((function(e){!c&&r.onFirstUpdate&&r.onFirstUpdate(e)})),u}}var io={passive:!0};function so(e){return e.split("-")[0]}function ao(e){return e.split("-")[1]}function lo(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function co(e){var t,r=e.reference,n=e.element,o=e.placement,i=o?so(o):null,s=o?ao(o):null,a=r.x+r.width/2-n.width/2,l=r.y+r.height/2-n.height/2;switch(i){case kr:t={x:a,y:r.y-n.height};break;case Dr:t={x:a,y:r.y+r.height};break;case Mr:t={x:r.x+r.width,y:l};break;case jr:t={x:r.x-n.width,y:l};break;default:t={x:r.x,y:r.y}}var c=i?lo(i):null;if(null!=c){var u="y"===c?"height":"width";switch(s){case Rr:t[c]=t[c]-(r[u]/2-n[u]/2);break;case Br:t[c]=t[c]+(r[u]/2-n[u]/2)}}return t}var uo={top:"auto",right:"auto",bottom:"auto",left:"auto"};function po(e){var t,r=e.popper,n=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,d=s.x,f=void 0===d?0:d,h=s.y,m=void 0===h?0:h,y="function"==typeof u?u({x:f,y:m}):{x:f,y:m};f=y.x,m=y.y;var g=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),b=jr,_=kr,E=window;if(c){var x=eo(r),S="clientHeight",w="clientWidth";x===kn(r)&&"static"!==qn(x=$n(r)).position&&"absolute"===a&&(S="scrollHeight",w="scrollWidth"),(o===kr||(o===jr||o===Mr)&&i===Br)&&(_=Dr,m-=(p&&x===E&&E.visualViewport?E.visualViewport.height:x[S])-n.height,m*=l?1:-1),o!==jr&&(o!==kr&&o!==Dr||i!==Br)||(b=Mr,f-=(p&&x===E&&E.visualViewport?E.visualViewport.width:x[w])-n.width,f*=l?1:-1)}var A,T=Object.assign({position:a},c&&uo),P=!0===u?function(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:Rn(r*o)/o||0,y:Rn(n*o)/o||0}}({x:f,y:m},kn(r)):{x:f,y:m};return f=P.x,m=P.y,l?Object.assign({},T,((A={})[_]=v?"0":"",A[b]=g?"0":"",A.transform=(E.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",A)):Object.assign({},T,((t={})[_]=v?m+"px":"",t[b]=g?f+"px":"",t.transform="",t))}const fo={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=void 0===o?[0,0]:o,s=Wr.reduce((function(e,r){return e[r]=function(e,t,r){var n=so(e),o=[jr,kr].indexOf(n)>=0?-1:1,i="function"==typeof r?r(Object.assign({},t,{placement:e})):r,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[jr,Mr].indexOf(n)>=0?{x:a,y:s}:{x:s,y:a}}(r,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[n]=s}};var ho={left:"right",right:"left",bottom:"top",top:"bottom"};function mo(e){return e.replace(/left|right|bottom|top/g,(function(e){return ho[e]}))}var yo={start:"end",end:"start"};function go(e){return e.replace(/start|end/g,(function(e){return yo[e]}))}function vo(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&jn(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function bo(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function _o(e,t,r){return t===Fr?bo(function(e,t){var r=kn(e),n=$n(e),o=r.visualViewport,i=n.clientWidth,s=n.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var c=Fn();(c||!c&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+Kn(e),y:l}}(e,r)):Dn(t)?function(e,t){var r=Un(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}(t,r):bo(function(e){var t,r=$n(e),n=Vn(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Nn(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Nn(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-n.scrollLeft+Kn(e),l=-n.scrollTop;return"rtl"===qn(o||r).direction&&(a+=Nn(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}($n(e)))}function Eo(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function xo(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}function So(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=void 0===n?e.placement:n,i=r.strategy,s=void 0===i?e.strategy:i,a=r.boundary,l=void 0===a?"clippingParents":a,c=r.rootBoundary,u=void 0===c?Fr:c,p=r.elementContext,d=void 0===p?Ur:p,f=r.altBoundary,h=void 0!==f&&f,m=r.padding,y=void 0===m?0:m,g=Eo("number"!=typeof y?y:xo(y,Lr)),v=d===Ur?"reference":Ur,b=e.rects.popper,_=e.elements[h?v:d],E=function(e,t,r,n){var o="clippingParents"===t?function(e){var t=Yn(Qn(e)),r=["absolute","fixed"].indexOf(qn(e).position)>=0&&Mn(e)?eo(e):e;return Dn(r)?t.filter((function(e){return Dn(e)&&vo(e,r)&&"body"!==Wn(e)})):[]}(e):[].concat(t),i=[].concat(o,[r]),s=i[0],a=i.reduce((function(t,r){var o=_o(e,r,n);return t.top=Nn(o.top,t.top),t.right=Ln(o.right,t.right),t.bottom=Ln(o.bottom,t.bottom),t.left=Nn(o.left,t.left),t}),_o(e,s,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(Dn(_)?_:_.contextElement||$n(e.elements.popper),l,u,s),x=Un(e.elements.reference),S=co({reference:x,element:b,strategy:"absolute",placement:o}),w=bo(Object.assign({},b,S)),A=d===Ur?w:x,T={top:E.top-A.top+g.top,bottom:A.bottom-E.bottom+g.bottom,left:E.left-A.left+g.left,right:A.right-E.right+g.right},P=e.modifiersData.offset;if(d===Ur&&P){var C=P[o];Object.keys(T).forEach((function(e){var t=[Mr,Dr].indexOf(e)>=0?1:-1,r=[kr,Dr].indexOf(e)>=0?"y":"x";T[e]+=C[r]*t}))}return T}const wo={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=void 0===o||o,s=r.altAxis,a=void 0===s||s,l=r.fallbackPlacements,c=r.padding,u=r.boundary,p=r.rootBoundary,d=r.altBoundary,f=r.flipVariations,h=void 0===f||f,m=r.allowedAutoPlacements,y=t.options.placement,g=so(y),v=l||(g!==y&&h?function(e){if(so(e)===Nr)return[];var t=mo(e);return[go(e),t,go(t)]}(y):[mo(y)]),b=[y].concat(v).reduce((function(e,r){return e.concat(so(r)===Nr?function(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,s=r.padding,a=r.flipVariations,l=r.allowedAutoPlacements,c=void 0===l?Wr:l,u=ao(n),p=u?a?Vr:Vr.filter((function(e){return ao(e)===u})):Lr,d=p.filter((function(e){return c.indexOf(e)>=0}));0===d.length&&(d=p);var f=d.reduce((function(t,r){return t[r]=So(e,{placement:r,boundary:o,rootBoundary:i,padding:s})[so(r)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:r,boundary:u,rootBoundary:p,padding:c,flipVariations:h,allowedAutoPlacements:m}):r)}),[]),_=t.rects.reference,E=t.rects.popper,x=new Map,S=!0,w=b[0],A=0;A<b.length;A++){var T=b[A],P=so(T),C=ao(T)===Rr,O=[kr,Dr].indexOf(P)>=0,I=O?"width":"height",k=So(t,{placement:T,boundary:u,rootBoundary:p,altBoundary:d,padding:c}),D=O?C?Mr:jr:C?Dr:kr;_[I]>E[I]&&(D=mo(D));var M=mo(D),j=[];if(i&&j.push(k[P]<=0),a&&j.push(k[D]<=0,k[M]<=0),j.every((function(e){return e}))){w=T,S=!1;break}x.set(T,j)}if(S)for(var N=function(e){var t=b.find((function(t){var r=x.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return w=t,"break"},L=h?3:1;L>0&&"break"!==N(L);L--);t.placement!==w&&(t.modifiersData[n]._skip=!0,t.placement=w,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ao(e,t,r){return Nn(e,Ln(t,r))}const To={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=void 0===o||o,s=r.altAxis,a=void 0!==s&&s,l=r.boundary,c=r.rootBoundary,u=r.altBoundary,p=r.padding,d=r.tether,f=void 0===d||d,h=r.tetherOffset,m=void 0===h?0:h,y=So(t,{boundary:l,rootBoundary:c,padding:p,altBoundary:u}),g=so(t.placement),v=ao(t.placement),b=!v,_=lo(g),E="x"===_?"y":"x",x=t.modifiersData.popperOffsets,S=t.rects.reference,w=t.rects.popper,A="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,T="number"==typeof A?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,C={x:0,y:0};if(x){if(i){var O,I="y"===_?kr:jr,k="y"===_?Dr:Mr,D="y"===_?"height":"width",M=x[_],j=M+y[I],N=M-y[k],L=f?-w[D]/2:0,R=v===Rr?S[D]:w[D],B=v===Rr?-w[D]:-S[D],F=t.elements.arrow,U=f&&F?Gn(F):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},W=V[I],$=V[k],K=Ao(0,S[D],U[D]),q=b?S[D]/2-L-K-W-T.mainAxis:R-K-W-T.mainAxis,z=b?-S[D]/2+L+K+$+T.mainAxis:B+K+$+T.mainAxis,H=t.elements.arrow&&eo(t.elements.arrow),G=H?"y"===_?H.clientTop||0:H.clientLeft||0:0,Q=null!=(O=null==P?void 0:P[_])?O:0,X=M+z-Q,Y=Ao(f?Ln(j,M+q-Q-G):j,M,f?Nn(N,X):N);x[_]=Y,C[_]=Y-M}if(a){var J,Z="x"===_?kr:jr,ee="x"===_?Dr:Mr,te=x[E],re="y"===E?"height":"width",ne=te+y[Z],oe=te-y[ee],ie=-1!==[kr,jr].indexOf(g),se=null!=(J=null==P?void 0:P[E])?J:0,ae=ie?ne:te-S[re]-w[re]-se+T.altAxis,le=ie?te+S[re]+w[re]-se-T.altAxis:oe,ce=f&&ie?function(e,t,r){var n=Ao(e,t,r);return n>r?r:n}(ae,te,le):Ao(f?ae:ne,te,f?le:oe);x[E]=ce,C[E]=ce-te}t.modifiersData[n]=C}},requiresIfExists:["offset"]};function Po(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Co(e){return[kr,Mr,Dr,jr].some((function(t){return e[t]>=0}))}var Oo=oo({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=void 0===o||o,s=n.resize,a=void 0===s||s,l=kn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",r.update,io)})),a&&l.addEventListener("resize",r.update,io),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",r.update,io)})),a&&l.removeEventListener("resize",r.update,io)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=co({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,r=e.options,n=r.gpuAcceleration,o=void 0===n||n,i=r.adaptive,s=void 0===i||i,a=r.roundOffsets,l=void 0===a||a,c={placement:so(t.placement),variation:ao(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,po(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,po(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 r=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];Mn(o)&&Wn(o)&&(Object.assign(o.style,r),Object.keys(n).forEach((function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});Mn(n)&&Wn(n)&&(Object.assign(n.style,i),Object.keys(o).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]},fo,wo,To,{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,s=r.modifiersData.popperOffsets,a=so(r.placement),l=lo(a),c=[jr,Mr].indexOf(a)>=0?"height":"width";if(i&&s){var u=function(e,t){return Eo("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:xo(e,Lr))}(o.padding,r),p=Gn(i),d="y"===l?kr:jr,f="y"===l?Dr:Mr,h=r.rects.reference[c]+r.rects.reference[l]-s[l]-r.rects.popper[c],m=s[l]-r.rects.reference[l],y=eo(i),g=y?"y"===l?y.clientHeight||0:y.clientWidth||0:0,v=h/2-m/2,b=u[d],_=g-p[c]-u[f],E=g/2-p[c]/2+v,x=Ao(b,E,_),S=l;r.modifiersData[n]=((t={})[S]=x,t.centerOffset=x-E,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&vo(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=So(t,{elementContext:"reference"}),a=So(t,{altBoundary:!0}),l=Po(s,n),c=Po(a,o,i),u=Co(l),p=Co(c);t.modifiersData[r]={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 Io=e=>{const{popperInstanceRef:t,contentRef:r,triggerRef:n,role:o}=(0,S.inject)(Sr,void 0),i=(0,S.ref)(),s=(0,S.ref)(),a=(0,S.computed)((()=>({name:"eventListeners",enabled:!!e.visible}))),l=(0,S.computed)((()=>{var e;const t=(0,S.unref)(i),r=null!=(e=(0,S.unref)(s))?e:0;return{name:"arrow",enabled:!(0,Cn.A)(t),options:{element:t,padding:r}}})),c=(0,S.computed)((()=>({onFirstUpdate:()=>{h()},...On(e,[(0,S.unref)(l),(0,S.unref)(a)])}))),u=(0,S.computed)((()=>(e=>{if(xe.oc)return(0,_e.F4c)(e)})(e.referenceEl)||(0,S.unref)(n))),{attributes:p,state:d,styles:f,update:h,forceUpdate:m,instanceRef:y}=((e,t,r={})=>{const n={name:"updateState",enabled:!0,phase:"write",fn:({state:e})=>{const t=function(e){const t=Object.keys(e.elements);return{styles:we(t.map((t=>[t,e.styles[t]||{}]))),attributes:we(t.map((t=>[t,e.attributes[t]])))}}(e);Object.assign(s.value,t)},requires:["computeStyles"]},o=(0,S.computed)((()=>{const{onFirstUpdate:e,placement:t,strategy:o,modifiers:i}=(0,S.unref)(r);return{onFirstUpdate:e,placement:t||"bottom",strategy:o||"absolute",modifiers:[...i||[],n,{name:"applyStyles",enabled:!1}]}})),i=(0,S.shallowRef)(),s=(0,S.ref)({styles:{popper:{position:(0,S.unref)(o).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),a=()=>{i.value&&(i.value.destroy(),i.value=void 0)};return(0,S.watch)(o,(e=>{const t=(0,S.unref)(i);t&&t.setOptions(e)}),{deep:!0}),(0,S.watch)([e,t],(([e,t])=>{a(),e&&t&&(i.value=Oo(e,t,(0,S.unref)(o)))})),(0,S.onBeforeUnmount)((()=>{a()})),{state:(0,S.computed)((()=>{var e;return{...(null==(e=(0,S.unref)(i))?void 0:e.state)||{}}})),styles:(0,S.computed)((()=>(0,S.unref)(s).styles)),attributes:(0,S.computed)((()=>(0,S.unref)(s).attributes)),update:()=>{var e;return null==(e=(0,S.unref)(i))?void 0:e.update()},forceUpdate:()=>{var e;return null==(e=(0,S.unref)(i))?void 0:e.forceUpdate()},instanceRef:(0,S.computed)((()=>(0,S.unref)(i)))}})(u,r,c);return(0,S.watch)(y,(e=>t.value=e)),(0,S.onMounted)((()=>{(0,S.watch)((()=>{var e;return null==(e=(0,S.unref)(u))?void 0:e.getBoundingClientRect()}),(()=>{h()}))})),{attributes:p,arrowRef:i,contentRef:r,instanceRef:y,state:d,styles:f,role:o,forceUpdate:m,update:h}},ko={current:0},Do=(0,S.ref)(0),Mo=Symbol("elZIndexContextKey"),jo=Symbol("zIndexContextKey"),No=Symbol("formContextKey"),Lo=Symbol("formItemContextKey"),Ro="focus-trap.focus-after-trapped",Bo="focus-trap.focus-after-released",Fo={cancelable:!0,bubbles:!1},Uo={cancelable:!0,bubbles:!1},Vo="focusAfterTrapped",Wo="focusAfterReleased",$o=Symbol("elFocusTrap"),Ko=(0,S.ref)(),qo=(0,S.ref)(0),zo=(0,S.ref)(0);let Ho=0;const Go=e=>{const t=[],r=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(;r.nextNode();)t.push(r.currentNode);return t},Qo=(e,t)=>{for(const r of e)if(!Xo(r,t))return r},Xo=(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},Yo=(e,t)=>{if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),zo.value=window.performance.now(),e!==r&&(e=>e instanceof HTMLInputElement&&"select"in e)(e)&&t&&e.select()}};function Jo(e,t){const r=[...e],n=e.indexOf(t);return-1!==n&&r.splice(n,1),r}const Zo=(()=>{let e=[];return{push:t=>{const r=e[0];r&&t!==r&&r.pause(),e=Jo(e,t),e.unshift(t)},remove:t=>{var r,n;e=Jo(e,t),null==(n=null==(r=e[0])?void 0:r.resume)||n.call(r)}}})(),ei=()=>{Ko.value="pointer",qo.value=window.performance.now()},ti=()=>{Ko.value="keyboard",qo.value=window.performance.now()},ri=()=>((0,S.onMounted)((()=>{0===Ho&&(document.addEventListener("mousedown",ei),document.addEventListener("touchstart",ei),document.addEventListener("keydown",ti)),Ho++})),(0,S.onBeforeUnmount)((()=>{Ho--,Ho<=0&&(document.removeEventListener("mousedown",ei),document.removeEventListener("touchstart",ei),document.removeEventListener("keydown",ti))})),{focusReason:Ko,lastUserFocusTimestamp:qo,lastAutomatedFocusTimestamp:zo}),ni=e=>new CustomEvent("focus-trap.focusout-prevented",{...Uo,detail:e});let oi=[];const ii=e=>{const t=e;"Escape"===t.key&&oi.forEach((e=>e(t)))},si=(0,S.defineComponent)({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[Vo,Wo,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const r=(0,S.ref)();let n,o;const{focusReason:i}=ri();var s;s=r=>{e.trapped&&!a.paused&&t("release-requested",r)},(0,S.onMounted)((()=>{0===oi.length&&document.addEventListener("keydown",ii),xe.oc&&oi.push(s)})),(0,S.onBeforeUnmount)((()=>{oi=oi.filter((e=>e!==s)),0===oi.length&&xe.oc&&document.removeEventListener("keydown",ii)}));const a={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},l=r=>{if(!e.loop&&!e.trapped)return;if(a.paused)return;const{key:n,altKey:o,ctrlKey:s,metaKey:l,currentTarget:c,shiftKey:u}=r,{loop:p}=e,d="Tab"===n&&!o&&!s&&!l,f=document.activeElement;if(d&&f){const e=c,[n,o]=(e=>{const t=Go(e);return[Qo(t,e),Qo(t.reverse(),e)]})(e);if(n&&o)if(u||f!==o){if(u&&[n,e].includes(f)){const e=ni({focusReason:i.value});t("focusout-prevented",e),e.defaultPrevented||(r.preventDefault(),p&&Yo(o,!0))}}else{const e=ni({focusReason:i.value});t("focusout-prevented",e),e.defaultPrevented||(r.preventDefault(),p&&Yo(n,!0))}else if(f===e){const e=ni({focusReason:i.value});t("focusout-prevented",e),e.defaultPrevented||r.preventDefault()}}};(0,S.provide)($o,{focusTrapRef:r,onKeydown:l}),(0,S.watch)((()=>e.focusTrapEl),(e=>{e&&(r.value=e)}),{immediate:!0}),(0,S.watch)([r],(([e],[t])=>{e&&(e.addEventListener("keydown",l),e.addEventListener("focusin",p),e.addEventListener("focusout",d)),t&&(t.removeEventListener("keydown",l),t.removeEventListener("focusin",p),t.removeEventListener("focusout",d))}));const c=e=>{t(Vo,e)},u=e=>t(Wo,e),p=i=>{const s=(0,S.unref)(r);if(!s)return;const l=i.target,c=i.relatedTarget,u=l&&s.contains(l);e.trapped||c&&s.contains(c)||(n=c),u&&t("focusin",i),a.paused||e.trapped&&(u?o=l:Yo(o,!0))},d=n=>{const s=(0,S.unref)(r);if(!a.paused&&s)if(e.trapped){const r=n.relatedTarget;jt(r)||s.contains(r)||setTimeout((()=>{if(!a.paused&&e.trapped){const e=ni({focusReason:i.value});t("focusout-prevented",e),e.defaultPrevented||Yo(o,!0)}}),0)}else{const e=n.target;e&&s.contains(e)||t("focusout",n)}};async function f(){await(0,S.nextTick)();const t=(0,S.unref)(r);if(t){Zo.push(a);const r=t.contains(document.activeElement)?n:document.activeElement;if(n=r,!t.contains(r)){const n=new Event(Ro,Fo);t.addEventListener(Ro,c),t.dispatchEvent(n),n.defaultPrevented||(0,S.nextTick)((()=>{let n=e.focusStartEl;Ie(n)||(Yo(n),document.activeElement!==n&&(n="first")),"first"===n&&((e,t=!1)=>{const r=document.activeElement;for(const n of e)if(Yo(n,t),document.activeElement!==r)return})(Go(t),!0),document.activeElement!==r&&"container"!==n||Yo(t)}))}}}function h(){const e=(0,S.unref)(r);if(e){e.removeEventListener(Ro,c);const t=new CustomEvent(Bo,{...Fo,detail:{focusReason:i.value}});e.addEventListener(Bo,u),e.dispatchEvent(t),t.defaultPrevented||"keyboard"!=i.value&&qo.value>zo.value&&!e.contains(document.activeElement)||Yo(null!=n?n:document.body),e.removeEventListener(Bo,u),Zo.remove(a)}}return(0,S.onMounted)((()=>{e.trapped&&f(),(0,S.watch)((()=>e.trapped),(e=>{e?f():h()}))})),(0,S.onBeforeUnmount)((()=>{e.trapped&&h(),r.value&&(r.value.removeEventListener("keydown",l),r.value.removeEventListener("focusin",p),r.value.removeEventListener("focusout",d),r.value=void 0)})),{onKeydown:l}}});var ai=Ue(si,[["render",function(e,t,r,n,o,i){return(0,S.renderSlot)(e.$slots,"default",{handleKeydown:e.onKeydown})}],["__file","focus-trap.vue"]]);const li=(0,S.defineComponent)({name:"ElPopperContent"}),ci=(0,S.defineComponent)({...li,props:qr,emits:zr,setup(e,{expose:t,emit:r}){const n=e,{focusStartRef:o,trapped:i,onFocusAfterReleased:s,onFocusAfterTrapped:a,onFocusInTrap:l,onFocusoutPrevented:c,onReleaseRequested:u}=((e,t)=>{const r=(0,S.ref)(!1),n=(0,S.ref)();return{focusStartRef:n,trapped:r,onFocusAfterReleased:e=>{var r;"pointer"!==(null==(r=e.detail)?void 0:r.focusReason)&&(n.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:t=>{e.visible&&!r.value&&(t.target&&(n.value=t.target),r.value=!0)},onFocusoutPrevented:t=>{e.trapping||("pointer"===t.detail.focusReason&&t.preventDefault(),r.value=!1)},onReleaseRequested:()=>{r.value=!1,t("close")}}})(n,r),{attributes:p,arrowRef:d,contentRef:f,styles:h,instanceRef:m,role:y,update:g}=Io(n),{ariaModal:v,arrowStyle:b,contentAttrs:_,contentClass:E,contentStyle:x,updateZIndex:w}=((e,{attributes:t,styles:r,role:n})=>{const{nextZIndex:o}=(()=>{const e=(0,S.getCurrentInstance)()?(0,S.inject)(Mo,ko):ko,t=(0,S.getCurrentInstance)()?(0,S.inject)(jo,void 0):void 0,r=(0,S.computed)((()=>{const e=(0,S.unref)(t);return Rt(e)?e:2e3})),n=(0,S.computed)((()=>r.value+Do.value));return xe.oc||(0,S.inject)(Mo),{initialZIndex:r,currentZIndex:n,nextZIndex:()=>(e.current++,Do.value=e.current,n.value)}})(),i=qe("popper"),s=(0,S.computed)((()=>(0,S.unref)(t).popper)),a=(0,S.ref)(Rt(e.zIndex)?e.zIndex:o()),l=(0,S.computed)((()=>[i.b(),i.is("pure",e.pure),i.is(e.effect),e.popperClass])),c=(0,S.computed)((()=>[{zIndex:(0,S.unref)(a)},(0,S.unref)(r).popper,e.popperStyle||{}]));return{ariaModal:(0,S.computed)((()=>"dialog"===n.value?"false":void 0)),arrowStyle:(0,S.computed)((()=>(0,S.unref)(r).arrow||{})),contentAttrs:s,contentClass:l,contentStyle:c,contentZIndex:a,updateZIndex:()=>{a.value=Rt(e.zIndex)?e.zIndex:o()}}})(n,{styles:h,attributes:p,role:y}),A=(0,S.inject)(Lo,void 0),T=(0,S.ref)();let P;(0,S.provide)(wr,{arrowStyle:b,arrowRef:d,arrowOffset:T}),A&&(0,S.provide)(Lo,{...A,addInputId:Ae,removeInputId:Ae});const C=(e=!0)=>{g(),e&&w()},O=()=>{C(!1),n.visible&&n.focusOnShow?i.value=!0:!1===n.visible&&(i.value=!1)};return(0,S.onMounted)((()=>{(0,S.watch)((()=>n.triggerTargetEl),((e,t)=>{null==P||P(),P=void 0;const r=(0,S.unref)(e||f.value),o=(0,S.unref)(t||f.value);Bt(r)&&(P=(0,S.watch)([y,()=>n.ariaLabel,v,()=>n.id],(e=>{["role","aria-label","aria-modal","id"].forEach(((t,n)=>{jt(e[n])?r.removeAttribute(t):r.setAttribute(t,e[n])}))}),{immediate:!0})),o!==r&&Bt(o)&&["role","aria-label","aria-modal","id"].forEach((e=>{o.removeAttribute(e)}))}),{immediate:!0}),(0,S.watch)((()=>n.visible),O,{immediate:!0})})),(0,S.onBeforeUnmount)((()=>{null==P||P(),P=void 0})),t({popperContentRef:f,popperInstanceRef:m,updatePopper:C,contentStyle:x}),(e,t)=>((0,S.openBlock)(),(0,S.createElementBlock)("div",(0,S.mergeProps)({ref_key:"contentRef",ref:f},(0,S.unref)(_),{style:(0,S.unref)(x),class:(0,S.unref)(E),tabindex:"-1",onMouseenter:t=>e.$emit("mouseenter",t),onMouseleave:t=>e.$emit("mouseleave",t)}),[(0,S.createVNode)((0,S.unref)(ai),{trapped:(0,S.unref)(i),"trap-on-focus-in":!0,"focus-trap-el":(0,S.unref)(f),"focus-start-el":(0,S.unref)(o),onFocusAfterTrapped:(0,S.unref)(a),onFocusAfterReleased:(0,S.unref)(s),onFocusin:(0,S.unref)(l),onFocusoutPrevented:(0,S.unref)(c),onReleaseRequested:(0,S.unref)(u)},{default:(0,S.withCtx)((()=>[(0,S.renderSlot)(e.$slots,"default")])),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16,["onMouseenter","onMouseleave"]))}});var ui=Ue(ci,[["__file","content.vue"]]);const pi=(0,S.defineComponent)({name:"ElTooltipContent",inheritAttrs:!1}),di=(0,S.defineComponent)({...pi,props:Hr,setup(e,{expose:t}){const r=e,{selector:n}=Pn(),o=qe("tooltip"),i=(0,S.ref)(null);let s;const{controlled:a,id:l,open:c,trigger:u,onClose:p,onOpen:d,onShow:f,onHide:h,onBeforeShow:m,onBeforeHide:y}=(0,S.inject)(Cr,void 0),g=(0,S.computed)((()=>r.transition||`${o.namespace.value}-fade-in-linear`)),v=(0,S.computed)((()=>r.persistent));(0,S.onBeforeUnmount)((()=>{null==s||s()}));const b=(0,S.computed)((()=>!!(0,S.unref)(v)||(0,S.unref)(c))),_=(0,S.computed)((()=>!r.disabled&&(0,S.unref)(c))),E=(0,S.computed)((()=>r.appendTo||n.value)),x=(0,S.computed)((()=>{var e;return null!=(e=r.style)?e:{}})),w=(0,S.computed)((()=>!(0,S.unref)(c))),A=()=>{h()},T=()=>{if((0,S.unref)(a))return!0},P=un(T,(()=>{r.enterable&&"hover"===(0,S.unref)(u)&&d()})),C=un(T,(()=>{"hover"===(0,S.unref)(u)&&p()})),O=()=>{var e,t;null==(t=null==(e=i.value)?void 0:e.updatePopper)||t.call(e),null==m||m()},I=()=>{null==y||y()},k=()=>{f(),s=(0,_e.X2F)((0,S.computed)((()=>{var e;return null==(e=i.value)?void 0:e.popperContentRef})),(()=>{(0,S.unref)(a)||"hover"!==(0,S.unref)(u)&&p()}))},D=()=>{r.virtualTriggering||p()};return(0,S.watch)((()=>(0,S.unref)(c)),(e=>{e||null==s||s()}),{flush:"post"}),(0,S.watch)((()=>r.content),(()=>{var e,t;null==(t=null==(e=i.value)?void 0:e.updatePopper)||t.call(e)})),t({contentRef:i}),(e,t)=>((0,S.openBlock)(),(0,S.createBlock)((0,S.unref)(En),{disabled:!e.teleported,to:(0,S.unref)(E)},{default:(0,S.withCtx)((()=>[(0,S.createVNode)(S.Transition,{name:(0,S.unref)(g),onAfterLeave:A,onBeforeEnter:O,onAfterEnter:k,onBeforeLeave:I},{default:(0,S.withCtx)((()=>[(0,S.unref)(b)?(0,S.withDirectives)(((0,S.openBlock)(),(0,S.createBlock)((0,S.unref)(ui),(0,S.mergeProps)({key:0,id:(0,S.unref)(l),ref_key:"contentRef",ref:i},e.$attrs,{"aria-label":e.ariaLabel,"aria-hidden":(0,S.unref)(w),"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,S.unref)(x)],"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,visible:(0,S.unref)(_),"z-index":e.zIndex,onMouseenter:(0,S.unref)(P),onMouseleave:(0,S.unref)(C),onBlur:D,onClose:(0,S.unref)(p)}),{default:(0,S.withCtx)((()=>[(0,S.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"])),[[S.vShow,(0,S.unref)(_)]]):(0,S.createCommentVNode)("v-if",!0)])),_:3},8,["name"])])),_:3},8,["disabled","to"]))}});var fi=Ue(di,[["__file","content.vue"]]);const hi=(0,S.defineComponent)({name:"ElPopperArrow",inheritAttrs:!1});var mi=Ue((0,S.defineComponent)({...hi,props:rn,setup(e,{expose:t}){const r=e,n=qe("popper"),{arrowOffset:o,arrowRef:i,arrowStyle:s}=(0,S.inject)(wr,void 0);return(0,S.watch)((()=>r.arrowOffset),(e=>{o.value=e})),(0,S.onBeforeUnmount)((()=>{i.value=void 0})),t({arrowRef:i}),(e,t)=>((0,S.openBlock)(),(0,S.createElementBlock)("span",{ref_key:"arrowRef",ref:i,class:(0,S.normalizeClass)((0,S.unref)(n).e("arrow")),style:(0,S.normalizeStyle)((0,S.unref)(s)),"data-popper-arrow":""},null,6))}}),[["__file","arrow.vue"]]);const yi=(0,S.defineComponent)({name:"ElTooltip"}),gi=(0,S.defineComponent)({...yi,props:an,emits:ln,setup(e,{expose:t,emit:r}){const n=e;(()=>{const{id:e,selector:t}=Pn();(0,S.onBeforeMount)((()=>{xe.oc&&(Tn&&document.body.querySelector(t.value)||(Tn=(e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t})(e.value)))}))})();const o=An(),i=(0,S.ref)(),s=(0,S.ref)(),a=()=>{var e;const t=(0,S.unref)(i);t&&(null==(e=t.popperInstanceRef)||e.update())},l=(0,S.ref)(!1),c=(0,S.ref)(),{show:u,hide:p,hasUpdateHandler:d}=sn({indicator:l,toggleReason:c}),{onOpen:f,onClose:h}=(({showAfter:e,hideAfter:t,autoClose:r,open:n,close:o})=>{const{registerTimeout:i}=Or(),{registerTimeout:s,cancelTimeout:a}=Or();return{onOpen:t=>{i((()=>{n(t);const e=(0,S.unref)(r);Rt(e)&&e>0&&s((()=>{o(t)}),e)}),(0,S.unref)(e))},onClose:e=>{a(),i((()=>{o(e)}),(0,S.unref)(t))}}})({showAfter:(0,S.toRef)(n,"showAfter"),hideAfter:(0,S.toRef)(n,"hideAfter"),autoClose:(0,S.toRef)(n,"autoClose"),open:u,close:p}),m=(0,S.computed)((()=>Lt(n.visible)&&!d.value));return(0,S.provide)(Cr,{controlled:m,id:o,open:(0,S.readonly)(l),trigger:(0,S.toRef)(n,"trigger"),onOpen:e=>{f(e)},onClose:e=>{h(e)},onToggle:e=>{(0,S.unref)(l)?h(e):f(e)},onShow:()=>{r("show",c.value)},onHide:()=>{r("hide",c.value)},onBeforeShow:()=>{r("before-show",c.value)},onBeforeHide:()=>{r("before-hide",c.value)},updatePopper:a}),(0,S.watch)((()=>n.disabled),(e=>{e&&l.value&&(l.value=!1)})),(0,S.onDeactivated)((()=>l.value&&p())),t({popperRef:i,contentRef:s,isFocusInsideContent:e=>{var t,r;const n=null==(r=null==(t=s.value)?void 0:t.contentRef)?void 0:r.popperContentRef,o=(null==e?void 0:e.relatedTarget)||document.activeElement;return n&&n.contains(o)},updatePopper:a,onOpen:f,onClose:h,hide:p}),(e,t)=>((0,S.openBlock)(),(0,S.createBlock)((0,S.unref)(Pr),{ref_key:"popperRef",ref:i,role:e.role},{default:(0,S.withCtx)((()=>[(0,S.createVNode)(bn,{disabled:e.disabled,trigger:e.trigger,"trigger-keys":e.triggerKeys,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering},{default:(0,S.withCtx)((()=>[e.$slots.default?(0,S.renderSlot)(e.$slots,"default",{key:0}):(0,S.createCommentVNode)("v-if",!0)])),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),(0,S.createVNode)(fi,{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,S.withCtx)((()=>[(0,S.renderSlot)(e.$slots,"content",{},(()=>[e.rawContent?((0,S.openBlock)(),(0,S.createElementBlock)("span",{key:0,innerHTML:e.content},null,8,["innerHTML"])):((0,S.openBlock)(),(0,S.createElementBlock)("span",{key:1},(0,S.toDisplayString)(e.content),1))])),e.showArrow?((0,S.openBlock)(),(0,S.createBlock)((0,S.unref)(mi),{key:0,"arrow-offset":e.arrowOffset},null,8,["arrow-offset"])):(0,S.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"]))}}),vi=qt(Ue(gi,[["__file","tooltip.vue"]]));var bi=function(){return bi=Xt()||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},bi.apply(this,arguments)},_i=function(e){var t;return null===(t=e.target)||void 0===t?void 0:t.closest("td")},Ei=function(e,t){var r,n=null;return te()(r=e.columns).call(r,(function(e){e.id===t&&(n=e)})),n},xi=function(e,t,r){var n=(t.className||"").match(new RegExp("".concat(r,"-table_[^\\s]+"),"gm"));return n?Ei(e,n[0]):null},Si=function(e,t){if(!e)throw new Error("Row is required when get row identity");if("string"==typeof t){if(!Y()(t).call(t,"."))return"".concat(e[t]);for(var r=e,n=0,o=t.split(".");n<o.length;n++)r=r[o[n]];return"".concat(r)}if("function"==typeof t)return t.call(null,e)},wi=function(e,t){var r,n={};return te()(r=e||[]).call(r,(function(e,r){n[Si(e,t)]={row:e,index:r}})),n};function Ai(e){return""===e||void 0!==e&&(e=or()(e,10),V()(e)&&(e="")),e}function Ti(e){return""===e||void 0!==e&&(e=Ai(e),V()(e)&&(e=80)),e}function Pi(e,t,r){var n=!1,o=ne()(e).call(e,t),i=-1!==o,s=function(s){var a;"add"===s?e.push(t):Jt()(e).call(e,o,1),n=!0,(0,ie.isArray)(t.children)&&te()(a=t.children).call(a,(function(t){Pi(e,t,null!=r?r:!i)}))};return(0,ie.isBoolean)(r)?r&&!i?s("add"):!r&&i&&s("remove"):s(i?"remove":"add"),n}function Ci(e,t,r,n){void 0===r&&(r="children"),void 0===n&&(n="hasChildren");var o=function(e){return!(M()(e)&&e.length)};function i(e,s,a){t(e,s,a),te()(s).call(s,(function(e){if(e[n])t(e,null,a+1);else{var s=e[r];o(s)||i(e,s,a+1)}}))}te()(e).call(e,(function(e){if(e[n])t(e,null,0);else{var s=e[r];o(s)||i(e,s,0)}}))}var Oi=null;function Ii(e){return e.children?(t=e.children,r=Ii,(0,Tt.A)(xr(t,r),1)):[e];var t,r}function ki(e,t){return e+t.colSpan}var Di=function(e,t,r,n){var o,i=0,s=e,a=r.states.columns.value;if(n){var l=Ii(n[e]),c=R()(a).call(a,0,ne()(a).call(a,l[0]));s=(i=P()(c).call(c,ki,0))+P()(l).call(l,ki,0)-1}else i=e;switch(t){case"left":s<r.states.fixedLeafColumnsLength.value&&(o="left");break;case"right":i>=a.length-r.states.rightFixedLeafColumnsLength.value&&(o="right");break;default:s<r.states.fixedLeafColumnsLength.value?o="left":i>=a.length-r.states.rightFixedLeafColumnsLength.value&&(o="right")}return o?{direction:o,start:i,after:s}:{}},Mi=function(e,t,r,n,o,i){void 0===i&&(i=0);var s=[],a=Di(t,r,n,o),l=a.direction,c=a.start,u=a.after;if(l){var p,d="left"===l;s.push(k()(p="".concat(e,"-fixed-column--")).call(p,l)),d&&u+i===n.states.fixedLeafColumnsLength.value-1?s.push("is-last-column"):d||c-i!=n.states.columns.value.length-n.states.rightFixedLeafColumnsLength.value||s.push("is-first-column")}return s};function ji(e,t){return e+(null===t.realWidth||V()(t.realWidth)?Number(t.width):t.realWidth)}var Ni=function(e,t,r,n){var o=Di(e,t,r,n),i=o.direction,s=o.start,a=void 0===s?0:s,l=o.after,c=void 0===l?0:l;if(i){var u,p,d,f={},h="left"===i,m=r.states.columns.value;return h?f.left=P()(u=R()(m).call(m,0,a)).call(u,ji,0):f.right=P()(p=sr()(d=R()(m).call(m,c+1)).call(d)).call(p,ji,0),f}},Li=function(e,t){e&&(V()(e[t])||(e[t]="".concat(e[t],"px")))};var Ri=function(){return Ri=Xt()||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ri.apply(this,arguments)};var Bi=function(){return Bi=Xt()||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Bi.apply(this,arguments)},Fi=function(e){var t=[];return te()(e).call(e,(function(e){e.children&&e.children.length>0?t.push.apply(t,Fi(e.children)):t.push(e)})),t};const Ui=function(){var e,t=(0,S.getCurrentInstance)(),r=(0,S.toRefs)(null===(e=t.proxy)||void 0===e?void 0:e.$props).size,n=(0,S.ref)(null),o=(0,S.ref)([]),i=(0,S.ref)([]),s=(0,S.ref)(!1),a=(0,S.ref)([]),l=(0,S.ref)([]),c=(0,S.ref)([]),u=(0,S.ref)([]),p=(0,S.ref)([]),d=(0,S.ref)([]),f=(0,S.ref)([]),h=(0,S.ref)([]),m=(0,S.ref)(0),y=(0,S.ref)(0),g=(0,S.ref)(0),v=(0,S.ref)(!1),b=(0,S.ref)([]),_=(0,S.ref)(!1),E=(0,S.ref)(!1),x=(0,S.ref)(null),w=(0,S.ref)({}),A=(0,S.ref)(null),T=(0,S.ref)(null),C=(0,S.ref)(null),I=(0,S.ref)(null),D=(0,S.ref)(null);(0,S.watch)(o,(function(){return t.state&&B(!1)}),{deep:!0});var j=function(e){var t;null===(t=e.children)||void 0===t||te()(t).call(t,(function(t){t.fixed=e.fixed,j(t)}))},L=function(){var e,t,r,n,o,i,d,f,h,v;te()(e=a.value).call(e,(function(e){j(e)})),u.value=$()(t=a.value).call(t,(function(e){return!0===e.fixed||"left"===e.fixed})),p.value=$()(r=a.value).call(r,(function(e){return"right"===e.fixed})),u.value.length>0&&a.value[0]&&"selection"===a.value[0].type&&!a.value[0].fixed&&(a.value[0].fixed=!0,u.value.unshift(a.value[0]));var b=$()(n=a.value).call(n,(function(e){return!e.fixed}));l.value=k()(o=k()(i=k()(d=[]).call(d,u.value)).call(i,b)).call(o,p.value);var _=Fi(b),E=Fi(u.value),x=Fi(p.value);m.value=_.length,y.value=E.length,g.value=x.length,c.value=k()(f=k()(h=k()(v=[]).call(v,E)).call(h,_)).call(f,x),s.value=u.value.length>0||p.value.length>0},B=function(e,r){void 0===r&&(r=!1),e&&L(),r?t.state.doLayout():t.state.debouncedUpdateLayout()},U=function(e){var r;if(!t||!t.store)return 0;var n=t.store.states.treeData,o=0,i=null===(r=n.value[e])||void 0===r?void 0:r.children;return i&&(o+=i.length,te()(i).call(i,(function(e){o+=U(e)}))),o},V=function(e,t,r){T.value&&T.value!==e&&(T.value.order=null),T.value=e,C.value=t,I.value=r},W=function(){var e,t=(0,S.unref)(i);te()(e=O()(w.value)).call(e,(function(e){var r=w.value[e];if(r&&0!==r.length){var n=Ei({columns:c.value},e);n&&n.filterMethod&&(t=$()(t).call(t,(function(e){return H()(r).call(r,(function(t){return n.filterMethod.call(null,t,e,n)}))})))}})),A.value=t},K=function(){o.value=function(e,t){var r=t.sortingColumn;return r&&"string"!=typeof r.sortable?function(e,t,r,n,o){var i,s;if(!t&&!n&&(!o||M()(o)&&!o.length))return e;r="string"==typeof r?"descending"===r?-1:1:r&&r<0?-1:1;var a=n?null:function(r,n){return o?(M()(o)||(o=[o]),N()(o).call(o,(function(t){return"string"==typeof t?ar(r,t):t(r,n,e)}))):("$key"!==t&&(0,ie.isObject)(r)&&"$value"in r&&(r=r.$value),[(0,ie.isObject)(r)?ar(r,t):r])};return N()(i=F()(s=N()(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(n)return n(e.value,t.value);for(var r=0,o=e.key.length;r<o;r++){if(e.key[r]<t.key[r])return-1;if(e.key[r]>t.key[r])return 1}return 0}(e,t);return o||(o=e.index-t.index),o*+r}))).call(i,(function(e){return e.value}))}(e,t.sortProp,t.sortOrder,r.sortMethod,r.sortBy):e}(A.value,{sortingColumn:T.value,sortProp:C.value,sortOrder:I.value})},z=function(e){var t=(0,S.getCurrentInstance)(),r=(0,S.ref)(!1),n=(0,S.ref)([]);return{updateExpandRows:function(){var t=e.data.value||[],o=e.rowKey.value;if(r.value)n.value=R()(t).call(t);else if(o){var i=wi(n.value,o);n.value=P()(t).call(t,(function(e,t){var r=Si(t,o);return i[r]&&e.push(t),e}),[])}else n.value=[]},toggleRowExpansion:function(e,r){var o;Pi(n.value,e,r)&&t.emit("expand-change",e,R()(o=n.value).call(o))},setExpandRowKeys:function(r){t.store.assertRowKey();var o=e.data.value||[],i=e.rowKey.value,s=wi(o,i);n.value=P()(r).call(r,(function(e,t){var r=s[t];return r&&e.push(r.row),e}),[])},isRowExpanded:function(t){var r,o=e.rowKey.value;return o?!!wi(n.value,o)[Si(t,o)]:Y()(r=n.value).call(r,t)},states:{expandRows:n,defaultExpandAll:r}}}({data:o,rowKey:n}),G=z.setExpandRowKeys,Q=z.toggleRowExpansion,X=z.updateExpandRows,J=z.states,Z=z.isRowExpanded,ee=function(e){var t=(0,S.ref)([]),r=(0,S.ref)({}),n=(0,S.ref)(16),o=(0,S.ref)(!1),i=(0,S.ref)({}),s=(0,S.ref)("hasChildren"),a=(0,S.ref)("children"),l=(0,S.getCurrentInstance)(),c=(0,S.computed)((function(){if(!e.rowKey.value)return{};var t=e.data.value||[];return p(t)})),u=(0,S.computed)((function(){var t=e.rowKey.value,r=O()(i.value),n={};return r.length?(te()(r).call(r,(function(e){if(i.value[e].length){var r,o={children:[]};te()(r=i.value[e]).call(r,(function(e){var r=Si(e,t);o.children.push(r),e[s.value]&&!n[r]&&(n[r]={children:[]})})),n[e]=o}})),n):n})),p=function(t){var r=e.rowKey.value,n={};return Ci(t,(function(e,t,i){var s=Si(e,r);M()(t)?n[s]={children:N()(t).call(t,(function(e){return Si(e,r)})),level:i}:o.value&&(n[s]={children:[],lazy:!0,level:i})}),a.value,s.value),n},d=function(e,n){var i,s;void 0===e&&(e=!1),void 0===n&&(n=null===(i=l.store)||void 0===i?void 0:i.states.defaultExpandAll.value);var a=c.value,p=u.value,d=O()(a),f={};if(d.length){var h=(0,S.unref)(r),m=[],y=function(r,o){var i;if(e)return t.value?n||Y()(i=t.value).call(i,o):!(!n&&!(null==r?void 0:r.expanded));var s,a=n||t.value&&Y()(s=t.value).call(s,o);return!(!(null==r?void 0:r.expanded)&&!a)};te()(d).call(d,(function(e){var t=h[e],r=Ri({},a[e]);if(r.expanded=y(t,e),r.lazy){var n=t||{},o=n.loaded,i=void 0!==o&&o,s=n.loading,l=void 0!==s&&s;r.loaded=!!i,r.loading=!!l,m.push(e)}f[e]=r}));var g=O()(p);o.value&&g.length&&m.length&&te()(g).call(g,(function(e){var t=h[e],r=p[e].children;if(Y()(m).call(m,e)){if(0!==f[e].children.length)throw new Error("[ElTable]children must be an empty array.");f[e].children=r}else{var n=t||{},o=n.loaded,i=void 0!==o&&o,s=n.loading,a=void 0!==s&&s;f[e]={lazy:!0,loaded:!!i,loading:!!a,expanded:y(t,e),children:r,level:""}}}))}r.value=f,null===(s=l.store)||void 0===s||s.updateTableScrollY()};(0,S.watch)((function(){return t.value}),(function(){d(!0)})),(0,S.watch)((function(){return c.value}),(function(){d()})),(0,S.watch)((function(){return u.value}),(function(){d()}));var f=function(t,n){l.store.assertRowKey();var o=e.rowKey.value,i=Si(t,o),s=i&&r.value[i];if(i&&s&&"expanded"in s){var a=s.expanded;n=void 0===n?!s.expanded:n,r.value[i].expanded=n,a!==n&&l.emit("expand-change",t,n),l.store.updateTableScrollY()}},h=function(e,t,n){var o=l.props.load;o&&!r.value[t].loaded&&(r.value[t].loading=!0,o(e,n,(function(n){if(!M()(n))throw new TypeError("[ElTable] data must be an array");r.value[t].loading=!1,r.value[t].loaded=!0,r.value[t].expanded=!0,n.length&&(i.value[t]=n),l.emit("expand-change",e,!0)})))};return{loadData:h,loadOrToggle:function(t){l.store.assertRowKey();var n=e.rowKey.value,i=Si(t,n),s=r.value[i];o.value&&s&&"loaded"in s&&!s.loaded?h(t,i,s):f(t,void 0)},toggleTreeExpansion:f,updateTreeExpandKeys:function(e){t.value=e,d()},updateTreeData:d,normalize:p,states:{expandRowKeys:t,treeData:r,indent:n,lazy:o,lazyTreeNodeMap:i,lazyColumnIdentifier:s,childrenColumnName:a}}}({data:o,rowKey:n}),re=ee.updateTreeExpandKeys,ne=ee.toggleTreeExpansion,oe=ee.updateTreeData,se=ee.loadOrToggle,ae=ee.states,le=function(e){var t=(0,S.getCurrentInstance)(),r=(0,S.ref)(null),n=(0,S.ref)(null),o=function(){r.value=null},i=function(r){var o,i=e.data,s=e.rowKey,a=null;s.value&&(a=q()(o=(0,S.unref)(i)||[]).call(o,(function(e){return Si(e,s.value)===r}))),n.value=a,t.emit("current-change",n.value,null)};return{setCurrentRowKey:function(e){t.store.assertRowKey(),r.value=e,i(e)},restoreCurrentRowKey:o,setCurrentRowByKey:i,updateCurrentRow:function(e){var r=n.value;if(e&&e!==r)return n.value=e,void t.emit("current-change",n.value,r);!e&&r&&(n.value=null,t.emit("current-change",null,r))},updateCurrentRowData:function(){var s=e.rowKey.value,a=e.data.value||[],l=n.value;if(!Y()(a).call(a,l)&&l){if(s){var c=Si(l,s);i(c)}else n.value=null;null===n.value&&t.emit("current-change",null,l)}else r.value&&(i(r.value),o())},states:{_currentRowKey:r,currentRow:n}}}({data:o,rowKey:n}),ce=le.updateCurrentRowData,ue=le.updateCurrentRow,pe=le.setCurrentRowKey,de=le.states;return{assertRowKey:function(){if(!n.value)throw new Error("[ElTable] prop row-key is required")},updateColumns:L,scheduleLayout:B,isSelected:function(e){var t;return Y()(t=b.value).call(t,e)},clearSelection:function(){v.value=!1;var e=b.value;b.value=[],e.length&&t.emit("selection-change",[])},cleanSelection:function(){var e;if(n.value){e=[];var r=wi(b.value,n.value),i=wi(o.value,n.value);for(var s in r)(0,ie.hasOwn)(r,s)&&!i[s]&&e.push(r[s].row)}else{var a;e=$()(a=b.value).call(a,(function(e){var t;return!Y()(t=o.value).call(t,e)}))}if(e.length){var l,c=$()(l=b.value).call(l,(function(t){return!Y()(e).call(e,t)}));b.value=c,t.emit("selection-change",R()(c).call(c))}},getSelectionRows:function(){var e;return R()(e=b.value||[]).call(e)},toggleRowSelection:function(e,r,n){if(void 0===r&&(r=void 0),void 0===n&&(n=!0),Pi(b.value,e,r)){var o,i=R()(o=b.value||[]).call(o);n&&t.emit("select",i,e),t.emit("selection-change",i)}},_toggleAllSelection:function(){var e,r,n,i,s=E.value?!v.value:!(v.value||b.value.length);v.value=s;var a,l=!1,c=0,u=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;te()(e=o.value).call(e,(function(e,t){var r=t+c;x.value?x.value.call(null,e,r)&&Pi(b.value,e,s)&&(l=!0):Pi(b.value,e,s)&&(l=!0),c+=U(Si(e,u))})),l&&t.emit("selection-change",b.value?R()(a=b.value).call(a):[]),t.emit("select-all",R()(r=b.value||[]).call(r))},toggleAllSelection:null,updateSelectionByRowKey:function(){var e,t=wi(b.value,n.value);te()(e=o.value).call(e,(function(e){var r=Si(e,n.value),o=t[r];o&&(b.value[o.index]=e)}))},updateAllSelected:function(){var e,r,i;if(0!==(null===(e=o.value)||void 0===e?void 0:e.length)){var s;n.value&&(s=wi(b.value,n.value));for(var a,l,c=!0,u=0,p=0,d=0,f=(o.value||[]).length;d<f;d++){var h=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,m=d+p,y=o.value[d],g=x.value&&x.value.call(null,y,m);if(a=y,l=void 0,s?s[Si(a,n.value)]:Y()(l=b.value).call(l,a))u++;else if(!x.value||g){c=!1;break}p+=U(Si(y,h))}0===u&&(c=!1),v.value=c}else v.value=!1},updateFilters:function(e,t){M()(e)||(e=[e]);var r={};return te()(e).call(e,(function(e){w.value[e.id]=t,r[e.columnKey||e.id]=t})),r},updateCurrentRow:ue,updateSort:V,execFilter:W,execSort:K,execQuery:function(e){void 0===e&&(e=void 0),e&&$()(e)||W(),K()},clearFilter:function(e){var r=t.refs.tableHeaderRef;if(r){var n=Xt()({},r.filterPanels),o=O()(n);if(o.length)if("string"==typeof e&&(e=[e]),M()(e)){var i=N()(e).call(e,(function(e){return function(e,t){for(var r=null,n=0;n<e.columns.length;n++){var o=e.columns[n];if(o.columnKey===t){r=o;break}}return r||(0,ie.throwError)("ElTable","No column matching with column-key: ".concat(t)),r}({columns:c.value},e)}));te()(o).call(o,(function(e){var t=q()(i).call(i,(function(t){return t.id===e}));t&&(t.filteredValue=[])})),t.store.commit("filterChange",{column:i,values:[],silent:!0,multi:!0})}else te()(o).call(o,(function(e){var t,r=q()(t=c.value).call(t,(function(t){return t.id===e}));r&&(r.filteredValue=[])})),w.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})}},clearSort:function(){T.value&&(V(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},toggleRowExpansion:Q,setExpandRowKeysAdapter:function(e){G(e),re(e)},setCurrentRowKey:pe,toggleRowExpansionAdapter:function(e,t){var r,n=H()(r=c.value).call(r,(function(e){return"expand"===e.type}));n?Q(e,t):ne(e,t)},isRowExpanded:Z,updateExpandRows:X,updateCurrentRowData:ce,loadOrToggle:se,updateTreeData:oe,states:Bi(Bi(Bi({tableSize:r,rowKey:n,data:o,_data:i,isComplex:s,_columns:a,originColumns:l,columns:c,fixedColumns:u,rightFixedColumns:p,leafColumns:d,fixedLeafColumns:f,rightFixedLeafColumns:h,updateOrderFns:[],leafColumnsLength:m,fixedLeafColumnsLength:y,rightFixedLeafColumnsLength:g,isAllSelected:v,selection:b,reserveSelection:_,selectOnIndeterminate:E,selectable:x,filters:w,filteredData:A,sortingColumn:T,sortProp:C,sortOrder:I,hoverRow:D},J),ae),de)}};var Vi=function(){return Vi=Xt()||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Vi.apply(this,arguments)};function Wi(e,t){return N()(e).call(e,(function(e){var r;return e.id===t.id?t:((null===(r=e.children)||void 0===r?void 0:r.length)&&(e.children=Wi(e.children,t)),e)}))}function $i(e){te()(e).call(e,(function(e){var t,r;e.no=null===(t=e.getColumnIndex)||void 0===t?void 0:t.call(e),(null===(r=e.children)||void 0===r?void 0:r.length)&&$i(e.children)})),F()(e).call(e,(function(e,t){return e.no-t.no}))}const Ki=function(){var e=(0,S.getCurrentInstance)(),t=Ui(),r=(0,be.useNamespace)("table"),n={setData:function(t,r){var n=(0,S.unref)(t._data)!==r;t.data.value=r,t._data.value=r,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),(0,S.unref)(t.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):n?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn:function(t,r,n,o){var i=(0,S.unref)(t._columns),s=[];n?(n&&!n.children&&(n.children=[]),n.children.push(r),s=Wi(i,n)):(i.push(r),s=i),$i(s),t._columns.value=s,t.updateOrderFns.push(o),"selection"===r.type&&(t.selectable.value=r.selectable,t.reserveSelection.value=r.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder:function(t,r){var n;(null===(n=r.getColumnIndex)||void 0===n?void 0:n.call(r))!==r.no&&($i(t._columns.value),e.$ready&&e.store.updateColumns())},removeColumn:function(t,r,n,o){var i,s,a=(0,S.unref)(t._columns)||[];if(n){var l,c;Jt()(l=n.children).call(l,er()(c=n.children).call(c,(function(e){return e.id===r.id})),1),(0,S.nextTick)((function(){var e;0===(null===(e=n.children)||void 0===e?void 0:e.length)&&delete n.children})),t._columns.value=Wi(a,n)}else{var u=ne()(a).call(a,r);u>-1&&(Jt()(a).call(a,u,1),t._columns.value=a)}var p=ne()(i=t.updateOrderFns).call(i,o);p>-1&&Jt()(s=t.updateOrderFns).call(s,p,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort:function(t,r){var n=r.prop,o=r.order,i=r.init;if(n){var s,a=q()(s=(0,S.unref)(t.columns)).call(s,(function(e){return e.property===n}));a&&(a.order=o,e.store.updateSort(a,n,o),e.store.commit("changeSortCondition",{init:i}))}},changeSortCondition:function(t,r){var n=t.sortingColumn,o=t.sortProp,i=t.sortOrder,s=(0,S.unref)(n),a=(0,S.unref)(o),l=(0,S.unref)(i);null===l&&(t.sortingColumn.value=null,t.sortProp.value=null),e.store.execQuery({filter:!0}),r&&(r.silent||r.init)||e.emit("sort-change",{column:s,prop:a,order:l}),e.store.updateTableScrollY()},filterChange:function(t,r){var n=r.column,o=rr()(r),i=r.silent,s=e.store.updateFilters(n,o);e.store.execQuery(),i||e.emit("filter-change",s),e.store.updateTableScrollY()},toggleAllSelection:function(){e.store.toggleAllSelection()},rowSelectedChanged:function(t,r){e.store.toggleRowSelection(r),e.store.updateAllSelected()},setHoverRow:function(e,t){e.hoverRow.value=t},setCurrentRow:function(t,r){e.store.updateCurrentRow(r)}};return Vi(Vi({ns:r},t),{mutations:n,commit:function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o,i=e.store.mutations;if(!i[t])throw new Error("Action not found: ".concat(t));i[t].apply(e,k()(o=[e.store.states]).call(o,r))},updateTableScrollY:function(){(0,S.nextTick)((function(){return e.layout.updateScrollY.apply(e.layout)}))}})};var qi,zi=((qi={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data"})["treeProps.hasChildren"]={key:"lazyColumnIdentifier",default:"hasChildren"},qi["treeProps.children"]={key:"childrenColumnName",default:"children"},qi);function Hi(e,t,r){var n=e,o=zi[t];"object"===(0,Gt.A)(zi[t])&&(o=o.key,n=n||zi[t].default),r.states[o].value=n}function Gi(e,t){if(Y()(t).call(t,".")){var r=t.split("."),n=e;return te()(r).call(r,(function(e){n=n[e]})),n}return e[t]}var Qi=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,S.ref)(null),this.scrollX=(0,S.ref)(!1),this.scrollY=(0,S.ref)(!1),this.bodyWidth=(0,S.ref)(null),this.fixedWidth=(0,S.ref)(null),this.rightFixedWidth=(0,S.ref)(null),this.gutterWidth=0,e)(0,ie.hasOwn)(e,t)&&((0,S.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,r=this.scrollY.value;return t=e.wrapRef.scrollHeight>e.wrapRef.clientHeight,this.scrollY.value=t,r!==t}return!1},e.prototype.setHeight=function(e,t){var r=this;if(void 0===t&&(t="height"),ie.isClient){var n,o=this.table.vnode.el;if(e="number"==typeof(n=e)?n:"string"==typeof n?/^\d+(?:px)?$/.test(n)?or()(n,10):n:null,this.height.value=Number(e),!o&&(e||0===e))return(0,S.nextTick)((function(){return r.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 te()(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(ie.isClient){var e=this.fit,t=this.table.vnode.el.clientWidth,r=0,n=this.getFlattenColumns(),o=$()(n).call(n,(function(e){return"number"!=typeof e.width}));if(te()(n).call(n,(function(e){"number"==typeof e.width&&e.realWidth&&(e.realWidth=null)})),o.length>0&&e){if(te()(n).call(n,(function(e){r+=Number(e.width||e.minWidth||80)})),r<=t){this.scrollX.value=!1;var i=t-r;if(1===o.length)o[0].realWidth=Number(o[0].minWidth||80)+i;else{var s=i/P()(o).call(o,(function(e,t){return e+Number(t.minWidth||80)}),0),a=0;te()(o).call(o,(function(e,t){if(0!==t){var r=Math.floor(Number(e.minWidth||80)*s);a+=r,e.realWidth=Number(e.minWidth||80)+r}})),o[0].realWidth=Number(o[0].minWidth||80)+i-a}}else this.scrollX.value=!0,te()(o).call(o,(function(e){e.realWidth=Number(e.minWidth)}));this.bodyWidth.value=Math.max(r,t),this.table.state.resizeState.value.width=this.bodyWidth.value}else te()(n).call(n,(function(e){e.width||e.minWidth?e.realWidth=Number(e.width||e.minWidth):e.realWidth=80,r+=e.realWidth})),this.scrollX.value=r>t,this.bodyWidth.value=r;var l=this.store.states.fixedColumns.value;if(l.length>0){var c=0;te()(l).call(l,(function(e){c+=Number(e.realWidth||e.width)})),this.fixedWidth.value=c}var u=this.store.states.rightFixedColumns.value;if(u.length>0){var p=0;te()(u).call(u,(function(e){p+=Number(e.realWidth||e.width)})),this.rightFixedWidth.value=p}this.notifyObservers("columns")}},e.prototype.addObserver=function(e){this.observers.push(e)},e.prototype.removeObserver=function(e){var t,r,n=ne()(t=this.observers).call(t,e);-1!==n&&Jt()(r=this.observers).call(r,n,1)},e.prototype.notifyObservers=function(e){var t=this,r=this.observers;te()(r).call(r,(function(r){var n,o;switch(e){case"columns":null===(n=r.state)||void 0===n||n.onColumnsChange(t);break;case"scrollable":null===(o=r.state)||void 0===o||o.onScrollableChange(t);break;default:throw new Error("Table Layout don't have event ".concat(e,"."))}}))},e}();const Xi=Qi;var Yi=r(61240),Ji=r.n(Yi),Zi=r(27681),es=r.n(Zi),ts=r(16781),rs=r.n(ts),ns=r(27414),os=r.n(ns);const is=Re({type:String,values:["","default","small","large"],required:!1}),ss=Symbol("size"),as="update:modelValue",ls={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:is,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...Dt(["ariaControls"])},cs={[as]:e=>Ie(e)||Rt(e)||Lt(e),change:e=>Ie(e)||Rt(e)||Lt(e)},us=Symbol("checkboxGroupContextKey"),ps=e=>{const t=(0,S.getCurrentInstance)();return(0,S.computed)((()=>{var r,n;return null==(n=null==(r=null==t?void 0:t.proxy)?void 0:r.$props)?void 0:n[e]}))},ds=(e,t={})=>{const r=(0,S.ref)(void 0),n=t.prop?r:ps("size"),o=t.global?r:(()=>{const e=(0,S.inject)(ss,{});return(0,S.computed)((()=>(0,S.unref)(e.size)||""))})(),i=t.form?{size:void 0}:(0,S.inject)(No,void 0),s=t.formItem?{size:void 0}:(0,S.inject)(Lo,void 0);return(0,S.computed)((()=>n.value||(0,S.unref)(e)||(null==s?void 0:s.size)||(null==i?void 0:i.size)||o.value||""))},fs=e=>{const t=ps("disabled"),r=(0,S.inject)(No,void 0);return(0,S.computed)((()=>t.value||(0,S.unref)(e)||(null==r?void 0:r.disabled)||!1))},hs=()=>({form:(0,S.inject)(No,void 0),formItem:(0,S.inject)(Lo,void 0)}),ms=(e,{formItemContext:t,disableIdGeneration:r,disableIdManagement:n})=>{r||(r=(0,S.ref)(!1)),n||(n=(0,S.ref)(!1));const o=(0,S.ref)();let i;const s=(0,S.computed)((()=>{var r;return!!(!e.label&&!e.ariaLabel&&t&&t.inputIds&&(null==(r=t.inputIds)?void 0:r.length)<=1)}));return(0,S.onMounted)((()=>{i=(0,S.watch)([(0,S.toRef)(e,"id"),r],(([e,r])=>{const i=null!=e?e:r?void 0:An().value;i!==o.value&&((null==t?void 0:t.removeInputId)&&(o.value&&t.removeInputId(o.value),(null==n?void 0:n.value)||r||!i||t.addInputId(i)),o.value=i)}),{immediate:!0})})),(0,S.onUnmounted)((()=>{i&&i(),(null==t?void 0:t.removeInputId)&&o.value&&t.removeInputId(o.value)})),{isLabeledByFormItem:s,inputId:o}};var ys=r(46996);const gs=({from:e,replacement:t,scope:r,version:n,ref:o,type:i="API"},s)=>{(0,S.watch)((()=>(0,S.unref)(s)),(e=>{}),{immediate:!0})},vs=(e,t)=>{const{formItem:r}=hs(),{model:n,isGroup:o,isLimitExceeded:i}=(e=>{const t=(0,S.ref)(!1),{emit:r}=(0,S.getCurrentInstance)(),n=(0,S.inject)(us,void 0),o=(0,S.computed)((()=>!1===Nt(n))),i=(0,S.ref)(!1),s=(0,S.computed)({get(){var r,i;return o.value?null==(r=null==n?void 0:n.modelValue)?void 0:r.value:null!=(i=e.modelValue)?i:t.value},set(e){var a,l;o.value&&Ce(e)?(i.value=void 0!==(null==(a=null==n?void 0:n.max)?void 0:a.value)&&e.length>(null==n?void 0:n.max.value)&&e.length>s.value.length,!1===i.value&&(null==(l=null==n?void 0:n.changeEvent)||l.call(n,e))):(r(as,e),t.value=e)}});return{model:s,isGroup:o,isLimitExceeded:i}})(e),{isFocused:s,isChecked:a,checkboxButtonSize:l,checkboxSize:c,hasOwnLabel:u,actualValue:p}=((e,t,{model:r})=>{const n=(0,S.inject)(us,void 0),o=(0,S.ref)(!1),i=(0,S.computed)((()=>Ft(e.value)?e.label:e.value)),s=(0,S.computed)((()=>{const t=r.value;return Lt(t)?t:Ce(t)?ke(i.value)?t.map(S.toRaw).some((e=>(0,ys.A)(e,i.value))):t.map(S.toRaw).includes(i.value):null!=t?t===e.trueValue||t===e.trueLabel:!!t})),a=ds((0,S.computed)((()=>{var e;return null==(e=null==n?void 0:n.size)?void 0:e.value})),{prop:!0}),l=ds((0,S.computed)((()=>{var e;return null==(e=null==n?void 0:n.size)?void 0:e.value})));return{checkboxButtonSize:a,isChecked:s,isFocused:o,checkboxSize:l,hasOwnLabel:(0,S.computed)((()=>!!t.default||!Ft(i.value))),actualValue:i}})(e,t,{model:n}),{isDisabled:d}=(({model:e,isChecked:t})=>{const r=(0,S.inject)(us,void 0),n=(0,S.computed)((()=>{var n,o;const i=null==(n=null==r?void 0:r.max)?void 0:n.value,s=null==(o=null==r?void 0:r.min)?void 0:o.value;return!Nt(i)&&e.value.length>=i&&!t.value||!Nt(s)&&e.value.length<=s&&t.value}));return{isDisabled:fs((0,S.computed)((()=>(null==r?void 0:r.disabled.value)||n.value))),isLimitDisabled:n}})({model:n,isChecked:a}),{inputId:f,isLabeledByFormItem:h}=ms(e,{formItemContext:r,disableIdGeneration:u,disableIdManagement:o}),{handleChange:m,onClickRoot:y}=((e,{model:t,isLimitExceeded:r,hasOwnLabel:n,isDisabled:o,isLabeledByFormItem:i})=>{const s=(0,S.inject)(us,void 0),{formItem:a}=hs(),{emit:l}=(0,S.getCurrentInstance)();function c(t){var r,n,o,i;return[!0,e.trueValue,e.trueLabel].includes(t)?null==(n=null!=(r=e.trueValue)?r:e.trueLabel)||n:null!=(i=null!=(o=e.falseValue)?o:e.falseLabel)&&i}const u=(0,S.computed)((()=>(null==s?void 0:s.validateEvent)||e.validateEvent));return(0,S.watch)((()=>e.modelValue),(()=>{u.value&&(null==a||a.validate("change").catch((e=>{})))})),{handleChange:function(e){if(r.value)return;const t=e.target;l("change",c(t.checked),e)},onClickRoot:async function(s){r.value||n.value||o.value||!i.value||s.composedPath().some((e=>"LABEL"===e.tagName))||(t.value=c([!1,e.falseValue,e.falseLabel].includes(t.value)),await(0,S.nextTick)(),function(e,t){l("change",c(e),t)}(t.value,s))}}})(e,{model:n,isLimitExceeded:i,hasOwnLabel:u,isDisabled:d,isLabeledByFormItem:h});return e.checked&&function(){var t,r;Ce(n.value)&&!n.value.includes(p.value)?n.value.push(p.value):n.value=null==(r=null!=(t=e.trueValue)?t:e.trueLabel)||r}(),gs({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,S.computed)((()=>o.value&&Ft(e.value)))),gs({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},(0,S.computed)((()=>!!e.trueLabel))),gs({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},(0,S.computed)((()=>!!e.falseLabel))),{inputId:f,isLabeledByFormItem:h,isChecked:a,isDisabled:d,isFocused:s,checkboxButtonSize:l,checkboxSize:c,hasOwnLabel:u,model:n,actualValue:p,handleChange:m,onClickRoot:y}},bs=(0,S.defineComponent)({name:"ElCheckbox"}),_s=(0,S.defineComponent)({...bs,props:ls,emits:cs,setup(e){const t=e,r=(0,S.useSlots)(),{inputId:n,isLabeledByFormItem:o,isChecked:i,isDisabled:s,isFocused:a,checkboxSize:l,hasOwnLabel:c,model:u,actualValue:p,handleChange:d,onClickRoot:f}=vs(t,r),h=qe("checkbox"),m=(0,S.computed)((()=>[h.b(),h.m(l.value),h.is("disabled",s.value),h.is("bordered",t.border),h.is("checked",i.value)])),y=(0,S.computed)((()=>[h.e("input"),h.is("disabled",s.value),h.is("checked",i.value),h.is("indeterminate",t.indeterminate),h.is("focus",a.value)]));return(e,t)=>((0,S.openBlock)(),(0,S.createBlock)((0,S.resolveDynamicComponent)(!(0,S.unref)(c)&&(0,S.unref)(o)?"span":"label"),{class:(0,S.normalizeClass)((0,S.unref)(m)),"aria-controls":e.indeterminate?e.ariaControls:null,onClick:(0,S.unref)(f)},{default:(0,S.withCtx)((()=>{var t,r;return[(0,S.createElementVNode)("span",{class:(0,S.normalizeClass)((0,S.unref)(y))},[e.trueValue||e.falseValue||e.trueLabel||e.falseLabel?(0,S.withDirectives)(((0,S.openBlock)(),(0,S.createElementBlock)("input",{key:0,id:(0,S.unref)(n),"onUpdate:modelValue":e=>(0,S.isRef)(u)?u.value=e:null,class:(0,S.normalizeClass)((0,S.unref)(h).e("original")),type:"checkbox",indeterminate:e.indeterminate,name:e.name,tabindex:e.tabindex,disabled:(0,S.unref)(s),"true-value":null!=(t=e.trueValue)?t:e.trueLabel,"false-value":null!=(r=e.falseValue)?r:e.falseLabel,onChange:(0,S.unref)(d),onFocus:e=>a.value=!0,onBlur:e=>a.value=!1,onClick:(0,S.withModifiers)((()=>{}),["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[S.vModelCheckbox,(0,S.unref)(u)]]):(0,S.withDirectives)(((0,S.openBlock)(),(0,S.createElementBlock)("input",{key:1,id:(0,S.unref)(n),"onUpdate:modelValue":e=>(0,S.isRef)(u)?u.value=e:null,class:(0,S.normalizeClass)((0,S.unref)(h).e("original")),type:"checkbox",indeterminate:e.indeterminate,disabled:(0,S.unref)(s),value:(0,S.unref)(p),name:e.name,tabindex:e.tabindex,onChange:(0,S.unref)(d),onFocus:e=>a.value=!0,onBlur:e=>a.value=!1,onClick:(0,S.withModifiers)((()=>{}),["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","disabled","value","name","tabindex","onChange","onFocus","onBlur","onClick"])),[[S.vModelCheckbox,(0,S.unref)(u)]]),(0,S.createElementVNode)("span",{class:(0,S.normalizeClass)((0,S.unref)(h).e("inner"))},null,2)],2),(0,S.unref)(c)?((0,S.openBlock)(),(0,S.createElementBlock)("span",{key:0,class:(0,S.normalizeClass)((0,S.unref)(h).e("label"))},[(0,S.renderSlot)(e.$slots,"default"),e.$slots.default?(0,S.createCommentVNode)("v-if",!0):((0,S.openBlock)(),(0,S.createElementBlock)(S.Fragment,{key:0},[(0,S.createTextVNode)((0,S.toDisplayString)(e.label),1)],64))],2)):(0,S.createCommentVNode)("v-if",!0)]})),_:3},8,["class","aria-controls","onClick"]))}});var Es=Ue(_s,[["__file","checkbox.vue"]]);const xs=(0,S.defineComponent)({name:"ElCheckboxButton"}),Ss=(0,S.defineComponent)({...xs,props:ls,emits:cs,setup(e){const t=e,r=(0,S.useSlots)(),{isFocused:n,isChecked:o,isDisabled:i,checkboxButtonSize:s,model:a,actualValue:l,handleChange:c}=vs(t,r),u=(0,S.inject)(us,void 0),p=qe("checkbox"),d=(0,S.computed)((()=>{var e,t,r,n;const o=null!=(t=null==(e=null==u?void 0:u.fill)?void 0:e.value)?t:"";return{backgroundColor:o,borderColor:o,color:null!=(n=null==(r=null==u?void 0:u.textColor)?void 0:r.value)?n:"",boxShadow:o?`-1px 0 0 0 ${o}`:void 0}})),f=(0,S.computed)((()=>[p.b("button"),p.bm("button",s.value),p.is("disabled",i.value),p.is("checked",o.value),p.is("focus",n.value)]));return(e,t)=>{var r,s;return(0,S.openBlock)(),(0,S.createElementBlock)("label",{class:(0,S.normalizeClass)((0,S.unref)(f))},[e.trueValue||e.falseValue||e.trueLabel||e.falseLabel?(0,S.withDirectives)(((0,S.openBlock)(),(0,S.createElementBlock)("input",{key:0,"onUpdate:modelValue":e=>(0,S.isRef)(a)?a.value=e:null,class:(0,S.normalizeClass)((0,S.unref)(p).be("button","original")),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:(0,S.unref)(i),"true-value":null!=(r=e.trueValue)?r:e.trueLabel,"false-value":null!=(s=e.falseValue)?s:e.falseLabel,onChange:(0,S.unref)(c),onFocus:e=>n.value=!0,onBlur:e=>n.value=!1,onClick:(0,S.withModifiers)((()=>{}),["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[S.vModelCheckbox,(0,S.unref)(a)]]):(0,S.withDirectives)(((0,S.openBlock)(),(0,S.createElementBlock)("input",{key:1,"onUpdate:modelValue":e=>(0,S.isRef)(a)?a.value=e:null,class:(0,S.normalizeClass)((0,S.unref)(p).be("button","original")),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:(0,S.unref)(i),value:(0,S.unref)(l),onChange:(0,S.unref)(c),onFocus:e=>n.value=!0,onBlur:e=>n.value=!1,onClick:(0,S.withModifiers)((()=>{}),["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","value","onChange","onFocus","onBlur","onClick"])),[[S.vModelCheckbox,(0,S.unref)(a)]]),e.$slots.default||e.label?((0,S.openBlock)(),(0,S.createElementBlock)("span",{key:2,class:(0,S.normalizeClass)((0,S.unref)(p).be("button","inner")),style:(0,S.normalizeStyle)((0,S.unref)(o)?(0,S.unref)(d):void 0)},[(0,S.renderSlot)(e.$slots,"default",{},(()=>[(0,S.createTextVNode)((0,S.toDisplayString)(e.label),1)]))],6)):(0,S.createCommentVNode)("v-if",!0)],2)}}});var ws=Ue(Ss,[["__file","checkbox-button.vue"]]);const As=Be({modelValue:{type:Array,default:()=>[]},disabled:Boolean,min:Number,max:Number,size:is,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},...Dt(["ariaLabel"])}),Ts={[as]:e=>Ce(e),change:e=>Ce(e)},Ps=(0,S.defineComponent)({name:"ElCheckboxGroup"}),Cs=(0,S.defineComponent)({...Ps,props:As,emits:Ts,setup(e,{emit:t}){const r=e,n=qe("checkbox"),{formItem:o}=hs(),{inputId:i,isLabeledByFormItem:s}=ms(r,{formItemContext:o}),a=async e=>{t(as,e),await(0,S.nextTick)(),t("change",e)},l=(0,S.computed)({get:()=>r.modelValue,set(e){a(e)}});return(0,S.provide)(us,{...It((0,S.toRefs)(r),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:l,changeEvent:a}),(0,S.watch)((()=>r.modelValue),(()=>{r.validateEvent&&(null==o||o.validate("change").catch((e=>{})))})),(e,t)=>{var r;return(0,S.openBlock)(),(0,S.createBlock)((0,S.resolveDynamicComponent)(e.tag),{id:(0,S.unref)(i),class:(0,S.normalizeClass)((0,S.unref)(n).b("group")),role:"group","aria-label":(0,S.unref)(s)?void 0:e.ariaLabel||"checkbox-group","aria-labelledby":(0,S.unref)(s)?null==(r=(0,S.unref)(o))?void 0:r.labelId:void 0},{default:(0,S.withCtx)((()=>[(0,S.renderSlot)(e.$slots,"default")])),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var Os=Ue(Cs,[["__file","checkbox-group.vue"]]);const Is=qt(Es,{CheckboxButton:ws,CheckboxGroup:Os});zt(ws),zt(Os);var ks={key:0},Ds=["disabled"],Ms=["label","onClick"],js=r(86864),Ns=r(27077);const Ls=new Map;if(xe.oc){let e;document.addEventListener("mousedown",(t=>e=t)),document.addEventListener("mouseup",(t=>{if(e){for(const r of Ls.values())for(const{documentHandler:n}of r)n(t,e);e=void 0}}))}function Rs(e,t){let r=[];return Array.isArray(t.arg)?r=t.arg:Bt(t.arg)&&r.push(t.arg),function(n,o){const i=t.instance.popperRef,s=n.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,d=r.length&&r.some((e=>null==e?void 0:e.contains(s)))||r.length&&r.includes(a),f=i&&(i.contains(s)||i.contains(a));l||c||u||p||d||f||t.value(n,o)}}const Bs={beforeMount(e,t){Ls.has(e)||Ls.set(e,[]),Ls.get(e).push({documentHandler:Rs(e,t),bindingFn:t.value})},updated(e,t){Ls.has(e)||Ls.set(e,[]);const r=Ls.get(e),n=r.findIndex((e=>e.bindingFn===t.oldValue)),o={documentHandler:Rs(e,t),bindingFn:t.value};n>=0?r.splice(n,1,o):r.push(o)},unmounted(e){Ls.delete(e)}};var Fs=Is.CheckboxGroup;const Us=(0,S.defineComponent)({name:"ElTableFilterPanel",components:{ElCheckbox:Is,ElCheckboxGroup:Fs,ElScrollbar:Ht,ElTooltip:vi,ElIcon:js.ElIcon,ArrowDown:Ns.ArrowDown,ArrowUp:Ns.ArrowUp},directives:{ClickOutside:Bs},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup:function(e){var t=(0,S.getCurrentInstance)(),r=(0,be.useLocale)().t,n=(0,be.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,S.ref)(!1),s=(0,S.ref)(null),a=(0,S.computed)((function(){return e.column&&e.column.filters})),l=(0,S.computed)((function(){var t;return e.column.filterClassName?k()(t="".concat(n.b()," ")).call(t,e.column.filterClassName):n.b()})),c=(0,S.computed)({get:function(){var t;return((null===(t=e.column)||void 0===t?void 0:t.filteredValue)||[])[0]},set:function(e){var t,r;u.value&&(null!=e?Jt()(t=u.value).call(t,0,1,e):Jt()(r=u.value).call(r,0,1))}}),u=(0,S.computed)({get:function(){return e.column&&e.column.filteredValue||[]},set:function(t){e.column&&e.upDataColumn("filteredValue",t)}}),p=(0,S.computed)((function(){return!e.column||e.column.filterMultiple})),d=function(){i.value=!1},f=function(t){e.store.commit("filterChange",{column:e.column,values:t}),e.store.updateAllSelected()};(0,S.watch)(i,(function(t){e.column&&e.upDataColumn("filterOpened",t)}),{immediate:!0});var h=(0,S.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:p,filterClassName:l,filteredValue:u,filterValue:c,filters:a,handleConfirm:function(){f(u.value),d()},handleReset:function(){u.value=[],f(u.value),d()},handleSelect:function(e){c.value=e,f(null!=e?u.value:[]),d()},isActive:function(e){return e.value===c.value},t:r,ns:n,showFilterPanel:function(e){e.stopPropagation(),i.value=!i.value},hideFilterPanel:function(){i.value=!1},popperPaneRef:h,tooltip:s}}});var Vs=r(66262);const Ws=(0,Vs.A)(Us,[["render",function(e,t,r,n,o,i){var s=(0,S.resolveComponent)("el-checkbox"),a=(0,S.resolveComponent)("el-checkbox-group"),l=(0,S.resolveComponent)("el-scrollbar"),c=(0,S.resolveComponent)("arrow-up"),u=(0,S.resolveComponent)("arrow-down"),p=(0,S.resolveComponent)("el-icon"),d=(0,S.resolveComponent)("el-tooltip"),f=(0,S.resolveDirective)("click-outside");return(0,S.openBlock)(),(0,S.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,S.withCtx)((function(){var r,n;return[e.multiple?((0,S.openBlock)(),(0,S.createElementBlock)("div",ks,[(0,S.createElementVNode)("div",{class:(0,S.normalizeClass)(e.ns.e("content"))},[(0,S.createVNode)(l,{"wrap-class":e.ns.e("wrap")},{default:(0,S.withCtx)((function(){return[(0,S.createVNode)(a,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.filteredValue=t}),class:(0,S.normalizeClass)(e.ns.e("checkbox-group"))},{default:(0,S.withCtx)((function(){return[((0,S.openBlock)(!0),(0,S.createElementBlock)(S.Fragment,null,(0,S.renderList)(e.filters,(function(e){return(0,S.openBlock)(),(0,S.createBlock)(s,{key:e.value,value:e.value},{default:(0,S.withCtx)((function(){return[(0,S.createTextVNode)((0,S.toDisplayString)(e.text),1)]})),_:2},1032,["value"])})),128))]})),_:1},8,["modelValue","class"])]})),_:1},8,["wrap-class"])],2),(0,S.createElementVNode)("div",{class:(0,S.normalizeClass)(e.ns.e("bottom"))},[(0,S.createElementVNode)("button",{class:(0,S.normalizeClass)((r={},r[e.ns.is("disabled")]=0===e.filteredValue.length,r)),disabled:0===e.filteredValue.length,type:"button",onClick:t[1]||(t[1]=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.handleConfirm&&e.handleConfirm.apply(e,t)})},(0,S.toDisplayString)(e.t("el.table.confirmFilter")),11,Ds),(0,S.createElementVNode)("button",{type:"button",onClick:t[2]||(t[2]=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.handleReset&&e.handleReset.apply(e,t)})},(0,S.toDisplayString)(e.t("el.table.resetFilter")),1)],2)])):((0,S.openBlock)(),(0,S.createElementBlock)("ul",{key:1,class:(0,S.normalizeClass)(e.ns.e("list"))},[(0,S.createElementVNode)("li",{class:(0,S.normalizeClass)([e.ns.e("list-item"),(n={},n[e.ns.is("active")]=void 0===e.filterValue||null===e.filterValue,n)]),onClick:t[3]||(t[3]=function(t){return e.handleSelect(null)})},(0,S.toDisplayString)(e.t("el.table.clearFilter")),3),((0,S.openBlock)(!0),(0,S.createElementBlock)(S.Fragment,null,(0,S.renderList)(e.filters,(function(t){return(0,S.openBlock)(),(0,S.createElementBlock)("li",{key:t.value,class:(0,S.normalizeClass)([e.ns.e("list-item"),e.ns.is("active",e.isActive(t))]),label:t.value,onClick:function(r){return e.handleSelect(t.value)}},(0,S.toDisplayString)(t.text),11,Ms)})),128))],2))]})),default:(0,S.withCtx)((function(){return[(0,S.withDirectives)(((0,S.openBlock)(),(0,S.createElementBlock)("span",{class:(0,S.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=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.showFilterPanel&&e.showFilterPanel.apply(e,t)})},[(0,S.createVNode)(p,null,{default:(0,S.withCtx)((function(){return[e.column.filterOpened?((0,S.openBlock)(),(0,S.createBlock)(c,{key:0})):((0,S.openBlock)(),(0,S.createBlock)(u,{key:1}))]})),_:1})],2)),[[f,e.hideFilterPanel,e.popperPaneRef]])]})),_:1},8,["visible","placement","popper-class"])}]]),$s=Ws,Ks=function(e){var t=(0,S.getCurrentInstance)();(0,S.onBeforeMount)((function(){r.value.addObserver(t)})),(0,S.onMounted)((function(){n(r.value),o(r.value)})),(0,S.onUpdated)((function(){n(r.value),o(r.value)})),(0,S.onUnmounted)((function(){r.value.removeObserver(t)}));var r=(0,S.computed)((function(){var t=e.layout;if(!t)throw new Error("Can not find table layout.");return t})),n=function(t){var r,n=(null===(r=e.vnode.el)||void 0===r?void 0:r.querySelectorAll("colgroup > col"))||[];if(n.length){var o=t.getFlattenColumns(),i={};te()(o).call(o,(function(e){i[e.id]=e}));for(var s=0,a=n.length;s<a;s++){var l=n[s],c=l.getAttribute("name"),u=i[c];u&&l.setAttribute("width",u.realWidth||u.width)}}},o=function(t){for(var r,n,o=(null===(r=e.vnode.el)||void 0===r?void 0:r.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===(n=e.vnode.el)||void 0===n?void 0:n.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:r.value,onColumnsChange:n,onScrollableChange:o}};var qs=rs()("ElTable"),zs=r(56255),Hs=r.n(zs);r(48598);const Gs=function(e){var t=(0,S.inject)(qs),r=(0,be.useNamespace)("table");return{getHeaderRowStyle:function(e){var r=null==t?void 0:t.props.headerRowStyle;return"function"==typeof r?r.call(null,{rowIndex:e}):r},getHeaderRowClass:function(e){var r=[],n=null==t?void 0:t.props.headerRowClassName;return"string"==typeof n?r.push(n):"function"==typeof n&&r.push(n.call(null,{rowIndex:e})),r.join(" ")},getHeaderCellStyle:function(r,n,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:r,columnIndex:n,row:o,column:i}));var l=Ni(n,i.fixed,e.store,o);return Li(l,"left"),Li(l,"right"),Xt()({},a,l)},getHeaderCellClass:function(n,o,i,s){var a=Mi(r.b(),o,s.fixed,e.store,i),l=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=R()(Array.prototype).call(t,0,o)),n[o]=t[o]);return k()(e).call(e,n||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:n,columnIndex:o,row:i,column:s})),l.push(r.e("cell")),$()(l).call(l,(function(e){return Boolean(e)})).join(" ")}}};var Qs=function(e){var t=[];return te()(e).call(e,(function(e){e.children?(t.push(e),t.push.apply(t,Qs(e.children))):t.push(e)})),t},Xs=function(e){var t=1,r=function(e,n){if(n&&(e.level=n.level+1,t<e.level&&(t=e.level)),e.children){var o,i=0;te()(o=e.children).call(o,(function(t){r(t,e),i+=t.colSpan})),e.colSpan=i}else e.colSpan=1};te()(e).call(e,(function(e){e.level=1,r(e,void 0)}));for(var n=[],o=0;o<t;o++)n.push([]);var i=Qs(e);return te()(i).call(i,(function(e){var r;e.children?(e.rowSpan=1,te()(r=e.children).call(r,(function(e){return e.isSubColumn=!0}))):e.rowSpan=t-e.level+1,n[e.level-1].push(e)})),n};const Ys=(0,S.defineComponent)({name:"ElTableHeader",components:{ElCheckbox:Is},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 r=this,n=t.emit,o=(0,S.getCurrentInstance)(),i=(0,S.inject)(qs),s=(0,be.useNamespace)("table"),a=(0,S.ref)({}),l=Ks(i),c=l.onColumnsChange,u=l.onScrollableChange;(0,S.onMounted)((function(){return t=r,n=void 0,s=function(){var t,r,n;return function(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=es()(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof rs()&&(s[os()]=function(){return this}),s;function a(a){return function(l){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=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++,n=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],n=0}finally{r=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,S.nextTick)()];case 1:return o.sent(),[4,(0,S.nextTick)()];case 2:return o.sent(),t=e.defaultSort,r=t.prop,n=t.order,null==i||i.store.commit("sort",{prop:r,order:n,init:!0}),[2]}}))},new((o=void 0)||(o=Ji()))((function(e,r){function i(e){try{l(s.next(e))}catch(e){r(e)}}function a(e){try{l(s.throw(e))}catch(e){r(e)}}function l(t){var r;t.done?e(t.value):(r=t.value,r instanceof o?r:new o((function(e){e(r)}))).then(i,a)}l((s=s.apply(t,n||[])).next())}));var t,n,o,s}));var p=function(e,t){var r=(0,S.getCurrentInstance)(),n=(0,S.inject)(qs),o=function(e){e.stopPropagation()},i=(0,S.ref)(null),s=(0,S.ref)(!1),a=(0,S.ref)({}),l=function(t,r,o){var i;t.stopPropagation();var s=r.order===o?null:o||function(e){var t=e.order,r=e.sortOrders;if(""===t)return r[0];var n=ne()(r).call(r,t||null);return r[n>r.length-2?0:n+1]}(r),a=null===(i=t.target)||void 0===i?void 0:i.closest("th");if(a&&(0,ie.hasClass)(a,"noclick"))(0,ie.removeClass)(a,"noclick");else if(r.sortable){var l,c=e.store.states,u=c.sortProp.value,p=c.sortingColumn.value;(p!==r||p===r&&null===p.order)&&(p&&(p.order=null),c.sortingColumn.value=r,u=r.property),l=r.order=s||null,c.sortProp.value=u,c.sortOrder.value=l,null==n||n.store.commit("changeSortCondition")}};return{handleHeaderClick:function(e,t){!t.filters&&t.sortable?l(e,t,!1):t.filterable&&!t.sortable&&o(e),null==n||n.emit("header-click",t,e)},handleHeaderContextMenu:function(e,t){null==n||n.emit("header-contextmenu",t,e)},handleMouseDown:function(o,l){if(ie.isClient&&!(l.children&&l.children.length>0)&&i.value&&e.border){s.value=!0;var c=n;t("set-drag-visible",!0);var u=(null==c?void 0:c.vnode.el).getBoundingClientRect().left,p=r.vnode.el.querySelector("th.".concat(l.id)),d=p.getBoundingClientRect(),f=d.left-u+30;(0,ie.addClass)(p,"noclick"),a.value={startMouseLeft:o.clientX,startLeft:d.right-u,startColumnLeft:d.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,r=a.value.startLeft+t;h.style.left="".concat(Math.max(f,r),"px")},y=function(){if(s.value){var r=a.value,n=r.startColumnLeft,u=r.startLeft,d=or()(h.style.left,10)-n;l.width=l.realWidth=d,null==c||c.emit("header-dragend",l.width,u-n,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,Hs()((function(){(0,ie.removeClass)(p,"noclick")}),0)};document.addEventListener("mousemove",m),document.addEventListener("mouseup",y)}},handleMouseMove:function(t,r){if(!(r.children&&r.children.length>0)){var n=t.target;if((0,ie.isElement)(n)){var o=null==n?void 0:n.closest("th");if(r&&r.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,ie.hasClass)(o,"is-sortable")&&(o.style.cursor="col-resize"),i.value=r):s.value||(l.cursor="",(0,ie.hasClass)(o,"is-sortable")&&(o.style.cursor="pointer"),i.value=null)}}}},handleMouseOut:function(){ie.isClient&&(document.body.style.cursor="")},handleSortClick:l,handleFilterClick:o}}(e,n),d=p.handleHeaderClick,f=p.handleHeaderContextMenu,h=p.handleMouseDown,m=p.handleMouseMove,y=p.handleMouseOut,g=p.handleSortClick,v=p.handleFilterClick,b=Gs(e),_=b.getHeaderRowStyle,E=b.getHeaderRowClass,x=b.getHeaderCellStyle,w=b.getHeaderCellClass,A=function(e){var t=(0,S.inject)(qs),r=(0,S.computed)((function(){return Xs(e.store.states.originColumns.value)}));return{isGroup:(0,S.computed)((function(){var e=r.value.length>1;return e&&t&&(t.state.isGroup.value=!0),e})),toggleAllSelection:function(e){e.stopPropagation(),null==t||t.store.commit("toggleAllSelection")},columnRows:r}}(e),T=A.isGroup,P=A.toggleAllSelection,C=A.columnRows;return o.state={onColumnsChange:c,onScrollableChange:u},o.filterPanels=a,{ns:s,filterPanels:a,onColumnsChange:c,onScrollableChange:u,columnRows:C,getHeaderRowClass:E,getHeaderRowStyle:_,getHeaderCellClass:w,getHeaderCellStyle:x,handleHeaderClick:d,handleHeaderContextMenu:f,handleMouseDown:h,handleMouseMove:m,handleMouseOut:y,handleSortClick:g,handleFilterClick:v,isGroup:T,toggleAllSelection:P}},render:function(){var e,t=this,r=t.ns,n=t.isGroup,o=t.columnRows,i=t.getHeaderCellStyle,s=t.getHeaderCellClass,a=t.getHeaderRowClass,l=t.getHeaderRowStyle,c=t.handleHeaderClick,u=t.handleHeaderContextMenu,p=t.handleMouseDown,d=t.handleMouseMove,f=t.handleSortClick,h=t.handleMouseOut,m=t.store,y=t.$parent,g=1;return(0,S.h)("thead",{class:(e={},e[r.is("group")]=n,e)},N()(o).call(o,(function(e,t){return(0,S.h)("tr",{class:a(t),key:t,style:l(t)},N()(e).call(e,(function(r,n){return r.rowSpan>g&&(g=r.rowSpan),(0,S.h)("th",{class:s(t,n,e,r),colspan:r.colSpan,key:"".concat(r.id,"-thead"),rowspan:r.rowSpan,style:i(t,n,e,r),onClick:function(e){e.currentTarget.classList.contains("noclick")||c(e,r)},onContextmenu:function(e){return u(e,r)},onMousedown:function(e){return p(e,r)},onMousemove:function(e){return d(e,r)},onMouseout:h},[(0,S.h)("div",{class:["cell",r.filteredValue&&r.filteredValue.length>0?"highlight":""]},[r.renderHeader?r.renderHeader({column:r,$index:n,store:m,_self:y}):r.label,r.sortable&&(0,S.h)("span",{onClick:function(e){return f(e,r)},class:"caret-wrapper"},[(0,S.h)("i",{onClick:function(e){return f(e,r,"ascending")},class:"sort-caret ascending"}),(0,S.h)("i",{onClick:function(e){return f(e,r,"descending")},class:"sort-caret descending"})]),r.filterable&&(0,S.h)($s,{store:m,placement:r.filterPlacement||"bottom-start",column:r,upDataColumn:function(e,t){r[e]=t}})])])})))})))}});var Js=r(49763),Zs=r.n(Js),ea=r(14404);const ta=(0,r(41703).A)((function(e,t,r){(0,ea.A)(e,t,r)}));function ra(e,t,r){return void 0===r&&(r=.01),e-t>r}const na=function(e){var t=(0,S.inject)(qs),r=(0,be.useNamespace)("table");return{getRowStyle:function(e,r){var n=null==t?void 0:t.props.rowStyle;return"function"==typeof n?n.call(null,{row:e,rowIndex:r}):n||null},getRowClass:function(n,o){var i=[r.e("row")];(null==t?void 0:t.props.highlightCurrentRow)&&n===e.store.states.currentRow.value&&i.push("current-row"),e.stripe&&o%2==1&&i.push(r.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:n,rowIndex:o})),i},getCellStyle:function(r,n,o,i){var s=null==t?void 0:t.props.cellStyle,a=null!=s?s:{};"function"==typeof s&&(a=s.call(null,{rowIndex:r,columnIndex:n,row:o,column:i}));var l=Ni(n,null==e?void 0:e.fixed,e.store);return Li(l,"left"),Li(l,"right"),Xt()({},a,l)},getCellClass:function(n,o,i,s,a){var l=Mi(r.b(),o,null==e?void 0:e.fixed,e.store,void 0,a),c=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=R()(Array.prototype).call(t,0,o)),n[o]=t[o]);return k()(e).call(e,n||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:n,columnIndex:o,row:i,column:s})),c.push(r.e("cell")),$()(c).call(c,(function(e){return Boolean(e)})).join(" ")},getSpan:function(e,r,n,o){var i=1,s=1,a=null==t?void 0:t.props.spanMethod;if("function"==typeof a){var l=a({row:e,column:r,rowIndex:n,columnIndex:o});M()(l)?(i=l[0],s=l[1]):"object"===(0,Gt.A)(l)&&(i=l.rowspan,s=l.colspan)}return{rowspan:i,colspan:s}},getColspanRealWidth:function(e,t,r){var n;if(t<1)return e[r].realWidth;var o=R()(n=N()(e).call(e,(function(e){var t=e.realWidth,r=e.width;return t||r}))).call(n,r,r+t);return Number(P()(o).call(o,(function(e,t){return Number(e)+Number(t)}),-1))}}};var oa=function(){return oa=Xt()||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},oa.apply(this,arguments)};const ia=function(e){var t=(0,S.inject)(qs),r=(0,be.useNamespace)("table"),n=function(e){var t=(0,S.inject)(qs),r=(0,S.ref)(""),n=(0,S.ref)((0,S.h)("div")),o=function(r,n,o){var i,s,a=t,l=_i(r),c=null===(i=null==a?void 0:a.vnode.el)||void 0===i?void 0:i.dataset.prefix;l&&(s=xi({columns:e.store.states.columns.value},l,c))&&(null==a||a.emit("cell-".concat(o),n,s,l,r)),null==a||a.emit("row-".concat(o),n,s,r)},i=(0,le.A)((function(t){e.store.commit("setHoverRow",t)}),30),s=(0,le.A)((function(){e.store.commit("setHoverRow",null)}),30),a=function(e,t,r){for(var n=t.target.parentNode;e>1&&(n=null==n?void 0:n.nextSibling)&&"TR"===n.nodeName;)r(n,"hover-row hover-fixed-row"),e--};return{handleDoubleClick:function(e,t){o(e,t,"dblclick")},handleClick:function(t,r){e.store.commit("setCurrentRow",r),o(t,r,"click")},handleContextMenu:function(e,t){o(e,t,"contextmenu")},handleMouseEnter:i,handleMouseLeave:s,handleCellMouseEnter:function(r,n,o){var i,s=t,l=_i(r),c=null===(i=null==s?void 0:s.vnode.el)||void 0===i?void 0:i.dataset.prefix;if(l){var u=xi({columns:e.store.states.columns.value},l,c);l.rowSpan>1&&a(l.rowSpan,r,ie.addClass);var p=s.hoverState={cell:l,column:u,row:n};null==s||s.emit("cell-mouse-enter",p.row,p.column,p.cell,r)}if(o&&(!o.showOverflowTooltip||"function"!=typeof o.showOverflowTooltip||o.showOverflowTooltip())){var d=r.target.querySelector(".cell");if((0,ie.hasClass)(d,"".concat(c,"-tooltip"))&&d.childNodes.length){var f=document.createRange();f.setStart(d,0),f.setEnd(d,d.childNodes.length);var h=f.getBoundingClientRect(),m=h.width,y=h.height,g=m-Math.floor(m),v=d.getBoundingClientRect(),b=v.width,_=v.height;g<.001&&(m=Math.floor(m)),y-Math.floor(y)<.001&&(y=Math.floor(y));var E,x,w=(E=d,x=window.getComputedStyle(E,null),{left:or()(x.paddingLeft,10)||0,right:or()(x.paddingRight,10)||0,top:or()(x.paddingTop,10)||0,bottom:or()(x.paddingBottom,10)||0}),A=w.top+w.bottom;(ra(m+(w.left+w.right),b)||ra(y+A,_)||ra(d.scrollWidth,b))&&function(e,t,r,n){if((null==Oi?void 0:Oi.trigger)!==r){null==Oi||Oi();var o=null==n?void 0:n.refs.tableWrapper,i=null==o?void 0:o.dataset.prefix,s=bi({strategy:"fixed"},e.popperOptions),a=(0,S.createVNode)(vi,bi(bi({content:t,virtualTriggering:!0,virtualRef:r,appendTo:o,placement:"top",transition:"none",offset:0,hideAfter:0},e),{popperOptions:s,onHide:function(){null==Oi||Oi()}}));a.appContext=bi(bi({},n.appContext),n);var l=document.createElement("div");(0,S.render)(a,l),a.component.exposed.onOpen();var c=null==o?void 0:o.querySelector(".".concat(i,"-scrollbar__wrap"));(Oi=function(){(0,S.render)(null,l),null==c||c.removeEventListener("scroll",Oi),Oi=null}).trigger=r,null==c||c.addEventListener("scroll",Oi)}}(o,l.innerText||l.textContent,l,s)}}},handleCellMouseLeave:function(e){var r=_i(e);if(r){r.rowSpan>1&&a(r.rowSpan,e,ie.removeClass);var n=null==t?void 0:t.hoverState;null==t||t.emit("cell-mouse-leave",null==n?void 0:n.row,null==n?void 0:n.column,null==n?void 0:n.cell,e)}},tooltipContent:r,tooltipTrigger:n}}(e),o=n.handleDoubleClick,i=n.handleClick,s=n.handleContextMenu,a=n.handleMouseEnter,l=n.handleMouseLeave,c=n.handleCellMouseEnter,u=n.handleCellMouseLeave,p=n.tooltipContent,d=n.tooltipTrigger,f=na(e),h=f.getRowStyle,m=f.getRowClass,y=f.getCellStyle,g=f.getCellClass,v=f.getSpan,b=f.getColspanRealWidth,_=(0,S.computed)((function(){var t;return er()(t=e.store.states.columns.value).call(t,(function(e){return"default"===e.type}))})),E=function(e,r){var n=t.props.rowKey;return n?Si(e,n):r},x=function(n,p,d,f){var x;void 0===f&&(f=!1);var A=e.tooltipEffect,T=e.tooltipOptions,P=e.store.states,C=P.indent,O=P.columns,I=m(n,p),D=!0;d&&(I.push(r.em("row","level-".concat(d.level))),D=d.display);var M=D?null:{display:"none"};return(0,S.h)("tr",{style:[M,h(n,p)],class:I,key:E(n,p),onDblclick:function(e){return o(e,n)},onClick:function(e){return i(e,n)},onContextmenu:function(e){return s(e,n)},onMouseenter:function(){return a(p)},onMouseleave:l},N()(x=O.value).call(x,(function(r,o){var i,s,a=v(n,r,p,o),l=a.rowspan,h=a.colspan;if(!l||!h)return null;var m=Xt()({},r);m.realWidth=b(O.value,h,o);var x={store:e.store,_self:e.context||t,column:m,row:n,$index:p,cellIndex:o,expanded:f};o===_.value&&d&&(x.treeNode={indent:d.level*C.value,level:d.level},"boolean"==typeof d.expanded&&(x.treeNode.expanded=d.expanded,"loading"in d&&(x.treeNode.loading=d.loading),"noLazyChildren"in d&&(x.treeNode.noLazyChildren=d.noLazyChildren)));var P=k()(i="".concat(E(n,p),",")).call(i,o),I=m.columnKey||m.rawColumnKey||"",D=w(o,r,x),M=r.showOverflowTooltip&&ta({effect:A},T,r.showOverflowTooltip);return"function"==typeof r.showOverflowTooltip&&(M.showOverflowTooltip=function(){return r.showOverflowTooltip(x)}),(0,S.h)("td",{style:y(p,o,n,r),class:g(p,o,n,r,h-1),key:k()(s="".concat(I)).call(s,P),rowspan:l,colspan:h,onMouseenter:function(e){return c(e,n,M)},onMouseleave:u},[D])})))},w=function(e,t,r){return t.renderCell(r)};return{wrappedRowRender:function(n,o){var i=e.store,s=i.isRowExpanded,a=i.assertRowKey,l=i.states,c=l.treeData,u=l.lazyTreeNodeMap,p=l.childrenColumnName,d=l.rowKey,f=i.states.columns.value,h=H()(f).call(f,(function(e){return"expand"===e.type}));if(h){var m,y=s(n),g=x(n,o,void 0,y),v=t.renderExpanded;return y?v?[[g,(0,S.h)("tr",{key:"expanded-row__".concat(g.key)},[(0,S.h)("td",{colspan:f.length,class:k()(m="".concat(r.e("cell")," ")).call(m,r.e("expanded-cell"))},[v({row:n,$index:o,store:i,expanded:y})])])]]:(console.error("[Element Error]renderExpanded is required."),g):[[g]]}if(O()(c.value).length){a();var b=Si(n,d.value),_=c.value[b],E=null;_&&(E={expanded:_.expanded,level:_.level,display:!0},"boolean"==typeof _.lazy&&("boolean"==typeof _.loaded&&_.loaded&&(E.noLazyChildren=!(_.children&&_.children.length)),E.loading=_.loading));var w=[x(n,o,E)];if(_){var A=0,T=function(e,t){e&&e.length&&t&&te()(e).call(e,(function(e){var r={display:t.display&&t.expanded,level:t.level+1,expanded:!1,noLazyChildren:!1,loading:!1},n=Si(e,d.value);if(null==n)throw new Error("For nested data item, row-key is required.");if((_=oa({},c.value[n]))&&(r.expanded=_.expanded,_.level=_.level||r.level,_.display=!(!_.expanded||!r.display),"boolean"==typeof _.lazy&&("boolean"==typeof _.loaded&&_.loaded&&(r.noLazyChildren=!(_.children&&_.children.length)),r.loading=_.loading)),A++,w.push(x(e,o+A,r)),_){var i=u.value[n]||e[p.value];T(i,_)}}))};_.display=!0;var P=u.value[b]||n[p.value];T(P,_)}return w}return x(n,o,void 0)},tooltipContent:p,tooltipTrigger:d}},sa={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},aa=(0,S.defineComponent)({name:"ElTableBody",props:sa,setup:function(e){var t=(0,S.getCurrentInstance)(),r=(0,S.inject)(qs),n=(0,be.useNamespace)("table"),o=ia(e),i=o.wrappedRowRender,s=o.tooltipContent,a=o.tooltipTrigger,l=Ks(r),c=l.onColumnsChange,u=l.onScrollableChange,p=[];return(0,S.watch)(e.store.states.hoverRow,(function(r,o){var i,s,a=null==t?void 0:t.vnode.el,l=$()(i=Zs()((null==a?void 0:a.children)||[])).call(i,(function(e){return null==e?void 0:e.classList.contains("".concat(n.e("row")))})),c=r,u=null===(s=l[c])||void 0===s?void 0:s.childNodes;if(null==u?void 0:u.length){var d,f=0,h=P()(d=Zs()(u)).call(d,(function(e,t,r){var n,o;return(null===(n=u[r])||void 0===n?void 0:n.colSpan)>1&&(f=null===(o=u[r])||void 0===o?void 0:o.colSpan),"TD"!==t.nodeName&&0===f&&e.push(r),f>0&&f--,e}),[]);te()(h).call(h,(function(e){var t;for(c=r;c>0;){var n=null===(t=l[c-1])||void 0===t?void 0:t.childNodes;if(n[e]&&"TD"===n[e].nodeName&&n[e].rowSpan>1){(0,ie.addClass)(n[e],"hover-cell"),p.push(n[e]);break}c--}}))}else te()(p).call(p,(function(e){return(0,ie.removeClass)(e,"hover-cell")})),p.length=0;e.store.states.isComplex.value&&ie.isClient&&(0,ie.rAF)((function(){var e=l[o],t=l[r];e&&!e.classList.contains("hover-fixed-row")&&(0,ie.removeClass)(e,"hover-row"),t&&(0,ie.addClass)(t,"hover-row")}))})),(0,S.onUnmounted)((function(){null==Oi||Oi()})),{ns:n,onColumnsChange:c,onScrollableChange:u,wrappedRowRender:i,tooltipContent:s,tooltipTrigger:a}},render:function(){var e=this.wrappedRowRender,t=this.store.states.data.value||[];return(0,S.h)("tbody",{tabIndex:-1},[P()(t).call(t,(function(t,r){return k()(t).call(t,e(r,t.length))}),[])])}});r(9868);var la=r(63579),ca=r.n(la);const ua=function(e){var t=function(){var e=(0,S.inject)(qs),t=null==e?void 0:e.store;return{leftFixedLeafCount:(0,S.computed)((function(){return t.states.fixedLeafColumnsLength.value})),rightFixedLeafCount:(0,S.computed)((function(){return t.states.rightFixedColumns.value.length})),columnsCount:(0,S.computed)((function(){return t.states.columns.value.length})),leftFixedCount:(0,S.computed)((function(){return t.states.fixedColumns.value.length})),rightFixedCount:(0,S.computed)((function(){return t.states.rightFixedColumns.value.length})),columns:t.states.columns}}().columns,r=(0,be.useNamespace)("table");return{getCellClasses:function(t,n){var o=t[n],i=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=R()(Array.prototype).call(t,0,o)),n[o]=t[o]);return k()(e).call(e,n||R()(Array.prototype).call(t))}([r.e("cell"),o.id,o.align,o.labelClassName],Mi(r.b(),n,o.fixed,e.store),!0);return o.className&&i.push(o.className),o.children||i.push(r.is("leaf")),i},getCellStyles:function(t,r){var n=Ni(r,t.fixed,e.store);return Li(n,"left"),Li(n,"right"),n},columns:t}};var pa=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=R()(Array.prototype).call(t,0,o)),n[o]=t[o]);return k()(e).call(e,n||R()(Array.prototype).call(t))};const da=(0,S.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=ua(e),r=t.getCellClasses,n=t.getCellStyles,o=t.columns;return{ns:(0,be.useNamespace)("table"),getCellClasses:r,getCellStyles:n,columns:o}},render:function(){var e=this,t=e.columns,r=e.getCellStyles,n=e.getCellClasses,o=e.summaryMethod,i=e.sumText,s=this.store.states.data.value,a=[];return o?a=o({columns:t,data:s}):te()(t).call(t,(function(e,t){if(0!==t){var r=N()(s).call(s,(function(t){return Number(t[e.property])})),n=[],o=!0;te()(r).call(r,(function(e){if(!V()(+e)){o=!1;var t="".concat(e).split(".")[1];n.push(t?t.length:0)}}));var l=Math.max.apply(null,n);a[t]=o?"":P()(r).call(r,(function(e,t){var r=Number(t);return V()(+r)?e:ca()((e+t).toFixed(Math.min(l,20)))}),0)}else a[t]=i})),(0,S.h)((0,S.h)("tfoot",[(0,S.h)("tr",{},pa([],N()(t).call(t,(function(e,o){return(0,S.h)("td",{key:o,colspan:e.colSpan,rowspan:e.rowSpan,class:n(t,o),style:r(e,o)},[(0,S.h)("div",{class:["cell",e.labelClassName]},[a[o]])])})),!0))]))}});var fa=r(165),ha=r.n(fa);const ma=function(e,t,r,n){var o=this,i=(0,S.ref)(!1),s=(0,S.ref)(null),a=(0,S.ref)(!1),l=(0,S.ref)({width:null,height:null,headerHeight:null}),c=(0,S.ref)(!1),u=(0,S.ref)(),p=(0,S.ref)(0),d=(0,S.ref)(0),f=(0,S.ref)(0),h=(0,S.ref)(0),m=(0,S.ref)(0);(0,S.watchEffect)((function(){t.setHeight(e.height)})),(0,S.watchEffect)((function(){t.setMaxHeight(e.maxHeight)})),(0,S.watch)((function(){return[e.currentRowKey,r.states.rowKey]}),(function(e){var t=e[0],n=e[1];(0,S.unref)(n)&&(0,S.unref)(t)&&r.setCurrentRowKey("".concat(t))}),{immediate:!0}),(0,S.watch)((function(){return e.data}),(function(e){n.store.commit("setData",e)}),{immediate:!0,deep:!0}),(0,S.watchEffect)((function(){e.expandRowKeys&&r.setExpandRowKeysAdapter(e.expandRowKeys)}));var y=(0,S.computed)((function(){return e.height||e.maxHeight||r.states.fixedColumns.value.length>0||r.states.rightFixedColumns.value.length>0})),g=(0,S.computed)((function(){return{width:t.bodyWidth.value?"".concat(t.bodyWidth.value,"px"):""}})),v=function(){y.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(_)};(0,S.onMounted)((function(){return t=o,i=void 0,a=function(){var t,o;return function(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=es()(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof rs()&&(s[os()]=function(){return this}),s;function a(a){return function(l){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=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++,n=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],n=0}finally{r=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,S.nextTick)()];case 1:return i.sent(),r.updateColumns(),E(),requestAnimationFrame(v),t=n.vnode.el,o=n.refs.headerWrapper,e.flexible&&t&&t.parentElement&&(t.parentElement.style.minWidth="0"),l.value={width:u.value=t.offsetWidth,height:t.offsetHeight,headerHeight:e.showHeader&&o?o.offsetHeight:null},te()(s=r.states.columns.value).call(s,(function(e){e.filteredValue&&e.filteredValue.length&&n.store.commit("filterChange",{column:e,values:e.filteredValue,silent:!0})})),n.$ready=!0,[2]}}))},new((s=void 0)||(s=Ji()))((function(e,r){function n(e){try{l(a.next(e))}catch(e){r(e)}}function o(e){try{l(a.throw(e))}catch(e){r(e)}}function l(t){var r;t.done?e(t.value):(r=t.value,r instanceof s?r:new s((function(e){e(r)}))).then(n,o)}l((a=a.apply(t,i||[])).next())}));var t,i,s,a}));var b=function(e){!function(e,r){var n;if(e){var o=$()(n=Zs()(e.classList)).call(n,(function(e){return!ha()(e).call(e,"is-scrolling-")}));o.push(t.scrollX.value?r:"is-scrolling-none"),e.className=o.join(" ")}}(n.refs.tableWrapper,e)},_=function(){if(n.refs.scrollBarRef){if(!t.scrollX.value){var e="is-scrolling-none";return r=e,void((o=n.refs.tableWrapper)&&o.classList.contains(r)||b(e))}var r,o,i=n.refs.scrollBarRef.wrapRef;if(i){var s=i.scrollLeft,a=i.offsetWidth,l=i.scrollWidth,c=n.refs,u=c.headerWrapper,p=c.footerWrapper;u&&(u.scrollLeft=s),p&&(p.scrollLeft=s),b(s>=l-a-1?"is-scrolling-right":0===s?"is-scrolling-left":"is-scrolling-middle")}}},E=function(){n.refs.scrollBarRef&&(n.refs.scrollBarRef.wrapRef&&(0,_e.MLh)(n.refs.scrollBarRef.wrapRef,"scroll",_,{passive:!0}),e.fit?(0,_e.wYm)(n.vnode.el,x):(0,_e.MLh)(window,"resize",x),(0,_e.wYm)(n.refs.bodyWrapper,(function(){var e,t;x(),null===(t=null===(e=n.refs)||void 0===e?void 0:e.scrollBarRef)||void 0===t||t.update()})))},x=function(){var t,r,o,i,s=n.vnode.el;if(n.$ready&&s){var a=!1,c=l.value,g=c.width,b=c.height,_=c.headerHeight,E=u.value=s.offsetWidth;g!==E&&(a=!0);var x=s.offsetHeight;(e.height||y.value)&&b!==x&&(a=!0);var S="fixed"===e.tableLayout?n.refs.headerWrapper:null===(t=n.refs.tableHeaderRef)||void 0===t?void 0:t.$el;e.showHeader&&(null==S?void 0:S.offsetHeight)!==_&&(a=!0),p.value=(null===(r=n.refs.tableWrapper)||void 0===r?void 0:r.scrollHeight)||0,f.value=(null==S?void 0:S.scrollHeight)||0,h.value=(null===(o=n.refs.footerWrapper)||void 0===o?void 0:o.offsetHeight)||0,m.value=(null===(i=n.refs.appendWrapper)||void 0===i?void 0:i.offsetHeight)||0,d.value=p.value-f.value-h.value-m.value,a&&(l.value={width:E,height:x,headerHeight:e.showHeader&&(null==S?void 0:S.offsetHeight)||0},v())}},w=ds(),A=(0,S.computed)((function(){var e=t.bodyWidth,r=t.scrollY,n=t.gutterWidth;return e.value?"".concat(e.value-(r.value?n:0),"px"):""})),T=(0,S.computed)((function(){return e.maxHeight?"fixed":e.tableLayout})),P=(0,S.computed)((function(){if(e.data&&e.data.length)return null;var t="100%";e.height&&d.value&&(t="".concat(d.value,"px"));var r=u.value;return{width:r?"".concat(r,"px"):"",height:t}})),C=(0,S.computed)((function(){return e.height?{height:V()(Number(e.height))?e.height:"".concat(e.height,"px")}:e.maxHeight?{maxHeight:V()(Number(e.maxHeight))?e.maxHeight:"".concat(e.maxHeight,"px")}:{}})),O=(0,S.computed)((function(){return e.height?{height:"100%"}:e.maxHeight?V()(Number(e.maxHeight))?{maxHeight:k()(t="calc(".concat(e.maxHeight," - ")).call(t,f.value+h.value,"px)")}:{maxHeight:"".concat(e.maxHeight-f.value-h.value,"px")}:{};var t}));return{isHidden:i,renderExpanded:s,setDragVisible:function(e){a.value=e},isGroup:c,handleMouseLeave:function(){n.store.commit("setHoverRow",null),n.hoverState&&(n.hoverState=null)},handleHeaderFooterMousewheel:function(e,t){var r=t.pixelX,o=t.pixelY;Math.abs(r)>=Math.abs(o)&&(n.refs.bodyWrapper.scrollLeft+=t.pixelX/5)},tableSize:w,emptyBlockStyle:P,handleFixedMousewheel:function(e,t){var r=n.refs.bodyWrapper;if(Math.abs(t.spinY)>0){var o=r.scrollTop;t.pixelY<0&&0!==o&&e.preventDefault(),t.pixelY>0&&r.scrollHeight-r.clientHeight>o&&e.preventDefault(),r.scrollTop+=Math.ceil(t.pixelY/5)}else r.scrollLeft+=Math.ceil(t.pixelX/5)},resizeProxyVisible:a,bodyWidth:A,resizeState:l,doLayout:v,tableBodyStyles:g,tableLayout:T,scrollbarViewStyle:{display:"inline-block",verticalAlign:"middle"},tableInnerStyle:C,scrollbarStyle:O}};const ya={data:{type:Array,default:function(){return[]}},size:be.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 ga(e){var t="auto"===e.tableLayout,r=e.columns||[];return t&&Q()(r).call(r,(function(e){return void 0===e.width}))&&(r=[]),(0,S.h)("colgroup",{},N()(r).call(r,(function(r){return(0,S.h)("col",function(r){var n,o={key:k()(n="".concat(e.tableLayout,"_")).call(n,r.id),style:{},name:void 0};return t?o.style={width:"".concat(r.width,"px")}:o.name=r.id,o}(r))})))}r(62010),ga.props=["columns","tableLayout"];var va=1;const ba=(0,S.defineComponent)({name:"ElTable",directives:{Mousewheel:ve},components:{TableHeader:Ys,TableBody:aa,TableFooter:da,ElScrollbar:Ht,hColgroup:ga},props:ya,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,r=(0,be.useLocale)().t,n=(0,be.useNamespace)("table"),o=(0,S.getCurrentInstance)();(0,S.provide)(qs,o);var i=function(e,t){var r;if(!e)throw new Error("Table is required.");var n=Ki();return n.toggleAllSelection=(0,le.A)(n._toggleAllSelection,10),te()(r=O()(zi)).call(r,(function(e){Hi(Gi(t,e),e,n)})),function(e,t){var r;te()(r=O()(zi)).call(r,(function(r){(0,S.watch)((function(){return Gi(t,r)}),(function(t){Hi(t,r,e)}))}))}(n,t),n}(o,e);o.store=i;var s=new Xi({store:o.store,table:o,fit:e.fit,showHeader:e.showHeader});o.layout=s;var a=(0,S.computed)((function(){return 0===(i.states.data.value||[]).length})),l=function(e){return{setCurrentRow:function(t){e.commit("setCurrentRow",t)},getSelectionRows:function(){return e.getSelectionRows()},toggleRowSelection:function(t,r){e.toggleRowSelection(t,r,!1),e.updateAllSelected()},clearSelection:function(){e.clearSelection()},clearFilter:function(t){e.clearFilter(t)},toggleAllSelection:function(){e.commit("toggleAllSelection")},toggleRowExpansion:function(t,r){e.toggleRowExpansionAdapter(t,r)},clearSort:function(){e.clearSort()},sort:function(t,r){e.commit("sort",{prop:t,order:r})}}}(i),c=l.setCurrentRow,u=l.getSelectionRows,p=l.toggleRowSelection,d=l.clearSelection,f=l.clearFilter,h=l.toggleAllSelection,m=l.toggleRowExpansion,y=l.clearSort,g=F()(l),v=ma(e,s,i,o),b=v.isHidden,_=v.renderExpanded,E=v.setDragVisible,x=v.isGroup,w=v.handleMouseLeave,A=v.handleHeaderFooterMousewheel,T=v.tableSize,P=v.emptyBlockStyle,C=v.handleFixedMousewheel,I=v.resizeProxyVisible,D=v.bodyWidth,M=v.resizeState,j=v.doLayout,N=v.tableBodyStyles,L=v.tableLayout,R=v.scrollbarViewStyle,B=v.tableInnerStyle,U=v.scrollbarStyle,V=function(){var e=(0,S.ref)(),t=function(t,r){var n,o=e.value;o&&(0,ie.isNumber)(r)&&Y()(n=["Top","Left"]).call(n,t)&&o["setScroll".concat(t)](r)};return{scrollBarRef:e,scrollTo:function(t,r){var n=e.value;n&&n.scrollTo(t,r)},setScrollTop:function(e){return t("Top",e)},setScrollLeft:function(e){return t("Left",e)}}}(),W=V.scrollBarRef,$=V.scrollTo,K=V.setScrollLeft,q=V.setScrollTop,z=(0,le.A)(j,50),H=k()(t="".concat(n.namespace.value,"-table_")).call(t,va++);o.tableId=H,o.state={isGroup:x,resizeState:M,doLayout:j,debouncedUpdateLayout:z};var G=(0,S.computed)((function(){return e.sumText||r("el.table.sumText")})),Q=(0,S.computed)((function(){return e.emptyText||r("el.table.emptyText")})),X=(0,S.computed)((function(){return Xs(i.states.originColumns.value)[0]}));return function(e){var t=(0,S.ref)();(0,S.onMounted)((function(){var r,n;r=e.vnode.el.querySelector(".hidden-columns"),n=e.store.states.updateOrderFns,t.value=new MutationObserver((function(){te()(n).call(n,(function(e){return e()}))})),t.value.observe(r,{childList:!0,subtree:!0})})),(0,S.onUnmounted)((function(){var e;null===(e=t.value)||void 0===e||e.disconnect()}))}(o),{ns:n,layout:s,store:i,columns:X,handleHeaderFooterMousewheel:A,handleMouseLeave:w,tableId:H,tableSize:T,isHidden:b,isEmpty:a,renderExpanded:_,resizeProxyVisible:I,resizeState:M,isGroup:x,bodyWidth:D,tableBodyStyles:N,emptyBlockStyle:P,debouncedUpdateLayout:z,handleFixedMousewheel:C,setCurrentRow:c,getSelectionRows:u,toggleRowSelection:p,clearSelection:d,clearFilter:f,toggleAllSelection:h,toggleRowExpansion:m,clearSort:y,doLayout:j,sort:g,t:r,setDragVisible:E,context:o,computedSumText:G,computedEmptyText:Q,tableLayout:L,scrollbarViewStyle:R,tableInnerStyle:B,scrollbarStyle:U,scrollBarRef:W,scrollTo:$,setScrollLeft:K,setScrollTop:q}}}),_a=(0,Vs.A)(ba,[["render",function(e,t,r,n,o,i){var s,a=(0,S.resolveComponent)("hColgroup"),l=(0,S.resolveComponent)("table-header"),c=(0,S.resolveComponent)("table-body"),u=(0,S.resolveComponent)("table-footer"),p=(0,S.resolveComponent)("el-scrollbar"),d=(0,S.resolveDirective)("mousewheel");return(0,S.openBlock)(),(0,S.createElementBlock)("div",{ref:"tableWrapper",class:(0,S.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,S.normalizeStyle)(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.handleMouseLeave&&e.handleMouseLeave.apply(e,t)})},[(0,S.createElementVNode)("div",{class:(0,S.normalizeClass)(e.ns.e("inner-wrapper")),style:(0,S.normalizeStyle)(e.tableInnerStyle)},[(0,S.createElementVNode)("div",ae,[(0,S.renderSlot)(e.$slots,"default")],512),e.showHeader&&"fixed"===e.tableLayout?(0,S.withDirectives)(((0,S.openBlock)(),(0,S.createElementBlock)("div",{key:0,ref:"headerWrapper",class:(0,S.normalizeClass)(e.ns.e("header-wrapper"))},[(0,S.createElementVNode)("table",{ref:"tableHeader",class:(0,S.normalizeClass)(e.ns.e("header")),style:(0,S.normalizeStyle)(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[(0,S.createVNode)(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),(0,S.createVNode)(l,{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,S.createCommentVNode)("v-if",!0),(0,S.createElementVNode)("div",{ref:"bodyWrapper",class:(0,S.normalizeClass)(e.ns.e("body-wrapper"))},[(0,S.createVNode)(p,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn},{default:(0,S.withCtx)((function(){return[(0,S.createElementVNode)("table",{ref:"tableBody",class:(0,S.normalizeClass)(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:(0,S.normalizeStyle)({width:e.bodyWidth,tableLayout:e.tableLayout})},[(0,S.createVNode)(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&"auto"===e.tableLayout?((0,S.openBlock)(),(0,S.createBlock)(l,{key:0,ref:"tableHeaderRef",class:(0,S.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,S.createCommentVNode)("v-if",!0),(0,S.createVNode)(c,{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,S.openBlock)(),(0,S.createBlock)(u,{key:1,class:(0,S.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,S.createCommentVNode)("v-if",!0)],6),e.isEmpty?((0,S.openBlock)(),(0,S.createElementBlock)("div",{key:0,ref:"emptyBlock",style:(0,S.normalizeStyle)(e.emptyBlockStyle),class:(0,S.normalizeClass)(e.ns.e("empty-block"))},[(0,S.createElementVNode)("span",{class:(0,S.normalizeClass)(e.ns.e("empty-text"))},[(0,S.renderSlot)(e.$slots,"empty",{},(function(){return[(0,S.createTextVNode)((0,S.toDisplayString)(e.computedEmptyText),1)]}))],2)],6)):(0,S.createCommentVNode)("v-if",!0),e.$slots.append?((0,S.openBlock)(),(0,S.createElementBlock)("div",{key:1,ref:"appendWrapper",class:(0,S.normalizeClass)(e.ns.e("append-wrapper"))},[(0,S.renderSlot)(e.$slots,"append")],2)):(0,S.createCommentVNode)("v-if",!0)]})),_:3},8,["view-style","wrap-style","always"])],2),e.showSummary&&"fixed"===e.tableLayout?(0,S.withDirectives)(((0,S.openBlock)(),(0,S.createElementBlock)("div",{key:1,ref:"footerWrapper",class:(0,S.normalizeClass)(e.ns.e("footer-wrapper"))},[(0,S.createElementVNode)("table",{class:(0,S.normalizeClass)(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:(0,S.normalizeStyle)(e.tableBodyStyles)},[(0,S.createVNode)(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),(0,S.createVNode)(u,{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)),[[S.vShow,!e.isEmpty],[d,e.handleHeaderFooterMousewheel]]):(0,S.createCommentVNode)("v-if",!0),e.border||e.isGroup?((0,S.openBlock)(),(0,S.createElementBlock)("div",{key:2,class:(0,S.normalizeClass)(e.ns.e("border-left-patch"))},null,2)):(0,S.createCommentVNode)("v-if",!0)],6),(0,S.withDirectives)((0,S.createElementVNode)("div",{ref:"resizeProxy",class:(0,S.normalizeClass)(e.ns.e("column-resize-proxy"))},null,2),[[S.vShow,e.resizeProxyVisible]])],46,se)}]]),Ea=_a;var xa={selection:"table-column--selection",expand:"table__expand-column"},Sa={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:""}},wa={selection:{renderHeader:function(e){var t=e.store,r=e.column;return(0,S.h)(Is,{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:r.label})},renderCell:function(e){var t=e.row,r=e.column,n=e.store,o=e.$index;return(0,S.h)(Is,{disabled:!!r.selectable&&!r.selectable.call(null,t,o),size:n.states.tableSize.value,onChange:function(){n.commit("rowSelectedChanged",t)},onClick:function(e){return e.stopPropagation()},modelValue:n.isSelected(t),ariaLabel:r.label})},sortable:!1,resizable:!1},index:{renderHeader:function(e){return e.column.label||"#"},renderCell:function(e){var t=e.column,r=e.$index,n=r+1,o=t.index;return"number"==typeof o?n=r+o:"function"==typeof o&&(n=o(r)),(0,S.h)("div",{},[n])},sortable:!1},expand:{renderHeader:function(e){return e.column.label||""},renderCell:function(e){var t=e.row,r=e.store,n=e.expanded,o=r.ns,i=[o.e("expand-icon")];return n&&i.push(o.em("expand-icon","expanded")),(0,S.h)("div",{class:i,onClick:function(e){e.stopPropagation(),r.toggleRowExpansion(t)}},{default:function(){return[(0,S.h)(js.ElIcon,null,{default:function(){return[(0,S.h)(Ns.ArrowRight)]}})]}})},sortable:!1,resizable:!1}};function Aa(e){var t,r=e.row,n=e.column,o=e.$index,i=n.property,s=i&&(0,ie.getProp)(r,i).value;return n&&n.formatter?n.formatter(r,n,s,o):(null===(t=null==s?void 0:s.toString)||void 0===t?void 0:t.call(s))||""}function Ta(e,t){return P()(e).call(e,(function(e,t){return e[t]=t,e}),t)}const Pa={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 Q()(e).call(e,(function(e){var t;return Y()(t=["ascending","descending",null]).call(t,e)}))}}};var Ca=function(){return Ca=Xt()||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ca.apply(this,arguments)},Oa=1;const Ia=(0,S.defineComponent)({name:"ElTableColumn",components:{ElCheckbox:Is},props:Pa,setup:function(e,t){var r,n=t.slots,o=(0,S.getCurrentInstance)(),i=(0,S.ref)({}),s=(0,S.computed)((function(){for(var e=o.parent;e&&!e.tableId;)e=e.parent;return e})),a=function(e,t){var r=(0,S.getCurrentInstance)();return{registerComplexWatchers:function(){var n,o={realWidth:"width",realMinWidth:"minWidth"},i=Ta(["fixed"],o);te()(n=O()(i)).call(n,(function(n){var i=o[n];(0,ie.hasOwn)(t,i)&&(0,S.watch)((function(){return t[i]}),(function(t){var o=t;"width"===i&&"realWidth"===n&&(o=Ai(t)),"minWidth"===i&&"realMinWidth"===n&&(o=Ti(t)),r.columnConfig.value[i]=o,r.columnConfig.value[n]=o;var s="fixed"===i;e.value.store.scheduleLayout(s)}))}))},registerNormalWatchers:function(){var e,n={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},o=Ta(["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip"],n);te()(e=O()(o)).call(e,(function(e){var o=n[e];(0,ie.hasOwn)(t,o)&&(0,S.watch)((function(){return t[o]}),(function(t){r.columnConfig.value[e]=t}))}))}}}(s,e),l=a.registerNormalWatchers,c=a.registerComplexWatchers,u=function(e,t,r){var n=(0,S.getCurrentInstance)(),o=(0,S.ref)(""),i=(0,S.ref)(!1),s=(0,S.ref)(),a=(0,S.ref)(),l=(0,be.useNamespace)("table");(0,S.watchEffect)((function(){s.value=e.align?"is-".concat(e.align):null,s.value})),(0,S.watchEffect)((function(){a.value=e.headerAlign?"is-".concat(e.headerAlign):s.value,a.value}));var c=(0,S.computed)((function(){for(var e=n.vnode.vParent||n.parent;e&&!e.tableId&&!e.columnId;)e=e.vnode.vParent||e.parent;return e})),u=(0,S.computed)((function(){var e=n.parent.store;if(!e)return!1;var t=e.states.treeData.value;return t&&O()(t).length>0})),p=(0,S.ref)(Ai(e.width)),d=(0,S.ref)(Ti(e.minWidth));return{columnId:o,realAlign:s,isSubColumn:i,realHeaderAlign:a,columnOrTableParent:c,setColumnWidth:function(e){return p.value&&(e.width=p.value),d.value&&(e.minWidth=d.value),!p.value&&d.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,r=e.type,n=wa[r]||{};te()(t=O()(n)).call(t,(function(t){var r=n[t];"className"!==t&&void 0!==r&&(e[t]=r)}));var o=function(e){return xa[e]||""}(r);if(o){var i,s,a=k()(i="".concat((0,S.unref)(l.namespace),"-")).call(i,o);e.className=e.className?k()(s="".concat(e.className," ")).call(s,a):a}return e},setColumnRenders:function(o){e.renderHeader?(0,ie.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 n.columnConfig.value.label,(0,S.renderSlot)(t,"header",e,(function(){return[o.label]}))});var i=o.renderCell;return"expand"===o.type?(o.renderCell=function(e){return(0,S.h)("div",{class:"cell"},[i(e)])},r.value.renderExpanded=function(e){return t.default?t.default(e):t.default}):(i=i||Aa,o.renderCell=function(e){var s,a=null;if(t.default){var c=t.default(e);a=H()(c).call(c,(function(e){return e.type!==S.Comment}))?c:i(e)}else a=i(e);var p,d=r.value.store.states.columns,f=er()(s=d.value).call(s,(function(e){return"default"===e.type})),h=function(e,t){var r=e.row,n=e.treeNode,o=e.store;void 0===t&&(t=!1);var i=o.ns;if(!n)return t?[(0,S.h)("span",{class:i.e("placeholder")})]:null;var s=[];if(n.indent&&s.push((0,S.h)("span",{class:i.e("indent"),style:{"padding-left":"".concat(n.indent,"px")}})),"boolean"!=typeof n.expanded||n.noLazyChildren)s.push((0,S.h)("span",{class:i.e("placeholder")}));else{var a=[i.e("expand-icon"),n.expanded?i.em("expand-icon","expanded"):""],l=Ns.ArrowRight;n.loading&&(l=Ns.Loading),s.push((0,S.h)("div",{class:a,onClick:function(e){e.stopPropagation(),n.loading||o.loadOrToggle(r)}},{default:function(){var e;return[(0,S.h)(js.ElIcon,{class:(e={},e[i.is("loading")]=n.loading,e)},{default:function(){return[(0,S.h)(l)]}})]}}))}return s}(e,u.value&&e.cellIndex===f),m={class:"cell",style:{}};return o.showOverflowTooltip&&(m.class=k()(p="".concat(m.class," ")).call(p,(0,S.unref)(l.namespace),"-tooltip"),m.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=n)}M()(e)?te()(e).call(e,(function(e){return t(e)})):t(e)}(a),(0,S.h)("div",m,[h,a])}),o},getPropsData:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return P()(t).call(t,(function(t,r){return M()(r)&&te()(r).call(r,(function(r){t[r]=e[r]})),t}),{})},getColumnElIndex:function(e,t){return ne()(Array.prototype).call(e,t)},updateColumnOrder:function(){r.value.store.commit("updateColumnOrder",n.columnConfig.value)}}}(e,n,s),p=u.columnId,d=u.isSubColumn,f=u.realHeaderAlign,h=u.columnOrTableParent,m=u.setColumnWidth,y=u.setColumnForcedProps,g=u.setColumnRenders,v=u.getPropsData,b=u.getColumnElIndex,_=u.realAlign,E=u.updateColumnOrder,x=h.value;p.value=k()(r="".concat(x.tableId||x.columnId,"_column_")).call(r,Oa++),(0,S.onBeforeMount)((function(){d.value=s.value!==x;var t=e.type||"default",r=""===e.sortable||e.sortable,n=(0,ie.isUndefined)(e.showOverflowTooltip)?x.props.showOverflowTooltip:e.showOverflowTooltip,a=Ca(Ca({},Sa[t]),{id:p.value,type:t,property:e.prop||e.property,align:_,headerAlign:f,showOverflowTooltip:n,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:r,index:e.index,rawColumnKey:o.vnode.key}),u=v(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);u=function(e,t){var r,n={};for(r in e)n[r]=e[r];for(r in t)if((0,ie.hasOwn)(t,r)){var o=t[r];void 0!==o&&(n[r]=o)}return n}(a,u);var h=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]:P()(e).call(e,(function(e,t){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e(t.apply(void 0,r))}}))}(g,m,y);u=h(u),i.value=u,l(),c()})),(0,S.onMounted)((function(){var e,t=h.value,r=d.value?t.vnode.el.children:null===(e=t.refs.hiddenColumns)||void 0===e?void 0:e.children,n=function(){return b(r||[],o.vnode.el)};i.value.getColumnIndex=n,n()>-1&&s.value.store.commit("insertColumn",i.value,d.value?t.columnConfig.value:null,E)})),(0,S.onBeforeUnmount)((function(){i.value.getColumnIndex()>-1&&s.value.store.commit("removeColumn",i.value,d.value?x.columnConfig.value:null,E)})),o.columnId=p.value,o.columnConfig=i},render:function(){var e,t,r;try{var n=null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e,{row:{},column:{},$index:-1}),o=[];if(M()(n))for(var i=0,s=n;i<s.length;i++){var a=s[i];if("ElTableColumn"===(null===(r=a.type)||void 0===r?void 0:r.name)||2&a.shapeFlag)o.push(a);else if(a.type===S.Fragment&&M()(a.children)){var l;te()(l=a.children).call(l,(function(e){1024===(null==e?void 0:e.patchFlag)||(0,ie.isString)(null==e?void 0:e.children)||o.push(e)}))}}return(0,S.h)("div",o)}catch(e){return(0,S.h)("div",[])}}}),ka=Ia,Da=(0,ie.withInstall)(Ea,{TableColumn:ka});var Ma=(0,ie.withNoopInstall)(ka),ja=r(50510),Na=r(17427),La=(r(25383),r(62953),r(54554));function Ra(){return Ra=(0,b.A)((0,v.A)().mark((function e(t){var r,n,o,i,s,a,l,c,u,p,d,f,h,m;return(0,v.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.props,n=t.data,o=t.lang,i=t.rootValue,s=t.dynamicMapComp,a=t.messageInstance,l=t.isFrontPage,c=t.page,l){e.next=3;break}return e.abrupt("return",!0);case 3:u=r.config.multiPmPageMetaList||[],p=n||[],d=(c.pageNum-1)*c.pageSize,f=c.pageNum*c.pageSize,h=(0,v.A)().mark((function e(t){var n,l,h,m,y;return(0,v.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t<d||t>=f)){e.next=11;break}n=p[t],l=u[t]||u[t%c.pageSize]||u[0],h={row:n,$index:t},m=(0,v.A)().mark((function e(){var u,p,d,f,m,g,_;return(0,v.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u=l[y],p=Ba(u,r,h),d={lang:o,rootValue:i,dynamicMapComp:s,props:p,messageInstance:a},f={disabled:(0,Na.AP)(u,r.mode)},!(m=(0,Na.eM)(u,o,d,f,!0))||!m.length){e.next=10;break}return g=function(){var e=(0,b.A)((0,v.A)().mark((function e(){return(0,v.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,_.validate((0,x.A)({},u.dynamicHireRelat,n[u.metaCode]));case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return",new(Ji())((function(e,r){Hs()((function(){var e=0;t&&(e=A()((t+1)/c.pageSize),(t+1)%c.pageSize&&e++),c.pageNum=e,r({})}))})));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(){return e.apply(this,arguments)}}(),_=new La.A((0,x.A)({},u.dynamicHireRelat,m)),e.next=10,g();case 10:case"end":return e.stop()}}),e)})),y=0;case 6:if(!(y<l.length)){e.next=11;break}return e.delegateYield(m(),"t0",8);case 8:y++,e.next=6;break;case 11:case"end":return e.stop()}}),e)})),m=0;case 9:if(!(m<p.length)){e.next=14;break}return e.delegateYield(h(m),"t0",11);case 11:m++,e.next=9;break;case 14:return e.abrupt("return",!0);case 15:case"end":return e.stop()}}),e)}))),Ra.apply(this,arguments)}function Ba(e,t,r){return{config:e,modelValue:r.row[e.metaCode],rowScope:r,mode:t.mode}}var Fa=r(49027),Ua=r(9318);const Va={inheritAttrs:!1,name:"CustomComponentTable",props:(Wa=Na.yz,$a=oe.ElTableV2,Ka=Da,qa=oe.ElPagination,za=(0,E.A)((0,E.A)((0,E.A)((0,E.A)({},Wa),$a.props),{},{headerHeight:{type:Number,default:40},rowHeight:{type:Number,default:40}},Ka.props),qa.props),delete za.columns,delete za.data,za),setup:function(e,t){var r=t.expose,n=t.attrs,o=t.emit,i=["align","class","key","dataKey","fixed","flexGrow","flexShrink","headerClass","style","sortable","title","maxWidth","minWidth","width"],s=(0,S.computed)((function(){var t;return"1"==(null===(t=e.config)||void 0===t?void 0:t.isVirtualized)})),a=(0,S.reactive)({show:!1,triggerRef:null,content:""}),l=(0,S.computed)({get:function(){return A()(e.config.defaultPageablePageSize)||10},set:function(t){e.config.defaultPageablePageSize=t}}),c=(0,S.computed)({get:function(){return p.value?l.value:A()(e.config.pageSize)||5},set:function(t){p.value&&(l.value=t),e.config.pageSize=t}}),u=(0,S.reactive)({pageNum:1,pageSize:c,total:0}),p=(0,S.computed)((function(){var t,r,n;return!!Fa.F&&!("1"==(null===(t=e.config)||void 0===t?void 0:t.frontPageFlag)||"1"==(null===(r=e.config)||void 0===r?void 0:r.pageable))&&(null===(n=G.value)||void 0===n?void 0:n.length)>10})),d=(0,S.computed)((function(){var t;return("1"==(null===(t=e.config)||void 0===t?void 0:t.frontPageFlag)||p.value)&&!s.value})),f=(0,S.computed)((function(){var t;return(d.value||"1"==(null===(t=e.config)||void 0===t?void 0:t.pageable))&&!s.value})),h=(0,S.computed)((function(){var t;return null===(t=e.config)||void 0===t?void 0:t.pageAlign})),m="right",y=(0,x.A)((0,x.A)((0,x.A)({},"left","flex-start"),m,"flex-end"),"center","center"),g=(0,S.computed)((function(){var t,r;return"1"==(null===(t=e.config)||void 0===t?void 0:t.selectable)||(null===(r=e.config)||void 0===r?void 0:r.canSelect)})),w=(0,S.inject)("OPEN_DATA_RULES"),T=(0,S.inject)(oe.formContextKey,void 0),C=(0,S.inject)("_messageInstance"),I=(0,S.inject)("indectModeRef",(0,S.ref)("")),D=((0,S.inject)("_ruleExecuter"),(0,S.inject)("dynamicMapComp")),j=(0,S.inject)("_parentRootValue",{}),L=(0,S.inject)("_parentDynamicMapComp",{}),B=(0,S.inject)("_selectionsObj",{}),U=(0,S.inject)("_rootStore",{}),W=(0,S.inject)("lang"),K=(0,S.inject)("rootValue"),z=(0,S.inject)("selects"),G=(0,S.computed)({get:function(){return e.modelValue},set:function(e){o("update:modelValue",e)}}),X=(0,S.computed)((function(){var t,r=s.value?oe.ElTableV2:Da,n=P()(t=O()(r.props)).call(t,(function(t,r){return void 0!==e[r]&&null!==e[r]&&(t[r]=e[r]),t}),{});if(n.border||(n.border=!0),n.stripe||(n.stripe=!0),s.value){var o=n.headerClass;n.headerClass=function(e){var t,r="table-v2-common-row",n="function"==typeof o?o(e):o;return n&&(r=k()(t="".concat(n," ")).call(t,r)),r};var i=n.rowClass;n.rowClass=function(e){var t,r=e.rowIndex,n="table-v2-common-row",o="function"==typeof i?i(e):i;return o&&(n=k()(t="".concat(o," ")).call(t,n)),r%2==1&&(n="".concat(n," table-v2-striped")),n}}return n})),J=(0,S.computed)((function(){return e.config.multiPmPageMetaList||[]})),ee=function(e){var t=e.emits||{};return M()(t)||(t=O()(t)),P()(t).call(t,(function(e,t){var r="on".concat((0,Na.ZH)((0,Na.PT)(t)));return(0,Na.$3)(n,r)&&(e[r]=n[r]),e}),{})},re=(0,S.computed)((function(){var e=s.value?oe.ElTableV2:Da;return ee(e)})),ie=(0,S.computed)((function(){var e=(0,E.A)({},re.value||{});return delete e.onSortChange,e})),se=(0,S.computed)((function(){return ee(oe.ElPagination)})),ae=(0,S.ref)(""),le=(0,S.computed)((function(){var t=e.config.pmPageMetaList||[];return N()(t).call(t,(function(t){return t.displayType===Na.Op||0==e.width||"0px"==e.width||"1"==t.hidden||ae.value||(ae.value=t.metaCode),function(e){return(0,E.A)((0,E.A)({},e),{},{labelHidden:"1"})}(t)}))})),ce=(0,S.computed)((function(){var e;return d.value?(null===(e=G.value||[])||void 0===e?void 0:e.length)||0:u.total})),ue=(0,S.computed)((function(){var e;return d.value?R()(e=G.value||[]).call(e,(u.pageNum-1)*u.pageSize,u.pageNum*u.pageSize):G.value||[]})),pe=(0,S.ref)(null),de=function(e){var t,r,n=e.prop,o=e.order;null===(t=re.value)||void 0===t||null===(r=t.onSortChange)||void 0===r||r.call(t,{prop:n,order:o}),pe.value=null,o&&(pe.value={prop:n,order:o})},fe=(0,S.computed)((function(){if(!pe.value)return[];var e=[pe.value],t=P()(e).call(e,(function(e,t){return e=F()(e).call(e,(function(e,r){if(""===e[t.prop]||void 0===e[t.prop]||null===e[t.prop])return"descending"===t.order?1:-1;if(""===r[t.prop]||void 0===r[t.prop]||null===r[t.prop])return"descending"===t.order?-1:1;var n=e[t.prop],o=r[t.prop];return V()(+e[t.prop])||V()(+r[t.prop])||(n=+e[t.prop],o=+r[t.prop]),n>o?"descending"===t.order?-1:1:n===o?0:"descending"===t.order?1:-1})),e}),(0,_.A)(ue.value||[]));return t})),he=(0,S.computed)((function(){return pe.value?fe.value:ue.value}));function me(t,r){var n,o,a=R()(n=le.value).call(n,r+1),l=!(null!=a&&null!==(o=$()(a).call(a,(function(e){return e.displayType!=Na.Op&&!(0==e.width||"0px"==e.width||"1"==e.hidden)})))&&void 0!==o&&o.length),c=q()(a).call(a,(function(e){return e.displayType!=Na.Op})),u=i;s.value||(u=O()(Ma.props));var p=P()(u).call(u,(function(e,r){return(0,Na.$3)(t,r)&&(e[r]=t[r]),e}),{});if(t.columnWidth&&(p.width=t.columnWidth),p.width||(p.minWidth=160),0!=p.width&&"0px"!=p.width&&"1"!=t.hidden||(p.className="hidden-column",p.width=1),!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")),!s.value){if(p.className="".concat(p.className||""," cell-col-ellipsis"),p.prop||(p.prop=t.metaCode),"1"==t.showOverflowTooltip||"1"==t["show-overflow-tooltip"]?(p["show-overflow-tooltip"]=!0,p.showOverflowTooltip=!0):(p["show-overflow-tooltip"]=!1,p.showOverflowTooltip=!1),(0,Na.rn)((0,E.A)((0,E.A)({},t),{},{isColumn:!0}),!0)&&"0"!=t.showOverflowTooltip&&"0"!=t["show-overflow-tooltip"]){var d=function(e){var t,n=null===(t=J.value)||void 0===t||null===(t=t[e.$index])||void 0===t?void 0:t[r];return!n||(0,Na.rn)((0,E.A)((0,E.A)({},n),{},{isColumn:!0}),(0,Na.AP)(n,I.value))};p["show-overflow-tooltip"]=d,p.showOverflowTooltip=d}if("selection"===t.type){var f=p.selectable;p.selectable=function(t,r){var n=!0;f&&"function"==typeof f&&(n=f(t,r,{tableConfig:e.config,rootValue:K,parentRootValue:j,parentDynamicMapComp:L}));var o,i=!0;return B.selections&&B.selections.length&&B.primaryKeys&&B.primaryKeys.length&&(i=!(null===(o=B.selections)||void 0===o?void 0:H()(o).call(o,(function(e){var r,n;return Q()(r=N()(n=B.primaryKeys).call(n,(function(r){return r&&e[r]==t[r]}))).call(r,(function(e){return e}))})))),n&&i}}}if(s.value){var h=p.className||"";p.width?p.width=A()(p.width):(p.width=160,h="".concat(h," flex-grow-import")),p.class="".concat(h," table-body-cell"),p.headerClass="".concat(h," table-head-cell")}return p}if(!w){var ye=new(Z());(0,S.watch)((function(){var e;return null==he||null===(e=he.value)||void 0===e?void 0:e.length}),(function(t){var r=[];if(t){var n,o=he.value;r=null==o||null===(n=N()(o))||void 0===n?void 0:n.call(o,(function(t,r){var n=ye.get(t);if(n)return te()(n).call(n,(function(e){e.rowIndex=r,(0,Ua.Bx)(e,r)})),n;var o,i=N()(o=le.value).call(o,(function(t,n){var o,i=(0,Na.mg)(t);return i.width&&!i.columnWidth&&(i.columnWidth=i.width,delete i.width),i.columnId=(0,Na.Ij)(),i.rowIndex=r,i.isColumn=!0,i.refConfig=null==e||null===(o=e.config)||void 0===o||null===(o=o.pmPageMetaList)||void 0===o?void 0:o[n],i.parent=null==e?void 0:e.config,i}));return ye.set(t,i),i}))}(0,Na.Ts)(e.config,"multiPmPageMetaList",r)}),{immediate:!0,deep:!0})}var ge=(0,S.computed)((function(){var t;return(null===(t=e.config)||void 0===t?void 0:t.totalMetaCodes)||[]})),ve=(0,S.computed)((function(){var e,t;return $()(e=N()(t=ge.value).call(t,(function(e){return"string"==typeof e?{code:e,totalFn:_e}:(0,Na.Qd)(e)&&(0,Na.$3)(e,"code")?(e.totalFn="function"==typeof e.totalFn?e.totalFn:_e,e):null}))).call(e,(function(e){return!!e}))})),be=(0,S.computed)((function(){var e,t=(0,x.A)({},ae.value,(function(){var e;return(0,S.createVNode)("div",null,[ne()(e=W.value).call(e,"zh")>-1?"总计":"Total"])}));return P()(e=ve.value).call(e,(function(e,t){var r=t.code,n=t.render;return n&&"function"==typeof n&&(e[r]=n),e}),t)}));function _e(e,t,r){if(null==t)void 0===(t=0)&&(t="");else{var n=t.toString(),o=/^-/.test(n);t=n.replace(/[^\d\.]/g,""),o&&(t="-".concat(t))}var i=!isNaN(Number(t));return null==e&&(e=i?0:""),e+(i?Number(t):t)}var Ee=(0,S.computed)((function(){var e,t;return null!==(e=he.value)&&void 0!==e&&e.length&&ge.value.length&&ve.value.length?[P()(t=G.value||[]).call(t,(function(e,t){var r;return te()(r=ve.value).call(r,(function(r){var n=r.code,o=r.totalFn;e[n]=o(e[n],t[n],t)})),e}),{totalFlag:!0})]:[]})),xe=(0,S.ref)(null),Se=function(e){var t;xe.value=e,null==re||null===(t=re.onCurrentChange)||void 0===t||t.call(re,e),U.tableSelectedInfo=e},we=(0,S.ref)([]),Ae=function(e){we.value=e,U.tableSelectedInfo=e},Te=(0,S.computed)((function(){var t,r=P()(t=O()(oe.ElPagination.props)).call(t,(function(t,r){return(0,Na.$3)(e.config,r)&&(t[r]=e.config[r]),t}),{});return(0,Na.$3)(r,"background")||(r.background=!0),(0,Na.$3)(r,"layout")||(r.layout="prev, pager, next, jumper, sizes, total"),(0,Na.$3)(r,"page-sizes")||(0,Na.$3)(r,"pageSizes")||(r.pageSizes=[5,10,20,40]),r}));(0,S.watch)((function(){return u.pageNum}),function(){var t=(0,b.A)((0,v.A)().mark((function t(r){var n,o,i,s,a,l;return(0,v.A)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null===(n=e.config)||void 0===n||!n.serviceCurrentChangeLoad){t.next=2;break}return t.abrupt("return");case 2:return s=null===(o=e.config)||void 0===o?void 0:o.currentChange,t.next=5,null==s?void 0:s(r,e,u);case 5:(a=t.sent)&&(0,Na.cy)(a)&&(G.value=a),null==(l=null===(i=e.config)||void 0===i?void 0:i.serviceCurrentChange)||l(r,e,u);case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),(0,S.watch)((function(){return u.pageSize}),function(){var t=(0,b.A)((0,v.A)().mark((function t(r){var n,o,i,s,a;return(0,v.A)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return u.pageSize=r,i=null===(n=e.config)||void 0===n?void 0:n.sizeChange,t.next=4,null==i?void 0:i(r,e,u);case 4:(s=t.sent)&&(0,Na.cy)(s)&&(G.value=s),null==(a=null===(o=e.config)||void 0===o?void 0:o.serviceSizeChange)||a(r,e,u);case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());var Pe=["clearSelection","getSelectionRows","toggleRowSelection","toggleAllSelection","toggleRowExpansion","setCurrentRow","clearSort","clearFilter","doLayout","sort","scrollTo","setScrollTop","setScrollLeft","columns"],Ce=(0,S.ref)(null),Oe=P()(Pe).call(Pe,(function(e,t){return e[t]=function(){for(var e,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];null===(e=Ce.value)||void 0===e||e[t].apply(e,n)},e}),{}),Ie=(0,S.reactive)({prop:e.config.dynamicHireRelat,validate:function(){return function(e){return Ra.apply(this,arguments)}({props:e,data:(0,S.unref)(G),lang:(0,S.unref)(W),rootValue:K,dynamicMapComp:D,messageInstance:null==C?void 0:C.value,isFrontPage:(0,S.unref)(d),page:u})}});(0,S.onMounted)((function(){Fa.F&&(null==T||T.addField(Ie))})),r((0,E.A)({multipleSelection:we,selectedRow:xe,page:u,changePage:function(e,t){u[t||"pageNum"]=e}},Oe));var ke=(0,S.computed)((function(){var e,t;return null!==(e=Ee.value)&&void 0!==e&&e.length?k()(t=[]).call(t,(0,_.A)(he.value),(0,_.A)(Ee.value)):he.value}));function De(e){var t=(0,Na.lk)(e),r=t.overflow,n=t.content;a.show=!1,a.content="",a.triggerRef=null,r&&(a.show=!0,a.content=n,a.triggerRef=e.target)}function Me(e){a.show=!1,a.content="",a.triggerRef=null}function je(e){var t=0;return"1"==e.requiredFlag&&(t+=11),"1"==e.hintFlag&&(t+=19),t?"calc(100% - ".concat(t,"px)"):"100%"}function Ne(e,t){var r=0;return t.sortable&&(r+=24),r?"calc(100% - ".concat(r,"px)"):"100%"}function Le(t,r,n){var o="header",i="default";return s.value&&(o="headerCellRenderer",i="cellRenderer"),(0,x.A)((0,x.A)({},o,(function(){var r,o,i=(0,S.createVNode)("div",{className:"head-span-new",style:{width:Ne(0,n)}},["1"==t.requiredFlag?(0,S.createVNode)("span",{style:"color: rgb(245, 34, 45); margin-right: 3px;"},[(0,S.createTextVNode)("*")]):"",(0,S.createVNode)("div",{className:"head-span-text",style:{maxWidth:je(t)},onMouseenter:function(e){return De(e)},onMouseleave:function(e){return Me()}},[t.headerRender?t.headerRender(S.h,{props:e,config:t,lang:W,rootValue:K,selects:z}):ne()(r=W.value).call(r,"zh")>-1?t.metaNameZh:t.metaNameEn]),"1"==t.hintFlag?(0,S.createVNode)((0,S.resolveComponent)("ElTooltip"),{effect:"dark",content:ne()(o=W.value).call(o,"zh")>-1?t.hintContentZh:t.hintContentEn,placement:"top"},{default:function(){return[(0,S.createVNode)((0,S.resolveComponent)("elIcon"),{style:"fontSize: 16px; verticalAlign: sub; margin-left: 3px;"},{default:function(){return[(0,S.createVNode)((0,S.resolveComponent)("QuestionFilled"),null,null)]}})]}}):null]);return s.value&&(i=(0,S.createVNode)("div",{className:"table-v2-cell"},[i])),i})),i,(function(e){var n=e.row,o=e.$index;s.value&&(n=e.rowData,o=e.rowIndex);var i,a,l=null;if(n.totalFlag)l=be.value[t.metaCode]?be.value[t.metaCode]({val:n[t.metaCode],row:n,h:S.h}):null;else{var c,u,p=null===(c=J.value)||void 0===c||null===(c=c[o])||void 0===c?void 0:c[r];l=function(e){var t;if(!e)return!0;if(Y()(t=["selection","index"]).call(t,e.type))return!0;var r=H()(Na.Bs).call(Na.Bs,(function(t){return(0,Na.ro)(t,e.metaType)}))||!e.metaType;return!e.renderby&&r}(p)?null:(0,S.createVNode)(ja.A,{key:k()(u="".concat(p.columnId,"-")).call(u,p.rowIndex),class:"error-tip-block",rowScope:{row:n,$index:o},modelValue:(i=o,null===(a=he.value)||void 0===a?void 0:a[i]),"onUpdate:modelValue":function(e){!function(e,t){G.value||(G.value=[]),G.value[t]=e}(e,o)},config:p},null)}return s.value&&(l=(0,S.createVNode)("div",{className:"table-v2-cell",onMouseenter:function(e){return De(e)},onMouseleave:function(e){return Me()}},[l])),l}))}function Re(){var e,t,r,n;if(s.value){var o,i,a={height:X.height};return null!==(o=ke.value)&&void 0!==o&&o.length?a.height||(a.height=Math.min(40*(null===(i=ke.value)||void 0===i?void 0:i.length),350)):a.height=100,a.height="".concat(A()(a.height),"px"),(0,S.createVNode)(oe.ElAutoResizer,{style:a},{default:function(e){var t,r,n=e.height,o=e.width,i=$()(t=N()(r=le.value).call(r,(function(e,t){return e.displayType==Na.Op?null:(0,E.A)((0,E.A)({key:e.requiredFlag+e.metaCode},me(e,t)),Le(e,t))}))).call(t,(function(e){return!!e}));return(0,S.createVNode)(oe.ElTableV2,(0,S.mergeProps)(X.value,ie.value,{class:"table-border",cache:2,data:ke.value,columns:i,fixed:!0,width:o,height:n}),{empty:function(){var e;return(0,S.createVNode)("div",{style:{height:"60px",color:"var(--el-text-color-secondary)",textAlign:"center",lineHeight:"60px"}},[ne()(e=W.value).call(e,"zh")>-1?"暂无数据":"No Data"])}})}})}return(0,S.createVNode)(Da,(0,S.mergeProps)(X.value,ie.value,{ref:function(e){Ce.value=e},"highlight-current-row":!!(g.value||null!==(e=X.value)&&void 0!==e&&e.highlightCurrentRow),onCurrentChange:g.value||null!==(t=X.value)&&void 0!==t&&t.highlightCurrentRow?Se:function(){},data:ke.value,onSelectionChange:Ae,onSortChange:de}),{default:function(){return[g.value||null!==(r=X.value)&&void 0!==r&&r.highlightCurrentRow?(t=null===(e=le.value)||void 0===e?void 0:H()(e).call(e,(function(e){return"selection"===e.type&&e.displayType!=Na.Op})),t?null:(0,S.createVNode)(Ma,{width:"50px",className:"signle-select-wrap"},{default:function(){return[(0,S.createVNode)("span",{className:"selected-radio"},[(0,S.createVNode)(oe.ElRadio,{modelValue:"1",value:"1"},null)]),(0,S.createVNode)("span",{className:"not-selected-radio"},[(0,S.createVNode)(oe.ElRadio,{modelValue:"",value:"1"},null)])]}})):null,N()(n=le.value).call(n,(function(e,t){var r;if(e.displayType==Na.Op)return null;var n=me(e,t);return(0,S.createVNode)(Ma,(0,S.mergeProps)({key:e.requiredFlag+e.metaCode},n),function(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!(0,S.isVNode)(e)}(r=Le(e,t,n))?r:{default:function(){return[r]}})}))];var e,t}})}return function(){return(0,S.createVNode)("div",{class:"custom-component-table"},[(0,S.createVNode)((0,S.resolveComponent)("ElTooltip"),{placement:"top",visible:a.show&&!!a.triggerRef,content:a.content,virtualTriggering:!0,virtualRef:a.triggerRef},null),Re(),f.value?(0,S.createVNode)("div",{class:"pagination-wrap",style:{"justify-content":y[h.value||m]}},[(0,S.createVNode)(oe.ElPagination,(0,S.mergeProps)({style:"margin-top: 16px;"},Te.value,se,{"current-page":u.pageNum,"onUpdate:current-page":function(e){return u.pageNum=e},"page-size":u.pageSize,"onUpdate:page-size":function(e){return u.pageSize=e},total:ce.value}),null)]):null])}}};var Wa,$a,Ka,qa,za},27243:(e,t,r)=>{r.r(t),r.d(t,{default:()=>_});var n=r(53811),o=r(75286),i=r(8628),s=r.n(i),a=r(73363),l=r.n(a),c=r(50697),u=r.n(c),p=r(36586),d=r.n(p),f=r(43981),h=r.n(f),m=r(11393),y=r.n(m),g=(r(76918),r(48598),r(23288),r(2892),r(9868),r(26099),r(27495),r(38781),r(25440),r(84061)),v=r(17427),b=r(24691);const _={inheritAttrs:!1,props:(0,n.A)((0,n.A)((0,n.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:{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 r,i,a=t.emit,c=t.attrs,p=t.expose,f=t.slots,m=(0,o.ref)(!1),_=(0,o.ref)(!1),E=(0,o.ref)(null),x=(0,o.ref)(!1),S=(0,o.ref)(null),w=(0,o.ref)(null),A=(0,o.computed)((function(){var t,r,n,o,i=l()(t=u()(g.ElInput.props)).call(t,(function(t,r){return t[r]=e[r],t}),{});return null!==(r=e.config)&&void 0!==r&&r.icon&&(i.suffixIcon=null===(o=e.config)||void 0===o?void 0:o.icon),null!==(n=e.config)&&void 0!==n&&n.maxLength&&(i.maxlength=d()(e.config.maxLength)),e.textAreaCnt&&(i.rows=d()(e.textAreaCnt)),i})),T=(0,o.computed)((function(){var e=(0,n.A)({},A.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)})),C=(0,o.computed)({get:function(){return e.modelValue},set:function(e){a("update:modelValue",e)}}),O=(0,o.ref)(""),I=(0,o.computed)((function(){return"1"==e.showMoney?m.value?O.value:F(C.value):C.value})),k=(0,o.computed)((function(){var t;return(null===(t=e.config)||void 0===t?void 0:t.lcpPagePopupMapVO)&&"Search"==A.value.suffixIcon})),D=(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)})),M=(0,o.computed)((function(){var t;return"1"==(null===(t=e.config)||void 0===t?void 0:t.pagePopupEditFlag)})),j=(0,o.computed)((function(){var t={modelValue:I.value};return!k.value||M.value?(t["onUpdate:modelValue"]=function(t){"1"==e.showMoney?O.value=t:C.value=t},"1"==e.showMoney&&(t.onFocus=function(){O.value=C.value},t.onBlur=function(){C.value=function(t){var r;if(null!==(r=e.canShowFlag)&&void 0!==r&&s()(r).call(r,String(t).toLowerCase()))return t;if(null==t||""===t)return"";var n=0,o="".concat(t).replace(/[^\d.-]/g,"").replace(/(\.\d*)/g,(function(e){var t=n;return n++,t?"":e})),i=Number(o);return isNaN(i)?"":i}(F(O.value))})):t.onClear=function(){var e;null==c||null===(e=c.onClear)||void 0===e||e.call(c),C.value=""},t})),N=(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,n.A)({},c);delete e.class;var t=e.onFocus;e.onFocus=function(){m.value=!0;for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var o;P.value&&(E.value=null==r||null===(o=r[0])||void 0===o?void 0:o.target),null==t||t.apply(void 0,r)};var r=e.onBlur;if(e.onBlur=function(){m.value=!1,P.value&&(_.value||(E.value=null));for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];null==r||r.apply(void 0,t)},k.value&&D.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=(r=null,i=null,{clear:function(){r&&r(),i&&window.removeEventListener("resize",i)},calc:function(){this.clear();var t=20;!e.disabled&&e.clearable&&(t=50);var n=(0,b.fW)(S.value,0),s=(0,b.fW)(w.value,0-t);x.value=n<s,r=(0,o.watch)((function(){return I.value}),(function(e){(0,o.nextTick)((function(){s=(0,b.fW)(w.value,0-t),x.value=n<s}))})),i=function(){n=(0,b.fW)(S.value,0),x.value=n<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,r,i=(0,n.A)({},f);if(null!==(t=A.value)&&void 0!==t&&t.suffixIcon){var s=(0,o.resolveComponent)(A.value.suffixIcon);i.suffix=function(){var t={};return k.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!==(r=A.value)&&void 0!==r&&r.prefixIcon){var a=(0,o.resolveComponent)(A.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 F(t){var r,n,o;if(null!==(r=e.canShowFlag)&&void 0!==r&&s()(r).call(r,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()(n="".concat(e.symbol," ")).call(n,l):y()(o="".concat(l," ")).call(o,e.symbol):l}var U=(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"},N.value),[(0,o.createVNode)("span",{ref:function(e){return w.value=e},class:"calc-span"},[I.value]),x.value?(0,o.createVNode)((0,o.resolveComponent)("el-tooltip"),{placement:"top",visible:x.value&&!!E.value,content:I.value,virtualTriggering:!0,virtualRef:E.value},null):null,(0,o.createVNode)("div",(0,o.mergeProps)({class:"input-wrap"},U.value,{ref:function(e){return S.value=e}}),[(0,o.createVNode)(g.ElInput,(0,o.mergeProps)(j.value,(0,n.A)((0,n.A)({},L.value),T.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,r)=>{r.r(t),r.d(t,{default:()=>_});var n=r(53811),o=r(75286),i=r(8628),s=r.n(i),a=r(73363),l=r.n(a),c=r(50697),u=r.n(c),p=r(36586),d=r.n(p),f=r(43981),h=r.n(f),m=r(11393),y=r.n(m),g=(r(76918),r(48598),r(23288),r(2892),r(9868),r(26099),r(27495),r(38781),r(25440),r(84061)),v=r(17427),b=(r(24691),r(85845));const _={inheritAttrs:!1,props:(0,n.A)((0,n.A)((0,n.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:{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 r=t.emit,i=t.attrs,a=t.expose,c=t.slots,p=(0,o.computed)((function(){var t,r,n,o,i=l()(t=u()(g.ElInput.props)).call(t,(function(t,r){return t[r]=e[r],t}),{});return null!==(r=e.config)&&void 0!==r&&r.icon&&(i.suffixIcon=null===(o=e.config)||void 0===o?void 0:o.icon),null!==(n=e.config)&&void 0!==n&&n.maxLength&&(i.maxlength=d()(e.config.maxLength)),e.textAreaCnt&&(i.rows=d()(e.textAreaCnt)),i})),f=(0,o.computed)((function(){var e=(0,n.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){r("update:modelValue",e)}}),E=(0,o.ref)(""),x=(0,o.ref)(!1),S=(0,o.computed)((function(){return"1"==e.showMoney?x.value?E.value:k(_.value):_.value})),w=(0,b.D)({showTooltip:m,offset:(0,o.computed)((function(){var t=20;return!e.disabled&&e.clearable&&(t=50),t})),displayValue:S}).generateTooltipWrap,A=(0,o.computed)((function(){var t;return(null===(t=e.config)||void 0===t?void 0:t.lcpPagePopupMapVO)&&"Search"==p.value.suffixIcon})),T=(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)})),C=(0,o.computed)((function(){var t={modelValue:S.value};return!A.value||P.value?(t["onUpdate:modelValue"]=function(t){"1"==e.showMoney?E.value=t:_.value=t},"1"==e.showMoney&&(t.onFocus=function(){null!==_.value&&void 0!==_.value||(_.value=""),x.value=!0,E.value=_.value},t.onBlur=function(){x.value=!1,_.value=function(t){var r;if(null!==(r=e.canShowFlag)&&void 0!==r&&s()(r).call(r,String(t).toLowerCase()))return t;if(null==t||""===t)return"";var n=0,o="".concat(t).replace(/[^\d.-]/g,"").replace(/(\.\d*)/g,(function(e){var t=n;return n++,t?"":e})),i=Number(o);return isNaN(i)?"":(0,v.iF)(i)}(k(E.value))}),t.onClear=function(){var t;null==i||null===(t=i.onClear)||void 0===t||t.call(i),_.value="","1"==e.showMoney&&(E.value="")}):t.onClear=function(){var e;null==i||null===(e=i.onClear)||void 0===e||e.call(i),_.value=""},t})),O=(0,o.computed)((function(){return{class:null==i?void 0:i.class,style:null==i?void 0:i.style}})),I=(0,o.computed)((function(){var e=(0,n.A)({},i);if(delete e.class,delete e.style,A.value&&T.value&&delete e.onClick,e.onWrapClick)if(e.onClick){var t=e.onClick;e.onClick=function(){t.apply(void 0,arguments),e.onWrapClick.apply(e,arguments)}}else e.onClick=e.onWrapClick;return e}));function k(t){var r,n,o;if(null!==(r=e.canShowFlag)&&void 0!==r&&s()(r).call(r,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()(n="".concat(e.symbol," ")).call(n,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,r;return w((0,o.createVNode)(g.ElInput,(0,o.mergeProps)(C.value,(0,n.A)((0,n.A)({},I.value),f.value)),"function"==typeof(r=t=function(){var t,r,s=(0,n.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 A.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!==(r=p.value)&&void 0!==r&&r.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(r)&&!(0,o.isVNode)(r)?t:{default:function(){return[t]}}),{wrapAttrs:O.value})}}}},40857:(e,t,r)=>{r.r(t),r.d(t,{default:()=>D});var n=r(53811),o=r(75286),i=r(57119),s=r.n(i),a=r(73363),l=r.n(a),c=r(96319),u=r.n(c),p=r(31721),d=r.n(p),f=r(50697),h=r.n(f),m=r(36586),y=r.n(m),g=r(48079),v=r.n(g),b=r(64007),_=r.n(b),E=r(86226),x=r.n(E),S=r(8628),w=r.n(S),A=(r(76918),r(48598),r(23288),r(2892),r(26099),r(27495),r(38781),r(90744),r(84061)),T=r(17427),P={class:"option-item"},C={class:"multi-checkbox box-checked"},O={class:"multi-checkbox box-not-checked"};const I={__name:"OptionsDefault",props:{label:{default:""}},setup:function(e){return function(t,r){var n=(0,o.resolveComponent)("el-checkbox");return(0,o.openBlock)(),(0,o.createElementBlock)("div",P,[(0,o.renderSlot)(t.$slots,"default",{},(function(){return[(0,o.createTextVNode)((0,o.toDisplayString)(e.label),1)]})),(0,o.createElementVNode)("div",C,[(0,o.createVNode)(n,{checked:!0}),r[0]||(r[0]=(0,o.createElementVNode)("div",{class:"check-mask"},null,-1))]),(0,o.createElementVNode)("div",O,[(0,o.createVNode)(n,{checked:!1}),r[1]||(r[1]=(0,o.createElementVNode)("div",{class:"check-mask"},null,-1))])])}}};r(75407);const k=(0,r(66262).A)(I,[["__scopeId","data-v-513d8cc3"]]),D={inheritAttrs:!1,props:(0,n.A)((0,n.A)((0,n.A)((0,n.A)({},A.ElSelectV2.props),A.ElSelect.props),T.yz),{},{multiple:[String,Boolean,Number],filterable:[String,Boolean,Number],multipleLimit:[String,Number],rangeOptions:Array,excludeOptions:Array,separator:{type:[String],default:","},virtualized:{type:[String,Boolean,Number],default:""}}),emits:["update:modelValue"],setup:function(e,t){var r=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,T.Qd)(t)||(0,T.cy)(t))try{t=s()(t).join(e.separator),r("update:modelValue",t)}catch(e){}}else if(t&&(0,T.Kg)(t)||(0,T.Et)(t)){var n,o;t=null===(n="".concat(t))||void 0===n?void 0:n.split(e.separator),g.value&&(t=null===(o=t)||void 0===o?void 0:l()(o).call(o,(function(e,t,r){return e[r]=t,e}),{})),r("update:modelValue",t)}return t},set:function(e){r("update:modelValue",e)}}),p=(0,o.computed)((function(){return e.separator})),f=(0,o.computed)((function(){var t;return null===(t=e.config)||void 0===t?void 0:t.valueType})),m=(0,o.computed)((function(){return f.value!==T.K4.LIST&&f.value!==T.K4.OBJECT})),g=(0,o.computed)((function(){return f.value===T.K4.OBJECT})),b=(0,o.computed)((function(){return"boolean"==typeof e.multiple?e.multiple:"1"==e.multiple})),E=(0,o.computed)((function(){var t,r,n,o,i=e.options;return e.rangeOptions&&e.rangeOptions.length&&(i=null===(t=i)||void 0===t||null===(r=u()(t))||void 0===r?void 0:r.call(t,(function(t){var r;return null===(r=e.rangeOptions)||void 0===r?void 0:d()(r).call(r,(function(e){return e==t.columnValue}))}))),e.excludeOptions&&e.excludeOptions.length&&(i=null===(n=i)||void 0===n||null===(o=u()(n))||void 0===o?void 0:o.call(n,(function(t){var r;return!(null!==(r=e.excludeOptions)&&void 0!==r&&d()(r).call(r,(function(e){return e==t.columnValue})))}))),i})),S=(0,o.computed)((function(){return"boolean"==typeof e.virtualized?e.virtualized:"1"==e.virtualized})),P=(0,o.computed)((function(){return S.value?A.ElSelectV2:A.ElSelect})),C=(0,o.computed)({get:function(){if(b.value){(0,T.$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 r;return null!==c.value&&void 0!==c.value?null!==(r=E.value)&&void 0!==r&&d()(r).call(r,(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,r){return e[r]=t,e}),{}):e:c.value=e}}),O=(0,o.computed)((function(){var t,r,o=l()(t=h()(S.value?A.ElSelectV2.props:A.ElSelect.props)).call(t,(function(t,r){return t[r]=e[r],t}),{});return null!==o.placeholder&&void 0!==o.placeholder||(o.placeholder=""),"boolean"!=typeof o.filterable&&(o.filterable="1"==o.filterable),"string"==typeof o.multiple&&(o.multiple="1"==o.multiple),o["suffix-icon"]||o.suffixIcon||(delete o.suffixIcon,delete o["suffix-icon"]),o.multipleLimit=Number(y()(o.multipleLimit||0)),S.value&&(o.options=null===(r=E.value)||void 0===r?void 0:v()(r).call(r,(function(e){var t;return(0,n.A)((0,n.A)({},e),{},{value:e.columnValue,label:(null==I||null===(t=I.value)||void 0===t?void 0:_()(t).call(t,"zh"))>-1?e.columnDesc_zh:e.columnDesc,disabled:"0"==e.columnStatus||"2"==e.columnStatus})}))),o})),I=(0,o.inject)("lang"),D=function(){};return function(){var e,t;return(0,o.createVNode)(P.value,(0,o.mergeProps)({class:"custom-self-select"},(0,n.A)((0,n.A)({},i),O.value),{modelValue:C.value,"onUpdate:modelValue":function(e){return C.value=e},onClear:D}),"function"==typeof(t=e=function(){var e,t={optionDefault:"default"},r={},n={};if(x()(e=h()(a)).call(e,(function(e){var o;w()(o=h()(t)).call(o,e)?r[t[e]]=a[e]:n[e]=a[e]})),S.value){var i=n.default;n.default=function(e){var t,r=e.item;return(0,o.createVNode)(k,{label:(null==I||null===(t=I.value)||void 0===t?void 0:_()(t).call(t,"zh"))>-1?r.columnDesc_zh:r.columnDesc},{default:function(){return[null==i?void 0:i(r)]}})}}else n.default=function(){var e;return null===(e=E.value)||void 0===e?void 0:v()(e).call(e,(function(e){var t,n,i;return(0,o.createVNode)(A.ElOption,{key:e.columnValue,label:(null==I||null===(t=I.value)||void 0===t?void 0:_()(t).call(t,"zh"))>-1?e.columnDesc_zh:e.columnDesc,value:e.columnValue,disabled:"0"==e.columnStatus||"2"==e.columnStatus},{default:function(){return[(0,o.createVNode)(k,{label:(null==I||null===(n=I.value)||void 0===n?void 0:_()(n).call(n,"zh"))>-1?e.columnDesc_zh:e.columnDesc},{default:function(){return[null==r||null===(i=r.default)||void 0===i?void 0:i.call(r,e)]}})]}})}))};return n}())||"[object Object]"===Object.prototype.toString.call(t)&&!(0,o.isVNode)(t)?e:{default:function(){return[e]}})}}}},91413:(e,t,r)=>{r.r(t),r.d(t,{default:()=>b});var n=r(22204),o=r(53811),i=r(75286),s=r(85569),a=r.n(s),l=r(71426),c=r.n(l),u=r(64007),p=r.n(u),d=r(73363),f=r.n(d),h=r(50697),m=r.n(h),y=(r(76918),r(23288),r(2892),r(26099),r(38781),r(84061)),g=r(17427),v=r(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 r,s=t.emit,l=t.attrs,u=(t.expose,t.slots),d=(0,i.computed)({get:function(){return e.modelValue},set:function(e){s("update:modelValue",e)}}),h=(0,i.inject)("lang"),g=null===(r=(0,i.getCurrentInstance)())||void 0===r?void 0:r.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,r=null!==d.value&&void 0!==d.value?d.value:"";if("object"===(0,n.A)(r))try{r=a()(r)}catch(e){r=""}else"function"==typeof r&&(r="");var o,i=null==e||null===(t=e.options)||void 0===t?void 0:c()(t).call(t,(function(e){return e.columnValue==r}));return i?(null==h||null===(o=h.value)||void 0===o?void 0:p()(o).call(o,"zh"))>-1?i.columnDesc_zh:i.columnDesc:r})),E=(0,i.computed)((function(){var t,r=f()(t=m()(y.ElText.props)).call(t,(function(t,r){return t[r]=e[r],t}),{});return"boolean"!=typeof r.truncated&&(r.truncated="1"==r.truncated),r})),x=(0,i.inject)("buttonActions",{}),S=(0,i.computed)((function(){return _.value})),w=(0,i.computed)((function(){return"1"==(null==e?void 0:e.showTooltip)})),A=(0,v.D)({showTooltip:w,offset:(0,i.computed)((function(){var t=0;return"1"==e.needWrap&&(t=22,e.suffixIcon&&(t=36)),t})),displayValue:S,config:e.config,calcFn:function(e){var t;return null==e||null===(t=e.getBoundingClientRect)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t.width}}).generateTooltipWrap,T=(0,i.inject)("dynamicMapComp"),P=(0,i.inject)("hireRelatMapRules"),C=(0,i.inject)("components"),O=(0,i.inject)("selects"),I=(0,i.inject)("rootValue"),k=(0,i.inject)("dataLoad"),D=(0,i.inject)("rootForm");function M(){if(e.suffixIcon&&!e.disabled){var t={color:"#a8abb2",size:14},r=e.suffixIcon;return"string"==typeof r&&(b.value&&"Search"==r&&(t.onClick=(0,i.withModifiers)(l.onClick,["stop"]),t.style={cursor:"pointer"}),r=(0,i.resolveComponent)(r)),(0,i.createVNode)(y.ElIcon,t,{default:function(){return[(0,i.createVNode)(r,null,null)]}})}return null}return function(){var t,r,n;return A((r=(0,i.createVNode)(y.ElText,(0,i.mergeProps)((0,o.A)((0,o.A)({},l),E.value),{onClickCapture:(0,i.withModifiers)((function(t){var r,n,o,i,s;i=(null===(r=e.config)||void 0===r?void 0:r.clickActionKey)||(null===(n=e.config)||void 0===n?void 0:n.buttonActionKey)||(null===(o=e.config)||void 0===o?void 0:o.hireRelat),(s=x[i])&&s(e,{dynamicMapComp:T,hireRelatMapRules:P,components:C,selects:O,rootValue:I,dataLoad:k,rootForm:D},g)}),["stop","self"]),class:{cursor:"1"==e.isPointer}}),"function"==typeof(n=t=(0,o.A)({default:function(){return S.value}},u))||"[object Object]"===Object.prototype.toString.call(n)&&!(0,i.isVNode)(n)?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}},[r,M()]):r),{maintain:!0})}}}},29915:(e,t,r)=>{r.d(t,{A:()=>p});var n=r(49859),o=(r(2892),r(29544)),i=r.n(o),s=r(36586),a=r.n(s),l=r(75286),c={class:"simple-form-item-content el-form-item__content"};const u=i()({inheritAttrs:!1,name:"SimpleFormItemPc"},{__name:"index",props:{label:String,labelWidth:[String,Number],labelPosition:String},setup:function(e){var t=(0,l.useAttrs)(),r=e,o=(0,l.inject)("_formContextKey"),i=(0,l.inject)(o,void 0),s=(0,l.computed)((function(){if("top"===(null==i?void 0:i.labelPosition)||"top"===(null==r?void 0:r.labelPosition))return{};var e=r.labelWidth||(null==i?void 0:i.labelWidth)||"";return e?{width:"".concat(a()(e),"px")}:{}})),u=(0,l.computed)((function(){return[t.class||"",(0,n.A)({},"label-position__".concat(r.labelPosition||"right"),!0)]}));return function(e,r){return(0,l.openBlock)(),(0,l.createElementBlock)("div",{class:(0,l.normalizeClass)(["simple-form-item el-form-item",u.value]),style:(0,l.normalizeStyle)((0,l.unref)(t).style)},[(0,l.createElementVNode)("label",{class:"simple-form-item-label el-form-item__label",style:(0,l.normalizeStyle)(s.value)},[(0,l.renderSlot)(e.$slots,"label")],4),(0,l.createElementVNode)("div",c,[(0,l.renderSlot)(e.$slots,"default")])],6)}}});r(76446);const p=u},77364:(e,t,r)=>{r.d(t,{m:()=>Z,A:()=>ee});var n=r(53474),o=r(37891),i=r(34963),s=r(49859),a=r(75286),l=r(8628),c=r.n(l),u=(r(62010),r(2892),r(66825));const p=(d={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},f={},r.d(f,d),f);var d,f,h=r(86864),m=r(27077),y=r(76172),g=r(16781),v=r.n(g)()("tabsRootContextKey"),b=r(11393),_=r.n(b),E=r(49763),x=r.n(E),S=r(64007),w=r.n(S),A=r(56255),T=r.n(A),P=r(48079),C=r.n(P),O=r(97786),I=r(29544),k=r.n(I),D=r(14166),M=r.n(D),j=r(63579),N=r.n(j),L=(0,u.buildProps)({tabs:{type:(0,u.definePropType)(Array),default:function(){return(0,u.mutable)([])}}}),R="ElTabBar";const B=k()({name:R},{__name:"tab-bar",props:L,setup:function(e,t){var r=t.expose,n=e,l=(0,a.getCurrentInstance)(),p=(0,a.inject)(v);p||(0,u.throwError)(R,"<el-tabs><el-tab-bar /></el-tabs>");var d=(0,y.useNamespace)("tabs"),f=(0,a.ref)(),h=(0,a.ref)(),m=function(){return h.value=function(){var e,t,r,o=0,i=0,a=c()(e=["top","bottom"]).call(e,p.props.tabPosition)?"width":"height",d="width"===a?"x":"y",f="x"===d?"left":"top";return M()(t=n.tabs).call(t,(function(e){var t,r=null===(t=l.parent)||void 0===t||null===(t=t.refs)||void 0===t?void 0:t["tab-".concat(e.uid)];if(!e&&!r)return!1;if(!e.active)return!0;o=r["offset".concat((0,u.capitalize)(f))],i=r["client".concat((0,u.capitalize)(a))];var s=window.getComputedStyle(r);return"width"===a&&(n.tabs.length>1&&(i-=N()(s.paddingLeft)+N()(s.paddingRight)),o+=N()(s.paddingLeft)),!1})),(0,s.A)((0,s.A)({},a,"".concat(i,"px")),"transform",_()(r="translate".concat((0,u.capitalize)(d),"(")).call(r,o,"px)"))}()};return(0,a.watch)((function(){return n.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,O.wYm)(f,(function(){return m()})),r({ref:f,update:m}),function(e,t){return(0,a.openBlock)(),(0,a.createElementBlock)("div",{ref_key:"barRef",ref:f,class:(0,a.normalizeClass)([(0,a.unref)(d).e("active-bar"),(0,a.unref)(d).is((0,a.unref)(p).props.tabPosition)]),style:(0,a.normalizeStyle)(h.value)},null,6)}}}),F=B;var U=(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}),V={tabClick:function(e,t,r){return r instanceof Event},tabRemove:function(e,t){return t instanceof Event}},W="ElTabNav",$=(0,a.defineComponent)({name:W,props:U,emits:V,setup:function(e,t){var r=t.expose,s=t.emit,l=(0,a.getCurrentInstance)(),d=(0,a.inject)(v);d||(0,u.throwError)(W,"<el-tabs><tab-nav /></el-tabs>");var f=(0,y.useNamespace)("tabs"),g=(0,O.fho)(),b=(0,O.esz)(),E=(0,a.ref)(),S=(0,a.ref)(),A=(0,a.ref)(),P=(0,a.ref)(),I=(0,a.ref)(!1),k=(0,a.ref)(0),D=(0,a.ref)(!1),M=(0,a.ref)(!0),j=(0,a.computed)((function(){var e;return c()(e=["top","bottom"]).call(e,d.props.tabPosition)?"width":"height"})),N=(0,a.computed)((function(){var e,t="width"===j.value?"X":"Y";return{transform:_()(e="translate".concat(t,"(-")).call(e,k.value,"px)")}})),L=function(){if(E.value){var e=E.value["offset".concat((0,u.capitalize)(j.value))],t=k.value;if(t){var r=t>e?t-e:0;k.value=r}}},R=function(){if(E.value&&S.value){var e=S.value["offset".concat((0,u.capitalize)(j.value))],t=E.value["offset".concat((0,u.capitalize)(j.value))],r=k.value;if(!(e-r<=t)){var n=e-r>2*t?r+t:e-t;k.value=n}}},B=function(){var e=(0,i.A)((0,o.A)().mark((function e(){var t,r,n,i,s,l,u,p,f,h;return(0,o.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=S.value,I.value&&A.value&&E.value&&r){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,(0,a.nextTick)();case 5:if(n=A.value.querySelector(".is-active")){e.next=8;break}return e.abrupt("return");case 8:i=E.value,s=c()(t=["top","bottom"]).call(t,d.props.tabPosition),l=n.getBoundingClientRect(),u=i.getBoundingClientRect(),p=s?r.offsetWidth-u.width:r.offsetHeight-u.height,f=k.value,h=f,s?(l.left<u.left&&(h=f-(u.left-l.left)),l.right>u.right&&(h=f+l.right-u.right)):(l.top<u.top&&(h=f-(u.top-l.top)),l.bottom>u.bottom&&(h=f+(l.bottom-u.bottom))),h=Math.max(h,0),k.value=Math.min(h,p);case 18:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),U=function(){var t;if(S.value&&E.value){e.stretch&&(null===(t=P.value)||void 0===t||t.update());var r=S.value["offset".concat((0,u.capitalize)(j.value))],n=E.value["offset".concat((0,u.capitalize)(j.value))],o=k.value;n<r?(I.value=I.value||{},I.value.prev=o,I.value.next=o+n<r,r-o<n&&(k.value=r-n)):(I.value=!1,o>0&&(k.value=0))}},V=function(e){var t,r=e.code,n=p.EVENT_CODE.up,o=p.EVENT_CODE.down,i=p.EVENT_CODE.left,s=p.EVENT_CODE.right;if(c()(t=[n,o,i,s]).call(t,r)){var a,l=x()(e.currentTarget.querySelectorAll<HTMLDivElement>"[role=tab]:not(.is-disabled)"),u=w()(l).call(l,e.target);l[a=r===i||r===n?0===u?l.length-1:u-1:u<l.length-1?u+1:0].focus({preventScroll:!0}),l[a].click(),$()}},$=function(){M.value&&(D.value=!0)},K=function(){return D.value=!1};return(0,a.watch)(g,(function(e){"hidden"===e?M.value=!1:"visible"===e&&T()((function(){return M.value=!0}),50)})),(0,a.watch)(b,(function(e){e?T()((function(){return M.value=!0}),50):M.value=!1})),(0,O.wYm)(A,U),(0,a.onMounted)((function(){return T()((function(){return B()}),0)})),(0,a.onUpdated)((function(){return U()})),r({scrollToActiveTab:B,removeFocus:K}),(0,a.watch)((function(){return e.panes}),(function(){return l.update()}),{flush:"post",deep:!0}),function(){var t,r,o,i=I.value?[(0,a.createVNode)("span",{class:[f.e("nav-prev"),f.is("disabled",!I.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:[f.e("nav-next"),f.is("disabled",!I.value.next)],onClick:R},[(0,a.createVNode)(h.ElIcon,null,{default:function(){return[(0,a.createVNode)(m.ArrowRight,null,null)]}})])]:null,l=C()(t=e.panes).call(t,(function(t,r){var n,o,i,l,c,u=t.uid,y=t.props.disabled,g=null!==(n=null!==(o=t.props.name)&&void 0!==o?o:t.index)&&void 0!==n?n:"".concat(r),v=!y&&(t.isClosable||e.editable),b=t.props.hidden;t.index="".concat(r);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,S=!y&&t.active?0:-1;return b?null:(0,a.createVNode)("div",{ref:"tab-".concat(u),class:[f.e("item"),f.is(d.props.tabPosition),f.is("active",t.active),f.is("disabled",y),f.is("closable",v),f.is("focus",D.value)],style:b?{display:"none"}:{},id:"tab-".concat(g),key:"tab-".concat(u),"aria-controls":"pane-".concat(g),role:"tab","aria-selected":t.active,tabindex:S,onFocus:function(){return $()},onBlur:function(){return K()},onClick:function(e){K(),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:A,class:[f.e("nav-wrap"),f.is("scrollable",!!I.value),f.is(d.props.tabPosition),e.showBar?"":"hidden-bar"]},[i,(0,a.createVNode)("div",{class:[f.e("nav-scroll")],ref:E},[(0,a.createVNode)("div",{class:[f.e("nav"),f.is(d.props.tabPosition),f.is("stretch",e.stretch&&c()(r=["top","bottom"]).call(r,d.props.tabPosition))],ref:S,style:N.value,role:"tablist",onKeydown:V},_()(o=[!e.type&&e.showBar?(0,a.createVNode)(F,{ref:P,tabs:(0,n.A)(e.panes)},null):null,l]).call(o))])])}}});const K=$;var q=(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 r;return c()(r=["remove","add"]).call(r,t)})),"tabRemove",(function(e){return z(e)})),"tabAdd",(function(){return!0}));const G=(0,a.defineComponent)({name:"ElTabs",props:q,emits:H,setup:function(e,t){var r,l=t.emit,c=t.slots,d=t.expose,f=(0,y.useNamespace)("tabs"),g=(0,y.useOrderedChildren)((0,a.getCurrentInstance)(),"ElTabPane"),b=g.children,_=g.addChild,E=g.removeChild,x=(0,a.ref)({}),S=(0,a.ref)(null!==(r=e.modelValue)&&void 0!==r?r:"0"),w=function(){var t=(0,i.A)((0,o.A)().mark((function t(r){var n,i,s,a,c=arguments;return(0,o.A)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=c.length>1&&void 0!==c[1]&&c[1],S.value!==r&&!(0,u.isUndefined)(r)){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,r,S.value);case 6:!1!==t.sent&&(S.value=r,n&&(l(p.UPDATE_MODEL_EVENT,r),l("tabChange",r)),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)}}(),A=function(e,t,r){e.props.disabled||(w(t,!0),l("tabClick",e,r))},T=function(e,t){e.props.disabled||(0,u.isUndefined)(e.props.name)||(t.stopPropagation(),l("edit",e.props.name,"remove"),l("tabRemove",e.props.name))},P=function(){l("edit",void 0,"add"),l("tabAdd")};return(0,a.watch)((function(){return e.modelValue}),(function(e){return w(e)})),(0,a.watch)(S,(0,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:S,registerPane:_,unregisterPane:E}),d({currentName:S}),function(){var t=c["add-icon"],r=e.editable||e.addable?(0,a.createVNode)("span",{class:f.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:f.is("icon-plus")},{default:function(){return[(0,a.createVNode)(m.Plus,null,null)]}})]):null,o=(0,a.createVNode)("div",{class:[f.e("header"),f.is(e.tabPosition)]},[r,(0,a.createVNode)(K,{ref:x,currentName:S.value,editable:e.editable,showBar:e.showBar,type:e.type,panes:b.value,stretch:e.stretch,onTabClick:A,onTabRemove:T},null)]),i=(0,a.createVNode)("div",{class:f.e("content")},[(0,a.renderSlot)(c,"default")]);return(0,a.createVNode)("div",{class:["resolver-tabs",f.b(),f.m(e.tabPosition),(0,s.A)((0,s.A)({},f.m("card"),"card"===e.type),f.m("border-card"),"border-card"===e.type)]},(0,n.A)("bottom"!==e.tabPosition?[i,o]:[o,i]))}}});var Q=r(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=k()({name:J},{__name:"tab-pane",props:X,setup:function(e){var t=e,r=(0,a.getCurrentInstance)(),n=(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),d=(0,a.computed)((function(){var e;return null!==(e=t.name)&&void 0!==e?e:s.value})),f=(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:r.uid,slots:n,props:t,paneName:d,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)(f)?(0,a.withDirectives)(((0,a.openBlock)(),(0,a.createElementBlock)("div",{key:0,id:"pane-".concat(d.value),class:(0,a.normalizeClass)((0,a.unref)(i).b()),role:"tabpanel","aria-hidden":!(0,a.unref)(c),"aria-labelledby":"tab-".concat(d.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,r)=>{r.d(t,{A:()=>b});var n=r(53811),o=r(86226),i=r.n(o),s=r(50697),a=r.n(s),l=r(64007),c=r.n(l),u=r(75286),p=r(84061),d={key:0,class:"header"},f=["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 r=t.expose,n=(0,u.ref)(null),o=e,i=(0,u.computed)((function(){return o.lang})),s=null,a=(0,u.ref)(!1);r({dialogVisible:a}),(0,u.watch)(a,(function(e,t){var r;!e&&t&&(s&&s(),null===(r=o.awalyCloseCb)||void 0===r||r.call(o),n.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)(n,(function(e){e&&window&&window.addEventListener("message",l)}),{immediate:!0})})),(0,u.onUnmounted)((function(){window&&window.removeEventListener("message",l)})),function(t,r){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":r[1]||(r[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",d,[(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:n,class:"iframe-box",src:a.value?o.src:""},null,8,f),(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:r[0]||(r[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"])}}};r(65190),r(85304);const g=(0,r(66262).A)(y,[["__scopeId","data-v-60756844"]]);var v=null;function b(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(v)return i()(t=a()(r)).call(t,(function(e){v.props[e]=r[e],v.vm.exposed.dialogVisible.value=!0})),v.close;var o=document.createElement("div"),s=(0,u.createVNode)(g,(0,n.A)({},r));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}},49027:(e,t,r)=>{r.d(t,{F:()=>o,M:()=>n});var n=!1,o=!0},82826:(e,t,r)=>{r.d(t,{S:()=>u});var n=r(16781),o=r.n(n),i=r(14166),s=r.n(i),a=r(17427),l=r(75286),c=o()(),u=function(e){var t=(0,l.inject)(c);(0,l.provide)(c,(function(r){var n=e.multiPmPageMetaList,o=e.pmPageMetaList;if(n&&n.length){var i=s()(n).call(n,(function(e){return s()(e).call(e,(function(e){return e._componentLoad}))}));i&&(e._componentLoad=!0,null==t||t(e))}else{var a=s()(o).call(o,(function(e){return e._componentLoad}));a&&(e._componentLoad=!0,null==t||t(e))}})),(0,l.onMounted)((function(){var r=e.multiPmPageMetaList,n=e.pmPageMetaList;(r&&0!==r.length||n&&0!==n.length)&&!e.renderby&&-1===(0,a.Tn)(a.jK,e.metaType)||(e._componentLoad=!0,null==t||t(e))}))}},70846:(e,t,r)=>{r.d(t,{K:()=>_});var n=r(22204),o=r(49859),i=r(56255),s=r.n(i),a=r(66615),l=r.n(a),c=r(50697),u=r.n(c),p=r(96319),d=r.n(p),f=r(86226),h=r.n(f),m=(r(27495),r(71761),r(25440),r(75286)),y=r(9318),g=r(71835),v=r(17427);function b(e,t,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"update:modelValue",a=this.OPEN_DATA_RULES,l=this.hireRelatMapRules,c=this.messageInstance,u=this.rootValue,p=this.ruleExecuter,d=this.dataLoad,f=this.dynamicMapComp,h=this.lang,b=this._mapComp,_=l.value[e.hireRelat],E=e.metaCode;if("update:modelValue"!==i){var x=i.match(/^update:(\w+)$/);if(!x)return;E=x[1];var S=e.dynamicHireRelat.replace(/->\w+$/,"->".concat(E));e=f[S]}return(0,m.computed)({get:function(){var r,n;if(e){var o=null!==(r=E?null===(n=t.modelValue)||void 0===n?void 0:n[E]:t.modelValue)&&void 0!==r?r:null;return"update:modelValue"===i&&null==o&&(0,g.A)(e),e&&(e.bindValue=o),e&&(!d.value||e.eventInit||e.notInit||s()((function(){null==p||p.run({rootValue:u,rules:_,config:e,dynamicMapComp:f,lang:h,messageInstance:c,_mapComp:b,isInit:!0}),y.Ay.call({config:e,dynamicMapComp:f,lang:h,_mapComp:b,messageInstance:c},_,!0,a),(0,v.Ts)(e,"eventInit",!0)}),0)),o}},set:function(i){if(e){var l=t.modelValue,d=E;if(l){var g,x=null==l?void 0:l[d];if(null!==(g=e)&&void 0!==g&&g.frameSet&&(d||(x=l),x&&("object"!==(0,n.A)(x)&&"object"!==(0,n.A)(i)||(i=(0,v.Vv)(x,i)))),(0,v.vr)(x)&&(0,v.vr)(i)&&x===i)return;try{d?t.modelValue[d]=i:t.modelValue=i}catch(t){console.log("config",e,d)}}else{e.parent&&(e.parent.frameSet=!0),(0,m.nextTick)((function(){e.parent&&(e.parent.frameSet=!1)}));var S=(0,o.A)({},d,i);d||(S=i),r("update:modelValue",S)}e&&s()((function(){null==p||p.run({rootValue:u,rules:_,config:e,dynamicMapComp:f,lang:h,messageInstance:c,_mapComp:b}),y.Ay.call({config:e,dynamicMapComp:f,lang:h,_mapComp:b,messageInstance:c},_,!1,a)}),0)}}})}function _(e,t,r){var n=(0,m.inject)("hireRelatMapRules"),o=(0,m.inject)("dataLoad"),i=(0,m.inject)("dynamicMapComp"),s=(0,m.inject)("lang"),a=(0,m.inject)("_mapComp"),c=(0,m.inject)("rootValue"),p=(0,m.inject)("_ruleExecuter"),f=(0,m.inject)("_messageInstance"),y={OPEN_DATA_RULES:r,hireRelatMapRules:n,dataLoad:o,dynamicMapComp:i,lang:s,rootValue:c,_mapComp:a,ruleExecuter:p,messageInstance:null==f?void 0:f.value},g=(0,m.reactive)({}),v=b.call(y,e.config,e,t);return g["onUpdate:modelValue"]=function(e){v.value=e},g.modelValue=v,{modelValue:v,vModelObjs:g,initVmodels:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];l()(r)||(r=u()(r)),r=d()(r).call(r,(function(e){return e.match(/^update:(\w+)$/)})),h()(r).call(r,(function(r){if("string"==typeof r){var n=b.call(y,e.config,e,t,r);if(n){var o=r.match(/^update:(\w+)$/);g["onUpdate:".concat(o[1])]=function(e){n.value=e},g[o[1]]=n}}})),g["onUpdate:modelValue"]=function(e){v.value=e},g.modelValue=v}}}},68999:(e,t,r)=>{r.d(t,{K:()=>i}),r(56255),r(27495),r(71761),r(25440);var n=r(75286),o=(r(9318),r(71835),r(17427));function i(e){return{modelValue:(0,n.computed)({get:function(){var t=e._rootValue,r=e.dynamicHireRelat;return(0,o.V9)((0,n.unref)(t),r,"->")},set:function(t){var r=e._rootValue,n=e.dynamicHireRelat;return(0,o.oY)(r,n,t,"->")}})}}},50510:(e,t,r)=>{r.d(t,{A:()=>d});var n=r(75286),o=r(66615),i=r.n(o),s=r(48079),a=r.n(s),l=r(11393),c=r.n(l),u=r(17427),p=r(89932);const d={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 r=t.emit,o=t.attrs,s=(0,n.computed)({get:function(){return e.modelValue},set:function(e){r("update:modelValue",e)}}),l=(0,n.inject)("_messageInstance"),d=(0,n.inject)("_getNativeComps"),f=(0,n.inject)("_loadModuleCache"),h=(0,n.inject)("_isH5"),m=(0,n.inject)("injectMode",""),y=(0,n.inject)("OPEN_DATA_RULES"),g=e.mode||m;(0,n.provide)("injectMode",g);var v=(0,n.inject)("indectModeRef",(0,n.ref)("")),b=(0,n.computed)((function(){return e.mode||v.value}));return(0,n.provide)("indectModeRef",b),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;if((0,u.n_)(t,y))return null;var r,i=(0,u.AP)(t,b.value),a=(0,u.fw)({messageInstance:null==l?void 0:l.value,config:t,disabled:i,getNativeComps:d,isH5:null==h?void 0:h.value,loadModuleCache:f});return a?(0,u.ZB)(t,i,null==h?void 0:h.value)((0,n.createVNode)(p.A,(0,n.mergeProps)({additionConfigs:e.additionConfigs,key:c()(r="".concat(t.metaId,"-")).call(r,t.rowIndex),component:a,config:t},o,{mode:b.value,rowScope:e.rowScope,modelValue:s.value,"onUpdate:modelValue":function(e){return s.value=e}}),null)):void 0})):null}}}},19022:(e,t,r)=>{r.d(t,{Ct:()=>k,MM:()=>j,NR:()=>B,Vf:()=>R,Vr:()=>I,Xe:()=>N,cv:()=>D,qK:()=>F});var n=r(53474),o=r(53811),i=(r(48598),r(44114),r(2892),r(84864),r(57465),r(27495),r(87745),r(90906),r(38781),r(71761),r(25440),r(86226)),s=r.n(i),a=r(31721),l=r.n(a),c=r(48079),u=r.n(c),p=r(36586),d=r.n(p),f=r(18979),h=r.n(f),m=r(11393),y=r.n(m),g=r(96319),v=r.n(g),b=r(71426),_=r.n(b),E=r(8628),x=r.n(E),S=(r(66615),r(385)),w=r.n(S),A=r(73363),T=r.n(A),P=r(17427),C=r(71835),O=["setShow","setHidden"],I={};function k(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0;if(!r)return"";var o=this.config,i=(this.dynamicMapComp,o.hireRelat),s=void 0===i?"":i;if(o.dynamicHireRelat,s===r)return o.bindValue;var a=M.call(this,r,o);return 1!==a.length?null:n?null===(e=a[0])||void 0===e?void 0:e.refValue:null===(t=a[0])||void 0===t?void 0:t.bindValue}function D(e,t){var r=this;if(e)if((0,P.Qd)(e))(0,P.$3)(e,"refValue")&&(e.refValue=t);else{var n=this.config,o=M.call(this,e,n);s()(o).call(o,(function(e){if((0,P.$3)(e,"refValue"))"ElSelect"===e.metaType&&(t=(0,C.l)({config:e,val:t,isActive:!0})),e.refValue=t;else{var n,o,i=r._mapComp;null!=i&&null!==(n=i.value)&&void 0!==n&&n[e.hireRelat]&&(I[e.hireRelat]||(I[e.hireRelat]=[]),l()(o=I[e.hireRelat]).call(o,(function(e){return(null==e?void 0:e.rules)===(null==r?void 0:r.rules)&&(null==e?void 0:e.config)===(null==r?void 0:r.config)}))||I[e.hireRelat].push(r))}}))}}function M(e,t,r){var n,o,i,a,c=this,p=t.dynamicHireRelat,f=void 0===p?"":p,m=f,g="",b=/(__@__[^(->)]*__)$/,E=null==f?void 0:f.match(b);E&&(g=E[1],m=null===(a=m)||void 0===a?void 0:a.replace(b,""));for(var S=u()(n=m.split("->")).call(n,(function(e){var t=null==e?void 0:e.match(/^(\w+)\[(\d+)\]$/);return t?{idx:d()(t[2]),code:t[1]}:{idx:-1,code:e}})),w=e.split("->"),A=w.length-1,T=0;T<w.length;T++){var P=w[T];if(S[T].code!==P){A=T;break}}var C=h()(w).call(w,A),k=u()(o=h()(S).call(S,0,A)).call(o,(function(e){var t,r=e.idx,n=e.code;return-1!==r?y()(t="".concat(n,"[")).call(t,r,"]"):n})).join("->"),D=k,M=null,j=k.match(/^([\w\W]*)\[(\d*)\]$/);j&&(D=j[1],M=j[2]);var N=this.dynamicMapComp,L=this._mapComp,R=[];if(D){var B;R=[N[y()(B="".concat(D)).call(B,g)]]}else{var F,U=C.shift();R=[N[y()(F="".concat(U)).call(F,g)]]}for(var V,W=function(){var e=C.shift(),t=[];s()(R).call(R,(function(n){if(n.multiPmPageMetaList)if(null!==M){var o=n.multiPmPageMetaList[M],i=o&&_()(o).call(o,(function(t){return t.metaCode===e}));if(!i)return;t.push(i),M=null}else{var a;if(x()(O).call(O,r)){var l,c=null==n||null===(l=n.pmPageMetaList)||void 0===l?void 0:_()(l).call(l,(function(t){return t.metaCode===e}));if(!c)return;t.push(c)}s()(a=n.multiPmPageMetaList).call(a,(function(r){var n=_()(r).call(r,(function(t){return t.metaCode===e}));n&&t.push(n)}))}else{var u,p=null==n||null===(u=n.pmPageMetaList)||void 0===u?void 0:_()(u).call(u,(function(t){return t.metaCode===e}));if(!p)return;t.push(p)}})),R=t};C.length;)W();return null!=L&&null!==(i=L.value)&&void 0!==i&&i[e]&&!v()(R).call(R,(function(e){return e.vmIsBind})).length&&(I[e]||(I[e]=[]),l()(V=I[e]).call(V,(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)}))||I[e].push(this)),R}function j(e,t){var r=L(e),n=L(t);return r&&n?Number(e)>Number(t):e+"">t+""}function N(e,t){var r=L(e),n=L(t);return r&&n?Number(e)<Number(t):e+""<t+""}function L(e){return!isNaN(Number(e))}function R(e,t){if(!e)return null;var r=this.config;return M.call(this,e,r,t)}function B(e){if(!e)return[];var t=[],r=e.pmRuleDefVoList,i=e.pmRuleDefVOList,a=r||(null==i?void 0:v()(i).call(i,(function(e){return"1"==(null==e?void 0:e.ruleType)})))||[];return s()(a).call(a,(function(e){var r=e.pmRuleEventRelVOList||e.pmRuleEventRelVoList||[],i=u()(r).call(r,(function(t){return(0,o.A)((0,o.A)({},t),{},{ruleType:e.ruleType})}));t.push.apply(t,(0,n.A)(i))})),t}function F(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=t?t.split("->"):[],o=r?r.split("->"):[],i=-1,s=0;-1===i&&s<n.length&&s<o.length;){var a=n[s],l=new RegExp("^".concat(a,"(\\[\\d+\\])?$")),c=o[s];l.test(c)?(w()(n).call(n,s,1,c),s++):i=s}var u=T()(n).call(n,(function(e,t){var r=t.replace(/([\[\]]{1})/g,(function(e,t){return"\\".concat(t)}));return e+(e?"->".concat(r,"(\\[\\d+\\])?"):"".concat(r,"(\\[\\d+\\])?"))}),""),p=new RegExp("^".concat(u,"$"));return v()(e).call(e,(function(e){return p.test(e)}))}},9318:(e,t,r)=>{r.d(t,{Ay:()=>X,Zt:()=>M,Bx:()=>J});var n=r(38008),o=(r(44114),r(84864),r(57465),r(27495),r(87745),r(38781),r(71761),r(25440),r(86226)),i=r.n(o),s=r(11393),a=r.n(s),l=r(56255),c=r.n(l),u=r(50697),p=r.n(u),d=r(96319),f=r.n(d),h=r(48079),m=r.n(h),y=r(36586),g=r.n(y),v=r(22204),b=r(49859),_=(r(23288),r(2892),r(79432),r(90906),r(66615)),E=r.n(_),x=r(64007),S=r.n(x),w=r(8628),A=r.n(w),T=r(31721),P=r.n(T),C=r(19022),O=r(17427),I={COMPONENT:1,SYSTEM:2,SELF:3,COMPONENT_ENMU:4,NULL:5},k=(0,b.A)((0,b.A)((0,b.A)((0,b.A)((0,b.A)({},I.COMPONENT,(function(e){var t,r=e.tabpanelCode,n=e.value;return C.Ct.call(this,a()(t="".concat(r?r+"->":"")).call(t,n))})),I.SYSTEM,(function(e){return function(e){var t=new Date;switch(e){case j.currentDate:return(0,O.Yq)(new Date,"yyyy-MM-dd");case j.currentTimestamp:return(new Date).getTime();case j.CurrentYear:return(0,O.Yq)(new Date,"yyyy");case j.CurrentMonth:return(0,O.Yq)(new Date,"MM");case j.CurrentDay:return(0,O.Yq)(new Date,"dd");case j.CurrentAfter30Day:return t.setDate(t.getDate()+30),(0,O.Yq)(t,"yyyy-MM-dd");case j.CurrentBefore30Day:return t.setDate(t.getDate()-30),(0,O.Yq)(t,"yyyy-MM-dd");default:return e}}(e.value)})),I.SELF,(function(e){var t=e.value,r="";try{r=JSON.parse(t)}catch(e){}return r})),I.COMPONENT_ENMU,(function(e){return e.value})),I.NULL,(function(){return null}));function D(e){var t=this,r=e||{},n=r.eventExpress,o=(r.pmRuleTargetEventVoList,r.ruleType,r.tabpanelCode);if(!n)return!1;var i=JSON.parse(n),s=i.relation,l=i.conditions;return m()(l).call(l,(function(e){var r,n=e.refType,i=e.refValue,s=e.targetType,l=e.targetValue;if(I.COMPONENT==n){var c,u=C.Vf.call(t,a()(c="".concat(o?o+"->":"")).call(c,i));if(!u||1!==u.length)return!1}if(!k[n])return!1;var p=k[n].call(t,{tabpanelCode:o,value:i});if(I.COMPONENT==s){var d,f=C.Vf.call(t,a()(d="".concat(o?o+"->":"")).call(d,l));if(!f||1!==f.length)return!1}if(!k[s])return!1;var h=k[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(0,O.CQ)(p)==(0,O.CQ)(h);case 6:return p!=h;case 7:return"number"==typeof p&&(p="".concat(p)),!(!E()(p)&&"string"!=typeof p)&&S()(p).call(p,h)>-1;case 8:return!!A()(r=["string","number"]).call(r,(0,v.A)(h))&&new RegExp(h).test(p);default:return!1}}))[1==s?"every":"some"]((function(e){return e}))}function M(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t={};return i()(e).call(e,(function(e){var r=function(e){var t=[],r=e||{},n=r.eventExpress,o=(r.pmRuleTargetEventVoList,r.tabpanelCode);if(!n)return!1;var s=JSON.parse(n).conditions,l=void 0===s?[]:s;return i()(l).call(l,(function(r){var n,i;r.refType!=I.COMPONENT&&r.targetType!=I.COMPONENT||(r.refType==I.COMPONENT&&t.push({key:o?a()(n="".concat(o,"->")).call(n,r.refCode||r.refValue):r.refCode||r.refValue,rules:[e]}),r.targetType==I.COMPONENT&&t.push({key:o?a()(i="".concat(o,"->")).call(i,r.targetValue):r.targetValue,rules:[e]}))})),t}(e);r&&r.length&&i()(r).call(r,(function(e){var r=e.key,n=void 0===r?"":r,o=e.rules,s=void 0===o?[]:o;t[n]?i()(s).call(s,(function(e){var r;null!==(r=t[n])&&void 0!==r&&P()(r).call(r,(function(t){return(null==t?void 0:t.relId)===(null==e?void 0:e.relId)}))||t[n].push(e)})):t[n]=s}))})),t}((0,C.NR)(e))}var j={currentDate:"1",currentTimestamp:"2",CurrentYear:"3",CurrentMonth:"4",CurrentDay:"5",CurrentAfter30Day:"6",CurrentBefore30Day:"7"};var N=r(53474),L=r(85569),R=r.n(L),B=r(38048),F=r.n(B),U=r(9665),V=r.n(U),W=r(85352),$=(0,N.A)(W.Lu),K=[],q={0:"setHidden",1:"setRequired",2:"setDisable",3:"setClear",4:"setDefaultValue",5:"limitDataRange",6:"setPopup",7:"openThePage",8:"setShow",9:"setNoRequired",10:"setNoDisable",11:"setDisableNotEffect",12:"setRequiredNotEffect",13:"setNoRequiredNotEffect",14:"setNoDisableNotEffect",16:"setProps"},z={setDefaultValue:function(e,t,r){var n,o=e.targetObj,i=e.targetObjVal;if(o){var s,l=this.config,c=this.dynamicMapComp,u=a()(n="".concat(r?r+"->":"")).call(n,o),p=/^_replace:/.test(i);p&&(i=function(e,t){var r=t.config,n=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===W.DE.REF_VAL)t=null!==(a=null==r?void 0:r.bindValue)&&void 0!==a?a:"";else if(t===W.DE.CURRENT_DATE)t=(0,O.Yq)(new Date,"yyyy-MM-dd");else if(l=t.match(/^_route:(.*)$/)){var u,p=l[1],d=null==r||null===(u=r.route)||void 0===u?void 0:u.query;t=null==d?void 0:d[p]}else if("string"==typeof t&&/^_lang$/.test(t))t=null==r?void 0:r._lang;else if(null!=c&&c[1]){var f=null==n?void 0:n[c[1]];t=(null==f?void 0:f.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 d="";try{d=JSON.parse(i)}catch(e){d=i||""}if("number"==typeof d&&(d="".concat(d)),p);else if(d===W.DE.REF_VAL){var f;d=null!==(f=null==l?void 0:l.bindValue)&&void 0!==f?f:""}else if(d===W.DE.CURRENT_DATE)d=(0,O.Yq)(new Date,"yyyy-MM-dd");else{var h,m,y=null,g=null===(h=d)||void 0===h||null===(m=h.match)||void 0===m?void 0:m.call(h,/^_absoluteTarget:(.+)$/);if("string"==typeof d&&(y=d.match(/^_route:(.*)$/))){var v,b=y[1],_=null==l||null===(v=l.route)||void 0===v?void 0:v.query;d=null==_?void 0:_[b]}else if("string"==typeof d&&/^_lang$/.test(d))d=null==l?void 0:l._lang;else if("string"==typeof d&&null!=g&&g[1]){var E=null==c?void 0:c[g[1]];d=(null==E?void 0:E.bindValue)||""}else{var x,S,w=null===(x=d)||void 0===x||null===(S=x.match)||void 0===S?void 0:S.call(x,/^_assgin:(.*)$/);if(w)d=null==w?void 0:w[1];else{var A=C.Ct.call(this,u,!0);(A||"0"==A)&&(d=A)}}}C.cv.call(this,u,d)}},setClear:function(e,t,r){var n;if(!t){var o=e.targetObj;if(o){var s=a()(n="".concat(r?r+"->":"")).call(n,o),l=C.Vf.call(this,s);i()(l).call(l,(function(e){if(e){var t="";A()($).call($,e.metaType||e.labelType)&&(t=[]),A()(K).call(K,e.metaType||e.labelType)&&(t=!1),(0,O.$3)(e,"refValue")&&(e.refValue=t)}}))}}},setDisable:function(e,t,r){var n,o=e.targetObj;if(o){var s=a()(n="".concat(r?r+"->":"")).call(n,o),l=C.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,r){var n,o=e.targetObj;if(o){var s=a()(n="".concat(r?r+"->":"")).call(n,o),l=C.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 r=c[t];e&&(e.editFlag=r)}))}}},setRequired:function(e,t,r){var n,o=e.targetObj;if(o){var s=a()(n="".concat(r?r+"->":"")).call(n,o),l=C.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,r){var n,o=e.targetObj;if(o){var s=a()(n="".concat(r?r+"->":"")).call(n,o),l=C.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 r=c[t];e&&(e.requiredFlag=r),e&&e.refConfig&&(e.refConfig.requiredFlag=r)}))}}},setHidden:function(e,t,r){var n,o=e.targetObj;if(o){var s=a()(n="".concat(r?r+"->":"")).call(n,o),l=C.Vf.call(this,s,"setHidden");return i()(l).call(l,(function(e){e&&/^\d+$/.test(e.displayType)&&(e.displayType="0"),e&&(e.hidden="1"),e&&e.refConfig&&/^\d+$/.test(e.refConfig.displayType)&&(e.refConfig.displayType="0"),e&&e.refConfig&&(e.refConfig.hidden="1")})),function(){i()(l).call(l,(function(e,t){e&&/^\d+$/.test(e.displayType)&&(e.displayType="1"),e&&(e.hidden="0"),e&&e.refConfig&&/^\d+$/.test(e.refConfig.displayType)&&(e.refConfig.displayType="1"),e&&e.refConfig&&(e.refConfig.hidden="0")}))}}},setShow:function(e,t,r,n){var o,s=e.targetObj;if(s){var l=a()(o="".concat(r?r+"->":"")).call(o,s),u=C.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&&/^\d+$/.test(e.refConfig.displayType)&&(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&&/^\d+$/.test(e.refConfig.displayType)&&(e.refConfig.displayType="0"),e&&e.refConfig&&(e.refConfig.hidden="1")}))}),0)}}},setNoRequired:function(e,t,r){var n,o=e.targetObj;if(o){var s=a()(n="".concat(r?r+"->":"")).call(n,o),l=C.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,r){var n,o=e.targetObj;if(o){var s=a()(n="".concat(r?r+"->":"")).call(n,o),l=C.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 r=c[t];e&&(e.requiredFlag=r)}))}}},setNoDisable:function(e,t,r){var n,o=e.targetObj;if(o){var s=a()(n="".concat(r?r+"->":"")).call(n,o),l=C.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,r){var n,o=e.targetObj;if(o){var s=a()(n="".concat(r?r+"->":"")).call(n,o),l=C.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 r=c[t];e&&(e.editFlag=r)}))}}},limitDataRange:function(e,t,r){var n,o=this,s=e.targetObj,l=e.targetObjVal,c=void 0===l?"":l;if(s){var u,d=a()(n="".concat(r?r+"->":"")).call(n,s);if((u=(null==c?void 0:S()(c).call(c,"~"))>-1?c.split("~"):c.split(","))&&u.length){var f=[],h=C.Vf.call(this,d);return i()(h).call(h,(function(t){var r=!1,n={};if(f.push(n),t){var s=o.config,a="";if(-1!==(0,O.Tn)(["ElDatePicker"],(null==t?void 0:t.renderby)||(null==t?void 0:t.metaType))){var l=u[0],c=u[1];try{a=(0,O.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,O.Tn)(["ElSelect"],(null==t?void 0:t.renderby)||(null==t?void 0:t.metaType))){var h=C.Ct.call(o,d,!0);return min&&(0,C.Xe)(h,min)&&C.cv.call(o,t,min),void(max&&(0,C.MM)(h,max)&&C.cv.call(o,t,max))}try{console.log("event==:",e),a=(0,O.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,O.Qd)(a)){var m,y,g=p()(a);i()(g).call(g,(function(e){if(n[e]=t[e],(0,O.$3)(t,e)||(r=!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 r,n;return F()(r=V()(t).call(t)).call(r)===W.DE.REF_VAL?s:F()(n=V()(t).call(t)).call(n)===W.DE.CURRENT_DATE?(0,O.Yq)(new Date,"yyyy-MM-dd"):e}))}else t[e]=a[e]})),r&&(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 r=f[t];if(e){var n=p()(r);i()(n).call(n,(function(t){e[t]=r[t]}))}}))}}}},setPopup:function(e,t,r){var n,o=e.targetMsg,i=e.targetMsgEn,s=S()(n=this.lang.value).call(n,"zh")>-1?o:i;this.messageInstance.warning(s,"",{showCancelButton:!1})},openThePage:function(e,t,r){var n=e.targetObjVal;n&&window.open(n,"_blank")},setProps:function(e,t,r,n){var o,s=this,l=e.targetObj,c=e.targetObjVal;if(l){var u=a()(o="".concat(r?r+"->":"")).call(o,l),d=this.config,f="";try{f=(0,O.Ho)({extendAttr:c,metaCode:"event setPorps code:".concat(d.metaCode)},null==d?void 0:d.bindValue)}catch(e){f=""}if(delete f.metaCode,(0,O.Qd)(f)){var h=C.Vf.call(this,u),m=[],y=p()(f);return i()(h).call(h,(function(e){var t,r,n=!1,o={};e&&(i()(y).call(y,(function(t){if(o[t]=e[t],(0,O.$3)(e,t)||(n=!0),"string"==typeof f[t]){var r=s.config,i=null==r?void 0:r.bindValue;e[t]=f[t].replace(/\{([^}]+)\}/g,(function(e,t){var r,n;return F()(r=V()(t).call(t)).call(r)===W.DE.REF_VAL?i:F()(n=V()(t).call(t)).call(n)===W.DE.CURRENT_DATE?(0,O.Yq)(new Date,"yyyy-MM-dd"):e}))}else e[t]=f[t]})),m.push(o),n&&(null==e||null===(t=e.wrapVm)||void 0===t||null===(t=t.proxy)||void 0===t||null===(r=t.$forceUpdate)||void 0===r||r.call(t)))})),function(){i()(h).call(h,(function(e,t){var r=m[t];e&&i()(y).call(y,(function(t){e[t]=r[t]}))}))}}}}};function H(e,t,r,n){var o=this;return e=e||[],m()(e).call(e,(function(e){var i=e.eventId,s=q[i];return console.log("evnet===:",s,e),z[s]&&z[s].call(o,e,t,r,n)}))}var G={},Q={};function X(e,t,r){var o=this;if(!r){e=e||[],this.rules=e;var s=this.config,l=s.dynamicHireRelat,u=s.columnId,d=s.id;s.metaCode,e&&e.length&&i()(e).call(e,(function(e){var r,s,h;if(e){var m=e.pmRuleTargetEventVoList,y=e.pmRuleTargetEventVOList,g=e.relId,v=e.tabpanelCode,b=a()(r=a()(s=a()(h="".concat(g,"__")).call(h,u||"")).call(s,d||"","__")).call(r,l);if(D.call(o,e))c()((function(){var r,n;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===(n=Q[b])||void 0===n||i()(n).call(n,(function(e){return e&&clearTimeout(e)})));var s=H.call(o,m||y,t,v,e);G[b]=s}),0);else{var _=p()(G),E=f()(_).call(_,(function(e){var t=e.split("__"),r=(0,n.A)(t,3),o=r[0],i=(r[1],r[2]);if(o==g){if(i===l)return!0;for(var s=Y(i).codes,a=Y(l).codes,c=0;c<a.length;c++){var u=a[c],p=s[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 r=t();r&&(Q[e]||(Q[e]=[]),Q[e].push(r))}})),delete G[e]}))}}}))}}function Y(e){var t,r="",n=m()(t=e.split("->")).call(t,(function(e){var t=null==e?void 0:e.match(/^(\w+)\[(\d+)\]$/);return t?(r+=r?"->".concat(t[1]):t[1],{idx:g()(t[2]),code:t[1]}):(r+=r?"->".concat(e):e,{idx:-1,code:e})}));return{nativeRelat:r,codes:n}}function J(e,t){var r,n,o,s=null===(r=e.dynamicHireRelat)||void 0===r?void 0:r.replace(new RegExp("\\[\\d*\\]->".concat(e.metaCode,"$")),a()(n="[".concat(t,"]->")).call(n,e.metaCode));s!=e.dynamicHireRelat&&i()(o=p()(G)).call(o,(function(t){var r=t.replace(e.dynamicHireRelat,s);r!==t&&(G[r]=G[t],delete G[t])}))}},70392:(e,t,r)=>{r.d(t,{K9:()=>M,jA:()=>k});var n=r(53474),o=r(86226),i=r.n(o),s=r(26327),a=r.n(s),l=r(14166),c=r.n(l),u=r(64007),p=r.n(u),d=r(85569),f=r.n(d),h=r(50697),m=r.n(h),y=r(38048),g=r.n(y),v=r(9665),b=r.n(v),_=r(48079),E=r.n(_),x=r(11393),S=r.n(x),w=r(385),A=r.n(w),T=(r(44114),r(23288),r(79432),r(27495),r(90906),r(71761),r(25440),r(30679)),P=r(85352),C=r(17427),O=r(75286),I=((0,n.A)(P.Lu),{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"}),k={},D={setDefaultValue:function(e){var t=e.event,r=e.rootValue,n=e.mapComp,o=e.route,i=e.lang,s=e.currentPath,a=(e.isInit,t.targetObj),l=t.targetObjVal;if(a){var c,u="".concat(a),p=/^_replace:/.test(l);p&&(l=function(e,t){var r=t.currentPath,n=t.rootValue,o=t.lang,i=t.route;return null==e?void 0:e.replace(/\$\{([^}]+)\}/g,(function(e,t,s){var a,l,c=null,u=null===(a=t)||void 0===a||null===(l=a.match)||void 0===l?void 0:l.call(a,/^_absoluteTarget:(.+)$/);if(t===P.DE.REF_VAL){var p=(0,C.V9)((0,O.unref)(n),r,"->");t=null!=p?p:""}else if(t===P.DE.CURRENT_DATE)t=(0,C.Yq)(new Date,"yyyy-MM-dd");else if(c=t.match(/^_route:(.*)$/)){var d=c[1],f=null==i?void 0:i.query;t=null==f?void 0:f[d]}else if("string"==typeof t&&/^_lang$/.test(t))t=o;else if(null!=u&&u[1])t=(0,C.V9)((0,O.unref)(n),u[1],"->")||"";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===(c=l)||void 0===c?void 0:c.replace(/^_replace:/,""),{currentPath:s,rootValue:r,lang:i,route:o,dynamicMapComp}));var d="";try{d=JSON.parse(l)}catch(e){d=l||""}if("number"==typeof d&&(d="".concat(d)),p);else if(d===P.DE.REF_VAL){var f=(0,C.V9)((0,O.unref)(r),s,"->");d=null!=f?f:""}else if(d===P.DE.CURRENT_DATE)d=(0,C.Yq)(new Date,"yyyy-MM-dd");else{var h,m,y=null,g=null===(h=d)||void 0===h||null===(m=h.match)||void 0===m?void 0:m.call(h,/^_absoluteTarget:(.+)$/);if("string"==typeof d&&(y=d.match(/^_route:(.*)$/))){var v=y[1],b=null==o?void 0:o.query;d=null==b?void 0:b[v]}else if("string"==typeof d&&/^_lang$/.test(d))d=i;else if("string"==typeof d&&null!=g&&g[1])d=(0,C.V9)((0,O.unref)(r),g[1],"->")||"";else{var _,E,x=null===(_=d)||void 0===_||null===(E=_.match)||void 0===E?void 0:E.call(_,/^_assgin:(.*)$/);if(x)d=null==x?void 0:x[1];else{var S=(0,T.Ct)((0,O.unref)(r),u,s);(S||"0"==S)&&(d=S)}}}(0,T.cv)(u,d,n,r,s)}},setClear:function(e){var t=e.event,r=e.rootValue,n=e.mapComp,o=e.currentPath;if(!e.isInit){var i=t.targetObj;if(i){var s="".concat(i);(0,T.cv)(s,"",n,r,o)}}},setDisable:function(e){var t=e.event,r=(e.rootValue,e.mapComp,e.dynamicMapComp),n=e.currentPath,o=(e.isInit,t.targetObj);if(o){var s,a="".concat(o);return s=(0,T.Vf)({codesStr:a,dynamicMapComp:r,currentPath:n}),i()(s).call(s,(function(e){e&&(e.editFlag="0")})),function(){i()(s).call(s,(function(e){e&&(e.editFlag="1")}))}}},setDisableNotEffect:function(e){var t=e.event,r=(e.rootValue,e.mapComp,e.dynamicMapComp),n=e.currentPath,o=(e.isInit,t.targetObj);if(o){var s="".concat(o),a=(0,T.Vf)({codesStr:s,dynamicMapComp:r,currentPath:n});return i()(a).call(a,(function(e){(0,C.$3)(e,"_originEditFlag")||(e._originEditFlag=e.editFlag),e&&(e.editFlag="0")})),function(){i()(a).call(a,(function(e,t){e&&(e.editFlag=e._originEditFlag)}))}}},setRequired:function(e){var t=e.event,r=(e.rootValue,e.mapComp,e.dynamicMapComp),n=e.currentPath,o=(e.isInit,t.targetObj);if(o){var s="".concat(o),l=(0,T.Vf)({codesStr:s,dynamicMapComp:r,currentPath:n});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){if(e&&(e.requiredFlag="0"),e.isColumn){var t,r,n=(null==e||null===(t=e.parent)||void 0===t?void 0:t.pmPageMetaList)||[],o=(null==e||null===(r=e.parent)||void 0===r?void 0:r.multiPmPageMetaList)||[],i=null==n?void 0:a()(n).call(n,(function(t){return t.metaCode===e.metaCode}));null!=o&&c()(o).call(o,(function(e){var t;return"0"==(null===(t=e[i])||void 0===t?void 0:t.requiredFlag)}))&&e&&e.refConfig&&(e.refConfig.requiredFlag="0")}else e&&e.refConfig&&(e.refConfig.requiredFlag="0")}))}}},setRequiredNotEffect:function(e){var t=e.event,r=(e.rootValue,e.mapComp,e.dynamicMapComp),n=e.currentPath,o=(e.isInit,t.targetObj);if(o){var s="".concat(o),l=(0,T.Vf)({codesStr:s,dynamicMapComp:r,currentPath:n});return i()(l).call(l,(function(e){(0,C.$3)(e,"_originRequiredFlag")||(e._originRequiredFlag=e.requiredFlag),e&&(e.requiredFlag="1"),e&&e.refConfig&&(e.refConfig.requiredFlag="1")})),function(){i()(l).call(l,(function(e,t){if(e&&(e.requiredFlag=e._originRequiredFlag),e.isColumn){if("0"==e._originRequiredFlag){var r,n,o=(null==e||null===(r=e.parent)||void 0===r?void 0:r.pmPageMetaList)||[],i=(null==e||null===(n=e.parent)||void 0===n?void 0:n.multiPmPageMetaList)||[],s=null==o?void 0:a()(o).call(o,(function(t){return t.metaCode===e.metaCode}));null!=i&&c()(i).call(i,(function(e){var t;return"0"==(null===(t=e[s])||void 0===t?void 0:t.requiredFlag)}))&&e&&e.refConfig&&(e.refConfig.requiredFlag=e._originRequiredFlag)}}else"0"==e._originRequiredFlag&&e&&e.refConfig&&(e.refConfig.requiredFlag=e._originRequiredFlag)}))}}},setHidden:function(e){var t=e.event,r=(e.rootValue,e.mapComp,e.dynamicMapComp),n=e.currentPath,o=(e.isInit,e.relIdKey,t.targetObj);if(o){var s,a="".concat(o);return s=(0,T.Vf)({codesStr:a,dynamicMapComp:r,currentPath:n}),i()(s).call(s,(function(e){e&&(e.hidden="1"),e&&e.refConfig&&(e.refConfig.hidden="1")})),function(){i()(s).call(s,(function(e,t){e&&(e.hidden="0"),e&&e.refConfig&&(e.refConfig.hidden="0")}))}}},setShow:function(e){var t=e.event,r=(e.rootValue,e.mapComp,e.dynamicMapComp),n=e.currentPath,o=(e.isInit,t.targetObj);if(o){var s="".concat(o),a=(0,T.Vf)({codesStr:s,dynamicMapComp:r,currentPath:n});return i()(a).call(a,(function(e){e&&(e.hidden="0"),e&&e.refConfig&&(e.refConfig.hidden="0")})),function(){i()(a).call(a,(function(e,t){e&&(e.hidden="1"),e&&e.refConfig&&(e.refConfig.hidden="1")}))}}},setNoRequired:function(e){var t=e.event,r=(e.rootValue,e.mapComp,e.dynamicMapComp),n=e.currentPath,o=(e.isInit,t.targetObj);if(o){var s="".concat(o),l=(0,T.Vf)({codesStr:s,dynamicMapComp:r,currentPath:n}),u=[];return i()(l).call(l,(function(e){if(e&&"0"!=e.requiredFlag){if(e&&(e.requiredFlag="0"),e.isColumn){var t,r,n=(null==e||null===(t=e.parent)||void 0===t?void 0:t.pmPageMetaList)||[],o=(null==e||null===(r=e.parent)||void 0===r?void 0:r.multiPmPageMetaList)||[],i=null==n?void 0:a()(n).call(n,(function(t){return t.metaCode===e.metaCode}));null!=o&&c()(o).call(o,(function(e){var t;return"0"==(null===(t=e[i])||void 0===t?void 0:t.requiredFlag)}))&&e&&e.refConfig&&(e.refConfig.requiredFlag="0")}else e&&e.refConfig&&(e.refConfig.requiredFlag="0");u.push((function(){e&&(e.requiredFlag="1"),e&&e.refConfig&&(e.refConfig.requiredFlag="1")}))}})),function(){i()(u).call(u,(function(e){return e()}))}}},setNoRequiredNotEffect:function(e){var t=e.event,r=(e.rootValue,e.mapComp,e.dynamicMapComp),n=e.currentPath,o=(e.isInit,t.targetObj);if(o){var s="".concat(o),l=(0,T.Vf)({codesStr:s,dynamicMapComp:r,currentPath:n}),u=[];return i()(l).call(l,(function(e){if(e&&"0"!=e.requiredFlag){if((0,C.$3)(e,"_originRequiredFlag")||(e._originRequiredFlag=e.requiredFlag),e&&(e.requiredFlag="0"),e.isColumn){var t,r,n=(null==e||null===(t=e.parent)||void 0===t?void 0:t.pmPageMetaList)||[],o=(null==e||null===(r=e.parent)||void 0===r?void 0:r.multiPmPageMetaList)||[],i=null==n?void 0:a()(n).call(n,(function(t){return t.metaCode===e.metaCode}));null!=o&&c()(o).call(o,(function(e){var t;return"0"==(null===(t=e[i])||void 0===t?void 0:t.requiredFlag)}))&&e&&e.refConfig&&(e.refConfig.requiredFlag="0")}else e&&e.refConfig&&(e.refConfig.requiredFlag="0");u.push((function(){if(e&&(e.requiredFlag=e._originRequiredFlag),"0"==e._originRequiredFlag)if(e.isColumn){var t,r,n=(null==e||null===(t=e.parent)||void 0===t?void 0:t.pmPageMetaList)||[],o=(null==e||null===(r=e.parent)||void 0===r?void 0:r.multiPmPageMetaList)||[],i=null==n?void 0:a()(n).call(n,(function(t){return t.metaCode===e.metaCode}));null!=o&&c()(o).call(o,(function(e){var t;return"0"==(null===(t=e[i])||void 0===t?void 0:t.requiredFlag)}))&&e&&e.refConfig&&(e.refConfig.requiredFlag=e._originRequiredFlag)}else e&&e.refConfig&&(e.refConfig.requiredFlag=e._originRequiredFlag);else e&&e.refConfig&&(e.refConfig.requiredFlag=e._originRequiredFlag)}))}})),function(){i()(u).call(u,(function(e){return e()}))}}},setNoDisable:function(e){var t=e.event,r=(e.rootValue,e.mapComp,e.dynamicMapComp),n=e.currentPath,o=(e.isInit,t.targetObj);if(o){var s="".concat(o),a=(0,T.Vf)({codesStr:s,dynamicMapComp:r,currentPath:n}),l=[];return i()(a).call(a,(function(e){"1"!=(null==e?void 0:e.editFlag)&&(e&&(e.editFlag="1"),l.push((function(){e&&(e.editFlag="0")})))})),function(){i()(l).call(l,(function(e){return e()}))}}},setNoDisableNotEffect:function(e){var t=e.event,r=(e.rootValue,e.mapComp,e.dynamicMapComp),n=e.currentPath,o=(e.isInit,t.targetObj);if(o){var s="".concat(o),a=(0,T.Vf)({codesStr:s,dynamicMapComp:r,currentPath:n}),l=[];return i()(a).call(a,(function(e){(0,C.$3)(e,"_originEditFlag")||(e._originEditFlag=e.editFlag),e&&(e.editFlag="1"),l.push((function(){e&&(e.editFlag=e._originEditFlag)}))})),function(){i()(l).call(l,(function(e){return e()}))}}},limitDataRange:function(e){var t=e.event,r=e.rootValue,n=(e.mapComp,e.dynamicMapComp),o=e.currentPath,s=(e.messageInstance,e.isInit,t.targetObj),a=t.targetObjVal,l=void 0===a?"":a;if(s){var c,u="".concat(s),d=[];if((l=l||"")&&(d=(null===(c=l)||void 0===c?void 0:p()(c).call(c,"~"))>-1?l.split("~"):l.split(",")),d&&d.length){var h=(0,T.Vf)({codesStr:u,dynamicMapComp:n,currentPath:o});return i()(h).call(h,(function(e){var n=!1,s={};if(e._eventLimitDataRageCbProps=s,e){var a="";if(-1!==(0,C.Tn)(["ElDatePicker"],(null==e?void 0:e.renderby)||(null==e?void 0:e.metaType))){var l=d[0],c=d[1];try{a=(0,C.Ho)({extendAttr:f()({min:l,max:c}),metaCode:"event setPorps code, target path: ".concat(o)},(0,C.V9)((0,O.unref)(r),o,"->"))}catch(e){a=""}}else{if(-1===(0,C.Tn)(["ElSelect"],(null==e?void 0:e.renderby)||(null==e?void 0:e.metaType))){var u=(0,C.V9)((0,O.unref)(r),e.dynamicHireRelat,"->");return min&&(0,T.Xe)(u,min)&&(0,C.oY)(r,e.dynamicHireRelat,min,"->"),void(max&&(0,T.MM)(u,max)&&(0,C.oY)(r,e.dynamicHireRelat,max,"->"))}try{console.log("event==:",t),a=(0,C.Ho)({extendAttr:f()({rangeOptions:d}),metaCode:"event setPorps code, target path: ".concat(o)},(0,C.V9)((0,O.unref)(r),o,"->"))}catch(e){a=""}}if(delete a.metaCode,(0,C.Qd)(a)){var p,h,y=m()(a);i()(y).call(y,(function(t){if(s[t]=e[t],(0,C.$3)(e,t)||(n=!0),"string"==typeof a[t]){var i=(0,C.V9)((0,O.unref)(r),o,"->");e[t]=a[t].replace(/\{([^}]+)\}/g,(function(e,t){var r,n;return g()(r=b()(t).call(t)).call(r)===P.DE.REF_VAL?i:g()(n=b()(t).call(t)).call(n)===P.DE.CURRENT_DATE?(0,C.Yq)(new Date,"yyyy-MM-dd"):e}))}else e[t]=a[t]})),n&&(null==e||null===(p=e.wrapVm)||void 0===p||null===(p=p.proxy)||void 0===p||null===(h=p.$forceUpdate)||void 0===h||h.call(p))}}})),function(){i()(h).call(h,(function(e,t){var r=e._eventLimitDataRageCbProps;if(e){var n=m()(r);i()(n).call(n,(function(t){e[t]=r[t]}))}}))}}}},setPopup:function(e){var t=e.event,r=(e.rootValue,e.lang),n=(e.mapComp,e.dynamicMapComp,e.currentPath,e.isInit,t.targetMsg),o=t.targetMsgEn,i=(null==r?void 0:p()(r).call(r,"zh"))>-1?n:o;messageInstance.warning(i,"",{showCancelButton:!1})},openThePage:function(e){var t=e.event,r=(e.rootValue,e.mapComp,e.dynamicMapComp,e.currentPath,e.messageInstance,e.isInit,t.targetObjVal);r&&window.open(r,"_blank")},setProps:function(e){var t=e.event,r=e.rootValue,n=(e.mapComp,e.dynamicMapComp),o=e.currentPath,s=(e.messageInstance,e.isInit,t.targetObj),a=t.targetObjVal;if(s){var l="".concat(s),c=(0,T.Vf)({codesStr:l,dynamicMapComp:n,currentPath:o}),u="";try{u=(0,C.Ho)({extendAttr:a,metaCode:"event setPorps code, target path: ".concat(o)},(0,C.V9)((0,O.unref)(r),o,"->"))}catch(e){u=""}if(delete u.metaCode,(0,C.Qd)(u)){var p=m()(u);return i()(c).call(c,(function(e){var t,n,s=!1,a={};e._eventSetPropsCbProps=a,e&&(i()(p).call(p,(function(t){if(a[t]=e[t],(0,C.$3)(e,t)||(s=!0),"string"==typeof u[t]){var n=(0,C.V9)((0,O.unref)(r),o,"->");e[t]=u[t].replace(/\{([^}]+)\}/g,(function(e,t){var r,o;return g()(r=b()(t).call(t)).call(r)===P.DE.REF_VAL?n:g()(o=b()(t).call(t)).call(o)===P.DE.CURRENT_DATE?(0,C.Yq)(new Date,"yyyy-MM-dd"):e}))}else e[t]=u[t]})),s&&(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()(c).call(c,(function(e,t){var r=e._eventSetPropsCbProps;e&&i()(p).call(p,(function(t){e[t]=r[t]}))}))}}}}};function M(e){var t=e.events,r=e.rootValue,n=e.mapComp,o=e.dynamicMapComp,i=e.route,s=e.lang,l=e.currentPath,c=e.isInit,u=e.rule,p=e.messageInstance,d=e.relIdKey;return t=t||[],E()(t).call(t,(function(e){var t=e.eventId,f=I[t],h=D[f]&&D[f]({event:e,rootValue:r,mapComp:n,dynamicMapComp:o,route:i,lang:s,currentPath:l,isInit:c,rule:u,messageInstance:p,relIdKey:d}),m={recoverCb:null};if(h){var y,g,v=e.targetObj;!k[v]&&(k[v]=[]);var b,_=S()(y="".concat(d,"_")).call(y,f),E=a()(g=k[v]).call(g,(function(e){return e.id===_}));E>-1&&A()(b=k[v]).call(b,E,1),k[v].push({id:_,currentPath:l,action:function(){h=D[f]&&D[f]({event:e,rootValue:r,mapComp:n,dynamicMapComp:o,route:i,lang:s,currentPath:l,isInit:c,rule:u,messageInstance:p,relIdKey:d})}}),m.recoverCb=function(){var e,t;null===(e=h)||void 0===e||e();var r,n=a()(t=k[v]).call(t,(function(e){return e.id===_}));n>-1&&A()(r=k[v]).call(r,n,1)}}else m.recoverCb=h;return m}))}},30679:(e,t,r)=>{r.d(t,{Ct:()=>v,MM:()=>E,Vf:()=>w,Xe:()=>x,cv:()=>b});var n=r(385),o=r.n(n),i=r(18979),s=r.n(i),a=r(48079),l=r.n(a),c=(r(36586),r(11393)),u=r.n(c),p=(r(31721),r(86226),r(71426),r(8628),r(73363)),d=r.n(p),f=r(96319),h=r.n(f),m=r(50697),y=r.n(m),g=(r(66615),r(48598),r(44114),r(13609),r(2892),r(84864),r(57465),r(27495),r(87745),r(90906),r(38781),r(71761),r(25440),r(17427));function v(e,t,r){if(t===r)return(0,g.V9)(e,t,"->");var n,i=r,s=/(__@__[^(->)]*__)$/,a=null==r?void 0:r.match(s);a&&(a[1],i=null===(n=i)||void 0===n?void 0:n.replace(s,""));for(var l=i?i.split("->"):[],c=t?t.split("->"):[],u=-1,p=0;-1===u&&p<c.length&&p<l.length;){var d=c[p],f=new RegExp("^".concat(d,"(\\[\\d+\\])?$")),h=l[p];f.test(h)?(o()(c).call(c,p,1,h),p++):u=p}var m=c.join("->");return(0,g.V9)(e,m,"->")}function b(e,t,r,n,i){if(e){for(var a=[],l=e;l;){var c=r[l];if(c){a.unshift(c);var u=l.replace(/->\w*$/,"");l=u===l?"":u}else a=[],l=""}if(a&&a.length){for(var p=i?i.split("->"):[],d=e?e.split("->"):[],f=-1,h=0;-1===f&&h<d.length&&h<p.length;){var m=d[h],y=new RegExp("^".concat(m,"(\\[\\d+\\])?$")),v=p[h];y.test(v)?(o()(d).call(d,h,1,v),h++):f=h}var b=null;(b=-1!==f?_(s()(a).call(a,f),0,s()(d).call(d,0,f).join("->")):d.join("->"))&&(0,g.oY)(n,b,t,"->")}}}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!e||!e.length)return null;var n=e[t];if(r+=r?"->".concat(n.metaCode):n.metaCode,e.length===t+1)return r;var o=r;return(0,g.jG)(n)&&(o="".concat(r,"[_all]")),_(e,++t,o)}function E(e,t){var r=S(e),n=S(t);return r&&n?Number(e)>Number(t):e+"">t+""}function x(e,t){var r=S(e),n=S(t);return r&&n?Number(e)<Number(t):e+""<t+""}function S(e){return!isNaN(Number(e))}function w(e){var t=e.codesStr,r=e.dynamicMapComp,n=e.currentPath;if(!t)return null;var i=function(e){var t=e.codesStr,r=e.dynamicMapComp,n=e.currentPath,i=t,s=function(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",s=i,a="",l=/(__@__[^(->)]*__)$/,c=null==i?void 0:i.match(l);c&&(a=c[1],s=null===(t=s)||void 0===t?void 0:t.replace(l,""));for(var p=s?s.split("->"):[],f=n?n.split("->"):[],m=-1,y=0;-1===m&&y<f.length&&y<p.length;){var g=f[y],v=new RegExp("^".concat(g,"(\\[\\d+\\])?$")),b=p[y];v.test(b)?(o()(f).call(f,y,1,b),y++):m=y}var _=d()(f).call(f,(function(e,t){var r=t.replace(/([\[\]]{1})/g,(function(e,t){return"\\".concat(t)}));return e+(e?"->".concat(r,"(\\[\\d+\\])?"):"".concat(r,"(\\[\\d+\\])?"))}),""),E=new RegExp(u()(e="^".concat(_)).call(e,a,"$"));return h()(r).call(r,(function(e){return E.test(e)}))}(y()(r||{}),i,n);return s}({codesStr:t,dynamicMapComp:r,currentPath:n});return l()(i).call(i,(function(e){return r[e]}))}r(71835)},48618:(e,t,r)=>{r.d(t,{$3:()=>ye,$N:()=>be,CQ:()=>Le,Dg:()=>Ce,E1:()=>pe,Ij:()=>Ae,M6:()=>ie,Oe:()=>xe,PT:()=>le,Qd:()=>ge,Tn:()=>ue,Ts:()=>Pe,V9:()=>ke,Vv:()=>_e,X$:()=>Ee,Yq:()=>ve,ZH:()=>ce,bO:()=>fe,fN:()=>Te,fz:()=>de,iF:()=>Oe,lk:()=>je,mg:()=>Q.A,oY:()=>Me,pp:()=>we,q2:()=>X.A,ro:()=>he,sg:()=>G.A,vr:()=>se,yL:()=>Se});var n=r(38008),o=r(53811),i=r(7252),s=r(53474),a=r(22204),l=(r(16280),r(76918),r(48598),r(44114),r(54743),r(11745),r(38309),r(16573),r(78100),r(77936),r(23288),r(2892),r(9868),r(79432),r(26099),r(84864),r(57465),r(27495),r(87745),r(90906),r(38781),r(71761),r(25440),r(90744),r(50375),r(21489),r(48140),r(81630),r(72170),r(75044),r(69539),r(31694),r(89955),r(21903),r(91134),r(33206),r(44496),r(66651),r(12887),r(19369),r(66812),r(8995),r(31575),r(36072),r(88747),r(28845),r(29423),r(57301),r(373),r(86614),r(41405),r(37467),r(44732),r(33684),r(79577),r(27681)),c=r.n(l),u=r(71426),p=r.n(u),d=r(27124),f=r.n(d),h=r(36586),m=r.n(h),y=r(18979),g=r.n(y),v=r(73363),b=r.n(v),_=r(86226),E=r.n(_),x=r(50697),S=r.n(x),w=(r(43981),r(11393)),A=r.n(w),T=r(66615),P=r.n(T),C=r(11265),O=r.n(C),I=r(48079),k=r.n(I),D=r(53930),M=r.n(D),j=r(87842),N=r.n(j),L=r(59261),R=r.n(L),B=r(74707),F=r.n(B),U=r(165),V=r.n(U),W=r(78010),$=r.n(W),K=r(82895),q=r.n(K),z=r(80668),H=r.n(z),G=r(12223),Q=r(88592),X=r(14835),Y=r(36380),J=r(92049),Z=r(46996),ee=r(10565),te=r(66401),re=r(12935),ne=r(75286);function oe(e){var t=c()(null);return function(r){return t[r]||(t[r]=e(r))}}function ie(e){if(!e)return null;var t=Number(e);if(isNaN(t)){var r=["px","%","vh","vw","rem","em"],n=p()(r).call(r,(function(t){return null==e?void 0:f()(e).call(e,t)}));return n?m()(e)+n:null}return t+"px"}function se(e){var t=(0,a.A)(e);return"undefined"===t||"boolean"===t||"number"===t||"string"===t||"symbol"===t||"bigint"===t}var ae=/-(\w)/g,le=oe((function(e){return e.replace(ae,(function(e,t){return t?t.toUpperCase():""}))})),ce=oe((function(e){return e.charAt(0).toUpperCase()+g()(e).call(e,1)}));function ue(e,t){var r=de(b()(e).call(e,(function(e,t,r){return e[t]=r,e}),{}),t);return null==r?-1:r}function pe(e,t){return-1!==ue(e,null==t?void 0:t.renderby)||-1!==ue(e,null==t?void 0:t.metaType)}function de(e,t){if("string"!=typeof t)return null;var r=e;if(void 0!==r[t]&&null!==r[t])return r[t];var n=le(t);if(void 0!==r[n]&&null!==r[n])return r[n];var o=ce(n);return void 0!==r[o]&&null!==r[o]?r[o]:null}function fe(e){return"string"!=typeof e?e:ce(le(e))}function he(e,t){return"string"==typeof e&&"string"==typeof t&&ce(le(e))===ce(le(t))}var me=Object.prototype.hasOwnProperty;function ye(e,t){return me.call(e,t)}function ge(e){return"[object Object]"===Object.prototype.toString.call(e)&&null!=e}function ve(e,t){var r;if(!e)return"";(0,re.$P)(e)||(e=new Date(e)),/(y+)/.test(t)&&(t=t.replace(RegExp.$1,"".concat(e.getFullYear()).substr(4-RegExp.$1.length)));var n={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds()};return E()(r=S()(n)).call(r,(function(e){var r="".concat(n[e]);new RegExp("(".concat(e,")")).test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?r:function(e){return"00".concat(e).substr(e.length)}(r)))})),t}function be(e,t,r){if(!t)return e;if(!e)return t;var n=(0,Y.A)(e,t,(function(e,t){if(!t)return e;if(!e)return t;if((0,J.A)(t)&&(0,J.A)(e))switch(r){case"union":return(0,X.A)(e,t,Z.A);case"intersection":return(0,ee.A)(e,t,Z.A);case"concat":return A()(e).call(e,t);case"replace":return t;default:throw new Error("Unknown merge array strategy: ".concat(r))}return ge(t)&&ge(e)?be(e,t,r):t}));if(P()(e)&&n&&!P()(n)){var o,i=[];E()(o=S()(n)).call(o,(function(e){i[e]=n[e]})),n=i}return n}function _e(e,t){var r=t;if("object"===(0,a.A)(e)&&"object"===(0,a.A)(t)&&(r=(0,Y.A)(e,t,(function(e,t){if((0,J.A)(e)&&(0,J.A)(t)){for(var r=[],n=0;n<e.length&&n<t.length;n++)r.push(_e(e[n],t[n]));return n<e.length?r.push.apply(r,(0,s.A)(g()(e).call(e,n))):r.push.apply(r,(0,s.A)(g()(t).call(t,n))),r}return ge(t)&&ge(e)?_e(e,t):t}))),P()(e)&&r&&!P()(r)){var n,o=[];E()(n=S()(r)).call(n,(function(e){o[e]=r[e]})),r=o}return r}function Ee(e,t,r){for(var n in t)r&&ye(e,n)||(e[n]=t[n]);return e}function xe(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 Se(e){return e&&"function"==typeof e.then}function we(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,i.A)(Date,t)}function Ae(){var e;return A()(e="".concat(ve(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(r){var n=16*Math.random();return e>0?(n=(e+n)%16|0,e=Math.floor(e/16)):(n=(t+n)%16|0,t=Math.floor(t/16)),("x"===r?n:3&n|8).toString(16)}))}())}function Te(e,t){var r,n,o,i=e.referenceOptions,s=e.selectKey,a=[];try{var l;a=k()(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===(r=t.value)||void 0===r?void 0:r[s])||(null==t?void 0:t.value)&&(null==t||null===(n=t.value)||void 0===n?void 0:n["".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 Pe(e,t,r,n){e[t]=r;var i=n||{};M()(e,t,(0,o.A)({value:r,writable:!0,enumerable:!1,configurable:!0},i))}function Ce(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new(N());if(null===e||"object"!==(0,a.A)(e))switch((0,a.A)(e)){case"string":case"number":return"";default:return null}if(n.has(e))return n.get(e);if(P()(e))t=[],n.set(e,t),(r=t).push.apply(r,(0,s.A)(k()(e).call(e,(function(e){return Ce(e,n)}))));else if(e instanceof Date)t=null;else if(e instanceof R())t=new(R());else if(e instanceof F())t=new(F());else{t={},n.set(e,t);for(var o=0,i=S()(e);o<i.length;o++){var l=i[o],c=Ce(e[l],n);null!=c&&(t[l]=c)}}return t}function Oe(e){var t;if(null==e)return"NaN";var r=O()(t=String(e)).call(t).match(/^[+-]?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/);if(!r)return"NaN";var o=r[0];return/e/i.test(o)&&(o=function(e){var t=e.split(/e/gi),r=(0,n.A)(t,2),o=r[0],i=r[1],s=i?m()(i,10):0,a=o.split("."),l=(0,n.A)(a,2),c=l[0],u=l[1],p=void 0===u?"":u,d=V()(c).call(c,"-");d&&(c=g()(c).call(c,1));var f=c+p,h=c.length+s;return h>=f.length?(d?"-":"")+f+$()("0").call("0",h-f.length):h<=0?(d?"-":"")+"0."+$()("0").call("0",-h)+f:(d?"-":"")+g()(f).call(f,0,h)+(g()(f).call(f,h)?"."+g()(f).call(f,h):"")}(o)),function(e){if(""===e)return"0";var t=V()(e).call(e,"-"),r=(t?g()(e).call(e,1):e).split("."),o=(0,n.A)(r,2),i=o[0],s=o[1],a="";return a+=t?"-":"",a+=i=i.replace(/^0+/,"")||"0",a+=(s=(s||"").replace(/0+$/,""))?"."+s:"",V()(a).call(a,".")&&(a="0"+a),V()(a).call(a,"-.")&&(a="-0"+g()(a).call(a,1)),a}(o)}var Ie=/^([-\w]+)\[(\d+)\]/;function ke(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",o=r;return"string"==typeof r&&(o=r.split(n)),null!==(e=b()(o).call(o,(function(e,t){if(e){var r,n=t.match(Ie);return n?null===(r=e[n[1]])||void 0===r?void 0:r[n[2]]:e[t]}return null}),t))&&void 0!==e?e:""}var De=/^([-\w]+)\[(_all|\d+)\]/;function Me(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".";if(t&&e){var o=e;(0,ne.isRef)(e)&&(o=e.value);var i=t;if("string"==typeof i&&(i=t.split(n)),i&&i.length){for(var s=o,a=function(e){var t=i[e];if(e===i.length-1)s[t]=r;else{var n=t,o=!1,a=t.match(De);a&&(n=a[1],o=!0),!s[n]&&(s[n]=o?[]:{});var l=s[n];if(a){var c;if("_all"===a[2])return null===(c=l)||void 0===c||E()(c).call(c,(function(t){Me(t,g()(i).call(i,e+1),r)})),1;var u=m()(a[2]);q()(u)||(!l[u]&&(l[u]={}),l=l[u])}s=l}},l=0;l<i.length&&!a(l);l++);(0,ne.isRef)(e)&&(e.value=o)}}}function je(e){var t=e.target;if(t.childNodes.length){var r=document.createRange();r.setStart(t,0),r.setEnd(t,t.childNodes.length);var n=r.getBoundingClientRect(),o=n.width,i=n.height,s=o-Math.floor(o),a=t.getBoundingClientRect(),l=a.width,c=a.height;l=Math.ceil(l),s<.001&&(o=Math.floor(o)),i-Math.floor(i)<.001&&(i=Math.floor(i));var u,p,d=(u=t,p=window.getComputedStyle(u,null),{left:H()(p.paddingLeft,10)||0,right:H()(p.paddingRight,10)||0,top:H()(p.paddingTop,10)||0,bottom:H()(p.paddingBottom,10)||0}),f=d.top+d.bottom,h={};return(Ne(o+(d.left+d.right),l)||Ne(i+f,c)||Ne(t.scrollWidth,l))&&(h.overflow=!0,h.content=t.innerText||t.textContent),h}}function Ne(e,t){return e-t>(arguments.length>2&&void 0!==arguments[2]?arguments[2]:.01)}function Le(e){return(0,J.A)(e)?(0,te.A)(e)?"":e.join(","):e}},85352:(e,t,r)=>{r.d(t,{AP:()=>M,Bs:()=>x,DE:()=>c,E0:()=>v,K4:()=>u,LX:()=>b,Lu:()=>_,MD:()=>S,Op:()=>P,R_:()=>m,UP:()=>y,V6:()=>E,Xj:()=>I,aX:()=>A,dK:()=>D,fH:()=>T,g:()=>l,jK:()=>p,jf:()=>g,of:()=>h,pL:()=>w,s1:()=>j,ue:()=>O,un:()=>f,yD:()=>C,yz:()=>k});var n=r(64007),o=r.n(n),i=r(11393),s=r.n(i),a=(r(2892),r(48618)),l={OPERATE:"operate",DETAIL:"detail",LOG:"log"},c={CURRENT_DATE:"_currentDate",CURRENT_DATE_EXCLUDE:"_currentDateExclude",CURRENT_DATE_TIME:"_currentDateTime",REF_VAL:"_refVal"},u={LIST:"list",OBJECT:"object",STRING:"string"},p=["CustomComponentTableH5"],d=["CustomComponentTabs","CustomComponentTabPane","CustomComponentCycleTabPane","CustomComponentCollapse","CustomComponentTabPaneH5"],f="CustomComponentFormLayout",h="CustomComponentFormLayoutH5",m=["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"],y=["ElInput","ElButton","CmiInput","CmiButton","ElText"],g=["CmiInput","CmiSelect","CmiPicker"],v=["CustomComponentCycle","CustomComponentCycleTabPane","CustomComponentTable"],b=["CustomComponentTabPane","CustomComponentDialog","CustomComponentCol","CustomComponentTabPaneH5"],_=["CustomComponentTable"],E=["el-select","el-date-picker","el-time-picker","el-time-select","el-cascader","el-input-number","CustomComponentTree","CustomComponentSteps"],x=["el-span"],S="el-",w="t-",A="cmi-",T="H5-",P="0",C=["ElText"],O=["ElInput","ElDatePicker","ElInputNumber"],I=["ElSelect"],k={compInfo:{type:Object,getValue:function(e,t,r){return e}},modelValue:{type:[String,Number,Object,Array,Boolean,void 0,null],getValue:function(e,t,r){return r.value}},config:{type:Object,getValue:function(e,t,r){return e}},refValue:{type:[Object,Number,String],default:"",getValue:function(e,t,r){return r}},disabled:{type:Boolean,default:!1,getValue:function(e,t,r){return M(e,t.mode)}},clearable:{type:Boolean,default:!1,getValue:function(e,t,r){return"1"==e.clearableFlag}},required:{type:Boolean,default:!1,getValue:function(e,t,r){return"1"==e.requiredFlag}},hidden:{type:Boolean,default:!1,getValue:function(e,t,r){return D({config:e})}},onlyRequiredFlag:{type:[Boolean,String,Number],default:!1,getValue:function(e,t,r){return e.onlyRequiredFlag}},tableData:{type:Array,default:function(){return[]},getValue:function(e,t,r){return t.tableData}},rowScope:{type:Object,getValue:function(e,t,r){return t.rowScope}},width:{type:[String,Number],default:"",getValue:function(e,t,r){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,r,n){return(0,a.fN)(e,n)}},placeholder:{type:String,default:function(){return""},getValue:function(e,t,r,n,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,r,n,o){return e.defPlaceholdEn}}};function D(e){var t=e.config;return"boolean"==typeof t.hidden&&t.hidden||"1"==t.hidden||"1"==t.collapseHidden}function M(e,t){var r,n;return!(0,a.E1)(["CustomComponentTabs"],e)&&(t===l.LOG?!e.logAlong&&!(0,a.E1)(s()(r=[f]).call(r,d),e)||"0"==e.editFlag:t===l.DETAIL&&!e.detailAlong&&!(0,a.E1)(s()(n=[f]).call(n,d),e)||"0"==e.editFlag)}var j={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=k)},71835:(e,t,r)=>{r.d(t,{A:()=>b,l:()=>_}),r(48598),r(23288),r(79432),r(27495),r(90906),r(71761),r(90744);var n=r(11265),o=r.n(n),i=r(8628),s=r.n(i),a=r(11393),l=r.n(a),c=r(57119),u=r.n(c),p=r(73363),d=r.n(p),f=r(75286),h=r(48618),m=r(85352),y=r(12935),g=r(74353),v=r.n(g);function b(e){if((e.defaultVal||e.defaultValue)&&!e.bindValue&&0!==e.bindValue&&(!(0,y.cy)(e.bindValue)||!e.bindValue.length)){var t=e.defaultVal||e.defaultValue,r=null;try{var n,i;if("string"==typeof t){var a=o()(t).call(t),c=null;if(c=a.match(/^_route:(.*)$/)){var u,p=c[1],d=null==e||null===(u=e.route)||void 0===u?void 0:u.query;r=null==d?void 0:d[p]}else if(c=a.match(/^_native:(.*)$/))r=c[1];else if(/^_lang$/.test(a))r=null==e?void 0:e._lang;else if(/^{[\w\W]*}$/.test(a)||/^\[[\w\W]*\]$/.test(a))r=JSON.parse(a);else{var g,b,E=[m.DE.CURRENT_DATE,"currentDate",m.DE.CURRENT_DATE_TIME,m.DE.CURRENT_DATE_EXCLUDE];r=s()(E).call(E,o()(g=a||"").call(g))?a===m.DE.CURRENT_DATE_TIME?(0,h.Yq)(new Date,"yyyy-MM-dd hh:mm:ss"):a===m.DE.CURRENT_DATE_EXCLUDE?v()(new Date).add(1,"day").format("YYYY-MM-DD"):(0,h.Yq)(new Date,"yyyy-MM-dd"):s()(b=["true","false"]).call(b,a)?"true"==a:a}}else r=(0,f.toRaw)(t);"ElSelect"===e.metaType&&(r=_({config:e,val:r})),console.log(l()(n=l()(i="".concat(e.dynamicHireRelat,",")).call(i,e.hireRelat," to set defaultValue, ")).call(n,r)),e.refValue=r}catch(t){console.log("set default val fail, config",e,t)}}}function _(e){var t=e.config,r=e.val,n=e.isActive,o=void 0!==n&&n,i=r;if(!(0,m.dK)({config:t})||o){var s,a,l=null==t?void 0:t.valueType,c=null==t?void 0:t.separator;if(l!==m.K4.LIST&&l!==m.K4.OBJECT){if((0,h.Qd)(r)||(0,y.cy)(r))try{i=u()(r).join(c)}catch(e){i=r}}else(r&&(0,y.Kg)(r)||(0,y.Et)(r))&&(i=null===(s="".concat(r))||void 0===s?void 0:s.split(c),l==m.K4.OBJECT&&(i=null===(a=i)||void 0===a?void 0:d()(a).call(a,(function(e,t,r){return e[r]=t,e}),{})))}return i}},24691:(e,t,r)=>{function n(e){var t,r,n=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===(r=o.getBoundingClientRect())||void 0===r?void 0:r.width)-n}r.d(t,{fW:()=>n}),r(9868),r(80668),r(63579)},17427:(e,t,r)=>{r.d(t,{$3:()=>n.$3,$N:()=>n.$N,AP:()=>i.AP,Bs:()=>i.Bs,CQ:()=>n.CQ,Ch:()=>o.Ch,Dg:()=>n.Dg,Et:()=>s.Et,Ho:()=>o.Ho,Ij:()=>n.Ij,K4:()=>i.K4,KK:()=>o.KK,Kg:()=>s.Kg,Lm:()=>s.Lm,M9:()=>o.M9,Op:()=>i.Op,PT:()=>n.PT,Qd:()=>n.Qd,SK:()=>o.SK,Tn:()=>n.Tn,Ts:()=>n.Ts,UP:()=>i.UP,V9:()=>n.V9,Vv:()=>n.Vv,Yq:()=>n.Yq,ZB:()=>o.ZB,ZH:()=>n.ZH,cy:()=>s.cy,eM:()=>o.eM,ef:()=>o.ef,fw:()=>o.fw,iF:()=>n.iF,jG:()=>o.jG,jK:()=>i.jK,kL:()=>s.Tn,lb:()=>o.lb,lk:()=>n.lk,mg:()=>n.mg,n_:()=>o.n_,oY:()=>n.oY,q2:()=>n.q2,qg:()=>o.qg,rn:()=>o.rn,ro:()=>n.ro,sg:()=>n.sg,vr:()=>n.vr,yL:()=>n.yL,yo:()=>o.yo,yz:()=>i.yz});var n=r(48618),o=r(8069),i=r(85352),s=r(12935)},12935:(e,t,r)=>{r.d(t,{$P:()=>s.A,Et:()=>l.A,Kg:()=>u.A,Lm:()=>i.A,Tn:()=>a.A,b0:()=>p.A,cy:()=>f,kZ:()=>c.A,sw:()=>h,yr:()=>d.A});var n=r(66615),o=r.n(n),i=(r(76918),r(23288),r(26099),r(27495),r(90906),r(38781),r(98916)),s=r(22922),a=r(89610),l=r(21879),c=r(21395),u=r(32084),p=r(69592),d=r(429);function f(e){return e&&o()(e)}function h(e){return null!=e}Object.prototype.toString},20807:(e,t,r)=>{r.d(t,{A:()=>T});var n=r(37891),o=r(34963),i=(r(79432),r(74707)),s=r.n(i),a=r(29544),l=r.n(a),c=r(86226),u=r.n(c),p=r(50697),d=r.n(p),f=r(75286),h=[(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0});var n={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 F.default}}),Object.defineProperty(t,"assertNode",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"buildMatchMemberExpression",{enumerable:!0,get:function(){return fe.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 O.default}}),Object.defineProperty(t,"getBindingIdentifiers",{enumerable:!0,get:function(){return q.default}}),Object.defineProperty(t,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(t,"inheritInnerComments",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(t,"inheritLeadingComments",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(t,"inheritTrailingComments",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(t,"inherits",{enumerable:!0,get:function(){return U.default}}),Object.defineProperty(t,"inheritsComments",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(t,"is",{enumerable:!0,get:function(){return X.default}}),Object.defineProperty(t,"isBinding",{enumerable:!0,get:function(){return Y.default}}),Object.defineProperty(t,"isBlockScoped",{enumerable:!0,get:function(){return J.default}}),Object.defineProperty(t,"isImmutable",{enumerable:!0,get:function(){return Z.default}}),Object.defineProperty(t,"isLet",{enumerable:!0,get:function(){return ee.default}}),Object.defineProperty(t,"isNode",{enumerable:!0,get:function(){return te.default}}),Object.defineProperty(t,"isNodesEquivalent",{enumerable:!0,get:function(){return re.default}}),Object.defineProperty(t,"isPlaceholderType",{enumerable:!0,get:function(){return ne.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 V.default}}),t.react=void 0,Object.defineProperty(t,"removeComments",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(t,"removeProperties",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(t,"removePropertiesDeep",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(t,"removeTypeDuplicates",{enumerable:!0,get:function(){return K.default}}),Object.defineProperty(t,"shallowEqual",{enumerable:!0,get:function(){return Q.default}}),Object.defineProperty(t,"toBindingIdentifierName",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(t,"toBlock",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(t,"toComputedKey",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(t,"toExpression",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(t,"toIdentifier",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(t,"toKeyAlias",{enumerable:!0,get:function(){return N.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 de.default}}),Object.defineProperty(t,"valueToNode",{enumerable:!0,get:function(){return R.default}});var o=r(348),i=r(349),s=r(350),a=r(362),l=r(363);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var c=r(364),u=r(365),p=r(366),d=r(4);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}));var f=r(368);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))}));var h=r(369);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))}));var m=r(27),y=r(370),g=r(371),v=r(372),b=r(373),_=r(374),E=r(172),x=r(173),S=r(174),w=r(175),A=r(176),T=r(375),P=r(376);Object.keys(P).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===P[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return P[e]}}))}));var C=r(26);Object.keys(C).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===C[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return C[e]}}))}));var O=r(377),I=r(378),k=r(177),D=r(379),M=r(380),j=r(178),N=r(381),L=r(382),R=r(383),B=r(9);Object.keys(B).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===B[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return B[e]}}))}));var F=r(384),U=r(385),V=r(386),W=r(181),$=r(179),K=r(171),q=r(60),z=r(387),H=r(388);Object.keys(H).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===H[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return H[e]}}))}));var G=r(180),Q=r(96),X=r(42),Y=r(389),J=r(390),Z=r(391),ee=r(182),te=r(170),re=r(392),ne=r(168),oe=r(393),ie=r(394),se=r(395),ae=r(98),le=r(396),ce=r(43),ue=r(397),pe=r(165),de=r(97),fe=r(164),he=r(2);Object.keys(he).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===he[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return he[e]}}))}));var me=r(58);t.react={isReactComponent:o.default,isCompatTag:i.default,buildChildren:s.default},t.toSequenceExpression=r(398).default},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_EXTENSIONS=void 0,Object.defineProperty(t,"File",{enumerable:!0,get:function(){return n.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 d.transform}}),Object.defineProperty(t,"transformAsync",{enumerable:!0,get:function(){return d.transformAsync}}),Object.defineProperty(t,"transformFile",{enumerable:!0,get:function(){return f.transformFile}}),Object.defineProperty(t,"transformFileAsync",{enumerable:!0,get:function(){return f.transformFileAsync}}),Object.defineProperty(t,"transformFileSync",{enumerable:!0,get:function(){return f.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 d.transformSync}}),Object.defineProperty(t,"traverse",{enumerable:!0,get:function(){return c().default}}),t.version=t.types=void 0;var n=r(95),o=r(453),i=r(81),s=r(278);function a(){const e=r(0);return a=function(){return e},e}function l(){const e=r(21);return l=function(){return e},e}function c(){const e=r(14);return c=function(){return e},e}function u(){const e=r(37);return u=function(){return e},e}Object.defineProperty(t,"types",{enumerable:!0,get:function(){return a()}});var p=r(82),d=r(475),f=r(488),h=r(489),m=r(490);r(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,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isAccessor=function(e,t){return!!e&&"ClassAccessorProperty"===e.type&&(null==t||(0,n.default)(e,t))},t.isAnyTypeAnnotation=function(e,t){return!!e&&"AnyTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t))},t.isArgumentPlaceholder=function(e,t){return!!e&&"ArgumentPlaceholder"===e.type&&(null==t||(0,n.default)(e,t))},t.isArrayExpression=function(e,t){return!!e&&"ArrayExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isArrayPattern=function(e,t){return!!e&&"ArrayPattern"===e.type&&(null==t||(0,n.default)(e,t))},t.isArrayTypeAnnotation=function(e,t){return!!e&&"ArrayTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t))},t.isArrowFunctionExpression=function(e,t){return!!e&&"ArrowFunctionExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isAssignmentExpression=function(e,t){return!!e&&"AssignmentExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isAssignmentPattern=function(e,t){return!!e&&"AssignmentPattern"===e.type&&(null==t||(0,n.default)(e,t))},t.isAwaitExpression=function(e,t){return!!e&&"AwaitExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isBigIntLiteral=function(e,t){return!!e&&"BigIntLiteral"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isBinaryExpression=function(e,t){return!!e&&"BinaryExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isBindExpression=function(e,t){return!!e&&"BindExpression"===e.type&&(null==t||(0,n.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,n.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,n.default)(e,t)},t.isBlockStatement=function(e,t){return!!e&&"BlockStatement"===e.type&&(null==t||(0,n.default)(e,t))},t.isBooleanLiteral=function(e,t){return!!e&&"BooleanLiteral"===e.type&&(null==t||(0,n.default)(e,t))},t.isBooleanLiteralTypeAnnotation=function(e,t){return!!e&&"BooleanLiteralTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t))},t.isBooleanTypeAnnotation=function(e,t){return!!e&&"BooleanTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t))},t.isBreakStatement=function(e,t){return!!e&&"BreakStatement"===e.type&&(null==t||(0,n.default)(e,t))},t.isCallExpression=function(e,t){return!!e&&"CallExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isCatchClause=function(e,t){return!!e&&"CatchClause"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isClassAccessorProperty=function(e,t){return!!e&&"ClassAccessorProperty"===e.type&&(null==t||(0,n.default)(e,t))},t.isClassBody=function(e,t){return!!e&&"ClassBody"===e.type&&(null==t||(0,n.default)(e,t))},t.isClassDeclaration=function(e,t){return!!e&&"ClassDeclaration"===e.type&&(null==t||(0,n.default)(e,t))},t.isClassExpression=function(e,t){return!!e&&"ClassExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isClassImplements=function(e,t){return!!e&&"ClassImplements"===e.type&&(null==t||(0,n.default)(e,t))},t.isClassMethod=function(e,t){return!!e&&"ClassMethod"===e.type&&(null==t||(0,n.default)(e,t))},t.isClassPrivateMethod=function(e,t){return!!e&&"ClassPrivateMethod"===e.type&&(null==t||(0,n.default)(e,t))},t.isClassPrivateProperty=function(e,t){return!!e&&"ClassPrivateProperty"===e.type&&(null==t||(0,n.default)(e,t))},t.isClassProperty=function(e,t){return!!e&&"ClassProperty"===e.type&&(null==t||(0,n.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,n.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,n.default)(e,t)},t.isConditionalExpression=function(e,t){return!!e&&"ConditionalExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isContinueStatement=function(e,t){return!!e&&"ContinueStatement"===e.type&&(null==t||(0,n.default)(e,t))},t.isDebuggerStatement=function(e,t){return!!e&&"DebuggerStatement"===e.type&&(null==t||(0,n.default)(e,t))},t.isDecimalLiteral=function(e,t){return!!e&&"DecimalLiteral"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isDeclareClass=function(e,t){return!!e&&"DeclareClass"===e.type&&(null==t||(0,n.default)(e,t))},t.isDeclareExportAllDeclaration=function(e,t){return!!e&&"DeclareExportAllDeclaration"===e.type&&(null==t||(0,n.default)(e,t))},t.isDeclareExportDeclaration=function(e,t){return!!e&&"DeclareExportDeclaration"===e.type&&(null==t||(0,n.default)(e,t))},t.isDeclareFunction=function(e,t){return!!e&&"DeclareFunction"===e.type&&(null==t||(0,n.default)(e,t))},t.isDeclareInterface=function(e,t){return!!e&&"DeclareInterface"===e.type&&(null==t||(0,n.default)(e,t))},t.isDeclareModule=function(e,t){return!!e&&"DeclareModule"===e.type&&(null==t||(0,n.default)(e,t))},t.isDeclareModuleExports=function(e,t){return!!e&&"DeclareModuleExports"===e.type&&(null==t||(0,n.default)(e,t))},t.isDeclareOpaqueType=function(e,t){return!!e&&"DeclareOpaqueType"===e.type&&(null==t||(0,n.default)(e,t))},t.isDeclareTypeAlias=function(e,t){return!!e&&"DeclareTypeAlias"===e.type&&(null==t||(0,n.default)(e,t))},t.isDeclareVariable=function(e,t){return!!e&&"DeclareVariable"===e.type&&(null==t||(0,n.default)(e,t))},t.isDeclaredPredicate=function(e,t){return!!e&&"DeclaredPredicate"===e.type&&(null==t||(0,n.default)(e,t))},t.isDecorator=function(e,t){return!!e&&"Decorator"===e.type&&(null==t||(0,n.default)(e,t))},t.isDirective=function(e,t){return!!e&&"Directive"===e.type&&(null==t||(0,n.default)(e,t))},t.isDirectiveLiteral=function(e,t){return!!e&&"DirectiveLiteral"===e.type&&(null==t||(0,n.default)(e,t))},t.isDoExpression=function(e,t){return!!e&&"DoExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isDoWhileStatement=function(e,t){return!!e&&"DoWhileStatement"===e.type&&(null==t||(0,n.default)(e,t))},t.isEmptyStatement=function(e,t){return!!e&&"EmptyStatement"===e.type&&(null==t||(0,n.default)(e,t))},t.isEmptyTypeAnnotation=function(e,t){return!!e&&"EmptyTypeAnnotation"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isEnumBooleanBody=function(e,t){return!!e&&"EnumBooleanBody"===e.type&&(null==t||(0,n.default)(e,t))},t.isEnumBooleanMember=function(e,t){return!!e&&"EnumBooleanMember"===e.type&&(null==t||(0,n.default)(e,t))},t.isEnumDeclaration=function(e,t){return!!e&&"EnumDeclaration"===e.type&&(null==t||(0,n.default)(e,t))},t.isEnumDefaultedMember=function(e,t){return!!e&&"EnumDefaultedMember"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isEnumNumberBody=function(e,t){return!!e&&"EnumNumberBody"===e.type&&(null==t||(0,n.default)(e,t))},t.isEnumNumberMember=function(e,t){return!!e&&"EnumNumberMember"===e.type&&(null==t||(0,n.default)(e,t))},t.isEnumStringBody=function(e,t){return!!e&&"EnumStringBody"===e.type&&(null==t||(0,n.default)(e,t))},t.isEnumStringMember=function(e,t){return!!e&&"EnumStringMember"===e.type&&(null==t||(0,n.default)(e,t))},t.isEnumSymbolBody=function(e,t){return!!e&&"EnumSymbolBody"===e.type&&(null==t||(0,n.default)(e,t))},t.isExistsTypeAnnotation=function(e,t){return!!e&&"ExistsTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t))},t.isExportAllDeclaration=function(e,t){return!!e&&"ExportAllDeclaration"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isExportDefaultDeclaration=function(e,t){return!!e&&"ExportDefaultDeclaration"===e.type&&(null==t||(0,n.default)(e,t))},t.isExportDefaultSpecifier=function(e,t){return!!e&&"ExportDefaultSpecifier"===e.type&&(null==t||(0,n.default)(e,t))},t.isExportNamedDeclaration=function(e,t){return!!e&&"ExportNamedDeclaration"===e.type&&(null==t||(0,n.default)(e,t))},t.isExportNamespaceSpecifier=function(e,t){return!!e&&"ExportNamespaceSpecifier"===e.type&&(null==t||(0,n.default)(e,t))},t.isExportSpecifier=function(e,t){return!!e&&"ExportSpecifier"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isExpressionStatement=function(e,t){return!!e&&"ExpressionStatement"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isFile=function(e,t){return!!e&&"File"===e.type&&(null==t||(0,n.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,n.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,n.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,n.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,n.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,n.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,n.default)(e,t)},t.isForInStatement=function(e,t){return!!e&&"ForInStatement"===e.type&&(null==t||(0,n.default)(e,t))},t.isForOfStatement=function(e,t){return!!e&&"ForOfStatement"===e.type&&(null==t||(0,n.default)(e,t))},t.isForStatement=function(e,t){return!!e&&"ForStatement"===e.type&&(null==t||(0,n.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,n.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,n.default)(e,t)},t.isFunctionDeclaration=function(e,t){return!!e&&"FunctionDeclaration"===e.type&&(null==t||(0,n.default)(e,t))},t.isFunctionExpression=function(e,t){return!!e&&"FunctionExpression"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isFunctionTypeAnnotation=function(e,t){return!!e&&"FunctionTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t))},t.isFunctionTypeParam=function(e,t){return!!e&&"FunctionTypeParam"===e.type&&(null==t||(0,n.default)(e,t))},t.isGenericTypeAnnotation=function(e,t){return!!e&&"GenericTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t))},t.isIdentifier=function(e,t){return!!e&&"Identifier"===e.type&&(null==t||(0,n.default)(e,t))},t.isIfStatement=function(e,t){return!!e&&"IfStatement"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isImport=function(e,t){return!!e&&"Import"===e.type&&(null==t||(0,n.default)(e,t))},t.isImportAttribute=function(e,t){return!!e&&"ImportAttribute"===e.type&&(null==t||(0,n.default)(e,t))},t.isImportDeclaration=function(e,t){return!!e&&"ImportDeclaration"===e.type&&(null==t||(0,n.default)(e,t))},t.isImportDefaultSpecifier=function(e,t){return!!e&&"ImportDefaultSpecifier"===e.type&&(null==t||(0,n.default)(e,t))},t.isImportExpression=function(e,t){return!!e&&"ImportExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isImportNamespaceSpecifier=function(e,t){return!!e&&"ImportNamespaceSpecifier"===e.type&&(null==t||(0,n.default)(e,t))},t.isImportOrExportDeclaration=i,t.isImportSpecifier=function(e,t){return!!e&&"ImportSpecifier"===e.type&&(null==t||(0,n.default)(e,t))},t.isIndexedAccessType=function(e,t){return!!e&&"IndexedAccessType"===e.type&&(null==t||(0,n.default)(e,t))},t.isInferredPredicate=function(e,t){return!!e&&"InferredPredicate"===e.type&&(null==t||(0,n.default)(e,t))},t.isInterfaceDeclaration=function(e,t){return!!e&&"InterfaceDeclaration"===e.type&&(null==t||(0,n.default)(e,t))},t.isInterfaceExtends=function(e,t){return!!e&&"InterfaceExtends"===e.type&&(null==t||(0,n.default)(e,t))},t.isInterfaceTypeAnnotation=function(e,t){return!!e&&"InterfaceTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t))},t.isInterpreterDirective=function(e,t){return!!e&&"InterpreterDirective"===e.type&&(null==t||(0,n.default)(e,t))},t.isIntersectionTypeAnnotation=function(e,t){return!!e&&"IntersectionTypeAnnotation"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isJSXAttribute=function(e,t){return!!e&&"JSXAttribute"===e.type&&(null==t||(0,n.default)(e,t))},t.isJSXClosingElement=function(e,t){return!!e&&"JSXClosingElement"===e.type&&(null==t||(0,n.default)(e,t))},t.isJSXClosingFragment=function(e,t){return!!e&&"JSXClosingFragment"===e.type&&(null==t||(0,n.default)(e,t))},t.isJSXElement=function(e,t){return!!e&&"JSXElement"===e.type&&(null==t||(0,n.default)(e,t))},t.isJSXEmptyExpression=function(e,t){return!!e&&"JSXEmptyExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isJSXExpressionContainer=function(e,t){return!!e&&"JSXExpressionContainer"===e.type&&(null==t||(0,n.default)(e,t))},t.isJSXFragment=function(e,t){return!!e&&"JSXFragment"===e.type&&(null==t||(0,n.default)(e,t))},t.isJSXIdentifier=function(e,t){return!!e&&"JSXIdentifier"===e.type&&(null==t||(0,n.default)(e,t))},t.isJSXMemberExpression=function(e,t){return!!e&&"JSXMemberExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isJSXNamespacedName=function(e,t){return!!e&&"JSXNamespacedName"===e.type&&(null==t||(0,n.default)(e,t))},t.isJSXOpeningElement=function(e,t){return!!e&&"JSXOpeningElement"===e.type&&(null==t||(0,n.default)(e,t))},t.isJSXOpeningFragment=function(e,t){return!!e&&"JSXOpeningFragment"===e.type&&(null==t||(0,n.default)(e,t))},t.isJSXSpreadAttribute=function(e,t){return!!e&&"JSXSpreadAttribute"===e.type&&(null==t||(0,n.default)(e,t))},t.isJSXSpreadChild=function(e,t){return!!e&&"JSXSpreadChild"===e.type&&(null==t||(0,n.default)(e,t))},t.isJSXText=function(e,t){return!!e&&"JSXText"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isLabeledStatement=function(e,t){return!!e&&"LabeledStatement"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isLogicalExpression=function(e,t){return!!e&&"LogicalExpression"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isMemberExpression=function(e,t){return!!e&&"MemberExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isMetaProperty=function(e,t){return!!e&&"MetaProperty"===e.type&&(null==t||(0,n.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,n.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,n.default)(e,t)},t.isMixedTypeAnnotation=function(e,t){return!!e&&"MixedTypeAnnotation"===e.type&&(null==t||(0,n.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,n.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,n.default)(e,t)},t.isNewExpression=function(e,t){return!!e&&"NewExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isNoop=function(e,t){return!!e&&"Noop"===e.type&&(null==t||(0,n.default)(e,t))},t.isNullLiteral=function(e,t){return!!e&&"NullLiteral"===e.type&&(null==t||(0,n.default)(e,t))},t.isNullLiteralTypeAnnotation=function(e,t){return!!e&&"NullLiteralTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t))},t.isNullableTypeAnnotation=function(e,t){return!!e&&"NullableTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t))},t.isNumberLiteral=function(e,t){return(0,o.default)("isNumberLiteral","isNumericLiteral"),!!e&&"NumberLiteral"===e.type&&(null==t||(0,n.default)(e,t))},t.isNumberLiteralTypeAnnotation=function(e,t){return!!e&&"NumberLiteralTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t))},t.isNumberTypeAnnotation=function(e,t){return!!e&&"NumberTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t))},t.isNumericLiteral=function(e,t){return!!e&&"NumericLiteral"===e.type&&(null==t||(0,n.default)(e,t))},t.isObjectExpression=function(e,t){return!!e&&"ObjectExpression"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isObjectMethod=function(e,t){return!!e&&"ObjectMethod"===e.type&&(null==t||(0,n.default)(e,t))},t.isObjectPattern=function(e,t){return!!e&&"ObjectPattern"===e.type&&(null==t||(0,n.default)(e,t))},t.isObjectProperty=function(e,t){return!!e&&"ObjectProperty"===e.type&&(null==t||(0,n.default)(e,t))},t.isObjectTypeAnnotation=function(e,t){return!!e&&"ObjectTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t))},t.isObjectTypeCallProperty=function(e,t){return!!e&&"ObjectTypeCallProperty"===e.type&&(null==t||(0,n.default)(e,t))},t.isObjectTypeIndexer=function(e,t){return!!e&&"ObjectTypeIndexer"===e.type&&(null==t||(0,n.default)(e,t))},t.isObjectTypeInternalSlot=function(e,t){return!!e&&"ObjectTypeInternalSlot"===e.type&&(null==t||(0,n.default)(e,t))},t.isObjectTypeProperty=function(e,t){return!!e&&"ObjectTypeProperty"===e.type&&(null==t||(0,n.default)(e,t))},t.isObjectTypeSpreadProperty=function(e,t){return!!e&&"ObjectTypeSpreadProperty"===e.type&&(null==t||(0,n.default)(e,t))},t.isOpaqueType=function(e,t){return!!e&&"OpaqueType"===e.type&&(null==t||(0,n.default)(e,t))},t.isOptionalCallExpression=function(e,t){return!!e&&"OptionalCallExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isOptionalIndexedAccessType=function(e,t){return!!e&&"OptionalIndexedAccessType"===e.type&&(null==t||(0,n.default)(e,t))},t.isOptionalMemberExpression=function(e,t){return!!e&&"OptionalMemberExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isParenthesizedExpression=function(e,t){return!!e&&"ParenthesizedExpression"===e.type&&(null==t||(0,n.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,n.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,n.default)(e,t)},t.isPipelineBareFunction=function(e,t){return!!e&&"PipelineBareFunction"===e.type&&(null==t||(0,n.default)(e,t))},t.isPipelinePrimaryTopicReference=function(e,t){return!!e&&"PipelinePrimaryTopicReference"===e.type&&(null==t||(0,n.default)(e,t))},t.isPipelineTopicExpression=function(e,t){return!!e&&"PipelineTopicExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isPlaceholder=function(e,t){return!!e&&"Placeholder"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isPrivateName=function(e,t){return!!e&&"PrivateName"===e.type&&(null==t||(0,n.default)(e,t))},t.isProgram=function(e,t){return!!e&&"Program"===e.type&&(null==t||(0,n.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,n.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,n.default)(e,t)},t.isQualifiedTypeIdentifier=function(e,t){return!!e&&"QualifiedTypeIdentifier"===e.type&&(null==t||(0,n.default)(e,t))},t.isRecordExpression=function(e,t){return!!e&&"RecordExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isRegExpLiteral=function(e,t){return!!e&&"RegExpLiteral"===e.type&&(null==t||(0,n.default)(e,t))},t.isRegexLiteral=function(e,t){return(0,o.default)("isRegexLiteral","isRegExpLiteral"),!!e&&"RegexLiteral"===e.type&&(null==t||(0,n.default)(e,t))},t.isRestElement=function(e,t){return!!e&&"RestElement"===e.type&&(null==t||(0,n.default)(e,t))},t.isRestProperty=function(e,t){return(0,o.default)("isRestProperty","isRestElement"),!!e&&"RestProperty"===e.type&&(null==t||(0,n.default)(e,t))},t.isReturnStatement=function(e,t){return!!e&&"ReturnStatement"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isSequenceExpression=function(e,t){return!!e&&"SequenceExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isSpreadElement=function(e,t){return!!e&&"SpreadElement"===e.type&&(null==t||(0,n.default)(e,t))},t.isSpreadProperty=function(e,t){return(0,o.default)("isSpreadProperty","isSpreadElement"),!!e&&"SpreadProperty"===e.type&&(null==t||(0,n.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,n.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,n.default)(e,t)},t.isStaticBlock=function(e,t){return!!e&&"StaticBlock"===e.type&&(null==t||(0,n.default)(e,t))},t.isStringLiteral=function(e,t){return!!e&&"StringLiteral"===e.type&&(null==t||(0,n.default)(e,t))},t.isStringLiteralTypeAnnotation=function(e,t){return!!e&&"StringLiteralTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t))},t.isStringTypeAnnotation=function(e,t){return!!e&&"StringTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t))},t.isSuper=function(e,t){return!!e&&"Super"===e.type&&(null==t||(0,n.default)(e,t))},t.isSwitchCase=function(e,t){return!!e&&"SwitchCase"===e.type&&(null==t||(0,n.default)(e,t))},t.isSwitchStatement=function(e,t){return!!e&&"SwitchStatement"===e.type&&(null==t||(0,n.default)(e,t))},t.isSymbolTypeAnnotation=function(e,t){return!!e&&"SymbolTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSAnyKeyword=function(e,t){return!!e&&"TSAnyKeyword"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSArrayType=function(e,t){return!!e&&"TSArrayType"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSAsExpression=function(e,t){return!!e&&"TSAsExpression"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isTSBigIntKeyword=function(e,t){return!!e&&"TSBigIntKeyword"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSBooleanKeyword=function(e,t){return!!e&&"TSBooleanKeyword"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSCallSignatureDeclaration=function(e,t){return!!e&&"TSCallSignatureDeclaration"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSConditionalType=function(e,t){return!!e&&"TSConditionalType"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSConstructSignatureDeclaration=function(e,t){return!!e&&"TSConstructSignatureDeclaration"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSConstructorType=function(e,t){return!!e&&"TSConstructorType"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSDeclareFunction=function(e,t){return!!e&&"TSDeclareFunction"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSDeclareMethod=function(e,t){return!!e&&"TSDeclareMethod"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isTSEnumDeclaration=function(e,t){return!!e&&"TSEnumDeclaration"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSEnumMember=function(e,t){return!!e&&"TSEnumMember"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSExportAssignment=function(e,t){return!!e&&"TSExportAssignment"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSExpressionWithTypeArguments=function(e,t){return!!e&&"TSExpressionWithTypeArguments"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSExternalModuleReference=function(e,t){return!!e&&"TSExternalModuleReference"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSFunctionType=function(e,t){return!!e&&"TSFunctionType"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSImportEqualsDeclaration=function(e,t){return!!e&&"TSImportEqualsDeclaration"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSImportType=function(e,t){return!!e&&"TSImportType"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSIndexSignature=function(e,t){return!!e&&"TSIndexSignature"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSIndexedAccessType=function(e,t){return!!e&&"TSIndexedAccessType"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSInferType=function(e,t){return!!e&&"TSInferType"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSInstantiationExpression=function(e,t){return!!e&&"TSInstantiationExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSInterfaceBody=function(e,t){return!!e&&"TSInterfaceBody"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSInterfaceDeclaration=function(e,t){return!!e&&"TSInterfaceDeclaration"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSIntersectionType=function(e,t){return!!e&&"TSIntersectionType"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSIntrinsicKeyword=function(e,t){return!!e&&"TSIntrinsicKeyword"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSLiteralType=function(e,t){return!!e&&"TSLiteralType"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSMappedType=function(e,t){return!!e&&"TSMappedType"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSMethodSignature=function(e,t){return!!e&&"TSMethodSignature"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSModuleBlock=function(e,t){return!!e&&"TSModuleBlock"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSModuleDeclaration=function(e,t){return!!e&&"TSModuleDeclaration"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSNamedTupleMember=function(e,t){return!!e&&"TSNamedTupleMember"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSNamespaceExportDeclaration=function(e,t){return!!e&&"TSNamespaceExportDeclaration"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSNeverKeyword=function(e,t){return!!e&&"TSNeverKeyword"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSNonNullExpression=function(e,t){return!!e&&"TSNonNullExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSNullKeyword=function(e,t){return!!e&&"TSNullKeyword"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSNumberKeyword=function(e,t){return!!e&&"TSNumberKeyword"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSObjectKeyword=function(e,t){return!!e&&"TSObjectKeyword"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSOptionalType=function(e,t){return!!e&&"TSOptionalType"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSParameterProperty=function(e,t){return!!e&&"TSParameterProperty"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSParenthesizedType=function(e,t){return!!e&&"TSParenthesizedType"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSPropertySignature=function(e,t){return!!e&&"TSPropertySignature"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSQualifiedName=function(e,t){return!!e&&"TSQualifiedName"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSRestType=function(e,t){return!!e&&"TSRestType"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSSatisfiesExpression=function(e,t){return!!e&&"TSSatisfiesExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSStringKeyword=function(e,t){return!!e&&"TSStringKeyword"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSSymbolKeyword=function(e,t){return!!e&&"TSSymbolKeyword"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSThisType=function(e,t){return!!e&&"TSThisType"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSTupleType=function(e,t){return!!e&&"TSTupleType"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isTSTypeAliasDeclaration=function(e,t){return!!e&&"TSTypeAliasDeclaration"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSTypeAnnotation=function(e,t){return!!e&&"TSTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSTypeAssertion=function(e,t){return!!e&&"TSTypeAssertion"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isTSTypeLiteral=function(e,t){return!!e&&"TSTypeLiteral"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSTypeOperator=function(e,t){return!!e&&"TSTypeOperator"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSTypeParameter=function(e,t){return!!e&&"TSTypeParameter"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSTypeParameterDeclaration=function(e,t){return!!e&&"TSTypeParameterDeclaration"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSTypeParameterInstantiation=function(e,t){return!!e&&"TSTypeParameterInstantiation"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSTypePredicate=function(e,t){return!!e&&"TSTypePredicate"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSTypeQuery=function(e,t){return!!e&&"TSTypeQuery"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSTypeReference=function(e,t){return!!e&&"TSTypeReference"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSUndefinedKeyword=function(e,t){return!!e&&"TSUndefinedKeyword"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSUnionType=function(e,t){return!!e&&"TSUnionType"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSUnknownKeyword=function(e,t){return!!e&&"TSUnknownKeyword"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSVoidKeyword=function(e,t){return!!e&&"TSVoidKeyword"===e.type&&(null==t||(0,n.default)(e,t))},t.isTaggedTemplateExpression=function(e,t){return!!e&&"TaggedTemplateExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isTemplateElement=function(e,t){return!!e&&"TemplateElement"===e.type&&(null==t||(0,n.default)(e,t))},t.isTemplateLiteral=function(e,t){return!!e&&"TemplateLiteral"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isThisExpression=function(e,t){return!!e&&"ThisExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isThisTypeAnnotation=function(e,t){return!!e&&"ThisTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t))},t.isThrowStatement=function(e,t){return!!e&&"ThrowStatement"===e.type&&(null==t||(0,n.default)(e,t))},t.isTopicReference=function(e,t){return!!e&&"TopicReference"===e.type&&(null==t||(0,n.default)(e,t))},t.isTryStatement=function(e,t){return!!e&&"TryStatement"===e.type&&(null==t||(0,n.default)(e,t))},t.isTupleExpression=function(e,t){return!!e&&"TupleExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isTupleTypeAnnotation=function(e,t){return!!e&&"TupleTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t))},t.isTypeAlias=function(e,t){return!!e&&"TypeAlias"===e.type&&(null==t||(0,n.default)(e,t))},t.isTypeAnnotation=function(e,t){return!!e&&"TypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t))},t.isTypeCastExpression=function(e,t){return!!e&&"TypeCastExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isTypeParameter=function(e,t){return!!e&&"TypeParameter"===e.type&&(null==t||(0,n.default)(e,t))},t.isTypeParameterDeclaration=function(e,t){return!!e&&"TypeParameterDeclaration"===e.type&&(null==t||(0,n.default)(e,t))},t.isTypeParameterInstantiation=function(e,t){return!!e&&"TypeParameterInstantiation"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isTypeofTypeAnnotation=function(e,t){return!!e&&"TypeofTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t))},t.isUnaryExpression=function(e,t){return!!e&&"UnaryExpression"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isUnionTypeAnnotation=function(e,t){return!!e&&"UnionTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t))},t.isUpdateExpression=function(e,t){return!!e&&"UpdateExpression"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isV8IntrinsicIdentifier=function(e,t){return!!e&&"V8IntrinsicIdentifier"===e.type&&(null==t||(0,n.default)(e,t))},t.isVariableDeclaration=function(e,t){return!!e&&"VariableDeclaration"===e.type&&(null==t||(0,n.default)(e,t))},t.isVariableDeclarator=function(e,t){return!!e&&"VariableDeclarator"===e.type&&(null==t||(0,n.default)(e,t))},t.isVariance=function(e,t){return!!e&&"Variance"===e.type&&(null==t||(0,n.default)(e,t))},t.isVoidTypeAnnotation=function(e,t){return!!e&&"VoidTypeAnnotation"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isWhileStatement=function(e,t){return!!e&&"WhileStatement"===e.type&&(null==t||(0,n.default)(e,t))},t.isWithStatement=function(e,t){return!!e&&"WithStatement"===e.type&&(null==t||(0,n.default)(e,t))},t.isYieldExpression=function(e,t){return!!e&&"YieldExpression"===e.type&&(null==t||(0,n.default)(e,t))};var n=r(96),o=r(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,n.default)(e,t)}},(e,t,r)=>{const n=r(48),{MAX_LENGTH:o,MAX_SAFE_INTEGER:i}=r(47),{safeRe:s,t:a}=r(34),l=r(75),{compareIdentifiers:c}=r(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`);n("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?s[a.LOOSE]:s[a.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[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");r[4]?this.prerelease=r[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=r[5]?r[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(n("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 r=this.prerelease[t],o=e.prerelease[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return c(r,o)}while(++t)}compareBuild(e){e instanceof u||(e=new u(e,this.options));let t=0;do{const r=this.build[t],o=e.build[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return c(r,o)}while(++t)}inc(e,t,r){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,r),this.inc("pre",t,r);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(r)?1:0;if(!t&&!1===r)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let n=this.prerelease.length;for(;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let n=[t,e];!1===r&&(n=[t]),0===c(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}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,r)=>{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,n.default)({type:"ArrayExpression",elements:e})},t.arrayPattern=function(e){return(0,n.default)({type:"ArrayPattern",elements:e})},t.arrayTypeAnnotation=function(e){return(0,n.default)({type:"ArrayTypeAnnotation",elementType:e})},t.arrowFunctionExpression=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,n.default)({type:"ArrowFunctionExpression",params:e,body:t,async:r,expression:null})},t.assignmentExpression=function(e,t,r){return(0,n.default)({type:"AssignmentExpression",operator:e,left:t,right:r})},t.assignmentPattern=function(e,t){return(0,n.default)({type:"AssignmentPattern",left:e,right:t})},t.awaitExpression=function(e){return(0,n.default)({type:"AwaitExpression",argument:e})},t.bigIntLiteral=function(e){return(0,n.default)({type:"BigIntLiteral",value:e})},t.binaryExpression=function(e,t,r){return(0,n.default)({type:"BinaryExpression",operator:e,left:t,right:r})},t.bindExpression=function(e,t){return(0,n.default)({type:"BindExpression",object:e,callee:t})},t.blockStatement=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(0,n.default)({type:"BlockStatement",body:e,directives:t})},t.booleanLiteral=function(e){return(0,n.default)({type:"BooleanLiteral",value:e})},t.booleanLiteralTypeAnnotation=function(e){return(0,n.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,n.default)({type:"BreakStatement",label:e})},t.callExpression=function(e,t){return(0,n.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,n.default)({type:"CatchClause",param:e,body:t})},t.classAccessorProperty=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=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,n.default)({type:"ClassAccessorProperty",key:e,value:t,typeAnnotation:r,decorators:o,computed:i,static:s})},t.classBody=function(e){return(0,n.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,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,n.default)({type:"ClassDeclaration",id:e,superClass:t,body:r,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,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,n.default)({type:"ClassExpression",id:e,superClass:t,body:r,decorators:o})},t.classImplements=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,n.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,r=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,n.default)({type:"ClassMethod",kind:e,key:t,params:r,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,r=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,n.default)({type:"ClassPrivateMethod",kind:e,key:t,params:r,body:o,static:i})},t.classPrivateProperty=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return(0,n.default)({type:"ClassPrivateProperty",key:e,value:t,decorators:r,static:o})},t.classProperty=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=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,n.default)({type:"ClassProperty",key:e,value:t,typeAnnotation:r,decorators:o,computed:i,static:s})},t.conditionalExpression=function(e,t,r){return(0,n.default)({type:"ConditionalExpression",test:e,consequent:t,alternate:r})},t.continueStatement=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return(0,n.default)({type:"ContinueStatement",label:e})},t.debuggerStatement=function(){return{type:"DebuggerStatement"}},t.decimalLiteral=function(e){return(0,n.default)({type:"DecimalLiteral",value:e})},t.declareClass=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3?arguments[3]:void 0;return(0,n.default)({type:"DeclareClass",id:e,typeParameters:t,extends:r,body:o})},t.declareExportAllDeclaration=function(e){return(0,n.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,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,n.default)({type:"DeclareExportDeclaration",declaration:e,specifiers:t,source:r})},t.declareFunction=function(e){return(0,n.default)({type:"DeclareFunction",id:e})},t.declareInterface=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3?arguments[3]:void 0;return(0,n.default)({type:"DeclareInterface",id:e,typeParameters:t,extends:r,body:o})},t.declareModule=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,n.default)({type:"DeclareModule",id:e,body:t,kind:r})},t.declareModuleExports=function(e){return(0,n.default)({type:"DeclareModuleExports",typeAnnotation:e})},t.declareOpaqueType=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,n.default)({type:"DeclareOpaqueType",id:e,typeParameters:t,supertype:r})},t.declareTypeAlias=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0;return(0,n.default)({type:"DeclareTypeAlias",id:e,typeParameters:t,right:r})},t.declareVariable=function(e){return(0,n.default)({type:"DeclareVariable",id:e})},t.declaredPredicate=function(e){return(0,n.default)({type:"DeclaredPredicate",value:e})},t.decorator=function(e){return(0,n.default)({type:"Decorator",expression:e})},t.directive=function(e){return(0,n.default)({type:"Directive",value:e})},t.directiveLiteral=function(e){return(0,n.default)({type:"DirectiveLiteral",value:e})},t.doExpression=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,n.default)({type:"DoExpression",body:e,async:t})},t.doWhileStatement=function(e,t){return(0,n.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,n.default)({type:"EnumBooleanBody",members:e,explicitType:null,hasUnknownMembers:null})},t.enumBooleanMember=function(e){return(0,n.default)({type:"EnumBooleanMember",id:e,init:null})},t.enumDeclaration=function(e,t){return(0,n.default)({type:"EnumDeclaration",id:e,body:t})},t.enumDefaultedMember=function(e){return(0,n.default)({type:"EnumDefaultedMember",id:e})},t.enumNumberBody=function(e){return(0,n.default)({type:"EnumNumberBody",members:e,explicitType:null,hasUnknownMembers:null})},t.enumNumberMember=function(e,t){return(0,n.default)({type:"EnumNumberMember",id:e,init:t})},t.enumStringBody=function(e){return(0,n.default)({type:"EnumStringBody",members:e,explicitType:null,hasUnknownMembers:null})},t.enumStringMember=function(e,t){return(0,n.default)({type:"EnumStringMember",id:e,init:t})},t.enumSymbolBody=function(e){return(0,n.default)({type:"EnumSymbolBody",members:e,hasUnknownMembers:null})},t.existsTypeAnnotation=function(){return{type:"ExistsTypeAnnotation"}},t.exportAllDeclaration=function(e){return(0,n.default)({type:"ExportAllDeclaration",source:e})},t.exportDefaultDeclaration=function(e){return(0,n.default)({type:"ExportDefaultDeclaration",declaration:e})},t.exportDefaultSpecifier=function(e){return(0,n.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]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,n.default)({type:"ExportNamedDeclaration",declaration:e,specifiers:t,source:r})},t.exportNamespaceSpecifier=function(e){return(0,n.default)({type:"ExportNamespaceSpecifier",exported:e})},t.exportSpecifier=function(e,t){return(0,n.default)({type:"ExportSpecifier",local:e,exported:t})},t.expressionStatement=function(e){return(0,n.default)({type:"ExpressionStatement",expression:e})},t.file=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,n.default)({type:"File",program:e,comments:t,tokens:r})},t.forInStatement=function(e,t,r){return(0,n.default)({type:"ForInStatement",left:e,right:t,body:r})},t.forOfStatement=function(e,t,r){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return(0,n.default)({type:"ForOfStatement",left:e,right:t,body:r,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,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3?arguments[3]:void 0;return(0,n.default)({type:"ForStatement",init:e,test:t,update:r,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,r=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,n.default)({type:"FunctionDeclaration",id:e,params:t,body:r,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,r=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,n.default)({type:"FunctionExpression",id:e,params:t,body:r,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,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3?arguments[3]:void 0;return(0,n.default)({type:"FunctionTypeAnnotation",typeParameters:e,params:t,rest:r,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,n.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,n.default)({type:"GenericTypeAnnotation",id:e,typeParameters:t})},t.identifier=function(e){return(0,n.default)({type:"Identifier",name:e})},t.ifStatement=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,n.default)({type:"IfStatement",test:e,consequent:t,alternate:r})},t.import=function(){return{type:"Import"}},t.importAttribute=function(e,t){return(0,n.default)({type:"ImportAttribute",key:e,value:t})},t.importDeclaration=function(e,t){return(0,n.default)({type:"ImportDeclaration",specifiers:e,source:t})},t.importDefaultSpecifier=function(e){return(0,n.default)({type:"ImportDefaultSpecifier",local:e})},t.importExpression=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,n.default)({type:"ImportExpression",source:e,options:t})},t.importNamespaceSpecifier=function(e){return(0,n.default)({type:"ImportNamespaceSpecifier",local:e})},t.importSpecifier=function(e,t){return(0,n.default)({type:"ImportSpecifier",local:e,imported:t})},t.indexedAccessType=function(e,t){return(0,n.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,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3?arguments[3]:void 0;return(0,n.default)({type:"InterfaceDeclaration",id:e,typeParameters:t,extends:r,body:o})},t.interfaceExtends=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,n.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,n.default)({type:"InterfaceTypeAnnotation",extends:e,body:t})},t.interpreterDirective=function(e){return(0,n.default)({type:"InterpreterDirective",value:e})},t.intersectionTypeAnnotation=function(e){return(0,n.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,n.default)({type:"JSXAttribute",name:e,value:t})},t.jSXClosingElement=t.jsxClosingElement=function(e){return(0,n.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,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,n.default)({type:"JSXElement",openingElement:e,closingElement:t,children:r,selfClosing:o})},t.jSXEmptyExpression=t.jsxEmptyExpression=function(){return{type:"JSXEmptyExpression"}},t.jSXExpressionContainer=t.jsxExpressionContainer=function(e){return(0,n.default)({type:"JSXExpressionContainer",expression:e})},t.jSXFragment=t.jsxFragment=function(e,t,r){return(0,n.default)({type:"JSXFragment",openingFragment:e,closingFragment:t,children:r})},t.jSXIdentifier=t.jsxIdentifier=function(e){return(0,n.default)({type:"JSXIdentifier",name:e})},t.jSXMemberExpression=t.jsxMemberExpression=function(e,t){return(0,n.default)({type:"JSXMemberExpression",object:e,property:t})},t.jSXNamespacedName=t.jsxNamespacedName=function(e,t){return(0,n.default)({type:"JSXNamespacedName",namespace:e,name:t})},t.jSXOpeningElement=t.jsxOpeningElement=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,n.default)({type:"JSXOpeningElement",name:e,attributes:t,selfClosing:r})},t.jSXOpeningFragment=t.jsxOpeningFragment=function(){return{type:"JSXOpeningFragment"}},t.jSXSpreadAttribute=t.jsxSpreadAttribute=function(e){return(0,n.default)({type:"JSXSpreadAttribute",argument:e})},t.jSXSpreadChild=t.jsxSpreadChild=function(e){return(0,n.default)({type:"JSXSpreadChild",expression:e})},t.jSXText=t.jsxText=function(e){return(0,n.default)({type:"JSXText",value:e})},t.labeledStatement=function(e,t){return(0,n.default)({type:"LabeledStatement",label:e,body:t})},t.logicalExpression=function(e,t,r){return(0,n.default)({type:"LogicalExpression",operator:e,left:t,right:r})},t.memberExpression=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,n.default)({type:"MemberExpression",object:e,property:t,computed:r,optional:o})},t.metaProperty=function(e,t){return(0,n.default)({type:"MetaProperty",meta:e,property:t})},t.mixedTypeAnnotation=function(){return{type:"MixedTypeAnnotation"}},t.moduleExpression=function(e){return(0,n.default)({type:"ModuleExpression",body:e})},t.newExpression=function(e,t){return(0,n.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,n.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,n.default)({type:"NumberLiteralTypeAnnotation",value:e})},t.numberTypeAnnotation=function(){return{type:"NumberTypeAnnotation"}},t.numericLiteral=i,t.objectExpression=function(e){return(0,n.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,r=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,n.default)({type:"ObjectMethod",kind:e,key:t,params:r,body:o,computed:i,generator:s,async:a})},t.objectPattern=function(e){return(0,n.default)({type:"ObjectPattern",properties:e})},t.objectProperty=function(e,t){let r=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,n.default)({type:"ObjectProperty",key:e,value:t,computed:r,shorthand:o,decorators:i})},t.objectTypeAnnotation=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=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,n.default)({type:"ObjectTypeAnnotation",properties:e,indexers:t,callProperties:r,internalSlots:o,exact:i})},t.objectTypeCallProperty=function(e){return(0,n.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,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,n.default)({type:"ObjectTypeIndexer",id:e,key:t,value:r,variance:o,static:null})},t.objectTypeInternalSlot=function(e,t,r,o,i){return(0,n.default)({type:"ObjectTypeInternalSlot",id:e,value:t,optional:r,static:o,method:i})},t.objectTypeProperty=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,n.default)({type:"ObjectTypeProperty",key:e,value:t,variance:r,kind:null,method:null,optional:null,proto:null,static:null})},t.objectTypeSpreadProperty=function(e){return(0,n.default)({type:"ObjectTypeSpreadProperty",argument:e})},t.opaqueType=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3?arguments[3]:void 0;return(0,n.default)({type:"OpaqueType",id:e,typeParameters:t,supertype:r,impltype:o})},t.optionalCallExpression=function(e,t,r){return(0,n.default)({type:"OptionalCallExpression",callee:e,arguments:t,optional:r})},t.optionalIndexedAccessType=function(e,t){return(0,n.default)({type:"OptionalIndexedAccessType",objectType:e,indexType:t,optional:null})},t.optionalMemberExpression=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3?arguments[3]:void 0;return(0,n.default)({type:"OptionalMemberExpression",object:e,property:t,computed:r,optional:o})},t.parenthesizedExpression=function(e){return(0,n.default)({type:"ParenthesizedExpression",expression:e})},t.pipelineBareFunction=function(e){return(0,n.default)({type:"PipelineBareFunction",callee:e})},t.pipelinePrimaryTopicReference=function(){return{type:"PipelinePrimaryTopicReference"}},t.pipelineTopicExpression=function(e){return(0,n.default)({type:"PipelineTopicExpression",expression:e})},t.placeholder=function(e,t){return(0,n.default)({type:"Placeholder",expectedNode:e,name:t})},t.privateName=function(e){return(0,n.default)({type:"PrivateName",id:e})},t.program=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"script",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,n.default)({type:"Program",body:e,directives:t,sourceType:r,interpreter:o,sourceFile:null})},t.qualifiedTypeIdentifier=function(e,t){return(0,n.default)({type:"QualifiedTypeIdentifier",id:e,qualification:t})},t.recordExpression=function(e){return(0,n.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,n.default)({type:"ReturnStatement",argument:e})},t.sequenceExpression=function(e){return(0,n.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,n.default)({type:"StaticBlock",body:e})},t.stringLiteral=function(e){return(0,n.default)({type:"StringLiteral",value:e})},t.stringLiteralTypeAnnotation=function(e){return(0,n.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,n.default)({type:"SwitchCase",test:e,consequent:t})},t.switchStatement=function(e,t){return(0,n.default)({type:"SwitchStatement",discriminant:e,cases:t})},t.symbolTypeAnnotation=function(){return{type:"SymbolTypeAnnotation"}},t.taggedTemplateExpression=function(e,t){return(0,n.default)({type:"TaggedTemplateExpression",tag:e,quasi:t})},t.templateElement=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,n.default)({type:"TemplateElement",value:e,tail:t})},t.templateLiteral=function(e,t){return(0,n.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,n.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,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,n.default)({type:"TryStatement",block:e,handler:t,finalizer:r})},t.tSAnyKeyword=t.tsAnyKeyword=function(){return{type:"TSAnyKeyword"}},t.tSArrayType=t.tsArrayType=function(e){return(0,n.default)({type:"TSArrayType",elementType:e})},t.tSAsExpression=t.tsAsExpression=function(e,t){return(0,n.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,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,n.default)({type:"TSCallSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:r})},t.tSConditionalType=t.tsConditionalType=function(e,t,r,o){return(0,n.default)({type:"TSConditionalType",checkType:e,extendsType:t,trueType:r,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,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,n.default)({type:"TSConstructSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:r})},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,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,n.default)({type:"TSConstructorType",typeParameters:e,parameters:t,typeAnnotation:r})},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,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,n.default)({type:"TSDeclareFunction",id:e,typeParameters:t,params:r,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,r=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,n.default)({type:"TSDeclareMethod",decorators:e,key:t,typeParameters:r,params:o,returnType:i})},t.tSEnumDeclaration=t.tsEnumDeclaration=function(e,t){return(0,n.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,n.default)({type:"TSEnumMember",id:e,initializer:t})},t.tSExportAssignment=t.tsExportAssignment=function(e){return(0,n.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,n.default)({type:"TSExpressionWithTypeArguments",expression:e,typeParameters:t})},t.tSExternalModuleReference=t.tsExternalModuleReference=function(e){return(0,n.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,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,n.default)({type:"TSFunctionType",typeParameters:e,parameters:t,typeAnnotation:r})},t.tSImportEqualsDeclaration=t.tsImportEqualsDeclaration=function(e,t){return(0,n.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,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,n.default)({type:"TSImportType",argument:e,qualifier:t,typeParameters:r})},t.tSIndexSignature=t.tsIndexSignature=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,n.default)({type:"TSIndexSignature",parameters:e,typeAnnotation:t})},t.tSIndexedAccessType=t.tsIndexedAccessType=function(e,t){return(0,n.default)({type:"TSIndexedAccessType",objectType:e,indexType:t})},t.tSInferType=t.tsInferType=function(e){return(0,n.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,n.default)({type:"TSInstantiationExpression",expression:e,typeParameters:t})},t.tSInterfaceBody=t.tsInterfaceBody=function(e){return(0,n.default)({type:"TSInterfaceBody",body:e})},t.tSInterfaceDeclaration=t.tsInterfaceDeclaration=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3?arguments[3]:void 0;return(0,n.default)({type:"TSInterfaceDeclaration",id:e,typeParameters:t,extends:r,body:o})},t.tSIntersectionType=t.tsIntersectionType=function(e){return(0,n.default)({type:"TSIntersectionType",types:e})},t.tSIntrinsicKeyword=t.tsIntrinsicKeyword=function(){return{type:"TSIntrinsicKeyword"}},t.tSLiteralType=t.tsLiteralType=function(e){return(0,n.default)({type:"TSLiteralType",literal:e})},t.tSMappedType=t.tsMappedType=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,n.default)({type:"TSMappedType",typeParameter:e,typeAnnotation:t,nameType:r})},t.tSMethodSignature=t.tsMethodSignature=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,n.default)({type:"TSMethodSignature",key:e,typeParameters:t,parameters:r,typeAnnotation:o,kind:null})},t.tSModuleBlock=t.tsModuleBlock=function(e){return(0,n.default)({type:"TSModuleBlock",body:e})},t.tSModuleDeclaration=t.tsModuleDeclaration=function(e,t){return(0,n.default)({type:"TSModuleDeclaration",id:e,body:t})},t.tSNamedTupleMember=t.tsNamedTupleMember=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,n.default)({type:"TSNamedTupleMember",label:e,elementType:t,optional:r})},t.tSNamespaceExportDeclaration=t.tsNamespaceExportDeclaration=function(e){return(0,n.default)({type:"TSNamespaceExportDeclaration",id:e})},t.tSNeverKeyword=t.tsNeverKeyword=function(){return{type:"TSNeverKeyword"}},t.tSNonNullExpression=t.tsNonNullExpression=function(e){return(0,n.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,n.default)({type:"TSOptionalType",typeAnnotation:e})},t.tSParameterProperty=t.tsParameterProperty=function(e){return(0,n.default)({type:"TSParameterProperty",parameter:e})},t.tSParenthesizedType=t.tsParenthesizedType=function(e){return(0,n.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,n.default)({type:"TSPropertySignature",key:e,typeAnnotation:t,kind:null})},t.tSQualifiedName=t.tsQualifiedName=function(e,t){return(0,n.default)({type:"TSQualifiedName",left:e,right:t})},t.tSRestType=t.tsRestType=function(e){return(0,n.default)({type:"TSRestType",typeAnnotation:e})},t.tSSatisfiesExpression=t.tsSatisfiesExpression=function(e,t){return(0,n.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,n.default)({type:"TSTupleType",elementTypes:e})},t.tSTypeAliasDeclaration=t.tsTypeAliasDeclaration=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0;return(0,n.default)({type:"TSTypeAliasDeclaration",id:e,typeParameters:t,typeAnnotation:r})},t.tSTypeAnnotation=t.tsTypeAnnotation=function(e){return(0,n.default)({type:"TSTypeAnnotation",typeAnnotation:e})},t.tSTypeAssertion=t.tsTypeAssertion=function(e,t){return(0,n.default)({type:"TSTypeAssertion",typeAnnotation:e,expression:t})},t.tSTypeLiteral=t.tsTypeLiteral=function(e){return(0,n.default)({type:"TSTypeLiteral",members:e})},t.tSTypeOperator=t.tsTypeOperator=function(e){return(0,n.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,r=arguments.length>2?arguments[2]:void 0;return(0,n.default)({type:"TSTypeParameter",constraint:e,default:t,name:r})},t.tSTypeParameterDeclaration=t.tsTypeParameterDeclaration=function(e){return(0,n.default)({type:"TSTypeParameterDeclaration",params:e})},t.tSTypeParameterInstantiation=t.tsTypeParameterInstantiation=function(e){return(0,n.default)({type:"TSTypeParameterInstantiation",params:e})},t.tSTypePredicate=t.tsTypePredicate=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,n.default)({type:"TSTypePredicate",parameterName:e,typeAnnotation:t,asserts:r})},t.tSTypeQuery=t.tsTypeQuery=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,n.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,n.default)({type:"TSTypeReference",typeName:e,typeParameters:t})},t.tSUndefinedKeyword=t.tsUndefinedKeyword=function(){return{type:"TSUndefinedKeyword"}},t.tSUnionType=t.tsUnionType=function(e){return(0,n.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,n.default)({type:"TupleExpression",elements:e})},t.tupleTypeAnnotation=function(e){return(0,n.default)({type:"TupleTypeAnnotation",types:e})},t.typeAlias=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0;return(0,n.default)({type:"TypeAlias",id:e,typeParameters:t,right:r})},t.typeAnnotation=function(e){return(0,n.default)({type:"TypeAnnotation",typeAnnotation:e})},t.typeCastExpression=function(e,t){return(0,n.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,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,n.default)({type:"TypeParameter",bound:e,default:t,variance:r,name:null})},t.typeParameterDeclaration=function(e){return(0,n.default)({type:"TypeParameterDeclaration",params:e})},t.typeParameterInstantiation=function(e){return(0,n.default)({type:"TypeParameterInstantiation",params:e})},t.typeofTypeAnnotation=function(e){return(0,n.default)({type:"TypeofTypeAnnotation",argument:e})},t.unaryExpression=function(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return(0,n.default)({type:"UnaryExpression",operator:e,argument:t,prefix:r})},t.unionTypeAnnotation=function(e){return(0,n.default)({type:"UnionTypeAnnotation",types:e})},t.updateExpression=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,n.default)({type:"UpdateExpression",operator:e,argument:t,prefix:r})},t.v8IntrinsicIdentifier=function(e){return(0,n.default)({type:"V8IntrinsicIdentifier",name:e})},t.variableDeclaration=function(e,t){return(0,n.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,n.default)({type:"VariableDeclarator",id:e,init:t})},t.variance=function(e){return(0,n.default)({type:"Variance",kind:e})},t.voidTypeAnnotation=function(){return{type:"VoidTypeAnnotation"}},t.whileStatement=function(e,t){return(0,n.default)({type:"WhileStatement",test:e,body:t})},t.withStatement=function(e,t){return(0,n.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,n.default)({type:"YieldExpression",argument:e,delegate:t})};var n=r(352),o=r(58);function i(e){return(0,n.default)({type:"NumericLiteral",value:e})}function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,n.default)({type:"RegExpLiteral",pattern:e,flags:t})}function a(e){return(0,n.default)({type:"RestElement",argument:e})}function l(e){return(0,n.default)({type:"SpreadElement",argument:e})}},function(e,t,r){var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("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,r)=>{const n=r(3);e.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))},(e,t,r)=>{class n{constructor(e,t){if(t=i(t),e instanceof n)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new n(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,r=o.get(t);if(r)return r;const n=this.options.loose,i=n?c[u.HYPHENRANGELOOSE]:c[u.HYPHENRANGE];e=e.replace(i,O(this.options.includePrerelease)),a("hyphen replace",e),e=e.replace(c[u.COMPARATORTRIM],p),a("comparator trim",e),e=e.replace(c[u.TILDETRIM],d),a("tilde trim",e),e=e.replace(c[u.CARETTRIM],f),a("caret trim",e);let l=e.split(" ").map((e=>b(e,this.options))).join(" ").split(/\s+/).map((e=>C(e,this.options)));n&&(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 n))throw new TypeError("a Range is required");return this.set.some((r=>v(r,t)&&e.set.some((e=>v(e,t)&&r.every((r=>e.every((e=>r.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(I(this.set[t],e,this.options))return!0;return!1}}e.exports=n;const o=new(r(132))({max:1e3}),i=r(75),s=r(50),a=r(48),l=r(3),{safeRe:c,t:u,comparatorTrimReplace:p,tildeTrimReplace:d,caretTrimReplace:f}=r(34),{FLAG_INCLUDE_PRERELEASE:h,FLAG_LOOSE:m}=r(47),y=e=>"<0.0.0-0"===e.value,g=e=>""===e.value,v=(e,t)=>{let r=!0;const n=e.slice();let o=n.pop();for(;r&&n.length;)r=n.every((e=>o.intersects(e,t))),o=n.pop();return r},b=(e,t)=>(a("comp",e,t),e=S(e,t),a("caret",e),e=E(e,t),a("tildes",e),e=A(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 r=t.loose?c[u.TILDELOOSE]:c[u.TILDE];return e.replace(r,((t,r,n,o,i)=>{let s;return a("tilde",e,t,r,n,o,i),_(r)?s="":_(n)?s=`>=${r}.0.0 <${+r+1}.0.0-0`:_(o)?s=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:i?(a("replaceTilde pr",i),s=`>=${r}.${n}.${o}-${i} <${r}.${+n+1}.0-0`):s=`>=${r}.${n}.${o} <${r}.${+n+1}.0-0`,a("tilde return",s),s}))},S=(e,t)=>e.trim().split(/\s+/).map((e=>w(e,t))).join(" "),w=(e,t)=>{a("caret",e,t);const r=t.loose?c[u.CARETLOOSE]:c[u.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,((t,r,o,i,s)=>{let l;return a("caret",e,t,r,o,i,s),_(r)?l="":_(o)?l=`>=${r}.0.0${n} <${+r+1}.0.0-0`:_(i)?l="0"===r?`>=${r}.${o}.0${n} <${r}.${+o+1}.0-0`:`>=${r}.${o}.0${n} <${+r+1}.0.0-0`:s?(a("replaceCaret pr",s),l="0"===r?"0"===o?`>=${r}.${o}.${i}-${s} <${r}.${o}.${+i+1}-0`:`>=${r}.${o}.${i}-${s} <${r}.${+o+1}.0-0`:`>=${r}.${o}.${i}-${s} <${+r+1}.0.0-0`):(a("no pr"),l="0"===r?"0"===o?`>=${r}.${o}.${i}${n} <${r}.${o}.${+i+1}-0`:`>=${r}.${o}.${i}${n} <${r}.${+o+1}.0-0`:`>=${r}.${o}.${i} <${+r+1}.0.0-0`),a("caret return",l),l}))},A=(e,t)=>(a("replaceXRanges",e,t),e.split(/\s+/).map((e=>T(e,t))).join(" ")),T=(e,t)=>{e=e.trim();const r=t.loose?c[u.XRANGELOOSE]:c[u.XRANGE];return e.replace(r,((r,n,o,i,s,l)=>{a("xRange",e,r,n,o,i,s,l);const c=_(o),u=c||_(i),p=u||_(s),d=p;return"="===n&&d&&(n=""),l=t.includePrerelease?"-0":"",c?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&d?(u&&(i=0),s=0,">"===n?(n=">=",u?(o=+o+1,i=0,s=0):(i=+i+1,s=0)):"<="===n&&(n="<",u?o=+o+1:i=+i+1),"<"===n&&(l="-0"),r=`${n+o}.${i}.${s}${l}`):u?r=`>=${o}.0.0${l} <${+o+1}.0.0-0`:p&&(r=`>=${o}.${i}.0${l} <${o}.${+i+1}.0-0`),a("xRange return",r),r}))},P=(e,t)=>(a("replaceStars",e,t),e.trim().replace(c[u.STAR],"")),C=(e,t)=>(a("replaceGTE0",e,t),e.trim().replace(c[t.includePrerelease?u.GTE0PRE:u.GTE0],"")),O=e=>(t,r,n,o,i,s,a,l,c,u,p,d,f)=>`${r=_(n)?"":_(o)?`>=${n}.0.0${e?"-0":""}`:_(i)?`>=${n}.${o}.0${e?"-0":""}`:s?`>=${r}`:`>=${r}${e?"-0":""}`} ${l=_(c)?"":_(u)?`<${+c+1}.0.0-0`:_(p)?`<${c}.${+u+1}.0-0`:d?`<=${c}.${u}.${p}-${d}`:e?`<${c}.${u}.${+p+1}-0`:`<=${l}`}`.trim(),I=(e,t,r)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++)if(a(e[r].semver),e[r].semver!==s.ANY&&e[r].semver.prerelease.length>0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}},(e,t,r)=>{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 n=r(166);r(167),r(356),r(357),r(358),r(359),r(360);var o=r(18),i=r(169),s=r(361);Object.keys(s.DEPRECATED_ALIASES).forEach((e=>{o.FLIPPED_ALIAS_KEYS[e]=o.FLIPPED_ALIAS_KEYS[s.DEPRECATED_ALIASES[e]]})),n(o.VISITOR_KEYS),n(o.ALIAS_KEYS),n(o.FLIPPED_ALIAS_KEYS),n(o.NODE_FIELDS),n(o.BUILDER_KEYS),n(o.DEPRECATED_KEYS),n(i.PLACEHOLDERS_ALIAS),n(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,r)=>{var n=r(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 r,n="",o=0,i=-1,s=0,a=0;a<=e.length;++a){if(a<e.length)r=e.charCodeAt(a);else{if(47===r)break;r=47}if(47===r){if(i===a-1||1===s);else if(i!==a-1&&2===s){if(n.length<2||2!==o||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){var l=n.lastIndexOf("/");if(l!==n.length-1){-1===l?(n="",o=0):o=(n=n.slice(0,l)).length-1-n.lastIndexOf("/"),i=a,s=0;continue}}else if(2===n.length||1===n.length){n="",o=0,i=a,s=0;continue}t&&(n.length>0?n+="/..":n="..",o=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),o=a-i-1;i=a,s=0}else 46===r&&-1!==s?++s:s=-1}return n}var s={resolve:function(){for(var e,t="",r=!1,s=arguments.length-1;s>=-1&&!r;s--){var a;s>=0?a=arguments[s]:(void 0===e&&(e=n.cwd()),a=e),o(a),0!==a.length&&(t=a+"/"+t,r=47===a.charCodeAt(0))}return t=i(t,!r),r?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(o(e),0===e.length)return".";var t=47===e.charCodeAt(0),r=47===e.charCodeAt(e.length-1);return 0!==(e=i(e,!t)).length||t||(e="."),e.length>0&&r&&(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 r=arguments[t];o(r),r.length>0&&(void 0===e?e=r:e+="/"+r)}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 r=1;r<e.length&&47===e.charCodeAt(r);++r);for(var n=e.length,i=n-r,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(r+p)?u=p:0===p&&(u=0));break}var d=e.charCodeAt(r+p);if(d!==t.charCodeAt(a+p))break;47===d&&(u=p)}var f="";for(p=r+u+1;p<=n;++p)p!==n&&47!==e.charCodeAt(p)||(0===f.length?f+="..":f+="/..");return f.length>0?f+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),r=47===t,n=-1,i=!0,s=e.length-1;s>=1;--s)if(47===(t=e.charCodeAt(s))){if(!i){n=s;break}}else i=!1;return-1===n?r?"/":".":r&&1===n?"//":e.slice(0,n)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');o(e);var r,n=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(r=e.length-1;r>=0;--r){var c=e.charCodeAt(r);if(47===c){if(!s){n=r+1;break}}else-1===l&&(s=!1,l=r+1),a>=0&&(c===t.charCodeAt(a)?-1==--a&&(i=r):(a=-1,i=l))}return n===i?i=l:-1===i&&(i=e.length),e.slice(n,i)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!s){n=r+1;break}}else-1===i&&(s=!1,i=r+1);return-1===i?"":e.slice(n,i)},extname:function(e){o(e);for(var t=-1,r=0,n=-1,i=!0,s=0,a=e.length-1;a>=0;--a){var l=e.charCodeAt(a);if(47!==l)-1===n&&(i=!1,n=a+1),46===l?-1===t?t=a:1!==s&&(s=1):-1!==t&&(s=-1);else if(!i){r=a+1;break}}return-1===t||-1===n||0===s||1===s&&t===n-1&&t===r+1?"":e.slice(t,n)},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 r=t.dir||t.root,n=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+n:r+"/"+n:n}(0,e)},parse:function(e){o(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var r,n=e.charCodeAt(0),i=47===n;i?(t.root="/",r=1):r=0;for(var s=-1,a=0,l=-1,c=!0,u=e.length-1,p=0;u>=r;--u)if(47!==(n=e.charCodeAt(u)))-1===l&&(c=!1,l=u+1),46===n?-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,r)=>{var n=r(5),o=r(66),i=r(206),s=r(218),a=r(221),l=r(63),c=r(11),u=n.RangeError,p=n.Int8Array,d=p&&p.prototype,f=d&&d.set,h=i.aTypedArray,m=i.exportTypedArrayMethod,y=!c((function(){var e=new Uint8ClampedArray(2);return o(f,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),r=l(e);if(y)return o(f,this,r,t);var n=this.length,i=s(r),c=0;if(i+t>n)throw new u("Wrong length");for(;c<i;)this[t+c]=r[c++]}),!y||g)},e=>{const t=Symbol.for("gensync:v1:start"),r=Symbol.for("gensync:v1:suspend"),n="GENSYNC_EXPECTED_START",o="GENSYNC_EXPECTED_SUSPEND",i="GENSYNC_OPTIONS_ERROR",s="GENSYNC_RACE_NONEMPTY";function a(e,t,r,n){if(typeof r===e||n&&void 0===r)return;let o;throw o=n?`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:n,arity:o,sync:i,async:s}=e;return m(n,o,(function*(){const e=yield t;for(var n=arguments.length,o=new Array(n),a=0;a<n;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 r,l.hasOwnProperty("err"))throw l.err;return l.value}))}function u(e){let t;for(;!({value:t}=e.next()).done;)d(t,e);return t}function p(e,t,r){!function n(){try{let r;for(;!({value:r}=e.next()).done;){d(r,e);let t=!0,o=!1;const i=e.next((()=>{t?o=!0:n()}));if(t=!1,f(i,e),!o)return}return t(r)}catch(e){return r(e)}}()}function d(e,r){e!==t&&h(r,l(`Got unexpected yielded value in gensync generator: ${JSON.stringify(e)}. Did you perhaps mean to use 'yield*' instead of 'yield'?`,n))}function f(e,t){let{value:n,done:i}=e;(i||n!==r)&&h(t,l(i?"Unexpected generator completion. If you get this, it is probably a gensync bug.":`Expected GENSYNC_SUSPEND, got ${JSON.stringify(n)}. 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,r){if("string"==typeof e){const t=Object.getOwnPropertyDescriptor(r,"name");t&&!t.configurable||Object.defineProperty(r,"name",Object.assign(t||{},{configurable:!0,value:e}))}if("number"==typeof t){const e=Object.getOwnPropertyDescriptor(r,"length");e&&!e.configurable||Object.defineProperty(r,"length",Object.assign(e||{},{configurable:!0,value:t}))}return r}e.exports=Object.assign((function(e){let t=e;return t="function"!=typeof e?function(e){let{name:t,arity:r,sync:n,async:o,errback:s}=e;if(a("string","name",t,!0),a("number","arity",r,!0),a("function","sync",n),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$/,"")),n&&n.name&&"sync"!==n.name&&(e=n.name.replace(/Sync$/,"")),"string"==typeof e&&(t=e)}return"number"!=typeof r&&(r=n.length),c({name:t,arity:r,sync:function(e){return n.apply(this,e)},async:function(e,t,r){o?o.apply(this,e).then(t,r):s?s.call(this,...e,((e,n)=>{null==e?t(n):r(e)})):t(n.apply(this,e))}})}(e):function(e){return m(e.name,e.length,(function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.apply(this,r)}))}(e),Object.assign(t,function(e){const t={sync:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return u(e.apply(this,r))},async:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return new Promise(((t,n)=>{p(e.apply(this,r),t,n)}))},errback:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];const o=r.pop();if("function"!=typeof o)throw l("Asynchronous function called without callback","GENSYNC_ERRBACK_NO_CALLBACK");let i;try{i=e.apply(this,r)}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,r){const n=Array.from(e[0]);if(0===n.length)return void Promise.resolve().then((()=>t([])));let o=0;const i=n.map((()=>{}));n.forEach(((e,n)=>{p(e,(e=>{i[n]=e,o+=1,o===i.length&&t(i)}),r)}))}}),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,r){const n=Array.from(e[0]);if(0===n.length)throw l("Must race at least 1 item",s);for(const e of n)p(e,t,r)}})})},(e,t,r)=>{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 n=r(57);t.visitors=n;var o=r(0),i=r(35),s=r(100),a=r(28),l=r(183),c=r(444);const{VISITOR_KEYS:u,removeProperties:p,traverseFast:d}=o;function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=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&&!r&&"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]&&(n.explode(t),(0,s.traverseNode)(e,t,r,o,i,null,a))}}function h(e,t){e.node.type===t.type&&(t.has=!0,e.stop())}t.default=f,f.visitors=n,f.verify=n.verify,f.explode=n.explode,f.cheap=function(e,t){d(e,t)},f.node=function(e,t,r,n,o,i){(0,s.traverseNode)(e,t,r,n,o,i)},f.clearNode=function(e,t){p(e,t)},f.removeProperties=function(e,t){return d(e,f.clearNode,t),e},f.hasType=function(e,t,r){if(null!=r&&r.includes(e.type))return!1;if(e.type===t)return!0;const n={has:!1,type:t};return f(e,{noScope:!0,denylist:r,enter:h},null,n),n.has},f.cache=i},(e,t,r)=>{var n=r(11);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.declare=n,t.declarePreset=void 0;const r={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 r=Error.stackTraceLimit;let n;throw"number"==typeof r&&r<25&&(Error.stackTraceLimit=25),n="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 r&&(Error.stackTraceLimit=r),Object.assign(n,{code:"BABEL_VERSION_UNSUPPORTED",version:t,range:e})}(t,e.version)}};function n(e){return(t,n,o)=>{var s;let a;for(const e of Object.keys(r))t[e]||(null!=a||(a=i(t)),a[e]=r[e](a));return e(null!=(s=a)?s:t,n||{},o)}}Object.assign(r,{targets:()=>()=>({}),assumption:()=>()=>{}});const o=n;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,r,n=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(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var a,l=[],c=!1,u=-1;function p(){c&&a&&(c=!1,a.length?l=a.concat(l):u=-1,l.length&&d())}function d(){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(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function h(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new f(e,t)),1!==l.length||c||s(d)},f.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=h,n.addListener=h,n.once=h,n.off=h,n.removeListener=h,n.removeAllListeners=h,n.emit=h,n.prependListener=h,n.prependOnceListener=h,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},(e,t,r)=>{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),r=0;r<e;r++)t[r]=arguments[r];function i(e,r,i){for(const s of t)if(d(i)===s||(0,n.default)(s,i))return void(0,o.validateChild)(e,r,i);throw new TypeError(`Property ${r} 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),r=0;r<e;r++)t[r]=arguments[r];function n(e,r,n){if(t.indexOf(n)<0)throw new TypeError(`Property ${r} expected value to be one of ${JSON.stringify(t)} but got ${JSON.stringify(n)}`)}return n.oneOf=t,n},t.assertOptionalChainStart=function(){return function(e){var t;let r=e;for(;e;){const{type:e}=r;if("OptionalCallExpression"!==e){if("OptionalMemberExpression"!==e)break;if(r.optional)return;r=r.object}else{if(r.optional)return;r=r.callee}}throw new TypeError(`Non-optional ${e.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${null==(t=r)?void 0:t.type}`)}},t.assertShape=function(e){function t(t,r,n){const i=[];for(const r of Object.keys(e))try{(0,o.validateField)(t,r,n[r],e[r])}catch(e){if(e instanceof TypeError){i.push(e.message);continue}throw e}if(i.length)throw new TypeError(`Property ${r} of ${t.type} expected to have the following:\n${i.join("\n")}`)}return t.shapeOf=e,t},t.assertValueType=b,t.chain=_,t.default=w,t.defineAliasedType=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.aliases;var o;n||(r.inherits&&(n=null==(o=S[r.inherits].aliases)?void 0:o.slice()),null!=n||(n=[]),r.aliases=n);const i=t.filter((e=>!n.includes(e)));n.unshift(...i),w(e,r)}},t.typeIs=h,t.validate=f,t.validateArrayOfType=function(e){return f(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 f(h(e))};var n=r(42),o=r(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 d(e){return Array.isArray(e)?"array":null===e?"null":typeof e}function f(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,r,n){if(Array.isArray(n))for(let o=0;o<n.length;o++){const i=`${r}[${o}]`,s=n[o];e(t,i,s)}}return t.each=e,t}function v(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];function i(e,r,i){for(const s of t)if((0,n.default)(s,i))return void(0,o.validateChild)(e,r,i);throw new TypeError(`Property ${r} 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,r,n){if(d(n)!==e)throw new TypeError(`Property ${r} expected type of ${e} but got ${d(n)}`)}return t.type=e,t}function _(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];function n(){for(const e of t)e(...arguments)}if(n.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 n}const E=["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"],x=["default","optional","deprecated","validate"],S={};function w(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=t.inherits&&S[t.inherits]||{};let n=t.fields;if(!n&&(n={},r.fields)){const e=Object.getOwnPropertyNames(r.fields);for(const t of e){const e=r.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");n[t]={default:Array.isArray(o)?[]:o,optional:e.optional,deprecated:e.deprecated,validate:e.validate}}}const o=t.visitor||r.visitor||[],f=t.aliases||r.aliases||[],h=t.builder||r.builder||t.visitor||[];for(const r of Object.keys(t))if(-1===E.indexOf(r))throw new Error(`Unknown type option "${r}" on ${e}`);t.deprecatedAlias&&(u[t.deprecatedAlias]=e);for(const e of o.concat(h))n[e]=n[e]||{};for(const t of Object.keys(n)){const r=n[t];void 0!==r.default&&-1===h.indexOf(t)&&(r.optional=!0),void 0===r.default?r.default=null:r.validate||null==r.default||(r.validate=b(d(r.default)));for(const n of Object.keys(r))if(-1===x.indexOf(n))throw new Error(`Unknown field key "${n}" on ${e}.${t}`)}i[e]=t.visitor=o,c[e]=t.builder=h,l[e]=t.fields=n,s[e]=t.aliases=f,f.forEach((t=>{a[t]=a[t]||[],a[t].push(e)})),t.validate&&(p[e]=t.validate),S[e]=t}},(e,t,r)=>{var n=r(104),o=Function.prototype,i=o.call,s=n&&o.bind.bind(i,i);e.exports=n?s:function(e){return function(){return i.apply(e,arguments)}}},(e,t,r)=>{var n=r(6);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},(e,t,r)=>{function n(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}r(44),Object.defineProperty(t,"__esModule",{value:!0});class o{constructor(e,t,r){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=t,this.index=r}}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:r,column:n,index:i}=e;return new o(r,n+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:r}=e;return"UpdateExpression"===t?c.UpdateExpression[String(r)]: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:r}=e;return`A string literal cannot be used as an exported binding without \`from\`.\n- Did you mean \`export { '${t}' as '${r}' } 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:r}=e;return`Unexpected token${r?` '${r}'.`:""}${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:r}=e;return`The only valid meta property for ${t} is ${t}.${r}.`},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 d=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]);var f={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,r){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:r})}function g(e){let{toMessage:t}=e,r=n(e,h);return function e(n,i){const s=new SyntaxError;return Object.assign(s,r,{loc:n,pos:n.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 r;const{line:s,column:a,index:l}=null!=(r=t.loc)?r:n;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)} (${n.line}:${n.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 r={};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=n(s,m),c="string"==typeof a?()=>a:a;r[o]=g(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:o,toMessage:c},t?{syntaxPlugin:t}:{},l))}return r}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`(f)),{defineProperty:_}=Object,E=(e,t)=>_(e,t,{enumerable:!1,value:e[t]});function x(e){return e.loc.start&&E(e.loc.start,"index"),e.loc.end&&E(e.loc.end,"index"),e}class S{constructor(e,t){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!t}}const w={brace:new S("{"),j_oTag:new S("<tag"),j_cTag:new S("</tag"),j_expr:new S("<tag>...</tag>",!0)};w.template=new S("`",!0);const A=!0,T=!0,P=!0,C=!0,O=!0;class I{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 k=new Map;function D(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.keyword=e;const r=V(e,t);return k.set(e,r),r}function M(e,t){return V(e,{beforeExpr:A,binop:t})}let j=-1;const N=[],L=[],R=[],B=[],F=[],U=[];function V(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var r,n,o,i;return++j,L.push(e),R.push(null!=(r=t.binop)?r:-1),B.push(null!=(n=t.beforeExpr)&&n),F.push(null!=(o=t.startsExpr)&&o),U.push(null!=(i=t.prefix)&&i),N.push(new I(e,t)),j}function W(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var r,n,o,i;return++j,k.set(e,j),L.push(e),R.push(null!=(r=t.binop)?r:-1),B.push(null!=(n=t.beforeExpr)&&n),F.push(null!=(o=t.startsExpr)&&o),U.push(null!=(i=t.prefix)&&i),N.push(new I("name",t)),j}const $={bracketL:V("[",{beforeExpr:A,startsExpr:T}),bracketHashL:V("#[",{beforeExpr:A,startsExpr:T}),bracketBarL:V("[|",{beforeExpr:A,startsExpr:T}),bracketR:V("]"),bracketBarR:V("|]"),braceL:V("{",{beforeExpr:A,startsExpr:T}),braceBarL:V("{|",{beforeExpr:A,startsExpr:T}),braceHashL:V("#{",{beforeExpr:A,startsExpr:T}),braceR:V("}"),braceBarR:V("|}"),parenL:V("(",{beforeExpr:A,startsExpr:T}),parenR:V(")"),comma:V(",",{beforeExpr:A}),semi:V(";",{beforeExpr:A}),colon:V(":",{beforeExpr:A}),doubleColon:V("::",{beforeExpr:A}),dot:V("."),question:V("?",{beforeExpr:A}),questionDot:V("?."),arrow:V("=>",{beforeExpr:A}),template:V("template"),ellipsis:V("...",{beforeExpr:A}),backQuote:V("`",{startsExpr:T}),dollarBraceL:V("${",{beforeExpr:A,startsExpr:T}),templateTail:V("...`",{startsExpr:T}),templateNonTail:V("...${",{beforeExpr:A,startsExpr:T}),at:V("@"),hash:V("#",{startsExpr:T}),interpreterDirective:V("#!..."),eq:V("=",{beforeExpr:A,isAssign:C}),assign:V("_=",{beforeExpr:A,isAssign:C}),slashAssign:V("_=",{beforeExpr:A,isAssign:C}),xorAssign:V("_=",{beforeExpr:A,isAssign:C}),moduloAssign:V("_=",{beforeExpr:A,isAssign:C}),incDec:V("++/--",{prefix:O,postfix:!0,startsExpr:T}),bang:V("!",{beforeExpr:A,prefix:O,startsExpr:T}),tilde:V("~",{beforeExpr:A,prefix:O,startsExpr:T}),doubleCaret:V("^^",{startsExpr:T}),doubleAt:V("@@",{startsExpr:T}),pipeline:M("|>",0),nullishCoalescing:M("??",1),logicalOR:M("||",1),logicalAND:M("&&",2),bitwiseOR:M("|",3),bitwiseXOR:M("^",4),bitwiseAND:M("&",5),equality:M("==/!=/===/!==",6),lt:M("</>/<=/>=",7),gt:M("</>/<=/>=",7),relational:M("</>/<=/>=",7),bitShift:M("<</>>/>>>",8),bitShiftL:M("<</>>/>>>",8),bitShiftR:M("<</>>/>>>",8),plusMin:V("+/-",{beforeExpr:A,binop:9,prefix:O,startsExpr:T}),modulo:V("%",{binop:10,startsExpr:T}),star:V("*",{binop:10}),slash:M("/",10),exponent:V("**",{beforeExpr:A,binop:11,rightAssociative:!0}),_in:D("in",{beforeExpr:A,binop:7}),_instanceof:D("instanceof",{beforeExpr:A,binop:7}),_break:D("break"),_case:D("case",{beforeExpr:A}),_catch:D("catch"),_continue:D("continue"),_debugger:D("debugger"),_default:D("default",{beforeExpr:A}),_else:D("else",{beforeExpr:A}),_finally:D("finally"),_function:D("function",{startsExpr:T}),_if:D("if"),_return:D("return",{beforeExpr:A}),_switch:D("switch"),_throw:D("throw",{beforeExpr:A,prefix:O,startsExpr:T}),_try:D("try"),_var:D("var"),_const:D("const"),_with:D("with"),_new:D("new",{beforeExpr:A,startsExpr:T}),_this:D("this",{startsExpr:T}),_super:D("super",{startsExpr:T}),_class:D("class",{startsExpr:T}),_extends:D("extends",{beforeExpr:A}),_export:D("export"),_import:D("import",{startsExpr:T}),_null:D("null",{startsExpr:T}),_true:D("true",{startsExpr:T}),_false:D("false",{startsExpr:T}),_typeof:D("typeof",{beforeExpr:A,prefix:O,startsExpr:T}),_void:D("void",{beforeExpr:A,prefix:O,startsExpr:T}),_delete:D("delete",{beforeExpr:A,prefix:O,startsExpr:T}),_do:D("do",{isLoop:P,beforeExpr:A}),_for:D("for",{isLoop:P}),_while:D("while",{isLoop:P}),_as:W("as",{startsExpr:T}),_assert:W("assert",{startsExpr:T}),_async:W("async",{startsExpr:T}),_await:W("await",{startsExpr:T}),_defer:W("defer",{startsExpr:T}),_from:W("from",{startsExpr:T}),_get:W("get",{startsExpr:T}),_let:W("let",{startsExpr:T}),_meta:W("meta",{startsExpr:T}),_of:W("of",{startsExpr:T}),_sent:W("sent",{startsExpr:T}),_set:W("set",{startsExpr:T}),_source:W("source",{startsExpr:T}),_static:W("static",{startsExpr:T}),_using:W("using",{startsExpr:T}),_yield:W("yield",{startsExpr:T}),_asserts:W("asserts",{startsExpr:T}),_checks:W("checks",{startsExpr:T}),_exports:W("exports",{startsExpr:T}),_global:W("global",{startsExpr:T}),_implements:W("implements",{startsExpr:T}),_intrinsic:W("intrinsic",{startsExpr:T}),_infer:W("infer",{startsExpr:T}),_is:W("is",{startsExpr:T}),_mixins:W("mixins",{startsExpr:T}),_proto:W("proto",{startsExpr:T}),_require:W("require",{startsExpr:T}),_satisfies:W("satisfies",{startsExpr:T}),_keyof:W("keyof",{startsExpr:T}),_readonly:W("readonly",{startsExpr:T}),_unique:W("unique",{startsExpr:T}),_abstract:W("abstract",{startsExpr:T}),_declare:W("declare",{startsExpr:T}),_enum:W("enum",{startsExpr:T}),_module:W("module",{startsExpr:T}),_namespace:W("namespace",{startsExpr:T}),_interface:W("interface",{startsExpr:T}),_type:W("type",{startsExpr:T}),_opaque:W("opaque",{startsExpr:T}),name:V("name",{startsExpr:T}),string:V("string",{startsExpr:T}),num:V("num",{startsExpr:T}),bigint:V("bigint",{startsExpr:T}),decimal:V("decimal",{startsExpr:T}),regexp:V("regexp",{startsExpr:T}),privateName:V("#name",{startsExpr:T}),eof:V("eof"),jsxName:V("jsxName"),jsxText:V("jsxText",{beforeExpr:!0}),jsxTagStart:V("jsxTagStart",{startsExpr:!0}),jsxTagEnd:V("jsxTagEnd"),placeholder:V("%%",{startsExpr:!0})};function K(e){return e>=93&&e<=132}function q(e){return e>=58&&e<=132}function z(e){return e>=58&&e<=136}function H(e){return F[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 N[e]}N[8].updateContext=e=>{e.pop()},N[5].updateContext=N[7].updateContext=N[23].updateContext=e=>{e.push(w.brace)},N[22].updateContext=e=>{e[e.length-1]===w.template?e.pop():e.push(w.template)},N[142].updateContext=e=>{e.push(w.j_expr,w.j_oTag)};let ee="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",te="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const re=new RegExp("["+ee+"]"),ne=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 r=65536;for(let n=0,o=t.length;n<o;n+=2){if(r+=t[n],r>e)return!1;if(r+=t[n+1],r>=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&&re.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&&ne.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 de(e,t){return t&&"await"===e||"enum"===e}function fe(e,t){return de(e,t)||ue.has(e)}function he(e){return pe.has(e)}function me(e,t){return fe(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,r){let n=this.currentScope();if(8&t||16&t){this.checkRedeclarationInScope(n,e,t,r);let o=n.names.get(e)||0;16&t?o|=4:(n.firstLexicalName||(n.firstLexicalName=e),o|=2),n.names.set(e,o),8&t&&this.maybeExportDefined(n,e)}else if(4&t)for(let o=this.scopeStack.length-1;o>=0&&(n=this.scopeStack[o],this.checkRedeclarationInScope(n,e,t,r),n.names.set(e,1|(n.names.get(e)||0)),this.maybeExportDefined(n,e),!(387&n.flags));--o);this.parser.inModule&&1&n.flags&&this.undefinedExports.delete(e)}maybeExportDefined(e,t){this.parser.inModule&&1&e.flags&&this.undefinedExports.delete(t)}checkRedeclarationInScope(e,t,r,n){this.isRedeclaredInScope(e,t,r)&&this.parser.raise(b.VarRedeclaration,n,{identifierName:t})}isRedeclaredInScope(e,t,r){if(!(1&r))return!1;if(8&r)return e.names.has(t);const n=e.names.get(t);return 16&r?(2&n)>0||!this.treatFunctionsAsVarInScope(e)&&(1&n)>0:(2&n)>0&&!(8&e.flags&&e.firstLexicalName===t)||!this.treatFunctionsAsVarInScope(e)&&(4&n)>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,r){const n=this.currentScope();if(2048&t)return this.checkRedeclarationInScope(n,e,t,r),this.maybeExportDefined(n,e),void n.declareFunctions.add(e);super.declareName(e,t,r)}isRedeclaredInScope(e,t,r){if(super.isRedeclaredInScope(e,t,r))return!0;if(2048&r&&!e.declareFunctions.has(t)){const r=e.names.get(t);return(4&r)>0||(2&r)>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,r]=e;if(!this.hasPlugin(t))return!1;const n=this.plugins.get(t);for(const e of Object.keys(r))if((null==n?void 0:n[e])!==r[e])return!1;return!0}}getPluginOption(e,t){var r;return null==(r=this.plugins.get(e))?void 0:r[t]}}function xe(e,t){void 0===e.trailingComments?e.trailingComments=t:e.trailingComments.unshift(...t)}function Se(e,t){void 0===e.innerComments?e.innerComments=t:e.innerComments.unshift(...t)}function we(e,t,r){let n=null,o=t.length;for(;null===n&&o>0;)n=t[--o];null===n||n.start>r.start?Se(e,r.comments):xe(n,r.comments)}class Ae 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,r=t.length;if(0===r)return;let n=r-1;const o=t[n];o.start===e.end&&(o.leadingNode=e,n--);const{start:i}=e;for(;n>=0;n--){const r=t[n],o=r.end;if(!(o>i)){o===i&&(r.trailingNode=e);break}r.containingNode=e,this.finalizeComment(r),t.splice(n,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:r,start:n}=e;if(44===this.input.charCodeAt(n-1))switch(r.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":we(r,r.properties,e);break;case"CallExpression":case"OptionalCallExpression":we(r,r.arguments,e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":we(r,r.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":we(r,r.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":we(r,r.specifiers,e);break;default:Se(r,t)}else Se(r,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:r}=t;if(0===r)return;const n=t[r-1];n.leadingNode===e&&(n.leadingNode=null)}resetPreviousIdentifierLeadingComments(e){const{commentStack:t}=this.state,{length:r}=t;0!==r&&(t[r-1].trailingNode===e?t[r-1].trailingNode=null:r>=2&&t[r-2].trailingNode===e&&(t[r-2].trailingNode=null))}takeSurroundingComments(e,t,r){const{commentStack:n}=this.state,o=n.length;if(0===o)return;let i=o-1;for(;i>=0;i--){const o=n[i],s=o.end;if(o.start===r)o.leadingNode=e;else if(s===t)o.trailingNode=e;else if(s<t)break}}}const Te=/\r\n?|[\n\u2028\u2029]/,Pe=new RegExp(Te.source,"g");function Ce(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}const Oe=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Ie=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g,ke=new RegExp("(?=("+Ie.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y");function De(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 Me{constructor(){this.flags=1024,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=139,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[w.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(1&this.flags)>0}set strict(e){e?this.flags|=1:this.flags&=-2}init(e){let{strictMode:t,sourceType:r,startLine:n,startColumn:i}=e;this.strict=!1!==t&&(!0===t||"module"===r),this.curLine=n,this.lineStart=-i,this.startLoc=this.endLoc=new o(n,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 Me;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 je=function(e){return e>=48&&e<=57};const Ne={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,r,n,o,i){const s=r,a=n,l=o;let c="",u=null,p=r;const{length:d}=t;for(;;){if(r>=d){i.unterminated(s,a,l),c+=t.slice(p,r);break}const f=t.charCodeAt(r);if(Be(e,f,t,r)){c+=t.slice(p,r);break}if(92===f){c+=t.slice(p,r);const s=Fe(t,r,n,o,"template"===e,i);null!==s.ch||u?c+=s.ch:u={pos:r,lineStart:n,curLine:o},({pos:r,lineStart:n,curLine:o}=s),p=r}else 8232===f||8233===f?(++o,n=++r):10===f||13===f?"template"===e?(c+=t.slice(p,r)+"\n",++r,13===f&&10===t.charCodeAt(r)&&++r,++o,p=n=r):i.unterminated(s,a,l):++r}return{pos:r,str:c,firstInvalidLoc:u,lineStart:n,curLine:o,containsInvalid:!!u}}function Be(e,t,r,n){return"template"===e?96===t||36===t&&123===r.charCodeAt(n+1):t===("double"===e?34:39)}function Fe(e,t,r,n,o,i){const s=!o;t++;const a=e=>({pos:t,ch:e,lineStart:r,curLine:n}),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}=Ue(e,t,r,n,2,!1,s,i)),a(null===o?null:String.fromCharCode(o))}case 117:{let o;return({code:o,pos:t}=We(e,t,r,n,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:r=t,++n;case 8232:case 8233:return a("");case 56:case 57:if(o)return a(null);i.strictNumericEscape(t-1,r,n);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,r,n)}return a(String.fromCharCode(c))}return a(String.fromCharCode(l))}}function Ue(e,t,r,n,o,i,s,a){const l=t;let c;return({n:c,pos:t}=Ve(e,t,r,n,16,o,i,!1,a,!s)),null===c&&(s?a.invalidEscapeSequence(l,r,n):t=l-1),{code:c,pos:t}}function Ve(e,t,r,n,o,i,s,a,l,c){const u=t,p=16===o?Ne.hex:Ne.decBinOct,d=16===o?Le.hex:10===o?Le.dec:8===o?Le.oct:Le.bin;let f=!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:je(i)?i-48:1/0,u>=o){if(u<=9&&c)return{n:null,pos:t};if(u<=9&&l.invalidDigit(t,r,n,o))u=0;else{if(!s)break;u=0,f=!0}}++t,h=h*o+u}else{const o=e.charCodeAt(t-1),i=e.charCodeAt(t+1);if(a){if(Number.isNaN(i)||!d(i)||p.has(o)||p.has(i)){if(c)return{n:null,pos:t};l.unexpectedNumericSeparator(t,r,n)}}else{if(c)return{n:null,pos:t};l.numericSeparatorInEscapeSequence(t,r,n)}++t}}return t===u||null!=i&&t-u!==i||f?{n:null,pos:t}:{n:h,pos:t}}function We(e,t,r,n,o,i){let s;if(123===e.charCodeAt(t)){if(++t,({code:s,pos:t}=Ue(e,t,r,n,e.indexOf("}",t)-t,!0,o,i)),++t,null!==s&&s>1114111){if(!o)return{code:null,pos:t};i.invalidCodePoint(t,r,n)}}else({code:s,pos:t}=Ue(e,t,r,n,4,!1,o,i));return{code:s,pos:t}}function $e(e,t,r){return new o(r,e-t,e)}const Ke=new Set([103,109,115,105,121,117,100,118]);class qe{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 Ae{constructor(e,t){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(e,t,r,n)=>!!this.options.errorRecovery&&(this.raise(b.InvalidDigit,$e(e,t,r),{radix:n}),!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,r)=>{this.recordStrictModeErrors(b.StrictNumericEscape,$e(e,t,r))},unterminated:(e,t,r)=>{throw this.raise(b.UnterminatedString,$e(e-1,t,r))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(b.StrictNumericEscape),unterminated:(e,t,r)=>{throw this.raise(b.UnterminatedTemplate,$e(e,t,r))}}),this.state=new Me,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 qe(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 Oe.lastIndex=e,Oe.test(this.input)?Oe.lastIndex:e}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(e){return Ie.lastIndex=e,Ie.test(this.input)?Ie.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 r=this.input.charCodeAt(e);56320==(64512&r)&&(t=65536+((1023&t)<<10)+(1023&r))}return t}setStrict(e){this.state.strict=e,e&&(this.state.strictErrors.forEach((e=>{let[t,r]=e;return this.raise(t,r)})),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 r=this.state.pos,n=this.input.indexOf(e,r+2);if(-1===n)throw this.raise(b.UnterminatedComment,this.state.curPosition());for(this.state.pos=n+e.length,Pe.lastIndex=r+2;Pe.test(this.input)&&Pe.lastIndex<=n;)++this.state.curLine,this.state.lineStart=Pe.lastIndex;if(this.isLookahead)return;const o={type:"CommentBlock",value:this.input.slice(r+2,n),start:r,end:n+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 r;this.isLookahead||(r=this.state.curPosition());let n=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!Ce(n)&&++this.state.pos<this.length;)n=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(r,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 r=this.input.charCodeAt(this.state.pos);switch(r){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(De(r))++this.state.pos;else if(45===r&&!this.inModule&&this.options.annexB){const r=this.state.pos;if(45!==this.input.charCodeAt(r+1)||62!==this.input.charCodeAt(r+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!==r||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 r={start:e,end:this.state.pos,comments:t,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(r)}}finishToken(e,t){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();const r=this.state.type;this.state.type=e,this.state.value=t,this.isLookahead||this.updateContext(r)}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;!Ce(e)&&++this.state.pos<this.length;)e=this.input.charCodeAt(this.state.pos);const r=this.input.slice(t+2,this.state.pos);return this.finishToken(28,r),!0}readToken_mult_modulo(e){let t=42===e?55:54,r=1,n=this.input.charCodeAt(this.state.pos+1);42===e&&42===n&&(r++,n=this.input.charCodeAt(this.state.pos+2),t=57),61!==n||this.state.inType||(r++,t=37===e?33:30),this.finishOp(t,r)}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 r=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,r)}readRegexp(){const e=this.state.startLoc,t=this.state.start+1;let r,n,{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(Ce(t))throw this.raise(b.UnterminatedRegExp,s(e,1));if(r)r=!1;else{if(91===t)n=!0;else if(93===t&&n)n=!1;else if(47===t&&!n)break;r=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(Ke.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 r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const{n:o,pos:i}=Ve(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,t,r,n,this.errorHandlers_readInt,!1);return this.state.pos=i,o}readRadixNumber(e){const t=this.state.curPosition();let r=!1;this.state.pos+=2;const n=this.readInt(e);null==n&&this.raise(b.InvalidDigit,s(t,2),{radix:e});const o=this.input.charCodeAt(this.state.pos);if(110===o)++this.state.pos,r=!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(r){const e=this.input.slice(t.index,this.state.pos).replace(/[_n]/g,"");this.finishToken(135,e)}else this.finishToken(134,n)}readNumber(e){const t=this.state.pos,r=this.state.curPosition();let n=!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,r),!this.state.strict){const t=e.indexOf("_");t>0&&this.raise(b.ZeroDigitNumericSeparator,s(r,t))}l=c&&!/[89]/.test(e)}let u=this.input.charCodeAt(this.state.pos);if(46!==u||l||(++this.state.pos,this.readInt(10),n=!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,r),n=!0,a=!0,u=this.input.charCodeAt(this.state.pos)),110===u&&((n||c)&&this.raise(b.InvalidBigIntLiteral,r),++this.state.pos,o=!0),109===u&&(this.expectPlugin("decimal",this.state.curPosition()),(a||c)&&this.raise(b.InvalidDecimal,r),++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 d=l?parseInt(p,8):parseFloat(p);this.finishToken(134,d)}readCodePoint(e){const{code:t,pos:r}=We(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=r,t}readString(e){const{str:t,pos:r,curLine:n,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=r+1,this.state.lineStart=o,this.state.curLine=n,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:r,pos:n,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=n+1,this.state.lineStart=s,this.state.curLine=i,r&&(this.state.firstInvalidTemplateEscapePos=new o(r.curLine,r.pos-r.lineStart,r.pos)),96===this.input.codePointAt(n)?this.finishToken(24,r?null:e+t+"`"):(this.state.pos++,this.finishToken(25,r?null:e+t+"${"))}recordStrictModeErrors(e,t){const r=t.index;this.state.strict&&!this.state.strictErrors.has(r)?this.raise(e,t):this.state.strictErrors.set(r,[e,t])}readWord1(e){this.state.containsEsc=!1;let t="";const r=this.state.pos;let n=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(n,this.state.pos);const e=this.state.curPosition(),o=this.state.pos===r?ae:le;if(117!==this.input.charCodeAt(++this.state.pos)){this.raise(b.MissingUnicodeEscape,this.state.curPosition()),n=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)),n=this.state.pos}}}return t+this.input.slice(n,this.state.pos)}readWord(e){const t=this.readWord1(e),r=k.get(t);void 0!==r?this.finishToken(r,X(r)):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 r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=e(t instanceof o?t:t.loc.start,r);if(!this.options.errorRecovery)throw n;return this.isLookahead||this.state.errors.push(n),n}raiseOverwrite(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=t instanceof o?t:t.loc.start,i=n.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(n,r);if(o.loc.index<i)break}return this.raise(e,t,r)}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,r,n)=>{this.raise(e,$e(t,r,n))}}}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[r,n]of Array.from(e.undefinedPrivateNames))t?t.undefinedPrivateNames.has(r)||t.undefinedPrivateNames.set(r,n):this.parser.raise(b.InvalidPrivateFieldResolution,n,{identifierName:r})}declarePrivateName(e,t,r){const{privateNames:n,loneAccessors:o,undefinedPrivateNames:i}=this.current();let s=n.has(e);if(3&t){const r=s&&o.get(e);r?(s=(3&r)==(3&t)||(4&r)!=(4&t),s||o.delete(e)):s||o.set(e,t)}s&&this.parser.raise(b.PrivateNameRedeclaration,r,{identifierName:e}),n.add(e),i.delete(e)}usePrivateName(e,t){let r;for(r of this.stack)if(r.privateNames.has(e))return;r?r.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 r=t.index;this.declarationErrors.set(r,[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 r=t.loc.start,{stack:n}=this;let o=n.length-1,i=n[o];for(;!i.isCertainlyParameterDeclaration();){if(!i.canBeArrowParameterDeclaration())return;i.recordDeclarationError(e,r),i=n[--o]}this.parser.raise(e,r)}recordArrowParameterBindingError(e,t){const{stack:r}=this,n=r[r.length-1],o=t.loc.start;if(n.isCertainlyParameterDeclaration())this.parser.raise(e,o);else{if(!n.canBeArrowParameterDeclaration())return;n.recordDeclarationError(e,o)}}recordAsyncArrowParametersError(e){const{stack:t}=this;let r=t.length-1,n=t[r];for(;n.canBeArrowParameterDeclaration();)2===n.type&&n.recordDeclarationError(b.AwaitBindingIdentifier,e),n=t[--r]}validateAsPattern(){const{stack:e}=this,t=e[e.length-1];t.canBeArrowParameterDeclaration()&&t.iterateErrors((t=>{let[r,n]=t;this.parser.raise(r,n);let o=e.length-2,i=e[o];for(;i.canBeArrowParameterDeclaration();)i.clearDeclarationError(n.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,r){let n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!e)return;const o=e.extra=e.extra||{};n?o[t]=r:Object.defineProperty(o,t,{enumerable:n,value:r})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,t){const r=e+t.length;if(this.input.slice(e,r)===t){const e=this.input.charCodeAt(r);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 Te.test(this.input.slice(this.state.lastTokEndLoc.index,this.state.start))}hasFollowingLineBreak(){return ke.lastIndex=this.state.end,ke.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 r={node:null};try{const n=e((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;throw r.node=e,r}));if(this.state.errors.length>t.errors.length){const e=this.state;return this.state=t,this.state.tokensLength=e.tokensLength,{node:n,error:e.errors[t.errors.length],thrown:!1,aborted:!1,failState:e}}return{node:n,error:null,thrown:!1,aborted:!1,failState:null}}catch(e){const n=this.state;if(this.state=t,e instanceof SyntaxError)return{node:null,error:e,thrown:!0,aborted:!1,failState:n};if(e===r)return{node:r.node,error:null,thrown:!1,aborted:!0,failState:n};throw e}}checkExpressionErrors(e,t){if(!e)return!1;const{shorthandAssignLoc:r,doubleProtoLoc:n,privateKeyLoc:o,optionalParametersLoc:i}=e;if(!t)return!!(r||n||i||o);null!=r&&this.raise(b.InvalidCoverInitializedName,r),null!=n&&this.raise(b.DuplicateProto,n),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 r=this.exportedIdentifiers;this.exportedIdentifiers=new Set;const n=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=r,this.inModule=n,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 rt{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}}class nt{constructor(e,t,r){this.type="",this.start=t,this.end=0,this.loc=new i(r),null!=e&&e.options.ranges&&(this.range=[t,0]),null!=e&&e.filename&&(this.loc.filename=e.filename)}}const ot=nt.prototype;function it(e){const{type:t,start:r,end:n,loc:o,range:i,extra:s,name:a}=e,l=Object.create(ot);return l.type=t,l.start=r,l.end=n,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 nt(void 0,this.start,this.loc.start),t=Object.keys(this);for(let r=0,n=t.length;r<n;r++){const n=t[r];"leadingComments"!==n&&"trailingComments"!==n&&"innerComments"!==n&&(e[n]=this[n])}return e};class st extends tt{startNode(){const e=this.state.startLoc;return new nt(this,e.index,e)}startNodeAt(e){return new nt(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,r){return e.type=t,e.end=r.index,e.loc.end=r,this.options.ranges&&(e.range[1]=r.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:r}=e;return`Boolean enum members need to be initialized. Use either \`${t} = true,\` or \`${t} = false,\` in enum \`${r}\`.`},EnumDuplicateMemberName:e=>{let{memberName:t,enumName:r}=e;return`Enum member names need to be unique, but the name \`${t}\` has already been used before in enum \`${r}\`.`},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:r}=e;return`Enum type \`${t}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${r}\`.`},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:r,explicitType:n}=e;return`Enum \`${t}\` has type \`${n}\`, so the initializer of \`${r}\` needs to be a ${n} literal.`},EnumInvalidMemberInitializerSymbolType:e=>{let{enumName:t,memberName:r}=e;return`Symbol enum members cannot be initialized. Use \`${r},\` in enum \`${t}\`.`},EnumInvalidMemberInitializerUnknownType:e=>{let{enumName:t,memberName:r}=e;return`The enum member initializer for \`${r}\` needs to be a literal (either a boolean, number, or string) in enum \`${t}\`.`},EnumInvalidMemberName:e=>{let{enumName:t,memberName:r,suggestion:n}=e;return`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${r}\`, consider using \`${n}\`, in enum \`${t}\`.`},EnumNumberMemberNotInitialized:e=>{let{enumName:t,memberName:r}=e;return`Number enum members need to be initialized, e.g. \`${r} = 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:r}=e;return`\`declare export ${t}\` is not supported. Use \`${r}\` 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/,dt={__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:"♦"},ft=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:r}=e;return`Unexpected token \`${t}\`. Did you mean \`${r}\` 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 r=this.importsStack.length;if(this.importsStack[r-1].has(e))return!0;if(!t&&r>1)for(let t=0;t<r-1;t++)if(this.importsStack[t].has(e))return!0;return!1}declareName(e,t,r){if(4096&t)return this.hasImport(e,!0)&&this.parser.raise(b.VarRedeclaration,r,{identifierName:e}),void this.importsStack[this.importsStack.length-1].add(e);const n=this.currentScope();let o=n.tsNames.get(e)||0;if(1024&t)return this.maybeExportDefined(n,e),void n.tsNames.set(e,16|o);super.declareName(e,t,r),2&t&&(1&t||(this.checkRedeclarationInScope(n,e,t,r),this.maybeExportDefined(n,e)),o|=1),256&t&&(o|=2),512&t&&(o|=4),128&t&&(o|=8),o&&n.tsNames.set(e,o)}isRedeclaredInScope(e,t,r){const n=e.tsNames.get(t);return(2&n)>0?!(256&r)||!!(512&r)!=(4&n)>0:128&r&&(8&n)>0?!!(2&e.names.get(t))&&!!(1&r):!!(2&r&&(1&n)>0)||super.isRedeclaredInScope(e,t,r)}checkLocalExport(e){const{name:t}=e;if(!this.hasImport(t)){for(let e=this.scopeStack.length-1;e>=0;e--){const r=this.scopeStack[e].tsNames.get(t);if((1&r)>0||(16&r)>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 r,n;let o;switch(("ParenthesizedExpression"===e.type||null!=(r=e.extra)&&r.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 r=0,n=e.properties.length,o=n-1;r<n;r++){var i;const n=e.properties[r],s=r===o;this.toAssignableObjectExpressionProp(n,s,t),s&&"RestElement"===n.type&&null!=(i=e.extra)&&i.trailingCommaLoc&&this.raise(b.RestTrailingComma,e.extra.trailingCommaLoc)}break;case"ObjectProperty":{const{key:r,value:n}=e;this.isPrivateName(r)&&this.classScope.usePrivateName(this.getPrivateNameSV(r),r.loc.start),this.toAssignable(n,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==(n=e.extra)?void 0:n.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,r){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 n=e.argument;this.checkToRestConversion(n,!1),this.toAssignable(n,r),t||this.raise(b.RestTrailingComma,e)}else this.toAssignable(e,r)}toAssignableList(e,t,r){const n=e.length-1;for(let o=0;o<=n;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,r)}else this.toAssignable(i,r);"RestElement"===i.type&&(o<n?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,r)=>"ObjectMethod"!==e.type&&(r===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,r){const n=1&r,o=[];let i=!0;for(;!this.eat(e);)if(i?i=!1:this.expect(12),n&&this.match(12))o.push(null);else{if(this.eat(e))break;if(this.match(21)){if(o.push(this.parseAssignableListItemTypes(this.parseRestBinding(),r)),!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(r,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:r}=this.state;return 21===t?this.parseBindingRestProperty(e):(138===t?(this.expectPlugin("destructuringPrivate",r),this.classScope.usePrivateName(this.state.value,r),e.key=this.parsePrivateName()):this.parsePropertyName(e),e.method=!1,this.parseObjPropValue(e,r,!1,!1,!0,!1))}parseAssignableListItem(e,t){const r=this.parseMaybeDefault();this.parseAssignableListItemTypes(r,e);const n=this.parseMaybeDefault(r.loc.start,r);return t.length&&(r.decorators=t),n}parseAssignableListItemTypes(e,t){return e}parseMaybeDefault(e,t){var r;if(null!=e||(e=this.state.startLoc),t=null!=(r=t)?r:this.parseBindingAtom(),!this.eat(29))return t;const n=this.startNodeAt(e);return n.left=t,n.right=this.parseMaybeAssignAllowIn(),this.finishNode(n,"AssignmentPattern")}isValidLVal(e,t,r){return n={AssignmentPattern:"left",RestElement:"argument",ObjectProperty:"value",ParenthesizedExpression:"expression",ArrayPattern:"elements",ObjectPattern:"properties"},o=e,Object.hasOwnProperty.call(n,o)&&n[o];var n,o}isOptionalMemberExpression(e){return"OptionalMemberExpression"===e.type}checkLVal(e,t){let{in:r,binding:n=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"!==r.type&&this.raise(b.InvalidLhsOptionalChaining,e,{ancestor:r})),void(64!==n&&this.raise(b.InvalidPropertyBindingPattern,e));if("Identifier"===l){this.checkIdentifier(e,n,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"===r.type,n);if(!0===u)return;if(!1===u){const t=64===n?b.InvalidLhs:b.InvalidLhsBinding;return void this.raise(t,e,{ancestor:r})}const[p,d]=Array.isArray(u)?u:[u,"ParenthesizedExpression"===l],f="ArrayPattern"===l||"ObjectPattern"===l?{type:l}:r;for(const t of[].concat(e[p]))t&&this.checkLVal(t,{in:f,binding:n,checkClashes:o,strictModeChanged:i,hasParenthesizedAncestor:d})}checkIdentifier(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.state.strict&&(r?me(e.name,this.inModule):he(e.name))&&(64===t?this.raise(b.StrictEvalArguments,e,{referenceName:e.name}):this.raise(b.StrictEvalArgumentsBinding,e,{bindingName:e.name})),8192&t&&"let"===e.name&&this.raise(b.LetInLexicalBinding,e),64&t||this.declareNameFromIdentifier(e,t)}declareNameFromIdentifier(e,t){this.scope.declareName(e.name,t,e.loc.start)}checkToRestConversion(e,t){switch(e.type){case"ParenthesizedExpression":this.checkToRestConversion(e.expression,t);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(t)break;default:this.raise(b.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){return!!this.match(12)&&(this.raise(this.lookaheadCharCode()===e?b.RestTrailingComma:b.ElementAfterRest,this.state.startLoc),!0)}}function _t(e){if(!e)throw new Error("Assert fail")}const Et=v`typescript`({AbstractMethodHasImplementation:e=>{let{methodName:t}=e;return`Method '${t}' cannot have an implementation because it is marked abstract.`},AbstractPropertyHasInitializer:e=>{let{propertyName:t}=e;return`Property '${t}' cannot have an initializer because it is marked abstract.`},AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:e=>{let{kind:t}=e;return`'declare' is not allowed in ${t}ters.`},DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:e=>{let{modifier:t}=e;return"Accessibility modifier already seen."},DuplicateModifier:e=>{let{modifier:t}=e;return`Duplicate modifier: '${t}'.`},EmptyHeritageClauseType:e=>{let{token:t}=e;return`'${t}' list cannot be empty.`},EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:e=>{let{modifiers:t}=e;return`'${t[0]}' modifier cannot be used with '${t[1]}' modifier.`},IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:e=>{let{modifier:t}=e;return`Index signatures cannot have an accessibility modifier ('${t}').`},IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:e=>{let{modifier:t}=e;return`'${t}' modifier cannot appear on a type member.`},InvalidModifierOnTypeParameter:e=>{let{modifier:t}=e;return`'${t}' modifier cannot appear on a type parameter.`},InvalidModifierOnTypeParameterPositions:e=>{let{modifier:t}=e;return`'${t}' modifier can only appear on a type parameter of a class, interface or type alias.`},InvalidModifiersOrder:e=>{let{orderedModifiers:t}=e;return`'${t[0]}' modifier must precede '${t[1]}' modifier.`},InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:e=>{let{modifier:t}=e;return`Private elements cannot have an accessibility modifier ('${t}').`},ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:e=>{let{typeParameterName:t}=e;return`Single type parameter ${t} should have a trailing comma. Example usage: <${t},>.`},StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:e=>{let{type:t}=e;return`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${t}.`}});function xt(e){return"private"===e||"public"===e||"protected"===e}function St(e){return"in"===e||"out"===e}function wt(e){if("MemberExpression"!==e.type)return!1;const{computed:t,property:r}=e;return(!t||"StringLiteral"===r.type||!("TemplateLiteral"!==r.type||r.expressions.length>0))&&Pt(e.object)}function At(e,t){var r;const{type:n}=e;if(null!=(r=e.extra)&&r.parenthesized)return!1;if(t){if("Literal"===n){const{value:t}=e;if("string"==typeof t||"boolean"==typeof t)return!0}}else if("StringLiteral"===n||"BooleanLiteral"===n)return!0;return!(!Tt(e,t)&&!function(e,t){if("UnaryExpression"===e.type){const{operator:r,argument:n}=e;if("-"===r&&Tt(n,t))return!0}return!1}(e,t))||"TemplateLiteral"===n&&0===e.expressions.length||!!wt(e)}function Tt(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 Ct=v`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."});function Ot(e,t){const[r,n]="string"==typeof t?[t,{}]:t,o=Object.keys(n),i=0===o.length;return e.some((e=>{if("string"==typeof e)return i&&e===r;{const[t,i]=e;if(t!==r)return!1;for(const e of o)if(i[e]!==n[e])return!1;return!0}}))}function It(e,t,r){const n=e.find((e=>Array.isArray(e)?e[0]===t:e===t));return n&&Array.isArray(n)&&n.length>1?n[1][r]:null}const kt=["minimal","fsharp","hack","smart"],Dt=["^^","@@","^","%","#"],Mt=["hash","bar"],jt={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:r}=e,n=null;try{n=new RegExp(t,r)}catch(e){}const o=this.estreeParseLiteral(n);return o.regex={pattern:t,flags:r},o}parseBigIntLiteral(e){let t;try{t=BigInt(e)}catch(e){t=null}const r=this.estreeParseLiteral(t);return r.bigint=String(r.value||e),r}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 r=e;return r.type="ExpressionStatement",r.expression=t,r.directive=t.extra.rawValue,delete t.extra,r}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,r,n,o){super.parseBlockBody(e,t,r,n,o);const i=e.directives.map((e=>this.directiveToStmt(e)));e.body=i.concat(e.body),delete e.directives}pushClassMethod(e,t,r,n,o,i){this.parseMethod(t,r,n,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 r=super.parseLiteral(e,t);return r.raw=r.extra.raw,delete r.extra,r}parseFunctionBody(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];super.parseFunctionBody(e,t,r),e.expression="BlockStatement"!==e.body.type}parseMethod(e,t,r,n,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,r,n,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,r,n,o){const i=super.parseObjectMethod(e,t,r,n,o);return i&&(i.type="Property","method"===i.kind&&(i.kind="init"),i.shorthand=!1),i}parseObjectProperty(e,t,r,n){const o=super.parseObjectProperty(e,t,r,n);return o&&(o.kind="init",o.type="Property"),o}isValidLVal(e,t,r){return"Property"===e?"value":super.isValidLVal(e,t,r)}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:r,value:n}=e;this.isPrivateName(r)&&this.classScope.usePrivateName(this.getPrivateNameSV(r),r.loc.start),this.toAssignable(n,t)}else super.toAssignable(e,t)}toAssignableObjectExpressionProp(e,t,r){"get"===e.kind||"set"===e.kind?this.raise(b.PatternHasAccessor,e.key):e.method?this.raise(b.PatternHasMethod,e.key):super.toAssignableObjectExpressionProp(e,t,r)}finishCallExpression(e,t){const r=super.finishCallExpression(e,t);var n,o;return"Import"===r.callee.type&&(r.type="ImportExpression",r.source=r.arguments[0],(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))&&(r.options=null!=(n=r.arguments[1])?n:null,r.attributes=null!=(o=r.arguments[1])?o:null),delete r.arguments,delete r.callee),r}toReferencedArguments(e){"ImportExpression"!==e.type&&super.toReferencedArguments(e)}parseExport(e,t){const r=this.state.lastTokStartLoc,n=super.parseExport(e,t);switch(n.type){case"ExportAllDeclaration":n.exported=null;break;case"ExportNamedDeclaration":1===n.specifiers.length&&"ExportNamespaceSpecifier"===n.specifiers[0].type&&(n.type="ExportAllDeclaration",n.exported=n.specifiers[0].exported,delete n.specifiers);case"ExportDefaultDeclaration":{var o;const{declaration:e}=n;"ClassDeclaration"===(null==e?void 0:e.type)&&(null==(o=e.decorators)?void 0:o.length)>0&&e.start===n.start&&this.resetStartLocation(n,r)}}return n}parseSubscript(e,t,r,n){const o=super.parseSubscript(e,t,r,n);if(n.optionalChainMember){if("OptionalMemberExpression"!==o.type&&"OptionalCallExpression"!==o.type||(o.type=o.type.substring(8)),n.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,r){return x(super.finishNodeAt(e,t,r))}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(ft.UnterminatedJsxContent,this.state.startLoc);const r=this.input.charCodeAt(this.state.pos);switch(r){case 60:case 123:return this.state.pos===this.state.start?void(60===r&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(142)):super.getTokenFromCode(r)):(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:Ce(r)?(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 r;return++this.state.pos,13===t&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,r=e?"\n":"\r\n"):r=String.fromCharCode(t),++this.state.curLine,this.state.lineStart=this.state.pos,r}jsxReadString(e){let t="",r=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(b.UnterminatedString,this.state.startLoc);const n=this.input.charCodeAt(this.state.pos);if(n===e)break;38===n?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadEntity(),r=this.state.pos):Ce(n)?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadNewLine(!1),r=this.state.pos):++this.state.pos}t+=this.input.slice(r,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,r=!1;for(;t++<10&&this.state.pos<this.length&&!(r=59==this.codePointAtPos(this.state.pos));)++this.state.pos;if(r){const t=this.input.slice(e,this.state.pos),r=dt[t];if(++this.state.pos,r)return r}}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 r=this.startNodeAt(e);return r.namespace=t,r.name=this.jsxParseIdentifier(),this.finishNode(r,"JSXNamespacedName")}jsxParseElementName(){const e=this.state.startLoc;let t=this.jsxParseNamespacedName();if("JSXNamespacedName"===t.type)return t;for(;this.eat(16);){const r=this.startNodeAt(e);r.object=t,r.property=this.jsxParseIdentifier(),t=this.finishNode(r,"JSXMemberExpression")}return t}jsxParseAttributeValue(){let e;switch(this.state.type){case 5:return e=this.startNode(),this.setContext(w.brace),this.next(),e=this.jsxParseExpressionContainer(e,w.j_oTag),"JSXEmptyExpression"===e.expression.type&&this.raise(ft.AttributeIsEmpty,e),e;case 142:case 133:return this.parseExprAtom();default:throw this.raise(ft.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){const e=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(e){return this.next(),e.expression=this.parseExpression(),this.setContext(w.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadChild")}jsxParseExpressionContainer(e,t){if(this.match(8))e.expression=this.jsxParseEmptyExpression();else{const t=this.parseExpression();e.expression=t}return this.setContext(t),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXExpressionContainer")}jsxParseAttribute(){const e=this.startNode();return this.match(5)?(this.setContext(w.brace),this.next(),this.expect(21),e.argument=this.parseMaybeAssignAllowIn(),this.setContext(w.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsxParseNamespacedName(),e.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(e,"JSXAttribute"))}jsxParseOpeningElementAt(e){const t=this.startNodeAt(e);return this.eat(143)?this.finishNode(t,"JSXOpeningFragment"):(t.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(t))}jsxParseOpeningElementAfterName(e){const t=[];for(;!this.match(56)&&!this.match(143);)t.push(this.jsxParseAttribute());return e.attributes=t,e.selfClosing=this.eat(56),this.expect(143),this.finishNode(e,"JSXOpeningElement")}jsxParseClosingElementAt(e){const t=this.startNodeAt(e);return this.eat(143)?this.finishNode(t,"JSXClosingFragment"):(t.name=this.jsxParseElementName(),this.expect(143),this.finishNode(t,"JSXClosingElement"))}jsxParseElementAt(e){const t=this.startNodeAt(e),r=[],n=this.jsxParseOpeningElementAt(e);let o=null;if(!n.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}r.push(this.jsxParseElementAt(e));break;case 141:r.push(this.parseExprAtom());break;case 5:{const e=this.startNode();this.setContext(w.brace),this.next(),this.match(21)?r.push(this.jsxParseSpreadChild(e)):r.push(this.jsxParseExpressionContainer(e,w.j_expr));break}default:this.unexpected()}ht(n)&&!ht(o)&&null!==o?this.raise(ft.MissingClosingTagFragment,o):!ht(n)&&ht(o)?this.raise(ft.MissingClosingTagElement,o,{openingTagName:mt(n.name)}):ht(n)||ht(o)||mt(o.name)!==mt(n.name)&&this.raise(ft.MissingClosingTagElement,o,{openingTagName:mt(n.name)})}if(ht(n)?(t.openingFragment=n,t.closingFragment=o):(t.openingElement=n,t.closingElement=o),t.children=r,this.match(47))throw this.raise(ft.UnwrappedAdjacentJSXElements,this.state.startLoc);return ht(n)?this.finishNode(t,"JSXFragment"):this.finishNode(t,"JSXElement")}jsxParseElement(){const e=this.state.startLoc;return this.next(),this.jsxParseElementAt(e)}setContext(e){const{context:t}=this.state;t[t.length-1]=e}parseExprAtom(e){return this.match(141)?this.parseLiteral(this.state.value,"JSXText"):this.match(142)?this.jsxParseElement():this.match(47)&&33!==this.input.charCodeAt(this.state.pos)?(this.replaceToken(142),this.jsxParseElement()):super.parseExprAtom(e)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(e){const t=this.curContext();if(t!==w.j_expr){if(t===w.j_oTag||t===w.j_cTag){if(ae(e))return void this.jsxReadWord();if(62===e)return++this.state.pos,void this.finishToken(143);if((34===e||39===e)&&t===w.j_oTag)return void this.jsxReadString(e)}if(60===e&&this.state.canStartJSXElement&&33!==this.input.charCodeAt(this.state.pos+1))return++this.state.pos,void this.finishToken(142);super.getTokenFromCode(e)}else this.jsxReadToken()}updateContext(e){const{context:t,type:r}=this.state;if(56===r&&142===e)t.splice(-2,2,w.j_cTag),this.state.canStartJSXElement=!1;else if(142===r)t.push(w.j_oTag);else if(143===r){const r=t[t.length-1];r===w.j_oTag&&56===e||r===w.j_cTag?(t.pop(),this.state.canStartJSXElement=t[t.length-1]===w.j_expr):(this.setContext(w.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=B[r]}},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 r=this.flowParseType();return this.state.inType=t,r}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,r=null;return this.match(54)?(this.state.inType=e,r=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(54)&&(r=this.flowParsePredicate())),[t,r]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}flowParseDeclareFunction(e){this.next();const t=e.id=this.parseIdentifier(),r=this.startNode(),n=this.startNode();this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,this.expect(10);const o=this.flowParseFunctionTypeParams();return r.params=o.params,r.rest=o.rest,r.this=o._this,this.expect(11),[r.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),n.typeAnnotation=this.finishNode(r,"FunctionTypeAnnotation"),t.typeAnnotation=this.finishNode(n,"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(),r=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)),r.push(e)}this.scope.exit(),this.expect(8),this.finishNode(t,"BlockStatement");let n=null,o=!1;return r.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"===n&&this.raise(lt.AmbiguousDeclareModuleKind,e),n="CommonJS",o=!0):("CommonJS"===n&&this.raise(lt.AmbiguousDeclareModuleKind,e),n="ES")})),e.kind=n||"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,r){at.has(e)&&this.raise(r?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,r=this.startNode(),n=this.flowParseVariance(),o=this.flowParseTypeAnnotatableIdentifier();return r.name=o.name,r.variance=n,r.bound=o.typeAnnotation,this.match(29)?(this.eat(29),r.default=this.flowParseType()):e&&this.raise(lt.MissingTypeParamDefault,t),this.finishNode(r,"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 r=!1;do{const e=this.flowParseTypeParameter(r);t.params.push(e),e.default&&(r=!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 r=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=r,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,r){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=r,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 r=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(r),this.finishNode(e,"ObjectTypeCallProperty")}flowParseObjectType(e){let{allowStatic:t,allowExact:r,allowSpread:n,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(r&&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,r=null,s=null;const l=this.startNode();if(o&&this.isContextual(118)){const e=this.lookahead();14!==e.type&&17!==e.type&&(this.next(),r=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!=r&&this.unexpected(r),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!=r&&this.unexpected(r),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,r,p,t,n,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),n&&(a.inexact=u);const p=this.finishNode(a,"ObjectTypeAnnotation");return this.state.inType=s,p}flowParseObjectTypeProperty(e,t,r,n,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),n&&this.raise(lt.InexactVariance,n),null):(i||this.raise(lt.UnexpectedSpreadType,this.state.lastTokStartLoc),null!=r&&this.unexpected(r),n&&this.raise(lt.SpreadVariance,n),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"));{e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=null!=r,e.kind=o;let s=!1;return this.match(47)||this.match(10)?(e.method=!0,null!=r&&this.unexpected(r),n&&this.unexpected(n.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=n),e.optional=s,this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){const t="get"===e.kind?0:1,r=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise("get"===e.kind?lt.GetterMayNotHaveThisParam:lt.SetterMayNotHaveThisParam,e.value.this),r!==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 r=t||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){const t=this.startNodeAt(e);t.qualification=r,t.id=this.flowParseRestrictedIdentifier(!0),r=this.finishNode(t,"QualifiedTypeIdentifier")}return r}flowParseGenericType(e,t){const r=this.startNodeAt(e);return r.typeParameters=null,r.id=this.flowParseQualifiedTypeIdentifier(e,t),this.match(47)&&(r.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(r,"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,r=!1,n=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)&&(r=!0,s&&this.raise(lt.ThisParamMayNotBeOptional,o)),n=this.flowParseTypeInitialiser()):n=this.flowParseType(),o.name=t,o.optional=r,o.typeAnnotation=n,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,r=null;for(this.match(78)&&(r=this.flowParseFunctionTypeParam(!0),r.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:r}}flowIdentToTypeAnnotation(e,t,r){switch(r.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(r.name),this.flowParseGenericType(e,r)}}flowParsePrimaryType(){const e=this.state.startLoc,t=this.startNode();let r,n,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,n=this.flowParseTupleType(),this.state.noAnonFunctionType=i,n;case 47:return t.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),r=this.flowParseFunctionTypeParams(),t.params=r.params,t.rest=r.rest,t.this=r._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(K(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,n=this.flowParseType(),this.state.noAnonFunctionType=i,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&19===this.lookahead().type))return this.expect(11),n;this.eat(12)}return r=n?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(n)]):this.flowParseFunctionTypeParams(),t.params=r.params,t.rest=r.rest,t.this=r._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(K(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(),r=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){const n=this.startNodeAt(e),o=this.eat(18);r=r||o,this.expect(0),!o&&this.match(3)?(n.elementType=t,this.next(),t=this.finishNode(n,"ArrayTypeAnnotation")):(n.objectType=t,n.indexType=this.flowParseType(),this.expect(3),r?(n.optional=o,t=this.finishNode(n,"OptionalIndexedAccessType")):t=this.finishNode(n,"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 r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t?this.forwardNoArrowParamsConversionAt(e,(()=>super.parseFunctionBody(e,!0,r))):super.parseFunctionBody(e,!1,r)}parseFunctionBodyAndFinish(e,t){let r=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,r)}parseStatementLike(e){if(this.state.strict&&this.isContextual(129)){if(q(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,r){if("Identifier"===t.type)if("declare"===t.name){if(this.match(80)||K(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if(K(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,r)}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,r){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(r),e}this.expect(17);const n=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=n,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,n.startLoc),a&&1===l.length&&(this.state=n,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 r=[e],n=[];for(;0!==r.length;){const e=r.pop();"ArrowFunctionExpression"===e.type?(e.typeParameters||!e.returnType?this.finishArrowValidation(e):n.push(e),r.push(e.body)):"ConditionalExpression"===e.type&&(r.push(e.consequent),r.push(e.alternate))}return t?(n.forEach((e=>this.finishArrowValidation(e))),[n,[]]):function(e,t){const r=[],n=[];for(let o=0;o<e.length;o++)(t(e[o])?r:n).push(e[o]);return[r,n]}(n,(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 r;return-1!==this.state.noArrowParamsConversionAt.indexOf(e.start)?(this.state.noArrowParamsConversionAt.push(this.state.start),r=t(),this.state.noArrowParamsConversionAt.pop()):r=t(),r}parseParenItem(e,t){if(e=super.parseParenItem(e,t),this.eat(17)&&(e.optional=!0,this.resetEndLocation(e)),this.match(14)){const r=this.startNodeAt(t);return r.expression=e,r.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(r,"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,r=super.maybeParseExportNamespaceSpecifier(e);return r&&"type"===e.exportKind&&this.unexpected(t),r}parseClassId(e,t,r){super.parseClassId(e,t,r),this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,t,r){const{startLoc:n}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(e,t))return;t.declare=!0}super.parseClassMember(e,t,r),t.declare&&("ClassProperty"!==t.type&&"ClassPrivateProperty"!==t.type&&"PropertyDefinition"!==t.type?this.raise(lt.DeclareClassElement,n):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,r){return 64===e&&64===t&&ae(r)}(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,r){for(let t=0;t<e.length;t++){const r=e[t];"TypeCastExpression"===(null==r?void 0:r.type)&&(e[t]=this.typeCastToParameter(r))}super.toAssignableList(e,t,r)}toReferencedList(e,t){for(let n=0;n<e.length;n++){var r;const o=e[n];!o||"TypeCastExpression"!==o.type||null!=(r=o.extra)&&r.parenthesized||!(e.length>1)&&t||this.raise(lt.TypeCastInPattern,o.typeAnnotation)}return e}parseArrayLike(e,t,r,n){const o=super.parseArrayLike(e,t,r,n);return t&&!this.state.maybeInArrowParameters&&this.toReferencedList(o.elements),o}isValidLVal(e,t,r){return"TypeCastExpression"===e||super.isValidLVal(e,t,r)}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,r,n,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,r,n,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,r,n){t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,t,r,n)}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 r=t[0];this.isThisParam(r)&&"get"===e.kind?this.raise(lt.GetterMayNotHaveThisParam,r):this.isThisParam(r)&&this.raise(lt.SetterMayNotHaveThisParam,r)}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,t,r,n,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,r,n,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 r=super.parseMaybeDefault(e,t);return"AssignmentPattern"===r.type&&r.typeAnnotation&&r.right.start<r.typeAnnotation.start&&this.raise(lt.TypeBeforeInitializer,r.typeAnnotation),r}checkImportReflection(e){super.checkImportReflection(e),e.module&&"value"!==e.importKind&&this.raise(lt.ImportReflectionHasImportType,e.specifiers[0].loc.start)}parseImportSpecifierLocal(e,t,r){t.local=ct(e)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,r))}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,r,n){if(super.applyImportPhase(e,t,r,n),t){if(!r&&this.match(65))return;e.exportKind="type"===r?r:"value"}else"type"===r&&this.match(55)&&this.unexpected(),e.importKind="type"===r||"typeof"===r?r:"value"}parseImportSpecifier(e,t,r,n,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||q(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&&q(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 r&&l&&this.raise(lt.ImportTypeShorthandOnlyInPureImport,e),(r||l)&&this.checkReservedType(e.local.name,e.local.loc.start,!0),!a||r||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 r=e.kind;"get"!==r&&"set"!==r&&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 r;let n,o=null;if(this.hasPlugin("jsx")&&(this.match(142)||this.match(47))){if(o=this.state.clone(),n=this.tryParse((()=>super.parseMaybeAssign(e,t)),o),!n.error)return n.node;const{context:r}=this.state,i=r[r.length-1];i!==w.j_oTag&&i!==w.j_expr||r.pop()}if(null!=(r=n)&&r.error||this.match(47)){var i,s;let r;o=o||this.state.clone();const a=this.tryParse((n=>{var o;r=this.flowParseTypeParameterDeclaration();const i=this.forwardNoArrowParamsConversionAt(r,(()=>{const n=super.parseMaybeAssign(e,t);return this.resetStartLocationFromNode(n,r),n}));null!=(o=i.extra)&&o.parenthesized&&n();const s=this.maybeUnwrapTypeCastExpression(i);return"ArrowFunctionExpression"!==s.type&&n(),s.typeParameters=r,this.resetStartLocationFromNode(s,r),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,r),a.node;l=a.node}if(null!=(i=n)&&i.node)return this.state=n.failState,n.node;if(l)return this.state=a.failState,l;if(null!=(s=n)&&s.thrown)throw n.error;if(a.thrown)throw a.error;throw this.raise(lt.UnexpectedTokenAfterTypeParameter,r)}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 r=this.startNode();return[r.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=t,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),r}));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,r){let n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!r||-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,r,n)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&-1===this.state.noArrowAt.indexOf(this.state.start))}parseSubscripts(e,t,r){if("Identifier"===e.type&&"async"===e.name&&-1!==this.state.noArrowAt.indexOf(t.index)){this.next();const r=this.startNodeAt(t);r.callee=e,r.arguments=super.parseCallExpressionArguments(11,!1),e=this.finishNode(r,"CallExpression")}else if("Identifier"===e.type&&"async"===e.name&&this.match(47)){const n=this.state.clone(),o=this.tryParse((e=>this.parseAsyncArrowWithTypeParameters(t)||e()),n);if(!o.error&&!o.aborted)return o.node;const i=this.tryParse((()=>super.parseSubscripts(e,t,r)),n);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,r)}parseSubscript(e,t,r,n){if(this.match(18)&&this.isLookaheadToken_lt()){if(n.optionalChainMember=!0,r)return n.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(!r&&this.shouldParseTypes()&&this.match(47)){const r=this.startNodeAt(t);r.callee=e;const o=this.tryParse((()=>(r.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),r.arguments=super.parseCallExpressionArguments(11,!1),n.optionalChainMember&&(r.optional=!1),this.finishCallExpression(r,n.optionalChainMember))));if(o.node)return o.error&&(this.state=o.failState),o.node}return super.parseSubscript(e,t,r,n)}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 r=super.parseTopLevel(e,t);return this.state.hasFlowComment&&this.raise(lt.UnterminatedFlowComment,this.state.curPosition()),r}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 r=this.input.charCodeAt(t+e),n=this.input.charCodeAt(t+e+1);return 58===r&&58===n?t+2:"flow-include"===this.input.slice(t+e,t+e+12)?t+12:58===r&&58!==n&&t}hasFlowCommentCompletion(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(b.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(e,t){let{enumName:r,memberName:n}=t;this.raise(lt.EnumBooleanMemberNotInitialized,e,{memberName:n,enumName:r})}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 r=this.parseNumericLiteral(this.state.value);return t()?{type:"number",loc:r.loc.start,value:r}:{type:"invalid",loc:e}}case 133:{const r=this.parseStringLiteral(this.state.value);return t()?{type:"string",loc:r.loc.start,value:r}:{type:"invalid",loc:e}}case 85:case 86:{const r=this.parseBooleanLiteral(this.match(85));return t()?{type:"boolean",loc:r.loc.start,value:r}:{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,r){const{explicitType:n}=t;null!==n&&n!==r&&this.flowEnumErrorInvalidMemberInitializer(e,t)}flowEnumMembers(e){let{enumName:t,explicitType:r}=e;const n=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}),n.has(l)&&this.raise(lt.EnumDuplicateMemberName,s,{memberName:l,enumName:t}),n.add(l);const c={enumName:t,explicitType:r,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(r){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,r){let{enumName:n}=r;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:n});return t}for(const e of t)this.flowEnumErrorStringMemberInconsistentlyInitialized(e,{enumName:n});return e}flowEnumParseExplicitType(e){let{enumName:t}=e;if(!this.eatContextual(102))return null;if(!K(this.state.type))throw this.raise(lt.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:t});const{value:r}=this.state;return this.next(),"boolean"!==r&&"number"!==r&&"string"!==r&&"symbol"!==r&&this.raise(lt.EnumInvalidExplicitType,this.state.startLoc,{enumName:t,invalidEnumType:r}),r}flowEnumBody(e,t){const r=t.name,n=t.loc.start,o=this.flowEnumParseExplicitType({enumName:r});this.expect(5);const{members:i,hasUnknownMembers:s}=this.flowEnumMembers({enumName:r,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:r}),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:r,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:r,memberName:e.id.name});return e.members=i.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody")}return this.raise(lt.EnumInconsistentMemberValues,n,{enumName:r}),t()}return e.members=this.flowEnumStringMembers(i.stringMembers,i.defaultedMembers,{enumName:r}),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 K(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(!K(this.state.type)&&58!==this.state.type&&75!==this.state.type)return;const r=this.state.value;if(-1!==e.indexOf(r)){if(t&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return r}}tsParseModifiers(e,t){let{allowedModifiers:r,disallowedModifiers:n,stopOnStartOfClassStaticBlock:o,errorTemplate:i=Et.InvalidModifierOnTypeMember}=e;const s=(e,r,n,o)=>{r===n&&t[o]&&this.raise(Et.InvalidModifiersOrder,e,{orderedModifiers:[n,o]})},a=(e,r,n,o)=>{(t[n]&&r===o||t[o]&&r===n)&&this.raise(Et.IncompatibleModifiers,e,{modifiers:[n,o]})};for(;;){const{startLoc:e}=this.state,l=this.tsParseModifier(r.concat(null!=n?n:[]),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):St(l)?(t[l]&&this.raise(Et.DuplicateModifier,e,{modifier:l}),t[l]=!0,s(e,l,"in","out")):(Object.hasOwnProperty.call(t,l)?this.raise(Et.DuplicateModifier,e,{modifier:l}):(s(e,l,"static","readonly"),s(e,l,"static","override"),s(e,l,"override","readonly"),s(e,l,"abstract","override"),a(e,l,"declare","override"),a(e,l,"static","abstract")),t[l]=!0),null!=n&&n.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 r=[];for(;!this.tsIsListTerminator(e);)r.push(t());return r}tsParseDelimitedList(e,t,r){return function(e){if(null==e)throw new Error(`Unexpected ${e} value.`);return e}(this.tsParseDelimitedListWorker(e,t,!0,r))}tsParseDelimitedListWorker(e,t,r,n){const o=[];let i=-1;for(;!this.tsIsListTerminator(e);){i=-1;const n=t();if(null==n)return;if(o.push(n),!this.eat(12)){if(this.tsIsListTerminator(e))break;return void(r&&this.expect(12))}i=this.state.lastTokStartLoc.index}return n&&(n.value=i),o}tsParseBracketedList(e,t,r,n,o){n||(r?this.expect(0):this.expect(47));const i=this.tsParseDelimitedList(e,t,o);return r?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 r=this.startNodeAtNode(t);r.left=t,r.right=this.parseIdentifier(e),t=this.finishNode(r,"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 r={value:-1};return t.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),!1,!0,r),0===t.params.length&&this.raise(Et.EmptyTypeParameters,t),-1!==r.value&&this.addExtra(t,"trailingComma",r.value),this.finishNode(t,"TSTypeParameterDeclaration")}tsFillSignature(e,t){const r=19===e;t.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),t.parameters=this.tsParseBindingListForSignature(),(r||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(),!!K(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 r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,t){this.eat(17)&&(e.optional=!0);const r=e;if(this.match(10)||this.match(47)){t&&this.raise(Et.ReadonlyForMethodSignature,e);const n=r;n.kind&&this.match(47)&&this.raise(Et.AccesorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,n),this.tsParseTypeMemberSemicolon();const o="parameters",i="typeAnnotation";if("get"===n.kind)n[o].length>0&&(this.raise(b.BadGetterArity,this.state.curPosition()),this.isThisParam(n[o][0])&&this.raise(Et.AccesorCannotDeclareThisParameter,this.state.curPosition()));else if("set"===n.kind){if(1!==n[o].length)this.raise(b.BadSetterArity,this.state.curPosition());else{const e=n[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())}n[i]&&this.raise(Et.SetAccesorCannotHaveReturnType,n[i])}else n.kind="method";return this.finishNode(n,"TSMethodSignature")}{const e=r;t&&(e.readonly=!0);const n=this.tsTryParseTypeAnnotation();return n&&(e.typeAnnotation=n),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:r}=e;!t||"TSRestType"===r||"TSOptionalType"===r||"TSNamedTupleMember"===r&&e.optional||this.raise(Et.OptionalTypeBeforeRequired,e),t||(t="TSNamedTupleMember"===r&&e.optional||"TSOptionalType"===r)})),this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){const{startLoc:e}=this.state,t=this.eat(21);let r,n,o,i;const s=q(this.state.type)?this.lookaheadCharCode():null;if(58===s)r=!0,o=!1,n=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()?(r=!0,n=this.createIdentifier(this.startNodeAt(e),t),this.expect(17),this.expect(14),i=this.tsParseType()):(r=!1,i=s,this.expect(17))}else i=this.tsParseType(),o=this.eat(17),r=this.eat(14);if(r){let e;n?(e=this.startNodeAtNode(n),e.optional=o,e.label=n,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 r=this.startNode();return"TSConstructorType"===e&&(r.abstract=!!t,t&&this.next(),this.next()),this.tsInAllowConditionalTypesContext((()=>this.tsFillSignature(19,r))),this.finishNode(r,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(K(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,r){const n=this.startNode(),o=this.eat(r),i=[];do{i.push(t())}while(this.eat(r));return 1!==i.length||o?(n.types=i,this.finishNode(n,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(K(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 r=this.startNode(),n=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(n&&this.match(78)){let e=this.tsParseThisTypeOrThisTypePredicate();return"TSThisType"===e.type?(r.parameterName=e,r.asserts=!0,r.typeAnnotation=null,e=this.finishNode(r,"TSTypePredicate")):(this.resetStartLocationFromNode(e,r),e.asserts=!0),t.typeAnnotation=e,this.finishNode(t,"TSTypeAnnotation")}const o=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!o)return n?(r.parameterName=this.parseIdentifier(),r.asserts=n,r.typeAnnotation=null,t.typeAnnotation=this.finishNode(r,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,t);const i=this.tsParseTypeAnnotation(!1);return r.parameterName=o,r.typeAnnotation=i,r.asserts=n,t.typeAnnotation=this.finishNode(r,"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(),!(!K(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,r=this.tsParseDelimitedList("HeritageClauseElement",(()=>{const e=this.startNode();return e.expression=this.tsParseEntityName(),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSExpressionWithTypeArguments")}));return r.length||this.raise(Et.EmptyHeritageClauseType,t,{token:e}),r}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),K(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 r=this.startNode();return r.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(r,"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,r){e.isExport=r||!1,e.id=t||this.parseIdentifier(),this.checkIdentifier(e.id,4096),this.expect(29);const n=this.tsParseModuleReference();return"type"===e.importKind&&"TSExternalModuleReference"!==n.type&&this.raise(Et.ImportAliasHasImportType,n),e.moduleReference=n,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(),r=e();return this.state=t,r}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(),r=e();if(void 0!==r&&!1!==r)return r;this.state=t}tsTryParseDeclare(e){if(this.isLineTerminator())return;let t,r=this.state.type;return this.isContextual(100)&&(r=74,t="let"),this.tsInAmbientContext((()=>{switch(r){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(K(r))return this.tsParseDeclaration(e,this.state.value,!0,null)}}))}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(e,t,r){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 r=e;return r.global=!0,r.id=t,r.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(r,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,t.name,!1,r)}}tsParseDeclaration(e,t,r,n){switch(t){case"abstract":if(this.tsCheckLineTerminator(r)&&(this.match(80)||K(this.state.type)))return this.tsParseAbstractDeclaration(e,n);break;case"module":if(this.tsCheckLineTerminator(r)){if(this.match(133))return this.tsParseAmbientExternalModuleDeclaration(e);if(K(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(e)}break;case"namespace":if(this.tsCheckLineTerminator(r)&&K(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminator(r)&&K(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 r=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,r?super.parseArrowExpression(r,null,!0):void 0}tsParseTypeArgumentsInExpression(){if(47===this.reScan_lt())return this.tsParseTypeArguments()}tsParseTypeArguments(){const e=this.startNode();return e.params=this.tsInType((()=>this.tsInNoContext((()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))))),0===e.params.length?this.raise(Et.EmptyTypeArguments,e):this.state.inType||this.curContext()!==w.brace||this.reScan_lt_gt(),this.expect(48),this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return(e=this.state.type)>=124&&e<=130;var e}isExportDefaultSpecifier(){return!this.tsIsDeclarationStart()&&super.isExportDefaultSpecifier()}parseAssignableListItem(e,t){const r=this.state.startLoc,n={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},n);const o=n.accessibility,i=n.override,s=n.readonly;4&e||!(o||s||i)||this.raise(Et.UnexpectedParameterModifier,r);const a=this.parseMaybeDefault();this.parseAssignableListItemTypes(a,e);const l=this.parseMaybeDefault(a.loc.start,a);if(o||s||i){const e=this.startNodeAt(r);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,r){super.setArrowFunctionParameters(e,t,r),this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.match(14)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));const n="FunctionDeclaration"===t?"TSDeclareFunction":"ClassMethod"===t||"ClassPrivateMethod"===t?"TSDeclareMethod":void 0;return n&&!this.match(5)&&this.isLineTerminator()?this.finishNode(e,n):"TSDeclareFunction"===n&&this.state.isAmbientContext&&(this.raise(Et.DeclareFunctionHasImplementation,e),e.declare)?super.parseFunctionBodyAndFinish(e,n,r):(this.tsDisallowOptionalPattern(e),super.parseFunctionBodyAndFinish(e,t,r))}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,r,n){const o=super.parseArrayLike(e,t,r,n);return"ArrayExpression"===o.type&&this.tsCheckForInvalidTypeCasts(o.elements),o}parseSubscript(e,t,r,n){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();const r=this.startNodeAt(t);return r.expression=e,this.finishNode(r,"TSNonNullExpression")}let o=!1;if(this.match(18)&&60===this.lookaheadCharCode()){if(r)return n.stop=!0,e;n.optionalChainMember=o=!0,this.next()}if(this.match(47)||this.match(51)){let i;const s=this.tsTryParseAndCatch((()=>{if(!r&&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 r=super.parseTaggedTemplateExpression(e,t,n);return r.typeParameters=s,r}if(!r&&this.eat(10)){const r=this.startNodeAt(t);return r.callee=e,r.arguments=this.parseCallExpressionArguments(11,!1),this.tsCheckForInvalidTypeCasts(r.arguments),r.typeParameters=s,n.optionalChainMember&&(r.optional=o),this.finishCallExpression(r,n.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,r,n)}parseNewCallee(e){var t;super.parseNewCallee(e);const{callee:r}=e;"TSInstantiationExpression"!==r.type||null!=(t=r.extra)&&t.parenthesized||(e.typeParameters=r.typeParameters,e.callee=r.expression)}parseExprOp(e,t,r){let n;if(Y(58)>r&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(n=this.isContextual(120)))){const o=this.startNodeAt(t);return o.expression=e,o.typeAnnotation=this.tsInType((()=>(this.next(),this.match(75)?(n&&this.raise(b.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType()))),this.finishNode(o,n?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(o,t,r)}return super.parseExprOp(e,t,r)}checkReservedWord(e,t,r,n){this.state.isAmbientContext||super.checkReservedWord(e,t,r,n)}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,r,n){super.applyImportPhase(e,t,r,n),t?e.exportKind="type"===r?"type":"value":e.importKind="type"===r||"typeof"===r?r:"value"}parseImport(e){if(this.match(133))return e.importKind="value",super.parseImport(e);let t;if(K(this.state.type)&&61===this.lookaheadCharCode())return e.importKind="value",this.tsParseImportEqualsDeclaration(e);if(this.isContextual(130)){const r=this.parseMaybeImportPhase(e,!1);if(61===this.lookaheadCharCode())return this.tsParseImportEqualsDeclaration(e,r);t=super.parseImportSpecifiersAndAfter(e,r)}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 r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{isAmbientContext:n}=this.state,o=super.parseVarStatement(e,t,r||n);if(!n)return o;for(const{id:e,init:r}of o.declarations)r&&("const"!==t||e.typeAnnotation?this.raise(Et.InitializerNotAllowedInAmbientContext,r):At(r,this.hasPlugin("estree"))||this.raise(Et.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference,r));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,r){const n=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:n,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:Et.InvalidModifierOnTypeParameterPositions},t);const o=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(t,n)&&this.raise(Et.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(e,t)):this.parseClassMemberWithIsStatic(e,t,r,!!t.static)};t.declare?this.tsInAmbientContext(o):o()}parseClassMemberWithIsStatic(e,t,r,n){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&&(r.hadSuperClass||this.raise(Et.OverrideNotInSubClass,t)),super.parseClassMemberWithIsStatic(e,t,r,n)}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,r){return("Identifier"===t.type?this.tsParseExpressionStatement(e,t,r):void 0)||super.parseExpressionStatement(e,t,r)}shouldParseExportDeclaration(){return!!this.tsIsDeclarationStart()||super.shouldParseExportDeclaration()}parseConditional(e,t,r){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(e,t,r);const n=this.tryParse((()=>super.parseConditional(e,t)));return n.node?(n.error&&(this.state=n.failState),n.node):(n.error&&super.setOptionalParametersError(r,n.error),e)}parseParenItem(e,t){if(e=super.parseParenItem(e,t),this.eat(17)&&(e.optional=!0,this.resetEndLocation(e)),this.match(14)){const r=this.startNodeAt(t);return r.expression=e,r.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(r,"TSTypeCastExpression")}return e}parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext((()=>this.parseExportDeclaration(e)));const t=this.state.startLoc,r=this.eatContextual(125);if(r&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(Et.ExpectedAmbientAfterExportDeclare,this.state.startLoc);const n=K(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);return n?(("TSInterfaceDeclaration"===n.type||"TSTypeAliasDeclaration"===n.type||r)&&(e.exportKind="type"),r&&(this.resetStartLocation(n,t),n.declare=!0),n):null}parseClassId(e,t,r,n){if((!t||r)&&this.isContextual(113))return;super.parseClassId(e,t,r,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,r,n,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,r,n,o,i)}pushClassPrivateMethod(e,t,r,n){const o=this.tsTryParseTypeParameters(this.tsParseConstModifier);o&&(t.typeParameters=o),super.pushClassPrivateMethod(e,t,r,n)}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,r,n,o,i,s){const a=this.tsTryParseTypeParameters(this.tsParseConstModifier);return a&&(e.typeParameters=a),super.parseObjPropValue(e,t,r,n,o,i,s)}parseFunctionParams(e,t){const r=this.tsTryParseTypeParameters(this.tsParseConstModifier);r&&(e.typeParameters=r),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),"Identifier"===e.id.type&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(e.definite=!0);const r=this.tsTryParseTypeAnnotation();r&&(e.id.typeAnnotation=r,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){return this.match(14)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,t)}parseMaybeAssign(e,t){var r,n,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:r}=this.state,n=r[r.length-1];n!==w.j_oTag&&n!==w.j_expr||r.pop()}if(!(null!=(r=l)&&r.error||this.match(47)))return super.parseMaybeAssign(e,t);a&&a!==this.state||(a=this.state.clone());const p=this.tryParse((r=>{var n,o;u=this.tsParseTypeParameters(this.tsParseConstModifier);const i=super.parseMaybeAssign(e,t);return("ArrowFunctionExpression"!==i.type||null!=(n=i.extra)&&n.parenthesized)&&r(),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!=(n=l)&&n.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 r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r),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,r){return n={TSTypeCastExpression:!0,TSParameterProperty:"parameter",TSNonNullExpression:"expression",TSAsExpression:(64!==r||!t)&&["expression",!0],TSSatisfiesExpression:(64!==r||!t)&&["expression",!0],TSTypeAssertion:(64!==r||!t)&&["expression",!0]},o=e,Object.hasOwnProperty.call(n,o)&&n[o]||super.isValidLVal(e,t,r);var n,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 r=super.parseMaybeDecoratorArguments(e);return r.typeParameters=t,r}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 r=super.parseMaybeDefault(e,t);return"AssignmentPattern"===r.type&&r.typeAnnotation&&r.right.start<r.typeAnnotation.start&&this.raise(Et.TypeAnnotationAfterAssign,r.typeAnnotation),r}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,r){for(let t=0;t<e.length;t++){const r=e[t];"TSTypeCastExpression"===(null==r?void 0:r.type)&&(e[t]=this.typeCastToParameter(r))}super.toAssignableList(e,t,r)}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),r=this.getObjectOrClassMethodParams(e)[0];return r&&this.isThisParam(r)?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,r){const n=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,t,r)}finally{this.state.inAbstractClass=n}}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,r,n,o,i,s){const a=super.parseMethod(e,t,r,n,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,r,n){return!t&&n?(this.parseTypeOnlyImportExportSpecifier(e,!1,r),this.finishNode(e,"ExportSpecifier")):(e.exportKind="value",super.parseExportSpecifier(e,t,r,n))}parseImportSpecifier(e,t,r,n,o){return!t&&n?(this.parseTypeOnlyImportExportSpecifier(e,!0,r),this.finishNode(e,"ImportSpecifier")):(e.importKind="value",super.parseImportSpecifier(e,t,r,n,r?4098:4096))}parseTypeOnlyImportExportSpecifier(e,t,r){const n=t?"imported":"local",o=t?"local":"exported";let i,s=e[n],a=!1,l=!0;const c=s.loc.start;if(this.isContextual(93)){const e=this.parseIdentifier();if(this.isContextual(93)){const r=this.parseIdentifier();q(this.state.type)?(a=!0,s=e,i=t?this.parseIdentifier():this.parseModuleExportName(),l=!1):(i=r,l=!1)}else q(this.state.type)?(l=!1,i=t?this.parseIdentifier():this.parseModuleExportName()):(a=!0,s=e)}else q(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&&r&&this.raise(t?Et.TypeModifierIsUsedInTypeImports:Et.TypeModifierIsUsedInTypeExports,c),e[n]=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[n])),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(),K(this.state.type)){const e=this.parseIdentifierName(),r=this.createIdentifier(t,e);if(r.type="V8IntrinsicIdentifier",this.match(10))return r}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 r=!(!e.expectedNode||"Placeholder"!==e.type);return e.expectedNode=t,r?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,r,n){void 0!==e&&super.checkReservedWord(e,t,r,n)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(e,t,r){return"Placeholder"===e||super.isValidLVal(e,t,r)}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 r;if("Placeholder"!==t.type||null!=(r=t.extra)&&r.parenthesized)return super.parseExpressionStatement(e,t);if(this.match(14)){const r=e;return r.label=this.finishPlaceholder(t,"Identifier"),this.next(),r.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(r,"LabeledStatement")}return this.semicolon(),e.name=t.name,this.finishPlaceholder(e,"Statement")}parseBlock(e,t,r){return this.parsePlaceholder("BlockStatement")||super.parseBlock(e,t,r)}parseFunctionId(e){return this.parsePlaceholder("Identifier")||super.parseFunctionId(e)}parseClass(e,t,r){const n=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(r||!t)return e.id=null,e.body=this.finishPlaceholder(i,"ClassBody"),this.finishNode(e,n);throw this.raise(Ct.ClassNameIsRequired,this.state.startLoc)}e.id=i}else this.parseClassId(e,t,r);return super.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!e.superClass,o),this.finishNode(e,n)}parseExport(e,t){const r=this.parsePlaceholder("Identifier");if(!r)return super.parseExport(e,t);if(!this.isContextual(98)&&!this.match(12))return e.specifiers=[],e.source=null,e.declaration=this.finishPlaceholder(r,"Declaration"),this.finishNode(e,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");const n=this.startNode();return n.exported=r,e.specifiers=[this.finishNode(n,"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 r;return!(null==(r=e.specifiers)||!r.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 r=this.startNodeAtNode(t);return r.local=t,e.specifiers.push(this.finishNode(r,"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(Ct.UnexpectedSpace,this.state.lastTokEndLoc)}}},Nt=Object.keys(jt),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,r,n){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);r.used&&(n?null===n.doubleProtoLoc&&(n.doubleProtoLoc=o.loc.start):this.raise(b.DuplicateProto,o)),r.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,r=this.parseMaybeAssign(e);if(this.match(12)){const n=this.startNodeAt(t);for(n.expressions=[r];this.eat(12);)n.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(n.expressions),this.finishNode(n,"SequenceExpression")}return r}parseMaybeAssignDisallowIn(e,t){return this.disallowInAnd((()=>this.parseMaybeAssign(e,t)))}parseMaybeAssignAllowIn(e,t){return this.allowInAnd((()=>this.parseMaybeAssign(e,t)))}setOptionalParametersError(e,t){var r;e.optionalParametersLoc=null!=(r=null==t?void 0:t.loc)?r:this.state.startLoc}parseMaybeAssign(e,t){const r=this.state.startLoc;if(this.isContextual(108)&&this.prodParam.hasYield){let e=this.parseYield();return t&&(e=t.call(this,e,r)),e}let n;e?n=!1:(e=new rt,n=!0);const{type:o}=this.state;(10===o||K(o))&&(this.state.potentialArrowAt=this.state.start);let i=this.parseMaybeConditional(e);if(t&&(i=t.call(this,i,r)),(s=this.state.type)>=29&&s<=33){const t=this.startNodeAt(r),n=this.state.value;if(t.operator=n,this.match(29)){this.toAssignable(i,!0),t.left=i;const n=r.index;null!=e.doubleProtoLoc&&e.doubleProtoLoc.index>=n&&(e.doubleProtoLoc=null),null!=e.shorthandAssignLoc&&e.shorthandAssignLoc.index>=n&&(e.shorthandAssignLoc=null),null!=e.privateKeyLoc&&e.privateKeyLoc.index>=n&&(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 n&&this.checkExpressionErrors(e,!0),i}parseMaybeConditional(e){const t=this.state.startLoc,r=this.state.potentialArrowAt,n=this.parseExprOps(e);return this.shouldExitDescending(n,r)?n:this.parseConditional(n,t,e)}parseConditional(e,t,r){if(this.eat(17)){const r=this.startNodeAt(t);return r.test=e,r.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),r.alternate=this.parseMaybeAssign(),this.finishNode(r,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(138)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){const t=this.state.startLoc,r=this.state.potentialArrowAt,n=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(n,r)?n:this.parseExprOp(n,t,-1)}parseExprOp(e,t,r){if(this.isPrivateName(e)){const t=this.getPrivateNameSV(e);(r>=Y(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(b.PrivateInExpectedIn,e,{identifierName:t}),this.classScope.usePrivateName(t,e.loc.start)}const n=this.state.type;if((o=n)>=39&&o<=59&&(this.prodParam.hasIn||!this.match(58))){let o=Y(n);if(o>r){if(39===n){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===n||42===n,a=40===n;if(a&&(o=Y(42)),this.next(),39===n&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&96===this.state.type&&this.prodParam.hasAwait)throw this.raise(b.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);i.right=this.parseExprOpRightExpr(n,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,r)}}var o;return e}parseExprOpRightExpr(e,t){const r=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),r)}));case"fsharp":return this.withSoloAwaitPermittingContext((()=>this.parseFSharpPipelineBody(t)))}return this.parseExprOpBaseRightExpr(e,t)}parseExprOpBaseRightExpr(e,t){const r=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,57===e?t-1:t)}parseHackPipeBody(){var e;const{startLoc:t}=this.state,r=this.parseMaybeAssign();return!d.has(r.type)||null!=(e=r.extra)&&e.parenthesized||this.raise(b.PipeUnparenthesizedBody,t,{type:r.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(b.PipeTopicUnused,t),r}checkExponentialAfterUnary(e){this.match(57)&&this.raise(b.UnexpectedTokenUnaryExponentiation,e.argument)}parseMaybeUnary(e,t){const r=this.state.startLoc,n=this.isContextual(96);if(n&&this.isAwaitAllowed()){this.next();const e=this.parseAwait(r);return t||this.checkExponentialAfterUnary(e),e}const o=this.match(34),i=this.startNode();if(s=this.state.type,U[s]){i.operator=this.state.value,i.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");const r=this.match(89);if(this.next(),i.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&r){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(n){const{type:e}=this.state;if((this.hasPlugin("v8intrinsic")?H(e):H(e)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(b.AwaitNotInAsyncContext,r),this.parseAwait(r)}return a}parseUpdate(e,t,r){if(t){const t=e;return this.checkLVal(t.argument,{in:this.finishNode(t,"UpdateExpression")}),e}const n=this.state.startLoc;let o=this.parseExprSubscripts(r);if(this.checkExpressionErrors(r,!1))return o;for(;34===this.state.type&&!this.canInsertSemicolon();){const e=this.startNodeAt(n);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,r=this.state.potentialArrowAt,n=this.parseExprAtom(e);return this.shouldExitDescending(n,r)?n:this.parseSubscripts(n,t)}parseSubscripts(e,t,r){const n={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do{e=this.parseSubscript(e,t,r,n),n.maybeAsyncArrow=!1}while(!n.stop);return e}parseSubscript(e,t,r,n){const{type:o}=this.state;if(!r&&15===o)return this.parseBind(e,t,r,n);if(J(o))return this.parseTaggedTemplateExpression(e,t,n);let i=!1;if(18===o){if(r&&(this.raise(b.OptionalChainingNoNew,this.state.startLoc),40===this.lookaheadCharCode()))return n.stop=!0,e;n.optionalChainMember=i=!0,this.next()}if(!r&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,t,n,i);{const r=this.eat(0);return r||i||this.eat(16)?this.parseMember(e,t,n,r,i):(n.stop=!0,e)}}parseMember(e,t,r,n,o){const i=this.startNodeAt(t);return i.object=e,i.computed=n,n?(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),r.optionalChainMember?(i.optional=o,this.finishNode(i,"OptionalMemberExpression")):this.finishNode(i,"MemberExpression")}parseBind(e,t,r,n){const o=this.startNodeAt(t);return o.object=e,this.next(),o.callee=this.parseNoCallExpr(),n.stop=!0,this.parseSubscripts(this.finishNode(o,"BindExpression"),t,r)}parseCoverCallAndAsyncArrowHead(e,t,r,n){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}=r;a&&(this.expressionScope.enter(new Xe(2)),i=new rt),l&&(s.optional=n),s.arguments=n?this.parseCallExpressionArguments(11):this.parseCallExpressionArguments(11,"Import"===e.type,"Super"!==e.type,s,i);let c=this.finishCallExpression(s,l);return a&&this.shouldParseAsyncArrow()&&!n?(r.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,r){const n=this.startNodeAt(t);return n.tag=e,n.quasi=this.parseTemplate(!0),r.optionalChainMember&&this.raise(b.OptionalChainingNoTemplate,t),this.finishNode(n,"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,r,n,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),n&&this.addTrailingCommaExtraToNode(n),this.next();break}i.push(this.parseExprListItem(!1,o,r))}return this.state.inFSharpPipelineDirectBody=a,i}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,t){var r;return this.resetPreviousNodeTrailingComments(t),this.expect(19),this.parseArrowExpression(e,t.arguments,!0,null==(r=t.extra)?void 0:r.trailingCommaLoc),t.innerComments&&Se(e,t.innerComments),t.callee.trailingComments&&Se(e,t.callee.trailingComments),e}parseNoCallExpr(){const e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}parseExprAtom(e){let t,r=null;const{type:n}=this.state;switch(n){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:r=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(r,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(K(n)){if(this.isContextual(127)&&123===this.lookaheadInLineCharCode())return this.parseModuleExpression();const e=this.state.potentialArrowAt===this.state.start,t=this.state.containsEsc,r=this.parseIdentifier();if(!t&&"async"===r.name&&!this.canInsertSemicolon()){const{type:e}=this.state;if(68===e)return this.resetPreviousNodeTrailingComments(r),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(r));if(K(e))return 61===this.lookaheadCharCode()?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(r)):r;if(90===e)return this.resetPreviousNodeTrailingComments(r),this.parseDo(this.startNodeAtNode(r),!0)}return e&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(r),[r],!1)):r}this.unexpected()}}parseTopicReferenceThenEqualsSign(e,t){const r=this.getPluginOption("pipelineOperator","proposal");if(r)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(r);this.unexpected()}parseTopicReference(e){const t=this.startNode(),r=this.state.startLoc,n=this.state.type;return this.next(),this.finishTopicReference(t,r,e,n)}finishTopicReference(e,t,r,n){if(this.testTopicReferenceConfiguration(r,t,n)){const n="smart"===r?"PipelinePrimaryTopicReference":"TopicReference";return this.topicReferenceIsAllowedInCurrentContext()||this.raise("smart"===r?b.PrimaryTopicNotAllowed:b.PipeTopicUnbound,t),this.registerTopicReference(),this.finishNode(e,n)}throw this.raise(b.PipeTopicUnconfiguredToken,t,{token:X(n)})}testTopicReferenceConfiguration(e,t,r){switch(e){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:X(r)}]);case"smart":return 27===r;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 r=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=r,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)),r=this.state.value;return this.next(),e.id=this.createIdentifier(t,r),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,r){e.meta=t;const n=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==r||n)&&this.raise(b.UnsupportedMetaProperty,e.property,{target:t.name,onlyValidPropertyName:r}),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,r){return this.addExtra(r,"rawValue",e),this.addExtra(r,"raw",this.input.slice(r.start,this.state.end)),r.value=e,this.next(),this.finishNode(r,t)}parseLiteral(e,t){const r=this.startNode();return this.parseLiteralAtNode(e,t,r)}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 r;this.next(),this.expressionScope.enter(new Xe(1));const n=this.state.maybeInArrowParameters,o=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;const i=this.state.startLoc,s=[],a=new rt;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=n,this.state.inFSharpPipelineDirectBody=o;let d=this.startNodeAt(t);return e&&this.shouldParseArrow(s)&&(d=this.parseArrow(d))?(this.checkDestructuringPrivate(a),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(d,s,!1),d):(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?(r=this.startNodeAt(i),r.expressions=s,this.finishNode(r,"SequenceExpression"),this.resetEndLocation(r,p)):r=s[0],this.wrapParenthesis(t,r))}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 r=this.startNodeAt(e);return r.expression=t,this.finishNode(r,"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 r=this.parseMetaProperty(e,t,"target");return this.scope.inNonArrowFunction||this.scope.inClass||this.options.allowNewTargetOutsideFunction||this.raise(b.UnexpectedNewTarget,r),r}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),r=this.parseNoCallExpr();e.callee=r,!t||"Import"!==r.type&&"ImportExpression"!==r.type||this.raise(b.ImportCallNotNewExpression,r)}parseTemplateElement(e){const{start:t,startLoc:r,end:n,value:o}=this.state,i=t+1,a=this.startNodeAt(s(r,1));null===o&&(e||this.raise(b.InvalidEscapeSequenceTemplate,s(this.state.firstInvalidTemplateEscapePos,1)));const l=this.match(24),c=l?-1:-2,u=n+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 r=this.parseTemplateElement(e);for(t.quasis=[r];!r.tail;)t.expressions.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),t.quasis.push(r=this.parseTemplateElement(e));return this.finishNode(t,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,r,n){r&&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(n),this.checkProto(o,r,i,n)),r&&!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":r&&(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 r=this.startNode();let n,o=!1,i=!1;if(this.match(21))return t.length&&this.unexpected(),this.parseSpread();t.length&&(r.decorators=t,t=[]),r.method=!1,e&&(n=this.state.startLoc);let s=this.eat(55);this.parsePropertyNamePrefixOperator(r);const a=this.state.containsEsc,l=this.parsePropertyName(r,e);if(!s&&!a&&this.maybeAsyncOrAccessorProp(r)){const e=l.name;"async"!==e||this.hasPrecedingLineBreak()||(o=!0,this.resetPreviousNodeTrailingComments(l),s=this.eat(55),this.parsePropertyName(r)),"get"!==e&&"set"!==e||(i=!0,this.resetPreviousNodeTrailingComments(l),r.kind=e,this.match(55)&&(s=!0,this.raise(b.AccessorIsGenerator,this.state.curPosition(),{kind:e}),this.next()),this.parsePropertyName(r))}return this.parseObjPropValue(r,n,s,o,!1,i,e)}getGetterSetterExpectedParamCount(e){return"get"===e.kind?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){var t;const r=this.getGetterSetterExpectedParamCount(e),n=this.getObjectOrClassMethodParams(e);n.length!==r&&this.raise("get"===e.kind?b.BadGetterArity:b.BadSetterArity,e),"set"===e.kind&&"RestElement"===(null==(t=n[n.length-1])?void 0:t.type)&&this.raise(b.BadSetterRestParameter,e)}parseObjectMethod(e,t,r,n,o){if(o){const r=this.parseMethod(e,t,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(r),r}if(r||t||this.match(10))return n&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,r,!1,!1,"ObjectMethod")}parseObjectProperty(e,t,r,n){if(e.shorthand=!1,this.eat(14))return e.value=r?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(n),this.finishNode(e,"ObjectProperty");if(!e.computed&&"Identifier"===e.key.type){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),r)e.value=this.parseMaybeDefault(t,it(e.key));else if(this.match(29)){const r=this.state.startLoc;null!=n?null===n.shorthandAssignLoc&&(n.shorthandAssignLoc=r):this.raise(b.InvalidCoverInitializedName,r),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,r,n,o,i,s){const a=this.parseObjectMethod(e,r,n,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:r,value:n}=this.state;let o;if(q(r))o=this.parseIdentifier(!0);else switch(r){case 134:o=this.parseNumericLiteral(n);break;case 133:o=this.parseStringLiteral(n);break;case 135:o=this.parseBigIntLiteral(n);break;case 136:o=this.parseDecimalLiteral(n);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!==r&&(e.computed=!1)}return e.key}initFunction(e,t){e.id=null,e.generator=!1,e.async=t}parseMethod(e,t,r,n,o,i){let s=arguments.length>6&&void 0!==arguments[6]&&arguments[6];this.initFunction(e,r),e.generator=t,this.scope.enter(18|(s?64:0)|(o?32:0)),this.prodParam.enter(et(r,e.generator)),this.parseFunctionParams(e,n);const a=this.parseFunctionBodyAndFinish(e,i,!0);return this.prodParam.exit(),this.scope.exit(),a}parseArrayLike(e,t,r,n){r&&this.expectPlugin("recordAndTuple");const o=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const i=this.startNode();return this.next(),i.elements=this.parseExprList(e,!r,n,i),this.state.inFSharpPipelineDirectBody=o,this.finishNode(i,r?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,t,r,n){this.scope.enter(6);let o=et(r,!1);!this.match(5)&&this.prodParam.hasIn&&(o|=8),this.prodParam.enter(o),this.initFunction(e,r);const i=this.state.maybeInArrowParameters;return t&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,t,n)),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,r){this.toAssignableList(t,r,!1),e.params=t}parseFunctionBodyAndFinish(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.parseFunctionBody(e,!1,r),this.finishNode(e,t)}parseFunctionBody(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const n=t&&!this.match(5);if(this.expressionScope.enter(Je()),n)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{const n=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=!n&&this.state.strict;this.checkParams(e,!(this.state.strict||t||r||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,r=e.length;t<r;t++)if(!this.isSimpleParameter(e[t]))return!1;return!0}checkParams(e,t,r){let n=!(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:n})}parseExprList(e,t,r,n){const o=[];let i=!0;for(;!this.eat(e);){if(i)i=!1;else if(this.expect(12),this.match(e)){n&&this.addTrailingCommaExtraToNode(n),this.next();break}o.push(this.parseExprListItem(t,r))}return o}parseExprListItem(e,t,r){let n;if(this.match(12))e||this.raise(b.UnexpectedToken,this.state.curPosition(),{unexpected:","}),n=null;else if(this.match(21)){const e=this.state.startLoc;n=this.parseParenItem(this.parseSpread(t),e)}else if(this.match(17)){this.expectPlugin("partialApplication"),r||this.raise(b.UnexpectedArgumentPlaceholder,this.state.startLoc);const e=this.startNode();this.next(),n=this.finishNode(e,"ArgumentPlaceholder")}else n=this.parseMaybeAssignAllowIn(t,this.parseParenItem);return n}parseIdentifier(e){const t=this.startNode(),r=this.parseIdentifierName(e);return this.createIdentifier(t,r)}createIdentifier(e,t){return e.name=t,e.loc.identifierName=t,this.finishNode(e,"Identifier")}parseIdentifierName(e){let t;const{startLoc:r,type:n}=this.state;q(n)?t=this.state.value:this.unexpected();const o=n<=92;return e?o&&this.replaceToken(132):this.checkReservedWord(t,r,o,!1),this.next(),t}checkReservedWord(e,t,r,n){if(!(e.length>10)&&function(e){return ye.has(e)}(e))if(r&&function(e){return ce.has(e)}(e))this.raise(b.UnexpectedKeyword,t,{keyword:e});else if((this.state.strict?n?me:fe:de)(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,r=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:r=this.parseMaybeAssign()}return e.delegate=t,e.argument=r,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 r=this.startNodeAt(t);return r.callee=e,this.finishNode(r,"PipelineBareFunction")}{const r=this.startNodeAt(t);return this.checkSmartPipeTopicBodyEarlyErrors(t),r.expression=e,this.finishNode(r,"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 r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;const n=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,e);return this.state.inFSharpPipelineDirectBody=r,n}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 r=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(t,8,"module")}finally{r()}return this.finishNode(e,"ModuleExpression")}parsePropertyNamePrefixOperator(e){}}const Bt={kind:1},Ft={kind:2},Ut=/[\uD800-\uDFFF]/u,Vt=/in(?:stanceof)?/y;class Wt 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 r=0;r<e.length;r++){const n=e[r],{type:o}=n;if("number"==typeof o){if(138===o){const{loc:t,start:o,value:i,end:a}=n,l=o+1,c=s(t.start,1);e.splice(r,1,new qe({type:Z(27),value:"#",start:o,end:l,startLoc:t.start,endLoc:c}),new qe({type:Z(132),value:i,start:l,end:a,startLoc:c,endLoc:t.end})),r++;continue}if(J(o)){const{loc:i,start:a,value:l,end:c}=n,u=a+1,p=s(i.start,1);let d,f,h,m,y;d=96===t.charCodeAt(a)?new qe({type:Z(22),value:"`",start:a,end:u,startLoc:i.start,endLoc:p}):new qe({type:Z(8),value:"}",start:a,end:u,startLoc:i.start,endLoc:p}),24===o?(h=c-1,m=s(i.end,-1),f=null===l?null:l.slice(1,-1),y=new qe({type:Z(22),value:"`",start:h,end:c,startLoc:m,endLoc:i.end})):(h=c-2,m=s(i.end,-2),f=null===l?null:l.slice(1,-2),y=new qe({type:Z(23),value:"${",start:h,end:c,startLoc:m,endLoc:i.end})),e.splice(r,1,d,new qe({type:Z(20),value:f,start:u,end:h,startLoc:p,endLoc:m}),y),r+=2;continue}n.type=Z(o)}}return e}(this.tokens,this.input)),this.finishNode(e,"File")}parseProgram(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:139,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.options.sourceType;if(e.sourceType=n,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,r),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===r?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 r=t.value,n=r.value,o=this.input.slice(r.start,r.end),i=r.value=o.slice(1,-1);return this.addExtra(r,"raw",o),this.addExtra(r,"rawValue",i),this.addExtra(r,"expressionValue",n),r.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(Vt.lastIndex=t,Vt.test(this.input)){const e=this.codePointAtPos(Vt.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)&&(K(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 r=this.state.type,n=this.startNode(),o=!!(2&e),i=!!(4&e),s=1&e;switch(r){case 60:return this.parseBreakContinueStatement(n,!0);case 63:return this.parseBreakContinueStatement(n,!1);case 64:return this.parseDebuggerStatement(n);case 90:return this.parseDoWhileStatement(n);case 91:return this.parseForStatement(n);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(n,!1,!o&&i);case 80:return o||this.unexpected(),this.parseClass(this.maybeTakeDecorators(t,n),!0);case 69:return this.parseIfStatement(n);case 70:return this.parseReturnStatement(n);case 71:return this.parseSwitchStatement(n);case 72:return this.parseThrowStatement(n);case 73:return this.parseTryStatement(n);case 96:if(!this.state.containsEsc&&this.startsAwaitUsing())return this.isAwaitAllowed()?o||this.raise(b.UnexpectedLexicalDeclaration,n):this.raise(b.AwaitUsingNotInAsyncContext,n),this.next(),this.parseVarStatement(n,"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(n,"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(n,e)}case 92:return this.parseWhileStatement(n);case 76:return this.parseWithStatement(n);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(n);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===r?(e=this.parseImport(n),"ImportDeclaration"!==e.type||e.importKind&&"value"!==e.importKind||(this.sawUnambiguousESM=!0)):(e=this.parseExport(n,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(n,!0,!o&&i)}const a=this.state.value,l=this.parseExpression();return K(r)&&"Identifier"===l.type&&this.eat(14)?this.parseLabeledStatement(n,a,l,e):this.parseExpressionStatement(n,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,r){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]),r&&this.resetStartLocationFromNode(r,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 r;if(this.match(10)){const t=this.state.startLoc;this.next(),r=this.parseExpression(),this.expect(11),r=this.wrapParenthesis(t,r);const n=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(r),!1===this.getPluginOption("decorators","allowCallParenthesized")&&e.expression!==r&&this.raise(b.DecoratorArgumentsOutsideParentheses,n)}else{for(r=this.parseIdentifier(!1);this.eat(16);){const e=this.startNodeAt(t);e.object=r,this.match(138)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),e.property=this.parsePrivateName()):e.property=this.parseIdentifier(!0),e.computed=!1,r=this.finishNode(e,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(r)}}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 r;for(r=0;r<this.state.labels.length;++r){const n=this.state.labels[r];if(null==e.label||n.name===e.label.name){if(null!=n.kind&&(t||1===n.kind))break;if(e.label&&t)break}}if(r===this.state.labels.length){const r=t?"BreakStatement":"ContinueStatement";this.raise(b.IllegalBreakContinue,e,{type:r})}}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 r=this.isContextual(100);{const n=this.isContextual(96)&&this.startsAwaitUsing(),o=n||this.isContextual(107)&&this.startsUsingForOf(),i=r&&this.hasFollowingBindingAtom()||o;if(this.match(74)||this.match(75)||i){const r=this.startNode();let i;n?(i="await using",this.isAwaitAllowed()||this.raise(b.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):i=this.state.value,this.next(),this.parseVar(r,!0,i);const s=this.finishNode(r,"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 n=this.isContextual(95),o=new rt,i=this.parseExpression(!0,o),s=this.isContextual(102);if(s&&(r&&this.raise(b.ForOfLet,i),null===t&&n&&"Identifier"===i.type&&this.raise(b.ForOfAsync,i)),s||this.match(58)){this.checkDestructuringPrivate(o),this.toAssignable(i,!0);const r=s?"ForOfStatement":"ForInStatement";return this.checkLVal(i,{in:{type:r}}),this.parseForIn(e,i,t)}return this.checkExpressionErrors(o,!0),null!==t&&this.unexpected(t),this.parseFor(e,i)}parseFunctionStatement(e,t,r){return this.next(),this.parseFunction(e,1|(r?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 r;this.expect(5),this.state.labels.push(Ft),this.scope.enter(0);for(let e;!this.match(8);)if(this.match(61)||this.match(65)){const n=this.match(61);r&&this.finishNode(r,"SwitchCase"),t.push(r=this.startNode()),r.consequent=[],this.next(),n?r.test=this.parseExpression():(e&&this.raise(b.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),e=!0,r.test=null),this.expect(14)}else r?r.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),r&&this.finishNode(r,"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 r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.next(),this.parseVar(e,!1,t,r),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,r,n){for(const e of this.state.labels)e.name===t&&this.raise(b.LabelRedeclaration,r,{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 r=this.state.labels[t];if(r.statementStart!==e.start)break;r.statementStart=this.state.start,r.kind=o}return this.state.labels.push({name:t,kind:o,statementStart:this.state.start}),e.body=8&n?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,t,r){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],r=arguments.length>2?arguments[2]:void 0;const n=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),t&&this.scope.enter(0),this.parseBlockBody(n,e,!1,8,r),t&&this.scope.exit(),this.finishNode(n,"BlockStatement")}isValidDirective(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized}parseBlockBody(e,t,r,n,o){const i=e.body=[],s=e.directives=[];this.parseBlockOrModuleBlockBody(i,t?s:void 0,r,n,o)}parseBlockOrModuleBlockBody(e,t,r,n,o){const i=this.state.strict;let s=!1,a=!1;for(;!this.match(n);){const n=r?this.parseModuleItem():this.parseStatementListItem();if(t&&!a){if(this.isValidDirective(n)){const e=this.stmtToDirective(n);t.push(e),s||"use strict"!==e.value.value||(s=!0,this.setStrict(!0));continue}a=!0,this.state.strictErrors.clear()}e.push(n)}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,r){const n=this.match(58);return this.next(),n?null!==r&&this.unexpected(r):e.await=null!==r,"VariableDeclaration"!==t.type||null==t.declarations[0].init||n&&this.options.annexB&&!this.state.strict&&"var"===t.kind&&"Identifier"===t.declarations[0].id.type||this.raise(b.ForInOfLoopInitializer,t,{type:n?"ForInStatement":"ForOfStatement"}),"AssignmentPattern"===t.type&&this.raise(b.InvalidLhs,t,{ancestor:{type:"ForStatement"}}),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")}parseVar(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const o=e.declarations=[];for(e.kind=r;;){const e=this.startNode();if(this.parseVarId(e,r),e.init=this.eat(29)?t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,null!==e.init||n||("Identifier"===e.id.type||t&&(this.match(58)||this.isContextual(102))?"const"!==r||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 r=this.parseBindingAtom();this.checkLVal(r,{in:{type:"VariableDeclarator"},binding:"var"===t?5:8201}),e.id=r}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const r=2&t,n=!!(1&t),o=n&&!(4&t),i=!!(8&t);this.initFunction(e,i),this.match(55)&&(r&&this.raise(b.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),n&&(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)),n||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext((()=>{this.parseFunctionBodyAndFinish(e,n?"FunctionDeclaration":"FunctionExpression")})),this.prodParam.exit(),this.scope.exit(),n&&!r&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=s,e}parseFunctionId(e){return e||K(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,r){this.next();const n=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,r),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,n),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 r={hadConstructor:!1,hadSuperClass:e};let n=[];const o=this.startNode();if(o.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext((()=>{for(;!this.match(8);){if(this.eat(13)){if(n.length>0)throw this.raise(b.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){n.push(this.parseDecorator());continue}const e=this.startNode();n.length&&(e.decorators=n,this.resetStartLocationFromNode(e,n[0]),n=[]),this.parseClassMember(o,e,r),"constructor"===e.kind&&e.decorators&&e.decorators.length>0&&this.raise(b.DecoratorConstructor,e)}})),this.state.strict=t,this.next(),n.length)throw this.raise(b.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(o,"ClassBody")}parseClassMemberFromModifier(e,t){const r=this.parseIdentifier(!0);if(this.isClassMethod()){const n=t;return n.kind="method",n.computed=!1,n.key=r,n.static=!1,this.pushClassMethod(e,n,!1,!1,!1,!1),!0}if(this.isClassProperty()){const n=t;return n.computed=!1,n.key=r,n.static=!1,e.body.push(this.parseClassProperty(n)),!0}return this.resetPreviousNodeTrailingComments(r),!1}parseClassMember(e,t,r){const n=this.isContextual(106);if(n){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(5))return void this.parseClassStaticBlock(e,t)}this.parseClassMemberWithIsStatic(e,t,r,n)}parseClassMemberWithIsStatic(e,t,r,n){const o=t,i=t,s=t,a=t,l=t,c=o,u=o;if(t.static=n,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=K(this.state.type)&&!this.state.containsEsc,d=this.match(138),f=this.parseClassElementName(t),h=this.state.startLoc;if(this.parsePostMemberNameModifiers(u),this.isClassMethod()){if(c.kind="method",d)return void this.pushClassPrivateMethod(e,i,!1,!1);const n=this.isNonstaticConstructor(o);let s=!1;n&&(o.kind="constructor",r.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(b.DuplicateConstructor,f),n&&this.hasPlugin("typescript")&&t.override&&this.raise(b.OverrideOnConstructor,f),r.hadConstructor=!0,s=r.hadSuperClass),this.pushClassMethod(e,o,!1,!1,n,s)}else if(this.isClassProperty())d?this.pushClassPrivateProperty(e,a):this.pushClassProperty(e,s);else if(p&&"async"===f.name&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(f);const t=this.eat(55);u.optional&&this.unexpected(h),c.kind="method";const r=this.match(138);this.parseClassElementName(c),this.parsePostMemberNameModifiers(u),r?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"!==f.name&&"set"!==f.name||this.match(55)&&this.isLineTerminator())if(p&&"accessor"===f.name&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(f);const t=this.match(138);this.parseClassElementName(s),this.pushClassAccessorProperty(e,l,t)}else this.isLineTerminator()?d?this.pushClassPrivateProperty(e,a):this.pushClassProperty(e,s):this.unexpected();else{this.resetPreviousNodeTrailingComments(f),c.kind=f.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:r}=this.state;if(132!==t&&133!==t||!e.static||"prototype"!==r||this.raise(b.StaticPrototype,this.state.startLoc),138===t){"constructor"===r&&this.raise(b.ConstructorClassPrivateField,this.state.startLoc);const t=this.parsePrivateName();return e.key=t,t}return this.parsePropertyName(e)}parseClassStaticBlock(e,t){var r;this.scope.enter(208);const n=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=n,e.body.push(this.finishNode(t,"StaticBlock")),null!=(r=t.decorators)&&r.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 r=this.parseClassPrivateProperty(t);e.body.push(r),this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),0,r.key.loc.start)}pushClassAccessorProperty(e,t,r){if(!r&&!t.computed){const e=t.key;"constructor"!==e.name&&"constructor"!==e.value||this.raise(b.ConstructorClassField,e)}const n=this.parseClassAccessorProperty(t);e.body.push(n),r&&this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),0,n.key.loc.start)}pushClassMethod(e,t,r,n,o,i){e.body.push(this.parseMethod(t,r,n,o,i,"ClassMethod",!0))}pushClassPrivateMethod(e,t,r,n){const o=this.parseMethod(t,r,n,!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,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:8331;if(K(this.state.type))e.id=this.parseIdentifier(),t&&this.declareNameFromIdentifier(e.id,n);else{if(!r&&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 r=this.parseMaybeImportPhase(e,!0),n=this.maybeParseExportDefaultSpecifier(e,r),o=!n||this.eat(12),i=o&&this.eatExportStar(e),s=i&&this.maybeParseExportNamespaceSpecifier(e),a=o&&(!s||this.eat(12)),l=n||i;if(i&&!s){if(n&&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(n&&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 r=e;if(this.checkExport(r,!0,!1,!!r.source),"ClassDeclaration"===(null==(p=r.declaration)?void 0:p.type))this.maybeTakeDecorators(t,r.declaration,r);else if(t)throw this.raise(b.UnsupportedDecoratorExport,e);return this.finishNode(r,"ExportNamedDeclaration")}if(this.eat(65)){const r=e,n=this.parseExportDefaultExpression();if(r.declaration=n,"ClassDeclaration"===n.type)this.maybeTakeDecorators(t,n,r);else if(t)throw this.raise(b.UnsupportedDecoratorExport,e);return this.checkExport(r,!0,!0),this.finishNode(r,"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 r=t||this.parseIdentifier(!0),n=this.startNodeAtNode(r);return n.exported=r,e.specifiers=[this.finishNode(n,"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(K(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(K(e)&&98!==e||5===e)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;const t=this.nextTokenStart(),r=this.isUnparsedContextual(t,"from");if(44===this.input.charCodeAt(t)||K(this.state.type)&&r)return!0;if(this.match(65)&&r){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,r,n){var o;if(t)if(r){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,r="Identifier"===e.type?e.name:e.value;if(this.checkDuplicateExports(t,r),!n&&t.local){const{local:e}=t;"Identifier"!==e.type?this.raise(b.ExportBindingIsString,t,{localName:e.value,exportName:r}):(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 r=!0;for(this.expect(5);!this.eat(8);){if(r)r=!1;else if(this.expect(12),this.eat(8))break;const n=this.isContextual(130),o=this.match(133),i=this.startNode();i.local=this.parseModuleExportName(),t.push(this.parseExportSpecifier(i,o,e,n))}return t}parseExportSpecifier(e,t,r,n){return this.eatContextual(93)?e.exported=this.parseModuleExportName():t?e.exported=function(e){const{type:t,start:r,end:n,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=r,a.end=n,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(Ut);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:r}=e;return"json"===r.value&&("Identifier"===t.type?"type"===t.name:"type"===t.value)}))}checkImportReflection(e){const{specifiers:t}=e,r=1===t.length?t[0].type:null;if("source"===e.phase)"ImportDefaultSpecifier"!==r&&this.raise(b.SourcePhaseImportRequiresDefault,t[0].loc.start);else if("defer"===e.phase)"ImportNamespaceSpecifier"!==r&&this.raise(b.DeferImportRequiresNamespace,t[0].loc.start);else if(e.module){var n;"ImportDefaultSpecifier"!==r&&this.raise(b.ImportReflectionNotBinding,t[0].loc.start),(null==(n=e.assertions)?void 0:n.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,r,n){t||("module"===r?(this.expectPlugin("importReflection",n),e.module=!0):this.hasPlugin("importReflection")&&(e.module=!1),"source"===r?(this.expectPlugin("sourcePhaseImports",n),e.phase="source"):"defer"===r?(this.expectPlugin("deferredImportEvaluation",n),e.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(e.phase=null))}parseMaybeImportPhase(e,t){if(!this.isPotentialImportPhase(t))return this.applyImportPhase(e,t,null),null;const r=this.parseIdentifier(!0),{type:n}=this.state;return(q(n)?98!==n||102===this.lookaheadCharCode():12!==n)?(this.resetPreviousIdentifierLeadingComments(r),this.applyImportPhase(e,t,r.name,r.loc.start),null):(this.applyImportPhase(e,t,null),r)}isPrecedingIdImportPhase(e){const{type:t}=this.state;return K(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 r=!this.maybeParseDefaultImportSpecifier(e,t)||this.eat(12),n=r&&this.maybeParseStarImportSpecifier(e);return r&&!n&&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,r){t.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,r))}finishImportSpecifier(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:8201;return this.checkLVal(e.local,{in:{type:t},binding:r}),this.finishNode(e,t)}parseImportAttributes(){this.expect(5);const e=[],t=new Set;do{if(this.match(8))break;const r=this.startNode(),n=this.state.value;if(t.has(n)&&this.raise(b.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:n}),t.add(n),this.match(133)?r.key=this.parseStringLiteral(n):r.key=this.parseIdentifier(!0),this.expect(14),!this.match(133))throw this.raise(b.ModuleAttributeInvalidValue,this.state.startLoc);r.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));return this.expect(8),e}parseModuleAttributes(){const e=[],t=new Set;do{const r=this.startNode();if(r.key=this.parseIdentifier(!0),"type"!==r.key.name&&this.raise(b.ModuleAttributeDifferentFromType,r.key),t.has(r.key.name)&&this.raise(b.ModuleAttributesWithDuplicateKeys,r.key,{key:r.key.name}),t.add(r.key.name),this.expect(14),!this.match(133))throw this.raise(b.ModuleAttributeInvalidValue,this.state.startLoc);r.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));return e}maybeParseImportAttributes(e){let t,r=!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()),r=!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=[]}!r&&this.hasPlugin("importAssertions")?e.assertions=t:e.attributes=t}maybeParseDefaultImportSpecifier(e,t){if(t){const r=this.startNodeAtNode(t);return r.local=t,e.specifiers.push(this.finishImportSpecifier(r,"ImportDefaultSpecifier")),!0}return!!q(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 r=this.startNode(),n=this.match(133),o=this.isContextual(130);r.imported=this.parseModuleExportName();const i=this.parseImportSpecifier(r,n,"type"===e.importKind||"typeof"===e.importKind,o,void 0);e.specifiers.push(i)}}parseImportSpecifier(e,t,r,n,o){if(this.eatContextual(93))e.local=this.parseIdentifier();else{const{imported:r}=e;if(t)throw this.raise(b.ImportBindingIsString,e,{importName:r.value});this.checkReservedWord(r.name,e.loc.start,!0,!0),e.local||(e.local=it(r))}return this.finishImportSpecifier(e,"ImportSpecifier",o)}isThisParam(e){return"Identifier"===e.type&&"this"===e.name}}class $t extends Wt{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 n of Object.keys(Lt)){var r;t[n]=null!=(r=e[n])?r:Lt[n]}return t}(e),t),this.options=e,this.initializeScopes(),this.plugins=function(e){const t=new Map;for(const r of e){const[e,n]=Array.isArray(r)?r:[r,{}];t.has(e)||t.set(e,n||{})}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 Kt=function(e){const t={};for(const r of Object.keys(e))t[r]=Z(e[r]);return t}($);function qt(e,t){let r=$t;return null!=e&&e.plugins&&(function(e){if(Ot(e,"decorators")){if(Ot(e,"decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");const t=It(e,"decorators","decoratorsBeforeExport");if(null!=t&&"boolean"!=typeof t)throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");const r=It(e,"decorators","allowCallParenthesized");if(null!=r&&"boolean"!=typeof r)throw new Error("'allowCallParenthesized' must be a boolean.")}if(Ot(e,"flow")&&Ot(e,"typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(Ot(e,"placeholders")&&Ot(e,"v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(Ot(e,"pipelineOperator")){const t=It(e,"pipelineOperator","proposal");if(!kt.includes(t)){const e=kt.map((e=>`"${e}"`)).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${e}.`)}const r=Ot(e,["recordAndTuple",{syntaxType:"hash"}]);if("hack"===t){if(Ot(e,"placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(Ot(e,"v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");const t=It(e,"pipelineOperator","topicToken");if(!Dt.includes(t)){const e=Dt.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&&r)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "hack", topicToken: "#" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}else if("smart"===t&&r)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "smart" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}if(Ot(e,"moduleAttributes")){if(Ot(e,"importAssertions")||Ot(e,"importAttributes"))throw new Error("Cannot combine importAssertions, importAttributes and moduleAttributes plugins.");if("may-2020"!==It(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(Ot(e,"importAssertions")&&Ot(e,"importAttributes"))throw new Error("Cannot combine importAssertions and importAttributes plugins.");if(Ot(e,"recordAndTuple")&&null!=It(e,"recordAndTuple","syntaxType")&&!Mt.includes(It(e,"recordAndTuple","syntaxType")))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+Mt.map((e=>`'${e}'`)).join(", "));if(Ot(e,"asyncDoExpressions")&&!Ot(e,"doExpressions")){const e=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw e.missingPlugins="doExpressions",e}if(Ot(e,"optionalChainingAssign")&&"2023-07"!==It(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),r=function(e){const t=Nt.filter((t=>Ot(e,t))),r=t.join("/");let n=zt[r];if(!n){n=$t;for(const e of t)n=jt[e](n);zt[r]=n}return n}(e.plugins)),new r(e,t)}const zt={};t.parse=function(e,t){var r;if("unambiguous"!==(null==(r=t)?void 0:r.sourceType))return qt(t,e).parse();t=Object.assign({},t);try{t.sourceType="module";const r=qt(t,e),n=r.parse();if(r.sawUnambiguousESM)return n;if(r.ambiguousScriptDifferentAst)try{return t.sourceType="script",qt(t,e).parse()}catch(e){}else n.program.sourceType="script";return n}catch(r){try{return t.sourceType="script",qt(t,e).parse()}catch(e){}throw r}},t.parseExpression=function(e,t){const r=qt(t,e);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()},t.tokTypes=Kt},(e,t,r)=>{var n;r(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=r(230)(),d=r(231)(),f=Object.getPrototypeOf||(d?function(e){return e.__proto__}:null),h={},m="undefined"!=typeof Uint8Array&&f?f(Uint8Array):n,y={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":p&&f?f([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p&&f?f(f([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p&&f?f((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p&&f?f((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p&&f?f(""[Symbol.iterator]()):n,"%Symbol%":p?Symbol:n,"%SyntaxError%":o,"%ThrowTypeError%":u,"%TypedArray%":m,"%TypeError%":s,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(f)try{null.error}catch(e){var g=f(f(e));y["%Error.prototype%"]=g}var v=function e(t){var r;if("%AsyncFunction%"===t)r=a("async function () {}");else if("%GeneratorFunction%"===t)r=a("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=a("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&f&&(r=f(o.prototype))}return y[t]=r,r},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"]},_=r(71),E=r(233),x=_.call(Function.call,Array.prototype.concat),S=_.call(Function.apply,Array.prototype.splice),w=_.call(Function.call,String.prototype.replace),A=_.call(Function.call,String.prototype.slice),T=_.call(Function.call,RegExp.prototype.exec),P=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,C=/\\(\\)?/g,O=function(e,t){var r,n=e;if(E(b,n)&&(n="%"+(r=b[n])[0]+"%"),E(y,n)){var i=y[n];if(i===h&&(i=v(n)),void 0===i&&!t)throw new s("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,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===T(/^%?[^%]*%?$/,e))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=A(e,0,1),r=A(e,-1);if("%"===t&&"%"!==r)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var n=[];return w(e,P,(function(e,t,r,o){n[n.length]=r?w(o,C,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",i=O("%"+n+"%",t),a=i.name,c=i.value,u=!1,p=i.alias;p&&(n=p[0],S(r,x([0,1],p)));for(var d=1,f=!0;d<r.length;d+=1){var h=r[d],m=A(h,0,1),g=A(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&&f||(u=!0),E(y,a="%"+(n+="."+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&&d+1>=r.length){var v=l(c,h);c=(f=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:c[h]}else f=E(c,h),c=c[h];f&&!u&&(y[a]=c)}}return c}},(e,t,r)=>{const n=r(34),o=r(47),i=r(3),s=r(128),a=r(30),l=r(253),c=r(254),u=r(255),p=r(256),d=r(257),f=r(258),h=r(259),m=r(260),y=r(7),g=r(261),v=r(262),b=r(76),_=r(263),E=r(264),x=r(49),S=r(77),w=r(129),A=r(130),T=r(78),P=r(79),C=r(131),O=r(265),I=r(50),k=r(8),D=r(51),M=r(268),j=r(269),N=r(270),L=r(271),R=r(272),B=r(80),F=r(273),U=r(274),V=r(275),W=r(276),$=r(277);e.exports={parse:a,valid:l,clean:c,inc:u,diff:p,major:d,minor:f,patch:h,prerelease:m,compare:y,rcompare:g,compareLoose:v,compareBuild:b,sort:_,rsort:E,gt:x,lt:S,eq:w,neq:A,gte:T,lte:P,cmp:C,coerce:O,Comparator:I,Range:k,satisfies:D,toComparators:M,maxSatisfying:j,minSatisfying:N,minVersion:L,validRange:R,outside:B,gtr:F,ltr:U,intersects:V,simplifyRange:W,subset:$,SemVer:i,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:o.SEMVER_SPEC_VERSION,RELEASE_TYPES:o.RELEASE_TYPES,compareIdentifiers:s.compareIdentifiers,rcompareIdentifiers:s.rcompareIdentifiers}},(e,t,r)=>{let n,o,i,s,{isClean:a,my:l}=r(145),c=r(52),u=r(56),p=r(53);function d(e){return e.map((e=>(e.nodes&&(e.nodes=d(e.nodes)),delete e.source,e)))}function f(e){if(e[a]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)f(t)}class h extends p{append(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];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,r,n=this.getIterator();for(;this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],r=e(this.proxyOf.nodes[t],t),!1!==r);)this.indexes[n]+=1;return delete this.indexes[n],r}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 r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return e[t](...n.map((e=>"function"==typeof e?(t,r)=>e(t.toProxy(),r):e)))}:"every"===t||"some"===t?r=>e[t]((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return r(e.toProxy(),...n)})):"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,r)=>(e[t]===r||(e[t]=r,"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 r,n=this.index(e),o=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let e of o)this.proxyOf.nodes.splice(n+1,0,e);for(let e in this.indexes)r=this.indexes[e],n<r&&(this.indexes[e]=r+o.length);return this.markDirty(),this}insertBefore(e,t){let r,n=this.index(e),o=0===n&&"prepend",i=this.normalize(t,this.proxyOf.nodes[n],o).reverse();n=this.index(e);for(let e of i)this.proxyOf.nodes.splice(n,0,e);for(let e in this.indexes)r=this.indexes[e],n<=r&&(this.indexes[e]=r+i.length);return this.markDirty(),this}normalize(e,t){if("string"==typeof e)e=d(n(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]&&f(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),r=0;r<e;r++)t[r]=arguments[r];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 r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls((n=>{t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))})),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each(((t,r)=>{let n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n}))}walkAtRules(e,t){return t?e instanceof RegExp?this.walk(((r,n)=>{if("atrule"===r.type&&e.test(r.name))return t(r,n)})):this.walk(((r,n)=>{if("atrule"===r.type&&r.name===e)return t(r,n)})):(t=e,this.walk(((e,r)=>{if("atrule"===e.type)return t(e,r)})))}walkComments(e){return this.walk(((t,r)=>{if("comment"===t.type)return e(t,r)}))}walkDecls(e,t){return t?e instanceof RegExp?this.walk(((r,n)=>{if("decl"===r.type&&e.test(r.prop))return t(r,n)})):this.walk(((r,n)=>{if("decl"===r.type&&r.prop===e)return t(r,n)})):(t=e,this.walk(((e,r)=>{if("decl"===e.type)return t(e,r)})))}walkRules(e,t){return t?e instanceof RegExp?this.walk(((r,n)=>{if("rule"===r.type&&e.test(r.selector))return t(r,n)})):this.walk(((r,n)=>{if("rule"===r.type&&r.selector===e)return t(r,n)})):(t=e,this.walk(((e,r)=>{if("rule"===e.type)return t(e,r)})))}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=>{n=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,r)=>{var n=r(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=r(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,d=a.ERR_MISSING_ARGS,f=r(241),h=r(32).inspect,m=r(32).types,y=m.isPromise,g=m.isRegExp,v=r(242)(),b=r(74)(),_=r(38)("RegExp.prototype.test");function E(){var e=r(245);i=e.isDeepEqual,s=e.isDeepStrictEqual}new Map;var x=!1,S=e.exports=P,w={};function A(e){if(e.message instanceof Error)throw e.message;throw new f(e)}function T(e,t,r,n){if(!r){var o=!1;if(0===t)o=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var i=new f({actual:r,expected:!0,message:n,operator:"==",stackStartFn:e});throw i.generatedMessage=o,i}}function P(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];T.apply(void 0,[P,t.length].concat(t))}S.fail=function e(t,r,o,i,s){var a,l=arguments.length;if(0===l?a="Failed":1===l?(o=t,t=void 0):(!1===x&&(x=!0,(n.emitWarning?n.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:r,operator:void 0===i?"fail":i,stackStartFn:s||e};void 0!==o&&(c.message=o);var u=new f(c);throw a&&(u.message=a,u.generatedMessage=!0),u},S.AssertionError=f,S.ok=P,S.equal=function e(t,r,n){if(arguments.length<2)throw new d("actual","expected");t!=r&&A({actual:t,expected:r,message:n,operator:"==",stackStartFn:e})},S.notEqual=function e(t,r,n){if(arguments.length<2)throw new d("actual","expected");t==r&&A({actual:t,expected:r,message:n,operator:"!=",stackStartFn:e})},S.deepEqual=function e(t,r,n){if(arguments.length<2)throw new d("actual","expected");void 0===i&&E(),i(t,r)||A({actual:t,expected:r,message:n,operator:"deepEqual",stackStartFn:e})},S.notDeepEqual=function e(t,r,n){if(arguments.length<2)throw new d("actual","expected");void 0===i&&E(),i(t,r)&&A({actual:t,expected:r,message:n,operator:"notDeepEqual",stackStartFn:e})},S.deepStrictEqual=function e(t,r,n){if(arguments.length<2)throw new d("actual","expected");void 0===i&&E(),s(t,r)||A({actual:t,expected:r,message:n,operator:"deepStrictEqual",stackStartFn:e})},S.notDeepStrictEqual=function e(t,r,n){if(arguments.length<2)throw new d("actual","expected");void 0===i&&E(),s(t,r)&&A({actual:t,expected:r,message:n,operator:"notDeepStrictEqual",stackStartFn:e})},S.strictEqual=function e(t,r,n){if(arguments.length<2)throw new d("actual","expected");b(t,r)||A({actual:t,expected:r,message:n,operator:"strictEqual",stackStartFn:e})},S.notStrictEqual=function e(t,r,n){if(arguments.length<2)throw new d("actual","expected");b(t,r)&&A({actual:t,expected:r,message:n,operator:"notStrictEqual",stackStartFn:e})};var C=function(e){return Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,r,n){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r.forEach((function(e){e in t&&(void 0!==n&&"string"==typeof n[e]&&g(t[e])&&_(t[e],n[e])?o[e]=n[e]:o[e]=t[e])}))}));function O(e,t,r,n){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 f({actual:e,expected:t,message:r,operator:"deepStrictEqual",stackStartFn:n});throw a.operator=n.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,r,n,o,i){if(!(r in e)||!s(e[r],t[r])){if(!n){var a=new C(e,o),l=new C(t,o,e),c=new f({actual:a,expected:l,operator:"deepStrictEqual",stackStartFn:i});throw c.actual=e,c.expected=t,c.operator=i.name,c}A({actual:e,expected:t,message:n,operator:i.name,stackStartFn:i})}}(e,t,o,r,l,n)})),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function I(e){if("function"!=typeof e)throw new c("fn","Function",e);try{e()}catch(e){return e}return w}function k(e){return y(e)||null!==e&&"object"===o(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function D(e){return Promise.resolve().then((function(){var t;if("function"==typeof e){if(!k(t=e()))throw new p("instance of Promise","promiseFn",t)}else{if(!k(e))throw new c("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then((function(){return t})).then((function(){return w})).catch((function(e){return e}))}))}function M(e,t,r,n){if("string"==typeof r){if(4===arguments.length)throw new c("error",["Object","Error","Function","RegExp"],r);if("object"===o(t)&&null!==t){if(t.message===r)throw new l("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===r)throw new l("error/message",'The error "'.concat(t,'" is identical to the message.'));n=r,r=void 0}else if(null!=r&&"object"!==o(r)&&"function"!=typeof r)throw new c("error",["Object","Error","Function","RegExp"],r);if(t===w){var i="";r&&r.name&&(i+=" (".concat(r.name,")")),i+=n?": ".concat(n):".";var s="rejects"===e.name?"rejection":"exception";A({actual:void 0,expected:r,operator:e.name,message:"Missing expected ".concat(s).concat(i),stackStartFn:e})}if(r&&!O(t,r,n,e))throw t}function j(e,t,r,n){if(t!==w){if("string"==typeof r&&(n=r,r=void 0),!r||O(t,r)){var o=n?": ".concat(n):".",i="doesNotReject"===e.name?"rejection":"exception";A({actual:t,expected:r,operator:e.name,message:"Got unwanted ".concat(i).concat(o,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function N(e,t,r,n,i){if(!g(t))throw new c("regexp","RegExp",t);var s="match"===i;if("string"!=typeof e||_(t,e)!==s){if(r instanceof Error)throw r;var a=!r;r=r||("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 f({actual:e,expected:t,message:r,operator:i,stackStartFn:n});throw l.generatedMessage=a,l}}function L(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];T.apply(void 0,[L,t.length].concat(t))}S.throws=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];M.apply(void 0,[e,I(t)].concat(n))},S.rejects=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return D(t).then((function(t){return M.apply(void 0,[e,t].concat(n))}))},S.doesNotThrow=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];j.apply(void 0,[e,I(t)].concat(n))},S.doesNotReject=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return D(t).then((function(t){return j.apply(void 0,[e,t].concat(n))}))},S.ifError=function e(t){if(null!=t){var r="ifError got unwanted exception: ";"object"===o(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?r+=t.constructor.name:r+=t.message:r+=h(t);var n=new f({actual:t,expected:null,operator:"ifError",message:r,stackStartFn:e}),i=t.stack;if("string"==typeof i){var s=i.split("\n");s.shift();for(var a=n.stack.split("\n"),l=0;l<s.length;l++){var c=a.indexOf(s[l]);if(-1!==c){a=a.slice(0,c);break}}n.stack="".concat(a.join("\n"),"\n").concat(s.join("\n"))}throw n}},S.match=function e(t,r,n){N(t,r,n,e,"match")},S.doesNotMatch=function e(t,r,n){N(t,r,n,e,"doesNotMatch")},S.strict=v(L,S,{equal:S.strictEqual,deepEqual:S.deepStrictEqual,notEqual:S.notStrictEqual,notDeepEqual:S.notDeepStrictEqual}),S.strict.strict=S.strict},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UPDATE_OPERATORS=t.UNARY_OPERATORS=t.STRING_UNARY_OPERATORS=t.STATEMENT_OR_BLOCK_KEYS=t.NUMBER_UNARY_OPERATORS=t.NUMBER_BINARY_OPERATORS=t.NOT_LOCAL_BINDING=t.LOGICAL_OPERATORS=t.INHERIT_KEYS=t.FOR_INIT_KEYS=t.FLATTENABLE_KEYS=t.EQUALITY_BINARY_OPERATORS=t.COMPARISON_BINARY_OPERATORS=t.COMMENT_KEYS=t.BOOLEAN_UNARY_OPERATORS=t.BOOLEAN_NUMBER_BINARY_OPERATORS=t.BOOLEAN_BINARY_OPERATORS=t.BLOCK_SCOPED_SYMBOL=t.BINARY_OPERATORS=t.ASSIGNMENT_OPERATORS=void 0,t.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"],t.FLATTENABLE_KEYS=["body","expressions"],t.FOR_INIT_KEYS=["left","init"],t.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"];const r=t.LOGICAL_OPERATORS=["||","&&","??"],n=(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,...n],a=t.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"],l=(t.BINARY_OPERATORS=["+",...a,...s,"|>"],t.ASSIGNMENT_OPERATORS=["=","+=",...a.map((e=>e+"=")),...r.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,r)=>{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 n=r(9),o=r(2);const i=Function.call.bind(Object.prototype.hasOwnProperty);function s(e,t,r,n){return e&&"string"==typeof e.type?l(e,t,r,n):e}function a(e,t,r,n){return Array.isArray(e)?e.map((e=>s(e,t,r,n))):s(e,t,r,n)}function l(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=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,r,s):e.typeAnnotation);else{if(!i(n.NODE_FIELDS,l))throw new Error(`Unknown node type: "${l}"`);for(const p of Object.keys(n.NODE_FIELDS[l]))i(e,p)&&(u[p]=t?(0,o.isFile)(e)&&"comments"===p?c(e.comments,t,r,s):a(e[p],!0,r,s):e[p])}return i(e,"loc")&&(u.loc=r?null:e.loc),i(e,"leadingComments")&&(u.leadingComments=c(e.leadingComments,t,r,s)),i(e,"innerComments")&&(u.innerComments=c(e.innerComments,t,r,s)),i(e,"trailingComments")&&(u.trailingComments=c(e.trailingComments,t,r,s)),i(e,"extra")&&(u.extra=Object.assign({},e.extra)),u}function c(e,t,r,n){return e&&t?e.map((e=>{const t=n.get(e);if(t)return t;const{type:o,value:i,loc:s}=e,a={type:o,value:i,loc:s};return r&&(a.loc=null),n.set(e,a),a})):e}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.SHOULD_STOP=t.SHOULD_SKIP=t.REMOVED=void 0;var n=r(162),o=r(61),i=r(14),s=r(183),a=r(0),l=a,c=r(35),u=r(101),p=r(423),d=r(424),f=r(427),h=r(430),m=r(431),y=r(436),g=r(437),v=r(438),b=r(440),_=r(442),E=r(443),x=r(163);const{validate:S}=a,w=o("babel"),A=t.REMOVED=1,T=t.SHOULD_STOP=2,P=t.SHOULD_SKIP=4;class C{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:r,parent:n,container:o,listKey:i,key:s}=e;if(!t&&r&&(t=r.hub),!n)throw new Error("To get a node path the parent needs to exist");const a=o[s],l=c.getOrCreateCachedPaths(t,n);let u=l.get(a);return u||(u=new C(t,n),a&&l.set(a,u)),u.setup(r,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 r=this.data[e];return void 0===r&&void 0!==t&&(r=this.data[e]=t),r}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){S(this.node,e,t),this.node[e]=t}getPathLocation(){const e=[];let t=this;do{let r=t.key;t.inList&&(r=`${t.listKey}[${r}]`),e.unshift(r)}while(t=t.parentPath);return e.join(".")}debug(e){w.enabled&&w(`${this.getPathLocation()} ${this.type}: ${e}`)}toString(){return(0,u.default)(this.node).code}get inList(){return!!this.listKey}set inList(e){e||(this.listKey=null)}get parentKey(){return this.listKey||this.key}get shouldSkip(){return!!(this._traverseFlags&P)}set shouldSkip(e){e?this._traverseFlags|=P:this._traverseFlags&=~P}get shouldStop(){return!!(this._traverseFlags&T)}set shouldStop(e){e?this._traverseFlags|=T:this._traverseFlags&=~T}get removed(){return!!(this._traverseFlags&A)}set removed(e){e?this._traverseFlags|=A:this._traverseFlags&=~A}}Object.assign(C.prototype,p,d,f,h,m,y,g,v,b,_,E),C.prototype._guessExecutionStatusRelativeToDifferentFunctions=y._guessExecutionStatusRelativeTo;for(const e of l.TYPES){const t=`is${e}`,r=l[t];C.prototype[t]=function(e){return r(this.node,e)},C.prototype[`assert${e}`]=function(t){if(!r(this.node,t))throw new TypeError(`Expected node path of type ${e}`)}}Object.assign(C.prototype,x);for(const e of Object.keys(n))"_"!==e[0]&&(l.TYPES.includes(e)||l.TYPES.push(e));t.default=C},(e,t,r)=>{var n=r(19),o=r(63),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},(e,t,r)=>{const n=r(3);e.exports=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}},(e,t,r)=>{r(12);const n=r(417),o=r(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,r){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,r)}function c(e,t,r){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 r=0|m(e,t);let n=a(r);const o=n.write(e,t);return o!==r&&(n=n.slice(0,o)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Q(e,Uint8Array)){const t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return d(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 f(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(Q(e,SharedArrayBuffer)||e&&Q(e.buffer,SharedArrayBuffer)))return f(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return l.from(n,t,r);const o=function(e){if(l.isBuffer(e)){const t=0|h(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||X(e.length)?a(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(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,r);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 d(e){const t=e.length<0?0:0|h(e.length),r=a(t);for(let n=0;n<t;n+=1)r[n]=255&e[n];return r}function f(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(n,l.prototype),n}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 r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let o=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return H(e).length;default:if(o)return n?-1:z(e).length;t=(""+t).toLowerCase(),o=!0}}function y(e,t,r){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return I(this,t,r);case"utf8":case"utf-8":return T(this,t,r);case"ascii":return C(this,t,r);case"latin1":case"binary":return O(this,t,r);case"base64":return A(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function g(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function v(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),X(r=+r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=l.from(t,n)),l.isBuffer(t))return 0===t.length?-1:b(e,t,r,n,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):b(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function b(e,t,r,n,o){let i,s=1,a=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,a/=2,l/=2,r/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){let n=-1;for(i=r;i<a;i++)if(c(e,i)===c(t,-1===n?0:i-n)){if(-1===n&&(n=i),i-n+1===l)return n*s}else-1!==n&&(i-=i-n),n=-1}else for(r+l>a&&(r=a-l),i=r;i>=0;i--){let r=!0;for(let n=0;n<l;n++)if(c(e,i+n)!==c(t,n)){r=!1;break}if(r)return i}return-1}function _(e,t,r,n){r=Number(r)||0;const o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;const i=t.length;let s;for(n>i/2&&(n=i/2),s=0;s<n;++s){const n=parseInt(t.substr(2*s,2),16);if(X(n))return s;e[r+s]=n}return s}function E(e,t,r,n){return G(z(t,e.length-r),e,r,n)}function x(e,t,r,n){return G(function(e){const t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function S(e,t,r,n){return G(H(t),e,r,n)}function w(e,t,r,n){return G(function(e,t){let r,n,o;const i=[];for(let s=0;s<e.length&&!((t-=2)<0);++s)r=e.charCodeAt(s),n=r>>8,o=r%256,i.push(o),i.push(n);return i}(t,e.length-r),e,r,n)}function A(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function T(e,t,r){r=Math.min(e.length,r);const n=[];let o=t;for(;o<r;){const t=e[o];let i=null,s=t>239?4:t>223?3:t>191?2:1;if(o+s<=r){let r,n,a,l;switch(s){case 1:t<128&&(i=t);break;case 2:r=e[o+1],128==(192&r)&&(l=(31&t)<<6|63&r,l>127&&(i=l));break;case 3:r=e[o+1],n=e[o+2],128==(192&r)&&128==(192&n)&&(l=(15&t)<<12|(63&r)<<6|63&n,l>2047&&(l<55296||l>57343)&&(i=l));break;case 4:r=e[o+1],n=e[o+2],a=e[o+3],128==(192&r)&&128==(192&n)&&128==(192&a)&&(l=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&a,l>65535&&l<1114112&&(i=l))}}null===i?(i=65533,s=1):i>65535&&(i-=65536,n.push(i>>>10&1023|55296),i=56320|1023&i),n.push(i),o+=s}return function(e){const t=e.length;if(t<=P)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=P));return r}(n)}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,r){return c(e,t,r)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,r){return function(e,t,r){return u(e),e<=0?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)}(e,t,r)},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 r=e.length,n=t.length;for(let o=0,i=Math.min(r,n);o<i;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?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 r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;const n=l.allocUnsafe(t);let o=0;for(r=0;r<e.length;++r){let t=e[r];if(Q(t,Uint8Array))o+t.length>n.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(n,o)):Uint8Array.prototype.set.call(n,t,o);else{if(!l.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,o)}o+=t.length}return n},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?T(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 r=t.b;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},i&&(l.prototype[i]=l.prototype.inspect),l.prototype.compare=function(e,t,r,n,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===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;let i=(o>>>=0)-(n>>>=0),s=(r>>>=0)-(t>>>=0);const a=Math.min(i,s),c=this.slice(n,o),u=e.slice(t,r);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,r){return-1!==this.indexOf(e,t,r)},l.prototype.indexOf=function(e,t,r){return v(this,e,t,r,!0)},l.prototype.lastIndexOf=function(e,t,r){return v(this,e,t,r,!1)},l.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let i=!1;for(;;)switch(n){case"hex":return _(this,e,t,r);case"utf8":case"utf-8":return E(this,e,t,r);case"ascii":case"latin1":case"binary":return x(this,e,t,r);case"base64":return S(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const P=4096;function C(e,t,r){let n="";r=Math.min(e.length,r);for(let o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}function O(e,t,r){let n="";r=Math.min(e.length,r);for(let o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function I(e,t,r){const n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let o="";for(let n=t;n<r;++n)o+=Y[e[n]];return o}function k(e,t,r){const n=e.slice(t,r);let o="";for(let e=0;e<n.length-1;e+=2)o+=String.fromCharCode(n[e]+256*n[e+1]);return o}function D(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,r,n,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(r+n>e.length)throw new RangeError("Index out of range")}function j(e,t,r,n,o){W(t,n,o,e,r,7);let i=Number(t&BigInt(4294967295));e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,r}function N(e,t,r,n,o){W(t,n,o,e,r,7);let i=Number(t&BigInt(4294967295));e[r+7]=i,i>>=8,e[r+6]=i,i>>=8,e[r+5]=i,i>>=8,e[r+4]=i;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=s,s>>=8,e[r+2]=s,s>>=8,e[r+1]=s,s>>=8,e[r]=s,r+8}function L(e,t,r,n,o,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function R(e,t,r,n,i){return t=+t,r>>>=0,i||L(e,0,r,4),o.write(e,t,r,n,23,4),r+4}function B(e,t,r,n,i){return t=+t,r>>>=0,i||L(e,0,r,8),o.write(e,t,r,n,52,8),r+8}l.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);const n=this.subarray(e,t);return Object.setPrototypeOf(n,l.prototype),n},l.prototype.readUintLE=l.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||D(e,t,this.length);let n=this[e],o=1,i=0;for(;++i<t&&(o*=256);)n+=this[e+i]*o;return n},l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||D(e,t,this.length);let n=this[e+--t],o=1;for(;t>0&&(o*=256);)n+=this[e+--t]*o;return n},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||D(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||D(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],r=this[e+7];void 0!==t&&void 0!==r||K(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,o=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(n)+(BigInt(o)<<BigInt(32))})),l.prototype.readBigUInt64BE=J((function(e){$(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||K(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],o=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<<BigInt(32))+BigInt(o)})),l.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||D(e,t,this.length);let n=this[e],o=1,i=0;for(;++i<t&&(o*=256);)n+=this[e+i]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*t)),n},l.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||D(e,t,this.length);let n=t,o=1,i=this[e+--n];for(;n>0&&(o*=256);)i+=this[e+--n]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},l.prototype.readInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||D(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt16BE=function(e,t){e>>>=0,t||D(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||D(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||D(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],r=this[e+7];void 0!==t&&void 0!==r||K(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<<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],r=this[e+7];void 0!==t&&void 0!==r||K(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+r)})),l.prototype.readFloatLE=function(e,t){return e>>>=0,t||D(e,4,this.length),o.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||D(e,4,this.length),o.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||D(e,8,this.length),o.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||D(e,8,this.length),o.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||M(this,e,t,r,Math.pow(2,8*r)-1,0);let o=1,i=0;for(this[t]=255&e;++i<r&&(o*=256);)this[t+i]=e/o&255;return t+r},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||M(this,e,t,r,Math.pow(2,8*r)-1,0);let o=r-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+r},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||M(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,r){return e=+e,t>>>=0,r||M(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,r){return e=+e,t>>>=0,r||M(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,r){return e=+e,t>>>=0,r||M(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 j(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeBigUInt64BE=J((function(e){return N(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);M(this,e,t,r,n-1,-n)}let o=0,i=1,s=0;for(this[t]=255&e;++o<r&&(i*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/i|0)-s&255;return t+r},l.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);M(this,e,t,r,n-1,-n)}let o=r-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+r},l.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||M(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,r){return e=+e,t>>>=0,r||M(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 j(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeBigInt64BE=J((function(e){return N(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeFloatLE=function(e,t,r){return R(this,e,t,!0,r)},l.prototype.writeFloatBE=function(e,t,r){return R(this,e,t,!1,r)},l.prototype.writeDoubleLE=function(e,t,r){return B(this,e,t,!0,r)},l.prototype.writeDoubleBE=function(e,t,r){return B(this,e,t,!1,r)},l.prototype.copy=function(e,t,r,n){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);const o=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),o},l.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!l.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){const t=e.charCodeAt(0);("utf8"===n&&t<128||"latin1"===n)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;let o;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{const i=l.isBuffer(e)?e:l.from(e,n),s=i.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<r-t;++o)this[o+t]=i[o%s]}return this};const F={};function U(e,t,r){F[e]=class extends r{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 V(e){let t="",r=e.length;const n="-"===e[0]?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function W(e,t,r,n,o,i){if(e>r||e<t){const n="bigint"==typeof t?"n":"";let o;throw o=i>3?0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(i+1)}${n}`:`>= -(2${n} ** ${8*(i+1)-1}${n}) and < 2 ** ${8*(i+1)-1}${n}`:`>= ${t}${n} and <= ${r}${n}`,new F.ERR_OUT_OF_RANGE("value",o,e)}!function(e,t,r){$(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||K(t,e.length-(r+1))}(n,o,i)}function $(e,t){if("number"!=typeof e)throw new F.ERR_INVALID_ARG_TYPE(t,"number",e)}function K(e,t,r){if(Math.floor(e)!==e)throw $(e,r),new F.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new F.ERR_BUFFER_OUT_OF_BOUNDS;throw new F.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}U("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),U("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),U("ERR_OUT_OF_RANGE",(function(e,t,r){let n=`The value of "${e}" is out of range.`,o=r;return Number.isInteger(r)&&Math.abs(r)>2**32?o=V(String(r)):"bigint"==typeof r&&(o=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(o=V(o)),o+="n"),n+=` It must be ${t}. Received ${o}`,n}),RangeError);const q=/[^+/0-9A-Za-z-_]/g;function z(e,t){let r;t=t||1/0;const n=e.length;let o=null;const i=[];for(let s=0;s<n;++s){if(r=e.charCodeAt(s),r>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function H(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(q,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function G(e,t,r,n){let o;for(o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=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 r=0;r<16;++r){const n=16*r;for(let o=0;o<16;++o)t[n+o]=e[r]+e[o]}return t}();function J(e){return"undefined"==typeof BigInt?Z:e}function Z(){throw new Error("BigInt not supported")}},(e,t,r)=>{var n=r(17),o=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},i=/%[sdj%]/g;t.format=function(e){if(!v(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(l(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,o=n.length,s=String(e).replace(i,(function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),a=n[r];r<o;a=n[++r])y(a)||!E(a)?s+=" "+a:s+=" "+l(a);return s},t.deprecate=function(e,r){if(void 0!==n&&!0===n.noDeprecation)return e;if(void 0===n)return function(){return t.deprecate(e,r).apply(this,arguments)};var o=!1;return function(){if(!o){if(n.throwDeprecation)throw new Error(r);n.traceDeprecation,o=!0}return e.apply(this,arguments)}};var s={},a=/^$/;function l(e,r){var n={seen:[],stylize:u};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),m(r)?n.showHidden=r:r&&t._extend(n,r),b(n.showHidden)&&(n.showHidden=!1),b(n.depth)&&(n.depth=2),b(n.colors)&&(n.colors=!1),b(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),p(n,e,n.depth)}function c(e,t){var r=l.styles[t];return r?"["+l.colors[r][0]+"m"+e+"["+l.colors[r][1]+"m":e}function u(e,t){return e}function p(e,r,n){if(e.customInspect&&r&&w(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var o=r.inspect(n,e);return v(o)||(o=p(e,o,n)),o}var i=function(e,t){if(b(t))return e.stylize("undefined","undefined");if(v(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return g(t)?e.stylize(""+t,"number"):m(t)?e.stylize(""+t,"boolean"):y(t)?e.stylize("null","null"):void 0}(e,r);if(i)return i;var s=Object.keys(r),a=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(r)),S(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return d(r);if(0===s.length){if(w(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if(_(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(x(r))return e.stylize(Date.prototype.toString.call(r),"date");if(S(r))return d(r)}var c,u="",E=!1,A=["{","}"];return h(r)&&(E=!0,A=["[","]"]),w(r)&&(u=" [Function"+(r.name?": "+r.name:"")+"]"),_(r)&&(u=" "+RegExp.prototype.toString.call(r)),x(r)&&(u=" "+Date.prototype.toUTCString.call(r)),S(r)&&(u=" "+d(r)),0!==s.length||E&&0!=r.length?n<0?_(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),c=E?function(e,t,r,n,o){for(var i=[],s=0,a=t.length;s<a;++s)T(t,String(s))?i.push(f(e,t,r,n,String(s),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(f(e,t,r,n,o,!0))})),i}(e,r,n,a,s):s.map((function(t){return f(e,r,n,a,t,E)})),e.seen.pop(),function(e,t,r){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}(c,u,A)):A[0]+u+A[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,r,n,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")),T(n,o)||(s="["+o+"]"),a||(e.seen.indexOf(l.value)<0?(a=y(r)?p(e,l.value,null):p(e,l.value,r-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]"===A(e)}function E(e){return"object"==typeof e&&null!==e}function x(e){return E(e)&&"[object Date]"===A(e)}function S(e){return E(e)&&("[object Error]"===A(e)||e instanceof Error)}function w(e){return"function"==typeof e}function A(e){return Object.prototype.toString.call(e)}function T(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.debuglog=function(e){return e=e.toUpperCase(),s[e]||(a.test(e)?(n.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=r(228),t.isArray=h,t.isBoolean=m,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=v,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=b,t.isRegExp=_,t.types.isRegExp=_,t.isObject=E,t.isDate=x,t.types.isDate=x,t.isError=S,t.types.isNativeError=S,t.isFunction=w,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(240),t.log=function(){},t.inherits=r(158),t._extend=function(e,t){if(!t||!E(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var P="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function C(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}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,r,n=new Promise((function(e,n){t=e,r=n})),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push((function(e,n){e?r(e):t(n)}));try{e.apply(this,o)}catch(e){r(e)}return n}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=[],r=0;r<arguments.length;r++)t.push(arguments[r]);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){n.nextTick(s.bind(null,null,e))}),(function(e){n.nextTick(C.bind(null,e,s))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,o(e)),t}},(e,t)=>{function r(e){const{context:t,node:r}=e;if(r.computed&&t.maybeQueue(e.get("key")),r.decorators)for(const r of e.get("decorators"))t.maybeQueue(r)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.requeueComputedKeyAndDecorators=r,t.skipAllButComputedKey=function(e){e.skip(),e.node.computed&&e.context.maybeQueue(e.get("key"))};var n={FunctionParent(e){e.isArrowFunctionExpression()||(e.skip(),e.isMethod()&&r(e))},Property(e){e.isObjectProperty()||(e.skip(),r(e))}};t.default=n},(e,t,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:o,MAX_LENGTH:i}=r(47),s=r(48),a=(t=e.exports={}).re=[],l=t.safeRe=[],c=t.src=[],u=t.t={};let p=0;const d="[a-zA-Z0-9-]",f=[["\\s",1],["\\d",i],[d,o]],h=(e,t,r)=>{const n=(e=>{for(const[t,r]of f)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e})(t),o=p++;s(e,o,t),u[e]=o,c[o]=t,a[o]=new RegExp(t,r?"g":void 0),l[o]=new RegExp(n,r?"g":void 0)};h("NUMERICIDENTIFIER","0|[1-9]\\d*"),h("NUMERICIDENTIFIERLOOSE","\\d+"),h("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),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",`${d}+`),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,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\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 n;return null==(n=r.get(s))?void 0:n.get(t)},t.getOrCreateCachedPaths=function(e,t){let n=r.get(s);n||r.set(s,n=new WeakMap);let o=n.get(t);return o||n.set(t,o=new Map),o},t.scope=t.path=void 0;let r=t.path=new WeakMap,n=t.scope=new WeakMap;function o(){t.path=r=new WeakMap}function i(){t.scope=n=new WeakMap}const s=Object.freeze({})},(e,t,r)=>{var n=r(17);Object.defineProperty(t,"__esModule",{value:!0}),t.codeFrameColumns=u,t.default=function(e,t,r){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`.";n.emitWarning?n.emitWarning(e,"DeprecationWarning"):new Error(e).name="DeprecationWarning"}return u(e,{start:{column:r=Math.max(r,0),line:t}},o)};var o=r(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 r={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=n?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,t&&t.set(e,r),r}(r(224));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}let a,l=!1;const c=/\r\n|[\n\r\u2028\u2029]/;function u(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=(r.highlightCode||r.forceColor)&&(0,o.shouldHighlight)(r),s=r.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)=>n?e(t):t,p=e.split(c),{start:d,end:f,markerLines:h}=function(e,t,r){const n=Object.assign({column:0,line:-1},e.start),o=Object.assign({},n,e.end),{linesAbove:i=2,linesBelow:s=3}=r||{},a=n.line,l=n.column,c=o.line,u=o.column;let p=Math.max(a-(i+1),0),d=Math.min(t.length,c+s);-1===a&&(p=0),-1===c&&(d=t.length);const f=c-a,h={};if(f)for(let e=0;e<=f;e++){const r=e+a;if(l)if(0===e){const e=t[r-1].length;h[r]=[l,e-l+1]}else if(e===f)h[r]=[0,u];else{const n=t[r-e].length;h[r]=[0,n]}else h[r]=!0}else h[a]=l===u?!l||[l,0]:[l,u-l];return{start:p,end:d,markerLines:h}}(t,p,r),m=t.start&&"number"==typeof t.start.column,y=String(f).length;let g=(n?(0,o.default)(e,r):e).split(c,f).slice(d,f).map(((e,t)=>{const n=d+1+t,o=` ${` ${n}`.slice(-y)} |`,i=h[n],s=!h[n+1];if(i){let t="";if(Array.isArray(i)){const n=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," "))," ",n,u(l.marker,"^").repeat(a)].join(""),s&&r.message&&(t+=" "+u(l.message,r.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 r.message&&!m&&(g=`${" ".repeat(y+1)}${r.message}\n${g}`),n?s.reset(g):g}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.statements=t.statement=t.smart=t.program=t.expression=t.default=void 0;var n=r(432),o=r(433);const i=(0,o.default)(n.smart);t.smart=i;const s=(0,o.default)(n.statement);t.statement=s;const a=(0,o.default)(n.statements);t.statements=a;const l=(0,o.default)(n.expression);t.expression=l;const c=(0,o.default)(n.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,r)=>{var n=r(22),o=r(41),i=o(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?o(r):r}},(e,t)=>{var r;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 r=l.get(e);return r||l.set(e,r=[]),r.push(function(e){return Object.create({isNative:()=>!1,isConstructor:()=>!1,isToplevel:()=>!0,getFileName:()=>e,getLineNumber:()=>{},getColumnNumber:()=>{},getFunctionName:()=>{},getMethodName:()=>{},getTypeName:()=>{},toString:()=>e})}(t)),e};const n=Function.call.bind(Error.prototype.toString),o=!!Error.captureStackTrace&&!0===(null==(r=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit"))?void 0:r.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,r){let n=[],o=a.has(t)?"hiding":"unknown";for(let e=0;e<r.length;e++){const a=r[e].getFunctionName();if(a===i)o="hiding";else if(a===s){if("hiding"===o)o="showing",l.has(t)&&n.unshift(...l.get(t));else if("unknown"===o){n=r;break}}else"hiding"!==o&&n.push(r[e])}return e(t,n)}}function u(e,t){return 0===t.length?n(e):`${n(e)}\n at ${t.join("\n at ")}`}},(e,t,r)=>{let n,o,i=r(24);class s extends i{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let n=super.normalize(e);if(t)if("prepend"===r)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 n)e.raws.before=t.raws.before;return n}removeChild(e,t){let r=this.index(e);return!t&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n(new o,this,e).stringify()}}s.registerLazyResult=e=>{n=e},s.registerProcessor=e=>{o=e},e.exports=s,s.default=s,i.registerRoot(s)},(e,t,r)=>{var n=r(71),o=r(22),i=r(234),s=o("%TypeError%"),a=o("%Function.prototype.apply%"),l=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||n.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(n,l,arguments);return i(t,1+p(0,e.length-(arguments.length-1)),!0)};var d=function(){return c(n,a,arguments)};u?u(e.exports,"apply",{value:d}):e.exports.apply=d},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){return!!t&&((0,o.default)(t.type,e)?void 0===r||(0,n.default)(t,r):!r&&"Placeholder"===t.type&&e in s.FLIPPED_ALIAS_KEYS&&(0,i.default)(t.expectedNode,e))};var n=r(96),o=r(98),i=r(168),s=r(9)},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"string"==typeof e&&(!(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])||!(0,n.isKeyword)(e)&&!(0,n.isStrictReservedWord)(e,!0))&&(0,n.isIdentifierName)(e)};var n=r(59)},(e,t,r)=>{var n=r(5),o=r(15),i=r(102),s=r(204),a=r(11),l=n.RegExp,c=l.prototype;o&&a((function(){var e=!0;try{l(".","d")}catch(t){e=!1}var t={},r="",n=e?"dgimsy":"gimsy",o=function(e,n){Object.defineProperty(t,e,{get:function(){return r+=n,!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)!==n||r!==n}))&&i(c,"flags",{configurable:!0,get:s})},(e,t,r)=>{var n=r(5),o=r(116),i=r(29),s=r(67),a=r(113),l=r(112),c=n.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,r)=>{var n=r(123),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,s=Array.prototype.concat,a=r(121),l=r(72)(),c=function(e,t,r,n){if(t in e)if(!0===n){if(e[t]===r)return}else if("function"!=typeof(o=n)||"[object Function]"!==i.call(o)||!n())return;var o;l?a(e,t,r,!0):a(e,t,r)},u=function(e,t){var r=arguments.length>2?arguments[2]:{},i=n(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]],r[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,r)=>{var n=r(17);const o=("object"==typeof n&&n.env,()=>{});e.exports=o},(e,t,r)=>{const n=r(7);e.exports=(e,t,r)=>n(e,t,r)>0},(e,t,r)=>{const n=Symbol("SemVer ANY");class o{static get ANY(){return n}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===n?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],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new u(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===n||e===n)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=r(75),{safeRe:s,t:a}=r(34),l=r(131),c=r(48),u=r(3),p=r(8)},(e,t,r)=>{const n=r(8);e.exports=(e,t,r)=>{try{t=new n(t,r)}catch(e){return!1}return t.test(e)}},(e,t,r)=>{let n=r(53);class o extends n{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,r)=>{let{isClean:n,my:o}=r(145),i=r(87),s=r(146),a=r(54);function l(e,t){let r=new e.constructor;for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;if("proxyCache"===n)continue;let o=e[n],i=typeof o;"parent"===n&&"object"===i?t&&(r[n]=t):"source"===n?r[n]=o:Array.isArray(o)?r[n]=o.map((e=>l(e,r))):("object"===i&&null!==o&&(o=l(o)),r[n]=o)}return r}class c{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.raws={},this[n]=!1,this[o]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let r of e[t])"function"==typeof r.clone?this.append(r.clone()):this.append(r)}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 r in e)t[r]=e[r];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:r,start:n}=this.rangeBy(t);return this.source.input.error(e,{column:n.column,line:n.line},{column:r.column,line:r.line},t)}return new i(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,r)=>(e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0)}}markDirty(){if(this[n]){this[n]=!1;let e=this;for(;e=e.parent;)e[n]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){let n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r}positionInside(e,t){let r=t||this.toString(),n=this.source.start.column,o=this.source.start.line;for(let t=0;t<e;t++)"\n"===r[t]?(n=1,o+=1):n+=1;return{column:n,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},r=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 n=this.toString(),o=n.indexOf(e.word);-1!==o&&(t=this.positionInside(o,n),r=this.positionInside(o+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,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 n=this,o=!1;for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(let e of t)e===this?o=!0:o?(this.parent.insertAfter(n,e),n=e):this.parent.insertBefore(n,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 r={},n=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 n=this[e];if(Array.isArray(n))r[e]=n.map((e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e));else if("object"==typeof n&&n.toJSON)r[e]=n.toJSON(null,t);else if("source"===e){let i=t.get(n.input);null==i&&(i=o,t.set(n.input,o),o++),r[e]={end:n.end,inputId:i,start:n.start}}else r[e]=n}return n&&(r.inputs=[...t.keys()].map((e=>e.toJSON()))),r}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,r){let n={node:this};for(let e in r)n[e]=r[e];return e.warn(t,n)}get proxyOf(){return this}}e.exports=c,c.default=c},(e,t,r)=>{let n=r(146);function o(e,t){new n(t).stringify(e)}e.exports=o,o.default=o},(e,t,r)=>{let{SourceMapConsumer:n,SourceMapGenerator:o}=r(149),{fileURLToPath:i,pathToFileURL:s}=r(318),{isAbsolute:a,resolve:l}=r(150),{nanoid:c}=r(319),u=r(317),p=r(87),d=r(151),f=Symbol("fromOffsetCache"),h=Boolean(n&&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 d(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,r){let n,o,i,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(t&&"object"==typeof t){let e=t,n=r;if("number"==typeof e.offset){let n=this.fromOffset(e.offset);t=n.line,r=n.col}else t=e.line,r=e.column;if("number"==typeof n.offset){let e=this.fromOffset(n.offset);o=e.line,i=e.col}else o=n.line,i=n.column}else if(!r){let e=this.fromOffset(t);t=e.line,r=e.col}let l=this.origin(t,r,o,i);return n=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:r,line:t},void 0===o?r:{column:i,line:o},this.css,this.file,a.plugin),n.input={column:r,endColumn:i,endLine:o,line:t,source:this.css},this.file&&(s&&(n.input.url=s(this.file).toString()),n.input.file=this.file),n}fromOffset(e){let t,r;if(this[f])r=this[f];else{let e=this.css.split("\n");r=new Array(e.length);let t=0;for(let n=0,o=e.length;n<o;n++)r[n]=t,t+=e[n].length+1;this[f]=r}t=r[r.length-1];let n=0;if(e>=t)n=r.length-1;else{let t,o=r.length-2;for(;n<o;)if(t=n+(o-n>>1),e<r[t])o=t-1;else{if(!(e>=r[t+1])){n=t;break}n=t+1}}return{col:e-r[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:l(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,n){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 r&&(o=c.originalPositionFor({column:n,line:r})),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 d=c.sourceContentFor(u.source);return d&&(p.source=d),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,r)=>{let n=r(53);class o extends n{constructor(e){super(e),this.type="comment"}}e.exports=o,o.default=o},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.explode=d,t.isExplodedVisitor=p,t.merge=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;const n={};for(let o=0;o<e.length;o++){const i=d(e[o]),s=t[o];let a=i;(s||r)&&(a=m(a,s,r)),b(n,a);for(const e of Object.keys(i)){if(v(e))continue;let t=i[e];(s||r)&&(t=m(t,s,r)),b(n[e]||(n[e]={}),t)}}return n},t.verify=f;var n=r(162),o=r(163),i=r(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 d(e){if(p(e))return e;e._exploded=!0;for(const t of Object.keys(e)){if(v(t))continue;const r=t.split("|");if(1===r.length)continue;const n=e[t];delete e[t];for(const t of r)e[t]=n}f(e),delete e.__esModule,function(e){for(const t of Object.keys(e)){if(v(t))continue;const r=e[t];"function"==typeof r&&(e[t]={enter:r})}}(e),y(e);for(const t of Object.keys(e)){if(v(t))continue;if(!(t in n))continue;const r=e[t];for(const e of Object.keys(r))r[e]=g(t,r[e]);delete e[t];const o=n[t];if(null!==o)for(const t of o)e[t]?b(e[t],r):e[t]=r;else b(e,r)}for(const t of Object.keys(e)){if(v(t))continue;let r=l[t];if(t in s){const e=s[t];u(t,e,"Visitor "),r=[e]}else if(t in a){const e=a[t];u(t,e,"Visitor "),r=l[e]}if(!r)continue;const n=e[t];delete e[t];for(const t of r){const r=e[t];r?b(r,n):e[t]=Object.assign({},n)}}for(const t of Object.keys(e))v(t)||y(e[t]);return e}function f(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 r=e[t];if("object"==typeof r)for(const e of Object.keys(r)){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}`,r[e])}}e._verified=!0}}function h(e,t){const r=[].concat(t);for(const t of r)if("function"!=typeof t)throw new TypeError(`Non-function found defined in ${e} with type ${typeof t}`)}function m(e,t,r){const n={};for(const o of["enter","exit"]){let i=e[o];Array.isArray(i)&&(i=i.map((function(e){let n=e;return t&&(n=function(r){e.call(t,r,t)}),r&&(n=r(null==t?void 0:t.key,o,n)),n!==e&&(n.toString=()=>e.toString()),n})),n[o]=i)}return n}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 r=o[`is${e}`],n=function(e){if(r.call(e))return t.apply(this,arguments)};return n.toString=()=>t.toString(),n}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 r of["enter","exit"])t[r]&&(e[r]=[].concat(e[r]||[],t[r]))}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(r.has(e))return;r.add(e);const{internal:n,trace:o}=function(){const{stackTraceLimit:e,prepareStackTrace:t}=Error;let r;if(Error.stackTraceLimit=4,Error.prepareStackTrace=function(e,t){r=t},(new Error).stack,Error.stackTraceLimit=e,Error.prepareStackTrace=t,!r)return{internal:!1,trace:""};const n=r.slice(2,4);return{internal:/[\\/]@babel[\\/]/.test(n[1].getFileName()),trace:n.map((e=>` at ${e}`)).join("\n")}}()};const r=new Set},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isIdentifierChar",{enumerable:!0,get:function(){return n.isIdentifierChar}}),Object.defineProperty(t,"isIdentifierName",{enumerable:!0,get:function(){return n.isIdentifierName}}),Object.defineProperty(t,"isIdentifierStart",{enumerable:!0,get:function(){return n.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 n=r(353),o=r(354)},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(2);function o(e,t,r,i){const s=[].concat(e),a=Object.create(null);for(;s.length;){const e=s.shift();if(!e)continue;if(i&&((0,n.isAssignmentExpression)(e)||(0,n.isUnaryExpression)(e)))continue;const l=o.keys[e.type];if((0,n.isIdentifier)(e))t?(a[e.name]=a[e.name]||[]).push(e):a[e.name]=e;else if(!(0,n.isExportDeclaration)(e)||(0,n.isExportAllDeclaration)(e)){if(r){if((0,n.isFunctionDeclaration)(e)){s.push(e.id);continue}if((0,n.isFunctionExpression)(e))continue}if(l)for(let t=0;t<l.length;t++){const r=e[l[t]];r&&(Array.isArray(r)?s.push(...r):s.push(r))}}else(0,n.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,r)=>{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"),r=t.isFunctionDeclaration()||t.isClassDeclaration(),n=t.isFunctionExpression()||t.isClassExpression(),u=t.isScope()?t.scope.parent:t.scope;let p=t.node.id,d=!1;p?n&&u.hasBinding(p.name)&&(d=!0,p=u.generateUidIdentifier(p.name)):(d=!0,p=u.generateUidIdentifier("default"),(r||n)&&(t.node.id=o(p)));const f=r?t.node:l("var",[c(o(p),t.node)]),h=i(null,[s(o(p),a("default"))]);return e.insertAfter(h),e.replaceWith(f),d&&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"),r=t.getOuterBindingIdentifiers(),n=Object.keys(r).map((e=>s(a(e),a(e)))),u=i(null,n);return e.insertAfter(u),e.replaceWith(t.node),e};var n=r(0);const{cloneNode:o,exportNamedDeclaration:i,exportSpecifier:s,identifier:a,variableDeclaration:l,variableDeclarator:c}=n},(e,t,r)=>{var n=r(187),o=Object;e.exports=function(e){return o(n(e))}},(e,t,r)=>{var n=r(5),o=r(106),i="__core-js_shared__",s=n[i]||o(i,{});e.exports=s},(e,t,r)=>{var n=r(20),o=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not an object")}},(e,t,r)=>{var n=r(104),o=Function.prototype.call;e.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},(e,t,r)=>{var n=r(19),o=0,i=Math.random(),s=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++o+i,36)}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"buildDynamicImport",{enumerable:!0,get:function(){return u.buildDynamicImport}}),t.buildNamespaceInitStatements=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=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=n(a,t.wrap))?i:a;r&&s.push(...T(e,t,!0,n));for(const r 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__={54554:(e,t,r)=>{function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(this,arguments)}function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function s(e,t,r){return s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&i(o,r.prototype),o},s.apply(null,arguments)}function a(e){var t="function"==typeof Map?new Map:void 0;return a=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return s(e,arguments,o(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),i(n,e)},a(e)}r.d(t,{A:()=>D});var l=/%[sdj%]/g;function c(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var r=e.field;t[r]=t[r]||[],t[r].push(e)})),t}function u(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=0,i=r.length;return"function"==typeof e?e.apply(null,r):"string"==typeof e?e.replace(l,(function(e){if("%%"===e)return"%";if(o>=i)return e;switch(e){case"%s":return String(r[o++]);case"%d":return Number(r[o++]);case"%j":try{return JSON.stringify(r[o++])}catch(e){return"[Circular]"}break;default:return e}})):e}function p(e,t){return null==e||!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e)}function d(e,t,r){var n=0,o=e.length;!function i(s){if(s&&s.length)r(s);else{var a=n;n+=1,a<o?t(e[a],i):r([])}}([])}"undefined"!=typeof process&&process.env;var f=function(e){var t,r;function n(t,r){var n;return(n=e.call(this,"Async Validation Error")||this).errors=t,n.fields=r,n}return r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,i(t,r),n}(a(Error));function h(e,t){return function(r){var n;return n=e.fullFields?function(e,t){for(var r=e,n=0;n<t.length;n++){if(null==r)return r;r=r[t[n]]}return r}(t,e.fullFields):t[r.field||e.fullField],function(e){return!(!e||void 0===e.message)}(r)?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:"function"==typeof r?r():r,fieldValue:n,field:r.field||e.fullField}}}function m(e,t){if(t)for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];"object"==typeof o&&"object"==typeof e[r]?e[r]=n({},e[r],o):e[r]=o}return e}var y,g=function(e,t,r,n,o,i){!e.required||r.hasOwnProperty(e.field)&&!p(t,i||e.type)||n.push(u(o.messages.required,e.fullField))},v=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,b=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,_={integer:function(e){return _.number(e)&&parseInt(e,10)===e},float:function(e){return _.number(e)&&!_.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"==typeof e&&!_.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(v)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(y)return y;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",o=("\n(?:\n(?:"+n+":){7}(?:"+n+"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:"+n+":){6}(?:"+r+"|:"+n+"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:"+n+":){5}(?::"+r+"|(?::"+n+"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:"+n+":){4}(?:(?::"+n+"){0,1}:"+r+"|(?::"+n+"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:"+n+":){3}(?:(?::"+n+"){0,2}:"+r+"|(?::"+n+"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:"+n+":){2}(?:(?::"+n+"){0,3}:"+r+"|(?::"+n+"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:"+n+":){1}(?:(?::"+n+"){0,4}:"+r+"|(?::"+n+"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+n+"){0,5}:"+r+"|(?::"+n+"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+r+"$)|(?:^"+o+"$)"),s=new RegExp("^"+r+"$"),a=new RegExp("^"+o+"$"),l=function(e){return e&&e.exact?i:new RegExp("(?:"+t(e)+r+t(e)+")|(?:"+t(e)+o+t(e)+")","g")};l.v4=function(e){return e&&e.exact?s:new RegExp(""+t(e)+r+t(e),"g")},l.v6=function(e){return e&&e.exact?a:new RegExp(""+t(e)+o+t(e),"g")};var c=l.v4().source,u=l.v6().source;return y=new RegExp("(?:^(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|"+c+"|"+u+'|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?$)',"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(b)}},E="enum",x=g,S=function(e,t,r,n,o){(/^\s+$/.test(t)||""===t)&&n.push(u(o.messages.whitespace,e.fullField))},w=function(e,t,r,n,o){if(e.required&&void 0===t)g(e,t,r,n,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?_[i](t)||n.push(u(o.messages.types[i],e.fullField,e.type)):i&&typeof t!==e.type&&n.push(u(o.messages.types[i],e.fullField,e.type))}},A=function(e,t,r,n,o){var i="number"==typeof e.len,s="number"==typeof e.min,a="number"==typeof e.max,l=t,c=null,p="number"==typeof t,d="string"==typeof t,f=Array.isArray(t);if(p?c="number":d?c="string":f&&(c="array"),!c)return!1;f&&(l=t.length),d&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?l!==e.len&&n.push(u(o.messages[c].len,e.fullField,e.len)):s&&!a&&l<e.min?n.push(u(o.messages[c].min,e.fullField,e.min)):a&&!s&&l>e.max?n.push(u(o.messages[c].max,e.fullField,e.max)):s&&a&&(l<e.min||l>e.max)&&n.push(u(o.messages[c].range,e.fullField,e.min,e.max))},T=function(e,t,r,n,o){e[E]=Array.isArray(e[E])?e[E]:[],-1===e[E].indexOf(t)&&n.push(u(o.messages[E],e.fullField,e[E].join(", ")))},P=function(e,t,r,n,o){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||n.push(u(o.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||n.push(u(o.messages.pattern.mismatch,e.fullField,t,e.pattern))))},C=function(e,t,r,n,o){var i=e.type,s=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(p(t,i)&&!e.required)return r();x(e,t,n,s,o,i),p(t,i)||w(e,t,n,s,o)}r(s)},O={string:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(p(t,"string")&&!e.required)return r();x(e,t,n,i,o,"string"),p(t,"string")||(w(e,t,n,i,o),A(e,t,n,i,o),P(e,t,n,i,o),!0===e.whitespace&&S(e,t,n,i,o))}r(i)},method:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(p(t)&&!e.required)return r();x(e,t,n,i,o),void 0!==t&&w(e,t,n,i,o)}r(i)},number:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(""===t&&(t=void 0),p(t)&&!e.required)return r();x(e,t,n,i,o),void 0!==t&&(w(e,t,n,i,o),A(e,t,n,i,o))}r(i)},boolean:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(p(t)&&!e.required)return r();x(e,t,n,i,o),void 0!==t&&w(e,t,n,i,o)}r(i)},regexp:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(p(t)&&!e.required)return r();x(e,t,n,i,o),p(t)||w(e,t,n,i,o)}r(i)},integer:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(p(t)&&!e.required)return r();x(e,t,n,i,o),void 0!==t&&(w(e,t,n,i,o),A(e,t,n,i,o))}r(i)},float:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(p(t)&&!e.required)return r();x(e,t,n,i,o),void 0!==t&&(w(e,t,n,i,o),A(e,t,n,i,o))}r(i)},array:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(null==t&&!e.required)return r();x(e,t,n,i,o,"array"),null!=t&&(w(e,t,n,i,o),A(e,t,n,i,o))}r(i)},object:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(p(t)&&!e.required)return r();x(e,t,n,i,o),void 0!==t&&w(e,t,n,i,o)}r(i)},enum:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(p(t)&&!e.required)return r();x(e,t,n,i,o),void 0!==t&&T(e,t,n,i,o)}r(i)},pattern:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(p(t,"string")&&!e.required)return r();x(e,t,n,i,o),p(t,"string")||P(e,t,n,i,o)}r(i)},date:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(p(t,"date")&&!e.required)return r();var s;x(e,t,n,i,o),p(t,"date")||(s=t instanceof Date?t:new Date(t),w(e,s,n,i,o),s&&A(e,s.getTime(),n,i,o))}r(i)},url:C,hex:C,email:C,required:function(e,t,r,n,o){var i=[],s=Array.isArray(t)?"array":typeof t;x(e,t,n,i,o,s),r(i)},any:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(p(t)&&!e.required)return r();x(e,t,n,i,o)}r(i)}};function I(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var k=I(),D=function(){function e(e){this.rules=null,this._messages=k,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(r){var n=e[r];t.rules[r]=Array.isArray(n)?n:[n]}))},t.messages=function(e){return e&&(this._messages=m(I(),e)),this._messages},t.validate=function(t,r,o){var i=this;void 0===r&&(r={}),void 0===o&&(o=function(){});var s=t,a=r,l=o;if("function"==typeof a&&(l=a,a={}),!this.rules||0===Object.keys(this.rules).length)return l&&l(null,s),Promise.resolve(s);if(a.messages){var p=this.messages();p===k&&(p=I()),m(p,a.messages),a.messages=p}else a.messages=this.messages();var y={};(a.keys||Object.keys(this.rules)).forEach((function(e){var r=i.rules[e],o=s[e];r.forEach((function(r){var a=r;"function"==typeof a.transform&&(s===t&&(s=n({},s)),o=s[e]=a.transform(o)),(a="function"==typeof a?{validator:a}:n({},a)).validator=i.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=i.getType(a),y[e]=y[e]||[],y[e].push({rule:a,value:o,source:s,field:e}))}))}));var g={};return function(e,t,r,n,o){if(t.first){var i=new Promise((function(t,i){var s=function(e){var t=[];return Object.keys(e).forEach((function(r){t.push.apply(t,e[r]||[])})),t}(e);d(s,r,(function(e){return n(e),e.length?i(new f(e,c(e))):t(o)}))}));return i.catch((function(e){return e})),i}var s=!0===t.firstFields?Object.keys(e):t.firstFields||[],a=Object.keys(e),l=a.length,u=0,p=[],h=new Promise((function(t,i){var h=function(e){if(p.push.apply(p,e),++u===l)return n(p),p.length?i(new f(p,c(p))):t(o)};a.length||(n(p),t(o)),a.forEach((function(t){var n=e[t];-1!==s.indexOf(t)?d(n,r,h):function(e,t,r){var n=[],o=0,i=e.length;function s(e){n.push.apply(n,e||[]),++o===i&&r(n)}e.forEach((function(e){t(e,s)}))}(n,r,h)}))}));return h.catch((function(e){return e})),h}(y,a,(function(t,r){var o,i=t.rule,l=!("object"!==i.type&&"array"!==i.type||"object"!=typeof i.fields&&"object"!=typeof i.defaultField);function c(e,t){return n({},t,{fullField:i.fullField+"."+e,fullFields:i.fullFields?[].concat(i.fullFields,[e]):[e]})}function p(o){void 0===o&&(o=[]);var p=Array.isArray(o)?o:[o];!a.suppressWarning&&p.length&&e.warning("async-validator:",p),p.length&&void 0!==i.message&&(p=[].concat(i.message));var d=p.map(h(i,s));if(a.first&&d.length)return g[i.field]=1,r(d);if(l){if(i.required&&!t.value)return void 0!==i.message?d=[].concat(i.message).map(h(i,s)):a.error&&(d=[a.error(i,u(a.messages.required,i.field))]),r(d);var f={};i.defaultField&&Object.keys(t.value).map((function(e){f[e]=i.defaultField})),f=n({},f,t.rule.fields);var m={};Object.keys(f).forEach((function(e){var t=f[e],r=Array.isArray(t)?t:[t];m[e]=r.map(c.bind(null,e))}));var y=new e(m);y.messages(a.messages),t.rule.options&&(t.rule.options.messages=a.messages,t.rule.options.error=a.error),y.validate(t.value,t.rule.options||a,(function(e){var t=[];d&&d.length&&t.push.apply(t,d),e&&e.length&&t.push.apply(t,e),r(t.length?t:null)}))}else r(d)}if(l=l&&(i.required||!i.required&&t.value),i.field=t.field,i.asyncValidator)o=i.asyncValidator(i,t.value,p,t.source,a);else if(i.validator){try{o=i.validator(i,t.value,p,t.source,a)}catch(e){null==console.error||console.error(e),a.suppressValidatorError||setTimeout((function(){throw e}),0),p(e.message)}!0===o?p():!1===o?p("function"==typeof i.message?i.message(i.fullField||i.field):i.message||(i.fullField||i.field)+" fails"):o instanceof Array?p(o):o instanceof Error&&p(o.message)}o&&o.then&&o.then((function(){return p()}),(function(e){return p(e)}))}),(function(e){!function(e){for(var t,r,n=[],o={},i=0;i<e.length;i++)t=e[i],r=void 0,Array.isArray(t)?n=(r=n).concat.apply(r,t):n.push(t);n.length?(o=c(n),l(n,o)):l(null,s)}(e)}),s)},t.getType=function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!O.hasOwnProperty(e.type))throw new Error(u("Unknown rule type %s",e.type));return e.type||"string"},t.getValidationMethod=function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),r=t.indexOf("message");return-1!==r&&t.splice(r,1),1===t.length&&"required"===t[0]?O.required:O[this.getType(e)]||void 0},e}();D.register=function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");O[e]=t},D.warning=function(){},D.messages=k,D.validators=O},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_25__=__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_24__=__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_array_push_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(44114),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es_date_to_string_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(23288),core_js_modules_es_date_to_string_js__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es_date_to_string_js__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(26099),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(27495),core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_5__),core_js_modules_es_regexp_test_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(90906),core_js_modules_es_regexp_test_js__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(core_js_modules_es_regexp_test_js__WEBPACK_IMPORTED_MODULE_6__),core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(38781),core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_7__),_babel_runtime_corejs3_core_js_stable_instance_for_each__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(86226),_babel_runtime_corejs3_core_js_stable_instance_for_each__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_for_each__WEBPACK_IMPORTED_MODULE_8__),_babel_runtime_corejs3_core_js_stable_set_timeout__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(56255),_babel_runtime_corejs3_core_js_stable_set_timeout__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_set_timeout__WEBPACK_IMPORTED_MODULE_9__),_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(11393),_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10__),_babel_runtime_corejs3_core_js_stable_instance_reduce__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(73363),_babel_runtime_corejs3_core_js_stable_instance_reduce__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_reduce__WEBPACK_IMPORTED_MODULE_11__),_babel_runtime_corejs3_core_js_stable_instance_index_of__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(64007),_babel_runtime_corejs3_core_js_stable_instance_index_of__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_index_of__WEBPACK_IMPORTED_MODULE_12__),_babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(385),_babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_13__),_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(50697),_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_14___default=__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_14__),_babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(61240),_babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_15___default=__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_15__),_utils_index_js__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(17427),_hooks_index_js__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(70846),_rules_rulesDriver__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(9318),_rules_ruleUtils_js__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(19022),vue_router__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(11292),_components_helper_eventOrchestration_js__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(44026),_components_loadingComponent_LoadingComponent_vue__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(30604),_hooks_configLoad_js__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__(82826);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_24__.A)({},attrs);return delete e.onClick,e}));(0,_hooks_configLoad_js__WEBPACK_IMPORTED_MODULE_23__.S)(props.config);var formContextKey=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_formContextKey"),formContext=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)(formContextKey,{}),_isH5=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_isH5"),configsSet=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_configsSet"),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_20__.useRouter)(),route=(0,vue_router__WEBPACK_IMPORTED_MODULE_20__.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"),OPEN_DATA_RULES=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("OPEN_DATA_RULES"),_dialogFooterTeleport=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_dialogFooterTeleport",(0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(null)),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_16__.Ts)(props.config,"_lang",lang),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(props.config,"_rootValue",rootValue),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(props.config,"router",router),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(props.config,"route",route),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(props.config,"_validate",validate),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(props.config,"_rowScope",props.rowScope),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(props.config,"_selects",selects),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(props.config,"_parentRootValue",_parentRootValue),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.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_16__.Ts)(props.config,"wrapVm",instance);var refFn=function(e){(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.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_16__.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_19__.Vr[hireRelat])&&void 0!==_penddingRules$hireRe&&_penddingRules$hireRe.length&&(_babel_runtime_corejs3_core_js_stable_instance_for_each__WEBPACK_IMPORTED_MODULE_8___default()(_context=_rules_ruleUtils_js__WEBPACK_IMPORTED_MODULE_19__.Vr[hireRelat]).call(_context,(function(e){var t=e.rules;delete e.rules,_babel_runtime_corejs3_core_js_stable_set_timeout__WEBPACK_IMPORTED_MODULE_9___default()((function(){_rules_rulesDriver__WEBPACK_IMPORTED_MODULE_18__.Ay.call(e,t,!1,OPEN_DATA_RULES)}),0)})),_rules_ruleUtils_js__WEBPACK_IMPORTED_MODULE_19__.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_8___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_9___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_9___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_17__.K)(props,emit,OPEN_DATA_RULES),vModelObjs=_useVmodels.vModelObjs,initVmodels=_useVmodels.initVmodels,modelValue=_useVmodels.modelValue;(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.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_8___default()(e=fnComponentkeys.value).call(e,(function(e){if((0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.$3)(props.config,e)){var r=props.config;_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.lb.test(e)&&"function"==typeof r[e]?t[e]=function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return r[e].apply(r,_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10___default()(n).call(n,[vm]))}:t[e]=r[e]}})),t}"function"==typeof props.component?null===(_props$component=props.component())||void 0===_props$component||_props$component.then((function(e){var t,r;null!=e&&null!==(t=e.default)&&void 0!==t&&t.emits&&initVmodels(null==e||null===(r=e.default)||void 0===r?void 0:r.emits),fnComponentkeys.value=(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.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_22__.A,delay:0}):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_10___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_25__.A)(props.additionConfigs),[props.config]);_babel_runtime_corejs3_core_js_stable_instance_reduce__WEBPACK_IMPORTED_MODULE_11___default()(configLinks).call(configLinks,(function(e,t){if((0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(t,"parent",e),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(t,"dynamicMapComp",dynamicMapComp),!OPEN_DATA_RULES){if(null==t||!t.dynamicHireRelat_bak||null!=configsSet&&configsSet.has(t)){var r,n,o=null!=e&&e.dynamicHireRelat?_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10___default()(r=_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10___default()(n="".concat(null==e?void 0:e.dynamicHireRelat)).call(n,(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.$3)(t,"rowIndex")?"[".concat(t.rowIndex,"]"):"","->")).call(r,t.metaCode||""):t.metaCode;(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(t,"dynamicHireRelat",o),t.dynamicHireRelat_bak=o}else{var i;(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(t,"dynamicHireRelat",_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10___default()(i="".concat(t.dynamicHireRelat_bak,"__@__")).call(i,props.mode,"__"))}null==configsSet||configsSet.add(t),t.dynamicHireRelat&&(dynamicMapComp[t.dynamicHireRelat]=t)}return t})),(0,vue__WEBPACK_IMPORTED_MODULE_0__.provide)("parent",props.config),OPEN_DATA_RULES?null!=_isH5&&_isH5.value||!props.config.renderby||(0,vue__WEBPACK_IMPORTED_MODULE_0__.provide)(formContextKey,(0,vue__WEBPACK_IMPORTED_MODULE_0__.reactive)((0,_Users_caowenbin_asia_xm_code_new_web_sa_egretimp_resolver_node_modules_babel_runtime_corejs3_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_24__.A)((0,_Users_caowenbin_asia_xm_code_new_web_sa_egretimp_resolver_node_modules_babel_runtime_corejs3_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_24__.A)({},formContext),{},{addField:function(e){var t,r;null!==(t=props.config)&&void 0!==t&&t._formFields||(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(props.config,"_formFields",[]),null===(r=props.config)||void 0===r||null===(r=r._formFields)||void 0===r||r.push(e),formContext.addField(e)},removeField:function(e){var t,r=null===(t=props.config)||void 0===t?void 0:t._formFields;if(e.prop&&r){var n=_babel_runtime_corejs3_core_js_stable_instance_index_of__WEBPACK_IMPORTED_MODULE_12___default()(r).call(r,e);-1!==n&&_babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_13___default()(r).call(r,n,1)}formContext.removeField(e)}}))):null!=_isH5&&_isH5.value||!props.config.renderby||(0,vue__WEBPACK_IMPORTED_MODULE_0__.provide)(formContextKey,(0,vue__WEBPACK_IMPORTED_MODULE_0__.reactive)((0,_Users_caowenbin_asia_xm_code_new_web_sa_egretimp_resolver_node_modules_babel_runtime_corejs3_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_24__.A)((0,_Users_caowenbin_asia_xm_code_new_web_sa_egretimp_resolver_node_modules_babel_runtime_corejs3_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_24__.A)({},formContext),{},{addField:function(e){if(e.validate&&(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.kL)(e.validate)){var t=e.validate;e.validate=function(){for(var e,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];var i=t.apply(this,n);return(null==i||null===(e=i.then((function(e){return e})))||void 0===e?void 0:e.catch((function(e){var t;return(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Qd)(e)&&_babel_runtime_corejs3_core_js_stable_instance_for_each__WEBPACK_IMPORTED_MODULE_8___default()(t=_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_14___default()(e)).call(t,(function(t){var r=e[t];delete e[t],e[props.config.dynamicHireRelat]=r})),_babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_15___default().reject(e)})))||!0}}formContext.addField(e)}})));var _onClick=function(e,t){var r,n,o,i={props,dynamicMapComp,hireRelatMapRules,components,selects,rootValue:null==rootValue?void 0:rootValue.value,dataLoad,rootForm,routeQuery,appContext};null==attrs||null===(r=attrs.onClick)||void 0===r||r.call(i,e),-1!==(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Tn)(_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.UP,(null===(n=props.config)||void 0===n?void 0:n.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_16__.Qd)(e)||(e={}),(0,_components_helper_eventOrchestration_js__WEBPACK_IMPORTED_MODULE_21__.bt)((0,_Users_caowenbin_asia_xm_code_new_web_sa_egretimp_resolver_node_modules_babel_runtime_corejs3_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_24__.A)((0,_Users_caowenbin_asia_xm_code_new_web_sa_egretimp_resolver_node_modules_babel_runtime_corejs3_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_24__.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,r){var n,o,i,s;console.error("component render failer",(null==lang||null===(n=lang.value)||void 0===n?void 0:_babel_runtime_corejs3_core_js_stable_instance_index_of__WEBPACK_IMPORTED_MODULE_12___default()(n).call(n,"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,r)})),function(){var e,t,r=getFncomponentProps(),n=(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.qg)({config:props.config,props,component:props.component,modelValue,selects,lang:lang.value,vm:instance.proxy}),o=null==n?void 0:n.onClick;delete n.onClick;var i=(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.M9)(props.config,lang.value,n,null==_isH5?void 0:_isH5.value,{lang,rootValue,dynamicMapComp,props,messageInstance:null==messageInstance?void 0:messageInstance.value,OPEN_DATA_RULES})((0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(currentComponent.value,(0,vue__WEBPACK_IMPORTED_MODULE_0__.mergeProps)({key:props.config.metaCode,ref:refFn,onVnodeMounted,onVnodeUnmounted},currentAttrs.value,{onClick:function(e,t){_onClick(e,t),null==o||o(e)}},r,n,vModelObjs),_isSlot(t=(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.yo)({config:props.config}))?t:{default:function(){return[t]}}));return"1"==(null===(e=props.config)||void 0===e?void 0:e.dialogFooterSlot)&&_dialogFooterTeleport.value?(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(vue__WEBPACK_IMPORTED_MODULE_0__.Teleport,{to:_dialogFooterTeleport.value},_isSlot(i)?i:{default:function(){return[i]}}):i}}}},76693:(e,t,r)=>{r.d(t,{FR:()=>u,Tl:()=>l,UU:()=>i,Wb:()=>o,_Q:()=>p,aZ:()=>s,dF:()=>c,dL:()=>a,xx:()=>n});var n="/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,r)=>{r.d(t,{dW:()=>$,Wg:()=>q});var n,o,i=r(7252),s=r(53811),a=r(37891),l=r(34963),c=r(39653),u=r(56213),p=r(49859),d=(r(44114),r(94870)),f=r.n(d),h=r(64007),m=r.n(h),y=r(8628),g=r.n(y),v=r(61240),b=r.n(v),_=r(56255),E=r.n(_),x=r(71426),S=r.n(x),w=r(26327),A=r.n(w),T=r(385),P=r.n(T),C=(r(16280),r(76918),r(23288),r(26099),r(27495),r(38781),r(25440),r(86226)),O=r.n(C),I=r(11393),k=r.n(I),D=function(){function e(t,r){var n=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,r="xxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return"".concat(("x"===e?t:3&t|8).toString(16))}));return k()(t="".concat(e,"_")).call(t,r,"_from_message")})),(0,p.A)(this,"getContext",(function(){return n.context})),r&&(this.context=(0,s.A)({subComponents:[]},r)),this.msgSdkInstance=t}return(0,u.A)(e,[{key:"insertComponent",value:function(e,t){var r=this;try{var i;O()(e).call(e,(function(e){var t,n,o=e.getContext();null===(t=o.props)||void 0===t||null===(t=t.customEvents)||void 0===t||O()(t).call(t,(function(e){r.msgSdkInstance.registerComponentCustomEvents((0,s.A)({id:o.id},e)),delete e.func})),null===(n=r.context.subComponents)||void 0===n||n.push(e.getContext())})),null===(i=this.msgSdkInstance)||void 0===i||i.postMessage({type:n.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:n.callMethod,methodName:o.changeLayoutMaskStatus,data:e})}},{key:"changeLayoutAreaStatus",value:function(e){var t;null===(t=this.msgSdkInstance)||void 0===t||t.postMessage({type:n.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)}}])}(),M="__SEEYON_UDC__";!function(e){e.callMethod="callMethod",e.message="message",e.callEvent="callEvent"}(n||(n={})),function(e){e.ready="ready",e.insertComponent="insertComponent",e.changeLayoutMaskStatus="changeLayoutMaskStatus",e.changeLayoutAreaStatus="changeLayoutAreaStatus"}(o||(o={}));var j=new(function(){return(0,u.A)((function e(){var t=this;(0,c.A)(this,e),(0,p.A)(this,"_identifying",M),(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,r){try{var n=e.data;if(!t._msgValidator(n))return;t._readyCallBack(n,r),t._callEvent(n)}catch(e){console.error(e)}})),(0,p.A)(this,"_eventListenerHandler",(function(){})),(0,p.A)(this,"contractComponent",(function(e,r){return new D(t,{type:e,id:null==r?void 0:r.id,isContract:!0})})),(0,p.A)(this,"createComponent",(function(e){return new D(t).createComponent(e)})),(0,p.A)(this,"registerComponentCustomEvents",(function(e){var r=e.id,n=e.type,o=e.func;t._customEvents[r]||(t._customEvents[r]={}),t._customEvents[r][n]=o})),(0,p.A)(this,"_customization",{CMI:{insertBtnForToolbar:function(e){var r=e.position,n=e.btns,o=e.id,i=t.contractComponent("UdcToolBar",{id:o}),s=[];null==n||O()(n).call(n,(function(e){s.push(t.createComponent({type:"UdcButton",props:e}))})),i.insertComponent(s,{position:r})},changeLayoutMaskStatus:function(e){var r=e.status,n=e.bgColor;t.contractComponent("UdcLayoutMask").changeLayoutMaskStatus({status:r,bgColor:n})},changeLayoutAreaStatus:function(e){var r=e.hiddenArea;t.contractComponent("UdcLayoutArea").changeLayoutAreaStatus({hiddenArea:r})}}}),(0,p.A)(this,"getCustomApi",(function(){var e=L.baseInfo.tenant||"CMI",r=t._customization[e];if(r)return r;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!==M||!n[e.type]||e._nameSpaceId!==this._nameSpaceId)}},{key:"_readyCallBack",value:function(e,t){var r,o,i;null===(r=e.data)||void 0===r||r.signatureMethods,null===(o=e.data)||void 0===o||o.version,e.type!==n.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(r){t._eventListener(r,e)},window.addEventListener("message",this._eventListenerHandler)}},{key:"_callEvent",value:function(e){var t=this;if(e.type===n.callEvent){var r=e.callEvents;null==r||O()(r).call(r,(function(e){var r,n,o=e.id,i=e.type;null===(r=t._customEvents[o])||void 0===r||null===(n=r[i])||void 0===n||n.call(r)}))}}},{key:"destory",value:function(){window.removeEventListener("message",this._eventListenerHandler)}},{key:"postMessage",value:function(e){(e.type==n.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:n.callMethod,methodName:o.ready}),this._registerEventListener(e)}}])}()),N={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,r){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,r){throw Error("setUdcComponentValue ONLY work under UDC app")},setUdcComponentViewState:function(e,t,r){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,r,n){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,r){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,r){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,r){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,r){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 j},baseInfo:{tenant:null}},L=N;window.__UDC_OPEN_SDK__||(window.__UDC_OPEN_SDK__={default:N});var R=function(e,t){var r=function(e){var t=window.__UDC_OPEN_SDK__.default;return e in window.__UDC_OPEN_SDK__&&(t=window.__UDC_OPEN_SDK__[e]),t}(e);r.baseInfo=t},B="SEND",F="SUBMIT",U="AGREE",V="DRAFT_HANDLE",W="GET_FORM_DATA",$=null,K=function(){return(0,u.A)((function e(t,r,n,o){(0,c.A)(this,e),(0,p.A)(this,"commonActionKey","common"),(0,p.A)(this,"showCopyModalCb",null),(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=r,this.bpmConfigs=n||{},this.params=o||{},this.setNativeMethods(),this.init()}),[{key:"init",value:function(){var e;window.parent!==window&&window.parent.postMessage({hasListener:!0},"*"),window.addEventListener("message",f()(e=this.messageListener).call(e,this))}},{key:"setNativeMethods",value:function(){var e=this,t=this.params,r=t.validate,n=t.dynamicMapComp,o=t.bpmSubmitBtn,i=t.toExecuteLoadServices,s=(t.messageInstance,this.bpmConfigs),c=s.getDetailReq,u=s.customValidate,p=s.saveValidate,d=function(){var t=(0,l.A)((0,a.A)().mark((function t(r){var i,s;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:return i=n[o],s=function(t){return function(){var n=(0,l.A)((0,a.A)().mark((function n(o){var i,s,c,u,p,d,f;return(0,a.A)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=e.bpmConfigs.saveAfter,e.saveResponse=o,s=e.params,c=s.copyModal,u=s.lang,p=s.calcShowCopyModal,n.prev=3,(d=p(o,r))&&(f=r.submitType,e.showCopyModalCb=function(){var t,r,n,o=(null==u||null===(t=u.value)||void 0===t?void 0:m()(t).call(t,"zh"))>-1?"提交成功":"Submit Success",i=(null==u||null===(r=u.value)||void 0===r?void 0:m()(r).call(r,"zh"))>-1?"保存成功":"Save Success",s=g()(n=[B,F,U]).call(n,f)?o:i;return e.showCopyModalCb=null,new(b())((function(e){var t,r;null==c||c({lang:null==u?void 0:u.value,type:"check",showcopy:!0,copytype:(null==u||null===(t=u.value)||void 0===t?void 0:m()(t).call(t,"zh"))>-1?"申请单号":"Application No.",copymsg:d,showCancle:!1,msg:s,handleOk:(r=(0,l.A)((0,a.A)().mark((function t(){return(0,a.A)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e(!0);case 1:case"end":return t.stop()}}),t)}))),function(){return r.apply(this,arguments)})})}))}),n.next=8,null==i?void 0:i(o,r);case 8:n.next=13;break;case 10:n.prev=10,n.t0=n.catch(3),console.error("saveAfter error, error:",n.t0);case 13:E()((function(){null==t||t(o)}),0);case 14:case"end":return n.stop()}}),n,null,[[3,10]])})));return function(e){return n.apply(this,arguments)}}()},t.abrupt("return",new(b())((function(e){var t,r=s((function(t){e(t)}));i?null==i||null===(t=i.vm)||void 0===t||t.click({afterRequestService:r}):(console.log("no set bpmSubmitBtn, or bpmSubmitBtn is invalid."),r({data:{success:!0}}))})));case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),f=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(b())((function(e){r((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:r,customValidate:u,validate:f,toSave:d,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 r=this.postOptions;this.postOptions=null,this.eventData=t,this.handleMessage&&this.handleMessage(e,r)}}},{key:"handleMessage",value:(r=(0,l.A)((0,a.A)().mark((function e(t,r){var n,o,i,s,l,c,u,p,d,f,h,m,y,v,b,_,E,x;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===(n=o.bpmInfo)||void 0===n?void 0:n.actionType,console.log("messageType==:",i),console.log("submitType==:",s),console.log("actionType==:",l),W!==i){e.next=25;break}if((p=null===(c=this.actions)||void 0===c||null===(c=c[s])||void 0===c?void 0:c.formAction)||(p=null===(d=this.actions)||void 0===d||null===(d=d[this.commonActionKey])||void 0===d?void 0:d.formAction),p||(p=this.getDefaultAction(o)),!p){e.next=16;break}return e.next=13,null===(f=p)||void 0===f?void 0:f({eventData:this.eventData,nativeMethods:this.nativeMethods});case 13:if(!1!==e.sent){e.next=16;break}return e.abrupt("return");case 16:if((h=null===(u=this.actions)||void 0===u||null===(u=u[s])||void 0===u?void 0:u.postMessageData)||(h=this.postMessageData),"function"!=typeof h){e.next=22;break}return e.next=21,h({eventData:this.eventData});case 21:h=e.sent;case 22:this.postMessage(h),e.next=38;break;case 25:if("PROCESS_ACTION_SUCCESS"!==i){e.next=38;break}return b=!0,b=!g()(m=["PROCESS_SHOW","BACK",V]).call(m,s),e.next=30,null===(y=this.showCopyModalCb)||void 0===y?void 0:y.call(this);case 30:if((_=null===(v=this.actions)||void 0===v||null===(v=v[s])||void 0===v?void 0:v.successAction)||(_=null===(E=this.actions)||void 0===E||null===(E=E[this.commonActionKey])||void 0===E?void 0:E.successAction),_||(_=this.getDefaultAction(o)),!_){e.next=37;break}return e.next=36,null===(x=_)||void 0===x?void 0:x({eventData:this.eventData,originCloseFlag:b,nativeMethods:this.nativeMethods});case 36:b=e.sent;case 37:this.postMessage(null,{closeFlag:!!b});case 38:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.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,r,n,o,i,l,c,u,p,d=arguments;return(0,a.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=d.length>0&&void 0!==d[0]?d[0]:{},r=d.length>1?d[1]:void 0,console.log("postmessage formData ===:",t,r),this.postOptions=r,(null==r?void 0:r.closeFlag)?(console.log("走进判断关闭页面===="),window.parent!==window&&window.parent.postMessage({messageType:"CLOSE_WINDOW"},"*")):(i=!g()(n=["BACK"]).call(n,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,r=e.messageType,n=e.submitType;if(W===r)switch(n){case B:case F:case U:return(0,l.A)((0,a.A)().mark((function r(){var n,o,i,s,l,c;return(0,a.A)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t.nativeMethods,o=n.validate,i=n.toSave,s=n.getDetail,r.next=3,o(e);case 3:if(!r.sent){r.next=16;break}return r.next=7,i(e);case 7:if(null==(c=r.sent)||null===(l=c.data)||void 0===l||!l.success){r.next=13;break}return s(),r.abrupt("return",!0);case 13:case 16:return r.abrupt("return",!1);case 14:r.next=17;break;case 17:case"end":return r.stop()}}),r)})));case"NOTICE":case"GIVE":case V:case"MULTI_COOPERATE":return(0,l.A)((0,a.A)().mark((function r(){var n,o,i,s,l,c,u;return(0,a.A)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o=null==e||null===(n=e.bpmInfo)||void 0===n?void 0:n.actionType,i=t.nativeMethods,s=i.toSave,l=i.getDetail,o){r.next=14;break}return r.next=5,s(e);case 5:if(null==(u=r.sent)||null===(c=u.data)||void 0===c||!c.success){r.next=11;break}return l(),r.abrupt("return",!0);case 11:return r.abrupt("return",!1);case 12:r.next=15;break;case 14:return r.abrupt("return",!0);case 15:case"end":return r.stop()}}),r)})))}}},{key:"on",value:function(e,t){var r=this.actions[e]||(this.actions[e]=[]);S()(r).call(r,(function(e){return e===t}))||null==r||r.push(t)}},{key:"remove",value:function(e,t){var r=this.actions[e]||(this.actions[e]=[]),n=A()(r).call(r,(function(e){return e===t}));-1!==n&&(null==r||P()(r).call(r,n,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(b())((function(e){var r,n;n=function(r){console.log("instance===:",r),t.sdkInstance=r,e(r)},"iframe"===(r={mode:"iframe",tenant:"CMI"}).mode?(R(r.version,{tenant:r.tenant}),N.getUdcSdkForIframe().ready(n)):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 r;console.log("切换致远弹框===:",!0),null==t||null===(r=t.getCustomApi())||void 0===r||r.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(r){var n;console.log("insert btns==:",e,t),null==r||null===(n=r.getCustomApi())||void 0===n||n.insertBtnForToolbar({position:t,btns:e})}))}},{key:"destroy",value:function(){window.removeEventListener("message",this.messageListener),this.sdkInstance=null}}]);var e,t,r}();function q(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return $=(0,i.A)(K,t)}},71143:(e,t,r)=>{r.d(t,{A:()=>d});var n=r(64007),o=r.n(n),i=(r(2892),r(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,r=(0,i.useAttrs)(),n=(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 d(){var e,r;null===(e=messageInstance)||void 0===e||e.text(o()(r=t.lang).call(r,"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)(r),{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)(n.value),1),"1"==t.config.hintFlag?((0,i.openBlock)(),(0,i.createElementBlock)("span",{key:1,class:"label-tip",onClick:d},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)}}};r(38709);const d=(0,r(66262).A)(p,[["__scopeId","data-v-d2c369a2"]])},85845:(e,t,r)=>{r.d(t,{D:()=>i});var n=r(75286),o=r(24691);function i(e){var t=e.showTooltip,r=e.offset,i=e.displayValue,s=e.calcFn,a=(e.config,(0,n.ref)(!1)),l=(0,n.ref)(!1),c=(0,n.ref)(null),u=(0,n.ref)(!1),p=(0,n.ref)(null),d=(0,n.ref)(null);function f(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=f(p.value),t=(0,o.fW)(d.value,0-r.value);u.value=e<t,h=(0,n.watch)((function(){return i.value}),(function(i){(0,n.nextTick)((function(){t=(0,o.fW)(d.value,0-r.value),u.value=e<t}))})),m=function(){e=f(p.value),u.value=e<t},window.addEventListener("resize",m)}}),g=(0,n.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,n.computed)((function(){var e={onFocus:function(){if(a.value=!0,t.value){for(var e,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];c.value=null==n||null===(e=n[0])||void 0===e?void 0:e.target}},onBlur:function(){a.value=!1,t.value&&(l.value||(c.value=null))}};return e}));return(0,n.onMounted)((function(){(0,n.watch)(t,(function(e){e&&(null==y||y.calc())}),{immediate:!0})})),(0,n.onUnmounted)((function(){null==y||y.clear()})),{isFocus:a,isEnter:l,generateTooltipWrap:function(e,r){var o=r||{},s=o.wrapAttrs,a=void 0===s?{}:s,l=o.maintain,f=void 0!==l&&l,h=(0,n.defineComponent)(e);return f&&!t.value?(0,n.createVNode)(h,null,null):(0,n.createVNode)("div",(0,n.mergeProps)({class:"resolver-calc-contrainer"},a),[(0,n.createVNode)("span",{ref:function(e){return d.value=e},class:"resolver-calc-span"},[i.value]),u.value?(0,n.createVNode)((0,n.resolveComponent)("el-tooltip"),{placement:"top",visible:u.value&&!!c.value,content:i.value,virtualTriggering:!0,virtualRef:c.value},null):null,(0,n.createVNode)("div",(0,n.mergeProps)({class:"resolver-calc-wrap"},g.value,{ref:function(e){return p.value=e}}),[(0,n.createVNode)(h,v.value,null)])])}}}},44026:(e,t,r)=>{r.d(t,{bt:()=>K});var n=r(37891),o=r(53811),i=r(34963),s=(r(48598),r(44114),r(27495),r(71761),r(73363)),a=r.n(s),l=r(64007),c=r.n(l),u=r(86226),p=r.n(u),d=r(48079),f=r.n(d),h=r(14166),m=r.n(h),y=r(50697),g=r.n(y),v=r(71426),b=r.n(v),_=r(56255),E=r.n(_),x=r(61240),S=r.n(x),w=r(36586),A=r.n(w),T=r(12935),P=r(76693),C=r(19022),O=r(157),I=r(17427),k=r(52644),D=r(35169);function M(e){return j.apply(this,arguments)}function j(){return(j=(0,i.A)((0,n.A)().mark((function e(t){var r,o,i,s,a,l,c,u,p,d,f,h,m,y,v,_,E;return(0,n.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(r=t.serviceList,o=void 0===r?[]:r,i=t.requestTraceId,s=t.axiosInstance,a=t.dialogReq,l=t.dynamicMapComp,c=t.rootValue,u=t.dynamicHireRelat,p=t.messageCb,d=t.compConfig,f=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++)N(o[E],{dynamicMapComp:l,requestTraceId:i,dialogReq:a,mixinServiceConfig:_,rootValue:c,dynamicMapCompKeys:v,dynamicHireRelat:u,axiosInstance:s,messageCb:p,compConfig:d,messageInstance:f,lang:h,beforeRequestService:m,afterRequestService:y});case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function N(e,t){return L.apply(this,arguments)}function L(){return L=(0,i.A)((0,n.A)().mark((function e(t,r){var s,a,l,c,u,p,d,f,h,m,y,g,v,b,_,x;return(0,n.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:x=function(){return x=(0,i.A)((0,n.A)().mark((function e(){var r,b,_,x,w,P,C,k,D,M,j,N,L,U,V,W,$,K,q,z,H,G,Q,X,Y,J,Z,ee,te,re,ne,oe,ie=arguments;return(0,n.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,w=(0,I.Ho)({extendAttr:t.extendAttr}),P=null,C=null,((k=null==h?void 0:h.beforeRequestService)||g)&&(P=function(){var e=(0,i.A)((0,n.A)().mark((function e(){var t,r,o,i,s=arguments;return(0,n.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=!0,r=s.length,o=new Array(r),i=0;i<r;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(!k){e.next=12;break}return e.abrupt("return",null==k?void 0:k.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)}}()),((D=null==h?void 0:h.afterRequestService)||v)&&(C=function(){var e=(0,i.A)((0,n.A)().mark((function e(){var t,r,o,i=arguments;return(0,n.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=i.length,r=new Array(t),o=0;o<t;o++)r[o]=i[o];return e.next=3,null==v?void 0:v.apply(void 0,r);case 3:return e.next=5,null==D?void 0:D.apply(void 0,r);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=F(t.outParamMappingList,{dynamicMapComp:s,dynamicMapCompKeys:u,dynamicHireRelat:p}),null!==(M=x)&&void 0!==M&&M.vm&&(b&&((0,I.Ts)(x,"serviceCurrentChangeLoad",!0),x.vm.page.pageNum=1,E()((function(){(0,I.Ts)(x,"serviceCurrentChangeLoad",!1)}),200)),(0,T.b0)(null===(j=x.vm.page)||void 0===j?void 0:j.pageNum)||(0,T.kZ)(null===(N=x.vm.page)||void 0===N?void 0:N.pageNum)||(0,I.oY)(_,t.pageNum||"pageNum",null===(V=x.vm.page)||void 0===V?void 0:V.pageNum),(0,T.b0)(null===(L=x.vm.page)||void 0===L?void 0:L.pageSize)||(0,T.kZ)(null===(U=x.vm.page)||void 0===U?void 0:U.pageSize)||(0,I.oY)(_,t.pageSize||"pageSize",null===(W=x.vm.page)||void 0===W?void 0:W.pageSize)),_=(0,o.A)({},_)),$=t.serviceCode,K=t.httpMethod||"post",q={aid_language:y,requestTraceId:a,pmHandleBusinessIdentity:{busiIdentityId:t.busiIdentityId,pageMetaId:t.pageMetaId,tenantId:t.tenantId,mainServiceCode:null==l?void 0:l.mainServiceCode}},(null==w?void 0:w.notDefaultParmas)&&(q={}),z=(0,I.Vv)(q,_),q=z,H=!0,P&&(H=P({dynamicMapComp:s,requestTraceId:a,mixinServiceConfig:l,rootValue:c,dynamicHireRelat:p,compConfig:h,service:t,reqData:q})),e.next=22,H;case 22:if(!1!==e.sent){e.next=25;break}return e.abrupt("return");case 25:return G={url:$,method:K,data:q},"get"===K.toLocaleLowerCase()&&(G.params=q,delete G.data),e.next=29,d&&d(G);case 29:if(Q=e.sent,!C){e.next=33;break}return e.next=33,C(Q,{dynamicMapComp:s,requestTraceId:a,mixinServiceConfig:l,rootValue:c,dynamicHireRelat:p,compConfig:h,service:t,reqData:q});case 33:if(X="get"===K.toLocaleLowerCase()||"1"==t.transactionType||(null==w?void 0:w.noSuccessIip),Y={messageCb:f,service:t,compConfig:h,noSuccessIip:X},w.resultCodeKey&&(Y.resultCodeKey=w.resultCodeKey),(0,O.N)(null==Q?void 0:Q.data,m,Y)){e.next=40;break}return e.next=39,S().reject();case 39:return e.abrupt("return");case 40:B(t.outParamMappingList,{dynamicMapComp:s,dynamicMapCompKeys:u,dynamicHireRelat:p,outResult:Q.data}),null!==(r=x)&&void 0!==r&&r.vm&&(ee=null===(J=Q.data)||void 0===J?void 0:J.result,te=t.pageTotalCount,re=/^_deep:(.+)$/,(ne=null===(Z=t.pageTotalCount)||void 0===Z?void 0:Z.match(re))&&(ee=Q.data,te=ne[1]),oe=A()((0,I.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=r.dynamicMapComp,a=r.requestTraceId,r.dialogReq,l=r.mixinServiceConfig,c=r.rootValue,u=r.dynamicMapCompKeys,p=r.dynamicHireRelat,d=r.axiosInstance,f=r.messageCb,h=r.compConfig,m=r.messageInstance,y=r.lang,g=r.beforeRequestService,v=r.afterRequestService,"1"==t.transactionType&&(b=F(t.outParamMappingList,{dynamicMapComp:s,dynamicMapCompKeys:u,dynamicHireRelat:p}))&&((0,I.Ts)(b,"serviceSizeChange",(function(e,t,r){_()})),(0,I.Ts)(b,"serviceCurrentChange",(function(e,t,r){_(!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,r=t.emptyUpdate,n=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,d=(0,C.qK)(o,l,i);d.length>1&&console.error("search arg muti",t,d);var f,h=d[0],m=null==n||null===(s=n[h])||void 0===s?void 0:s.refValue;return(((0,T.b0)(m)||(0,T.kZ)(m))&&r||!(0,T.b0)(m)&&!(0,T.kZ)(m))&&(f=-1!==(null==p?void 0:c()(p).call(p,"->"))?(null==p?void 0:p.split("->"))||[]:(null==p?void 0:p.split("."))||[],(0,I.oY)(e,f,(0,T.b0)(m)||(0,T.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,r=t.dynamicMapComp,n=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,d=e.primaryKeys,h=void 0===d?[]:d,y=(0,C.qK)(n,c,o);y.length>1&&console.error("search arg muti",e,y);var g=y[0],v=r[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,T.cy)(_)?(0,T.cy)(v.refValue)&&(0,T.cy)(_)&&(_=(0,I.q2)(v.refValue,_,(function(e,t){var r;return!(!h||!h.length)&&(null===(r=f()(h).call(h,(function(r){return((0,T.sw)(e[r])||(0,T.sw)(t[r]))&&e[r]==t[r]})))||void 0===r?void 0:m()(r).call(r,(function(e){return e})))}))):_=(0,T.cy)(v.refValue)?v.refValue:[]),v.refValue=_}}))}function F(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,r=t.dynamicMapComp,n=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,C.qK)(n,l,o);c.length>1&&console.error("search arg muti",s,c);var u=c[0];if(u){var p=r[u];if("CustomComponentTable"===p.metaType||"CustomComponentTableH5"===p.metaType)return p}}}function U(e){var t,r=e.beforeOpenDialog,s=e.afterOpenDialog,l=e.middleOpenDialog,c=e.components,u=e.rootValue,d=e.polyfillConfigs,h=e.pagePopupMap,m=e.axiosInstance,y=e.dynamicMapComp,v=e.dynamicHireRelat,b=e.lang,_=e.buttonActions,E=e.openChildDialog,x=e.appContext,S=e.compConfig,w=(0,I.Ho)({extendAttr:h.extendAttr}),A=h.popupBusiIdentityId,T=g()(y),P=R(h.inParamMappingList||[],{dynamicMapComp:y,dynamicMapCompKeys:T,dynamicHireRelat:v}),C="1"==(null==h?void 0:h.objOrList),O=(null==h||null===(t=h.outParamMappingList)||void 0===t?void 0:f()(t).call(t,(function(e){var t=e.orignParam?e.orignParam.split("->"):[],r=e.orignParam?"1"!=(null==w?void 0:w.bindFormData)||C?t[t.length-1]:t.join("."):"";return(0,o.A)((0,o.A)({},e),{},{orignParam:r})})))||[],k={},M={};if(C){var j,N=[];k=null===(j=O)||void 0===j?void 0:a()(j).call(j,(function(e,t){var r=t.orignParam,n=t.destParam,o=t.primaryKeyFlag,i=void 0===o?"":o,s=n?n.split("->"):[];return e[n?s[s.length-1]:""]=r,"1"==i&&N.push(r),e}),{});var L=F(O=[{orignParam:"",destParam:h.parentTable||"",primaryKeys:N,isList:!0}],{dynamicMapComp:y,dynamicMapCompKeys:T,dynamicHireRelat:v});M.selections=(null==L?void 0:L.refValue)||[],M.primaryKeys=N}var U={},V={},W=null,$={};h.outDisplayTrigger&&($[h.outDisplayTrigger]=function(e){return{onClick:function(){var e,t=U.tableSelectedInfo;C&&(t=null===(e=U.tableSelectedInfo)||void 0===e?void 0:f()(e).call(e,(function(e){var t,r=(0,o.A)({},e);return p()(t=g()(k)).call(t,(function(t){k[t]&&(r[t]=e[k[t]])})),r}))),"1"!=(null==w?void 0:w.bindFormData)||C||(t=V);var r=null==S?void 0:S.middleOpenDialog,s=l;(r||s)&&(l=function(){var e=(0,i.A)((0,n.A)().mark((function e(t){var i,a;return(0,n.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==r?void 0:r((0,o.A)((0,o.A)({},t),{},{outputParams:a})));case 7:return e.abrupt("return",null==r?void 0:r(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(O,{dynamicMapComp:y,dynamicMapCompKeys:T,dynamicHireRelat:v,outResult:e}),null===(t=W)||void 0===t||t(),H(e)}l&&(a=l({dynamicMapComp:y,rootValue:u,dynamicHireRelat:v,compConfig:S,pagePopupMap:h,inputParams:P,outputParams:t})||a),(0,I.yL)(a)?a.then((function(e){c(e)})):c(a)}}}),h.closedTrigger&&($[h.closedTrigger]=function(e){return{onClick:function(){var e;null===(e=W)||void 0===e||e(),H()}}});var K=null==S?void 0:S.beforeOpenDialog,q=r;r=function(){var e=(0,i.A)((0,n.A)().mark((function e(){var t,r,o,i,s,a=arguments;return(0,n.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(null===D.dW||void 0===D.dW||null===(t=D.dW.changeSlide)||void 0===t||t.call(D.dW,!1),r=!0,o=a.length,i=new Array(o),s=0;s<o;s++)i[s]=a[s];return q&&(r=null==q?void 0:q.apply(void 0,i)),e.next=6,r;case 6:if(!1!==e.sent){e.next=9;break}return e.abrupt("return",!1);case 9:if(!K){e.next=13;break}return e.abrupt("return",null==K?void 0:K.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==S?void 0:S.afterOpenDialog,r=s;s=function(){var e=(0,i.A)((0,n.A)().mark((function e(){var o,i,s,a,l=arguments;return(0,n.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(null===D.dW||void 0===D.dW||null===(o=D.dW.changeSlide)||void 0===o||o.call(D.dW,!0),i=l.length,s=new Array(i),a=0;a<i;a++)s[a]=l[a];null==r||r.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:S,pagePopupMap:h,inputParams:P,outputParams:e})}function G(){W=E({buttonActions:_,dialogProps:(0,o.A)((0,o.A)({},w||{}),{},{beforeClose:function(){H()}}),parentRootValue:u,parentDynamicMapComp:y,selectionsObj:M,busiIdentityId:A,axiosInstance:m,lang:b,loadEvnetsReq:P,initData:P,components:c,parentSelects:null==S?void 0:S._selects,polyfillConfigs:(0,o.A)((0,o.A)({},$),d||{}),rootStoreChange:function(e){U=e},rootDataChange:function(e){V=e}},x)}r&&(z=r({dynamicMapComp:y,rootValue:u,dynamicHireRelat:v,compConfig:S,pagePopupMap:h,inputParams:P})),null!=z?(0,I.yL)(z)?z.then((function(e){!1!==e&&G()})):z&&G():G()}function V(e,t){return W.apply(this,arguments)}function W(){return W=(0,i.A)((0,n.A)().mark((function e(t,r){var s,a,l,u,p,d,f,h,m,y,g,v,b,_,E,x,w,A,T,C,I,D,M,j,N,L;return(0,n.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=r.beforeDataValidRequestService,u=r.afterDataValidRequestService,p=r.confirmInstance,d=r.dynamicMapComp,f=r.requestTraceId,h=r.compConfig,m=r.mixinServiceConfig,y=r.rootValue,g=r.builtPolyfillReq,r.axiosInstance,v=r.lang,b=y||{},_=P.dL,((w=null==h?void 0:h.beforeDataValidRequestService)||l)&&(E=function(){var e=(0,i.A)((0,n.A)().mark((function e(){var t,r,o,i,s=arguments;return(0,n.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=!0,r=s.length,o=new Array(r),i=0;i<r;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(!w){e.next=12;break}return e.abrupt("return",null==w?void 0:w.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)}}()),((A=null==h?void 0:h.afterDataValidRequestService)||u)&&(x=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];null==u||u.apply(void 0,t),null==A||A.apply(void 0,t)}),T=!0,E&&(T=E({dynamicMapComp:d,requestTraceId:f,mixinServiceConfig:m,rootValue:y,compConfig:h,service:t,reqData:b})),e.next=11,T;case 11:if(!1!==e.sent){e.next=14;break}return e.abrupt("return");case 14:return e.next=16,(0,k.ZW)(_,(0,o.A)((0,o.A)((0,o.A)({aid_language:v,requestTraceId:f,busiIdentityId:t.busiIdentityId},b),g||{}),{},{pmHandleBusinessIdentity:{busiIdentityId:t.busiIdentityId,pageMetaId:t.pageMetaId,tenantId:t.tenantId,mainServiceCode:null==m?void 0:m.mainServiceCode}}),{method:"post"});case 16:if(C=e.sent,I=C.data||{},null!==(s=C.data)&&void 0!==s&&s.baseResponse&&(I=null===(D=C.data)||void 0===D?void 0:D.baseResponse),M=I.resultCode,j=(null===(a=I)||void 0===a?void 0:a.resultMessage)||"",N="",L=!1,O.O.SUCCESS===M){e.next=40;break}e.t0=M,e.next=e.t0===O.O.WARNING?27:e.t0===O.O.ERROR?30:e.t0===O.O.INFO?33:e.t0===O.O.OTHER?35:37;break;case 27:return N="warning",L=!0,e.abrupt("break",39);case 30:return N="error",L=!1,e.abrupt("break",39);case 33:return N="info",e.abrupt("break",39);case 35:case 37:return N="error",e.abrupt("break",39);case 39:return e.abrupt("return",new(S())((function(e,t){p(j,(null==v?void 0:c()(v).call(v,"zh"))>-1?"提示":"Hint",{type:N,showCancelButton:L}).then((function(){L?(x&&x(C,{valid:!0}),e(!0)):(x&&x(C,{valid:!1}),e(!1))})).catch((function(){x&&x(C,{valid:!1}),t(!1)}))})));case 40:return x&&x(C,{valid:!0}),e.abrupt("return",!0);case 42:case"end":return e.stop()}}),e)}))),W.apply(this,arguments)}function $(e){if("1"==(null==e?void 0:e.closedType)){var t=window.top;null==t||t.close()}else{var r;null===(r=window)||void 0===r||null===(r=r.history)||void 0===r||r.back()}}function K(){return q.apply(this,arguments)}function q(){return q=(0,i.A)((0,n.A)().mark((function e(){var t,r,o,i,s,a,l,c,u,p,d,f,h,m,y,g,v,_,E,x,S,w,A,T,P,C,O,I,k,D,j,N,L,R,B,F=arguments;return(0,n.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=(r=F.length>0&&void 0!==F[0]?F[0]:{}).beforeDataValidRequestService,i=r.afterDataValidRequestService,s=r.beforeRequestService,a=r.afterRequestService,l=r.beforeOpenDialog,c=r.afterOpenDialog,u=r.middleOpenDialog,p=r.components,d=r.props,f=r.requestTraceId,h=r.axiosInstance,m=r.polyfillConfigs,y=r.buttonActions,g=r.rootValue,v=r.confirmInstance,_=r.dialogReq,E=r.dynamicMapComp,x=r.messageInstance,S=r.openChildDialog,w=r.messageCb,A=r.lang,T=r.builtPolyfillReq,P=r.appContext,C=d.config.lcpPageServiceMapVOList||[],O=b()(C).call(C,(function(e){return"1"==e.serviceType})),null==(I=(null===(t=d.config)||void 0===t?void 0:t.lcpPageRuleVOList)||[])||!I.length){e.next=11;break}return k=I[0],e.next=8,V(k,{dynamicMapComp:E,requestTraceId:f,rootValue:g,axiosInstance:h,mixinServiceConfig:O,compConfig:d.config,confirmInstance:v,builtPolyfillReq:T,beforeDataValidRequestService:o,afterDataValidRequestService:i,lang:A});case 8:if(e.sent){e.next=11;break}return e.abrupt("return");case 11:null!=C&&C.length&&(j=null===(D=d.config)||void 0===D?void 0:D.dynamicHireRelat,M({serviceList:C,axiosInstance:h,requestTraceId:f,rootValue:g,dynamicMapComp:E,dynamicHireRelat:j,messageInstance:x,messageCb:w,compConfig:d.config,dialogReq:_,lang:A,beforeRequestService:s,afterRequestService:a})),(N=d.config.lcpPagePopupMapVO)&&(R=null===(L=d.config)||void 0===L?void 0:L.dynamicHireRelat,U({beforeOpenDialog:l,afterOpenDialog:c,middleOpenDialog:u,components:p,rootValue:g,polyfillConfigs:m,pagePopupMap:N,axiosInstance:h,dynamicMapComp:E,dynamicHireRelat:R,appContext:P,lang:A,messageCb:w,buttonActions:y,openChildDialog:S,compConfig:d.config})),(B=d.config.lcpPageClosedMapVO)&&$(B);case 16:case"end":return e.stop()}}),e)}))),q.apply(this,arguments)}},7365:(e,t,r)=>{r.d(t,{Mn:()=>x,QT:()=>w,o7:()=>A});var n=r(37891),o=r(53811),i=r(34963),s=r(71426),a=r.n(s),l=r(73363),c=r.n(l),u=r(66615),p=r.n(u),d=r(86226),f=r.n(d),h=r(50697),m=r.n(h),y=(r(11393),r(56255),r(96319)),g=r.n(y),v=r(61240),b=r.n(v),_=(r(9318),r(19022),r(17427)),E=r(157);function x(){return S.apply(this,arguments)}function S(){return S=(0,i.A)((0,n.A)().mark((function e(){var t,r,i,s,l,c,u,p,d,f,h,m,y,v,x,S,w,A,T,P,C,O,I,k,D,M,j,N,L=arguments;return(0,n.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=L.length>0&&void 0!==L[0]?L[0]:[],i=(r=L.length>1?L[1]:void 0).alongLoad,s=r.requestTraceId,l=r.businessIdentityReqData,c=void 0===l?{}:l,u=r.axiosInstance,p=r.messageInstance,d=r.reqData,f=r.respCb,h=r.loadEventsBefore,m=r.notLoadCb,i||null==d||!d.notLoad){e.next=5;break}return m&&m(),e.abrupt("return");case 5:if(delete(0,o.A)({},d||{}).notLoad,y=g()(t).call(t,(function(e){return"1"==e.eventType})),v=a()(t).call(t,(function(e){return"1"==e.serviceType})),y&&y.length){e.next=12;break}return m&&m(),e.abrupt("return");case 12:x=0;case 13:if(!(x<y.length)){e.next=52;break}if(C=y[x],O=C.serviceCode,I=C.httpMethod||"post",k=(0,o.A)({requestTraceId:s,pmHandleBusinessIdentity:(0,o.A)({busiIdentityId:C.busiIdentityId,pageMetaId:C.pageMetaId,tenantId:C.tenantId,mainServiceCode:null==v?void 0:v.mainServiceCode},c)},d||{}),D={url:O,method:I,data:k},"get"===I.toLocaleLowerCase()&&(D.params=k,delete D.data),!h||"function"!=typeof h){e.next=36;break}if(M=!0,h&&(M=h({reqConfig:D})),null==M){e.next=36;break}if(!(0,_.yL)(M)){e.next=33;break}return e.next=27,M;case 27:if(!1!==(M=e.sent)){e.next=30;break}return e.abrupt("return");case 30:(0,_.Qd)(M)&&(D=M),e.next=36;break;case 33:if(!1!==M){e.next=36;break}return console.warn("请求中断"),e.abrupt("return");case 36:return null===(S=window)||void 0===S||null===(S=S.performance)||void 0===S||S.mark("get_load_detal_start"),e.next=39,u.value&&u.value(D);case 39:if(j=e.sent,null===(w=window)||void 0===w||null===(w=w.performance)||void 0===w||w.mark("get_load_detal_end"),console.log("get_load_detal",null===(A=window)||void 0===A||null===(A=A.performance)||void 0===A?void 0:A.measure("get_load_detal","get_load_detal_start","get_load_detal_end")),!(0,E.N)(j.data,p,{noSuccessIip:!0})){e.next=45;break}return f&&f(null==j||null===(N=j.data)||void 0===N?void 0:N.result),e.abrupt("return");case 45:return f&&f({}),null==p||null===(T=p.value)||void 0===T||T.error((null==j||null===(P=j.data)||void 0===P?void 0:P.resultMessage)||""),e.next=49,b().reject();case 49:x++,e.next=13;break;case 52:case"end":return e.stop()}}),e)}))),S.apply(this,arguments)}function w(e,t){var r,n=null==e||null===(r=e.pmPageMetaList)||void 0===r?void 0:a()(r).call(r,(function(e){return"PC-root-panel"===e.metaType||"H5-root-panel"===e.metaType}));if(n&&(e.pmPageMetaList=n.pmPageMetaList,delete n.pmPageMetaList,e.rootOptionComp=n),t){var o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e;return t&&(metaCodes=t.split("->"),r=c()(metaCodes).call(metaCodes,(function(e,t){var r;return e&&e.pmPageMetaList&&p()(e.pmPageMetaList)?a()(r=e.pmPageMetaList).call(r,(function(e){return e.metaCode===t})):e}),e)),r}(e,t);o&&(e.pmPageMetaList=[o])}return e}function A(e){var t;f()(t=m()(e)).call(t,(function(t){(0,_.$3)(e[t],"eventInit")&&(e[t].eventInit=!1)}))}},84667:(e,t,r)=>{r.d(t,{W:()=>h,A:()=>l});var n=r(75286),o=r(56255),i=r.n(o),s=r(86226),a=r.n(s);r(2892),r(42710);const l={inheritAttrs:!1,name:"LazyLoadComponent",emits:["beforeInit","init","before-enter","before-leave","after-enter","after-leave"],props:{config:Object,timeout:{type:Number},tagName:{type:String,default:""},viewport:{type:"undefined"!=typeof window?window.HTMLElement:Object,default:function(){return null}},threshold:{type:String,default:"0px"},direction:{type:String,default:"vertical"},maxWaitingTime:{type:Number,default:50}},setup:function(e,t){var r=t.slots,o=t.emit,s=(t.attrs,Math.random()),l=(0,n.ref)(null),c=null,u=(0,n.reactive)({isInit:!1,timer:null,io:null,loading:!1});function p(e){null==e||a()(e).call(e,(function(e){var t;(e.isIntersecting||e.intersectionRatio)&&(d(),null===(t=c)||void 0===t||t.unobserve(l.value))}))}function d(){var t;o("beforeInit"),u.loading=!0,t=function(){u.isInit=!0,o("init")},i()((function(){u.isInit||t()}),e.maxWaitingTime),(window.requestAnimationFrame||function(e){return i()(e,1e3/60)})(t)}function f(t){t&&(c&&l.value&&c.unobserve(l.value),l.value=t,u.isInit||function(){if(!e.timeout){var t;switch(e.direction){case"vertical":t="".concat(e.threshold," 0px");break;case"horizontal":t="0px ".concat(e.threshold)}try{(c=new window.IntersectionObserver(p,{rootMargin:t,root:e.viewport,threshold:[0,Number.MIN_VALUE,.01,.25,.5,.75,1]})).observe(l.value)}catch(e){d()}}}())}return e.timeout&&i()((function(){d()}),e.timeout),(0,n.onBeforeUnmount)((function(){var t;c&&(console.log("props.config=:",e.config),null===(t=c)||void 0===t||t.disconnect())})),function(){return(0,n.createVNode)(n.Fragment,null,[u.isInit?null==r?void 0:r.default(u.loading):(0,n.createVNode)("div",{style:"width: 100%",key:s,ref:f},[null!=r&&r.skeleton?null==r?void 0:r.skeleton():null])])}}};var c=r(29544),u=r.n(c),p=r(8628),d=r.n(p);const f=u()({name:"LazyLoadSkeleton"},{__name:"LazyLoadSkeleton",props:{type:{type:String,default:"text",validator:function(e){var t;return d()(t=["text","avatar","image","button"]).call(t,e)}},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:null},animated:{type:Boolean,default:!0},round:{type:Boolean,default:!1}},setup:function(e){var t=e,r=(0,n.computed)((function(){var e={};return t.width&&(e.width=isNaN(t.width)?t.width:"".concat(t.width,"px")),t.height&&(e.height=isNaN(t.height)?t.height:"".concat(t.height,"px")),t.round&&(e.borderRadius="50%"),e}));return function(t,o){return(0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(["skeleton-item","skeleton-".concat(e.type),e.animated&&"skeleton-animated"]),style:(0,n.normalizeStyle)(r.value)},[(0,n.renderSlot)(t.$slots,"default")],6)}}});r(87128);const h=(0,r(66262).A)(f,[["__scopeId","data-v-5517e618"]])},20075:(e,t,r)=>{r.r(t),r.d(t,{default:()=>Va});var n,o,i,s,a,l,c,u,p,d,f,h,m,y,g,v=r(37891),b=r(34963),_=r(53474),E=r(53811),x=r(49859),S=r(75286),w=(r(76918),r(23288),r(2892),r(26099),r(27495),r(90906),r(38781),r(25440),r(36586)),A=r.n(w),T=r(73363),P=r.n(T),C=r(50697),O=r.n(C),I=r(11393),k=r.n(I),D=r(66615),M=r.n(D),j=r(48079),N=r.n(j),L=r(18979),R=r.n(L),B=r(129),F=r.n(B),U=r(82895),V=r.n(U),W=r(96319),$=r.n(W),K=r(71426),q=r.n(K),z=r(31721),H=r.n(z),G=r(14166),Q=r.n(G),X=r(8628),Y=r.n(X),J=r(74707),Z=r.n(J),ee=r(86226),te=r.n(ee),re=r(64007),ne=r.n(re),oe=r(84061),ie=r(66825),se=["data-prefix"],ae={ref:"hiddenColumns",class:"hidden-columns"},le=r(12223),ce=!1;function ue(){if(!ce){ce=!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),r=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(h=/\b(iPhone|iP[ao]d)/.exec(e),m=/\b(iP[ao]d)/.exec(e),d=/Android/i.exec(e),y=/FBAN\/\w+;/i.exec(e),g=/Mobile/i.exec(e),f=!!/Win64/.exec(e),t){(n=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN)&&document&&document.documentMode&&(n=document.documentMode);var v=/(?:Trident\/(\d+.\d+))/.exec(e);l=v?parseFloat(v[1])+4:n,o=t[2]?parseFloat(t[2]):NaN,i=t[3]?parseFloat(t[3]):NaN,(s=t[4]?parseFloat(t[4]):NaN)?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),a=t&&t[1]?parseFloat(t[1]):NaN):a=NaN}else n=o=i=a=s=NaN;if(r){if(r[1]){var b=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);c=!b||parseFloat(b[1].replace("_","."))}else c=!1;u=!!r[2],p=!!r[3]}else c=u=p=!1}}var pe,de={ie:function(){return ue()||n},ieCompatibilityMode:function(){return ue()||l>n},ie64:function(){return de.ie()&&f},firefox:function(){return ue()||o},opera:function(){return ue()||i},webkit:function(){return ue()||s},safari:function(){return de.webkit()},chrome:function(){return ue()||a},windows:function(){return ue()||u},osx:function(){return ue()||c},linux:function(){return ue()||p},iphone:function(){return ue()||h},mobile:function(){return ue()||h||m||d||g},nativeApp:function(){return ue()||y},android:function(){return ue()||d},ipad:function(){return ue()||m}},fe=de,he=!!(typeof window<"u"&&window.document&&window.document.createElement),me=he;he&&!window.addEventListener&&window.attachEvent,he&&window.screen;me&&(pe=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""));function ye(e){var t=0,r=0,n=0,o=0;return"detail"in e&&(r=e.detail),"wheelDelta"in e&&(r=-e.wheelDelta/120),"wheelDeltaY"in e&&(r=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=r,r=0),n=10*t,o=10*r,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||o)&&e.deltaMode&&(1==e.deltaMode?(n*=40,o*=40):(n*=800,o*=800)),n&&!t&&(t=n<1?-1:1),o&&!r&&(r=o<1?-1:1),{spinX:t,spinY:r,pixelX:n,pixelY:o}}ye.getEventType=function(){return fe.firefox()?"DOMMouseScroll":function(e,t){if(!me||t&&!("addEventListener"in document))return!1;var r="on"+e,n=r in document;if(!n){var o=document.createElement("div");o.setAttribute(r,"return;"),n="function"==typeof o[r]}return!n&&pe&&"wheel"===e&&(n=document.implementation.hasFeature("Events.wheel","3.0")),n}("wheel")?"wheel":"mousewheel"};var ge=ye;const ve={beforeMount(e,t){!function(e,t){if(e&&e.addEventListener){const r=function(e){const r=ge(e);t&&Reflect.apply(t,this,[e,r])};e.addEventListener("wheel",r,{passive:!0})}}(e,t.value)}};var be=r(76172),_e=r(97786);const Ee={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 xe=r(22720);const Se=Symbol("scrollbarContextKey"),we=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var o=e[t];n[o[0]]=o[1]}return n},Ae=()=>{},Te=(Object.assign,Object.prototype.hasOwnProperty),Pe=(e,t)=>Te.call(e,t),Ce=Array.isArray,Oe=e=>"function"==typeof e,Ie=e=>"string"==typeof e,ke=e=>null!==e&&"object"==typeof e,De=(Object.prototype.toString,e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))}),Me=/-(\w)/g,je=(De((e=>e.replace(Me,((e,t)=>t?t.toUpperCase():"")))),/\B([A-Z])/g),Ne=(De((e=>e.replace(je,"-$1").toLowerCase())),De((e=>e.charAt(0).toUpperCase()+e.slice(1))));De((e=>e?`on${Ne(e)}`:""));const Le="__epPropKey",Re=(e,t)=>{if(!ke(e)||ke(r=e)&&r[Le])return e;var r;const{values:n,required:o,default:i,type:s,validator:a}=e,l=n||a?r=>{let o=!1,s=[];if(n&&(s=Array.from(n),Pe(e,"default")&&s.push(i),o||(o=s.includes(r))),a&&(o||(o=a(r))),!o&&s.length>0){const e=[...new Set(s)].map((e=>JSON.stringify(e))).join(", ");(0,S.warn)(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${e}], got value ${JSON.stringify(r)}.`)}return o}:void 0,c={type:s,required:!!o,validator:l,[Le]:!0};return Pe(e,"default")&&(c.default=i),c},Be=e=>we(Object.entries(e).map((([e,t])=>[e,Re(t,e)]))),Fe=Be({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean});var Ue=(e,t)=>{const r=e.__vccOpts||e;for(const[e,n]of t)r[e]=n;return r};const Ve="el",We=(e,t,r,n,o)=>{let i=`${e}-${t}`;return r&&(i+=`-${r}`),n&&(i+=`__${n}`),o&&(i+=`--${o}`),i},$e=Symbol("namespaceContextKey"),Ke=e=>{const t=e||((0,S.getCurrentInstance)()?(0,S.inject)($e,(0,S.ref)(Ve)):(0,S.ref)(Ve));return(0,S.computed)((()=>(0,S.unref)(t)||Ve))},qe=(e,t)=>{const r=Ke(t);return{namespace:r,b:(t="")=>We(r.value,e,t,"",""),e:t=>t?We(r.value,e,"",t,""):"",m:t=>t?We(r.value,e,"","",t):"",be:(t,n)=>t&&n?We(r.value,e,t,n,""):"",em:(t,n)=>t&&n?We(r.value,e,"",t,n):"",bm:(t,n)=>t&&n?We(r.value,e,t,"",n):"",bem:(t,n,o)=>t&&n&&o?We(r.value,e,t,n,o):"",is:(e,...t)=>{const r=!(t.length>=1)||t[0];return e&&r?`is-${e}`:""},cssVar:e=>{const t={};for(const n in e)e[n]&&(t[`--${r.value}-${n}`]=e[n]);return t},cssVarName:e=>`--${r.value}-${e}`,cssVarBlock:t=>{const n={};for(const o in t)t[o]&&(n[`--${r.value}-${e}-${o}`]=t[o]);return n},cssVarBlockName:t=>`--${r.value}-${e}-${t}`}};class ze extends Error{constructor(e){super(e),this.name="ElementPlusError"}}const He=(0,S.defineComponent)({__name:"thumb",props:Fe,setup(e){const t=e,r=(0,S.inject)(Se),n=qe("scrollbar");r||function(){throw new ze("[Thumb] can not inject scrollbar context")}();const o=(0,S.ref)(),i=(0,S.ref)(),s=(0,S.ref)({}),a=(0,S.ref)(!1);let l=!1,c=!1,u=xe.oc?document.onselectstart:null;const p=(0,S.computed)((()=>Ee[t.vertical?"vertical":"horizontal"])),d=(0,S.computed)((()=>(({move:e,size:t,bar:r})=>({[r.size]:t,transform:`translate${r.axis}(${e}%)`}))({size:t.size,move:t.move,bar:p.value}))),f=(0,S.computed)((()=>o.value[p.value.offset]**2/r.wrapElement[p.value.scrollSize]/t.ratio/i.value[p.value.offset])),h=e=>{var t;if(e.stopPropagation(),e.ctrlKey||[1,2].includes(e.button))return;null==(t=window.getSelection())||t.removeAllRanges(),y(e);const r=e.currentTarget;r&&(s.value[p.value.axis]=r[p.value.offset]-(e[p.value.client]-r.getBoundingClientRect()[p.value.direction]))},m=e=>{if(!i.value||!o.value||!r.wrapElement)return;const t=100*(Math.abs(e.target.getBoundingClientRect()[p.value.direction]-e[p.value.client])-i.value[p.value.offset]/2)*f.value/o.value[p.value.offset];r.wrapElement[p.value.scroll]=t*r.wrapElement[p.value.scrollSize]/100},y=e=>{e.stopImmediatePropagation(),l=!0,document.addEventListener("mousemove",g),document.addEventListener("mouseup",v),u=document.onselectstart,document.onselectstart=()=>!1},g=e=>{if(!o.value||!i.value)return;if(!1===l)return;const t=s.value[p.value.axis];if(!t)return;const n=100*(-1*(o.value.getBoundingClientRect()[p.value.direction]-e[p.value.client])-(i.value[p.value.offset]-t))*f.value/o.value[p.value.offset];r.wrapElement[p.value.scroll]=n*r.wrapElement[p.value.scrollSize]/100},v=()=>{l=!1,s.value[p.value.axis]=0,document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",v),b(),c&&(a.value=!1)};(0,S.onBeforeUnmount)((()=>{b(),document.removeEventListener("mouseup",v)}));const b=()=>{document.onselectstart!==u&&(document.onselectstart=u)};return(0,_e.MLh)((0,S.toRef)(r,"scrollbarElement"),"mousemove",(()=>{c=!1,a.value=!!t.size})),(0,_e.MLh)((0,S.toRef)(r,"scrollbarElement"),"mouseleave",(()=>{c=!0,a.value=l})),(e,t)=>((0,S.openBlock)(),(0,S.createBlock)(S.Transition,{name:(0,S.unref)(n).b("fade"),persisted:""},{default:(0,S.withCtx)((()=>[(0,S.withDirectives)((0,S.createElementVNode)("div",{ref_key:"instance",ref:o,class:(0,S.normalizeClass)([(0,S.unref)(n).e("bar"),(0,S.unref)(n).is((0,S.unref)(p).key)]),onMousedown:m},[(0,S.createElementVNode)("div",{ref_key:"thumb",ref:i,class:(0,S.normalizeClass)((0,S.unref)(n).e("thumb")),style:(0,S.normalizeStyle)((0,S.unref)(d)),onMousedown:h},null,38)],34),[[S.vShow,e.always||a.value]])])),_:1},8,["name"]))}});var Ge=Ue(He,[["__file","thumb.vue"]]);const Qe=Be({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}});var Xe=Ue((0,S.defineComponent)({__name:"bar",props:Qe,setup(e,{expose:t}){const r=e,n=(0,S.inject)(Se),o=(0,S.ref)(0),i=(0,S.ref)(0),s=(0,S.ref)(""),a=(0,S.ref)(""),l=(0,S.ref)(1),c=(0,S.ref)(1);return t({handleScroll:e=>{if(e){const t=e.offsetHeight-4,r=e.offsetWidth-4;i.value=100*e.scrollTop/t*l.value,o.value=100*e.scrollLeft/r*c.value}},update:()=>{const e=null==n?void 0:n.wrapElement;if(!e)return;const t=e.offsetHeight-4,o=e.offsetWidth-4,i=t**2/e.scrollHeight,u=o**2/e.scrollWidth,p=Math.max(i,r.minSize),d=Math.max(u,r.minSize);l.value=i/(t-i)/(p/(t-p)),c.value=u/(o-u)/(d/(o-d)),a.value=p+4<t?`${p}px`:"",s.value=d+4<o?`${d}px`:""}}),(e,t)=>((0,S.openBlock)(),(0,S.createElementBlock)(S.Fragment,null,[(0,S.createVNode)(Ge,{move:o.value,ratio:c.value,size:s.value,always:e.always},null,8,["move","ratio","size","always"]),(0,S.createVNode)(Ge,{move:i.value,ratio:l.value,size:a.value,vertical:"",always:e.always},null,8,["move","ratio","size","always"])],64))}}),[["__file","bar.vue"]]),Ye=r(92049),Je=r(61882),Ze=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,et=/^\w*$/;const tt=function(e,t){if((0,Ye.A)(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!(0,Je.A)(e))||et.test(e)||!Ze.test(e)||null!=t&&e in Object(t)};var rt=r(62050);function nt(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var s=e.apply(this,n);return r.cache=i.set(o,s)||i,s};return r.cache=new(nt.Cache||rt.A),r}nt.Cache=rt.A;const ot=nt;var it=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,st=/\\(\\)?/g;const at=function(){var e=ot((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(it,(function(e,r,n,o){t.push(n?o.replace(st,"$1"):r||e)})),t}),(function(e){return 500===t.size&&t.clear(),e})),t=e.cache;return e}();var lt=r(241),ct=r(45572),ut=lt.A?lt.A.prototype:void 0,pt=ut?ut.toString:void 0;const dt=function e(t){if("string"==typeof t)return t;if((0,Ye.A)(t))return(0,ct.A)(t,e)+"";if((0,Je.A)(t))return pt?pt.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r},ft=function(e){return null==e?"":dt(e)},ht=function(e,t){return(0,Ye.A)(e)?e:tt(e,t)?[e]:at(ft(e))},mt=function(e){if("string"==typeof e||(0,Je.A)(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},yt=function(e,t){for(var r=0,n=(t=ht(t,e)).length;null!=e&&r<n;)e=e[mt(t[r++])];return r&&r==n?e:void 0};var gt=r(52851),vt=r(25353),bt=r(23149);const _t=function(e,t,r,n){if(!(0,bt.A)(e))return e;for(var o=-1,i=(t=ht(t,e)).length,s=i-1,a=e;null!=a&&++o<i;){var l=mt(t[o]),c=r;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(o!=s){var u=a[l];void 0===(c=n?n(u,l,a):void 0)&&(c=(0,bt.A)(u)?u:(0,vt.A)(t[o+1])?[]:{})}(0,gt.A)(a,l,c),a=a[l]}return e},Et=function(e,t){return null!=e&&t in Object(e)};var xt=r(25175),St=r(5254);const wt=function(e,t){return null!=e&&function(e,t,r){for(var n=-1,o=(t=ht(t,e)).length,i=!1;++n<o;){var s=mt(t[n]);if(!(i=null!=e&&r(e,s)))break;e=e[s]}return i||++n!=o?i:!!(o=null==e?0:e.length)&&(0,St.A)(o)&&(0,vt.A)(s,o)&&((0,Ye.A)(e)||(0,xt.A)(e))}(e,t,Et)},At=function(e,t){return function(e,t,r){for(var n=-1,o=t.length,i={};++n<o;){var s=t[n],a=yt(e,s);r(a,s)&&_t(i,ht(s,e),a)}return i}(e,t,(function(t,r){return wt(e,r)}))};var Tt=r(87671);const Pt=function(e){return null!=e&&e.length?(0,Tt.A)(e,1):[]};var Ct=r(65255),Ot=r(46778);const It=(Mt=function(e,t){return null==e?{}:At(e,t)},(0,Ot.A)((0,Ct.A)(Mt,void 0,Pt),Mt+"")),kt=Be({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),Dt=e=>It(kt,e);var Mt;const jt=function(e){return null==e},Nt=e=>void 0===e,Lt=e=>"boolean"==typeof e,Rt=e=>"number"==typeof e,Bt=e=>"undefined"!=typeof Element&&e instanceof Element,Ft=e=>jt(e),Ut=Be({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,...Dt(["ariaLabel","ariaOrientation"])}),Vt={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Rt)};function Wt(e,t="px"){return e?Rt(e)||Ie(r=e)&&!Number.isNaN(Number(r))?`${e}${t}`:Ie(e)?e:void 0:"";var r}const $t=(0,S.defineComponent)({name:"ElScrollbar"}),Kt=(0,S.defineComponent)({...$t,props:Ut,emits:Vt,setup(e,{expose:t,emit:r}){const n=e,o=qe("scrollbar");let i,s,a=0,l=0;const c=(0,S.ref)(),u=(0,S.ref)(),p=(0,S.ref)(),d=(0,S.ref)(),f=(0,S.computed)((()=>{const e={};return n.height&&(e.height=Wt(n.height)),n.maxHeight&&(e.maxHeight=Wt(n.maxHeight)),[n.wrapStyle,e]})),h=(0,S.computed)((()=>[n.wrapClass,o.e("wrap"),{[o.em("wrap","hidden-default")]:!n.native}])),m=(0,S.computed)((()=>[o.e("view"),n.viewClass])),y=()=>{var e;u.value&&(null==(e=d.value)||e.handleScroll(u.value),a=u.value.scrollTop,l=u.value.scrollLeft,r("scroll",{scrollTop:u.value.scrollTop,scrollLeft:u.value.scrollLeft}))},g=()=>{var e;null==(e=d.value)||e.update()};return(0,S.watch)((()=>n.noresize),(e=>{e?(null==i||i(),null==s||s()):(({stop:i}=(0,_e.wYm)(p,g)),s=(0,_e.MLh)("resize",g))}),{immediate:!0}),(0,S.watch)((()=>[n.maxHeight,n.height]),(()=>{n.native||(0,S.nextTick)((()=>{var e;g(),u.value&&(null==(e=d.value)||e.handleScroll(u.value))}))})),(0,S.provide)(Se,(0,S.reactive)({scrollbarElement:c,wrapElement:u})),(0,S.onActivated)((()=>{u.value.scrollTop=a,u.value.scrollLeft=l})),(0,S.onMounted)((()=>{n.native||(0,S.nextTick)((()=>{g()}))})),(0,S.onUpdated)((()=>g())),t({wrapRef:u,update:g,scrollTo:function(e,t){ke(e)?u.value.scrollTo(e):Rt(e)&&Rt(t)&&u.value.scrollTo(e,t)},setScrollTop:e=>{Rt(e)&&(u.value.scrollTop=e)},setScrollLeft:e=>{Rt(e)&&(u.value.scrollLeft=e)},handleScroll:y}),(e,t)=>((0,S.openBlock)(),(0,S.createElementBlock)("div",{ref_key:"scrollbarRef",ref:c,class:(0,S.normalizeClass)((0,S.unref)(o).b())},[(0,S.createElementVNode)("div",{ref_key:"wrapRef",ref:u,class:(0,S.normalizeClass)((0,S.unref)(h)),style:(0,S.normalizeStyle)((0,S.unref)(f)),onScroll:y},[((0,S.openBlock)(),(0,S.createBlock)((0,S.resolveDynamicComponent)(e.tag),{id:e.id,ref_key:"resizeRef",ref:p,class:(0,S.normalizeClass)((0,S.unref)(m)),style:(0,S.normalizeStyle)(e.viewStyle),role:e.role,"aria-label":e.ariaLabel,"aria-orientation":e.ariaOrientation},{default:(0,S.withCtx)((()=>[(0,S.renderSlot)(e.$slots,"default")])),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],38),e.native?(0,S.createCommentVNode)("v-if",!0):((0,S.openBlock)(),(0,S.createBlock)(Xe,{key:0,ref_key:"barRef",ref:d,always:e.always,"min-size":e.minSize},null,8,["always","min-size"]))],2))}}),qt=(e,t)=>{if(e.install=r=>{for(const n of[e,...Object.values(null!=t?t:{})])r.component(n.name,n)},t)for(const[r,n]of Object.entries(t))e[r]=n;return e},zt=e=>(e.install=Ae,e),Ht=qt(Ue(Kt,[["__file","scrollbar.vue"]]));var Gt=r(22204),Qt=(r(16280),r(44114),r(29544)),Xt=r.n(Qt),Yt=r(385),Jt=r.n(Yt),Zt=r(26327),er=r.n(Zt),tr=r(6707),rr=r.n(tr),nr=(r(13609),r(71917),r(84864),r(57465),r(87745),r(71761),r(80668)),or=r.n(nr),ir=r(57855),sr=r.n(ir);const ar=function(e,t,r){var n=null==e?void 0:yt(e,t);return void 0===n?r:n};var lr=r(22080),cr=r(22955);const ur=function(e){return e==e&&!(0,bt.A)(e)};var pr=r(27422);const dr=function(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}},fr=function(e){var t=function(e){for(var t=(0,pr.A)(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,ur(o)]}return t}(e);return 1==t.length&&t[0][2]?dr(t[0][0],t[0][1]):function(r){return r===e||function(e,t,r,n){var o=r.length,i=o,s=!n;if(null==e)return!i;for(e=Object(e);o--;){var a=r[o];if(s&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++o<i;){var l=(a=r[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 lr.A;if(n)var d=n(c,u,l,e,t,p);if(!(void 0===d?(0,cr.A)(u,c,3,n,p):d))return!1}}return!0}(r,e,t)}};var hr=r(29008);const mr=function(e){return tt(e)?(t=mt(e),function(e){return null==e?void 0:e[t]}):function(e){return function(t){return yt(t,e)}}(e);var t},yr=function(e){return"function"==typeof e?e:null==e?hr.A:"object"==typeof e?(0,Ye.A)(e)?(t=e[0],r=e[1],tt(t)&&ur(r)?dr(mt(t),r):function(e){var n=ar(e,t);return void 0===n&&n===r?wt(e,t):(0,cr.A)(r,n,3)}):fr(e):mr(e);var t,r};var gr=r(97132);var vr=r(38446);const br=(_r=function(e,t){return e&&(0,gr.A)(e,t,pr.A)},function(e,t){if(null==e)return e;if(!(0,vr.A)(e))return _r(e,t);for(var r=e.length,n=-1,o=Object(e);++n<r&&!1!==t(o[n],n,o););return e});var _r;const Er=function(e,t){var r=-1,n=(0,vr.A)(e)?Array(e.length):[];return br(e,(function(e,o,i){n[++r]=t(e,o,i)})),n},xr=function(e,t){return((0,Ye.A)(e)?ct.A:Er)(e,yr(t))},Sr=Symbol("popper"),wr=Symbol("popperContent"),Ar=Be({role:{type:String,values:["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],default:"tooltip"}}),Tr=(0,S.defineComponent)({name:"ElPopper",inheritAttrs:!1}),Pr=qt(Ue((0,S.defineComponent)({...Tr,props:Ar,setup(e,{expose:t}){const r=e,n={triggerRef:(0,S.ref)(),popperInstanceRef:(0,S.ref)(),contentRef:(0,S.ref)(),referenceRef:(0,S.ref)(),role:(0,S.computed)((()=>r.role))};return t(n),(0,S.provide)(Sr,n),(e,t)=>(0,S.renderSlot)(e.$slots,"default")}}),[["__file","popper.vue"]])),Cr=Symbol("elTooltip");function Or(){let e;const t=()=>window.clearTimeout(e);return(0,xe.Uo)((()=>t())),{registerTimeout:(r,n)=>{t(),e=window.setTimeout(r,n)},cancelTimeout:t}}const Ir=Be({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}});var kr="top",Dr="bottom",Mr="right",jr="left",Nr="auto",Lr=[kr,Dr,Mr,jr],Rr="start",Br="end",Fr="viewport",Ur="popper",Vr=Lr.reduce((function(e,t){return e.concat([t+"-"+Rr,t+"-"+Br])}),[]),Wr=[].concat(Lr,[Nr]).reduce((function(e,t){return e.concat([t,t+"-"+Rr,t+"-"+Br])}),[]),$r=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];const Kr=Be({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:Wr,default:"bottom"},popperOptions:{type:Object,default:()=>({})},strategy:{type:String,values:["fixed","absolute"],default:"absolute"}}),qr=Be({...Kr,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,...Dt(["ariaLabel"])}),zr={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},Hr=Be({...Ir,...qr,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,...Dt(["ariaLabel"])}),Gr=Be({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}),Qr=Be({...Gr,disabled:Boolean,trigger:{type:[String,Array],default:"hover"},triggerKeys:{type:Array,default:()=>["Enter","Space"]}}),Xr=Re({type:Boolean,default:null}),Yr=Re({type:Function}),Jr=e=>{const t=`update:${e}`,r=`onUpdate:${e}`,n=[t];return{useModelToggle:({indicator:n,toggleReason:o,shouldHideWhenRouteChanges:i,shouldProceed:s,onShow:a,onHide:l})=>{const c=(0,S.getCurrentInstance)(),{emit:u}=c,p=c.props,d=(0,S.computed)((()=>Oe(p[r]))),f=(0,S.computed)((()=>null===p[e])),h=e=>{!0!==n.value&&(n.value=!0,o&&(o.value=e),Oe(a)&&a(e))},m=e=>{!1!==n.value&&(n.value=!1,o&&(o.value=e),Oe(l)&&l(e))},y=e=>{if(!0===p.disabled||Oe(s)&&!s())return;const r=d.value&&xe.oc;r&&u(t,!0),!f.value&&r||h(e)},g=e=>{if(!0===p.disabled||!xe.oc)return;const r=d.value&&xe.oc;r&&u(t,!1),!f.value&&r||m(e)},v=e=>{Lt(e)&&(p.disabled&&e?d.value&&u(t,!1):n.value!==e&&(e?h():m()))};return(0,S.watch)((()=>p[e]),v),i&&void 0!==c.appContext.config.globalProperties.$route&&(0,S.watch)((()=>({...c.proxy.$route})),(()=>{i.value&&n.value&&g()})),(0,S.onMounted)((()=>{v(p[e])})),{hide:g,show:y,toggle:()=>{n.value?g():y()},hasUpdateHandler:d}},useModelToggleProps:{[e]:Xr,[r]:Yr},useModelToggleEmits:n}},{useModelToggle:Zr,useModelToggleProps:en,useModelToggleEmits:tn}=Jr("modelValue"),rn=Be({arrowOffset:{type:Number,default:5}}),{useModelToggleProps:nn,useModelToggleEmits:on,useModelToggle:sn}=Jr("visible"),an=Be({...Ar,...nn,...Hr,...Qr,...rn,showArrow:{type:Boolean,default:!0}}),ln=[...on,"before-show","before-hide","show","hide","open","close"],cn=(e,t,r)=>n=>{((e,t)=>Ce(e)?e.includes(t):e===t)((0,S.unref)(e),t)&&r(n)},un=(e,t,{checkForDefaultPrevented:r=!0}={})=>n=>{const o=null==e?void 0:e(n);if(!1===r||!o)return null==t?void 0:t(n)},pn=Symbol("elForwardRef"),dn=(0,S.defineComponent)({name:"ElOnlyChild",setup(e,{slots:t,attrs:r}){var n;const o=(0,S.inject)(pn),i=(s=null!=(n=null==o?void 0:o.setForwardRef)?n:Ae,{mounted(e){s(e)},updated(e){s(e)},unmounted(){s(null)}});var s;return()=>{var e;const n=null==(e=t.default)?void 0:e.call(t,r);if(!n)return null;if(n.length>1)return null;const o=fn(n);return o?(0,S.withDirectives)((0,S.cloneVNode)(o,r),[[i]]):null}}});function fn(e){if(!e)return null;const t=e;for(const e of t){if(ke(e))switch(e.type){case S.Comment:continue;case S.Text:case"svg":return hn(e);case S.Fragment:return fn(e.children);default:return e}return hn(e)}return null}function hn(e){const t=qe("only-child");return(0,S.createVNode)("span",{class:t.e("content")},[e])}const mn=(0,S.defineComponent)({name:"ElPopperTrigger",inheritAttrs:!1}),yn=(0,S.defineComponent)({...mn,props:Gr,setup(e,{expose:t}){const r=e,{role:n,triggerRef:o}=(0,S.inject)(Sr,void 0);var i;i=o,(0,S.provide)(pn,{setForwardRef:e=>{i.value=e}});const s=(0,S.computed)((()=>l.value?r.id:void 0)),a=(0,S.computed)((()=>{if(n&&"tooltip"===n.value)return r.open&&r.id?r.id:void 0})),l=(0,S.computed)((()=>{if(n&&"tooltip"!==n.value)return n.value})),c=(0,S.computed)((()=>l.value?`${r.open}`:void 0));let u;const p=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return(0,S.onMounted)((()=>{(0,S.watch)((()=>r.virtualRef),(e=>{e&&(o.value=(0,_e.F4c)(e))}),{immediate:!0}),(0,S.watch)(o,((e,t)=>{null==u||u(),u=void 0,Bt(e)&&(p.forEach((n=>{var o;const i=r[n];i&&(e.addEventListener(n.slice(2).toLowerCase(),i),null==(o=null==t?void 0:t.removeEventListener)||o.call(t,n.slice(2).toLowerCase(),i))})),u=(0,S.watch)([s,a,l,c],(t=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(((r,n)=>{jt(t[n])?e.removeAttribute(r):e.setAttribute(r,t[n])}))}),{immediate:!0})),Bt(t)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((e=>t.removeAttribute(e)))}),{immediate:!0})})),(0,S.onBeforeUnmount)((()=>{if(null==u||u(),u=void 0,o.value&&Bt(o.value)){const e=o.value;p.forEach((t=>{const n=r[t];n&&e.removeEventListener(t.slice(2).toLowerCase(),n)})),o.value=void 0}})),t({triggerRef:o}),(e,t)=>e.virtualTriggering?(0,S.createCommentVNode)("v-if",!0):((0,S.openBlock)(),(0,S.createBlock)((0,S.unref)(dn),(0,S.mergeProps)({key:0},e.$attrs,{"aria-controls":(0,S.unref)(s),"aria-describedby":(0,S.unref)(a),"aria-expanded":(0,S.unref)(c),"aria-haspopup":(0,S.unref)(l)}),{default:(0,S.withCtx)((()=>[(0,S.renderSlot)(e.$slots,"default")])),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var gn=Ue(yn,[["__file","trigger.vue"]]);const vn=(0,S.defineComponent)({name:"ElTooltipTrigger"});var bn=Ue((0,S.defineComponent)({...vn,props:Qr,setup(e,{expose:t}){const r=e,n=qe("tooltip"),{controlled:o,id:i,open:s,onOpen:a,onClose:l,onToggle:c}=(0,S.inject)(Cr,void 0),u=(0,S.ref)(null),p=()=>{if((0,S.unref)(o)||r.disabled)return!0},d=(0,S.toRef)(r,"trigger"),f=un(p,cn(d,"hover",a)),h=un(p,cn(d,"hover",l)),m=un(p,cn(d,"click",(e=>{0===e.button&&c(e)}))),y=un(p,cn(d,"focus",a)),g=un(p,cn(d,"focus",l)),v=un(p,cn(d,"contextmenu",(e=>{e.preventDefault(),c(e)}))),b=un(p,(e=>{const{code:t}=e;r.triggerKeys.includes(t)&&(e.preventDefault(),c(e))}));return t({triggerRef:u}),(e,t)=>((0,S.openBlock)(),(0,S.createBlock)((0,S.unref)(gn),{id:(0,S.unref)(i),"virtual-ref":e.virtualRef,open:(0,S.unref)(s),"virtual-triggering":e.virtualTriggering,class:(0,S.normalizeClass)((0,S.unref)(n).e("trigger")),onBlur:(0,S.unref)(g),onClick:(0,S.unref)(m),onContextmenu:(0,S.unref)(v),onFocus:(0,S.unref)(y),onMouseenter:(0,S.unref)(f),onMouseleave:(0,S.unref)(h),onKeydown:(0,S.unref)(b)},{default:(0,S.withCtx)((()=>[(0,S.renderSlot)(e.$slots,"default")])),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}}),[["__file","trigger.vue"]]);const _n=Be({to:{type:[String,Object],required:!0},disabled:Boolean}),En=qt(Ue((0,S.defineComponent)({__name:"teleport",props:_n,setup:e=>(e,t)=>e.disabled?(0,S.renderSlot)(e.$slots,"default",{key:0}):((0,S.openBlock)(),(0,S.createBlock)(S.Teleport,{key:1,to:e.to},[(0,S.renderSlot)(e.$slots,"default")],8,["to"]))}),[["__file","teleport.vue"]])),xn={prefix:Math.floor(1e4*Math.random()),current:0},Sn=Symbol("elIdInjection"),wn=()=>(0,S.getCurrentInstance)()?(0,S.inject)(Sn,xn):xn,An=e=>{const t=wn();xe.oc;const r=Ke();return(0,S.computed)((()=>(0,S.unref)(e)||`${r.value}-id-${t.prefix}-${t.current++}`))};let Tn;const Pn=()=>{const e=Ke(),t=wn(),r=(0,S.computed)((()=>`${e.value}-popper-container-${t.prefix}`)),n=(0,S.computed)((()=>`#${r.value}`));return{id:r,selector:n}};var Cn=r(69592);const On=(e,t=[])=>{const{placement:r,strategy:n,popperOptions:o}=e,i={placement:r,strategy:n,...o,modifiers:[...In(e),...t]};return function(e,t){t&&(e.modifiers=[...e.modifiers,...null!=t?t:[]])}(i,null==o?void 0:o.modifiers),i};function In(e){const{offset:t,gpuAcceleration:r,fallbackPlacements:n}=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:n}},{name:"computeStyles",options:{gpuAcceleration:r}}]}function kn(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Dn(e){return e instanceof kn(e).Element||e instanceof Element}function Mn(e){return e instanceof kn(e).HTMLElement||e instanceof HTMLElement}function jn(e){return"undefined"!=typeof ShadowRoot&&(e instanceof kn(e).ShadowRoot||e instanceof ShadowRoot)}var Nn=Math.max,Ln=Math.min,Rn=Math.round;function Bn(){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 Fn(){return!/^((?!chrome|android).)*safari/i.test(Bn())}function Un(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&Mn(e)&&(o=e.offsetWidth>0&&Rn(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Rn(n.height)/e.offsetHeight||1);var s=(Dn(e)?kn(e):window).visualViewport,a=!Fn()&&r,l=(n.left+(a&&s?s.offsetLeft:0))/o,c=(n.top+(a&&s?s.offsetTop:0))/i,u=n.width/o,p=n.height/i;return{width:u,height:p,top:c,right:l+u,bottom:c+p,left:l,x:l,y:c}}function Vn(e){var t=kn(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Wn(e){return e?(e.nodeName||"").toLowerCase():null}function $n(e){return((Dn(e)?e.ownerDocument:e.document)||window.document).documentElement}function Kn(e){return Un($n(e)).left+Vn(e).scrollLeft}function qn(e){return kn(e).getComputedStyle(e)}function zn(e){var t=qn(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Hn(e,t,r){void 0===r&&(r=!1);var n,o,i=Mn(t),s=Mn(t)&&function(e){var t=e.getBoundingClientRect(),r=Rn(t.width)/e.offsetWidth||1,n=Rn(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),a=$n(t),l=Un(e,s,r),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!r)&&(("body"!==Wn(t)||zn(a))&&(c=(n=t)!==kn(n)&&Mn(n)?{scrollLeft:(o=n).scrollLeft,scrollTop:o.scrollTop}:Vn(n)),Mn(t)?((u=Un(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=Kn(a))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function Gn(e){var t=Un(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Qn(e){return"html"===Wn(e)?e:e.assignedSlot||e.parentNode||(jn(e)?e.host:null)||$n(e)}function Xn(e){return["html","body","#document"].indexOf(Wn(e))>=0?e.ownerDocument.body:Mn(e)&&zn(e)?e:Xn(Qn(e))}function Yn(e,t){var r;void 0===t&&(t=[]);var n=Xn(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),i=kn(n),s=o?[i].concat(i.visualViewport||[],zn(n)?n:[]):n,a=t.concat(s);return o?a:a.concat(Yn(Qn(s)))}function Jn(e){return["table","td","th"].indexOf(Wn(e))>=0}function Zn(e){return Mn(e)&&"fixed"!==qn(e).position?e.offsetParent:null}function eo(e){for(var t=kn(e),r=Zn(e);r&&Jn(r)&&"static"===qn(r).position;)r=Zn(r);return r&&("html"===Wn(r)||"body"===Wn(r)&&"static"===qn(r).position)?t:r||function(e){var t=/firefox/i.test(Bn());if(/Trident/i.test(Bn())&&Mn(e)&&"fixed"===qn(e).position)return null;var r=Qn(e);for(jn(r)&&(r=r.host);Mn(r)&&["html","body"].indexOf(Wn(r))<0;){var n=qn(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}function to(e){var t=new Map,r=new Set,n=[];function o(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var n=t.get(e);n&&o(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||o(e)})),n}var ro={placement:"bottom",modifiers:[],strategy:"absolute"};function no(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function oo(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,o=t.defaultOptions,i=void 0===o?ro:o;return function(e,t,r){void 0===r&&(r=i);var o,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},ro,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:a,setOptions:function(r){var o="function"==typeof r?r(a.options):r;p(),a.options=Object.assign({},i,a.options,o),a.scrollParents={reference:Dn(e)?Yn(e):e.contextElement?Yn(e.contextElement):[],popper:Yn(t)};var s,c,d=function(e){var t=to(e);return $r.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}((s=[].concat(n,a.options.modifiers),c=s.reduce((function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return a.orderedModifiers=d.filter((function(e){return e.enabled})),a.orderedModifiers.forEach((function(e){var t=e.name,r=e.options,n=void 0===r?{}:r,o=e.effect;if("function"==typeof o){var i=o({state:a,name:t,instance:u,options:n});l.push(i||function(){})}})),u.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,r=e.popper;if(no(t,r)){a.rects={reference:Hn(t,eo(r),"fixed"===a.options.strategy),popper:Gn(r)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0;n<a.orderedModifiers.length;n++)if(!0!==a.reset){var o=a.orderedModifiers[n],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,n=-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(!no(e,t))return u;function p(){l.forEach((function(e){return e()})),l=[]}return u.setOptions(r).then((function(e){!c&&r.onFirstUpdate&&r.onFirstUpdate(e)})),u}}var io={passive:!0};function so(e){return e.split("-")[0]}function ao(e){return e.split("-")[1]}function lo(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function co(e){var t,r=e.reference,n=e.element,o=e.placement,i=o?so(o):null,s=o?ao(o):null,a=r.x+r.width/2-n.width/2,l=r.y+r.height/2-n.height/2;switch(i){case kr:t={x:a,y:r.y-n.height};break;case Dr:t={x:a,y:r.y+r.height};break;case Mr:t={x:r.x+r.width,y:l};break;case jr:t={x:r.x-n.width,y:l};break;default:t={x:r.x,y:r.y}}var c=i?lo(i):null;if(null!=c){var u="y"===c?"height":"width";switch(s){case Rr:t[c]=t[c]-(r[u]/2-n[u]/2);break;case Br:t[c]=t[c]+(r[u]/2-n[u]/2)}}return t}var uo={top:"auto",right:"auto",bottom:"auto",left:"auto"};function po(e){var t,r=e.popper,n=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,d=s.x,f=void 0===d?0:d,h=s.y,m=void 0===h?0:h,y="function"==typeof u?u({x:f,y:m}):{x:f,y:m};f=y.x,m=y.y;var g=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),b=jr,_=kr,E=window;if(c){var x=eo(r),S="clientHeight",w="clientWidth";x===kn(r)&&"static"!==qn(x=$n(r)).position&&"absolute"===a&&(S="scrollHeight",w="scrollWidth"),(o===kr||(o===jr||o===Mr)&&i===Br)&&(_=Dr,m-=(p&&x===E&&E.visualViewport?E.visualViewport.height:x[S])-n.height,m*=l?1:-1),o!==jr&&(o!==kr&&o!==Dr||i!==Br)||(b=Mr,f-=(p&&x===E&&E.visualViewport?E.visualViewport.width:x[w])-n.width,f*=l?1:-1)}var A,T=Object.assign({position:a},c&&uo),P=!0===u?function(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:Rn(r*o)/o||0,y:Rn(n*o)/o||0}}({x:f,y:m},kn(r)):{x:f,y:m};return f=P.x,m=P.y,l?Object.assign({},T,((A={})[_]=v?"0":"",A[b]=g?"0":"",A.transform=(E.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",A)):Object.assign({},T,((t={})[_]=v?m+"px":"",t[b]=g?f+"px":"",t.transform="",t))}const fo={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=void 0===o?[0,0]:o,s=Wr.reduce((function(e,r){return e[r]=function(e,t,r){var n=so(e),o=[jr,kr].indexOf(n)>=0?-1:1,i="function"==typeof r?r(Object.assign({},t,{placement:e})):r,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[jr,Mr].indexOf(n)>=0?{x:a,y:s}:{x:s,y:a}}(r,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[n]=s}};var ho={left:"right",right:"left",bottom:"top",top:"bottom"};function mo(e){return e.replace(/left|right|bottom|top/g,(function(e){return ho[e]}))}var yo={start:"end",end:"start"};function go(e){return e.replace(/start|end/g,(function(e){return yo[e]}))}function vo(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&jn(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function bo(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function _o(e,t,r){return t===Fr?bo(function(e,t){var r=kn(e),n=$n(e),o=r.visualViewport,i=n.clientWidth,s=n.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var c=Fn();(c||!c&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+Kn(e),y:l}}(e,r)):Dn(t)?function(e,t){var r=Un(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}(t,r):bo(function(e){var t,r=$n(e),n=Vn(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Nn(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Nn(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-n.scrollLeft+Kn(e),l=-n.scrollTop;return"rtl"===qn(o||r).direction&&(a+=Nn(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}($n(e)))}function Eo(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function xo(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}function So(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=void 0===n?e.placement:n,i=r.strategy,s=void 0===i?e.strategy:i,a=r.boundary,l=void 0===a?"clippingParents":a,c=r.rootBoundary,u=void 0===c?Fr:c,p=r.elementContext,d=void 0===p?Ur:p,f=r.altBoundary,h=void 0!==f&&f,m=r.padding,y=void 0===m?0:m,g=Eo("number"!=typeof y?y:xo(y,Lr)),v=d===Ur?"reference":Ur,b=e.rects.popper,_=e.elements[h?v:d],E=function(e,t,r,n){var o="clippingParents"===t?function(e){var t=Yn(Qn(e)),r=["absolute","fixed"].indexOf(qn(e).position)>=0&&Mn(e)?eo(e):e;return Dn(r)?t.filter((function(e){return Dn(e)&&vo(e,r)&&"body"!==Wn(e)})):[]}(e):[].concat(t),i=[].concat(o,[r]),s=i[0],a=i.reduce((function(t,r){var o=_o(e,r,n);return t.top=Nn(o.top,t.top),t.right=Ln(o.right,t.right),t.bottom=Ln(o.bottom,t.bottom),t.left=Nn(o.left,t.left),t}),_o(e,s,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(Dn(_)?_:_.contextElement||$n(e.elements.popper),l,u,s),x=Un(e.elements.reference),S=co({reference:x,element:b,strategy:"absolute",placement:o}),w=bo(Object.assign({},b,S)),A=d===Ur?w:x,T={top:E.top-A.top+g.top,bottom:A.bottom-E.bottom+g.bottom,left:E.left-A.left+g.left,right:A.right-E.right+g.right},P=e.modifiersData.offset;if(d===Ur&&P){var C=P[o];Object.keys(T).forEach((function(e){var t=[Mr,Dr].indexOf(e)>=0?1:-1,r=[kr,Dr].indexOf(e)>=0?"y":"x";T[e]+=C[r]*t}))}return T}const wo={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=void 0===o||o,s=r.altAxis,a=void 0===s||s,l=r.fallbackPlacements,c=r.padding,u=r.boundary,p=r.rootBoundary,d=r.altBoundary,f=r.flipVariations,h=void 0===f||f,m=r.allowedAutoPlacements,y=t.options.placement,g=so(y),v=l||(g!==y&&h?function(e){if(so(e)===Nr)return[];var t=mo(e);return[go(e),t,go(t)]}(y):[mo(y)]),b=[y].concat(v).reduce((function(e,r){return e.concat(so(r)===Nr?function(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,s=r.padding,a=r.flipVariations,l=r.allowedAutoPlacements,c=void 0===l?Wr:l,u=ao(n),p=u?a?Vr:Vr.filter((function(e){return ao(e)===u})):Lr,d=p.filter((function(e){return c.indexOf(e)>=0}));0===d.length&&(d=p);var f=d.reduce((function(t,r){return t[r]=So(e,{placement:r,boundary:o,rootBoundary:i,padding:s})[so(r)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:r,boundary:u,rootBoundary:p,padding:c,flipVariations:h,allowedAutoPlacements:m}):r)}),[]),_=t.rects.reference,E=t.rects.popper,x=new Map,S=!0,w=b[0],A=0;A<b.length;A++){var T=b[A],P=so(T),C=ao(T)===Rr,O=[kr,Dr].indexOf(P)>=0,I=O?"width":"height",k=So(t,{placement:T,boundary:u,rootBoundary:p,altBoundary:d,padding:c}),D=O?C?Mr:jr:C?Dr:kr;_[I]>E[I]&&(D=mo(D));var M=mo(D),j=[];if(i&&j.push(k[P]<=0),a&&j.push(k[D]<=0,k[M]<=0),j.every((function(e){return e}))){w=T,S=!1;break}x.set(T,j)}if(S)for(var N=function(e){var t=b.find((function(t){var r=x.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return w=t,"break"},L=h?3:1;L>0&&"break"!==N(L);L--);t.placement!==w&&(t.modifiersData[n]._skip=!0,t.placement=w,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ao(e,t,r){return Nn(e,Ln(t,r))}const To={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=void 0===o||o,s=r.altAxis,a=void 0!==s&&s,l=r.boundary,c=r.rootBoundary,u=r.altBoundary,p=r.padding,d=r.tether,f=void 0===d||d,h=r.tetherOffset,m=void 0===h?0:h,y=So(t,{boundary:l,rootBoundary:c,padding:p,altBoundary:u}),g=so(t.placement),v=ao(t.placement),b=!v,_=lo(g),E="x"===_?"y":"x",x=t.modifiersData.popperOffsets,S=t.rects.reference,w=t.rects.popper,A="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,T="number"==typeof A?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,C={x:0,y:0};if(x){if(i){var O,I="y"===_?kr:jr,k="y"===_?Dr:Mr,D="y"===_?"height":"width",M=x[_],j=M+y[I],N=M-y[k],L=f?-w[D]/2:0,R=v===Rr?S[D]:w[D],B=v===Rr?-w[D]:-S[D],F=t.elements.arrow,U=f&&F?Gn(F):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},W=V[I],$=V[k],K=Ao(0,S[D],U[D]),q=b?S[D]/2-L-K-W-T.mainAxis:R-K-W-T.mainAxis,z=b?-S[D]/2+L+K+$+T.mainAxis:B+K+$+T.mainAxis,H=t.elements.arrow&&eo(t.elements.arrow),G=H?"y"===_?H.clientTop||0:H.clientLeft||0:0,Q=null!=(O=null==P?void 0:P[_])?O:0,X=M+z-Q,Y=Ao(f?Ln(j,M+q-Q-G):j,M,f?Nn(N,X):N);x[_]=Y,C[_]=Y-M}if(a){var J,Z="x"===_?kr:jr,ee="x"===_?Dr:Mr,te=x[E],re="y"===E?"height":"width",ne=te+y[Z],oe=te-y[ee],ie=-1!==[kr,jr].indexOf(g),se=null!=(J=null==P?void 0:P[E])?J:0,ae=ie?ne:te-S[re]-w[re]-se+T.altAxis,le=ie?te+S[re]+w[re]-se-T.altAxis:oe,ce=f&&ie?function(e,t,r){var n=Ao(e,t,r);return n>r?r:n}(ae,te,le):Ao(f?ae:ne,te,f?le:oe);x[E]=ce,C[E]=ce-te}t.modifiersData[n]=C}},requiresIfExists:["offset"]};function Po(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Co(e){return[kr,Mr,Dr,jr].some((function(t){return e[t]>=0}))}var Oo=oo({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=void 0===o||o,s=n.resize,a=void 0===s||s,l=kn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",r.update,io)})),a&&l.addEventListener("resize",r.update,io),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",r.update,io)})),a&&l.removeEventListener("resize",r.update,io)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=co({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,r=e.options,n=r.gpuAcceleration,o=void 0===n||n,i=r.adaptive,s=void 0===i||i,a=r.roundOffsets,l=void 0===a||a,c={placement:so(t.placement),variation:ao(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,po(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,po(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 r=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];Mn(o)&&Wn(o)&&(Object.assign(o.style,r),Object.keys(n).forEach((function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});Mn(n)&&Wn(n)&&(Object.assign(n.style,i),Object.keys(o).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]},fo,wo,To,{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,s=r.modifiersData.popperOffsets,a=so(r.placement),l=lo(a),c=[jr,Mr].indexOf(a)>=0?"height":"width";if(i&&s){var u=function(e,t){return Eo("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:xo(e,Lr))}(o.padding,r),p=Gn(i),d="y"===l?kr:jr,f="y"===l?Dr:Mr,h=r.rects.reference[c]+r.rects.reference[l]-s[l]-r.rects.popper[c],m=s[l]-r.rects.reference[l],y=eo(i),g=y?"y"===l?y.clientHeight||0:y.clientWidth||0:0,v=h/2-m/2,b=u[d],_=g-p[c]-u[f],E=g/2-p[c]/2+v,x=Ao(b,E,_),S=l;r.modifiersData[n]=((t={})[S]=x,t.centerOffset=x-E,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&vo(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=So(t,{elementContext:"reference"}),a=So(t,{altBoundary:!0}),l=Po(s,n),c=Po(a,o,i),u=Co(l),p=Co(c);t.modifiersData[r]={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 Io=e=>{const{popperInstanceRef:t,contentRef:r,triggerRef:n,role:o}=(0,S.inject)(Sr,void 0),i=(0,S.ref)(),s=(0,S.ref)(),a=(0,S.computed)((()=>({name:"eventListeners",enabled:!!e.visible}))),l=(0,S.computed)((()=>{var e;const t=(0,S.unref)(i),r=null!=(e=(0,S.unref)(s))?e:0;return{name:"arrow",enabled:!(0,Cn.A)(t),options:{element:t,padding:r}}})),c=(0,S.computed)((()=>({onFirstUpdate:()=>{h()},...On(e,[(0,S.unref)(l),(0,S.unref)(a)])}))),u=(0,S.computed)((()=>(e=>{if(xe.oc)return(0,_e.F4c)(e)})(e.referenceEl)||(0,S.unref)(n))),{attributes:p,state:d,styles:f,update:h,forceUpdate:m,instanceRef:y}=((e,t,r={})=>{const n={name:"updateState",enabled:!0,phase:"write",fn:({state:e})=>{const t=function(e){const t=Object.keys(e.elements);return{styles:we(t.map((t=>[t,e.styles[t]||{}]))),attributes:we(t.map((t=>[t,e.attributes[t]])))}}(e);Object.assign(s.value,t)},requires:["computeStyles"]},o=(0,S.computed)((()=>{const{onFirstUpdate:e,placement:t,strategy:o,modifiers:i}=(0,S.unref)(r);return{onFirstUpdate:e,placement:t||"bottom",strategy:o||"absolute",modifiers:[...i||[],n,{name:"applyStyles",enabled:!1}]}})),i=(0,S.shallowRef)(),s=(0,S.ref)({styles:{popper:{position:(0,S.unref)(o).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),a=()=>{i.value&&(i.value.destroy(),i.value=void 0)};return(0,S.watch)(o,(e=>{const t=(0,S.unref)(i);t&&t.setOptions(e)}),{deep:!0}),(0,S.watch)([e,t],(([e,t])=>{a(),e&&t&&(i.value=Oo(e,t,(0,S.unref)(o)))})),(0,S.onBeforeUnmount)((()=>{a()})),{state:(0,S.computed)((()=>{var e;return{...(null==(e=(0,S.unref)(i))?void 0:e.state)||{}}})),styles:(0,S.computed)((()=>(0,S.unref)(s).styles)),attributes:(0,S.computed)((()=>(0,S.unref)(s).attributes)),update:()=>{var e;return null==(e=(0,S.unref)(i))?void 0:e.update()},forceUpdate:()=>{var e;return null==(e=(0,S.unref)(i))?void 0:e.forceUpdate()},instanceRef:(0,S.computed)((()=>(0,S.unref)(i)))}})(u,r,c);return(0,S.watch)(y,(e=>t.value=e)),(0,S.onMounted)((()=>{(0,S.watch)((()=>{var e;return null==(e=(0,S.unref)(u))?void 0:e.getBoundingClientRect()}),(()=>{h()}))})),{attributes:p,arrowRef:i,contentRef:r,instanceRef:y,state:d,styles:f,role:o,forceUpdate:m,update:h}},ko={current:0},Do=(0,S.ref)(0),Mo=Symbol("elZIndexContextKey"),jo=Symbol("zIndexContextKey"),No=Symbol("formContextKey"),Lo=Symbol("formItemContextKey"),Ro="focus-trap.focus-after-trapped",Bo="focus-trap.focus-after-released",Fo={cancelable:!0,bubbles:!1},Uo={cancelable:!0,bubbles:!1},Vo="focusAfterTrapped",Wo="focusAfterReleased",$o=Symbol("elFocusTrap"),Ko=(0,S.ref)(),qo=(0,S.ref)(0),zo=(0,S.ref)(0);let Ho=0;const Go=e=>{const t=[],r=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(;r.nextNode();)t.push(r.currentNode);return t},Qo=(e,t)=>{for(const r of e)if(!Xo(r,t))return r},Xo=(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},Yo=(e,t)=>{if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),zo.value=window.performance.now(),e!==r&&(e=>e instanceof HTMLInputElement&&"select"in e)(e)&&t&&e.select()}};function Jo(e,t){const r=[...e],n=e.indexOf(t);return-1!==n&&r.splice(n,1),r}const Zo=(()=>{let e=[];return{push:t=>{const r=e[0];r&&t!==r&&r.pause(),e=Jo(e,t),e.unshift(t)},remove:t=>{var r,n;e=Jo(e,t),null==(n=null==(r=e[0])?void 0:r.resume)||n.call(r)}}})(),ei=()=>{Ko.value="pointer",qo.value=window.performance.now()},ti=()=>{Ko.value="keyboard",qo.value=window.performance.now()},ri=()=>((0,S.onMounted)((()=>{0===Ho&&(document.addEventListener("mousedown",ei),document.addEventListener("touchstart",ei),document.addEventListener("keydown",ti)),Ho++})),(0,S.onBeforeUnmount)((()=>{Ho--,Ho<=0&&(document.removeEventListener("mousedown",ei),document.removeEventListener("touchstart",ei),document.removeEventListener("keydown",ti))})),{focusReason:Ko,lastUserFocusTimestamp:qo,lastAutomatedFocusTimestamp:zo}),ni=e=>new CustomEvent("focus-trap.focusout-prevented",{...Uo,detail:e});let oi=[];const ii=e=>{const t=e;"Escape"===t.key&&oi.forEach((e=>e(t)))},si=(0,S.defineComponent)({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[Vo,Wo,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const r=(0,S.ref)();let n,o;const{focusReason:i}=ri();var s;s=r=>{e.trapped&&!a.paused&&t("release-requested",r)},(0,S.onMounted)((()=>{0===oi.length&&document.addEventListener("keydown",ii),xe.oc&&oi.push(s)})),(0,S.onBeforeUnmount)((()=>{oi=oi.filter((e=>e!==s)),0===oi.length&&xe.oc&&document.removeEventListener("keydown",ii)}));const a={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},l=r=>{if(!e.loop&&!e.trapped)return;if(a.paused)return;const{key:n,altKey:o,ctrlKey:s,metaKey:l,currentTarget:c,shiftKey:u}=r,{loop:p}=e,d="Tab"===n&&!o&&!s&&!l,f=document.activeElement;if(d&&f){const e=c,[n,o]=(e=>{const t=Go(e);return[Qo(t,e),Qo(t.reverse(),e)]})(e);if(n&&o)if(u||f!==o){if(u&&[n,e].includes(f)){const e=ni({focusReason:i.value});t("focusout-prevented",e),e.defaultPrevented||(r.preventDefault(),p&&Yo(o,!0))}}else{const e=ni({focusReason:i.value});t("focusout-prevented",e),e.defaultPrevented||(r.preventDefault(),p&&Yo(n,!0))}else if(f===e){const e=ni({focusReason:i.value});t("focusout-prevented",e),e.defaultPrevented||r.preventDefault()}}};(0,S.provide)($o,{focusTrapRef:r,onKeydown:l}),(0,S.watch)((()=>e.focusTrapEl),(e=>{e&&(r.value=e)}),{immediate:!0}),(0,S.watch)([r],(([e],[t])=>{e&&(e.addEventListener("keydown",l),e.addEventListener("focusin",p),e.addEventListener("focusout",d)),t&&(t.removeEventListener("keydown",l),t.removeEventListener("focusin",p),t.removeEventListener("focusout",d))}));const c=e=>{t(Vo,e)},u=e=>t(Wo,e),p=i=>{const s=(0,S.unref)(r);if(!s)return;const l=i.target,c=i.relatedTarget,u=l&&s.contains(l);e.trapped||c&&s.contains(c)||(n=c),u&&t("focusin",i),a.paused||e.trapped&&(u?o=l:Yo(o,!0))},d=n=>{const s=(0,S.unref)(r);if(!a.paused&&s)if(e.trapped){const r=n.relatedTarget;jt(r)||s.contains(r)||setTimeout((()=>{if(!a.paused&&e.trapped){const e=ni({focusReason:i.value});t("focusout-prevented",e),e.defaultPrevented||Yo(o,!0)}}),0)}else{const e=n.target;e&&s.contains(e)||t("focusout",n)}};async function f(){await(0,S.nextTick)();const t=(0,S.unref)(r);if(t){Zo.push(a);const r=t.contains(document.activeElement)?n:document.activeElement;if(n=r,!t.contains(r)){const n=new Event(Ro,Fo);t.addEventListener(Ro,c),t.dispatchEvent(n),n.defaultPrevented||(0,S.nextTick)((()=>{let n=e.focusStartEl;Ie(n)||(Yo(n),document.activeElement!==n&&(n="first")),"first"===n&&((e,t=!1)=>{const r=document.activeElement;for(const n of e)if(Yo(n,t),document.activeElement!==r)return})(Go(t),!0),document.activeElement!==r&&"container"!==n||Yo(t)}))}}}function h(){const e=(0,S.unref)(r);if(e){e.removeEventListener(Ro,c);const t=new CustomEvent(Bo,{...Fo,detail:{focusReason:i.value}});e.addEventListener(Bo,u),e.dispatchEvent(t),t.defaultPrevented||"keyboard"!=i.value&&qo.value>zo.value&&!e.contains(document.activeElement)||Yo(null!=n?n:document.body),e.removeEventListener(Bo,u),Zo.remove(a)}}return(0,S.onMounted)((()=>{e.trapped&&f(),(0,S.watch)((()=>e.trapped),(e=>{e?f():h()}))})),(0,S.onBeforeUnmount)((()=>{e.trapped&&h(),r.value&&(r.value.removeEventListener("keydown",l),r.value.removeEventListener("focusin",p),r.value.removeEventListener("focusout",d),r.value=void 0)})),{onKeydown:l}}});var ai=Ue(si,[["render",function(e,t,r,n,o,i){return(0,S.renderSlot)(e.$slots,"default",{handleKeydown:e.onKeydown})}],["__file","focus-trap.vue"]]);const li=(0,S.defineComponent)({name:"ElPopperContent"}),ci=(0,S.defineComponent)({...li,props:qr,emits:zr,setup(e,{expose:t,emit:r}){const n=e,{focusStartRef:o,trapped:i,onFocusAfterReleased:s,onFocusAfterTrapped:a,onFocusInTrap:l,onFocusoutPrevented:c,onReleaseRequested:u}=((e,t)=>{const r=(0,S.ref)(!1),n=(0,S.ref)();return{focusStartRef:n,trapped:r,onFocusAfterReleased:e=>{var r;"pointer"!==(null==(r=e.detail)?void 0:r.focusReason)&&(n.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:t=>{e.visible&&!r.value&&(t.target&&(n.value=t.target),r.value=!0)},onFocusoutPrevented:t=>{e.trapping||("pointer"===t.detail.focusReason&&t.preventDefault(),r.value=!1)},onReleaseRequested:()=>{r.value=!1,t("close")}}})(n,r),{attributes:p,arrowRef:d,contentRef:f,styles:h,instanceRef:m,role:y,update:g}=Io(n),{ariaModal:v,arrowStyle:b,contentAttrs:_,contentClass:E,contentStyle:x,updateZIndex:w}=((e,{attributes:t,styles:r,role:n})=>{const{nextZIndex:o}=(()=>{const e=(0,S.getCurrentInstance)()?(0,S.inject)(Mo,ko):ko,t=(0,S.getCurrentInstance)()?(0,S.inject)(jo,void 0):void 0,r=(0,S.computed)((()=>{const e=(0,S.unref)(t);return Rt(e)?e:2e3})),n=(0,S.computed)((()=>r.value+Do.value));return xe.oc||(0,S.inject)(Mo),{initialZIndex:r,currentZIndex:n,nextZIndex:()=>(e.current++,Do.value=e.current,n.value)}})(),i=qe("popper"),s=(0,S.computed)((()=>(0,S.unref)(t).popper)),a=(0,S.ref)(Rt(e.zIndex)?e.zIndex:o()),l=(0,S.computed)((()=>[i.b(),i.is("pure",e.pure),i.is(e.effect),e.popperClass])),c=(0,S.computed)((()=>[{zIndex:(0,S.unref)(a)},(0,S.unref)(r).popper,e.popperStyle||{}]));return{ariaModal:(0,S.computed)((()=>"dialog"===n.value?"false":void 0)),arrowStyle:(0,S.computed)((()=>(0,S.unref)(r).arrow||{})),contentAttrs:s,contentClass:l,contentStyle:c,contentZIndex:a,updateZIndex:()=>{a.value=Rt(e.zIndex)?e.zIndex:o()}}})(n,{styles:h,attributes:p,role:y}),A=(0,S.inject)(Lo,void 0),T=(0,S.ref)();let P;(0,S.provide)(wr,{arrowStyle:b,arrowRef:d,arrowOffset:T}),A&&(0,S.provide)(Lo,{...A,addInputId:Ae,removeInputId:Ae});const C=(e=!0)=>{g(),e&&w()},O=()=>{C(!1),n.visible&&n.focusOnShow?i.value=!0:!1===n.visible&&(i.value=!1)};return(0,S.onMounted)((()=>{(0,S.watch)((()=>n.triggerTargetEl),((e,t)=>{null==P||P(),P=void 0;const r=(0,S.unref)(e||f.value),o=(0,S.unref)(t||f.value);Bt(r)&&(P=(0,S.watch)([y,()=>n.ariaLabel,v,()=>n.id],(e=>{["role","aria-label","aria-modal","id"].forEach(((t,n)=>{jt(e[n])?r.removeAttribute(t):r.setAttribute(t,e[n])}))}),{immediate:!0})),o!==r&&Bt(o)&&["role","aria-label","aria-modal","id"].forEach((e=>{o.removeAttribute(e)}))}),{immediate:!0}),(0,S.watch)((()=>n.visible),O,{immediate:!0})})),(0,S.onBeforeUnmount)((()=>{null==P||P(),P=void 0})),t({popperContentRef:f,popperInstanceRef:m,updatePopper:C,contentStyle:x}),(e,t)=>((0,S.openBlock)(),(0,S.createElementBlock)("div",(0,S.mergeProps)({ref_key:"contentRef",ref:f},(0,S.unref)(_),{style:(0,S.unref)(x),class:(0,S.unref)(E),tabindex:"-1",onMouseenter:t=>e.$emit("mouseenter",t),onMouseleave:t=>e.$emit("mouseleave",t)}),[(0,S.createVNode)((0,S.unref)(ai),{trapped:(0,S.unref)(i),"trap-on-focus-in":!0,"focus-trap-el":(0,S.unref)(f),"focus-start-el":(0,S.unref)(o),onFocusAfterTrapped:(0,S.unref)(a),onFocusAfterReleased:(0,S.unref)(s),onFocusin:(0,S.unref)(l),onFocusoutPrevented:(0,S.unref)(c),onReleaseRequested:(0,S.unref)(u)},{default:(0,S.withCtx)((()=>[(0,S.renderSlot)(e.$slots,"default")])),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16,["onMouseenter","onMouseleave"]))}});var ui=Ue(ci,[["__file","content.vue"]]);const pi=(0,S.defineComponent)({name:"ElTooltipContent",inheritAttrs:!1}),di=(0,S.defineComponent)({...pi,props:Hr,setup(e,{expose:t}){const r=e,{selector:n}=Pn(),o=qe("tooltip"),i=(0,S.ref)(null);let s;const{controlled:a,id:l,open:c,trigger:u,onClose:p,onOpen:d,onShow:f,onHide:h,onBeforeShow:m,onBeforeHide:y}=(0,S.inject)(Cr,void 0),g=(0,S.computed)((()=>r.transition||`${o.namespace.value}-fade-in-linear`)),v=(0,S.computed)((()=>r.persistent));(0,S.onBeforeUnmount)((()=>{null==s||s()}));const b=(0,S.computed)((()=>!!(0,S.unref)(v)||(0,S.unref)(c))),_=(0,S.computed)((()=>!r.disabled&&(0,S.unref)(c))),E=(0,S.computed)((()=>r.appendTo||n.value)),x=(0,S.computed)((()=>{var e;return null!=(e=r.style)?e:{}})),w=(0,S.computed)((()=>!(0,S.unref)(c))),A=()=>{h()},T=()=>{if((0,S.unref)(a))return!0},P=un(T,(()=>{r.enterable&&"hover"===(0,S.unref)(u)&&d()})),C=un(T,(()=>{"hover"===(0,S.unref)(u)&&p()})),O=()=>{var e,t;null==(t=null==(e=i.value)?void 0:e.updatePopper)||t.call(e),null==m||m()},I=()=>{null==y||y()},k=()=>{f(),s=(0,_e.X2F)((0,S.computed)((()=>{var e;return null==(e=i.value)?void 0:e.popperContentRef})),(()=>{(0,S.unref)(a)||"hover"!==(0,S.unref)(u)&&p()}))},D=()=>{r.virtualTriggering||p()};return(0,S.watch)((()=>(0,S.unref)(c)),(e=>{e||null==s||s()}),{flush:"post"}),(0,S.watch)((()=>r.content),(()=>{var e,t;null==(t=null==(e=i.value)?void 0:e.updatePopper)||t.call(e)})),t({contentRef:i}),(e,t)=>((0,S.openBlock)(),(0,S.createBlock)((0,S.unref)(En),{disabled:!e.teleported,to:(0,S.unref)(E)},{default:(0,S.withCtx)((()=>[(0,S.createVNode)(S.Transition,{name:(0,S.unref)(g),onAfterLeave:A,onBeforeEnter:O,onAfterEnter:k,onBeforeLeave:I},{default:(0,S.withCtx)((()=>[(0,S.unref)(b)?(0,S.withDirectives)(((0,S.openBlock)(),(0,S.createBlock)((0,S.unref)(ui),(0,S.mergeProps)({key:0,id:(0,S.unref)(l),ref_key:"contentRef",ref:i},e.$attrs,{"aria-label":e.ariaLabel,"aria-hidden":(0,S.unref)(w),"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,S.unref)(x)],"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,visible:(0,S.unref)(_),"z-index":e.zIndex,onMouseenter:(0,S.unref)(P),onMouseleave:(0,S.unref)(C),onBlur:D,onClose:(0,S.unref)(p)}),{default:(0,S.withCtx)((()=>[(0,S.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"])),[[S.vShow,(0,S.unref)(_)]]):(0,S.createCommentVNode)("v-if",!0)])),_:3},8,["name"])])),_:3},8,["disabled","to"]))}});var fi=Ue(di,[["__file","content.vue"]]);const hi=(0,S.defineComponent)({name:"ElPopperArrow",inheritAttrs:!1});var mi=Ue((0,S.defineComponent)({...hi,props:rn,setup(e,{expose:t}){const r=e,n=qe("popper"),{arrowOffset:o,arrowRef:i,arrowStyle:s}=(0,S.inject)(wr,void 0);return(0,S.watch)((()=>r.arrowOffset),(e=>{o.value=e})),(0,S.onBeforeUnmount)((()=>{i.value=void 0})),t({arrowRef:i}),(e,t)=>((0,S.openBlock)(),(0,S.createElementBlock)("span",{ref_key:"arrowRef",ref:i,class:(0,S.normalizeClass)((0,S.unref)(n).e("arrow")),style:(0,S.normalizeStyle)((0,S.unref)(s)),"data-popper-arrow":""},null,6))}}),[["__file","arrow.vue"]]);const yi=(0,S.defineComponent)({name:"ElTooltip"}),gi=(0,S.defineComponent)({...yi,props:an,emits:ln,setup(e,{expose:t,emit:r}){const n=e;(()=>{const{id:e,selector:t}=Pn();(0,S.onBeforeMount)((()=>{xe.oc&&(Tn&&document.body.querySelector(t.value)||(Tn=(e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t})(e.value)))}))})();const o=An(),i=(0,S.ref)(),s=(0,S.ref)(),a=()=>{var e;const t=(0,S.unref)(i);t&&(null==(e=t.popperInstanceRef)||e.update())},l=(0,S.ref)(!1),c=(0,S.ref)(),{show:u,hide:p,hasUpdateHandler:d}=sn({indicator:l,toggleReason:c}),{onOpen:f,onClose:h}=(({showAfter:e,hideAfter:t,autoClose:r,open:n,close:o})=>{const{registerTimeout:i}=Or(),{registerTimeout:s,cancelTimeout:a}=Or();return{onOpen:t=>{i((()=>{n(t);const e=(0,S.unref)(r);Rt(e)&&e>0&&s((()=>{o(t)}),e)}),(0,S.unref)(e))},onClose:e=>{a(),i((()=>{o(e)}),(0,S.unref)(t))}}})({showAfter:(0,S.toRef)(n,"showAfter"),hideAfter:(0,S.toRef)(n,"hideAfter"),autoClose:(0,S.toRef)(n,"autoClose"),open:u,close:p}),m=(0,S.computed)((()=>Lt(n.visible)&&!d.value));return(0,S.provide)(Cr,{controlled:m,id:o,open:(0,S.readonly)(l),trigger:(0,S.toRef)(n,"trigger"),onOpen:e=>{f(e)},onClose:e=>{h(e)},onToggle:e=>{(0,S.unref)(l)?h(e):f(e)},onShow:()=>{r("show",c.value)},onHide:()=>{r("hide",c.value)},onBeforeShow:()=>{r("before-show",c.value)},onBeforeHide:()=>{r("before-hide",c.value)},updatePopper:a}),(0,S.watch)((()=>n.disabled),(e=>{e&&l.value&&(l.value=!1)})),(0,S.onDeactivated)((()=>l.value&&p())),t({popperRef:i,contentRef:s,isFocusInsideContent:e=>{var t,r;const n=null==(r=null==(t=s.value)?void 0:t.contentRef)?void 0:r.popperContentRef,o=(null==e?void 0:e.relatedTarget)||document.activeElement;return n&&n.contains(o)},updatePopper:a,onOpen:f,onClose:h,hide:p}),(e,t)=>((0,S.openBlock)(),(0,S.createBlock)((0,S.unref)(Pr),{ref_key:"popperRef",ref:i,role:e.role},{default:(0,S.withCtx)((()=>[(0,S.createVNode)(bn,{disabled:e.disabled,trigger:e.trigger,"trigger-keys":e.triggerKeys,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering},{default:(0,S.withCtx)((()=>[e.$slots.default?(0,S.renderSlot)(e.$slots,"default",{key:0}):(0,S.createCommentVNode)("v-if",!0)])),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),(0,S.createVNode)(fi,{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,S.withCtx)((()=>[(0,S.renderSlot)(e.$slots,"content",{},(()=>[e.rawContent?((0,S.openBlock)(),(0,S.createElementBlock)("span",{key:0,innerHTML:e.content},null,8,["innerHTML"])):((0,S.openBlock)(),(0,S.createElementBlock)("span",{key:1},(0,S.toDisplayString)(e.content),1))])),e.showArrow?((0,S.openBlock)(),(0,S.createBlock)((0,S.unref)(mi),{key:0,"arrow-offset":e.arrowOffset},null,8,["arrow-offset"])):(0,S.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"]))}}),vi=qt(Ue(gi,[["__file","tooltip.vue"]]));var bi=function(){return bi=Xt()||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},bi.apply(this,arguments)},_i=function(e){var t;return null===(t=e.target)||void 0===t?void 0:t.closest("td")},Ei=function(e,t){var r,n=null;return te()(r=e.columns).call(r,(function(e){e.id===t&&(n=e)})),n},xi=function(e,t,r){var n=(t.className||"").match(new RegExp("".concat(r,"-table_[^\\s]+"),"gm"));return n?Ei(e,n[0]):null},Si=function(e,t){if(!e)throw new Error("Row is required when get row identity");if("string"==typeof t){if(!Y()(t).call(t,"."))return"".concat(e[t]);for(var r=e,n=0,o=t.split(".");n<o.length;n++)r=r[o[n]];return"".concat(r)}if("function"==typeof t)return t.call(null,e)},wi=function(e,t){var r,n={};return te()(r=e||[]).call(r,(function(e,r){n[Si(e,t)]={row:e,index:r}})),n};function Ai(e){return""===e||void 0!==e&&(e=or()(e,10),V()(e)&&(e="")),e}function Ti(e){return""===e||void 0!==e&&(e=Ai(e),V()(e)&&(e=80)),e}function Pi(e,t,r){var n=!1,o=ne()(e).call(e,t),i=-1!==o,s=function(s){var a;"add"===s?e.push(t):Jt()(e).call(e,o,1),n=!0,(0,ie.isArray)(t.children)&&te()(a=t.children).call(a,(function(t){Pi(e,t,null!=r?r:!i)}))};return(0,ie.isBoolean)(r)?r&&!i?s("add"):!r&&i&&s("remove"):s(i?"remove":"add"),n}function Ci(e,t,r,n){void 0===r&&(r="children"),void 0===n&&(n="hasChildren");var o=function(e){return!(M()(e)&&e.length)};function i(e,s,a){t(e,s,a),te()(s).call(s,(function(e){if(e[n])t(e,null,a+1);else{var s=e[r];o(s)||i(e,s,a+1)}}))}te()(e).call(e,(function(e){if(e[n])t(e,null,0);else{var s=e[r];o(s)||i(e,s,0)}}))}var Oi=null;function Ii(e){return e.children?(t=e.children,r=Ii,(0,Tt.A)(xr(t,r),1)):[e];var t,r}function ki(e,t){return e+t.colSpan}var Di=function(e,t,r,n){var o,i=0,s=e,a=r.states.columns.value;if(n){var l=Ii(n[e]),c=R()(a).call(a,0,ne()(a).call(a,l[0]));s=(i=P()(c).call(c,ki,0))+P()(l).call(l,ki,0)-1}else i=e;switch(t){case"left":s<r.states.fixedLeafColumnsLength.value&&(o="left");break;case"right":i>=a.length-r.states.rightFixedLeafColumnsLength.value&&(o="right");break;default:s<r.states.fixedLeafColumnsLength.value?o="left":i>=a.length-r.states.rightFixedLeafColumnsLength.value&&(o="right")}return o?{direction:o,start:i,after:s}:{}},Mi=function(e,t,r,n,o,i){void 0===i&&(i=0);var s=[],a=Di(t,r,n,o),l=a.direction,c=a.start,u=a.after;if(l){var p,d="left"===l;s.push(k()(p="".concat(e,"-fixed-column--")).call(p,l)),d&&u+i===n.states.fixedLeafColumnsLength.value-1?s.push("is-last-column"):d||c-i!=n.states.columns.value.length-n.states.rightFixedLeafColumnsLength.value||s.push("is-first-column")}return s};function ji(e,t){return e+(null===t.realWidth||V()(t.realWidth)?Number(t.width):t.realWidth)}var Ni=function(e,t,r,n){var o=Di(e,t,r,n),i=o.direction,s=o.start,a=void 0===s?0:s,l=o.after,c=void 0===l?0:l;if(i){var u,p,d,f={},h="left"===i,m=r.states.columns.value;return h?f.left=P()(u=R()(m).call(m,0,a)).call(u,ji,0):f.right=P()(p=sr()(d=R()(m).call(m,c+1)).call(d)).call(p,ji,0),f}},Li=function(e,t){e&&(V()(e[t])||(e[t]="".concat(e[t],"px")))};var Ri=function(){return Ri=Xt()||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ri.apply(this,arguments)};var Bi=function(){return Bi=Xt()||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Bi.apply(this,arguments)},Fi=function(e){var t=[];return te()(e).call(e,(function(e){e.children&&e.children.length>0?t.push.apply(t,Fi(e.children)):t.push(e)})),t};const Ui=function(){var e,t=(0,S.getCurrentInstance)(),r=(0,S.toRefs)(null===(e=t.proxy)||void 0===e?void 0:e.$props).size,n=(0,S.ref)(null),o=(0,S.ref)([]),i=(0,S.ref)([]),s=(0,S.ref)(!1),a=(0,S.ref)([]),l=(0,S.ref)([]),c=(0,S.ref)([]),u=(0,S.ref)([]),p=(0,S.ref)([]),d=(0,S.ref)([]),f=(0,S.ref)([]),h=(0,S.ref)([]),m=(0,S.ref)(0),y=(0,S.ref)(0),g=(0,S.ref)(0),v=(0,S.ref)(!1),b=(0,S.ref)([]),_=(0,S.ref)(!1),E=(0,S.ref)(!1),x=(0,S.ref)(null),w=(0,S.ref)({}),A=(0,S.ref)(null),T=(0,S.ref)(null),C=(0,S.ref)(null),I=(0,S.ref)(null),D=(0,S.ref)(null);(0,S.watch)(o,(function(){return t.state&&B(!1)}),{deep:!0});var j=function(e){var t;null===(t=e.children)||void 0===t||te()(t).call(t,(function(t){t.fixed=e.fixed,j(t)}))},L=function(){var e,t,r,n,o,i,d,f,h,v;te()(e=a.value).call(e,(function(e){j(e)})),u.value=$()(t=a.value).call(t,(function(e){return!0===e.fixed||"left"===e.fixed})),p.value=$()(r=a.value).call(r,(function(e){return"right"===e.fixed})),u.value.length>0&&a.value[0]&&"selection"===a.value[0].type&&!a.value[0].fixed&&(a.value[0].fixed=!0,u.value.unshift(a.value[0]));var b=$()(n=a.value).call(n,(function(e){return!e.fixed}));l.value=k()(o=k()(i=k()(d=[]).call(d,u.value)).call(i,b)).call(o,p.value);var _=Fi(b),E=Fi(u.value),x=Fi(p.value);m.value=_.length,y.value=E.length,g.value=x.length,c.value=k()(f=k()(h=k()(v=[]).call(v,E)).call(h,_)).call(f,x),s.value=u.value.length>0||p.value.length>0},B=function(e,r){void 0===r&&(r=!1),e&&L(),r?t.state.doLayout():t.state.debouncedUpdateLayout()},U=function(e){var r;if(!t||!t.store)return 0;var n=t.store.states.treeData,o=0,i=null===(r=n.value[e])||void 0===r?void 0:r.children;return i&&(o+=i.length,te()(i).call(i,(function(e){o+=U(e)}))),o},V=function(e,t,r){T.value&&T.value!==e&&(T.value.order=null),T.value=e,C.value=t,I.value=r},W=function(){var e,t=(0,S.unref)(i);te()(e=O()(w.value)).call(e,(function(e){var r=w.value[e];if(r&&0!==r.length){var n=Ei({columns:c.value},e);n&&n.filterMethod&&(t=$()(t).call(t,(function(e){return H()(r).call(r,(function(t){return n.filterMethod.call(null,t,e,n)}))})))}})),A.value=t},K=function(){o.value=function(e,t){var r=t.sortingColumn;return r&&"string"!=typeof r.sortable?function(e,t,r,n,o){var i,s;if(!t&&!n&&(!o||M()(o)&&!o.length))return e;r="string"==typeof r?"descending"===r?-1:1:r&&r<0?-1:1;var a=n?null:function(r,n){return o?(M()(o)||(o=[o]),N()(o).call(o,(function(t){return"string"==typeof t?ar(r,t):t(r,n,e)}))):("$key"!==t&&(0,ie.isObject)(r)&&"$value"in r&&(r=r.$value),[(0,ie.isObject)(r)?ar(r,t):r])};return N()(i=F()(s=N()(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(n)return n(e.value,t.value);for(var r=0,o=e.key.length;r<o;r++){if(e.key[r]<t.key[r])return-1;if(e.key[r]>t.key[r])return 1}return 0}(e,t);return o||(o=e.index-t.index),o*+r}))).call(i,(function(e){return e.value}))}(e,t.sortProp,t.sortOrder,r.sortMethod,r.sortBy):e}(A.value,{sortingColumn:T.value,sortProp:C.value,sortOrder:I.value})},z=function(e){var t=(0,S.getCurrentInstance)(),r=(0,S.ref)(!1),n=(0,S.ref)([]);return{updateExpandRows:function(){var t=e.data.value||[],o=e.rowKey.value;if(r.value)n.value=R()(t).call(t);else if(o){var i=wi(n.value,o);n.value=P()(t).call(t,(function(e,t){var r=Si(t,o);return i[r]&&e.push(t),e}),[])}else n.value=[]},toggleRowExpansion:function(e,r){var o;Pi(n.value,e,r)&&t.emit("expand-change",e,R()(o=n.value).call(o))},setExpandRowKeys:function(r){t.store.assertRowKey();var o=e.data.value||[],i=e.rowKey.value,s=wi(o,i);n.value=P()(r).call(r,(function(e,t){var r=s[t];return r&&e.push(r.row),e}),[])},isRowExpanded:function(t){var r,o=e.rowKey.value;return o?!!wi(n.value,o)[Si(t,o)]:Y()(r=n.value).call(r,t)},states:{expandRows:n,defaultExpandAll:r}}}({data:o,rowKey:n}),G=z.setExpandRowKeys,Q=z.toggleRowExpansion,X=z.updateExpandRows,J=z.states,Z=z.isRowExpanded,ee=function(e){var t=(0,S.ref)([]),r=(0,S.ref)({}),n=(0,S.ref)(16),o=(0,S.ref)(!1),i=(0,S.ref)({}),s=(0,S.ref)("hasChildren"),a=(0,S.ref)("children"),l=(0,S.getCurrentInstance)(),c=(0,S.computed)((function(){if(!e.rowKey.value)return{};var t=e.data.value||[];return p(t)})),u=(0,S.computed)((function(){var t=e.rowKey.value,r=O()(i.value),n={};return r.length?(te()(r).call(r,(function(e){if(i.value[e].length){var r,o={children:[]};te()(r=i.value[e]).call(r,(function(e){var r=Si(e,t);o.children.push(r),e[s.value]&&!n[r]&&(n[r]={children:[]})})),n[e]=o}})),n):n})),p=function(t){var r=e.rowKey.value,n={};return Ci(t,(function(e,t,i){var s=Si(e,r);M()(t)?n[s]={children:N()(t).call(t,(function(e){return Si(e,r)})),level:i}:o.value&&(n[s]={children:[],lazy:!0,level:i})}),a.value,s.value),n},d=function(e,n){var i,s;void 0===e&&(e=!1),void 0===n&&(n=null===(i=l.store)||void 0===i?void 0:i.states.defaultExpandAll.value);var a=c.value,p=u.value,d=O()(a),f={};if(d.length){var h=(0,S.unref)(r),m=[],y=function(r,o){var i;if(e)return t.value?n||Y()(i=t.value).call(i,o):!(!n&&!(null==r?void 0:r.expanded));var s,a=n||t.value&&Y()(s=t.value).call(s,o);return!(!(null==r?void 0:r.expanded)&&!a)};te()(d).call(d,(function(e){var t=h[e],r=Ri({},a[e]);if(r.expanded=y(t,e),r.lazy){var n=t||{},o=n.loaded,i=void 0!==o&&o,s=n.loading,l=void 0!==s&&s;r.loaded=!!i,r.loading=!!l,m.push(e)}f[e]=r}));var g=O()(p);o.value&&g.length&&m.length&&te()(g).call(g,(function(e){var t=h[e],r=p[e].children;if(Y()(m).call(m,e)){if(0!==f[e].children.length)throw new Error("[ElTable]children must be an empty array.");f[e].children=r}else{var n=t||{},o=n.loaded,i=void 0!==o&&o,s=n.loading,a=void 0!==s&&s;f[e]={lazy:!0,loaded:!!i,loading:!!a,expanded:y(t,e),children:r,level:""}}}))}r.value=f,null===(s=l.store)||void 0===s||s.updateTableScrollY()};(0,S.watch)((function(){return t.value}),(function(){d(!0)})),(0,S.watch)((function(){return c.value}),(function(){d()})),(0,S.watch)((function(){return u.value}),(function(){d()}));var f=function(t,n){l.store.assertRowKey();var o=e.rowKey.value,i=Si(t,o),s=i&&r.value[i];if(i&&s&&"expanded"in s){var a=s.expanded;n=void 0===n?!s.expanded:n,r.value[i].expanded=n,a!==n&&l.emit("expand-change",t,n),l.store.updateTableScrollY()}},h=function(e,t,n){var o=l.props.load;o&&!r.value[t].loaded&&(r.value[t].loading=!0,o(e,n,(function(n){if(!M()(n))throw new TypeError("[ElTable] data must be an array");r.value[t].loading=!1,r.value[t].loaded=!0,r.value[t].expanded=!0,n.length&&(i.value[t]=n),l.emit("expand-change",e,!0)})))};return{loadData:h,loadOrToggle:function(t){l.store.assertRowKey();var n=e.rowKey.value,i=Si(t,n),s=r.value[i];o.value&&s&&"loaded"in s&&!s.loaded?h(t,i,s):f(t,void 0)},toggleTreeExpansion:f,updateTreeExpandKeys:function(e){t.value=e,d()},updateTreeData:d,normalize:p,states:{expandRowKeys:t,treeData:r,indent:n,lazy:o,lazyTreeNodeMap:i,lazyColumnIdentifier:s,childrenColumnName:a}}}({data:o,rowKey:n}),re=ee.updateTreeExpandKeys,ne=ee.toggleTreeExpansion,oe=ee.updateTreeData,se=ee.loadOrToggle,ae=ee.states,le=function(e){var t=(0,S.getCurrentInstance)(),r=(0,S.ref)(null),n=(0,S.ref)(null),o=function(){r.value=null},i=function(r){var o,i=e.data,s=e.rowKey,a=null;s.value&&(a=q()(o=(0,S.unref)(i)||[]).call(o,(function(e){return Si(e,s.value)===r}))),n.value=a,t.emit("current-change",n.value,null)};return{setCurrentRowKey:function(e){t.store.assertRowKey(),r.value=e,i(e)},restoreCurrentRowKey:o,setCurrentRowByKey:i,updateCurrentRow:function(e){var r=n.value;if(e&&e!==r)return n.value=e,void t.emit("current-change",n.value,r);!e&&r&&(n.value=null,t.emit("current-change",null,r))},updateCurrentRowData:function(){var s=e.rowKey.value,a=e.data.value||[],l=n.value;if(!Y()(a).call(a,l)&&l){if(s){var c=Si(l,s);i(c)}else n.value=null;null===n.value&&t.emit("current-change",null,l)}else r.value&&(i(r.value),o())},states:{_currentRowKey:r,currentRow:n}}}({data:o,rowKey:n}),ce=le.updateCurrentRowData,ue=le.updateCurrentRow,pe=le.setCurrentRowKey,de=le.states;return{assertRowKey:function(){if(!n.value)throw new Error("[ElTable] prop row-key is required")},updateColumns:L,scheduleLayout:B,isSelected:function(e){var t;return Y()(t=b.value).call(t,e)},clearSelection:function(){v.value=!1;var e=b.value;b.value=[],e.length&&t.emit("selection-change",[])},cleanSelection:function(){var e;if(n.value){e=[];var r=wi(b.value,n.value),i=wi(o.value,n.value);for(var s in r)(0,ie.hasOwn)(r,s)&&!i[s]&&e.push(r[s].row)}else{var a;e=$()(a=b.value).call(a,(function(e){var t;return!Y()(t=o.value).call(t,e)}))}if(e.length){var l,c=$()(l=b.value).call(l,(function(t){return!Y()(e).call(e,t)}));b.value=c,t.emit("selection-change",R()(c).call(c))}},getSelectionRows:function(){var e;return R()(e=b.value||[]).call(e)},toggleRowSelection:function(e,r,n){if(void 0===r&&(r=void 0),void 0===n&&(n=!0),Pi(b.value,e,r)){var o,i=R()(o=b.value||[]).call(o);n&&t.emit("select",i,e),t.emit("selection-change",i)}},_toggleAllSelection:function(){var e,r,n,i,s=E.value?!v.value:!(v.value||b.value.length);v.value=s;var a,l=!1,c=0,u=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;te()(e=o.value).call(e,(function(e,t){var r=t+c;x.value?x.value.call(null,e,r)&&Pi(b.value,e,s)&&(l=!0):Pi(b.value,e,s)&&(l=!0),c+=U(Si(e,u))})),l&&t.emit("selection-change",b.value?R()(a=b.value).call(a):[]),t.emit("select-all",R()(r=b.value||[]).call(r))},toggleAllSelection:null,updateSelectionByRowKey:function(){var e,t=wi(b.value,n.value);te()(e=o.value).call(e,(function(e){var r=Si(e,n.value),o=t[r];o&&(b.value[o.index]=e)}))},updateAllSelected:function(){var e,r,i;if(0!==(null===(e=o.value)||void 0===e?void 0:e.length)){var s;n.value&&(s=wi(b.value,n.value));for(var a,l,c=!0,u=0,p=0,d=0,f=(o.value||[]).length;d<f;d++){var h=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,m=d+p,y=o.value[d],g=x.value&&x.value.call(null,y,m);if(a=y,l=void 0,s?s[Si(a,n.value)]:Y()(l=b.value).call(l,a))u++;else if(!x.value||g){c=!1;break}p+=U(Si(y,h))}0===u&&(c=!1),v.value=c}else v.value=!1},updateFilters:function(e,t){M()(e)||(e=[e]);var r={};return te()(e).call(e,(function(e){w.value[e.id]=t,r[e.columnKey||e.id]=t})),r},updateCurrentRow:ue,updateSort:V,execFilter:W,execSort:K,execQuery:function(e){void 0===e&&(e=void 0),e&&$()(e)||W(),K()},clearFilter:function(e){var r=t.refs.tableHeaderRef;if(r){var n=Xt()({},r.filterPanels),o=O()(n);if(o.length)if("string"==typeof e&&(e=[e]),M()(e)){var i=N()(e).call(e,(function(e){return function(e,t){for(var r=null,n=0;n<e.columns.length;n++){var o=e.columns[n];if(o.columnKey===t){r=o;break}}return r||(0,ie.throwError)("ElTable","No column matching with column-key: ".concat(t)),r}({columns:c.value},e)}));te()(o).call(o,(function(e){var t=q()(i).call(i,(function(t){return t.id===e}));t&&(t.filteredValue=[])})),t.store.commit("filterChange",{column:i,values:[],silent:!0,multi:!0})}else te()(o).call(o,(function(e){var t,r=q()(t=c.value).call(t,(function(t){return t.id===e}));r&&(r.filteredValue=[])})),w.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})}},clearSort:function(){T.value&&(V(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},toggleRowExpansion:Q,setExpandRowKeysAdapter:function(e){G(e),re(e)},setCurrentRowKey:pe,toggleRowExpansionAdapter:function(e,t){var r,n=H()(r=c.value).call(r,(function(e){return"expand"===e.type}));n?Q(e,t):ne(e,t)},isRowExpanded:Z,updateExpandRows:X,updateCurrentRowData:ce,loadOrToggle:se,updateTreeData:oe,states:Bi(Bi(Bi({tableSize:r,rowKey:n,data:o,_data:i,isComplex:s,_columns:a,originColumns:l,columns:c,fixedColumns:u,rightFixedColumns:p,leafColumns:d,fixedLeafColumns:f,rightFixedLeafColumns:h,updateOrderFns:[],leafColumnsLength:m,fixedLeafColumnsLength:y,rightFixedLeafColumnsLength:g,isAllSelected:v,selection:b,reserveSelection:_,selectOnIndeterminate:E,selectable:x,filters:w,filteredData:A,sortingColumn:T,sortProp:C,sortOrder:I,hoverRow:D},J),ae),de)}};var Vi=function(){return Vi=Xt()||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Vi.apply(this,arguments)};function Wi(e,t){return N()(e).call(e,(function(e){var r;return e.id===t.id?t:((null===(r=e.children)||void 0===r?void 0:r.length)&&(e.children=Wi(e.children,t)),e)}))}function $i(e){te()(e).call(e,(function(e){var t,r;e.no=null===(t=e.getColumnIndex)||void 0===t?void 0:t.call(e),(null===(r=e.children)||void 0===r?void 0:r.length)&&$i(e.children)})),F()(e).call(e,(function(e,t){return e.no-t.no}))}const Ki=function(){var e=(0,S.getCurrentInstance)(),t=Ui(),r=(0,be.useNamespace)("table"),n={setData:function(t,r){var n=(0,S.unref)(t._data)!==r;t.data.value=r,t._data.value=r,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),(0,S.unref)(t.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):n?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn:function(t,r,n,o){var i=(0,S.unref)(t._columns),s=[];n?(n&&!n.children&&(n.children=[]),n.children.push(r),s=Wi(i,n)):(i.push(r),s=i),$i(s),t._columns.value=s,t.updateOrderFns.push(o),"selection"===r.type&&(t.selectable.value=r.selectable,t.reserveSelection.value=r.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder:function(t,r){var n;(null===(n=r.getColumnIndex)||void 0===n?void 0:n.call(r))!==r.no&&($i(t._columns.value),e.$ready&&e.store.updateColumns())},removeColumn:function(t,r,n,o){var i,s,a=(0,S.unref)(t._columns)||[];if(n){var l,c;Jt()(l=n.children).call(l,er()(c=n.children).call(c,(function(e){return e.id===r.id})),1),(0,S.nextTick)((function(){var e;0===(null===(e=n.children)||void 0===e?void 0:e.length)&&delete n.children})),t._columns.value=Wi(a,n)}else{var u=ne()(a).call(a,r);u>-1&&(Jt()(a).call(a,u,1),t._columns.value=a)}var p=ne()(i=t.updateOrderFns).call(i,o);p>-1&&Jt()(s=t.updateOrderFns).call(s,p,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort:function(t,r){var n=r.prop,o=r.order,i=r.init;if(n){var s,a=q()(s=(0,S.unref)(t.columns)).call(s,(function(e){return e.property===n}));a&&(a.order=o,e.store.updateSort(a,n,o),e.store.commit("changeSortCondition",{init:i}))}},changeSortCondition:function(t,r){var n=t.sortingColumn,o=t.sortProp,i=t.sortOrder,s=(0,S.unref)(n),a=(0,S.unref)(o),l=(0,S.unref)(i);null===l&&(t.sortingColumn.value=null,t.sortProp.value=null),e.store.execQuery({filter:!0}),r&&(r.silent||r.init)||e.emit("sort-change",{column:s,prop:a,order:l}),e.store.updateTableScrollY()},filterChange:function(t,r){var n=r.column,o=rr()(r),i=r.silent,s=e.store.updateFilters(n,o);e.store.execQuery(),i||e.emit("filter-change",s),e.store.updateTableScrollY()},toggleAllSelection:function(){e.store.toggleAllSelection()},rowSelectedChanged:function(t,r){e.store.toggleRowSelection(r),e.store.updateAllSelected()},setHoverRow:function(e,t){e.hoverRow.value=t},setCurrentRow:function(t,r){e.store.updateCurrentRow(r)}};return Vi(Vi({ns:r},t),{mutations:n,commit:function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o,i=e.store.mutations;if(!i[t])throw new Error("Action not found: ".concat(t));i[t].apply(e,k()(o=[e.store.states]).call(o,r))},updateTableScrollY:function(){(0,S.nextTick)((function(){return e.layout.updateScrollY.apply(e.layout)}))}})};var qi,zi=((qi={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data"})["treeProps.hasChildren"]={key:"lazyColumnIdentifier",default:"hasChildren"},qi["treeProps.children"]={key:"childrenColumnName",default:"children"},qi);function Hi(e,t,r){var n=e,o=zi[t];"object"===(0,Gt.A)(zi[t])&&(o=o.key,n=n||zi[t].default),r.states[o].value=n}function Gi(e,t){if(Y()(t).call(t,".")){var r=t.split("."),n=e;return te()(r).call(r,(function(e){n=n[e]})),n}return e[t]}var Qi=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,S.ref)(null),this.scrollX=(0,S.ref)(!1),this.scrollY=(0,S.ref)(!1),this.bodyWidth=(0,S.ref)(null),this.fixedWidth=(0,S.ref)(null),this.rightFixedWidth=(0,S.ref)(null),this.gutterWidth=0,e)(0,ie.hasOwn)(e,t)&&((0,S.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,r=this.scrollY.value;return t=e.wrapRef.scrollHeight>e.wrapRef.clientHeight,this.scrollY.value=t,r!==t}return!1},e.prototype.setHeight=function(e,t){var r=this;if(void 0===t&&(t="height"),ie.isClient){var n,o=this.table.vnode.el;if(e="number"==typeof(n=e)?n:"string"==typeof n?/^\d+(?:px)?$/.test(n)?or()(n,10):n:null,this.height.value=Number(e),!o&&(e||0===e))return(0,S.nextTick)((function(){return r.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 te()(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(ie.isClient){var e=this.fit,t=this.table.vnode.el.clientWidth,r=0,n=this.getFlattenColumns(),o=$()(n).call(n,(function(e){return"number"!=typeof e.width}));if(te()(n).call(n,(function(e){"number"==typeof e.width&&e.realWidth&&(e.realWidth=null)})),o.length>0&&e){if(te()(n).call(n,(function(e){r+=Number(e.width||e.minWidth||80)})),r<=t){this.scrollX.value=!1;var i=t-r;if(1===o.length)o[0].realWidth=Number(o[0].minWidth||80)+i;else{var s=i/P()(o).call(o,(function(e,t){return e+Number(t.minWidth||80)}),0),a=0;te()(o).call(o,(function(e,t){if(0!==t){var r=Math.floor(Number(e.minWidth||80)*s);a+=r,e.realWidth=Number(e.minWidth||80)+r}})),o[0].realWidth=Number(o[0].minWidth||80)+i-a}}else this.scrollX.value=!0,te()(o).call(o,(function(e){e.realWidth=Number(e.minWidth)}));this.bodyWidth.value=Math.max(r,t),this.table.state.resizeState.value.width=this.bodyWidth.value}else te()(n).call(n,(function(e){e.width||e.minWidth?e.realWidth=Number(e.width||e.minWidth):e.realWidth=80,r+=e.realWidth})),this.scrollX.value=r>t,this.bodyWidth.value=r;var l=this.store.states.fixedColumns.value;if(l.length>0){var c=0;te()(l).call(l,(function(e){c+=Number(e.realWidth||e.width)})),this.fixedWidth.value=c}var u=this.store.states.rightFixedColumns.value;if(u.length>0){var p=0;te()(u).call(u,(function(e){p+=Number(e.realWidth||e.width)})),this.rightFixedWidth.value=p}this.notifyObservers("columns")}},e.prototype.addObserver=function(e){this.observers.push(e)},e.prototype.removeObserver=function(e){var t,r,n=ne()(t=this.observers).call(t,e);-1!==n&&Jt()(r=this.observers).call(r,n,1)},e.prototype.notifyObservers=function(e){var t=this,r=this.observers;te()(r).call(r,(function(r){var n,o;switch(e){case"columns":null===(n=r.state)||void 0===n||n.onColumnsChange(t);break;case"scrollable":null===(o=r.state)||void 0===o||o.onScrollableChange(t);break;default:throw new Error("Table Layout don't have event ".concat(e,"."))}}))},e}();const Xi=Qi;var Yi=r(61240),Ji=r.n(Yi),Zi=r(27681),es=r.n(Zi),ts=r(16781),rs=r.n(ts),ns=r(27414),os=r.n(ns);const is=Re({type:String,values:["","default","small","large"],required:!1}),ss=Symbol("size"),as="update:modelValue",ls={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:is,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...Dt(["ariaControls"])},cs={[as]:e=>Ie(e)||Rt(e)||Lt(e),change:e=>Ie(e)||Rt(e)||Lt(e)},us=Symbol("checkboxGroupContextKey"),ps=e=>{const t=(0,S.getCurrentInstance)();return(0,S.computed)((()=>{var r,n;return null==(n=null==(r=null==t?void 0:t.proxy)?void 0:r.$props)?void 0:n[e]}))},ds=(e,t={})=>{const r=(0,S.ref)(void 0),n=t.prop?r:ps("size"),o=t.global?r:(()=>{const e=(0,S.inject)(ss,{});return(0,S.computed)((()=>(0,S.unref)(e.size)||""))})(),i=t.form?{size:void 0}:(0,S.inject)(No,void 0),s=t.formItem?{size:void 0}:(0,S.inject)(Lo,void 0);return(0,S.computed)((()=>n.value||(0,S.unref)(e)||(null==s?void 0:s.size)||(null==i?void 0:i.size)||o.value||""))},fs=e=>{const t=ps("disabled"),r=(0,S.inject)(No,void 0);return(0,S.computed)((()=>t.value||(0,S.unref)(e)||(null==r?void 0:r.disabled)||!1))},hs=()=>({form:(0,S.inject)(No,void 0),formItem:(0,S.inject)(Lo,void 0)}),ms=(e,{formItemContext:t,disableIdGeneration:r,disableIdManagement:n})=>{r||(r=(0,S.ref)(!1)),n||(n=(0,S.ref)(!1));const o=(0,S.ref)();let i;const s=(0,S.computed)((()=>{var r;return!!(!e.label&&!e.ariaLabel&&t&&t.inputIds&&(null==(r=t.inputIds)?void 0:r.length)<=1)}));return(0,S.onMounted)((()=>{i=(0,S.watch)([(0,S.toRef)(e,"id"),r],(([e,r])=>{const i=null!=e?e:r?void 0:An().value;i!==o.value&&((null==t?void 0:t.removeInputId)&&(o.value&&t.removeInputId(o.value),(null==n?void 0:n.value)||r||!i||t.addInputId(i)),o.value=i)}),{immediate:!0})})),(0,S.onUnmounted)((()=>{i&&i(),(null==t?void 0:t.removeInputId)&&o.value&&t.removeInputId(o.value)})),{isLabeledByFormItem:s,inputId:o}};var ys=r(46996);const gs=({from:e,replacement:t,scope:r,version:n,ref:o,type:i="API"},s)=>{(0,S.watch)((()=>(0,S.unref)(s)),(e=>{}),{immediate:!0})},vs=(e,t)=>{const{formItem:r}=hs(),{model:n,isGroup:o,isLimitExceeded:i}=(e=>{const t=(0,S.ref)(!1),{emit:r}=(0,S.getCurrentInstance)(),n=(0,S.inject)(us,void 0),o=(0,S.computed)((()=>!1===Nt(n))),i=(0,S.ref)(!1),s=(0,S.computed)({get(){var r,i;return o.value?null==(r=null==n?void 0:n.modelValue)?void 0:r.value:null!=(i=e.modelValue)?i:t.value},set(e){var a,l;o.value&&Ce(e)?(i.value=void 0!==(null==(a=null==n?void 0:n.max)?void 0:a.value)&&e.length>(null==n?void 0:n.max.value)&&e.length>s.value.length,!1===i.value&&(null==(l=null==n?void 0:n.changeEvent)||l.call(n,e))):(r(as,e),t.value=e)}});return{model:s,isGroup:o,isLimitExceeded:i}})(e),{isFocused:s,isChecked:a,checkboxButtonSize:l,checkboxSize:c,hasOwnLabel:u,actualValue:p}=((e,t,{model:r})=>{const n=(0,S.inject)(us,void 0),o=(0,S.ref)(!1),i=(0,S.computed)((()=>Ft(e.value)?e.label:e.value)),s=(0,S.computed)((()=>{const t=r.value;return Lt(t)?t:Ce(t)?ke(i.value)?t.map(S.toRaw).some((e=>(0,ys.A)(e,i.value))):t.map(S.toRaw).includes(i.value):null!=t?t===e.trueValue||t===e.trueLabel:!!t})),a=ds((0,S.computed)((()=>{var e;return null==(e=null==n?void 0:n.size)?void 0:e.value})),{prop:!0}),l=ds((0,S.computed)((()=>{var e;return null==(e=null==n?void 0:n.size)?void 0:e.value})));return{checkboxButtonSize:a,isChecked:s,isFocused:o,checkboxSize:l,hasOwnLabel:(0,S.computed)((()=>!!t.default||!Ft(i.value))),actualValue:i}})(e,t,{model:n}),{isDisabled:d}=(({model:e,isChecked:t})=>{const r=(0,S.inject)(us,void 0),n=(0,S.computed)((()=>{var n,o;const i=null==(n=null==r?void 0:r.max)?void 0:n.value,s=null==(o=null==r?void 0:r.min)?void 0:o.value;return!Nt(i)&&e.value.length>=i&&!t.value||!Nt(s)&&e.value.length<=s&&t.value}));return{isDisabled:fs((0,S.computed)((()=>(null==r?void 0:r.disabled.value)||n.value))),isLimitDisabled:n}})({model:n,isChecked:a}),{inputId:f,isLabeledByFormItem:h}=ms(e,{formItemContext:r,disableIdGeneration:u,disableIdManagement:o}),{handleChange:m,onClickRoot:y}=((e,{model:t,isLimitExceeded:r,hasOwnLabel:n,isDisabled:o,isLabeledByFormItem:i})=>{const s=(0,S.inject)(us,void 0),{formItem:a}=hs(),{emit:l}=(0,S.getCurrentInstance)();function c(t){var r,n,o,i;return[!0,e.trueValue,e.trueLabel].includes(t)?null==(n=null!=(r=e.trueValue)?r:e.trueLabel)||n:null!=(i=null!=(o=e.falseValue)?o:e.falseLabel)&&i}const u=(0,S.computed)((()=>(null==s?void 0:s.validateEvent)||e.validateEvent));return(0,S.watch)((()=>e.modelValue),(()=>{u.value&&(null==a||a.validate("change").catch((e=>{})))})),{handleChange:function(e){if(r.value)return;const t=e.target;l("change",c(t.checked),e)},onClickRoot:async function(s){r.value||n.value||o.value||!i.value||s.composedPath().some((e=>"LABEL"===e.tagName))||(t.value=c([!1,e.falseValue,e.falseLabel].includes(t.value)),await(0,S.nextTick)(),function(e,t){l("change",c(e),t)}(t.value,s))}}})(e,{model:n,isLimitExceeded:i,hasOwnLabel:u,isDisabled:d,isLabeledByFormItem:h});return e.checked&&function(){var t,r;Ce(n.value)&&!n.value.includes(p.value)?n.value.push(p.value):n.value=null==(r=null!=(t=e.trueValue)?t:e.trueLabel)||r}(),gs({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,S.computed)((()=>o.value&&Ft(e.value)))),gs({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},(0,S.computed)((()=>!!e.trueLabel))),gs({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},(0,S.computed)((()=>!!e.falseLabel))),{inputId:f,isLabeledByFormItem:h,isChecked:a,isDisabled:d,isFocused:s,checkboxButtonSize:l,checkboxSize:c,hasOwnLabel:u,model:n,actualValue:p,handleChange:m,onClickRoot:y}},bs=(0,S.defineComponent)({name:"ElCheckbox"}),_s=(0,S.defineComponent)({...bs,props:ls,emits:cs,setup(e){const t=e,r=(0,S.useSlots)(),{inputId:n,isLabeledByFormItem:o,isChecked:i,isDisabled:s,isFocused:a,checkboxSize:l,hasOwnLabel:c,model:u,actualValue:p,handleChange:d,onClickRoot:f}=vs(t,r),h=qe("checkbox"),m=(0,S.computed)((()=>[h.b(),h.m(l.value),h.is("disabled",s.value),h.is("bordered",t.border),h.is("checked",i.value)])),y=(0,S.computed)((()=>[h.e("input"),h.is("disabled",s.value),h.is("checked",i.value),h.is("indeterminate",t.indeterminate),h.is("focus",a.value)]));return(e,t)=>((0,S.openBlock)(),(0,S.createBlock)((0,S.resolveDynamicComponent)(!(0,S.unref)(c)&&(0,S.unref)(o)?"span":"label"),{class:(0,S.normalizeClass)((0,S.unref)(m)),"aria-controls":e.indeterminate?e.ariaControls:null,onClick:(0,S.unref)(f)},{default:(0,S.withCtx)((()=>{var t,r;return[(0,S.createElementVNode)("span",{class:(0,S.normalizeClass)((0,S.unref)(y))},[e.trueValue||e.falseValue||e.trueLabel||e.falseLabel?(0,S.withDirectives)(((0,S.openBlock)(),(0,S.createElementBlock)("input",{key:0,id:(0,S.unref)(n),"onUpdate:modelValue":e=>(0,S.isRef)(u)?u.value=e:null,class:(0,S.normalizeClass)((0,S.unref)(h).e("original")),type:"checkbox",indeterminate:e.indeterminate,name:e.name,tabindex:e.tabindex,disabled:(0,S.unref)(s),"true-value":null!=(t=e.trueValue)?t:e.trueLabel,"false-value":null!=(r=e.falseValue)?r:e.falseLabel,onChange:(0,S.unref)(d),onFocus:e=>a.value=!0,onBlur:e=>a.value=!1,onClick:(0,S.withModifiers)((()=>{}),["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[S.vModelCheckbox,(0,S.unref)(u)]]):(0,S.withDirectives)(((0,S.openBlock)(),(0,S.createElementBlock)("input",{key:1,id:(0,S.unref)(n),"onUpdate:modelValue":e=>(0,S.isRef)(u)?u.value=e:null,class:(0,S.normalizeClass)((0,S.unref)(h).e("original")),type:"checkbox",indeterminate:e.indeterminate,disabled:(0,S.unref)(s),value:(0,S.unref)(p),name:e.name,tabindex:e.tabindex,onChange:(0,S.unref)(d),onFocus:e=>a.value=!0,onBlur:e=>a.value=!1,onClick:(0,S.withModifiers)((()=>{}),["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","disabled","value","name","tabindex","onChange","onFocus","onBlur","onClick"])),[[S.vModelCheckbox,(0,S.unref)(u)]]),(0,S.createElementVNode)("span",{class:(0,S.normalizeClass)((0,S.unref)(h).e("inner"))},null,2)],2),(0,S.unref)(c)?((0,S.openBlock)(),(0,S.createElementBlock)("span",{key:0,class:(0,S.normalizeClass)((0,S.unref)(h).e("label"))},[(0,S.renderSlot)(e.$slots,"default"),e.$slots.default?(0,S.createCommentVNode)("v-if",!0):((0,S.openBlock)(),(0,S.createElementBlock)(S.Fragment,{key:0},[(0,S.createTextVNode)((0,S.toDisplayString)(e.label),1)],64))],2)):(0,S.createCommentVNode)("v-if",!0)]})),_:3},8,["class","aria-controls","onClick"]))}});var Es=Ue(_s,[["__file","checkbox.vue"]]);const xs=(0,S.defineComponent)({name:"ElCheckboxButton"}),Ss=(0,S.defineComponent)({...xs,props:ls,emits:cs,setup(e){const t=e,r=(0,S.useSlots)(),{isFocused:n,isChecked:o,isDisabled:i,checkboxButtonSize:s,model:a,actualValue:l,handleChange:c}=vs(t,r),u=(0,S.inject)(us,void 0),p=qe("checkbox"),d=(0,S.computed)((()=>{var e,t,r,n;const o=null!=(t=null==(e=null==u?void 0:u.fill)?void 0:e.value)?t:"";return{backgroundColor:o,borderColor:o,color:null!=(n=null==(r=null==u?void 0:u.textColor)?void 0:r.value)?n:"",boxShadow:o?`-1px 0 0 0 ${o}`:void 0}})),f=(0,S.computed)((()=>[p.b("button"),p.bm("button",s.value),p.is("disabled",i.value),p.is("checked",o.value),p.is("focus",n.value)]));return(e,t)=>{var r,s;return(0,S.openBlock)(),(0,S.createElementBlock)("label",{class:(0,S.normalizeClass)((0,S.unref)(f))},[e.trueValue||e.falseValue||e.trueLabel||e.falseLabel?(0,S.withDirectives)(((0,S.openBlock)(),(0,S.createElementBlock)("input",{key:0,"onUpdate:modelValue":e=>(0,S.isRef)(a)?a.value=e:null,class:(0,S.normalizeClass)((0,S.unref)(p).be("button","original")),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:(0,S.unref)(i),"true-value":null!=(r=e.trueValue)?r:e.trueLabel,"false-value":null!=(s=e.falseValue)?s:e.falseLabel,onChange:(0,S.unref)(c),onFocus:e=>n.value=!0,onBlur:e=>n.value=!1,onClick:(0,S.withModifiers)((()=>{}),["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[S.vModelCheckbox,(0,S.unref)(a)]]):(0,S.withDirectives)(((0,S.openBlock)(),(0,S.createElementBlock)("input",{key:1,"onUpdate:modelValue":e=>(0,S.isRef)(a)?a.value=e:null,class:(0,S.normalizeClass)((0,S.unref)(p).be("button","original")),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:(0,S.unref)(i),value:(0,S.unref)(l),onChange:(0,S.unref)(c),onFocus:e=>n.value=!0,onBlur:e=>n.value=!1,onClick:(0,S.withModifiers)((()=>{}),["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","value","onChange","onFocus","onBlur","onClick"])),[[S.vModelCheckbox,(0,S.unref)(a)]]),e.$slots.default||e.label?((0,S.openBlock)(),(0,S.createElementBlock)("span",{key:2,class:(0,S.normalizeClass)((0,S.unref)(p).be("button","inner")),style:(0,S.normalizeStyle)((0,S.unref)(o)?(0,S.unref)(d):void 0)},[(0,S.renderSlot)(e.$slots,"default",{},(()=>[(0,S.createTextVNode)((0,S.toDisplayString)(e.label),1)]))],6)):(0,S.createCommentVNode)("v-if",!0)],2)}}});var ws=Ue(Ss,[["__file","checkbox-button.vue"]]);const As=Be({modelValue:{type:Array,default:()=>[]},disabled:Boolean,min:Number,max:Number,size:is,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},...Dt(["ariaLabel"])}),Ts={[as]:e=>Ce(e),change:e=>Ce(e)},Ps=(0,S.defineComponent)({name:"ElCheckboxGroup"}),Cs=(0,S.defineComponent)({...Ps,props:As,emits:Ts,setup(e,{emit:t}){const r=e,n=qe("checkbox"),{formItem:o}=hs(),{inputId:i,isLabeledByFormItem:s}=ms(r,{formItemContext:o}),a=async e=>{t(as,e),await(0,S.nextTick)(),t("change",e)},l=(0,S.computed)({get:()=>r.modelValue,set(e){a(e)}});return(0,S.provide)(us,{...It((0,S.toRefs)(r),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:l,changeEvent:a}),(0,S.watch)((()=>r.modelValue),(()=>{r.validateEvent&&(null==o||o.validate("change").catch((e=>{})))})),(e,t)=>{var r;return(0,S.openBlock)(),(0,S.createBlock)((0,S.resolveDynamicComponent)(e.tag),{id:(0,S.unref)(i),class:(0,S.normalizeClass)((0,S.unref)(n).b("group")),role:"group","aria-label":(0,S.unref)(s)?void 0:e.ariaLabel||"checkbox-group","aria-labelledby":(0,S.unref)(s)?null==(r=(0,S.unref)(o))?void 0:r.labelId:void 0},{default:(0,S.withCtx)((()=>[(0,S.renderSlot)(e.$slots,"default")])),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var Os=Ue(Cs,[["__file","checkbox-group.vue"]]);const Is=qt(Es,{CheckboxButton:ws,CheckboxGroup:Os});zt(ws),zt(Os);var ks={key:0},Ds=["disabled"],Ms=["label","onClick"],js=r(86864),Ns=r(27077);const Ls=new Map;if(xe.oc){let e;document.addEventListener("mousedown",(t=>e=t)),document.addEventListener("mouseup",(t=>{if(e){for(const r of Ls.values())for(const{documentHandler:n}of r)n(t,e);e=void 0}}))}function Rs(e,t){let r=[];return Array.isArray(t.arg)?r=t.arg:Bt(t.arg)&&r.push(t.arg),function(n,o){const i=t.instance.popperRef,s=n.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,d=r.length&&r.some((e=>null==e?void 0:e.contains(s)))||r.length&&r.includes(a),f=i&&(i.contains(s)||i.contains(a));l||c||u||p||d||f||t.value(n,o)}}const Bs={beforeMount(e,t){Ls.has(e)||Ls.set(e,[]),Ls.get(e).push({documentHandler:Rs(e,t),bindingFn:t.value})},updated(e,t){Ls.has(e)||Ls.set(e,[]);const r=Ls.get(e),n=r.findIndex((e=>e.bindingFn===t.oldValue)),o={documentHandler:Rs(e,t),bindingFn:t.value};n>=0?r.splice(n,1,o):r.push(o)},unmounted(e){Ls.delete(e)}};var Fs=Is.CheckboxGroup;const Us=(0,S.defineComponent)({name:"ElTableFilterPanel",components:{ElCheckbox:Is,ElCheckboxGroup:Fs,ElScrollbar:Ht,ElTooltip:vi,ElIcon:js.ElIcon,ArrowDown:Ns.ArrowDown,ArrowUp:Ns.ArrowUp},directives:{ClickOutside:Bs},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup:function(e){var t=(0,S.getCurrentInstance)(),r=(0,be.useLocale)().t,n=(0,be.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,S.ref)(!1),s=(0,S.ref)(null),a=(0,S.computed)((function(){return e.column&&e.column.filters})),l=(0,S.computed)((function(){var t;return e.column.filterClassName?k()(t="".concat(n.b()," ")).call(t,e.column.filterClassName):n.b()})),c=(0,S.computed)({get:function(){var t;return((null===(t=e.column)||void 0===t?void 0:t.filteredValue)||[])[0]},set:function(e){var t,r;u.value&&(null!=e?Jt()(t=u.value).call(t,0,1,e):Jt()(r=u.value).call(r,0,1))}}),u=(0,S.computed)({get:function(){return e.column&&e.column.filteredValue||[]},set:function(t){e.column&&e.upDataColumn("filteredValue",t)}}),p=(0,S.computed)((function(){return!e.column||e.column.filterMultiple})),d=function(){i.value=!1},f=function(t){e.store.commit("filterChange",{column:e.column,values:t}),e.store.updateAllSelected()};(0,S.watch)(i,(function(t){e.column&&e.upDataColumn("filterOpened",t)}),{immediate:!0});var h=(0,S.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:p,filterClassName:l,filteredValue:u,filterValue:c,filters:a,handleConfirm:function(){f(u.value),d()},handleReset:function(){u.value=[],f(u.value),d()},handleSelect:function(e){c.value=e,f(null!=e?u.value:[]),d()},isActive:function(e){return e.value===c.value},t:r,ns:n,showFilterPanel:function(e){e.stopPropagation(),i.value=!i.value},hideFilterPanel:function(){i.value=!1},popperPaneRef:h,tooltip:s}}});var Vs=r(66262);const Ws=(0,Vs.A)(Us,[["render",function(e,t,r,n,o,i){var s=(0,S.resolveComponent)("el-checkbox"),a=(0,S.resolveComponent)("el-checkbox-group"),l=(0,S.resolveComponent)("el-scrollbar"),c=(0,S.resolveComponent)("arrow-up"),u=(0,S.resolveComponent)("arrow-down"),p=(0,S.resolveComponent)("el-icon"),d=(0,S.resolveComponent)("el-tooltip"),f=(0,S.resolveDirective)("click-outside");return(0,S.openBlock)(),(0,S.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,S.withCtx)((function(){var r,n;return[e.multiple?((0,S.openBlock)(),(0,S.createElementBlock)("div",ks,[(0,S.createElementVNode)("div",{class:(0,S.normalizeClass)(e.ns.e("content"))},[(0,S.createVNode)(l,{"wrap-class":e.ns.e("wrap")},{default:(0,S.withCtx)((function(){return[(0,S.createVNode)(a,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.filteredValue=t}),class:(0,S.normalizeClass)(e.ns.e("checkbox-group"))},{default:(0,S.withCtx)((function(){return[((0,S.openBlock)(!0),(0,S.createElementBlock)(S.Fragment,null,(0,S.renderList)(e.filters,(function(e){return(0,S.openBlock)(),(0,S.createBlock)(s,{key:e.value,value:e.value},{default:(0,S.withCtx)((function(){return[(0,S.createTextVNode)((0,S.toDisplayString)(e.text),1)]})),_:2},1032,["value"])})),128))]})),_:1},8,["modelValue","class"])]})),_:1},8,["wrap-class"])],2),(0,S.createElementVNode)("div",{class:(0,S.normalizeClass)(e.ns.e("bottom"))},[(0,S.createElementVNode)("button",{class:(0,S.normalizeClass)((r={},r[e.ns.is("disabled")]=0===e.filteredValue.length,r)),disabled:0===e.filteredValue.length,type:"button",onClick:t[1]||(t[1]=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.handleConfirm&&e.handleConfirm.apply(e,t)})},(0,S.toDisplayString)(e.t("el.table.confirmFilter")),11,Ds),(0,S.createElementVNode)("button",{type:"button",onClick:t[2]||(t[2]=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.handleReset&&e.handleReset.apply(e,t)})},(0,S.toDisplayString)(e.t("el.table.resetFilter")),1)],2)])):((0,S.openBlock)(),(0,S.createElementBlock)("ul",{key:1,class:(0,S.normalizeClass)(e.ns.e("list"))},[(0,S.createElementVNode)("li",{class:(0,S.normalizeClass)([e.ns.e("list-item"),(n={},n[e.ns.is("active")]=void 0===e.filterValue||null===e.filterValue,n)]),onClick:t[3]||(t[3]=function(t){return e.handleSelect(null)})},(0,S.toDisplayString)(e.t("el.table.clearFilter")),3),((0,S.openBlock)(!0),(0,S.createElementBlock)(S.Fragment,null,(0,S.renderList)(e.filters,(function(t){return(0,S.openBlock)(),(0,S.createElementBlock)("li",{key:t.value,class:(0,S.normalizeClass)([e.ns.e("list-item"),e.ns.is("active",e.isActive(t))]),label:t.value,onClick:function(r){return e.handleSelect(t.value)}},(0,S.toDisplayString)(t.text),11,Ms)})),128))],2))]})),default:(0,S.withCtx)((function(){return[(0,S.withDirectives)(((0,S.openBlock)(),(0,S.createElementBlock)("span",{class:(0,S.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=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.showFilterPanel&&e.showFilterPanel.apply(e,t)})},[(0,S.createVNode)(p,null,{default:(0,S.withCtx)((function(){return[e.column.filterOpened?((0,S.openBlock)(),(0,S.createBlock)(c,{key:0})):((0,S.openBlock)(),(0,S.createBlock)(u,{key:1}))]})),_:1})],2)),[[f,e.hideFilterPanel,e.popperPaneRef]])]})),_:1},8,["visible","placement","popper-class"])}]]),$s=Ws,Ks=function(e){var t=(0,S.getCurrentInstance)();(0,S.onBeforeMount)((function(){r.value.addObserver(t)})),(0,S.onMounted)((function(){n(r.value),o(r.value)})),(0,S.onUpdated)((function(){n(r.value),o(r.value)})),(0,S.onUnmounted)((function(){r.value.removeObserver(t)}));var r=(0,S.computed)((function(){var t=e.layout;if(!t)throw new Error("Can not find table layout.");return t})),n=function(t){var r,n=(null===(r=e.vnode.el)||void 0===r?void 0:r.querySelectorAll("colgroup > col"))||[];if(n.length){var o=t.getFlattenColumns(),i={};te()(o).call(o,(function(e){i[e.id]=e}));for(var s=0,a=n.length;s<a;s++){var l=n[s],c=l.getAttribute("name"),u=i[c];u&&l.setAttribute("width",u.realWidth||u.width)}}},o=function(t){for(var r,n,o=(null===(r=e.vnode.el)||void 0===r?void 0:r.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===(n=e.vnode.el)||void 0===n?void 0:n.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:r.value,onColumnsChange:n,onScrollableChange:o}};var qs=rs()("ElTable"),zs=r(56255),Hs=r.n(zs);r(48598);const Gs=function(e){var t=(0,S.inject)(qs),r=(0,be.useNamespace)("table");return{getHeaderRowStyle:function(e){var r=null==t?void 0:t.props.headerRowStyle;return"function"==typeof r?r.call(null,{rowIndex:e}):r},getHeaderRowClass:function(e){var r=[],n=null==t?void 0:t.props.headerRowClassName;return"string"==typeof n?r.push(n):"function"==typeof n&&r.push(n.call(null,{rowIndex:e})),r.join(" ")},getHeaderCellStyle:function(r,n,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:r,columnIndex:n,row:o,column:i}));var l=Ni(n,i.fixed,e.store,o);return Li(l,"left"),Li(l,"right"),Xt()({},a,l)},getHeaderCellClass:function(n,o,i,s){var a=Mi(r.b(),o,s.fixed,e.store,i),l=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=R()(Array.prototype).call(t,0,o)),n[o]=t[o]);return k()(e).call(e,n||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:n,columnIndex:o,row:i,column:s})),l.push(r.e("cell")),$()(l).call(l,(function(e){return Boolean(e)})).join(" ")}}};var Qs=function(e){var t=[];return te()(e).call(e,(function(e){e.children?(t.push(e),t.push.apply(t,Qs(e.children))):t.push(e)})),t},Xs=function(e){var t=1,r=function(e,n){if(n&&(e.level=n.level+1,t<e.level&&(t=e.level)),e.children){var o,i=0;te()(o=e.children).call(o,(function(t){r(t,e),i+=t.colSpan})),e.colSpan=i}else e.colSpan=1};te()(e).call(e,(function(e){e.level=1,r(e,void 0)}));for(var n=[],o=0;o<t;o++)n.push([]);var i=Qs(e);return te()(i).call(i,(function(e){var r;e.children?(e.rowSpan=1,te()(r=e.children).call(r,(function(e){return e.isSubColumn=!0}))):e.rowSpan=t-e.level+1,n[e.level-1].push(e)})),n};const Ys=(0,S.defineComponent)({name:"ElTableHeader",components:{ElCheckbox:Is},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 r=this,n=t.emit,o=(0,S.getCurrentInstance)(),i=(0,S.inject)(qs),s=(0,be.useNamespace)("table"),a=(0,S.ref)({}),l=Ks(i),c=l.onColumnsChange,u=l.onScrollableChange;(0,S.onMounted)((function(){return t=r,n=void 0,s=function(){var t,r,n;return function(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=es()(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof rs()&&(s[os()]=function(){return this}),s;function a(a){return function(l){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=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++,n=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],n=0}finally{r=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,S.nextTick)()];case 1:return o.sent(),[4,(0,S.nextTick)()];case 2:return o.sent(),t=e.defaultSort,r=t.prop,n=t.order,null==i||i.store.commit("sort",{prop:r,order:n,init:!0}),[2]}}))},new((o=void 0)||(o=Ji()))((function(e,r){function i(e){try{l(s.next(e))}catch(e){r(e)}}function a(e){try{l(s.throw(e))}catch(e){r(e)}}function l(t){var r;t.done?e(t.value):(r=t.value,r instanceof o?r:new o((function(e){e(r)}))).then(i,a)}l((s=s.apply(t,n||[])).next())}));var t,n,o,s}));var p=function(e,t){var r=(0,S.getCurrentInstance)(),n=(0,S.inject)(qs),o=function(e){e.stopPropagation()},i=(0,S.ref)(null),s=(0,S.ref)(!1),a=(0,S.ref)({}),l=function(t,r,o){var i;t.stopPropagation();var s=r.order===o?null:o||function(e){var t=e.order,r=e.sortOrders;if(""===t)return r[0];var n=ne()(r).call(r,t||null);return r[n>r.length-2?0:n+1]}(r),a=null===(i=t.target)||void 0===i?void 0:i.closest("th");if(a&&(0,ie.hasClass)(a,"noclick"))(0,ie.removeClass)(a,"noclick");else if(r.sortable){var l,c=e.store.states,u=c.sortProp.value,p=c.sortingColumn.value;(p!==r||p===r&&null===p.order)&&(p&&(p.order=null),c.sortingColumn.value=r,u=r.property),l=r.order=s||null,c.sortProp.value=u,c.sortOrder.value=l,null==n||n.store.commit("changeSortCondition")}};return{handleHeaderClick:function(e,t){!t.filters&&t.sortable?l(e,t,!1):t.filterable&&!t.sortable&&o(e),null==n||n.emit("header-click",t,e)},handleHeaderContextMenu:function(e,t){null==n||n.emit("header-contextmenu",t,e)},handleMouseDown:function(o,l){if(ie.isClient&&!(l.children&&l.children.length>0)&&i.value&&e.border){s.value=!0;var c=n;t("set-drag-visible",!0);var u=(null==c?void 0:c.vnode.el).getBoundingClientRect().left,p=r.vnode.el.querySelector("th.".concat(l.id)),d=p.getBoundingClientRect(),f=d.left-u+30;(0,ie.addClass)(p,"noclick"),a.value={startMouseLeft:o.clientX,startLeft:d.right-u,startColumnLeft:d.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,r=a.value.startLeft+t;h.style.left="".concat(Math.max(f,r),"px")},y=function(){if(s.value){var r=a.value,n=r.startColumnLeft,u=r.startLeft,d=or()(h.style.left,10)-n;l.width=l.realWidth=d,null==c||c.emit("header-dragend",l.width,u-n,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,Hs()((function(){(0,ie.removeClass)(p,"noclick")}),0)};document.addEventListener("mousemove",m),document.addEventListener("mouseup",y)}},handleMouseMove:function(t,r){if(!(r.children&&r.children.length>0)){var n=t.target;if((0,ie.isElement)(n)){var o=null==n?void 0:n.closest("th");if(r&&r.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,ie.hasClass)(o,"is-sortable")&&(o.style.cursor="col-resize"),i.value=r):s.value||(l.cursor="",(0,ie.hasClass)(o,"is-sortable")&&(o.style.cursor="pointer"),i.value=null)}}}},handleMouseOut:function(){ie.isClient&&(document.body.style.cursor="")},handleSortClick:l,handleFilterClick:o}}(e,n),d=p.handleHeaderClick,f=p.handleHeaderContextMenu,h=p.handleMouseDown,m=p.handleMouseMove,y=p.handleMouseOut,g=p.handleSortClick,v=p.handleFilterClick,b=Gs(e),_=b.getHeaderRowStyle,E=b.getHeaderRowClass,x=b.getHeaderCellStyle,w=b.getHeaderCellClass,A=function(e){var t=(0,S.inject)(qs),r=(0,S.computed)((function(){return Xs(e.store.states.originColumns.value)}));return{isGroup:(0,S.computed)((function(){var e=r.value.length>1;return e&&t&&(t.state.isGroup.value=!0),e})),toggleAllSelection:function(e){e.stopPropagation(),null==t||t.store.commit("toggleAllSelection")},columnRows:r}}(e),T=A.isGroup,P=A.toggleAllSelection,C=A.columnRows;return o.state={onColumnsChange:c,onScrollableChange:u},o.filterPanels=a,{ns:s,filterPanels:a,onColumnsChange:c,onScrollableChange:u,columnRows:C,getHeaderRowClass:E,getHeaderRowStyle:_,getHeaderCellClass:w,getHeaderCellStyle:x,handleHeaderClick:d,handleHeaderContextMenu:f,handleMouseDown:h,handleMouseMove:m,handleMouseOut:y,handleSortClick:g,handleFilterClick:v,isGroup:T,toggleAllSelection:P}},render:function(){var e,t=this,r=t.ns,n=t.isGroup,o=t.columnRows,i=t.getHeaderCellStyle,s=t.getHeaderCellClass,a=t.getHeaderRowClass,l=t.getHeaderRowStyle,c=t.handleHeaderClick,u=t.handleHeaderContextMenu,p=t.handleMouseDown,d=t.handleMouseMove,f=t.handleSortClick,h=t.handleMouseOut,m=t.store,y=t.$parent,g=1;return(0,S.h)("thead",{class:(e={},e[r.is("group")]=n,e)},N()(o).call(o,(function(e,t){return(0,S.h)("tr",{class:a(t),key:t,style:l(t)},N()(e).call(e,(function(r,n){return r.rowSpan>g&&(g=r.rowSpan),(0,S.h)("th",{class:s(t,n,e,r),colspan:r.colSpan,key:"".concat(r.id,"-thead"),rowspan:r.rowSpan,style:i(t,n,e,r),onClick:function(e){e.currentTarget.classList.contains("noclick")||c(e,r)},onContextmenu:function(e){return u(e,r)},onMousedown:function(e){return p(e,r)},onMousemove:function(e){return d(e,r)},onMouseout:h},[(0,S.h)("div",{class:["cell",r.filteredValue&&r.filteredValue.length>0?"highlight":""]},[r.renderHeader?r.renderHeader({column:r,$index:n,store:m,_self:y}):r.label,r.sortable&&(0,S.h)("span",{onClick:function(e){return f(e,r)},class:"caret-wrapper"},[(0,S.h)("i",{onClick:function(e){return f(e,r,"ascending")},class:"sort-caret ascending"}),(0,S.h)("i",{onClick:function(e){return f(e,r,"descending")},class:"sort-caret descending"})]),r.filterable&&(0,S.h)($s,{store:m,placement:r.filterPlacement||"bottom-start",column:r,upDataColumn:function(e,t){r[e]=t}})])])})))})))}});var Js=r(49763),Zs=r.n(Js),ea=r(14404);const ta=(0,r(41703).A)((function(e,t,r){(0,ea.A)(e,t,r)}));function ra(e,t,r){return void 0===r&&(r=.01),e-t>r}const na=function(e){var t=(0,S.inject)(qs),r=(0,be.useNamespace)("table");return{getRowStyle:function(e,r){var n=null==t?void 0:t.props.rowStyle;return"function"==typeof n?n.call(null,{row:e,rowIndex:r}):n||null},getRowClass:function(n,o){var i=[r.e("row")];(null==t?void 0:t.props.highlightCurrentRow)&&n===e.store.states.currentRow.value&&i.push("current-row"),e.stripe&&o%2==1&&i.push(r.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:n,rowIndex:o})),i},getCellStyle:function(r,n,o,i){var s=null==t?void 0:t.props.cellStyle,a=null!=s?s:{};"function"==typeof s&&(a=s.call(null,{rowIndex:r,columnIndex:n,row:o,column:i}));var l=Ni(n,null==e?void 0:e.fixed,e.store);return Li(l,"left"),Li(l,"right"),Xt()({},a,l)},getCellClass:function(n,o,i,s,a){var l=Mi(r.b(),o,null==e?void 0:e.fixed,e.store,void 0,a),c=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=R()(Array.prototype).call(t,0,o)),n[o]=t[o]);return k()(e).call(e,n||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:n,columnIndex:o,row:i,column:s})),c.push(r.e("cell")),$()(c).call(c,(function(e){return Boolean(e)})).join(" ")},getSpan:function(e,r,n,o){var i=1,s=1,a=null==t?void 0:t.props.spanMethod;if("function"==typeof a){var l=a({row:e,column:r,rowIndex:n,columnIndex:o});M()(l)?(i=l[0],s=l[1]):"object"===(0,Gt.A)(l)&&(i=l.rowspan,s=l.colspan)}return{rowspan:i,colspan:s}},getColspanRealWidth:function(e,t,r){var n;if(t<1)return e[r].realWidth;var o=R()(n=N()(e).call(e,(function(e){var t=e.realWidth,r=e.width;return t||r}))).call(n,r,r+t);return Number(P()(o).call(o,(function(e,t){return Number(e)+Number(t)}),-1))}}};var oa=function(){return oa=Xt()||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},oa.apply(this,arguments)};const ia=function(e){var t=(0,S.inject)(qs),r=(0,be.useNamespace)("table"),n=function(e){var t=(0,S.inject)(qs),r=(0,S.ref)(""),n=(0,S.ref)((0,S.h)("div")),o=function(r,n,o){var i,s,a=t,l=_i(r),c=null===(i=null==a?void 0:a.vnode.el)||void 0===i?void 0:i.dataset.prefix;l&&(s=xi({columns:e.store.states.columns.value},l,c))&&(null==a||a.emit("cell-".concat(o),n,s,l,r)),null==a||a.emit("row-".concat(o),n,s,r)},i=(0,le.A)((function(t){e.store.commit("setHoverRow",t)}),30),s=(0,le.A)((function(){e.store.commit("setHoverRow",null)}),30),a=function(e,t,r){for(var n=t.target.parentNode;e>1&&(n=null==n?void 0:n.nextSibling)&&"TR"===n.nodeName;)r(n,"hover-row hover-fixed-row"),e--};return{handleDoubleClick:function(e,t){o(e,t,"dblclick")},handleClick:function(t,r){e.store.commit("setCurrentRow",r),o(t,r,"click")},handleContextMenu:function(e,t){o(e,t,"contextmenu")},handleMouseEnter:i,handleMouseLeave:s,handleCellMouseEnter:function(r,n,o){var i,s=t,l=_i(r),c=null===(i=null==s?void 0:s.vnode.el)||void 0===i?void 0:i.dataset.prefix;if(l){var u=xi({columns:e.store.states.columns.value},l,c);l.rowSpan>1&&a(l.rowSpan,r,ie.addClass);var p=s.hoverState={cell:l,column:u,row:n};null==s||s.emit("cell-mouse-enter",p.row,p.column,p.cell,r)}if(o&&(!o.showOverflowTooltip||"function"!=typeof o.showOverflowTooltip||o.showOverflowTooltip())){var d=r.target.querySelector(".cell");if((0,ie.hasClass)(d,"".concat(c,"-tooltip"))&&d.childNodes.length){var f=document.createRange();f.setStart(d,0),f.setEnd(d,d.childNodes.length);var h=f.getBoundingClientRect(),m=h.width,y=h.height,g=m-Math.floor(m),v=d.getBoundingClientRect(),b=v.width,_=v.height;g<.001&&(m=Math.floor(m)),y-Math.floor(y)<.001&&(y=Math.floor(y));var E,x,w=(E=d,x=window.getComputedStyle(E,null),{left:or()(x.paddingLeft,10)||0,right:or()(x.paddingRight,10)||0,top:or()(x.paddingTop,10)||0,bottom:or()(x.paddingBottom,10)||0}),A=w.top+w.bottom;(ra(m+(w.left+w.right),b)||ra(y+A,_)||ra(d.scrollWidth,b))&&function(e,t,r,n){if((null==Oi?void 0:Oi.trigger)!==r){null==Oi||Oi();var o=null==n?void 0:n.refs.tableWrapper,i=null==o?void 0:o.dataset.prefix,s=bi({strategy:"fixed"},e.popperOptions),a=(0,S.createVNode)(vi,bi(bi({content:t,virtualTriggering:!0,virtualRef:r,appendTo:o,placement:"top",transition:"none",offset:0,hideAfter:0},e),{popperOptions:s,onHide:function(){null==Oi||Oi()}}));a.appContext=bi(bi({},n.appContext),n);var l=document.createElement("div");(0,S.render)(a,l),a.component.exposed.onOpen();var c=null==o?void 0:o.querySelector(".".concat(i,"-scrollbar__wrap"));(Oi=function(){(0,S.render)(null,l),null==c||c.removeEventListener("scroll",Oi),Oi=null}).trigger=r,null==c||c.addEventListener("scroll",Oi)}}(o,l.innerText||l.textContent,l,s)}}},handleCellMouseLeave:function(e){var r=_i(e);if(r){r.rowSpan>1&&a(r.rowSpan,e,ie.removeClass);var n=null==t?void 0:t.hoverState;null==t||t.emit("cell-mouse-leave",null==n?void 0:n.row,null==n?void 0:n.column,null==n?void 0:n.cell,e)}},tooltipContent:r,tooltipTrigger:n}}(e),o=n.handleDoubleClick,i=n.handleClick,s=n.handleContextMenu,a=n.handleMouseEnter,l=n.handleMouseLeave,c=n.handleCellMouseEnter,u=n.handleCellMouseLeave,p=n.tooltipContent,d=n.tooltipTrigger,f=na(e),h=f.getRowStyle,m=f.getRowClass,y=f.getCellStyle,g=f.getCellClass,v=f.getSpan,b=f.getColspanRealWidth,_=(0,S.computed)((function(){var t;return er()(t=e.store.states.columns.value).call(t,(function(e){return"default"===e.type}))})),E=function(e,r){var n=t.props.rowKey;return n?Si(e,n):r},x=function(n,p,d,f){var x;void 0===f&&(f=!1);var A=e.tooltipEffect,T=e.tooltipOptions,P=e.store.states,C=P.indent,O=P.columns,I=m(n,p),D=!0;d&&(I.push(r.em("row","level-".concat(d.level))),D=d.display);var M=D?null:{display:"none"};return(0,S.h)("tr",{style:[M,h(n,p)],class:I,key:E(n,p),onDblclick:function(e){return o(e,n)},onClick:function(e){return i(e,n)},onContextmenu:function(e){return s(e,n)},onMouseenter:function(){return a(p)},onMouseleave:l},N()(x=O.value).call(x,(function(r,o){var i,s,a=v(n,r,p,o),l=a.rowspan,h=a.colspan;if(!l||!h)return null;var m=Xt()({},r);m.realWidth=b(O.value,h,o);var x={store:e.store,_self:e.context||t,column:m,row:n,$index:p,cellIndex:o,expanded:f};o===_.value&&d&&(x.treeNode={indent:d.level*C.value,level:d.level},"boolean"==typeof d.expanded&&(x.treeNode.expanded=d.expanded,"loading"in d&&(x.treeNode.loading=d.loading),"noLazyChildren"in d&&(x.treeNode.noLazyChildren=d.noLazyChildren)));var P=k()(i="".concat(E(n,p),",")).call(i,o),I=m.columnKey||m.rawColumnKey||"",D=w(o,r,x),M=r.showOverflowTooltip&&ta({effect:A},T,r.showOverflowTooltip);return"function"==typeof r.showOverflowTooltip&&(M.showOverflowTooltip=function(){return r.showOverflowTooltip(x)}),(0,S.h)("td",{style:y(p,o,n,r),class:g(p,o,n,r,h-1),key:k()(s="".concat(I)).call(s,P),rowspan:l,colspan:h,onMouseenter:function(e){return c(e,n,M)},onMouseleave:u},[D])})))},w=function(e,t,r){return t.renderCell(r)};return{wrappedRowRender:function(n,o){var i=e.store,s=i.isRowExpanded,a=i.assertRowKey,l=i.states,c=l.treeData,u=l.lazyTreeNodeMap,p=l.childrenColumnName,d=l.rowKey,f=i.states.columns.value,h=H()(f).call(f,(function(e){return"expand"===e.type}));if(h){var m,y=s(n),g=x(n,o,void 0,y),v=t.renderExpanded;return y?v?[[g,(0,S.h)("tr",{key:"expanded-row__".concat(g.key)},[(0,S.h)("td",{colspan:f.length,class:k()(m="".concat(r.e("cell")," ")).call(m,r.e("expanded-cell"))},[v({row:n,$index:o,store:i,expanded:y})])])]]:(console.error("[Element Error]renderExpanded is required."),g):[[g]]}if(O()(c.value).length){a();var b=Si(n,d.value),_=c.value[b],E=null;_&&(E={expanded:_.expanded,level:_.level,display:!0},"boolean"==typeof _.lazy&&("boolean"==typeof _.loaded&&_.loaded&&(E.noLazyChildren=!(_.children&&_.children.length)),E.loading=_.loading));var w=[x(n,o,E)];if(_){var A=0,T=function(e,t){e&&e.length&&t&&te()(e).call(e,(function(e){var r={display:t.display&&t.expanded,level:t.level+1,expanded:!1,noLazyChildren:!1,loading:!1},n=Si(e,d.value);if(null==n)throw new Error("For nested data item, row-key is required.");if((_=oa({},c.value[n]))&&(r.expanded=_.expanded,_.level=_.level||r.level,_.display=!(!_.expanded||!r.display),"boolean"==typeof _.lazy&&("boolean"==typeof _.loaded&&_.loaded&&(r.noLazyChildren=!(_.children&&_.children.length)),r.loading=_.loading)),A++,w.push(x(e,o+A,r)),_){var i=u.value[n]||e[p.value];T(i,_)}}))};_.display=!0;var P=u.value[b]||n[p.value];T(P,_)}return w}return x(n,o,void 0)},tooltipContent:p,tooltipTrigger:d}},sa={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},aa=(0,S.defineComponent)({name:"ElTableBody",props:sa,setup:function(e){var t=(0,S.getCurrentInstance)(),r=(0,S.inject)(qs),n=(0,be.useNamespace)("table"),o=ia(e),i=o.wrappedRowRender,s=o.tooltipContent,a=o.tooltipTrigger,l=Ks(r),c=l.onColumnsChange,u=l.onScrollableChange,p=[];return(0,S.watch)(e.store.states.hoverRow,(function(r,o){var i,s,a=null==t?void 0:t.vnode.el,l=$()(i=Zs()((null==a?void 0:a.children)||[])).call(i,(function(e){return null==e?void 0:e.classList.contains("".concat(n.e("row")))})),c=r,u=null===(s=l[c])||void 0===s?void 0:s.childNodes;if(null==u?void 0:u.length){var d,f=0,h=P()(d=Zs()(u)).call(d,(function(e,t,r){var n,o;return(null===(n=u[r])||void 0===n?void 0:n.colSpan)>1&&(f=null===(o=u[r])||void 0===o?void 0:o.colSpan),"TD"!==t.nodeName&&0===f&&e.push(r),f>0&&f--,e}),[]);te()(h).call(h,(function(e){var t;for(c=r;c>0;){var n=null===(t=l[c-1])||void 0===t?void 0:t.childNodes;if(n[e]&&"TD"===n[e].nodeName&&n[e].rowSpan>1){(0,ie.addClass)(n[e],"hover-cell"),p.push(n[e]);break}c--}}))}else te()(p).call(p,(function(e){return(0,ie.removeClass)(e,"hover-cell")})),p.length=0;e.store.states.isComplex.value&&ie.isClient&&(0,ie.rAF)((function(){var e=l[o],t=l[r];e&&!e.classList.contains("hover-fixed-row")&&(0,ie.removeClass)(e,"hover-row"),t&&(0,ie.addClass)(t,"hover-row")}))})),(0,S.onUnmounted)((function(){null==Oi||Oi()})),{ns:n,onColumnsChange:c,onScrollableChange:u,wrappedRowRender:i,tooltipContent:s,tooltipTrigger:a}},render:function(){var e=this.wrappedRowRender,t=this.store.states.data.value||[];return(0,S.h)("tbody",{tabIndex:-1},[P()(t).call(t,(function(t,r){return k()(t).call(t,e(r,t.length))}),[])])}});r(9868);var la=r(63579),ca=r.n(la);const ua=function(e){var t=function(){var e=(0,S.inject)(qs),t=null==e?void 0:e.store;return{leftFixedLeafCount:(0,S.computed)((function(){return t.states.fixedLeafColumnsLength.value})),rightFixedLeafCount:(0,S.computed)((function(){return t.states.rightFixedColumns.value.length})),columnsCount:(0,S.computed)((function(){return t.states.columns.value.length})),leftFixedCount:(0,S.computed)((function(){return t.states.fixedColumns.value.length})),rightFixedCount:(0,S.computed)((function(){return t.states.rightFixedColumns.value.length})),columns:t.states.columns}}().columns,r=(0,be.useNamespace)("table");return{getCellClasses:function(t,n){var o=t[n],i=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=R()(Array.prototype).call(t,0,o)),n[o]=t[o]);return k()(e).call(e,n||R()(Array.prototype).call(t))}([r.e("cell"),o.id,o.align,o.labelClassName],Mi(r.b(),n,o.fixed,e.store),!0);return o.className&&i.push(o.className),o.children||i.push(r.is("leaf")),i},getCellStyles:function(t,r){var n=Ni(r,t.fixed,e.store);return Li(n,"left"),Li(n,"right"),n},columns:t}};var pa=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=R()(Array.prototype).call(t,0,o)),n[o]=t[o]);return k()(e).call(e,n||R()(Array.prototype).call(t))};const da=(0,S.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=ua(e),r=t.getCellClasses,n=t.getCellStyles,o=t.columns;return{ns:(0,be.useNamespace)("table"),getCellClasses:r,getCellStyles:n,columns:o}},render:function(){var e=this,t=e.columns,r=e.getCellStyles,n=e.getCellClasses,o=e.summaryMethod,i=e.sumText,s=this.store.states.data.value,a=[];return o?a=o({columns:t,data:s}):te()(t).call(t,(function(e,t){if(0!==t){var r=N()(s).call(s,(function(t){return Number(t[e.property])})),n=[],o=!0;te()(r).call(r,(function(e){if(!V()(+e)){o=!1;var t="".concat(e).split(".")[1];n.push(t?t.length:0)}}));var l=Math.max.apply(null,n);a[t]=o?"":P()(r).call(r,(function(e,t){var r=Number(t);return V()(+r)?e:ca()((e+t).toFixed(Math.min(l,20)))}),0)}else a[t]=i})),(0,S.h)((0,S.h)("tfoot",[(0,S.h)("tr",{},pa([],N()(t).call(t,(function(e,o){return(0,S.h)("td",{key:o,colspan:e.colSpan,rowspan:e.rowSpan,class:n(t,o),style:r(e,o)},[(0,S.h)("div",{class:["cell",e.labelClassName]},[a[o]])])})),!0))]))}});var fa=r(165),ha=r.n(fa);const ma=function(e,t,r,n){var o=this,i=(0,S.ref)(!1),s=(0,S.ref)(null),a=(0,S.ref)(!1),l=(0,S.ref)({width:null,height:null,headerHeight:null}),c=(0,S.ref)(!1),u=(0,S.ref)(),p=(0,S.ref)(0),d=(0,S.ref)(0),f=(0,S.ref)(0),h=(0,S.ref)(0),m=(0,S.ref)(0);(0,S.watchEffect)((function(){t.setHeight(e.height)})),(0,S.watchEffect)((function(){t.setMaxHeight(e.maxHeight)})),(0,S.watch)((function(){return[e.currentRowKey,r.states.rowKey]}),(function(e){var t=e[0],n=e[1];(0,S.unref)(n)&&(0,S.unref)(t)&&r.setCurrentRowKey("".concat(t))}),{immediate:!0}),(0,S.watch)((function(){return e.data}),(function(e){n.store.commit("setData",e)}),{immediate:!0,deep:!0}),(0,S.watchEffect)((function(){e.expandRowKeys&&r.setExpandRowKeysAdapter(e.expandRowKeys)}));var y=(0,S.computed)((function(){return e.height||e.maxHeight||r.states.fixedColumns.value.length>0||r.states.rightFixedColumns.value.length>0})),g=(0,S.computed)((function(){return{width:t.bodyWidth.value?"".concat(t.bodyWidth.value,"px"):""}})),v=function(){y.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(_)};(0,S.onMounted)((function(){return t=o,i=void 0,a=function(){var t,o;return function(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=es()(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof rs()&&(s[os()]=function(){return this}),s;function a(a){return function(l){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=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++,n=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],n=0}finally{r=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,S.nextTick)()];case 1:return i.sent(),r.updateColumns(),E(),requestAnimationFrame(v),t=n.vnode.el,o=n.refs.headerWrapper,e.flexible&&t&&t.parentElement&&(t.parentElement.style.minWidth="0"),l.value={width:u.value=t.offsetWidth,height:t.offsetHeight,headerHeight:e.showHeader&&o?o.offsetHeight:null},te()(s=r.states.columns.value).call(s,(function(e){e.filteredValue&&e.filteredValue.length&&n.store.commit("filterChange",{column:e,values:e.filteredValue,silent:!0})})),n.$ready=!0,[2]}}))},new((s=void 0)||(s=Ji()))((function(e,r){function n(e){try{l(a.next(e))}catch(e){r(e)}}function o(e){try{l(a.throw(e))}catch(e){r(e)}}function l(t){var r;t.done?e(t.value):(r=t.value,r instanceof s?r:new s((function(e){e(r)}))).then(n,o)}l((a=a.apply(t,i||[])).next())}));var t,i,s,a}));var b=function(e){!function(e,r){var n;if(e){var o=$()(n=Zs()(e.classList)).call(n,(function(e){return!ha()(e).call(e,"is-scrolling-")}));o.push(t.scrollX.value?r:"is-scrolling-none"),e.className=o.join(" ")}}(n.refs.tableWrapper,e)},_=function(){if(n.refs.scrollBarRef){if(!t.scrollX.value){var e="is-scrolling-none";return r=e,void((o=n.refs.tableWrapper)&&o.classList.contains(r)||b(e))}var r,o,i=n.refs.scrollBarRef.wrapRef;if(i){var s=i.scrollLeft,a=i.offsetWidth,l=i.scrollWidth,c=n.refs,u=c.headerWrapper,p=c.footerWrapper;u&&(u.scrollLeft=s),p&&(p.scrollLeft=s),b(s>=l-a-1?"is-scrolling-right":0===s?"is-scrolling-left":"is-scrolling-middle")}}},E=function(){n.refs.scrollBarRef&&(n.refs.scrollBarRef.wrapRef&&(0,_e.MLh)(n.refs.scrollBarRef.wrapRef,"scroll",_,{passive:!0}),e.fit?(0,_e.wYm)(n.vnode.el,x):(0,_e.MLh)(window,"resize",x),(0,_e.wYm)(n.refs.bodyWrapper,(function(){var e,t;x(),null===(t=null===(e=n.refs)||void 0===e?void 0:e.scrollBarRef)||void 0===t||t.update()})))},x=function(){var t,r,o,i,s=n.vnode.el;if(n.$ready&&s){var a=!1,c=l.value,g=c.width,b=c.height,_=c.headerHeight,E=u.value=s.offsetWidth;g!==E&&(a=!0);var x=s.offsetHeight;(e.height||y.value)&&b!==x&&(a=!0);var S="fixed"===e.tableLayout?n.refs.headerWrapper:null===(t=n.refs.tableHeaderRef)||void 0===t?void 0:t.$el;e.showHeader&&(null==S?void 0:S.offsetHeight)!==_&&(a=!0),p.value=(null===(r=n.refs.tableWrapper)||void 0===r?void 0:r.scrollHeight)||0,f.value=(null==S?void 0:S.scrollHeight)||0,h.value=(null===(o=n.refs.footerWrapper)||void 0===o?void 0:o.offsetHeight)||0,m.value=(null===(i=n.refs.appendWrapper)||void 0===i?void 0:i.offsetHeight)||0,d.value=p.value-f.value-h.value-m.value,a&&(l.value={width:E,height:x,headerHeight:e.showHeader&&(null==S?void 0:S.offsetHeight)||0},v())}},w=ds(),A=(0,S.computed)((function(){var e=t.bodyWidth,r=t.scrollY,n=t.gutterWidth;return e.value?"".concat(e.value-(r.value?n:0),"px"):""})),T=(0,S.computed)((function(){return e.maxHeight?"fixed":e.tableLayout})),P=(0,S.computed)((function(){if(e.data&&e.data.length)return null;var t="100%";e.height&&d.value&&(t="".concat(d.value,"px"));var r=u.value;return{width:r?"".concat(r,"px"):"",height:t}})),C=(0,S.computed)((function(){return e.height?{height:V()(Number(e.height))?e.height:"".concat(e.height,"px")}:e.maxHeight?{maxHeight:V()(Number(e.maxHeight))?e.maxHeight:"".concat(e.maxHeight,"px")}:{}})),O=(0,S.computed)((function(){return e.height?{height:"100%"}:e.maxHeight?V()(Number(e.maxHeight))?{maxHeight:k()(t="calc(".concat(e.maxHeight," - ")).call(t,f.value+h.value,"px)")}:{maxHeight:"".concat(e.maxHeight-f.value-h.value,"px")}:{};var t}));return{isHidden:i,renderExpanded:s,setDragVisible:function(e){a.value=e},isGroup:c,handleMouseLeave:function(){n.store.commit("setHoverRow",null),n.hoverState&&(n.hoverState=null)},handleHeaderFooterMousewheel:function(e,t){var r=t.pixelX,o=t.pixelY;Math.abs(r)>=Math.abs(o)&&(n.refs.bodyWrapper.scrollLeft+=t.pixelX/5)},tableSize:w,emptyBlockStyle:P,handleFixedMousewheel:function(e,t){var r=n.refs.bodyWrapper;if(Math.abs(t.spinY)>0){var o=r.scrollTop;t.pixelY<0&&0!==o&&e.preventDefault(),t.pixelY>0&&r.scrollHeight-r.clientHeight>o&&e.preventDefault(),r.scrollTop+=Math.ceil(t.pixelY/5)}else r.scrollLeft+=Math.ceil(t.pixelX/5)},resizeProxyVisible:a,bodyWidth:A,resizeState:l,doLayout:v,tableBodyStyles:g,tableLayout:T,scrollbarViewStyle:{display:"inline-block",verticalAlign:"middle"},tableInnerStyle:C,scrollbarStyle:O}};const ya={data:{type:Array,default:function(){return[]}},size:be.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 ga(e){var t="auto"===e.tableLayout,r=e.columns||[];return t&&Q()(r).call(r,(function(e){return void 0===e.width}))&&(r=[]),(0,S.h)("colgroup",{},N()(r).call(r,(function(r){return(0,S.h)("col",function(r){var n,o={key:k()(n="".concat(e.tableLayout,"_")).call(n,r.id),style:{},name:void 0};return t?o.style={width:"".concat(r.width,"px")}:o.name=r.id,o}(r))})))}r(62010),ga.props=["columns","tableLayout"];var va=1;const ba=(0,S.defineComponent)({name:"ElTable",directives:{Mousewheel:ve},components:{TableHeader:Ys,TableBody:aa,TableFooter:da,ElScrollbar:Ht,hColgroup:ga},props:ya,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,r=(0,be.useLocale)().t,n=(0,be.useNamespace)("table"),o=(0,S.getCurrentInstance)();(0,S.provide)(qs,o);var i=function(e,t){var r;if(!e)throw new Error("Table is required.");var n=Ki();return n.toggleAllSelection=(0,le.A)(n._toggleAllSelection,10),te()(r=O()(zi)).call(r,(function(e){Hi(Gi(t,e),e,n)})),function(e,t){var r;te()(r=O()(zi)).call(r,(function(r){(0,S.watch)((function(){return Gi(t,r)}),(function(t){Hi(t,r,e)}))}))}(n,t),n}(o,e);o.store=i;var s=new Xi({store:o.store,table:o,fit:e.fit,showHeader:e.showHeader});o.layout=s;var a=(0,S.computed)((function(){return 0===(i.states.data.value||[]).length})),l=function(e){return{setCurrentRow:function(t){e.commit("setCurrentRow",t)},getSelectionRows:function(){return e.getSelectionRows()},toggleRowSelection:function(t,r){e.toggleRowSelection(t,r,!1),e.updateAllSelected()},clearSelection:function(){e.clearSelection()},clearFilter:function(t){e.clearFilter(t)},toggleAllSelection:function(){e.commit("toggleAllSelection")},toggleRowExpansion:function(t,r){e.toggleRowExpansionAdapter(t,r)},clearSort:function(){e.clearSort()},sort:function(t,r){e.commit("sort",{prop:t,order:r})}}}(i),c=l.setCurrentRow,u=l.getSelectionRows,p=l.toggleRowSelection,d=l.clearSelection,f=l.clearFilter,h=l.toggleAllSelection,m=l.toggleRowExpansion,y=l.clearSort,g=F()(l),v=ma(e,s,i,o),b=v.isHidden,_=v.renderExpanded,E=v.setDragVisible,x=v.isGroup,w=v.handleMouseLeave,A=v.handleHeaderFooterMousewheel,T=v.tableSize,P=v.emptyBlockStyle,C=v.handleFixedMousewheel,I=v.resizeProxyVisible,D=v.bodyWidth,M=v.resizeState,j=v.doLayout,N=v.tableBodyStyles,L=v.tableLayout,R=v.scrollbarViewStyle,B=v.tableInnerStyle,U=v.scrollbarStyle,V=function(){var e=(0,S.ref)(),t=function(t,r){var n,o=e.value;o&&(0,ie.isNumber)(r)&&Y()(n=["Top","Left"]).call(n,t)&&o["setScroll".concat(t)](r)};return{scrollBarRef:e,scrollTo:function(t,r){var n=e.value;n&&n.scrollTo(t,r)},setScrollTop:function(e){return t("Top",e)},setScrollLeft:function(e){return t("Left",e)}}}(),W=V.scrollBarRef,$=V.scrollTo,K=V.setScrollLeft,q=V.setScrollTop,z=(0,le.A)(j,50),H=k()(t="".concat(n.namespace.value,"-table_")).call(t,va++);o.tableId=H,o.state={isGroup:x,resizeState:M,doLayout:j,debouncedUpdateLayout:z};var G=(0,S.computed)((function(){return e.sumText||r("el.table.sumText")})),Q=(0,S.computed)((function(){return e.emptyText||r("el.table.emptyText")})),X=(0,S.computed)((function(){return Xs(i.states.originColumns.value)[0]}));return function(e){var t=(0,S.ref)();(0,S.onMounted)((function(){var r,n;r=e.vnode.el.querySelector(".hidden-columns"),n=e.store.states.updateOrderFns,t.value=new MutationObserver((function(){te()(n).call(n,(function(e){return e()}))})),t.value.observe(r,{childList:!0,subtree:!0})})),(0,S.onUnmounted)((function(){var e;null===(e=t.value)||void 0===e||e.disconnect()}))}(o),{ns:n,layout:s,store:i,columns:X,handleHeaderFooterMousewheel:A,handleMouseLeave:w,tableId:H,tableSize:T,isHidden:b,isEmpty:a,renderExpanded:_,resizeProxyVisible:I,resizeState:M,isGroup:x,bodyWidth:D,tableBodyStyles:N,emptyBlockStyle:P,debouncedUpdateLayout:z,handleFixedMousewheel:C,setCurrentRow:c,getSelectionRows:u,toggleRowSelection:p,clearSelection:d,clearFilter:f,toggleAllSelection:h,toggleRowExpansion:m,clearSort:y,doLayout:j,sort:g,t:r,setDragVisible:E,context:o,computedSumText:G,computedEmptyText:Q,tableLayout:L,scrollbarViewStyle:R,tableInnerStyle:B,scrollbarStyle:U,scrollBarRef:W,scrollTo:$,setScrollLeft:K,setScrollTop:q}}}),_a=(0,Vs.A)(ba,[["render",function(e,t,r,n,o,i){var s,a=(0,S.resolveComponent)("hColgroup"),l=(0,S.resolveComponent)("table-header"),c=(0,S.resolveComponent)("table-body"),u=(0,S.resolveComponent)("table-footer"),p=(0,S.resolveComponent)("el-scrollbar"),d=(0,S.resolveDirective)("mousewheel");return(0,S.openBlock)(),(0,S.createElementBlock)("div",{ref:"tableWrapper",class:(0,S.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,S.normalizeStyle)(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.handleMouseLeave&&e.handleMouseLeave.apply(e,t)})},[(0,S.createElementVNode)("div",{class:(0,S.normalizeClass)(e.ns.e("inner-wrapper")),style:(0,S.normalizeStyle)(e.tableInnerStyle)},[(0,S.createElementVNode)("div",ae,[(0,S.renderSlot)(e.$slots,"default")],512),e.showHeader&&"fixed"===e.tableLayout?(0,S.withDirectives)(((0,S.openBlock)(),(0,S.createElementBlock)("div",{key:0,ref:"headerWrapper",class:(0,S.normalizeClass)(e.ns.e("header-wrapper"))},[(0,S.createElementVNode)("table",{ref:"tableHeader",class:(0,S.normalizeClass)(e.ns.e("header")),style:(0,S.normalizeStyle)(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[(0,S.createVNode)(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),(0,S.createVNode)(l,{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,S.createCommentVNode)("v-if",!0),(0,S.createElementVNode)("div",{ref:"bodyWrapper",class:(0,S.normalizeClass)(e.ns.e("body-wrapper"))},[(0,S.createVNode)(p,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn},{default:(0,S.withCtx)((function(){return[(0,S.createElementVNode)("table",{ref:"tableBody",class:(0,S.normalizeClass)(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:(0,S.normalizeStyle)({width:e.bodyWidth,tableLayout:e.tableLayout})},[(0,S.createVNode)(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&"auto"===e.tableLayout?((0,S.openBlock)(),(0,S.createBlock)(l,{key:0,ref:"tableHeaderRef",class:(0,S.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,S.createCommentVNode)("v-if",!0),(0,S.createVNode)(c,{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,S.openBlock)(),(0,S.createBlock)(u,{key:1,class:(0,S.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,S.createCommentVNode)("v-if",!0)],6),e.isEmpty?((0,S.openBlock)(),(0,S.createElementBlock)("div",{key:0,ref:"emptyBlock",style:(0,S.normalizeStyle)(e.emptyBlockStyle),class:(0,S.normalizeClass)(e.ns.e("empty-block"))},[(0,S.createElementVNode)("span",{class:(0,S.normalizeClass)(e.ns.e("empty-text"))},[(0,S.renderSlot)(e.$slots,"empty",{},(function(){return[(0,S.createTextVNode)((0,S.toDisplayString)(e.computedEmptyText),1)]}))],2)],6)):(0,S.createCommentVNode)("v-if",!0),e.$slots.append?((0,S.openBlock)(),(0,S.createElementBlock)("div",{key:1,ref:"appendWrapper",class:(0,S.normalizeClass)(e.ns.e("append-wrapper"))},[(0,S.renderSlot)(e.$slots,"append")],2)):(0,S.createCommentVNode)("v-if",!0)]})),_:3},8,["view-style","wrap-style","always"])],2),e.showSummary&&"fixed"===e.tableLayout?(0,S.withDirectives)(((0,S.openBlock)(),(0,S.createElementBlock)("div",{key:1,ref:"footerWrapper",class:(0,S.normalizeClass)(e.ns.e("footer-wrapper"))},[(0,S.createElementVNode)("table",{class:(0,S.normalizeClass)(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:(0,S.normalizeStyle)(e.tableBodyStyles)},[(0,S.createVNode)(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),(0,S.createVNode)(u,{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)),[[S.vShow,!e.isEmpty],[d,e.handleHeaderFooterMousewheel]]):(0,S.createCommentVNode)("v-if",!0),e.border||e.isGroup?((0,S.openBlock)(),(0,S.createElementBlock)("div",{key:2,class:(0,S.normalizeClass)(e.ns.e("border-left-patch"))},null,2)):(0,S.createCommentVNode)("v-if",!0)],6),(0,S.withDirectives)((0,S.createElementVNode)("div",{ref:"resizeProxy",class:(0,S.normalizeClass)(e.ns.e("column-resize-proxy"))},null,2),[[S.vShow,e.resizeProxyVisible]])],46,se)}]]),Ea=_a;var xa={selection:"table-column--selection",expand:"table__expand-column"},Sa={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:""}},wa={selection:{renderHeader:function(e){var t=e.store,r=e.column;return(0,S.h)(Is,{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:r.label})},renderCell:function(e){var t=e.row,r=e.column,n=e.store,o=e.$index;return(0,S.h)(Is,{disabled:!!r.selectable&&!r.selectable.call(null,t,o),size:n.states.tableSize.value,onChange:function(){n.commit("rowSelectedChanged",t)},onClick:function(e){return e.stopPropagation()},modelValue:n.isSelected(t),ariaLabel:r.label})},sortable:!1,resizable:!1},index:{renderHeader:function(e){return e.column.label||"#"},renderCell:function(e){var t=e.column,r=e.$index,n=r+1,o=t.index;return"number"==typeof o?n=r+o:"function"==typeof o&&(n=o(r)),(0,S.h)("div",{},[n])},sortable:!1},expand:{renderHeader:function(e){return e.column.label||""},renderCell:function(e){var t=e.row,r=e.store,n=e.expanded,o=r.ns,i=[o.e("expand-icon")];return n&&i.push(o.em("expand-icon","expanded")),(0,S.h)("div",{class:i,onClick:function(e){e.stopPropagation(),r.toggleRowExpansion(t)}},{default:function(){return[(0,S.h)(js.ElIcon,null,{default:function(){return[(0,S.h)(Ns.ArrowRight)]}})]}})},sortable:!1,resizable:!1}};function Aa(e){var t,r=e.row,n=e.column,o=e.$index,i=n.property,s=i&&(0,ie.getProp)(r,i).value;return n&&n.formatter?n.formatter(r,n,s,o):(null===(t=null==s?void 0:s.toString)||void 0===t?void 0:t.call(s))||""}function Ta(e,t){return P()(e).call(e,(function(e,t){return e[t]=t,e}),t)}const Pa={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 Q()(e).call(e,(function(e){var t;return Y()(t=["ascending","descending",null]).call(t,e)}))}}};var Ca=function(){return Ca=Xt()||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ca.apply(this,arguments)},Oa=1;const Ia=(0,S.defineComponent)({name:"ElTableColumn",components:{ElCheckbox:Is},props:Pa,setup:function(e,t){var r,n=t.slots,o=(0,S.getCurrentInstance)(),i=(0,S.ref)({}),s=(0,S.computed)((function(){for(var e=o.parent;e&&!e.tableId;)e=e.parent;return e})),a=function(e,t){var r=(0,S.getCurrentInstance)();return{registerComplexWatchers:function(){var n,o={realWidth:"width",realMinWidth:"minWidth"},i=Ta(["fixed"],o);te()(n=O()(i)).call(n,(function(n){var i=o[n];(0,ie.hasOwn)(t,i)&&(0,S.watch)((function(){return t[i]}),(function(t){var o=t;"width"===i&&"realWidth"===n&&(o=Ai(t)),"minWidth"===i&&"realMinWidth"===n&&(o=Ti(t)),r.columnConfig.value[i]=o,r.columnConfig.value[n]=o;var s="fixed"===i;e.value.store.scheduleLayout(s)}))}))},registerNormalWatchers:function(){var e,n={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},o=Ta(["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip"],n);te()(e=O()(o)).call(e,(function(e){var o=n[e];(0,ie.hasOwn)(t,o)&&(0,S.watch)((function(){return t[o]}),(function(t){r.columnConfig.value[e]=t}))}))}}}(s,e),l=a.registerNormalWatchers,c=a.registerComplexWatchers,u=function(e,t,r){var n=(0,S.getCurrentInstance)(),o=(0,S.ref)(""),i=(0,S.ref)(!1),s=(0,S.ref)(),a=(0,S.ref)(),l=(0,be.useNamespace)("table");(0,S.watchEffect)((function(){s.value=e.align?"is-".concat(e.align):null,s.value})),(0,S.watchEffect)((function(){a.value=e.headerAlign?"is-".concat(e.headerAlign):s.value,a.value}));var c=(0,S.computed)((function(){for(var e=n.vnode.vParent||n.parent;e&&!e.tableId&&!e.columnId;)e=e.vnode.vParent||e.parent;return e})),u=(0,S.computed)((function(){var e=n.parent.store;if(!e)return!1;var t=e.states.treeData.value;return t&&O()(t).length>0})),p=(0,S.ref)(Ai(e.width)),d=(0,S.ref)(Ti(e.minWidth));return{columnId:o,realAlign:s,isSubColumn:i,realHeaderAlign:a,columnOrTableParent:c,setColumnWidth:function(e){return p.value&&(e.width=p.value),d.value&&(e.minWidth=d.value),!p.value&&d.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,r=e.type,n=wa[r]||{};te()(t=O()(n)).call(t,(function(t){var r=n[t];"className"!==t&&void 0!==r&&(e[t]=r)}));var o=function(e){return xa[e]||""}(r);if(o){var i,s,a=k()(i="".concat((0,S.unref)(l.namespace),"-")).call(i,o);e.className=e.className?k()(s="".concat(e.className," ")).call(s,a):a}return e},setColumnRenders:function(o){e.renderHeader?(0,ie.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 n.columnConfig.value.label,(0,S.renderSlot)(t,"header",e,(function(){return[o.label]}))});var i=o.renderCell;return"expand"===o.type?(o.renderCell=function(e){return(0,S.h)("div",{class:"cell"},[i(e)])},r.value.renderExpanded=function(e){return t.default?t.default(e):t.default}):(i=i||Aa,o.renderCell=function(e){var s,a=null;if(t.default){var c=t.default(e);a=H()(c).call(c,(function(e){return e.type!==S.Comment}))?c:i(e)}else a=i(e);var p,d=r.value.store.states.columns,f=er()(s=d.value).call(s,(function(e){return"default"===e.type})),h=function(e,t){var r=e.row,n=e.treeNode,o=e.store;void 0===t&&(t=!1);var i=o.ns;if(!n)return t?[(0,S.h)("span",{class:i.e("placeholder")})]:null;var s=[];if(n.indent&&s.push((0,S.h)("span",{class:i.e("indent"),style:{"padding-left":"".concat(n.indent,"px")}})),"boolean"!=typeof n.expanded||n.noLazyChildren)s.push((0,S.h)("span",{class:i.e("placeholder")}));else{var a=[i.e("expand-icon"),n.expanded?i.em("expand-icon","expanded"):""],l=Ns.ArrowRight;n.loading&&(l=Ns.Loading),s.push((0,S.h)("div",{class:a,onClick:function(e){e.stopPropagation(),n.loading||o.loadOrToggle(r)}},{default:function(){var e;return[(0,S.h)(js.ElIcon,{class:(e={},e[i.is("loading")]=n.loading,e)},{default:function(){return[(0,S.h)(l)]}})]}}))}return s}(e,u.value&&e.cellIndex===f),m={class:"cell",style:{}};return o.showOverflowTooltip&&(m.class=k()(p="".concat(m.class," ")).call(p,(0,S.unref)(l.namespace),"-tooltip"),m.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=n)}M()(e)?te()(e).call(e,(function(e){return t(e)})):t(e)}(a),(0,S.h)("div",m,[h,a])}),o},getPropsData:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return P()(t).call(t,(function(t,r){return M()(r)&&te()(r).call(r,(function(r){t[r]=e[r]})),t}),{})},getColumnElIndex:function(e,t){return ne()(Array.prototype).call(e,t)},updateColumnOrder:function(){r.value.store.commit("updateColumnOrder",n.columnConfig.value)}}}(e,n,s),p=u.columnId,d=u.isSubColumn,f=u.realHeaderAlign,h=u.columnOrTableParent,m=u.setColumnWidth,y=u.setColumnForcedProps,g=u.setColumnRenders,v=u.getPropsData,b=u.getColumnElIndex,_=u.realAlign,E=u.updateColumnOrder,x=h.value;p.value=k()(r="".concat(x.tableId||x.columnId,"_column_")).call(r,Oa++),(0,S.onBeforeMount)((function(){d.value=s.value!==x;var t=e.type||"default",r=""===e.sortable||e.sortable,n=(0,ie.isUndefined)(e.showOverflowTooltip)?x.props.showOverflowTooltip:e.showOverflowTooltip,a=Ca(Ca({},Sa[t]),{id:p.value,type:t,property:e.prop||e.property,align:_,headerAlign:f,showOverflowTooltip:n,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:r,index:e.index,rawColumnKey:o.vnode.key}),u=v(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);u=function(e,t){var r,n={};for(r in e)n[r]=e[r];for(r in t)if((0,ie.hasOwn)(t,r)){var o=t[r];void 0!==o&&(n[r]=o)}return n}(a,u);var h=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]:P()(e).call(e,(function(e,t){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e(t.apply(void 0,r))}}))}(g,m,y);u=h(u),i.value=u,l(),c()})),(0,S.onMounted)((function(){var e,t=h.value,r=d.value?t.vnode.el.children:null===(e=t.refs.hiddenColumns)||void 0===e?void 0:e.children,n=function(){return b(r||[],o.vnode.el)};i.value.getColumnIndex=n,n()>-1&&s.value.store.commit("insertColumn",i.value,d.value?t.columnConfig.value:null,E)})),(0,S.onBeforeUnmount)((function(){i.value.getColumnIndex()>-1&&s.value.store.commit("removeColumn",i.value,d.value?x.columnConfig.value:null,E)})),o.columnId=p.value,o.columnConfig=i},render:function(){var e,t,r;try{var n=null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e,{row:{},column:{},$index:-1}),o=[];if(M()(n))for(var i=0,s=n;i<s.length;i++){var a=s[i];if("ElTableColumn"===(null===(r=a.type)||void 0===r?void 0:r.name)||2&a.shapeFlag)o.push(a);else if(a.type===S.Fragment&&M()(a.children)){var l;te()(l=a.children).call(l,(function(e){1024===(null==e?void 0:e.patchFlag)||(0,ie.isString)(null==e?void 0:e.children)||o.push(e)}))}}return(0,S.h)("div",o)}catch(e){return(0,S.h)("div",[])}}}),ka=Ia,Da=(0,ie.withInstall)(Ea,{TableColumn:ka});var Ma=(0,ie.withNoopInstall)(ka),ja=r(50510),Na=r(17427),La=(r(25383),r(62953),r(54554));function Ra(){return Ra=(0,b.A)((0,v.A)().mark((function e(t){var r,n,o,i,s,a,l,c,u,p,d,f,h,m;return(0,v.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.props,n=t.data,o=t.lang,i=t.rootValue,s=t.dynamicMapComp,a=t.messageInstance,l=t.isFrontPage,c=t.page,l){e.next=3;break}return e.abrupt("return",!0);case 3:u=r.config.multiPmPageMetaList||[],p=n||[],d=(c.pageNum-1)*c.pageSize,f=c.pageNum*c.pageSize,h=(0,v.A)().mark((function e(t){var n,l,h,m,y;return(0,v.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t<d||t>=f)){e.next=11;break}n=p[t],l=u[t]||u[t%c.pageSize]||u[0],h={row:n,$index:t},m=(0,v.A)().mark((function e(){var u,p,d,f,m,g,_;return(0,v.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u=l[y],p=Ba(u,r,h),d={lang:o,rootValue:i,dynamicMapComp:s,props:p,messageInstance:a},f={disabled:(0,Na.AP)(u,r.mode)},!(m=(0,Na.eM)(u,o,d,f,!0))||!m.length){e.next=10;break}return g=function(){var e=(0,b.A)((0,v.A)().mark((function e(){return(0,v.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,_.validate((0,x.A)({},u.dynamicHireRelat,n[u.metaCode]));case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return",new(Ji())((function(e,r){Hs()((function(){var e=0;t&&(e=A()((t+1)/c.pageSize),(t+1)%c.pageSize&&e++),c.pageNum=e,r({})}))})));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(){return e.apply(this,arguments)}}(),_=new La.A((0,x.A)({},u.dynamicHireRelat,m)),e.next=10,g();case 10:case"end":return e.stop()}}),e)})),y=0;case 6:if(!(y<l.length)){e.next=11;break}return e.delegateYield(m(),"t0",8);case 8:y++,e.next=6;break;case 11:case"end":return e.stop()}}),e)})),m=0;case 9:if(!(m<p.length)){e.next=14;break}return e.delegateYield(h(m),"t0",11);case 11:m++,e.next=9;break;case 14:return e.abrupt("return",!0);case 15:case"end":return e.stop()}}),e)}))),Ra.apply(this,arguments)}function Ba(e,t,r){return{config:e,modelValue:r.row[e.metaCode],rowScope:r,mode:t.mode}}var Fa=r(49027),Ua=r(9318);const Va={inheritAttrs:!1,name:"CustomComponentTable",props:(Wa=Na.yz,$a=oe.ElTableV2,Ka=Da,qa=oe.ElPagination,za=(0,E.A)((0,E.A)((0,E.A)((0,E.A)({},Wa),$a.props),{},{headerHeight:{type:Number,default:40},rowHeight:{type:Number,default:40}},Ka.props),qa.props),delete za.columns,delete za.data,za),setup:function(e,t){var r=t.expose,n=t.attrs,o=t.emit,i=["align","class","key","dataKey","fixed","flexGrow","flexShrink","headerClass","style","sortable","title","maxWidth","minWidth","width"],s=(0,S.computed)((function(){var t;return"1"==(null===(t=e.config)||void 0===t?void 0:t.isVirtualized)})),a=(0,S.reactive)({show:!1,triggerRef:null,content:""}),l=(0,S.computed)({get:function(){return A()(e.config.defaultPageablePageSize)||10},set:function(t){e.config.defaultPageablePageSize=t}}),c=(0,S.computed)({get:function(){return p.value?l.value:A()(e.config.pageSize)||5},set:function(t){p.value&&(l.value=t),e.config.pageSize=t}}),u=(0,S.reactive)({pageNum:1,pageSize:c,total:0}),p=(0,S.computed)((function(){var t,r,n;return!!Fa.F&&!("1"==(null===(t=e.config)||void 0===t?void 0:t.frontPageFlag)||"1"==(null===(r=e.config)||void 0===r?void 0:r.pageable))&&(null===(n=G.value)||void 0===n?void 0:n.length)>10})),d=(0,S.computed)((function(){var t;return("1"==(null===(t=e.config)||void 0===t?void 0:t.frontPageFlag)||p.value)&&!s.value})),f=(0,S.computed)((function(){var t;return(d.value||"1"==(null===(t=e.config)||void 0===t?void 0:t.pageable))&&!s.value})),h=(0,S.computed)((function(){var t;return null===(t=e.config)||void 0===t?void 0:t.pageAlign})),m="right",y=(0,x.A)((0,x.A)((0,x.A)({},"left","flex-start"),m,"flex-end"),"center","center"),g=(0,S.computed)((function(){var t,r;return"1"==(null===(t=e.config)||void 0===t?void 0:t.selectable)||(null===(r=e.config)||void 0===r?void 0:r.canSelect)})),w=(0,S.inject)("OPEN_DATA_RULES"),T=(0,S.inject)(oe.formContextKey,void 0),C=(0,S.inject)("_messageInstance"),I=(0,S.inject)("indectModeRef",(0,S.ref)("")),D=((0,S.inject)("_ruleExecuter"),(0,S.inject)("dynamicMapComp")),j=(0,S.inject)("_parentRootValue",{}),L=(0,S.inject)("_parentDynamicMapComp",{}),B=(0,S.inject)("_selectionsObj",{}),U=(0,S.inject)("_rootStore",{}),W=(0,S.inject)("lang"),K=(0,S.inject)("rootValue"),z=(0,S.inject)("selects"),G=(0,S.computed)({get:function(){return e.modelValue},set:function(e){o("update:modelValue",e)}}),X=(0,S.computed)((function(){var t,r=s.value?oe.ElTableV2:Da,n=P()(t=O()(r.props)).call(t,(function(t,r){return void 0!==e[r]&&null!==e[r]&&(t[r]=e[r]),t}),{});if(n.border||(n.border=!0),n.stripe||(n.stripe=!0),s.value){var o=n.headerClass;n.headerClass=function(e){var t,r="table-v2-common-row",n="function"==typeof o?o(e):o;return n&&(r=k()(t="".concat(n," ")).call(t,r)),r};var i=n.rowClass;n.rowClass=function(e){var t,r=e.rowIndex,n="table-v2-common-row",o="function"==typeof i?i(e):i;return o&&(n=k()(t="".concat(o," ")).call(t,n)),r%2==1&&(n="".concat(n," table-v2-striped")),n}}return n})),J=(0,S.computed)((function(){return e.config.multiPmPageMetaList||[]})),ee=function(e){var t=e.emits||{};return M()(t)||(t=O()(t)),P()(t).call(t,(function(e,t){var r="on".concat((0,Na.ZH)((0,Na.PT)(t)));return(0,Na.$3)(n,r)&&(e[r]=n[r]),e}),{})},re=(0,S.computed)((function(){var e=s.value?oe.ElTableV2:Da;return ee(e)})),ie=(0,S.computed)((function(){var e=(0,E.A)({},re.value||{});return delete e.onSortChange,e})),se=(0,S.computed)((function(){return ee(oe.ElPagination)})),ae=(0,S.ref)(""),le=(0,S.computed)((function(){var t=e.config.pmPageMetaList||[];return N()(t).call(t,(function(t){return t.displayType===Na.Op||0==e.width||"0px"==e.width||"1"==t.hidden||ae.value||(ae.value=t.metaCode),function(e){return(0,E.A)((0,E.A)({},e),{},{labelHidden:"1"})}(t)}))})),ce=(0,S.computed)((function(){var e;return d.value?(null===(e=G.value||[])||void 0===e?void 0:e.length)||0:u.total})),ue=(0,S.computed)((function(){var e;return d.value?R()(e=G.value||[]).call(e,(u.pageNum-1)*u.pageSize,u.pageNum*u.pageSize):G.value||[]})),pe=(0,S.ref)(null),de=function(e){var t,r,n=e.prop,o=e.order;null===(t=re.value)||void 0===t||null===(r=t.onSortChange)||void 0===r||r.call(t,{prop:n,order:o}),pe.value=null,o&&(pe.value={prop:n,order:o})},fe=(0,S.computed)((function(){if(!pe.value)return[];var e=[pe.value],t=P()(e).call(e,(function(e,t){return e=F()(e).call(e,(function(e,r){if(""===e[t.prop]||void 0===e[t.prop]||null===e[t.prop])return"descending"===t.order?1:-1;if(""===r[t.prop]||void 0===r[t.prop]||null===r[t.prop])return"descending"===t.order?-1:1;var n=e[t.prop],o=r[t.prop];return V()(+e[t.prop])||V()(+r[t.prop])||(n=+e[t.prop],o=+r[t.prop]),n>o?"descending"===t.order?-1:1:n===o?0:"descending"===t.order?1:-1})),e}),(0,_.A)(ue.value||[]));return t})),he=(0,S.computed)((function(){return pe.value?fe.value:ue.value}));function me(t,r){var n,o,a=R()(n=le.value).call(n,r+1),l=!(null!=a&&null!==(o=$()(a).call(a,(function(e){return e.displayType!=Na.Op&&!(0==e.width||"0px"==e.width||"1"==e.hidden)})))&&void 0!==o&&o.length),c=q()(a).call(a,(function(e){return e.displayType!=Na.Op})),u=i;s.value||(u=O()(Ma.props));var p=P()(u).call(u,(function(e,r){return(0,Na.$3)(t,r)&&(e[r]=t[r]),e}),{});if(t.columnWidth&&(p.width=t.columnWidth),p.width||(p.minWidth=160),0!=p.width&&"0px"!=p.width&&"1"!=t.hidden||(p.className="hidden-column",p.width=1),!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")),!s.value){if(p.className="".concat(p.className||""," cell-col-ellipsis"),p.prop||(p.prop=t.metaCode),"1"==t.showOverflowTooltip||"1"==t["show-overflow-tooltip"]?(p["show-overflow-tooltip"]=!0,p.showOverflowTooltip=!0):(p["show-overflow-tooltip"]=!1,p.showOverflowTooltip=!1),(0,Na.rn)((0,E.A)((0,E.A)({},t),{},{isColumn:!0}),!0)&&"0"!=t.showOverflowTooltip&&"0"!=t["show-overflow-tooltip"]){var d=function(e){var t,n=null===(t=J.value)||void 0===t||null===(t=t[e.$index])||void 0===t?void 0:t[r];return!n||(0,Na.rn)((0,E.A)((0,E.A)({},n),{},{isColumn:!0}),(0,Na.AP)(n,I.value))};p["show-overflow-tooltip"]=d,p.showOverflowTooltip=d}if("selection"===t.type){var f=p.selectable;p.selectable=function(t,r){var n=!0;f&&"function"==typeof f&&(n=f(t,r,{tableConfig:e.config,rootValue:K,parentRootValue:j,parentDynamicMapComp:L}));var o,i=!0;return B.selections&&B.selections.length&&B.primaryKeys&&B.primaryKeys.length&&(i=!(null===(o=B.selections)||void 0===o?void 0:H()(o).call(o,(function(e){var r,n;return Q()(r=N()(n=B.primaryKeys).call(n,(function(r){return r&&e[r]==t[r]}))).call(r,(function(e){return e}))})))),n&&i}}}if(s.value){var h=p.className||"";p.width?p.width=A()(p.width):(p.width=160,h="".concat(h," flex-grow-import")),p.class="".concat(h," table-body-cell"),p.headerClass="".concat(h," table-head-cell")}return p}if(!w){var ye=new(Z());(0,S.watch)((function(){var e;return null==he||null===(e=he.value)||void 0===e?void 0:e.length}),(function(t){var r=[];if(t){var n,o=he.value;r=null==o||null===(n=N()(o))||void 0===n?void 0:n.call(o,(function(t,r){var n=ye.get(t);if(n)return te()(n).call(n,(function(e){e.rowIndex=r,(0,Ua.Bx)(e,r)})),n;var o,i=N()(o=le.value).call(o,(function(t,n){var o,i=(0,Na.mg)(t);return i.width&&!i.columnWidth&&(i.columnWidth=i.width,delete i.width),i.columnId=(0,Na.Ij)(),i.rowIndex=r,i.isColumn=!0,i.refConfig=null==e||null===(o=e.config)||void 0===o||null===(o=o.pmPageMetaList)||void 0===o?void 0:o[n],i.parent=null==e?void 0:e.config,i}));return ye.set(t,i),i}))}(0,Na.Ts)(e.config,"multiPmPageMetaList",r)}),{immediate:!0,deep:!0})}var ge=(0,S.computed)((function(){var t;return(null===(t=e.config)||void 0===t?void 0:t.totalMetaCodes)||[]})),ve=(0,S.computed)((function(){var e,t;return $()(e=N()(t=ge.value).call(t,(function(e){return"string"==typeof e?{code:e,totalFn:_e}:(0,Na.Qd)(e)&&(0,Na.$3)(e,"code")?(e.totalFn="function"==typeof e.totalFn?e.totalFn:_e,e):null}))).call(e,(function(e){return!!e}))})),be=(0,S.computed)((function(){var e,t=(0,x.A)({},ae.value,(function(){var e;return(0,S.createVNode)("div",null,[ne()(e=W.value).call(e,"zh")>-1?"总计":"Total"])}));return P()(e=ve.value).call(e,(function(e,t){var r=t.code,n=t.render;return n&&"function"==typeof n&&(e[r]=n),e}),t)}));function _e(e,t,r){if(null==t)void 0===(t=0)&&(t="");else{var n=t.toString(),o=/^-/.test(n);t=n.replace(/[^\d\.]/g,""),o&&(t="-".concat(t))}var i=!isNaN(Number(t));return null==e&&(e=i?0:""),e+(i?Number(t):t)}var Ee=(0,S.computed)((function(){var e,t;return null!==(e=he.value)&&void 0!==e&&e.length&&ge.value.length&&ve.value.length?[P()(t=G.value||[]).call(t,(function(e,t){var r;return te()(r=ve.value).call(r,(function(r){var n=r.code,o=r.totalFn;e[n]=o(e[n],t[n],t)})),e}),{totalFlag:!0})]:[]})),xe=(0,S.ref)(null),Se=function(e){var t;xe.value=e,null==re||null===(t=re.onCurrentChange)||void 0===t||t.call(re,e),U.tableSelectedInfo=e},we=(0,S.ref)([]),Ae=function(e){we.value=e,U.tableSelectedInfo=e},Te=(0,S.computed)((function(){var t,r=P()(t=O()(oe.ElPagination.props)).call(t,(function(t,r){return(0,Na.$3)(e.config,r)&&(t[r]=e.config[r]),t}),{});return(0,Na.$3)(r,"background")||(r.background=!0),(0,Na.$3)(r,"layout")||(r.layout="prev, pager, next, jumper, sizes, total"),(0,Na.$3)(r,"page-sizes")||(0,Na.$3)(r,"pageSizes")||(r.pageSizes=[5,10,20,40]),r}));(0,S.watch)((function(){return u.pageNum}),function(){var t=(0,b.A)((0,v.A)().mark((function t(r){var n,o,i,s,a,l;return(0,v.A)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null===(n=e.config)||void 0===n||!n.serviceCurrentChangeLoad){t.next=2;break}return t.abrupt("return");case 2:return s=null===(o=e.config)||void 0===o?void 0:o.currentChange,t.next=5,null==s?void 0:s(r,e,u);case 5:(a=t.sent)&&(0,Na.cy)(a)&&(G.value=a),null==(l=null===(i=e.config)||void 0===i?void 0:i.serviceCurrentChange)||l(r,e,u);case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),(0,S.watch)((function(){return u.pageSize}),function(){var t=(0,b.A)((0,v.A)().mark((function t(r){var n,o,i,s,a;return(0,v.A)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return u.pageSize=r,i=null===(n=e.config)||void 0===n?void 0:n.sizeChange,t.next=4,null==i?void 0:i(r,e,u);case 4:(s=t.sent)&&(0,Na.cy)(s)&&(G.value=s),null==(a=null===(o=e.config)||void 0===o?void 0:o.serviceSizeChange)||a(r,e,u);case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());var Pe=["clearSelection","getSelectionRows","toggleRowSelection","toggleAllSelection","toggleRowExpansion","setCurrentRow","clearSort","clearFilter","doLayout","sort","scrollTo","setScrollTop","setScrollLeft","columns"],Ce=(0,S.ref)(null),Oe=P()(Pe).call(Pe,(function(e,t){return e[t]=function(){for(var e,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];null===(e=Ce.value)||void 0===e||e[t].apply(e,n)},e}),{}),Ie=(0,S.reactive)({prop:e.config.dynamicHireRelat,validate:function(){return function(e){return Ra.apply(this,arguments)}({props:e,data:(0,S.unref)(G),lang:(0,S.unref)(W),rootValue:K,dynamicMapComp:D,messageInstance:null==C?void 0:C.value,isFrontPage:(0,S.unref)(d),page:u})}});(0,S.onMounted)((function(){Fa.F&&(null==T||T.addField(Ie))})),r((0,E.A)({multipleSelection:we,selectedRow:xe,page:u,changePage:function(e,t){u[t||"pageNum"]=e}},Oe));var ke=(0,S.computed)((function(){var e,t;return null!==(e=Ee.value)&&void 0!==e&&e.length?k()(t=[]).call(t,(0,_.A)(he.value),(0,_.A)(Ee.value)):he.value}));function De(e){var t=(0,Na.lk)(e),r=t.overflow,n=t.content;a.show=!1,a.content="",a.triggerRef=null,r&&(a.show=!0,a.content=n,a.triggerRef=e.target)}function Me(e){a.show=!1,a.content="",a.triggerRef=null}function je(e){var t=0;return"1"==e.requiredFlag&&(t+=11),"1"==e.hintFlag&&(t+=19),t?"calc(100% - ".concat(t,"px)"):"100%"}function Ne(e,t){var r=0;return t.sortable&&(r+=24),r?"calc(100% - ".concat(r,"px)"):"100%"}function Le(t,r,n){var o="header",i="default";return s.value&&(o="headerCellRenderer",i="cellRenderer"),(0,x.A)((0,x.A)({},o,(function(){var r,o,i=(0,S.createVNode)("div",{className:"head-span-new",style:{width:Ne(0,n)}},["1"==t.requiredFlag?(0,S.createVNode)("span",{style:"color: rgb(245, 34, 45); margin-right: 3px;"},[(0,S.createTextVNode)("*")]):"",(0,S.createVNode)("div",{className:"head-span-text",style:{maxWidth:je(t)},onMouseenter:function(e){return De(e)},onMouseleave:function(e){return Me()}},[t.headerRender?t.headerRender(S.h,{props:e,config:t,lang:W,rootValue:K,selects:z}):ne()(r=W.value).call(r,"zh")>-1?t.metaNameZh:t.metaNameEn]),"1"==t.hintFlag?(0,S.createVNode)((0,S.resolveComponent)("ElTooltip"),{effect:"dark",content:ne()(o=W.value).call(o,"zh")>-1?t.hintContentZh:t.hintContentEn,placement:"top"},{default:function(){return[(0,S.createVNode)((0,S.resolveComponent)("elIcon"),{style:"fontSize: 16px; verticalAlign: sub; margin-left: 3px;"},{default:function(){return[(0,S.createVNode)((0,S.resolveComponent)("QuestionFilled"),null,null)]}})]}}):null]);return s.value&&(i=(0,S.createVNode)("div",{className:"table-v2-cell"},[i])),i})),i,(function(e){var n=e.row,o=e.$index;s.value&&(n=e.rowData,o=e.rowIndex);var i,a,l=null;if(n.totalFlag)l=be.value[t.metaCode]?be.value[t.metaCode]({val:n[t.metaCode],row:n,h:S.h}):null;else{var c,u,p=null===(c=J.value)||void 0===c||null===(c=c[o])||void 0===c?void 0:c[r];l=function(e){var t;if(!e)return!0;if(Y()(t=["selection","index"]).call(t,e.type))return!0;var r=H()(Na.Bs).call(Na.Bs,(function(t){return(0,Na.ro)(t,e.metaType)}))||!e.metaType;return!e.renderby&&r}(p)?null:(0,S.createVNode)(ja.A,{key:k()(u="".concat(p.columnId,"-")).call(u,p.rowIndex),class:"error-tip-block",rowScope:{row:n,$index:o},modelValue:(i=o,null===(a=he.value)||void 0===a?void 0:a[i]),"onUpdate:modelValue":function(e){!function(e,t){G.value||(G.value=[]),G.value[t]=e}(e,o)},config:p},null)}return s.value&&(l=(0,S.createVNode)("div",{className:"table-v2-cell",onMouseenter:function(e){return De(e)},onMouseleave:function(e){return Me()}},[l])),l}))}function Re(){var e,t,r,n;if(s.value){var o,i,a={height:X.height};return null!==(o=ke.value)&&void 0!==o&&o.length?a.height||(a.height=Math.min(40*(null===(i=ke.value)||void 0===i?void 0:i.length),350)):a.height=100,a.height="".concat(A()(a.height),"px"),(0,S.createVNode)(oe.ElAutoResizer,{style:a},{default:function(e){var t,r,n=e.height,o=e.width,i=$()(t=N()(r=le.value).call(r,(function(e,t){return e.displayType==Na.Op?null:(0,E.A)((0,E.A)({key:e.requiredFlag+e.metaCode},me(e,t)),Le(e,t))}))).call(t,(function(e){return!!e}));return(0,S.createVNode)(oe.ElTableV2,(0,S.mergeProps)(X.value,ie.value,{class:"table-border",cache:2,data:ke.value,columns:i,fixed:!0,width:o,height:n}),{empty:function(){var e;return(0,S.createVNode)("div",{style:{height:"60px",color:"var(--el-text-color-secondary)",textAlign:"center",lineHeight:"60px"}},[ne()(e=W.value).call(e,"zh")>-1?"暂无数据":"No Data"])}})}})}return(0,S.createVNode)(Da,(0,S.mergeProps)(X.value,ie.value,{ref:function(e){Ce.value=e},"highlight-current-row":!!(g.value||null!==(e=X.value)&&void 0!==e&&e.highlightCurrentRow),onCurrentChange:g.value||null!==(t=X.value)&&void 0!==t&&t.highlightCurrentRow?Se:function(){},data:ke.value,onSelectionChange:Ae,onSortChange:de}),{default:function(){return[g.value||null!==(r=X.value)&&void 0!==r&&r.highlightCurrentRow?(t=null===(e=le.value)||void 0===e?void 0:H()(e).call(e,(function(e){return"selection"===e.type&&e.displayType!=Na.Op})),t?null:(0,S.createVNode)(Ma,{width:"50px",className:"signle-select-wrap"},{default:function(){return[(0,S.createVNode)("span",{className:"selected-radio"},[(0,S.createVNode)(oe.ElRadio,{modelValue:"1",value:"1"},null)]),(0,S.createVNode)("span",{className:"not-selected-radio"},[(0,S.createVNode)(oe.ElRadio,{modelValue:"",value:"1"},null)])]}})):null,N()(n=le.value).call(n,(function(e,t){var r;if(e.displayType==Na.Op)return null;var n=me(e,t);return(0,S.createVNode)(Ma,(0,S.mergeProps)({key:e.requiredFlag+e.metaCode},n),function(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!(0,S.isVNode)(e)}(r=Le(e,t,n))?r:{default:function(){return[r]}})}))];var e,t}})}return function(){return(0,S.createVNode)("div",{class:"custom-component-table"},[(0,S.createVNode)((0,S.resolveComponent)("ElTooltip"),{placement:"top",visible:a.show&&!!a.triggerRef,content:a.content,virtualTriggering:!0,virtualRef:a.triggerRef},null),Re(),f.value?(0,S.createVNode)("div",{class:"pagination-wrap",style:{"justify-content":y[h.value||m]}},[(0,S.createVNode)(oe.ElPagination,(0,S.mergeProps)({style:"margin-top: 16px;"},Te.value,se,{"current-page":u.pageNum,"onUpdate:current-page":function(e){return u.pageNum=e},"page-size":u.pageSize,"onUpdate:page-size":function(e){return u.pageSize=e},total:ce.value}),null)]):null])}}};var Wa,$a,Ka,qa,za},27243:(e,t,r)=>{r.r(t),r.d(t,{default:()=>_});var n=r(53811),o=r(75286),i=r(8628),s=r.n(i),a=r(73363),l=r.n(a),c=r(50697),u=r.n(c),p=r(36586),d=r.n(p),f=r(43981),h=r.n(f),m=r(11393),y=r.n(m),g=(r(76918),r(48598),r(23288),r(2892),r(9868),r(26099),r(27495),r(38781),r(25440),r(84061)),v=r(17427),b=r(24691);const _={inheritAttrs:!1,props:(0,n.A)((0,n.A)((0,n.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:{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 r,i,a=t.emit,c=t.attrs,p=t.expose,f=t.slots,m=(0,o.ref)(!1),_=(0,o.ref)(!1),E=(0,o.ref)(null),x=(0,o.ref)(!1),S=(0,o.ref)(null),w=(0,o.ref)(null),A=(0,o.computed)((function(){var t,r,n,o,i=l()(t=u()(g.ElInput.props)).call(t,(function(t,r){return t[r]=e[r],t}),{});return null!==(r=e.config)&&void 0!==r&&r.icon&&(i.suffixIcon=null===(o=e.config)||void 0===o?void 0:o.icon),null!==(n=e.config)&&void 0!==n&&n.maxLength&&(i.maxlength=d()(e.config.maxLength)),e.textAreaCnt&&(i.rows=d()(e.textAreaCnt)),i})),T=(0,o.computed)((function(){var e=(0,n.A)({},A.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)})),C=(0,o.computed)({get:function(){return e.modelValue},set:function(e){a("update:modelValue",e)}}),O=(0,o.ref)(""),I=(0,o.computed)((function(){return"1"==e.showMoney?m.value?O.value:F(C.value):C.value})),k=(0,o.computed)((function(){var t;return(null===(t=e.config)||void 0===t?void 0:t.lcpPagePopupMapVO)&&"Search"==A.value.suffixIcon})),D=(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)})),M=(0,o.computed)((function(){var t;return"1"==(null===(t=e.config)||void 0===t?void 0:t.pagePopupEditFlag)})),j=(0,o.computed)((function(){var t={modelValue:I.value};return!k.value||M.value?(t["onUpdate:modelValue"]=function(t){"1"==e.showMoney?O.value=t:C.value=t},"1"==e.showMoney&&(t.onFocus=function(){O.value=C.value},t.onBlur=function(){C.value=function(t){var r;if(null!==(r=e.canShowFlag)&&void 0!==r&&s()(r).call(r,String(t).toLowerCase()))return t;if(null==t||""===t)return"";var n=0,o="".concat(t).replace(/[^\d.-]/g,"").replace(/(\.\d*)/g,(function(e){var t=n;return n++,t?"":e})),i=Number(o);return isNaN(i)?"":i}(F(O.value))})):t.onClear=function(){var e;null==c||null===(e=c.onClear)||void 0===e||e.call(c),C.value=""},t})),N=(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,n.A)({},c);delete e.class;var t=e.onFocus;e.onFocus=function(){m.value=!0;for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var o;P.value&&(E.value=null==r||null===(o=r[0])||void 0===o?void 0:o.target),null==t||t.apply(void 0,r)};var r=e.onBlur;if(e.onBlur=function(){m.value=!1,P.value&&(_.value||(E.value=null));for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];null==r||r.apply(void 0,t)},k.value&&D.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=(r=null,i=null,{clear:function(){r&&r(),i&&window.removeEventListener("resize",i)},calc:function(){this.clear();var t=20;!e.disabled&&e.clearable&&(t=50);var n=(0,b.fW)(S.value,0),s=(0,b.fW)(w.value,0-t);x.value=n<s,r=(0,o.watch)((function(){return I.value}),(function(e){(0,o.nextTick)((function(){s=(0,b.fW)(w.value,0-t),x.value=n<s}))})),i=function(){n=(0,b.fW)(S.value,0),x.value=n<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,r,i=(0,n.A)({},f);if(null!==(t=A.value)&&void 0!==t&&t.suffixIcon){var s=(0,o.resolveComponent)(A.value.suffixIcon);i.suffix=function(){var t={};return k.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!==(r=A.value)&&void 0!==r&&r.prefixIcon){var a=(0,o.resolveComponent)(A.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 F(t){var r,n,o;if(null!==(r=e.canShowFlag)&&void 0!==r&&s()(r).call(r,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()(n="".concat(e.symbol," ")).call(n,l):y()(o="".concat(l," ")).call(o,e.symbol):l}var U=(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"},N.value),[(0,o.createVNode)("span",{ref:function(e){return w.value=e},class:"calc-span"},[I.value]),x.value?(0,o.createVNode)((0,o.resolveComponent)("el-tooltip"),{placement:"top",visible:x.value&&!!E.value,content:I.value,virtualTriggering:!0,virtualRef:E.value},null):null,(0,o.createVNode)("div",(0,o.mergeProps)({class:"input-wrap"},U.value,{ref:function(e){return S.value=e}}),[(0,o.createVNode)(g.ElInput,(0,o.mergeProps)(j.value,(0,n.A)((0,n.A)({},L.value),T.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,r)=>{r.r(t),r.d(t,{default:()=>_});var n=r(53811),o=r(75286),i=r(8628),s=r.n(i),a=r(73363),l=r.n(a),c=r(50697),u=r.n(c),p=r(36586),d=r.n(p),f=r(43981),h=r.n(f),m=r(11393),y=r.n(m),g=(r(76918),r(48598),r(23288),r(2892),r(9868),r(26099),r(27495),r(38781),r(25440),r(84061)),v=r(17427),b=(r(24691),r(85845));const _={inheritAttrs:!1,props:(0,n.A)((0,n.A)((0,n.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:{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 r=t.emit,i=t.attrs,a=t.expose,c=t.slots,p=(0,o.computed)((function(){var t,r,n,o,i=l()(t=u()(g.ElInput.props)).call(t,(function(t,r){return t[r]=e[r],t}),{});return null!==(r=e.config)&&void 0!==r&&r.icon&&(i.suffixIcon=null===(o=e.config)||void 0===o?void 0:o.icon),null!==(n=e.config)&&void 0!==n&&n.maxLength&&(i.maxlength=d()(e.config.maxLength)),e.textAreaCnt&&(i.rows=d()(e.textAreaCnt)),i})),f=(0,o.computed)((function(){var e=(0,n.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){r("update:modelValue",e)}}),E=(0,o.ref)(""),x=(0,o.ref)(!1),S=(0,o.computed)((function(){return"1"==e.showMoney?x.value?E.value:k(_.value):_.value})),w=(0,b.D)({showTooltip:m,offset:(0,o.computed)((function(){var t=20;return!e.disabled&&e.clearable&&(t=50),t})),displayValue:S}).generateTooltipWrap,A=(0,o.computed)((function(){var t;return(null===(t=e.config)||void 0===t?void 0:t.lcpPagePopupMapVO)&&"Search"==p.value.suffixIcon})),T=(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)})),C=(0,o.computed)((function(){var t={modelValue:S.value};return!A.value||P.value?(t["onUpdate:modelValue"]=function(t){"1"==e.showMoney?E.value=t:_.value=t},"1"==e.showMoney&&(t.onFocus=function(){null!==_.value&&void 0!==_.value||(_.value=""),x.value=!0,E.value=_.value},t.onBlur=function(){x.value=!1,_.value=function(t){var r;if(null!==(r=e.canShowFlag)&&void 0!==r&&s()(r).call(r,String(t).toLowerCase()))return t;if(null==t||""===t)return"";var n=0,o="".concat(t).replace(/[^\d.-]/g,"").replace(/(\.\d*)/g,(function(e){var t=n;return n++,t?"":e})),i=Number(o);return isNaN(i)?"":(0,v.iF)(i)}(k(E.value))}),t.onClear=function(){var t;null==i||null===(t=i.onClear)||void 0===t||t.call(i),_.value="","1"==e.showMoney&&(E.value="")}):t.onClear=function(){var e;null==i||null===(e=i.onClear)||void 0===e||e.call(i),_.value=""},t})),O=(0,o.computed)((function(){return{class:null==i?void 0:i.class,style:null==i?void 0:i.style}})),I=(0,o.computed)((function(){var e=(0,n.A)({},i);if(delete e.class,delete e.style,A.value&&T.value&&delete e.onClick,e.onWrapClick)if(e.onClick){var t=e.onClick;e.onClick=function(){t.apply(void 0,arguments),e.onWrapClick.apply(e,arguments)}}else e.onClick=e.onWrapClick;return e}));function k(t){var r,n,o;if(null!==(r=e.canShowFlag)&&void 0!==r&&s()(r).call(r,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()(n="".concat(e.symbol," ")).call(n,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,r;return w((0,o.createVNode)(g.ElInput,(0,o.mergeProps)(C.value,(0,n.A)((0,n.A)({},I.value),f.value)),"function"==typeof(r=t=function(){var t,r,s=(0,n.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 A.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!==(r=p.value)&&void 0!==r&&r.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(r)&&!(0,o.isVNode)(r)?t:{default:function(){return[t]}}),{wrapAttrs:O.value})}}}},40857:(e,t,r)=>{r.r(t),r.d(t,{default:()=>D});var n=r(53811),o=r(75286),i=r(57119),s=r.n(i),a=r(73363),l=r.n(a),c=r(96319),u=r.n(c),p=r(31721),d=r.n(p),f=r(50697),h=r.n(f),m=r(36586),y=r.n(m),g=r(48079),v=r.n(g),b=r(64007),_=r.n(b),E=r(86226),x=r.n(E),S=r(8628),w=r.n(S),A=(r(76918),r(48598),r(23288),r(2892),r(26099),r(27495),r(38781),r(90744),r(84061)),T=r(17427),P={class:"option-item"},C={class:"multi-checkbox box-checked"},O={class:"multi-checkbox box-not-checked"};const I={__name:"OptionsDefault",props:{label:{default:""}},setup:function(e){return function(t,r){var n=(0,o.resolveComponent)("el-checkbox");return(0,o.openBlock)(),(0,o.createElementBlock)("div",P,[(0,o.renderSlot)(t.$slots,"default",{},(function(){return[(0,o.createTextVNode)((0,o.toDisplayString)(e.label),1)]})),(0,o.createElementVNode)("div",C,[(0,o.createVNode)(n,{checked:!0}),r[0]||(r[0]=(0,o.createElementVNode)("div",{class:"check-mask"},null,-1))]),(0,o.createElementVNode)("div",O,[(0,o.createVNode)(n,{checked:!1}),r[1]||(r[1]=(0,o.createElementVNode)("div",{class:"check-mask"},null,-1))])])}}};r(75407);const k=(0,r(66262).A)(I,[["__scopeId","data-v-513d8cc3"]]),D={inheritAttrs:!1,props:(0,n.A)((0,n.A)((0,n.A)((0,n.A)({},A.ElSelectV2.props),A.ElSelect.props),T.yz),{},{multiple:[String,Boolean,Number],filterable:[String,Boolean,Number],multipleLimit:[String,Number],rangeOptions:Array,excludeOptions:Array,separator:{type:[String],default:","},virtualized:{type:[String,Boolean,Number],default:""}}),emits:["update:modelValue"],setup:function(e,t){var r=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,T.Qd)(t)||(0,T.cy)(t))try{t=s()(t).join(e.separator),r("update:modelValue",t)}catch(e){}}else if(t&&(0,T.Kg)(t)||(0,T.Et)(t)){var n,o;t=null===(n="".concat(t))||void 0===n?void 0:n.split(e.separator),g.value&&(t=null===(o=t)||void 0===o?void 0:l()(o).call(o,(function(e,t,r){return e[r]=t,e}),{})),r("update:modelValue",t)}return t},set:function(e){r("update:modelValue",e)}}),p=(0,o.computed)((function(){return e.separator})),f=(0,o.computed)((function(){var t;return null===(t=e.config)||void 0===t?void 0:t.valueType})),m=(0,o.computed)((function(){return f.value!==T.K4.LIST&&f.value!==T.K4.OBJECT})),g=(0,o.computed)((function(){return f.value===T.K4.OBJECT})),b=(0,o.computed)((function(){return"boolean"==typeof e.multiple?e.multiple:"1"==e.multiple})),E=(0,o.computed)((function(){var t,r,n,o,i=e.options;return e.rangeOptions&&e.rangeOptions.length&&(i=null===(t=i)||void 0===t||null===(r=u()(t))||void 0===r?void 0:r.call(t,(function(t){var r;return null===(r=e.rangeOptions)||void 0===r?void 0:d()(r).call(r,(function(e){return e==t.columnValue}))}))),e.excludeOptions&&e.excludeOptions.length&&(i=null===(n=i)||void 0===n||null===(o=u()(n))||void 0===o?void 0:o.call(n,(function(t){var r;return!(null!==(r=e.excludeOptions)&&void 0!==r&&d()(r).call(r,(function(e){return e==t.columnValue})))}))),i})),S=(0,o.computed)((function(){return"boolean"==typeof e.virtualized?e.virtualized:"1"==e.virtualized})),P=(0,o.computed)((function(){return S.value?A.ElSelectV2:A.ElSelect})),C=(0,o.computed)({get:function(){if(b.value){(0,T.$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 r;return null!==c.value&&void 0!==c.value?null!==(r=E.value)&&void 0!==r&&d()(r).call(r,(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,r){return e[r]=t,e}),{}):e:c.value=e}}),O=(0,o.computed)((function(){var t,r,o=l()(t=h()(S.value?A.ElSelectV2.props:A.ElSelect.props)).call(t,(function(t,r){return t[r]=e[r],t}),{});return null!==o.placeholder&&void 0!==o.placeholder||(o.placeholder=""),"boolean"!=typeof o.filterable&&(o.filterable="1"==o.filterable),"string"==typeof o.multiple&&(o.multiple="1"==o.multiple),o["suffix-icon"]||o.suffixIcon||(delete o.suffixIcon,delete o["suffix-icon"]),o.multipleLimit=Number(y()(o.multipleLimit||0)),S.value&&(o.options=null===(r=E.value)||void 0===r?void 0:v()(r).call(r,(function(e){var t;return(0,n.A)((0,n.A)({},e),{},{value:e.columnValue,label:(null==I||null===(t=I.value)||void 0===t?void 0:_()(t).call(t,"zh"))>-1?e.columnDesc_zh:e.columnDesc,disabled:"0"==e.columnStatus||"2"==e.columnStatus})}))),o})),I=(0,o.inject)("lang"),D=function(){};return function(){var e,t;return(0,o.createVNode)(P.value,(0,o.mergeProps)({class:"custom-self-select"},(0,n.A)((0,n.A)({},i),O.value),{modelValue:C.value,"onUpdate:modelValue":function(e){return C.value=e},onClear:D}),"function"==typeof(t=e=function(){var e,t={optionDefault:"default"},r={},n={};if(x()(e=h()(a)).call(e,(function(e){var o;w()(o=h()(t)).call(o,e)?r[t[e]]=a[e]:n[e]=a[e]})),S.value){var i=n.default;n.default=function(e){var t,r=e.item;return(0,o.createVNode)(k,{label:(null==I||null===(t=I.value)||void 0===t?void 0:_()(t).call(t,"zh"))>-1?r.columnDesc_zh:r.columnDesc},{default:function(){return[null==i?void 0:i(r)]}})}}else n.default=function(){var e;return null===(e=E.value)||void 0===e?void 0:v()(e).call(e,(function(e){var t,n,i;return(0,o.createVNode)(A.ElOption,{key:e.columnValue,label:(null==I||null===(t=I.value)||void 0===t?void 0:_()(t).call(t,"zh"))>-1?e.columnDesc_zh:e.columnDesc,value:e.columnValue,disabled:"0"==e.columnStatus||"2"==e.columnStatus},{default:function(){return[(0,o.createVNode)(k,{label:(null==I||null===(n=I.value)||void 0===n?void 0:_()(n).call(n,"zh"))>-1?e.columnDesc_zh:e.columnDesc},{default:function(){return[null==r||null===(i=r.default)||void 0===i?void 0:i.call(r,e)]}})]}})}))};return n}())||"[object Object]"===Object.prototype.toString.call(t)&&!(0,o.isVNode)(t)?e:{default:function(){return[e]}})}}}},91413:(e,t,r)=>{r.r(t),r.d(t,{default:()=>b});var n=r(22204),o=r(53811),i=r(75286),s=r(85569),a=r.n(s),l=r(71426),c=r.n(l),u=r(64007),p=r.n(u),d=r(73363),f=r.n(d),h=r(50697),m=r.n(h),y=(r(76918),r(23288),r(2892),r(26099),r(38781),r(84061)),g=r(17427),v=r(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 r,s=t.emit,l=t.attrs,u=(t.expose,t.slots),d=(0,i.computed)({get:function(){return e.modelValue},set:function(e){s("update:modelValue",e)}}),h=(0,i.inject)("lang"),g=null===(r=(0,i.getCurrentInstance)())||void 0===r?void 0:r.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,r=null!==d.value&&void 0!==d.value?d.value:"";if("object"===(0,n.A)(r))try{r=a()(r)}catch(e){r=""}else"function"==typeof r&&(r="");var o,i=null==e||null===(t=e.options)||void 0===t?void 0:c()(t).call(t,(function(e){return e.columnValue==r}));return i?(null==h||null===(o=h.value)||void 0===o?void 0:p()(o).call(o,"zh"))>-1?i.columnDesc_zh:i.columnDesc:r})),E=(0,i.computed)((function(){var t,r=f()(t=m()(y.ElText.props)).call(t,(function(t,r){return t[r]=e[r],t}),{});return"boolean"!=typeof r.truncated&&(r.truncated="1"==r.truncated),r})),x=(0,i.inject)("buttonActions",{}),S=(0,i.computed)((function(){return _.value})),w=(0,i.computed)((function(){return"1"==(null==e?void 0:e.showTooltip)})),A=(0,v.D)({showTooltip:w,offset:(0,i.computed)((function(){var t=0;return"1"==e.needWrap&&(t=22,e.suffixIcon&&(t=36)),t})),displayValue:S,config:e.config,calcFn:function(e){var t;return null==e||null===(t=e.getBoundingClientRect)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t.width}}).generateTooltipWrap,T=(0,i.inject)("dynamicMapComp"),P=(0,i.inject)("hireRelatMapRules"),C=(0,i.inject)("components"),O=(0,i.inject)("selects"),I=(0,i.inject)("rootValue"),k=(0,i.inject)("dataLoad"),D=(0,i.inject)("rootForm");function M(){if(e.suffixIcon&&!e.disabled){var t={color:"#a8abb2",size:14},r=e.suffixIcon;return"string"==typeof r&&(b.value&&"Search"==r&&(t.onClick=(0,i.withModifiers)(l.onClick,["stop"]),t.style={cursor:"pointer"}),r=(0,i.resolveComponent)(r)),(0,i.createVNode)(y.ElIcon,t,{default:function(){return[(0,i.createVNode)(r,null,null)]}})}return null}return function(){var t,r,n;return A((r=(0,i.createVNode)(y.ElText,(0,i.mergeProps)((0,o.A)((0,o.A)({},l),E.value),{onClickCapture:(0,i.withModifiers)((function(t){var r,n,o,i,s;i=(null===(r=e.config)||void 0===r?void 0:r.clickActionKey)||(null===(n=e.config)||void 0===n?void 0:n.buttonActionKey)||(null===(o=e.config)||void 0===o?void 0:o.hireRelat),(s=x[i])&&s(e,{dynamicMapComp:T,hireRelatMapRules:P,components:C,selects:O,rootValue:I,dataLoad:k,rootForm:D},g)}),["stop","self"]),class:{cursor:"1"==e.isPointer}}),"function"==typeof(n=t=(0,o.A)({default:function(){return S.value}},u))||"[object Object]"===Object.prototype.toString.call(n)&&!(0,i.isVNode)(n)?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}},[r,M()]):r),{maintain:!0})}}}},29915:(e,t,r)=>{r.d(t,{A:()=>p});var n=r(49859),o=(r(2892),r(29544)),i=r.n(o),s=r(36586),a=r.n(s),l=r(75286),c={class:"simple-form-item-content el-form-item__content"};const u=i()({inheritAttrs:!1,name:"SimpleFormItemPc"},{__name:"index",props:{label:String,labelWidth:[String,Number],labelPosition:String},setup:function(e){var t=(0,l.useAttrs)(),r=e,o=(0,l.inject)("_formContextKey"),i=(0,l.inject)(o,void 0),s=(0,l.computed)((function(){if("top"===(null==i?void 0:i.labelPosition)||"top"===(null==r?void 0:r.labelPosition))return{};var e=r.labelWidth||(null==i?void 0:i.labelWidth)||"";return e?{width:"".concat(a()(e),"px")}:{}})),u=(0,l.computed)((function(){return[t.class||"",(0,n.A)({},"label-position__".concat(r.labelPosition||"right"),!0)]}));return function(e,r){return(0,l.openBlock)(),(0,l.createElementBlock)("div",{class:(0,l.normalizeClass)(["simple-form-item el-form-item",u.value]),style:(0,l.normalizeStyle)((0,l.unref)(t).style)},[(0,l.createElementVNode)("label",{class:"simple-form-item-label el-form-item__label",style:(0,l.normalizeStyle)(s.value)},[(0,l.renderSlot)(e.$slots,"label")],4),(0,l.createElementVNode)("div",c,[(0,l.renderSlot)(e.$slots,"default")])],6)}}});r(76446);const p=u},77364:(e,t,r)=>{r.d(t,{m:()=>Z,A:()=>ee});var n=r(53474),o=r(37891),i=r(34963),s=r(49859),a=r(75286),l=r(8628),c=r.n(l),u=(r(62010),r(2892),r(66825));const p=(d={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},f={},r.d(f,d),f);var d,f,h=r(86864),m=r(27077),y=r(76172),g=r(16781),v=r.n(g)()("tabsRootContextKey"),b=r(11393),_=r.n(b),E=r(49763),x=r.n(E),S=r(64007),w=r.n(S),A=r(56255),T=r.n(A),P=r(48079),C=r.n(P),O=r(97786),I=r(29544),k=r.n(I),D=r(14166),M=r.n(D),j=r(63579),N=r.n(j),L=(0,u.buildProps)({tabs:{type:(0,u.definePropType)(Array),default:function(){return(0,u.mutable)([])}}}),R="ElTabBar";const B=k()({name:R},{__name:"tab-bar",props:L,setup:function(e,t){var r=t.expose,n=e,l=(0,a.getCurrentInstance)(),p=(0,a.inject)(v);p||(0,u.throwError)(R,"<el-tabs><el-tab-bar /></el-tabs>");var d=(0,y.useNamespace)("tabs"),f=(0,a.ref)(),h=(0,a.ref)(),m=function(){return h.value=function(){var e,t,r,o=0,i=0,a=c()(e=["top","bottom"]).call(e,p.props.tabPosition)?"width":"height",d="width"===a?"x":"y",f="x"===d?"left":"top";return M()(t=n.tabs).call(t,(function(e){var t,r=null===(t=l.parent)||void 0===t||null===(t=t.refs)||void 0===t?void 0:t["tab-".concat(e.uid)];if(!e&&!r)return!1;if(!e.active)return!0;o=r["offset".concat((0,u.capitalize)(f))],i=r["client".concat((0,u.capitalize)(a))];var s=window.getComputedStyle(r);return"width"===a&&(n.tabs.length>1&&(i-=N()(s.paddingLeft)+N()(s.paddingRight)),o+=N()(s.paddingLeft)),!1})),(0,s.A)((0,s.A)({},a,"".concat(i,"px")),"transform",_()(r="translate".concat((0,u.capitalize)(d),"(")).call(r,o,"px)"))}()};return(0,a.watch)((function(){return n.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,O.wYm)(f,(function(){return m()})),r({ref:f,update:m}),function(e,t){return(0,a.openBlock)(),(0,a.createElementBlock)("div",{ref_key:"barRef",ref:f,class:(0,a.normalizeClass)([(0,a.unref)(d).e("active-bar"),(0,a.unref)(d).is((0,a.unref)(p).props.tabPosition)]),style:(0,a.normalizeStyle)(h.value)},null,6)}}}),F=B;var U=(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}),V={tabClick:function(e,t,r){return r instanceof Event},tabRemove:function(e,t){return t instanceof Event}},W="ElTabNav",$=(0,a.defineComponent)({name:W,props:U,emits:V,setup:function(e,t){var r=t.expose,s=t.emit,l=(0,a.getCurrentInstance)(),d=(0,a.inject)(v);d||(0,u.throwError)(W,"<el-tabs><tab-nav /></el-tabs>");var f=(0,y.useNamespace)("tabs"),g=(0,O.fho)(),b=(0,O.esz)(),E=(0,a.ref)(),S=(0,a.ref)(),A=(0,a.ref)(),P=(0,a.ref)(),I=(0,a.ref)(!1),k=(0,a.ref)(0),D=(0,a.ref)(!1),M=(0,a.ref)(!0),j=(0,a.computed)((function(){var e;return c()(e=["top","bottom"]).call(e,d.props.tabPosition)?"width":"height"})),N=(0,a.computed)((function(){var e,t="width"===j.value?"X":"Y";return{transform:_()(e="translate".concat(t,"(-")).call(e,k.value,"px)")}})),L=function(){if(E.value){var e=E.value["offset".concat((0,u.capitalize)(j.value))],t=k.value;if(t){var r=t>e?t-e:0;k.value=r}}},R=function(){if(E.value&&S.value){var e=S.value["offset".concat((0,u.capitalize)(j.value))],t=E.value["offset".concat((0,u.capitalize)(j.value))],r=k.value;if(!(e-r<=t)){var n=e-r>2*t?r+t:e-t;k.value=n}}},B=function(){var e=(0,i.A)((0,o.A)().mark((function e(){var t,r,n,i,s,l,u,p,f,h;return(0,o.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=S.value,I.value&&A.value&&E.value&&r){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,(0,a.nextTick)();case 5:if(n=A.value.querySelector(".is-active")){e.next=8;break}return e.abrupt("return");case 8:i=E.value,s=c()(t=["top","bottom"]).call(t,d.props.tabPosition),l=n.getBoundingClientRect(),u=i.getBoundingClientRect(),p=s?r.offsetWidth-u.width:r.offsetHeight-u.height,f=k.value,h=f,s?(l.left<u.left&&(h=f-(u.left-l.left)),l.right>u.right&&(h=f+l.right-u.right)):(l.top<u.top&&(h=f-(u.top-l.top)),l.bottom>u.bottom&&(h=f+(l.bottom-u.bottom))),h=Math.max(h,0),k.value=Math.min(h,p);case 18:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),U=function(){var t;if(S.value&&E.value){e.stretch&&(null===(t=P.value)||void 0===t||t.update());var r=S.value["offset".concat((0,u.capitalize)(j.value))],n=E.value["offset".concat((0,u.capitalize)(j.value))],o=k.value;n<r?(I.value=I.value||{},I.value.prev=o,I.value.next=o+n<r,r-o<n&&(k.value=r-n)):(I.value=!1,o>0&&(k.value=0))}},V=function(e){var t,r=e.code,n=p.EVENT_CODE.up,o=p.EVENT_CODE.down,i=p.EVENT_CODE.left,s=p.EVENT_CODE.right;if(c()(t=[n,o,i,s]).call(t,r)){var a,l=x()(e.currentTarget.querySelectorAll<HTMLDivElement>"[role=tab]:not(.is-disabled)"),u=w()(l).call(l,e.target);l[a=r===i||r===n?0===u?l.length-1:u-1:u<l.length-1?u+1:0].focus({preventScroll:!0}),l[a].click(),$()}},$=function(){M.value&&(D.value=!0)},K=function(){return D.value=!1};return(0,a.watch)(g,(function(e){"hidden"===e?M.value=!1:"visible"===e&&T()((function(){return M.value=!0}),50)})),(0,a.watch)(b,(function(e){e?T()((function(){return M.value=!0}),50):M.value=!1})),(0,O.wYm)(A,U),(0,a.onMounted)((function(){return T()((function(){return B()}),0)})),(0,a.onUpdated)((function(){return U()})),r({scrollToActiveTab:B,removeFocus:K}),(0,a.watch)((function(){return e.panes}),(function(){return l.update()}),{flush:"post",deep:!0}),function(){var t,r,o,i=I.value?[(0,a.createVNode)("span",{class:[f.e("nav-prev"),f.is("disabled",!I.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:[f.e("nav-next"),f.is("disabled",!I.value.next)],onClick:R},[(0,a.createVNode)(h.ElIcon,null,{default:function(){return[(0,a.createVNode)(m.ArrowRight,null,null)]}})])]:null,l=C()(t=e.panes).call(t,(function(t,r){var n,o,i,l,c,u=t.uid,y=t.props.disabled,g=null!==(n=null!==(o=t.props.name)&&void 0!==o?o:t.index)&&void 0!==n?n:"".concat(r),v=!y&&(t.isClosable||e.editable),b=t.props.hidden;t.index="".concat(r);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,S=!y&&t.active?0:-1;return b?null:(0,a.createVNode)("div",{ref:"tab-".concat(u),class:[f.e("item"),f.is(d.props.tabPosition),f.is("active",t.active),f.is("disabled",y),f.is("closable",v),f.is("focus",D.value)],style:b?{display:"none"}:{},id:"tab-".concat(g),key:"tab-".concat(u),"aria-controls":"pane-".concat(g),role:"tab","aria-selected":t.active,tabindex:S,onFocus:function(){return $()},onBlur:function(){return K()},onClick:function(e){K(),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:A,class:[f.e("nav-wrap"),f.is("scrollable",!!I.value),f.is(d.props.tabPosition),e.showBar?"":"hidden-bar"]},[i,(0,a.createVNode)("div",{class:[f.e("nav-scroll")],ref:E},[(0,a.createVNode)("div",{class:[f.e("nav"),f.is(d.props.tabPosition),f.is("stretch",e.stretch&&c()(r=["top","bottom"]).call(r,d.props.tabPosition))],ref:S,style:N.value,role:"tablist",onKeydown:V},_()(o=[!e.type&&e.showBar?(0,a.createVNode)(F,{ref:P,tabs:(0,n.A)(e.panes)},null):null,l]).call(o))])])}}});const K=$;var q=(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 r;return c()(r=["remove","add"]).call(r,t)})),"tabRemove",(function(e){return z(e)})),"tabAdd",(function(){return!0}));const G=(0,a.defineComponent)({name:"ElTabs",props:q,emits:H,setup:function(e,t){var r,l=t.emit,c=t.slots,d=t.expose,f=(0,y.useNamespace)("tabs"),g=(0,y.useOrderedChildren)((0,a.getCurrentInstance)(),"ElTabPane"),b=g.children,_=g.addChild,E=g.removeChild,x=(0,a.ref)({}),S=(0,a.ref)(null!==(r=e.modelValue)&&void 0!==r?r:"0"),w=function(){var t=(0,i.A)((0,o.A)().mark((function t(r){var n,i,s,a,c=arguments;return(0,o.A)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=c.length>1&&void 0!==c[1]&&c[1],S.value!==r&&!(0,u.isUndefined)(r)){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,r,S.value);case 6:!1!==t.sent&&(S.value=r,n&&(l(p.UPDATE_MODEL_EVENT,r),l("tabChange",r)),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)}}(),A=function(e,t,r){e.props.disabled||(w(t,!0),l("tabClick",e,r))},T=function(e,t){e.props.disabled||(0,u.isUndefined)(e.props.name)||(t.stopPropagation(),l("edit",e.props.name,"remove"),l("tabRemove",e.props.name))},P=function(){l("edit",void 0,"add"),l("tabAdd")};return(0,a.watch)((function(){return e.modelValue}),(function(e){return w(e)})),(0,a.watch)(S,(0,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:S,registerPane:_,unregisterPane:E}),d({currentName:S}),function(){var t=c["add-icon"],r=e.editable||e.addable?(0,a.createVNode)("span",{class:f.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:f.is("icon-plus")},{default:function(){return[(0,a.createVNode)(m.Plus,null,null)]}})]):null,o=(0,a.createVNode)("div",{class:[f.e("header"),f.is(e.tabPosition)]},[r,(0,a.createVNode)(K,{ref:x,currentName:S.value,editable:e.editable,showBar:e.showBar,type:e.type,panes:b.value,stretch:e.stretch,onTabClick:A,onTabRemove:T},null)]),i=(0,a.createVNode)("div",{class:f.e("content")},[(0,a.renderSlot)(c,"default")]);return(0,a.createVNode)("div",{class:["resolver-tabs",f.b(),f.m(e.tabPosition),(0,s.A)((0,s.A)({},f.m("card"),"card"===e.type),f.m("border-card"),"border-card"===e.type)]},(0,n.A)("bottom"!==e.tabPosition?[i,o]:[o,i]))}}});var Q=r(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=k()({name:J},{__name:"tab-pane",props:X,setup:function(e){var t=e,r=(0,a.getCurrentInstance)(),n=(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),d=(0,a.computed)((function(){var e;return null!==(e=t.name)&&void 0!==e?e:s.value})),f=(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:r.uid,slots:n,props:t,paneName:d,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)(f)?(0,a.withDirectives)(((0,a.openBlock)(),(0,a.createElementBlock)("div",{key:0,id:"pane-".concat(d.value),class:(0,a.normalizeClass)((0,a.unref)(i).b()),role:"tabpanel","aria-hidden":!(0,a.unref)(c),"aria-labelledby":"tab-".concat(d.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,r)=>{r.d(t,{A:()=>b});var n=r(53811),o=r(86226),i=r.n(o),s=r(50697),a=r.n(s),l=r(64007),c=r.n(l),u=r(75286),p=r(84061),d={key:0,class:"header"},f=["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 r=t.expose,n=(0,u.ref)(null),o=e,i=(0,u.computed)((function(){return o.lang})),s=null,a=(0,u.ref)(!1);r({dialogVisible:a}),(0,u.watch)(a,(function(e,t){var r;!e&&t&&(s&&s(),null===(r=o.awalyCloseCb)||void 0===r||r.call(o),n.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)(n,(function(e){e&&window&&window.addEventListener("message",l)}),{immediate:!0})})),(0,u.onUnmounted)((function(){window&&window.removeEventListener("message",l)})),function(t,r){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":r[1]||(r[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",d,[(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:n,class:"iframe-box",src:a.value?o.src:""},null,8,f),(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:r[0]||(r[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"])}}};r(65190),r(85304);const g=(0,r(66262).A)(y,[["__scopeId","data-v-60756844"]]);var v=null;function b(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(v)return i()(t=a()(r)).call(t,(function(e){v.props[e]=r[e],v.vm.exposed.dialogVisible.value=!0})),v.close;var o=document.createElement("div"),s=(0,u.createVNode)(g,(0,n.A)({},r));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}},49027:(e,t,r)=>{r.d(t,{F:()=>o,M:()=>n});var n=!1,o=!0},82826:(e,t,r)=>{r.d(t,{S:()=>u});var n=r(16781),o=r.n(n),i=r(14166),s=r.n(i),a=r(17427),l=r(75286),c=o()(),u=function(e){var t=(0,l.inject)(c);(0,l.provide)(c,(function(r){var n=e.multiPmPageMetaList,o=e.pmPageMetaList;if(n&&n.length){var i=s()(n).call(n,(function(e){return s()(e).call(e,(function(e){return e._componentLoad}))}));i&&(e._componentLoad=!0,null==t||t(e))}else{var a=s()(o).call(o,(function(e){return e._componentLoad}));a&&(e._componentLoad=!0,null==t||t(e))}})),(0,l.onMounted)((function(){var r=e.multiPmPageMetaList,n=e.pmPageMetaList;(r&&0!==r.length||n&&0!==n.length)&&!e.renderby&&-1===(0,a.Tn)(a.jK,e.metaType)||(e._componentLoad=!0,null==t||t(e))}))}},70846:(e,t,r)=>{r.d(t,{K:()=>_});var n=r(22204),o=r(49859),i=r(56255),s=r.n(i),a=r(66615),l=r.n(a),c=r(50697),u=r.n(c),p=r(96319),d=r.n(p),f=r(86226),h=r.n(f),m=(r(27495),r(71761),r(25440),r(75286)),y=r(9318),g=r(71835),v=r(17427);function b(e,t,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"update:modelValue",a=this.OPEN_DATA_RULES,l=this.hireRelatMapRules,c=this.messageInstance,u=this.rootValue,p=this.ruleExecuter,d=this.dataLoad,f=this.dynamicMapComp,h=this.lang,b=this._mapComp,_=l.value[e.hireRelat],E=e.metaCode;if("update:modelValue"!==i){var x=i.match(/^update:(\w+)$/);if(!x)return;E=x[1];var S=e.dynamicHireRelat.replace(/->\w+$/,"->".concat(E));e=f[S]}return(0,m.computed)({get:function(){var r,n;if(e){var o=null!==(r=E?null===(n=t.modelValue)||void 0===n?void 0:n[E]:t.modelValue)&&void 0!==r?r:null;return"update:modelValue"===i&&null==o&&(0,g.A)(e),e&&(e.bindValue=o),e&&(!d.value||e.eventInit||e.notInit||s()((function(){null==p||p.run({rootValue:u,rules:_,config:e,dynamicMapComp:f,lang:h,messageInstance:c,_mapComp:b,isInit:!0}),y.Ay.call({config:e,dynamicMapComp:f,lang:h,_mapComp:b,messageInstance:c},_,!0,a),(0,v.Ts)(e,"eventInit",!0)}),0)),o}},set:function(i){if(e){var l=t.modelValue,d=E;if(l){var g,x=null==l?void 0:l[d];if(null!==(g=e)&&void 0!==g&&g.frameSet&&(d||(x=l),x&&("object"!==(0,n.A)(x)&&"object"!==(0,n.A)(i)||(i=(0,v.Vv)(x,i)))),(0,v.vr)(x)&&(0,v.vr)(i)&&x===i)return;try{d?t.modelValue[d]=i:t.modelValue=i}catch(t){console.log("config",e,d)}}else{e.parent&&(e.parent.frameSet=!0),(0,m.nextTick)((function(){e.parent&&(e.parent.frameSet=!1)}));var S=(0,o.A)({},d,i);d||(S=i),r("update:modelValue",S)}e&&s()((function(){null==p||p.run({rootValue:u,rules:_,config:e,dynamicMapComp:f,lang:h,messageInstance:c,_mapComp:b}),y.Ay.call({config:e,dynamicMapComp:f,lang:h,_mapComp:b,messageInstance:c},_,!1,a)}),0)}}})}function _(e,t,r){var n=(0,m.inject)("hireRelatMapRules"),o=(0,m.inject)("dataLoad"),i=(0,m.inject)("dynamicMapComp"),s=(0,m.inject)("lang"),a=(0,m.inject)("_mapComp"),c=(0,m.inject)("rootValue"),p=(0,m.inject)("_ruleExecuter"),f=(0,m.inject)("_messageInstance"),y={OPEN_DATA_RULES:r,hireRelatMapRules:n,dataLoad:o,dynamicMapComp:i,lang:s,rootValue:c,_mapComp:a,ruleExecuter:p,messageInstance:null==f?void 0:f.value},g=(0,m.reactive)({}),v=b.call(y,e.config,e,t);return g["onUpdate:modelValue"]=function(e){v.value=e},g.modelValue=v,{modelValue:v,vModelObjs:g,initVmodels:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];l()(r)||(r=u()(r)),r=d()(r).call(r,(function(e){return e.match(/^update:(\w+)$/)})),h()(r).call(r,(function(r){if("string"==typeof r){var n=b.call(y,e.config,e,t,r);if(n){var o=r.match(/^update:(\w+)$/);g["onUpdate:".concat(o[1])]=function(e){n.value=e},g[o[1]]=n}}})),g["onUpdate:modelValue"]=function(e){v.value=e},g.modelValue=v}}}},68999:(e,t,r)=>{r.d(t,{K:()=>i}),r(56255),r(27495),r(71761),r(25440);var n=r(75286),o=(r(9318),r(71835),r(17427));function i(e){return{modelValue:(0,n.computed)({get:function(){var t=e._rootValue,r=e.dynamicHireRelat;return(0,o.V9)((0,n.unref)(t),r,"->")},set:function(t){var r=e._rootValue,n=e.dynamicHireRelat;return(0,o.oY)(r,n,t,"->")}})}}},50510:(e,t,r)=>{r.d(t,{A:()=>d});var n=r(75286),o=r(66615),i=r.n(o),s=r(48079),a=r.n(s),l=r(11393),c=r.n(l),u=r(17427),p=r(89932);const d={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 r=t.emit,o=t.attrs,s=(0,n.computed)({get:function(){return e.modelValue},set:function(e){r("update:modelValue",e)}}),l=(0,n.inject)("_messageInstance"),d=(0,n.inject)("_getNativeComps"),f=(0,n.inject)("_loadModuleCache"),h=(0,n.inject)("_isH5"),m=(0,n.inject)("injectMode",""),y=(0,n.inject)("OPEN_DATA_RULES"),g=e.mode||m;(0,n.provide)("injectMode",g);var v=(0,n.inject)("indectModeRef",(0,n.ref)("")),b=(0,n.computed)((function(){return e.mode||v.value}));return(0,n.provide)("indectModeRef",b),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;if((0,u.n_)(t,y))return null;var r,i=(0,u.AP)(t,b.value),a=(0,u.fw)({messageInstance:null==l?void 0:l.value,config:t,disabled:i,getNativeComps:d,isH5:null==h?void 0:h.value,loadModuleCache:f});return a?(0,u.ZB)(t,i,null==h?void 0:h.value)((0,n.createVNode)(p.A,(0,n.mergeProps)({additionConfigs:e.additionConfigs,key:c()(r="".concat(t.metaId,"-")).call(r,t.rowIndex),component:a,config:t},o,{mode:b.value,rowScope:e.rowScope,modelValue:s.value,"onUpdate:modelValue":function(e){return s.value=e}}),null)):void 0})):null}}}},19022:(e,t,r)=>{r.d(t,{Ct:()=>k,MM:()=>j,NR:()=>B,Vf:()=>R,Vr:()=>I,Xe:()=>N,cv:()=>D,qK:()=>F});var n=r(53474),o=r(53811),i=(r(48598),r(44114),r(2892),r(84864),r(57465),r(27495),r(87745),r(90906),r(38781),r(71761),r(25440),r(86226)),s=r.n(i),a=r(31721),l=r.n(a),c=r(48079),u=r.n(c),p=r(36586),d=r.n(p),f=r(18979),h=r.n(f),m=r(11393),y=r.n(m),g=r(96319),v=r.n(g),b=r(71426),_=r.n(b),E=r(8628),x=r.n(E),S=(r(66615),r(385)),w=r.n(S),A=r(73363),T=r.n(A),P=r(17427),C=r(71835),O=["setShow","setHidden"],I={};function k(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0;if(!r)return"";var o=this.config,i=(this.dynamicMapComp,o.hireRelat),s=void 0===i?"":i;if(o.dynamicHireRelat,s===r)return o.bindValue;var a=M.call(this,r,o);return 1!==a.length?null:n?null===(e=a[0])||void 0===e?void 0:e.refValue:null===(t=a[0])||void 0===t?void 0:t.bindValue}function D(e,t){var r=this;if(e)if((0,P.Qd)(e))(0,P.$3)(e,"refValue")&&(e.refValue=t);else{var n=this.config,o=M.call(this,e,n);s()(o).call(o,(function(e){if((0,P.$3)(e,"refValue"))"ElSelect"===e.metaType&&(t=(0,C.l)({config:e,val:t,isActive:!0})),e.refValue=t;else{var n,o,i=r._mapComp;null!=i&&null!==(n=i.value)&&void 0!==n&&n[e.hireRelat]&&(I[e.hireRelat]||(I[e.hireRelat]=[]),l()(o=I[e.hireRelat]).call(o,(function(e){return(null==e?void 0:e.rules)===(null==r?void 0:r.rules)&&(null==e?void 0:e.config)===(null==r?void 0:r.config)}))||I[e.hireRelat].push(r))}}))}}function M(e,t,r){var n,o,i,a,c=this,p=t.dynamicHireRelat,f=void 0===p?"":p,m=f,g="",b=/(__@__[^(->)]*__)$/,E=null==f?void 0:f.match(b);E&&(g=E[1],m=null===(a=m)||void 0===a?void 0:a.replace(b,""));for(var S=u()(n=m.split("->")).call(n,(function(e){var t=null==e?void 0:e.match(/^(\w+)\[(\d+)\]$/);return t?{idx:d()(t[2]),code:t[1]}:{idx:-1,code:e}})),w=e.split("->"),A=w.length-1,T=0;T<w.length;T++){var P=w[T];if(S[T].code!==P){A=T;break}}var C=h()(w).call(w,A),k=u()(o=h()(S).call(S,0,A)).call(o,(function(e){var t,r=e.idx,n=e.code;return-1!==r?y()(t="".concat(n,"[")).call(t,r,"]"):n})).join("->"),D=k,M=null,j=k.match(/^([\w\W]*)\[(\d*)\]$/);j&&(D=j[1],M=j[2]);var N=this.dynamicMapComp,L=this._mapComp,R=[];if(D){var B;R=[N[y()(B="".concat(D)).call(B,g)]]}else{var F,U=C.shift();R=[N[y()(F="".concat(U)).call(F,g)]]}for(var V,W=function(){var e=C.shift(),t=[];s()(R).call(R,(function(n){if(n.multiPmPageMetaList)if(null!==M){var o=n.multiPmPageMetaList[M],i=o&&_()(o).call(o,(function(t){return t.metaCode===e}));if(!i)return;t.push(i),M=null}else{var a;if(x()(O).call(O,r)){var l,c=null==n||null===(l=n.pmPageMetaList)||void 0===l?void 0:_()(l).call(l,(function(t){return t.metaCode===e}));if(!c)return;t.push(c)}s()(a=n.multiPmPageMetaList).call(a,(function(r){var n=_()(r).call(r,(function(t){return t.metaCode===e}));n&&t.push(n)}))}else{var u,p=null==n||null===(u=n.pmPageMetaList)||void 0===u?void 0:_()(u).call(u,(function(t){return t.metaCode===e}));if(!p)return;t.push(p)}})),R=t};C.length;)W();return null!=L&&null!==(i=L.value)&&void 0!==i&&i[e]&&!v()(R).call(R,(function(e){return e.vmIsBind})).length&&(I[e]||(I[e]=[]),l()(V=I[e]).call(V,(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)}))||I[e].push(this)),R}function j(e,t){var r=L(e),n=L(t);return r&&n?Number(e)>Number(t):e+"">t+""}function N(e,t){var r=L(e),n=L(t);return r&&n?Number(e)<Number(t):e+""<t+""}function L(e){return!isNaN(Number(e))}function R(e,t){if(!e)return null;var r=this.config;return M.call(this,e,r,t)}function B(e){if(!e)return[];var t=[],r=e.pmRuleDefVoList,i=e.pmRuleDefVOList,a=r||(null==i?void 0:v()(i).call(i,(function(e){return"1"==(null==e?void 0:e.ruleType)})))||[];return s()(a).call(a,(function(e){var r=e.pmRuleEventRelVOList||e.pmRuleEventRelVoList||[],i=u()(r).call(r,(function(t){return(0,o.A)((0,o.A)({},t),{},{ruleType:e.ruleType})}));t.push.apply(t,(0,n.A)(i))})),t}function F(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=t?t.split("->"):[],o=r?r.split("->"):[],i=-1,s=0;-1===i&&s<n.length&&s<o.length;){var a=n[s],l=new RegExp("^".concat(a,"(\\[\\d+\\])?$")),c=o[s];l.test(c)?(w()(n).call(n,s,1,c),s++):i=s}var u=T()(n).call(n,(function(e,t){var r=t.replace(/([\[\]]{1})/g,(function(e,t){return"\\".concat(t)}));return e+(e?"->".concat(r,"(\\[\\d+\\])?"):"".concat(r,"(\\[\\d+\\])?"))}),""),p=new RegExp("^".concat(u,"$"));return v()(e).call(e,(function(e){return p.test(e)}))}},9318:(e,t,r)=>{r.d(t,{Ay:()=>X,Zt:()=>M,Bx:()=>J});var n=r(38008),o=(r(44114),r(84864),r(57465),r(27495),r(87745),r(38781),r(71761),r(25440),r(86226)),i=r.n(o),s=r(11393),a=r.n(s),l=r(56255),c=r.n(l),u=r(50697),p=r.n(u),d=r(96319),f=r.n(d),h=r(48079),m=r.n(h),y=r(36586),g=r.n(y),v=r(22204),b=r(49859),_=(r(23288),r(2892),r(79432),r(90906),r(66615)),E=r.n(_),x=r(64007),S=r.n(x),w=r(8628),A=r.n(w),T=r(31721),P=r.n(T),C=r(19022),O=r(17427),I={COMPONENT:1,SYSTEM:2,SELF:3,COMPONENT_ENMU:4,NULL:5},k=(0,b.A)((0,b.A)((0,b.A)((0,b.A)((0,b.A)({},I.COMPONENT,(function(e){var t,r=e.tabpanelCode,n=e.value;return C.Ct.call(this,a()(t="".concat(r?r+"->":"")).call(t,n))})),I.SYSTEM,(function(e){return function(e){var t=new Date;switch(e){case j.currentDate:return(0,O.Yq)(new Date,"yyyy-MM-dd");case j.currentTimestamp:return(new Date).getTime();case j.CurrentYear:return(0,O.Yq)(new Date,"yyyy");case j.CurrentMonth:return(0,O.Yq)(new Date,"MM");case j.CurrentDay:return(0,O.Yq)(new Date,"dd");case j.CurrentAfter30Day:return t.setDate(t.getDate()+30),(0,O.Yq)(t,"yyyy-MM-dd");case j.CurrentBefore30Day:return t.setDate(t.getDate()-30),(0,O.Yq)(t,"yyyy-MM-dd");default:return e}}(e.value)})),I.SELF,(function(e){var t=e.value,r="";try{r=JSON.parse(t)}catch(e){r=t}return r})),I.COMPONENT_ENMU,(function(e){return e.value})),I.NULL,(function(){return null}));function D(e){var t=this,r=e||{},n=r.eventExpress,o=(r.pmRuleTargetEventVoList,r.ruleType,r.tabpanelCode);if(!n)return!1;var i=JSON.parse(n),s=i.relation,l=i.conditions;return m()(l).call(l,(function(e){var r,n=e.refType,i=e.refValue,s=e.targetType,l=e.targetValue;if(I.COMPONENT==n){var c,u=C.Vf.call(t,a()(c="".concat(o?o+"->":"")).call(c,i));if(!u||1!==u.length)return!1}if(!k[n])return!1;var p=k[n].call(t,{tabpanelCode:o,value:i});if(I.COMPONENT==s){var d,f=C.Vf.call(t,a()(d="".concat(o?o+"->":"")).call(d,l));if(!f||1!==f.length)return!1}if(!k[s])return!1;var h=k[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(0,O.CQ)(p)==(0,O.CQ)(h);case 6:return p!=h;case 7:return"number"==typeof p&&(p="".concat(p)),!(!E()(p)&&"string"!=typeof p)&&S()(p).call(p,h)>-1;case 8:return!!A()(r=["string","number"]).call(r,(0,v.A)(h))&&new RegExp(h).test(p);default:return!1}}))[1==s?"every":"some"]((function(e){return e}))}function M(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t={};return i()(e).call(e,(function(e){var r=function(e){var t=[],r=e||{},n=r.eventExpress,o=(r.pmRuleTargetEventVoList,r.tabpanelCode);if(!n)return!1;var s=JSON.parse(n).conditions,l=void 0===s?[]:s;return i()(l).call(l,(function(r){var n,i;r.refType!=I.COMPONENT&&r.targetType!=I.COMPONENT||(r.refType==I.COMPONENT&&t.push({key:o?a()(n="".concat(o,"->")).call(n,r.refCode||r.refValue):r.refCode||r.refValue,rules:[e]}),r.targetType==I.COMPONENT&&t.push({key:o?a()(i="".concat(o,"->")).call(i,r.targetValue):r.targetValue,rules:[e]}))})),t}(e);r&&r.length&&i()(r).call(r,(function(e){var r=e.key,n=void 0===r?"":r,o=e.rules,s=void 0===o?[]:o;t[n]?i()(s).call(s,(function(e){var r;null!==(r=t[n])&&void 0!==r&&P()(r).call(r,(function(t){return(null==t?void 0:t.relId)===(null==e?void 0:e.relId)}))||t[n].push(e)})):t[n]=s}))})),t}((0,C.NR)(e))}var j={currentDate:"1",currentTimestamp:"2",CurrentYear:"3",CurrentMonth:"4",CurrentDay:"5",CurrentAfter30Day:"6",CurrentBefore30Day:"7"};var N=r(53474),L=r(85569),R=r.n(L),B=r(38048),F=r.n(B),U=r(9665),V=r.n(U),W=r(85352),$=(0,N.A)(W.Lu),K=[],q={0:"setHidden",1:"setRequired",2:"setDisable",3:"setClear",4:"setDefaultValue",5:"limitDataRange",6:"setPopup",7:"openThePage",8:"setShow",9:"setNoRequired",10:"setNoDisable",11:"setDisableNotEffect",12:"setRequiredNotEffect",13:"setNoRequiredNotEffect",14:"setNoDisableNotEffect",16:"setProps"},z={setDefaultValue:function(e,t,r){var n,o=e.targetObj,i=e.targetObjVal;if(o){var s,l=this.config,c=this.dynamicMapComp,u=a()(n="".concat(r?r+"->":"")).call(n,o),p=/^_replace:/.test(i);p&&(i=function(e,t){var r=t.config,n=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===W.DE.REF_VAL)t=null!==(a=null==r?void 0:r.bindValue)&&void 0!==a?a:"";else if(t===W.DE.CURRENT_DATE)t=(0,O.Yq)(new Date,"yyyy-MM-dd");else if(l=t.match(/^_route:(.*)$/)){var u,p=l[1],d=null==r||null===(u=r.route)||void 0===u?void 0:u.query;t=null==d?void 0:d[p]}else if("string"==typeof t&&/^_lang$/.test(t))t=null==r?void 0:r._lang;else if(null!=c&&c[1]){var f=null==n?void 0:n[c[1]];t=(null==f?void 0:f.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 d="";try{d=JSON.parse(i)}catch(e){d=i||""}if("number"==typeof d&&(d="".concat(d)),p);else if(d===W.DE.REF_VAL){var f;d=null!==(f=null==l?void 0:l.bindValue)&&void 0!==f?f:""}else if(d===W.DE.CURRENT_DATE)d=(0,O.Yq)(new Date,"yyyy-MM-dd");else{var h,m,y=null,g=null===(h=d)||void 0===h||null===(m=h.match)||void 0===m?void 0:m.call(h,/^_absoluteTarget:(.+)$/);if("string"==typeof d&&(y=d.match(/^_route:(.*)$/))){var v,b=y[1],_=null==l||null===(v=l.route)||void 0===v?void 0:v.query;d=null==_?void 0:_[b]}else if("string"==typeof d&&/^_lang$/.test(d))d=null==l?void 0:l._lang;else if("string"==typeof d&&null!=g&&g[1]){var E=null==c?void 0:c[g[1]];d=(null==E?void 0:E.bindValue)||""}else{var x,S,w=null===(x=d)||void 0===x||null===(S=x.match)||void 0===S?void 0:S.call(x,/^_assgin:(.*)$/);if(w)d=null==w?void 0:w[1];else{var A=C.Ct.call(this,u,!0);(A||"0"==A)&&(d=A)}}}C.cv.call(this,u,d)}},setClear:function(e,t,r){var n;if(!t){var o=e.targetObj;if(o){var s=a()(n="".concat(r?r+"->":"")).call(n,o),l=C.Vf.call(this,s);i()(l).call(l,(function(e){if(e){var t="";A()($).call($,e.metaType||e.labelType)&&(t=[]),A()(K).call(K,e.metaType||e.labelType)&&(t=!1),(0,O.$3)(e,"refValue")&&(e.refValue=t)}}))}}},setDisable:function(e,t,r){var n,o=e.targetObj;if(o){var s=a()(n="".concat(r?r+"->":"")).call(n,o),l=C.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,r){var n,o=e.targetObj;if(o){var s=a()(n="".concat(r?r+"->":"")).call(n,o),l=C.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 r=c[t];e&&(e.editFlag=r)}))}}},setRequired:function(e,t,r){var n,o=e.targetObj;if(o){var s=a()(n="".concat(r?r+"->":"")).call(n,o),l=C.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,r){var n,o=e.targetObj;if(o){var s=a()(n="".concat(r?r+"->":"")).call(n,o),l=C.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 r=c[t];e&&(e.requiredFlag=r),e&&e.refConfig&&(e.refConfig.requiredFlag=r)}))}}},setHidden:function(e,t,r){var n,o=e.targetObj;if(o){var s=a()(n="".concat(r?r+"->":"")).call(n,o),l=C.Vf.call(this,s,"setHidden");return i()(l).call(l,(function(e){e&&/^\d+$/.test(e.displayType)&&(e.displayType="0"),e&&(e.hidden="1"),e&&e.refConfig&&/^\d+$/.test(e.refConfig.displayType)&&(e.refConfig.displayType="0"),e&&e.refConfig&&(e.refConfig.hidden="1")})),function(){i()(l).call(l,(function(e,t){e&&/^\d+$/.test(e.displayType)&&(e.displayType="1"),e&&(e.hidden="0"),e&&e.refConfig&&/^\d+$/.test(e.refConfig.displayType)&&(e.refConfig.displayType="1"),e&&e.refConfig&&(e.refConfig.hidden="0")}))}}},setShow:function(e,t,r,n){var o,s=e.targetObj;if(s){var l=a()(o="".concat(r?r+"->":"")).call(o,s),u=C.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&&/^\d+$/.test(e.refConfig.displayType)&&(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&&/^\d+$/.test(e.refConfig.displayType)&&(e.refConfig.displayType="0"),e&&e.refConfig&&(e.refConfig.hidden="1")}))}),0)}}},setNoRequired:function(e,t,r){var n,o=e.targetObj;if(o){var s=a()(n="".concat(r?r+"->":"")).call(n,o),l=C.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,r){var n,o=e.targetObj;if(o){var s=a()(n="".concat(r?r+"->":"")).call(n,o),l=C.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 r=c[t];e&&(e.requiredFlag=r)}))}}},setNoDisable:function(e,t,r){var n,o=e.targetObj;if(o){var s=a()(n="".concat(r?r+"->":"")).call(n,o),l=C.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,r){var n,o=e.targetObj;if(o){var s=a()(n="".concat(r?r+"->":"")).call(n,o),l=C.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 r=c[t];e&&(e.editFlag=r)}))}}},limitDataRange:function(e,t,r){var n,o=this,s=e.targetObj,l=e.targetObjVal,c=void 0===l?"":l;if(s){var u,d=a()(n="".concat(r?r+"->":"")).call(n,s);if((u=(null==c?void 0:S()(c).call(c,"~"))>-1?c.split("~"):c.split(","))&&u.length){var f=[],h=C.Vf.call(this,d);return i()(h).call(h,(function(t){var r=!1,n={};if(f.push(n),t){var s=o.config,a="";if(-1!==(0,O.Tn)(["ElDatePicker"],(null==t?void 0:t.renderby)||(null==t?void 0:t.metaType))){var l=u[0],c=u[1];try{a=(0,O.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,O.Tn)(["ElSelect"],(null==t?void 0:t.renderby)||(null==t?void 0:t.metaType))){var h=C.Ct.call(o,d,!0);return min&&(0,C.Xe)(h,min)&&C.cv.call(o,t,min),void(max&&(0,C.MM)(h,max)&&C.cv.call(o,t,max))}try{console.log("event==:",e),a=(0,O.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,O.Qd)(a)){var m,y,g=p()(a);i()(g).call(g,(function(e){if(n[e]=t[e],(0,O.$3)(t,e)||(r=!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 r,n;return F()(r=V()(t).call(t)).call(r)===W.DE.REF_VAL?s:F()(n=V()(t).call(t)).call(n)===W.DE.CURRENT_DATE?(0,O.Yq)(new Date,"yyyy-MM-dd"):e}))}else t[e]=a[e]})),r&&(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 r=f[t];if(e){var n=p()(r);i()(n).call(n,(function(t){e[t]=r[t]}))}}))}}}},setPopup:function(e,t,r){var n,o=e.targetMsg,i=e.targetMsgEn,s=S()(n=this.lang.value).call(n,"zh")>-1?o:i;this.messageInstance.warning(s,"",{showCancelButton:!1})},openThePage:function(e,t,r){var n=e.targetObjVal;n&&window.open(n,"_blank")},setProps:function(e,t,r,n){var o,s=this,l=e.targetObj,c=e.targetObjVal;if(l){var u=a()(o="".concat(r?r+"->":"")).call(o,l),d=this.config,f="";try{f=(0,O.Ho)({extendAttr:c,metaCode:"event setPorps code:".concat(d.metaCode)},null==d?void 0:d.bindValue)}catch(e){f=""}if(delete f.metaCode,(0,O.Qd)(f)){var h=C.Vf.call(this,u),m=[],y=p()(f);return i()(h).call(h,(function(e){var t,r,n=!1,o={};e&&(i()(y).call(y,(function(t){if(o[t]=e[t],(0,O.$3)(e,t)||(n=!0),"string"==typeof f[t]){var r=s.config,i=null==r?void 0:r.bindValue;e[t]=f[t].replace(/\{([^}]+)\}/g,(function(e,t){var r,n;return F()(r=V()(t).call(t)).call(r)===W.DE.REF_VAL?i:F()(n=V()(t).call(t)).call(n)===W.DE.CURRENT_DATE?(0,O.Yq)(new Date,"yyyy-MM-dd"):e}))}else e[t]=f[t]})),m.push(o),n&&(null==e||null===(t=e.wrapVm)||void 0===t||null===(t=t.proxy)||void 0===t||null===(r=t.$forceUpdate)||void 0===r||r.call(t)))})),function(){i()(h).call(h,(function(e,t){var r=m[t];e&&i()(y).call(y,(function(t){e[t]=r[t]}))}))}}}}};function H(e,t,r,n){var o=this;return e=e||[],m()(e).call(e,(function(e){var i=e.eventId,s=q[i];return console.log("evnet===:",s,e),z[s]&&z[s].call(o,e,t,r,n)}))}var G={},Q={};function X(e,t,r){var o=this;if(!r){e=e||[],this.rules=e;var s=this.config,l=s.dynamicHireRelat,u=s.columnId,d=s.id;s.metaCode,e&&e.length&&i()(e).call(e,(function(e){var r,s,h;if(e){var m=e.pmRuleTargetEventVoList,y=e.pmRuleTargetEventVOList,g=e.relId,v=e.tabpanelCode,b=a()(r=a()(s=a()(h="".concat(g,"__")).call(h,u||"")).call(s,d||"","__")).call(r,l);if(D.call(o,e))c()((function(){var r,n;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===(n=Q[b])||void 0===n||i()(n).call(n,(function(e){return e&&clearTimeout(e)})));var s=H.call(o,m||y,t,v,e);G[b]=s}),0);else{var _=p()(G),E=f()(_).call(_,(function(e){var t=e.split("__"),r=(0,n.A)(t,3),o=r[0],i=(r[1],r[2]);if(o==g){if(i===l)return!0;for(var s=Y(i).codes,a=Y(l).codes,c=0;c<a.length;c++){var u=a[c],p=s[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 r=t();r&&(Q[e]||(Q[e]=[]),Q[e].push(r))}})),delete G[e]}))}}}))}}function Y(e){var t,r="",n=m()(t=e.split("->")).call(t,(function(e){var t=null==e?void 0:e.match(/^(\w+)\[(\d+)\]$/);return t?(r+=r?"->".concat(t[1]):t[1],{idx:g()(t[2]),code:t[1]}):(r+=r?"->".concat(e):e,{idx:-1,code:e})}));return{nativeRelat:r,codes:n}}function J(e,t){var r,n,o,s=null===(r=e.dynamicHireRelat)||void 0===r?void 0:r.replace(new RegExp("\\[\\d*\\]->".concat(e.metaCode,"$")),a()(n="[".concat(t,"]->")).call(n,e.metaCode));s!=e.dynamicHireRelat&&i()(o=p()(G)).call(o,(function(t){var r=t.replace(e.dynamicHireRelat,s);r!==t&&(G[r]=G[t],delete G[t])}))}},70392:(e,t,r)=>{r.d(t,{K9:()=>M,jA:()=>k});var n=r(53474),o=r(86226),i=r.n(o),s=r(26327),a=r.n(s),l=r(14166),c=r.n(l),u=r(64007),p=r.n(u),d=r(85569),f=r.n(d),h=r(50697),m=r.n(h),y=r(38048),g=r.n(y),v=r(9665),b=r.n(v),_=r(48079),E=r.n(_),x=r(11393),S=r.n(x),w=r(385),A=r.n(w),T=(r(44114),r(23288),r(79432),r(27495),r(90906),r(71761),r(25440),r(30679)),P=r(85352),C=r(17427),O=r(75286),I=((0,n.A)(P.Lu),{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"}),k={},D={setDefaultValue:function(e){var t=e.event,r=e.rootValue,n=e.mapComp,o=e.route,i=e.lang,s=e.currentPath,a=(e.isInit,t.targetObj),l=t.targetObjVal;if(a){var c,u="".concat(a),p=/^_replace:/.test(l);p&&(l=function(e,t){var r=t.currentPath,n=t.rootValue,o=t.lang,i=t.route;return null==e?void 0:e.replace(/\$\{([^}]+)\}/g,(function(e,t,s){var a,l,c=null,u=null===(a=t)||void 0===a||null===(l=a.match)||void 0===l?void 0:l.call(a,/^_absoluteTarget:(.+)$/);if(t===P.DE.REF_VAL){var p=(0,C.V9)((0,O.unref)(n),r,"->");t=null!=p?p:""}else if(t===P.DE.CURRENT_DATE)t=(0,C.Yq)(new Date,"yyyy-MM-dd");else if(c=t.match(/^_route:(.*)$/)){var d=c[1],f=null==i?void 0:i.query;t=null==f?void 0:f[d]}else if("string"==typeof t&&/^_lang$/.test(t))t=o;else if(null!=u&&u[1])t=(0,C.V9)((0,O.unref)(n),u[1],"->")||"";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===(c=l)||void 0===c?void 0:c.replace(/^_replace:/,""),{currentPath:s,rootValue:r,lang:i,route:o,dynamicMapComp}));var d="";try{d=JSON.parse(l)}catch(e){d=l||""}if("number"==typeof d&&(d="".concat(d)),p);else if(d===P.DE.REF_VAL){var f=(0,C.V9)((0,O.unref)(r),s,"->");d=null!=f?f:""}else if(d===P.DE.CURRENT_DATE)d=(0,C.Yq)(new Date,"yyyy-MM-dd");else{var h,m,y=null,g=null===(h=d)||void 0===h||null===(m=h.match)||void 0===m?void 0:m.call(h,/^_absoluteTarget:(.+)$/);if("string"==typeof d&&(y=d.match(/^_route:(.*)$/))){var v=y[1],b=null==o?void 0:o.query;d=null==b?void 0:b[v]}else if("string"==typeof d&&/^_lang$/.test(d))d=i;else if("string"==typeof d&&null!=g&&g[1])d=(0,C.V9)((0,O.unref)(r),g[1],"->")||"";else{var _,E,x=null===(_=d)||void 0===_||null===(E=_.match)||void 0===E?void 0:E.call(_,/^_assgin:(.*)$/);if(x)d=null==x?void 0:x[1];else{var S=(0,T.Ct)((0,O.unref)(r),u,s);(S||"0"==S)&&(d=S)}}}(0,T.cv)(u,d,n,r,s)}},setClear:function(e){var t=e.event,r=e.rootValue,n=e.mapComp,o=e.currentPath;if(!e.isInit){var i=t.targetObj;if(i){var s="".concat(i);(0,T.cv)(s,"",n,r,o)}}},setDisable:function(e){var t=e.event,r=(e.rootValue,e.mapComp,e.dynamicMapComp),n=e.currentPath,o=(e.isInit,t.targetObj);if(o){var s,a="".concat(o);return s=(0,T.Vf)({codesStr:a,dynamicMapComp:r,currentPath:n}),i()(s).call(s,(function(e){e&&(e.editFlag="0")})),function(){i()(s).call(s,(function(e){e&&(e.editFlag="1")}))}}},setDisableNotEffect:function(e){var t=e.event,r=(e.rootValue,e.mapComp,e.dynamicMapComp),n=e.currentPath,o=(e.isInit,t.targetObj);if(o){var s="".concat(o),a=(0,T.Vf)({codesStr:s,dynamicMapComp:r,currentPath:n});return i()(a).call(a,(function(e){(0,C.$3)(e,"_originEditFlag")||(e._originEditFlag=e.editFlag),e&&(e.editFlag="0")})),function(){i()(a).call(a,(function(e,t){e&&(e.editFlag=e._originEditFlag)}))}}},setRequired:function(e){var t=e.event,r=(e.rootValue,e.mapComp,e.dynamicMapComp),n=e.currentPath,o=(e.isInit,t.targetObj);if(o){var s="".concat(o),l=(0,T.Vf)({codesStr:s,dynamicMapComp:r,currentPath:n});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){if(e&&(e.requiredFlag="0"),e.isColumn){var t,r,n=(null==e||null===(t=e.parent)||void 0===t?void 0:t.pmPageMetaList)||[],o=(null==e||null===(r=e.parent)||void 0===r?void 0:r.multiPmPageMetaList)||[],i=null==n?void 0:a()(n).call(n,(function(t){return t.metaCode===e.metaCode}));null!=o&&c()(o).call(o,(function(e){var t;return"0"==(null===(t=e[i])||void 0===t?void 0:t.requiredFlag)}))&&e&&e.refConfig&&(e.refConfig.requiredFlag="0")}else e&&e.refConfig&&(e.refConfig.requiredFlag="0")}))}}},setRequiredNotEffect:function(e){var t=e.event,r=(e.rootValue,e.mapComp,e.dynamicMapComp),n=e.currentPath,o=(e.isInit,t.targetObj);if(o){var s="".concat(o),l=(0,T.Vf)({codesStr:s,dynamicMapComp:r,currentPath:n});return i()(l).call(l,(function(e){(0,C.$3)(e,"_originRequiredFlag")||(e._originRequiredFlag=e.requiredFlag),e&&(e.requiredFlag="1"),e&&e.refConfig&&(e.refConfig.requiredFlag="1")})),function(){i()(l).call(l,(function(e,t){if(e&&(e.requiredFlag=e._originRequiredFlag),e.isColumn){if("0"==e._originRequiredFlag){var r,n,o=(null==e||null===(r=e.parent)||void 0===r?void 0:r.pmPageMetaList)||[],i=(null==e||null===(n=e.parent)||void 0===n?void 0:n.multiPmPageMetaList)||[],s=null==o?void 0:a()(o).call(o,(function(t){return t.metaCode===e.metaCode}));null!=i&&c()(i).call(i,(function(e){var t;return"0"==(null===(t=e[s])||void 0===t?void 0:t.requiredFlag)}))&&e&&e.refConfig&&(e.refConfig.requiredFlag=e._originRequiredFlag)}}else"0"==e._originRequiredFlag&&e&&e.refConfig&&(e.refConfig.requiredFlag=e._originRequiredFlag)}))}}},setHidden:function(e){var t=e.event,r=(e.rootValue,e.mapComp,e.dynamicMapComp),n=e.currentPath,o=(e.isInit,e.relIdKey,t.targetObj);if(o){var s,a="".concat(o);return s=(0,T.Vf)({codesStr:a,dynamicMapComp:r,currentPath:n}),i()(s).call(s,(function(e){e&&(e.hidden="1"),e&&e.refConfig&&(e.refConfig.hidden="1")})),function(){i()(s).call(s,(function(e,t){e&&(e.hidden="0"),e&&e.refConfig&&(e.refConfig.hidden="0")}))}}},setShow:function(e){var t=e.event,r=(e.rootValue,e.mapComp,e.dynamicMapComp),n=e.currentPath,o=(e.isInit,t.targetObj);if(o){var s="".concat(o),a=(0,T.Vf)({codesStr:s,dynamicMapComp:r,currentPath:n});return i()(a).call(a,(function(e){e&&(e.hidden="0"),e&&e.refConfig&&(e.refConfig.hidden="0")})),function(){i()(a).call(a,(function(e,t){e&&(e.hidden="1"),e&&e.refConfig&&(e.refConfig.hidden="1")}))}}},setNoRequired:function(e){var t=e.event,r=(e.rootValue,e.mapComp,e.dynamicMapComp),n=e.currentPath,o=(e.isInit,t.targetObj);if(o){var s="".concat(o),l=(0,T.Vf)({codesStr:s,dynamicMapComp:r,currentPath:n}),u=[];return i()(l).call(l,(function(e){if(e&&"0"!=e.requiredFlag){if(e&&(e.requiredFlag="0"),e.isColumn){var t,r,n=(null==e||null===(t=e.parent)||void 0===t?void 0:t.pmPageMetaList)||[],o=(null==e||null===(r=e.parent)||void 0===r?void 0:r.multiPmPageMetaList)||[],i=null==n?void 0:a()(n).call(n,(function(t){return t.metaCode===e.metaCode}));null!=o&&c()(o).call(o,(function(e){var t;return"0"==(null===(t=e[i])||void 0===t?void 0:t.requiredFlag)}))&&e&&e.refConfig&&(e.refConfig.requiredFlag="0")}else e&&e.refConfig&&(e.refConfig.requiredFlag="0");u.push((function(){e&&(e.requiredFlag="1"),e&&e.refConfig&&(e.refConfig.requiredFlag="1")}))}})),function(){i()(u).call(u,(function(e){return e()}))}}},setNoRequiredNotEffect:function(e){var t=e.event,r=(e.rootValue,e.mapComp,e.dynamicMapComp),n=e.currentPath,o=(e.isInit,t.targetObj);if(o){var s="".concat(o),l=(0,T.Vf)({codesStr:s,dynamicMapComp:r,currentPath:n}),u=[];return i()(l).call(l,(function(e){if(e&&"0"!=e.requiredFlag){if((0,C.$3)(e,"_originRequiredFlag")||(e._originRequiredFlag=e.requiredFlag),e&&(e.requiredFlag="0"),e.isColumn){var t,r,n=(null==e||null===(t=e.parent)||void 0===t?void 0:t.pmPageMetaList)||[],o=(null==e||null===(r=e.parent)||void 0===r?void 0:r.multiPmPageMetaList)||[],i=null==n?void 0:a()(n).call(n,(function(t){return t.metaCode===e.metaCode}));null!=o&&c()(o).call(o,(function(e){var t;return"0"==(null===(t=e[i])||void 0===t?void 0:t.requiredFlag)}))&&e&&e.refConfig&&(e.refConfig.requiredFlag="0")}else e&&e.refConfig&&(e.refConfig.requiredFlag="0");u.push((function(){if(e&&(e.requiredFlag=e._originRequiredFlag),"0"==e._originRequiredFlag)if(e.isColumn){var t,r,n=(null==e||null===(t=e.parent)||void 0===t?void 0:t.pmPageMetaList)||[],o=(null==e||null===(r=e.parent)||void 0===r?void 0:r.multiPmPageMetaList)||[],i=null==n?void 0:a()(n).call(n,(function(t){return t.metaCode===e.metaCode}));null!=o&&c()(o).call(o,(function(e){var t;return"0"==(null===(t=e[i])||void 0===t?void 0:t.requiredFlag)}))&&e&&e.refConfig&&(e.refConfig.requiredFlag=e._originRequiredFlag)}else e&&e.refConfig&&(e.refConfig.requiredFlag=e._originRequiredFlag);else e&&e.refConfig&&(e.refConfig.requiredFlag=e._originRequiredFlag)}))}})),function(){i()(u).call(u,(function(e){return e()}))}}},setNoDisable:function(e){var t=e.event,r=(e.rootValue,e.mapComp,e.dynamicMapComp),n=e.currentPath,o=(e.isInit,t.targetObj);if(o){var s="".concat(o),a=(0,T.Vf)({codesStr:s,dynamicMapComp:r,currentPath:n}),l=[];return i()(a).call(a,(function(e){"1"!=(null==e?void 0:e.editFlag)&&(e&&(e.editFlag="1"),l.push((function(){e&&(e.editFlag="0")})))})),function(){i()(l).call(l,(function(e){return e()}))}}},setNoDisableNotEffect:function(e){var t=e.event,r=(e.rootValue,e.mapComp,e.dynamicMapComp),n=e.currentPath,o=(e.isInit,t.targetObj);if(o){var s="".concat(o),a=(0,T.Vf)({codesStr:s,dynamicMapComp:r,currentPath:n}),l=[];return i()(a).call(a,(function(e){(0,C.$3)(e,"_originEditFlag")||(e._originEditFlag=e.editFlag),e&&(e.editFlag="1"),l.push((function(){e&&(e.editFlag=e._originEditFlag)}))})),function(){i()(l).call(l,(function(e){return e()}))}}},limitDataRange:function(e){var t=e.event,r=e.rootValue,n=(e.mapComp,e.dynamicMapComp),o=e.currentPath,s=(e.messageInstance,e.isInit,t.targetObj),a=t.targetObjVal,l=void 0===a?"":a;if(s){var c,u="".concat(s),d=[];if((l=l||"")&&(d=(null===(c=l)||void 0===c?void 0:p()(c).call(c,"~"))>-1?l.split("~"):l.split(",")),d&&d.length){var h=(0,T.Vf)({codesStr:u,dynamicMapComp:n,currentPath:o});return i()(h).call(h,(function(e){var n=!1,s={};if(e._eventLimitDataRageCbProps=s,e){var a="";if(-1!==(0,C.Tn)(["ElDatePicker"],(null==e?void 0:e.renderby)||(null==e?void 0:e.metaType))){var l=d[0],c=d[1];try{a=(0,C.Ho)({extendAttr:f()({min:l,max:c}),metaCode:"event setPorps code, target path: ".concat(o)},(0,C.V9)((0,O.unref)(r),o,"->"))}catch(e){a=""}}else{if(-1===(0,C.Tn)(["ElSelect"],(null==e?void 0:e.renderby)||(null==e?void 0:e.metaType))){var u=(0,C.V9)((0,O.unref)(r),e.dynamicHireRelat,"->");return min&&(0,T.Xe)(u,min)&&(0,C.oY)(r,e.dynamicHireRelat,min,"->"),void(max&&(0,T.MM)(u,max)&&(0,C.oY)(r,e.dynamicHireRelat,max,"->"))}try{console.log("event==:",t),a=(0,C.Ho)({extendAttr:f()({rangeOptions:d}),metaCode:"event setPorps code, target path: ".concat(o)},(0,C.V9)((0,O.unref)(r),o,"->"))}catch(e){a=""}}if(delete a.metaCode,(0,C.Qd)(a)){var p,h,y=m()(a);i()(y).call(y,(function(t){if(s[t]=e[t],(0,C.$3)(e,t)||(n=!0),"string"==typeof a[t]){var i=(0,C.V9)((0,O.unref)(r),o,"->");e[t]=a[t].replace(/\{([^}]+)\}/g,(function(e,t){var r,n;return g()(r=b()(t).call(t)).call(r)===P.DE.REF_VAL?i:g()(n=b()(t).call(t)).call(n)===P.DE.CURRENT_DATE?(0,C.Yq)(new Date,"yyyy-MM-dd"):e}))}else e[t]=a[t]})),n&&(null==e||null===(p=e.wrapVm)||void 0===p||null===(p=p.proxy)||void 0===p||null===(h=p.$forceUpdate)||void 0===h||h.call(p))}}})),function(){i()(h).call(h,(function(e,t){var r=e._eventLimitDataRageCbProps;if(e){var n=m()(r);i()(n).call(n,(function(t){e[t]=r[t]}))}}))}}}},setPopup:function(e){var t=e.event,r=(e.rootValue,e.lang),n=(e.mapComp,e.dynamicMapComp,e.currentPath,e.isInit,t.targetMsg),o=t.targetMsgEn,i=(null==r?void 0:p()(r).call(r,"zh"))>-1?n:o;messageInstance.warning(i,"",{showCancelButton:!1})},openThePage:function(e){var t=e.event,r=(e.rootValue,e.mapComp,e.dynamicMapComp,e.currentPath,e.messageInstance,e.isInit,t.targetObjVal);r&&window.open(r,"_blank")},setProps:function(e){var t=e.event,r=e.rootValue,n=(e.mapComp,e.dynamicMapComp),o=e.currentPath,s=(e.messageInstance,e.isInit,t.targetObj),a=t.targetObjVal;if(s){var l="".concat(s),c=(0,T.Vf)({codesStr:l,dynamicMapComp:n,currentPath:o}),u="";try{u=(0,C.Ho)({extendAttr:a,metaCode:"event setPorps code, target path: ".concat(o)},(0,C.V9)((0,O.unref)(r),o,"->"))}catch(e){u=""}if(delete u.metaCode,(0,C.Qd)(u)){var p=m()(u);return i()(c).call(c,(function(e){var t,n,s=!1,a={};e._eventSetPropsCbProps=a,e&&(i()(p).call(p,(function(t){if(a[t]=e[t],(0,C.$3)(e,t)||(s=!0),"string"==typeof u[t]){var n=(0,C.V9)((0,O.unref)(r),o,"->");e[t]=u[t].replace(/\{([^}]+)\}/g,(function(e,t){var r,o;return g()(r=b()(t).call(t)).call(r)===P.DE.REF_VAL?n:g()(o=b()(t).call(t)).call(o)===P.DE.CURRENT_DATE?(0,C.Yq)(new Date,"yyyy-MM-dd"):e}))}else e[t]=u[t]})),s&&(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()(c).call(c,(function(e,t){var r=e._eventSetPropsCbProps;e&&i()(p).call(p,(function(t){e[t]=r[t]}))}))}}}}};function M(e){var t=e.events,r=e.rootValue,n=e.mapComp,o=e.dynamicMapComp,i=e.route,s=e.lang,l=e.currentPath,c=e.isInit,u=e.rule,p=e.messageInstance,d=e.relIdKey;return t=t||[],E()(t).call(t,(function(e){var t=e.eventId,f=I[t],h=D[f]&&D[f]({event:e,rootValue:r,mapComp:n,dynamicMapComp:o,route:i,lang:s,currentPath:l,isInit:c,rule:u,messageInstance:p,relIdKey:d}),m={recoverCb:null};if(h){var y,g,v=e.targetObj;!k[v]&&(k[v]=[]);var b,_=S()(y="".concat(d,"_")).call(y,f),E=a()(g=k[v]).call(g,(function(e){return e.id===_}));E>-1&&A()(b=k[v]).call(b,E,1),k[v].push({id:_,currentPath:l,action:function(){h=D[f]&&D[f]({event:e,rootValue:r,mapComp:n,dynamicMapComp:o,route:i,lang:s,currentPath:l,isInit:c,rule:u,messageInstance:p,relIdKey:d})}}),m.recoverCb=function(){var e,t;null===(e=h)||void 0===e||e();var r,n=a()(t=k[v]).call(t,(function(e){return e.id===_}));n>-1&&A()(r=k[v]).call(r,n,1)}}else m.recoverCb=h;return m}))}},30679:(e,t,r)=>{r.d(t,{Ct:()=>v,MM:()=>E,Vf:()=>w,Xe:()=>x,cv:()=>b});var n=r(385),o=r.n(n),i=r(18979),s=r.n(i),a=r(48079),l=r.n(a),c=(r(36586),r(11393)),u=r.n(c),p=(r(31721),r(86226),r(71426),r(8628),r(73363)),d=r.n(p),f=r(96319),h=r.n(f),m=r(50697),y=r.n(m),g=(r(66615),r(48598),r(44114),r(13609),r(2892),r(84864),r(57465),r(27495),r(87745),r(90906),r(38781),r(71761),r(25440),r(17427));function v(e,t,r){if(t===r)return(0,g.V9)(e,t,"->");var n,i=r,s=/(__@__[^(->)]*__)$/,a=null==r?void 0:r.match(s);a&&(a[1],i=null===(n=i)||void 0===n?void 0:n.replace(s,""));for(var l=i?i.split("->"):[],c=t?t.split("->"):[],u=-1,p=0;-1===u&&p<c.length&&p<l.length;){var d=c[p],f=new RegExp("^".concat(d,"(\\[\\d+\\])?$")),h=l[p];f.test(h)?(o()(c).call(c,p,1,h),p++):u=p}var m=c.join("->");return(0,g.V9)(e,m,"->")}function b(e,t,r,n,i){if(e){for(var a=[],l=e;l;){var c=r[l];if(c){a.unshift(c);var u=l.replace(/->\w*$/,"");l=u===l?"":u}else a=[],l=""}if(a&&a.length){for(var p=i?i.split("->"):[],d=e?e.split("->"):[],f=-1,h=0;-1===f&&h<d.length&&h<p.length;){var m=d[h],y=new RegExp("^".concat(m,"(\\[\\d+\\])?$")),v=p[h];y.test(v)?(o()(d).call(d,h,1,v),h++):f=h}var b=null;(b=-1!==f?_(s()(a).call(a,f),0,s()(d).call(d,0,f).join("->")):d.join("->"))&&(0,g.oY)(n,b,t,"->")}}}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!e||!e.length)return null;var n=e[t];if(r+=r?"->".concat(n.metaCode):n.metaCode,e.length===t+1)return r;var o=r;return(0,g.jG)(n)&&(o="".concat(r,"[_all]")),_(e,++t,o)}function E(e,t){var r=S(e),n=S(t);return r&&n?Number(e)>Number(t):e+"">t+""}function x(e,t){var r=S(e),n=S(t);return r&&n?Number(e)<Number(t):e+""<t+""}function S(e){return!isNaN(Number(e))}function w(e){var t=e.codesStr,r=e.dynamicMapComp,n=e.currentPath;if(!t)return null;var i=function(e){var t=e.codesStr,r=e.dynamicMapComp,n=e.currentPath,i=t,s=function(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",s=i,a="",l=/(__@__[^(->)]*__)$/,c=null==i?void 0:i.match(l);c&&(a=c[1],s=null===(t=s)||void 0===t?void 0:t.replace(l,""));for(var p=s?s.split("->"):[],f=n?n.split("->"):[],m=-1,y=0;-1===m&&y<f.length&&y<p.length;){var g=f[y],v=new RegExp("^".concat(g,"(\\[\\d+\\])?$")),b=p[y];v.test(b)?(o()(f).call(f,y,1,b),y++):m=y}var _=d()(f).call(f,(function(e,t){var r=t.replace(/([\[\]]{1})/g,(function(e,t){return"\\".concat(t)}));return e+(e?"->".concat(r,"(\\[\\d+\\])?"):"".concat(r,"(\\[\\d+\\])?"))}),""),E=new RegExp(u()(e="^".concat(_)).call(e,a,"$"));return h()(r).call(r,(function(e){return E.test(e)}))}(y()(r||{}),i,n);return s}({codesStr:t,dynamicMapComp:r,currentPath:n});return l()(i).call(i,(function(e){return r[e]}))}r(71835)},48618:(e,t,r)=>{r.d(t,{$3:()=>ye,$N:()=>be,CQ:()=>Le,Dg:()=>Ce,E1:()=>pe,Ij:()=>Ae,M6:()=>ie,Oe:()=>xe,PT:()=>le,Qd:()=>ge,Tn:()=>ue,Ts:()=>Pe,V9:()=>ke,Vv:()=>_e,X$:()=>Ee,Yq:()=>ve,ZH:()=>ce,bO:()=>fe,fN:()=>Te,fz:()=>de,iF:()=>Oe,lk:()=>je,mg:()=>Q.A,oY:()=>Me,pp:()=>we,q2:()=>X.A,ro:()=>he,sg:()=>G.A,vr:()=>se,yL:()=>Se});var n=r(38008),o=r(53811),i=r(7252),s=r(53474),a=r(22204),l=(r(16280),r(76918),r(48598),r(44114),r(54743),r(11745),r(38309),r(16573),r(78100),r(77936),r(23288),r(2892),r(9868),r(79432),r(26099),r(84864),r(57465),r(27495),r(87745),r(90906),r(38781),r(71761),r(25440),r(90744),r(50375),r(21489),r(48140),r(81630),r(72170),r(75044),r(69539),r(31694),r(89955),r(21903),r(91134),r(33206),r(44496),r(66651),r(12887),r(19369),r(66812),r(8995),r(31575),r(36072),r(88747),r(28845),r(29423),r(57301),r(373),r(86614),r(41405),r(37467),r(44732),r(33684),r(79577),r(27681)),c=r.n(l),u=r(71426),p=r.n(u),d=r(27124),f=r.n(d),h=r(36586),m=r.n(h),y=r(18979),g=r.n(y),v=r(73363),b=r.n(v),_=r(86226),E=r.n(_),x=r(50697),S=r.n(x),w=(r(43981),r(11393)),A=r.n(w),T=r(66615),P=r.n(T),C=r(11265),O=r.n(C),I=r(48079),k=r.n(I),D=r(53930),M=r.n(D),j=r(87842),N=r.n(j),L=r(59261),R=r.n(L),B=r(74707),F=r.n(B),U=r(165),V=r.n(U),W=r(78010),$=r.n(W),K=r(82895),q=r.n(K),z=r(80668),H=r.n(z),G=r(12223),Q=r(88592),X=r(14835),Y=r(36380),J=r(92049),Z=r(46996),ee=r(10565),te=r(66401),re=r(12935),ne=r(75286);function oe(e){var t=c()(null);return function(r){return t[r]||(t[r]=e(r))}}function ie(e){if(!e)return null;var t=Number(e);if(isNaN(t)){var r=["px","%","vh","vw","rem","em"],n=p()(r).call(r,(function(t){return null==e?void 0:f()(e).call(e,t)}));return n?m()(e)+n:null}return t+"px"}function se(e){var t=(0,a.A)(e);return"undefined"===t||"boolean"===t||"number"===t||"string"===t||"symbol"===t||"bigint"===t}var ae=/-(\w)/g,le=oe((function(e){return e.replace(ae,(function(e,t){return t?t.toUpperCase():""}))})),ce=oe((function(e){return e.charAt(0).toUpperCase()+g()(e).call(e,1)}));function ue(e,t){var r=de(b()(e).call(e,(function(e,t,r){return e[t]=r,e}),{}),t);return null==r?-1:r}function pe(e,t){return-1!==ue(e,null==t?void 0:t.renderby)||-1!==ue(e,null==t?void 0:t.metaType)}function de(e,t){if("string"!=typeof t)return null;var r=e;if(void 0!==r[t]&&null!==r[t])return r[t];var n=le(t);if(void 0!==r[n]&&null!==r[n])return r[n];var o=ce(n);return void 0!==r[o]&&null!==r[o]?r[o]:null}function fe(e){return"string"!=typeof e?e:ce(le(e))}function he(e,t){return"string"==typeof e&&"string"==typeof t&&ce(le(e))===ce(le(t))}var me=Object.prototype.hasOwnProperty;function ye(e,t){return me.call(e,t)}function ge(e){return"[object Object]"===Object.prototype.toString.call(e)&&null!=e}function ve(e,t){var r;if(!e)return"";(0,re.$P)(e)||(e=new Date(e)),/(y+)/.test(t)&&(t=t.replace(RegExp.$1,"".concat(e.getFullYear()).substr(4-RegExp.$1.length)));var n={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds()};return E()(r=S()(n)).call(r,(function(e){var r="".concat(n[e]);new RegExp("(".concat(e,")")).test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?r:function(e){return"00".concat(e).substr(e.length)}(r)))})),t}function be(e,t,r){if(!t)return e;if(!e)return t;var n=(0,Y.A)(e,t,(function(e,t){if(!t)return e;if(!e)return t;if((0,J.A)(t)&&(0,J.A)(e))switch(r){case"union":return(0,X.A)(e,t,Z.A);case"intersection":return(0,ee.A)(e,t,Z.A);case"concat":return A()(e).call(e,t);case"replace":return t;default:throw new Error("Unknown merge array strategy: ".concat(r))}return ge(t)&&ge(e)?be(e,t,r):t}));if(P()(e)&&n&&!P()(n)){var o,i=[];E()(o=S()(n)).call(o,(function(e){i[e]=n[e]})),n=i}return n}function _e(e,t){var r=t;if("object"===(0,a.A)(e)&&"object"===(0,a.A)(t)&&(r=(0,Y.A)(e,t,(function(e,t){if((0,J.A)(e)&&(0,J.A)(t)){for(var r=[],n=0;n<e.length&&n<t.length;n++)r.push(_e(e[n],t[n]));return n<e.length?r.push.apply(r,(0,s.A)(g()(e).call(e,n))):r.push.apply(r,(0,s.A)(g()(t).call(t,n))),r}return ge(t)&&ge(e)?_e(e,t):t}))),P()(e)&&r&&!P()(r)){var n,o=[];E()(n=S()(r)).call(n,(function(e){o[e]=r[e]})),r=o}return r}function Ee(e,t,r){for(var n in t)r&&ye(e,n)||(e[n]=t[n]);return e}function xe(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 Se(e){return e&&"function"==typeof e.then}function we(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,i.A)(Date,t)}function Ae(){var e;return A()(e="".concat(ve(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(r){var n=16*Math.random();return e>0?(n=(e+n)%16|0,e=Math.floor(e/16)):(n=(t+n)%16|0,t=Math.floor(t/16)),("x"===r?n:3&n|8).toString(16)}))}())}function Te(e,t){var r,n,o,i=e.referenceOptions,s=e.selectKey,a=[];try{var l;a=k()(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===(r=t.value)||void 0===r?void 0:r[s])||(null==t?void 0:t.value)&&(null==t||null===(n=t.value)||void 0===n?void 0:n["".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 Pe(e,t,r,n){e[t]=r;var i=n||{};M()(e,t,(0,o.A)({value:r,writable:!0,enumerable:!1,configurable:!0},i))}function Ce(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new(N());if(null===e||"object"!==(0,a.A)(e))switch((0,a.A)(e)){case"string":case"number":return"";default:return null}if(n.has(e))return n.get(e);if(P()(e))t=[],n.set(e,t),(r=t).push.apply(r,(0,s.A)(k()(e).call(e,(function(e){return Ce(e,n)}))));else if(e instanceof Date)t=null;else if(e instanceof R())t=new(R());else if(e instanceof F())t=new(F());else{t={},n.set(e,t);for(var o=0,i=S()(e);o<i.length;o++){var l=i[o],c=Ce(e[l],n);null!=c&&(t[l]=c)}}return t}function Oe(e){var t;if(null==e)return"NaN";var r=O()(t=String(e)).call(t).match(/^[+-]?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/);if(!r)return"NaN";var o=r[0];return/e/i.test(o)&&(o=function(e){var t=e.split(/e/gi),r=(0,n.A)(t,2),o=r[0],i=r[1],s=i?m()(i,10):0,a=o.split("."),l=(0,n.A)(a,2),c=l[0],u=l[1],p=void 0===u?"":u,d=V()(c).call(c,"-");d&&(c=g()(c).call(c,1));var f=c+p,h=c.length+s;return h>=f.length?(d?"-":"")+f+$()("0").call("0",h-f.length):h<=0?(d?"-":"")+"0."+$()("0").call("0",-h)+f:(d?"-":"")+g()(f).call(f,0,h)+(g()(f).call(f,h)?"."+g()(f).call(f,h):"")}(o)),function(e){if(""===e)return"0";var t=V()(e).call(e,"-"),r=(t?g()(e).call(e,1):e).split("."),o=(0,n.A)(r,2),i=o[0],s=o[1],a="";return a+=t?"-":"",a+=i=i.replace(/^0+/,"")||"0",a+=(s=(s||"").replace(/0+$/,""))?"."+s:"",V()(a).call(a,".")&&(a="0"+a),V()(a).call(a,"-.")&&(a="-0"+g()(a).call(a,1)),a}(o)}var Ie=/^([-\w]+)\[(\d+)\]/;function ke(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",o=r;return"string"==typeof r&&(o=r.split(n)),null!==(e=b()(o).call(o,(function(e,t){if(e){var r,n=t.match(Ie);return n?null===(r=e[n[1]])||void 0===r?void 0:r[n[2]]:e[t]}return null}),t))&&void 0!==e?e:""}var De=/^([-\w]+)\[(_all|\d+)\]/;function Me(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".";if(t&&e){var o=e;(0,ne.isRef)(e)&&(o=e.value);var i=t;if("string"==typeof i&&(i=t.split(n)),i&&i.length){for(var s=o,a=function(e){var t=i[e];if(e===i.length-1)s[t]=r;else{var n=t,o=!1,a=t.match(De);a&&(n=a[1],o=!0),!s[n]&&(s[n]=o?[]:{});var l=s[n];if(a){var c;if("_all"===a[2])return null===(c=l)||void 0===c||E()(c).call(c,(function(t){Me(t,g()(i).call(i,e+1),r)})),1;var u=m()(a[2]);q()(u)||(!l[u]&&(l[u]={}),l=l[u])}s=l}},l=0;l<i.length&&!a(l);l++);(0,ne.isRef)(e)&&(e.value=o)}}}function je(e){var t=e.target;if(t.childNodes.length){var r=document.createRange();r.setStart(t,0),r.setEnd(t,t.childNodes.length);var n=r.getBoundingClientRect(),o=n.width,i=n.height,s=o-Math.floor(o),a=t.getBoundingClientRect(),l=a.width,c=a.height;l=Math.ceil(l),s<.001&&(o=Math.floor(o)),i-Math.floor(i)<.001&&(i=Math.floor(i));var u,p,d=(u=t,p=window.getComputedStyle(u,null),{left:H()(p.paddingLeft,10)||0,right:H()(p.paddingRight,10)||0,top:H()(p.paddingTop,10)||0,bottom:H()(p.paddingBottom,10)||0}),f=d.top+d.bottom,h={};return(Ne(o+(d.left+d.right),l)||Ne(i+f,c)||Ne(t.scrollWidth,l))&&(h.overflow=!0,h.content=t.innerText||t.textContent),h}}function Ne(e,t){return e-t>(arguments.length>2&&void 0!==arguments[2]?arguments[2]:.01)}function Le(e){return(0,J.A)(e)?(0,te.A)(e)?"":e.join(","):e}},85352:(e,t,r)=>{r.d(t,{AP:()=>M,Bs:()=>x,DE:()=>c,E0:()=>v,K4:()=>u,LX:()=>b,Lu:()=>_,MD:()=>S,Op:()=>P,R_:()=>m,UP:()=>y,V6:()=>E,Xj:()=>I,aX:()=>A,dK:()=>D,fH:()=>T,g:()=>l,jK:()=>p,jf:()=>g,of:()=>h,pL:()=>w,s1:()=>j,ue:()=>O,un:()=>f,yD:()=>C,yz:()=>k});var n=r(64007),o=r.n(n),i=r(11393),s=r.n(i),a=(r(2892),r(48618)),l={OPERATE:"operate",DETAIL:"detail",LOG:"log"},c={CURRENT_DATE:"_currentDate",CURRENT_DATE_EXCLUDE:"_currentDateExclude",CURRENT_DATE_TIME:"_currentDateTime",REF_VAL:"_refVal"},u={LIST:"list",OBJECT:"object",STRING:"string"},p=["CustomComponentTableH5"],d=["CustomComponentTabs","CustomComponentTabPane","CustomComponentCycleTabPane","CustomComponentCollapse","CustomComponentTabPaneH5"],f="CustomComponentFormLayout",h="CustomComponentFormLayoutH5",m=["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"],y=["ElInput","ElButton","CmiInput","CmiButton","ElText"],g=["CmiInput","CmiSelect","CmiPicker"],v=["CustomComponentCycle","CustomComponentCycleTabPane","CustomComponentTable"],b=["CustomComponentTabPane","CustomComponentDialog","CustomComponentCol","CustomComponentTabPaneH5"],_=["CustomComponentTable"],E=["el-select","el-date-picker","el-time-picker","el-time-select","el-cascader","el-input-number","CustomComponentTree","CustomComponentSteps"],x=["el-span"],S="el-",w="t-",A="cmi-",T="H5-",P="0",C=["ElText"],O=["ElInput","ElDatePicker","ElInputNumber"],I=["ElSelect"],k={compInfo:{type:Object,getValue:function(e,t,r){return e}},modelValue:{type:[String,Number,Object,Array,Boolean,void 0,null],getValue:function(e,t,r){return r.value}},config:{type:Object,getValue:function(e,t,r){return e}},refValue:{type:[Object,Number,String],default:"",getValue:function(e,t,r){return r}},disabled:{type:Boolean,default:!1,getValue:function(e,t,r){return M(e,t.mode)}},clearable:{type:Boolean,default:!1,getValue:function(e,t,r){return"1"==e.clearableFlag}},required:{type:Boolean,default:!1,getValue:function(e,t,r){return"1"==e.requiredFlag}},hidden:{type:Boolean,default:!1,getValue:function(e,t,r){return D({config:e})}},onlyRequiredFlag:{type:[Boolean,String,Number],default:!1,getValue:function(e,t,r){return e.onlyRequiredFlag}},tableData:{type:Array,default:function(){return[]},getValue:function(e,t,r){return t.tableData}},rowScope:{type:Object,getValue:function(e,t,r){return t.rowScope}},width:{type:[String,Number],default:"",getValue:function(e,t,r){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,r,n){return(0,a.fN)(e,n)}},placeholder:{type:String,default:function(){return""},getValue:function(e,t,r,n,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,r,n,o){return e.defPlaceholdEn}}};function D(e){var t=e.config;return"boolean"==typeof t.hidden&&t.hidden||"1"==t.hidden||"1"==t.collapseHidden}function M(e,t){var r,n;return!(0,a.E1)(["CustomComponentTabs"],e)&&(t===l.LOG?!e.logAlong&&!(0,a.E1)(s()(r=[f]).call(r,d),e)||"0"==e.editFlag:t===l.DETAIL&&!e.detailAlong&&!(0,a.E1)(s()(n=[f]).call(n,d),e)||"0"==e.editFlag)}var j={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=k)},71835:(e,t,r)=>{r.d(t,{A:()=>b,l:()=>_}),r(48598),r(23288),r(79432),r(27495),r(90906),r(71761),r(90744);var n=r(11265),o=r.n(n),i=r(8628),s=r.n(i),a=r(11393),l=r.n(a),c=r(57119),u=r.n(c),p=r(73363),d=r.n(p),f=r(75286),h=r(48618),m=r(85352),y=r(12935),g=r(74353),v=r.n(g);function b(e){if((e.defaultVal||e.defaultValue)&&!e.bindValue&&0!==e.bindValue&&(!(0,y.cy)(e.bindValue)||!e.bindValue.length)){var t=e.defaultVal||e.defaultValue,r=null;try{var n,i;if("string"==typeof t){var a=o()(t).call(t),c=null;if(c=a.match(/^_route:(.*)$/)){var u,p=c[1],d=null==e||null===(u=e.route)||void 0===u?void 0:u.query;r=null==d?void 0:d[p]}else if(c=a.match(/^_native:(.*)$/))r=c[1];else if(/^_lang$/.test(a))r=null==e?void 0:e._lang;else if(/^{[\w\W]*}$/.test(a)||/^\[[\w\W]*\]$/.test(a))r=JSON.parse(a);else{var g,b,E=[m.DE.CURRENT_DATE,"currentDate",m.DE.CURRENT_DATE_TIME,m.DE.CURRENT_DATE_EXCLUDE];r=s()(E).call(E,o()(g=a||"").call(g))?a===m.DE.CURRENT_DATE_TIME?(0,h.Yq)(new Date,"yyyy-MM-dd hh:mm:ss"):a===m.DE.CURRENT_DATE_EXCLUDE?v()(new Date).add(1,"day").format("YYYY-MM-DD"):(0,h.Yq)(new Date,"yyyy-MM-dd"):s()(b=["true","false"]).call(b,a)?"true"==a:a}}else r=(0,f.toRaw)(t);"ElSelect"===e.metaType&&(r=_({config:e,val:r})),console.log(l()(n=l()(i="".concat(e.dynamicHireRelat,",")).call(i,e.hireRelat," to set defaultValue, ")).call(n,r)),e.refValue=r}catch(t){console.log("set default val fail, config",e,t)}}}function _(e){var t=e.config,r=e.val,n=e.isActive,o=void 0!==n&&n,i=r;if(!(0,m.dK)({config:t})||o){var s,a,l=null==t?void 0:t.valueType,c=null==t?void 0:t.separator;if(l!==m.K4.LIST&&l!==m.K4.OBJECT){if((0,h.Qd)(r)||(0,y.cy)(r))try{i=u()(r).join(c)}catch(e){i=r}}else(r&&(0,y.Kg)(r)||(0,y.Et)(r))&&(i=null===(s="".concat(r))||void 0===s?void 0:s.split(c),l==m.K4.OBJECT&&(i=null===(a=i)||void 0===a?void 0:d()(a).call(a,(function(e,t,r){return e[r]=t,e}),{})))}return i}},24691:(e,t,r)=>{function n(e){var t,r,n=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===(r=o.getBoundingClientRect())||void 0===r?void 0:r.width)-n}r.d(t,{fW:()=>n}),r(9868),r(80668),r(63579)},17427:(e,t,r)=>{r.d(t,{$3:()=>n.$3,$N:()=>n.$N,AP:()=>i.AP,Bs:()=>i.Bs,CQ:()=>n.CQ,Ch:()=>o.Ch,Dg:()=>n.Dg,Et:()=>s.Et,Ho:()=>o.Ho,Ij:()=>n.Ij,K4:()=>i.K4,KK:()=>o.KK,Kg:()=>s.Kg,Lm:()=>s.Lm,M9:()=>o.M9,Op:()=>i.Op,PT:()=>n.PT,Qd:()=>n.Qd,SK:()=>o.SK,Tn:()=>n.Tn,Ts:()=>n.Ts,UP:()=>i.UP,V9:()=>n.V9,Vv:()=>n.Vv,Yq:()=>n.Yq,ZB:()=>o.ZB,ZH:()=>n.ZH,cy:()=>s.cy,eM:()=>o.eM,ef:()=>o.ef,fw:()=>o.fw,iF:()=>n.iF,jG:()=>o.jG,jK:()=>i.jK,kL:()=>s.Tn,lb:()=>o.lb,lk:()=>n.lk,mg:()=>n.mg,n_:()=>o.n_,oY:()=>n.oY,q2:()=>n.q2,qg:()=>o.qg,rn:()=>o.rn,ro:()=>n.ro,sg:()=>n.sg,vr:()=>n.vr,yL:()=>n.yL,yo:()=>o.yo,yz:()=>i.yz});var n=r(48618),o=r(8069),i=r(85352),s=r(12935)},12935:(e,t,r)=>{r.d(t,{$P:()=>s.A,Et:()=>l.A,Kg:()=>u.A,Lm:()=>i.A,Tn:()=>a.A,b0:()=>p.A,cy:()=>f,kZ:()=>c.A,sw:()=>h,yr:()=>d.A});var n=r(66615),o=r.n(n),i=(r(76918),r(23288),r(26099),r(27495),r(90906),r(38781),r(98916)),s=r(22922),a=r(89610),l=r(21879),c=r(21395),u=r(32084),p=r(69592),d=r(429);function f(e){return e&&o()(e)}function h(e){return null!=e}Object.prototype.toString},20807:(e,t,r)=>{r.d(t,{A:()=>T});var n=r(37891),o=r(34963),i=(r(79432),r(74707)),s=r.n(i),a=r(29544),l=r.n(a),c=r(86226),u=r.n(c),p=r(50697),d=r.n(p),f=r(75286),h=[(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0});var n={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 F.default}}),Object.defineProperty(t,"assertNode",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"buildMatchMemberExpression",{enumerable:!0,get:function(){return fe.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 O.default}}),Object.defineProperty(t,"getBindingIdentifiers",{enumerable:!0,get:function(){return q.default}}),Object.defineProperty(t,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(t,"inheritInnerComments",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(t,"inheritLeadingComments",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(t,"inheritTrailingComments",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(t,"inherits",{enumerable:!0,get:function(){return U.default}}),Object.defineProperty(t,"inheritsComments",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(t,"is",{enumerable:!0,get:function(){return X.default}}),Object.defineProperty(t,"isBinding",{enumerable:!0,get:function(){return Y.default}}),Object.defineProperty(t,"isBlockScoped",{enumerable:!0,get:function(){return J.default}}),Object.defineProperty(t,"isImmutable",{enumerable:!0,get:function(){return Z.default}}),Object.defineProperty(t,"isLet",{enumerable:!0,get:function(){return ee.default}}),Object.defineProperty(t,"isNode",{enumerable:!0,get:function(){return te.default}}),Object.defineProperty(t,"isNodesEquivalent",{enumerable:!0,get:function(){return re.default}}),Object.defineProperty(t,"isPlaceholderType",{enumerable:!0,get:function(){return ne.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 V.default}}),t.react=void 0,Object.defineProperty(t,"removeComments",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(t,"removeProperties",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(t,"removePropertiesDeep",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(t,"removeTypeDuplicates",{enumerable:!0,get:function(){return K.default}}),Object.defineProperty(t,"shallowEqual",{enumerable:!0,get:function(){return Q.default}}),Object.defineProperty(t,"toBindingIdentifierName",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(t,"toBlock",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(t,"toComputedKey",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(t,"toExpression",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(t,"toIdentifier",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(t,"toKeyAlias",{enumerable:!0,get:function(){return N.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 de.default}}),Object.defineProperty(t,"valueToNode",{enumerable:!0,get:function(){return R.default}});var o=r(348),i=r(349),s=r(350),a=r(362),l=r(363);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var c=r(364),u=r(365),p=r(366),d=r(4);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}));var f=r(368);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))}));var h=r(369);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))}));var m=r(27),y=r(370),g=r(371),v=r(372),b=r(373),_=r(374),E=r(172),x=r(173),S=r(174),w=r(175),A=r(176),T=r(375),P=r(376);Object.keys(P).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===P[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return P[e]}}))}));var C=r(26);Object.keys(C).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===C[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return C[e]}}))}));var O=r(377),I=r(378),k=r(177),D=r(379),M=r(380),j=r(178),N=r(381),L=r(382),R=r(383),B=r(9);Object.keys(B).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===B[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return B[e]}}))}));var F=r(384),U=r(385),V=r(386),W=r(181),$=r(179),K=r(171),q=r(60),z=r(387),H=r(388);Object.keys(H).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===H[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return H[e]}}))}));var G=r(180),Q=r(96),X=r(42),Y=r(389),J=r(390),Z=r(391),ee=r(182),te=r(170),re=r(392),ne=r(168),oe=r(393),ie=r(394),se=r(395),ae=r(98),le=r(396),ce=r(43),ue=r(397),pe=r(165),de=r(97),fe=r(164),he=r(2);Object.keys(he).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===he[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return he[e]}}))}));var me=r(58);t.react={isReactComponent:o.default,isCompatTag:i.default,buildChildren:s.default},t.toSequenceExpression=r(398).default},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_EXTENSIONS=void 0,Object.defineProperty(t,"File",{enumerable:!0,get:function(){return n.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 d.transform}}),Object.defineProperty(t,"transformAsync",{enumerable:!0,get:function(){return d.transformAsync}}),Object.defineProperty(t,"transformFile",{enumerable:!0,get:function(){return f.transformFile}}),Object.defineProperty(t,"transformFileAsync",{enumerable:!0,get:function(){return f.transformFileAsync}}),Object.defineProperty(t,"transformFileSync",{enumerable:!0,get:function(){return f.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 d.transformSync}}),Object.defineProperty(t,"traverse",{enumerable:!0,get:function(){return c().default}}),t.version=t.types=void 0;var n=r(95),o=r(453),i=r(81),s=r(278);function a(){const e=r(0);return a=function(){return e},e}function l(){const e=r(21);return l=function(){return e},e}function c(){const e=r(14);return c=function(){return e},e}function u(){const e=r(37);return u=function(){return e},e}Object.defineProperty(t,"types",{enumerable:!0,get:function(){return a()}});var p=r(82),d=r(475),f=r(488),h=r(489),m=r(490);r(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,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isAccessor=function(e,t){return!!e&&"ClassAccessorProperty"===e.type&&(null==t||(0,n.default)(e,t))},t.isAnyTypeAnnotation=function(e,t){return!!e&&"AnyTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t))},t.isArgumentPlaceholder=function(e,t){return!!e&&"ArgumentPlaceholder"===e.type&&(null==t||(0,n.default)(e,t))},t.isArrayExpression=function(e,t){return!!e&&"ArrayExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isArrayPattern=function(e,t){return!!e&&"ArrayPattern"===e.type&&(null==t||(0,n.default)(e,t))},t.isArrayTypeAnnotation=function(e,t){return!!e&&"ArrayTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t))},t.isArrowFunctionExpression=function(e,t){return!!e&&"ArrowFunctionExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isAssignmentExpression=function(e,t){return!!e&&"AssignmentExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isAssignmentPattern=function(e,t){return!!e&&"AssignmentPattern"===e.type&&(null==t||(0,n.default)(e,t))},t.isAwaitExpression=function(e,t){return!!e&&"AwaitExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isBigIntLiteral=function(e,t){return!!e&&"BigIntLiteral"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isBinaryExpression=function(e,t){return!!e&&"BinaryExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isBindExpression=function(e,t){return!!e&&"BindExpression"===e.type&&(null==t||(0,n.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,n.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,n.default)(e,t)},t.isBlockStatement=function(e,t){return!!e&&"BlockStatement"===e.type&&(null==t||(0,n.default)(e,t))},t.isBooleanLiteral=function(e,t){return!!e&&"BooleanLiteral"===e.type&&(null==t||(0,n.default)(e,t))},t.isBooleanLiteralTypeAnnotation=function(e,t){return!!e&&"BooleanLiteralTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t))},t.isBooleanTypeAnnotation=function(e,t){return!!e&&"BooleanTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t))},t.isBreakStatement=function(e,t){return!!e&&"BreakStatement"===e.type&&(null==t||(0,n.default)(e,t))},t.isCallExpression=function(e,t){return!!e&&"CallExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isCatchClause=function(e,t){return!!e&&"CatchClause"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isClassAccessorProperty=function(e,t){return!!e&&"ClassAccessorProperty"===e.type&&(null==t||(0,n.default)(e,t))},t.isClassBody=function(e,t){return!!e&&"ClassBody"===e.type&&(null==t||(0,n.default)(e,t))},t.isClassDeclaration=function(e,t){return!!e&&"ClassDeclaration"===e.type&&(null==t||(0,n.default)(e,t))},t.isClassExpression=function(e,t){return!!e&&"ClassExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isClassImplements=function(e,t){return!!e&&"ClassImplements"===e.type&&(null==t||(0,n.default)(e,t))},t.isClassMethod=function(e,t){return!!e&&"ClassMethod"===e.type&&(null==t||(0,n.default)(e,t))},t.isClassPrivateMethod=function(e,t){return!!e&&"ClassPrivateMethod"===e.type&&(null==t||(0,n.default)(e,t))},t.isClassPrivateProperty=function(e,t){return!!e&&"ClassPrivateProperty"===e.type&&(null==t||(0,n.default)(e,t))},t.isClassProperty=function(e,t){return!!e&&"ClassProperty"===e.type&&(null==t||(0,n.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,n.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,n.default)(e,t)},t.isConditionalExpression=function(e,t){return!!e&&"ConditionalExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isContinueStatement=function(e,t){return!!e&&"ContinueStatement"===e.type&&(null==t||(0,n.default)(e,t))},t.isDebuggerStatement=function(e,t){return!!e&&"DebuggerStatement"===e.type&&(null==t||(0,n.default)(e,t))},t.isDecimalLiteral=function(e,t){return!!e&&"DecimalLiteral"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isDeclareClass=function(e,t){return!!e&&"DeclareClass"===e.type&&(null==t||(0,n.default)(e,t))},t.isDeclareExportAllDeclaration=function(e,t){return!!e&&"DeclareExportAllDeclaration"===e.type&&(null==t||(0,n.default)(e,t))},t.isDeclareExportDeclaration=function(e,t){return!!e&&"DeclareExportDeclaration"===e.type&&(null==t||(0,n.default)(e,t))},t.isDeclareFunction=function(e,t){return!!e&&"DeclareFunction"===e.type&&(null==t||(0,n.default)(e,t))},t.isDeclareInterface=function(e,t){return!!e&&"DeclareInterface"===e.type&&(null==t||(0,n.default)(e,t))},t.isDeclareModule=function(e,t){return!!e&&"DeclareModule"===e.type&&(null==t||(0,n.default)(e,t))},t.isDeclareModuleExports=function(e,t){return!!e&&"DeclareModuleExports"===e.type&&(null==t||(0,n.default)(e,t))},t.isDeclareOpaqueType=function(e,t){return!!e&&"DeclareOpaqueType"===e.type&&(null==t||(0,n.default)(e,t))},t.isDeclareTypeAlias=function(e,t){return!!e&&"DeclareTypeAlias"===e.type&&(null==t||(0,n.default)(e,t))},t.isDeclareVariable=function(e,t){return!!e&&"DeclareVariable"===e.type&&(null==t||(0,n.default)(e,t))},t.isDeclaredPredicate=function(e,t){return!!e&&"DeclaredPredicate"===e.type&&(null==t||(0,n.default)(e,t))},t.isDecorator=function(e,t){return!!e&&"Decorator"===e.type&&(null==t||(0,n.default)(e,t))},t.isDirective=function(e,t){return!!e&&"Directive"===e.type&&(null==t||(0,n.default)(e,t))},t.isDirectiveLiteral=function(e,t){return!!e&&"DirectiveLiteral"===e.type&&(null==t||(0,n.default)(e,t))},t.isDoExpression=function(e,t){return!!e&&"DoExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isDoWhileStatement=function(e,t){return!!e&&"DoWhileStatement"===e.type&&(null==t||(0,n.default)(e,t))},t.isEmptyStatement=function(e,t){return!!e&&"EmptyStatement"===e.type&&(null==t||(0,n.default)(e,t))},t.isEmptyTypeAnnotation=function(e,t){return!!e&&"EmptyTypeAnnotation"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isEnumBooleanBody=function(e,t){return!!e&&"EnumBooleanBody"===e.type&&(null==t||(0,n.default)(e,t))},t.isEnumBooleanMember=function(e,t){return!!e&&"EnumBooleanMember"===e.type&&(null==t||(0,n.default)(e,t))},t.isEnumDeclaration=function(e,t){return!!e&&"EnumDeclaration"===e.type&&(null==t||(0,n.default)(e,t))},t.isEnumDefaultedMember=function(e,t){return!!e&&"EnumDefaultedMember"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isEnumNumberBody=function(e,t){return!!e&&"EnumNumberBody"===e.type&&(null==t||(0,n.default)(e,t))},t.isEnumNumberMember=function(e,t){return!!e&&"EnumNumberMember"===e.type&&(null==t||(0,n.default)(e,t))},t.isEnumStringBody=function(e,t){return!!e&&"EnumStringBody"===e.type&&(null==t||(0,n.default)(e,t))},t.isEnumStringMember=function(e,t){return!!e&&"EnumStringMember"===e.type&&(null==t||(0,n.default)(e,t))},t.isEnumSymbolBody=function(e,t){return!!e&&"EnumSymbolBody"===e.type&&(null==t||(0,n.default)(e,t))},t.isExistsTypeAnnotation=function(e,t){return!!e&&"ExistsTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t))},t.isExportAllDeclaration=function(e,t){return!!e&&"ExportAllDeclaration"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isExportDefaultDeclaration=function(e,t){return!!e&&"ExportDefaultDeclaration"===e.type&&(null==t||(0,n.default)(e,t))},t.isExportDefaultSpecifier=function(e,t){return!!e&&"ExportDefaultSpecifier"===e.type&&(null==t||(0,n.default)(e,t))},t.isExportNamedDeclaration=function(e,t){return!!e&&"ExportNamedDeclaration"===e.type&&(null==t||(0,n.default)(e,t))},t.isExportNamespaceSpecifier=function(e,t){return!!e&&"ExportNamespaceSpecifier"===e.type&&(null==t||(0,n.default)(e,t))},t.isExportSpecifier=function(e,t){return!!e&&"ExportSpecifier"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isExpressionStatement=function(e,t){return!!e&&"ExpressionStatement"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isFile=function(e,t){return!!e&&"File"===e.type&&(null==t||(0,n.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,n.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,n.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,n.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,n.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,n.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,n.default)(e,t)},t.isForInStatement=function(e,t){return!!e&&"ForInStatement"===e.type&&(null==t||(0,n.default)(e,t))},t.isForOfStatement=function(e,t){return!!e&&"ForOfStatement"===e.type&&(null==t||(0,n.default)(e,t))},t.isForStatement=function(e,t){return!!e&&"ForStatement"===e.type&&(null==t||(0,n.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,n.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,n.default)(e,t)},t.isFunctionDeclaration=function(e,t){return!!e&&"FunctionDeclaration"===e.type&&(null==t||(0,n.default)(e,t))},t.isFunctionExpression=function(e,t){return!!e&&"FunctionExpression"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isFunctionTypeAnnotation=function(e,t){return!!e&&"FunctionTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t))},t.isFunctionTypeParam=function(e,t){return!!e&&"FunctionTypeParam"===e.type&&(null==t||(0,n.default)(e,t))},t.isGenericTypeAnnotation=function(e,t){return!!e&&"GenericTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t))},t.isIdentifier=function(e,t){return!!e&&"Identifier"===e.type&&(null==t||(0,n.default)(e,t))},t.isIfStatement=function(e,t){return!!e&&"IfStatement"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isImport=function(e,t){return!!e&&"Import"===e.type&&(null==t||(0,n.default)(e,t))},t.isImportAttribute=function(e,t){return!!e&&"ImportAttribute"===e.type&&(null==t||(0,n.default)(e,t))},t.isImportDeclaration=function(e,t){return!!e&&"ImportDeclaration"===e.type&&(null==t||(0,n.default)(e,t))},t.isImportDefaultSpecifier=function(e,t){return!!e&&"ImportDefaultSpecifier"===e.type&&(null==t||(0,n.default)(e,t))},t.isImportExpression=function(e,t){return!!e&&"ImportExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isImportNamespaceSpecifier=function(e,t){return!!e&&"ImportNamespaceSpecifier"===e.type&&(null==t||(0,n.default)(e,t))},t.isImportOrExportDeclaration=i,t.isImportSpecifier=function(e,t){return!!e&&"ImportSpecifier"===e.type&&(null==t||(0,n.default)(e,t))},t.isIndexedAccessType=function(e,t){return!!e&&"IndexedAccessType"===e.type&&(null==t||(0,n.default)(e,t))},t.isInferredPredicate=function(e,t){return!!e&&"InferredPredicate"===e.type&&(null==t||(0,n.default)(e,t))},t.isInterfaceDeclaration=function(e,t){return!!e&&"InterfaceDeclaration"===e.type&&(null==t||(0,n.default)(e,t))},t.isInterfaceExtends=function(e,t){return!!e&&"InterfaceExtends"===e.type&&(null==t||(0,n.default)(e,t))},t.isInterfaceTypeAnnotation=function(e,t){return!!e&&"InterfaceTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t))},t.isInterpreterDirective=function(e,t){return!!e&&"InterpreterDirective"===e.type&&(null==t||(0,n.default)(e,t))},t.isIntersectionTypeAnnotation=function(e,t){return!!e&&"IntersectionTypeAnnotation"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isJSXAttribute=function(e,t){return!!e&&"JSXAttribute"===e.type&&(null==t||(0,n.default)(e,t))},t.isJSXClosingElement=function(e,t){return!!e&&"JSXClosingElement"===e.type&&(null==t||(0,n.default)(e,t))},t.isJSXClosingFragment=function(e,t){return!!e&&"JSXClosingFragment"===e.type&&(null==t||(0,n.default)(e,t))},t.isJSXElement=function(e,t){return!!e&&"JSXElement"===e.type&&(null==t||(0,n.default)(e,t))},t.isJSXEmptyExpression=function(e,t){return!!e&&"JSXEmptyExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isJSXExpressionContainer=function(e,t){return!!e&&"JSXExpressionContainer"===e.type&&(null==t||(0,n.default)(e,t))},t.isJSXFragment=function(e,t){return!!e&&"JSXFragment"===e.type&&(null==t||(0,n.default)(e,t))},t.isJSXIdentifier=function(e,t){return!!e&&"JSXIdentifier"===e.type&&(null==t||(0,n.default)(e,t))},t.isJSXMemberExpression=function(e,t){return!!e&&"JSXMemberExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isJSXNamespacedName=function(e,t){return!!e&&"JSXNamespacedName"===e.type&&(null==t||(0,n.default)(e,t))},t.isJSXOpeningElement=function(e,t){return!!e&&"JSXOpeningElement"===e.type&&(null==t||(0,n.default)(e,t))},t.isJSXOpeningFragment=function(e,t){return!!e&&"JSXOpeningFragment"===e.type&&(null==t||(0,n.default)(e,t))},t.isJSXSpreadAttribute=function(e,t){return!!e&&"JSXSpreadAttribute"===e.type&&(null==t||(0,n.default)(e,t))},t.isJSXSpreadChild=function(e,t){return!!e&&"JSXSpreadChild"===e.type&&(null==t||(0,n.default)(e,t))},t.isJSXText=function(e,t){return!!e&&"JSXText"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isLabeledStatement=function(e,t){return!!e&&"LabeledStatement"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isLogicalExpression=function(e,t){return!!e&&"LogicalExpression"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isMemberExpression=function(e,t){return!!e&&"MemberExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isMetaProperty=function(e,t){return!!e&&"MetaProperty"===e.type&&(null==t||(0,n.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,n.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,n.default)(e,t)},t.isMixedTypeAnnotation=function(e,t){return!!e&&"MixedTypeAnnotation"===e.type&&(null==t||(0,n.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,n.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,n.default)(e,t)},t.isNewExpression=function(e,t){return!!e&&"NewExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isNoop=function(e,t){return!!e&&"Noop"===e.type&&(null==t||(0,n.default)(e,t))},t.isNullLiteral=function(e,t){return!!e&&"NullLiteral"===e.type&&(null==t||(0,n.default)(e,t))},t.isNullLiteralTypeAnnotation=function(e,t){return!!e&&"NullLiteralTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t))},t.isNullableTypeAnnotation=function(e,t){return!!e&&"NullableTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t))},t.isNumberLiteral=function(e,t){return(0,o.default)("isNumberLiteral","isNumericLiteral"),!!e&&"NumberLiteral"===e.type&&(null==t||(0,n.default)(e,t))},t.isNumberLiteralTypeAnnotation=function(e,t){return!!e&&"NumberLiteralTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t))},t.isNumberTypeAnnotation=function(e,t){return!!e&&"NumberTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t))},t.isNumericLiteral=function(e,t){return!!e&&"NumericLiteral"===e.type&&(null==t||(0,n.default)(e,t))},t.isObjectExpression=function(e,t){return!!e&&"ObjectExpression"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isObjectMethod=function(e,t){return!!e&&"ObjectMethod"===e.type&&(null==t||(0,n.default)(e,t))},t.isObjectPattern=function(e,t){return!!e&&"ObjectPattern"===e.type&&(null==t||(0,n.default)(e,t))},t.isObjectProperty=function(e,t){return!!e&&"ObjectProperty"===e.type&&(null==t||(0,n.default)(e,t))},t.isObjectTypeAnnotation=function(e,t){return!!e&&"ObjectTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t))},t.isObjectTypeCallProperty=function(e,t){return!!e&&"ObjectTypeCallProperty"===e.type&&(null==t||(0,n.default)(e,t))},t.isObjectTypeIndexer=function(e,t){return!!e&&"ObjectTypeIndexer"===e.type&&(null==t||(0,n.default)(e,t))},t.isObjectTypeInternalSlot=function(e,t){return!!e&&"ObjectTypeInternalSlot"===e.type&&(null==t||(0,n.default)(e,t))},t.isObjectTypeProperty=function(e,t){return!!e&&"ObjectTypeProperty"===e.type&&(null==t||(0,n.default)(e,t))},t.isObjectTypeSpreadProperty=function(e,t){return!!e&&"ObjectTypeSpreadProperty"===e.type&&(null==t||(0,n.default)(e,t))},t.isOpaqueType=function(e,t){return!!e&&"OpaqueType"===e.type&&(null==t||(0,n.default)(e,t))},t.isOptionalCallExpression=function(e,t){return!!e&&"OptionalCallExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isOptionalIndexedAccessType=function(e,t){return!!e&&"OptionalIndexedAccessType"===e.type&&(null==t||(0,n.default)(e,t))},t.isOptionalMemberExpression=function(e,t){return!!e&&"OptionalMemberExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isParenthesizedExpression=function(e,t){return!!e&&"ParenthesizedExpression"===e.type&&(null==t||(0,n.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,n.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,n.default)(e,t)},t.isPipelineBareFunction=function(e,t){return!!e&&"PipelineBareFunction"===e.type&&(null==t||(0,n.default)(e,t))},t.isPipelinePrimaryTopicReference=function(e,t){return!!e&&"PipelinePrimaryTopicReference"===e.type&&(null==t||(0,n.default)(e,t))},t.isPipelineTopicExpression=function(e,t){return!!e&&"PipelineTopicExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isPlaceholder=function(e,t){return!!e&&"Placeholder"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isPrivateName=function(e,t){return!!e&&"PrivateName"===e.type&&(null==t||(0,n.default)(e,t))},t.isProgram=function(e,t){return!!e&&"Program"===e.type&&(null==t||(0,n.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,n.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,n.default)(e,t)},t.isQualifiedTypeIdentifier=function(e,t){return!!e&&"QualifiedTypeIdentifier"===e.type&&(null==t||(0,n.default)(e,t))},t.isRecordExpression=function(e,t){return!!e&&"RecordExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isRegExpLiteral=function(e,t){return!!e&&"RegExpLiteral"===e.type&&(null==t||(0,n.default)(e,t))},t.isRegexLiteral=function(e,t){return(0,o.default)("isRegexLiteral","isRegExpLiteral"),!!e&&"RegexLiteral"===e.type&&(null==t||(0,n.default)(e,t))},t.isRestElement=function(e,t){return!!e&&"RestElement"===e.type&&(null==t||(0,n.default)(e,t))},t.isRestProperty=function(e,t){return(0,o.default)("isRestProperty","isRestElement"),!!e&&"RestProperty"===e.type&&(null==t||(0,n.default)(e,t))},t.isReturnStatement=function(e,t){return!!e&&"ReturnStatement"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isSequenceExpression=function(e,t){return!!e&&"SequenceExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isSpreadElement=function(e,t){return!!e&&"SpreadElement"===e.type&&(null==t||(0,n.default)(e,t))},t.isSpreadProperty=function(e,t){return(0,o.default)("isSpreadProperty","isSpreadElement"),!!e&&"SpreadProperty"===e.type&&(null==t||(0,n.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,n.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,n.default)(e,t)},t.isStaticBlock=function(e,t){return!!e&&"StaticBlock"===e.type&&(null==t||(0,n.default)(e,t))},t.isStringLiteral=function(e,t){return!!e&&"StringLiteral"===e.type&&(null==t||(0,n.default)(e,t))},t.isStringLiteralTypeAnnotation=function(e,t){return!!e&&"StringLiteralTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t))},t.isStringTypeAnnotation=function(e,t){return!!e&&"StringTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t))},t.isSuper=function(e,t){return!!e&&"Super"===e.type&&(null==t||(0,n.default)(e,t))},t.isSwitchCase=function(e,t){return!!e&&"SwitchCase"===e.type&&(null==t||(0,n.default)(e,t))},t.isSwitchStatement=function(e,t){return!!e&&"SwitchStatement"===e.type&&(null==t||(0,n.default)(e,t))},t.isSymbolTypeAnnotation=function(e,t){return!!e&&"SymbolTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSAnyKeyword=function(e,t){return!!e&&"TSAnyKeyword"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSArrayType=function(e,t){return!!e&&"TSArrayType"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSAsExpression=function(e,t){return!!e&&"TSAsExpression"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isTSBigIntKeyword=function(e,t){return!!e&&"TSBigIntKeyword"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSBooleanKeyword=function(e,t){return!!e&&"TSBooleanKeyword"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSCallSignatureDeclaration=function(e,t){return!!e&&"TSCallSignatureDeclaration"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSConditionalType=function(e,t){return!!e&&"TSConditionalType"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSConstructSignatureDeclaration=function(e,t){return!!e&&"TSConstructSignatureDeclaration"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSConstructorType=function(e,t){return!!e&&"TSConstructorType"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSDeclareFunction=function(e,t){return!!e&&"TSDeclareFunction"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSDeclareMethod=function(e,t){return!!e&&"TSDeclareMethod"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isTSEnumDeclaration=function(e,t){return!!e&&"TSEnumDeclaration"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSEnumMember=function(e,t){return!!e&&"TSEnumMember"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSExportAssignment=function(e,t){return!!e&&"TSExportAssignment"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSExpressionWithTypeArguments=function(e,t){return!!e&&"TSExpressionWithTypeArguments"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSExternalModuleReference=function(e,t){return!!e&&"TSExternalModuleReference"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSFunctionType=function(e,t){return!!e&&"TSFunctionType"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSImportEqualsDeclaration=function(e,t){return!!e&&"TSImportEqualsDeclaration"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSImportType=function(e,t){return!!e&&"TSImportType"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSIndexSignature=function(e,t){return!!e&&"TSIndexSignature"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSIndexedAccessType=function(e,t){return!!e&&"TSIndexedAccessType"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSInferType=function(e,t){return!!e&&"TSInferType"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSInstantiationExpression=function(e,t){return!!e&&"TSInstantiationExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSInterfaceBody=function(e,t){return!!e&&"TSInterfaceBody"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSInterfaceDeclaration=function(e,t){return!!e&&"TSInterfaceDeclaration"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSIntersectionType=function(e,t){return!!e&&"TSIntersectionType"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSIntrinsicKeyword=function(e,t){return!!e&&"TSIntrinsicKeyword"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSLiteralType=function(e,t){return!!e&&"TSLiteralType"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSMappedType=function(e,t){return!!e&&"TSMappedType"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSMethodSignature=function(e,t){return!!e&&"TSMethodSignature"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSModuleBlock=function(e,t){return!!e&&"TSModuleBlock"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSModuleDeclaration=function(e,t){return!!e&&"TSModuleDeclaration"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSNamedTupleMember=function(e,t){return!!e&&"TSNamedTupleMember"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSNamespaceExportDeclaration=function(e,t){return!!e&&"TSNamespaceExportDeclaration"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSNeverKeyword=function(e,t){return!!e&&"TSNeverKeyword"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSNonNullExpression=function(e,t){return!!e&&"TSNonNullExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSNullKeyword=function(e,t){return!!e&&"TSNullKeyword"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSNumberKeyword=function(e,t){return!!e&&"TSNumberKeyword"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSObjectKeyword=function(e,t){return!!e&&"TSObjectKeyword"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSOptionalType=function(e,t){return!!e&&"TSOptionalType"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSParameterProperty=function(e,t){return!!e&&"TSParameterProperty"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSParenthesizedType=function(e,t){return!!e&&"TSParenthesizedType"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSPropertySignature=function(e,t){return!!e&&"TSPropertySignature"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSQualifiedName=function(e,t){return!!e&&"TSQualifiedName"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSRestType=function(e,t){return!!e&&"TSRestType"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSSatisfiesExpression=function(e,t){return!!e&&"TSSatisfiesExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSStringKeyword=function(e,t){return!!e&&"TSStringKeyword"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSSymbolKeyword=function(e,t){return!!e&&"TSSymbolKeyword"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSThisType=function(e,t){return!!e&&"TSThisType"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSTupleType=function(e,t){return!!e&&"TSTupleType"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isTSTypeAliasDeclaration=function(e,t){return!!e&&"TSTypeAliasDeclaration"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSTypeAnnotation=function(e,t){return!!e&&"TSTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSTypeAssertion=function(e,t){return!!e&&"TSTypeAssertion"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isTSTypeLiteral=function(e,t){return!!e&&"TSTypeLiteral"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSTypeOperator=function(e,t){return!!e&&"TSTypeOperator"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSTypeParameter=function(e,t){return!!e&&"TSTypeParameter"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSTypeParameterDeclaration=function(e,t){return!!e&&"TSTypeParameterDeclaration"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSTypeParameterInstantiation=function(e,t){return!!e&&"TSTypeParameterInstantiation"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSTypePredicate=function(e,t){return!!e&&"TSTypePredicate"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSTypeQuery=function(e,t){return!!e&&"TSTypeQuery"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSTypeReference=function(e,t){return!!e&&"TSTypeReference"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSUndefinedKeyword=function(e,t){return!!e&&"TSUndefinedKeyword"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSUnionType=function(e,t){return!!e&&"TSUnionType"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSUnknownKeyword=function(e,t){return!!e&&"TSUnknownKeyword"===e.type&&(null==t||(0,n.default)(e,t))},t.isTSVoidKeyword=function(e,t){return!!e&&"TSVoidKeyword"===e.type&&(null==t||(0,n.default)(e,t))},t.isTaggedTemplateExpression=function(e,t){return!!e&&"TaggedTemplateExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isTemplateElement=function(e,t){return!!e&&"TemplateElement"===e.type&&(null==t||(0,n.default)(e,t))},t.isTemplateLiteral=function(e,t){return!!e&&"TemplateLiteral"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isThisExpression=function(e,t){return!!e&&"ThisExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isThisTypeAnnotation=function(e,t){return!!e&&"ThisTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t))},t.isThrowStatement=function(e,t){return!!e&&"ThrowStatement"===e.type&&(null==t||(0,n.default)(e,t))},t.isTopicReference=function(e,t){return!!e&&"TopicReference"===e.type&&(null==t||(0,n.default)(e,t))},t.isTryStatement=function(e,t){return!!e&&"TryStatement"===e.type&&(null==t||(0,n.default)(e,t))},t.isTupleExpression=function(e,t){return!!e&&"TupleExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isTupleTypeAnnotation=function(e,t){return!!e&&"TupleTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t))},t.isTypeAlias=function(e,t){return!!e&&"TypeAlias"===e.type&&(null==t||(0,n.default)(e,t))},t.isTypeAnnotation=function(e,t){return!!e&&"TypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t))},t.isTypeCastExpression=function(e,t){return!!e&&"TypeCastExpression"===e.type&&(null==t||(0,n.default)(e,t))},t.isTypeParameter=function(e,t){return!!e&&"TypeParameter"===e.type&&(null==t||(0,n.default)(e,t))},t.isTypeParameterDeclaration=function(e,t){return!!e&&"TypeParameterDeclaration"===e.type&&(null==t||(0,n.default)(e,t))},t.isTypeParameterInstantiation=function(e,t){return!!e&&"TypeParameterInstantiation"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isTypeofTypeAnnotation=function(e,t){return!!e&&"TypeofTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t))},t.isUnaryExpression=function(e,t){return!!e&&"UnaryExpression"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isUnionTypeAnnotation=function(e,t){return!!e&&"UnionTypeAnnotation"===e.type&&(null==t||(0,n.default)(e,t))},t.isUpdateExpression=function(e,t){return!!e&&"UpdateExpression"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isV8IntrinsicIdentifier=function(e,t){return!!e&&"V8IntrinsicIdentifier"===e.type&&(null==t||(0,n.default)(e,t))},t.isVariableDeclaration=function(e,t){return!!e&&"VariableDeclaration"===e.type&&(null==t||(0,n.default)(e,t))},t.isVariableDeclarator=function(e,t){return!!e&&"VariableDeclarator"===e.type&&(null==t||(0,n.default)(e,t))},t.isVariance=function(e,t){return!!e&&"Variance"===e.type&&(null==t||(0,n.default)(e,t))},t.isVoidTypeAnnotation=function(e,t){return!!e&&"VoidTypeAnnotation"===e.type&&(null==t||(0,n.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,n.default)(e,t)},t.isWhileStatement=function(e,t){return!!e&&"WhileStatement"===e.type&&(null==t||(0,n.default)(e,t))},t.isWithStatement=function(e,t){return!!e&&"WithStatement"===e.type&&(null==t||(0,n.default)(e,t))},t.isYieldExpression=function(e,t){return!!e&&"YieldExpression"===e.type&&(null==t||(0,n.default)(e,t))};var n=r(96),o=r(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,n.default)(e,t)}},(e,t,r)=>{const n=r(48),{MAX_LENGTH:o,MAX_SAFE_INTEGER:i}=r(47),{safeRe:s,t:a}=r(34),l=r(75),{compareIdentifiers:c}=r(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`);n("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?s[a.LOOSE]:s[a.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[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");r[4]?this.prerelease=r[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=r[5]?r[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(n("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 r=this.prerelease[t],o=e.prerelease[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return c(r,o)}while(++t)}compareBuild(e){e instanceof u||(e=new u(e,this.options));let t=0;do{const r=this.build[t],o=e.build[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return c(r,o)}while(++t)}inc(e,t,r){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,r),this.inc("pre",t,r);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(r)?1:0;if(!t&&!1===r)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let n=this.prerelease.length;for(;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let n=[t,e];!1===r&&(n=[t]),0===c(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}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,r)=>{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,n.default)({type:"ArrayExpression",elements:e})},t.arrayPattern=function(e){return(0,n.default)({type:"ArrayPattern",elements:e})},t.arrayTypeAnnotation=function(e){return(0,n.default)({type:"ArrayTypeAnnotation",elementType:e})},t.arrowFunctionExpression=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,n.default)({type:"ArrowFunctionExpression",params:e,body:t,async:r,expression:null})},t.assignmentExpression=function(e,t,r){return(0,n.default)({type:"AssignmentExpression",operator:e,left:t,right:r})},t.assignmentPattern=function(e,t){return(0,n.default)({type:"AssignmentPattern",left:e,right:t})},t.awaitExpression=function(e){return(0,n.default)({type:"AwaitExpression",argument:e})},t.bigIntLiteral=function(e){return(0,n.default)({type:"BigIntLiteral",value:e})},t.binaryExpression=function(e,t,r){return(0,n.default)({type:"BinaryExpression",operator:e,left:t,right:r})},t.bindExpression=function(e,t){return(0,n.default)({type:"BindExpression",object:e,callee:t})},t.blockStatement=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(0,n.default)({type:"BlockStatement",body:e,directives:t})},t.booleanLiteral=function(e){return(0,n.default)({type:"BooleanLiteral",value:e})},t.booleanLiteralTypeAnnotation=function(e){return(0,n.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,n.default)({type:"BreakStatement",label:e})},t.callExpression=function(e,t){return(0,n.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,n.default)({type:"CatchClause",param:e,body:t})},t.classAccessorProperty=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=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,n.default)({type:"ClassAccessorProperty",key:e,value:t,typeAnnotation:r,decorators:o,computed:i,static:s})},t.classBody=function(e){return(0,n.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,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,n.default)({type:"ClassDeclaration",id:e,superClass:t,body:r,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,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,n.default)({type:"ClassExpression",id:e,superClass:t,body:r,decorators:o})},t.classImplements=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,n.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,r=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,n.default)({type:"ClassMethod",kind:e,key:t,params:r,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,r=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,n.default)({type:"ClassPrivateMethod",kind:e,key:t,params:r,body:o,static:i})},t.classPrivateProperty=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return(0,n.default)({type:"ClassPrivateProperty",key:e,value:t,decorators:r,static:o})},t.classProperty=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=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,n.default)({type:"ClassProperty",key:e,value:t,typeAnnotation:r,decorators:o,computed:i,static:s})},t.conditionalExpression=function(e,t,r){return(0,n.default)({type:"ConditionalExpression",test:e,consequent:t,alternate:r})},t.continueStatement=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return(0,n.default)({type:"ContinueStatement",label:e})},t.debuggerStatement=function(){return{type:"DebuggerStatement"}},t.decimalLiteral=function(e){return(0,n.default)({type:"DecimalLiteral",value:e})},t.declareClass=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3?arguments[3]:void 0;return(0,n.default)({type:"DeclareClass",id:e,typeParameters:t,extends:r,body:o})},t.declareExportAllDeclaration=function(e){return(0,n.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,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,n.default)({type:"DeclareExportDeclaration",declaration:e,specifiers:t,source:r})},t.declareFunction=function(e){return(0,n.default)({type:"DeclareFunction",id:e})},t.declareInterface=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3?arguments[3]:void 0;return(0,n.default)({type:"DeclareInterface",id:e,typeParameters:t,extends:r,body:o})},t.declareModule=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,n.default)({type:"DeclareModule",id:e,body:t,kind:r})},t.declareModuleExports=function(e){return(0,n.default)({type:"DeclareModuleExports",typeAnnotation:e})},t.declareOpaqueType=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,n.default)({type:"DeclareOpaqueType",id:e,typeParameters:t,supertype:r})},t.declareTypeAlias=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0;return(0,n.default)({type:"DeclareTypeAlias",id:e,typeParameters:t,right:r})},t.declareVariable=function(e){return(0,n.default)({type:"DeclareVariable",id:e})},t.declaredPredicate=function(e){return(0,n.default)({type:"DeclaredPredicate",value:e})},t.decorator=function(e){return(0,n.default)({type:"Decorator",expression:e})},t.directive=function(e){return(0,n.default)({type:"Directive",value:e})},t.directiveLiteral=function(e){return(0,n.default)({type:"DirectiveLiteral",value:e})},t.doExpression=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,n.default)({type:"DoExpression",body:e,async:t})},t.doWhileStatement=function(e,t){return(0,n.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,n.default)({type:"EnumBooleanBody",members:e,explicitType:null,hasUnknownMembers:null})},t.enumBooleanMember=function(e){return(0,n.default)({type:"EnumBooleanMember",id:e,init:null})},t.enumDeclaration=function(e,t){return(0,n.default)({type:"EnumDeclaration",id:e,body:t})},t.enumDefaultedMember=function(e){return(0,n.default)({type:"EnumDefaultedMember",id:e})},t.enumNumberBody=function(e){return(0,n.default)({type:"EnumNumberBody",members:e,explicitType:null,hasUnknownMembers:null})},t.enumNumberMember=function(e,t){return(0,n.default)({type:"EnumNumberMember",id:e,init:t})},t.enumStringBody=function(e){return(0,n.default)({type:"EnumStringBody",members:e,explicitType:null,hasUnknownMembers:null})},t.enumStringMember=function(e,t){return(0,n.default)({type:"EnumStringMember",id:e,init:t})},t.enumSymbolBody=function(e){return(0,n.default)({type:"EnumSymbolBody",members:e,hasUnknownMembers:null})},t.existsTypeAnnotation=function(){return{type:"ExistsTypeAnnotation"}},t.exportAllDeclaration=function(e){return(0,n.default)({type:"ExportAllDeclaration",source:e})},t.exportDefaultDeclaration=function(e){return(0,n.default)({type:"ExportDefaultDeclaration",declaration:e})},t.exportDefaultSpecifier=function(e){return(0,n.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]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,n.default)({type:"ExportNamedDeclaration",declaration:e,specifiers:t,source:r})},t.exportNamespaceSpecifier=function(e){return(0,n.default)({type:"ExportNamespaceSpecifier",exported:e})},t.exportSpecifier=function(e,t){return(0,n.default)({type:"ExportSpecifier",local:e,exported:t})},t.expressionStatement=function(e){return(0,n.default)({type:"ExpressionStatement",expression:e})},t.file=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,n.default)({type:"File",program:e,comments:t,tokens:r})},t.forInStatement=function(e,t,r){return(0,n.default)({type:"ForInStatement",left:e,right:t,body:r})},t.forOfStatement=function(e,t,r){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return(0,n.default)({type:"ForOfStatement",left:e,right:t,body:r,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,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3?arguments[3]:void 0;return(0,n.default)({type:"ForStatement",init:e,test:t,update:r,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,r=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,n.default)({type:"FunctionDeclaration",id:e,params:t,body:r,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,r=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,n.default)({type:"FunctionExpression",id:e,params:t,body:r,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,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3?arguments[3]:void 0;return(0,n.default)({type:"FunctionTypeAnnotation",typeParameters:e,params:t,rest:r,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,n.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,n.default)({type:"GenericTypeAnnotation",id:e,typeParameters:t})},t.identifier=function(e){return(0,n.default)({type:"Identifier",name:e})},t.ifStatement=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,n.default)({type:"IfStatement",test:e,consequent:t,alternate:r})},t.import=function(){return{type:"Import"}},t.importAttribute=function(e,t){return(0,n.default)({type:"ImportAttribute",key:e,value:t})},t.importDeclaration=function(e,t){return(0,n.default)({type:"ImportDeclaration",specifiers:e,source:t})},t.importDefaultSpecifier=function(e){return(0,n.default)({type:"ImportDefaultSpecifier",local:e})},t.importExpression=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,n.default)({type:"ImportExpression",source:e,options:t})},t.importNamespaceSpecifier=function(e){return(0,n.default)({type:"ImportNamespaceSpecifier",local:e})},t.importSpecifier=function(e,t){return(0,n.default)({type:"ImportSpecifier",local:e,imported:t})},t.indexedAccessType=function(e,t){return(0,n.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,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3?arguments[3]:void 0;return(0,n.default)({type:"InterfaceDeclaration",id:e,typeParameters:t,extends:r,body:o})},t.interfaceExtends=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,n.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,n.default)({type:"InterfaceTypeAnnotation",extends:e,body:t})},t.interpreterDirective=function(e){return(0,n.default)({type:"InterpreterDirective",value:e})},t.intersectionTypeAnnotation=function(e){return(0,n.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,n.default)({type:"JSXAttribute",name:e,value:t})},t.jSXClosingElement=t.jsxClosingElement=function(e){return(0,n.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,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,n.default)({type:"JSXElement",openingElement:e,closingElement:t,children:r,selfClosing:o})},t.jSXEmptyExpression=t.jsxEmptyExpression=function(){return{type:"JSXEmptyExpression"}},t.jSXExpressionContainer=t.jsxExpressionContainer=function(e){return(0,n.default)({type:"JSXExpressionContainer",expression:e})},t.jSXFragment=t.jsxFragment=function(e,t,r){return(0,n.default)({type:"JSXFragment",openingFragment:e,closingFragment:t,children:r})},t.jSXIdentifier=t.jsxIdentifier=function(e){return(0,n.default)({type:"JSXIdentifier",name:e})},t.jSXMemberExpression=t.jsxMemberExpression=function(e,t){return(0,n.default)({type:"JSXMemberExpression",object:e,property:t})},t.jSXNamespacedName=t.jsxNamespacedName=function(e,t){return(0,n.default)({type:"JSXNamespacedName",namespace:e,name:t})},t.jSXOpeningElement=t.jsxOpeningElement=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,n.default)({type:"JSXOpeningElement",name:e,attributes:t,selfClosing:r})},t.jSXOpeningFragment=t.jsxOpeningFragment=function(){return{type:"JSXOpeningFragment"}},t.jSXSpreadAttribute=t.jsxSpreadAttribute=function(e){return(0,n.default)({type:"JSXSpreadAttribute",argument:e})},t.jSXSpreadChild=t.jsxSpreadChild=function(e){return(0,n.default)({type:"JSXSpreadChild",expression:e})},t.jSXText=t.jsxText=function(e){return(0,n.default)({type:"JSXText",value:e})},t.labeledStatement=function(e,t){return(0,n.default)({type:"LabeledStatement",label:e,body:t})},t.logicalExpression=function(e,t,r){return(0,n.default)({type:"LogicalExpression",operator:e,left:t,right:r})},t.memberExpression=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,n.default)({type:"MemberExpression",object:e,property:t,computed:r,optional:o})},t.metaProperty=function(e,t){return(0,n.default)({type:"MetaProperty",meta:e,property:t})},t.mixedTypeAnnotation=function(){return{type:"MixedTypeAnnotation"}},t.moduleExpression=function(e){return(0,n.default)({type:"ModuleExpression",body:e})},t.newExpression=function(e,t){return(0,n.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,n.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,n.default)({type:"NumberLiteralTypeAnnotation",value:e})},t.numberTypeAnnotation=function(){return{type:"NumberTypeAnnotation"}},t.numericLiteral=i,t.objectExpression=function(e){return(0,n.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,r=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,n.default)({type:"ObjectMethod",kind:e,key:t,params:r,body:o,computed:i,generator:s,async:a})},t.objectPattern=function(e){return(0,n.default)({type:"ObjectPattern",properties:e})},t.objectProperty=function(e,t){let r=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,n.default)({type:"ObjectProperty",key:e,value:t,computed:r,shorthand:o,decorators:i})},t.objectTypeAnnotation=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=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,n.default)({type:"ObjectTypeAnnotation",properties:e,indexers:t,callProperties:r,internalSlots:o,exact:i})},t.objectTypeCallProperty=function(e){return(0,n.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,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,n.default)({type:"ObjectTypeIndexer",id:e,key:t,value:r,variance:o,static:null})},t.objectTypeInternalSlot=function(e,t,r,o,i){return(0,n.default)({type:"ObjectTypeInternalSlot",id:e,value:t,optional:r,static:o,method:i})},t.objectTypeProperty=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,n.default)({type:"ObjectTypeProperty",key:e,value:t,variance:r,kind:null,method:null,optional:null,proto:null,static:null})},t.objectTypeSpreadProperty=function(e){return(0,n.default)({type:"ObjectTypeSpreadProperty",argument:e})},t.opaqueType=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3?arguments[3]:void 0;return(0,n.default)({type:"OpaqueType",id:e,typeParameters:t,supertype:r,impltype:o})},t.optionalCallExpression=function(e,t,r){return(0,n.default)({type:"OptionalCallExpression",callee:e,arguments:t,optional:r})},t.optionalIndexedAccessType=function(e,t){return(0,n.default)({type:"OptionalIndexedAccessType",objectType:e,indexType:t,optional:null})},t.optionalMemberExpression=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3?arguments[3]:void 0;return(0,n.default)({type:"OptionalMemberExpression",object:e,property:t,computed:r,optional:o})},t.parenthesizedExpression=function(e){return(0,n.default)({type:"ParenthesizedExpression",expression:e})},t.pipelineBareFunction=function(e){return(0,n.default)({type:"PipelineBareFunction",callee:e})},t.pipelinePrimaryTopicReference=function(){return{type:"PipelinePrimaryTopicReference"}},t.pipelineTopicExpression=function(e){return(0,n.default)({type:"PipelineTopicExpression",expression:e})},t.placeholder=function(e,t){return(0,n.default)({type:"Placeholder",expectedNode:e,name:t})},t.privateName=function(e){return(0,n.default)({type:"PrivateName",id:e})},t.program=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"script",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,n.default)({type:"Program",body:e,directives:t,sourceType:r,interpreter:o,sourceFile:null})},t.qualifiedTypeIdentifier=function(e,t){return(0,n.default)({type:"QualifiedTypeIdentifier",id:e,qualification:t})},t.recordExpression=function(e){return(0,n.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,n.default)({type:"ReturnStatement",argument:e})},t.sequenceExpression=function(e){return(0,n.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,n.default)({type:"StaticBlock",body:e})},t.stringLiteral=function(e){return(0,n.default)({type:"StringLiteral",value:e})},t.stringLiteralTypeAnnotation=function(e){return(0,n.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,n.default)({type:"SwitchCase",test:e,consequent:t})},t.switchStatement=function(e,t){return(0,n.default)({type:"SwitchStatement",discriminant:e,cases:t})},t.symbolTypeAnnotation=function(){return{type:"SymbolTypeAnnotation"}},t.taggedTemplateExpression=function(e,t){return(0,n.default)({type:"TaggedTemplateExpression",tag:e,quasi:t})},t.templateElement=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,n.default)({type:"TemplateElement",value:e,tail:t})},t.templateLiteral=function(e,t){return(0,n.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,n.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,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,n.default)({type:"TryStatement",block:e,handler:t,finalizer:r})},t.tSAnyKeyword=t.tsAnyKeyword=function(){return{type:"TSAnyKeyword"}},t.tSArrayType=t.tsArrayType=function(e){return(0,n.default)({type:"TSArrayType",elementType:e})},t.tSAsExpression=t.tsAsExpression=function(e,t){return(0,n.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,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,n.default)({type:"TSCallSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:r})},t.tSConditionalType=t.tsConditionalType=function(e,t,r,o){return(0,n.default)({type:"TSConditionalType",checkType:e,extendsType:t,trueType:r,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,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,n.default)({type:"TSConstructSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:r})},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,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,n.default)({type:"TSConstructorType",typeParameters:e,parameters:t,typeAnnotation:r})},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,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,n.default)({type:"TSDeclareFunction",id:e,typeParameters:t,params:r,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,r=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,n.default)({type:"TSDeclareMethod",decorators:e,key:t,typeParameters:r,params:o,returnType:i})},t.tSEnumDeclaration=t.tsEnumDeclaration=function(e,t){return(0,n.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,n.default)({type:"TSEnumMember",id:e,initializer:t})},t.tSExportAssignment=t.tsExportAssignment=function(e){return(0,n.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,n.default)({type:"TSExpressionWithTypeArguments",expression:e,typeParameters:t})},t.tSExternalModuleReference=t.tsExternalModuleReference=function(e){return(0,n.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,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,n.default)({type:"TSFunctionType",typeParameters:e,parameters:t,typeAnnotation:r})},t.tSImportEqualsDeclaration=t.tsImportEqualsDeclaration=function(e,t){return(0,n.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,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,n.default)({type:"TSImportType",argument:e,qualifier:t,typeParameters:r})},t.tSIndexSignature=t.tsIndexSignature=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,n.default)({type:"TSIndexSignature",parameters:e,typeAnnotation:t})},t.tSIndexedAccessType=t.tsIndexedAccessType=function(e,t){return(0,n.default)({type:"TSIndexedAccessType",objectType:e,indexType:t})},t.tSInferType=t.tsInferType=function(e){return(0,n.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,n.default)({type:"TSInstantiationExpression",expression:e,typeParameters:t})},t.tSInterfaceBody=t.tsInterfaceBody=function(e){return(0,n.default)({type:"TSInterfaceBody",body:e})},t.tSInterfaceDeclaration=t.tsInterfaceDeclaration=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3?arguments[3]:void 0;return(0,n.default)({type:"TSInterfaceDeclaration",id:e,typeParameters:t,extends:r,body:o})},t.tSIntersectionType=t.tsIntersectionType=function(e){return(0,n.default)({type:"TSIntersectionType",types:e})},t.tSIntrinsicKeyword=t.tsIntrinsicKeyword=function(){return{type:"TSIntrinsicKeyword"}},t.tSLiteralType=t.tsLiteralType=function(e){return(0,n.default)({type:"TSLiteralType",literal:e})},t.tSMappedType=t.tsMappedType=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,n.default)({type:"TSMappedType",typeParameter:e,typeAnnotation:t,nameType:r})},t.tSMethodSignature=t.tsMethodSignature=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,n.default)({type:"TSMethodSignature",key:e,typeParameters:t,parameters:r,typeAnnotation:o,kind:null})},t.tSModuleBlock=t.tsModuleBlock=function(e){return(0,n.default)({type:"TSModuleBlock",body:e})},t.tSModuleDeclaration=t.tsModuleDeclaration=function(e,t){return(0,n.default)({type:"TSModuleDeclaration",id:e,body:t})},t.tSNamedTupleMember=t.tsNamedTupleMember=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,n.default)({type:"TSNamedTupleMember",label:e,elementType:t,optional:r})},t.tSNamespaceExportDeclaration=t.tsNamespaceExportDeclaration=function(e){return(0,n.default)({type:"TSNamespaceExportDeclaration",id:e})},t.tSNeverKeyword=t.tsNeverKeyword=function(){return{type:"TSNeverKeyword"}},t.tSNonNullExpression=t.tsNonNullExpression=function(e){return(0,n.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,n.default)({type:"TSOptionalType",typeAnnotation:e})},t.tSParameterProperty=t.tsParameterProperty=function(e){return(0,n.default)({type:"TSParameterProperty",parameter:e})},t.tSParenthesizedType=t.tsParenthesizedType=function(e){return(0,n.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,n.default)({type:"TSPropertySignature",key:e,typeAnnotation:t,kind:null})},t.tSQualifiedName=t.tsQualifiedName=function(e,t){return(0,n.default)({type:"TSQualifiedName",left:e,right:t})},t.tSRestType=t.tsRestType=function(e){return(0,n.default)({type:"TSRestType",typeAnnotation:e})},t.tSSatisfiesExpression=t.tsSatisfiesExpression=function(e,t){return(0,n.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,n.default)({type:"TSTupleType",elementTypes:e})},t.tSTypeAliasDeclaration=t.tsTypeAliasDeclaration=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0;return(0,n.default)({type:"TSTypeAliasDeclaration",id:e,typeParameters:t,typeAnnotation:r})},t.tSTypeAnnotation=t.tsTypeAnnotation=function(e){return(0,n.default)({type:"TSTypeAnnotation",typeAnnotation:e})},t.tSTypeAssertion=t.tsTypeAssertion=function(e,t){return(0,n.default)({type:"TSTypeAssertion",typeAnnotation:e,expression:t})},t.tSTypeLiteral=t.tsTypeLiteral=function(e){return(0,n.default)({type:"TSTypeLiteral",members:e})},t.tSTypeOperator=t.tsTypeOperator=function(e){return(0,n.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,r=arguments.length>2?arguments[2]:void 0;return(0,n.default)({type:"TSTypeParameter",constraint:e,default:t,name:r})},t.tSTypeParameterDeclaration=t.tsTypeParameterDeclaration=function(e){return(0,n.default)({type:"TSTypeParameterDeclaration",params:e})},t.tSTypeParameterInstantiation=t.tsTypeParameterInstantiation=function(e){return(0,n.default)({type:"TSTypeParameterInstantiation",params:e})},t.tSTypePredicate=t.tsTypePredicate=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,n.default)({type:"TSTypePredicate",parameterName:e,typeAnnotation:t,asserts:r})},t.tSTypeQuery=t.tsTypeQuery=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,n.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,n.default)({type:"TSTypeReference",typeName:e,typeParameters:t})},t.tSUndefinedKeyword=t.tsUndefinedKeyword=function(){return{type:"TSUndefinedKeyword"}},t.tSUnionType=t.tsUnionType=function(e){return(0,n.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,n.default)({type:"TupleExpression",elements:e})},t.tupleTypeAnnotation=function(e){return(0,n.default)({type:"TupleTypeAnnotation",types:e})},t.typeAlias=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0;return(0,n.default)({type:"TypeAlias",id:e,typeParameters:t,right:r})},t.typeAnnotation=function(e){return(0,n.default)({type:"TypeAnnotation",typeAnnotation:e})},t.typeCastExpression=function(e,t){return(0,n.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,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,n.default)({type:"TypeParameter",bound:e,default:t,variance:r,name:null})},t.typeParameterDeclaration=function(e){return(0,n.default)({type:"TypeParameterDeclaration",params:e})},t.typeParameterInstantiation=function(e){return(0,n.default)({type:"TypeParameterInstantiation",params:e})},t.typeofTypeAnnotation=function(e){return(0,n.default)({type:"TypeofTypeAnnotation",argument:e})},t.unaryExpression=function(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return(0,n.default)({type:"UnaryExpression",operator:e,argument:t,prefix:r})},t.unionTypeAnnotation=function(e){return(0,n.default)({type:"UnionTypeAnnotation",types:e})},t.updateExpression=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,n.default)({type:"UpdateExpression",operator:e,argument:t,prefix:r})},t.v8IntrinsicIdentifier=function(e){return(0,n.default)({type:"V8IntrinsicIdentifier",name:e})},t.variableDeclaration=function(e,t){return(0,n.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,n.default)({type:"VariableDeclarator",id:e,init:t})},t.variance=function(e){return(0,n.default)({type:"Variance",kind:e})},t.voidTypeAnnotation=function(){return{type:"VoidTypeAnnotation"}},t.whileStatement=function(e,t){return(0,n.default)({type:"WhileStatement",test:e,body:t})},t.withStatement=function(e,t){return(0,n.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,n.default)({type:"YieldExpression",argument:e,delegate:t})};var n=r(352),o=r(58);function i(e){return(0,n.default)({type:"NumericLiteral",value:e})}function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,n.default)({type:"RegExpLiteral",pattern:e,flags:t})}function a(e){return(0,n.default)({type:"RestElement",argument:e})}function l(e){return(0,n.default)({type:"SpreadElement",argument:e})}},function(e,t,r){var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("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,r)=>{const n=r(3);e.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))},(e,t,r)=>{class n{constructor(e,t){if(t=i(t),e instanceof n)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new n(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,r=o.get(t);if(r)return r;const n=this.options.loose,i=n?c[u.HYPHENRANGELOOSE]:c[u.HYPHENRANGE];e=e.replace(i,O(this.options.includePrerelease)),a("hyphen replace",e),e=e.replace(c[u.COMPARATORTRIM],p),a("comparator trim",e),e=e.replace(c[u.TILDETRIM],d),a("tilde trim",e),e=e.replace(c[u.CARETTRIM],f),a("caret trim",e);let l=e.split(" ").map((e=>b(e,this.options))).join(" ").split(/\s+/).map((e=>C(e,this.options)));n&&(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 n))throw new TypeError("a Range is required");return this.set.some((r=>v(r,t)&&e.set.some((e=>v(e,t)&&r.every((r=>e.every((e=>r.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(I(this.set[t],e,this.options))return!0;return!1}}e.exports=n;const o=new(r(132))({max:1e3}),i=r(75),s=r(50),a=r(48),l=r(3),{safeRe:c,t:u,comparatorTrimReplace:p,tildeTrimReplace:d,caretTrimReplace:f}=r(34),{FLAG_INCLUDE_PRERELEASE:h,FLAG_LOOSE:m}=r(47),y=e=>"<0.0.0-0"===e.value,g=e=>""===e.value,v=(e,t)=>{let r=!0;const n=e.slice();let o=n.pop();for(;r&&n.length;)r=n.every((e=>o.intersects(e,t))),o=n.pop();return r},b=(e,t)=>(a("comp",e,t),e=S(e,t),a("caret",e),e=E(e,t),a("tildes",e),e=A(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 r=t.loose?c[u.TILDELOOSE]:c[u.TILDE];return e.replace(r,((t,r,n,o,i)=>{let s;return a("tilde",e,t,r,n,o,i),_(r)?s="":_(n)?s=`>=${r}.0.0 <${+r+1}.0.0-0`:_(o)?s=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:i?(a("replaceTilde pr",i),s=`>=${r}.${n}.${o}-${i} <${r}.${+n+1}.0-0`):s=`>=${r}.${n}.${o} <${r}.${+n+1}.0-0`,a("tilde return",s),s}))},S=(e,t)=>e.trim().split(/\s+/).map((e=>w(e,t))).join(" "),w=(e,t)=>{a("caret",e,t);const r=t.loose?c[u.CARETLOOSE]:c[u.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,((t,r,o,i,s)=>{let l;return a("caret",e,t,r,o,i,s),_(r)?l="":_(o)?l=`>=${r}.0.0${n} <${+r+1}.0.0-0`:_(i)?l="0"===r?`>=${r}.${o}.0${n} <${r}.${+o+1}.0-0`:`>=${r}.${o}.0${n} <${+r+1}.0.0-0`:s?(a("replaceCaret pr",s),l="0"===r?"0"===o?`>=${r}.${o}.${i}-${s} <${r}.${o}.${+i+1}-0`:`>=${r}.${o}.${i}-${s} <${r}.${+o+1}.0-0`:`>=${r}.${o}.${i}-${s} <${+r+1}.0.0-0`):(a("no pr"),l="0"===r?"0"===o?`>=${r}.${o}.${i}${n} <${r}.${o}.${+i+1}-0`:`>=${r}.${o}.${i}${n} <${r}.${+o+1}.0-0`:`>=${r}.${o}.${i} <${+r+1}.0.0-0`),a("caret return",l),l}))},A=(e,t)=>(a("replaceXRanges",e,t),e.split(/\s+/).map((e=>T(e,t))).join(" ")),T=(e,t)=>{e=e.trim();const r=t.loose?c[u.XRANGELOOSE]:c[u.XRANGE];return e.replace(r,((r,n,o,i,s,l)=>{a("xRange",e,r,n,o,i,s,l);const c=_(o),u=c||_(i),p=u||_(s),d=p;return"="===n&&d&&(n=""),l=t.includePrerelease?"-0":"",c?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&d?(u&&(i=0),s=0,">"===n?(n=">=",u?(o=+o+1,i=0,s=0):(i=+i+1,s=0)):"<="===n&&(n="<",u?o=+o+1:i=+i+1),"<"===n&&(l="-0"),r=`${n+o}.${i}.${s}${l}`):u?r=`>=${o}.0.0${l} <${+o+1}.0.0-0`:p&&(r=`>=${o}.${i}.0${l} <${o}.${+i+1}.0-0`),a("xRange return",r),r}))},P=(e,t)=>(a("replaceStars",e,t),e.trim().replace(c[u.STAR],"")),C=(e,t)=>(a("replaceGTE0",e,t),e.trim().replace(c[t.includePrerelease?u.GTE0PRE:u.GTE0],"")),O=e=>(t,r,n,o,i,s,a,l,c,u,p,d,f)=>`${r=_(n)?"":_(o)?`>=${n}.0.0${e?"-0":""}`:_(i)?`>=${n}.${o}.0${e?"-0":""}`:s?`>=${r}`:`>=${r}${e?"-0":""}`} ${l=_(c)?"":_(u)?`<${+c+1}.0.0-0`:_(p)?`<${c}.${+u+1}.0-0`:d?`<=${c}.${u}.${p}-${d}`:e?`<${c}.${u}.${+p+1}-0`:`<=${l}`}`.trim(),I=(e,t,r)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++)if(a(e[r].semver),e[r].semver!==s.ANY&&e[r].semver.prerelease.length>0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}},(e,t,r)=>{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 n=r(166);r(167),r(356),r(357),r(358),r(359),r(360);var o=r(18),i=r(169),s=r(361);Object.keys(s.DEPRECATED_ALIASES).forEach((e=>{o.FLIPPED_ALIAS_KEYS[e]=o.FLIPPED_ALIAS_KEYS[s.DEPRECATED_ALIASES[e]]})),n(o.VISITOR_KEYS),n(o.ALIAS_KEYS),n(o.FLIPPED_ALIAS_KEYS),n(o.NODE_FIELDS),n(o.BUILDER_KEYS),n(o.DEPRECATED_KEYS),n(i.PLACEHOLDERS_ALIAS),n(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,r)=>{var n=r(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 r,n="",o=0,i=-1,s=0,a=0;a<=e.length;++a){if(a<e.length)r=e.charCodeAt(a);else{if(47===r)break;r=47}if(47===r){if(i===a-1||1===s);else if(i!==a-1&&2===s){if(n.length<2||2!==o||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){var l=n.lastIndexOf("/");if(l!==n.length-1){-1===l?(n="",o=0):o=(n=n.slice(0,l)).length-1-n.lastIndexOf("/"),i=a,s=0;continue}}else if(2===n.length||1===n.length){n="",o=0,i=a,s=0;continue}t&&(n.length>0?n+="/..":n="..",o=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),o=a-i-1;i=a,s=0}else 46===r&&-1!==s?++s:s=-1}return n}var s={resolve:function(){for(var e,t="",r=!1,s=arguments.length-1;s>=-1&&!r;s--){var a;s>=0?a=arguments[s]:(void 0===e&&(e=n.cwd()),a=e),o(a),0!==a.length&&(t=a+"/"+t,r=47===a.charCodeAt(0))}return t=i(t,!r),r?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(o(e),0===e.length)return".";var t=47===e.charCodeAt(0),r=47===e.charCodeAt(e.length-1);return 0!==(e=i(e,!t)).length||t||(e="."),e.length>0&&r&&(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 r=arguments[t];o(r),r.length>0&&(void 0===e?e=r:e+="/"+r)}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 r=1;r<e.length&&47===e.charCodeAt(r);++r);for(var n=e.length,i=n-r,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(r+p)?u=p:0===p&&(u=0));break}var d=e.charCodeAt(r+p);if(d!==t.charCodeAt(a+p))break;47===d&&(u=p)}var f="";for(p=r+u+1;p<=n;++p)p!==n&&47!==e.charCodeAt(p)||(0===f.length?f+="..":f+="/..");return f.length>0?f+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),r=47===t,n=-1,i=!0,s=e.length-1;s>=1;--s)if(47===(t=e.charCodeAt(s))){if(!i){n=s;break}}else i=!1;return-1===n?r?"/":".":r&&1===n?"//":e.slice(0,n)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');o(e);var r,n=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(r=e.length-1;r>=0;--r){var c=e.charCodeAt(r);if(47===c){if(!s){n=r+1;break}}else-1===l&&(s=!1,l=r+1),a>=0&&(c===t.charCodeAt(a)?-1==--a&&(i=r):(a=-1,i=l))}return n===i?i=l:-1===i&&(i=e.length),e.slice(n,i)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!s){n=r+1;break}}else-1===i&&(s=!1,i=r+1);return-1===i?"":e.slice(n,i)},extname:function(e){o(e);for(var t=-1,r=0,n=-1,i=!0,s=0,a=e.length-1;a>=0;--a){var l=e.charCodeAt(a);if(47!==l)-1===n&&(i=!1,n=a+1),46===l?-1===t?t=a:1!==s&&(s=1):-1!==t&&(s=-1);else if(!i){r=a+1;break}}return-1===t||-1===n||0===s||1===s&&t===n-1&&t===r+1?"":e.slice(t,n)},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 r=t.dir||t.root,n=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+n:r+"/"+n:n}(0,e)},parse:function(e){o(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var r,n=e.charCodeAt(0),i=47===n;i?(t.root="/",r=1):r=0;for(var s=-1,a=0,l=-1,c=!0,u=e.length-1,p=0;u>=r;--u)if(47!==(n=e.charCodeAt(u)))-1===l&&(c=!1,l=u+1),46===n?-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,r)=>{var n=r(5),o=r(66),i=r(206),s=r(218),a=r(221),l=r(63),c=r(11),u=n.RangeError,p=n.Int8Array,d=p&&p.prototype,f=d&&d.set,h=i.aTypedArray,m=i.exportTypedArrayMethod,y=!c((function(){var e=new Uint8ClampedArray(2);return o(f,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),r=l(e);if(y)return o(f,this,r,t);var n=this.length,i=s(r),c=0;if(i+t>n)throw new u("Wrong length");for(;c<i;)this[t+c]=r[c++]}),!y||g)},e=>{const t=Symbol.for("gensync:v1:start"),r=Symbol.for("gensync:v1:suspend"),n="GENSYNC_EXPECTED_START",o="GENSYNC_EXPECTED_SUSPEND",i="GENSYNC_OPTIONS_ERROR",s="GENSYNC_RACE_NONEMPTY";function a(e,t,r,n){if(typeof r===e||n&&void 0===r)return;let o;throw o=n?`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:n,arity:o,sync:i,async:s}=e;return m(n,o,(function*(){const e=yield t;for(var n=arguments.length,o=new Array(n),a=0;a<n;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 r,l.hasOwnProperty("err"))throw l.err;return l.value}))}function u(e){let t;for(;!({value:t}=e.next()).done;)d(t,e);return t}function p(e,t,r){!function n(){try{let r;for(;!({value:r}=e.next()).done;){d(r,e);let t=!0,o=!1;const i=e.next((()=>{t?o=!0:n()}));if(t=!1,f(i,e),!o)return}return t(r)}catch(e){return r(e)}}()}function d(e,r){e!==t&&h(r,l(`Got unexpected yielded value in gensync generator: ${JSON.stringify(e)}. Did you perhaps mean to use 'yield*' instead of 'yield'?`,n))}function f(e,t){let{value:n,done:i}=e;(i||n!==r)&&h(t,l(i?"Unexpected generator completion. If you get this, it is probably a gensync bug.":`Expected GENSYNC_SUSPEND, got ${JSON.stringify(n)}. 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,r){if("string"==typeof e){const t=Object.getOwnPropertyDescriptor(r,"name");t&&!t.configurable||Object.defineProperty(r,"name",Object.assign(t||{},{configurable:!0,value:e}))}if("number"==typeof t){const e=Object.getOwnPropertyDescriptor(r,"length");e&&!e.configurable||Object.defineProperty(r,"length",Object.assign(e||{},{configurable:!0,value:t}))}return r}e.exports=Object.assign((function(e){let t=e;return t="function"!=typeof e?function(e){let{name:t,arity:r,sync:n,async:o,errback:s}=e;if(a("string","name",t,!0),a("number","arity",r,!0),a("function","sync",n),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$/,"")),n&&n.name&&"sync"!==n.name&&(e=n.name.replace(/Sync$/,"")),"string"==typeof e&&(t=e)}return"number"!=typeof r&&(r=n.length),c({name:t,arity:r,sync:function(e){return n.apply(this,e)},async:function(e,t,r){o?o.apply(this,e).then(t,r):s?s.call(this,...e,((e,n)=>{null==e?t(n):r(e)})):t(n.apply(this,e))}})}(e):function(e){return m(e.name,e.length,(function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.apply(this,r)}))}(e),Object.assign(t,function(e){const t={sync:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return u(e.apply(this,r))},async:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return new Promise(((t,n)=>{p(e.apply(this,r),t,n)}))},errback:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];const o=r.pop();if("function"!=typeof o)throw l("Asynchronous function called without callback","GENSYNC_ERRBACK_NO_CALLBACK");let i;try{i=e.apply(this,r)}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,r){const n=Array.from(e[0]);if(0===n.length)return void Promise.resolve().then((()=>t([])));let o=0;const i=n.map((()=>{}));n.forEach(((e,n)=>{p(e,(e=>{i[n]=e,o+=1,o===i.length&&t(i)}),r)}))}}),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,r){const n=Array.from(e[0]);if(0===n.length)throw l("Must race at least 1 item",s);for(const e of n)p(e,t,r)}})})},(e,t,r)=>{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 n=r(57);t.visitors=n;var o=r(0),i=r(35),s=r(100),a=r(28),l=r(183),c=r(444);const{VISITOR_KEYS:u,removeProperties:p,traverseFast:d}=o;function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=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&&!r&&"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]&&(n.explode(t),(0,s.traverseNode)(e,t,r,o,i,null,a))}}function h(e,t){e.node.type===t.type&&(t.has=!0,e.stop())}t.default=f,f.visitors=n,f.verify=n.verify,f.explode=n.explode,f.cheap=function(e,t){d(e,t)},f.node=function(e,t,r,n,o,i){(0,s.traverseNode)(e,t,r,n,o,i)},f.clearNode=function(e,t){p(e,t)},f.removeProperties=function(e,t){return d(e,f.clearNode,t),e},f.hasType=function(e,t,r){if(null!=r&&r.includes(e.type))return!1;if(e.type===t)return!0;const n={has:!1,type:t};return f(e,{noScope:!0,denylist:r,enter:h},null,n),n.has},f.cache=i},(e,t,r)=>{var n=r(11);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.declare=n,t.declarePreset=void 0;const r={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 r=Error.stackTraceLimit;let n;throw"number"==typeof r&&r<25&&(Error.stackTraceLimit=25),n="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 r&&(Error.stackTraceLimit=r),Object.assign(n,{code:"BABEL_VERSION_UNSUPPORTED",version:t,range:e})}(t,e.version)}};function n(e){return(t,n,o)=>{var s;let a;for(const e of Object.keys(r))t[e]||(null!=a||(a=i(t)),a[e]=r[e](a));return e(null!=(s=a)?s:t,n||{},o)}}Object.assign(r,{targets:()=>()=>({}),assumption:()=>()=>{}});const o=n;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,r,n=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(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var a,l=[],c=!1,u=-1;function p(){c&&a&&(c=!1,a.length?l=a.concat(l):u=-1,l.length&&d())}function d(){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(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function h(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new f(e,t)),1!==l.length||c||s(d)},f.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=h,n.addListener=h,n.once=h,n.off=h,n.removeListener=h,n.removeAllListeners=h,n.emit=h,n.prependListener=h,n.prependOnceListener=h,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},(e,t,r)=>{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),r=0;r<e;r++)t[r]=arguments[r];function i(e,r,i){for(const s of t)if(d(i)===s||(0,n.default)(s,i))return void(0,o.validateChild)(e,r,i);throw new TypeError(`Property ${r} 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),r=0;r<e;r++)t[r]=arguments[r];function n(e,r,n){if(t.indexOf(n)<0)throw new TypeError(`Property ${r} expected value to be one of ${JSON.stringify(t)} but got ${JSON.stringify(n)}`)}return n.oneOf=t,n},t.assertOptionalChainStart=function(){return function(e){var t;let r=e;for(;e;){const{type:e}=r;if("OptionalCallExpression"!==e){if("OptionalMemberExpression"!==e)break;if(r.optional)return;r=r.object}else{if(r.optional)return;r=r.callee}}throw new TypeError(`Non-optional ${e.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${null==(t=r)?void 0:t.type}`)}},t.assertShape=function(e){function t(t,r,n){const i=[];for(const r of Object.keys(e))try{(0,o.validateField)(t,r,n[r],e[r])}catch(e){if(e instanceof TypeError){i.push(e.message);continue}throw e}if(i.length)throw new TypeError(`Property ${r} of ${t.type} expected to have the following:\n${i.join("\n")}`)}return t.shapeOf=e,t},t.assertValueType=b,t.chain=_,t.default=w,t.defineAliasedType=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.aliases;var o;n||(r.inherits&&(n=null==(o=S[r.inherits].aliases)?void 0:o.slice()),null!=n||(n=[]),r.aliases=n);const i=t.filter((e=>!n.includes(e)));n.unshift(...i),w(e,r)}},t.typeIs=h,t.validate=f,t.validateArrayOfType=function(e){return f(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 f(h(e))};var n=r(42),o=r(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 d(e){return Array.isArray(e)?"array":null===e?"null":typeof e}function f(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,r,n){if(Array.isArray(n))for(let o=0;o<n.length;o++){const i=`${r}[${o}]`,s=n[o];e(t,i,s)}}return t.each=e,t}function v(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];function i(e,r,i){for(const s of t)if((0,n.default)(s,i))return void(0,o.validateChild)(e,r,i);throw new TypeError(`Property ${r} 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,r,n){if(d(n)!==e)throw new TypeError(`Property ${r} expected type of ${e} but got ${d(n)}`)}return t.type=e,t}function _(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];function n(){for(const e of t)e(...arguments)}if(n.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 n}const E=["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"],x=["default","optional","deprecated","validate"],S={};function w(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=t.inherits&&S[t.inherits]||{};let n=t.fields;if(!n&&(n={},r.fields)){const e=Object.getOwnPropertyNames(r.fields);for(const t of e){const e=r.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");n[t]={default:Array.isArray(o)?[]:o,optional:e.optional,deprecated:e.deprecated,validate:e.validate}}}const o=t.visitor||r.visitor||[],f=t.aliases||r.aliases||[],h=t.builder||r.builder||t.visitor||[];for(const r of Object.keys(t))if(-1===E.indexOf(r))throw new Error(`Unknown type option "${r}" on ${e}`);t.deprecatedAlias&&(u[t.deprecatedAlias]=e);for(const e of o.concat(h))n[e]=n[e]||{};for(const t of Object.keys(n)){const r=n[t];void 0!==r.default&&-1===h.indexOf(t)&&(r.optional=!0),void 0===r.default?r.default=null:r.validate||null==r.default||(r.validate=b(d(r.default)));for(const n of Object.keys(r))if(-1===x.indexOf(n))throw new Error(`Unknown field key "${n}" on ${e}.${t}`)}i[e]=t.visitor=o,c[e]=t.builder=h,l[e]=t.fields=n,s[e]=t.aliases=f,f.forEach((t=>{a[t]=a[t]||[],a[t].push(e)})),t.validate&&(p[e]=t.validate),S[e]=t}},(e,t,r)=>{var n=r(104),o=Function.prototype,i=o.call,s=n&&o.bind.bind(i,i);e.exports=n?s:function(e){return function(){return i.apply(e,arguments)}}},(e,t,r)=>{var n=r(6);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},(e,t,r)=>{function n(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}r(44),Object.defineProperty(t,"__esModule",{value:!0});class o{constructor(e,t,r){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=t,this.index=r}}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:r,column:n,index:i}=e;return new o(r,n+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:r}=e;return"UpdateExpression"===t?c.UpdateExpression[String(r)]: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:r}=e;return`A string literal cannot be used as an exported binding without \`from\`.\n- Did you mean \`export { '${t}' as '${r}' } 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:r}=e;return`Unexpected token${r?` '${r}'.`:""}${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:r}=e;return`The only valid meta property for ${t} is ${t}.${r}.`},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 d=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]);var f={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,r){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:r})}function g(e){let{toMessage:t}=e,r=n(e,h);return function e(n,i){const s=new SyntaxError;return Object.assign(s,r,{loc:n,pos:n.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 r;const{line:s,column:a,index:l}=null!=(r=t.loc)?r:n;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)} (${n.line}:${n.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 r={};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=n(s,m),c="string"==typeof a?()=>a:a;r[o]=g(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:o,toMessage:c},t?{syntaxPlugin:t}:{},l))}return r}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`(f)),{defineProperty:_}=Object,E=(e,t)=>_(e,t,{enumerable:!1,value:e[t]});function x(e){return e.loc.start&&E(e.loc.start,"index"),e.loc.end&&E(e.loc.end,"index"),e}class S{constructor(e,t){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!t}}const w={brace:new S("{"),j_oTag:new S("<tag"),j_cTag:new S("</tag"),j_expr:new S("<tag>...</tag>",!0)};w.template=new S("`",!0);const A=!0,T=!0,P=!0,C=!0,O=!0;class I{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 k=new Map;function D(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.keyword=e;const r=V(e,t);return k.set(e,r),r}function M(e,t){return V(e,{beforeExpr:A,binop:t})}let j=-1;const N=[],L=[],R=[],B=[],F=[],U=[];function V(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var r,n,o,i;return++j,L.push(e),R.push(null!=(r=t.binop)?r:-1),B.push(null!=(n=t.beforeExpr)&&n),F.push(null!=(o=t.startsExpr)&&o),U.push(null!=(i=t.prefix)&&i),N.push(new I(e,t)),j}function W(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var r,n,o,i;return++j,k.set(e,j),L.push(e),R.push(null!=(r=t.binop)?r:-1),B.push(null!=(n=t.beforeExpr)&&n),F.push(null!=(o=t.startsExpr)&&o),U.push(null!=(i=t.prefix)&&i),N.push(new I("name",t)),j}const $={bracketL:V("[",{beforeExpr:A,startsExpr:T}),bracketHashL:V("#[",{beforeExpr:A,startsExpr:T}),bracketBarL:V("[|",{beforeExpr:A,startsExpr:T}),bracketR:V("]"),bracketBarR:V("|]"),braceL:V("{",{beforeExpr:A,startsExpr:T}),braceBarL:V("{|",{beforeExpr:A,startsExpr:T}),braceHashL:V("#{",{beforeExpr:A,startsExpr:T}),braceR:V("}"),braceBarR:V("|}"),parenL:V("(",{beforeExpr:A,startsExpr:T}),parenR:V(")"),comma:V(",",{beforeExpr:A}),semi:V(";",{beforeExpr:A}),colon:V(":",{beforeExpr:A}),doubleColon:V("::",{beforeExpr:A}),dot:V("."),question:V("?",{beforeExpr:A}),questionDot:V("?."),arrow:V("=>",{beforeExpr:A}),template:V("template"),ellipsis:V("...",{beforeExpr:A}),backQuote:V("`",{startsExpr:T}),dollarBraceL:V("${",{beforeExpr:A,startsExpr:T}),templateTail:V("...`",{startsExpr:T}),templateNonTail:V("...${",{beforeExpr:A,startsExpr:T}),at:V("@"),hash:V("#",{startsExpr:T}),interpreterDirective:V("#!..."),eq:V("=",{beforeExpr:A,isAssign:C}),assign:V("_=",{beforeExpr:A,isAssign:C}),slashAssign:V("_=",{beforeExpr:A,isAssign:C}),xorAssign:V("_=",{beforeExpr:A,isAssign:C}),moduloAssign:V("_=",{beforeExpr:A,isAssign:C}),incDec:V("++/--",{prefix:O,postfix:!0,startsExpr:T}),bang:V("!",{beforeExpr:A,prefix:O,startsExpr:T}),tilde:V("~",{beforeExpr:A,prefix:O,startsExpr:T}),doubleCaret:V("^^",{startsExpr:T}),doubleAt:V("@@",{startsExpr:T}),pipeline:M("|>",0),nullishCoalescing:M("??",1),logicalOR:M("||",1),logicalAND:M("&&",2),bitwiseOR:M("|",3),bitwiseXOR:M("^",4),bitwiseAND:M("&",5),equality:M("==/!=/===/!==",6),lt:M("</>/<=/>=",7),gt:M("</>/<=/>=",7),relational:M("</>/<=/>=",7),bitShift:M("<</>>/>>>",8),bitShiftL:M("<</>>/>>>",8),bitShiftR:M("<</>>/>>>",8),plusMin:V("+/-",{beforeExpr:A,binop:9,prefix:O,startsExpr:T}),modulo:V("%",{binop:10,startsExpr:T}),star:V("*",{binop:10}),slash:M("/",10),exponent:V("**",{beforeExpr:A,binop:11,rightAssociative:!0}),_in:D("in",{beforeExpr:A,binop:7}),_instanceof:D("instanceof",{beforeExpr:A,binop:7}),_break:D("break"),_case:D("case",{beforeExpr:A}),_catch:D("catch"),_continue:D("continue"),_debugger:D("debugger"),_default:D("default",{beforeExpr:A}),_else:D("else",{beforeExpr:A}),_finally:D("finally"),_function:D("function",{startsExpr:T}),_if:D("if"),_return:D("return",{beforeExpr:A}),_switch:D("switch"),_throw:D("throw",{beforeExpr:A,prefix:O,startsExpr:T}),_try:D("try"),_var:D("var"),_const:D("const"),_with:D("with"),_new:D("new",{beforeExpr:A,startsExpr:T}),_this:D("this",{startsExpr:T}),_super:D("super",{startsExpr:T}),_class:D("class",{startsExpr:T}),_extends:D("extends",{beforeExpr:A}),_export:D("export"),_import:D("import",{startsExpr:T}),_null:D("null",{startsExpr:T}),_true:D("true",{startsExpr:T}),_false:D("false",{startsExpr:T}),_typeof:D("typeof",{beforeExpr:A,prefix:O,startsExpr:T}),_void:D("void",{beforeExpr:A,prefix:O,startsExpr:T}),_delete:D("delete",{beforeExpr:A,prefix:O,startsExpr:T}),_do:D("do",{isLoop:P,beforeExpr:A}),_for:D("for",{isLoop:P}),_while:D("while",{isLoop:P}),_as:W("as",{startsExpr:T}),_assert:W("assert",{startsExpr:T}),_async:W("async",{startsExpr:T}),_await:W("await",{startsExpr:T}),_defer:W("defer",{startsExpr:T}),_from:W("from",{startsExpr:T}),_get:W("get",{startsExpr:T}),_let:W("let",{startsExpr:T}),_meta:W("meta",{startsExpr:T}),_of:W("of",{startsExpr:T}),_sent:W("sent",{startsExpr:T}),_set:W("set",{startsExpr:T}),_source:W("source",{startsExpr:T}),_static:W("static",{startsExpr:T}),_using:W("using",{startsExpr:T}),_yield:W("yield",{startsExpr:T}),_asserts:W("asserts",{startsExpr:T}),_checks:W("checks",{startsExpr:T}),_exports:W("exports",{startsExpr:T}),_global:W("global",{startsExpr:T}),_implements:W("implements",{startsExpr:T}),_intrinsic:W("intrinsic",{startsExpr:T}),_infer:W("infer",{startsExpr:T}),_is:W("is",{startsExpr:T}),_mixins:W("mixins",{startsExpr:T}),_proto:W("proto",{startsExpr:T}),_require:W("require",{startsExpr:T}),_satisfies:W("satisfies",{startsExpr:T}),_keyof:W("keyof",{startsExpr:T}),_readonly:W("readonly",{startsExpr:T}),_unique:W("unique",{startsExpr:T}),_abstract:W("abstract",{startsExpr:T}),_declare:W("declare",{startsExpr:T}),_enum:W("enum",{startsExpr:T}),_module:W("module",{startsExpr:T}),_namespace:W("namespace",{startsExpr:T}),_interface:W("interface",{startsExpr:T}),_type:W("type",{startsExpr:T}),_opaque:W("opaque",{startsExpr:T}),name:V("name",{startsExpr:T}),string:V("string",{startsExpr:T}),num:V("num",{startsExpr:T}),bigint:V("bigint",{startsExpr:T}),decimal:V("decimal",{startsExpr:T}),regexp:V("regexp",{startsExpr:T}),privateName:V("#name",{startsExpr:T}),eof:V("eof"),jsxName:V("jsxName"),jsxText:V("jsxText",{beforeExpr:!0}),jsxTagStart:V("jsxTagStart",{startsExpr:!0}),jsxTagEnd:V("jsxTagEnd"),placeholder:V("%%",{startsExpr:!0})};function K(e){return e>=93&&e<=132}function q(e){return e>=58&&e<=132}function z(e){return e>=58&&e<=136}function H(e){return F[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 N[e]}N[8].updateContext=e=>{e.pop()},N[5].updateContext=N[7].updateContext=N[23].updateContext=e=>{e.push(w.brace)},N[22].updateContext=e=>{e[e.length-1]===w.template?e.pop():e.push(w.template)},N[142].updateContext=e=>{e.push(w.j_expr,w.j_oTag)};let ee="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",te="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const re=new RegExp("["+ee+"]"),ne=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 r=65536;for(let n=0,o=t.length;n<o;n+=2){if(r+=t[n],r>e)return!1;if(r+=t[n+1],r>=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&&re.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&&ne.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 de(e,t){return t&&"await"===e||"enum"===e}function fe(e,t){return de(e,t)||ue.has(e)}function he(e){return pe.has(e)}function me(e,t){return fe(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,r){let n=this.currentScope();if(8&t||16&t){this.checkRedeclarationInScope(n,e,t,r);let o=n.names.get(e)||0;16&t?o|=4:(n.firstLexicalName||(n.firstLexicalName=e),o|=2),n.names.set(e,o),8&t&&this.maybeExportDefined(n,e)}else if(4&t)for(let o=this.scopeStack.length-1;o>=0&&(n=this.scopeStack[o],this.checkRedeclarationInScope(n,e,t,r),n.names.set(e,1|(n.names.get(e)||0)),this.maybeExportDefined(n,e),!(387&n.flags));--o);this.parser.inModule&&1&n.flags&&this.undefinedExports.delete(e)}maybeExportDefined(e,t){this.parser.inModule&&1&e.flags&&this.undefinedExports.delete(t)}checkRedeclarationInScope(e,t,r,n){this.isRedeclaredInScope(e,t,r)&&this.parser.raise(b.VarRedeclaration,n,{identifierName:t})}isRedeclaredInScope(e,t,r){if(!(1&r))return!1;if(8&r)return e.names.has(t);const n=e.names.get(t);return 16&r?(2&n)>0||!this.treatFunctionsAsVarInScope(e)&&(1&n)>0:(2&n)>0&&!(8&e.flags&&e.firstLexicalName===t)||!this.treatFunctionsAsVarInScope(e)&&(4&n)>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,r){const n=this.currentScope();if(2048&t)return this.checkRedeclarationInScope(n,e,t,r),this.maybeExportDefined(n,e),void n.declareFunctions.add(e);super.declareName(e,t,r)}isRedeclaredInScope(e,t,r){if(super.isRedeclaredInScope(e,t,r))return!0;if(2048&r&&!e.declareFunctions.has(t)){const r=e.names.get(t);return(4&r)>0||(2&r)>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,r]=e;if(!this.hasPlugin(t))return!1;const n=this.plugins.get(t);for(const e of Object.keys(r))if((null==n?void 0:n[e])!==r[e])return!1;return!0}}getPluginOption(e,t){var r;return null==(r=this.plugins.get(e))?void 0:r[t]}}function xe(e,t){void 0===e.trailingComments?e.trailingComments=t:e.trailingComments.unshift(...t)}function Se(e,t){void 0===e.innerComments?e.innerComments=t:e.innerComments.unshift(...t)}function we(e,t,r){let n=null,o=t.length;for(;null===n&&o>0;)n=t[--o];null===n||n.start>r.start?Se(e,r.comments):xe(n,r.comments)}class Ae 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,r=t.length;if(0===r)return;let n=r-1;const o=t[n];o.start===e.end&&(o.leadingNode=e,n--);const{start:i}=e;for(;n>=0;n--){const r=t[n],o=r.end;if(!(o>i)){o===i&&(r.trailingNode=e);break}r.containingNode=e,this.finalizeComment(r),t.splice(n,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:r,start:n}=e;if(44===this.input.charCodeAt(n-1))switch(r.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":we(r,r.properties,e);break;case"CallExpression":case"OptionalCallExpression":we(r,r.arguments,e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":we(r,r.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":we(r,r.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":we(r,r.specifiers,e);break;default:Se(r,t)}else Se(r,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:r}=t;if(0===r)return;const n=t[r-1];n.leadingNode===e&&(n.leadingNode=null)}resetPreviousIdentifierLeadingComments(e){const{commentStack:t}=this.state,{length:r}=t;0!==r&&(t[r-1].trailingNode===e?t[r-1].trailingNode=null:r>=2&&t[r-2].trailingNode===e&&(t[r-2].trailingNode=null))}takeSurroundingComments(e,t,r){const{commentStack:n}=this.state,o=n.length;if(0===o)return;let i=o-1;for(;i>=0;i--){const o=n[i],s=o.end;if(o.start===r)o.leadingNode=e;else if(s===t)o.trailingNode=e;else if(s<t)break}}}const Te=/\r\n?|[\n\u2028\u2029]/,Pe=new RegExp(Te.source,"g");function Ce(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}const Oe=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Ie=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g,ke=new RegExp("(?=("+Ie.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y");function De(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 Me{constructor(){this.flags=1024,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=139,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[w.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(1&this.flags)>0}set strict(e){e?this.flags|=1:this.flags&=-2}init(e){let{strictMode:t,sourceType:r,startLine:n,startColumn:i}=e;this.strict=!1!==t&&(!0===t||"module"===r),this.curLine=n,this.lineStart=-i,this.startLoc=this.endLoc=new o(n,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 Me;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 je=function(e){return e>=48&&e<=57};const Ne={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,r,n,o,i){const s=r,a=n,l=o;let c="",u=null,p=r;const{length:d}=t;for(;;){if(r>=d){i.unterminated(s,a,l),c+=t.slice(p,r);break}const f=t.charCodeAt(r);if(Be(e,f,t,r)){c+=t.slice(p,r);break}if(92===f){c+=t.slice(p,r);const s=Fe(t,r,n,o,"template"===e,i);null!==s.ch||u?c+=s.ch:u={pos:r,lineStart:n,curLine:o},({pos:r,lineStart:n,curLine:o}=s),p=r}else 8232===f||8233===f?(++o,n=++r):10===f||13===f?"template"===e?(c+=t.slice(p,r)+"\n",++r,13===f&&10===t.charCodeAt(r)&&++r,++o,p=n=r):i.unterminated(s,a,l):++r}return{pos:r,str:c,firstInvalidLoc:u,lineStart:n,curLine:o,containsInvalid:!!u}}function Be(e,t,r,n){return"template"===e?96===t||36===t&&123===r.charCodeAt(n+1):t===("double"===e?34:39)}function Fe(e,t,r,n,o,i){const s=!o;t++;const a=e=>({pos:t,ch:e,lineStart:r,curLine:n}),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}=Ue(e,t,r,n,2,!1,s,i)),a(null===o?null:String.fromCharCode(o))}case 117:{let o;return({code:o,pos:t}=We(e,t,r,n,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:r=t,++n;case 8232:case 8233:return a("");case 56:case 57:if(o)return a(null);i.strictNumericEscape(t-1,r,n);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,r,n)}return a(String.fromCharCode(c))}return a(String.fromCharCode(l))}}function Ue(e,t,r,n,o,i,s,a){const l=t;let c;return({n:c,pos:t}=Ve(e,t,r,n,16,o,i,!1,a,!s)),null===c&&(s?a.invalidEscapeSequence(l,r,n):t=l-1),{code:c,pos:t}}function Ve(e,t,r,n,o,i,s,a,l,c){const u=t,p=16===o?Ne.hex:Ne.decBinOct,d=16===o?Le.hex:10===o?Le.dec:8===o?Le.oct:Le.bin;let f=!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:je(i)?i-48:1/0,u>=o){if(u<=9&&c)return{n:null,pos:t};if(u<=9&&l.invalidDigit(t,r,n,o))u=0;else{if(!s)break;u=0,f=!0}}++t,h=h*o+u}else{const o=e.charCodeAt(t-1),i=e.charCodeAt(t+1);if(a){if(Number.isNaN(i)||!d(i)||p.has(o)||p.has(i)){if(c)return{n:null,pos:t};l.unexpectedNumericSeparator(t,r,n)}}else{if(c)return{n:null,pos:t};l.numericSeparatorInEscapeSequence(t,r,n)}++t}}return t===u||null!=i&&t-u!==i||f?{n:null,pos:t}:{n:h,pos:t}}function We(e,t,r,n,o,i){let s;if(123===e.charCodeAt(t)){if(++t,({code:s,pos:t}=Ue(e,t,r,n,e.indexOf("}",t)-t,!0,o,i)),++t,null!==s&&s>1114111){if(!o)return{code:null,pos:t};i.invalidCodePoint(t,r,n)}}else({code:s,pos:t}=Ue(e,t,r,n,4,!1,o,i));return{code:s,pos:t}}function $e(e,t,r){return new o(r,e-t,e)}const Ke=new Set([103,109,115,105,121,117,100,118]);class qe{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 Ae{constructor(e,t){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(e,t,r,n)=>!!this.options.errorRecovery&&(this.raise(b.InvalidDigit,$e(e,t,r),{radix:n}),!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,r)=>{this.recordStrictModeErrors(b.StrictNumericEscape,$e(e,t,r))},unterminated:(e,t,r)=>{throw this.raise(b.UnterminatedString,$e(e-1,t,r))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(b.StrictNumericEscape),unterminated:(e,t,r)=>{throw this.raise(b.UnterminatedTemplate,$e(e,t,r))}}),this.state=new Me,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 qe(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 Oe.lastIndex=e,Oe.test(this.input)?Oe.lastIndex:e}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(e){return Ie.lastIndex=e,Ie.test(this.input)?Ie.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 r=this.input.charCodeAt(e);56320==(64512&r)&&(t=65536+((1023&t)<<10)+(1023&r))}return t}setStrict(e){this.state.strict=e,e&&(this.state.strictErrors.forEach((e=>{let[t,r]=e;return this.raise(t,r)})),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 r=this.state.pos,n=this.input.indexOf(e,r+2);if(-1===n)throw this.raise(b.UnterminatedComment,this.state.curPosition());for(this.state.pos=n+e.length,Pe.lastIndex=r+2;Pe.test(this.input)&&Pe.lastIndex<=n;)++this.state.curLine,this.state.lineStart=Pe.lastIndex;if(this.isLookahead)return;const o={type:"CommentBlock",value:this.input.slice(r+2,n),start:r,end:n+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 r;this.isLookahead||(r=this.state.curPosition());let n=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!Ce(n)&&++this.state.pos<this.length;)n=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(r,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 r=this.input.charCodeAt(this.state.pos);switch(r){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(De(r))++this.state.pos;else if(45===r&&!this.inModule&&this.options.annexB){const r=this.state.pos;if(45!==this.input.charCodeAt(r+1)||62!==this.input.charCodeAt(r+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!==r||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 r={start:e,end:this.state.pos,comments:t,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(r)}}finishToken(e,t){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();const r=this.state.type;this.state.type=e,this.state.value=t,this.isLookahead||this.updateContext(r)}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;!Ce(e)&&++this.state.pos<this.length;)e=this.input.charCodeAt(this.state.pos);const r=this.input.slice(t+2,this.state.pos);return this.finishToken(28,r),!0}readToken_mult_modulo(e){let t=42===e?55:54,r=1,n=this.input.charCodeAt(this.state.pos+1);42===e&&42===n&&(r++,n=this.input.charCodeAt(this.state.pos+2),t=57),61!==n||this.state.inType||(r++,t=37===e?33:30),this.finishOp(t,r)}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 r=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,r)}readRegexp(){const e=this.state.startLoc,t=this.state.start+1;let r,n,{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(Ce(t))throw this.raise(b.UnterminatedRegExp,s(e,1));if(r)r=!1;else{if(91===t)n=!0;else if(93===t&&n)n=!1;else if(47===t&&!n)break;r=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(Ke.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 r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const{n:o,pos:i}=Ve(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,t,r,n,this.errorHandlers_readInt,!1);return this.state.pos=i,o}readRadixNumber(e){const t=this.state.curPosition();let r=!1;this.state.pos+=2;const n=this.readInt(e);null==n&&this.raise(b.InvalidDigit,s(t,2),{radix:e});const o=this.input.charCodeAt(this.state.pos);if(110===o)++this.state.pos,r=!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(r){const e=this.input.slice(t.index,this.state.pos).replace(/[_n]/g,"");this.finishToken(135,e)}else this.finishToken(134,n)}readNumber(e){const t=this.state.pos,r=this.state.curPosition();let n=!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,r),!this.state.strict){const t=e.indexOf("_");t>0&&this.raise(b.ZeroDigitNumericSeparator,s(r,t))}l=c&&!/[89]/.test(e)}let u=this.input.charCodeAt(this.state.pos);if(46!==u||l||(++this.state.pos,this.readInt(10),n=!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,r),n=!0,a=!0,u=this.input.charCodeAt(this.state.pos)),110===u&&((n||c)&&this.raise(b.InvalidBigIntLiteral,r),++this.state.pos,o=!0),109===u&&(this.expectPlugin("decimal",this.state.curPosition()),(a||c)&&this.raise(b.InvalidDecimal,r),++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 d=l?parseInt(p,8):parseFloat(p);this.finishToken(134,d)}readCodePoint(e){const{code:t,pos:r}=We(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=r,t}readString(e){const{str:t,pos:r,curLine:n,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=r+1,this.state.lineStart=o,this.state.curLine=n,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:r,pos:n,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=n+1,this.state.lineStart=s,this.state.curLine=i,r&&(this.state.firstInvalidTemplateEscapePos=new o(r.curLine,r.pos-r.lineStart,r.pos)),96===this.input.codePointAt(n)?this.finishToken(24,r?null:e+t+"`"):(this.state.pos++,this.finishToken(25,r?null:e+t+"${"))}recordStrictModeErrors(e,t){const r=t.index;this.state.strict&&!this.state.strictErrors.has(r)?this.raise(e,t):this.state.strictErrors.set(r,[e,t])}readWord1(e){this.state.containsEsc=!1;let t="";const r=this.state.pos;let n=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(n,this.state.pos);const e=this.state.curPosition(),o=this.state.pos===r?ae:le;if(117!==this.input.charCodeAt(++this.state.pos)){this.raise(b.MissingUnicodeEscape,this.state.curPosition()),n=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)),n=this.state.pos}}}return t+this.input.slice(n,this.state.pos)}readWord(e){const t=this.readWord1(e),r=k.get(t);void 0!==r?this.finishToken(r,X(r)):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 r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=e(t instanceof o?t:t.loc.start,r);if(!this.options.errorRecovery)throw n;return this.isLookahead||this.state.errors.push(n),n}raiseOverwrite(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=t instanceof o?t:t.loc.start,i=n.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(n,r);if(o.loc.index<i)break}return this.raise(e,t,r)}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,r,n)=>{this.raise(e,$e(t,r,n))}}}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[r,n]of Array.from(e.undefinedPrivateNames))t?t.undefinedPrivateNames.has(r)||t.undefinedPrivateNames.set(r,n):this.parser.raise(b.InvalidPrivateFieldResolution,n,{identifierName:r})}declarePrivateName(e,t,r){const{privateNames:n,loneAccessors:o,undefinedPrivateNames:i}=this.current();let s=n.has(e);if(3&t){const r=s&&o.get(e);r?(s=(3&r)==(3&t)||(4&r)!=(4&t),s||o.delete(e)):s||o.set(e,t)}s&&this.parser.raise(b.PrivateNameRedeclaration,r,{identifierName:e}),n.add(e),i.delete(e)}usePrivateName(e,t){let r;for(r of this.stack)if(r.privateNames.has(e))return;r?r.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 r=t.index;this.declarationErrors.set(r,[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 r=t.loc.start,{stack:n}=this;let o=n.length-1,i=n[o];for(;!i.isCertainlyParameterDeclaration();){if(!i.canBeArrowParameterDeclaration())return;i.recordDeclarationError(e,r),i=n[--o]}this.parser.raise(e,r)}recordArrowParameterBindingError(e,t){const{stack:r}=this,n=r[r.length-1],o=t.loc.start;if(n.isCertainlyParameterDeclaration())this.parser.raise(e,o);else{if(!n.canBeArrowParameterDeclaration())return;n.recordDeclarationError(e,o)}}recordAsyncArrowParametersError(e){const{stack:t}=this;let r=t.length-1,n=t[r];for(;n.canBeArrowParameterDeclaration();)2===n.type&&n.recordDeclarationError(b.AwaitBindingIdentifier,e),n=t[--r]}validateAsPattern(){const{stack:e}=this,t=e[e.length-1];t.canBeArrowParameterDeclaration()&&t.iterateErrors((t=>{let[r,n]=t;this.parser.raise(r,n);let o=e.length-2,i=e[o];for(;i.canBeArrowParameterDeclaration();)i.clearDeclarationError(n.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,r){let n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!e)return;const o=e.extra=e.extra||{};n?o[t]=r:Object.defineProperty(o,t,{enumerable:n,value:r})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,t){const r=e+t.length;if(this.input.slice(e,r)===t){const e=this.input.charCodeAt(r);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 Te.test(this.input.slice(this.state.lastTokEndLoc.index,this.state.start))}hasFollowingLineBreak(){return ke.lastIndex=this.state.end,ke.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 r={node:null};try{const n=e((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;throw r.node=e,r}));if(this.state.errors.length>t.errors.length){const e=this.state;return this.state=t,this.state.tokensLength=e.tokensLength,{node:n,error:e.errors[t.errors.length],thrown:!1,aborted:!1,failState:e}}return{node:n,error:null,thrown:!1,aborted:!1,failState:null}}catch(e){const n=this.state;if(this.state=t,e instanceof SyntaxError)return{node:null,error:e,thrown:!0,aborted:!1,failState:n};if(e===r)return{node:r.node,error:null,thrown:!1,aborted:!0,failState:n};throw e}}checkExpressionErrors(e,t){if(!e)return!1;const{shorthandAssignLoc:r,doubleProtoLoc:n,privateKeyLoc:o,optionalParametersLoc:i}=e;if(!t)return!!(r||n||i||o);null!=r&&this.raise(b.InvalidCoverInitializedName,r),null!=n&&this.raise(b.DuplicateProto,n),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 r=this.exportedIdentifiers;this.exportedIdentifiers=new Set;const n=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=r,this.inModule=n,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 rt{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}}class nt{constructor(e,t,r){this.type="",this.start=t,this.end=0,this.loc=new i(r),null!=e&&e.options.ranges&&(this.range=[t,0]),null!=e&&e.filename&&(this.loc.filename=e.filename)}}const ot=nt.prototype;function it(e){const{type:t,start:r,end:n,loc:o,range:i,extra:s,name:a}=e,l=Object.create(ot);return l.type=t,l.start=r,l.end=n,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 nt(void 0,this.start,this.loc.start),t=Object.keys(this);for(let r=0,n=t.length;r<n;r++){const n=t[r];"leadingComments"!==n&&"trailingComments"!==n&&"innerComments"!==n&&(e[n]=this[n])}return e};class st extends tt{startNode(){const e=this.state.startLoc;return new nt(this,e.index,e)}startNodeAt(e){return new nt(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,r){return e.type=t,e.end=r.index,e.loc.end=r,this.options.ranges&&(e.range[1]=r.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:r}=e;return`Boolean enum members need to be initialized. Use either \`${t} = true,\` or \`${t} = false,\` in enum \`${r}\`.`},EnumDuplicateMemberName:e=>{let{memberName:t,enumName:r}=e;return`Enum member names need to be unique, but the name \`${t}\` has already been used before in enum \`${r}\`.`},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:r}=e;return`Enum type \`${t}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${r}\`.`},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:r,explicitType:n}=e;return`Enum \`${t}\` has type \`${n}\`, so the initializer of \`${r}\` needs to be a ${n} literal.`},EnumInvalidMemberInitializerSymbolType:e=>{let{enumName:t,memberName:r}=e;return`Symbol enum members cannot be initialized. Use \`${r},\` in enum \`${t}\`.`},EnumInvalidMemberInitializerUnknownType:e=>{let{enumName:t,memberName:r}=e;return`The enum member initializer for \`${r}\` needs to be a literal (either a boolean, number, or string) in enum \`${t}\`.`},EnumInvalidMemberName:e=>{let{enumName:t,memberName:r,suggestion:n}=e;return`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${r}\`, consider using \`${n}\`, in enum \`${t}\`.`},EnumNumberMemberNotInitialized:e=>{let{enumName:t,memberName:r}=e;return`Number enum members need to be initialized, e.g. \`${r} = 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:r}=e;return`\`declare export ${t}\` is not supported. Use \`${r}\` 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/,dt={__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:"♦"},ft=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:r}=e;return`Unexpected token \`${t}\`. Did you mean \`${r}\` 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 r=this.importsStack.length;if(this.importsStack[r-1].has(e))return!0;if(!t&&r>1)for(let t=0;t<r-1;t++)if(this.importsStack[t].has(e))return!0;return!1}declareName(e,t,r){if(4096&t)return this.hasImport(e,!0)&&this.parser.raise(b.VarRedeclaration,r,{identifierName:e}),void this.importsStack[this.importsStack.length-1].add(e);const n=this.currentScope();let o=n.tsNames.get(e)||0;if(1024&t)return this.maybeExportDefined(n,e),void n.tsNames.set(e,16|o);super.declareName(e,t,r),2&t&&(1&t||(this.checkRedeclarationInScope(n,e,t,r),this.maybeExportDefined(n,e)),o|=1),256&t&&(o|=2),512&t&&(o|=4),128&t&&(o|=8),o&&n.tsNames.set(e,o)}isRedeclaredInScope(e,t,r){const n=e.tsNames.get(t);return(2&n)>0?!(256&r)||!!(512&r)!=(4&n)>0:128&r&&(8&n)>0?!!(2&e.names.get(t))&&!!(1&r):!!(2&r&&(1&n)>0)||super.isRedeclaredInScope(e,t,r)}checkLocalExport(e){const{name:t}=e;if(!this.hasImport(t)){for(let e=this.scopeStack.length-1;e>=0;e--){const r=this.scopeStack[e].tsNames.get(t);if((1&r)>0||(16&r)>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 r,n;let o;switch(("ParenthesizedExpression"===e.type||null!=(r=e.extra)&&r.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 r=0,n=e.properties.length,o=n-1;r<n;r++){var i;const n=e.properties[r],s=r===o;this.toAssignableObjectExpressionProp(n,s,t),s&&"RestElement"===n.type&&null!=(i=e.extra)&&i.trailingCommaLoc&&this.raise(b.RestTrailingComma,e.extra.trailingCommaLoc)}break;case"ObjectProperty":{const{key:r,value:n}=e;this.isPrivateName(r)&&this.classScope.usePrivateName(this.getPrivateNameSV(r),r.loc.start),this.toAssignable(n,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==(n=e.extra)?void 0:n.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,r){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 n=e.argument;this.checkToRestConversion(n,!1),this.toAssignable(n,r),t||this.raise(b.RestTrailingComma,e)}else this.toAssignable(e,r)}toAssignableList(e,t,r){const n=e.length-1;for(let o=0;o<=n;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,r)}else this.toAssignable(i,r);"RestElement"===i.type&&(o<n?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,r)=>"ObjectMethod"!==e.type&&(r===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,r){const n=1&r,o=[];let i=!0;for(;!this.eat(e);)if(i?i=!1:this.expect(12),n&&this.match(12))o.push(null);else{if(this.eat(e))break;if(this.match(21)){if(o.push(this.parseAssignableListItemTypes(this.parseRestBinding(),r)),!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(r,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:r}=this.state;return 21===t?this.parseBindingRestProperty(e):(138===t?(this.expectPlugin("destructuringPrivate",r),this.classScope.usePrivateName(this.state.value,r),e.key=this.parsePrivateName()):this.parsePropertyName(e),e.method=!1,this.parseObjPropValue(e,r,!1,!1,!0,!1))}parseAssignableListItem(e,t){const r=this.parseMaybeDefault();this.parseAssignableListItemTypes(r,e);const n=this.parseMaybeDefault(r.loc.start,r);return t.length&&(r.decorators=t),n}parseAssignableListItemTypes(e,t){return e}parseMaybeDefault(e,t){var r;if(null!=e||(e=this.state.startLoc),t=null!=(r=t)?r:this.parseBindingAtom(),!this.eat(29))return t;const n=this.startNodeAt(e);return n.left=t,n.right=this.parseMaybeAssignAllowIn(),this.finishNode(n,"AssignmentPattern")}isValidLVal(e,t,r){return n={AssignmentPattern:"left",RestElement:"argument",ObjectProperty:"value",ParenthesizedExpression:"expression",ArrayPattern:"elements",ObjectPattern:"properties"},o=e,Object.hasOwnProperty.call(n,o)&&n[o];var n,o}isOptionalMemberExpression(e){return"OptionalMemberExpression"===e.type}checkLVal(e,t){let{in:r,binding:n=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"!==r.type&&this.raise(b.InvalidLhsOptionalChaining,e,{ancestor:r})),void(64!==n&&this.raise(b.InvalidPropertyBindingPattern,e));if("Identifier"===l){this.checkIdentifier(e,n,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"===r.type,n);if(!0===u)return;if(!1===u){const t=64===n?b.InvalidLhs:b.InvalidLhsBinding;return void this.raise(t,e,{ancestor:r})}const[p,d]=Array.isArray(u)?u:[u,"ParenthesizedExpression"===l],f="ArrayPattern"===l||"ObjectPattern"===l?{type:l}:r;for(const t of[].concat(e[p]))t&&this.checkLVal(t,{in:f,binding:n,checkClashes:o,strictModeChanged:i,hasParenthesizedAncestor:d})}checkIdentifier(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.state.strict&&(r?me(e.name,this.inModule):he(e.name))&&(64===t?this.raise(b.StrictEvalArguments,e,{referenceName:e.name}):this.raise(b.StrictEvalArgumentsBinding,e,{bindingName:e.name})),8192&t&&"let"===e.name&&this.raise(b.LetInLexicalBinding,e),64&t||this.declareNameFromIdentifier(e,t)}declareNameFromIdentifier(e,t){this.scope.declareName(e.name,t,e.loc.start)}checkToRestConversion(e,t){switch(e.type){case"ParenthesizedExpression":this.checkToRestConversion(e.expression,t);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(t)break;default:this.raise(b.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){return!!this.match(12)&&(this.raise(this.lookaheadCharCode()===e?b.RestTrailingComma:b.ElementAfterRest,this.state.startLoc),!0)}}function _t(e){if(!e)throw new Error("Assert fail")}const Et=v`typescript`({AbstractMethodHasImplementation:e=>{let{methodName:t}=e;return`Method '${t}' cannot have an implementation because it is marked abstract.`},AbstractPropertyHasInitializer:e=>{let{propertyName:t}=e;return`Property '${t}' cannot have an initializer because it is marked abstract.`},AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:e=>{let{kind:t}=e;return`'declare' is not allowed in ${t}ters.`},DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:e=>{let{modifier:t}=e;return"Accessibility modifier already seen."},DuplicateModifier:e=>{let{modifier:t}=e;return`Duplicate modifier: '${t}'.`},EmptyHeritageClauseType:e=>{let{token:t}=e;return`'${t}' list cannot be empty.`},EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:e=>{let{modifiers:t}=e;return`'${t[0]}' modifier cannot be used with '${t[1]}' modifier.`},IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:e=>{let{modifier:t}=e;return`Index signatures cannot have an accessibility modifier ('${t}').`},IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:e=>{let{modifier:t}=e;return`'${t}' modifier cannot appear on a type member.`},InvalidModifierOnTypeParameter:e=>{let{modifier:t}=e;return`'${t}' modifier cannot appear on a type parameter.`},InvalidModifierOnTypeParameterPositions:e=>{let{modifier:t}=e;return`'${t}' modifier can only appear on a type parameter of a class, interface or type alias.`},InvalidModifiersOrder:e=>{let{orderedModifiers:t}=e;return`'${t[0]}' modifier must precede '${t[1]}' modifier.`},InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:e=>{let{modifier:t}=e;return`Private elements cannot have an accessibility modifier ('${t}').`},ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:e=>{let{typeParameterName:t}=e;return`Single type parameter ${t} should have a trailing comma. Example usage: <${t},>.`},StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:e=>{let{type:t}=e;return`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${t}.`}});function xt(e){return"private"===e||"public"===e||"protected"===e}function St(e){return"in"===e||"out"===e}function wt(e){if("MemberExpression"!==e.type)return!1;const{computed:t,property:r}=e;return(!t||"StringLiteral"===r.type||!("TemplateLiteral"!==r.type||r.expressions.length>0))&&Pt(e.object)}function At(e,t){var r;const{type:n}=e;if(null!=(r=e.extra)&&r.parenthesized)return!1;if(t){if("Literal"===n){const{value:t}=e;if("string"==typeof t||"boolean"==typeof t)return!0}}else if("StringLiteral"===n||"BooleanLiteral"===n)return!0;return!(!Tt(e,t)&&!function(e,t){if("UnaryExpression"===e.type){const{operator:r,argument:n}=e;if("-"===r&&Tt(n,t))return!0}return!1}(e,t))||"TemplateLiteral"===n&&0===e.expressions.length||!!wt(e)}function Tt(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 Ct=v`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."});function Ot(e,t){const[r,n]="string"==typeof t?[t,{}]:t,o=Object.keys(n),i=0===o.length;return e.some((e=>{if("string"==typeof e)return i&&e===r;{const[t,i]=e;if(t!==r)return!1;for(const e of o)if(i[e]!==n[e])return!1;return!0}}))}function It(e,t,r){const n=e.find((e=>Array.isArray(e)?e[0]===t:e===t));return n&&Array.isArray(n)&&n.length>1?n[1][r]:null}const kt=["minimal","fsharp","hack","smart"],Dt=["^^","@@","^","%","#"],Mt=["hash","bar"],jt={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:r}=e,n=null;try{n=new RegExp(t,r)}catch(e){}const o=this.estreeParseLiteral(n);return o.regex={pattern:t,flags:r},o}parseBigIntLiteral(e){let t;try{t=BigInt(e)}catch(e){t=null}const r=this.estreeParseLiteral(t);return r.bigint=String(r.value||e),r}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 r=e;return r.type="ExpressionStatement",r.expression=t,r.directive=t.extra.rawValue,delete t.extra,r}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,r,n,o){super.parseBlockBody(e,t,r,n,o);const i=e.directives.map((e=>this.directiveToStmt(e)));e.body=i.concat(e.body),delete e.directives}pushClassMethod(e,t,r,n,o,i){this.parseMethod(t,r,n,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 r=super.parseLiteral(e,t);return r.raw=r.extra.raw,delete r.extra,r}parseFunctionBody(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];super.parseFunctionBody(e,t,r),e.expression="BlockStatement"!==e.body.type}parseMethod(e,t,r,n,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,r,n,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,r,n,o){const i=super.parseObjectMethod(e,t,r,n,o);return i&&(i.type="Property","method"===i.kind&&(i.kind="init"),i.shorthand=!1),i}parseObjectProperty(e,t,r,n){const o=super.parseObjectProperty(e,t,r,n);return o&&(o.kind="init",o.type="Property"),o}isValidLVal(e,t,r){return"Property"===e?"value":super.isValidLVal(e,t,r)}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:r,value:n}=e;this.isPrivateName(r)&&this.classScope.usePrivateName(this.getPrivateNameSV(r),r.loc.start),this.toAssignable(n,t)}else super.toAssignable(e,t)}toAssignableObjectExpressionProp(e,t,r){"get"===e.kind||"set"===e.kind?this.raise(b.PatternHasAccessor,e.key):e.method?this.raise(b.PatternHasMethod,e.key):super.toAssignableObjectExpressionProp(e,t,r)}finishCallExpression(e,t){const r=super.finishCallExpression(e,t);var n,o;return"Import"===r.callee.type&&(r.type="ImportExpression",r.source=r.arguments[0],(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))&&(r.options=null!=(n=r.arguments[1])?n:null,r.attributes=null!=(o=r.arguments[1])?o:null),delete r.arguments,delete r.callee),r}toReferencedArguments(e){"ImportExpression"!==e.type&&super.toReferencedArguments(e)}parseExport(e,t){const r=this.state.lastTokStartLoc,n=super.parseExport(e,t);switch(n.type){case"ExportAllDeclaration":n.exported=null;break;case"ExportNamedDeclaration":1===n.specifiers.length&&"ExportNamespaceSpecifier"===n.specifiers[0].type&&(n.type="ExportAllDeclaration",n.exported=n.specifiers[0].exported,delete n.specifiers);case"ExportDefaultDeclaration":{var o;const{declaration:e}=n;"ClassDeclaration"===(null==e?void 0:e.type)&&(null==(o=e.decorators)?void 0:o.length)>0&&e.start===n.start&&this.resetStartLocation(n,r)}}return n}parseSubscript(e,t,r,n){const o=super.parseSubscript(e,t,r,n);if(n.optionalChainMember){if("OptionalMemberExpression"!==o.type&&"OptionalCallExpression"!==o.type||(o.type=o.type.substring(8)),n.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,r){return x(super.finishNodeAt(e,t,r))}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(ft.UnterminatedJsxContent,this.state.startLoc);const r=this.input.charCodeAt(this.state.pos);switch(r){case 60:case 123:return this.state.pos===this.state.start?void(60===r&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(142)):super.getTokenFromCode(r)):(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:Ce(r)?(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 r;return++this.state.pos,13===t&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,r=e?"\n":"\r\n"):r=String.fromCharCode(t),++this.state.curLine,this.state.lineStart=this.state.pos,r}jsxReadString(e){let t="",r=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(b.UnterminatedString,this.state.startLoc);const n=this.input.charCodeAt(this.state.pos);if(n===e)break;38===n?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadEntity(),r=this.state.pos):Ce(n)?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadNewLine(!1),r=this.state.pos):++this.state.pos}t+=this.input.slice(r,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,r=!1;for(;t++<10&&this.state.pos<this.length&&!(r=59==this.codePointAtPos(this.state.pos));)++this.state.pos;if(r){const t=this.input.slice(e,this.state.pos),r=dt[t];if(++this.state.pos,r)return r}}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 r=this.startNodeAt(e);return r.namespace=t,r.name=this.jsxParseIdentifier(),this.finishNode(r,"JSXNamespacedName")}jsxParseElementName(){const e=this.state.startLoc;let t=this.jsxParseNamespacedName();if("JSXNamespacedName"===t.type)return t;for(;this.eat(16);){const r=this.startNodeAt(e);r.object=t,r.property=this.jsxParseIdentifier(),t=this.finishNode(r,"JSXMemberExpression")}return t}jsxParseAttributeValue(){let e;switch(this.state.type){case 5:return e=this.startNode(),this.setContext(w.brace),this.next(),e=this.jsxParseExpressionContainer(e,w.j_oTag),"JSXEmptyExpression"===e.expression.type&&this.raise(ft.AttributeIsEmpty,e),e;case 142:case 133:return this.parseExprAtom();default:throw this.raise(ft.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){const e=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(e){return this.next(),e.expression=this.parseExpression(),this.setContext(w.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadChild")}jsxParseExpressionContainer(e,t){if(this.match(8))e.expression=this.jsxParseEmptyExpression();else{const t=this.parseExpression();e.expression=t}return this.setContext(t),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXExpressionContainer")}jsxParseAttribute(){const e=this.startNode();return this.match(5)?(this.setContext(w.brace),this.next(),this.expect(21),e.argument=this.parseMaybeAssignAllowIn(),this.setContext(w.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsxParseNamespacedName(),e.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(e,"JSXAttribute"))}jsxParseOpeningElementAt(e){const t=this.startNodeAt(e);return this.eat(143)?this.finishNode(t,"JSXOpeningFragment"):(t.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(t))}jsxParseOpeningElementAfterName(e){const t=[];for(;!this.match(56)&&!this.match(143);)t.push(this.jsxParseAttribute());return e.attributes=t,e.selfClosing=this.eat(56),this.expect(143),this.finishNode(e,"JSXOpeningElement")}jsxParseClosingElementAt(e){const t=this.startNodeAt(e);return this.eat(143)?this.finishNode(t,"JSXClosingFragment"):(t.name=this.jsxParseElementName(),this.expect(143),this.finishNode(t,"JSXClosingElement"))}jsxParseElementAt(e){const t=this.startNodeAt(e),r=[],n=this.jsxParseOpeningElementAt(e);let o=null;if(!n.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}r.push(this.jsxParseElementAt(e));break;case 141:r.push(this.parseExprAtom());break;case 5:{const e=this.startNode();this.setContext(w.brace),this.next(),this.match(21)?r.push(this.jsxParseSpreadChild(e)):r.push(this.jsxParseExpressionContainer(e,w.j_expr));break}default:this.unexpected()}ht(n)&&!ht(o)&&null!==o?this.raise(ft.MissingClosingTagFragment,o):!ht(n)&&ht(o)?this.raise(ft.MissingClosingTagElement,o,{openingTagName:mt(n.name)}):ht(n)||ht(o)||mt(o.name)!==mt(n.name)&&this.raise(ft.MissingClosingTagElement,o,{openingTagName:mt(n.name)})}if(ht(n)?(t.openingFragment=n,t.closingFragment=o):(t.openingElement=n,t.closingElement=o),t.children=r,this.match(47))throw this.raise(ft.UnwrappedAdjacentJSXElements,this.state.startLoc);return ht(n)?this.finishNode(t,"JSXFragment"):this.finishNode(t,"JSXElement")}jsxParseElement(){const e=this.state.startLoc;return this.next(),this.jsxParseElementAt(e)}setContext(e){const{context:t}=this.state;t[t.length-1]=e}parseExprAtom(e){return this.match(141)?this.parseLiteral(this.state.value,"JSXText"):this.match(142)?this.jsxParseElement():this.match(47)&&33!==this.input.charCodeAt(this.state.pos)?(this.replaceToken(142),this.jsxParseElement()):super.parseExprAtom(e)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(e){const t=this.curContext();if(t!==w.j_expr){if(t===w.j_oTag||t===w.j_cTag){if(ae(e))return void this.jsxReadWord();if(62===e)return++this.state.pos,void this.finishToken(143);if((34===e||39===e)&&t===w.j_oTag)return void this.jsxReadString(e)}if(60===e&&this.state.canStartJSXElement&&33!==this.input.charCodeAt(this.state.pos+1))return++this.state.pos,void this.finishToken(142);super.getTokenFromCode(e)}else this.jsxReadToken()}updateContext(e){const{context:t,type:r}=this.state;if(56===r&&142===e)t.splice(-2,2,w.j_cTag),this.state.canStartJSXElement=!1;else if(142===r)t.push(w.j_oTag);else if(143===r){const r=t[t.length-1];r===w.j_oTag&&56===e||r===w.j_cTag?(t.pop(),this.state.canStartJSXElement=t[t.length-1]===w.j_expr):(this.setContext(w.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=B[r]}},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 r=this.flowParseType();return this.state.inType=t,r}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,r=null;return this.match(54)?(this.state.inType=e,r=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(54)&&(r=this.flowParsePredicate())),[t,r]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}flowParseDeclareFunction(e){this.next();const t=e.id=this.parseIdentifier(),r=this.startNode(),n=this.startNode();this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,this.expect(10);const o=this.flowParseFunctionTypeParams();return r.params=o.params,r.rest=o.rest,r.this=o._this,this.expect(11),[r.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),n.typeAnnotation=this.finishNode(r,"FunctionTypeAnnotation"),t.typeAnnotation=this.finishNode(n,"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(),r=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)),r.push(e)}this.scope.exit(),this.expect(8),this.finishNode(t,"BlockStatement");let n=null,o=!1;return r.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"===n&&this.raise(lt.AmbiguousDeclareModuleKind,e),n="CommonJS",o=!0):("CommonJS"===n&&this.raise(lt.AmbiguousDeclareModuleKind,e),n="ES")})),e.kind=n||"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,r){at.has(e)&&this.raise(r?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,r=this.startNode(),n=this.flowParseVariance(),o=this.flowParseTypeAnnotatableIdentifier();return r.name=o.name,r.variance=n,r.bound=o.typeAnnotation,this.match(29)?(this.eat(29),r.default=this.flowParseType()):e&&this.raise(lt.MissingTypeParamDefault,t),this.finishNode(r,"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 r=!1;do{const e=this.flowParseTypeParameter(r);t.params.push(e),e.default&&(r=!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 r=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=r,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,r){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=r,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 r=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(r),this.finishNode(e,"ObjectTypeCallProperty")}flowParseObjectType(e){let{allowStatic:t,allowExact:r,allowSpread:n,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(r&&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,r=null,s=null;const l=this.startNode();if(o&&this.isContextual(118)){const e=this.lookahead();14!==e.type&&17!==e.type&&(this.next(),r=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!=r&&this.unexpected(r),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!=r&&this.unexpected(r),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,r,p,t,n,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),n&&(a.inexact=u);const p=this.finishNode(a,"ObjectTypeAnnotation");return this.state.inType=s,p}flowParseObjectTypeProperty(e,t,r,n,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),n&&this.raise(lt.InexactVariance,n),null):(i||this.raise(lt.UnexpectedSpreadType,this.state.lastTokStartLoc),null!=r&&this.unexpected(r),n&&this.raise(lt.SpreadVariance,n),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"));{e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=null!=r,e.kind=o;let s=!1;return this.match(47)||this.match(10)?(e.method=!0,null!=r&&this.unexpected(r),n&&this.unexpected(n.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=n),e.optional=s,this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){const t="get"===e.kind?0:1,r=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise("get"===e.kind?lt.GetterMayNotHaveThisParam:lt.SetterMayNotHaveThisParam,e.value.this),r!==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 r=t||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){const t=this.startNodeAt(e);t.qualification=r,t.id=this.flowParseRestrictedIdentifier(!0),r=this.finishNode(t,"QualifiedTypeIdentifier")}return r}flowParseGenericType(e,t){const r=this.startNodeAt(e);return r.typeParameters=null,r.id=this.flowParseQualifiedTypeIdentifier(e,t),this.match(47)&&(r.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(r,"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,r=!1,n=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)&&(r=!0,s&&this.raise(lt.ThisParamMayNotBeOptional,o)),n=this.flowParseTypeInitialiser()):n=this.flowParseType(),o.name=t,o.optional=r,o.typeAnnotation=n,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,r=null;for(this.match(78)&&(r=this.flowParseFunctionTypeParam(!0),r.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:r}}flowIdentToTypeAnnotation(e,t,r){switch(r.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(r.name),this.flowParseGenericType(e,r)}}flowParsePrimaryType(){const e=this.state.startLoc,t=this.startNode();let r,n,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,n=this.flowParseTupleType(),this.state.noAnonFunctionType=i,n;case 47:return t.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),r=this.flowParseFunctionTypeParams(),t.params=r.params,t.rest=r.rest,t.this=r._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(K(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,n=this.flowParseType(),this.state.noAnonFunctionType=i,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&19===this.lookahead().type))return this.expect(11),n;this.eat(12)}return r=n?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(n)]):this.flowParseFunctionTypeParams(),t.params=r.params,t.rest=r.rest,t.this=r._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(K(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(),r=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){const n=this.startNodeAt(e),o=this.eat(18);r=r||o,this.expect(0),!o&&this.match(3)?(n.elementType=t,this.next(),t=this.finishNode(n,"ArrayTypeAnnotation")):(n.objectType=t,n.indexType=this.flowParseType(),this.expect(3),r?(n.optional=o,t=this.finishNode(n,"OptionalIndexedAccessType")):t=this.finishNode(n,"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 r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t?this.forwardNoArrowParamsConversionAt(e,(()=>super.parseFunctionBody(e,!0,r))):super.parseFunctionBody(e,!1,r)}parseFunctionBodyAndFinish(e,t){let r=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,r)}parseStatementLike(e){if(this.state.strict&&this.isContextual(129)){if(q(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,r){if("Identifier"===t.type)if("declare"===t.name){if(this.match(80)||K(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if(K(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,r)}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,r){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(r),e}this.expect(17);const n=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=n,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,n.startLoc),a&&1===l.length&&(this.state=n,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 r=[e],n=[];for(;0!==r.length;){const e=r.pop();"ArrowFunctionExpression"===e.type?(e.typeParameters||!e.returnType?this.finishArrowValidation(e):n.push(e),r.push(e.body)):"ConditionalExpression"===e.type&&(r.push(e.consequent),r.push(e.alternate))}return t?(n.forEach((e=>this.finishArrowValidation(e))),[n,[]]):function(e,t){const r=[],n=[];for(let o=0;o<e.length;o++)(t(e[o])?r:n).push(e[o]);return[r,n]}(n,(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 r;return-1!==this.state.noArrowParamsConversionAt.indexOf(e.start)?(this.state.noArrowParamsConversionAt.push(this.state.start),r=t(),this.state.noArrowParamsConversionAt.pop()):r=t(),r}parseParenItem(e,t){if(e=super.parseParenItem(e,t),this.eat(17)&&(e.optional=!0,this.resetEndLocation(e)),this.match(14)){const r=this.startNodeAt(t);return r.expression=e,r.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(r,"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,r=super.maybeParseExportNamespaceSpecifier(e);return r&&"type"===e.exportKind&&this.unexpected(t),r}parseClassId(e,t,r){super.parseClassId(e,t,r),this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,t,r){const{startLoc:n}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(e,t))return;t.declare=!0}super.parseClassMember(e,t,r),t.declare&&("ClassProperty"!==t.type&&"ClassPrivateProperty"!==t.type&&"PropertyDefinition"!==t.type?this.raise(lt.DeclareClassElement,n):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,r){return 64===e&&64===t&&ae(r)}(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,r){for(let t=0;t<e.length;t++){const r=e[t];"TypeCastExpression"===(null==r?void 0:r.type)&&(e[t]=this.typeCastToParameter(r))}super.toAssignableList(e,t,r)}toReferencedList(e,t){for(let n=0;n<e.length;n++){var r;const o=e[n];!o||"TypeCastExpression"!==o.type||null!=(r=o.extra)&&r.parenthesized||!(e.length>1)&&t||this.raise(lt.TypeCastInPattern,o.typeAnnotation)}return e}parseArrayLike(e,t,r,n){const o=super.parseArrayLike(e,t,r,n);return t&&!this.state.maybeInArrowParameters&&this.toReferencedList(o.elements),o}isValidLVal(e,t,r){return"TypeCastExpression"===e||super.isValidLVal(e,t,r)}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,r,n,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,r,n,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,r,n){t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,t,r,n)}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 r=t[0];this.isThisParam(r)&&"get"===e.kind?this.raise(lt.GetterMayNotHaveThisParam,r):this.isThisParam(r)&&this.raise(lt.SetterMayNotHaveThisParam,r)}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,t,r,n,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,r,n,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 r=super.parseMaybeDefault(e,t);return"AssignmentPattern"===r.type&&r.typeAnnotation&&r.right.start<r.typeAnnotation.start&&this.raise(lt.TypeBeforeInitializer,r.typeAnnotation),r}checkImportReflection(e){super.checkImportReflection(e),e.module&&"value"!==e.importKind&&this.raise(lt.ImportReflectionHasImportType,e.specifiers[0].loc.start)}parseImportSpecifierLocal(e,t,r){t.local=ct(e)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,r))}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,r,n){if(super.applyImportPhase(e,t,r,n),t){if(!r&&this.match(65))return;e.exportKind="type"===r?r:"value"}else"type"===r&&this.match(55)&&this.unexpected(),e.importKind="type"===r||"typeof"===r?r:"value"}parseImportSpecifier(e,t,r,n,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||q(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&&q(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 r&&l&&this.raise(lt.ImportTypeShorthandOnlyInPureImport,e),(r||l)&&this.checkReservedType(e.local.name,e.local.loc.start,!0),!a||r||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 r=e.kind;"get"!==r&&"set"!==r&&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 r;let n,o=null;if(this.hasPlugin("jsx")&&(this.match(142)||this.match(47))){if(o=this.state.clone(),n=this.tryParse((()=>super.parseMaybeAssign(e,t)),o),!n.error)return n.node;const{context:r}=this.state,i=r[r.length-1];i!==w.j_oTag&&i!==w.j_expr||r.pop()}if(null!=(r=n)&&r.error||this.match(47)){var i,s;let r;o=o||this.state.clone();const a=this.tryParse((n=>{var o;r=this.flowParseTypeParameterDeclaration();const i=this.forwardNoArrowParamsConversionAt(r,(()=>{const n=super.parseMaybeAssign(e,t);return this.resetStartLocationFromNode(n,r),n}));null!=(o=i.extra)&&o.parenthesized&&n();const s=this.maybeUnwrapTypeCastExpression(i);return"ArrowFunctionExpression"!==s.type&&n(),s.typeParameters=r,this.resetStartLocationFromNode(s,r),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,r),a.node;l=a.node}if(null!=(i=n)&&i.node)return this.state=n.failState,n.node;if(l)return this.state=a.failState,l;if(null!=(s=n)&&s.thrown)throw n.error;if(a.thrown)throw a.error;throw this.raise(lt.UnexpectedTokenAfterTypeParameter,r)}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 r=this.startNode();return[r.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=t,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),r}));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,r){let n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!r||-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,r,n)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&-1===this.state.noArrowAt.indexOf(this.state.start))}parseSubscripts(e,t,r){if("Identifier"===e.type&&"async"===e.name&&-1!==this.state.noArrowAt.indexOf(t.index)){this.next();const r=this.startNodeAt(t);r.callee=e,r.arguments=super.parseCallExpressionArguments(11,!1),e=this.finishNode(r,"CallExpression")}else if("Identifier"===e.type&&"async"===e.name&&this.match(47)){const n=this.state.clone(),o=this.tryParse((e=>this.parseAsyncArrowWithTypeParameters(t)||e()),n);if(!o.error&&!o.aborted)return o.node;const i=this.tryParse((()=>super.parseSubscripts(e,t,r)),n);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,r)}parseSubscript(e,t,r,n){if(this.match(18)&&this.isLookaheadToken_lt()){if(n.optionalChainMember=!0,r)return n.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(!r&&this.shouldParseTypes()&&this.match(47)){const r=this.startNodeAt(t);r.callee=e;const o=this.tryParse((()=>(r.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),r.arguments=super.parseCallExpressionArguments(11,!1),n.optionalChainMember&&(r.optional=!1),this.finishCallExpression(r,n.optionalChainMember))));if(o.node)return o.error&&(this.state=o.failState),o.node}return super.parseSubscript(e,t,r,n)}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 r=super.parseTopLevel(e,t);return this.state.hasFlowComment&&this.raise(lt.UnterminatedFlowComment,this.state.curPosition()),r}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 r=this.input.charCodeAt(t+e),n=this.input.charCodeAt(t+e+1);return 58===r&&58===n?t+2:"flow-include"===this.input.slice(t+e,t+e+12)?t+12:58===r&&58!==n&&t}hasFlowCommentCompletion(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(b.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(e,t){let{enumName:r,memberName:n}=t;this.raise(lt.EnumBooleanMemberNotInitialized,e,{memberName:n,enumName:r})}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 r=this.parseNumericLiteral(this.state.value);return t()?{type:"number",loc:r.loc.start,value:r}:{type:"invalid",loc:e}}case 133:{const r=this.parseStringLiteral(this.state.value);return t()?{type:"string",loc:r.loc.start,value:r}:{type:"invalid",loc:e}}case 85:case 86:{const r=this.parseBooleanLiteral(this.match(85));return t()?{type:"boolean",loc:r.loc.start,value:r}:{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,r){const{explicitType:n}=t;null!==n&&n!==r&&this.flowEnumErrorInvalidMemberInitializer(e,t)}flowEnumMembers(e){let{enumName:t,explicitType:r}=e;const n=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}),n.has(l)&&this.raise(lt.EnumDuplicateMemberName,s,{memberName:l,enumName:t}),n.add(l);const c={enumName:t,explicitType:r,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(r){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,r){let{enumName:n}=r;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:n});return t}for(const e of t)this.flowEnumErrorStringMemberInconsistentlyInitialized(e,{enumName:n});return e}flowEnumParseExplicitType(e){let{enumName:t}=e;if(!this.eatContextual(102))return null;if(!K(this.state.type))throw this.raise(lt.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:t});const{value:r}=this.state;return this.next(),"boolean"!==r&&"number"!==r&&"string"!==r&&"symbol"!==r&&this.raise(lt.EnumInvalidExplicitType,this.state.startLoc,{enumName:t,invalidEnumType:r}),r}flowEnumBody(e,t){const r=t.name,n=t.loc.start,o=this.flowEnumParseExplicitType({enumName:r});this.expect(5);const{members:i,hasUnknownMembers:s}=this.flowEnumMembers({enumName:r,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:r}),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:r,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:r,memberName:e.id.name});return e.members=i.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody")}return this.raise(lt.EnumInconsistentMemberValues,n,{enumName:r}),t()}return e.members=this.flowEnumStringMembers(i.stringMembers,i.defaultedMembers,{enumName:r}),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 K(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(!K(this.state.type)&&58!==this.state.type&&75!==this.state.type)return;const r=this.state.value;if(-1!==e.indexOf(r)){if(t&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return r}}tsParseModifiers(e,t){let{allowedModifiers:r,disallowedModifiers:n,stopOnStartOfClassStaticBlock:o,errorTemplate:i=Et.InvalidModifierOnTypeMember}=e;const s=(e,r,n,o)=>{r===n&&t[o]&&this.raise(Et.InvalidModifiersOrder,e,{orderedModifiers:[n,o]})},a=(e,r,n,o)=>{(t[n]&&r===o||t[o]&&r===n)&&this.raise(Et.IncompatibleModifiers,e,{modifiers:[n,o]})};for(;;){const{startLoc:e}=this.state,l=this.tsParseModifier(r.concat(null!=n?n:[]),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):St(l)?(t[l]&&this.raise(Et.DuplicateModifier,e,{modifier:l}),t[l]=!0,s(e,l,"in","out")):(Object.hasOwnProperty.call(t,l)?this.raise(Et.DuplicateModifier,e,{modifier:l}):(s(e,l,"static","readonly"),s(e,l,"static","override"),s(e,l,"override","readonly"),s(e,l,"abstract","override"),a(e,l,"declare","override"),a(e,l,"static","abstract")),t[l]=!0),null!=n&&n.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 r=[];for(;!this.tsIsListTerminator(e);)r.push(t());return r}tsParseDelimitedList(e,t,r){return function(e){if(null==e)throw new Error(`Unexpected ${e} value.`);return e}(this.tsParseDelimitedListWorker(e,t,!0,r))}tsParseDelimitedListWorker(e,t,r,n){const o=[];let i=-1;for(;!this.tsIsListTerminator(e);){i=-1;const n=t();if(null==n)return;if(o.push(n),!this.eat(12)){if(this.tsIsListTerminator(e))break;return void(r&&this.expect(12))}i=this.state.lastTokStartLoc.index}return n&&(n.value=i),o}tsParseBracketedList(e,t,r,n,o){n||(r?this.expect(0):this.expect(47));const i=this.tsParseDelimitedList(e,t,o);return r?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 r=this.startNodeAtNode(t);r.left=t,r.right=this.parseIdentifier(e),t=this.finishNode(r,"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 r={value:-1};return t.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),!1,!0,r),0===t.params.length&&this.raise(Et.EmptyTypeParameters,t),-1!==r.value&&this.addExtra(t,"trailingComma",r.value),this.finishNode(t,"TSTypeParameterDeclaration")}tsFillSignature(e,t){const r=19===e;t.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),t.parameters=this.tsParseBindingListForSignature(),(r||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(),!!K(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 r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,t){this.eat(17)&&(e.optional=!0);const r=e;if(this.match(10)||this.match(47)){t&&this.raise(Et.ReadonlyForMethodSignature,e);const n=r;n.kind&&this.match(47)&&this.raise(Et.AccesorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,n),this.tsParseTypeMemberSemicolon();const o="parameters",i="typeAnnotation";if("get"===n.kind)n[o].length>0&&(this.raise(b.BadGetterArity,this.state.curPosition()),this.isThisParam(n[o][0])&&this.raise(Et.AccesorCannotDeclareThisParameter,this.state.curPosition()));else if("set"===n.kind){if(1!==n[o].length)this.raise(b.BadSetterArity,this.state.curPosition());else{const e=n[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())}n[i]&&this.raise(Et.SetAccesorCannotHaveReturnType,n[i])}else n.kind="method";return this.finishNode(n,"TSMethodSignature")}{const e=r;t&&(e.readonly=!0);const n=this.tsTryParseTypeAnnotation();return n&&(e.typeAnnotation=n),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:r}=e;!t||"TSRestType"===r||"TSOptionalType"===r||"TSNamedTupleMember"===r&&e.optional||this.raise(Et.OptionalTypeBeforeRequired,e),t||(t="TSNamedTupleMember"===r&&e.optional||"TSOptionalType"===r)})),this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){const{startLoc:e}=this.state,t=this.eat(21);let r,n,o,i;const s=q(this.state.type)?this.lookaheadCharCode():null;if(58===s)r=!0,o=!1,n=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()?(r=!0,n=this.createIdentifier(this.startNodeAt(e),t),this.expect(17),this.expect(14),i=this.tsParseType()):(r=!1,i=s,this.expect(17))}else i=this.tsParseType(),o=this.eat(17),r=this.eat(14);if(r){let e;n?(e=this.startNodeAtNode(n),e.optional=o,e.label=n,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 r=this.startNode();return"TSConstructorType"===e&&(r.abstract=!!t,t&&this.next(),this.next()),this.tsInAllowConditionalTypesContext((()=>this.tsFillSignature(19,r))),this.finishNode(r,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(K(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,r){const n=this.startNode(),o=this.eat(r),i=[];do{i.push(t())}while(this.eat(r));return 1!==i.length||o?(n.types=i,this.finishNode(n,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(K(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 r=this.startNode(),n=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(n&&this.match(78)){let e=this.tsParseThisTypeOrThisTypePredicate();return"TSThisType"===e.type?(r.parameterName=e,r.asserts=!0,r.typeAnnotation=null,e=this.finishNode(r,"TSTypePredicate")):(this.resetStartLocationFromNode(e,r),e.asserts=!0),t.typeAnnotation=e,this.finishNode(t,"TSTypeAnnotation")}const o=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!o)return n?(r.parameterName=this.parseIdentifier(),r.asserts=n,r.typeAnnotation=null,t.typeAnnotation=this.finishNode(r,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,t);const i=this.tsParseTypeAnnotation(!1);return r.parameterName=o,r.typeAnnotation=i,r.asserts=n,t.typeAnnotation=this.finishNode(r,"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(),!(!K(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,r=this.tsParseDelimitedList("HeritageClauseElement",(()=>{const e=this.startNode();return e.expression=this.tsParseEntityName(),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSExpressionWithTypeArguments")}));return r.length||this.raise(Et.EmptyHeritageClauseType,t,{token:e}),r}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),K(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 r=this.startNode();return r.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(r,"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,r){e.isExport=r||!1,e.id=t||this.parseIdentifier(),this.checkIdentifier(e.id,4096),this.expect(29);const n=this.tsParseModuleReference();return"type"===e.importKind&&"TSExternalModuleReference"!==n.type&&this.raise(Et.ImportAliasHasImportType,n),e.moduleReference=n,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(),r=e();return this.state=t,r}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(),r=e();if(void 0!==r&&!1!==r)return r;this.state=t}tsTryParseDeclare(e){if(this.isLineTerminator())return;let t,r=this.state.type;return this.isContextual(100)&&(r=74,t="let"),this.tsInAmbientContext((()=>{switch(r){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(K(r))return this.tsParseDeclaration(e,this.state.value,!0,null)}}))}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(e,t,r){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 r=e;return r.global=!0,r.id=t,r.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(r,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,t.name,!1,r)}}tsParseDeclaration(e,t,r,n){switch(t){case"abstract":if(this.tsCheckLineTerminator(r)&&(this.match(80)||K(this.state.type)))return this.tsParseAbstractDeclaration(e,n);break;case"module":if(this.tsCheckLineTerminator(r)){if(this.match(133))return this.tsParseAmbientExternalModuleDeclaration(e);if(K(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(e)}break;case"namespace":if(this.tsCheckLineTerminator(r)&&K(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminator(r)&&K(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 r=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,r?super.parseArrowExpression(r,null,!0):void 0}tsParseTypeArgumentsInExpression(){if(47===this.reScan_lt())return this.tsParseTypeArguments()}tsParseTypeArguments(){const e=this.startNode();return e.params=this.tsInType((()=>this.tsInNoContext((()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))))),0===e.params.length?this.raise(Et.EmptyTypeArguments,e):this.state.inType||this.curContext()!==w.brace||this.reScan_lt_gt(),this.expect(48),this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return(e=this.state.type)>=124&&e<=130;var e}isExportDefaultSpecifier(){return!this.tsIsDeclarationStart()&&super.isExportDefaultSpecifier()}parseAssignableListItem(e,t){const r=this.state.startLoc,n={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},n);const o=n.accessibility,i=n.override,s=n.readonly;4&e||!(o||s||i)||this.raise(Et.UnexpectedParameterModifier,r);const a=this.parseMaybeDefault();this.parseAssignableListItemTypes(a,e);const l=this.parseMaybeDefault(a.loc.start,a);if(o||s||i){const e=this.startNodeAt(r);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,r){super.setArrowFunctionParameters(e,t,r),this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.match(14)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));const n="FunctionDeclaration"===t?"TSDeclareFunction":"ClassMethod"===t||"ClassPrivateMethod"===t?"TSDeclareMethod":void 0;return n&&!this.match(5)&&this.isLineTerminator()?this.finishNode(e,n):"TSDeclareFunction"===n&&this.state.isAmbientContext&&(this.raise(Et.DeclareFunctionHasImplementation,e),e.declare)?super.parseFunctionBodyAndFinish(e,n,r):(this.tsDisallowOptionalPattern(e),super.parseFunctionBodyAndFinish(e,t,r))}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,r,n){const o=super.parseArrayLike(e,t,r,n);return"ArrayExpression"===o.type&&this.tsCheckForInvalidTypeCasts(o.elements),o}parseSubscript(e,t,r,n){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();const r=this.startNodeAt(t);return r.expression=e,this.finishNode(r,"TSNonNullExpression")}let o=!1;if(this.match(18)&&60===this.lookaheadCharCode()){if(r)return n.stop=!0,e;n.optionalChainMember=o=!0,this.next()}if(this.match(47)||this.match(51)){let i;const s=this.tsTryParseAndCatch((()=>{if(!r&&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 r=super.parseTaggedTemplateExpression(e,t,n);return r.typeParameters=s,r}if(!r&&this.eat(10)){const r=this.startNodeAt(t);return r.callee=e,r.arguments=this.parseCallExpressionArguments(11,!1),this.tsCheckForInvalidTypeCasts(r.arguments),r.typeParameters=s,n.optionalChainMember&&(r.optional=o),this.finishCallExpression(r,n.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,r,n)}parseNewCallee(e){var t;super.parseNewCallee(e);const{callee:r}=e;"TSInstantiationExpression"!==r.type||null!=(t=r.extra)&&t.parenthesized||(e.typeParameters=r.typeParameters,e.callee=r.expression)}parseExprOp(e,t,r){let n;if(Y(58)>r&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(n=this.isContextual(120)))){const o=this.startNodeAt(t);return o.expression=e,o.typeAnnotation=this.tsInType((()=>(this.next(),this.match(75)?(n&&this.raise(b.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType()))),this.finishNode(o,n?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(o,t,r)}return super.parseExprOp(e,t,r)}checkReservedWord(e,t,r,n){this.state.isAmbientContext||super.checkReservedWord(e,t,r,n)}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,r,n){super.applyImportPhase(e,t,r,n),t?e.exportKind="type"===r?"type":"value":e.importKind="type"===r||"typeof"===r?r:"value"}parseImport(e){if(this.match(133))return e.importKind="value",super.parseImport(e);let t;if(K(this.state.type)&&61===this.lookaheadCharCode())return e.importKind="value",this.tsParseImportEqualsDeclaration(e);if(this.isContextual(130)){const r=this.parseMaybeImportPhase(e,!1);if(61===this.lookaheadCharCode())return this.tsParseImportEqualsDeclaration(e,r);t=super.parseImportSpecifiersAndAfter(e,r)}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 r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{isAmbientContext:n}=this.state,o=super.parseVarStatement(e,t,r||n);if(!n)return o;for(const{id:e,init:r}of o.declarations)r&&("const"!==t||e.typeAnnotation?this.raise(Et.InitializerNotAllowedInAmbientContext,r):At(r,this.hasPlugin("estree"))||this.raise(Et.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference,r));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,r){const n=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:n,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:Et.InvalidModifierOnTypeParameterPositions},t);const o=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(t,n)&&this.raise(Et.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(e,t)):this.parseClassMemberWithIsStatic(e,t,r,!!t.static)};t.declare?this.tsInAmbientContext(o):o()}parseClassMemberWithIsStatic(e,t,r,n){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&&(r.hadSuperClass||this.raise(Et.OverrideNotInSubClass,t)),super.parseClassMemberWithIsStatic(e,t,r,n)}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,r){return("Identifier"===t.type?this.tsParseExpressionStatement(e,t,r):void 0)||super.parseExpressionStatement(e,t,r)}shouldParseExportDeclaration(){return!!this.tsIsDeclarationStart()||super.shouldParseExportDeclaration()}parseConditional(e,t,r){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(e,t,r);const n=this.tryParse((()=>super.parseConditional(e,t)));return n.node?(n.error&&(this.state=n.failState),n.node):(n.error&&super.setOptionalParametersError(r,n.error),e)}parseParenItem(e,t){if(e=super.parseParenItem(e,t),this.eat(17)&&(e.optional=!0,this.resetEndLocation(e)),this.match(14)){const r=this.startNodeAt(t);return r.expression=e,r.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(r,"TSTypeCastExpression")}return e}parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext((()=>this.parseExportDeclaration(e)));const t=this.state.startLoc,r=this.eatContextual(125);if(r&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(Et.ExpectedAmbientAfterExportDeclare,this.state.startLoc);const n=K(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);return n?(("TSInterfaceDeclaration"===n.type||"TSTypeAliasDeclaration"===n.type||r)&&(e.exportKind="type"),r&&(this.resetStartLocation(n,t),n.declare=!0),n):null}parseClassId(e,t,r,n){if((!t||r)&&this.isContextual(113))return;super.parseClassId(e,t,r,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,r,n,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,r,n,o,i)}pushClassPrivateMethod(e,t,r,n){const o=this.tsTryParseTypeParameters(this.tsParseConstModifier);o&&(t.typeParameters=o),super.pushClassPrivateMethod(e,t,r,n)}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,r,n,o,i,s){const a=this.tsTryParseTypeParameters(this.tsParseConstModifier);return a&&(e.typeParameters=a),super.parseObjPropValue(e,t,r,n,o,i,s)}parseFunctionParams(e,t){const r=this.tsTryParseTypeParameters(this.tsParseConstModifier);r&&(e.typeParameters=r),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),"Identifier"===e.id.type&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(e.definite=!0);const r=this.tsTryParseTypeAnnotation();r&&(e.id.typeAnnotation=r,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){return this.match(14)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,t)}parseMaybeAssign(e,t){var r,n,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:r}=this.state,n=r[r.length-1];n!==w.j_oTag&&n!==w.j_expr||r.pop()}if(!(null!=(r=l)&&r.error||this.match(47)))return super.parseMaybeAssign(e,t);a&&a!==this.state||(a=this.state.clone());const p=this.tryParse((r=>{var n,o;u=this.tsParseTypeParameters(this.tsParseConstModifier);const i=super.parseMaybeAssign(e,t);return("ArrowFunctionExpression"!==i.type||null!=(n=i.extra)&&n.parenthesized)&&r(),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!=(n=l)&&n.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 r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r),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,r){return n={TSTypeCastExpression:!0,TSParameterProperty:"parameter",TSNonNullExpression:"expression",TSAsExpression:(64!==r||!t)&&["expression",!0],TSSatisfiesExpression:(64!==r||!t)&&["expression",!0],TSTypeAssertion:(64!==r||!t)&&["expression",!0]},o=e,Object.hasOwnProperty.call(n,o)&&n[o]||super.isValidLVal(e,t,r);var n,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 r=super.parseMaybeDecoratorArguments(e);return r.typeParameters=t,r}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 r=super.parseMaybeDefault(e,t);return"AssignmentPattern"===r.type&&r.typeAnnotation&&r.right.start<r.typeAnnotation.start&&this.raise(Et.TypeAnnotationAfterAssign,r.typeAnnotation),r}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,r){for(let t=0;t<e.length;t++){const r=e[t];"TSTypeCastExpression"===(null==r?void 0:r.type)&&(e[t]=this.typeCastToParameter(r))}super.toAssignableList(e,t,r)}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),r=this.getObjectOrClassMethodParams(e)[0];return r&&this.isThisParam(r)?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,r){const n=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,t,r)}finally{this.state.inAbstractClass=n}}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,r,n,o,i,s){const a=super.parseMethod(e,t,r,n,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,r,n){return!t&&n?(this.parseTypeOnlyImportExportSpecifier(e,!1,r),this.finishNode(e,"ExportSpecifier")):(e.exportKind="value",super.parseExportSpecifier(e,t,r,n))}parseImportSpecifier(e,t,r,n,o){return!t&&n?(this.parseTypeOnlyImportExportSpecifier(e,!0,r),this.finishNode(e,"ImportSpecifier")):(e.importKind="value",super.parseImportSpecifier(e,t,r,n,r?4098:4096))}parseTypeOnlyImportExportSpecifier(e,t,r){const n=t?"imported":"local",o=t?"local":"exported";let i,s=e[n],a=!1,l=!0;const c=s.loc.start;if(this.isContextual(93)){const e=this.parseIdentifier();if(this.isContextual(93)){const r=this.parseIdentifier();q(this.state.type)?(a=!0,s=e,i=t?this.parseIdentifier():this.parseModuleExportName(),l=!1):(i=r,l=!1)}else q(this.state.type)?(l=!1,i=t?this.parseIdentifier():this.parseModuleExportName()):(a=!0,s=e)}else q(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&&r&&this.raise(t?Et.TypeModifierIsUsedInTypeImports:Et.TypeModifierIsUsedInTypeExports,c),e[n]=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[n])),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(),K(this.state.type)){const e=this.parseIdentifierName(),r=this.createIdentifier(t,e);if(r.type="V8IntrinsicIdentifier",this.match(10))return r}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 r=!(!e.expectedNode||"Placeholder"!==e.type);return e.expectedNode=t,r?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,r,n){void 0!==e&&super.checkReservedWord(e,t,r,n)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(e,t,r){return"Placeholder"===e||super.isValidLVal(e,t,r)}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 r;if("Placeholder"!==t.type||null!=(r=t.extra)&&r.parenthesized)return super.parseExpressionStatement(e,t);if(this.match(14)){const r=e;return r.label=this.finishPlaceholder(t,"Identifier"),this.next(),r.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(r,"LabeledStatement")}return this.semicolon(),e.name=t.name,this.finishPlaceholder(e,"Statement")}parseBlock(e,t,r){return this.parsePlaceholder("BlockStatement")||super.parseBlock(e,t,r)}parseFunctionId(e){return this.parsePlaceholder("Identifier")||super.parseFunctionId(e)}parseClass(e,t,r){const n=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(r||!t)return e.id=null,e.body=this.finishPlaceholder(i,"ClassBody"),this.finishNode(e,n);throw this.raise(Ct.ClassNameIsRequired,this.state.startLoc)}e.id=i}else this.parseClassId(e,t,r);return super.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!e.superClass,o),this.finishNode(e,n)}parseExport(e,t){const r=this.parsePlaceholder("Identifier");if(!r)return super.parseExport(e,t);if(!this.isContextual(98)&&!this.match(12))return e.specifiers=[],e.source=null,e.declaration=this.finishPlaceholder(r,"Declaration"),this.finishNode(e,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");const n=this.startNode();return n.exported=r,e.specifiers=[this.finishNode(n,"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 r;return!(null==(r=e.specifiers)||!r.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 r=this.startNodeAtNode(t);return r.local=t,e.specifiers.push(this.finishNode(r,"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(Ct.UnexpectedSpace,this.state.lastTokEndLoc)}}},Nt=Object.keys(jt),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,r,n){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);r.used&&(n?null===n.doubleProtoLoc&&(n.doubleProtoLoc=o.loc.start):this.raise(b.DuplicateProto,o)),r.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,r=this.parseMaybeAssign(e);if(this.match(12)){const n=this.startNodeAt(t);for(n.expressions=[r];this.eat(12);)n.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(n.expressions),this.finishNode(n,"SequenceExpression")}return r}parseMaybeAssignDisallowIn(e,t){return this.disallowInAnd((()=>this.parseMaybeAssign(e,t)))}parseMaybeAssignAllowIn(e,t){return this.allowInAnd((()=>this.parseMaybeAssign(e,t)))}setOptionalParametersError(e,t){var r;e.optionalParametersLoc=null!=(r=null==t?void 0:t.loc)?r:this.state.startLoc}parseMaybeAssign(e,t){const r=this.state.startLoc;if(this.isContextual(108)&&this.prodParam.hasYield){let e=this.parseYield();return t&&(e=t.call(this,e,r)),e}let n;e?n=!1:(e=new rt,n=!0);const{type:o}=this.state;(10===o||K(o))&&(this.state.potentialArrowAt=this.state.start);let i=this.parseMaybeConditional(e);if(t&&(i=t.call(this,i,r)),(s=this.state.type)>=29&&s<=33){const t=this.startNodeAt(r),n=this.state.value;if(t.operator=n,this.match(29)){this.toAssignable(i,!0),t.left=i;const n=r.index;null!=e.doubleProtoLoc&&e.doubleProtoLoc.index>=n&&(e.doubleProtoLoc=null),null!=e.shorthandAssignLoc&&e.shorthandAssignLoc.index>=n&&(e.shorthandAssignLoc=null),null!=e.privateKeyLoc&&e.privateKeyLoc.index>=n&&(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 n&&this.checkExpressionErrors(e,!0),i}parseMaybeConditional(e){const t=this.state.startLoc,r=this.state.potentialArrowAt,n=this.parseExprOps(e);return this.shouldExitDescending(n,r)?n:this.parseConditional(n,t,e)}parseConditional(e,t,r){if(this.eat(17)){const r=this.startNodeAt(t);return r.test=e,r.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),r.alternate=this.parseMaybeAssign(),this.finishNode(r,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(138)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){const t=this.state.startLoc,r=this.state.potentialArrowAt,n=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(n,r)?n:this.parseExprOp(n,t,-1)}parseExprOp(e,t,r){if(this.isPrivateName(e)){const t=this.getPrivateNameSV(e);(r>=Y(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(b.PrivateInExpectedIn,e,{identifierName:t}),this.classScope.usePrivateName(t,e.loc.start)}const n=this.state.type;if((o=n)>=39&&o<=59&&(this.prodParam.hasIn||!this.match(58))){let o=Y(n);if(o>r){if(39===n){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===n||42===n,a=40===n;if(a&&(o=Y(42)),this.next(),39===n&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&96===this.state.type&&this.prodParam.hasAwait)throw this.raise(b.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);i.right=this.parseExprOpRightExpr(n,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,r)}}var o;return e}parseExprOpRightExpr(e,t){const r=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),r)}));case"fsharp":return this.withSoloAwaitPermittingContext((()=>this.parseFSharpPipelineBody(t)))}return this.parseExprOpBaseRightExpr(e,t)}parseExprOpBaseRightExpr(e,t){const r=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,57===e?t-1:t)}parseHackPipeBody(){var e;const{startLoc:t}=this.state,r=this.parseMaybeAssign();return!d.has(r.type)||null!=(e=r.extra)&&e.parenthesized||this.raise(b.PipeUnparenthesizedBody,t,{type:r.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(b.PipeTopicUnused,t),r}checkExponentialAfterUnary(e){this.match(57)&&this.raise(b.UnexpectedTokenUnaryExponentiation,e.argument)}parseMaybeUnary(e,t){const r=this.state.startLoc,n=this.isContextual(96);if(n&&this.isAwaitAllowed()){this.next();const e=this.parseAwait(r);return t||this.checkExponentialAfterUnary(e),e}const o=this.match(34),i=this.startNode();if(s=this.state.type,U[s]){i.operator=this.state.value,i.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");const r=this.match(89);if(this.next(),i.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&r){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(n){const{type:e}=this.state;if((this.hasPlugin("v8intrinsic")?H(e):H(e)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(b.AwaitNotInAsyncContext,r),this.parseAwait(r)}return a}parseUpdate(e,t,r){if(t){const t=e;return this.checkLVal(t.argument,{in:this.finishNode(t,"UpdateExpression")}),e}const n=this.state.startLoc;let o=this.parseExprSubscripts(r);if(this.checkExpressionErrors(r,!1))return o;for(;34===this.state.type&&!this.canInsertSemicolon();){const e=this.startNodeAt(n);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,r=this.state.potentialArrowAt,n=this.parseExprAtom(e);return this.shouldExitDescending(n,r)?n:this.parseSubscripts(n,t)}parseSubscripts(e,t,r){const n={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do{e=this.parseSubscript(e,t,r,n),n.maybeAsyncArrow=!1}while(!n.stop);return e}parseSubscript(e,t,r,n){const{type:o}=this.state;if(!r&&15===o)return this.parseBind(e,t,r,n);if(J(o))return this.parseTaggedTemplateExpression(e,t,n);let i=!1;if(18===o){if(r&&(this.raise(b.OptionalChainingNoNew,this.state.startLoc),40===this.lookaheadCharCode()))return n.stop=!0,e;n.optionalChainMember=i=!0,this.next()}if(!r&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,t,n,i);{const r=this.eat(0);return r||i||this.eat(16)?this.parseMember(e,t,n,r,i):(n.stop=!0,e)}}parseMember(e,t,r,n,o){const i=this.startNodeAt(t);return i.object=e,i.computed=n,n?(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),r.optionalChainMember?(i.optional=o,this.finishNode(i,"OptionalMemberExpression")):this.finishNode(i,"MemberExpression")}parseBind(e,t,r,n){const o=this.startNodeAt(t);return o.object=e,this.next(),o.callee=this.parseNoCallExpr(),n.stop=!0,this.parseSubscripts(this.finishNode(o,"BindExpression"),t,r)}parseCoverCallAndAsyncArrowHead(e,t,r,n){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}=r;a&&(this.expressionScope.enter(new Xe(2)),i=new rt),l&&(s.optional=n),s.arguments=n?this.parseCallExpressionArguments(11):this.parseCallExpressionArguments(11,"Import"===e.type,"Super"!==e.type,s,i);let c=this.finishCallExpression(s,l);return a&&this.shouldParseAsyncArrow()&&!n?(r.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,r){const n=this.startNodeAt(t);return n.tag=e,n.quasi=this.parseTemplate(!0),r.optionalChainMember&&this.raise(b.OptionalChainingNoTemplate,t),this.finishNode(n,"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,r,n,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),n&&this.addTrailingCommaExtraToNode(n),this.next();break}i.push(this.parseExprListItem(!1,o,r))}return this.state.inFSharpPipelineDirectBody=a,i}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,t){var r;return this.resetPreviousNodeTrailingComments(t),this.expect(19),this.parseArrowExpression(e,t.arguments,!0,null==(r=t.extra)?void 0:r.trailingCommaLoc),t.innerComments&&Se(e,t.innerComments),t.callee.trailingComments&&Se(e,t.callee.trailingComments),e}parseNoCallExpr(){const e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}parseExprAtom(e){let t,r=null;const{type:n}=this.state;switch(n){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:r=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(r,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(K(n)){if(this.isContextual(127)&&123===this.lookaheadInLineCharCode())return this.parseModuleExpression();const e=this.state.potentialArrowAt===this.state.start,t=this.state.containsEsc,r=this.parseIdentifier();if(!t&&"async"===r.name&&!this.canInsertSemicolon()){const{type:e}=this.state;if(68===e)return this.resetPreviousNodeTrailingComments(r),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(r));if(K(e))return 61===this.lookaheadCharCode()?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(r)):r;if(90===e)return this.resetPreviousNodeTrailingComments(r),this.parseDo(this.startNodeAtNode(r),!0)}return e&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(r),[r],!1)):r}this.unexpected()}}parseTopicReferenceThenEqualsSign(e,t){const r=this.getPluginOption("pipelineOperator","proposal");if(r)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(r);this.unexpected()}parseTopicReference(e){const t=this.startNode(),r=this.state.startLoc,n=this.state.type;return this.next(),this.finishTopicReference(t,r,e,n)}finishTopicReference(e,t,r,n){if(this.testTopicReferenceConfiguration(r,t,n)){const n="smart"===r?"PipelinePrimaryTopicReference":"TopicReference";return this.topicReferenceIsAllowedInCurrentContext()||this.raise("smart"===r?b.PrimaryTopicNotAllowed:b.PipeTopicUnbound,t),this.registerTopicReference(),this.finishNode(e,n)}throw this.raise(b.PipeTopicUnconfiguredToken,t,{token:X(n)})}testTopicReferenceConfiguration(e,t,r){switch(e){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:X(r)}]);case"smart":return 27===r;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 r=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=r,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)),r=this.state.value;return this.next(),e.id=this.createIdentifier(t,r),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,r){e.meta=t;const n=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==r||n)&&this.raise(b.UnsupportedMetaProperty,e.property,{target:t.name,onlyValidPropertyName:r}),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,r){return this.addExtra(r,"rawValue",e),this.addExtra(r,"raw",this.input.slice(r.start,this.state.end)),r.value=e,this.next(),this.finishNode(r,t)}parseLiteral(e,t){const r=this.startNode();return this.parseLiteralAtNode(e,t,r)}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 r;this.next(),this.expressionScope.enter(new Xe(1));const n=this.state.maybeInArrowParameters,o=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;const i=this.state.startLoc,s=[],a=new rt;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=n,this.state.inFSharpPipelineDirectBody=o;let d=this.startNodeAt(t);return e&&this.shouldParseArrow(s)&&(d=this.parseArrow(d))?(this.checkDestructuringPrivate(a),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(d,s,!1),d):(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?(r=this.startNodeAt(i),r.expressions=s,this.finishNode(r,"SequenceExpression"),this.resetEndLocation(r,p)):r=s[0],this.wrapParenthesis(t,r))}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 r=this.startNodeAt(e);return r.expression=t,this.finishNode(r,"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 r=this.parseMetaProperty(e,t,"target");return this.scope.inNonArrowFunction||this.scope.inClass||this.options.allowNewTargetOutsideFunction||this.raise(b.UnexpectedNewTarget,r),r}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),r=this.parseNoCallExpr();e.callee=r,!t||"Import"!==r.type&&"ImportExpression"!==r.type||this.raise(b.ImportCallNotNewExpression,r)}parseTemplateElement(e){const{start:t,startLoc:r,end:n,value:o}=this.state,i=t+1,a=this.startNodeAt(s(r,1));null===o&&(e||this.raise(b.InvalidEscapeSequenceTemplate,s(this.state.firstInvalidTemplateEscapePos,1)));const l=this.match(24),c=l?-1:-2,u=n+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 r=this.parseTemplateElement(e);for(t.quasis=[r];!r.tail;)t.expressions.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),t.quasis.push(r=this.parseTemplateElement(e));return this.finishNode(t,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,r,n){r&&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(n),this.checkProto(o,r,i,n)),r&&!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":r&&(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 r=this.startNode();let n,o=!1,i=!1;if(this.match(21))return t.length&&this.unexpected(),this.parseSpread();t.length&&(r.decorators=t,t=[]),r.method=!1,e&&(n=this.state.startLoc);let s=this.eat(55);this.parsePropertyNamePrefixOperator(r);const a=this.state.containsEsc,l=this.parsePropertyName(r,e);if(!s&&!a&&this.maybeAsyncOrAccessorProp(r)){const e=l.name;"async"!==e||this.hasPrecedingLineBreak()||(o=!0,this.resetPreviousNodeTrailingComments(l),s=this.eat(55),this.parsePropertyName(r)),"get"!==e&&"set"!==e||(i=!0,this.resetPreviousNodeTrailingComments(l),r.kind=e,this.match(55)&&(s=!0,this.raise(b.AccessorIsGenerator,this.state.curPosition(),{kind:e}),this.next()),this.parsePropertyName(r))}return this.parseObjPropValue(r,n,s,o,!1,i,e)}getGetterSetterExpectedParamCount(e){return"get"===e.kind?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){var t;const r=this.getGetterSetterExpectedParamCount(e),n=this.getObjectOrClassMethodParams(e);n.length!==r&&this.raise("get"===e.kind?b.BadGetterArity:b.BadSetterArity,e),"set"===e.kind&&"RestElement"===(null==(t=n[n.length-1])?void 0:t.type)&&this.raise(b.BadSetterRestParameter,e)}parseObjectMethod(e,t,r,n,o){if(o){const r=this.parseMethod(e,t,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(r),r}if(r||t||this.match(10))return n&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,r,!1,!1,"ObjectMethod")}parseObjectProperty(e,t,r,n){if(e.shorthand=!1,this.eat(14))return e.value=r?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(n),this.finishNode(e,"ObjectProperty");if(!e.computed&&"Identifier"===e.key.type){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),r)e.value=this.parseMaybeDefault(t,it(e.key));else if(this.match(29)){const r=this.state.startLoc;null!=n?null===n.shorthandAssignLoc&&(n.shorthandAssignLoc=r):this.raise(b.InvalidCoverInitializedName,r),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,r,n,o,i,s){const a=this.parseObjectMethod(e,r,n,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:r,value:n}=this.state;let o;if(q(r))o=this.parseIdentifier(!0);else switch(r){case 134:o=this.parseNumericLiteral(n);break;case 133:o=this.parseStringLiteral(n);break;case 135:o=this.parseBigIntLiteral(n);break;case 136:o=this.parseDecimalLiteral(n);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!==r&&(e.computed=!1)}return e.key}initFunction(e,t){e.id=null,e.generator=!1,e.async=t}parseMethod(e,t,r,n,o,i){let s=arguments.length>6&&void 0!==arguments[6]&&arguments[6];this.initFunction(e,r),e.generator=t,this.scope.enter(18|(s?64:0)|(o?32:0)),this.prodParam.enter(et(r,e.generator)),this.parseFunctionParams(e,n);const a=this.parseFunctionBodyAndFinish(e,i,!0);return this.prodParam.exit(),this.scope.exit(),a}parseArrayLike(e,t,r,n){r&&this.expectPlugin("recordAndTuple");const o=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const i=this.startNode();return this.next(),i.elements=this.parseExprList(e,!r,n,i),this.state.inFSharpPipelineDirectBody=o,this.finishNode(i,r?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,t,r,n){this.scope.enter(6);let o=et(r,!1);!this.match(5)&&this.prodParam.hasIn&&(o|=8),this.prodParam.enter(o),this.initFunction(e,r);const i=this.state.maybeInArrowParameters;return t&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,t,n)),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,r){this.toAssignableList(t,r,!1),e.params=t}parseFunctionBodyAndFinish(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.parseFunctionBody(e,!1,r),this.finishNode(e,t)}parseFunctionBody(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const n=t&&!this.match(5);if(this.expressionScope.enter(Je()),n)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{const n=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=!n&&this.state.strict;this.checkParams(e,!(this.state.strict||t||r||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,r=e.length;t<r;t++)if(!this.isSimpleParameter(e[t]))return!1;return!0}checkParams(e,t,r){let n=!(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:n})}parseExprList(e,t,r,n){const o=[];let i=!0;for(;!this.eat(e);){if(i)i=!1;else if(this.expect(12),this.match(e)){n&&this.addTrailingCommaExtraToNode(n),this.next();break}o.push(this.parseExprListItem(t,r))}return o}parseExprListItem(e,t,r){let n;if(this.match(12))e||this.raise(b.UnexpectedToken,this.state.curPosition(),{unexpected:","}),n=null;else if(this.match(21)){const e=this.state.startLoc;n=this.parseParenItem(this.parseSpread(t),e)}else if(this.match(17)){this.expectPlugin("partialApplication"),r||this.raise(b.UnexpectedArgumentPlaceholder,this.state.startLoc);const e=this.startNode();this.next(),n=this.finishNode(e,"ArgumentPlaceholder")}else n=this.parseMaybeAssignAllowIn(t,this.parseParenItem);return n}parseIdentifier(e){const t=this.startNode(),r=this.parseIdentifierName(e);return this.createIdentifier(t,r)}createIdentifier(e,t){return e.name=t,e.loc.identifierName=t,this.finishNode(e,"Identifier")}parseIdentifierName(e){let t;const{startLoc:r,type:n}=this.state;q(n)?t=this.state.value:this.unexpected();const o=n<=92;return e?o&&this.replaceToken(132):this.checkReservedWord(t,r,o,!1),this.next(),t}checkReservedWord(e,t,r,n){if(!(e.length>10)&&function(e){return ye.has(e)}(e))if(r&&function(e){return ce.has(e)}(e))this.raise(b.UnexpectedKeyword,t,{keyword:e});else if((this.state.strict?n?me:fe:de)(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,r=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:r=this.parseMaybeAssign()}return e.delegate=t,e.argument=r,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 r=this.startNodeAt(t);return r.callee=e,this.finishNode(r,"PipelineBareFunction")}{const r=this.startNodeAt(t);return this.checkSmartPipeTopicBodyEarlyErrors(t),r.expression=e,this.finishNode(r,"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 r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;const n=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,e);return this.state.inFSharpPipelineDirectBody=r,n}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 r=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(t,8,"module")}finally{r()}return this.finishNode(e,"ModuleExpression")}parsePropertyNamePrefixOperator(e){}}const Bt={kind:1},Ft={kind:2},Ut=/[\uD800-\uDFFF]/u,Vt=/in(?:stanceof)?/y;class Wt 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 r=0;r<e.length;r++){const n=e[r],{type:o}=n;if("number"==typeof o){if(138===o){const{loc:t,start:o,value:i,end:a}=n,l=o+1,c=s(t.start,1);e.splice(r,1,new qe({type:Z(27),value:"#",start:o,end:l,startLoc:t.start,endLoc:c}),new qe({type:Z(132),value:i,start:l,end:a,startLoc:c,endLoc:t.end})),r++;continue}if(J(o)){const{loc:i,start:a,value:l,end:c}=n,u=a+1,p=s(i.start,1);let d,f,h,m,y;d=96===t.charCodeAt(a)?new qe({type:Z(22),value:"`",start:a,end:u,startLoc:i.start,endLoc:p}):new qe({type:Z(8),value:"}",start:a,end:u,startLoc:i.start,endLoc:p}),24===o?(h=c-1,m=s(i.end,-1),f=null===l?null:l.slice(1,-1),y=new qe({type:Z(22),value:"`",start:h,end:c,startLoc:m,endLoc:i.end})):(h=c-2,m=s(i.end,-2),f=null===l?null:l.slice(1,-2),y=new qe({type:Z(23),value:"${",start:h,end:c,startLoc:m,endLoc:i.end})),e.splice(r,1,d,new qe({type:Z(20),value:f,start:u,end:h,startLoc:p,endLoc:m}),y),r+=2;continue}n.type=Z(o)}}return e}(this.tokens,this.input)),this.finishNode(e,"File")}parseProgram(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:139,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.options.sourceType;if(e.sourceType=n,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,r),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===r?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 r=t.value,n=r.value,o=this.input.slice(r.start,r.end),i=r.value=o.slice(1,-1);return this.addExtra(r,"raw",o),this.addExtra(r,"rawValue",i),this.addExtra(r,"expressionValue",n),r.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(Vt.lastIndex=t,Vt.test(this.input)){const e=this.codePointAtPos(Vt.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)&&(K(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 r=this.state.type,n=this.startNode(),o=!!(2&e),i=!!(4&e),s=1&e;switch(r){case 60:return this.parseBreakContinueStatement(n,!0);case 63:return this.parseBreakContinueStatement(n,!1);case 64:return this.parseDebuggerStatement(n);case 90:return this.parseDoWhileStatement(n);case 91:return this.parseForStatement(n);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(n,!1,!o&&i);case 80:return o||this.unexpected(),this.parseClass(this.maybeTakeDecorators(t,n),!0);case 69:return this.parseIfStatement(n);case 70:return this.parseReturnStatement(n);case 71:return this.parseSwitchStatement(n);case 72:return this.parseThrowStatement(n);case 73:return this.parseTryStatement(n);case 96:if(!this.state.containsEsc&&this.startsAwaitUsing())return this.isAwaitAllowed()?o||this.raise(b.UnexpectedLexicalDeclaration,n):this.raise(b.AwaitUsingNotInAsyncContext,n),this.next(),this.parseVarStatement(n,"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(n,"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(n,e)}case 92:return this.parseWhileStatement(n);case 76:return this.parseWithStatement(n);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(n);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===r?(e=this.parseImport(n),"ImportDeclaration"!==e.type||e.importKind&&"value"!==e.importKind||(this.sawUnambiguousESM=!0)):(e=this.parseExport(n,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(n,!0,!o&&i)}const a=this.state.value,l=this.parseExpression();return K(r)&&"Identifier"===l.type&&this.eat(14)?this.parseLabeledStatement(n,a,l,e):this.parseExpressionStatement(n,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,r){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]),r&&this.resetStartLocationFromNode(r,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 r;if(this.match(10)){const t=this.state.startLoc;this.next(),r=this.parseExpression(),this.expect(11),r=this.wrapParenthesis(t,r);const n=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(r),!1===this.getPluginOption("decorators","allowCallParenthesized")&&e.expression!==r&&this.raise(b.DecoratorArgumentsOutsideParentheses,n)}else{for(r=this.parseIdentifier(!1);this.eat(16);){const e=this.startNodeAt(t);e.object=r,this.match(138)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),e.property=this.parsePrivateName()):e.property=this.parseIdentifier(!0),e.computed=!1,r=this.finishNode(e,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(r)}}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 r;for(r=0;r<this.state.labels.length;++r){const n=this.state.labels[r];if(null==e.label||n.name===e.label.name){if(null!=n.kind&&(t||1===n.kind))break;if(e.label&&t)break}}if(r===this.state.labels.length){const r=t?"BreakStatement":"ContinueStatement";this.raise(b.IllegalBreakContinue,e,{type:r})}}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 r=this.isContextual(100);{const n=this.isContextual(96)&&this.startsAwaitUsing(),o=n||this.isContextual(107)&&this.startsUsingForOf(),i=r&&this.hasFollowingBindingAtom()||o;if(this.match(74)||this.match(75)||i){const r=this.startNode();let i;n?(i="await using",this.isAwaitAllowed()||this.raise(b.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):i=this.state.value,this.next(),this.parseVar(r,!0,i);const s=this.finishNode(r,"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 n=this.isContextual(95),o=new rt,i=this.parseExpression(!0,o),s=this.isContextual(102);if(s&&(r&&this.raise(b.ForOfLet,i),null===t&&n&&"Identifier"===i.type&&this.raise(b.ForOfAsync,i)),s||this.match(58)){this.checkDestructuringPrivate(o),this.toAssignable(i,!0);const r=s?"ForOfStatement":"ForInStatement";return this.checkLVal(i,{in:{type:r}}),this.parseForIn(e,i,t)}return this.checkExpressionErrors(o,!0),null!==t&&this.unexpected(t),this.parseFor(e,i)}parseFunctionStatement(e,t,r){return this.next(),this.parseFunction(e,1|(r?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 r;this.expect(5),this.state.labels.push(Ft),this.scope.enter(0);for(let e;!this.match(8);)if(this.match(61)||this.match(65)){const n=this.match(61);r&&this.finishNode(r,"SwitchCase"),t.push(r=this.startNode()),r.consequent=[],this.next(),n?r.test=this.parseExpression():(e&&this.raise(b.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),e=!0,r.test=null),this.expect(14)}else r?r.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),r&&this.finishNode(r,"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 r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.next(),this.parseVar(e,!1,t,r),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,r,n){for(const e of this.state.labels)e.name===t&&this.raise(b.LabelRedeclaration,r,{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 r=this.state.labels[t];if(r.statementStart!==e.start)break;r.statementStart=this.state.start,r.kind=o}return this.state.labels.push({name:t,kind:o,statementStart:this.state.start}),e.body=8&n?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,t,r){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],r=arguments.length>2?arguments[2]:void 0;const n=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),t&&this.scope.enter(0),this.parseBlockBody(n,e,!1,8,r),t&&this.scope.exit(),this.finishNode(n,"BlockStatement")}isValidDirective(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized}parseBlockBody(e,t,r,n,o){const i=e.body=[],s=e.directives=[];this.parseBlockOrModuleBlockBody(i,t?s:void 0,r,n,o)}parseBlockOrModuleBlockBody(e,t,r,n,o){const i=this.state.strict;let s=!1,a=!1;for(;!this.match(n);){const n=r?this.parseModuleItem():this.parseStatementListItem();if(t&&!a){if(this.isValidDirective(n)){const e=this.stmtToDirective(n);t.push(e),s||"use strict"!==e.value.value||(s=!0,this.setStrict(!0));continue}a=!0,this.state.strictErrors.clear()}e.push(n)}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,r){const n=this.match(58);return this.next(),n?null!==r&&this.unexpected(r):e.await=null!==r,"VariableDeclaration"!==t.type||null==t.declarations[0].init||n&&this.options.annexB&&!this.state.strict&&"var"===t.kind&&"Identifier"===t.declarations[0].id.type||this.raise(b.ForInOfLoopInitializer,t,{type:n?"ForInStatement":"ForOfStatement"}),"AssignmentPattern"===t.type&&this.raise(b.InvalidLhs,t,{ancestor:{type:"ForStatement"}}),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")}parseVar(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const o=e.declarations=[];for(e.kind=r;;){const e=this.startNode();if(this.parseVarId(e,r),e.init=this.eat(29)?t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,null!==e.init||n||("Identifier"===e.id.type||t&&(this.match(58)||this.isContextual(102))?"const"!==r||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 r=this.parseBindingAtom();this.checkLVal(r,{in:{type:"VariableDeclarator"},binding:"var"===t?5:8201}),e.id=r}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const r=2&t,n=!!(1&t),o=n&&!(4&t),i=!!(8&t);this.initFunction(e,i),this.match(55)&&(r&&this.raise(b.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),n&&(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)),n||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext((()=>{this.parseFunctionBodyAndFinish(e,n?"FunctionDeclaration":"FunctionExpression")})),this.prodParam.exit(),this.scope.exit(),n&&!r&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=s,e}parseFunctionId(e){return e||K(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,r){this.next();const n=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,r),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,n),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 r={hadConstructor:!1,hadSuperClass:e};let n=[];const o=this.startNode();if(o.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext((()=>{for(;!this.match(8);){if(this.eat(13)){if(n.length>0)throw this.raise(b.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){n.push(this.parseDecorator());continue}const e=this.startNode();n.length&&(e.decorators=n,this.resetStartLocationFromNode(e,n[0]),n=[]),this.parseClassMember(o,e,r),"constructor"===e.kind&&e.decorators&&e.decorators.length>0&&this.raise(b.DecoratorConstructor,e)}})),this.state.strict=t,this.next(),n.length)throw this.raise(b.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(o,"ClassBody")}parseClassMemberFromModifier(e,t){const r=this.parseIdentifier(!0);if(this.isClassMethod()){const n=t;return n.kind="method",n.computed=!1,n.key=r,n.static=!1,this.pushClassMethod(e,n,!1,!1,!1,!1),!0}if(this.isClassProperty()){const n=t;return n.computed=!1,n.key=r,n.static=!1,e.body.push(this.parseClassProperty(n)),!0}return this.resetPreviousNodeTrailingComments(r),!1}parseClassMember(e,t,r){const n=this.isContextual(106);if(n){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(5))return void this.parseClassStaticBlock(e,t)}this.parseClassMemberWithIsStatic(e,t,r,n)}parseClassMemberWithIsStatic(e,t,r,n){const o=t,i=t,s=t,a=t,l=t,c=o,u=o;if(t.static=n,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=K(this.state.type)&&!this.state.containsEsc,d=this.match(138),f=this.parseClassElementName(t),h=this.state.startLoc;if(this.parsePostMemberNameModifiers(u),this.isClassMethod()){if(c.kind="method",d)return void this.pushClassPrivateMethod(e,i,!1,!1);const n=this.isNonstaticConstructor(o);let s=!1;n&&(o.kind="constructor",r.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(b.DuplicateConstructor,f),n&&this.hasPlugin("typescript")&&t.override&&this.raise(b.OverrideOnConstructor,f),r.hadConstructor=!0,s=r.hadSuperClass),this.pushClassMethod(e,o,!1,!1,n,s)}else if(this.isClassProperty())d?this.pushClassPrivateProperty(e,a):this.pushClassProperty(e,s);else if(p&&"async"===f.name&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(f);const t=this.eat(55);u.optional&&this.unexpected(h),c.kind="method";const r=this.match(138);this.parseClassElementName(c),this.parsePostMemberNameModifiers(u),r?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"!==f.name&&"set"!==f.name||this.match(55)&&this.isLineTerminator())if(p&&"accessor"===f.name&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(f);const t=this.match(138);this.parseClassElementName(s),this.pushClassAccessorProperty(e,l,t)}else this.isLineTerminator()?d?this.pushClassPrivateProperty(e,a):this.pushClassProperty(e,s):this.unexpected();else{this.resetPreviousNodeTrailingComments(f),c.kind=f.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:r}=this.state;if(132!==t&&133!==t||!e.static||"prototype"!==r||this.raise(b.StaticPrototype,this.state.startLoc),138===t){"constructor"===r&&this.raise(b.ConstructorClassPrivateField,this.state.startLoc);const t=this.parsePrivateName();return e.key=t,t}return this.parsePropertyName(e)}parseClassStaticBlock(e,t){var r;this.scope.enter(208);const n=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=n,e.body.push(this.finishNode(t,"StaticBlock")),null!=(r=t.decorators)&&r.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 r=this.parseClassPrivateProperty(t);e.body.push(r),this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),0,r.key.loc.start)}pushClassAccessorProperty(e,t,r){if(!r&&!t.computed){const e=t.key;"constructor"!==e.name&&"constructor"!==e.value||this.raise(b.ConstructorClassField,e)}const n=this.parseClassAccessorProperty(t);e.body.push(n),r&&this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),0,n.key.loc.start)}pushClassMethod(e,t,r,n,o,i){e.body.push(this.parseMethod(t,r,n,o,i,"ClassMethod",!0))}pushClassPrivateMethod(e,t,r,n){const o=this.parseMethod(t,r,n,!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,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:8331;if(K(this.state.type))e.id=this.parseIdentifier(),t&&this.declareNameFromIdentifier(e.id,n);else{if(!r&&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 r=this.parseMaybeImportPhase(e,!0),n=this.maybeParseExportDefaultSpecifier(e,r),o=!n||this.eat(12),i=o&&this.eatExportStar(e),s=i&&this.maybeParseExportNamespaceSpecifier(e),a=o&&(!s||this.eat(12)),l=n||i;if(i&&!s){if(n&&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(n&&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 r=e;if(this.checkExport(r,!0,!1,!!r.source),"ClassDeclaration"===(null==(p=r.declaration)?void 0:p.type))this.maybeTakeDecorators(t,r.declaration,r);else if(t)throw this.raise(b.UnsupportedDecoratorExport,e);return this.finishNode(r,"ExportNamedDeclaration")}if(this.eat(65)){const r=e,n=this.parseExportDefaultExpression();if(r.declaration=n,"ClassDeclaration"===n.type)this.maybeTakeDecorators(t,n,r);else if(t)throw this.raise(b.UnsupportedDecoratorExport,e);return this.checkExport(r,!0,!0),this.finishNode(r,"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 r=t||this.parseIdentifier(!0),n=this.startNodeAtNode(r);return n.exported=r,e.specifiers=[this.finishNode(n,"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(K(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(K(e)&&98!==e||5===e)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;const t=this.nextTokenStart(),r=this.isUnparsedContextual(t,"from");if(44===this.input.charCodeAt(t)||K(this.state.type)&&r)return!0;if(this.match(65)&&r){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,r,n){var o;if(t)if(r){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,r="Identifier"===e.type?e.name:e.value;if(this.checkDuplicateExports(t,r),!n&&t.local){const{local:e}=t;"Identifier"!==e.type?this.raise(b.ExportBindingIsString,t,{localName:e.value,exportName:r}):(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 r=!0;for(this.expect(5);!this.eat(8);){if(r)r=!1;else if(this.expect(12),this.eat(8))break;const n=this.isContextual(130),o=this.match(133),i=this.startNode();i.local=this.parseModuleExportName(),t.push(this.parseExportSpecifier(i,o,e,n))}return t}parseExportSpecifier(e,t,r,n){return this.eatContextual(93)?e.exported=this.parseModuleExportName():t?e.exported=function(e){const{type:t,start:r,end:n,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=r,a.end=n,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(Ut);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:r}=e;return"json"===r.value&&("Identifier"===t.type?"type"===t.name:"type"===t.value)}))}checkImportReflection(e){const{specifiers:t}=e,r=1===t.length?t[0].type:null;if("source"===e.phase)"ImportDefaultSpecifier"!==r&&this.raise(b.SourcePhaseImportRequiresDefault,t[0].loc.start);else if("defer"===e.phase)"ImportNamespaceSpecifier"!==r&&this.raise(b.DeferImportRequiresNamespace,t[0].loc.start);else if(e.module){var n;"ImportDefaultSpecifier"!==r&&this.raise(b.ImportReflectionNotBinding,t[0].loc.start),(null==(n=e.assertions)?void 0:n.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,r,n){t||("module"===r?(this.expectPlugin("importReflection",n),e.module=!0):this.hasPlugin("importReflection")&&(e.module=!1),"source"===r?(this.expectPlugin("sourcePhaseImports",n),e.phase="source"):"defer"===r?(this.expectPlugin("deferredImportEvaluation",n),e.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(e.phase=null))}parseMaybeImportPhase(e,t){if(!this.isPotentialImportPhase(t))return this.applyImportPhase(e,t,null),null;const r=this.parseIdentifier(!0),{type:n}=this.state;return(q(n)?98!==n||102===this.lookaheadCharCode():12!==n)?(this.resetPreviousIdentifierLeadingComments(r),this.applyImportPhase(e,t,r.name,r.loc.start),null):(this.applyImportPhase(e,t,null),r)}isPrecedingIdImportPhase(e){const{type:t}=this.state;return K(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 r=!this.maybeParseDefaultImportSpecifier(e,t)||this.eat(12),n=r&&this.maybeParseStarImportSpecifier(e);return r&&!n&&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,r){t.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,r))}finishImportSpecifier(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:8201;return this.checkLVal(e.local,{in:{type:t},binding:r}),this.finishNode(e,t)}parseImportAttributes(){this.expect(5);const e=[],t=new Set;do{if(this.match(8))break;const r=this.startNode(),n=this.state.value;if(t.has(n)&&this.raise(b.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:n}),t.add(n),this.match(133)?r.key=this.parseStringLiteral(n):r.key=this.parseIdentifier(!0),this.expect(14),!this.match(133))throw this.raise(b.ModuleAttributeInvalidValue,this.state.startLoc);r.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));return this.expect(8),e}parseModuleAttributes(){const e=[],t=new Set;do{const r=this.startNode();if(r.key=this.parseIdentifier(!0),"type"!==r.key.name&&this.raise(b.ModuleAttributeDifferentFromType,r.key),t.has(r.key.name)&&this.raise(b.ModuleAttributesWithDuplicateKeys,r.key,{key:r.key.name}),t.add(r.key.name),this.expect(14),!this.match(133))throw this.raise(b.ModuleAttributeInvalidValue,this.state.startLoc);r.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));return e}maybeParseImportAttributes(e){let t,r=!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()),r=!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=[]}!r&&this.hasPlugin("importAssertions")?e.assertions=t:e.attributes=t}maybeParseDefaultImportSpecifier(e,t){if(t){const r=this.startNodeAtNode(t);return r.local=t,e.specifiers.push(this.finishImportSpecifier(r,"ImportDefaultSpecifier")),!0}return!!q(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 r=this.startNode(),n=this.match(133),o=this.isContextual(130);r.imported=this.parseModuleExportName();const i=this.parseImportSpecifier(r,n,"type"===e.importKind||"typeof"===e.importKind,o,void 0);e.specifiers.push(i)}}parseImportSpecifier(e,t,r,n,o){if(this.eatContextual(93))e.local=this.parseIdentifier();else{const{imported:r}=e;if(t)throw this.raise(b.ImportBindingIsString,e,{importName:r.value});this.checkReservedWord(r.name,e.loc.start,!0,!0),e.local||(e.local=it(r))}return this.finishImportSpecifier(e,"ImportSpecifier",o)}isThisParam(e){return"Identifier"===e.type&&"this"===e.name}}class $t extends Wt{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 n of Object.keys(Lt)){var r;t[n]=null!=(r=e[n])?r:Lt[n]}return t}(e),t),this.options=e,this.initializeScopes(),this.plugins=function(e){const t=new Map;for(const r of e){const[e,n]=Array.isArray(r)?r:[r,{}];t.has(e)||t.set(e,n||{})}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 Kt=function(e){const t={};for(const r of Object.keys(e))t[r]=Z(e[r]);return t}($);function qt(e,t){let r=$t;return null!=e&&e.plugins&&(function(e){if(Ot(e,"decorators")){if(Ot(e,"decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");const t=It(e,"decorators","decoratorsBeforeExport");if(null!=t&&"boolean"!=typeof t)throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");const r=It(e,"decorators","allowCallParenthesized");if(null!=r&&"boolean"!=typeof r)throw new Error("'allowCallParenthesized' must be a boolean.")}if(Ot(e,"flow")&&Ot(e,"typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(Ot(e,"placeholders")&&Ot(e,"v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(Ot(e,"pipelineOperator")){const t=It(e,"pipelineOperator","proposal");if(!kt.includes(t)){const e=kt.map((e=>`"${e}"`)).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${e}.`)}const r=Ot(e,["recordAndTuple",{syntaxType:"hash"}]);if("hack"===t){if(Ot(e,"placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(Ot(e,"v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");const t=It(e,"pipelineOperator","topicToken");if(!Dt.includes(t)){const e=Dt.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&&r)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "hack", topicToken: "#" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}else if("smart"===t&&r)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "smart" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}if(Ot(e,"moduleAttributes")){if(Ot(e,"importAssertions")||Ot(e,"importAttributes"))throw new Error("Cannot combine importAssertions, importAttributes and moduleAttributes plugins.");if("may-2020"!==It(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(Ot(e,"importAssertions")&&Ot(e,"importAttributes"))throw new Error("Cannot combine importAssertions and importAttributes plugins.");if(Ot(e,"recordAndTuple")&&null!=It(e,"recordAndTuple","syntaxType")&&!Mt.includes(It(e,"recordAndTuple","syntaxType")))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+Mt.map((e=>`'${e}'`)).join(", "));if(Ot(e,"asyncDoExpressions")&&!Ot(e,"doExpressions")){const e=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw e.missingPlugins="doExpressions",e}if(Ot(e,"optionalChainingAssign")&&"2023-07"!==It(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),r=function(e){const t=Nt.filter((t=>Ot(e,t))),r=t.join("/");let n=zt[r];if(!n){n=$t;for(const e of t)n=jt[e](n);zt[r]=n}return n}(e.plugins)),new r(e,t)}const zt={};t.parse=function(e,t){var r;if("unambiguous"!==(null==(r=t)?void 0:r.sourceType))return qt(t,e).parse();t=Object.assign({},t);try{t.sourceType="module";const r=qt(t,e),n=r.parse();if(r.sawUnambiguousESM)return n;if(r.ambiguousScriptDifferentAst)try{return t.sourceType="script",qt(t,e).parse()}catch(e){}else n.program.sourceType="script";return n}catch(r){try{return t.sourceType="script",qt(t,e).parse()}catch(e){}throw r}},t.parseExpression=function(e,t){const r=qt(t,e);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()},t.tokTypes=Kt},(e,t,r)=>{var n;r(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=r(230)(),d=r(231)(),f=Object.getPrototypeOf||(d?function(e){return e.__proto__}:null),h={},m="undefined"!=typeof Uint8Array&&f?f(Uint8Array):n,y={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":p&&f?f([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p&&f?f(f([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p&&f?f((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p&&f?f((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p&&f?f(""[Symbol.iterator]()):n,"%Symbol%":p?Symbol:n,"%SyntaxError%":o,"%ThrowTypeError%":u,"%TypedArray%":m,"%TypeError%":s,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(f)try{null.error}catch(e){var g=f(f(e));y["%Error.prototype%"]=g}var v=function e(t){var r;if("%AsyncFunction%"===t)r=a("async function () {}");else if("%GeneratorFunction%"===t)r=a("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=a("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&f&&(r=f(o.prototype))}return y[t]=r,r},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"]},_=r(71),E=r(233),x=_.call(Function.call,Array.prototype.concat),S=_.call(Function.apply,Array.prototype.splice),w=_.call(Function.call,String.prototype.replace),A=_.call(Function.call,String.prototype.slice),T=_.call(Function.call,RegExp.prototype.exec),P=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,C=/\\(\\)?/g,O=function(e,t){var r,n=e;if(E(b,n)&&(n="%"+(r=b[n])[0]+"%"),E(y,n)){var i=y[n];if(i===h&&(i=v(n)),void 0===i&&!t)throw new s("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,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===T(/^%?[^%]*%?$/,e))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=A(e,0,1),r=A(e,-1);if("%"===t&&"%"!==r)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var n=[];return w(e,P,(function(e,t,r,o){n[n.length]=r?w(o,C,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",i=O("%"+n+"%",t),a=i.name,c=i.value,u=!1,p=i.alias;p&&(n=p[0],S(r,x([0,1],p)));for(var d=1,f=!0;d<r.length;d+=1){var h=r[d],m=A(h,0,1),g=A(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&&f||(u=!0),E(y,a="%"+(n+="."+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&&d+1>=r.length){var v=l(c,h);c=(f=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:c[h]}else f=E(c,h),c=c[h];f&&!u&&(y[a]=c)}}return c}},(e,t,r)=>{const n=r(34),o=r(47),i=r(3),s=r(128),a=r(30),l=r(253),c=r(254),u=r(255),p=r(256),d=r(257),f=r(258),h=r(259),m=r(260),y=r(7),g=r(261),v=r(262),b=r(76),_=r(263),E=r(264),x=r(49),S=r(77),w=r(129),A=r(130),T=r(78),P=r(79),C=r(131),O=r(265),I=r(50),k=r(8),D=r(51),M=r(268),j=r(269),N=r(270),L=r(271),R=r(272),B=r(80),F=r(273),U=r(274),V=r(275),W=r(276),$=r(277);e.exports={parse:a,valid:l,clean:c,inc:u,diff:p,major:d,minor:f,patch:h,prerelease:m,compare:y,rcompare:g,compareLoose:v,compareBuild:b,sort:_,rsort:E,gt:x,lt:S,eq:w,neq:A,gte:T,lte:P,cmp:C,coerce:O,Comparator:I,Range:k,satisfies:D,toComparators:M,maxSatisfying:j,minSatisfying:N,minVersion:L,validRange:R,outside:B,gtr:F,ltr:U,intersects:V,simplifyRange:W,subset:$,SemVer:i,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:o.SEMVER_SPEC_VERSION,RELEASE_TYPES:o.RELEASE_TYPES,compareIdentifiers:s.compareIdentifiers,rcompareIdentifiers:s.rcompareIdentifiers}},(e,t,r)=>{let n,o,i,s,{isClean:a,my:l}=r(145),c=r(52),u=r(56),p=r(53);function d(e){return e.map((e=>(e.nodes&&(e.nodes=d(e.nodes)),delete e.source,e)))}function f(e){if(e[a]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)f(t)}class h extends p{append(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];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,r,n=this.getIterator();for(;this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],r=e(this.proxyOf.nodes[t],t),!1!==r);)this.indexes[n]+=1;return delete this.indexes[n],r}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 r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return e[t](...n.map((e=>"function"==typeof e?(t,r)=>e(t.toProxy(),r):e)))}:"every"===t||"some"===t?r=>e[t]((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return r(e.toProxy(),...n)})):"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,r)=>(e[t]===r||(e[t]=r,"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 r,n=this.index(e),o=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let e of o)this.proxyOf.nodes.splice(n+1,0,e);for(let e in this.indexes)r=this.indexes[e],n<r&&(this.indexes[e]=r+o.length);return this.markDirty(),this}insertBefore(e,t){let r,n=this.index(e),o=0===n&&"prepend",i=this.normalize(t,this.proxyOf.nodes[n],o).reverse();n=this.index(e);for(let e of i)this.proxyOf.nodes.splice(n,0,e);for(let e in this.indexes)r=this.indexes[e],n<=r&&(this.indexes[e]=r+i.length);return this.markDirty(),this}normalize(e,t){if("string"==typeof e)e=d(n(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]&&f(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),r=0;r<e;r++)t[r]=arguments[r];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 r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls((n=>{t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))})),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each(((t,r)=>{let n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n}))}walkAtRules(e,t){return t?e instanceof RegExp?this.walk(((r,n)=>{if("atrule"===r.type&&e.test(r.name))return t(r,n)})):this.walk(((r,n)=>{if("atrule"===r.type&&r.name===e)return t(r,n)})):(t=e,this.walk(((e,r)=>{if("atrule"===e.type)return t(e,r)})))}walkComments(e){return this.walk(((t,r)=>{if("comment"===t.type)return e(t,r)}))}walkDecls(e,t){return t?e instanceof RegExp?this.walk(((r,n)=>{if("decl"===r.type&&e.test(r.prop))return t(r,n)})):this.walk(((r,n)=>{if("decl"===r.type&&r.prop===e)return t(r,n)})):(t=e,this.walk(((e,r)=>{if("decl"===e.type)return t(e,r)})))}walkRules(e,t){return t?e instanceof RegExp?this.walk(((r,n)=>{if("rule"===r.type&&e.test(r.selector))return t(r,n)})):this.walk(((r,n)=>{if("rule"===r.type&&r.selector===e)return t(r,n)})):(t=e,this.walk(((e,r)=>{if("rule"===e.type)return t(e,r)})))}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=>{n=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,r)=>{var n=r(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=r(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,d=a.ERR_MISSING_ARGS,f=r(241),h=r(32).inspect,m=r(32).types,y=m.isPromise,g=m.isRegExp,v=r(242)(),b=r(74)(),_=r(38)("RegExp.prototype.test");function E(){var e=r(245);i=e.isDeepEqual,s=e.isDeepStrictEqual}new Map;var x=!1,S=e.exports=P,w={};function A(e){if(e.message instanceof Error)throw e.message;throw new f(e)}function T(e,t,r,n){if(!r){var o=!1;if(0===t)o=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var i=new f({actual:r,expected:!0,message:n,operator:"==",stackStartFn:e});throw i.generatedMessage=o,i}}function P(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];T.apply(void 0,[P,t.length].concat(t))}S.fail=function e(t,r,o,i,s){var a,l=arguments.length;if(0===l?a="Failed":1===l?(o=t,t=void 0):(!1===x&&(x=!0,(n.emitWarning?n.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:r,operator:void 0===i?"fail":i,stackStartFn:s||e};void 0!==o&&(c.message=o);var u=new f(c);throw a&&(u.message=a,u.generatedMessage=!0),u},S.AssertionError=f,S.ok=P,S.equal=function e(t,r,n){if(arguments.length<2)throw new d("actual","expected");t!=r&&A({actual:t,expected:r,message:n,operator:"==",stackStartFn:e})},S.notEqual=function e(t,r,n){if(arguments.length<2)throw new d("actual","expected");t==r&&A({actual:t,expected:r,message:n,operator:"!=",stackStartFn:e})},S.deepEqual=function e(t,r,n){if(arguments.length<2)throw new d("actual","expected");void 0===i&&E(),i(t,r)||A({actual:t,expected:r,message:n,operator:"deepEqual",stackStartFn:e})},S.notDeepEqual=function e(t,r,n){if(arguments.length<2)throw new d("actual","expected");void 0===i&&E(),i(t,r)&&A({actual:t,expected:r,message:n,operator:"notDeepEqual",stackStartFn:e})},S.deepStrictEqual=function e(t,r,n){if(arguments.length<2)throw new d("actual","expected");void 0===i&&E(),s(t,r)||A({actual:t,expected:r,message:n,operator:"deepStrictEqual",stackStartFn:e})},S.notDeepStrictEqual=function e(t,r,n){if(arguments.length<2)throw new d("actual","expected");void 0===i&&E(),s(t,r)&&A({actual:t,expected:r,message:n,operator:"notDeepStrictEqual",stackStartFn:e})},S.strictEqual=function e(t,r,n){if(arguments.length<2)throw new d("actual","expected");b(t,r)||A({actual:t,expected:r,message:n,operator:"strictEqual",stackStartFn:e})},S.notStrictEqual=function e(t,r,n){if(arguments.length<2)throw new d("actual","expected");b(t,r)&&A({actual:t,expected:r,message:n,operator:"notStrictEqual",stackStartFn:e})};var C=function(e){return Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,r,n){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r.forEach((function(e){e in t&&(void 0!==n&&"string"==typeof n[e]&&g(t[e])&&_(t[e],n[e])?o[e]=n[e]:o[e]=t[e])}))}));function O(e,t,r,n){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 f({actual:e,expected:t,message:r,operator:"deepStrictEqual",stackStartFn:n});throw a.operator=n.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,r,n,o,i){if(!(r in e)||!s(e[r],t[r])){if(!n){var a=new C(e,o),l=new C(t,o,e),c=new f({actual:a,expected:l,operator:"deepStrictEqual",stackStartFn:i});throw c.actual=e,c.expected=t,c.operator=i.name,c}A({actual:e,expected:t,message:n,operator:i.name,stackStartFn:i})}}(e,t,o,r,l,n)})),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function I(e){if("function"!=typeof e)throw new c("fn","Function",e);try{e()}catch(e){return e}return w}function k(e){return y(e)||null!==e&&"object"===o(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function D(e){return Promise.resolve().then((function(){var t;if("function"==typeof e){if(!k(t=e()))throw new p("instance of Promise","promiseFn",t)}else{if(!k(e))throw new c("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then((function(){return t})).then((function(){return w})).catch((function(e){return e}))}))}function M(e,t,r,n){if("string"==typeof r){if(4===arguments.length)throw new c("error",["Object","Error","Function","RegExp"],r);if("object"===o(t)&&null!==t){if(t.message===r)throw new l("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===r)throw new l("error/message",'The error "'.concat(t,'" is identical to the message.'));n=r,r=void 0}else if(null!=r&&"object"!==o(r)&&"function"!=typeof r)throw new c("error",["Object","Error","Function","RegExp"],r);if(t===w){var i="";r&&r.name&&(i+=" (".concat(r.name,")")),i+=n?": ".concat(n):".";var s="rejects"===e.name?"rejection":"exception";A({actual:void 0,expected:r,operator:e.name,message:"Missing expected ".concat(s).concat(i),stackStartFn:e})}if(r&&!O(t,r,n,e))throw t}function j(e,t,r,n){if(t!==w){if("string"==typeof r&&(n=r,r=void 0),!r||O(t,r)){var o=n?": ".concat(n):".",i="doesNotReject"===e.name?"rejection":"exception";A({actual:t,expected:r,operator:e.name,message:"Got unwanted ".concat(i).concat(o,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function N(e,t,r,n,i){if(!g(t))throw new c("regexp","RegExp",t);var s="match"===i;if("string"!=typeof e||_(t,e)!==s){if(r instanceof Error)throw r;var a=!r;r=r||("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 f({actual:e,expected:t,message:r,operator:i,stackStartFn:n});throw l.generatedMessage=a,l}}function L(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];T.apply(void 0,[L,t.length].concat(t))}S.throws=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];M.apply(void 0,[e,I(t)].concat(n))},S.rejects=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return D(t).then((function(t){return M.apply(void 0,[e,t].concat(n))}))},S.doesNotThrow=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];j.apply(void 0,[e,I(t)].concat(n))},S.doesNotReject=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return D(t).then((function(t){return j.apply(void 0,[e,t].concat(n))}))},S.ifError=function e(t){if(null!=t){var r="ifError got unwanted exception: ";"object"===o(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?r+=t.constructor.name:r+=t.message:r+=h(t);var n=new f({actual:t,expected:null,operator:"ifError",message:r,stackStartFn:e}),i=t.stack;if("string"==typeof i){var s=i.split("\n");s.shift();for(var a=n.stack.split("\n"),l=0;l<s.length;l++){var c=a.indexOf(s[l]);if(-1!==c){a=a.slice(0,c);break}}n.stack="".concat(a.join("\n"),"\n").concat(s.join("\n"))}throw n}},S.match=function e(t,r,n){N(t,r,n,e,"match")},S.doesNotMatch=function e(t,r,n){N(t,r,n,e,"doesNotMatch")},S.strict=v(L,S,{equal:S.strictEqual,deepEqual:S.deepStrictEqual,notEqual:S.notStrictEqual,notDeepEqual:S.notDeepStrictEqual}),S.strict.strict=S.strict},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UPDATE_OPERATORS=t.UNARY_OPERATORS=t.STRING_UNARY_OPERATORS=t.STATEMENT_OR_BLOCK_KEYS=t.NUMBER_UNARY_OPERATORS=t.NUMBER_BINARY_OPERATORS=t.NOT_LOCAL_BINDING=t.LOGICAL_OPERATORS=t.INHERIT_KEYS=t.FOR_INIT_KEYS=t.FLATTENABLE_KEYS=t.EQUALITY_BINARY_OPERATORS=t.COMPARISON_BINARY_OPERATORS=t.COMMENT_KEYS=t.BOOLEAN_UNARY_OPERATORS=t.BOOLEAN_NUMBER_BINARY_OPERATORS=t.BOOLEAN_BINARY_OPERATORS=t.BLOCK_SCOPED_SYMBOL=t.BINARY_OPERATORS=t.ASSIGNMENT_OPERATORS=void 0,t.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"],t.FLATTENABLE_KEYS=["body","expressions"],t.FOR_INIT_KEYS=["left","init"],t.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"];const r=t.LOGICAL_OPERATORS=["||","&&","??"],n=(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,...n],a=t.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"],l=(t.BINARY_OPERATORS=["+",...a,...s,"|>"],t.ASSIGNMENT_OPERATORS=["=","+=",...a.map((e=>e+"=")),...r.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,r)=>{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 n=r(9),o=r(2);const i=Function.call.bind(Object.prototype.hasOwnProperty);function s(e,t,r,n){return e&&"string"==typeof e.type?l(e,t,r,n):e}function a(e,t,r,n){return Array.isArray(e)?e.map((e=>s(e,t,r,n))):s(e,t,r,n)}function l(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=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,r,s):e.typeAnnotation);else{if(!i(n.NODE_FIELDS,l))throw new Error(`Unknown node type: "${l}"`);for(const p of Object.keys(n.NODE_FIELDS[l]))i(e,p)&&(u[p]=t?(0,o.isFile)(e)&&"comments"===p?c(e.comments,t,r,s):a(e[p],!0,r,s):e[p])}return i(e,"loc")&&(u.loc=r?null:e.loc),i(e,"leadingComments")&&(u.leadingComments=c(e.leadingComments,t,r,s)),i(e,"innerComments")&&(u.innerComments=c(e.innerComments,t,r,s)),i(e,"trailingComments")&&(u.trailingComments=c(e.trailingComments,t,r,s)),i(e,"extra")&&(u.extra=Object.assign({},e.extra)),u}function c(e,t,r,n){return e&&t?e.map((e=>{const t=n.get(e);if(t)return t;const{type:o,value:i,loc:s}=e,a={type:o,value:i,loc:s};return r&&(a.loc=null),n.set(e,a),a})):e}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.SHOULD_STOP=t.SHOULD_SKIP=t.REMOVED=void 0;var n=r(162),o=r(61),i=r(14),s=r(183),a=r(0),l=a,c=r(35),u=r(101),p=r(423),d=r(424),f=r(427),h=r(430),m=r(431),y=r(436),g=r(437),v=r(438),b=r(440),_=r(442),E=r(443),x=r(163);const{validate:S}=a,w=o("babel"),A=t.REMOVED=1,T=t.SHOULD_STOP=2,P=t.SHOULD_SKIP=4;class C{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:r,parent:n,container:o,listKey:i,key:s}=e;if(!t&&r&&(t=r.hub),!n)throw new Error("To get a node path the parent needs to exist");const a=o[s],l=c.getOrCreateCachedPaths(t,n);let u=l.get(a);return u||(u=new C(t,n),a&&l.set(a,u)),u.setup(r,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 r=this.data[e];return void 0===r&&void 0!==t&&(r=this.data[e]=t),r}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){S(this.node,e,t),this.node[e]=t}getPathLocation(){const e=[];let t=this;do{let r=t.key;t.inList&&(r=`${t.listKey}[${r}]`),e.unshift(r)}while(t=t.parentPath);return e.join(".")}debug(e){w.enabled&&w(`${this.getPathLocation()} ${this.type}: ${e}`)}toString(){return(0,u.default)(this.node).code}get inList(){return!!this.listKey}set inList(e){e||(this.listKey=null)}get parentKey(){return this.listKey||this.key}get shouldSkip(){return!!(this._traverseFlags&P)}set shouldSkip(e){e?this._traverseFlags|=P:this._traverseFlags&=~P}get shouldStop(){return!!(this._traverseFlags&T)}set shouldStop(e){e?this._traverseFlags|=T:this._traverseFlags&=~T}get removed(){return!!(this._traverseFlags&A)}set removed(e){e?this._traverseFlags|=A:this._traverseFlags&=~A}}Object.assign(C.prototype,p,d,f,h,m,y,g,v,b,_,E),C.prototype._guessExecutionStatusRelativeToDifferentFunctions=y._guessExecutionStatusRelativeTo;for(const e of l.TYPES){const t=`is${e}`,r=l[t];C.prototype[t]=function(e){return r(this.node,e)},C.prototype[`assert${e}`]=function(t){if(!r(this.node,t))throw new TypeError(`Expected node path of type ${e}`)}}Object.assign(C.prototype,x);for(const e of Object.keys(n))"_"!==e[0]&&(l.TYPES.includes(e)||l.TYPES.push(e));t.default=C},(e,t,r)=>{var n=r(19),o=r(63),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},(e,t,r)=>{const n=r(3);e.exports=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}},(e,t,r)=>{r(12);const n=r(417),o=r(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,r){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,r)}function c(e,t,r){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 r=0|m(e,t);let n=a(r);const o=n.write(e,t);return o!==r&&(n=n.slice(0,o)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Q(e,Uint8Array)){const t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return d(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 f(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(Q(e,SharedArrayBuffer)||e&&Q(e.buffer,SharedArrayBuffer)))return f(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return l.from(n,t,r);const o=function(e){if(l.isBuffer(e)){const t=0|h(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||X(e.length)?a(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(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,r);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 d(e){const t=e.length<0?0:0|h(e.length),r=a(t);for(let n=0;n<t;n+=1)r[n]=255&e[n];return r}function f(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(n,l.prototype),n}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 r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let o=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return H(e).length;default:if(o)return n?-1:z(e).length;t=(""+t).toLowerCase(),o=!0}}function y(e,t,r){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return I(this,t,r);case"utf8":case"utf-8":return T(this,t,r);case"ascii":return C(this,t,r);case"latin1":case"binary":return O(this,t,r);case"base64":return A(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function g(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function v(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),X(r=+r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=l.from(t,n)),l.isBuffer(t))return 0===t.length?-1:b(e,t,r,n,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):b(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function b(e,t,r,n,o){let i,s=1,a=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,a/=2,l/=2,r/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){let n=-1;for(i=r;i<a;i++)if(c(e,i)===c(t,-1===n?0:i-n)){if(-1===n&&(n=i),i-n+1===l)return n*s}else-1!==n&&(i-=i-n),n=-1}else for(r+l>a&&(r=a-l),i=r;i>=0;i--){let r=!0;for(let n=0;n<l;n++)if(c(e,i+n)!==c(t,n)){r=!1;break}if(r)return i}return-1}function _(e,t,r,n){r=Number(r)||0;const o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;const i=t.length;let s;for(n>i/2&&(n=i/2),s=0;s<n;++s){const n=parseInt(t.substr(2*s,2),16);if(X(n))return s;e[r+s]=n}return s}function E(e,t,r,n){return G(z(t,e.length-r),e,r,n)}function x(e,t,r,n){return G(function(e){const t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function S(e,t,r,n){return G(H(t),e,r,n)}function w(e,t,r,n){return G(function(e,t){let r,n,o;const i=[];for(let s=0;s<e.length&&!((t-=2)<0);++s)r=e.charCodeAt(s),n=r>>8,o=r%256,i.push(o),i.push(n);return i}(t,e.length-r),e,r,n)}function A(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function T(e,t,r){r=Math.min(e.length,r);const n=[];let o=t;for(;o<r;){const t=e[o];let i=null,s=t>239?4:t>223?3:t>191?2:1;if(o+s<=r){let r,n,a,l;switch(s){case 1:t<128&&(i=t);break;case 2:r=e[o+1],128==(192&r)&&(l=(31&t)<<6|63&r,l>127&&(i=l));break;case 3:r=e[o+1],n=e[o+2],128==(192&r)&&128==(192&n)&&(l=(15&t)<<12|(63&r)<<6|63&n,l>2047&&(l<55296||l>57343)&&(i=l));break;case 4:r=e[o+1],n=e[o+2],a=e[o+3],128==(192&r)&&128==(192&n)&&128==(192&a)&&(l=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&a,l>65535&&l<1114112&&(i=l))}}null===i?(i=65533,s=1):i>65535&&(i-=65536,n.push(i>>>10&1023|55296),i=56320|1023&i),n.push(i),o+=s}return function(e){const t=e.length;if(t<=P)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=P));return r}(n)}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,r){return c(e,t,r)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,r){return function(e,t,r){return u(e),e<=0?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)}(e,t,r)},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 r=e.length,n=t.length;for(let o=0,i=Math.min(r,n);o<i;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?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 r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;const n=l.allocUnsafe(t);let o=0;for(r=0;r<e.length;++r){let t=e[r];if(Q(t,Uint8Array))o+t.length>n.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(n,o)):Uint8Array.prototype.set.call(n,t,o);else{if(!l.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,o)}o+=t.length}return n},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?T(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 r=t.b;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},i&&(l.prototype[i]=l.prototype.inspect),l.prototype.compare=function(e,t,r,n,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===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;let i=(o>>>=0)-(n>>>=0),s=(r>>>=0)-(t>>>=0);const a=Math.min(i,s),c=this.slice(n,o),u=e.slice(t,r);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,r){return-1!==this.indexOf(e,t,r)},l.prototype.indexOf=function(e,t,r){return v(this,e,t,r,!0)},l.prototype.lastIndexOf=function(e,t,r){return v(this,e,t,r,!1)},l.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let i=!1;for(;;)switch(n){case"hex":return _(this,e,t,r);case"utf8":case"utf-8":return E(this,e,t,r);case"ascii":case"latin1":case"binary":return x(this,e,t,r);case"base64":return S(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const P=4096;function C(e,t,r){let n="";r=Math.min(e.length,r);for(let o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}function O(e,t,r){let n="";r=Math.min(e.length,r);for(let o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function I(e,t,r){const n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let o="";for(let n=t;n<r;++n)o+=Y[e[n]];return o}function k(e,t,r){const n=e.slice(t,r);let o="";for(let e=0;e<n.length-1;e+=2)o+=String.fromCharCode(n[e]+256*n[e+1]);return o}function D(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,r,n,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(r+n>e.length)throw new RangeError("Index out of range")}function j(e,t,r,n,o){W(t,n,o,e,r,7);let i=Number(t&BigInt(4294967295));e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,r}function N(e,t,r,n,o){W(t,n,o,e,r,7);let i=Number(t&BigInt(4294967295));e[r+7]=i,i>>=8,e[r+6]=i,i>>=8,e[r+5]=i,i>>=8,e[r+4]=i;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=s,s>>=8,e[r+2]=s,s>>=8,e[r+1]=s,s>>=8,e[r]=s,r+8}function L(e,t,r,n,o,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function R(e,t,r,n,i){return t=+t,r>>>=0,i||L(e,0,r,4),o.write(e,t,r,n,23,4),r+4}function B(e,t,r,n,i){return t=+t,r>>>=0,i||L(e,0,r,8),o.write(e,t,r,n,52,8),r+8}l.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);const n=this.subarray(e,t);return Object.setPrototypeOf(n,l.prototype),n},l.prototype.readUintLE=l.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||D(e,t,this.length);let n=this[e],o=1,i=0;for(;++i<t&&(o*=256);)n+=this[e+i]*o;return n},l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||D(e,t,this.length);let n=this[e+--t],o=1;for(;t>0&&(o*=256);)n+=this[e+--t]*o;return n},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||D(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||D(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],r=this[e+7];void 0!==t&&void 0!==r||K(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,o=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(n)+(BigInt(o)<<BigInt(32))})),l.prototype.readBigUInt64BE=J((function(e){$(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||K(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],o=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<<BigInt(32))+BigInt(o)})),l.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||D(e,t,this.length);let n=this[e],o=1,i=0;for(;++i<t&&(o*=256);)n+=this[e+i]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*t)),n},l.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||D(e,t,this.length);let n=t,o=1,i=this[e+--n];for(;n>0&&(o*=256);)i+=this[e+--n]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},l.prototype.readInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||D(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt16BE=function(e,t){e>>>=0,t||D(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||D(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||D(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],r=this[e+7];void 0!==t&&void 0!==r||K(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<<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],r=this[e+7];void 0!==t&&void 0!==r||K(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+r)})),l.prototype.readFloatLE=function(e,t){return e>>>=0,t||D(e,4,this.length),o.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||D(e,4,this.length),o.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||D(e,8,this.length),o.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||D(e,8,this.length),o.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||M(this,e,t,r,Math.pow(2,8*r)-1,0);let o=1,i=0;for(this[t]=255&e;++i<r&&(o*=256);)this[t+i]=e/o&255;return t+r},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||M(this,e,t,r,Math.pow(2,8*r)-1,0);let o=r-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+r},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||M(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,r){return e=+e,t>>>=0,r||M(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,r){return e=+e,t>>>=0,r||M(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,r){return e=+e,t>>>=0,r||M(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 j(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeBigUInt64BE=J((function(e){return N(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);M(this,e,t,r,n-1,-n)}let o=0,i=1,s=0;for(this[t]=255&e;++o<r&&(i*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/i|0)-s&255;return t+r},l.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);M(this,e,t,r,n-1,-n)}let o=r-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+r},l.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||M(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,r){return e=+e,t>>>=0,r||M(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 j(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeBigInt64BE=J((function(e){return N(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeFloatLE=function(e,t,r){return R(this,e,t,!0,r)},l.prototype.writeFloatBE=function(e,t,r){return R(this,e,t,!1,r)},l.prototype.writeDoubleLE=function(e,t,r){return B(this,e,t,!0,r)},l.prototype.writeDoubleBE=function(e,t,r){return B(this,e,t,!1,r)},l.prototype.copy=function(e,t,r,n){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);const o=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),o},l.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!l.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){const t=e.charCodeAt(0);("utf8"===n&&t<128||"latin1"===n)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;let o;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{const i=l.isBuffer(e)?e:l.from(e,n),s=i.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<r-t;++o)this[o+t]=i[o%s]}return this};const F={};function U(e,t,r){F[e]=class extends r{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 V(e){let t="",r=e.length;const n="-"===e[0]?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function W(e,t,r,n,o,i){if(e>r||e<t){const n="bigint"==typeof t?"n":"";let o;throw o=i>3?0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(i+1)}${n}`:`>= -(2${n} ** ${8*(i+1)-1}${n}) and < 2 ** ${8*(i+1)-1}${n}`:`>= ${t}${n} and <= ${r}${n}`,new F.ERR_OUT_OF_RANGE("value",o,e)}!function(e,t,r){$(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||K(t,e.length-(r+1))}(n,o,i)}function $(e,t){if("number"!=typeof e)throw new F.ERR_INVALID_ARG_TYPE(t,"number",e)}function K(e,t,r){if(Math.floor(e)!==e)throw $(e,r),new F.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new F.ERR_BUFFER_OUT_OF_BOUNDS;throw new F.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}U("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),U("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),U("ERR_OUT_OF_RANGE",(function(e,t,r){let n=`The value of "${e}" is out of range.`,o=r;return Number.isInteger(r)&&Math.abs(r)>2**32?o=V(String(r)):"bigint"==typeof r&&(o=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(o=V(o)),o+="n"),n+=` It must be ${t}. Received ${o}`,n}),RangeError);const q=/[^+/0-9A-Za-z-_]/g;function z(e,t){let r;t=t||1/0;const n=e.length;let o=null;const i=[];for(let s=0;s<n;++s){if(r=e.charCodeAt(s),r>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function H(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(q,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function G(e,t,r,n){let o;for(o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=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 r=0;r<16;++r){const n=16*r;for(let o=0;o<16;++o)t[n+o]=e[r]+e[o]}return t}();function J(e){return"undefined"==typeof BigInt?Z:e}function Z(){throw new Error("BigInt not supported")}},(e,t,r)=>{var n=r(17),o=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},i=/%[sdj%]/g;t.format=function(e){if(!v(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(l(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,o=n.length,s=String(e).replace(i,(function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),a=n[r];r<o;a=n[++r])y(a)||!E(a)?s+=" "+a:s+=" "+l(a);return s},t.deprecate=function(e,r){if(void 0!==n&&!0===n.noDeprecation)return e;if(void 0===n)return function(){return t.deprecate(e,r).apply(this,arguments)};var o=!1;return function(){if(!o){if(n.throwDeprecation)throw new Error(r);n.traceDeprecation,o=!0}return e.apply(this,arguments)}};var s={},a=/^$/;function l(e,r){var n={seen:[],stylize:u};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),m(r)?n.showHidden=r:r&&t._extend(n,r),b(n.showHidden)&&(n.showHidden=!1),b(n.depth)&&(n.depth=2),b(n.colors)&&(n.colors=!1),b(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),p(n,e,n.depth)}function c(e,t){var r=l.styles[t];return r?"["+l.colors[r][0]+"m"+e+"["+l.colors[r][1]+"m":e}function u(e,t){return e}function p(e,r,n){if(e.customInspect&&r&&w(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var o=r.inspect(n,e);return v(o)||(o=p(e,o,n)),o}var i=function(e,t){if(b(t))return e.stylize("undefined","undefined");if(v(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return g(t)?e.stylize(""+t,"number"):m(t)?e.stylize(""+t,"boolean"):y(t)?e.stylize("null","null"):void 0}(e,r);if(i)return i;var s=Object.keys(r),a=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(r)),S(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return d(r);if(0===s.length){if(w(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if(_(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(x(r))return e.stylize(Date.prototype.toString.call(r),"date");if(S(r))return d(r)}var c,u="",E=!1,A=["{","}"];return h(r)&&(E=!0,A=["[","]"]),w(r)&&(u=" [Function"+(r.name?": "+r.name:"")+"]"),_(r)&&(u=" "+RegExp.prototype.toString.call(r)),x(r)&&(u=" "+Date.prototype.toUTCString.call(r)),S(r)&&(u=" "+d(r)),0!==s.length||E&&0!=r.length?n<0?_(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),c=E?function(e,t,r,n,o){for(var i=[],s=0,a=t.length;s<a;++s)T(t,String(s))?i.push(f(e,t,r,n,String(s),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(f(e,t,r,n,o,!0))})),i}(e,r,n,a,s):s.map((function(t){return f(e,r,n,a,t,E)})),e.seen.pop(),function(e,t,r){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}(c,u,A)):A[0]+u+A[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,r,n,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")),T(n,o)||(s="["+o+"]"),a||(e.seen.indexOf(l.value)<0?(a=y(r)?p(e,l.value,null):p(e,l.value,r-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]"===A(e)}function E(e){return"object"==typeof e&&null!==e}function x(e){return E(e)&&"[object Date]"===A(e)}function S(e){return E(e)&&("[object Error]"===A(e)||e instanceof Error)}function w(e){return"function"==typeof e}function A(e){return Object.prototype.toString.call(e)}function T(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.debuglog=function(e){return e=e.toUpperCase(),s[e]||(a.test(e)?(n.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=r(228),t.isArray=h,t.isBoolean=m,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=v,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=b,t.isRegExp=_,t.types.isRegExp=_,t.isObject=E,t.isDate=x,t.types.isDate=x,t.isError=S,t.types.isNativeError=S,t.isFunction=w,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(240),t.log=function(){},t.inherits=r(158),t._extend=function(e,t){if(!t||!E(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var P="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function C(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}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,r,n=new Promise((function(e,n){t=e,r=n})),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push((function(e,n){e?r(e):t(n)}));try{e.apply(this,o)}catch(e){r(e)}return n}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=[],r=0;r<arguments.length;r++)t.push(arguments[r]);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){n.nextTick(s.bind(null,null,e))}),(function(e){n.nextTick(C.bind(null,e,s))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,o(e)),t}},(e,t)=>{function r(e){const{context:t,node:r}=e;if(r.computed&&t.maybeQueue(e.get("key")),r.decorators)for(const r of e.get("decorators"))t.maybeQueue(r)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.requeueComputedKeyAndDecorators=r,t.skipAllButComputedKey=function(e){e.skip(),e.node.computed&&e.context.maybeQueue(e.get("key"))};var n={FunctionParent(e){e.isArrowFunctionExpression()||(e.skip(),e.isMethod()&&r(e))},Property(e){e.isObjectProperty()||(e.skip(),r(e))}};t.default=n},(e,t,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:o,MAX_LENGTH:i}=r(47),s=r(48),a=(t=e.exports={}).re=[],l=t.safeRe=[],c=t.src=[],u=t.t={};let p=0;const d="[a-zA-Z0-9-]",f=[["\\s",1],["\\d",i],[d,o]],h=(e,t,r)=>{const n=(e=>{for(const[t,r]of f)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e})(t),o=p++;s(e,o,t),u[e]=o,c[o]=t,a[o]=new RegExp(t,r?"g":void 0),l[o]=new RegExp(n,r?"g":void 0)};h("NUMERICIDENTIFIER","0|[1-9]\\d*"),h("NUMERICIDENTIFIERLOOSE","\\d+"),h("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),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",`${d}+`),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,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\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 n;return null==(n=r.get(s))?void 0:n.get(t)},t.getOrCreateCachedPaths=function(e,t){let n=r.get(s);n||r.set(s,n=new WeakMap);let o=n.get(t);return o||n.set(t,o=new Map),o},t.scope=t.path=void 0;let r=t.path=new WeakMap,n=t.scope=new WeakMap;function o(){t.path=r=new WeakMap}function i(){t.scope=n=new WeakMap}const s=Object.freeze({})},(e,t,r)=>{var n=r(17);Object.defineProperty(t,"__esModule",{value:!0}),t.codeFrameColumns=u,t.default=function(e,t,r){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`.";n.emitWarning?n.emitWarning(e,"DeprecationWarning"):new Error(e).name="DeprecationWarning"}return u(e,{start:{column:r=Math.max(r,0),line:t}},o)};var o=r(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 r={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=n?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,t&&t.set(e,r),r}(r(224));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}let a,l=!1;const c=/\r\n|[\n\r\u2028\u2029]/;function u(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=(r.highlightCode||r.forceColor)&&(0,o.shouldHighlight)(r),s=r.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)=>n?e(t):t,p=e.split(c),{start:d,end:f,markerLines:h}=function(e,t,r){const n=Object.assign({column:0,line:-1},e.start),o=Object.assign({},n,e.end),{linesAbove:i=2,linesBelow:s=3}=r||{},a=n.line,l=n.column,c=o.line,u=o.column;let p=Math.max(a-(i+1),0),d=Math.min(t.length,c+s);-1===a&&(p=0),-1===c&&(d=t.length);const f=c-a,h={};if(f)for(let e=0;e<=f;e++){const r=e+a;if(l)if(0===e){const e=t[r-1].length;h[r]=[l,e-l+1]}else if(e===f)h[r]=[0,u];else{const n=t[r-e].length;h[r]=[0,n]}else h[r]=!0}else h[a]=l===u?!l||[l,0]:[l,u-l];return{start:p,end:d,markerLines:h}}(t,p,r),m=t.start&&"number"==typeof t.start.column,y=String(f).length;let g=(n?(0,o.default)(e,r):e).split(c,f).slice(d,f).map(((e,t)=>{const n=d+1+t,o=` ${` ${n}`.slice(-y)} |`,i=h[n],s=!h[n+1];if(i){let t="";if(Array.isArray(i)){const n=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," "))," ",n,u(l.marker,"^").repeat(a)].join(""),s&&r.message&&(t+=" "+u(l.message,r.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 r.message&&!m&&(g=`${" ".repeat(y+1)}${r.message}\n${g}`),n?s.reset(g):g}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.statements=t.statement=t.smart=t.program=t.expression=t.default=void 0;var n=r(432),o=r(433);const i=(0,o.default)(n.smart);t.smart=i;const s=(0,o.default)(n.statement);t.statement=s;const a=(0,o.default)(n.statements);t.statements=a;const l=(0,o.default)(n.expression);t.expression=l;const c=(0,o.default)(n.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,r)=>{var n=r(22),o=r(41),i=o(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?o(r):r}},(e,t)=>{var r;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 r=l.get(e);return r||l.set(e,r=[]),r.push(function(e){return Object.create({isNative:()=>!1,isConstructor:()=>!1,isToplevel:()=>!0,getFileName:()=>e,getLineNumber:()=>{},getColumnNumber:()=>{},getFunctionName:()=>{},getMethodName:()=>{},getTypeName:()=>{},toString:()=>e})}(t)),e};const n=Function.call.bind(Error.prototype.toString),o=!!Error.captureStackTrace&&!0===(null==(r=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit"))?void 0:r.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,r){let n=[],o=a.has(t)?"hiding":"unknown";for(let e=0;e<r.length;e++){const a=r[e].getFunctionName();if(a===i)o="hiding";else if(a===s){if("hiding"===o)o="showing",l.has(t)&&n.unshift(...l.get(t));else if("unknown"===o){n=r;break}}else"hiding"!==o&&n.push(r[e])}return e(t,n)}}function u(e,t){return 0===t.length?n(e):`${n(e)}\n at ${t.join("\n at ")}`}},(e,t,r)=>{let n,o,i=r(24);class s extends i{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let n=super.normalize(e);if(t)if("prepend"===r)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 n)e.raws.before=t.raws.before;return n}removeChild(e,t){let r=this.index(e);return!t&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n(new o,this,e).stringify()}}s.registerLazyResult=e=>{n=e},s.registerProcessor=e=>{o=e},e.exports=s,s.default=s,i.registerRoot(s)},(e,t,r)=>{var n=r(71),o=r(22),i=r(234),s=o("%TypeError%"),a=o("%Function.prototype.apply%"),l=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||n.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(n,l,arguments);return i(t,1+p(0,e.length-(arguments.length-1)),!0)};var d=function(){return c(n,a,arguments)};u?u(e.exports,"apply",{value:d}):e.exports.apply=d},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){return!!t&&((0,o.default)(t.type,e)?void 0===r||(0,n.default)(t,r):!r&&"Placeholder"===t.type&&e in s.FLIPPED_ALIAS_KEYS&&(0,i.default)(t.expectedNode,e))};var n=r(96),o=r(98),i=r(168),s=r(9)},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"string"==typeof e&&(!(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])||!(0,n.isKeyword)(e)&&!(0,n.isStrictReservedWord)(e,!0))&&(0,n.isIdentifierName)(e)};var n=r(59)},(e,t,r)=>{var n=r(5),o=r(15),i=r(102),s=r(204),a=r(11),l=n.RegExp,c=l.prototype;o&&a((function(){var e=!0;try{l(".","d")}catch(t){e=!1}var t={},r="",n=e?"dgimsy":"gimsy",o=function(e,n){Object.defineProperty(t,e,{get:function(){return r+=n,!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)!==n||r!==n}))&&i(c,"flags",{configurable:!0,get:s})},(e,t,r)=>{var n=r(5),o=r(116),i=r(29),s=r(67),a=r(113),l=r(112),c=n.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,r)=>{var n=r(123),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,s=Array.prototype.concat,a=r(121),l=r(72)(),c=function(e,t,r,n){if(t in e)if(!0===n){if(e[t]===r)return}else if("function"!=typeof(o=n)||"[object Function]"!==i.call(o)||!n())return;var o;l?a(e,t,r,!0):a(e,t,r)},u=function(e,t){var r=arguments.length>2?arguments[2]:{},i=n(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]],r[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,r)=>{var n=r(17);const o=("object"==typeof n&&n.env,()=>{});e.exports=o},(e,t,r)=>{const n=r(7);e.exports=(e,t,r)=>n(e,t,r)>0},(e,t,r)=>{const n=Symbol("SemVer ANY");class o{static get ANY(){return n}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===n?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],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new u(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===n||e===n)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=r(75),{safeRe:s,t:a}=r(34),l=r(131),c=r(48),u=r(3),p=r(8)},(e,t,r)=>{const n=r(8);e.exports=(e,t,r)=>{try{t=new n(t,r)}catch(e){return!1}return t.test(e)}},(e,t,r)=>{let n=r(53);class o extends n{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,r)=>{let{isClean:n,my:o}=r(145),i=r(87),s=r(146),a=r(54);function l(e,t){let r=new e.constructor;for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;if("proxyCache"===n)continue;let o=e[n],i=typeof o;"parent"===n&&"object"===i?t&&(r[n]=t):"source"===n?r[n]=o:Array.isArray(o)?r[n]=o.map((e=>l(e,r))):("object"===i&&null!==o&&(o=l(o)),r[n]=o)}return r}class c{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.raws={},this[n]=!1,this[o]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let r of e[t])"function"==typeof r.clone?this.append(r.clone()):this.append(r)}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 r in e)t[r]=e[r];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:r,start:n}=this.rangeBy(t);return this.source.input.error(e,{column:n.column,line:n.line},{column:r.column,line:r.line},t)}return new i(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,r)=>(e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0)}}markDirty(){if(this[n]){this[n]=!1;let e=this;for(;e=e.parent;)e[n]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){let n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r}positionInside(e,t){let r=t||this.toString(),n=this.source.start.column,o=this.source.start.line;for(let t=0;t<e;t++)"\n"===r[t]?(n=1,o+=1):n+=1;return{column:n,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},r=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 n=this.toString(),o=n.indexOf(e.word);-1!==o&&(t=this.positionInside(o,n),r=this.positionInside(o+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,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 n=this,o=!1;for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(let e of t)e===this?o=!0:o?(this.parent.insertAfter(n,e),n=e):this.parent.insertBefore(n,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 r={},n=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 n=this[e];if(Array.isArray(n))r[e]=n.map((e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e));else if("object"==typeof n&&n.toJSON)r[e]=n.toJSON(null,t);else if("source"===e){let i=t.get(n.input);null==i&&(i=o,t.set(n.input,o),o++),r[e]={end:n.end,inputId:i,start:n.start}}else r[e]=n}return n&&(r.inputs=[...t.keys()].map((e=>e.toJSON()))),r}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,r){let n={node:this};for(let e in r)n[e]=r[e];return e.warn(t,n)}get proxyOf(){return this}}e.exports=c,c.default=c},(e,t,r)=>{let n=r(146);function o(e,t){new n(t).stringify(e)}e.exports=o,o.default=o},(e,t,r)=>{let{SourceMapConsumer:n,SourceMapGenerator:o}=r(149),{fileURLToPath:i,pathToFileURL:s}=r(318),{isAbsolute:a,resolve:l}=r(150),{nanoid:c}=r(319),u=r(317),p=r(87),d=r(151),f=Symbol("fromOffsetCache"),h=Boolean(n&&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 d(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,r){let n,o,i,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(t&&"object"==typeof t){let e=t,n=r;if("number"==typeof e.offset){let n=this.fromOffset(e.offset);t=n.line,r=n.col}else t=e.line,r=e.column;if("number"==typeof n.offset){let e=this.fromOffset(n.offset);o=e.line,i=e.col}else o=n.line,i=n.column}else if(!r){let e=this.fromOffset(t);t=e.line,r=e.col}let l=this.origin(t,r,o,i);return n=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:r,line:t},void 0===o?r:{column:i,line:o},this.css,this.file,a.plugin),n.input={column:r,endColumn:i,endLine:o,line:t,source:this.css},this.file&&(s&&(n.input.url=s(this.file).toString()),n.input.file=this.file),n}fromOffset(e){let t,r;if(this[f])r=this[f];else{let e=this.css.split("\n");r=new Array(e.length);let t=0;for(let n=0,o=e.length;n<o;n++)r[n]=t,t+=e[n].length+1;this[f]=r}t=r[r.length-1];let n=0;if(e>=t)n=r.length-1;else{let t,o=r.length-2;for(;n<o;)if(t=n+(o-n>>1),e<r[t])o=t-1;else{if(!(e>=r[t+1])){n=t;break}n=t+1}}return{col:e-r[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:l(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,n){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 r&&(o=c.originalPositionFor({column:n,line:r})),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 d=c.sourceContentFor(u.source);return d&&(p.source=d),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,r)=>{let n=r(53);class o extends n{constructor(e){super(e),this.type="comment"}}e.exports=o,o.default=o},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.explode=d,t.isExplodedVisitor=p,t.merge=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;const n={};for(let o=0;o<e.length;o++){const i=d(e[o]),s=t[o];let a=i;(s||r)&&(a=m(a,s,r)),b(n,a);for(const e of Object.keys(i)){if(v(e))continue;let t=i[e];(s||r)&&(t=m(t,s,r)),b(n[e]||(n[e]={}),t)}}return n},t.verify=f;var n=r(162),o=r(163),i=r(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 d(e){if(p(e))return e;e._exploded=!0;for(const t of Object.keys(e)){if(v(t))continue;const r=t.split("|");if(1===r.length)continue;const n=e[t];delete e[t];for(const t of r)e[t]=n}f(e),delete e.__esModule,function(e){for(const t of Object.keys(e)){if(v(t))continue;const r=e[t];"function"==typeof r&&(e[t]={enter:r})}}(e),y(e);for(const t of Object.keys(e)){if(v(t))continue;if(!(t in n))continue;const r=e[t];for(const e of Object.keys(r))r[e]=g(t,r[e]);delete e[t];const o=n[t];if(null!==o)for(const t of o)e[t]?b(e[t],r):e[t]=r;else b(e,r)}for(const t of Object.keys(e)){if(v(t))continue;let r=l[t];if(t in s){const e=s[t];u(t,e,"Visitor "),r=[e]}else if(t in a){const e=a[t];u(t,e,"Visitor "),r=l[e]}if(!r)continue;const n=e[t];delete e[t];for(const t of r){const r=e[t];r?b(r,n):e[t]=Object.assign({},n)}}for(const t of Object.keys(e))v(t)||y(e[t]);return e}function f(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 r=e[t];if("object"==typeof r)for(const e of Object.keys(r)){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}`,r[e])}}e._verified=!0}}function h(e,t){const r=[].concat(t);for(const t of r)if("function"!=typeof t)throw new TypeError(`Non-function found defined in ${e} with type ${typeof t}`)}function m(e,t,r){const n={};for(const o of["enter","exit"]){let i=e[o];Array.isArray(i)&&(i=i.map((function(e){let n=e;return t&&(n=function(r){e.call(t,r,t)}),r&&(n=r(null==t?void 0:t.key,o,n)),n!==e&&(n.toString=()=>e.toString()),n})),n[o]=i)}return n}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 r=o[`is${e}`],n=function(e){if(r.call(e))return t.apply(this,arguments)};return n.toString=()=>t.toString(),n}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 r of["enter","exit"])t[r]&&(e[r]=[].concat(e[r]||[],t[r]))}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(r.has(e))return;r.add(e);const{internal:n,trace:o}=function(){const{stackTraceLimit:e,prepareStackTrace:t}=Error;let r;if(Error.stackTraceLimit=4,Error.prepareStackTrace=function(e,t){r=t},(new Error).stack,Error.stackTraceLimit=e,Error.prepareStackTrace=t,!r)return{internal:!1,trace:""};const n=r.slice(2,4);return{internal:/[\\/]@babel[\\/]/.test(n[1].getFileName()),trace:n.map((e=>` at ${e}`)).join("\n")}}()};const r=new Set},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isIdentifierChar",{enumerable:!0,get:function(){return n.isIdentifierChar}}),Object.defineProperty(t,"isIdentifierName",{enumerable:!0,get:function(){return n.isIdentifierName}}),Object.defineProperty(t,"isIdentifierStart",{enumerable:!0,get:function(){return n.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 n=r(353),o=r(354)},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(2);function o(e,t,r,i){const s=[].concat(e),a=Object.create(null);for(;s.length;){const e=s.shift();if(!e)continue;if(i&&((0,n.isAssignmentExpression)(e)||(0,n.isUnaryExpression)(e)))continue;const l=o.keys[e.type];if((0,n.isIdentifier)(e))t?(a[e.name]=a[e.name]||[]).push(e):a[e.name]=e;else if(!(0,n.isExportDeclaration)(e)||(0,n.isExportAllDeclaration)(e)){if(r){if((0,n.isFunctionDeclaration)(e)){s.push(e.id);continue}if((0,n.isFunctionExpression)(e))continue}if(l)for(let t=0;t<l.length;t++){const r=e[l[t]];r&&(Array.isArray(r)?s.push(...r):s.push(r))}}else(0,n.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,r)=>{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"),r=t.isFunctionDeclaration()||t.isClassDeclaration(),n=t.isFunctionExpression()||t.isClassExpression(),u=t.isScope()?t.scope.parent:t.scope;let p=t.node.id,d=!1;p?n&&u.hasBinding(p.name)&&(d=!0,p=u.generateUidIdentifier(p.name)):(d=!0,p=u.generateUidIdentifier("default"),(r||n)&&(t.node.id=o(p)));const f=r?t.node:l("var",[c(o(p),t.node)]),h=i(null,[s(o(p),a("default"))]);return e.insertAfter(h),e.replaceWith(f),d&&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"),r=t.getOuterBindingIdentifiers(),n=Object.keys(r).map((e=>s(a(e),a(e)))),u=i(null,n);return e.insertAfter(u),e.replaceWith(t.node),e};var n=r(0);const{cloneNode:o,exportNamedDeclaration:i,exportSpecifier:s,identifier:a,variableDeclaration:l,variableDeclarator:c}=n},(e,t,r)=>{var n=r(187),o=Object;e.exports=function(e){return o(n(e))}},(e,t,r)=>{var n=r(5),o=r(106),i="__core-js_shared__",s=n[i]||o(i,{});e.exports=s},(e,t,r)=>{var n=r(20),o=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not an object")}},(e,t,r)=>{var n=r(104),o=Function.prototype.call;e.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},(e,t,r)=>{var n=r(19),o=0,i=Math.random(),s=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++o+i,36)}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"buildDynamicImport",{enumerable:!0,get:function(){return u.buildDynamicImport}}),t.buildNamespaceInitStatements=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=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=n(a,t.wrap))?i:a;r&&s.push(...T(e,t,!0,n));for(const r 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() {