()
| 11 | FACTORY_BODY |
| 12 | }); |
| 13 | `(e);function buildGlobal(e){const t=h("babelHelpers");const r=[];const n=f(null,[h("global")],a(r));const l=g([d(o(n,[c(i("===",T("typeof",h("global")),b("undefined")),h("self"),h("global"))]))]);r.push(S("var",[x(t,s("=",m(h("global"),t),y([])))]));buildHelpers(r,t,e);return l}function buildModule(e){const t=[];const r=buildHelpers(t,null,e);t.unshift(p(null,Object.keys(r).map((e=>u(l(r[e]),h(e))))));return g(t,[],"module")}function buildUmd(e){const t=h("babelHelpers");const r=[];r.push(S("var",[x(t,h("global"))]));buildHelpers(r,t,e);return g([buildUmdWrapper({FACTORY_PARAMETERS:h("global"),BROWSER_ARGUMENTS:s("=",m(h("root"),t),y([])),COMMON_ARGUMENTS:h("exports"),AMD_ARGUMENTS:n([b("exports")]),FACTORY_BODY:r,UMD_ROOT:h("this")})])}function buildVar(e){const t=h("babelHelpers");const r=[];r.push(S("var",[x(t,y([]))]));const n=g(r);buildHelpers(r,t,e);r.push(d(t));return n}function buildHelpers(e,t,r){const getHelperReference=e=>t?m(t,h(e)):h(`_${e}`);const n={};helpers().list.forEach((function(i){if(r&&!r.includes(i))return;const a=n[i]=getHelperReference(i);const{nodes:o}=helpers().get(i,getHelperReference,t?null:`_${i}`,[],t?(e,t,r)=>{r((e=>s("=",a,e)));e.body.push(d(s("=",a,h(t))))}:null);e.push(...o)}));return n}function _default(e,t="global"){let r;const n={global:buildGlobal,module:buildModule,umd:buildUmd,var:buildVar}[t];if(n){r=n(e)}else{throw new Error(`Unsupported output type ${t}`)}return(0,_generator().default)(r).code}0&&0},4087:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.transformFromAst=void 0;t.transformFromAstAsync=transformFromAstAsync;t.transformFromAstSync=transformFromAstSync;function _gensync(){const e=r(6433);_gensync=function(){return e};return e}var n=r(8842);var s=r(1714);var i=r(8502);const a=_gensync()((function*(e,t,r){const i=yield*(0,n.default)(r);if(i===null)return null;if(!e)throw new Error("No AST given");return yield*(0,s.run)(i,t,e)}));const o=t.transformFromAst=function transformFromAst(e,t,r,n){let s;let o;if(typeof r==="function"){o=r;s=undefined}else{s=r;o=n}if(o===undefined){{return(0,i.beginHiddenCallStack)(a.sync)(e,t,s)}}(0,i.beginHiddenCallStack)(a.errback)(e,t,s,o)};function transformFromAstSync(...e){return(0,i.beginHiddenCallStack)(a.sync)(...e)}function transformFromAstAsync(...e){return(0,i.beginHiddenCallStack)(a.async)(...e)}0&&0},7111:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.transformFile=transformFile;t.transformFileAsync=transformFileAsync;t.transformFileSync=transformFileSync;function _gensync(){const e=r(6433);_gensync=function(){return e};return e}var n=r(8842);var s=r(1714);var i=r(409);({});const a=_gensync()((function*(e,t){const r=Object.assign({},t,{filename:e});const a=yield*(0,n.default)(r);if(a===null)return null;const o=yield*i.readFile(e,"utf8");return yield*(0,s.run)(a,o)}));function transformFile(...e){a.errback(...e)}function transformFileSync(...e){return a.sync(...e)}function transformFileAsync(...e){return a.async(...e)}0&&0},2175:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.transform=void 0;t.transformAsync=transformAsync;t.transformSync=transformSync;function _gensync(){const e=r(6433);_gensync=function(){return e};return e}var n=r(8842);var s=r(1714);var i=r(8502);const a=_gensync()((function*transform(e,t){const r=yield*(0,n.default)(t);if(r===null)return null;return yield*(0,s.run)(r,e)}));const o=t.transform=function transform(e,t,r){let n;let s;if(typeof t==="function"){s=t;n=undefined}else{n=t;s=r}if(s===undefined){{return(0,i.beginHiddenCallStack)(a.sync)(e,n)}}(0,i.beginHiddenCallStack)(a.errback)(e,n,s)};function transformSync(...e){return(0,i.beginHiddenCallStack)(a.sync)(...e)}function transformAsync(...e){return(0,i.beginHiddenCallStack)(a.async)(...e)}0&&0},9273:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=loadBlockHoistPlugin;function _traverse(){const e=r(8026);_traverse=function(){return e};return e}var n=r(2406);let s;const i={name:"internal.blockHoist",visitor:{Block:{exit({node:e}){e.body=performHoisting(e.body)}},SwitchCase:{exit({node:e}){e.consequent=performHoisting(e.consequent)}}}};function performHoisting(e){let t=Math.pow(2,30)-1;let r=false;for(let n=0;n<e.length;n++){const s=e[n];const i=priority(s);if(i>t){r=true;break}t=i}if(!r)return e;return stableSort(e.slice())}function loadBlockHoistPlugin(){if(!s){s=new n.default(Object.assign({},i,{visitor:_traverse().default.explode(i.visitor)}),{})}return s}function priority(e){const t=e==null?void 0:e._blockHoist;if(t==null)return 1;if(t===true)return 2;return t}function stableSort(e){const t=Object.create(null);for(let r=0;r<e.length;r++){const n=e[r];const s=priority(n);const i=t[s]||(t[s]=[]);i.push(n)}const r=Object.keys(t).map((e=>+e)).sort(((e,t)=>t-e));let n=0;for(const s of r){const r=t[s];for(const t of r){e[n++]=t}}return e}0&&0},2302:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;function helpers(){const e=r(8796);helpers=function(){return e};return e}function _traverse(){const e=r(8026);_traverse=function(){return e};return e}function _codeFrame(){const e=r(3554);_codeFrame=function(){return e};return e}function _t(){const e=r(3061);_t=function(){return e};return e}function _semver(){const e=r(7849);_semver=function(){return e};return e}var n=r(9938);const{cloneNode:s,interpreterDirective:i}=_t();const a={enter(e,t){const r=e.node.loc;if(r){t.loc=r;e.stop()}}};class File{constructor(e,{code:t,ast:r,inputMap:n}){this._map=new Map;this.opts=void 0;this.declarations={};this.path=void 0;this.ast=void 0;this.scope=void 0;this.metadata={};this.code="";this.inputMap=void 0;this.hub={file:this,getCode:()=>this.code,getScope:()=>this.scope,addHelper:this.addHelper.bind(this),buildError:this.buildCodeFrameError.bind(this)};this.opts=e;this.code=t;this.ast=r;this.inputMap=n;this.path=_traverse().NodePath.get({hub:this.hub,parentPath:null,parent:this.ast,container:this.ast,key:"program"}).setContext();this.scope=this.path.scope}get shebang(){const{interpreter:e}=this.path.node;return e?e.value:""}set shebang(e){if(e){this.path.get("interpreter").replaceWith(i(e))}else{this.path.get("interpreter").remove()}}set(e,t){{if(e==="helpersNamespace"){throw new Error("Babel 7.0.0-beta.56 has dropped support for the 'helpersNamespace' utility."+"If you are using @babel/plugin-external-helpers you will need to use a newer "+"version than the one you currently have installed. "+"If you have your own implementation, you'll want to explore using 'helperGenerator' "+"alongside 'file.availableHelper()'.")}}this._map.set(e,t)}get(e){return this._map.get(e)}has(e){return this._map.has(e)}availableHelper(e,t){let r;try{r=helpers().minVersion(e)}catch(e){if(e.code!=="BABEL_HELPER_UNKNOWN")throw e;return false}if(typeof t!=="string")return true;if(_semver().valid(t))t=`^${t}`;{return!_semver().intersects(`<${r}`,t)&&!_semver().intersects(`>=8.0.0`,t)}}addHelper(e){const t=this.declarations[e];if(t)return s(t);const r=this.get("helperGenerator");if(r){const t=r(e);if(t)return t}helpers().minVersion(e);const n=this.declarations[e]=this.scope.generateUidIdentifier(e);const i={};for(const t of helpers().getDependencies(e)){i[t]=this.addHelper(t)}const{nodes:a,globals:o}=helpers().get(e,(e=>i[e]),n.name,Object.keys(this.scope.getAllBindings()));o.forEach((e=>{if(this.path.scope.hasBinding(e,true)){this.path.scope.rename(e)}}));a.forEach((e=>{e._compact=true}));const l=this.path.unshiftContainer("body",a);for(const e of l){if(e.isVariableDeclaration())this.scope.registerDeclaration(e)}return n}buildCodeFrameError(e,t,r=SyntaxError){let n=e==null?void 0:e.loc;if(!n&&e){const r={loc:null};(0,_traverse().default)(e,a,this.scope,r);n=r.loc;let s="This is an error on an internal node. Probably an internal error.";if(n)s+=" Location has been estimated.";t+=` (${s})`}if(n){const{highlightCode:e=true}=this.opts;t+="\n"+(0,_codeFrame().codeFrameColumns)(this.code,{start:{line:n.start.line,column:n.start.column+1},end:n.end&&n.start.line===n.end.line?{line:n.end.line,column:n.end.column+1}:undefined},{highlightCode:e})}return new r(t)}}t["default"]=File;{File.prototype.addImport=function addImport(){throw new Error("This API has been removed. If you're looking for this "+"functionality in Babel 7, you should import the "+"'@babel/helper-module-imports' module and use the functions exposed "+" from that module, such as 'addNamed' or 'addDefault'.")};File.prototype.addTemplateObject=function addTemplateObject(){throw new Error("This function has been moved into the template literal transform itself.")};{File.prototype.getModuleName=function getModuleName(){return n.getModuleName()(this.opts,this.opts)}}}0&&0},915:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=generateCode;function _convertSourceMap(){const e=r(133);_convertSourceMap=function(){return e};return e}function _generator(){const e=r(1605);_generator=function(){return e};return e}var n=r(3464);function generateCode(e,t){const{opts:r,ast:s,code:i,inputMap:a}=t;const{generatorOpts:o}=r;o.inputSourceMap=a==null?void 0:a.toObject();const l=[];for(const t of e){for(const e of t){const{generatorOverride:t}=e;if(t){const e=t(s,o,i,_generator().default);if(e!==undefined)l.push(e)}}}let c;if(l.length===0){c=(0,_generator().default)(s,o,i)}else if(l.length===1){c=l[0];if(typeof c.then==="function"){throw new Error(`You appear to be using an async codegen plugin, `+`which your current version of Babel does not support. `+`If you're using a published plugin, `+`you may need to upgrade your @babel/core version.`)}}else{throw new Error("More than one plugin attempted to override codegen.")}let{code:p,decodedMap:u=c.map}=c;if(c.__mergedMap){u=Object.assign({},c.map)}else{if(u){if(a){u=(0,n.default)(a.toObject(),u,o.sourceFileName)}else{u=c.map}}}if(r.sourceMaps==="inline"||r.sourceMaps==="both"){p+="\n"+_convertSourceMap().fromObject(u).toComment()}if(r.sourceMaps==="inline"){u=null}return{outputCode:p,outputMap:u}}0&&0},3464:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=mergeSourceMap;function _remapping(){const e=r(3914);_remapping=function(){return e};return e}function mergeSourceMap(e,t,r){const n=r.replace(/\\/g,"/");let s=false;const i=_remapping()(rootless(t),((t,r)=>{if(t===n&&!s){s=true;r.source="";return rootless(e)}return null}));if(typeof e.sourceRoot==="string"){i.sourceRoot=e.sourceRoot}return Object.assign({},i)}function rootless(e){return Object.assign({},e,{sourceRoot:null})}0&&0},1714:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.run=run;function _traverse(){const e=r(8026);_traverse=function(){return e};return e}var n=r(3878);var s=r(9273);var i=r(6351);var a=r(6380);var o=r(915);var l=r(8634);var c=r(7987);function*run(e,t,r){const n=yield*(0,a.default)(e.passes,(0,i.default)(e),t,r);const s=n.opts;try{yield*transformFile(n,e.passes)}catch(e){var c;e.message=`${(c=s.filename)!=null?c:"unknown file"}: ${e.message}`;if(!e.code){e.code="BABEL_TRANSFORM_ERROR"}throw e}let p,u;try{if(s.code!==false){({outputCode:p,outputMap:u}=(0,o.default)(e.passes,n))}}catch(e){var d;e.message=`${(d=s.filename)!=null?d:"unknown file"}: ${e.message}`;if(!e.code){e.code="BABEL_GENERATE_ERROR"}throw e}return{metadata:n.metadata,options:s,ast:s.ast===true?n.ast:null,code:p===undefined?null:p,map:u===undefined?null:u,sourceType:n.ast.program.sourceType,externalDependencies:(0,l.flattenToSet)(e.externalDependencies)}}function*transformFile(e,t){const r=yield*(0,c.isAsync)();for(const i of t){const t=[];const a=[];const o=[];for(const l of i.concat([(0,s.default)()])){const s=new n.default(e,l.key,l.options,r);t.push([l,s]);a.push(s);o.push(l.visitor)}for(const[r,n]of t){if(r.pre){const t=(0,c.maybeAsync)(r.pre,`You appear to be using an async plugin/preset, but Babel has been called synchronously`);yield*t.call(n,e)}}const l=_traverse().default.visitors.merge(o,a,e.opts.wrapPluginVisitorMethod);{(0,_traverse().default)(e.ast,l,e.scope)}for(const[r,n]of t){if(r.post){const t=(0,c.maybeAsync)(r.post,`You appear to be using an async plugin/preset, but Babel has been called synchronously`);yield*t.call(n,e)}}}}0&&0},6380:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=normalizeFile;function _fs(){const e=r(7147);_fs=function(){return e};return e}function _path(){const e=r(1017);_path=function(){return e};return e}function _debug(){const e=r(6937);_debug=function(){return e};return e}function _t(){const e=r(3061);_t=function(){return e};return e}function _convertSourceMap(){const e=r(133);_convertSourceMap=function(){return e};return e}var n=r(2302);var s=r(8015);var i=r(2983);const{file:a,traverseFast:o}=_t();const l=_debug()("babel:transform:file");const c=/^[@#]\s+sourceMappingURL=data:(?:application|text)\/json;(?:charset[:=]\S+?;)?base64,.*$/;const p=/^[@#][ \t]+sourceMappingURL=([^\s'"`]+)[ \t]*$/;function*normalizeFile(e,t,r,o){r=`${r||""}`;if(o){if(o.type==="Program"){o=a(o,[],[])}else if(o.type!=="File"){throw new Error("AST root must be a Program or File node")}if(t.cloneInputAst){o=(0,i.default)(o)}}else{o=yield*(0,s.default)(e,t,r)}let u=null;if(t.inputSourceMap!==false){if(typeof t.inputSourceMap==="object"){u=_convertSourceMap().fromObject(t.inputSourceMap)}if(!u){const e=extractComments(c,o);if(e){try{u=_convertSourceMap().fromComment("//"+e)}catch(e){{l("discarding unknown inline input sourcemap")}}}}if(!u){const e=extractComments(p,o);if(typeof t.filename==="string"&&e){try{const r=p.exec(e);const n=_fs().readFileSync(_path().resolve(_path().dirname(t.filename),r[1]),"utf8");u=_convertSourceMap().fromJSON(n)}catch(e){l("discarding unknown file input sourcemap",e)}}else if(e){l("discarding un-loadable file input sourcemap")}}}return new n.default(t,{code:r,ast:o,inputMap:u})}function extractCommentsFromList(e,t,r){if(t){t=t.filter((({value:t})=>{if(e.test(t)){r=t;return false}return true}))}return[t,r]}function extractComments(e,t){let r=null;o(t,(t=>{[t.leadingComments,r]=extractCommentsFromList(e,t.leadingComments,r);[t.innerComments,r]=extractCommentsFromList(e,t.innerComments,r);[t.trailingComments,r]=extractCommentsFromList(e,t.trailingComments,r)}));return r}0&&0},6351:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=normalizeOptions;function _path(){const e=r(1017);_path=function(){return e};return e}function normalizeOptions(e){const{filename:t,cwd:r,filenameRelative:n=(typeof t==="string"?_path().relative(r,t):"unknown"),sourceType:s="module",inputSourceMap:i,sourceMaps:a=!!i,sourceRoot:o=e.options.moduleRoot,sourceFileName:l=_path().basename(n),comments:c=true,compact:p="auto"}=e.options;const u=e.options;const d=Object.assign({},u,{parserOpts:Object.assign({sourceType:_path().extname(n)===".mjs"?"module":s,sourceFileName:t,plugins:[]},u.parserOpts),generatorOpts:Object.assign({filename:t,auxiliaryCommentBefore:u.auxiliaryCommentBefore,auxiliaryCommentAfter:u.auxiliaryCommentAfter,retainLines:u.retainLines,comments:c,shouldPrintComment:u.shouldPrintComment,compact:p,minified:u.minified,sourceMaps:a,sourceRoot:o,sourceFileName:l},u.generatorOpts)});for(const t of e.passes){for(const e of t){if(e.manipulateOptions){e.manipulateOptions(d,d.parserOpts)}}}return d}0&&0},3878:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;class PluginPass{constructor(e,t,r,n){this._map=new Map;this.key=void 0;this.file=void 0;this.opts=void 0;this.cwd=void 0;this.filename=void 0;this.isAsync=void 0;this.key=t;this.file=e;this.opts=r||{};this.cwd=e.opts.cwd;this.filename=e.opts.filename;this.isAsync=n}set(e,t){this._map.set(e,t)}get(e){return this._map.get(e)}availableHelper(e,t){return this.file.availableHelper(e,t)}addHelper(e){return this.file.addHelper(e)}buildCodeFrameError(e,t,r){return this.file.buildCodeFrameError(e,t,r)}}t["default"]=PluginPass;{PluginPass.prototype.getModuleName=function getModuleName(){return this.file.getModuleName()};PluginPass.prototype.addImport=function addImport(){this.file.addImport()}}0&&0},2983:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=_default;const r=new Set;let n=0;function deepClone(e,t,s){if(e!==null){if(s){if(t.has(e))return t.get(e)}else if(++n>250){if(r.has(e)){n=0;r.clear();throw new Error("Babel-deepClone: Cycles are not allowed in AST")}r.add(e)}let i;if(Array.isArray(e)){i=new Array(e.length);if(s)t.set(e,i);for(let r=0;r<e.length;r++){i[r]=typeof e[r]!=="object"?e[r]:deepClone(e[r],t,s)}}else{i={};if(s)t.set(e,i);const r=Object.keys(e);for(let n=0;n<r.length;n++){const a=r[n];i[a]=typeof e[a]!=="object"?e[a]:deepClone(e[a],t,s||a==="leadingComments"||a==="innerComments"||a==="trailingComments"||a==="extra")}}if(!s){if(n-- >250)r.delete(e)}return i}return e}function _default(e){if(typeof e!=="object")return e;{try{return deepClone(e,new Map,true)}catch(t){return structuredClone(e)}}}0&&0},2044:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.moduleResolve=moduleResolve;t.resolve=resolve;function _assert(){const e=r(9491);_assert=function(){return e};return e}function _fs(){const e=_interopRequireWildcard(r(7147),true);_fs=function(){return e};return e}function _process(){const e=r(7282);_process=function(){return e};return e}function _url(){const e=r(7310);_url=function(){return e};return e}function _path(){const e=r(1017);_path=function(){return e};return e}function _module(){const e=r(8188);_module=function(){return e};return e}function _v(){const e=r(4655);_v=function(){return e};return e}function _util(){const e=r(3837);_util=function(){return e};return e}function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(_getRequireWildcardCache=function(e){return e?r:t})(e)}function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=_getRequireWildcardCache(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var a=s?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}const n={}.hasOwnProperty;const s=/^([A-Z][a-z\d]*)+$/;const i=new Set(["string","function","number","object","Function","Object","boolean","bigint","symbol"]);const a={};function formatList(e,t="and"){return e.length<3?e.join(` ${t} `):`${e.slice(0,-1).join(", ")}, ${t} ${e[e.length-1]}`}const o=new Map;const l="__node_internal_";let c;a.ERR_INVALID_ARG_TYPE=createError("ERR_INVALID_ARG_TYPE",((e,t,r)=>{_assert()(typeof e==="string","'name' must be a string");if(!Array.isArray(t)){t=[t]}let n="The ";if(e.endsWith(" argument")){n+=`${e} `}else{const t=e.includes(".")?"property":"argument";n+=`"${e}" ${t} `}n+="must be ";const a=[];const o=[];const l=[];for(const e of t){_assert()(typeof e==="string","All expected entries have to be of type string");if(i.has(e)){a.push(e.toLowerCase())}else if(s.exec(e)===null){_assert()(e!=="object",'The value "object" should be written as "Object"');l.push(e)}else{o.push(e)}}if(o.length>0){const e=a.indexOf("object");if(e!==-1){a.slice(e,1);o.push("Object")}}if(a.length>0){n+=`${a.length>1?"one of type":"of type"} ${formatList(a,"or")}`;if(o.length>0||l.length>0)n+=" or "}if(o.length>0){n+=`an instance of ${formatList(o,"or")}`;if(l.length>0)n+=" or "}if(l.length>0){if(l.length>1){n+=`one of ${formatList(l,"or")}`}else{if(l[0].toLowerCase()!==l[0])n+="an ";n+=`${l[0]}`}}n+=`. Received ${determineSpecificType(r)}`;return n}),TypeError);a.ERR_INVALID_MODULE_SPECIFIER=createError("ERR_INVALID_MODULE_SPECIFIER",((e,t,r=undefined)=>`Invalid module "${e}" ${t}${r?` imported from ${r}`:""}`),TypeError);a.ERR_INVALID_PACKAGE_CONFIG=createError("ERR_INVALID_PACKAGE_CONFIG",((e,t,r)=>`Invalid package config ${e}${t?` while importing ${t}`:""}${r?`. ${r}`:""}`),Error);a.ERR_INVALID_PACKAGE_TARGET=createError("ERR_INVALID_PACKAGE_TARGET",((e,t,r,n=false,s=undefined)=>{const i=typeof r==="string"&&!n&&r.length>0&&!r.startsWith("./");if(t==="."){_assert()(n===false);return`Invalid "exports" main target ${JSON.stringify(r)} defined `+`in the package config ${e}package.json${s?` imported from ${s}`:""}${i?'; targets must start with "./"':""}`}return`Invalid "${n?"imports":"exports"}" target ${JSON.stringify(r)} defined for '${t}' in the package config ${e}package.json${s?` imported from ${s}`:""}${i?'; targets must start with "./"':""}`}),Error);a.ERR_MODULE_NOT_FOUND=createError("ERR_MODULE_NOT_FOUND",((e,t,r=false)=>`Cannot find ${r?"module":"package"} '${e}' imported from ${t}`),Error);a.ERR_NETWORK_IMPORT_DISALLOWED=createError("ERR_NETWORK_IMPORT_DISALLOWED","import of '%s' by %s is not supported: %s",Error);a.ERR_PACKAGE_IMPORT_NOT_DEFINED=createError("ERR_PACKAGE_IMPORT_NOT_DEFINED",((e,t,r)=>`Package import specifier "${e}" is not defined${t?` in package ${t}package.json`:""} imported from ${r}`),TypeError);a.ERR_PACKAGE_PATH_NOT_EXPORTED=createError("ERR_PACKAGE_PATH_NOT_EXPORTED",((e,t,r=undefined)=>{if(t===".")return`No "exports" main defined in ${e}package.json${r?` imported from ${r}`:""}`;return`Package subpath '${t}' is not defined by "exports" in ${e}package.json${r?` imported from ${r}`:""}`}),Error);a.ERR_UNSUPPORTED_DIR_IMPORT=createError("ERR_UNSUPPORTED_DIR_IMPORT","Directory import '%s' is not supported "+"resolving ES modules imported from %s",Error);a.ERR_UNSUPPORTED_RESOLVE_REQUEST=createError("ERR_UNSUPPORTED_RESOLVE_REQUEST",'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.',TypeError);a.ERR_UNKNOWN_FILE_EXTENSION=createError("ERR_UNKNOWN_FILE_EXTENSION",((e,t)=>`Unknown file extension "${e}" for ${t}`),TypeError);a.ERR_INVALID_ARG_VALUE=createError("ERR_INVALID_ARG_VALUE",((e,t,r="is invalid")=>{let n=(0,_util().inspect)(t);if(n.length>128){n=`${n.slice(0,128)}...`}const s=e.includes(".")?"property":"argument";return`The ${s} '${e}' ${r}. Received ${n}`}),TypeError);function createError(e,t,r){o.set(e,t);return makeNodeErrorWithCode(r,e)}function makeNodeErrorWithCode(e,t){return NodeError;function NodeError(...r){const n=Error.stackTraceLimit;if(isErrorStackTraceLimitWritable())Error.stackTraceLimit=0;const s=new e;if(isErrorStackTraceLimitWritable())Error.stackTraceLimit=n;const i=getMessage(t,r,s);Object.defineProperties(s,{message:{value:i,enumerable:false,writable:true,configurable:true},toString:{value(){return`${this.name} [${t}]: ${this.message}`},enumerable:false,writable:true,configurable:true}});p(s);s.code=t;return s}}function isErrorStackTraceLimitWritable(){try{if(_v().startupSnapshot.isBuildingSnapshot()){return false}}catch(e){}const e=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit");if(e===undefined){return Object.isExtensible(Error)}return n.call(e,"writable")&&e.writable!==undefined?e.writable:e.set!==undefined}function hideStackFrames(e){const t=l+e.name;Object.defineProperty(e,"name",{value:t});return e}const p=hideStackFrames((function(e){const t=isErrorStackTraceLimitWritable();if(t){c=Error.stackTraceLimit;Error.stackTraceLimit=Number.POSITIVE_INFINITY}Error.captureStackTrace(e);if(t)Error.stackTraceLimit=c;return e}));function getMessage(e,t,r){const n=o.get(e);_assert()(n!==undefined,"expected `message` to be found");if(typeof n==="function"){_assert()(n.length<=t.length,`Code: ${e}; The provided arguments length (${t.length}) does not `+`match the required ones (${n.length}).`);return Reflect.apply(n,r,t)}const s=/%[dfijoOs]/g;let i=0;while(s.exec(n)!==null)i++;_assert()(i===t.length,`Code: ${e}; The provided arguments length (${t.length}) does not `+`match the required ones (${i}).`);if(t.length===0)return n;t.unshift(n);return Reflect.apply(_util().format,null,t)}function determineSpecificType(e){if(e===null||e===undefined){return String(e)}if(typeof e==="function"&&e.name){return`function ${e.name}`}if(typeof e==="object"){if(e.constructor&&e.constructor.name){return`an instance of ${e.constructor.name}`}return`${(0,_util().inspect)(e,{depth:-1})}`}let t=(0,_util().inspect)(e,{colors:false});if(t.length>28){t=`${t.slice(0,25)}...`}return`type ${typeof e} (${t})`}const u={}.hasOwnProperty;const{ERR_INVALID_PACKAGE_CONFIG:d}=a;const f=new Map;function read(e,{base:t,specifier:r}){const n=f.get(e);if(n){return n}let s;try{s=_fs().default.readFileSync(_path().toNamespacedPath(e),"utf8")}catch(e){const t=e;if(t.code!=="ENOENT"){throw t}}const i={exists:false,pjsonPath:e,main:undefined,name:undefined,type:"none",exports:undefined,imports:undefined};if(s!==undefined){let n;try{n=JSON.parse(s)}catch(n){const s=n;const i=new d(e,(t?`"${r}" from `:"")+(0,_url().fileURLToPath)(t||r),s.message);i.cause=s;throw i}i.exists=true;if(u.call(n,"name")&&typeof n.name==="string"){i.name=n.name}if(u.call(n,"main")&&typeof n.main==="string"){i.main=n.main}if(u.call(n,"exports")){i.exports=n.exports}if(u.call(n,"imports")){i.imports=n.imports}if(u.call(n,"type")&&(n.type==="commonjs"||n.type==="module")){i.type=n.type}}f.set(e,i);return i}function getPackageScopeConfig(e){let t=new URL("package.json",e);while(true){const r=t.pathname;if(r.endsWith("node_modules/package.json")){break}const n=read((0,_url().fileURLToPath)(t),{specifier:e});if(n.exists){return n}const s=t;t=new URL("../package.json",t);if(t.pathname===s.pathname){break}}const r=(0,_url().fileURLToPath)(t);return{pjsonPath:r,exists:false,type:"none"}}function getPackageType(e){return getPackageScopeConfig(e).type}const{ERR_UNKNOWN_FILE_EXTENSION:h}=a;const m={}.hasOwnProperty;const y={__proto__:null,".cjs":"commonjs",".js":"module",".json":"json",".mjs":"module"};function mimeToFormat(e){if(e&&/\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(e))return"module";if(e==="application/json")return"json";return null}const g={__proto__:null,"data:":getDataProtocolModuleFormat,"file:":getFileProtocolModuleFormat,"http:":getHttpProtocolModuleFormat,"https:":getHttpProtocolModuleFormat,"node:"(){return"builtin"}};function getDataProtocolModuleFormat(e){const{1:t}=/^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(e.pathname)||[null,null,null];return mimeToFormat(t)}function extname(e){const t=e.pathname;let r=t.length;while(r--){const e=t.codePointAt(r);if(e===47){return""}if(e===46){return t.codePointAt(r-1)===47?"":t.slice(r)}}return""}function getFileProtocolModuleFormat(e,t,r){const n=extname(e);if(n===".js"){const t=getPackageType(e);if(t!=="none"){return t}return"commonjs"}if(n===""){const t=getPackageType(e);if(t==="none"||t==="commonjs"){return"commonjs"}return"module"}const s=y[n];if(s)return s;if(r){return undefined}const i=(0,_url().fileURLToPath)(e);throw new h(n,i)}function getHttpProtocolModuleFormat(){}function defaultGetFormatWithoutErrors(e,t){const r=e.protocol;if(!m.call(g,r)){return null}return g[r](e,t,true)||null}const{ERR_INVALID_ARG_VALUE:b}=a;const T=Object.freeze(["node","import"]);const S=new Set(T);function getDefaultConditions(){return T}function getDefaultConditionsSet(){return S}function getConditionsSet(e){if(e!==undefined&&e!==getDefaultConditions()){if(!Array.isArray(e)){throw new b("conditions",e,"expected an array")}return new Set(e)}return getDefaultConditionsSet()}const x=RegExp.prototype[Symbol.replace];const{ERR_NETWORK_IMPORT_DISALLOWED:E,ERR_INVALID_MODULE_SPECIFIER:P,ERR_INVALID_PACKAGE_CONFIG:v,ERR_INVALID_PACKAGE_TARGET:A,ERR_MODULE_NOT_FOUND:w,ERR_PACKAGE_IMPORT_NOT_DEFINED:I,ERR_PACKAGE_PATH_NOT_EXPORTED:C,ERR_UNSUPPORTED_DIR_IMPORT:O,ERR_UNSUPPORTED_RESOLVE_REQUEST:N}=a;const k={}.hasOwnProperty;const _=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i;const D=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i;const M=/^\.|%|\\/;const L=/\*/g;const j=/%2f|%5c/i;const F=new Set;const B=/[/\\]{2}/;function emitInvalidSegmentDeprecation(e,t,r,n,s,i,a){if(_process().noDeprecation){return}const o=(0,_url().fileURLToPath)(n);const l=B.exec(a?e:t)!==null;_process().emitWarning(`Use of deprecated ${l?"double slash":"leading or trailing slash matching"} resolving "${e}" for module `+`request "${t}" ${t===r?"":`matched to "${r}" `}in the "${s?"imports":"exports"}" field module resolution of the package at ${o}${i?` imported from ${(0,_url().fileURLToPath)(i)}`:""}.`,"DeprecationWarning","DEP0166")}function emitLegacyIndexDeprecation(e,t,r,n){if(_process().noDeprecation){return}const s=defaultGetFormatWithoutErrors(e,{parentURL:r.href});if(s!=="module")return;const i=(0,_url().fileURLToPath)(e.href);const a=(0,_url().fileURLToPath)(new(_url().URL)(".",t));const o=(0,_url().fileURLToPath)(r);if(!n){_process().emitWarning(`No "main" or "exports" field defined in the package.json for ${a} resolving the main entry point "${i.slice(a.length)}", imported from ${o}.\nDefault "index" lookups for the main are deprecated for ES modules.`,"DeprecationWarning","DEP0151")}else if(_path().resolve(a,n)!==i){_process().emitWarning(`Package ${a} has a "main" field set to "${n}", `+`excluding the full filename and extension to the resolved file at "${i.slice(a.length)}", imported from ${o}.\n Automatic extension resolution of the "main" field is `+"deprecated for ES modules.","DeprecationWarning","DEP0151")}}function tryStatSync(e){try{return(0,_fs().statSync)(e)}catch(e){}}function fileExists(e){const t=(0,_fs().statSync)(e,{throwIfNoEntry:false});const r=t?t.isFile():undefined;return r===null||r===undefined?false:r}function legacyMainResolve(e,t,r){let n;if(t.main!==undefined){n=new(_url().URL)(t.main,e);if(fileExists(n))return n;const s=[`./${t.main}.js`,`./${t.main}.json`,`./${t.main}.node`,`./${t.main}/index.js`,`./${t.main}/index.json`,`./${t.main}/index.node`];let i=-1;while(++i<s.length){n=new(_url().URL)(s[i],e);if(fileExists(n))break;n=undefined}if(n){emitLegacyIndexDeprecation(n,e,r,t.main);return n}}const s=["./index.js","./index.json","./index.node"];let i=-1;while(++i<s.length){n=new(_url().URL)(s[i],e);if(fileExists(n))break;n=undefined}if(n){emitLegacyIndexDeprecation(n,e,r,t.main);return n}throw new w((0,_url().fileURLToPath)(new(_url().URL)(".",e)),(0,_url().fileURLToPath)(r))}function finalizeResolution(e,t,r){if(j.exec(e.pathname)!==null){throw new P(e.pathname,'must not include encoded "/" or "\\" characters',(0,_url().fileURLToPath)(t))}let n;try{n=(0,_url().fileURLToPath)(e)}catch(r){const n=r;Object.defineProperty(n,"input",{value:String(e)});Object.defineProperty(n,"module",{value:String(t)});throw n}const s=tryStatSync(n.endsWith("/")?n.slice(-1):n);if(s&&s.isDirectory()){const r=new O(n,(0,_url().fileURLToPath)(t));r.url=String(e);throw r}if(!s||!s.isFile()){const r=new w(n||e.pathname,t&&(0,_url().fileURLToPath)(t),true);r.url=String(e);throw r}if(!r){const t=(0,_fs().realpathSync)(n);const{search:r,hash:s}=e;e=(0,_url().pathToFileURL)(t+(n.endsWith(_path().sep)?"/":""));e.search=r;e.hash=s}return e}function importNotDefined(e,t,r){return new I(e,t&&(0,_url().fileURLToPath)(new(_url().URL)(".",t)),(0,_url().fileURLToPath)(r))}function exportsNotFound(e,t,r){return new C((0,_url().fileURLToPath)(new(_url().URL)(".",t)),e,r&&(0,_url().fileURLToPath)(r))}function throwInvalidSubpath(e,t,r,n,s){const i=`request is not a valid match in pattern "${t}" for the "${n?"imports":"exports"}" resolution of ${(0,_url().fileURLToPath)(r)}`;throw new P(e,i,s&&(0,_url().fileURLToPath)(s))}function invalidPackageTarget(e,t,r,n,s){t=typeof t==="object"&&t!==null?JSON.stringify(t,null,""):`${t}`;return new A((0,_url().fileURLToPath)(new(_url().URL)(".",r)),e,t,n,s&&(0,_url().fileURLToPath)(s))}function resolvePackageTargetString(e,t,r,n,s,i,a,o,l){if(t!==""&&!i&&e[e.length-1]!=="/")throw invalidPackageTarget(r,e,n,a,s);if(!e.startsWith("./")){if(a&&!e.startsWith("../")&&!e.startsWith("/")){let r=false;try{new(_url().URL)(e);r=true}catch(e){}if(!r){const r=i?x.call(L,e,(()=>t)):e+t;return packageResolve(r,n,l)}}throw invalidPackageTarget(r,e,n,a,s)}if(_.exec(e.slice(2))!==null){if(D.exec(e.slice(2))===null){if(!o){const o=i?r.replace("*",(()=>t)):r+t;const l=i?x.call(L,e,(()=>t)):e;emitInvalidSegmentDeprecation(l,o,r,n,a,s,true)}}else{throw invalidPackageTarget(r,e,n,a,s)}}const c=new(_url().URL)(e,n);const p=c.pathname;const u=new(_url().URL)(".",n).pathname;if(!p.startsWith(u))throw invalidPackageTarget(r,e,n,a,s);if(t==="")return c;if(_.exec(t)!==null){const l=i?r.replace("*",(()=>t)):r+t;if(D.exec(t)===null){if(!o){const o=i?x.call(L,e,(()=>t)):e;emitInvalidSegmentDeprecation(o,l,r,n,a,s,false)}}else{throwInvalidSubpath(l,r,n,a,s)}}if(i){return new(_url().URL)(x.call(L,c.href,(()=>t)))}return new(_url().URL)(t,c)}function isArrayIndex(e){const t=Number(e);if(`${t}`!==e)return false;return t>=0&&t<4294967295}function resolvePackageTarget(e,t,r,n,s,i,a,o,l){if(typeof t==="string"){return resolvePackageTargetString(t,r,n,e,s,i,a,o,l)}if(Array.isArray(t)){const c=t;if(c.length===0)return null;let p;let u=-1;while(++u<c.length){const t=c[u];let d;try{d=resolvePackageTarget(e,t,r,n,s,i,a,o,l)}catch(e){const t=e;p=t;if(t.code==="ERR_INVALID_PACKAGE_TARGET")continue;throw e}if(d===undefined)continue;if(d===null){p=null;continue}return d}if(p===undefined||p===null){return null}throw p}if(typeof t==="object"&&t!==null){const c=Object.getOwnPropertyNames(t);let p=-1;while(++p<c.length){const t=c[p];if(isArrayIndex(t)){throw new v((0,_url().fileURLToPath)(e),s,'"exports" cannot contain numeric property keys.')}}p=-1;while(++p<c.length){const u=c[p];if(u==="default"||l&&l.has(u)){const c=t[u];const p=resolvePackageTarget(e,c,r,n,s,i,a,o,l);if(p===undefined)continue;return p}}return null}if(t===null){return null}throw invalidPackageTarget(n,t,e,a,s)}function isConditionalExportsMainSugar(e,t,r){if(typeof e==="string"||Array.isArray(e))return true;if(typeof e!=="object"||e===null)return false;const n=Object.getOwnPropertyNames(e);let s=false;let i=0;let a=-1;while(++a<n.length){const e=n[a];const o=e===""||e[0]!==".";if(i++===0){s=o}else if(s!==o){throw new v((0,_url().fileURLToPath)(t),r,"\"exports\" cannot contain some keys starting with '.' and some not."+" The exports object must either be an object of package subpath keys"+" or an object of main entry condition name keys only.")}}return s}function emitTrailingSlashPatternDeprecation(e,t,r){if(_process().noDeprecation){return}const n=(0,_url().fileURLToPath)(t);if(F.has(n+"|"+e))return;F.add(n+"|"+e);_process().emitWarning(`Use of deprecated trailing slash pattern mapping "${e}" in the `+`"exports" field module resolution of the package at ${n}${r?` imported from ${(0,_url().fileURLToPath)(r)}`:""}. Mapping specifiers ending in "/" is no longer supported.`,"DeprecationWarning","DEP0155")}function packageExportsResolve(e,t,r,n,s){let i=r.exports;if(isConditionalExportsMainSugar(i,e,n)){i={".":i}}if(k.call(i,t)&&!t.includes("*")&&!t.endsWith("/")){const r=i[t];const a=resolvePackageTarget(e,r,"",t,n,false,false,false,s);if(a===null||a===undefined){throw exportsNotFound(t,e,n)}return a}let a="";let o="";const l=Object.getOwnPropertyNames(i);let c=-1;while(++c<l.length){const r=l[c];const s=r.indexOf("*");if(s!==-1&&t.startsWith(r.slice(0,s))){if(t.endsWith("/")){emitTrailingSlashPatternDeprecation(t,e,n)}const i=r.slice(s+1);if(t.length>=r.length&&t.endsWith(i)&&patternKeyCompare(a,r)===1&&r.lastIndexOf("*")===s){a=r;o=t.slice(s,t.length-i.length)}}}if(a){const r=i[a];const l=resolvePackageTarget(e,r,o,a,n,true,false,t.endsWith("/"),s);if(l===null||l===undefined){throw exportsNotFound(t,e,n)}return l}throw exportsNotFound(t,e,n)}function patternKeyCompare(e,t){const r=e.indexOf("*");const n=t.indexOf("*");const s=r===-1?e.length:r+1;const i=n===-1?t.length:n+1;if(s>i)return-1;if(i>s)return 1;if(r===-1)return 1;if(n===-1)return-1;if(e.length>t.length)return-1;if(t.length>e.length)return 1;return 0}function packageImportsResolve(e,t,r){if(e==="#"||e.startsWith("#/")||e.endsWith("/")){const r="is not a valid internal imports specifier name";throw new P(e,r,(0,_url().fileURLToPath)(t))}let n;const s=getPackageScopeConfig(t);if(s.exists){n=(0,_url().pathToFileURL)(s.pjsonPath);const i=s.imports;if(i){if(k.call(i,e)&&!e.includes("*")){const s=resolvePackageTarget(n,i[e],"",e,t,false,true,false,r);if(s!==null&&s!==undefined){return s}}else{let s="";let a="";const o=Object.getOwnPropertyNames(i);let l=-1;while(++l<o.length){const t=o[l];const r=t.indexOf("*");if(r!==-1&&e.startsWith(t.slice(0,-1))){const n=t.slice(r+1);if(e.length>=t.length&&e.endsWith(n)&&patternKeyCompare(s,t)===1&&t.lastIndexOf("*")===r){s=t;a=e.slice(r,e.length-n.length)}}}if(s){const e=i[s];const o=resolvePackageTarget(n,e,a,s,t,true,true,false,r);if(o!==null&&o!==undefined){return o}}}}}throw importNotDefined(e,n,t)}function parsePackageName(e,t){let r=e.indexOf("/");let n=true;let s=false;if(e[0]==="@"){s=true;if(r===-1||e.length===0){n=false}else{r=e.indexOf("/",r+1)}}const i=r===-1?e:e.slice(0,r);if(M.exec(i)!==null){n=false}if(!n){throw new P(e,"is not a valid package name",(0,_url().fileURLToPath)(t))}const a="."+(r===-1?"":e.slice(r));return{packageName:i,packageSubpath:a,isScoped:s}}function packageResolve(e,t,r){if(_module().builtinModules.includes(e)){return new(_url().URL)("node:"+e)}const{packageName:n,packageSubpath:s,isScoped:i}=parsePackageName(e,t);const a=getPackageScopeConfig(t);if(a.exists){const e=(0,_url().pathToFileURL)(a.pjsonPath);if(a.name===n&&a.exports!==undefined&&a.exports!==null){return packageExportsResolve(e,s,a,t,r)}}let o=new(_url().URL)("./node_modules/"+n+"/package.json",t);let l=(0,_url().fileURLToPath)(o);let c;do{const a=tryStatSync(l.slice(0,-13));if(!a||!a.isDirectory()){c=l;o=new(_url().URL)((i?"../../../../node_modules/":"../../../node_modules/")+n+"/package.json",o);l=(0,_url().fileURLToPath)(o);continue}const p=read(l,{base:t,specifier:e});if(p.exports!==undefined&&p.exports!==null){return packageExportsResolve(o,s,p,t,r)}if(s==="."){return legacyMainResolve(o,p,t)}return new(_url().URL)(s,o)}while(l.length!==c.length);throw new w(n,(0,_url().fileURLToPath)(t),false)}function isRelativeSpecifier(e){if(e[0]==="."){if(e.length===1||e[1]==="/")return true;if(e[1]==="."&&(e.length===2||e[2]==="/")){return true}}return false}function shouldBeTreatedAsRelativeOrAbsolutePath(e){if(e==="")return false;if(e[0]==="/")return true;return isRelativeSpecifier(e)}function moduleResolve(e,t,r,n){const s=t.protocol;const i=s==="data:";const a=i||s==="http:"||s==="https:";let o;if(shouldBeTreatedAsRelativeOrAbsolutePath(e)){try{o=new(_url().URL)(e,t)}catch(r){const n=new N(e,t);n.cause=r;throw n}}else if(s==="file:"&&e[0]==="#"){o=packageImportsResolve(e,t,r)}else{try{o=new(_url().URL)(e)}catch(n){if(a&&!_module().builtinModules.includes(e)){const r=new N(e,t);r.cause=n;throw r}o=packageResolve(e,t,r)}}_assert()(o!==undefined,"expected to be defined");if(o.protocol!=="file:"){return o}return finalizeResolution(o,t,n)}function checkIfDisallowedImport(e,t,r){if(r){const n=r.protocol;if(n==="http:"||n==="https:"){if(shouldBeTreatedAsRelativeOrAbsolutePath(e)){const n=t==null?void 0:t.protocol;if(n&&n!=="https:"&&n!=="http:"){throw new E(e,r,"remote imports cannot import from a local location.")}return{url:(t==null?void 0:t.href)||""}}if(_module().builtinModules.includes(e)){throw new E(e,r,"remote imports cannot import from a local location.")}throw new E(e,r,"only relative and absolute specifiers are supported.")}}}function isURL(e){return Boolean(e&&typeof e==="object"&&"href"in e&&typeof e.href==="string"&&"protocol"in e&&typeof e.protocol==="string"&&e.href&&e.protocol)}function throwIfInvalidParentURL(e){if(e===undefined){return}if(typeof e!=="string"&&!isURL(e)){throw new a.ERR_INVALID_ARG_TYPE("parentURL",["string","URL"],e)}}function defaultResolve(e,t={}){const{parentURL:r}=t;_assert()(r!==undefined,"expected `parentURL` to be defined");throwIfInvalidParentURL(r);let n;if(r){try{n=new(_url().URL)(r)}catch(e){}}let s;let i;try{s=shouldBeTreatedAsRelativeOrAbsolutePath(e)?new(_url().URL)(e,n):new(_url().URL)(e);i=s.protocol;if(i==="data:"){return{url:s.href,format:null}}}catch(e){}const a=checkIfDisallowedImport(e,s,n);if(a)return a;if(i===undefined&&s){i=s.protocol}if(i==="node:"){return{url:e}}if(s&&s.protocol==="node:")return{url:e};const o=getConditionsSet(t.conditions);const l=moduleResolve(e,new(_url().URL)(r),o,false);return{url:l.href,format:defaultGetFormatWithoutErrors(l,{parentURL:r})}}function resolve(e,t){if(!t){throw new Error("Please pass `parent`: `import-meta-resolve` cannot ponyfill that")}try{return defaultResolve(e,{parentURL:t}).url}catch(e){const t=e;if((t.code==="ERR_UNSUPPORTED_DIR_IMPORT"||t.code==="ERR_MODULE_NOT_FOUND")&&typeof t.url==="string"){return t.url}throw e}}0&&0},6031:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;class Buffer{constructor(e,t){this._map=null;this._buf="";this._str="";this._appendCount=0;this._last=0;this._queue=[];this._queueCursor=0;this._canMarkIdName=true;this._indentChar="";this._fastIndentations=[];this._position={line:1,column:0};this._sourcePosition={identifierName:undefined,identifierNamePos:undefined,line:undefined,column:undefined,filename:undefined};this._map=e;this._indentChar=t;for(let e=0;e<64;e++){this._fastIndentations.push(t.repeat(e))}this._allocQueue()}_allocQueue(){const e=this._queue;for(let t=0;t<16;t++){e.push({char:0,repeat:1,line:undefined,column:undefined,identifierName:undefined,identifierNamePos:undefined,filename:""})}}_pushQueue(e,t,r,n,s){const i=this._queueCursor;if(i===this._queue.length){this._allocQueue()}const a=this._queue[i];a.char=e;a.repeat=t;a.line=r;a.column=n;a.filename=s;this._queueCursor++}_popQueue(){if(this._queueCursor===0){throw new Error("Cannot pop from empty queue")}return this._queue[--this._queueCursor]}get(){this._flush();const e=this._map;const t={code:(this._buf+this._str).trimRight(),decodedMap:e==null?void 0:e.getDecoded(),get __mergedMap(){return this.map},get map(){const r=e?e.get():null;t.map=r;return r},set map(e){Object.defineProperty(t,"map",{value:e,writable:true})},get rawMappings(){const r=e==null?void 0:e.getRawMappings();t.rawMappings=r;return r},set rawMappings(e){Object.defineProperty(t,"rawMappings",{value:e,writable:true})}};return t}append(e,t){this._flush();this._append(e,this._sourcePosition,t)}appendChar(e){this._flush();this._appendChar(e,1,this._sourcePosition)}queue(e){if(e===10){while(this._queueCursor!==0){const e=this._queue[this._queueCursor-1].char;if(e!==32&&e!==9){break}this._queueCursor--}}const t=this._sourcePosition;this._pushQueue(e,1,t.line,t.column,t.filename)}queueIndentation(e){if(e===0)return;this._pushQueue(-1,e,undefined,undefined,undefined)}_flush(){const e=this._queueCursor;const t=this._queue;for(let r=0;r<e;r++){const e=t[r];this._appendChar(e.char,e.repeat,e)}this._queueCursor=0}_appendChar(e,t,r){this._last=e;if(e===-1){const e=this._fastIndentations[t];if(e!==undefined){this._str+=e}else{this._str+=t>1?this._indentChar.repeat(t):this._indentChar}}else{this._str+=t>1?String.fromCharCode(e).repeat(t):String.fromCharCode(e)}if(e!==10){this._mark(r.line,r.column,r.identifierName,r.identifierNamePos,r.filename);this._position.column+=t}else{this._position.line++;this._position.column=0}if(this._canMarkIdName){r.identifierName=undefined;r.identifierNamePos=undefined}}_append(e,t,r){const n=e.length;const s=this._position;this._last=e.charCodeAt(n-1);if(++this._appendCount>4096){+this._str;this._buf+=this._str;this._str=e;this._appendCount=0}else{this._str+=e}if(!r&&!this._map){s.column+=n;return}const{column:i,identifierName:a,identifierNamePos:o,filename:l}=t;let c=t.line;if((a!=null||o!=null)&&this._canMarkIdName){t.identifierName=undefined;t.identifierNamePos=undefined}let p=e.indexOf("\n");let u=0;if(p!==0){this._mark(c,i,a,o,l)}while(p!==-1){s.line++;s.column=0;u=p+1;if(u<n&&c!==undefined){this._mark(++c,0,null,null,l)}p=e.indexOf("\n",u)}s.column+=n-u}_mark(e,t,r,n,s){var i;(i=this._map)==null||i.mark(this._position,e,t,r,n,s)}removeTrailingNewline(){const e=this._queueCursor;if(e!==0&&this._queue[e-1].char===10){this._queueCursor--}}removeLastSemicolon(){const e=this._queueCursor;if(e!==0&&this._queue[e-1].char===59){this._queueCursor--}}getLastChar(){const e=this._queueCursor;return e!==0?this._queue[e-1].char:this._last}getNewlineCount(){const e=this._queueCursor;let t=0;if(e===0)return this._last===10?1:0;for(let r=e-1;r>=0;r--){if(this._queue[r].char!==10){break}t++}return t===e&&this._last===10?t+1:t}endsWithCharAndNewline(){const e=this._queue;const t=this._queueCursor;if(t!==0){const r=e[t-1].char;if(r!==10)return;if(t>1){return e[t-2].char}else{return this._last}}}hasContent(){return this._queueCursor!==0||!!this._last}exactSource(e,t){if(!this._map){t();return}this.source("start",e);const r=e.identifierName;const n=this._sourcePosition;if(r){this._canMarkIdName=false;n.identifierName=r}t();if(r){this._canMarkIdName=true;n.identifierName=undefined;n.identifierNamePos=undefined}this.source("end",e)}source(e,t){if(!this._map)return;this._normalizePosition(e,t,0)}sourceWithOffset(e,t,r){if(!this._map)return;this._normalizePosition(e,t,r)}_normalizePosition(e,t,r){const n=t[e];const s=this._sourcePosition;if(n){s.line=n.line;s.column=Math.max(n.column+r,0);s.filename=t.filename}}getCurrentColumn(){const e=this._queue;const t=this._queueCursor;let r=-1;let n=0;for(let s=0;s<t;s++){const t=e[s];if(t.char===10){r=n}n+=t.repeat}return r===-1?this._position.column+n:n-1-r}getCurrentLine(){let e=0;const t=this._queue;for(let r=0;r<this._queueCursor;r++){if(t[r].char===10){e++}}return this._position.line+e}}t["default"]=Buffer},1647:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlockStatement=BlockStatement;t.Directive=Directive;t.DirectiveLiteral=DirectiveLiteral;t.File=File;t.InterpreterDirective=InterpreterDirective;t.Placeholder=Placeholder;t.Program=Program;function File(e){if(e.program){this.print(e.program.interpreter)}this.print(e.program)}function Program(e){var t;this.noIndentInnerCommentsHere();this.printInnerComments();const r=(t=e.directives)==null?void 0:t.length;if(r){var n;const t=e.body.length?2:1;this.printSequence(e.directives,undefined,t);if(!((n=e.directives[r-1].trailingComments)!=null&&n.length)){this.newline(t)}}this.printSequence(e.body)}function BlockStatement(e){var t;this.tokenChar(123);const r=this.enterDelimited();const n=(t=e.directives)==null?void 0:t.length;if(n){var s;const t=e.body.length?2:1;this.printSequence(e.directives,true,t);if(!((s=e.directives[n-1].trailingComments)!=null&&s.length)){this.newline(t)}}this.printSequence(e.body,true);r();this.rightBrace(e)}function Directive(e){this.print(e.value);this.semicolon()}const r=/(?:^|[^\\])(?:\\\\)*'/;const n=/(?:^|[^\\])(?:\\\\)*"/;function DirectiveLiteral(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&t!==undefined){this.token(t);return}const{value:s}=e;if(!n.test(s)){this.token(`"${s}"`)}else if(!r.test(s)){this.token(`'${s}'`)}else{throw new Error("Malformed AST: it is not possible to print a directive containing"+" both unescaped single and double quotes.")}}function InterpreterDirective(e){this.token(`#!${e.value}`);this.newline(1,true)}function Placeholder(e){this.token("%%");this.print(e.name);this.token("%%");if(e.expectedNode==="Statement"){this.semicolon()}}},5953:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ClassAccessorProperty=ClassAccessorProperty;t.ClassBody=ClassBody;t.ClassExpression=t.ClassDeclaration=ClassDeclaration;t.ClassMethod=ClassMethod;t.ClassPrivateMethod=ClassPrivateMethod;t.ClassPrivateProperty=ClassPrivateProperty;t.ClassProperty=ClassProperty;t.StaticBlock=StaticBlock;t._classMethodHead=_classMethodHead;var n=r(3061);const{isExportDefaultDeclaration:s,isExportNamedDeclaration:i}=n;function ClassDeclaration(e,t){const r=s(t)||i(t);if(!r||!this._shouldPrintDecoratorsBeforeExport(t)){this.printJoin(e.decorators)}if(e.declare){this.word("declare");this.space()}if(e.abstract){this.word("abstract");this.space()}this.word("class");if(e.id){this.space();this.print(e.id)}this.print(e.typeParameters);if(e.superClass){this.space();this.word("extends");this.space();this.print(e.superClass);this.print(e.superTypeParameters)}if(e.implements){this.space();this.word("implements");this.space();this.printList(e.implements)}this.space();this.print(e.body)}function ClassBody(e){this.tokenChar(123);if(e.body.length===0){this.tokenChar(125)}else{this.newline();const t=classBodyEmptySemicolonsPrinter(this,e);t==null||t(-1);const r=this.enterDelimited();this.printJoin(e.body,true,true,t,true);r();if(!this.endsWith(10))this.newline();this.rightBrace(e)}}function classBodyEmptySemicolonsPrinter(e,t){if(!e.tokenMap||t.start==null||t.end==null){return null}const r=e.tokenMap.getIndexes(t);if(!r)return null;let n=1;let s=0;let i=0;const advanceNextLocIndex=()=>{while(i<t.body.length&&t.body[i].start==null){i++}};advanceNextLocIndex();return a=>{if(i<=a){i=a+1;advanceNextLocIndex()}const o=i===t.body.length?t.end:t.body[i].start;let l;while(n<r.length&&e.tokenMap.matchesOriginal(l=e._tokens[r[n]],";")&&l.start<o){e.token(";",undefined,s++);n++}}}function ClassProperty(e){this.printJoin(e.decorators);if(!e.static&&!this.format.preserveFormat){var t;const r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;if(r)this.catchUp(r)}this.tsPrintClassMemberModifiers(e);if(e.computed){this.tokenChar(91);this.print(e.key);this.tokenChar(93)}else{this._variance(e);this.print(e.key)}if(e.optional){this.tokenChar(63)}if(e.definite){this.tokenChar(33)}this.print(e.typeAnnotation);if(e.value){this.space();this.tokenChar(61);this.space();this.print(e.value)}this.semicolon()}function ClassAccessorProperty(e){var t;this.printJoin(e.decorators);const r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;if(r)this.catchUp(r);this.tsPrintClassMemberModifiers(e);this.word("accessor",true);this.space();if(e.computed){this.tokenChar(91);this.print(e.key);this.tokenChar(93)}else{this._variance(e);this.print(e.key)}if(e.optional){this.tokenChar(63)}if(e.definite){this.tokenChar(33)}this.print(e.typeAnnotation);if(e.value){this.space();this.tokenChar(61);this.space();this.print(e.value)}this.semicolon()}function ClassPrivateProperty(e){this.printJoin(e.decorators);this.tsPrintClassMemberModifiers(e);this.print(e.key);if(e.optional){this.tokenChar(63)}if(e.definite){this.tokenChar(33)}this.print(e.typeAnnotation);if(e.value){this.space();this.tokenChar(61);this.space();this.print(e.value)}this.semicolon()}function ClassMethod(e){this._classMethodHead(e);this.space();this.print(e.body)}function ClassPrivateMethod(e){this._classMethodHead(e);this.space();this.print(e.body)}function _classMethodHead(e){this.printJoin(e.decorators);if(!this.format.preserveFormat){var t;const r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;if(r)this.catchUp(r)}this.tsPrintClassMemberModifiers(e);this._methodHead(e)}function StaticBlock(e){this.word("static");this.space();this.tokenChar(123);if(e.body.length===0){this.tokenChar(125)}else{this.newline();this.printSequence(e.body,true);this.rightBrace(e)}}},2943:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.addDeprecatedGenerators=addDeprecatedGenerators;function addDeprecatedGenerators(e){{const t={Noop(){},TSExpressionWithTypeArguments(e){this.print(e.expression);this.print(e.typeParameters)},DecimalLiteral(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&t!==undefined){this.word(t);return}this.word(e.value+"m")}};Object.assign(e.prototype,t)}}},1270:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LogicalExpression=t.BinaryExpression=t.AssignmentExpression=AssignmentExpression;t.AssignmentPattern=AssignmentPattern;t.AwaitExpression=AwaitExpression;t.BindExpression=BindExpression;t.CallExpression=CallExpression;t.ConditionalExpression=ConditionalExpression;t.Decorator=Decorator;t.DoExpression=DoExpression;t.EmptyStatement=EmptyStatement;t.ExpressionStatement=ExpressionStatement;t.Import=Import;t.MemberExpression=MemberExpression;t.MetaProperty=MetaProperty;t.ModuleExpression=ModuleExpression;t.NewExpression=NewExpression;t.OptionalCallExpression=OptionalCallExpression;t.OptionalMemberExpression=OptionalMemberExpression;t.ParenthesizedExpression=ParenthesizedExpression;t.PrivateName=PrivateName;t.SequenceExpression=SequenceExpression;t.Super=Super;t.ThisExpression=ThisExpression;t.UnaryExpression=UnaryExpression;t.UpdateExpression=UpdateExpression;t.V8IntrinsicIdentifier=V8IntrinsicIdentifier;t.YieldExpression=YieldExpression;t._shouldPrintDecoratorsBeforeExport=_shouldPrintDecoratorsBeforeExport;var n=r(3061);var s=r(8694);const{isCallExpression:i,isLiteral:a,isMemberExpression:o,isNewExpression:l,isPattern:c}=n;function UnaryExpression(e){const{operator:t}=e;if(t==="void"||t==="delete"||t==="typeof"||t==="throw"){this.word(t);this.space()}else{this.token(t)}this.print(e.argument)}function DoExpression(e){if(e.async){this.word("async",true);this.space()}this.word("do");this.space();this.print(e.body)}function ParenthesizedExpression(e){this.tokenChar(40);const t=this.enterDelimited();this.print(e.expression);t();this.rightParens(e)}function UpdateExpression(e){if(e.prefix){this.token(e.operator);this.print(e.argument)}else{this.print(e.argument,true);this.token(e.operator)}}function ConditionalExpression(e){this.print(e.test);this.space();this.tokenChar(63);this.space();this.print(e.consequent);this.space();this.tokenChar(58);this.space();this.print(e.alternate)}function NewExpression(e,t){this.word("new");this.space();this.print(e.callee);if(this.format.minified&&e.arguments.length===0&&!e.optional&&!i(t,{callee:e})&&!o(t)&&!l(t)){return}this.print(e.typeArguments);{this.print(e.typeParameters)}if(e.optional){this.token("?.")}if(e.arguments.length===0&&this.tokenMap&&!this.tokenMap.endMatches(e,")")){return}this.tokenChar(40);const r=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")"));r();this.rightParens(e)}function SequenceExpression(e){this.printList(e.expressions)}function ThisExpression(){this.word("this")}function Super(){this.word("super")}function _shouldPrintDecoratorsBeforeExport(e){if(typeof this.format.decoratorsBeforeExport==="boolean"){return this.format.decoratorsBeforeExport}return typeof e.start==="number"&&e.start===e.declaration.start}function Decorator(e){this.tokenChar(64);this.print(e.expression);this.newline()}function OptionalMemberExpression(e){let{computed:t}=e;const{optional:r,property:n}=e;this.print(e.object);if(!t&&o(n)){throw new TypeError("Got a MemberExpression for MemberExpression property")}if(a(n)&&typeof n.value==="number"){t=true}if(r){this.token("?.")}if(t){this.tokenChar(91);this.print(n);this.tokenChar(93)}else{if(!r){this.tokenChar(46)}this.print(n)}}function OptionalCallExpression(e){this.print(e.callee);{this.print(e.typeParameters)}if(e.optional){this.token("?.")}this.print(e.typeArguments);this.tokenChar(40);const t=this.enterDelimited();this.printList(e.arguments);t();this.rightParens(e)}function CallExpression(e){this.print(e.callee);this.print(e.typeArguments);{this.print(e.typeParameters)}this.tokenChar(40);const t=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")"));t();this.rightParens(e)}function Import(){this.word("import")}function AwaitExpression(e){this.word("await");if(e.argument){this.space();this.printTerminatorless(e.argument)}}function YieldExpression(e){this.word("yield",true);if(e.delegate){this.tokenChar(42);if(e.argument){this.space();this.print(e.argument)}}else{if(e.argument){this.space();this.printTerminatorless(e.argument)}}}function EmptyStatement(){this.semicolon(true)}function ExpressionStatement(e){this.tokenContext|=s.TokenContext.expressionStatement;this.print(e.expression);this.semicolon()}function AssignmentPattern(e){this.print(e.left);if(e.left.type==="Identifier"||c(e.left)){if(e.left.optional)this.tokenChar(63);this.print(e.left.typeAnnotation)}this.space();this.tokenChar(61);this.space();this.print(e.right)}function AssignmentExpression(e){this.print(e.left);this.space();if(e.operator==="in"||e.operator==="instanceof"){this.word(e.operator)}else{this.token(e.operator);this._endsWithDiv=e.operator==="/"}this.space();this.print(e.right)}function BindExpression(e){this.print(e.object);this.token("::");this.print(e.callee)}function MemberExpression(e){this.print(e.object);if(!e.computed&&o(e.property)){throw new TypeError("Got a MemberExpression for MemberExpression property")}let t=e.computed;if(a(e.property)&&typeof e.property.value==="number"){t=true}if(t){const t=this.enterDelimited();this.tokenChar(91);this.print(e.property);this.tokenChar(93);t()}else{this.tokenChar(46);this.print(e.property)}}function MetaProperty(e){this.print(e.meta);this.tokenChar(46);this.print(e.property)}function PrivateName(e){this.tokenChar(35);this.print(e.id)}function V8IntrinsicIdentifier(e){this.tokenChar(37);this.word(e.name)}function ModuleExpression(e){this.word("module",true);this.space();this.tokenChar(123);this.indent();const{body:t}=e;if(t.body.length||t.directives.length){this.newline()}this.print(t);this.dedent();this.rightBrace(e)}},299:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AnyTypeAnnotation=AnyTypeAnnotation;t.ArrayTypeAnnotation=ArrayTypeAnnotation;t.BooleanLiteralTypeAnnotation=BooleanLiteralTypeAnnotation;t.BooleanTypeAnnotation=BooleanTypeAnnotation;t.DeclareClass=DeclareClass;t.DeclareExportAllDeclaration=DeclareExportAllDeclaration;t.DeclareExportDeclaration=DeclareExportDeclaration;t.DeclareFunction=DeclareFunction;t.DeclareInterface=DeclareInterface;t.DeclareModule=DeclareModule;t.DeclareModuleExports=DeclareModuleExports;t.DeclareOpaqueType=DeclareOpaqueType;t.DeclareTypeAlias=DeclareTypeAlias;t.DeclareVariable=DeclareVariable;t.DeclaredPredicate=DeclaredPredicate;t.EmptyTypeAnnotation=EmptyTypeAnnotation;t.EnumBooleanBody=EnumBooleanBody;t.EnumBooleanMember=EnumBooleanMember;t.EnumDeclaration=EnumDeclaration;t.EnumDefaultedMember=EnumDefaultedMember;t.EnumNumberBody=EnumNumberBody;t.EnumNumberMember=EnumNumberMember;t.EnumStringBody=EnumStringBody;t.EnumStringMember=EnumStringMember;t.EnumSymbolBody=EnumSymbolBody;t.ExistsTypeAnnotation=ExistsTypeAnnotation;t.FunctionTypeAnnotation=FunctionTypeAnnotation;t.FunctionTypeParam=FunctionTypeParam;t.IndexedAccessType=IndexedAccessType;t.InferredPredicate=InferredPredicate;t.InterfaceDeclaration=InterfaceDeclaration;t.GenericTypeAnnotation=t.ClassImplements=t.InterfaceExtends=InterfaceExtends;t.InterfaceTypeAnnotation=InterfaceTypeAnnotation;t.IntersectionTypeAnnotation=IntersectionTypeAnnotation;t.MixedTypeAnnotation=MixedTypeAnnotation;t.NullLiteralTypeAnnotation=NullLiteralTypeAnnotation;t.NullableTypeAnnotation=NullableTypeAnnotation;Object.defineProperty(t,"NumberLiteralTypeAnnotation",{enumerable:true,get:function(){return a.NumericLiteral}});t.NumberTypeAnnotation=NumberTypeAnnotation;t.ObjectTypeAnnotation=ObjectTypeAnnotation;t.ObjectTypeCallProperty=ObjectTypeCallProperty;t.ObjectTypeIndexer=ObjectTypeIndexer;t.ObjectTypeInternalSlot=ObjectTypeInternalSlot;t.ObjectTypeProperty=ObjectTypeProperty;t.ObjectTypeSpreadProperty=ObjectTypeSpreadProperty;t.OpaqueType=OpaqueType;t.OptionalIndexedAccessType=OptionalIndexedAccessType;t.QualifiedTypeIdentifier=QualifiedTypeIdentifier;Object.defineProperty(t,"StringLiteralTypeAnnotation",{enumerable:true,get:function(){return a.StringLiteral}});t.StringTypeAnnotation=StringTypeAnnotation;t.SymbolTypeAnnotation=SymbolTypeAnnotation;t.ThisTypeAnnotation=ThisTypeAnnotation;t.TupleTypeAnnotation=TupleTypeAnnotation;t.TypeAlias=TypeAlias;t.TypeAnnotation=TypeAnnotation;t.TypeCastExpression=TypeCastExpression;t.TypeParameter=TypeParameter;t.TypeParameterDeclaration=t.TypeParameterInstantiation=TypeParameterInstantiation;t.TypeofTypeAnnotation=TypeofTypeAnnotation;t.UnionTypeAnnotation=UnionTypeAnnotation;t.Variance=Variance;t.VoidTypeAnnotation=VoidTypeAnnotation;t._interfaceish=_interfaceish;t._variance=_variance;var n=r(3061);var s=r(2415);var i=r(8694);var a=r(7154);const{isDeclareExportDeclaration:o,isStatement:l}=n;function AnyTypeAnnotation(){this.word("any")}function ArrayTypeAnnotation(e){this.print(e.elementType,true);this.tokenChar(91);this.tokenChar(93)}function BooleanTypeAnnotation(){this.word("boolean")}function BooleanLiteralTypeAnnotation(e){this.word(e.value?"true":"false")}function NullLiteralTypeAnnotation(){this.word("null")}function DeclareClass(e,t){if(!o(t)){this.word("declare");this.space()}this.word("class");this.space();this._interfaceish(e)}function DeclareFunction(e,t){if(!o(t)){this.word("declare");this.space()}this.word("function");this.space();this.print(e.id);this.print(e.id.typeAnnotation.typeAnnotation);if(e.predicate){this.space();this.print(e.predicate)}this.semicolon()}function InferredPredicate(){this.tokenChar(37);this.word("checks")}function DeclaredPredicate(e){this.tokenChar(37);this.word("checks");this.tokenChar(40);this.print(e.value);this.tokenChar(41)}function DeclareInterface(e){this.word("declare");this.space();this.InterfaceDeclaration(e)}function DeclareModule(e){this.word("declare");this.space();this.word("module");this.space();this.print(e.id);this.space();this.print(e.body)}function DeclareModuleExports(e){this.word("declare");this.space();this.word("module");this.tokenChar(46);this.word("exports");this.print(e.typeAnnotation)}function DeclareTypeAlias(e){this.word("declare");this.space();this.TypeAlias(e)}function DeclareOpaqueType(e,t){if(!o(t)){this.word("declare");this.space()}this.OpaqueType(e)}function DeclareVariable(e,t){if(!o(t)){this.word("declare");this.space()}this.word("var");this.space();this.print(e.id);this.print(e.id.typeAnnotation);this.semicolon()}function DeclareExportDeclaration(e){this.word("declare");this.space();this.word("export");this.space();if(e.default){this.word("default");this.space()}FlowExportDeclaration.call(this,e)}function DeclareExportAllDeclaration(e){this.word("declare");this.space();s.ExportAllDeclaration.call(this,e)}function EnumDeclaration(e){const{id:t,body:r}=e;this.word("enum");this.space();this.print(t);this.print(r)}function enumExplicitType(e,t,r){if(r){e.space();e.word("of");e.space();e.word(t)}e.space()}function enumBody(e,t){const{members:r}=t;e.token("{");e.indent();e.newline();for(const t of r){e.print(t);e.newline()}if(t.hasUnknownMembers){e.token("...");e.newline()}e.dedent();e.token("}")}function EnumBooleanBody(e){const{explicitType:t}=e;enumExplicitType(this,"boolean",t);enumBody(this,e)}function EnumNumberBody(e){const{explicitType:t}=e;enumExplicitType(this,"number",t);enumBody(this,e)}function EnumStringBody(e){const{explicitType:t}=e;enumExplicitType(this,"string",t);enumBody(this,e)}function EnumSymbolBody(e){enumExplicitType(this,"symbol",true);enumBody(this,e)}function EnumDefaultedMember(e){const{id:t}=e;this.print(t);this.tokenChar(44)}function enumInitializedMember(e,t){e.print(t.id);e.space();e.token("=");e.space();e.print(t.init);e.token(",")}function EnumBooleanMember(e){enumInitializedMember(this,e)}function EnumNumberMember(e){enumInitializedMember(this,e)}function EnumStringMember(e){enumInitializedMember(this,e)}function FlowExportDeclaration(e){if(e.declaration){const t=e.declaration;this.print(t);if(!l(t))this.semicolon()}else{this.tokenChar(123);if(e.specifiers.length){this.space();this.printList(e.specifiers);this.space()}this.tokenChar(125);if(e.source){this.space();this.word("from");this.space();this.print(e.source)}this.semicolon()}}function ExistsTypeAnnotation(){this.tokenChar(42)}function FunctionTypeAnnotation(e,t){this.print(e.typeParameters);this.tokenChar(40);if(e.this){this.word("this");this.tokenChar(58);this.space();this.print(e.this.typeAnnotation);if(e.params.length||e.rest){this.tokenChar(44);this.space()}}this.printList(e.params);if(e.rest){if(e.params.length){this.tokenChar(44);this.space()}this.token("...");this.print(e.rest)}this.tokenChar(41);const r=t==null?void 0:t.type;if(r!=null&&(r==="ObjectTypeCallProperty"||r==="ObjectTypeInternalSlot"||r==="DeclareFunction"||r==="ObjectTypeProperty"&&t.method)){this.tokenChar(58)}else{this.space();this.token("=>")}this.space();this.print(e.returnType)}function FunctionTypeParam(e){this.print(e.name);if(e.optional)this.tokenChar(63);if(e.name){this.tokenChar(58);this.space()}this.print(e.typeAnnotation)}function InterfaceExtends(e){this.print(e.id);this.print(e.typeParameters,true)}function _interfaceish(e){var t;this.print(e.id);this.print(e.typeParameters);if((t=e.extends)!=null&&t.length){this.space();this.word("extends");this.space();this.printList(e.extends)}if(e.type==="DeclareClass"){var r,n;if((r=e.mixins)!=null&&r.length){this.space();this.word("mixins");this.space();this.printList(e.mixins)}if((n=e.implements)!=null&&n.length){this.space();this.word("implements");this.space();this.printList(e.implements)}}this.space();this.print(e.body)}function _variance(e){var t;const r=(t=e.variance)==null?void 0:t.kind;if(r!=null){if(r==="plus"){this.tokenChar(43)}else if(r==="minus"){this.tokenChar(45)}}}function InterfaceDeclaration(e){this.word("interface");this.space();this._interfaceish(e)}function andSeparator(e){this.space();this.token("&",false,e);this.space()}function InterfaceTypeAnnotation(e){var t;this.word("interface");if((t=e.extends)!=null&&t.length){this.space();this.word("extends");this.space();this.printList(e.extends)}this.space();this.print(e.body)}function IntersectionTypeAnnotation(e){this.printJoin(e.types,undefined,undefined,andSeparator)}function MixedTypeAnnotation(){this.word("mixed")}function EmptyTypeAnnotation(){this.word("empty")}function NullableTypeAnnotation(e){this.tokenChar(63);this.print(e.typeAnnotation)}function NumberTypeAnnotation(){this.word("number")}function StringTypeAnnotation(){this.word("string")}function ThisTypeAnnotation(){this.word("this")}function TupleTypeAnnotation(e){this.tokenChar(91);this.printList(e.types);this.tokenChar(93)}function TypeofTypeAnnotation(e){this.word("typeof");this.space();this.print(e.argument)}function TypeAlias(e){this.word("type");this.space();this.print(e.id);this.print(e.typeParameters);this.space();this.tokenChar(61);this.space();this.print(e.right);this.semicolon()}function TypeAnnotation(e,t){this.tokenChar(58);this.space();if(t.type==="ArrowFunctionExpression"){this.tokenContext|=i.TokenContext.arrowFlowReturnType}else if(e.optional){this.tokenChar(63)}this.print(e.typeAnnotation)}function TypeParameterInstantiation(e){this.tokenChar(60);this.printList(e.params);this.tokenChar(62)}function TypeParameter(e){this._variance(e);this.word(e.name);if(e.bound){this.print(e.bound)}if(e.default){this.space();this.tokenChar(61);this.space();this.print(e.default)}}function OpaqueType(e){this.word("opaque");this.space();this.word("type");this.space();this.print(e.id);this.print(e.typeParameters);if(e.supertype){this.tokenChar(58);this.space();this.print(e.supertype)}if(e.impltype){this.space();this.tokenChar(61);this.space();this.print(e.impltype)}this.semicolon()}function ObjectTypeAnnotation(e){if(e.exact){this.token("{|")}else{this.tokenChar(123)}const t=[...e.properties,...e.callProperties||[],...e.indexers||[],...e.internalSlots||[]];if(t.length){this.newline();this.space();this.printJoin(t,true,true,undefined,undefined,(function addNewlines(e){if(e&&!t[0])return 1}),(()=>{if(t.length!==1||e.inexact){this.tokenChar(44);this.space()}}));this.space()}if(e.inexact){this.indent();this.token("...");if(t.length){this.newline()}this.dedent()}if(e.exact){this.token("|}")}else{this.tokenChar(125)}}function ObjectTypeInternalSlot(e){if(e.static){this.word("static");this.space()}this.tokenChar(91);this.tokenChar(91);this.print(e.id);this.tokenChar(93);this.tokenChar(93);if(e.optional)this.tokenChar(63);if(!e.method){this.tokenChar(58);this.space()}this.print(e.value)}function ObjectTypeCallProperty(e){if(e.static){this.word("static");this.space()}this.print(e.value)}function ObjectTypeIndexer(e){if(e.static){this.word("static");this.space()}this._variance(e);this.tokenChar(91);if(e.id){this.print(e.id);this.tokenChar(58);this.space()}this.print(e.key);this.tokenChar(93);this.tokenChar(58);this.space();this.print(e.value)}function ObjectTypeProperty(e){if(e.proto){this.word("proto");this.space()}if(e.static){this.word("static");this.space()}if(e.kind==="get"||e.kind==="set"){this.word(e.kind);this.space()}this._variance(e);this.print(e.key);if(e.optional)this.tokenChar(63);if(!e.method){this.tokenChar(58);this.space()}this.print(e.value)}function ObjectTypeSpreadProperty(e){this.token("...");this.print(e.argument)}function QualifiedTypeIdentifier(e){this.print(e.qualification);this.tokenChar(46);this.print(e.id)}function SymbolTypeAnnotation(){this.word("symbol")}function orSeparator(e){this.space();this.token("|",false,e);this.space()}function UnionTypeAnnotation(e){this.printJoin(e.types,undefined,undefined,orSeparator)}function TypeCastExpression(e){this.tokenChar(40);this.print(e.expression);this.print(e.typeAnnotation);this.tokenChar(41)}function Variance(e){if(e.kind==="plus"){this.tokenChar(43)}else{this.tokenChar(45)}}function VoidTypeAnnotation(){this.word("void")}function IndexedAccessType(e){this.print(e.objectType,true);this.tokenChar(91);this.print(e.indexType);this.tokenChar(93)}function OptionalIndexedAccessType(e){this.print(e.objectType);if(e.optional){this.token("?.")}this.tokenChar(91);this.print(e.indexType);this.tokenChar(93)}},476:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(6826);Object.keys(n).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===n[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return n[e]}})}));var s=r(1270);Object.keys(s).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===s[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return s[e]}})}));var i=r(9213);Object.keys(i).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===i[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return i[e]}})}));var a=r(5953);Object.keys(a).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===a[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return a[e]}})}));var o=r(684);Object.keys(o).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===o[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return o[e]}})}));var l=r(2415);Object.keys(l).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===l[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return l[e]}})}));var c=r(7154);Object.keys(c).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===c[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return c[e]}})}));var p=r(299);Object.keys(p).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===p[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return p[e]}})}));var u=r(1647);Object.keys(u).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===u[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return u[e]}})}));var d=r(2647);Object.keys(d).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===d[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return d[e]}})}));var f=r(7544);Object.keys(f).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===f[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return f[e]}})}))},2647:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.JSXAttribute=JSXAttribute;t.JSXClosingElement=JSXClosingElement;t.JSXClosingFragment=JSXClosingFragment;t.JSXElement=JSXElement;t.JSXEmptyExpression=JSXEmptyExpression;t.JSXExpressionContainer=JSXExpressionContainer;t.JSXFragment=JSXFragment;t.JSXIdentifier=JSXIdentifier;t.JSXMemberExpression=JSXMemberExpression;t.JSXNamespacedName=JSXNamespacedName;t.JSXOpeningElement=JSXOpeningElement;t.JSXOpeningFragment=JSXOpeningFragment;t.JSXSpreadAttribute=JSXSpreadAttribute;t.JSXSpreadChild=JSXSpreadChild;t.JSXText=JSXText;function JSXAttribute(e){this.print(e.name);if(e.value){this.tokenChar(61);this.print(e.value)}}function JSXIdentifier(e){this.word(e.name)}function JSXNamespacedName(e){this.print(e.namespace);this.tokenChar(58);this.print(e.name)}function JSXMemberExpression(e){this.print(e.object);this.tokenChar(46);this.print(e.property)}function JSXSpreadAttribute(e){this.tokenChar(123);this.token("...");this.print(e.argument);this.rightBrace(e)}function JSXExpressionContainer(e){this.tokenChar(123);this.print(e.expression);this.rightBrace(e)}function JSXSpreadChild(e){this.tokenChar(123);this.token("...");this.print(e.expression);this.rightBrace(e)}function JSXText(e){const t=this.getPossibleRaw(e);if(t!==undefined){this.token(t,true)}else{this.token(e.value,true)}}function JSXElement(e){const t=e.openingElement;this.print(t);if(t.selfClosing)return;this.indent();for(const t of e.children){this.print(t)}this.dedent();this.print(e.closingElement)}function spaceSeparator(){this.space()}function JSXOpeningElement(e){this.tokenChar(60);this.print(e.name);{if(e.typeArguments){this.print(e.typeArguments)}this.print(e.typeParameters)}if(e.attributes.length>0){this.space();this.printJoin(e.attributes,undefined,undefined,spaceSeparator)}if(e.selfClosing){this.space();this.tokenChar(47)}this.tokenChar(62)}function JSXClosingElement(e){this.tokenChar(60);this.tokenChar(47);this.print(e.name);this.tokenChar(62)}function JSXEmptyExpression(){this.printInnerComments()}function JSXFragment(e){this.print(e.openingFragment);this.indent();for(const t of e.children){this.print(t)}this.dedent();this.print(e.closingFragment)}function JSXOpeningFragment(){this.tokenChar(60);this.tokenChar(62)}function JSXClosingFragment(){this.token("</");this.tokenChar(62)}},684:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ArrowFunctionExpression=ArrowFunctionExpression;t.FunctionDeclaration=t.FunctionExpression=FunctionExpression;t._functionHead=_functionHead;t._methodHead=_methodHead;t._param=_param;t._parameters=_parameters;t._params=_params;t._predicate=_predicate;t._shouldPrintArrowParamsParens=_shouldPrintArrowParamsParens;var n=r(3061);var s=r(8694);const{isIdentifier:i}=n;function _params(e,t,r){this.print(e.typeParameters);const n=_getFuncIdName.call(this,t,r);if(n){this.sourceIdentifierName(n.name,n.pos)}this.tokenChar(40);this._parameters(e.params,")");const s=e.type==="ArrowFunctionExpression";this.print(e.returnType,s);this._noLineTerminator=s}function _parameters(e,t){const r=this.enterDelimited();const n=this.shouldPrintTrailingComma(t);const s=e.length;for(let t=0;t<s;t++){this._param(e[t]);if(n||t<s-1){this.token(",",null,t);this.space()}}this.token(t);r()}function _param(e){this.printJoin(e.decorators);this.print(e);if(e.optional){this.tokenChar(63)}this.print(e.typeAnnotation)}function _methodHead(e){const t=e.kind;const r=e.key;if(t==="get"||t==="set"){this.word(t);this.space()}if(e.async){this.word("async",true);this.space()}if(t==="method"||t==="init"){if(e.generator){this.tokenChar(42)}}if(e.computed){this.tokenChar(91);this.print(r);this.tokenChar(93)}else{this.print(r)}if(e.optional){this.tokenChar(63)}this._params(e,e.computed&&e.key.type!=="StringLiteral"?undefined:e.key,undefined)}function _predicate(e,t){if(e.predicate){if(!e.returnType){this.tokenChar(58)}this.space();this.print(e.predicate,t)}}function _functionHead(e,t){if(e.async){this.word("async");if(!this.format.preserveFormat){this._endsWithInnerRaw=false}this.space()}this.word("function");if(e.generator){if(!this.format.preserveFormat){this._endsWithInnerRaw=false}this.tokenChar(42)}this.space();if(e.id){this.print(e.id)}this._params(e,e.id,t);if(e.type!=="TSDeclareFunction"){this._predicate(e)}}function FunctionExpression(e,t){this._functionHead(e,t);this.space();this.print(e.body)}function ArrowFunctionExpression(e,t){if(e.async){this.word("async",true);this.space()}if(this._shouldPrintArrowParamsParens(e)){this._params(e,undefined,t)}else{this.print(e.params[0],true)}this._predicate(e,true);this.space();this.printInnerComments();this.token("=>");this.space();this.tokenContext|=s.TokenContext.arrowBody;this.print(e.body)}function _shouldPrintArrowParamsParens(e){var t,r;if(e.params.length!==1)return true;if(e.typeParameters||e.returnType||e.predicate){return true}const n=e.params[0];if(!i(n)||n.typeAnnotation||n.optional||(t=n.leadingComments)!=null&&t.length||(r=n.trailingComments)!=null&&r.length){return true}if(this.tokenMap){if(e.loc==null)return true;if(this.tokenMap.findMatching(e,"(")!==null)return true;const t=this.tokenMap.findMatching(e,"=>");if((t==null?void 0:t.loc)==null)return true;return t.loc.start.line!==e.loc.start.line}if(this.format.retainLines)return true;return false}function _getFuncIdName(e,t){let r=e;if(!r&&t){const e=t.type;if(e==="VariableDeclarator"){r=t.id}else if(e==="AssignmentExpression"||e==="AssignmentPattern"){r=t.left}else if(e==="ObjectProperty"||e==="ClassProperty"){if(!t.computed||t.key.type==="StringLiteral"){r=t.key}}else if(e==="ClassPrivateProperty"||e==="ClassAccessorProperty"){r=t.key}}if(!r)return;let n;if(r.type==="Identifier"){var s,i;n={pos:(s=r.loc)==null?void 0:s.start,name:((i=r.loc)==null?void 0:i.identifierName)||r.name}}else if(r.type==="PrivateName"){var a;n={pos:(a=r.loc)==null?void 0:a.start,name:"#"+r.id.name}}else if(r.type==="StringLiteral"){var o;n={pos:(o=r.loc)==null?void 0:o.start,name:r.value}}return n}},2415:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ExportAllDeclaration=ExportAllDeclaration;t.ExportDefaultDeclaration=ExportDefaultDeclaration;t.ExportDefaultSpecifier=ExportDefaultSpecifier;t.ExportNamedDeclaration=ExportNamedDeclaration;t.ExportNamespaceSpecifier=ExportNamespaceSpecifier;t.ExportSpecifier=ExportSpecifier;t.ImportAttribute=ImportAttribute;t.ImportDeclaration=ImportDeclaration;t.ImportDefaultSpecifier=ImportDefaultSpecifier;t.ImportExpression=ImportExpression;t.ImportNamespaceSpecifier=ImportNamespaceSpecifier;t.ImportSpecifier=ImportSpecifier;t._printAttributes=_printAttributes;var n=r(3061);var s=r(8694);const{isClassDeclaration:i,isExportDefaultSpecifier:a,isExportNamespaceSpecifier:o,isImportDefaultSpecifier:l,isImportNamespaceSpecifier:c,isStatement:p}=n;function ImportSpecifier(e){if(e.importKind==="type"||e.importKind==="typeof"){this.word(e.importKind);this.space()}this.print(e.imported);if(e.local&&e.local.name!==e.imported.name){this.space();this.word("as");this.space();this.print(e.local)}}function ImportDefaultSpecifier(e){this.print(e.local)}function ExportDefaultSpecifier(e){this.print(e.exported)}function ExportSpecifier(e){if(e.exportKind==="type"){this.word("type");this.space()}this.print(e.local);if(e.exported&&e.local.name!==e.exported.name){this.space();this.word("as");this.space();this.print(e.exported)}}function ExportNamespaceSpecifier(e){this.tokenChar(42);this.space();this.word("as");this.space();this.print(e.exported)}let u=false;function _printAttributes(e,t){var r;const{importAttributesKeyword:n}=this.format;const{attributes:s,assertions:i}=e;if(s&&!n&&e.extra&&(e.extra.deprecatedAssertSyntax||e.extra.deprecatedWithLegacySyntax)&&!u){u=true;console.warn(`You are using import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose value can be one of:\n - "with" : \`import { a } from "b" with { type: "json" };\`\n - "assert" : \`import { a } from "b" assert { type: "json" };\`\n - "with-legacy" : \`import { a } from "b" with type: "json";\`\n`)}const a=n==="assert"||!n&&i;this.word(a?"assert":"with");this.space();if(!a&&(n==="with-legacy"||!n&&(r=e.extra)!=null&&r.deprecatedWithLegacySyntax)){this.printList(s||i);return}const o=t?1:0;this.token("{",null,o);this.space();this.printList(s||i,this.shouldPrintTrailingComma("}"));this.space();this.token("}",null,o)}function ExportAllDeclaration(e){var t,r;this.word("export");this.space();if(e.exportKind==="type"){this.word("type");this.space()}this.tokenChar(42);this.space();this.word("from");this.space();if((t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length){this.print(e.source,true);this.space();this._printAttributes(e,false)}else{this.print(e.source)}this.semicolon()}function maybePrintDecoratorsBeforeExport(e,t){if(i(t.declaration)&&e._shouldPrintDecoratorsBeforeExport(t)){e.printJoin(t.declaration.decorators)}}function ExportNamedDeclaration(e){maybePrintDecoratorsBeforeExport(this,e);this.word("export");this.space();if(e.declaration){const t=e.declaration;this.print(t);if(!p(t))this.semicolon()}else{if(e.exportKind==="type"){this.word("type");this.space()}const n=e.specifiers.slice(0);let s=false;for(;;){const e=n[0];if(a(e)||o(e)){s=true;this.print(n.shift());if(n.length){this.tokenChar(44);this.space()}}else{break}}let i=false;if(n.length||!n.length&&!s){i=true;this.tokenChar(123);if(n.length){this.space();this.printList(n,this.shouldPrintTrailingComma("}"));this.space()}this.tokenChar(125)}if(e.source){var t,r;this.space();this.word("from");this.space();if((t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length){this.print(e.source,true);this.space();this._printAttributes(e,i)}else{this.print(e.source)}}this.semicolon()}}function ExportDefaultDeclaration(e){maybePrintDecoratorsBeforeExport(this,e);this.word("export");this.noIndentInnerCommentsHere();this.space();this.word("default");this.space();this.tokenContext|=s.TokenContext.exportDefault;const t=e.declaration;this.print(t);if(!p(t))this.semicolon()}function ImportDeclaration(e){var t,r;this.word("import");this.space();const n=e.importKind==="type"||e.importKind==="typeof";if(n){this.noIndentInnerCommentsHere();this.word(e.importKind);this.space()}else if(e.module){this.noIndentInnerCommentsHere();this.word("module");this.space()}else if(e.phase){this.noIndentInnerCommentsHere();this.word(e.phase);this.space()}const s=e.specifiers.slice(0);const i=!!s.length;while(i){const e=s[0];if(l(e)||c(e)){this.print(s.shift());if(s.length){this.tokenChar(44);this.space()}}else{break}}let a=false;if(s.length){a=true;this.tokenChar(123);this.space();this.printList(s,this.shouldPrintTrailingComma("}"));this.space();this.tokenChar(125)}else if(n&&!i){a=true;this.tokenChar(123);this.tokenChar(125)}if(i||n){this.space();this.word("from");this.space()}if((t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length){this.print(e.source,true);this.space();this._printAttributes(e,a)}else{this.print(e.source)}this.semicolon()}function ImportAttribute(e){this.print(e.key);this.tokenChar(58);this.space();this.print(e.value)}function ImportNamespaceSpecifier(e){this.tokenChar(42);this.space();this.word("as");this.space();this.print(e.local)}function ImportExpression(e){this.word("import");if(e.phase){this.tokenChar(46);this.word(e.phase)}this.tokenChar(40);this.print(e.source);if(e.options!=null){this.tokenChar(44);this.space();this.print(e.options)}this.tokenChar(41)}},9213:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BreakStatement=BreakStatement;t.CatchClause=CatchClause;t.ContinueStatement=ContinueStatement;t.DebuggerStatement=DebuggerStatement;t.DoWhileStatement=DoWhileStatement;t.ForOfStatement=t.ForInStatement=void 0;t.ForStatement=ForStatement;t.IfStatement=IfStatement;t.LabeledStatement=LabeledStatement;t.ReturnStatement=ReturnStatement;t.SwitchCase=SwitchCase;t.SwitchStatement=SwitchStatement;t.ThrowStatement=ThrowStatement;t.TryStatement=TryStatement;t.VariableDeclaration=VariableDeclaration;t.VariableDeclarator=VariableDeclarator;t.WhileStatement=WhileStatement;t.WithStatement=WithStatement;var n=r(3061);var s=r(8694);const{isFor:i,isForStatement:a,isIfStatement:o,isStatement:l}=n;function WithStatement(e){this.word("with");this.space();this.tokenChar(40);this.print(e.object);this.tokenChar(41);this.printBlock(e)}function IfStatement(e){this.word("if");this.space();this.tokenChar(40);this.print(e.test);this.tokenChar(41);this.space();const t=e.alternate&&o(getLastStatement(e.consequent));if(t){this.tokenChar(123);this.newline();this.indent()}this.printAndIndentOnComments(e.consequent);if(t){this.dedent();this.newline();this.tokenChar(125)}if(e.alternate){if(this.endsWith(125))this.space();this.word("else");this.space();this.printAndIndentOnComments(e.alternate)}}function getLastStatement(e){const{body:t}=e;if(l(t)===false){return e}return getLastStatement(t)}function ForStatement(e){this.word("for");this.space();this.tokenChar(40);{const t=this.enterForStatementInit();this.tokenContext|=s.TokenContext.forHead;this.print(e.init);t()}this.tokenChar(59);if(e.test){this.space();this.print(e.test)}this.token(";",false,1);if(e.update){this.space();this.print(e.update)}this.tokenChar(41);this.printBlock(e)}function WhileStatement(e){this.word("while");this.space();this.tokenChar(40);this.print(e.test);this.tokenChar(41);this.printBlock(e)}function ForXStatement(e){this.word("for");this.space();const t=e.type==="ForOfStatement";if(t&&e.await){this.word("await");this.space()}this.noIndentInnerCommentsHere();this.tokenChar(40);{const r=t?null:this.enterForStatementInit();this.tokenContext|=t?s.TokenContext.forOfHead:s.TokenContext.forInHead;this.print(e.left);r==null||r()}this.space();this.word(t?"of":"in");this.space();this.print(e.right);this.tokenChar(41);this.printBlock(e)}const c=t.ForInStatement=ForXStatement;const p=t.ForOfStatement=ForXStatement;function DoWhileStatement(e){this.word("do");this.space();this.print(e.body);this.space();this.word("while");this.space();this.tokenChar(40);this.print(e.test);this.tokenChar(41);this.semicolon()}function printStatementAfterKeyword(e,t){if(t){e.space();e.printTerminatorless(t)}e.semicolon()}function BreakStatement(e){this.word("break");printStatementAfterKeyword(this,e.label)}function ContinueStatement(e){this.word("continue");printStatementAfterKeyword(this,e.label)}function ReturnStatement(e){this.word("return");printStatementAfterKeyword(this,e.argument)}function ThrowStatement(e){this.word("throw");printStatementAfterKeyword(this,e.argument)}function LabeledStatement(e){this.print(e.label);this.tokenChar(58);this.space();this.print(e.body)}function TryStatement(e){this.word("try");this.space();this.print(e.block);this.space();if(e.handlers){this.print(e.handlers[0])}else{this.print(e.handler)}if(e.finalizer){this.space();this.word("finally");this.space();this.print(e.finalizer)}}function CatchClause(e){this.word("catch");this.space();if(e.param){this.tokenChar(40);this.print(e.param);this.print(e.param.typeAnnotation);this.tokenChar(41);this.space()}this.print(e.body)}function SwitchStatement(e){this.word("switch");this.space();this.tokenChar(40);this.print(e.discriminant);this.tokenChar(41);this.space();this.tokenChar(123);this.printSequence(e.cases,true,undefined,(function addNewlines(t,r){if(!t&&e.cases[e.cases.length-1]===r)return-1}));this.rightBrace(e)}function SwitchCase(e){if(e.test){this.word("case");this.space();this.print(e.test);this.tokenChar(58)}else{this.word("default");this.tokenChar(58)}if(e.consequent.length){this.newline();this.printSequence(e.consequent,true)}}function DebuggerStatement(){this.word("debugger");this.semicolon()}function VariableDeclaration(e,t){if(e.declare){this.word("declare");this.space()}const{kind:r}=e;if(r==="await using"){this.word("await");this.space();this.word("using",true)}else{this.word(r,r==="using")}this.space();let n=false;if(!i(t)){for(const t of e.declarations){if(t.init){n=true}}}this.printList(e.declarations,undefined,undefined,e.declarations.length>1,n?function(e){this.token(",",false,e);this.newline()}:undefined);if(i(t)){if(a(t)){if(t.init===e)return}else{if(t.left===e)return}}this.semicolon()}function VariableDeclarator(e){this.print(e.id);if(e.definite)this.tokenChar(33);this.print(e.id.typeAnnotation);if(e.init){this.space();this.tokenChar(61);this.space();this.print(e.init)}}},6826:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TaggedTemplateExpression=TaggedTemplateExpression;t.TemplateElement=TemplateElement;t.TemplateLiteral=TemplateLiteral;t._printTemplate=_printTemplate;function TaggedTemplateExpression(e){this.print(e.tag);{this.print(e.typeParameters)}this.print(e.quasi)}function TemplateElement(){throw new Error("TemplateElement printing is handled in TemplateLiteral")}function _printTemplate(e,t){const r=e.quasis;let n="`";for(let s=0;s<r.length-1;s++){n+=r[s].value.raw;this.token(n+"${",true);this.print(t[s]);n="}";if(this.tokenMap){const t=this.tokenMap.findMatching(e,"}",s);if(t)this._catchUpTo(t.loc.start)}}n+=r[r.length-1].value.raw;this.token(n+"`",true)}function TemplateLiteral(e){this._printTemplate(e,e.expressions)}},7154:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ArgumentPlaceholder=ArgumentPlaceholder;t.ArrayPattern=t.ArrayExpression=ArrayExpression;t.BigIntLiteral=BigIntLiteral;t.BooleanLiteral=BooleanLiteral;t.Identifier=Identifier;t.NullLiteral=NullLiteral;t.NumericLiteral=NumericLiteral;t.ObjectPattern=t.ObjectExpression=ObjectExpression;t.ObjectMethod=ObjectMethod;t.ObjectProperty=ObjectProperty;t.PipelineBareFunction=PipelineBareFunction;t.PipelinePrimaryTopicReference=PipelinePrimaryTopicReference;t.PipelineTopicExpression=PipelineTopicExpression;t.RecordExpression=RecordExpression;t.RegExpLiteral=RegExpLiteral;t.SpreadElement=t.RestElement=RestElement;t.StringLiteral=StringLiteral;t.TopicReference=TopicReference;t.TupleExpression=TupleExpression;t._getRawIdentifier=_getRawIdentifier;var n=r(3061);var s=r(4849);const{isAssignmentPattern:i,isIdentifier:a}=n;let o=null;let l="";function _getRawIdentifier(e){if(e===o)return l;o=e;const{name:t}=e;const r=this.tokenMap.find(e,(e=>e.value===t));if(r){l=this._originalCode.slice(r.start,r.end);return l}return l=e.name}function Identifier(e){var t;this.sourceIdentifierName(((t=e.loc)==null?void 0:t.identifierName)||e.name);this.word(this.tokenMap?this._getRawIdentifier(e):e.name)}function ArgumentPlaceholder(){this.tokenChar(63)}function RestElement(e){this.token("...");this.print(e.argument)}function ObjectExpression(e){const t=e.properties;this.tokenChar(123);if(t.length){const e=this.enterDelimited();this.space();this.printList(t,this.shouldPrintTrailingComma("}"),true,true);this.space();e()}this.sourceWithOffset("end",e.loc,-1);this.tokenChar(125)}function ObjectMethod(e){this.printJoin(e.decorators);this._methodHead(e);this.space();this.print(e.body)}function ObjectProperty(e){this.printJoin(e.decorators);if(e.computed){this.tokenChar(91);this.print(e.key);this.tokenChar(93)}else{if(i(e.value)&&a(e.key)&&e.key.name===e.value.left.name){this.print(e.value);return}this.print(e.key);if(e.shorthand&&a(e.key)&&a(e.value)&&e.key.name===e.value.name){return}}this.tokenChar(58);this.space();this.print(e.value)}function ArrayExpression(e){const t=e.elements;const r=t.length;this.tokenChar(91);const n=this.enterDelimited();for(let e=0;e<t.length;e++){const n=t[e];if(n){if(e>0)this.space();this.print(n);if(e<r-1||this.shouldPrintTrailingComma("]")){this.token(",",false,e)}}else{this.token(",",false,e)}}n();this.tokenChar(93)}function RecordExpression(e){const t=e.properties;let r;let n;{if(this.format.recordAndTupleSyntaxType==="bar"){r="{|";n="|}"}else if(this.format.recordAndTupleSyntaxType!=="hash"&&this.format.recordAndTupleSyntaxType!=null){throw new Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`)}else{r="#{";n="}"}}this.token(r);if(t.length){this.space();this.printList(t,this.shouldPrintTrailingComma(n),true,true);this.space()}this.token(n)}function TupleExpression(e){const t=e.elements;const r=t.length;let n;let s;{if(this.format.recordAndTupleSyntaxType==="bar"){n="[|";s="|]"}else if(this.format.recordAndTupleSyntaxType==="hash"){n="#[";s="]"}else{throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`)}}this.token(n);for(let e=0;e<t.length;e++){const n=t[e];if(n){if(e>0)this.space();this.print(n);if(e<r-1||this.shouldPrintTrailingComma(s)){this.token(",",false,e)}}}this.token(s)}function RegExpLiteral(e){this.word(`/${e.pattern}/${e.flags}`)}function BooleanLiteral(e){this.word(e.value?"true":"false")}function NullLiteral(){this.word("null")}function NumericLiteral(e){const t=this.getPossibleRaw(e);const r=this.format.jsescOption;const n=e.value;const i=n+"";if(r.numbers){this.number(s(n,r),n)}else if(t==null){this.number(i,n)}else if(this.format.minified){this.number(t.length<i.length?t:i,n)}else{this.number(t,n)}}function StringLiteral(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&t!==undefined){this.token(t);return}const r=s(e.value,this.format.jsescOption);this.token(r)}function BigIntLiteral(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&t!==undefined){this.word(t);return}this.word(e.value+"n")}const c=new Set(["^^","@@","^","%","#"]);function TopicReference(){const{topicToken:e}=this.format;if(c.has(e)){this.token(e)}else{const t=JSON.stringify(e);const r=Array.from(c,(e=>JSON.stringify(e)));throw new Error(`The "topicToken" generator option must be one of `+`${r.join(", ")} (${t} received instead).`)}}function PipelineTopicExpression(e){this.print(e.expression)}function PipelineBareFunction(e){this.print(e.callee)}function PipelinePrimaryTopicReference(){this.tokenChar(35)}},7544:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TSAnyKeyword=TSAnyKeyword;t.TSArrayType=TSArrayType;t.TSSatisfiesExpression=t.TSAsExpression=TSTypeExpression;t.TSBigIntKeyword=TSBigIntKeyword;t.TSBooleanKeyword=TSBooleanKeyword;t.TSCallSignatureDeclaration=TSCallSignatureDeclaration;t.TSInterfaceHeritage=t.TSClassImplements=TSClassImplements;t.TSConditionalType=TSConditionalType;t.TSConstructSignatureDeclaration=TSConstructSignatureDeclaration;t.TSConstructorType=TSConstructorType;t.TSDeclareFunction=TSDeclareFunction;t.TSDeclareMethod=TSDeclareMethod;t.TSEnumBody=TSEnumBody;t.TSEnumDeclaration=TSEnumDeclaration;t.TSEnumMember=TSEnumMember;t.TSExportAssignment=TSExportAssignment;t.TSExternalModuleReference=TSExternalModuleReference;t.TSFunctionType=TSFunctionType;t.TSImportEqualsDeclaration=TSImportEqualsDeclaration;t.TSImportType=TSImportType;t.TSIndexSignature=TSIndexSignature;t.TSIndexedAccessType=TSIndexedAccessType;t.TSInferType=TSInferType;t.TSInstantiationExpression=TSInstantiationExpression;t.TSInterfaceBody=TSInterfaceBody;t.TSInterfaceDeclaration=TSInterfaceDeclaration;t.TSIntersectionType=TSIntersectionType;t.TSIntrinsicKeyword=TSIntrinsicKeyword;t.TSLiteralType=TSLiteralType;t.TSMappedType=TSMappedType;t.TSMethodSignature=TSMethodSignature;t.TSModuleBlock=TSModuleBlock;t.TSModuleDeclaration=TSModuleDeclaration;t.TSNamedTupleMember=TSNamedTupleMember;t.TSNamespaceExportDeclaration=TSNamespaceExportDeclaration;t.TSNeverKeyword=TSNeverKeyword;t.TSNonNullExpression=TSNonNullExpression;t.TSNullKeyword=TSNullKeyword;t.TSNumberKeyword=TSNumberKeyword;t.TSObjectKeyword=TSObjectKeyword;t.TSOptionalType=TSOptionalType;t.TSParameterProperty=TSParameterProperty;t.TSParenthesizedType=TSParenthesizedType;t.TSPropertySignature=TSPropertySignature;t.TSQualifiedName=TSQualifiedName;t.TSRestType=TSRestType;t.TSStringKeyword=TSStringKeyword;t.TSSymbolKeyword=TSSymbolKeyword;t.TSTemplateLiteralType=TSTemplateLiteralType;t.TSThisType=TSThisType;t.TSTupleType=TSTupleType;t.TSTypeAliasDeclaration=TSTypeAliasDeclaration;t.TSTypeAnnotation=TSTypeAnnotation;t.TSTypeAssertion=TSTypeAssertion;t.TSTypeLiteral=TSTypeLiteral;t.TSTypeOperator=TSTypeOperator;t.TSTypeParameter=TSTypeParameter;t.TSTypeParameterDeclaration=t.TSTypeParameterInstantiation=TSTypeParameterInstantiation;t.TSTypePredicate=TSTypePredicate;t.TSTypeQuery=TSTypeQuery;t.TSTypeReference=TSTypeReference;t.TSUndefinedKeyword=TSUndefinedKeyword;t.TSUnionType=TSUnionType;t.TSUnknownKeyword=TSUnknownKeyword;t.TSVoidKeyword=TSVoidKeyword;t.tsPrintClassMemberModifiers=tsPrintClassMemberModifiers;t.tsPrintFunctionOrConstructorType=tsPrintFunctionOrConstructorType;t.tsPrintPropertyOrMethodName=tsPrintPropertyOrMethodName;t.tsPrintSignatureDeclarationBase=tsPrintSignatureDeclarationBase;function TSTypeAnnotation(e,t){this.token((t.type==="TSFunctionType"||t.type==="TSConstructorType")&&t.typeAnnotation===e?"=>":":");this.space();if(e.optional)this.tokenChar(63);this.print(e.typeAnnotation)}function TSTypeParameterInstantiation(e,t){this.tokenChar(60);let r=t.type==="ArrowFunctionExpression"&&e.params.length===1;if(this.tokenMap&&e.start!=null&&e.end!=null){r&&(r=!!this.tokenMap.find(e,(e=>this.tokenMap.matchesOriginal(e,","))));r||(r=this.shouldPrintTrailingComma(">"))}this.printList(e.params,r);this.tokenChar(62)}function TSTypeParameter(e){if(e.in){this.word("in");this.space()}if(e.out){this.word("out");this.space()}this.word(e.name);if(e.constraint){this.space();this.word("extends");this.space();this.print(e.constraint)}if(e.default){this.space();this.tokenChar(61);this.space();this.print(e.default)}}function TSParameterProperty(e){if(e.accessibility){this.word(e.accessibility);this.space()}if(e.readonly){this.word("readonly");this.space()}this._param(e.parameter)}function TSDeclareFunction(e,t){if(e.declare){this.word("declare");this.space()}this._functionHead(e,t);this.semicolon()}function TSDeclareMethod(e){this._classMethodHead(e);this.semicolon()}function TSQualifiedName(e){this.print(e.left);this.tokenChar(46);this.print(e.right)}function TSCallSignatureDeclaration(e){this.tsPrintSignatureDeclarationBase(e);maybePrintTrailingCommaOrSemicolon(this,e)}function maybePrintTrailingCommaOrSemicolon(e,t){if(!e.tokenMap||!t.start||!t.end){e.semicolon();return}if(e.tokenMap.endMatches(t,",")){e.token(",")}else if(e.tokenMap.endMatches(t,";")){e.semicolon()}}function TSConstructSignatureDeclaration(e){this.word("new");this.space();this.tsPrintSignatureDeclarationBase(e);maybePrintTrailingCommaOrSemicolon(this,e)}function TSPropertySignature(e){const{readonly:t}=e;if(t){this.word("readonly");this.space()}this.tsPrintPropertyOrMethodName(e);this.print(e.typeAnnotation);maybePrintTrailingCommaOrSemicolon(this,e)}function tsPrintPropertyOrMethodName(e){if(e.computed){this.tokenChar(91)}this.print(e.key);if(e.computed){this.tokenChar(93)}if(e.optional){this.tokenChar(63)}}function TSMethodSignature(e){const{kind:t}=e;if(t==="set"||t==="get"){this.word(t);this.space()}this.tsPrintPropertyOrMethodName(e);this.tsPrintSignatureDeclarationBase(e);maybePrintTrailingCommaOrSemicolon(this,e)}function TSIndexSignature(e){const{readonly:t,static:r}=e;if(r){this.word("static");this.space()}if(t){this.word("readonly");this.space()}this.tokenChar(91);this._parameters(e.parameters,"]");this.print(e.typeAnnotation);maybePrintTrailingCommaOrSemicolon(this,e)}function TSAnyKeyword(){this.word("any")}function TSBigIntKeyword(){this.word("bigint")}function TSUnknownKeyword(){this.word("unknown")}function TSNumberKeyword(){this.word("number")}function TSObjectKeyword(){this.word("object")}function TSBooleanKeyword(){this.word("boolean")}function TSStringKeyword(){this.word("string")}function TSSymbolKeyword(){this.word("symbol")}function TSVoidKeyword(){this.word("void")}function TSUndefinedKeyword(){this.word("undefined")}function TSNullKeyword(){this.word("null")}function TSNeverKeyword(){this.word("never")}function TSIntrinsicKeyword(){this.word("intrinsic")}function TSThisType(){this.word("this")}function TSFunctionType(e){this.tsPrintFunctionOrConstructorType(e)}function TSConstructorType(e){if(e.abstract){this.word("abstract");this.space()}this.word("new");this.space();this.tsPrintFunctionOrConstructorType(e)}function tsPrintFunctionOrConstructorType(e){const{typeParameters:t}=e;const r=e.parameters;this.print(t);this.tokenChar(40);this._parameters(r,")");this.space();const n=e.typeAnnotation;this.print(n)}function TSTypeReference(e){const t=e.typeParameters;this.print(e.typeName,!!t);this.print(t)}function TSTypePredicate(e){if(e.asserts){this.word("asserts");this.space()}this.print(e.parameterName);if(e.typeAnnotation){this.space();this.word("is");this.space();this.print(e.typeAnnotation.typeAnnotation)}}function TSTypeQuery(e){this.word("typeof");this.space();this.print(e.exprName);const t=e.typeParameters;if(t){this.print(t)}}function TSTypeLiteral(e){printBraced(this,e,(()=>this.printJoin(e.members,true,true)))}function TSArrayType(e){this.print(e.elementType,true);this.tokenChar(91);this.tokenChar(93)}function TSTupleType(e){this.tokenChar(91);this.printList(e.elementTypes,this.shouldPrintTrailingComma("]"));this.tokenChar(93)}function TSOptionalType(e){this.print(e.typeAnnotation);this.tokenChar(63)}function TSRestType(e){this.token("...");this.print(e.typeAnnotation)}function TSNamedTupleMember(e){this.print(e.label);if(e.optional)this.tokenChar(63);this.tokenChar(58);this.space();this.print(e.elementType)}function TSUnionType(e){tsPrintUnionOrIntersectionType(this,e,"|")}function TSIntersectionType(e){tsPrintUnionOrIntersectionType(this,e,"&")}function tsPrintUnionOrIntersectionType(e,t,r){var n;let s=0;if((n=e.tokenMap)!=null&&n.startMatches(t,r)){s=1;e.token(r)}e.printJoin(t.types,undefined,undefined,(function(e){this.space();this.token(r,null,e+s);this.space()}))}function TSConditionalType(e){this.print(e.checkType);this.space();this.word("extends");this.space();this.print(e.extendsType);this.space();this.tokenChar(63);this.space();this.print(e.trueType);this.space();this.tokenChar(58);this.space();this.print(e.falseType)}function TSInferType(e){this.word("infer");this.print(e.typeParameter)}function TSParenthesizedType(e){this.tokenChar(40);this.print(e.typeAnnotation);this.tokenChar(41)}function TSTypeOperator(e){this.word(e.operator);this.space();this.print(e.typeAnnotation)}function TSIndexedAccessType(e){this.print(e.objectType,true);this.tokenChar(91);this.print(e.indexType);this.tokenChar(93)}function TSMappedType(e){const{nameType:t,optional:r,readonly:n,typeAnnotation:s}=e;this.tokenChar(123);const i=this.enterDelimited();this.space();if(n){tokenIfPlusMinus(this,n);this.word("readonly");this.space()}this.tokenChar(91);{this.word(e.typeParameter.name)}this.space();this.word("in");this.space();{this.print(e.typeParameter.constraint)}if(t){this.space();this.word("as");this.space();this.print(t)}this.tokenChar(93);if(r){tokenIfPlusMinus(this,r);this.tokenChar(63)}if(s){this.tokenChar(58);this.space();this.print(s)}this.space();i();this.tokenChar(125)}function tokenIfPlusMinus(e,t){if(t!==true){e.token(t)}}function TSTemplateLiteralType(e){this._printTemplate(e,e.types)}function TSLiteralType(e){this.print(e.literal)}function TSClassImplements(e){this.print(e.expression);this.print(e.typeArguments)}function TSInterfaceDeclaration(e){const{declare:t,id:r,typeParameters:n,extends:s,body:i}=e;if(t){this.word("declare");this.space()}this.word("interface");this.space();this.print(r);this.print(n);if(s!=null&&s.length){this.space();this.word("extends");this.space();this.printList(s)}this.space();this.print(i)}function TSInterfaceBody(e){printBraced(this,e,(()=>this.printJoin(e.body,true,true)))}function TSTypeAliasDeclaration(e){const{declare:t,id:r,typeParameters:n,typeAnnotation:s}=e;if(t){this.word("declare");this.space()}this.word("type");this.space();this.print(r);this.print(n);this.space();this.tokenChar(61);this.space();this.print(s);this.semicolon()}function TSTypeExpression(e){const{type:t,expression:r,typeAnnotation:n}=e;this.print(r,true);this.space();this.word(t==="TSAsExpression"?"as":"satisfies");this.space();this.print(n)}function TSTypeAssertion(e){const{typeAnnotation:t,expression:r}=e;this.tokenChar(60);this.print(t);this.tokenChar(62);this.space();this.print(r)}function TSInstantiationExpression(e){this.print(e.expression);{this.print(e.typeParameters)}}function TSEnumDeclaration(e){const{declare:t,const:r,id:n}=e;if(t){this.word("declare");this.space()}if(r){this.word("const");this.space()}this.word("enum");this.space();this.print(n);this.space();{TSEnumBody.call(this,e)}}function TSEnumBody(e){printBraced(this,e,(()=>{var t;return this.printList(e.members,(t=this.shouldPrintTrailingComma("}"))!=null?t:true,true,true)}))}function TSEnumMember(e){const{id:t,initializer:r}=e;this.print(t);if(r){this.space();this.tokenChar(61);this.space();this.print(r)}}function TSModuleDeclaration(e){const{declare:t,id:r,kind:n}=e;if(t){this.word("declare");this.space()}{if(!e.global){this.word(n!=null?n:r.type==="Identifier"?"namespace":"module");this.space()}this.print(r);if(!e.body){this.semicolon();return}let t=e.body;while(t.type==="TSModuleDeclaration"){this.tokenChar(46);this.print(t.id);t=t.body}this.space();this.print(t)}}function TSModuleBlock(e){printBraced(this,e,(()=>this.printSequence(e.body,true)))}function TSImportType(e){const{argument:t,qualifier:r,options:n}=e;this.word("import");this.tokenChar(40);this.print(t);if(n){this.tokenChar(44);this.print(n)}this.tokenChar(41);if(r){this.tokenChar(46);this.print(r)}const s=e.typeParameters;if(s){this.print(s)}}function TSImportEqualsDeclaration(e){const{id:t,moduleReference:r}=e;if(e.isExport){this.word("export");this.space()}this.word("import");this.space();this.print(t);this.space();this.tokenChar(61);this.space();this.print(r);this.semicolon()}function TSExternalModuleReference(e){this.token("require(");this.print(e.expression);this.tokenChar(41)}function TSNonNullExpression(e){this.print(e.expression);this.tokenChar(33)}function TSExportAssignment(e){this.word("export");this.space();this.tokenChar(61);this.space();this.print(e.expression);this.semicolon()}function TSNamespaceExportDeclaration(e){this.word("export");this.space();this.word("as");this.space();this.word("namespace");this.space();this.print(e.id);this.semicolon()}function tsPrintSignatureDeclarationBase(e){const{typeParameters:t}=e;const r=e.parameters;this.print(t);this.tokenChar(40);this._parameters(r,")");const n=e.typeAnnotation;this.print(n)}function tsPrintClassMemberModifiers(e){const t=e.type==="ClassPrivateProperty";const r=e.type==="ClassAccessorProperty"||e.type==="ClassProperty";printModifiersList(this,e,[r&&e.declare&&"declare",!t&&e.accessibility]);if(e.static){this.word("static");this.space()}printModifiersList(this,e,[!t&&e.abstract&&"abstract",!t&&e.override&&"override",(r||t)&&e.readonly&&"readonly"])}function printBraced(e,t,r){e.token("{");const n=e.enterDelimited();r();n();e.rightBrace(t)}function printModifiersList(e,t,r){var n;const s=new Set;for(const e of r){if(e)s.add(e)}(n=e.tokenMap)==null||n.find(t,(t=>{if(s.has(t.value)){e.token(t.value);e.space();s.delete(t.value);return s.size===0}}));for(const t of s){e.word(t);e.space()}}},1605:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;t.generate=generate;var n=r(3852);var s=r(1896);function normalizeOptions(e,t,r){if(t.experimental_preserveFormat){if(typeof e!=="string"){throw new Error("`experimental_preserveFormat` requires the original `code` to be passed to @babel/generator as a string")}if(!t.retainLines){throw new Error("`experimental_preserveFormat` requires `retainLines` to be set to `true`")}if(t.compact&&t.compact!=="auto"){throw new Error("`experimental_preserveFormat` is not compatible with the `compact` option")}if(t.minified){throw new Error("`experimental_preserveFormat` is not compatible with the `minified` option")}if(t.jsescOption){throw new Error("`experimental_preserveFormat` is not compatible with the `jsescOption` option")}if(!Array.isArray(r.tokens)){throw new Error("`experimental_preserveFormat` requires the AST to have attatched the token of the input code. Make sure to enable the `tokens: true` parser option.")}}const n={auxiliaryCommentBefore:t.auxiliaryCommentBefore,auxiliaryCommentAfter:t.auxiliaryCommentAfter,shouldPrintComment:t.shouldPrintComment,preserveFormat:t.experimental_preserveFormat,retainLines:t.retainLines,retainFunctionParens:t.retainFunctionParens,comments:t.comments==null||t.comments,compact:t.compact,minified:t.minified,concise:t.concise,indent:{adjustMultilineComment:true,style:" "},jsescOption:Object.assign({quotes:"double",wrap:true,minimal:false},t.jsescOption),topicToken:t.topicToken,importAttributesKeyword:t.importAttributesKeyword};{var s;n.decoratorsBeforeExport=t.decoratorsBeforeExport;n.jsescOption.json=t.jsonCompatibleStrings;n.recordAndTupleSyntaxType=(s=t.recordAndTupleSyntaxType)!=null?s:"hash"}if(n.minified){n.compact=true;n.shouldPrintComment=n.shouldPrintComment||(()=>n.comments)}else{n.shouldPrintComment=n.shouldPrintComment||(e=>n.comments||e.includes("@license")||e.includes("@preserve"))}if(n.compact==="auto"){n.compact=typeof e==="string"&&e.length>5e5;if(n.compact){console.error("[BABEL] Note: The code generator has deoptimised the styling of "+`${t.filename} as it exceeds the max of ${"500KB"}.`)}}if(n.compact||n.preserveFormat){n.indent.adjustMultilineComment=false}const{auxiliaryCommentBefore:i,auxiliaryCommentAfter:a,shouldPrintComment:o}=n;if(i&&!o(i)){n.auxiliaryCommentBefore=undefined}if(a&&!o(a)){n.auxiliaryCommentAfter=undefined}return n}{t.CodeGenerator=class CodeGenerator{constructor(e,t={},r){this._ast=void 0;this._format=void 0;this._map=void 0;this._ast=e;this._format=normalizeOptions(r,t,e);this._map=t.sourceMaps?new n.default(t,r):null}generate(){const e=new s.default(this._format,this._map);return e.generate(this._ast)}}}function generate(e,t={},r){const i=normalizeOptions(r,t,e);const a=t.sourceMaps?new n.default(t,r):null;const o=new s.default(i,a,e.tokens,typeof r==="string"?r:null);return o.generate(e)}var i=t["default"]=generate},8694:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TokenContext=void 0;t.isLastChild=isLastChild;t.needsParens=needsParens;t.needsWhitespace=needsWhitespace;t.needsWhitespaceAfter=needsWhitespaceAfter;t.needsWhitespaceBefore=needsWhitespaceBefore;var n=r(3232);var s=r(1818);var i=r(3061);const{FLIPPED_ALIAS_KEYS:a,VISITOR_KEYS:o,isCallExpression:l,isDecorator:c,isExpressionStatement:p,isMemberExpression:u,isNewExpression:d,isParenthesizedExpression:f}=i;const h=t.TokenContext={expressionStatement:1,arrowBody:2,exportDefault:4,forHead:8,forInHead:16,forOfHead:32,arrowFlowReturnType:64};function expandAliases(e){const t=new Map;function add(e,r){const n=t.get(e);t.set(e,n?function(e,t,s,i,a){var o;return(o=n(e,t,s,i,a))!=null?o:r(e,t,s,i,a)}:r)}for(const t of Object.keys(e)){const r=a[t];if(r){for(const n of r){add(n,e[t])}}else{add(t,e[t])}}return t}const m=expandAliases(s);const y=expandAliases(n.nodes);function isOrHasCallExpression(e){if(l(e)){return true}return u(e)&&isOrHasCallExpression(e.object)}function needsWhitespace(e,t,r){var n;if(!e)return false;if(p(e)){e=e.expression}const s=(n=y.get(e.type))==null?void 0:n(e,t);if(typeof s==="number"){return(s&r)!==0}return false}function needsWhitespaceBefore(e,t){return needsWhitespace(e,t,1)}function needsWhitespaceAfter(e,t){return needsWhitespace(e,t,2)}function needsParens(e,t,r,n,s){var i;if(!t)return false;if(d(t)&&t.callee===e){if(isOrHasCallExpression(e))return true}if(c(t)){return!isDecoratorMemberExpression(e)&&!(l(e)&&isDecoratorMemberExpression(e.callee))&&!f(e)}return(i=m.get(e.type))==null?void 0:i(e,t,r,n,s)}function isDecoratorMemberExpression(e){switch(e.type){case"Identifier":return true;case"MemberExpression":return!e.computed&&e.property.type==="Identifier"&&isDecoratorMemberExpression(e.object);default:return false}}function isLastChild(e,t){const r=o[e.type];for(let n=r.length-1;n>=0;n--){const s=e[r[n]];if(s===t){return true}else if(Array.isArray(s)){let e=s.length-1;while(e>=0&&s[e]===null)e--;return e>=0&&s[e]===t}else if(s){return false}}return false}},1818:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AssignmentExpression=AssignmentExpression;t.Binary=Binary;t.BinaryExpression=BinaryExpression;t.ClassExpression=ClassExpression;t.ArrowFunctionExpression=t.ConditionalExpression=ConditionalExpression;t.DoExpression=DoExpression;t.FunctionExpression=FunctionExpression;t.FunctionTypeAnnotation=FunctionTypeAnnotation;t.Identifier=Identifier;t.LogicalExpression=LogicalExpression;t.NullableTypeAnnotation=NullableTypeAnnotation;t.ObjectExpression=ObjectExpression;t.OptionalIndexedAccessType=OptionalIndexedAccessType;t.OptionalCallExpression=t.OptionalMemberExpression=OptionalMemberExpression;t.SequenceExpression=SequenceExpression;t.TSSatisfiesExpression=t.TSAsExpression=TSAsExpression;t.TSConditionalType=TSConditionalType;t.TSConstructorType=t.TSFunctionType=TSFunctionType;t.TSInferType=TSInferType;t.TSInstantiationExpression=TSInstantiationExpression;t.TSIntersectionType=TSIntersectionType;t.UnaryLike=t.TSTypeAssertion=UnaryLike;t.TSTypeOperator=TSTypeOperator;t.TSUnionType=TSUnionType;t.IntersectionTypeAnnotation=t.UnionTypeAnnotation=UnionTypeAnnotation;t.UpdateExpression=UpdateExpression;t.AwaitExpression=t.YieldExpression=YieldExpression;var n=r(3061);var s=r(8694);const{isArrayTypeAnnotation:i,isBinaryExpression:a,isCallExpression:o,isForOfStatement:l,isIndexedAccessType:c,isMemberExpression:p,isObjectPattern:u,isOptionalMemberExpression:d,isYieldExpression:f,isStatement:h}=n;const m=new Map([["||",0],["??",0],["|>",0],["&&",1],["|",2],["^",3],["&",4],["==",5],["===",5],["!=",5],["!==",5],["<",6],[">",6],["<=",6],[">=",6],["in",6],["instanceof",6],[">>",7],["<<",7],[">>>",7],["+",8],["-",8],["*",9],["/",9],["%",9],["**",10]]);function getBinaryPrecedence(e,t){if(t==="BinaryExpression"||t==="LogicalExpression"){return m.get(e.operator)}if(t==="TSAsExpression"||t==="TSSatisfiesExpression"){return m.get("in")}}function isTSTypeExpression(e){return e==="TSAsExpression"||e==="TSSatisfiesExpression"||e==="TSTypeAssertion"}const isClassExtendsClause=(e,t)=>{const r=t.type;return(r==="ClassDeclaration"||r==="ClassExpression")&&t.superClass===e};const hasPostfixPart=(e,t)=>{const r=t.type;return(r==="MemberExpression"||r==="OptionalMemberExpression")&&t.object===e||(r==="CallExpression"||r==="OptionalCallExpression"||r==="NewExpression")&&t.callee===e||r==="TaggedTemplateExpression"&&t.tag===e||r==="TSNonNullExpression"};function NullableTypeAnnotation(e,t){return i(t)}function FunctionTypeAnnotation(e,t,r){const n=t.type;return n==="UnionTypeAnnotation"||n==="IntersectionTypeAnnotation"||n==="ArrayTypeAnnotation"||Boolean(r&s.TokenContext.arrowFlowReturnType)}function UpdateExpression(e,t){return hasPostfixPart(e,t)||isClassExtendsClause(e,t)}function needsParenBeforeExpressionBrace(e){return Boolean(e&(s.TokenContext.expressionStatement|s.TokenContext.arrowBody))}function ObjectExpression(e,t,r){return needsParenBeforeExpressionBrace(r)}function DoExpression(e,t,r){return!e.async&&Boolean(r&s.TokenContext.expressionStatement)}function Binary(e,t){const r=t.type;if(e.type==="BinaryExpression"&&e.operator==="**"&&r==="BinaryExpression"&&t.operator==="**"){return t.left===e}if(isClassExtendsClause(e,t)){return true}if(hasPostfixPart(e,t)||r==="UnaryExpression"||r==="SpreadElement"||r==="AwaitExpression"){return true}const n=getBinaryPrecedence(t,r);if(n!=null){const s=getBinaryPrecedence(e,e.type);if(n===s&&r==="BinaryExpression"&&t.right===e||n>s){return true}}return undefined}function UnionTypeAnnotation(e,t){const r=t.type;return r==="ArrayTypeAnnotation"||r==="NullableTypeAnnotation"||r==="IntersectionTypeAnnotation"||r==="UnionTypeAnnotation"}function OptionalIndexedAccessType(e,t){return c(t)&&t.objectType===e}function TSAsExpression(e,t){if((t.type==="AssignmentExpression"||t.type==="AssignmentPattern")&&t.left===e){return true}if(t.type==="BinaryExpression"&&(t.operator==="|"||t.operator==="&")&&e===t.left){return true}return Binary(e,t)}function TSConditionalType(e,t){const r=t.type;if(r==="TSArrayType"||r==="TSIndexedAccessType"&&t.objectType===e||r==="TSOptionalType"||r==="TSTypeOperator"||r==="TSTypeParameter"){return true}if((r==="TSIntersectionType"||r==="TSUnionType")&&t.types[0]===e){return true}if(r==="TSConditionalType"&&(t.checkType===e||t.extendsType===e)){return true}return false}function TSUnionType(e,t){const r=t.type;return r==="TSIntersectionType"||r==="TSTypeOperator"||r==="TSArrayType"||r==="TSIndexedAccessType"&&t.objectType===e||r==="TSOptionalType"}function TSIntersectionType(e,t){const r=t.type;return r==="TSTypeOperator"||r==="TSArrayType"||r==="TSIndexedAccessType"&&t.objectType===e||r==="TSOptionalType"}function TSInferType(e,t){const r=t.type;if(r==="TSArrayType"||r==="TSIndexedAccessType"&&t.objectType===e||r==="TSOptionalType"){return true}if(e.typeParameter.constraint){if((r==="TSIntersectionType"||r==="TSUnionType")&&t.types[0]===e){return true}}return false}function TSTypeOperator(e,t){const r=t.type;return r==="TSArrayType"||r==="TSIndexedAccessType"&&t.objectType===e||r==="TSOptionalType"}function TSInstantiationExpression(e,t){const r=t.type;return(r==="CallExpression"||r==="OptionalCallExpression"||r==="NewExpression"||r==="TSInstantiationExpression")&&!!t.typeParameters}function TSFunctionType(e,t){const r=t.type;return r==="TSIntersectionType"||r==="TSUnionType"||r==="TSTypeOperator"||r==="TSOptionalType"||r==="TSArrayType"||r==="TSIndexedAccessType"&&t.objectType===e||r==="TSConditionalType"&&(t.checkType===e||t.extendsType===e)}function BinaryExpression(e,t,r,n){return e.operator==="in"&&n}function SequenceExpression(e,t){const r=t.type;if(r==="SequenceExpression"||r==="ParenthesizedExpression"||r==="MemberExpression"&&t.property===e||r==="OptionalMemberExpression"&&t.property===e||r==="TemplateLiteral"){return false}if(r==="ClassDeclaration"){return true}if(r==="ForOfStatement"){return t.right===e}if(r==="ExportDefaultDeclaration"){return true}return!h(t)}function YieldExpression(e,t){const r=t.type;return r==="BinaryExpression"||r==="LogicalExpression"||r==="UnaryExpression"||r==="SpreadElement"||hasPostfixPart(e,t)||r==="AwaitExpression"&&f(e)||r==="ConditionalExpression"&&e===t.test||isClassExtendsClause(e,t)||isTSTypeExpression(r)}function ClassExpression(e,t,r){return Boolean(r&(s.TokenContext.expressionStatement|s.TokenContext.exportDefault))}function UnaryLike(e,t){return hasPostfixPart(e,t)||a(t)&&t.operator==="**"&&t.left===e||isClassExtendsClause(e,t)}function FunctionExpression(e,t,r){return Boolean(r&(s.TokenContext.expressionStatement|s.TokenContext.exportDefault))}function ConditionalExpression(e,t){const r=t.type;if(r==="UnaryExpression"||r==="SpreadElement"||r==="BinaryExpression"||r==="LogicalExpression"||r==="ConditionalExpression"&&t.test===e||r==="AwaitExpression"||isTSTypeExpression(r)){return true}return UnaryLike(e,t)}function OptionalMemberExpression(e,t){return o(t)&&t.callee===e||p(t)&&t.object===e}function AssignmentExpression(e,t,r){if(needsParenBeforeExpressionBrace(r)&&u(e.left)){return true}else{return ConditionalExpression(e,t)}}function LogicalExpression(e,t){const r=t.type;if(isTSTypeExpression(r))return true;if(r!=="LogicalExpression")return false;switch(e.operator){case"||":return t.operator==="??"||t.operator==="&&";case"&&":return t.operator==="??";case"??":return t.operator!=="??"}}function Identifier(e,t,r,n,i){var a;const o=t.type;if((a=e.extra)!=null&&a.parenthesized&&o==="AssignmentExpression"&&t.left===e){const e=t.right.type;if((e==="FunctionExpression"||e==="ClassExpression")&&t.right.id==null){return true}}if(i&&i(e)!==e.name){return false}if(e.name==="let"){const n=p(t,{object:e,computed:true})||d(t,{object:e,computed:true,optional:false});if(n&&r&(s.TokenContext.expressionStatement|s.TokenContext.forHead|s.TokenContext.forInHead)){return true}return Boolean(r&s.TokenContext.forOfHead)}return e.name==="async"&&l(t,{left:e,await:false})}},3232:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.nodes=void 0;var n=r(3061);const{FLIPPED_ALIAS_KEYS:s,isArrayExpression:i,isAssignmentExpression:a,isBinary:o,isBlockStatement:l,isCallExpression:c,isFunction:p,isIdentifier:u,isLiteral:d,isMemberExpression:f,isObjectExpression:h,isOptionalCallExpression:m,isOptionalMemberExpression:y,isStringLiteral:g}=n;function crawlInternal(e,t){if(!e)return t;if(f(e)||y(e)){crawlInternal(e.object,t);if(e.computed)crawlInternal(e.property,t)}else if(o(e)||a(e)){crawlInternal(e.left,t);crawlInternal(e.right,t)}else if(c(e)||m(e)){t.hasCall=true;crawlInternal(e.callee,t)}else if(p(e)){t.hasFunction=true}else if(u(e)){t.hasHelper=t.hasHelper||e.callee&&isHelper(e.callee)}return t}function crawl(e){return crawlInternal(e,{hasCall:false,hasFunction:false,hasHelper:false})}function isHelper(e){if(!e)return false;if(f(e)){return isHelper(e.object)||isHelper(e.property)}else if(u(e)){return e.name==="require"||e.name.charCodeAt(0)===95}else if(c(e)){return isHelper(e.callee)}else if(o(e)||a(e)){return u(e.left)&&isHelper(e.left)||isHelper(e.right)}else{return false}}function isType(e){return d(e)||h(e)||i(e)||u(e)||f(e)}const b=t.nodes={AssignmentExpression(e){const t=crawl(e.right);if(t.hasCall&&t.hasHelper||t.hasFunction){return t.hasFunction?1|2:2}},SwitchCase(e,t){return(!!e.consequent.length||t.cases[0]===e?1:0)|(!e.consequent.length&&t.cases[t.cases.length-1]===e?2:0)},LogicalExpression(e){if(p(e.left)||p(e.right)){return 2}},Literal(e){if(g(e)&&e.value==="use strict"){return 2}},CallExpression(e){if(p(e.callee)||isHelper(e)){return 1|2}},OptionalCallExpression(e){if(p(e.callee)){return 1|2}},VariableDeclaration(e){for(let t=0;t<e.declarations.length;t++){const r=e.declarations[t];let n=isHelper(r.id)&&!isType(r.init);if(!n&&r.init){const e=crawl(r.init);n=isHelper(r.init)&&e.hasCall||e.hasFunction}if(n){return 1|2}}},IfStatement(e){if(l(e.consequent)){return 1|2}}};b.ObjectProperty=b.ObjectTypeProperty=b.ObjectMethod=function(e,t){if(t.properties[0]===e){return 1}};b.ObjectTypeCallProperty=function(e,t){var r;if(t.callProperties[0]===e&&!((r=t.properties)!=null&&r.length)){return 1}};b.ObjectTypeIndexer=function(e,t){var r,n;if(t.indexers[0]===e&&!((r=t.properties)!=null&&r.length)&&!((n=t.callProperties)!=null&&n.length)){return 1}};b.ObjectTypeInternalSlot=function(e,t){var r,n,s;if(t.internalSlots[0]===e&&!((r=t.properties)!=null&&r.length)&&!((n=t.callProperties)!=null&&n.length)&&!((s=t.indexers)!=null&&s.length)){return 1}};[["Function",true],["Class",true],["Loop",true],["LabeledStatement",true],["SwitchStatement",true],["TryStatement",true]].forEach((function([e,t]){[e].concat(s[e]||[]).forEach((function(e){const r=t?1|2:0;b[e]=()=>r}))}))},1896:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=r(6031);var s=r(8694);var i=r(3061);var a=r(9694);var o=r(476);var l=r(2943);const{isExpression:c,isFunction:p,isStatement:u,isClassBody:d,isTSInterfaceBody:f,isTSEnumMember:h}=i;const m=/e/i;const y=/\.0+$/;const g=/[\n\r\u2028\u2029]/;const b=/[\n\r\u2028\u2029]|\*\//;function commentIsNewline(e){return e.type==="CommentLine"||g.test(e.value)}const{needsParens:T}=s;class Printer{constructor(e,t,r,s){this.inForStatementInit=false;this.tokenContext=0;this._tokens=null;this._originalCode=null;this._currentNode=null;this._indent=0;this._indentRepeat=0;this._insideAux=false;this._noLineTerminator=false;this._noLineTerminatorAfterNode=null;this._printAuxAfterOnNextUserNode=false;this._printedComments=new Set;this._endsWithInteger=false;this._endsWithWord=false;this._endsWithDiv=false;this._lastCommentLine=0;this._endsWithInnerRaw=false;this._indentInnerComments=true;this.tokenMap=null;this._boundGetRawIdentifier=this._getRawIdentifier.bind(this);this._printSemicolonBeforeNextNode=-1;this._printSemicolonBeforeNextToken=-1;this.format=e;this._tokens=r;this._originalCode=s;this._indentRepeat=e.indent.style.length;this._inputMap=t==null?void 0:t._inputMap;this._buf=new n.default(t,e.indent.style[0])}enterForStatementInit(){if(this.inForStatementInit)return()=>{};this.inForStatementInit=true;return()=>{this.inForStatementInit=false}}enterDelimited(){const e=this.inForStatementInit;const t=this._noLineTerminatorAfterNode;if(e===false&&t===null){return()=>{}}this.inForStatementInit=false;this._noLineTerminatorAfterNode=null;return()=>{this.inForStatementInit=e;this._noLineTerminatorAfterNode=t}}generate(e){if(this.format.preserveFormat){this.tokenMap=new a.TokenMap(e,this._tokens,this._originalCode)}this.print(e);this._maybeAddAuxComment();return this._buf.get()}indent(){const{format:e}=this;if(e.preserveFormat||e.compact||e.concise){return}this._indent++}dedent(){const{format:e}=this;if(e.preserveFormat||e.compact||e.concise){return}this._indent--}semicolon(e=false){this._maybeAddAuxComment();if(e){this._appendChar(59);this._noLineTerminator=false;return}if(this.tokenMap){const e=this._currentNode;if(e.start!=null&&e.end!=null){if(!this.tokenMap.endMatches(e,";")){this._printSemicolonBeforeNextNode=this._buf.getCurrentLine();return}const t=this.tokenMap.getIndexes(this._currentNode);this._catchUpTo(this._tokens[t[t.length-1]].loc.start)}}this._queue(59);this._noLineTerminator=false}rightBrace(e){if(this.format.minified){this._buf.removeLastSemicolon()}this.sourceWithOffset("end",e.loc,-1);this.tokenChar(125)}rightParens(e){this.sourceWithOffset("end",e.loc,-1);this.tokenChar(41)}space(e=false){const{format:t}=this;if(t.compact||t.preserveFormat)return;if(e){this._space()}else if(this._buf.hasContent()){const e=this.getLastChar();if(e!==32&&e!==10){this._space()}}}word(e,t=false){this.tokenContext=0;this._maybePrintInnerComments(e);this._maybeAddAuxComment();if(this.tokenMap)this._catchUpToCurrentToken(e);if(this._endsWithWord||this._endsWithDiv&&e.charCodeAt(0)===47){this._space()}this._append(e,false);this._endsWithWord=true;this._noLineTerminator=t}number(e,t){function isNonDecimalLiteral(e){if(e.length>2&&e.charCodeAt(0)===48){const t=e.charCodeAt(1);return t===98||t===111||t===120}return false}this.word(e);this._endsWithInteger=Number.isInteger(t)&&!isNonDecimalLiteral(e)&&!m.test(e)&&!y.test(e)&&e.charCodeAt(e.length-1)!==46}token(e,t=false,r=0){this.tokenContext=0;this._maybePrintInnerComments(e,r);this._maybeAddAuxComment();if(this.tokenMap)this._catchUpToCurrentToken(e,r);const n=this.getLastChar();const s=e.charCodeAt(0);if(n===33&&(e==="--"||s===61)||s===43&&n===43||s===45&&n===45||s===46&&this._endsWithInteger){this._space()}this._append(e,t);this._noLineTerminator=false}tokenChar(e){this.tokenContext=0;const t=String.fromCharCode(e);this._maybePrintInnerComments(t);this._maybeAddAuxComment();if(this.tokenMap)this._catchUpToCurrentToken(t);const r=this.getLastChar();if(e===43&&r===43||e===45&&r===45||e===46&&this._endsWithInteger){this._space()}this._appendChar(e);this._noLineTerminator=false}newline(e=1,t){if(e<=0)return;if(!t){if(this.format.retainLines||this.format.compact)return;if(this.format.concise){this.space();return}}if(e>2)e=2;e-=this._buf.getNewlineCount();for(let t=0;t<e;t++){this._newline()}return}endsWith(e){return this.getLastChar()===e}getLastChar(){return this._buf.getLastChar()}endsWithCharAndNewline(){return this._buf.endsWithCharAndNewline()}removeTrailingNewline(){this._buf.removeTrailingNewline()}exactSource(e,t){if(!e){t();return}this._catchUp("start",e);this._buf.exactSource(e,t)}source(e,t){if(!t)return;this._catchUp(e,t);this._buf.source(e,t)}sourceWithOffset(e,t,r){if(!t||this.format.preserveFormat)return;this._catchUp(e,t);this._buf.sourceWithOffset(e,t,r)}sourceIdentifierName(e,t){if(!this._buf._canMarkIdName)return;const r=this._buf._sourcePosition;r.identifierNamePos=t;r.identifierName=e}_space(){this._queue(32)}_newline(){this._queue(10)}_catchUpToCurrentToken(e,t=0){const r=this.tokenMap.findMatching(this._currentNode,e,t);if(r)this._catchUpTo(r.loc.start);if(this._printSemicolonBeforeNextToken!==-1&&this._printSemicolonBeforeNextToken===this._buf.getCurrentLine()){this._buf.appendChar(59);this._endsWithWord=false;this._endsWithInteger=false;this._endsWithDiv=false}this._printSemicolonBeforeNextToken=-1;this._printSemicolonBeforeNextNode=-1}_append(e,t){this._maybeIndent(e.charCodeAt(0));this._buf.append(e,t);this._endsWithWord=false;this._endsWithInteger=false;this._endsWithDiv=false}_appendChar(e){this._maybeIndent(e);this._buf.appendChar(e);this._endsWithWord=false;this._endsWithInteger=false;this._endsWithDiv=false}_queue(e){this._maybeIndent(e);this._buf.queue(e);this._endsWithWord=false;this._endsWithInteger=false}_maybeIndent(e){if(this._indent&&e!==10&&this.endsWith(10)){this._buf.queueIndentation(this._getIndent())}}_shouldIndent(e){if(this._indent&&e!==10&&this.endsWith(10)){return true}}catchUp(e){if(!this.format.retainLines)return;const t=e-this._buf.getCurrentLine();for(let e=0;e<t;e++){this._newline()}}_catchUp(e,t){const{format:r}=this;if(!r.preserveFormat){if(r.retainLines&&t!=null&&t[e]){this.catchUp(t[e].line)}return}const n=t==null?void 0:t[e];if(n!=null)this._catchUpTo(n)}_catchUpTo({line:e,column:t,index:r}){const n=e-this._buf.getCurrentLine();if(n>0&&this._noLineTerminator){return}for(let e=0;e<n;e++){this._newline()}const s=n>0?t:t-this._buf.getCurrentColumn();if(s>0){const e=this._originalCode?this._originalCode.slice(r-s,r).replace(/[^\t\x0B\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]/gu," "):" ".repeat(s);this._append(e,false)}}_getIndent(){return this._indentRepeat*this._indent}printTerminatorless(e){this._noLineTerminator=true;this.print(e)}print(e,t,r){var n,i,a;if(!e)return;this._endsWithInnerRaw=false;const o=e.type;const l=this.format;const p=l.concise;if(e._compact){l.concise=true}const u=this[o];if(u===undefined){throw new ReferenceError(`unknown node of type ${JSON.stringify(o)} with constructor ${JSON.stringify(e.constructor.name)}`)}const d=this._currentNode;this._currentNode=e;if(this.tokenMap){this._printSemicolonBeforeNextToken=this._printSemicolonBeforeNextNode}const f=this._insideAux;this._insideAux=e.loc==null;this._maybeAddAuxComment(this._insideAux&&!f);const h=(n=e.extra)==null?void 0:n.parenthesized;let m=h&&l.preserveFormat||h&&l.retainFunctionParens&&o==="FunctionExpression"||T(e,d,this.tokenContext,this.inForStatementInit,l.preserveFormat?this._boundGetRawIdentifier:undefined);if(!m&&h&&(i=e.leadingComments)!=null&&i.length&&e.leadingComments[0].type==="CommentBlock"){const t=d==null?void 0:d.type;switch(t){case"ExpressionStatement":case"VariableDeclarator":case"AssignmentExpression":case"ReturnStatement":break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":if(d.callee!==e)break;default:m=true}}let y=false;if(!m&&this._noLineTerminator&&((a=e.leadingComments)!=null&&a.some(commentIsNewline)||this.format.retainLines&&e.loc&&e.loc.start.line>this._buf.getCurrentLine())){m=true;y=true}let g;let b;if(!m){t||(t=d&&this._noLineTerminatorAfterNode===d&&s.isLastChild(d,e));if(t){var S;if((S=e.trailingComments)!=null&&S.some(commentIsNewline)){if(c(e))m=true}else{g=this._noLineTerminatorAfterNode;this._noLineTerminatorAfterNode=e}}}if(m){this.tokenChar(40);if(y)this.indent();this._endsWithInnerRaw=false;if(this.inForStatementInit){b=true;this.inForStatementInit=false}g=this._noLineTerminatorAfterNode;this._noLineTerminatorAfterNode=null}this._lastCommentLine=0;this._printLeadingComments(e,d);const x=o==="Program"||o==="File"?null:e.loc;this.exactSource(x,u.bind(this,e,d));if(m){this._printTrailingComments(e,d);if(y){this.dedent();this.newline()}this.tokenChar(41);this._noLineTerminator=t;if(b)this.inForStatementInit=true}else if(t&&!this._noLineTerminator){this._noLineTerminator=true;this._printTrailingComments(e,d)}else{this._printTrailingComments(e,d,r)}this._currentNode=d;l.concise=p;this._insideAux=f;if(g!==undefined){this._noLineTerminatorAfterNode=g}this._endsWithInnerRaw=false}_maybeAddAuxComment(e){if(e)this._printAuxBeforeComment();if(!this._insideAux)this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=true;const e=this.format.auxiliaryCommentBefore;if(e){this._printComment({type:"CommentBlock",value:e},0)}}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=false;const e=this.format.auxiliaryCommentAfter;if(e){this._printComment({type:"CommentBlock",value:e},0)}}getPossibleRaw(e){const t=e.extra;if((t==null?void 0:t.raw)!=null&&t.rawValue!=null&&e.value===t.rawValue){return t.raw}}printJoin(e,t,r,n,s,i,a,o){if(!(e!=null&&e.length))return;if(r==null&&this.format.retainLines){var l;const t=(l=e[0].loc)==null?void 0:l.start.line;if(t!=null&&t!==this._buf.getCurrentLine()){r=true}}if(r)this.indent();const c={addNewlines:i,nextNodeStartLine:0};const p=n==null?void 0:n.bind(this);const u=e.length;for(let r=0;r<u;r++){const n=e[r];if(!n)continue;if(t)this._printNewline(r===0,c);this.print(n,undefined,o||0);a==null||a(n,r);if(p!=null){if(r<u-1)p(r,false);else if(s)p(r,true)}if(t){var d;if(!((d=n.trailingComments)!=null&&d.length)){this._lastCommentLine=0}if(r+1===u){this.newline(1)}else{var f;const t=e[r+1];c.nextNodeStartLine=((f=t.loc)==null?void 0:f.start.line)||0;this._printNewline(true,c)}}}if(r)this.dedent()}printAndIndentOnComments(e){const t=e.leadingComments&&e.leadingComments.length>0;if(t)this.indent();this.print(e);if(t)this.dedent()}printBlock(e){const t=e.body;if(t.type!=="EmptyStatement"){this.space()}this.print(t)}_printTrailingComments(e,t,r){const{innerComments:n,trailingComments:s}=e;if(n!=null&&n.length){this._printComments(2,n,e,t,r)}if(s!=null&&s.length){this._printComments(2,s,e,t,r)}}_printLeadingComments(e,t){const r=e.leadingComments;if(!(r!=null&&r.length))return;this._printComments(0,r,e,t)}_maybePrintInnerComments(e,t){if(this._endsWithInnerRaw){var r;this.printInnerComments((r=this.tokenMap)==null?void 0:r.findMatching(this._currentNode,e,t))}this._endsWithInnerRaw=true;this._indentInnerComments=true}printInnerComments(e){const t=this._currentNode;const r=t.innerComments;if(!(r!=null&&r.length))return;const n=this.endsWith(32);const s=this._indentInnerComments;const i=this._printedComments.size;if(s)this.indent();this._printComments(1,r,t,undefined,undefined,e);if(n&&i!==this._printedComments.size){this.space()}if(s)this.dedent()}noIndentInnerCommentsHere(){this._indentInnerComments=false}printSequence(e,t,r,n){this.printJoin(e,true,t!=null?t:false,undefined,undefined,n,undefined,r)}printList(e,t,r,n,s,i){this.printJoin(e,r,n,s!=null?s:commaSeparator,t,undefined,i)}shouldPrintTrailingComma(e){if(!this.tokenMap)return null;const t=this.tokenMap.findLastIndex(this._currentNode,(t=>this.tokenMap.matchesOriginal(t,e)));if(t<=0)return null;return this.tokenMap.matchesOriginal(this._tokens[t-1],",")}_printNewline(e,t){const r=this.format;if(r.retainLines||r.compact)return;if(r.concise){this.space();return}if(!e){return}const n=t.nextNodeStartLine;const s=this._lastCommentLine;if(n>0&&s>0){const e=n-s;if(e>=0){this.newline(e||1);return}}if(this._buf.hasContent()){this.newline(1)}}_shouldPrintComment(e,t){if(e.ignore)return 0;if(this._printedComments.has(e))return 0;if(this._noLineTerminator&&b.test(e.value)){return 2}if(t&&this.tokenMap){const r=this.tokenMap.find(this._currentNode,(t=>t.value===e.value));if(r&&r.start>t.start){return 2}}this._printedComments.add(e);if(!this.format.shouldPrintComment(e.value)){return 0}return 1}_printComment(e,t){const r=this._noLineTerminator;const n=e.type==="CommentBlock";const s=n&&t!==1&&!this._noLineTerminator;if(s&&this._buf.hasContent()&&t!==2){this.newline(1)}const i=this.getLastChar();if(i!==91&&i!==123&&i!==40){this.space()}let a;if(n){a=`/*${e.value}*/`;if(this.format.indent.adjustMultilineComment){var o;const t=(o=e.loc)==null?void 0:o.start.column;if(t){const e=new RegExp("\\n\\s{1,"+t+"}","g");a=a.replace(e,"\n")}if(this.format.concise){a=a.replace(/\n(?!$)/g,`\n`)}else{let e=this.format.retainLines?0:this._buf.getCurrentColumn();if(this._shouldIndent(47)||this.format.retainLines){e+=this._getIndent()}a=a.replace(/\n(?!$)/g,`\n${" ".repeat(e)}`)}}}else if(!r){a=`//${e.value}`}else{a=`/*${e.value}*/`}if(this._endsWithDiv)this._space();if(this.tokenMap){const{_printSemicolonBeforeNextToken:t,_printSemicolonBeforeNextNode:r}=this;this._printSemicolonBeforeNextToken=-1;this._printSemicolonBeforeNextNode=-1;this.source("start",e.loc);this._append(a,n);this._printSemicolonBeforeNextNode=r;this._printSemicolonBeforeNextToken=t}else{this.source("start",e.loc);this._append(a,n)}if(!n&&!r){this.newline(1,true)}if(s&&t!==3){this.newline(1)}}_printComments(e,t,r,n,s=0,i){const a=r.loc;const o=t.length;let l=!!a;const c=l?a.start.line:0;const m=l?a.end.line:0;let y=0;let b=0;const T=this._noLineTerminator?function(){}:this.newline.bind(this);for(let a=0;a<o;a++){const S=t[a];const x=this._shouldPrintComment(S,i);if(x===2){l=false;break}if(l&&S.loc&&x===1){const t=S.loc.start.line;const r=S.loc.end.line;if(e===0){let e=0;if(a===0){if(this._buf.hasContent()&&(S.type==="CommentLine"||t!==r)){e=b=1}}else{e=t-y}y=r;T(e);this._printComment(S,1);if(a+1===o){T(Math.max(c-y,b));y=c}}else if(e===1){const e=t-(a===0?c:y);y=r;T(e);this._printComment(S,1);if(a+1===o){T(Math.min(1,m-y));y=m}}else{const e=t-(a===0?m-s:y);y=r;T(e);this._printComment(S,1)}}else{l=false;if(x!==1){continue}if(o===1){const t=S.loc?S.loc.start.line===S.loc.end.line:!g.test(S.value);const s=t&&!u(r)&&!d(n)&&!f(n)&&!h(r);if(e===0){this._printComment(S,s&&r.type!=="ObjectExpression"||t&&p(n,{body:r})?1:0)}else if(s&&e===2){this._printComment(S,1)}else{this._printComment(S,0)}}else if(e===1&&!(r.type==="ObjectExpression"&&r.properties.length>1)&&r.type!=="ClassBody"&&r.type!=="TSInterfaceBody"){this._printComment(S,a===0?2:a===o-1?3:0)}else{this._printComment(S,0)}}}if(e===2&&l&&y){this._lastCommentLine=y}}}Object.assign(Printer.prototype,o);{(0,l.addDeprecatedGenerators)(Printer)}var S=t["default"]=Printer;function commaSeparator(e,t){this.token(",",false,e);if(!t)this.space()}},3852:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=r(7237);var s=r(8536);class SourceMap{constructor(e,t){var r;this._map=void 0;this._rawMappings=void 0;this._sourceFileName=void 0;this._lastGenLine=0;this._lastSourceLine=0;this._lastSourceColumn=0;this._inputMap=void 0;const i=this._map=new n.GenMapping({sourceRoot:e.sourceRoot});this._sourceFileName=(r=e.sourceFileName)==null?void 0:r.replace(/\\/g,"/");this._rawMappings=undefined;if(e.inputSourceMap){this._inputMap=new s.TraceMap(e.inputSourceMap);const t=this._inputMap.resolvedSources;if(t.length){for(let e=0;e<t.length;e++){var a;(0,n.setSourceContent)(i,t[e],(a=this._inputMap.sourcesContent)==null?void 0:a[e])}}}if(typeof t==="string"&&!e.inputSourceMap){(0,n.setSourceContent)(i,this._sourceFileName,t)}else if(typeof t==="object"){for(const e of Object.keys(t)){(0,n.setSourceContent)(i,e.replace(/\\/g,"/"),t[e])}}}get(){return(0,n.toEncodedMap)(this._map)}getDecoded(){return(0,n.toDecodedMap)(this._map)}getRawMappings(){return this._rawMappings||(this._rawMappings=(0,n.allMappings)(this._map))}mark(e,t,r,i,a,o){var l;this._rawMappings=undefined;let c;if(t!=null){if(this._inputMap){c=(0,s.originalPositionFor)(this._inputMap,{line:t,column:r});if(!c.name&&a){const e=(0,s.originalPositionFor)(this._inputMap,a);if(e.name){i=e.name}}}else{c={source:(o==null?void 0:o.replace(/\\/g,"/"))||this._sourceFileName,line:t,column:r}}}(0,n.maybeAddMapping)(this._map,{name:i,generated:e,source:(l=c)==null?void 0:l.source,original:c})}}t["default"]=SourceMap},9694:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TokenMap=void 0;var n=r(3061);const{traverseFast:s,VISITOR_KEYS:i}=n;class TokenMap{constructor(e,t,r){this._tokens=void 0;this._source=void 0;this._nodesToTokenIndexes=new Map;this._nodesOccurrencesCountCache=new Map;this._tokensCache=new Map;this._tokens=t;this._source=r;s(e,(e=>{const t=this._getTokensIndexesOfNode(e);if(t.length>0)this._nodesToTokenIndexes.set(e,t)}));this._tokensCache=null}has(e){return this._nodesToTokenIndexes.has(e)}getIndexes(e){return this._nodesToTokenIndexes.get(e)}find(e,t){const r=this._nodesToTokenIndexes.get(e);if(r){for(let e=0;e<r.length;e++){const n=r[e];const s=this._tokens[n];if(t(s,n))return s}}return null}findLastIndex(e,t){const r=this._nodesToTokenIndexes.get(e);if(r){for(let e=r.length-1;e>=0;e--){const n=r[e];const s=this._tokens[n];if(t(s,n))return n}}return-1}findMatching(e,t,r=0){const n=this._nodesToTokenIndexes.get(e);if(n){let s=0;const i=r;if(i>1){const n=this._nodesOccurrencesCountCache.get(e);if(n&&n.test===t&&n.count<i){s=n.i+1;r-=n.count+1}}for(;s<n.length;s++){const a=this._tokens[n[s]];if(this.matchesOriginal(a,t)){if(r===0){if(i>0){this._nodesOccurrencesCountCache.set(e,{test:t,count:i,i:s})}return a}r--}}}return null}matchesOriginal(e,t){if(e.end-e.start!==t.length)return false;if(e.value!=null)return e.value===t;return this._source.startsWith(t,e.start)}startMatches(e,t){const r=this._nodesToTokenIndexes.get(e);if(!r)return false;const n=this._tokens[r[0]];if(n.start!==e.start)return false;return this.matchesOriginal(n,t)}endMatches(e,t){const r=this._nodesToTokenIndexes.get(e);if(!r)return false;const n=this._tokens[r[r.length-1]];if(n.end!==e.end)return false;return this.matchesOriginal(n,t)}_getTokensIndexesOfNode(e){if(e.start==null||e.end==null)return[];const{first:t,last:r}=this._findTokensOfNode(e,0,this._tokens.length-1);let n=t;const s=childrenIterator(e);if((e.type==="ExportNamedDeclaration"||e.type==="ExportDefaultDeclaration")&&e.declaration&&e.declaration.type==="ClassDeclaration"){s.next()}const i=[];for(const e of s){if(e==null)continue;if(e.start==null||e.end==null)continue;const t=this._findTokensOfNode(e,n,r);const s=t.first;for(let e=n;e<s;e++)i.push(e);n=t.last+1}for(let e=n;e<=r;e++)i.push(e);return i}_findTokensOfNode(e,t,r){const n=this._tokensCache.get(e);if(n)return n;const s=this._findFirstTokenOfNode(e.start,t,r);const i=this._findLastTokenOfNode(e.end,s,r);this._tokensCache.set(e,{first:s,last:i});return{first:s,last:i}}_findFirstTokenOfNode(e,t,r){while(t<=r){const n=r+t>>1;if(e<this._tokens[n].start){r=n-1}else if(e>this._tokens[n].start){t=n+1}else{return n}}return t}_findLastTokenOfNode(e,t,r){while(t<=r){const n=r+t>>1;if(e<this._tokens[n].end){r=n-1}else if(e>this._tokens[n].end){t=n+1}else{return n}}return r}}t.TokenMap=TokenMap;function*childrenIterator(e){if(e.type==="TemplateLiteral"){yield e.quasis[0];for(let t=1;t<e.quasis.length;t++){yield e.expressions[t-1];yield e.quasis[t]}return}const t=i[e.type];for(const r of t){const t=e[r];if(!t)continue;if(Array.isArray(t)){yield*t}else{yield t}}}},344:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=annotateAsPure;var n=r(3061);const{addComment:s}=n;const i="#__PURE__";const isPureAnnotated=({leadingComments:e})=>!!e&&e.some((e=>/[@#]__PURE__/.test(e.value)));function annotateAsPure(e){const t=e["node"]||e;if(isPureAnnotated(t)){return}s(t,"leading",i)}},6484:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getInclusionReasons=getInclusionReasons;var n=r(7849);var s=r(3359);var i=r(7409);function getInclusionReasons(e,t,r){const a=r[e]||{};return Object.keys(t).reduce(((e,r)=>{const o=(0,i.getLowestImplementedVersion)(a,r);const l=t[r];if(!o){e[r]=(0,s.prettifyVersion)(l)}else{const t=(0,i.isUnreleasedVersion)(o,r);const a=(0,i.isUnreleasedVersion)(l,r);if(!a&&(t||n.lt(l.toString(),(0,i.semverify)(o)))){e[r]=(0,s.prettifyVersion)(l)}}return e}),{})}},9822:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=filterItems;t.isRequired=isRequired;t.targetsSupported=targetsSupported;var n=r(7849);var s=r(2810);var i=r(7409);function targetsSupported(e,t){const r=Object.keys(e);if(r.length===0){return false}const s=r.filter((r=>{const s=(0,i.getLowestImplementedVersion)(t,r);if(!s){return true}const a=e[r];if((0,i.isUnreleasedVersion)(a,r)){return false}if((0,i.isUnreleasedVersion)(s,r)){return true}if(!n.valid(a.toString())){throw new Error(`Invalid version passed for target "${r}": "${a}". `+"Versions must be in semver format (major.minor.patch)")}return n.gt((0,i.semverify)(s),a.toString())}));return s.length===0}function isRequired(e,t,{compatData:r=s,includes:n,excludes:i}={}){if(i!=null&&i.has(e))return false;if(n!=null&&n.has(e))return true;return!targetsSupported(t,r[e])}function filterItems(e,t,r,n,s,i,a){const o=new Set;const l={compatData:e,includes:t,excludes:r};for(const t in e){if(isRequired(t,n,l)){o.add(t)}else if(a){const e=a.get(t);if(e){o.add(e)}}}s==null||s.forEach((e=>!r.has(e)&&o.add(e)));i==null||i.forEach((e=>!t.has(e)&&o.delete(e)));return o}},3924:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"TargetNames",{enumerable:true,get:function(){return c.TargetNames}});t["default"]=getTargets;Object.defineProperty(t,"filterItems",{enumerable:true,get:function(){return d.default}});Object.defineProperty(t,"getInclusionReasons",{enumerable:true,get:function(){return u.getInclusionReasons}});t.isBrowsersQueryValid=isBrowsersQueryValid;Object.defineProperty(t,"isRequired",{enumerable:true,get:function(){return d.isRequired}});Object.defineProperty(t,"prettifyTargets",{enumerable:true,get:function(){return p.prettifyTargets}});Object.defineProperty(t,"unreleasedLabels",{enumerable:true,get:function(){return l.unreleasedLabels}});var n=r(4907);var s=r(3146);var i=r(8566);var a=r(7330);var o=r(7409);var l=r(9961);var c=r(4858);var p=r(3359);var u=r(6484);var d=r(9822);const f=i["es6.module"];const h=new s.OptionValidator("@babel/helper-compilation-targets");function validateTargetNames(e){const t=Object.keys(c.TargetNames);for(const r of Object.keys(e)){if(!(r in c.TargetNames)){throw new Error(h.formatMessage(`'${r}' is not a valid target\n- Did you mean '${(0,s.findSuggestion)(r,t)}'?`))}}return e}function isBrowsersQueryValid(e){return typeof e==="string"||Array.isArray(e)&&e.every((e=>typeof e==="string"))}function validateBrowsers(e){h.invariant(e===undefined||isBrowsersQueryValid(e),`'${String(e)}' is not a valid browserslist query`);return e}function getLowestVersions(e){return e.reduce(((e,t)=>{const[r,n]=t.split(" ");const s=l.browserNameMap[r];if(!s){return e}try{const t=n.split("-")[0].toLowerCase();const r=(0,o.isUnreleasedVersion)(t,s);if(!e[s]){e[s]=r?t:(0,o.semverify)(t);return e}const i=e[s];const a=(0,o.isUnreleasedVersion)(i,s);if(a&&r){e[s]=(0,o.getLowestUnreleased)(i,t,s)}else if(a){e[s]=(0,o.semverify)(t)}else if(!a&&!r){const r=(0,o.semverify)(t);e[s]=(0,o.semverMin)(i,r)}}catch(e){}return e}),{})}function outputDecimalWarning(e){if(!e.length){return}console.warn("Warning, the following targets are using a decimal version:\n");e.forEach((({target:e,value:t})=>console.warn(` ${e}: ${t}`)));console.warn(`\nWe recommend using a string for minor/patch versions to avoid numbers like 6.10\ngetting parsed as 6.1, which can lead to unexpected behavior.\n`)}function semverifyTarget(e,t){try{return(0,o.semverify)(t)}catch(r){throw new Error(h.formatMessage(`'${t}' is not a valid value for 'targets.${e}'.`))}}function nodeTargetParser(e){const t=e===true||e==="current"?process.versions.node.split("-")[0]:semverifyTarget("node",e);return["node",t]}function defaultTargetParser(e,t){const r=(0,o.isUnreleasedVersion)(t,e)?t.toLowerCase():semverifyTarget(e,t);return[e,r]}function generateTargets(e){const t=Object.assign({},e);delete t.esmodules;delete t.browsers;return t}function resolveTargets(e,t){const r=n(e,{mobileToDesktop:true,env:t});return getLowestVersions(r)}const m=new a({max:64});function resolveTargetsCached(e,t){const r=typeof e==="string"?e:e.join()+t;let n=m.get(r);if(!n){n=resolveTargets(e,t);m.set(r,n)}return Object.assign({},n)}function getTargets(e={},t={}){var r,s;let{browsers:i,esmodules:a}=e;const{configPath:l=".",onBrowserslistConfigFound:c}=t;validateBrowsers(i);const p=generateTargets(e);let u=validateTargetNames(p);const d=!!i;const h=d||Object.keys(u).length>0;const m=!t.ignoreBrowserslistConfig&&!h;if(!i&&m){i=process.env.BROWSERSLIST;if(!i){const e=t.configFile||process.env.BROWSERSLIST_CONFIG||n.findConfigFile(l);if(e!=null){c==null||c(e);i=n.loadConfig({config:e,env:t.browserslistEnv})}}if(i==null){{i=[]}}}if(a&&(a!=="intersect"||!((r=i)!=null&&r.length))){i=Object.keys(f).map((e=>`${e} >= ${f[e]}`)).join(", ");a=false}if((s=i)!=null&&s.length){const e=resolveTargetsCached(i,t.browserslistEnv);if(a==="intersect"){for(const t of Object.keys(e)){if(t!=="deno"&&t!=="ie"){const r=f[t==="opera_mobile"?"op_mob":t];if(r){const n=e[t];e[t]=(0,o.getHighestUnreleased)(n,(0,o.semverify)(r),t)}else{delete e[t]}}else{delete e[t]}}}u=Object.assign(e,u)}const y={};const g=[];for(const e of Object.keys(u).sort()){const t=u[e];if(typeof t==="number"&&t%1!==0){g.push({target:e,value:t})}const[r,n]=e==="node"?nodeTargetParser(t):defaultTargetParser(e,t);if(n){y[r]=n}}outputDecimalWarning(g);return y}},4858:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TargetNames=void 0;const r=t.TargetNames={node:"node",deno:"deno",chrome:"chrome",opera:"opera",edge:"edge",firefox:"firefox",safari:"safari",ie:"ie",ios:"ios",android:"android",electron:"electron",samsung:"samsung",rhino:"rhino",opera_mobile:"opera_mobile"}},3359:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.prettifyTargets=prettifyTargets;t.prettifyVersion=prettifyVersion;var n=r(7849);var s=r(9961);function prettifyVersion(e){if(typeof e!=="string"){return e}const{major:t,minor:r,patch:s}=n.parse(e);const i=[t];if(r||s){i.push(r)}if(s){i.push(s)}return i.join(".")}function prettifyTargets(e){return Object.keys(e).reduce(((t,r)=>{let n=e[r];const i=s.unreleasedLabels[r];if(typeof n==="string"&&i!==n){n=prettifyVersion(n)}t[r]=n;return t}),{})}},9961:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.unreleasedLabels=t.browserNameMap=void 0;const r=t.unreleasedLabels={safari:"tp"};const n=t.browserNameMap={and_chr:"chrome",and_ff:"firefox",android:"android",chrome:"chrome",edge:"edge",firefox:"firefox",ie:"ie",ie_mob:"ie",ios_saf:"ios",node:"node",deno:"deno",op_mob:"opera_mobile",opera:"opera",safari:"safari",samsung:"samsung"}},7409:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getHighestUnreleased=getHighestUnreleased;t.getLowestImplementedVersion=getLowestImplementedVersion;t.getLowestUnreleased=getLowestUnreleased;t.isUnreleasedVersion=isUnreleasedVersion;t.semverMin=semverMin;t.semverify=semverify;var n=r(7849);var s=r(3146);var i=r(9961);const a=/^(?:\d+|\d(?:\d?[^\d\n\r\u2028\u2029]\d+|\d{2,}(?:[^\d\n\r\u2028\u2029]\d+)?))$/;const o=new s.OptionValidator("@babel/helper-compilation-targets");function semverMin(e,t){return e&&n.lt(e,t)?e:t}function semverify(e){if(typeof e==="string"&&n.valid(e)){return e}o.invariant(typeof e==="number"||typeof e==="string"&&a.test(e),`'${e}' is not a valid version`);e=e.toString();let t=0;let r=0;while((t=e.indexOf(".",t+1))>0){r++}return e+".0".repeat(2-r)}function isUnreleasedVersion(e,t){const r=i.unreleasedLabels[t];return!!r&&r===e.toString().toLowerCase()}function getLowestUnreleased(e,t,r){const n=i.unreleasedLabels[r];if(e===n){return t}if(t===n){return e}return semverMin(e,t)}function getHighestUnreleased(e,t,r){return getLowestUnreleased(e,t,r)===e?t:e}function getLowestImplementedVersion(e,t){const r=e[t];if(!r&&t==="android"){return e.chrome}return r}},4073:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.buildDecoratedClass=buildDecoratedClass;var n=r(2358);var s=r(6721);function prop(e,t){if(!t)return null;return n.types.objectProperty(n.types.identifier(e),t)}function method(e,t){return n.types.objectMethod("method",n.types.identifier(e),[],n.types.blockStatement(t))}function takeDecorators(e){let t;if(e.decorators&&e.decorators.length>0){t=n.types.arrayExpression(e.decorators.map((e=>e.expression)))}e.decorators=undefined;return t}function getKey(e){if(e.computed){return e.key}else if(n.types.isIdentifier(e.key)){return n.types.stringLiteral(e.key.name)}else{return n.types.stringLiteral(String(e.key.value))}}function extractElementDescriptor(e,t,i,a){const o=a.isClassMethod();if(a.isPrivate()){throw a.buildCodeFrameError(`Private ${o?"methods":"fields"} in decorated classes are not supported yet.`)}if(a.node.type==="ClassAccessorProperty"){throw a.buildCodeFrameError(`Accessor properties are not supported in 2018-09 decorator transform, please specify { "version": "2021-12" } instead.`)}if(a.node.type==="StaticBlock"){throw a.buildCodeFrameError(`Static blocks are not supported in 2018-09 decorator transform, please specify { "version": "2021-12" } instead.`)}const{node:l,scope:c}=a;if(!a.isTSDeclareMethod()){new s.default({methodPath:a,objectRef:t,superRef:i,file:e,refToPreserve:t}).replace()}const p=[prop("kind",n.types.stringLiteral(n.types.isClassMethod(l)?l.kind:"field")),prop("decorators",takeDecorators(l)),prop("static",l.static&&n.types.booleanLiteral(true)),prop("key",getKey(l))].filter(Boolean);if(o){{var u;(u=a.ensureFunctionName)!=null?u:a.ensureFunctionName=r(8026).NodePath.prototype.ensureFunctionName}a.ensureFunctionName(false);p.push(prop("value",n.types.toExpression(a.node)))}else if(n.types.isClassProperty(l)&&l.value){p.push(method("value",n.template.statements.ast`return ${l.value}`))}else{p.push(prop("value",c.buildUndefinedNode()))}a.remove();return n.types.objectExpression(p)}function addDecorateHelper(e){return e.addHelper("decorate")}function buildDecoratedClass(e,t,r,s){const{node:i,scope:a}=t;const o=a.generateUidIdentifier("initialize");const l=i.id&&t.isDeclaration();const c=t.isInStrictMode();const{superClass:p}=i;i.type="ClassDeclaration";if(!i.id)i.id=n.types.cloneNode(e);let u;if(p){u=a.generateUidIdentifierBasedOnNode(i.superClass,"super");i.superClass=u}const d=takeDecorators(i);const f=n.types.arrayExpression(r.filter((e=>!e.node.abstract&&e.node.type!=="TSIndexSignature")).map((e=>extractElementDescriptor(s,i.id,u,e))));const h=n.template.expression.ast` |
| 14 | ${addDecorateHelper(s)}( |
| 15 | ${d||n.types.nullLiteral()}, |
| 16 | function (${o}, ${p?n.types.cloneNode(u):null}) { |
no outgoing calls
no test coverage detected