UNPKG

@winner-fed/bundler-webpack

Version:

@winner-fed/bundler-webpack

16 lines 1.72 MB
(function(){var e={1576:function(e){"use strict";const callsites=()=>{const e=Error.prepareStackTrace;Error.prepareStackTrace=(e,t)=>t;const t=(new Error).stack.slice(1);Error.prepareStackTrace=e;return t};e.exports=callsites;e.exports["default"]=callsites},5845:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.Explorer=void 0;const s=n(r(3292));const i=n(r(1017));const o=r(4019);const a=r(7139);const l=r(7612);const c=r(4713);class Explorer extends a.ExplorerBase{async load(e){e=i.default.resolve(e);const load=async()=>await this.config.transform(await this.#e(e));if(this.loadCache){return await(0,c.emplace)(this.loadCache,e,load)}return await load()}async search(e=""){if(this.config.metaConfigFilePath){this.loadingMetaConfig=true;const e=await this.load(this.config.metaConfigFilePath);this.loadingMetaConfig=false;if(e&&!e.isEmpty){return e}}e=i.default.resolve(e);const t=this.#t(e);const r=await t.next(); /* istanbul ignore if -- @preserve */if(r.done){throw new Error(`Could not find any folders to iterate through (start from ${e})`)}let n=r.value;const search=async()=>{ /* istanbul ignore if -- @preserve */ if(await(0,c.isDirectory)(n.path)){for(const e of this.getSearchPlacesForDir(n,o.globalConfigSearchPlaces)){try{const t=await this.#e(e);if(t!==null&&!(t.isEmpty&&this.config.ignoreEmptySearchPlaces)){return await this.config.transform(t)}}catch(e){if(e.code==="ENOENT"||e.code==="EISDIR"||e.code==="ENOTDIR"||e.code==="EACCES"){continue}throw e}}}const e=await t.next();if(!e.done){n=e.value;if(this.searchCache){return await(0,c.emplace)(this.searchCache,n.path,search)}return await search()}return await this.config.transform(null)};if(this.searchCache){return await(0,c.emplace)(this.searchCache,e,search)}return await search()}async#e(e,t=[]){const r=await s.default.readFile(e,{encoding:"utf-8"});return this.toCosmiconfigResult(e,await this.#r(e,r,t))}async#r(e,t,r){const n=await this.#n(e,t);if(!n||!(0,l.hasOwn)(n,"$import")){return n}const s=i.default.dirname(e);const{$import:o,...a}=n;const c=Array.isArray(o)?o:[o];const p=[...r,e];this.validateImports(e,c,p);const u=await Promise.all(c.map((async e=>{const t=i.default.resolve(s,e);const r=await this.#e(t,p);return r?.config})));return(0,l.mergeAll)([...u,a],{mergeArrays:this.config.mergeImportArrays})}async#n(e,t){if(t.trim()===""){return}const r=i.default.extname(e);const n=this.config.loaders[r||"noExt"]??this.config.loaders["default"];if(!n){throw new Error(`No loader specified for ${(0,a.getExtensionDescription)(r)}`)}try{const s=await n(e,t);if(i.default.basename(e,r)!=="package"){return s}return(0,c.getPropertyByPath)(s,this.config.packageProp??this.config.moduleName)??null}catch(t){t.filepath=e;throw t}}async#s(e){try{await s.default.stat(e);return true}catch(e){return false}}async*#t(e){switch(this.config.searchStrategy){case"none":{yield{path:e,isGlobalConfig:false};return}case"project":{let t=e;while(true){yield{path:t,isGlobalConfig:false};for(const e of["json","yaml"]){const r=i.default.join(t,`package.${e}`);if(await this.#s(r)){break}}const e=i.default.dirname(t); /* istanbul ignore if -- @preserve */if(e===t){break}t=e}return}case"global":{yield*this.getGlobalDirs(e)}}}}t.Explorer=Explorer},7139:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.getExtensionDescription=t.ExplorerBase=void 0;const s=n(r(4864));const i=n(r(2037));const o=n(r(1017));const a=r(4713);class ExplorerBase{#i=false;config;loadCache;searchCache;constructor(e){this.config=e;if(e.cache){this.loadCache=new Map;this.searchCache=new Map}this.#o()}set loadingMetaConfig(e){this.#i=e}#o(){const e=this.config;for(const t of e.searchPlaces){const e=o.default.extname(t);const r=this.config.loaders[e||"noExt"]??this.config.loaders["default"];if(r===undefined){throw new Error(`Missing loader for ${getExtensionDescription(t)}.`)}if(typeof r!=="function"){throw new Error(`Loader for ${getExtensionDescription(t)} is not a function: Received ${typeof r}.`)}}}clearLoadCache(){if(this.loadCache){this.loadCache.clear()}}clearSearchCache(){if(this.searchCache){this.searchCache.clear()}}clearCaches(){this.clearLoadCache();this.clearSearchCache()}toCosmiconfigResult(e,t){if(t===null){return null}if(t===undefined){return{filepath:e,config:undefined,isEmpty:true}}if(this.config.applyPackagePropertyPathToConfiguration||this.#i){const e=this.config.packageProp??this.config.moduleName;t=(0,a.getPropertyByPath)(t,e)}if(t===undefined){return{filepath:e,config:undefined,isEmpty:true}}return{config:t,filepath:e}}validateImports(e,t,r){const n=o.default.dirname(e);for(const s of t){if(typeof s!=="string"){throw new Error(`${e}: Key $import must contain a string or a list of strings`)}const t=o.default.resolve(n,s);if(t===e){throw new Error(`Self-import detected in ${e}`)}const i=r.indexOf(t);if(i!==-1){throw new Error(`Circular import detected:\n${[...r,t].map(((e,t)=>`${t+1}. ${e}`)).join("\n")} (same as ${i+1}.)`)}}}getSearchPlacesForDir(e,t){return(e.isGlobalConfig?t:this.config.searchPlaces).map((t=>o.default.join(e.path,t)))}getGlobalConfigDir(){return(0,s.default)(this.config.moduleName,{suffix:""}).config}*getGlobalDirs(e){const t=o.default.resolve(this.config.stopDir??i.default.homedir());yield{path:e,isGlobalConfig:false};let r=e;while(r!==t){const e=o.default.dirname(r); /* istanbul ignore if -- @preserve */if(e===r){break}yield{path:e,isGlobalConfig:false};r=e}yield{path:this.getGlobalConfigDir(),isGlobalConfig:true}}}t.ExplorerBase=ExplorerBase;function getExtensionDescription(e){ /* istanbul ignore next -- @preserve */ return e?`extension "${e}"`:"files without extensions"}t.getExtensionDescription=getExtensionDescription},5821:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.ExplorerSync=void 0;const s=n(r(7147));const i=n(r(1017));const o=r(4019);const a=r(7139);const l=r(7612);const c=r(4713);class ExplorerSync extends a.ExplorerBase{load(e){e=i.default.resolve(e);const load=()=>this.config.transform(this.#e(e));if(this.loadCache){return(0,c.emplace)(this.loadCache,e,load)}return load()}search(e=""){if(this.config.metaConfigFilePath){this.loadingMetaConfig=true;const e=this.load(this.config.metaConfigFilePath);this.loadingMetaConfig=false;if(e&&!e.isEmpty){return e}}e=i.default.resolve(e);const t=this.#t(e);const r=t.next(); /* istanbul ignore if -- @preserve */if(r.done){throw new Error(`Could not find any folders to iterate through (start from ${e})`)}let n=r.value;const search=()=>{ /* istanbul ignore if -- @preserve */ if((0,c.isDirectorySync)(n.path)){for(const e of this.getSearchPlacesForDir(n,o.globalConfigSearchPlacesSync)){try{const t=this.#e(e);if(t!==null&&!(t.isEmpty&&this.config.ignoreEmptySearchPlaces)){return this.config.transform(t)}}catch(e){if(e.code==="ENOENT"||e.code==="EISDIR"||e.code==="ENOTDIR"||e.code==="EACCES"){continue}throw e}}}const e=t.next();if(!e.done){n=e.value;if(this.searchCache){return(0,c.emplace)(this.searchCache,n.path,search)}return search()}return this.config.transform(null)};if(this.searchCache){return(0,c.emplace)(this.searchCache,e,search)}return search()}#e(e,t=[]){const r=s.default.readFileSync(e,"utf8");return this.toCosmiconfigResult(e,this.#r(e,r,t))}#r(e,t,r){const n=this.#n(e,t);if(!n||!(0,l.hasOwn)(n,"$import")){return n}const s=i.default.dirname(e);const{$import:o,...a}=n;const c=Array.isArray(o)?o:[o];const p=[...r,e];this.validateImports(e,c,p);const u=c.map((e=>{const t=i.default.resolve(s,e);const r=this.#e(t,p);return r?.config}));return(0,l.mergeAll)([...u,a],{mergeArrays:this.config.mergeImportArrays})}#n(e,t){if(t.trim()===""){return}const r=i.default.extname(e);const n=this.config.loaders[r||"noExt"]??this.config.loaders["default"];if(!n){throw new Error(`No loader specified for ${(0,a.getExtensionDescription)(r)}`)}try{const s=n(e,t);if(i.default.basename(e,r)!=="package"){return s}return(0,c.getPropertyByPath)(s,this.config.packageProp??this.config.moduleName)??null}catch(t){t.filepath=e;throw t}}#s(e){try{s.default.statSync(e);return true}catch(e){return false}}*#t(e){switch(this.config.searchStrategy){case"none":{yield{path:e,isGlobalConfig:false};return}case"project":{let t=e;while(true){yield{path:t,isGlobalConfig:false};for(const e of["json","yaml"]){const r=i.default.join(t,`package.${e}`);if(this.#s(r)){break}}const e=i.default.dirname(t); /* istanbul ignore if -- @preserve */if(e===t){break}t=e}return}case"global":{yield*this.getGlobalDirs(e)}}}loadSync(e){return this.load(e)}searchSync(e=""){return this.search(e)}}t.ExplorerSync=ExplorerSync},4019:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultLoadersSync=t.defaultLoaders=t.metaSearchPlaces=t.globalConfigSearchPlacesSync=t.globalConfigSearchPlaces=t.getDefaultSearchPlacesSync=t.getDefaultSearchPlaces=void 0;const n=r(8396);function getDefaultSearchPlaces(e){return["package.json",`.${e}rc`,`.${e}rc.json`,`.${e}rc.yaml`,`.${e}rc.yml`,`.${e}rc.js`,`.${e}rc.ts`,`.${e}rc.cjs`,`.${e}rc.mjs`,`.config/${e}rc`,`.config/${e}rc.json`,`.config/${e}rc.yaml`,`.config/${e}rc.yml`,`.config/${e}rc.js`,`.config/${e}rc.ts`,`.config/${e}rc.cjs`,`.config/${e}rc.mjs`,`${e}.config.js`,`${e}.config.ts`,`${e}.config.cjs`,`${e}.config.mjs`]}t.getDefaultSearchPlaces=getDefaultSearchPlaces;function getDefaultSearchPlacesSync(e){return["package.json",`.${e}rc`,`.${e}rc.json`,`.${e}rc.yaml`,`.${e}rc.yml`,`.${e}rc.js`,`.${e}rc.ts`,`.${e}rc.cjs`,`.config/${e}rc`,`.config/${e}rc.json`,`.config/${e}rc.yaml`,`.config/${e}rc.yml`,`.config/${e}rc.js`,`.config/${e}rc.ts`,`.config/${e}rc.cjs`,`${e}.config.js`,`${e}.config.ts`,`${e}.config.cjs`]}t.getDefaultSearchPlacesSync=getDefaultSearchPlacesSync;t.globalConfigSearchPlaces=["config","config.json","config.yaml","config.yml","config.js","config.ts","config.cjs","config.mjs"];t.globalConfigSearchPlacesSync=["config","config.json","config.yaml","config.yml","config.js","config.ts","config.cjs"];t.metaSearchPlaces=["package.json","package.yaml",".config/config.json",".config/config.yaml",".config/config.yml",".config/config.js",".config/config.ts",".config/config.cjs",".config/config.mjs"];t.defaultLoaders=Object.freeze({".mjs":n.loadJs,".cjs":n.loadJs,".js":n.loadJs,".ts":n.loadTs,".json":n.loadJson,".yaml":n.loadYaml,".yml":n.loadYaml,noExt:n.loadYaml});t.defaultLoadersSync=Object.freeze({".cjs":n.loadJsSync,".js":n.loadJsSync,".ts":n.loadTsSync,".json":n.loadJson,".yaml":n.loadYaml,".yml":n.loadYaml,noExt:n.loadYaml})},7963:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultLoadersSync=t.defaultLoaders=t.globalConfigSearchPlacesSync=t.globalConfigSearchPlaces=t.getDefaultSearchPlacesSync=t.getDefaultSearchPlaces=t.cosmiconfigSync=t.cosmiconfig=void 0;const n=r(4019);Object.defineProperty(t,"defaultLoaders",{enumerable:true,get:function(){return n.defaultLoaders}});Object.defineProperty(t,"defaultLoadersSync",{enumerable:true,get:function(){return n.defaultLoadersSync}});Object.defineProperty(t,"getDefaultSearchPlaces",{enumerable:true,get:function(){return n.getDefaultSearchPlaces}});Object.defineProperty(t,"getDefaultSearchPlacesSync",{enumerable:true,get:function(){return n.getDefaultSearchPlacesSync}});Object.defineProperty(t,"globalConfigSearchPlaces",{enumerable:true,get:function(){return n.globalConfigSearchPlaces}});Object.defineProperty(t,"globalConfigSearchPlacesSync",{enumerable:true,get:function(){return n.globalConfigSearchPlacesSync}});const s=r(5845);const i=r(5821);const o=r(4713);const a=function identity(e){return e};function getUserDefinedOptionsFromMetaConfig(){const e=new i.ExplorerSync({moduleName:"cosmiconfig",stopDir:process.cwd(),searchPlaces:n.metaSearchPlaces,ignoreEmptySearchPlaces:false,applyPackagePropertyPathToConfiguration:true,loaders:n.defaultLoaders,transform:a,cache:true,metaConfigFilePath:null,mergeImportArrays:true,mergeSearchPlaces:true,searchStrategy:"none"});const t=e.search();if(!t){return null}if(t.config?.loaders){throw new Error("Can not specify loaders in meta config file")}if(t.config?.searchStrategy){throw new Error("Can not specify searchStrategy in meta config file")}const r={mergeSearchPlaces:true,...t.config??{}};return{config:(0,o.removeUndefinedValuesFromObject)(r),filepath:t.filepath}}function getResolvedSearchPlaces(e,t,r){const n=r.searchPlaces?.map((t=>t.replace("{name}",e)));if(r.mergeSearchPlaces){return[...n??[],...t]}return n??t}function mergeOptionsBase(e,t,r){const n=getUserDefinedOptionsFromMetaConfig();if(!n){return{...t,...(0,o.removeUndefinedValuesFromObject)(r),loaders:{...t.loaders,...r.loaders}}}const s=n.config;const i=r.searchPlaces??t.searchPlaces;return{...t,...(0,o.removeUndefinedValuesFromObject)(r),metaConfigFilePath:n.filepath,...s,searchPlaces:getResolvedSearchPlaces(e,i,s),loaders:{...t.loaders,...r.loaders}}}function validateOptions(e){if(e.searchStrategy!=null&&e.searchStrategy!=="global"&&e.stopDir){throw new Error('Can not supply `stopDir` option with `searchStrategy` other than "global"')}}function mergeOptions(e,t){validateOptions(t);const r={moduleName:e,searchPlaces:(0,n.getDefaultSearchPlaces)(e),ignoreEmptySearchPlaces:true,cache:true,transform:a,loaders:n.defaultLoaders,metaConfigFilePath:null,mergeImportArrays:true,mergeSearchPlaces:true,searchStrategy:t.stopDir?"global":"none"};return mergeOptionsBase(e,r,t)}function mergeOptionsSync(e,t){validateOptions(t);const r={moduleName:e,searchPlaces:(0,n.getDefaultSearchPlacesSync)(e),ignoreEmptySearchPlaces:true,cache:true,transform:a,loaders:n.defaultLoadersSync,metaConfigFilePath:null,mergeImportArrays:true,mergeSearchPlaces:true,searchStrategy:t.stopDir?"global":"none"};return mergeOptionsBase(e,r,t)}function cosmiconfig(e,t={}){const r=mergeOptions(e,t);const n=new s.Explorer(r);return{search:n.search.bind(n),load:n.load.bind(n),clearLoadCache:n.clearLoadCache.bind(n),clearSearchCache:n.clearSearchCache.bind(n),clearCaches:n.clearCaches.bind(n)}}t.cosmiconfig=cosmiconfig;function cosmiconfigSync(e,t={}){const r=mergeOptionsSync(e,t);const n=new i.ExplorerSync(r);return{search:n.search.bind(n),load:n.load.bind(n),clearLoadCache:n.clearLoadCache.bind(n),clearSearchCache:n.clearSearchCache.bind(n),clearCaches:n.clearCaches.bind(n)}}t.cosmiconfigSync=cosmiconfigSync},8396:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.loadTs=t.loadTsSync=t.loadYaml=t.loadJson=t.loadJs=t.loadJsSync=void 0;const s=r(7147);const i=r(3292);const o=n(r(1017));const a=r(7310);let l;const c=function loadJsSync(e){if(l===undefined){l=r(7121)}return l(e)};t.loadJsSync=c;const p=async function loadJs(e){try{const{href:t}=(0,a.pathToFileURL)(e);return(await r(6770)(t)).default}catch(r){try{return(0,t.loadJsSync)(e,"")}catch(e){if(e.code==="ERR_REQUIRE_ESM"||e instanceof SyntaxError&&e.toString().includes("Cannot use import statement outside a module")){throw r}throw e}}};t.loadJs=p;let u;const d=function loadJson(e,t){if(u===undefined){u=r(4302)}try{return u(t)}catch(t){t.message=`JSON Error in ${e}:\n${t.message}`;throw t}};t.loadJson=d;let f;const h=function loadYaml(e,t){if(f===undefined){f=r(4509)}try{return f.load(t)}catch(t){t.message=`YAML Error in ${e}:\n${t.message}`;throw t}};t.loadYaml=h;let m;const y=function loadTsSync(e,n){ /* istanbul ignore next -- @preserve */ if(m===undefined){m=r(4440)}const i=`${e.slice(0,-2)}cjs`;try{const r=resolveTsConfig(o.default.dirname(e))??{};r.compilerOptions={...r.compilerOptions,module:m.ModuleKind.NodeNext,moduleResolution:m.ModuleResolutionKind.NodeNext,target:m.ScriptTarget.ES2022,noEmit:false};n=m.transpileModule(n,r).outputText;(0,s.writeFileSync)(i,n);return(0,t.loadJsSync)(i,n).default}catch(t){t.message=`TypeScript Error in ${e}:\n${t.message}`;throw t}finally{if((0,s.existsSync)(i)){(0,s.rmSync)(i)}}};t.loadTsSync=y;const b=async function loadTs(e,n){if(m===undefined){m=(await Promise.resolve().then(r.t.bind(r,4440,23))).default}const a=`${e.slice(0,-2)}mjs`;let l;try{try{const t=resolveTsConfig(o.default.dirname(e))??{};t.compilerOptions={...t.compilerOptions,module:m.ModuleKind.ES2022,moduleResolution:m.ModuleResolutionKind.Bundler,target:m.ScriptTarget.ES2022,noEmit:false};l=m.transpileModule(n,t).outputText;await(0,i.writeFile)(a,l)}catch(t){t.message=`TypeScript Error in ${e}:\n${t.message}`;throw t}return await(0,t.loadJs)(a,l)}finally{if((0,s.existsSync)(a)){await(0,i.rm)(a)}}};t.loadTs=b;function resolveTsConfig(e){const t=m.findConfigFile(e,(e=>m.sys.fileExists(e)));if(t!==undefined){const{config:e,error:r}=m.readConfigFile(t,(e=>m.sys.readFile(e)));if(r){throw new Error(`Error in ${t}: ${r.messageText.toString()}`)}return e}return}},7612:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.mergeAll=t.hasOwn=void 0;t.hasOwn=Function.prototype.call.bind(Object.prototype.hasOwnProperty);const r=Function.prototype.call.bind(Object.prototype.toString);function isPlainObject(e){return r(e)==="[object Object]"}function merge(e,r,n){for(const s of Object.keys(r)){const i=r[s];if((0,t.hasOwn)(e,s)){if(Array.isArray(e[s])&&Array.isArray(i)){if(n.mergeArrays){e[s].push(...i);continue}}else if(isPlainObject(e[s])&&isPlainObject(i)){e[s]=merge(e[s],i,n);continue}}e[s]=i}return e}function mergeAll(e,t){return e.reduce(((e,r)=>merge(e,r,t)),{})}t.mergeAll=mergeAll},4713:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.isDirectorySync=t.isDirectory=t.removeUndefinedValuesFromObject=t.getPropertyByPath=t.emplace=void 0;const o=i(r(7147));function emplace(e,t,r){const n=e.get(t);if(n!==undefined){return n}const s=r();e.set(t,s);return s}t.emplace=emplace;function getPropertyByPath(e,t){if(typeof t==="string"&&Object.prototype.hasOwnProperty.call(e,t)){return e[t]}const r=typeof t==="string"?t.split("."):t;return r.reduce(((e,t)=>{if(e===undefined){return e}return e[t]}),e)}t.getPropertyByPath=getPropertyByPath;function removeUndefinedValuesFromObject(e){return Object.fromEntries(Object.entries(e).filter((([,e])=>e!==undefined)))}t.removeUndefinedValuesFromObject=removeUndefinedValuesFromObject; /* istanbul ignore next -- @preserve */async function isDirectory(e){try{const t=await o.promises.stat(e);return t.isDirectory()}catch(e){if(e.code==="ENOENT"){return false}throw e}}t.isDirectory=isDirectory; /* istanbul ignore next -- @preserve */function isDirectorySync(e){try{const t=o.default.statSync(e);return t.isDirectory()}catch(e){if(e.code==="ENOENT"){return false}throw e}}t.isDirectorySync=isDirectorySync},4864:function(e,t,r){"use strict";const n=r(1017);const s=r(2037);const i=s.homedir();const o=s.tmpdir();const{env:a}=process;const macos=e=>{const t=n.join(i,"Library");return{data:n.join(t,"Application Support",e),config:n.join(t,"Preferences",e),cache:n.join(t,"Caches",e),log:n.join(t,"Logs",e),temp:n.join(o,e)}};const windows=e=>{const t=a.APPDATA||n.join(i,"AppData","Roaming");const r=a.LOCALAPPDATA||n.join(i,"AppData","Local");return{data:n.join(r,e,"Data"),config:n.join(t,e,"Config"),cache:n.join(r,e,"Cache"),log:n.join(r,e,"Log"),temp:n.join(o,e)}};const linux=e=>{const t=n.basename(i);return{data:n.join(a.XDG_DATA_HOME||n.join(i,".local","share"),e),config:n.join(a.XDG_CONFIG_HOME||n.join(i,".config"),e),cache:n.join(a.XDG_CACHE_HOME||n.join(i,".cache"),e),log:n.join(a.XDG_STATE_HOME||n.join(i,".local","state"),e),temp:n.join(o,t,e)}};const envPaths=(e,t)=>{if(typeof e!=="string"){throw new TypeError(`Expected string, got ${typeof e}`)}t=Object.assign({suffix:"nodejs"},t);if(t.suffix){e+=`-${t.suffix}`}if(process.platform==="darwin"){return macos(e)}if(process.platform==="win32"){return windows(e)}return linux(e)};e.exports=envPaths;e.exports["default"]=envPaths},6305:function(e,t,r){"use strict";var n=r(3837);var s=r(1589);var i=function errorEx(e,t){if(!e||e.constructor!==String){t=e||{};e=Error.name}var r=function ErrorEXError(n){if(!this){return new ErrorEXError(n)}n=n instanceof Error?n.message:n||this.message;Error.call(this,n);Error.captureStackTrace(this,r);this.name=e;Object.defineProperty(this,"message",{configurable:true,enumerable:false,get:function(){var e=n.split(/\r?\n/g);for(var r in t){if(!t.hasOwnProperty(r)){continue}var i=t[r];if("message"in i){e=i.message(this[r],e)||e;if(!s(e)){e=[e]}}}return e.join("\n")},set:function(e){n=e}});var i=null;var o=Object.getOwnPropertyDescriptor(this,"stack");var a=o.get;var l=o.value;delete o.value;delete o.writable;o.set=function(e){i=e};o.get=function(){var e=(i||(a?a.call(this):l)).split(/\r?\n+/g);if(!i){e[0]=this.name+": "+this.message}var r=1;for(var n in t){if(!t.hasOwnProperty(n)){continue}var s=t[n];if("line"in s){var o=s.line(this[n]);if(o){e.splice(r++,0," "+o)}}if("stack"in s){s.stack(this[n],e)}}return e.join("\n")};Object.defineProperty(this,"stack",o)};if(Object.setPrototypeOf){Object.setPrototypeOf(r.prototype,Error.prototype);Object.setPrototypeOf(r,Error)}else{n.inherits(r,Error)}return r};i.append=function(e,t){return{message:function(r,n){r=r||t;if(r){n[0]+=" "+e.replace("%s",r.toString())}return n}}};i.line=function(e,t){return{line:function(r){r=r||t;if(r){return e.replace("%s",r.toString())}return null}}};e.exports=i},7121:function(e,t,r){"use strict";const n=r(1017);const s=r(2889);const i=r(3938);e.exports=e=>{if(typeof e!=="string"){throw new TypeError("Expected a string")}const t=i(__filename);const r=t?n.dirname(t):__dirname;const o=s(r,e);const a=require.cache[o];if(a&&a.parent){let e=a.parent.children.length;while(e--){if(a.parent.children[e].id===o){a.parent.children.splice(e,1)}}}delete require.cache[o];const l=require.cache[t];return l===undefined||l.require===undefined?require(o):l.require(o)}},1589:function(e){"use strict";e.exports=function isArrayish(e){if(!e){return false}return e instanceof Array||Array.isArray(e)||e.length>=0&&e.splice instanceof Function}},2982:function(e,t,r){(()=>{var t={"./node_modules/.pnpm/@ampproject+remapping@2.3.0/node_modules/@ampproject/remapping/dist/remapping.umd.js":function(e,t,r){e.exports=function(e,t){"use strict";const r=SegmentObject("",-1,-1,"",null,!1),n=[];function SegmentObject(e,t,r,n,s,i){return{source:e,line:t,column:r,name:n,content:s,ignore:i}}function Source(e,t,r,n,s){return{map:e,sources:t,source:r,content:n,ignore:s}}function MapSource(e,t){return Source(e,t,"",null,!1)}function OriginalSource(e,t,r){return Source(null,n,e,t,r)}function traceMappings(n){const s=new t.GenMapping({file:n.map.file}),{sources:i,map:o}=n,a=o.names,l=e.decodedMappings(o);for(let e=0;e<l.length;e++){const n=l[e];for(let o=0;o<n.length;o++){const l=n[o],c=l[0];let p=r;if(1!==l.length&&(p=originalPositionFor(i[l[1]],l[2],l[3],5===l.length?a[l[4]]:""),null==p))continue;const{column:u,line:d,name:f,content:h,source:m,ignore:y}=p;t.maybeAddSegment(s,e,c,m,d,u,f),m&&null!=h&&t.setSourceContent(s,m,h),y&&t.setIgnore(s,m,!0)}}return s}function originalPositionFor(t,n,s,i){if(!t.map)return SegmentObject(t.source,n,s,i,t.content,t.ignore);const o=e.traceSegment(t.map,n,s);return null==o?null:1===o.length?r:originalPositionFor(t.sources[o[1]],o[2],o[3],5===o.length?t.map.names[o[4]]:i)}function asArray(e){return Array.isArray(e)?e:[e]}function buildSourceMapTree(t,r){const n=asArray(t).map((t=>new e.TraceMap(t,""))),s=n.pop();for(let e=0;e<n.length;e++)if(n[e].sources.length>1)throw new Error(`Transformation map ${e} must have exactly one source file.\nDid you specify these with the most recent transformation maps first?`);let i=build(s,r,"",0);for(let e=n.length-1;e>=0;e--)i=MapSource(n[e],[i]);return i}function build(t,r,n,s){const{resolvedSources:i,sourcesContent:o,ignoreList:a}=t,l=s+1;return MapSource(t,i.map(((t,s)=>{const i={importer:n,depth:l,source:t||"",content:void 0,ignore:void 0},c=r(i.source,i),{source:p,content:u,ignore:d}=i;return c?build(new e.TraceMap(c,p),r,p,l):OriginalSource(p,void 0!==u?u:o?o[s]:null,void 0!==d?d:!!a&&a.includes(s))})))}class SourceMap{constructor(e,r){const n=r.decodedMappings?t.toDecodedMap(e):t.toEncodedMap(e);this.version=n.version,this.file=n.file,this.mappings=n.mappings,this.names=n.names,this.ignoreList=n.ignoreList,this.sourceRoot=n.sourceRoot,this.sources=n.sources,r.excludeContent||(this.sourcesContent=n.sourcesContent)}toString(){return JSON.stringify(this)}}function remapping(e,t,r){const n="object"==typeof r?r:{excludeContent:!!r,decodedMappings:!1},s=buildSourceMapTree(e,t);return new SourceMap(traceMappings(s),n)}return remapping}(r("./node_modules/.pnpm/@jridgewell+trace-mapping@0.3.25/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js"),r("./node_modules/.pnpm/@jridgewell+gen-mapping@0.3.8/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js"))},"./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/files lazy recursive":e=>{function webpackEmptyAsyncContext(e){return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}webpackEmptyAsyncContext.keys=()=>[],webpackEmptyAsyncContext.resolve=webpackEmptyAsyncContext,webpackEmptyAsyncContext.id="./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/files lazy recursive",e.exports=webpackEmptyAsyncContext},"./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/files sync recursive":e=>{function webpackEmptyContext(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}webpackEmptyContext.keys=()=>[],webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id="./node_modules/.pnpm/@babel+core@7.26.0/node_modules/@babel/core/lib/config/files sync recursive",e.exports=webpackEmptyContext},"./node_modules/.pnpm/@babel+plugin-syntax-class-properties@7.12.13_@babel+core@7.26.0/node_modules/@babel/plugin-syntax-class-properties/lib/index.js":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=(0,r("./node_modules/.pnpm/@babel+helper-plugin-utils@7.25.9/node_modules/@babel/helper-plugin-utils/lib/index.js").declare)((e=>(e.assertVersion(7),{name:"syntax-class-properties",manipulateOptions(e,t){t.plugins.push("classProperties","classPrivateProperties","classPrivateMethods")}})));t.default=n},"./node_modules/.pnpm/@jridgewell+gen-mapping@0.3.8/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js":function(e,t,r){!function(e,t,r,n){"use strict";const s=0,i=1,o=2,a=3,l=4,c=-1;class GenMapping{constructor({file:e,sourceRoot:r}={}){this._names=new t.SetArray,this._sources=new t.SetArray,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=r,this._ignoreList=new t.SetArray}}function cast(e){return e}function addSegment(e,t,r,n,s,i,o,a){return addSegmentInternal(!1,e,t,r,n,s,i,o,a)}function addMapping(e,t){return addMappingInternal(!1,e,t)}const maybeAddSegment=(e,t,r,n,s,i,o,a)=>addSegmentInternal(!0,e,t,r,n,s,i,o,a),maybeAddMapping=(e,t)=>addMappingInternal(!0,e,t);function setSourceContent(e,r,n){const{_sources:s,_sourcesContent:i}=cast(e);i[t.put(s,r)]=n}function setIgnore(e,r,n=!0){const{_sources:s,_sourcesContent:i,_ignoreList:o}=cast(e),a=t.put(s,r);a===i.length&&(i[a]=null),n?t.put(o,a):t.remove(o,a)}function toDecodedMap(e){const{_mappings:t,_sources:r,_sourcesContent:n,_names:s,_ignoreList:i}=cast(e);return removeEmptyFinalLines(t),{version:3,file:e.file||void 0,names:s.array,sourceRoot:e.sourceRoot||void 0,sources:r.array,sourcesContent:n,mappings:t,ignoreList:i.array}}function toEncodedMap(e){const t=toDecodedMap(e);return Object.assign(Object.assign({},t),{mappings:r.encode(t.mappings)})}function fromMap(e){const t=new n.TraceMap(e),r=new GenMapping({file:t.file,sourceRoot:t.sourceRoot});return putAll(cast(r)._names,t.names),putAll(cast(r)._sources,t.sources),cast(r)._sourcesContent=t.sourcesContent||t.sources.map((()=>null)),cast(r)._mappings=n.decodedMappings(t),t.ignoreList&&putAll(cast(r)._ignoreList,t.ignoreList),r}function allMappings(e){const t=[],{_mappings:r,_sources:n,_names:c}=cast(e);for(let e=0;e<r.length;e++){const p=r[e];for(let r=0;r<p.length;r++){const u=p[r],d={line:e+1,column:u[s]};let f,h,m;1!==u.length&&(f=n.array[u[i]],h={line:u[o]+1,column:u[a]},5===u.length&&(m=c.array[u[l]])),t.push({generated:d,source:f,original:h,name:m})}}return t}function addSegmentInternal(e,r,n,s,i,o,a,l,p){const{_mappings:u,_sources:d,_sourcesContent:f,_names:h}=cast(r),m=getLine(u,n),y=getColumnIndex(m,s);if(!i){if(e&&skipSourceless(m,y))return;return insert(m,y,[s])}const b=t.put(d,i),g=l?t.put(h,l):c;if(b===f.length&&(f[b]=null!=p?p:null),!e||!skipSource(m,y,b,o,a,g))return insert(m,y,l?[s,b,o,a,g]:[s,b,o,a])}function getLine(e,t){for(let r=e.length;r<=t;r++)e[r]=[];return e[t]}function getColumnIndex(e,t){let r=e.length;for(let n=r-1;n>=0&&!(t>=e[n][s]);r=n--);return r}function insert(e,t,r){for(let r=e.length;r>t;r--)e[r]=e[r-1];e[t]=r}function removeEmptyFinalLines(e){const{length:t}=e;let r=t;for(let t=r-1;t>=0&&!(e[t].length>0);r=t,t--);r<t&&(e.length=r)}function putAll(e,r){for(let n=0;n<r.length;n++)t.put(e,r[n])}function skipSourceless(e,t){return 0===t||1===e[t-1].length}function skipSource(e,t,r,n,s,p){if(0===t)return!1;const u=e[t-1];return 1!==u.length&&r===u[i]&&n===u[o]&&s===u[a]&&p===(5===u.length?u[l]:c)}function addMappingInternal(e,t,r){const{generated:n,source:s,original:i,name:o,content:a}=r;return s?addSegmentInternal(e,t,n.line-1,n.column,s,i.line-1,i.column,o,a):addSegmentInternal(e,t,n.line-1,n.column,null,null,null,null,null)}e.GenMapping=GenMapping,e.addMapping=addMapping,e.addSegment=addSegment,e.allMappings=allMappings,e.fromMap=fromMap,e.maybeAddMapping=maybeAddMapping,e.maybeAddSegment=maybeAddSegment,e.setIgnore=setIgnore,e.setSourceContent=setSourceContent,e.toDecodedMap=toDecodedMap,e.toEncodedMap=toEncodedMap,Object.defineProperty(e,"__esModule",{value:!0})}(t,r("./node_modules/.pnpm/@jridgewell+set-array@1.2.1/node_modules/@jridgewell/set-array/dist/set-array.umd.js"),r("./node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js"),r("./node_modules/.pnpm/@jridgewell+trace-mapping@0.3.25/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js"))},"./node_modules/.pnpm/@jridgewell+resolve-uri@3.1.2/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js":function(e){e.exports=function(){"use strict";const e=/^[\w+.-]+:\/\//,t=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,r=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function isAbsoluteUrl(t){return e.test(t)}function isSchemeRelativeUrl(e){return e.startsWith("//")}function isAbsolutePath(e){return e.startsWith("/")}function isFileUrl(e){return e.startsWith("file:")}function isRelative(e){return/^[.?#]/.test(e)}function parseAbsoluteUrl(e){const r=t.exec(e);return makeUrl(r[1],r[2]||"",r[3],r[4]||"",r[5]||"/",r[6]||"",r[7]||"")}function parseFileUrl(e){const t=r.exec(e),n=t[2];return makeUrl("file:","",t[1]||"","",isAbsolutePath(n)?n:"/"+n,t[3]||"",t[4]||"")}function makeUrl(e,t,r,n,s,i,o){return{scheme:e,user:t,host:r,port:n,path:s,query:i,hash:o,type:7}}function parseUrl(e){if(isSchemeRelativeUrl(e)){const t=parseAbsoluteUrl("http:"+e);return t.scheme="",t.type=6,t}if(isAbsolutePath(e)){const t=parseAbsoluteUrl("http://foo.com"+e);return t.scheme="",t.host="",t.type=5,t}if(isFileUrl(e))return parseFileUrl(e);if(isAbsoluteUrl(e))return parseAbsoluteUrl(e);const t=parseAbsoluteUrl("http://foo.com/"+e);return t.scheme="",t.host="",t.type=e?e.startsWith("?")?3:e.startsWith("#")?2:4:1,t}function stripPathFilename(e){if(e.endsWith("/.."))return e;const t=e.lastIndexOf("/");return e.slice(0,t+1)}function mergePaths(e,t){normalizePath(t,t.type),"/"===e.path?e.path=t.path:e.path=stripPathFilename(t.path)+e.path}function normalizePath(e,t){const r=t<=4,n=e.path.split("/");let s=1,i=0,o=!1;for(let e=1;e<n.length;e++){const t=n[e];t?(o=!1,"."!==t&&(".."!==t?(n[s++]=t,i++):i?(o=!0,i--,s--):r&&(n[s++]=t))):o=!0}let a="";for(let e=1;e<s;e++)a+="/"+n[e];(!a||o&&!a.endsWith("/.."))&&(a+="/"),e.path=a}function resolve(e,t){if(!e&&!t)return"";const r=parseUrl(e);let n=r.type;if(t&&7!==n){const e=parseUrl(t),s=e.type;switch(n){case 1:r.hash=e.hash;case 2:r.query=e.query;case 3:case 4:mergePaths(r,e);case 5:r.user=e.user,r.host=e.host,r.port=e.port;case 6:r.scheme=e.scheme}s>n&&(n=s)}normalizePath(r,n);const s=r.query+r.hash;switch(n){case 2:case 3:return s;case 4:{const n=r.path.slice(1);return n?isRelative(t||e)&&!isRelative(n)?"./"+n+s:n+s:s||"."}case 5:return r.path+s;default:return r.scheme+"//"+r.user+r.host+r.port+r.path+s}}return resolve}()},"./node_modules/.pnpm/@jridgewell+set-array@1.2.1/node_modules/@jridgewell/set-array/dist/set-array.umd.js":function(e,t){!function(e){"use strict";class SetArray{constructor(){this._indexes={__proto__:null},this.array=[]}}function cast(e){return e}function get(e,t){return cast(e)._indexes[t]}function put(e,t){const r=get(e,t);if(void 0!==r)return r;const{array:n,_indexes:s}=cast(e),i=n.push(t);return s[t]=i-1}function pop(e){const{array:t,_indexes:r}=cast(e);0!==t.length&&(r[t.pop()]=void 0)}function remove(e,t){const r=get(e,t);if(void 0===r)return;const{array:n,_indexes:s}=cast(e);for(let e=r+1;e<n.length;e++){const t=n[e];n[e-1]=t,s[t]--}s[t]=void 0,n.pop()}e.SetArray=SetArray,e.get=get,e.pop=pop,e.put=put,e.remove=remove,Object.defineProperty(e,"__esModule",{value:!0})}(t)},"./node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js":function(e,t){!function(e){"use strict";const t=",".charCodeAt(0),r=";".charCodeAt(0),n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=new Uint8Array(64),i=new Uint8Array(128);for(let e=0;e<n.length;e++){const t=n.charCodeAt(e);s[e]=t,i[t]=e}function decodeInteger(e,t){let r=0,n=0,s=0;do{const t=e.next();s=i[t],r|=(31&s)<<n,n+=5}while(32&s);const o=1&r;return r>>>=1,o&&(r=-2147483648|-r),t+r}function encodeInteger(e,t,r){let n=t-r;n=n<0?-n<<1|1:n<<1;do{let t=31&n;n>>>=5,n>0&&(t|=32),e.write(s[t])}while(n>0);return t}function hasMoreVlq(e,r){return!(e.pos>=r)&&e.peek()!==t}const o=16384,a="undefined"!=typeof TextDecoder?new TextDecoder:"undefined"!=typeof Buffer?{decode:e=>Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}:{decode(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t}};class StringWriter{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(o)}write(e){const{buffer:t}=this;t[this.pos++]=e,this.pos===o&&(this.out+=a.decode(t),this.pos=0)}flush(){const{buffer:e,out:t,pos:r}=this;return r>0?t+a.decode(e.subarray(0,r)):t}}class StringReader{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:t,pos:r}=this,n=t.indexOf(e,r);return-1===n?t.length:n}}const l=[];function decodeOriginalScopes(e){const{length:t}=e,r=new StringReader(e),n=[],s=[];let i=0;for(;r.pos<t;r.pos++){i=decodeInteger(r,i);const e=decodeInteger(r,0);if(!hasMoreVlq(r,t)){const t=s.pop();t[2]=i,t[3]=e;continue}const o=decodeInteger(r,0),a=1&decodeInteger(r,0)?[i,e,0,0,o,decodeInteger(r,0)]:[i,e,0,0,o];let c=l;if(hasMoreVlq(r,t)){c=[];do{const e=decodeInteger(r,0);c.push(e)}while(hasMoreVlq(r,t))}a.vars=c,n.push(a),s.push(a)}return n}function encodeOriginalScopes(e){const t=new StringWriter;for(let r=0;r<e.length;)r=_encodeOriginalScopes(e,r,t,[0]);return t.flush()}function _encodeOriginalScopes(e,r,n,s){const i=e[r],{0:o,1:a,2:l,3:c,4:p,vars:u}=i;r>0&&n.write(t),s[0]=encodeInteger(n,o,s[0]),encodeInteger(n,a,0),encodeInteger(n,p,0),encodeInteger(n,6===i.length?1:0,0),6===i.length&&encodeInteger(n,i[5],0);for(const e of u)encodeInteger(n,e,0);for(r++;r<e.length;){const t=e[r],{0:i,1:o}=t;if(i>l||i===l&&o>=c)break;r=_encodeOriginalScopes(e,r,n,s)}return n.write(t),s[0]=encodeInteger(n,l,s[0]),encodeInteger(n,c,0),r}function decodeGeneratedRanges(e){const{length:t}=e,r=new StringReader(e),n=[],s=[];let i=0,o=0,a=0,c=0,p=0,u=0,d=0,f=0;do{const e=r.indexOf(";");let t=0;for(;r.pos<e;r.pos++){if(t=decodeInteger(r,t),!hasMoreVlq(r,e)){const e=s.pop();e[2]=i,e[3]=t;continue}const h=decodeInteger(r,0),m=2&h,y=4&h;let b,g=null,v=l;if(1&h){const e=decodeInteger(r,o);a=decodeInteger(r,o===e?a:0),o=e,b=[i,t,0,0,e,a]}else b=[i,t,0,0];if(b.isScope=!!y,m){const e=c,t=p;c=decodeInteger(r,c);const n=e===c;p=decodeInteger(r,n?p:0),u=decodeInteger(r,n&&t===p?u:0),g=[c,p,u]}if(b.callsite=g,hasMoreVlq(r,e)){v=[];do{d=i,f=t;const e=decodeInteger(r,0);let n;if(e<-1){n=[[decodeInteger(r,0)]];for(let t=-1;t>e;t--){const e=d;d=decodeInteger(r,d),f=decodeInteger(r,d===e?f:0);const t=decodeInteger(r,0);n.push([t,d,f])}}else n=[[e]];v.push(n)}while(hasMoreVlq(r,e))}b.bindings=v,n.push(b),s.push(b)}i++,r.pos=e+1}while(r.pos<t);return n}function encodeGeneratedRanges(e){if(0===e.length)return"";const t=new StringWriter;for(let r=0;r<e.length;)r=_encodeGeneratedRanges(e,r,t,[0,0,0,0,0,0,0]);return t.flush()}function _encodeGeneratedRanges(e,r,n,s){const i=e[r],{0:o,1:a,2:l,3:c,isScope:p,callsite:u,bindings:d}=i;if(s[0]<o?(catchupLine(n,s[0],o),s[0]=o,s[1]=0):r>0&&n.write(t),s[1]=encodeInteger(n,i[1],s[1]),encodeInteger(n,(6===i.length?1:0)|(u?2:0)|(p?4:0),0),6===i.length){const{4:e,5:t}=i;e!==s[2]&&(s[3]=0),s[2]=encodeInteger(n,e,s[2]),s[3]=encodeInteger(n,t,s[3])}if(u){const{0:e,1:t,2:r}=i.callsite;e!==s[4]?(s[5]=0,s[6]=0):t!==s[5]&&(s[6]=0),s[4]=encodeInteger(n,e,s[4]),s[5]=encodeInteger(n,t,s[5]),s[6]=encodeInteger(n,r,s[6])}if(d)for(const e of d){e.length>1&&encodeInteger(n,-e.length,0),encodeInteger(n,e[0][0],0);let t=o,r=a;for(let s=1;s<e.length;s++){const i=e[s];t=encodeInteger(n,i[1],t),r=encodeInteger(n,i[2],r),encodeInteger(n,i[0],0)}}for(r++;r<e.length;){const t=e[r],{0:i,1:o}=t;if(i>l||i===l&&o>=c)break;r=_encodeGeneratedRanges(e,r,n,s)}return s[0]<l?(catchupLine(n,s[0],l),s[0]=l,s[1]=0):n.write(t),s[1]=encodeInteger(n,c,s[1]),r}function catchupLine(e,t,n){do{e.write(r)}while(++t<n)}function decode(e){const{length:t}=e,r=new StringReader(e),n=[];let s=0,i=0,o=0,a=0,l=0;do{const e=r.indexOf(";"),t=[];let c=!0,p=0;for(s=0;r.pos<e;){let n;s=decodeInteger(r,s),s<p&&(c=!1),p=s,hasMoreVlq(r,e)?(i=decodeInteger(r,i),o=decodeInteger(r,o),a=decodeInteger(r,a),hasMoreVlq(r,e)?(l=decodeInteger(r,l),n=[s,i,o,a,l]):n=[s,i,o,a]):n=[s],t.push(n),r.pos++}c||sort(t),n.push(t),r.pos=e+1}while(r.pos<=t);return n}function sort(e){e.sort(sortComparator)}function sortComparator(e,t){return e[0]-t[0]}function encode(e){const n=new StringWriter;let s=0,i=0,o=0,a=0;for(let l=0;l<e.length;l++){const c=e[l];if(l>0&&n.write(r),0===c.length)continue;let p=0;for(let e=0;e<c.length;e++){const r=c[e];e>0&&n.write(t),p=encodeInteger(n,r[0],p),1!==r.length&&(s=encodeInteger(n,r[1],s),i=encodeInteger(n,r[2],i),o=encodeInteger(n,r[3],o),4!==r.length&&(a=encodeInteger(n,r[4],a)))}}return n.flush()}e.decode=decode,e.decodeGeneratedRanges=decodeGeneratedRanges,e.decodeOriginalScopes=decodeOriginalScopes,e.encode=encode,e.encodeGeneratedRanges=encodeGeneratedRanges,e.encodeOriginalScopes=encodeOriginalScopes,Object.defineProperty(e,"__esModule",{value:!0})}(t)},"./node_modules/.pnpm/@jridgewell+trace-mapping@0.3.25/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js":function(e,t,r){!function(e,t,r){"use strict";function resolve(e,t){return t&&!t.endsWith("/")&&(t+="/"),r(e,t)}function stripFilename(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}const n=0,s=1,i=2,o=3,a=4,l=1,c=2;function maybeSort(e,t){const r=nextUnsortedSegmentLine(e,0);if(r===e.length)return e;t||(e=e.slice());for(let n=r;n<e.length;n=nextUnsortedSegmentLine(e,n+1))e[n]=sortSegments(e[n],t);return e}function nextUnsortedSegmentLine(e,t){for(let r=t;r<e.length;r++)if(!isSorted(e[r]))return r;return e.length}function isSorted(e){for(let t=1;t<e.length;t++)if(e[t][n]<e[t-1][n])return!1;return!0}function sortSegments(e,t){return t||(e=e.slice()),e.sort(sortComparator)}function sortComparator(e,t){return e[n]-t[n]}let p=!1;function binarySearch(e,t,r,s){for(;r<=s;){const i=r+(s-r>>1),o=e[i][n]-t;if(0===o)return p=!0,i;o<0?r=i+1:s=i-1}return p=!1,r-1}function upperBound(e,t,r){for(let s=r+1;s<e.length&&e[s][n]===t;r=s++);return r}function lowerBound(e,t,r){for(let s=r-1;s>=0&&e[s][n]===t;r=s--);return r}function memoizedState(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function memoizedBinarySearch(e,t,r,s){const{lastKey:i,lastNeedle:o,lastIndex:a}=r;let l=0,c=e.length-1;if(s===i){if(t===o)return p=-1!==a&&e[a][n]===t,a;t>=o?l=-1===a?0:a:c=a}return r.lastKey=s,r.lastNeedle=t,r.lastIndex=binarySearch(e,t,l,c)}function buildBySources(e,t){const r=t.map(buildNullArray);for(let a=0;a<e.length;a++){const l=e[a];for(let e=0;e<l.length;e++){const c=l[e];if(1===c.length)continue;const p=c[s],u=c[i],d=c[o],f=r[p],h=f[u]||(f[u]=[]),m=t[p];let y=upperBound(h,d,memoizedBinarySearch(h,d,m,u));m.lastIndex=++y,insert(h,y,[d,a,c[n]])}}return r}function insert(e,t,r){for(let r=e.length;r>t;r--)e[r]=e[r-1];e[t]=r}function buildNullArray(){return{__proto__:null}}const AnyMap=function(e,t){const r=parse(e);if(!("sections"in r))return new TraceMap(r,t);const n=[],s=[],i=[],o=[],a=[];return recurse(r,t,n,s,i,o,a,0,0,1/0,1/0),presortedDecodedMap({version:3,file:r.file,names:o,sources:s,sourcesContent:i,mappings:n,ignoreList:a})};function parse(e){return"string"==typeof e?JSON.parse(e):e}function recurse(e,t,r,n,s,i,o,a,l,c,p){const{sections:u}=e;for(let e=0;e<u.length;e++){const{map:d,offset:f}=u[e];let h=c,m=p;if(e+1<u.length){const t=u[e+1].offset;h=Math.min(c,a+t.line),h===c?m=Math.min(p,l+t.column):h<c&&(m=l+t.column)}addSection(d,t,r,n,s,i,o,a+f.line,l+f.column,h,m)}}function addSection(e,t,r,l,c,p,u,d,f,h,m){const y=parse(e);if("sections"in y)return recurse(...arguments);const b=new TraceMap(y,t),g=l.length,v=p.length,E=decodedMappings(b),{resolvedSources:x,sourcesContent:S,ignoreList:T}=b;if(append(l,x),append(p,b.names),S)append(c,S);else for(let e=0;e<x.length;e++)c.push(null);if(T)for(let e=0;e<T.length;e++)u.push(T[e]+g);for(let e=0;e<E.length;e++){const t=d+e;if(t>h)return;const l=getLine(r,t),c=0===e?f:0,p=E[e];for(let e=0;e<p.length;e++){const r=p[e],u=c+r[n];if(t===h&&u>=m)return;if(1===r.length){l.push([u]);continue}const d=g+r[s],f=r[i],y=r[o];l.push(4===r.length?[u,d,f,y]:[u,d,f,y,v+r[a]])}}}function append(e,t){for(let r=0;r<t.length;r++)e.push(t[r])}function getLine(e,t){for(let r=e.length;r<=t;r++)e[r]=[];return e[t]}const u="`line` must be greater than 0 (lines start at line 1)",d="`column` must be greater than or equal to 0 (columns start at column 0)",f=-1,h=1;class TraceMap{constructor(e,t){const r="string"==typeof e;if(!r&&e._decodedMemo)return e;const n=r?JSON.parse(e):e,{version:s,file:i,names:o,sourceRoot:a,sources:l,sourcesContent:c}=n;this.version=s,this.file=i,this.names=o||[],this.sourceRoot=a,this.sources=l,this.sourcesContent=c,this.ignoreList=n.ignoreList||n.x_google_ignoreList||void 0;const p=resolve(a||"",stripFilename(t));this.resolvedSources=l.map((e=>resolve(e||"",p)));const{mappings:u}=n;"string"==typeof u?(this._encoded=u,this._decoded=void 0):(this._encoded=void 0,this._decoded=maybeSort(u,r)),this._decodedMemo=memoizedState(),this._bySources=void 0,this._bySourceMemos=void 0}}function cast(e){return e}function encodedMappings(e){var r,n;return null!==(r=(n=cast(e))._encoded)&&void 0!==r?r:n._encoded=t.encode(cast(e)._decoded)}function decodedMappings(e){var r;return(r=cast(e))._decoded||(r._decoded=t.decode(cast(e)._encoded))}function traceSegment(e,t,r){const n=decodedMappings(e);if(t>=n.length)return null;const s=n[t],i=traceSegmentInternal(s,cast(e)._decodedMemo,t,r,h);return-1===i?null:s[i]}function originalPositionFor(e,t){let{line:r,column:n,bias:l}=t;if(r--,r<0)throw new Error(u);if(n<0)throw new Error(d);const c=decodedMappings(e);if(r>=c.length)return OMapping(null,null,null,null);const p=c[r],f=traceSegmentInternal(p,cast(e)._decodedMemo,r,n,l||h);if(-1===f)return OMapping(null,null,null,null);const m=p[f];if(1===m.length)return OMapping(null,null,null,null);const{names:y,resolvedSources:b}=e;return OMapping(b[m[s]],m[i]+1,m[o],5===m.length?y[m[a]]:null)}function generatedPositionFor(e,t){const{source:r,line:n,column:s,bias:i}=t;return generatedPosition(e,r,n,s,i||h,!1)}function allGeneratedPositionsFor(e,t){const{source:r,line:n,column:s,bias:i}=t;return generatedPosition(e,r,n,s,i||f,!0)}function eachMapping(e,t){const r=decodedMappings(e),{names:n,resolvedSources:s}=e;for(let e=0;e<r.length;e++){const i=r[e];for(let r=0;r<i.length;r++){const o=i[r],a=e+1,l=o[0];let c=null,p=null,u=null,d=null;1!==o.length&&(c=s[o[1]],p=o[2]+1,u=o[3]),5===o.length&&(d=n[o[4]]),t({generatedLine:a,generatedColumn:l,source:c,originalLine:p,originalColumn:u,name:d})}}}function sourceIndex(e,t){const{sources:r,resolvedSources:n}=e;let s=r.indexOf(t);return-1===s&&(s=n.indexOf(t)),s}function sourceContentFor(e,t){const{sourcesContent:r}=e;if(null==r)return null;const n=sourceIndex(e,t);return-1===n?null:r[n]}function isIgnored(e,t){const{ignoreList:r}=e;if(null==r)return!1;const n=sourceIndex(e,t);return-1!==n&&r.includes(n)}function presortedDecodedMap(e,t){const r=new TraceMap(clone(e,[]),t);return cast(r)._decoded=e.mappings,r}function decodedMap(e){return clone(e,decodedMappings(e))}function encodedMap(e){return clone(e,encodedMappings(e))}function clone(e,t){return{version:e.version,file:e.file,names:e.names,sourceRoot:e.sourceRoot,sources:e.sources,sourcesContent:e.sourcesContent,mappings:t,ignoreList:e.ignoreList||e.x_google_ignoreList}}function OMapping(e,t,r,n){return{source:e,line:t,column:r,name:n}}function GMapping(e,t){return{line:e,column:t}}function traceSegmentInternal(e,t,r,n,s){let i=memoizedBinarySearch(e,n,t,r);return p?i=(s===f?upperBound:lowerBound)(e,n,i):s===f&&i++,-1===i||i===e.length?-1:i}function sliceGeneratedPositions(e,t,r,s,i){let o=traceSegmentInternal(e,t,r,s,h);if(p||i!==f||o++,-1===o||o===e.length)return[];const a=p?s:e[o][n];p||(o=lowerBound(e,a,o));const u=upperBound(e,a,o),d=[];for(;o<=u;o++){const t=e[o];d.push(GMapping(t[l]+1,t[c]))}return d}function generatedPosition(e,t,r,n,s,i){var o;if(--r<0)throw new Error(u);if(n<0)throw new Error(d);const{sources:a,resolvedSources:p}=e;let f=a.indexOf(t);if(-1===f&&(f=p.indexOf(t)),-1===f)return i?[]:GMapping(null,null);const h=((o=cast(e))._bySources||(o._bySources=buildBySources(decodedMappings(e),cast(e)._bySourceMemos=a.map(memoizedState))))[f][r];if(null==h)return i?[]:GMapping(null,null);const m=cast(e)._bySourceMemos[f];if(i)return sliceGeneratedPositions(h,m,r,n,s);const y=traceSegmentInternal(h,m,r,n,s);if(-1===y)return GMapping(null,null);const b=h[y];return GMapping(b[l]+1,b[c])}e.AnyMap=AnyMap,e.GREATEST_LOWER_BOUND=h,e.LEAST_UPPER_BOUND=f,e.TraceMap=TraceMap,e.allGeneratedPositionsFor=allGeneratedPositionsFor,e.decodedMap=decodedMap,e.decodedMappings=decodedMappings,e.eachMapping=eachMapping,e.encodedMap=encodedMap,e.encodedMappings=encodedMappings,e.generatedPositionFor=generatedPositionFor,e.isIgnored=isIgnored,e.originalPositionFor=originalPositionFor,e.presortedDecodedMap=presortedDecodedMap,e.sourceContentFor=sourceContentFor,e.traceSegment=traceSegment}(t,r("./node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js"),r("./node_modules/.pnpm/@jridgewell+resolve-uri@3.1.2/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js"))},"./node_modules/.pnpm/babel-plugin-dynamic-import-node@2.3.3/node_modules/babel-plugin-dynamic-import-node/lib/index.js":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=(0,n.createDynamicImportTransform)(e);return{manipulateOptions:function(e,t){t.plugins.push("dynamicImport")},visitor:{Import:function(e){t(this,e)}}}};var n=r("./node_modules/.pnpm/babel-plugin-dynamic-import-node@2.3.3/node_modules/babel-plugin-dynamic-import-node/lib/utils.js");e.exports=t.default},"./node_modules/.pnpm/babel-plugin-dynamic-import-node@2.3.3/node_modules/babel-plugin-dynamic-import-node/lib/utils.js":(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var _slicedToArray=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,s=!1,i=void 0;try{for(var o,a=e[Symbol.iterator]();!(n=(o=a.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(e){s=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(s)throw i}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function getImportSource(e,t){var r=t.arguments,n=_slicedToArray(r,1)[0];return e.isStringLiteral(n)||e.isTemplateLiteral(n)?(e.removeComments(n),n):e.templateLiteral([e.templateElement({raw:"",cooked:""}),e.templateElement({raw:"",cooked:""},!0)],r)}t.getImportSource=getImportSource,t.createDynamicImportTransform=function(e){var t=e.template,r=e.types,n