@visulima/packem 2.0.0-alpha.94 → 2.0.0-alpha.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist/babel-runtime/packem_shared/transform-code-D_76zJ_u.js +1 -0
- package/dist/babel-runtime/plugins/babel/worker.js +1 -1
- package/dist/builder/typedoc/index.js +3 -3
- package/dist/cli/index.js +8 -8
- package/dist/config/preset/preact.d.ts +2 -2
- package/dist/config/preset/react.d.ts +2 -2
- package/dist/config/preset/solid.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/packem_shared/create-or-update-key-storage-DbvoG0IR.js +2 -0
- package/dist/packem_shared/default-LwDqaoc0.js +1 -0
- package/dist/packem_shared/{index-D_5MmI7f.js → index-CnKWFiuf.js} +165 -168
- package/dist/packem_shared/index-KXVG6Tyr.js +25 -0
- package/dist/packem_shared/oxcResolvePlugin-DERMXYPc-CqFUTcUY.js +1 -0
- package/dist/packem_shared/oxcTransformPlugin-B5ATuMoi-DwCO2qaH.js +151 -0
- package/dist/rollup/plugins/oxc/oxc-transformer.js +1 -1
- package/package.json +6 -6
- package/dist/babel-runtime/packem_shared/transform-code-DtqOY-lW.js +0 -1
- package/dist/packem_shared/create-or-update-key-storage-BFOAEuWX.js +0 -26
- package/dist/packem_shared/default-BSbw_3ev.js +0 -1
- package/dist/packem_shared/oxcTransformPlugin-Dwvbw2jE-CI_T_eTp.js +0 -168
- package/dist/packem_shared/utils-DqCpIxDx.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
## @visulima/packem [2.0.0-alpha.96](https://github.com/visulima/packem/compare/%40visulima%2Fpackem%402.0.0-alpha.95...%40visulima%2Fpackem%402.0.0-alpha.96) (2026-07-16)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Dependencies
|
|
5
|
+
|
|
6
|
+
* **@visulima/packem-share:** upgraded to 1.0.0-alpha.53
|
|
7
|
+
* **@visulima/rollup-plugin-css:** upgraded to 1.0.0-alpha.57
|
|
8
|
+
* **@visulima/rollup-plugin-dts:** upgraded to 1.0.0-alpha.38
|
|
9
|
+
* **@visulima/packem-rollup:** upgraded to 1.0.0-alpha.78
|
|
10
|
+
|
|
11
|
+
## @visulima/packem [2.0.0-alpha.95](https://github.com/visulima/packem/compare/%40visulima%2Fpackem%402.0.0-alpha.94...%40visulima%2Fpackem%402.0.0-alpha.95) (2026-07-16)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Dependencies
|
|
15
|
+
|
|
16
|
+
* **@visulima/packem-share:** upgraded to 1.0.0-alpha.52
|
|
17
|
+
* **@visulima/rollup-plugin-css:** upgraded to 1.0.0-alpha.56
|
|
18
|
+
* **@visulima/rollup-plugin-dts:** upgraded to 1.0.0-alpha.37
|
|
19
|
+
* **@visulima/packem-rollup:** upgraded to 1.0.0-alpha.77
|
|
20
|
+
|
|
1
21
|
## @visulima/packem [2.0.0-alpha.94](https://github.com/visulima/packem/compare/%40visulima%2Fpackem%402.0.0-alpha.93...%40visulima%2Fpackem%402.0.0-alpha.94) (2026-07-15)
|
|
2
22
|
|
|
3
23
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{transformAsync as c}from"@babel/core";const u=/\.tsx?$/,m=/['"]use memo['"]/,A="babel-options",h="__packem_babel_missing_options__",g=t=>t.find(s=>s==="babel-plugin-react-compiler"||Array.isArray(s)&&s[0]==="babel-plugin-react-compiler"),d=(t,s)=>{if(t.length===0)return;const r=g(t);if(!(!r||!Array.isArray(r))&&r[1]?.compilationMode==="annotation"&&!m.test(s)){const o=t.indexOf(r);o!==-1&&t.splice(o,1)}},b=async(t,s,{filename:r,generatorOpts:o,sourceFileName:f,...e})=>{let n=[];e.plugins&&Array.isArray(e.plugins)&&(n=[...e.plugins]),n.length>0&&d(n,t);const a=[];(s.endsWith(".jsx")||s.endsWith(".tsx"))&&a.push("jsx"),u.test(s)&&a.push("typescript");const i=e.parserOpts?.plugins;i&&Array.isArray(i)&&a.unshift(...i);const l=[...new Set(a)],p=await c(t,{...e,filename:s,generatorOpts:o,parserOpts:{...e.parserOpts,allowAwaitOutsideFunction:!0,plugins:l.length>0?l:[],sourceType:"module"},plugins:n.length>0?n:[],sourceFileName:s});if(p?.code)return{code:p.code,map:p.map??void 0}};export{h as d,A as g,b as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import a from"workerpool";import{d,t as m}from"../../packem_shared/transform-code-D_76zJ_u.js";const n=new Map,f=async(e,s,r,o)=>{o!==void 0&&n.set(r,o);const t=n.get(r);if(t===void 0)throw new Error(d);return m(e,s,t)};a.worker({transform:f});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{
|
|
2
|
-
${i}`);if(!p){n.error({message:`Could not find the typedoc marker: <!-- ${t} --><!-- /${t} --> in ${r}`,prefix:"typedoc"});return}c!==p
|
|
3
|
-
`),n.info({message:`Using ${
|
|
1
|
+
import{f as w,q as k}from"../../packem_shared/create-or-update-key-storage-DbvoG0IR.js";import{v as h,m,T as $}from"../../packem_shared/index-KXVG6Tyr.js";import{readdirSync as E}from"node:fs";import{replaceContentWithinMarker as j}from"@visulima/packem-share";import{Application as A}from"typedoc";const v=(e,o,t,r,n)=>{const s=E(e,{withFileTypes:!0}).filter(a=>a.isFile());let i="";for(const a of s)a.name==="README.md"&&o>1||(i+=h(m(e,a.name)).replaceAll(`<!-- ${t}`,`<!-- _REPLACE_${t}`).replaceAll("<!-- ${marker}",`<!-- _REPLACE_\\${t}`));if(i==="")return;const c=h(r),p=j(c,t,`
|
|
2
|
+
${i}`);if(!p){n.error({message:`Could not find the typedoc marker: <!-- ${t} --><!-- /${t} --> in ${r}`,prefix:"typedoc"});return}c!==p&&$(r,p.replaceAll(`<!-- _REPLACE_${t}`,`<!-- ${t}`).replaceAll(`<!-- _REPLACE_\\${t}`,"<!-- ${marker}"),{overwrite:!0})},P=(e,o,t,r)=>{if(e==="inline"&&t===void 0)throw new Error("The `readmePath` option is required when using the `inline` format.");if(e!=="inline"&&typeof t=="string"&&r.warn({message:"The `readmePath` option is only used when the `inline` format is used.",prefix:"typedoc"}),e==="json"&&!o?.endsWith(".json"))throw new Error(o===void 0?"The `jsonFileName` option is required when using the `json` format.":"The `jsonFileName` option must end with `.json`.");e!=="json"&&typeof o=="string"&&r.warn({message:"The `jsonFileName` option is only used when the `json` format is used.",prefix:"typedoc"})},C=async(e,o,t,r)=>{if(o.length===0)return;const{format:n,jsonFileName:s,marker:i,output:c,plugin:p,readmePath:a,...f}=e;P(n,s,a,r);const y=o.map(g=>g.input),u=p??[];u.push("typedoc-plugin-rename-defaults"),(n==="inline"||n==="markdown")&&u.push("typedoc-plugin-markdown");const l=await A.bootstrapWithPlugins({...f,compilerOptions:{allowJs:!0,declaration:!1,declarationMap:!1,esModuleInterop:!0,module:99,moduleResolution:100,noEmit:!0,noImplicitAny:!1,skipLibCheck:!0,sourceMap:!1,target:99,...f.compilerOptions},entryPoints:y,hideGenerator:!0,out:t,plugin:u,...n==="inline"?{hideBreadcrumbs:!0,hidePageHeader:!0,navigation:!1,outputFileStrategy:"modules",useCodeBlocks:!0}:{}},[]),d=await l.convert();if(d){if(n==="json")await l.generateJson(d,s);else if(n==="html")await l.generateDocs(d,t);else if(await l.generateOutputs(d),n==="inline"){if(i===void 0)throw new Error("The `marker` option is required when using the `inline` format.");v(t,o.length,i,a,r)}}},T=e=>e.logger,L=async(e,o,t,r)=>{if(e.options.typedoc&&e.options.typedoc.format!==void 0){const n=T(e);let s="unknown";e.pkg.dependencies?.typedoc?s=e.pkg.dependencies.typedoc:e.pkg.devDependencies?.typedoc&&(s=e.pkg.devDependencies.typedoc),o&&w("typedoc",o,n),r&&n.raw(`
|
|
3
|
+
`),n.info({message:`Using ${k("typedoc")} ${s} to generate reference documentation`,prefix:"typedoc"}),await e.hooks.callHook("typedoc:before",e);let i=e.options.rootDir;e.options.typedoc.output?i=e.options.typedoc.output:e.options.typedoc.format==="inline"&&o?i=m(o,"typedoc"):e.options.typedoc.format!=="json"&&(i=m(i,"api-docs")),await C(e.options.typedoc,e.options.entries,i,n),await e.hooks.callHook("typedoc:done",e)}};export{L as default};
|
package/dist/cli/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{createCerebro as Q}from"@visulima/cerebro";import Z from"@visulima/cerebro/logger/pail";import{d as A,
|
|
2
|
+
import{createCerebro as Q}from"@visulima/cerebro";import Z from"@visulima/cerebro/logger/pail";import{d as A,m as ee,f as te,g as se,h as ae,j as ie,T as ne,l as R,v as re,n as oe,i as ce}from"../packem_shared/index-CnKWFiuf.js";import k,{cwd as N,exit as le}from"node:process";import{installPackage as h}from"@antfu/install-pkg";import{spinner as D,confirm as f,cancel as B,select as g,multiselect as q,intro as G,log as E,outro as K,isCancel as z}from"@clack/prompts";import{B as O,z as de,q as ue,m as b,f as M,T as pe,O as me}from"../packem_shared/index-KXVG6Tyr.js";import{y as U}from"../packem_shared/oxcTransformPlugin-B5ATuMoi-DwCO2qaH.js";import fe from"magic-string";import{exec as ge}from"tinyexec";import{PRODUCTION_ENV as W,DEVELOPMENT_ENV as ye}from"@visulima/packem-share/constants";import{createJiti as we}from"jiti";import{writeFile as F,readFile as be}from"node:fs/promises";import{q as he}from"../packem_shared/create-or-update-key-storage-DbvoG0IR.js";import{existsSync as V}from"node:fs";import{parseEnv as J}from"node:util";import{createInterface as ve}from"node:readline/promises";import __cjs_mod__ from "node:module"; // -- packem CommonJS require shim --
|
|
3
3
|
const require = __cjs_mod__.createRequire(import.meta.url);
|
|
4
4
|
const _={less:["less"],lightningcss:["lightningcss"],"node-sass":["node-sass"],postcss:["postcss","postcss-load-config","postcss-modules-extract-imports","postcss-modules-local-by-default","postcss-modules-scope","postcss-modules-values","postcss-value-parser","@csstools/css-parser-algorithms","@csstools/css-tokenizer","@csstools/postcss-slow-plugins","icss-utils","@visulima/css-style-inject"],sass:["sass"],"sass-embedded":["sass-embedded"],stylus:["stylus"],tailwindcss:["@tailwindcss/node","@tailwindcss/oxide","tailwindcss"]},ke=/defineConfig\s*\(\s*\{/,$e=/preset:\s*['"][^'"]+['"]/,Se=["typedoc","typedoc-plugin-markdown","typedoc-plugin-rename-defaults"],Ce=["@babel/core","@babel/preset-react"],je=["react","react-dom"],xe=["@babel/core","babel-preset-solid"],Pe=["solid-js"],Ee=["@babel/core","@babel/preset-react","babel-plugin-transform-hook-names"],De=["preact"],Oe=["unplugin-vue"],Le=["vue"],Ie=["rollup-plugin-svelte"],Me=["svelte"],$=(t,e,a)=>t.includes(`preset: '${e}'`)||t.includes(`preset: "${e}"`)||t.includes(`preset: '${e}',`)||t.includes(`preset: "${e}",`)||t.includes(a)||t.includes(`@visulima/packem/config/preset/${e}`),S=(t,e)=>{const{logger:a,magic:s,packemConfig:i}=t,n=ke.exec(i);if(n?.index!==void 0){const r=n.index+n[0].length;if(i.includes("preset:")){const o=$e.exec(i);if(o)s.replace(o[0],`preset: '${e}'`);else throw a.warn(`A preset already exists in the config. Please manually set it to '${e}'.`),new Error("Preset exists but is not a string")}else s.appendLeft(r,`
|
|
5
5
|
preset: '${e}',`)}else if(i.includes("transformer:"))s.replace("transformer:",`preset: '${e}',
|
|
6
6
|
transformer:`);else{const r=i.indexOf("{");r!==-1&&s.appendLeft(r+1,`
|
|
7
|
-
preset: '${e}',`)}},Ne=async t=>{try{return((await
|
|
7
|
+
preset: '${e}',`)}},Ne=async t=>{try{return((await ge("git",["status","--porcelain"],{nodeOptions:{cwd:t,stdio:["pipe","pipe","pipe"]}})).stdout?.trim().length??0)>0}catch{return!1}},H=async t=>{const e=b(t,"package.json"),a=await U(e,{resolveCatalogs:!0});return!!(a.devDependencies?.typescript??a.dependencies?.typescript)},Be=async t=>{const e=await H(t),a=[...je],s=[...Ce];return e?s.push("@types/react","@types/react-dom"):await f({initialValue:!1,message:"Do you want to use TypeScript?"})&&s.push("typescript","@types/react","@types/react-dom"),{devPackages:s,packages:a}},C=async(t,e,a)=>{const{rootDirectory:s,spinner:i}=t;i.start("Installing packages"),await h(a,{cwd:s,dev:!1,silent:!0}),await h(e,{cwd:s,dev:!0,silent:!0}),i.stop("Installed packages")},Ve=async t=>{const{logger:e,magic:a,packemConfig:s,packemConfigFormat:i,rootDirectory:n,spinner:r,transformerReplaceKey:o,transformerSearchKey:c}=t;if(s.includes("typedoc: typedocBuilder")||s.includes("@visulima/packem/builder/typedoc")){e.warn("Typedoc has already been added to the packem config.");return}i==="cjs"?a.prepend(`const typedocBuilder = require("@visulima/packem/builder/typedoc");
|
|
8
8
|
`):a.prepend(`import typedocBuilder from "@visulima/packem/builder/typedoc";
|
|
9
9
|
`),s.includes("builder: {")?a.replace("builder: {",`builder: {
|
|
10
10
|
typedoc: typedocBuilder,
|
|
@@ -17,7 +17,7 @@ React preset added!`)},Te=async t=>{const{logger:e,packemConfig:a}=t;if($(a,"sol
|
|
|
17
17
|
Solid preset added!`)},Ae=async t=>{const e=await H(t),a=[...De],s=[...Ee];return e?s.push("@types/preact"):await f({initialValue:!1,message:"Do you want to use TypeScript?"})&&s.push("typescript","@types/preact"),{devPackages:s,packages:a}},qe=async t=>{const{logger:e,packemConfig:a}=t;if($(a,"preact","createPreactPreset")){e.warn("Preact preset has already been added to the packem config.");return}S(t,"preact");const{devPackages:s,packages:i}=await Ae(t.rootDirectory);e.info("Adding Preact dependencies..."),await C(t,s,i),e.success(`
|
|
18
18
|
Preact preset added!`)},Ge=async t=>{const{logger:e,packemConfig:a}=t;if($(a,"vue","createVuePreset")){e.warn("Vue preset has already been added to the packem config.");return}S(t,"vue"),e.info("Adding Vue dependencies..."),await C(t,Oe,Le),e.success(`
|
|
19
19
|
Vue preset added!`)},Ke=async t=>{const{logger:e,packemConfig:a}=t;if($(a,"svelte","createSveltePreset")){e.warn("Svelte preset has already been added to the packem config.");return}S(t,"svelte"),e.info("Adding Svelte dependencies..."),await C(t,Ie,Me),e.success(`
|
|
20
|
-
Svelte preset added!`)},ze=async()=>{const t=[],e=await g({message:"Pick a css loader",options:[{label:"PostCSS",value:"postcss"},{hint:"experimental",label:"Lightning CSS",value:"lightningcss"},{hint:"Tailwind Css Oxide",label:"Tailwind CSS",value:"tailwindcss"}]});if(t.push(e),e!=="tailwindcss"){let a=await
|
|
20
|
+
Svelte preset added!`)},ze=async()=>{const t=[],e=await g({message:"Pick a css loader",options:[{label:"PostCSS",value:"postcss"},{hint:"experimental",label:"Lightning CSS",value:"lightningcss"},{hint:"Tailwind Css Oxide",label:"Tailwind CSS",value:"tailwindcss"}]});if(t.push(e),e!=="tailwindcss"){let a=await q({message:"Pick extra loaders",options:[{label:"Sass",value:"sass"},{label:"Stylus",value:"stylus"},{label:"Less",value:"less"}],required:!1});if(a.includes("sass")){const s=await g({message:"Pick a sass loader",options:[{hint:"recommended",label:"Sass embedded",value:"sass-embedded"},{label:"Sass",value:"sass"},{hint:"legacy",label:"Node Sass",value:"node-sass"}]});s!=="sass"&&(a=a.filter(i=>i!=="sass"),a.push(s))}t.push(...a)}return{cssLoaders:t,mainCssLoader:e}},Ue=async(t,e,a,s)=>{if(!await f({initialValue:!1,message:"Do you want to minify your css?"}))return;const i=await g({message:"Pick a css minifier",options:[{label:"CSSNano",value:"cssnano"},{label:"Lightning CSS",value:"lightningcss"}]});return a.includes("lightningcss")||s.push(i),e==="cjs"?t.prepend(`const ${i}Minifier = require("@visulima/packem/css/minifier/${i.toLowerCase()}");
|
|
21
21
|
`):t.prepend(`import ${i}Minifier from "@visulima/packem/css/minifier/${i.toLowerCase()}";
|
|
22
22
|
`),i},We=async t=>{const{logger:e,magic:a,packemConfig:s,packemConfigFormat:i,transformerReplaceKey:n,transformerSearchKey:r}=t;if(s.includes("css: {")||s.includes("@visulima/packem/css")){e.warn("Css loaders have already been added to the packem config.");return}const{cssLoaders:o,mainCssLoader:c}=await ze(),l=[];for(const p of o)l.push(..._[p]);c!=="tailwindcss"&&o.push("sourceMap");for(const p of o){const d=p==="sass-embedded"||p==="node-sass"?"sass":p;i==="cjs"?a.prepend(`const ${d}Loader = require("@visulima/packem/css/loader/${d.toLowerCase()}");
|
|
23
23
|
`):a.prepend(`import ${d}Loader from "@visulima/packem/css/loader/${d.toLowerCase()}";
|
|
@@ -33,7 +33,7 @@ Svelte preset added!`)},ze=async()=>{const t=[],e=await g({message:"Pick a css l
|
|
|
33
33
|
loaders: [${m}],
|
|
34
34
|
},
|
|
35
35
|
},`),t.spinner.start("Installing packages"),await h(l,{cwd:t.rootDirectory,dev:!0,silent:!0}),t.spinner.stop("Installed packages"),e.success(`
|
|
36
|
-
CSS loaders added!`)},Fe=t=>{t.addCommand({argument:{description:"Add a packem feature to your project",name:"feature",required:!0},description:"Add a optional packem feature to your project",execute:async({argument:e,logger:a,options:s})=>{const i=a,n=D(),r=O(N(),typeof s.dir=="string"?s.dir:".");let o;try{o=await A(r,s.config)}catch{i.error("Could not find a packem config file, please run `packem init` first.");return}if(await Ne(r)&&!await f({initialValue:!1,message:"Git repository has uncommitted changes. Do you want to proceed?"})){B("Operation cancelled.");return}const c=await de(o,{buffer:!1}),l=c.includes("import")?"esm":"cjs",u=new
|
|
36
|
+
CSS loaders added!`)},Fe=t=>{t.addCommand({argument:{description:"Add a packem feature to your project",name:"feature",required:!0},description:"Add a optional packem feature to your project",execute:async({argument:e,logger:a,options:s})=>{const i=a,n=D(),r=O(N(),typeof s.dir=="string"?s.dir:".");let o;try{o=await A(r,s.config)}catch{i.error("Could not find a packem config file, please run `packem init` first.");return}if(await Ne(r)&&!await f({initialValue:!1,message:"Git repository has uncommitted changes. Do you want to proceed?"})){B("Operation cancelled.");return}const c=await de(o,{buffer:!1}),l=c.includes("import")?"esm":"cjs",u=new fe(c),m=" transformer,",p=c.includes(" transformer,")?" transformer,":" transformer",d={logger:i,magic:u,packemConfig:c,packemConfigFormat:l,rootDirectory:r,spinner:n,transformerReplaceKey:m,transformerSearchKey:p};e.includes("typedoc")&&await Ve(d),e.includes("react")&&await Re(d),e.includes("solid")&&await Te(d),e.includes("preact")&&await qe(d),e.includes("vue")&&await Ge(d),e.includes("svelte")&&await Ke(d),e.includes("css")&&await We(d),await ue(o,u.toString(),{overwrite:!0})},name:"add",options:[{defaultValue:".",description:"The directory to build",name:"dir",type:String},{description:"Use a custom config file",name:"config",type:String}]})},Je=(t,e)=>{if(t==="rolldown")return`// Generated by \`packem\` first-run setup. See https://packem.dev for full options.
|
|
37
37
|
import { defineConfig } from "@visulima/packem/config";
|
|
38
38
|
|
|
39
39
|
export default defineConfig({
|
|
@@ -49,10 +49,10 @@ export default defineConfig({
|
|
|
49
49
|
declaration: true,
|
|
50
50
|
transformer,
|
|
51
51
|
});
|
|
52
|
-
`},_e=async()=>{const t=await g({initialValue:"rollup",message:"Which bundler do you want to use?",options:[{hint:"stable, full feature set, supports DTS",label:"rollup",value:"rollup"},{hint:"fast, native DTS",label:"rolldown",value:"rolldown"}]});if(
|
|
52
|
+
`},_e=async()=>{const t=await g({initialValue:"rollup",message:"Which bundler do you want to use?",options:[{hint:"stable, full feature set, supports DTS",label:"rollup",value:"rollup"},{hint:"fast, native DTS",label:"rolldown",value:"rolldown"}]});if(z(t))throw B("Setup cancelled."),new Error("Packem setup was cancelled.");return t},He=async()=>{const t=await g({initialValue:"esbuild",message:"Which transformer do you want to use?",options:[{hint:"fast, widely used",label:"esbuild",value:"esbuild"},{hint:"fastest, Rust-based",label:"oxc",value:"oxc"},{hint:"TypeScript-aware, Rust-based",label:"swc",value:"swc"},{hint:"minimal, JS-based",label:"sucrase",value:"sucrase"}]});if(z(t))throw B("Setup cancelled."),new Error("Packem setup was cancelled.");return t},Xe=async(t,e)=>{if(t.length===0)return;const a=D();a.start(`Installing ${t.join(", ")}`);try{await h(t,{cwd:e,dev:!0,silent:!0}),a.stop(`Installed ${t.join(", ")}`)}catch(s){throw a.stop(`Failed to install ${t.join(", ")}`),s}},Ye=async t=>{if(await ee(t))return;if(!(process.stdout.isTTY&&!process.env.CI)){const n=await te(["rollup","esbuild"],t);throw new Error(`No packem.config found. Run packem in an interactive terminal to generate one, or install the defaults manually:
|
|
53
53
|
${n}
|
|
54
|
-
and create a packem.config.ts.`)}
|
|
55
|
-
`)){const i=s.trim();if(!i||i.startsWith("#"))continue;const n=Qe.exec(i);if(n?.[1]){const r=n[1].trim();let o=n[2].trim();(o.startsWith('"')&&o.endsWith('"')||o.startsWith("'")&&o.endsWith("'"))&&(o=o.slice(1,-1)),(!e||r.startsWith(e))&&(a[`process.env.${r}`]=JSON.stringify(o))}}return a},Ze=(t,e,a,s)=>{const i=J(t),n=Object.keys(i).length,r={};for(const[c,l]of Object.entries(i))(!e||c.startsWith(e))&&(r[`process.env.${c}`]=JSON.stringify(l));const o=Object.keys(r).length;return n>0&&o===0&&e?s?.warn(`Loaded 0 of ${String(n)} variables from "${a}"; none matched the "${e}" prefix.`):s?.info(`Loaded ${String(o)} of ${String(n)} variables from "${a}"${e?` (prefix "${e}")`:""}.`),r},et=async(t,e,a="PACKEM_",s)=>{const i=O(e,t);if(!V(i))return s?.warn(`Env file not found at "${i}"; no environment variables were loaded.`),{};const{readFile:n}=await import("node:fs/promises"),r=await n(i,"utf8");if(typeof J!="function")return T(r,a);try{return Ze(r,a,t,s)}catch{return T(r,a)}},tt=async(t,e,a,s,i)=>{const n=await A(e,i),r=await t.import(n,{default:!0})??{};return{config:typeof r=="function"?await r(a,s):r,path:n}},st=async(t,e)=>{switch(t){case"none":return{};case"preact":{const{createPreactPreset:a}=await import("../config/preset/preact.js");t=a();break}case"react":{const{createReactPreset:a}=await import("../config/preset/react.js");t=a();break}case"solid":{const{createSolidPreset:a}=await import("../config/preset/solid.js");t=a();break}case"svelte":{const{createSveltePreset:a}=await import("../config/preset/svelte.js");t=a();break}case"vue":{const{createVuePreset:a}=await import("../config/preset/vue.js");t=a();break}default:typeof t=="string"&&(t=await e.import(t,{default:!0})||{})}return typeof t=="function"&&(t=t()),t},at=t=>t.watch?"watch":t.jit?"jit":"build",it=t=>{let e;const a={};if(t.env)for(const s of t.env)s.key==="NODE_ENV"?e=s.value:a[`process.env.${s.key}`]=JSON.stringify(s.value);return{cliEnvVariables:a,nodeEnvironment:e}},nt=(t,e)=>{if(e!==void 0)return e;if(t.production)return W;if(t.development)return
|
|
54
|
+
and create a packem.config.ts.`)}G(he("Packem first-run setup")),E.info("No packem.config found — let's create one.");const e=await _e(),a=e==="rolldown"?void 0:await He(),s=[e];a&&s.push(se[a]),await Xe(s,t);const i=b(t,"packem.config.ts");await F(i,Je(e,a),"utf8"),E.success(`Created ${i}`),K("Setup complete — continuing with build.")},Qe=/^([^#:=]+)=(.*)$/,T=(t,e="PACKEM_")=>{const a={};for(const s of t.split(`
|
|
55
|
+
`)){const i=s.trim();if(!i||i.startsWith("#"))continue;const n=Qe.exec(i);if(n?.[1]){const r=n[1].trim();let o=n[2].trim();(o.startsWith('"')&&o.endsWith('"')||o.startsWith("'")&&o.endsWith("'"))&&(o=o.slice(1,-1)),(!e||r.startsWith(e))&&(a[`process.env.${r}`]=JSON.stringify(o))}}return a},Ze=(t,e,a,s)=>{const i=J(t),n=Object.keys(i).length,r={};for(const[c,l]of Object.entries(i))(!e||c.startsWith(e))&&(r[`process.env.${c}`]=JSON.stringify(l));const o=Object.keys(r).length;return n>0&&o===0&&e?s?.warn(`Loaded 0 of ${String(n)} variables from "${a}"; none matched the "${e}" prefix.`):s?.info(`Loaded ${String(o)} of ${String(n)} variables from "${a}"${e?` (prefix "${e}")`:""}.`),r},et=async(t,e,a="PACKEM_",s)=>{const i=O(e,t);if(!V(i))return s?.warn(`Env file not found at "${i}"; no environment variables were loaded.`),{};const{readFile:n}=await import("node:fs/promises"),r=await n(i,"utf8");if(typeof J!="function")return T(r,a);try{return Ze(r,a,t,s)}catch{return T(r,a)}},tt=async(t,e,a,s,i)=>{const n=await A(e,i),r=await t.import(n,{default:!0})??{};return{config:typeof r=="function"?await r(a,s):r,path:n}},st=async(t,e)=>{switch(t){case"none":return{};case"preact":{const{createPreactPreset:a}=await import("../config/preset/preact.js");t=a();break}case"react":{const{createReactPreset:a}=await import("../config/preset/react.js");t=a();break}case"solid":{const{createSolidPreset:a}=await import("../config/preset/solid.js");t=a();break}case"svelte":{const{createSveltePreset:a}=await import("../config/preset/svelte.js");t=a();break}case"vue":{const{createVuePreset:a}=await import("../config/preset/vue.js");t=a();break}default:typeof t=="string"&&(t=await e.import(t,{default:!0})||{})}return typeof t=="function"&&(t=t()),t},at=t=>t.watch?"watch":t.jit?"jit":"build",it=t=>{let e;const a={};if(t.env)for(const s of t.env)s.key==="NODE_ENV"?e=s.value:a[`process.env.${s.key}`]=JSON.stringify(s.value);return{cliEnvVariables:a,nodeEnvironment:e}},nt=(t,e)=>{if(e!==void 0)return e;if(t.production)return W;if(t.development)return ye},rt=t=>{const e=[];if(t.external)for(const a of t.external)e.push(...a.split(","));return e},ot=t=>{t.addCommand({description:"Build the package using the resolved packem configuration",execute:async({logger:e,options:a})=>{const s=a,i=at(s),{cliEnvVariables:n,nodeEnvironment:r}=it(s),o=nt(s,r),c=rt(s),l=O(N(),s.dir??".");await Ye(l);const u=we(l,{debug:s.debug}),{config:m,path:p}=await tt(u,l,o,i,s.config??void 0);e.debug("Using packem config found at",p);const d=s.envFile??m.envFile,x=s.envPrefix??m.envPrefix??"PACKEM_",w={};if(d){const y=await et(d,l,x,{info:v=>{e.info(v)},warn:v=>{e.warn(v)}});Object.assign(w,y)}Object.assign(w,n);const L=await st(m.preset??"none",u);s.minify&&s.sourcemap===void 0&&(s.sourcemap=!0);try{const y=ae()(m,ie,L,{analyze:s.analyze,bundler:s.bundler,cjsInterop:s.cjsInterop,clean:s.clean,dtsOnly:s.dtsOnly,externals:c,killSignal:s.killSignal,minify:s.minify??o===W,onSuccess:s.onSuccess,rollup:{esbuild:{target:s.target},license:{path:s.license},metafile:s.metafile,...Object.keys(w).length>0||Object.keys(n).length>0?{replace:{values:w}}:{},resolveExternals:s.noExternal?{builtins:!1,deps:!1,devDeps:!1,optDeps:!1,peerDeps:!1}:{}},runtime:s.runtime,sourcemap:s.metafile||s.analyze||s.sourcemap,unbundle:s.unbundle,validation:s.validation===!1?!1:{},...s.exe?{exe:!0}:{},...s.typedoc?{typedoc:{format:"html"}}:{}});s.validation===!1&&!m.validation&&(y.validation=!1),s.cache===!1&&(y.fileCache=!1),await ne(l,i,o,e,s.debug??!1,y,s.tsconfig??void 0)}catch(y){e.error(y),le(1)}},name:"build",options:[{description:"Specify the bundler to use (rollup or rolldown)",name:"bundler",type:e=>{if(e==="rollup"||e==="rolldown")return e;throw new Error("Invalid bundler. Use 'rollup' or 'rolldown'.")}},{defaultValue:".",description:"The directory to build",name:"dir",type:String},{alias:"t",description:"Environments to support. `target` in tsconfig.json is automatically added. Defaults to the current Node.js version.",name:"target"},{description:"Use a custom config file",name:"config",type:String},{description:"Path to the tsconfig.json file",name:"tsconfig",type:String},{description:"Minify the output",name:"minify",type:Boolean},{description:"Generate sourcemaps (experimental)",name:"sourcemap",type:Boolean},{conflicts:"jit",description:"Watch for changes",name:"watch",type:Boolean},{conflicts:"watch",description:"Stub the package for JIT compilation",name:"jit",type:Boolean},{description:"Compile-time environment variables (eg. --env.NODE_ENV=production)",multiple:!0,name:"env",type:e=>{const a=e.indexOf("=");return a===-1?{key:e,value:""}:{key:e.slice(0,a),value:e.slice(a+1)}}},{description:"Path to the .env file to load environment variables from",name:"env-file",type:String},{description:"Prefix for environment variables to load from .env file (default: PACKEM_)",name:"env-prefix",type:String},{defaultValue:!1,description:"Generate meta file (experimental)",name:"metafile",type:Boolean},{description:"Path to the license file",name:"license",type:String},{conflicts:"watch",description:"Visualize and analyze the bundle",name:"analyze",type:Boolean},{description:"CJS interop mode, can export default and named export, (experimental).",name:"cjsInterop",type:Boolean},{conflicts:"development",description:"Run code in production environment",name:"production",type:Boolean},{conflicts:"production",description:"Run code in development environment",name:"development",type:Boolean},{description:"Do not clean the dist directory before building",name:"no-clean",type:Boolean},{description:"Only generate .d.ts files",name:"dts-only",type:Boolean},{description:"Disable the output validation",name:"no-validation",type:Boolean},{description:"Disable the cache",name:"no-cache",type:Boolean},{description:"Generate type documentation",name:"typedoc",type:Boolean},{description:"Execute command after successful build, specially useful for watch mode",name:"onSuccess",type:String},{description:'Signal to kill child process, "SIGTERM" or "SIGKILL"',name:"killSignal",type:e=>{if(e==="SIGTERM"||e==="SIGKILL")return e;throw new Error("Invalid kill signal. Use 'SIGTERM' or 'SIGKILL'.")}},{description:"Specify an external dependency, separate by comma (eg. --external lodash,react,react-dom)",multiple:!0,name:"external",typeLabel:"string[]"},{description:"do not bundle external dependencies",name:"no-external",type:Boolean},{description:"Specify the build runtime (node, browser).",name:"runtime",type:e=>{if(e==="node"||e==="browser")return e;throw new Error("Invalid runtime. Use 'node' or 'browser'.")}},{description:"Enable unbundle mode to preserve source file structure instead of bundling into a single file",name:"unbundle",type:Boolean},{description:"Bundle the output into a standalone executable via Node.js SEA (requires Node.js >= 25.7.0, single entry)",name:"exe",type:Boolean}]})},X=t=>t==="sass-embedded"||t==="node-sass"?"sass":t,ct=(t,e)=>{me(b(t,"tsconfig.json"),{compilerOptions:{esModuleInterop:!0,skipLibCheck:!0,target:"es2022",allowJs:!0,resolveJsonModule:!0,moduleDetection:"force",isolatedModules:!0,verbatimModuleSyntax:!0,strict:!0,noUncheckedIndexedAccess:!0,noImplicitOverride:!0,module:"NodeNext",outDir:"dist",sourceMap:!0,declaration:!0,lib:e?["es2022","dom","dom.iterable"]:["es2022"]}})},lt=(t,e,a,s,i)=>{let n="";if(t)for(const r of e){const o=X(r);n+=i?`import ${o}Loader from "@visulima/packem/css/loader/${o.toLowerCase()}";
|
|
56
56
|
`:`const ${o}Loader = require("@visulima/packem/css/loader/${o.toLowerCase()}");
|
|
57
57
|
`}return s&&a&&(n+=i?`import ${a}Minifier from "@visulima/packem/css/minifier/${a.toLowerCase()}";
|
|
58
58
|
`:`const ${a}Minifier = require("@visulima/packem/css/minifier/${a.toLowerCase()}");
|
|
@@ -76,7 +76,7 @@ module.exports = defineConfig({
|
|
|
76
76
|
runtime: ${a},
|
|
77
77
|
transformer${i}
|
|
78
78
|
});
|
|
79
|
-
`,pt=t=>{const e=[];return t.dependencies&&e.push(...Object.keys(t.dependencies)),t.devDependencies&&e.push(...Object.keys(t.devDependencies)),e},mt=async(t,e,a,s)=>{if(t===void 0&&!e){const n=await f({message:"Do you want to install TypeScript?"});return n&&s.push("typescript@latest"),n}const i=a.devDependencies?.typescript??a.dependencies?.typescript??"unknown";return E.message(`TypeScript version ${i} is already installed`),t},ft=async(t,e,a)=>{let s=t;return e.includes("esbuild")?s="esbuild":e.includes("@swc/core")?s="swc":e.includes("sucrase")&&(s="sucrase"),s!==void 0?(E.message(`Transformer ${s} is already installed.`),s):(s=await g({message:"Pick a transformer",options:[{label:"esbuild",value:"esbuild"},{label:"swc",value:"swc"},{label:"Sucrase",value:"sucrase"},{label:"OXC",value:"oxc"}]}),s&&s!=="oxc"&&!e.includes(s)&&await f({message:`Do you want to install ${s}?`})&&a.push(s==="swc"?"@swc/core":s),s)},gt=async t=>{if(M(b(t,"tsconfig.json")))return;const e=await f({message:"Do you want to use generate a tsconfig.json?"}),a=await f({message:"Do you want to run your code in the DOM?"});if(e){const s=D();s.start("Generating tsconfig.json"),ct(t,!!a),s.stop("")}},yt=async t=>{if(!t.includes("sass"))return t;const e=await g({message:"Pick a sass loader",options:[{hint:"recommended",label:"Sass embedded",value:"sass-embedded"},{label:"Sass",value:"sass"},{hint:"legacy",label:"Node Sass",value:"node-sass"}]});return e==="sass"?t:[...t.filter(a=>a!=="sass"),e]},wt=async t=>{const e=[],a=await g({message:"Pick a css loader",options:[{label:"PostCSS",value:"postcss"},{hint:"experimental",label:"Lightning CSS",value:"lightningcss"}]});e.push(a);const s=await
|
|
79
|
+
`,pt=t=>{const e=[];return t.dependencies&&e.push(...Object.keys(t.dependencies)),t.devDependencies&&e.push(...Object.keys(t.devDependencies)),e},mt=async(t,e,a,s)=>{if(t===void 0&&!e){const n=await f({message:"Do you want to install TypeScript?"});return n&&s.push("typescript@latest"),n}const i=a.devDependencies?.typescript??a.dependencies?.typescript??"unknown";return E.message(`TypeScript version ${i} is already installed`),t},ft=async(t,e,a)=>{let s=t;return e.includes("esbuild")?s="esbuild":e.includes("@swc/core")?s="swc":e.includes("sucrase")&&(s="sucrase"),s!==void 0?(E.message(`Transformer ${s} is already installed.`),s):(s=await g({message:"Pick a transformer",options:[{label:"esbuild",value:"esbuild"},{label:"swc",value:"swc"},{label:"Sucrase",value:"sucrase"},{label:"OXC",value:"oxc"}]}),s&&s!=="oxc"&&!e.includes(s)&&await f({message:`Do you want to install ${s}?`})&&a.push(s==="swc"?"@swc/core":s),s)},gt=async t=>{if(M(b(t,"tsconfig.json")))return;const e=await f({message:"Do you want to use generate a tsconfig.json?"}),a=await f({message:"Do you want to run your code in the DOM?"});if(e){const s=D();s.start("Generating tsconfig.json"),ct(t,!!a),s.stop("")}},yt=async t=>{if(!t.includes("sass"))return t;const e=await g({message:"Pick a sass loader",options:[{hint:"recommended",label:"Sass embedded",value:"sass-embedded"},{label:"Sass",value:"sass"},{hint:"legacy",label:"Node Sass",value:"node-sass"}]});return e==="sass"?t:[...t.filter(a=>a!=="sass"),e]},wt=async t=>{const e=[],a=await g({message:"Pick a css loader",options:[{label:"PostCSS",value:"postcss"},{hint:"experimental",label:"Lightning CSS",value:"lightningcss"}]});e.push(a);const s=await q({message:"Pick your loaders",options:[{label:"Sass",value:"sass"},{label:"Stylus",value:"stylus"},{label:"Less",value:"less"}],required:!1}),i=await yt(s);if(e.push(...i),await f({message:`Do you want to install "${e.join('", "')}"?`}))for(const n of e)t.push(..._[n]);return e.push("sourceMap"),e},bt=async(t,e)=>{const a=await g({message:"Pick a css minifier",options:[{label:"CSSNano",value:"cssnano"},{label:"Lightning CSS",value:"lightningcss"}]});return t.includes("lightningcss")||await f({message:`Do you want to install "${a}"?`})&&e.push(a),a},ht=t=>{t.addCommand({description:"Initialize packem configuration",execute:async({logger:e,options:a})=>{const s=a,i=e;if(G("Welcome to packem setup"),M(b(s.dir??".","packem.config.ts"))){i.info("Packem project already initialized, you can use `packem build` to build your project");return}const n=O(N(),s.dir??"."),r=b(n,"package.json");if(!M(r))throw new Error("No package.json found in the directory");const o=await U(r,{resolveCatalogs:!0}),c=pt(o),l=!!(o.devDependencies?.typescript??o.dependencies?.typescript),u=[];s.typescript=await mt(s.typescript,l,o,u),await gt(n),s.runtime??=await g({message:"Pick a build runtime",options:[{label:"Node",value:"node"},{label:"Browser",value:"browser"}]}),s.transformer=await ft(s.transformer,c,u),s.css??=await f({initialValue:!1,message:"Do you want to use css in your project?"});const m=s.css?await wt(u):[];s.cssMinifier??=await f({initialValue:!1,message:"Do you want to minify your css?"});const p=s.cssMinifier?await bt(m,u):void 0,d=s.css??!1,x=s.cssMinifier??!1,w=l||o.type==="module",L=dt(d,p,x,m),y=lt(d,m,p,x,w),v=ut(w,s.transformer??"",s.runtime??"",y,L),P=D(),I=l?"ts":"js";u.length>0&&(P.start("Installing packages"),await h(u,{cwd:n,dev:!0,silent:!0}),P.stop("Installed packages")),P.start(`Creating packem.config.${I}`),pe(b(n,`packem.config.${I}`),v),P.stop(`Created packem.config.${I}`),K("Now you can run `packem build` to build your project")},name:"init",options:[{defaultValue:".",description:"The directory to initialize",name:"dir",type:String},{description:"Choose a transformer",name:"transformer",type:e=>{if(typeof e=="string"&&["esbuild","sucrase","swc"].includes(e))return e;throw new Error("Invalid transformer, please choose one of 'swc', 'sucrase' or 'esbuild'")}},{description:"Use CSS",name:"css",type:Boolean},{description:"Use CSS minifier",name:"css-minifier",type:Boolean},{description:"Use TypeScript",name:"typescript",type:Boolean},{description:"Specify the build runtime (nodejs, browser).",name:"runtime",type:e=>{if(e==="node"||e==="browser")return e;throw new Error("Invalid runtime. Use 'node' or 'browser'.")}}]})},Y={bunchee:"@visulima/packem",tsup:"@visulima/packem","tsup-node":"@visulima/packem",unbuild:"@visulima/packem"},vt={dependencies:`^${R.version}`,devDependencies:`^${R.version}`,peerDependencies:"*"},kt=(t,e,a,s)=>{const i={};for(const n of Object.keys(t))n===e?i[a]=s??t[e]:i[n]=t[n];return i},$t=/\bunbuild\b/g,St=/\bbunchee\b/g,Ct=/\btsup(?:-node)?/g,jt=/\bbuild\b/g,xt=[{from:"tsup",rewrite:t=>t.replaceAll(Ct,"packem build").replaceAll(jt,"build")},{from:"unbuild",rewrite:t=>t.replaceAll($t,"packem build")},{from:"bunchee",rewrite:t=>t.replaceAll(St,"packem build")}],Pt=(t,e,a)=>{let s=e,i=!1;for(const n of Object.keys(Y))s.includes(n)&&(a.info(`Migrating \`${t}\` script from ${n} to packem`),i=!0,s=s.replaceAll(new RegExp(String.raw`\b${n}\b`,"g"),"packem").replaceAll(new RegExp(String.raw`\b${n}-node\b`,"g"),"packem"));for(const{from:n,rewrite:r}of xt)s.includes(n)&&(a.info(`Migrating \`${t}\` script from ${n} to packem`),i=!0,s=r(s));return i?s:void 0},Et=(t,e)=>{const a={...t};let s=!1;for(const i of Object.keys(a)){const n=Pt(i,a[i],e);n!==void 0&&(a[i]=n,s=!0)}return{found:s,scripts:a}},Dt=(t,e)=>{const a={...t};let s=!1;for(const[i,n]of Object.entries(vt)){let r=a[i];for(const[o,c]of Object.entries(Y))r?.[o]&&(e.info(`Migrating \`${i}\` from ${o} to ${c}.`),s=!0,r=kt(r,o,c,n),a[i]=r)}return{found:s,pkg:a}},Ot=(t,e)=>{const a=["tsup","unbuild","bunchee"];for(const s of a)t[s]&&e.info(`Found \`${s}\` config field in package.json. Consider moving to packem.config.ts`)},Lt=async(t,e)=>{if(!V("package.json"))return e.error("No package.json found"),!1;const a=await be("package.json","utf8"),s=JSON.parse(a),{found:i,pkg:n}=Dt(s,e);let r=i;if(n.scripts){const{found:c,scripts:l}=Et(n.scripts,e);c&&(n.scripts=l,r=!0)}if(Ot(n,e),!r)return e.info("No migratable bundler dependencies found in package.json"),!1;const o=`${JSON.stringify(n,void 0,a.includes(" ")?" ":2)}
|
|
80
80
|
`;return t?(e.info("[dry-run] package.json changes:"),e.info("Old content:"),console.info(a),e.info("New content:"),console.info(o)):(await F("package.json",o),e.success("Migrated `package.json`")),!0},It=["tsup.config.ts","tsup.config.cts","tsup.config.mts","tsup.config.js","tsup.config.cjs","tsup.config.mjs","tsup.config.json","build.config.ts","build.config.cts","build.config.mts","build.config.js","build.config.cjs","build.config.mjs","bunchee.config.ts","bunchee.config.cts","bunchee.config.mts","bunchee.config.js","bunchee.config.cjs","bunchee.config.mjs"],Mt=t=>{let e=!1;for(const a of It)V(a)&&(t.info(`Found config file \`${a}\`. Consider creating packem.config.ts instead.`),t.info("Manual migration required for config files. See https://www.visulima.com/docs/package/packem"),e=!0);return e||t.info("No bundler config files found"),e},Nt=async({cwd:t,dryRun:e,logger:a})=>{if(e)a.info("Dry run enabled. No changes will be made.");else{const i=ve({input:k.stdin,output:k.stdout});a.warn(`
|
|
81
81
|
|
|
82
82
|
Before proceeding, review the migration guide at https://www.visulima.com/docs/package/packem, as this process will modify your files.
|
|
@@ -21,11 +21,11 @@ interface PreactPresetOptions {
|
|
|
21
21
|
/**
|
|
22
22
|
* Custom Babel plugins to add
|
|
23
23
|
*/
|
|
24
|
-
plugins?: BabelPluginConfig["plugins"]
|
|
24
|
+
plugins?: NonNullable<BabelPluginConfig["plugins"]>;
|
|
25
25
|
/**
|
|
26
26
|
* Custom Babel presets to add
|
|
27
27
|
*/
|
|
28
|
-
presets?: BabelPluginConfig["presets"]
|
|
28
|
+
presets?: NonNullable<BabelPluginConfig["presets"]>;
|
|
29
29
|
}
|
|
30
30
|
declare const createPreactPreset: (options?: PreactPresetOptions) => BuildConfig;
|
|
31
31
|
export { PreactPresetOptions, createPreactPreset };
|
|
@@ -32,11 +32,11 @@ interface ReactPresetOptions {
|
|
|
32
32
|
/**
|
|
33
33
|
* Custom Babel plugins to add
|
|
34
34
|
*/
|
|
35
|
-
plugins?: BabelPluginConfig["plugins"]
|
|
35
|
+
plugins?: NonNullable<BabelPluginConfig["plugins"]>;
|
|
36
36
|
/**
|
|
37
37
|
* Custom Babel presets to add
|
|
38
38
|
*/
|
|
39
|
-
presets?: BabelPluginConfig["presets"]
|
|
39
|
+
presets?: NonNullable<BabelPluginConfig["presets"]>;
|
|
40
40
|
}
|
|
41
41
|
/**
|
|
42
42
|
* React preset for Packem. Configures Babel with React presets and optionally React Compiler.
|
|
@@ -21,11 +21,11 @@ interface SolidPresetOptions {
|
|
|
21
21
|
/**
|
|
22
22
|
* Custom Babel plugins to add
|
|
23
23
|
*/
|
|
24
|
-
plugins?: BabelPluginConfig["plugins"]
|
|
24
|
+
plugins?: NonNullable<BabelPluginConfig["plugins"]>;
|
|
25
25
|
/**
|
|
26
26
|
* Custom Babel presets to add
|
|
27
27
|
*/
|
|
28
|
-
presets?: BabelPluginConfig["presets"]
|
|
28
|
+
presets?: NonNullable<BabelPluginConfig["presets"]>;
|
|
29
29
|
/**
|
|
30
30
|
* SolidJS-specific options for babel-preset-solid
|
|
31
31
|
*/
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{createRequire as sa}from"node:module";import{$ as Co,e as Cr,q as Tr,O as Xr,A as Dr,Z as vo,V as Hr,U as ra,H as To,P as Br,k as vn,B as xt,M as Qt,a as Mr,b as xr,c as Qr,i as Gr,T as Nr}from"./packem_shared/index-D_5MmI7f.js";import{e as Gt}from"./packem_shared/create-or-update-key-storage-BFOAEuWX.js";const Pr=sa(import.meta.url),ye=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,No=i=>{if(typeof ye<"u"&&ye.versions&&ye.versions.node){const[e,o]=ye.versions.node.split(".").map(Number);if(e>22||e===22&&o>=3||e===20&&o>=16)return ye.getBuiltinModule(i)}return Pr(i)},{createRequire:Nt}=No("node:module"),te=ye,{execFileSync:Wr}=No("node:child_process"),Re=No("node:fs"),Er=No("node:tty"),Or=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],Fr=12288,_r=65510,Rr=[12288,12288,65281,65376,65504,65510],Ar=8361,Kr=65518,zr=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],Ir=32,qr=10630,$r=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],Ur=4352,Vr=262141,Pt=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141],eo=(i,e)=>{let o=0,n=Math.floor(i.length/2)-1;for(;o<=n;){const a=Math.floor((o+n)/2),u=a*2;if(e<i[u])n=a-1;else if(e>i[u+1])o=a+1;else return!0}return!1},hu=19968,[id,ed]=od(Pt);function od(i){let e=i[0],o=i[1];for(let n=0;n<i.length;n+=2){const a=i[n],u=i[n+1];if(hu>=a&&hu<=u)return[a,u];u-a>o-e&&(e=a,o=u)}return[e,o]}const nd=i=>i<161||i>1114109?!1:eo(Or,i),ad=i=>i<Fr||i>_r?!1:eo(Rr,i),ud=i=>i<Ar||i>Kr?!1:eo(zr,i),td=i=>i<Ir||i>qr?!1:eo($r,i),gd=i=>i>=id&&i<=ed?!0:i<Ur||i>Vr?!1:eo(Pt,i);function sd(i){return nd(i)?"ambiguous":ad(i)?"fullwidth":ud(i)?"halfwidth":td(i)?"narrow":gd(i)?"wide":"neutral"}function rd(i){if(!Number.isSafeInteger(i))throw new TypeError(`Expected a code point, got \`${typeof i}\`.`)}function Wt(i){return rd(i),sd(i)}const Et=String.raw,lu=Et`\p{Emoji}(?:\p{EMod}|[\u{E0020}-\u{E007E}]+\u{E007F}|\uFE0F?\u20E3?)`,dd=()=>new RegExp(Et`\p{RI}{2}|(?)${lu}(?:\u200D${lu})*`,"gu"),Se=new Set(["\x1B",""]),Po="\x07",Ot="[",da="m",Ie="]8;;",hd=39,ld=/[\u200B\uFEFF\u2060-\u2064]/g,vd=new RegExp(`(?:\\${Ot}(?<code>\\d+)m|\\${Ie}(?<uri>.*)${Po})`),cd=Object.freeze(new Map([[0,0],[1,22],[2,22],[3,23],[4,24],[7,27],[8,28],[9,29],[30,39],[31,39],[32,39],[33,39],[34,39],[35,39],[36,39],[37,39],[40,49],[41,49],[42,49],[43,49],[44,49],[45,49],[46,49],[47,49],[90,39]])),yd=/^[ \t]*(?:\r\n|\r|\n)/,bd=/(?:\r\n|\r|\n)[ \t]*$/,pd=/^(?:[\r\n]|$)/,wd=/(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/,fd=/^[ \t]*[\r\n][ \t\r\n]*$/,jd=/\r\n|\n|\r/g,Ne=/[\u001B\u009B](?:[[()#;?]{0,10}(?:\d{1,4}(?:;\d{0,4})*)?[0-9A-ORZcf-nqry=><]|\]8;;[^\u0007\u001B]{0,100}(?:\u0007|\u001B\\))/g,co=/[\u0000-\u0008\n-\u001F\u007F-\u009F]{1,1000}/y,cn=dd(),vu=new Map,md=i=>[i.ambiguousIsNarrow?1:0,i.control,i.fullWidth,i.regular,i.wide].join("|"),Yd=i=>{const e=md(i.width);let o=vu.get(e);return o||(o=new Map,vu.set(e,o)),o},yo=/(?:[\u0020-\u007E\u00A0-\u00FF](?!\uFE0F)){1,1000}/y,Ft=i=>i>=32&&i<=126?"latin":i===8203||i===8204||i===8205||i===8288?"zero":i<=31||i>=127&&i<=159?"control":i>=160&&i<=255||i>=9472&&i<=9599?"latin":i>=4352&&i<=4607||i>=11904&&i<=40959||i>=44032&&i<=55215||i>=63744&&i<=64255||i>=65280&&i<=65519&&!(i>=65377&&i<=65439)||i>=12352&&i<=12543?"wide":i===8230?"latin":"other",kd=(i,e)=>{const o=Yd(e),n=Math.floor(i/65536),a=i%65536;let u=o.get(n);if(u||(u=new Map,o.set(n,u)),u.has(a))return u.get(a);let t;switch(Ft(i)){case"control":{t=e.width.control;break}case"latin":{t=e.width.regular;break}case"wide":{t=e.width.wide;break}case"zero":{t=0;break}default:switch(Wt(i)){case"ambiguous":{t=e.width.ambiguousIsNarrow?e.width.regular:e.width.wide;break}case"fullwidth":{t=e.width.fullWidth;break}case"wide":{t=e.width.wide;break}default:t=e.width.regular}}return u.set(a,t),t},Ld=i=>i>=768&&i<=879||i>=6832&&i<=6911||i>=7616&&i<=7679||i>=8400&&i<=8447||i>=65056&&i<=65071||i>=917760&&i<=917999||i>=65024&&i<=65039||i>=3633&&i<=3642||i>=3655&&i<=3662||i>=3761&&i<=3769||i>=3771&&i<=3772||i>=3784&&i<=3789||i>=2304&&i<=2307||i>=2362&&i<=2383||i>=2385&&i<=2391||i>=2402&&i<=2403||i>=2433&&i<=2435||i>=2492&&i<=2500||i>=2509&&i<=2509||i>=2561&&i<=2563||i>=2620&&i<=2637||i>=1611&&i<=1631||i>=1648&&i<=1648||i>=1750&&i<=1773||i>=2276&&i<=2302||i>=1425&&i<=1469||i>=1471&&i<=1471||i>=1473&&i<=1474||i>=1476&&i<=1477||i>=1479&&i<=1479||i>=3893&&i<=3893||i>=3895&&i<=3895||i>=3897&&i<=3897||i>=3953&&i<=3966||i>=3968&&i<=3972||i>=3974&&i<=3975?!0:i>=768&&i<=777||i>=803&&i<=803,Wn=(i,e={})=>{if(!i||i.length===0)return{ellipsed:!1,index:0,truncated:!1,width:0};const o={truncation:{countAnsiEscapeCodes:e.countAnsiEscapeCodes??!1,ellipsis:e.ellipsis??"",ellipsisWidth:e.ellipsisWidth??(e.ellipsis?Wn(e.ellipsis,{...e,ellipsis:"",ellipsisWidth:0,limit:Number.POSITIVE_INFINITY}).width:0),limit:e.limit??Number.POSITIVE_INFINITY},width:{ambiguousIsNarrow:e.ambiguousIsNarrow??!1,ansi:e.ansiWidth??0,control:e.controlWidth??0,emoji:e.emojiWidth??2,fullWidth:e.fullWidth??2,halfWidth:e.halfWidth??1,regular:e.regularWidth??1,tab:e.tabWidth??8,wide:e.wideWidth??2}},n=Math.max(0,o.truncation.limit-o.truncation.ellipsisWidth),{length:a}=i,u=a>1e4;let t=0,g=0,r=a,d=!1;const l=i.includes("\x1B")||i.includes("");for(;t<a;){if(l&&(i[t]==="\x1B"||i[t]==="")){if(i.startsWith("\x1B]8;;",t)){const f="\x1B]8;;\x07",m=f.length,p=i.indexOf("\x07",t+5);if(p!==-1){const j=i.indexOf(f,p+1);if(j!==-1){const Y=j+m,N=i.slice(p+1,j).replace(Ne,""),C=Wn(N,{ambiguousIsNarrow:o.width.ambiguousIsNarrow,ansiWidth:o.width.ansi,controlWidth:o.width.control,countAnsiEscapeCodes:!1,ellipsis:o.truncation.ellipsis,ellipsisWidth:o.truncation.ellipsisWidth,emojiWidth:o.width.emoji,fullWidth:o.width.fullWidth,halfWidth:o.width.halfWidth,limit:Math.max(0,n-g),regularWidth:o.width.regular,tabWidth:o.width.tab,wideWidth:o.width.wide}),H=C.width;if(C.truncated)d=!0,r=Math.min(r,t);else if(g+H>n&&(r=Math.min(r,t),d=!0,g+H>o.truncation.limit))break;if(g+=H,t=Y,d&&g>=o.truncation.limit)break;continue}}}if(Ne.lastIndex=t,Ne.test(i)){const f=Ne.lastIndex-t,m=o.truncation.countAnsiEscapeCodes?f:o.width.ansi;if(g+m>n&&(r=Math.min(r,t),g+m>o.truncation.limit)){d=!0;break}g+=m,t=Ne.lastIndex;continue}}const c=i.codePointAt(t);if(c===8203||c===65279||c>=8288&&c<=8292){t+=1;continue}if(c===9){if(g+o.width.tab>n&&(r=Math.min(r,t),g+o.width.tab>o.truncation.limit)){d=!0;break}g+=o.width.tab,t+=1;continue}if(yo.lastIndex=t,yo.test(i)){const f=(yo.lastIndex-t)*o.width.regular;if(g+f>n){const m=Math.floor((n-g)/o.width.regular);if(r=Math.min(r,t+m),g+f>o.truncation.limit){d=!0;break}}g+=f,t=yo.lastIndex;continue}if((c<=31||c>=127&&c<=159)&&(co.lastIndex=t,co.test(i))){const f=(co.lastIndex-t)*o.width.control;if(g+f>n&&(r=Math.min(r,t+Math.floor((n-g)/o.width.control)),g+f>o.truncation.limit)){d=!0;break}g+=f,t=co.lastIndex;continue}if(cn.lastIndex=t,cn.test(i)){if(g+o.width.emoji>n&&(r=Math.min(r,t),g+o.width.emoji>o.truncation.limit)){d=!0;break}g+=o.width.emoji,t=cn.lastIndex;continue}const y=i.codePointAt(t)??0;if(Ld(y)){t+=y>65535?2:1;continue}let b;if(u)b=kd(y,o);else switch(Ft(y)){case"control":{b=o.width.control;break}case"latin":{b=o.width.regular;break}case"wide":{b=o.width.wide;break}case"zero":{b=0;break}default:switch(Wt(y)){case"ambiguous":{b=o.width.ambiguousIsNarrow?o.width.regular:o.width.wide;break}case"fullwidth":{b=o.width.fullWidth;break}case"wide":{b=o.width.wide;break}default:b=o.width.regular}}if(g+b>n&&(r=Math.min(r,t),g+b>o.truncation.limit)){d=!0;break}g+=b,t+=y>65535?2:1}let h=g,v=!1;return d&&o.truncation.limit>=o.truncation.ellipsisWidth&&(h=o.truncation.limit,v=!0),{ellipsed:v,index:d?r:a,truncated:d,width:h}},qi=(i,e={})=>Wn(i,{...e,ellipsis:"",ellipsisWidth:0,limit:Number.POSITIVE_INFINITY}).width,Sd=Nt(import.meta.url),Pe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Zd=i=>{if(typeof Pe<"u"&&Pe.versions&&Pe.versions.node){const[e,o]=Pe.versions.node.split(".").map(Number);if(e>22||e===22&&o>=3||e===20&&o>=16)return Pe.getBuiltinModule(i)}return Sd(i)};Zd("node:util");const Jd=new Uint8Array(128),Cd=new Uint8Array(128),Td=new Uint8Array(128);for(let i=0;i<128;i++)Jd[i]=i>=65&&i<=90?1:0,Cd[i]=i>=97&&i<=122?1:0,Td[i]=i>=48&&i<=57?1:0;const Xd=Nt(import.meta.url),We=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Dd=i=>{if(typeof We<"u"&&We.versions&&We.versions.node){const[e,o]=We.versions.node.split(".").map(Number);if(e>22||e===22&&o>=3||e===20&&o>=16)return We.getBuiltinModule(i)}return Xd(i)};Dd("node:util");function Hd(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var yn,cu;function Bd(){if(cu)return yn;cu=1,yn=e;function i(n){return n instanceof Buffer?Buffer.from(n):new n.constructor(n.buffer.slice(),n.byteOffset,n.length)}function e(n){if(n=n||{},n.circles)return o(n);const a=new Map;if(a.set(Date,d=>new Date(d)),a.set(Map,(d,l)=>new Map(t(Array.from(d),l))),a.set(Set,(d,l)=>new Set(t(Array.from(d),l))),n.constructorHandlers)for(const d of n.constructorHandlers)a.set(d[0],d[1]);let u=null;return n.proto?r:g;function t(d,l){const h=Object.keys(d),v=new Array(h.length);for(let c=0;c<h.length;c++){const y=h[c],b=d[y];typeof b!="object"||b===null?v[y]=b:b.constructor!==Object&&(u=a.get(b.constructor))?v[y]=u(b,l):ArrayBuffer.isView(b)?v[y]=i(b):v[y]=l(b)}return v}function g(d){if(typeof d!="object"||d===null)return d;if(Array.isArray(d))return t(d,g);if(d.constructor!==Object&&(u=a.get(d.constructor)))return u(d,g);const l={};for(const h in d){if(Object.hasOwnProperty.call(d,h)===!1)continue;const v=d[h];typeof v!="object"||v===null?l[h]=v:v.constructor!==Object&&(u=a.get(v.constructor))?l[h]=u(v,g):ArrayBuffer.isView(v)?l[h]=i(v):l[h]=g(v)}return l}function r(d){if(typeof d!="object"||d===null)return d;if(Array.isArray(d))return t(d,r);if(d.constructor!==Object&&(u=a.get(d.constructor)))return u(d,r);const l={};for(const h in d){const v=d[h];typeof v!="object"||v===null?l[h]=v:v.constructor!==Object&&(u=a.get(v.constructor))?l[h]=u(v,r):ArrayBuffer.isView(v)?l[h]=i(v):l[h]=r(v)}return l}}function o(n){const a=[],u=[],t=new Map;if(t.set(Date,h=>new Date(h)),t.set(Map,(h,v)=>new Map(r(Array.from(h),v))),t.set(Set,(h,v)=>new Set(r(Array.from(h),v))),n.constructorHandlers)for(const h of n.constructorHandlers)t.set(h[0],h[1]);let g=null;return n.proto?l:d;function r(h,v){const c=Object.keys(h),y=new Array(c.length);for(let b=0;b<c.length;b++){const f=c[b],m=h[f];if(typeof m!="object"||m===null)y[f]=m;else if(m.constructor!==Object&&(g=t.get(m.constructor)))y[f]=g(m,v);else if(ArrayBuffer.isView(m))y[f]=i(m);else{const p=a.indexOf(m);p!==-1?y[f]=u[p]:y[f]=v(m)}}return y}function d(h){if(typeof h!="object"||h===null)return h;if(Array.isArray(h))return r(h,d);if(h.constructor!==Object&&(g=t.get(h.constructor)))return g(h,d);const v={};a.push(h),u.push(v);for(const c in h){if(Object.hasOwnProperty.call(h,c)===!1)continue;const y=h[c];if(typeof y!="object"||y===null)v[c]=y;else if(y.constructor!==Object&&(g=t.get(y.constructor)))v[c]=g(y,d);else if(ArrayBuffer.isView(y))v[c]=i(y);else{const b=a.indexOf(y);b!==-1?v[c]=u[b]:v[c]=d(y)}}return a.pop(),u.pop(),v}function l(h){if(typeof h!="object"||h===null)return h;if(Array.isArray(h))return r(h,l);if(h.constructor!==Object&&(g=t.get(h.constructor)))return g(h,l);const v={};a.push(h),u.push(v);for(const c in h){const y=h[c];if(typeof y!="object"||y===null)v[c]=y;else if(y.constructor!==Object&&(g=t.get(y.constructor)))v[c]=g(y,l);else if(ArrayBuffer.isView(y))v[c]=i(y);else{const b=a.indexOf(y);b!==-1?v[c]=u[b]:v[c]=l(y)}}return a.pop(),u.pop(),v}}return yn}var Md=Bd();const _t=Hd(Md);_t();var Rt=typeof global=="object"&&global&&global.Object===Object&&global,xd=typeof self=="object"&&self&&self.Object===Object&&self,ai=Rt||xd||Function("return this")(),si=ai.Symbol,At=Object.prototype,Qd=At.hasOwnProperty,Gd=At.toString,Ee=si?si.toStringTag:void 0;function Nd(i){var e=Qd.call(i,Ee),o=i[Ee];try{i[Ee]=void 0;var n=!0}catch{}var a=Gd.call(i);return n&&(e?i[Ee]=o:delete i[Ee]),a}var Pd=Object.prototype,Wd=Pd.toString;function Ed(i){return Wd.call(i)}var Od="[object Null]",Fd="[object Undefined]",yu=si?si.toStringTag:void 0;function hi(i){return i==null?i===void 0?Fd:Od:yu&&yu in Object(i)?Nd(i):Ed(i)}function U(i){return i!=null&&typeof i=="object"}var _d="[object Symbol]";function wi(i){return typeof i=="symbol"||U(i)&&hi(i)==_d}var Rd=NaN;function bu(i){return typeof i=="number"?i:wi(i)?Rd:+i}function q(i,e){for(var o=-1,n=i==null?0:i.length,a=Array(n);++o<n;)a[o]=e(i[o],o,i);return a}var X=Array.isArray,pu=si?si.prototype:void 0,wu=pu?pu.toString:void 0;function fi(i){if(typeof i=="string")return i;if(X(i))return q(i,fi)+"";if(wi(i))return wu?wu.call(i):"";var e=i+"";return e=="0"&&1/i==-1/0?"-0":e}function Wo(i,e){return function(o,n){var a;if(o===void 0&&n===void 0)return e;if(o!==void 0&&(a=o),n!==void 0){if(a===void 0)return n;typeof o=="string"||typeof n=="string"?(o=fi(o),n=fi(n)):(o=bu(o),n=bu(n)),a=i(o,n)}return a}}var Ad=Wo(function(i,e){return i+e},0),Kd=/\s/;function Kt(i){for(var e=i.length;e--&&Kd.test(i.charAt(e)););return e}var zd=/^\s+/;function zt(i){return i&&i.slice(0,Kt(i)+1).replace(zd,"")}function $(i){var e=typeof i;return i!=null&&(e=="object"||e=="function")}var fu=NaN,Id=/^[-+]0x[0-9a-f]+$/i,qd=/^0b[01]+$/i,$d=/^0o[0-7]+$/i,Ud=parseInt;function ki(i){if(typeof i=="number")return i;if(wi(i))return fu;if($(i)){var e=typeof i.valueOf=="function"?i.valueOf():i;i=$(e)?e+"":e}if(typeof i!="string")return i===0?i:+i;i=zt(i);var o=qd.test(i);return o||$d.test(i)?Ud(i.slice(2),o?2:8):Id.test(i)?fu:+i}var ju=1/0,Vd=17976931348623157e292;function Fi(i){if(!i)return i===0?i:0;if(i=ki(i),i===ju||i===-ju){var e=i<0?-1:1;return e*Vd}return i===i?i:0}function D(i){var e=Fi(i),o=e%1;return e===e?o?e-o:e:0}var ih="Expected a function";function eh(i,e){if(typeof e!="function")throw new TypeError(ih);return i=D(i),function(){if(--i<1)return e.apply(this,arguments)}}function yi(i){return i}var oh="[object AsyncFunction]",nh="[object Function]",ah="[object GeneratorFunction]",uh="[object Proxy]";function _i(i){if(!$(i))return!1;var e=hi(i);return e==nh||e==ah||e==oh||e==uh}var jo=ai["__core-js_shared__"],mu=(function(){var i=/[^.]+$/.exec(jo&&jo.keys&&jo.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})();function th(i){return!!mu&&mu in i}var gh=Function.prototype,sh=gh.toString;function he(i){if(i!=null){try{return sh.call(i)}catch{}try{return i+""}catch{}}return""}var rh=/[\\^$.*+?()[\]{}|]/g,dh=/^\[object .+?Constructor\]$/,hh=Function.prototype,lh=Object.prototype,vh=hh.toString,ch=lh.hasOwnProperty,yh=RegExp("^"+vh.call(ch).replace(rh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function It(i){if(!$(i)||th(i))return!1;var e=_i(i)?yh:dh;return e.test(he(i))}function bh(i,e){return i?.[e]}function le(i,e){var o=bh(i,e);return It(o)?o:void 0}var qe=le(ai,"WeakMap"),Xo=qe&&new qe,qt=Xo?function(i,e){return Xo.set(i,e),i}:yi,Yu=Object.create,Ze=(function(){function i(){}return function(e){if(!$(e))return{};if(Yu)return Yu(e);i.prototype=e;var o=new i;return i.prototype=void 0,o}})();function $e(i){return function(){var e=arguments;switch(e.length){case 0:return new i;case 1:return new i(e[0]);case 2:return new i(e[0],e[1]);case 3:return new i(e[0],e[1],e[2]);case 4:return new i(e[0],e[1],e[2],e[3]);case 5:return new i(e[0],e[1],e[2],e[3],e[4]);case 6:return new i(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new i(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var o=Ze(i.prototype),n=i.apply(o,e);return $(n)?n:o}}var ph=1;function wh(i,e,o){var n=e&ph,a=$e(i);function u(){var t=this&&this!==ai&&this instanceof u?a:i;return t.apply(n?o:this,arguments)}return u}function ji(i,e,o){switch(o.length){case 0:return i.call(e);case 1:return i.call(e,o[0]);case 2:return i.call(e,o[0],o[1]);case 3:return i.call(e,o[0],o[1],o[2])}return i.apply(e,o)}var fh=Math.max;function $t(i,e,o,n){for(var a=-1,u=i.length,t=o.length,g=-1,r=e.length,d=fh(u-t,0),l=Array(r+d),h=!n;++g<r;)l[g]=e[g];for(;++a<t;)(h||a<u)&&(l[o[a]]=i[a]);for(;d--;)l[g++]=i[a++];return l}var jh=Math.max;function Ut(i,e,o,n){for(var a=-1,u=i.length,t=-1,g=o.length,r=-1,d=e.length,l=jh(u-g,0),h=Array(l+d),v=!n;++a<l;)h[a]=i[a];for(var c=a;++r<d;)h[c+r]=e[r];for(;++t<g;)(v||a<u)&&(h[c+o[t]]=i[a++]);return h}function mh(i,e){for(var o=i.length,n=0;o--;)i[o]===e&&++n;return n}function Eo(){}var Yh=4294967295;function M(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Yh,this.__views__=[]}M.prototype=Ze(Eo.prototype);M.prototype.constructor=M;function ha(){}var la=Xo?function(i){return Xo.get(i)}:ha,fe={},kh=Object.prototype,Lh=kh.hasOwnProperty;function mo(i){for(var e=i.name+"",o=fe[e],n=Lh.call(fe,e)?o.length:0;n--;){var a=o[n],u=a.func;if(u==null||u==i)return a.name}return e}function Si(i,e){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}Si.prototype=Ze(Eo.prototype);Si.prototype.constructor=Si;function ci(i,e){var o=-1,n=i.length;for(e||(e=Array(n));++o<n;)e[o]=i[o];return e}function Vt(i){if(i instanceof M)return i.clone();var e=new Si(i.__wrapped__,i.__chain__);return e.__actions__=ci(i.__actions__),e.__index__=i.__index__,e.__values__=i.__values__,e}var Sh=Object.prototype,Zh=Sh.hasOwnProperty;function s(i){if(U(i)&&!X(i)&&!(i instanceof M)){if(i instanceof Si)return i;if(Zh.call(i,"__wrapped__"))return Vt(i)}return new Si(i)}s.prototype=Eo.prototype;s.prototype.constructor=s;function En(i){var e=mo(i),o=s[e];if(typeof o!="function"||!(e in M.prototype))return!1;if(i===o)return!0;var n=la(o);return!!n&&i===n[0]}var Jh=800,Ch=16,Th=Date.now;function ig(i){var e=0,o=0;return function(){var n=Th(),a=Ch-(n-o);if(o=n,a>0){if(++e>=Jh)return arguments[0]}else e=0;return i.apply(void 0,arguments)}}var eg=ig(qt),Xh=/\{\n\/\* \[wrapped with (.+)\] \*/,Dh=/,? & /;function Hh(i){var e=i.match(Xh);return e?e[1].split(Dh):[]}var Bh=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function Mh(i,e){var o=e.length;if(!o)return i;var n=o-1;return e[n]=(o>1?"& ":"")+e[n],e=e.join(o>2?", ":" "),i.replace(Bh,`{
|
|
1
|
+
import{createRequire as sa}from"node:module";import{$ as Co,e as Cr,q as Tr,O as Xr,A as Dr,Z as vo,V as Hr,U as ra,H as To,P as Br,k as vn,B as xt,M as Qt,a as Mr,b as xr,c as Qr,i as Gr,T as Nr}from"./packem_shared/index-CnKWFiuf.js";import{e as Gt}from"./packem_shared/create-or-update-key-storage-DbvoG0IR.js";const Pr=sa(import.meta.url),ye=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,No=i=>{if(typeof ye<"u"&&ye.versions&&ye.versions.node){const[e,o]=ye.versions.node.split(".").map(Number);if(e>22||e===22&&o>=3||e===20&&o>=16)return ye.getBuiltinModule(i)}return Pr(i)},{createRequire:Nt}=No("node:module"),te=ye,{execFileSync:Wr}=No("node:child_process"),Re=No("node:fs"),Er=No("node:tty"),Or=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],Fr=12288,_r=65510,Rr=[12288,12288,65281,65376,65504,65510],Ar=8361,Kr=65518,zr=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],Ir=32,qr=10630,$r=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],Ur=4352,Vr=262141,Pt=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141],eo=(i,e)=>{let o=0,n=Math.floor(i.length/2)-1;for(;o<=n;){const a=Math.floor((o+n)/2),u=a*2;if(e<i[u])n=a-1;else if(e>i[u+1])o=a+1;else return!0}return!1},hu=19968,[id,ed]=od(Pt);function od(i){let e=i[0],o=i[1];for(let n=0;n<i.length;n+=2){const a=i[n],u=i[n+1];if(hu>=a&&hu<=u)return[a,u];u-a>o-e&&(e=a,o=u)}return[e,o]}const nd=i=>i<161||i>1114109?!1:eo(Or,i),ad=i=>i<Fr||i>_r?!1:eo(Rr,i),ud=i=>i<Ar||i>Kr?!1:eo(zr,i),td=i=>i<Ir||i>qr?!1:eo($r,i),gd=i=>i>=id&&i<=ed?!0:i<Ur||i>Vr?!1:eo(Pt,i);function sd(i){return nd(i)?"ambiguous":ad(i)?"fullwidth":ud(i)?"halfwidth":td(i)?"narrow":gd(i)?"wide":"neutral"}function rd(i){if(!Number.isSafeInteger(i))throw new TypeError(`Expected a code point, got \`${typeof i}\`.`)}function Wt(i){return rd(i),sd(i)}const Et=String.raw,lu=Et`\p{Emoji}(?:\p{EMod}|[\u{E0020}-\u{E007E}]+\u{E007F}|\uFE0F?\u20E3?)`,dd=()=>new RegExp(Et`\p{RI}{2}|(?)${lu}(?:\u200D${lu})*`,"gu"),Se=new Set(["\x1B",""]),Po="\x07",Ot="[",da="m",Ie="]8;;",hd=39,ld=/[\u200B\uFEFF\u2060-\u2064]/g,vd=new RegExp(`(?:\\${Ot}(?<code>\\d+)m|\\${Ie}(?<uri>.*)${Po})`),cd=Object.freeze(new Map([[0,0],[1,22],[2,22],[3,23],[4,24],[7,27],[8,28],[9,29],[30,39],[31,39],[32,39],[33,39],[34,39],[35,39],[36,39],[37,39],[40,49],[41,49],[42,49],[43,49],[44,49],[45,49],[46,49],[47,49],[90,39]])),yd=/^[ \t]*(?:\r\n|\r|\n)/,bd=/(?:\r\n|\r|\n)[ \t]*$/,pd=/^(?:[\r\n]|$)/,wd=/(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/,fd=/^[ \t]*[\r\n][ \t\r\n]*$/,jd=/\r\n|\n|\r/g,Ne=/[\u001B\u009B](?:[[()#;?]{0,10}(?:\d{1,4}(?:;\d{0,4})*)?[0-9A-ORZcf-nqry=><]|\]8;;[^\u0007\u001B]{0,100}(?:\u0007|\u001B\\))/g,co=/[\u0000-\u0008\n-\u001F\u007F-\u009F]{1,1000}/y,cn=dd(),vu=new Map,md=i=>[i.ambiguousIsNarrow?1:0,i.control,i.fullWidth,i.regular,i.wide].join("|"),Yd=i=>{const e=md(i.width);let o=vu.get(e);return o||(o=new Map,vu.set(e,o)),o},yo=/(?:[\u0020-\u007E\u00A0-\u00FF](?!\uFE0F)){1,1000}/y,Ft=i=>i>=32&&i<=126?"latin":i===8203||i===8204||i===8205||i===8288?"zero":i<=31||i>=127&&i<=159?"control":i>=160&&i<=255||i>=9472&&i<=9599?"latin":i>=4352&&i<=4607||i>=11904&&i<=40959||i>=44032&&i<=55215||i>=63744&&i<=64255||i>=65280&&i<=65519&&!(i>=65377&&i<=65439)||i>=12352&&i<=12543?"wide":i===8230?"latin":"other",kd=(i,e)=>{const o=Yd(e),n=Math.floor(i/65536),a=i%65536;let u=o.get(n);if(u||(u=new Map,o.set(n,u)),u.has(a))return u.get(a);let t;switch(Ft(i)){case"control":{t=e.width.control;break}case"latin":{t=e.width.regular;break}case"wide":{t=e.width.wide;break}case"zero":{t=0;break}default:switch(Wt(i)){case"ambiguous":{t=e.width.ambiguousIsNarrow?e.width.regular:e.width.wide;break}case"fullwidth":{t=e.width.fullWidth;break}case"wide":{t=e.width.wide;break}default:t=e.width.regular}}return u.set(a,t),t},Ld=i=>i>=768&&i<=879||i>=6832&&i<=6911||i>=7616&&i<=7679||i>=8400&&i<=8447||i>=65056&&i<=65071||i>=917760&&i<=917999||i>=65024&&i<=65039||i>=3633&&i<=3642||i>=3655&&i<=3662||i>=3761&&i<=3769||i>=3771&&i<=3772||i>=3784&&i<=3789||i>=2304&&i<=2307||i>=2362&&i<=2383||i>=2385&&i<=2391||i>=2402&&i<=2403||i>=2433&&i<=2435||i>=2492&&i<=2500||i>=2509&&i<=2509||i>=2561&&i<=2563||i>=2620&&i<=2637||i>=1611&&i<=1631||i>=1648&&i<=1648||i>=1750&&i<=1773||i>=2276&&i<=2302||i>=1425&&i<=1469||i>=1471&&i<=1471||i>=1473&&i<=1474||i>=1476&&i<=1477||i>=1479&&i<=1479||i>=3893&&i<=3893||i>=3895&&i<=3895||i>=3897&&i<=3897||i>=3953&&i<=3966||i>=3968&&i<=3972||i>=3974&&i<=3975?!0:i>=768&&i<=777||i>=803&&i<=803,Wn=(i,e={})=>{if(!i||i.length===0)return{ellipsed:!1,index:0,truncated:!1,width:0};const o={truncation:{countAnsiEscapeCodes:e.countAnsiEscapeCodes??!1,ellipsis:e.ellipsis??"",ellipsisWidth:e.ellipsisWidth??(e.ellipsis?Wn(e.ellipsis,{...e,ellipsis:"",ellipsisWidth:0,limit:Number.POSITIVE_INFINITY}).width:0),limit:e.limit??Number.POSITIVE_INFINITY},width:{ambiguousIsNarrow:e.ambiguousIsNarrow??!1,ansi:e.ansiWidth??0,control:e.controlWidth??0,emoji:e.emojiWidth??2,fullWidth:e.fullWidth??2,halfWidth:e.halfWidth??1,regular:e.regularWidth??1,tab:e.tabWidth??8,wide:e.wideWidth??2}},n=Math.max(0,o.truncation.limit-o.truncation.ellipsisWidth),{length:a}=i,u=a>1e4;let t=0,g=0,r=a,d=!1;const l=i.includes("\x1B")||i.includes("");for(;t<a;){if(l&&(i[t]==="\x1B"||i[t]==="")){if(i.startsWith("\x1B]8;;",t)){const f="\x1B]8;;\x07",m=f.length,p=i.indexOf("\x07",t+5);if(p!==-1){const j=i.indexOf(f,p+1);if(j!==-1){const Y=j+m,N=i.slice(p+1,j).replace(Ne,""),C=Wn(N,{ambiguousIsNarrow:o.width.ambiguousIsNarrow,ansiWidth:o.width.ansi,controlWidth:o.width.control,countAnsiEscapeCodes:!1,ellipsis:o.truncation.ellipsis,ellipsisWidth:o.truncation.ellipsisWidth,emojiWidth:o.width.emoji,fullWidth:o.width.fullWidth,halfWidth:o.width.halfWidth,limit:Math.max(0,n-g),regularWidth:o.width.regular,tabWidth:o.width.tab,wideWidth:o.width.wide}),H=C.width;if(C.truncated)d=!0,r=Math.min(r,t);else if(g+H>n&&(r=Math.min(r,t),d=!0,g+H>o.truncation.limit))break;if(g+=H,t=Y,d&&g>=o.truncation.limit)break;continue}}}if(Ne.lastIndex=t,Ne.test(i)){const f=Ne.lastIndex-t,m=o.truncation.countAnsiEscapeCodes?f:o.width.ansi;if(g+m>n&&(r=Math.min(r,t),g+m>o.truncation.limit)){d=!0;break}g+=m,t=Ne.lastIndex;continue}}const c=i.codePointAt(t);if(c===8203||c===65279||c>=8288&&c<=8292){t+=1;continue}if(c===9){if(g+o.width.tab>n&&(r=Math.min(r,t),g+o.width.tab>o.truncation.limit)){d=!0;break}g+=o.width.tab,t+=1;continue}if(yo.lastIndex=t,yo.test(i)){const f=(yo.lastIndex-t)*o.width.regular;if(g+f>n){const m=Math.floor((n-g)/o.width.regular);if(r=Math.min(r,t+m),g+f>o.truncation.limit){d=!0;break}}g+=f,t=yo.lastIndex;continue}if((c<=31||c>=127&&c<=159)&&(co.lastIndex=t,co.test(i))){const f=(co.lastIndex-t)*o.width.control;if(g+f>n&&(r=Math.min(r,t+Math.floor((n-g)/o.width.control)),g+f>o.truncation.limit)){d=!0;break}g+=f,t=co.lastIndex;continue}if(cn.lastIndex=t,cn.test(i)){if(g+o.width.emoji>n&&(r=Math.min(r,t),g+o.width.emoji>o.truncation.limit)){d=!0;break}g+=o.width.emoji,t=cn.lastIndex;continue}const y=i.codePointAt(t)??0;if(Ld(y)){t+=y>65535?2:1;continue}let b;if(u)b=kd(y,o);else switch(Ft(y)){case"control":{b=o.width.control;break}case"latin":{b=o.width.regular;break}case"wide":{b=o.width.wide;break}case"zero":{b=0;break}default:switch(Wt(y)){case"ambiguous":{b=o.width.ambiguousIsNarrow?o.width.regular:o.width.wide;break}case"fullwidth":{b=o.width.fullWidth;break}case"wide":{b=o.width.wide;break}default:b=o.width.regular}}if(g+b>n&&(r=Math.min(r,t),g+b>o.truncation.limit)){d=!0;break}g+=b,t+=y>65535?2:1}let h=g,v=!1;return d&&o.truncation.limit>=o.truncation.ellipsisWidth&&(h=o.truncation.limit,v=!0),{ellipsed:v,index:d?r:a,truncated:d,width:h}},qi=(i,e={})=>Wn(i,{...e,ellipsis:"",ellipsisWidth:0,limit:Number.POSITIVE_INFINITY}).width,Sd=Nt(import.meta.url),Pe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Zd=i=>{if(typeof Pe<"u"&&Pe.versions&&Pe.versions.node){const[e,o]=Pe.versions.node.split(".").map(Number);if(e>22||e===22&&o>=3||e===20&&o>=16)return Pe.getBuiltinModule(i)}return Sd(i)};Zd("node:util");const Jd=new Uint8Array(128),Cd=new Uint8Array(128),Td=new Uint8Array(128);for(let i=0;i<128;i++)Jd[i]=i>=65&&i<=90?1:0,Cd[i]=i>=97&&i<=122?1:0,Td[i]=i>=48&&i<=57?1:0;const Xd=Nt(import.meta.url),We=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Dd=i=>{if(typeof We<"u"&&We.versions&&We.versions.node){const[e,o]=We.versions.node.split(".").map(Number);if(e>22||e===22&&o>=3||e===20&&o>=16)return We.getBuiltinModule(i)}return Xd(i)};Dd("node:util");function Hd(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var yn,cu;function Bd(){if(cu)return yn;cu=1,yn=e;function i(n){return n instanceof Buffer?Buffer.from(n):new n.constructor(n.buffer.slice(),n.byteOffset,n.length)}function e(n){if(n=n||{},n.circles)return o(n);const a=new Map;if(a.set(Date,d=>new Date(d)),a.set(Map,(d,l)=>new Map(t(Array.from(d),l))),a.set(Set,(d,l)=>new Set(t(Array.from(d),l))),n.constructorHandlers)for(const d of n.constructorHandlers)a.set(d[0],d[1]);let u=null;return n.proto?r:g;function t(d,l){const h=Object.keys(d),v=new Array(h.length);for(let c=0;c<h.length;c++){const y=h[c],b=d[y];typeof b!="object"||b===null?v[y]=b:b.constructor!==Object&&(u=a.get(b.constructor))?v[y]=u(b,l):ArrayBuffer.isView(b)?v[y]=i(b):v[y]=l(b)}return v}function g(d){if(typeof d!="object"||d===null)return d;if(Array.isArray(d))return t(d,g);if(d.constructor!==Object&&(u=a.get(d.constructor)))return u(d,g);const l={};for(const h in d){if(Object.hasOwnProperty.call(d,h)===!1)continue;const v=d[h];typeof v!="object"||v===null?l[h]=v:v.constructor!==Object&&(u=a.get(v.constructor))?l[h]=u(v,g):ArrayBuffer.isView(v)?l[h]=i(v):l[h]=g(v)}return l}function r(d){if(typeof d!="object"||d===null)return d;if(Array.isArray(d))return t(d,r);if(d.constructor!==Object&&(u=a.get(d.constructor)))return u(d,r);const l={};for(const h in d){const v=d[h];typeof v!="object"||v===null?l[h]=v:v.constructor!==Object&&(u=a.get(v.constructor))?l[h]=u(v,r):ArrayBuffer.isView(v)?l[h]=i(v):l[h]=r(v)}return l}}function o(n){const a=[],u=[],t=new Map;if(t.set(Date,h=>new Date(h)),t.set(Map,(h,v)=>new Map(r(Array.from(h),v))),t.set(Set,(h,v)=>new Set(r(Array.from(h),v))),n.constructorHandlers)for(const h of n.constructorHandlers)t.set(h[0],h[1]);let g=null;return n.proto?l:d;function r(h,v){const c=Object.keys(h),y=new Array(c.length);for(let b=0;b<c.length;b++){const f=c[b],m=h[f];if(typeof m!="object"||m===null)y[f]=m;else if(m.constructor!==Object&&(g=t.get(m.constructor)))y[f]=g(m,v);else if(ArrayBuffer.isView(m))y[f]=i(m);else{const p=a.indexOf(m);p!==-1?y[f]=u[p]:y[f]=v(m)}}return y}function d(h){if(typeof h!="object"||h===null)return h;if(Array.isArray(h))return r(h,d);if(h.constructor!==Object&&(g=t.get(h.constructor)))return g(h,d);const v={};a.push(h),u.push(v);for(const c in h){if(Object.hasOwnProperty.call(h,c)===!1)continue;const y=h[c];if(typeof y!="object"||y===null)v[c]=y;else if(y.constructor!==Object&&(g=t.get(y.constructor)))v[c]=g(y,d);else if(ArrayBuffer.isView(y))v[c]=i(y);else{const b=a.indexOf(y);b!==-1?v[c]=u[b]:v[c]=d(y)}}return a.pop(),u.pop(),v}function l(h){if(typeof h!="object"||h===null)return h;if(Array.isArray(h))return r(h,l);if(h.constructor!==Object&&(g=t.get(h.constructor)))return g(h,l);const v={};a.push(h),u.push(v);for(const c in h){const y=h[c];if(typeof y!="object"||y===null)v[c]=y;else if(y.constructor!==Object&&(g=t.get(y.constructor)))v[c]=g(y,l);else if(ArrayBuffer.isView(y))v[c]=i(y);else{const b=a.indexOf(y);b!==-1?v[c]=u[b]:v[c]=l(y)}}return a.pop(),u.pop(),v}}return yn}var Md=Bd();const _t=Hd(Md);_t();var Rt=typeof global=="object"&&global&&global.Object===Object&&global,xd=typeof self=="object"&&self&&self.Object===Object&&self,ai=Rt||xd||Function("return this")(),si=ai.Symbol,At=Object.prototype,Qd=At.hasOwnProperty,Gd=At.toString,Ee=si?si.toStringTag:void 0;function Nd(i){var e=Qd.call(i,Ee),o=i[Ee];try{i[Ee]=void 0;var n=!0}catch{}var a=Gd.call(i);return n&&(e?i[Ee]=o:delete i[Ee]),a}var Pd=Object.prototype,Wd=Pd.toString;function Ed(i){return Wd.call(i)}var Od="[object Null]",Fd="[object Undefined]",yu=si?si.toStringTag:void 0;function hi(i){return i==null?i===void 0?Fd:Od:yu&&yu in Object(i)?Nd(i):Ed(i)}function U(i){return i!=null&&typeof i=="object"}var _d="[object Symbol]";function wi(i){return typeof i=="symbol"||U(i)&&hi(i)==_d}var Rd=NaN;function bu(i){return typeof i=="number"?i:wi(i)?Rd:+i}function q(i,e){for(var o=-1,n=i==null?0:i.length,a=Array(n);++o<n;)a[o]=e(i[o],o,i);return a}var X=Array.isArray,pu=si?si.prototype:void 0,wu=pu?pu.toString:void 0;function fi(i){if(typeof i=="string")return i;if(X(i))return q(i,fi)+"";if(wi(i))return wu?wu.call(i):"";var e=i+"";return e=="0"&&1/i==-1/0?"-0":e}function Wo(i,e){return function(o,n){var a;if(o===void 0&&n===void 0)return e;if(o!==void 0&&(a=o),n!==void 0){if(a===void 0)return n;typeof o=="string"||typeof n=="string"?(o=fi(o),n=fi(n)):(o=bu(o),n=bu(n)),a=i(o,n)}return a}}var Ad=Wo(function(i,e){return i+e},0),Kd=/\s/;function Kt(i){for(var e=i.length;e--&&Kd.test(i.charAt(e)););return e}var zd=/^\s+/;function zt(i){return i&&i.slice(0,Kt(i)+1).replace(zd,"")}function $(i){var e=typeof i;return i!=null&&(e=="object"||e=="function")}var fu=NaN,Id=/^[-+]0x[0-9a-f]+$/i,qd=/^0b[01]+$/i,$d=/^0o[0-7]+$/i,Ud=parseInt;function ki(i){if(typeof i=="number")return i;if(wi(i))return fu;if($(i)){var e=typeof i.valueOf=="function"?i.valueOf():i;i=$(e)?e+"":e}if(typeof i!="string")return i===0?i:+i;i=zt(i);var o=qd.test(i);return o||$d.test(i)?Ud(i.slice(2),o?2:8):Id.test(i)?fu:+i}var ju=1/0,Vd=17976931348623157e292;function Fi(i){if(!i)return i===0?i:0;if(i=ki(i),i===ju||i===-ju){var e=i<0?-1:1;return e*Vd}return i===i?i:0}function D(i){var e=Fi(i),o=e%1;return e===e?o?e-o:e:0}var ih="Expected a function";function eh(i,e){if(typeof e!="function")throw new TypeError(ih);return i=D(i),function(){if(--i<1)return e.apply(this,arguments)}}function yi(i){return i}var oh="[object AsyncFunction]",nh="[object Function]",ah="[object GeneratorFunction]",uh="[object Proxy]";function _i(i){if(!$(i))return!1;var e=hi(i);return e==nh||e==ah||e==oh||e==uh}var jo=ai["__core-js_shared__"],mu=(function(){var i=/[^.]+$/.exec(jo&&jo.keys&&jo.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})();function th(i){return!!mu&&mu in i}var gh=Function.prototype,sh=gh.toString;function he(i){if(i!=null){try{return sh.call(i)}catch{}try{return i+""}catch{}}return""}var rh=/[\\^$.*+?()[\]{}|]/g,dh=/^\[object .+?Constructor\]$/,hh=Function.prototype,lh=Object.prototype,vh=hh.toString,ch=lh.hasOwnProperty,yh=RegExp("^"+vh.call(ch).replace(rh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function It(i){if(!$(i)||th(i))return!1;var e=_i(i)?yh:dh;return e.test(he(i))}function bh(i,e){return i?.[e]}function le(i,e){var o=bh(i,e);return It(o)?o:void 0}var qe=le(ai,"WeakMap"),Xo=qe&&new qe,qt=Xo?function(i,e){return Xo.set(i,e),i}:yi,Yu=Object.create,Ze=(function(){function i(){}return function(e){if(!$(e))return{};if(Yu)return Yu(e);i.prototype=e;var o=new i;return i.prototype=void 0,o}})();function $e(i){return function(){var e=arguments;switch(e.length){case 0:return new i;case 1:return new i(e[0]);case 2:return new i(e[0],e[1]);case 3:return new i(e[0],e[1],e[2]);case 4:return new i(e[0],e[1],e[2],e[3]);case 5:return new i(e[0],e[1],e[2],e[3],e[4]);case 6:return new i(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new i(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var o=Ze(i.prototype),n=i.apply(o,e);return $(n)?n:o}}var ph=1;function wh(i,e,o){var n=e&ph,a=$e(i);function u(){var t=this&&this!==ai&&this instanceof u?a:i;return t.apply(n?o:this,arguments)}return u}function ji(i,e,o){switch(o.length){case 0:return i.call(e);case 1:return i.call(e,o[0]);case 2:return i.call(e,o[0],o[1]);case 3:return i.call(e,o[0],o[1],o[2])}return i.apply(e,o)}var fh=Math.max;function $t(i,e,o,n){for(var a=-1,u=i.length,t=o.length,g=-1,r=e.length,d=fh(u-t,0),l=Array(r+d),h=!n;++g<r;)l[g]=e[g];for(;++a<t;)(h||a<u)&&(l[o[a]]=i[a]);for(;d--;)l[g++]=i[a++];return l}var jh=Math.max;function Ut(i,e,o,n){for(var a=-1,u=i.length,t=-1,g=o.length,r=-1,d=e.length,l=jh(u-g,0),h=Array(l+d),v=!n;++a<l;)h[a]=i[a];for(var c=a;++r<d;)h[c+r]=e[r];for(;++t<g;)(v||a<u)&&(h[c+o[t]]=i[a++]);return h}function mh(i,e){for(var o=i.length,n=0;o--;)i[o]===e&&++n;return n}function Eo(){}var Yh=4294967295;function M(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Yh,this.__views__=[]}M.prototype=Ze(Eo.prototype);M.prototype.constructor=M;function ha(){}var la=Xo?function(i){return Xo.get(i)}:ha,fe={},kh=Object.prototype,Lh=kh.hasOwnProperty;function mo(i){for(var e=i.name+"",o=fe[e],n=Lh.call(fe,e)?o.length:0;n--;){var a=o[n],u=a.func;if(u==null||u==i)return a.name}return e}function Si(i,e){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}Si.prototype=Ze(Eo.prototype);Si.prototype.constructor=Si;function ci(i,e){var o=-1,n=i.length;for(e||(e=Array(n));++o<n;)e[o]=i[o];return e}function Vt(i){if(i instanceof M)return i.clone();var e=new Si(i.__wrapped__,i.__chain__);return e.__actions__=ci(i.__actions__),e.__index__=i.__index__,e.__values__=i.__values__,e}var Sh=Object.prototype,Zh=Sh.hasOwnProperty;function s(i){if(U(i)&&!X(i)&&!(i instanceof M)){if(i instanceof Si)return i;if(Zh.call(i,"__wrapped__"))return Vt(i)}return new Si(i)}s.prototype=Eo.prototype;s.prototype.constructor=s;function En(i){var e=mo(i),o=s[e];if(typeof o!="function"||!(e in M.prototype))return!1;if(i===o)return!0;var n=la(o);return!!n&&i===n[0]}var Jh=800,Ch=16,Th=Date.now;function ig(i){var e=0,o=0;return function(){var n=Th(),a=Ch-(n-o);if(o=n,a>0){if(++e>=Jh)return arguments[0]}else e=0;return i.apply(void 0,arguments)}}var eg=ig(qt),Xh=/\{\n\/\* \[wrapped with (.+)\] \*/,Dh=/,? & /;function Hh(i){var e=i.match(Xh);return e?e[1].split(Dh):[]}var Bh=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function Mh(i,e){var o=e.length;if(!o)return i;var n=o-1;return e[n]=(o>1?"& ":"")+e[n],e=e.join(o>2?", ":" "),i.replace(Bh,`{
|
|
2
2
|
/* [wrapped with `+e+`] */
|
|
3
3
|
`)}function va(i){return function(){return i}}var Do=(function(){try{var i=le(Object,"defineProperty");return i({},"",{}),i}catch{}})(),xh=Do?function(i,e){return Do(i,"toString",{configurable:!0,enumerable:!1,value:va(e),writable:!0})}:yi,ca=ig(xh);function Yi(i,e){for(var o=-1,n=i==null?0:i.length;++o<n&&e(i[o],o,i)!==!1;);return i}function Oo(i,e,o,n){for(var a=i.length,u=o+(n?1:-1);n?u--:++u<a;)if(e(i[u],u,i))return u;return-1}function og(i){return i!==i}function Qh(i,e,o){for(var n=o-1,a=i.length;++n<a;)if(i[n]===e)return n;return-1}function Je(i,e,o){return e===e?Qh(i,e,o):Oo(i,og,o)}function Fo(i,e){var o=i==null?0:i.length;return!!o&&Je(i,e,0)>-1}var Gh=1,Nh=2,Ph=8,Wh=16,Eh=32,Oh=64,Fh=128,_h=256,Rh=512,Ah=[["ary",Fh],["bind",Gh],["bindKey",Nh],["curry",Ph],["curryRight",Wh],["flip",Rh],["partial",Eh],["partialRight",Oh],["rearg",_h]];function Kh(i,e){return Yi(Ah,function(o){var n="_."+o[0];e&o[1]&&!Fo(i,n)&&i.push(n)}),i.sort()}function ng(i,e,o){var n=e+"";return ca(i,Mh(n,Kh(Hh(n),o)))}var zh=4,Ih=8,ku=32,Lu=64;function ag(i,e,o,n,a,u,t,g,r,d){var l=e&Ih,h=l?t:void 0,v=l?void 0:t,c=l?u:void 0,y=l?void 0:u;e|=l?ku:Lu,e&=~(l?Lu:ku),e&zh||(e&=-4);var b=[i,e,a,c,h,y,v,g,r,d],f=o.apply(void 0,b);return En(i)&&eg(f,b),f.placeholder=n,ng(f,i,e)}function Ce(i){var e=i;return e.placeholder}var qh=9007199254740991,$h=/^(?:0|[1-9]\d*)$/;function Ri(i,e){var o=typeof i;return e=e??qh,!!e&&(o=="number"||o!="symbol"&&$h.test(i))&&i>-1&&i%1==0&&i<e}var Uh=Math.min;function Vh(i,e){for(var o=i.length,n=Uh(e.length,o),a=ci(i);n--;){var u=e[n];i[n]=Ri(u,o)?a[u]:void 0}return i}var Su="__lodash_placeholder__";function $i(i,e){for(var o=-1,n=i.length,a=0,u=[];++o<n;){var t=i[o];(t===e||t===Su)&&(i[o]=Su,u[a++]=o)}return u}var il=1,el=2,ol=8,nl=16,al=128,ul=512;function _o(i,e,o,n,a,u,t,g,r,d){var l=e&al,h=e&il,v=e&el,c=e&(ol|nl),y=e&ul,b=v?void 0:$e(i);function f(){for(var m=arguments.length,p=Array(m),j=m;j--;)p[j]=arguments[j];if(c)var Y=Ce(f),N=mh(p,Y);if(n&&(p=$t(p,n,a,c)),u&&(p=Ut(p,u,t,c)),m-=N,c&&m<d){var C=$i(p,Y);return ag(i,e,_o,f.placeholder,o,p,C,g,r,d-m)}var H=h?o:this,R=v?H[i]:i;return m=p.length,g?p=Vh(p,g):y&&m>1&&p.reverse(),l&&r<m&&(p.length=r),this&&this!==ai&&this instanceof f&&(R=b||$e(R)),R.apply(H,p)}return f}function tl(i,e,o){var n=$e(i);function a(){for(var u=arguments.length,t=Array(u),g=u,r=Ce(a);g--;)t[g]=arguments[g];var d=u<3&&t[0]!==r&&t[u-1]!==r?[]:$i(t,r);if(u-=d.length,u<o)return ag(i,e,_o,a.placeholder,void 0,t,d,void 0,void 0,o-u);var l=this&&this!==ai&&this instanceof a?n:i;return ji(l,this,t)}return a}var gl=1;function sl(i,e,o,n){var a=e&gl,u=$e(i);function t(){for(var g=-1,r=arguments.length,d=-1,l=n.length,h=Array(l+r),v=this&&this!==ai&&this instanceof t?u:i;++d<l;)h[d]=n[d];for(;r--;)h[d++]=arguments[++g];return ji(v,a?o:this,h)}return t}var Zu="__lodash_placeholder__",bn=1,rl=2,dl=4,Ju=8,Oe=128,Cu=256,hl=Math.min;function ll(i,e){var o=i[1],n=e[1],a=o|n,u=a<(bn|rl|Oe),t=n==Oe&&o==Ju||n==Oe&&o==Cu&&i[7].length<=e[8]||n==(Oe|Cu)&&e[7].length<=e[8]&&o==Ju;if(!(u||t))return i;n&bn&&(i[2]=e[2],a|=o&bn?0:dl);var g=e[3];if(g){var r=i[3];i[3]=r?$t(r,g,e[4]):g,i[4]=r?$i(i[3],Zu):e[4]}return g=e[5],g&&(r=i[5],i[5]=r?Ut(r,g,e[6]):g,i[6]=r?$i(i[5],Zu):e[6]),g=e[7],g&&(i[7]=g),n&Oe&&(i[8]=i[8]==null?e[8]:hl(i[8],e[8])),i[9]==null&&(i[9]=e[9]),i[0]=e[0],i[1]=a,i}var vl="Expected a function",Tu=1,cl=2,Xu=8,Du=16,Hu=32,yl=64,Bu=Math.max;function Ai(i,e,o,n,a,u,t,g){var r=e&cl;if(!r&&typeof i!="function")throw new TypeError(vl);var d=n?n.length:0;if(d||(e&=-97,n=a=void 0),t=t===void 0?t:Bu(D(t),0),g=g===void 0?g:D(g),d-=a?a.length:0,e&yl){var l=n,h=a;n=a=void 0}var v=r?void 0:la(i),c=[i,e,o,n,a,l,h,u,t,g];if(v&&ll(c,v),i=c[0],e=c[1],o=c[2],n=c[3],a=c[4],g=c[9]=c[9]===void 0?r?0:i.length:Bu(c[9]-d,0),!g&&e&(Xu|Du)&&(e&=-25),!e||e==Tu)var y=wh(i,e,o);else e==Xu||e==Du?y=tl(i,e,g):(e==Hu||e==(Tu|Hu))&&!a.length?y=sl(i,e,o,n):y=_o.apply(void 0,c);var b=v?qt:eg;return ng(b(y,c),i,e)}var bl=128;function ug(i,e,o){return e=o?void 0:e,e=i&&e==null?i.length:e,Ai(i,bl,void 0,void 0,void 0,void 0,e)}function Ni(i,e,o){e=="__proto__"&&Do?Do(i,e,{configurable:!0,enumerable:!0,value:o,writable:!0}):i[e]=o}function Mi(i,e){return i===e||i!==i&&e!==e}var pl=Object.prototype,wl=pl.hasOwnProperty;function oo(i,e,o){var n=i[e];(!(wl.call(i,e)&&Mi(n,o))||o===void 0&&!(e in i))&&Ni(i,e,o)}function Pi(i,e,o,n){var a=!o;o||(o={});for(var u=-1,t=e.length;++u<t;){var g=e[u],r=n?n(o[g],i[g],g,o,i):void 0;r===void 0&&(r=i[g]),a?Ni(o,g,r):oo(o,g,r)}return o}var Mu=Math.max;function tg(i,e,o){return e=Mu(e===void 0?i.length-1:e,0),function(){for(var n=arguments,a=-1,u=Mu(n.length-e,0),t=Array(u);++a<u;)t[a]=n[e+a];a=-1;for(var g=Array(e+1);++a<e;)g[a]=n[a];return g[e]=o(t),ji(i,this,g)}}function B(i,e){return ca(tg(i,e,yi),i+"")}var fl=9007199254740991;function Ro(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=fl}function bi(i){return i!=null&&Ro(i.length)&&!_i(i)}function di(i,e,o){if(!$(o))return!1;var n=typeof e;return(n=="number"?bi(o)&&Ri(e,o.length):n=="string"&&e in o)?Mi(o[e],i):!1}function Te(i){return B(function(e,o){var n=-1,a=o.length,u=a>1?o[a-1]:void 0,t=a>2?o[2]:void 0;for(u=i.length>3&&typeof u=="function"?(a--,u):void 0,t&&di(o[0],o[1],t)&&(u=a<3?void 0:u,a=1),e=Object(e);++n<a;){var g=o[n];g&&i(e,g,n,u)}return e})}var jl=Object.prototype;function no(i){var e=i&&i.constructor,o=typeof e=="function"&&e.prototype||jl;return i===o}function ya(i,e){for(var o=-1,n=Array(i);++o<i;)n[o]=e(o);return n}var ml="[object Arguments]";function xu(i){return U(i)&&hi(i)==ml}var gg=Object.prototype,Yl=gg.hasOwnProperty,kl=gg.propertyIsEnumerable,se=xu((function(){return arguments})())?xu:function(i){return U(i)&&Yl.call(i,"callee")&&!kl.call(i,"callee")};function ba(){return!1}var sg=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Qu=sg&&typeof module=="object"&&module&&!module.nodeType&&module,Ll=Qu&&Qu.exports===sg,Gu=Ll?ai.Buffer:void 0,Sl=Gu?Gu.isBuffer:void 0,Ui=Sl||ba,Zl="[object Arguments]",Jl="[object Array]",Cl="[object Boolean]",Tl="[object Date]",Xl="[object Error]",Dl="[object Function]",Hl="[object Map]",Bl="[object Number]",Ml="[object Object]",xl="[object RegExp]",Ql="[object Set]",Gl="[object String]",Nl="[object WeakMap]",Pl="[object ArrayBuffer]",Wl="[object DataView]",El="[object Float32Array]",Ol="[object Float64Array]",Fl="[object Int8Array]",_l="[object Int16Array]",Rl="[object Int32Array]",Al="[object Uint8Array]",Kl="[object Uint8ClampedArray]",zl="[object Uint16Array]",Il="[object Uint32Array]",I={};I[El]=I[Ol]=I[Fl]=I[_l]=I[Rl]=I[Al]=I[Kl]=I[zl]=I[Il]=!0;I[Zl]=I[Jl]=I[Pl]=I[Cl]=I[Wl]=I[Tl]=I[Xl]=I[Dl]=I[Hl]=I[Bl]=I[Ml]=I[xl]=I[Ql]=I[Gl]=I[Nl]=!1;function ql(i){return U(i)&&Ro(i.length)&&!!I[hi(i)]}function mi(i){return function(e){return i(e)}}var rg=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ke=rg&&typeof module=="object"&&module&&!module.nodeType&&module,$l=Ke&&Ke.exports===rg,pn=$l&&Rt.process,Zi=(function(){try{var i=Ke&&Ke.require&&Ke.require("util").types;return i||pn&&pn.binding&&pn.binding("util")}catch{}})(),Nu=Zi&&Zi.isTypedArray,Xe=Nu?mi(Nu):ql,Ul=Object.prototype,Vl=Ul.hasOwnProperty;function dg(i,e){var o=X(i),n=!o&&se(i),a=!o&&!n&&Ui(i),u=!o&&!n&&!a&&Xe(i),t=o||n||a||u,g=t?ya(i.length,String):[],r=g.length;for(var d in i)(e||Vl.call(i,d))&&!(t&&(d=="length"||a&&(d=="offset"||d=="parent")||u&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||Ri(d,r)))&&g.push(d);return g}function hg(i,e){return function(o){return i(e(o))}}var i0=hg(Object.keys,Object),e0=Object.prototype,o0=e0.hasOwnProperty;function pa(i){if(!no(i))return i0(i);var e=[];for(var o in Object(i))o0.call(i,o)&&o!="constructor"&&e.push(o);return e}function ui(i){return bi(i)?dg(i):pa(i)}var n0=Object.prototype,a0=n0.hasOwnProperty,u0=Te(function(i,e){if(no(e)||bi(e)){Pi(e,ui(e),i);return}for(var o in e)a0.call(e,o)&&oo(i,o,e[o])});function t0(i){var e=[];if(i!=null)for(var o in Object(i))e.push(o);return e}var g0=Object.prototype,s0=g0.hasOwnProperty;function r0(i){if(!$(i))return t0(i);var e=no(i),o=[];for(var n in i)n=="constructor"&&(e||!s0.call(i,n))||o.push(n);return o}function pi(i){return bi(i)?dg(i,!0):r0(i)}var d0=Te(function(i,e){Pi(e,pi(e),i)}),h0=Te(function(i,e,o,n){Pi(e,pi(e),i,n)}),On=Te(function(i,e,o,n){Pi(e,ui(e),i,n)}),l0=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,v0=/^\w*$/;function wa(i,e){if(X(i))return!1;var o=typeof i;return o=="number"||o=="symbol"||o=="boolean"||i==null||wi(i)?!0:v0.test(i)||!l0.test(i)||e!=null&&i in Object(e)}var Ue=le(Object,"create");function c0(){this.__data__=Ue?Ue(null):{},this.size=0}function y0(i){var e=this.has(i)&&delete this.__data__[i];return this.size-=e?1:0,e}var b0="__lodash_hash_undefined__",p0=Object.prototype,w0=p0.hasOwnProperty;function f0(i){var e=this.__data__;if(Ue){var o=e[i];return o===b0?void 0:o}return w0.call(e,i)?e[i]:void 0}var j0=Object.prototype,m0=j0.hasOwnProperty;function Y0(i){var e=this.__data__;return Ue?e[i]!==void 0:m0.call(e,i)}var k0="__lodash_hash_undefined__";function L0(i,e){var o=this.__data__;return this.size+=this.has(i)?0:1,o[i]=Ue&&e===void 0?k0:e,this}function re(i){var e=-1,o=i==null?0:i.length;for(this.clear();++e<o;){var n=i[e];this.set(n[0],n[1])}}re.prototype.clear=c0;re.prototype.delete=y0;re.prototype.get=f0;re.prototype.has=Y0;re.prototype.set=L0;function S0(){this.__data__=[],this.size=0}function Ao(i,e){for(var o=i.length;o--;)if(Mi(i[o][0],e))return o;return-1}var Z0=Array.prototype,J0=Z0.splice;function C0(i){var e=this.__data__,o=Ao(e,i);if(o<0)return!1;var n=e.length-1;return o==n?e.pop():J0.call(e,o,1),--this.size,!0}function T0(i){var e=this.__data__,o=Ao(e,i);return o<0?void 0:e[o][1]}function X0(i){return Ao(this.__data__,i)>-1}function D0(i,e){var o=this.__data__,n=Ao(o,i);return n<0?(++this.size,o.push([i,e])):o[n][1]=e,this}function Ki(i){var e=-1,o=i==null?0:i.length;for(this.clear();++e<o;){var n=i[e];this.set(n[0],n[1])}}Ki.prototype.clear=S0;Ki.prototype.delete=C0;Ki.prototype.get=T0;Ki.prototype.has=X0;Ki.prototype.set=D0;var Ve=le(ai,"Map");function H0(){this.size=0,this.__data__={hash:new re,map:new(Ve||Ki),string:new re}}function B0(i){var e=typeof i;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?i!=="__proto__":i===null}function Ko(i,e){var o=i.__data__;return B0(e)?o[typeof e=="string"?"string":"hash"]:o.map}function M0(i){var e=Ko(this,i).delete(i);return this.size-=e?1:0,e}function x0(i){return Ko(this,i).get(i)}function Q0(i){return Ko(this,i).has(i)}function G0(i,e){var o=Ko(this,i),n=o.size;return o.set(i,e),this.size+=o.size==n?0:1,this}function zi(i){var e=-1,o=i==null?0:i.length;for(this.clear();++e<o;){var n=i[e];this.set(n[0],n[1])}}zi.prototype.clear=H0;zi.prototype.delete=M0;zi.prototype.get=x0;zi.prototype.has=Q0;zi.prototype.set=G0;var N0="Expected a function";function zo(i,e){if(typeof i!="function"||e!=null&&typeof e!="function")throw new TypeError(N0);var o=function(){var n=arguments,a=e?e.apply(this,n):n[0],u=o.cache;if(u.has(a))return u.get(a);var t=i.apply(this,n);return o.cache=u.set(a,t)||u,t};return o.cache=new(zo.Cache||zi),o}zo.Cache=zi;var P0=500;function W0(i){var e=zo(i,function(n){return o.size===P0&&o.clear(),n}),o=e.cache;return e}var E0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,O0=/\\(\\)?/g,lg=W0(function(i){var e=[];return i.charCodeAt(0)===46&&e.push(""),i.replace(E0,function(o,n,a,u){e.push(a?u.replace(O0,"$1"):n||o)}),e});function F(i){return i==null?"":fi(i)}function ie(i,e){return X(i)?i:wa(i,e)?[i]:lg(F(i))}function Hi(i){if(typeof i=="string"||wi(i))return i;var e=i+"";return e=="0"&&1/i==-1/0?"-0":e}function ve(i,e){e=ie(e,i);for(var o=0,n=e.length;i!=null&&o<n;)i=i[Hi(e[o++])];return o&&o==n?i:void 0}function fa(i,e,o){var n=i==null?void 0:ve(i,e);return n===void 0?o:n}function ja(i,e){for(var o=-1,n=e.length,a=Array(n),u=i==null;++o<n;)a[o]=u?void 0:fa(i,e[o]);return a}function ee(i,e){for(var o=-1,n=e.length,a=i.length;++o<n;)i[a+o]=e[o];return i}var Pu=si?si.isConcatSpreadable:void 0;function F0(i){return X(i)||se(i)||!!(Pu&&i&&i[Pu])}function ti(i,e,o,n,a){var u=-1,t=i.length;for(o||(o=F0),a||(a=[]);++u<t;){var g=i[u];e>0&&o(g)?e>1?ti(g,e-1,o,n,a):ee(a,g):n||(a[a.length]=g)}return a}function vg(i){var e=i==null?0:i.length;return e?ti(i,1):[]}function Ii(i){return ca(tg(i,void 0,vg),i+"")}var _0=Ii(ja),Io=hg(Object.getPrototypeOf,Object),R0="[object Object]",A0=Function.prototype,K0=Object.prototype,cg=A0.toString,z0=K0.hasOwnProperty,I0=cg.call(Object);function ao(i){if(!U(i)||hi(i)!=R0)return!1;var e=Io(i);if(e===null)return!0;var o=z0.call(e,"constructor")&&e.constructor;return typeof o=="function"&&o instanceof o&&cg.call(o)==I0}var q0="[object DOMException]",$0="[object Error]";function ma(i){if(!U(i))return!1;var e=hi(i);return e==$0||e==q0||typeof i.message=="string"&&typeof i.name=="string"&&!ao(i)}var yg=B(function(i,e){try{return ji(i,void 0,e)}catch(o){return ma(o)?o:new Error(o)}}),U0="Expected a function";function bg(i,e){var o;if(typeof e!="function")throw new TypeError(U0);return i=D(i),function(){return--i>0&&(o=e.apply(this,arguments)),i<=1&&(e=void 0),o}}var V0=1,iv=32,qo=B(function(i,e,o){var n=V0;if(o.length){var a=$i(o,Ce(qo));n|=iv}return Ai(i,n,e,o,a)});qo.placeholder={};var ev=Ii(function(i,e){return Yi(e,function(o){o=Hi(o),Ni(i,o,qo(i[o],i))}),i}),ov=1,nv=2,av=32,Ya=B(function(i,e,o){var n=ov|nv;if(o.length){var a=$i(o,Ce(Ya));n|=av}return Ai(e,n,i,o,a)});Ya.placeholder={};function Ji(i,e,o){var n=-1,a=i.length;e<0&&(e=-e>a?0:a+e),o=o>a?a:o,o<0&&(o+=a),a=e>o?0:o-e>>>0,e>>>=0;for(var u=Array(a);++n<a;)u[n]=i[n+e];return u}function oe(i,e,o){var n=i.length;return o=o===void 0?n:o,!e&&o>=n?i:Ji(i,e,o)}var uv="\\ud800-\\udfff",tv="\\u0300-\\u036f",gv="\\ufe20-\\ufe2f",sv="\\u20d0-\\u20ff",rv=tv+gv+sv,dv="\\ufe0e\\ufe0f",hv="\\u200d",lv=RegExp("["+hv+uv+rv+dv+"]");function De(i){return lv.test(i)}function vv(i){return i.split("")}var pg="\\ud800-\\udfff",cv="\\u0300-\\u036f",yv="\\ufe20-\\ufe2f",bv="\\u20d0-\\u20ff",pv=cv+yv+bv,wv="\\ufe0e\\ufe0f",fv="["+pg+"]",Fn="["+pv+"]",_n="\\ud83c[\\udffb-\\udfff]",jv="(?:"+Fn+"|"+_n+")",wg="[^"+pg+"]",fg="(?:\\ud83c[\\udde6-\\uddff]){2}",jg="[\\ud800-\\udbff][\\udc00-\\udfff]",mv="\\u200d",mg=jv+"?",Yg="["+wv+"]?",Yv="(?:"+mv+"(?:"+[wg,fg,jg].join("|")+")"+Yg+mg+")*",kv=Yg+mg+Yv,Lv="(?:"+[wg+Fn+"?",Fn,fg,jg,fv].join("|")+")",Sv=RegExp(_n+"(?="+_n+")|"+Lv+kv,"g");function Zv(i){return i.match(Sv)||[]}function Bi(i){return De(i)?Zv(i):vv(i)}function kg(i){return function(e){e=F(e);var o=De(e)?Bi(e):void 0,n=o?o[0]:e.charAt(0),a=o?oe(o,1).join(""):e.slice(1);return n[i]()+a}}var ka=kg("toUpperCase");function Lg(i){return ka(F(i).toLowerCase())}function La(i,e,o,n){var a=-1,u=i==null?0:i.length;for(n&&u&&(o=i[++a]);++a<u;)o=e(o,i[a],a,i);return o}function Sa(i){return function(e){return i?.[e]}}var Jv={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Cv=Sa(Jv),Tv=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xv="\\u0300-\\u036f",Dv="\\ufe20-\\ufe2f",Hv="\\u20d0-\\u20ff",Bv=Xv+Dv+Hv,Mv="["+Bv+"]",xv=RegExp(Mv,"g");function Sg(i){return i=F(i),i&&i.replace(Tv,Cv).replace(xv,"")}var Qv=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Gv(i){return i.match(Qv)||[]}var Nv=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Pv(i){return Nv.test(i)}var Zg="\\ud800-\\udfff",Wv="\\u0300-\\u036f",Ev="\\ufe20-\\ufe2f",Ov="\\u20d0-\\u20ff",Fv=Wv+Ev+Ov,Jg="\\u2700-\\u27bf",Cg="a-z\\xdf-\\xf6\\xf8-\\xff",_v="\\xac\\xb1\\xd7\\xf7",Rv="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Av="\\u2000-\\u206f",Kv=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Tg="A-Z\\xc0-\\xd6\\xd8-\\xde",zv="\\ufe0e\\ufe0f",Xg=_v+Rv+Av+Kv,Dg="['’]",Wu="["+Xg+"]",Iv="["+Fv+"]",Hg="\\d+",qv="["+Jg+"]",Bg="["+Cg+"]",Mg="[^"+Zg+Xg+Hg+Jg+Cg+Tg+"]",$v="\\ud83c[\\udffb-\\udfff]",Uv="(?:"+Iv+"|"+$v+")",Vv="[^"+Zg+"]",xg="(?:\\ud83c[\\udde6-\\uddff]){2}",Qg="[\\ud800-\\udbff][\\udc00-\\udfff]",be="["+Tg+"]",ic="\\u200d",Eu="(?:"+Bg+"|"+Mg+")",ec="(?:"+be+"|"+Mg+")",Ou="(?:"+Dg+"(?:d|ll|m|re|s|t|ve))?",Fu="(?:"+Dg+"(?:D|LL|M|RE|S|T|VE))?",Gg=Uv+"?",Ng="["+zv+"]?",oc="(?:"+ic+"(?:"+[Vv,xg,Qg].join("|")+")"+Ng+Gg+")*",nc="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ac="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",uc=Ng+Gg+oc,tc="(?:"+[qv,xg,Qg].join("|")+")"+uc,gc=RegExp([be+"?"+Bg+"+"+Ou+"(?="+[Wu,be,"$"].join("|")+")",ec+"+"+Fu+"(?="+[Wu,be+Eu,"$"].join("|")+")",be+"?"+Eu+"+"+Ou,be+"+"+Fu,ac,nc,Hg,tc].join("|"),"g");function sc(i){return i.match(gc)||[]}function Pg(i,e,o){return i=F(i),e=o?void 0:e,e===void 0?Pv(i)?sc(i):Gv(i):i.match(e)||[]}var rc="['’]",dc=RegExp(rc,"g");function He(i){return function(e){return La(Pg(Sg(e).replace(dc,"")),i,"")}}var hc=He(function(i,e,o){return e=e.toLowerCase(),i+(o?Lg(e):e)});function lc(){if(!arguments.length)return[];var i=arguments[0];return X(i)?i:[i]}var vc=ai.isFinite,cc=Math.min;function Za(i){var e=Math[i];return function(o,n){if(o=ki(o),n=n==null?0:cc(D(n),292),n&&vc(o)){var a=(F(o)+"e").split("e"),u=e(a[0]+"e"+(+a[1]+n));return a=(F(u)+"e").split("e"),+(a[0]+"e"+(+a[1]-n))}return e(o)}}var yc=Za("ceil");function Wg(i){var e=s(i);return e.__chain__=!0,e}var bc=Math.ceil,pc=Math.max;function wc(i,e,o){(o?di(i,e,o):e===void 0)?e=1:e=pc(D(e),0);var n=i==null?0:i.length;if(!n||e<1)return[];for(var a=0,u=0,t=Array(bc(n/e));a<n;)t[u++]=Ji(i,a,a+=e);return t}function ce(i,e,o){return i===i&&(o!==void 0&&(i=i<=o?i:o),e!==void 0&&(i=i>=e?i:e)),i}function fc(i,e,o){return o===void 0&&(o=e,e=void 0),o!==void 0&&(o=ki(o),o=o===o?o:0),e!==void 0&&(e=ki(e),e=e===e?e:0),ce(ki(i),e,o)}function jc(){this.__data__=new Ki,this.size=0}function mc(i){var e=this.__data__,o=e.delete(i);return this.size=e.size,o}function Yc(i){return this.__data__.get(i)}function kc(i){return this.__data__.has(i)}var Lc=200;function Sc(i,e){var o=this.__data__;if(o instanceof Ki){var n=o.__data__;if(!Ve||n.length<Lc-1)return n.push([i,e]),this.size=++o.size,this;o=this.__data__=new zi(n)}return o.set(i,e),this.size=o.size,this}function Di(i){var e=this.__data__=new Ki(i);this.size=e.size}Di.prototype.clear=jc;Di.prototype.delete=mc;Di.prototype.get=Yc;Di.prototype.has=kc;Di.prototype.set=Sc;function Eg(i,e){return i&&Pi(e,ui(e),i)}function Zc(i,e){return i&&Pi(e,pi(e),i)}var Og=typeof exports=="object"&&exports&&!exports.nodeType&&exports,_u=Og&&typeof module=="object"&&module&&!module.nodeType&&module,Jc=_u&&_u.exports===Og,Ru=Jc?ai.Buffer:void 0,Au=Ru?Ru.allocUnsafe:void 0;function Fg(i,e){if(e)return i.slice();var o=i.length,n=Au?Au(o):new i.constructor(o);return i.copy(n),n}function ne(i,e){for(var o=-1,n=i==null?0:i.length,a=0,u=[];++o<n;){var t=i[o];e(t,o,i)&&(u[a++]=t)}return u}function Ja(){return[]}var Cc=Object.prototype,Tc=Cc.propertyIsEnumerable,Ku=Object.getOwnPropertySymbols,Ca=Ku?function(i){return i==null?[]:(i=Object(i),ne(Ku(i),function(e){return Tc.call(i,e)}))}:Ja;function Xc(i,e){return Pi(i,Ca(i),e)}var Dc=Object.getOwnPropertySymbols,_g=Dc?function(i){for(var e=[];i;)ee(e,Ca(i)),i=Io(i);return e}:Ja;function Hc(i,e){return Pi(i,_g(i),e)}function Rg(i,e,o){var n=e(i);return X(i)?n:ee(n,o(i))}function Rn(i){return Rg(i,ui,Ca)}function Ta(i){return Rg(i,pi,_g)}var An=le(ai,"DataView"),Kn=le(ai,"Promise"),je=le(ai,"Set"),zu="[object Map]",Bc="[object Object]",Iu="[object Promise]",qu="[object Set]",$u="[object WeakMap]",Uu="[object DataView]",Mc=he(An),xc=he(Ve),Qc=he(Kn),Gc=he(je),Nc=he(qe),ue=hi;(An&&ue(new An(new ArrayBuffer(1)))!=Uu||Ve&&ue(new Ve)!=zu||Kn&&ue(Kn.resolve())!=Iu||je&&ue(new je)!=qu||qe&&ue(new qe)!=$u)&&(ue=function(i){var e=hi(i),o=e==Bc?i.constructor:void 0,n=o?he(o):"";if(n)switch(n){case Mc:return Uu;case xc:return zu;case Qc:return Iu;case Gc:return qu;case Nc:return $u}return e});const Gi=ue;var Pc=Object.prototype,Wc=Pc.hasOwnProperty;function Ec(i){var e=i.length,o=new i.constructor(e);return e&&typeof i[0]=="string"&&Wc.call(i,"index")&&(o.index=i.index,o.input=i.input),o}var Ho=ai.Uint8Array;function Xa(i){var e=new i.constructor(i.byteLength);return new Ho(e).set(new Ho(i)),e}function Oc(i,e){var o=e?Xa(i.buffer):i.buffer;return new i.constructor(o,i.byteOffset,i.byteLength)}var Fc=/\w*$/;function _c(i){var e=new i.constructor(i.source,Fc.exec(i));return e.lastIndex=i.lastIndex,e}var Vu=si?si.prototype:void 0,it=Vu?Vu.valueOf:void 0;function Rc(i){return it?Object(it.call(i)):{}}function Ag(i,e){var o=e?Xa(i.buffer):i.buffer;return new i.constructor(o,i.byteOffset,i.length)}var Ac="[object Boolean]",Kc="[object Date]",zc="[object Map]",Ic="[object Number]",qc="[object RegExp]",$c="[object Set]",Uc="[object String]",Vc="[object Symbol]",iy="[object ArrayBuffer]",ey="[object DataView]",oy="[object Float32Array]",ny="[object Float64Array]",ay="[object Int8Array]",uy="[object Int16Array]",ty="[object Int32Array]",gy="[object Uint8Array]",sy="[object Uint8ClampedArray]",ry="[object Uint16Array]",dy="[object Uint32Array]";function hy(i,e,o){var n=i.constructor;switch(e){case iy:return Xa(i);case Ac:case Kc:return new n(+i);case ey:return Oc(i,o);case oy:case ny:case ay:case uy:case ty:case gy:case sy:case ry:case dy:return Ag(i,o);case zc:return new n;case Ic:case Uc:return new n(i);case qc:return _c(i);case $c:return new n;case Vc:return Rc(i)}}function Kg(i){return typeof i.constructor=="function"&&!no(i)?Ze(Io(i)):{}}var ly="[object Map]";function vy(i){return U(i)&&Gi(i)==ly}var et=Zi&&Zi.isMap,zg=et?mi(et):vy,cy="[object Set]";function yy(i){return U(i)&&Gi(i)==cy}var ot=Zi&&Zi.isSet,Ig=ot?mi(ot):yy,by=1,py=2,wy=4,qg="[object Arguments]",fy="[object Array]",jy="[object Boolean]",my="[object Date]",Yy="[object Error]",$g="[object Function]",ky="[object GeneratorFunction]",Ly="[object Map]",Sy="[object Number]",Ug="[object Object]",Zy="[object RegExp]",Jy="[object Set]",Cy="[object String]",Ty="[object Symbol]",Xy="[object WeakMap]",Dy="[object ArrayBuffer]",Hy="[object DataView]",By="[object Float32Array]",My="[object Float64Array]",xy="[object Int8Array]",Qy="[object Int16Array]",Gy="[object Int32Array]",Ny="[object Uint8Array]",Py="[object Uint8ClampedArray]",Wy="[object Uint16Array]",Ey="[object Uint32Array]",z={};z[qg]=z[fy]=z[Dy]=z[Hy]=z[jy]=z[my]=z[By]=z[My]=z[xy]=z[Qy]=z[Gy]=z[Ly]=z[Sy]=z[Ug]=z[Zy]=z[Jy]=z[Cy]=z[Ty]=z[Ny]=z[Py]=z[Wy]=z[Ey]=!0;z[Yy]=z[$g]=z[Xy]=!1;function Li(i,e,o,n,a,u){var t,g=e&by,r=e&py,d=e&wy;if(o&&(t=a?o(i,n,a,u):o(i)),t!==void 0)return t;if(!$(i))return i;var l=X(i);if(l){if(t=Ec(i),!g)return ci(i,t)}else{var h=Gi(i),v=h==$g||h==ky;if(Ui(i))return Fg(i,g);if(h==Ug||h==qg||v&&!a){if(t=r||v?{}:Kg(i),!g)return r?Hc(i,Zc(t,i)):Xc(i,Eg(t,i))}else{if(!z[h])return a?i:{};t=hy(i,h,g)}}u||(u=new Di);var c=u.get(i);if(c)return c;u.set(i,t),Ig(i)?i.forEach(function(f){t.add(Li(f,e,o,f,i,u))}):zg(i)&&i.forEach(function(f,m){t.set(m,Li(f,e,o,m,i,u))});var y=d?r?Ta:Rn:r?pi:ui,b=l?void 0:y(i);return Yi(b||i,function(f,m){b&&(m=f,f=i[m]),oo(t,m,Li(f,e,o,m,i,u))}),t}var Oy=4;function Fy(i){return Li(i,Oy)}var _y=1,Ry=4;function Ay(i){return Li(i,_y|Ry)}var Ky=1,zy=4;function Iy(i,e){return e=typeof e=="function"?e:void 0,Li(i,Ky|zy,e)}var qy=4;function $y(i,e){return e=typeof e=="function"?e:void 0,Li(i,qy,e)}function Uy(){return new Si(this.value(),this.__chain__)}function Vy(i){for(var e=-1,o=i==null?0:i.length,n=0,a=[];++e<o;){var u=i[e];u&&(a[n++]=u)}return a}function ib(){var i=arguments.length;if(!i)return[];for(var e=Array(i-1),o=arguments[0],n=i;n--;)e[n-1]=arguments[n];return ee(X(o)?ci(o):[o],ti(e,1))}var eb="__lodash_hash_undefined__";function ob(i){return this.__data__.set(i,eb),this}function nb(i){return this.__data__.has(i)}function de(i){var e=-1,o=i==null?0:i.length;for(this.__data__=new zi;++e<o;)this.add(i[e])}de.prototype.add=de.prototype.push=ob;de.prototype.has=nb;function Da(i,e){for(var o=-1,n=i==null?0:i.length;++o<n;)if(e(i[o],o,i))return!0;return!1}function io(i,e){return i.has(e)}var ab=1,ub=2;function Vg(i,e,o,n,a,u){var t=o&ab,g=i.length,r=e.length;if(g!=r&&!(t&&r>g))return!1;var d=u.get(i),l=u.get(e);if(d&&l)return d==e&&l==i;var h=-1,v=!0,c=o&ub?new de:void 0;for(u.set(i,e),u.set(e,i);++h<g;){var y=i[h],b=e[h];if(n)var f=t?n(b,y,h,e,i,u):n(y,b,h,i,e,u);if(f!==void 0){if(f)continue;v=!1;break}if(c){if(!Da(e,function(m,p){if(!io(c,p)&&(y===m||a(y,m,o,n,u)))return c.push(p)})){v=!1;break}}else if(!(y===b||a(y,b,o,n,u))){v=!1;break}}return u.delete(i),u.delete(e),v}function Ha(i){var e=-1,o=Array(i.size);return i.forEach(function(n,a){o[++e]=[a,n]}),o}function $o(i){var e=-1,o=Array(i.size);return i.forEach(function(n){o[++e]=n}),o}var tb=1,gb=2,sb="[object Boolean]",rb="[object Date]",db="[object Error]",hb="[object Map]",lb="[object Number]",vb="[object RegExp]",cb="[object Set]",yb="[object String]",bb="[object Symbol]",pb="[object ArrayBuffer]",wb="[object DataView]",nt=si?si.prototype:void 0,wn=nt?nt.valueOf:void 0;function fb(i,e,o,n,a,u,t){switch(o){case wb:if(i.byteLength!=e.byteLength||i.byteOffset!=e.byteOffset)return!1;i=i.buffer,e=e.buffer;case pb:return!(i.byteLength!=e.byteLength||!u(new Ho(i),new Ho(e)));case sb:case rb:case lb:return Mi(+i,+e);case db:return i.name==e.name&&i.message==e.message;case vb:case yb:return i==e+"";case hb:var g=Ha;case cb:var r=n&tb;if(g||(g=$o),i.size!=e.size&&!r)return!1;var d=t.get(i);if(d)return d==e;n|=gb,t.set(i,e);var l=Vg(g(i),g(e),n,a,u,t);return t.delete(i),l;case bb:if(wn)return wn.call(i)==wn.call(e)}return!1}var jb=1,mb=Object.prototype,Yb=mb.hasOwnProperty;function kb(i,e,o,n,a,u){var t=o&jb,g=Rn(i),r=g.length,d=Rn(e),l=d.length;if(r!=l&&!t)return!1;for(var h=r;h--;){var v=g[h];if(!(t?v in e:Yb.call(e,v)))return!1}var c=u.get(i),y=u.get(e);if(c&&y)return c==e&&y==i;var b=!0;u.set(i,e),u.set(e,i);for(var f=t;++h<r;){v=g[h];var m=i[v],p=e[v];if(n)var j=t?n(p,m,v,e,i,u):n(m,p,v,i,e,u);if(!(j===void 0?m===p||a(m,p,o,n,u):j)){b=!1;break}f||(f=v=="constructor")}if(b&&!f){var Y=i.constructor,N=e.constructor;Y!=N&&"constructor"in i&&"constructor"in e&&!(typeof Y=="function"&&Y instanceof Y&&typeof N=="function"&&N instanceof N)&&(b=!1)}return u.delete(i),u.delete(e),b}var Lb=1,at="[object Arguments]",ut="[object Array]",bo="[object Object]",Sb=Object.prototype,tt=Sb.hasOwnProperty;function Zb(i,e,o,n,a,u){var t=X(i),g=X(e),r=t?ut:Gi(i),d=g?ut:Gi(e);r=r==at?bo:r,d=d==at?bo:d;var l=r==bo,h=d==bo,v=r==d;if(v&&Ui(i)){if(!Ui(e))return!1;t=!0,l=!1}if(v&&!l)return u||(u=new Di),t||Xe(i)?Vg(i,e,o,n,a,u):fb(i,e,r,o,n,a,u);if(!(o&Lb)){var c=l&&tt.call(i,"__wrapped__"),y=h&&tt.call(e,"__wrapped__");if(c||y){var b=c?i.value():i,f=y?e.value():e;return u||(u=new Di),a(b,f,o,n,u)}}return v?(u||(u=new Di),kb(i,e,o,n,a,u)):!1}function uo(i,e,o,n,a){return i===e?!0:i==null||e==null||!U(i)&&!U(e)?i!==i&&e!==e:Zb(i,e,o,n,uo,a)}var Jb=1,Cb=2;function Ba(i,e,o,n){var a=o.length,u=a,t=!n;if(i==null)return!u;for(i=Object(i);a--;){var g=o[a];if(t&&g[2]?g[1]!==i[g[0]]:!(g[0]in i))return!1}for(;++a<u;){g=o[a];var r=g[0],d=i[r],l=g[1];if(t&&g[2]){if(d===void 0&&!(r in i))return!1}else{var h=new Di;if(n)var v=n(d,l,r,i,e,h);if(!(v===void 0?uo(l,d,Jb|Cb,n,h):v))return!1}}return!0}function is(i){return i===i&&!$(i)}function Ma(i){for(var e=ui(i),o=e.length;o--;){var n=e[o],a=i[n];e[o]=[n,a,is(a)]}return e}function es(i,e){return function(o){return o==null?!1:o[i]===e&&(e!==void 0||i in Object(o))}}function os(i){var e=Ma(i);return e.length==1&&e[0][2]?es(e[0][0],e[0][1]):function(o){return o===i||Ba(o,i,e)}}function Tb(i,e){return i!=null&&e in Object(i)}function ns(i,e,o){e=ie(e,i);for(var n=-1,a=e.length,u=!1;++n<a;){var t=Hi(e[n]);if(!(u=i!=null&&o(i,t)))break;i=i[t]}return u||++n!=a?u:(a=i==null?0:i.length,!!a&&Ro(a)&&Ri(t,a)&&(X(i)||se(i)))}function xa(i,e){return i!=null&&ns(i,e,Tb)}var Xb=1,Db=2;function as(i,e){return wa(i)&&is(e)?es(Hi(i),e):function(o){var n=fa(o,i);return n===void 0&&n===e?xa(o,i):uo(e,n,Xb|Db)}}function Qa(i){return function(e){return e?.[i]}}function Hb(i){return function(e){return ve(e,i)}}function us(i){return wa(i)?Qa(Hi(i)):Hb(i)}function J(i){return typeof i=="function"?i:i==null?yi:typeof i=="object"?X(i)?as(i[0],i[1]):os(i):us(i)}var Bb="Expected a function";function Mb(i){var e=i==null?0:i.length,o=J;return i=e?q(i,function(n){if(typeof n[1]!="function")throw new TypeError(Bb);return[o(n[0]),n[1]]}):[],B(function(n){for(var a=-1;++a<e;){var u=i[a];if(ji(u[0],this,n))return ji(u[1],this,n)}})}function ts(i,e,o){var n=o.length;if(i==null)return!n;for(i=Object(i);n--;){var a=o[n],u=e[a],t=i[a];if(t===void 0&&!(a in i)||!u(t))return!1}return!0}function xb(i){var e=ui(i);return function(o){return ts(o,i,e)}}var Qb=1;function Gb(i){return xb(Li(i,Qb))}function Nb(i,e){return e==null||ts(i,e,ui(e))}function Pb(i,e,o,n){for(var a=-1,u=i==null?0:i.length;++a<u;){var t=i[a];e(n,t,o(t),i)}return n}function gs(i){return function(e,o,n){for(var a=-1,u=Object(e),t=n(e),g=t.length;g--;){var r=t[i?g:++a];if(o(u[r],r,u)===!1)break}return e}}var Ga=gs();function Wi(i,e){return i&&Ga(i,e,ui)}function ss(i,e){return function(o,n){if(o==null)return o;if(!bi(o))return i(o,n);for(var a=o.length,u=e?a:-1,t=Object(o);(e?u--:++u<a)&&n(t[u],u,t)!==!1;);return o}}var ae=ss(Wi);function Wb(i,e,o,n){return ae(i,function(a,u,t){e(n,a,o(a),t)}),n}function Uo(i,e){return function(o,n){var a=X(o)?Pb:Wb,u=e?e():{};return a(o,i,J(n),u)}}var Eb=Object.prototype,Ob=Eb.hasOwnProperty,Fb=Uo(function(i,e,o){Ob.call(i,o)?++i[o]:Ni(i,o,1)});function _b(i,e){var o=Ze(i);return e==null?o:Eg(o,e)}var Rb=8;function Na(i,e,o){e=o?void 0:e;var n=Ai(i,Rb,void 0,void 0,void 0,void 0,void 0,e);return n.placeholder=Na.placeholder,n}Na.placeholder={};var Ab=16;function Pa(i,e,o){e=o?void 0:e;var n=Ai(i,Ab,void 0,void 0,void 0,void 0,void 0,e);return n.placeholder=Pa.placeholder,n}Pa.placeholder={};var Yo=function(){return ai.Date.now()},Kb="Expected a function",zb=Math.max,Ib=Math.min;function rs(i,e,o){var n,a,u,t,g,r,d=0,l=!1,h=!1,v=!0;if(typeof i!="function")throw new TypeError(Kb);e=ki(e)||0,$(o)&&(l=!!o.leading,h="maxWait"in o,u=h?zb(ki(o.maxWait)||0,e):u,v="trailing"in o?!!o.trailing:v);function c(C){var H=n,R=a;return n=a=void 0,d=C,t=i.apply(R,H),t}function y(C){return d=C,g=setTimeout(m,e),l?c(C):t}function b(C){var H=C-r,R=C-d,O=e-H;return h?Ib(O,u-R):O}function f(C){var H=C-r,R=C-d;return r===void 0||H>=e||H<0||h&&R>=u}function m(){var C=Yo();if(f(C))return p(C);g=setTimeout(m,b(C))}function p(C){return g=void 0,v&&n?c(C):(n=a=void 0,t)}function j(){g!==void 0&&clearTimeout(g),d=0,n=r=a=g=void 0}function Y(){return g===void 0?t:p(Yo())}function N(){var C=Yo(),H=f(C);if(n=arguments,a=this,r=C,H){if(g===void 0)return y(r);if(h)return clearTimeout(g),g=setTimeout(m,e),c(r)}return g===void 0&&(g=setTimeout(m,e)),t}return N.cancel=j,N.flush=Y,N}function qb(i,e){return i==null||i!==i?e:i}var ds=Object.prototype,$b=ds.hasOwnProperty,Ub=B(function(i,e){i=Object(i);var o=-1,n=e.length,a=n>2?e[2]:void 0;for(a&&di(e[0],e[1],a)&&(n=1);++o<n;)for(var u=e[o],t=pi(u),g=-1,r=t.length;++g<r;){var d=t[g],l=i[d];(l===void 0||Mi(l,ds[d])&&!$b.call(i,d))&&(i[d]=u[d])}return i});function zn(i,e,o){(o!==void 0&&!Mi(i[e],o)||o===void 0&&!(e in i))&&Ni(i,e,o)}function ii(i){return U(i)&&bi(i)}function In(i,e){if(!(e==="constructor"&&typeof i[e]=="function")&&e!="__proto__")return i[e]}function hs(i){return Pi(i,pi(i))}function Vb(i,e,o,n,a,u,t){var g=In(i,o),r=In(e,o),d=t.get(r);if(d){zn(i,o,d);return}var l=u?u(g,r,o+"",i,e,t):void 0,h=l===void 0;if(h){var v=X(r),c=!v&&Ui(r),y=!v&&!c&&Xe(r);l=r,v||c||y?X(g)?l=g:ii(g)?l=ci(g):c?(h=!1,l=Fg(r,!0)):y?(h=!1,l=Ag(r,!0)):l=[]:ao(r)||se(r)?(l=g,se(g)?l=hs(g):(!$(g)||_i(g))&&(l=Kg(r))):h=!1}h&&(t.set(r,l),a(l,r,n,u,t),t.delete(r)),zn(i,o,l)}function Vo(i,e,o,n,a){i!==e&&Ga(e,function(u,t){if(a||(a=new Di),$(u))Vb(i,e,t,o,Vo,n,a);else{var g=n?n(In(i,t),u,t+"",i,e,a):void 0;g===void 0&&(g=u),zn(i,t,g)}},pi)}function ls(i,e,o,n,a,u){return $(i)&&$(e)&&(u.set(e,i),Vo(i,e,void 0,ls,u),u.delete(e)),i}var vs=Te(function(i,e,o,n){Vo(i,e,o,n)}),ip=B(function(i){return i.push(void 0,ls),ji(vs,void 0,i)}),ep="Expected a function";function cs(i,e,o){if(typeof i!="function")throw new TypeError(ep);return setTimeout(function(){i.apply(void 0,o)},e)}var op=B(function(i,e){return cs(i,1,e)}),np=B(function(i,e,o){return cs(i,ki(e)||0,o)});function Wa(i,e,o){for(var n=-1,a=i==null?0:i.length;++n<a;)if(o(e,i[n]))return!0;return!1}var ap=200;function to(i,e,o,n){var a=-1,u=Fo,t=!0,g=i.length,r=[],d=e.length;if(!g)return r;o&&(e=q(e,mi(o))),n?(u=Wa,t=!1):e.length>=ap&&(u=io,t=!1,e=new de(e));i:for(;++a<g;){var l=i[a],h=o==null?l:o(l);if(l=n||l!==0?l:0,t&&h===h){for(var v=d;v--;)if(e[v]===h)continue i;r.push(l)}else u(e,h,n)||r.push(l)}return r}var up=B(function(i,e){return ii(i)?to(i,ti(e,1,ii,!0)):[]});function Ci(i){var e=i==null?0:i.length;return e?i[e-1]:void 0}var tp=B(function(i,e){var o=Ci(e);return ii(o)&&(o=void 0),ii(i)?to(i,ti(e,1,ii,!0),J(o)):[]}),gp=B(function(i,e){var o=Ci(e);return ii(o)&&(o=void 0),ii(i)?to(i,ti(e,1,ii,!0),void 0,o):[]}),sp=Wo(function(i,e){return i/e},1);function rp(i,e,o){var n=i==null?0:i.length;return n?(e=o||e===void 0?1:D(e),Ji(i,e<0?0:e,n)):[]}function dp(i,e,o){var n=i==null?0:i.length;return n?(e=o||e===void 0?1:D(e),e=n-e,Ji(i,0,e<0?0:e)):[]}function en(i,e,o,n){for(var a=i.length,u=n?a:-1;(n?u--:++u<a)&&e(i[u],u,i););return o?Ji(i,n?0:u,n?u+1:a):Ji(i,n?u+1:0,n?a:u)}function hp(i,e){return i&&i.length?en(i,J(e),!0,!0):[]}function lp(i,e){return i&&i.length?en(i,J(e),!0):[]}function Ei(i){return typeof i=="function"?i:yi}function vp(i,e){var o=X(i)?Yi:ae;return o(i,Ei(e))}function cp(i,e){for(var o=i==null?0:i.length;o--&&e(i[o],o,i)!==!1;);return i}var ys=gs(!0);function Ea(i,e){return i&&ys(i,e,ui)}var bs=ss(Ea,!0);function yp(i,e){var o=X(i)?cp:bs;return o(i,Ei(e))}function bp(i,e,o){i=F(i),e=fi(e);var n=i.length;o=o===void 0?n:ce(D(o),0,n);var a=o;return o-=e.length,o>=0&&i.slice(o,a)==e}function pp(i,e){return q(e,function(o){return[o,i[o]]})}function wp(i){var e=-1,o=Array(i.size);return i.forEach(function(n){o[++e]=[n,n]}),o}var fp="[object Map]",jp="[object Set]";function ps(i){return function(e){var o=Gi(e);return o==fp?Ha(e):o==jp?wp(e):pp(e,i(e))}}var mp=ps(ui),Yp=ps(pi),kp={"&":"&","<":"<",">":">",'"':""","'":"'"},Lp=Sa(kp),ws=/[&<>"']/g,Sp=RegExp(ws.source);function fs(i){return i=F(i),i&&Sp.test(i)?i.replace(ws,Lp):i}var js=/[\\^$.*+?()[\]{}|]/g,Zp=RegExp(js.source);function Jp(i){return i=F(i),i&&Zp.test(i)?i.replace(js,"\\$&"):i}function ms(i,e){for(var o=-1,n=i==null?0:i.length;++o<n;)if(!e(i[o],o,i))return!1;return!0}function Cp(i,e){var o=!0;return ae(i,function(n,a,u){return o=!!e(n,a,u),o}),o}function Tp(i,e,o){var n=X(i)?ms:Cp;return o&&di(i,e,o)&&(e=void 0),n(i,J(e))}var Xp=4294967295;function Ys(i){return i?ce(D(i),0,Xp):0}function Dp(i,e,o,n){var a=i.length;for(o=D(o),o<0&&(o=-o>a?0:a+o),n=n===void 0||n>a?a:D(n),n<0&&(n+=a),n=o>n?0:Ys(n);o<n;)i[o++]=e;return i}function Hp(i,e,o,n){var a=i==null?0:i.length;return a?(o&&typeof o!="number"&&di(i,e,o)&&(o=0,n=a),Dp(i,e,o,n)):[]}function ks(i,e){var o=[];return ae(i,function(n,a,u){e(n,a,u)&&o.push(n)}),o}function Bp(i,e){var o=X(i)?ne:ks;return o(i,J(e))}function Ls(i){return function(e,o,n){var a=Object(e);if(!bi(e)){var u=J(o);e=ui(e),o=function(g){return u(a[g],g,a)}}var t=i(e,o,n);return t>-1?a[u?e[t]:t]:void 0}}var Mp=Math.max;function Ss(i,e,o){var n=i==null?0:i.length;if(!n)return-1;var a=o==null?0:D(o);return a<0&&(a=Mp(n+a,0)),Oo(i,J(e),a)}var xp=Ls(Ss);function Zs(i,e,o){var n;return o(i,function(a,u,t){if(e(a,u,t))return n=u,!1}),n}function Qp(i,e){return Zs(i,J(e),Wi)}var Gp=Math.max,Np=Math.min;function Js(i,e,o){var n=i==null?0:i.length;if(!n)return-1;var a=n-1;return o!==void 0&&(a=D(o),a=o<0?Gp(n+a,0):Np(a,n-1)),Oo(i,J(e),a,!0)}var Pp=Ls(Js);function Wp(i,e){return Zs(i,J(e),Ea)}function Ep(i){return i&&i.length?i[0]:void 0}function Cs(i,e){var o=-1,n=bi(i)?Array(i.length):[];return ae(i,function(a,u,t){n[++o]=e(a,u,t)}),n}function on(i,e){var o=X(i)?q:Cs;return o(i,J(e))}function Op(i,e){return ti(on(i,e),1)}var Fp=1/0;function _p(i,e){return ti(on(i,e),Fp)}function Rp(i,e,o){return o=o===void 0?1:D(o),ti(on(i,e),o)}var Ap=1/0;function Kp(i){var e=i==null?0:i.length;return e?ti(i,Ap):[]}function zp(i,e){var o=i==null?0:i.length;return o?(e=e===void 0?1:D(e),ti(i,e)):[]}var Ip=512;function qp(i){return Ai(i,Ip)}var $p=Za("floor"),Up="Expected a function",Vp=8,iw=32,ew=128,ow=256;function Ts(i){return Ii(function(e){var o=e.length,n=o,a=Si.prototype.thru;for(i&&e.reverse();n--;){var u=e[n];if(typeof u!="function")throw new TypeError(Up);if(a&&!t&&mo(u)=="wrapper")var t=new Si([],!0)}for(n=t?n:o;++n<o;){u=e[n];var g=mo(u),r=g=="wrapper"?la(u):void 0;r&&En(r[0])&&r[1]==(ew|Vp|iw|ow)&&!r[4].length&&r[9]==1?t=t[mo(r[0])].apply(t,r[3]):t=u.length==1&&En(u)?t[g]():t.thru(u)}return function(){var d=arguments,l=d[0];if(t&&d.length==1&&X(l))return t.plant(l).value();for(var h=0,v=o?e[h].apply(this,d):l;++h<o;)v=e[h].call(this,v);return v}})}var nw=Ts(),aw=Ts(!0);function uw(i,e){return i==null?i:Ga(i,Ei(e),pi)}function tw(i,e){return i==null?i:ys(i,Ei(e),pi)}function gw(i,e){return i&&Wi(i,Ei(e))}function sw(i,e){return i&&Ea(i,Ei(e))}function rw(i){for(var e=-1,o=i==null?0:i.length,n={};++e<o;){var a=i[e];Ni(n,a[0],a[1])}return n}function nn(i,e){return ne(e,function(o){return _i(i[o])})}function dw(i){return i==null?[]:nn(i,ui(i))}function hw(i){return i==null?[]:nn(i,pi(i))}var lw=Object.prototype,vw=lw.hasOwnProperty,cw=Uo(function(i,e,o){vw.call(i,o)?i[o].push(e):Ni(i,o,[e])});function Oa(i,e){return i>e}function an(i){return function(e,o){return typeof e=="string"&&typeof o=="string"||(e=ki(e),o=ki(o)),i(e,o)}}var yw=an(Oa),bw=an(function(i,e){return i>=e}),pw=Object.prototype,ww=pw.hasOwnProperty;function fw(i,e){return i!=null&&ww.call(i,e)}function jw(i,e){return i!=null&&ns(i,e,fw)}var mw=Math.max,Yw=Math.min;function kw(i,e,o){return i>=Yw(e,o)&&i<mw(e,o)}function Lw(i,e,o){return e=Fi(e),o===void 0?(o=e,e=0):o=Fi(o),i=ki(i),kw(i,e,o)}var Sw="[object String]";function un(i){return typeof i=="string"||!X(i)&&U(i)&&hi(i)==Sw}function Fa(i,e){return q(e,function(o){return i[o]})}function Be(i){return i==null?[]:Fa(i,ui(i))}var Zw=Math.max;function Jw(i,e,o,n){i=bi(i)?i:Be(i),o=o&&!n?D(o):0;var a=i.length;return o<0&&(o=Zw(a+o,0)),un(i)?o<=a&&i.indexOf(e,o)>-1:!!a&&Je(i,e,o)>-1}var Cw=Math.max;function Tw(i,e,o){var n=i==null?0:i.length;if(!n)return-1;var a=o==null?0:D(o);return a<0&&(a=Cw(n+a,0)),Je(i,e,a)}function Xw(i){var e=i==null?0:i.length;return e?Ji(i,0,-1):[]}var Dw=Math.min;function _a(i,e,o){for(var n=o?Wa:Fo,a=i[0].length,u=i.length,t=u,g=Array(u),r=1/0,d=[];t--;){var l=i[t];t&&e&&(l=q(l,mi(e))),r=Dw(l.length,r),g[t]=!o&&(e||a>=120&&l.length>=120)?new de(t&&l):void 0}l=i[0];var h=-1,v=g[0];i:for(;++h<a&&d.length<r;){var c=l[h],y=e?e(c):c;if(c=o||c!==0?c:0,!(v?io(v,y):n(d,y,o))){for(t=u;--t;){var b=g[t];if(!(b?io(b,y):n(i[t],y,o)))continue i}v&&v.push(y),d.push(c)}}return d}function Ra(i){return ii(i)?i:[]}var Hw=B(function(i){var e=q(i,Ra);return e.length&&e[0]===i[0]?_a(e):[]}),Bw=B(function(i){var e=Ci(i),o=q(i,Ra);return e===Ci(o)?e=void 0:o.pop(),o.length&&o[0]===i[0]?_a(o,J(e)):[]}),Mw=B(function(i){var e=Ci(i),o=q(i,Ra);return e=typeof e=="function"?e:void 0,e&&o.pop(),o.length&&o[0]===i[0]?_a(o,void 0,e):[]});function xw(i,e,o,n){return Wi(i,function(a,u,t){e(n,o(a),u,t)}),n}function Xs(i,e){return function(o,n){return xw(o,i,e(n),{})}}var Qw=Object.prototype,Gw=Qw.toString,Nw=Xs(function(i,e,o){e!=null&&typeof e.toString!="function"&&(e=Gw.call(e)),i[e]=o},va(yi)),Ds=Object.prototype,Pw=Ds.hasOwnProperty,Ww=Ds.toString,Ew=Xs(function(i,e,o){e!=null&&typeof e.toString!="function"&&(e=Ww.call(e)),Pw.call(i,e)?i[e].push(o):i[e]=[o]},J);function Hs(i,e){return e.length<2?i:ve(i,Ji(e,0,-1))}function go(i,e,o){e=ie(e,i),i=Hs(i,e);var n=i==null?i:i[Hi(Ci(e))];return n==null?void 0:ji(n,i,o)}var Ow=B(go),Fw=B(function(i,e,o){var n=-1,a=typeof e=="function",u=bi(i)?Array(i.length):[];return ae(i,function(t){u[++n]=a?ji(e,t,o):go(t,e,o)}),u}),_w="[object ArrayBuffer]";function Rw(i){return U(i)&&hi(i)==_w}var gt=Zi&&Zi.isArrayBuffer,Aw=gt?mi(gt):Rw,Kw="[object Boolean]";function zw(i){return i===!0||i===!1||U(i)&&hi(i)==Kw}var Iw="[object Date]";function qw(i){return U(i)&&hi(i)==Iw}var st=Zi&&Zi.isDate,$w=st?mi(st):qw;function Uw(i){return U(i)&&i.nodeType===1&&!ao(i)}var Vw="[object Map]",ef="[object Set]",of=Object.prototype,nf=of.hasOwnProperty;function af(i){if(i==null)return!0;if(bi(i)&&(X(i)||typeof i=="string"||typeof i.splice=="function"||Ui(i)||Xe(i)||se(i)))return!i.length;var e=Gi(i);if(e==Vw||e==ef)return!i.size;if(no(i))return!pa(i).length;for(var o in i)if(nf.call(i,o))return!1;return!0}function uf(i,e){return uo(i,e)}function tf(i,e,o){o=typeof o=="function"?o:void 0;var n=o?o(i,e):void 0;return n===void 0?uo(i,e,void 0,o):!!n}var gf=ai.isFinite;function sf(i){return typeof i=="number"&&gf(i)}function Bs(i){return typeof i=="number"&&i==D(i)}function rf(i,e){return i===e||Ba(i,e,Ma(e))}function df(i,e,o){return o=typeof o=="function"?o:void 0,Ba(i,e,Ma(e),o)}var hf="[object Number]";function Ms(i){return typeof i=="number"||U(i)&&hi(i)==hf}function lf(i){return Ms(i)&&i!=+i}var vf=jo?_i:ba,cf="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.";function yf(i){if(vf(i))throw new Error(cf);return It(i)}function bf(i){return i==null}function pf(i){return i===null}var wf="[object RegExp]";function ff(i){return U(i)&&hi(i)==wf}var rt=Zi&&Zi.isRegExp,Aa=rt?mi(rt):ff,dt=9007199254740991;function jf(i){return Bs(i)&&i>=-dt&&i<=dt}function mf(i){return i===void 0}var Yf="[object WeakMap]";function kf(i){return U(i)&&Gi(i)==Yf}var Lf="[object WeakSet]";function Sf(i){return U(i)&&hi(i)==Lf}var Zf=1;function Jf(i){return J(typeof i=="function"?i:Li(i,Zf))}var Cf=Array.prototype,Tf=Cf.join;function Xf(i,e){return i==null?"":Tf.call(i,e)}var Df=He(function(i,e,o){return i+(o?"-":"")+e.toLowerCase()}),Hf=Uo(function(i,e,o){Ni(i,o,e)});function Bf(i,e,o){for(var n=o+1;n--;)if(i[n]===e)return n;return n}var Mf=Math.max,xf=Math.min;function Qf(i,e,o){var n=i==null?0:i.length;if(!n)return-1;var a=n;return o!==void 0&&(a=D(o),a=a<0?Mf(n+a,0):xf(a,n-1)),e===e?Bf(i,e,a):Oo(i,og,a,!0)}var Gf=He(function(i,e,o){return i+(o?" ":"")+e.toLowerCase()}),Nf=kg("toLowerCase");function Ka(i,e){return i<e}var Pf=an(Ka),Wf=an(function(i,e){return i<=e});function Ef(i,e){var o={};return e=J(e),Wi(i,function(n,a,u){Ni(o,e(n,a,u),n)}),o}function Of(i,e){var o={};return e=J(e),Wi(i,function(n,a,u){Ni(o,a,e(n,a,u))}),o}var Ff=1;function _f(i){return os(Li(i,Ff))}var Rf=1;function Af(i,e){return as(i,Li(e,Rf))}function tn(i,e,o){for(var n=-1,a=i.length;++n<a;){var u=i[n],t=e(u);if(t!=null&&(g===void 0?t===t&&!wi(t):o(t,g)))var g=t,r=u}return r}function Kf(i){return i&&i.length?tn(i,yi,Oa):void 0}function zf(i,e){return i&&i.length?tn(i,J(e),Oa):void 0}function za(i,e){for(var o,n=-1,a=i.length;++n<a;){var u=e(i[n]);u!==void 0&&(o=o===void 0?u:o+u)}return o}var If=NaN;function xs(i,e){var o=i==null?0:i.length;return o?za(i,e)/o:If}function qf(i){return xs(i,yi)}function $f(i,e){return xs(i,J(e))}var Uf=Te(function(i,e,o){Vo(i,e,o)}),Vf=B(function(i,e){return function(o){return go(o,i,e)}}),ij=B(function(i,e){return function(o){return go(i,o,e)}});function ej(i){return i&&i.length?tn(i,yi,Ka):void 0}function oj(i,e){return i&&i.length?tn(i,J(e),Ka):void 0}function nj(i,e,o){var n=ui(e),a=nn(e,n),u=!($(o)&&"chain"in o)||!!o.chain,t=_i(i);return Yi(a,function(g){var r=e[g];i[g]=r,t&&(i.prototype[g]=function(){var d=this.__chain__;if(u||d){var l=i(this.__wrapped__),h=l.__actions__=ci(this.__actions__);return h.push({func:r,args:arguments,thisArg:i}),l.__chain__=d,l}return r.apply(i,ee([this.value()],arguments))})}),i}var aj=Wo(function(i,e){return i*e},1),uj="Expected a function";function gn(i){if(typeof i!="function")throw new TypeError(uj);return function(){var e=arguments;switch(e.length){case 0:return!i.call(this);case 1:return!i.call(this,e[0]);case 2:return!i.call(this,e[0],e[1]);case 3:return!i.call(this,e[0],e[1],e[2])}return!i.apply(this,e)}}function tj(i){for(var e,o=[];!(e=i.next()).done;)o.push(e.value);return o}var gj="[object Map]",sj="[object Set]",fn=si?si.iterator:void 0;function Qs(i){if(!i)return[];if(bi(i))return un(i)?Bi(i):ci(i);if(fn&&i[fn])return tj(i[fn]());var e=Gi(i),o=e==gj?Ha:e==sj?$o:Be;return o(i)}function rj(){this.__values__===void 0&&(this.__values__=Qs(this.value()));var i=this.__index__>=this.__values__.length,e=i?void 0:this.__values__[this.__index__++];return{done:i,value:e}}function Gs(i,e){var o=i.length;if(o)return e+=e<0?o:0,Ri(e,o)?i[e]:void 0}function dj(i,e){return i&&i.length?Gs(i,D(e)):void 0}function hj(i){return i=D(i),B(function(e){return Gs(e,i)})}var lj=Object.prototype,vj=lj.hasOwnProperty;function Ia(i,e){e=ie(e,i);var o=-1,n=e.length;if(!n)return!0;for(;++o<n;){var a=Hi(e[o]);if(a==="__proto__"&&!vj.call(i,"__proto__")||(a==="constructor"||a==="prototype")&&o<n-1)return!1}var u=Hs(i,e);return u==null||delete u[Hi(Ci(e))]}function cj(i){return ao(i)?void 0:i}var yj=1,bj=2,pj=4,wj=Ii(function(i,e){var o={};if(i==null)return o;var n=!1;e=q(e,function(u){return u=ie(u,i),n||(n=u.length>1),u}),Pi(i,Ta(i),o),n&&(o=Li(o,yj|bj|pj,cj));for(var a=e.length;a--;)Ia(o,e[a]);return o});function so(i,e,o,n){if(!$(i))return i;e=ie(e,i);for(var a=-1,u=e.length,t=u-1,g=i;g!=null&&++a<u;){var r=Hi(e[a]),d=o;if(r==="__proto__"||r==="constructor"||r==="prototype")return i;if(a!=t){var l=g[r];d=n?n(l,r,g):void 0,d===void 0&&(d=$(l)?l:Ri(e[a+1])?[]:{})}oo(g,r,d),g=g[r]}return i}function Ns(i,e,o){for(var n=-1,a=e.length,u={};++n<a;){var t=e[n],g=ve(i,t);o(g,t)&&so(u,ie(t,i),g)}return u}function Ps(i,e){if(i==null)return{};var o=q(Ta(i),function(n){return[n]});return e=J(e),Ns(i,o,function(n,a){return e(n,a[0])})}function fj(i,e){return Ps(i,gn(J(e)))}function jj(i){return bg(2,i)}function mj(i,e){var o=i.length;for(i.sort(e);o--;)i[o]=i[o].value;return i}function Ws(i,e){if(i!==e){var o=i!==void 0,n=i===null,a=i===i,u=wi(i),t=e!==void 0,g=e===null,r=e===e,d=wi(e);if(!g&&!d&&!u&&i>e||u&&t&&r&&!g&&!d||n&&t&&r||!o&&r||!a)return 1;if(!n&&!u&&!d&&i<e||d&&o&&a&&!n&&!u||g&&o&&a||!t&&a||!r)return-1}return 0}function Yj(i,e,o){for(var n=-1,a=i.criteria,u=e.criteria,t=a.length,g=o.length;++n<t;){var r=Ws(a[n],u[n]);if(r){if(n>=g)return r;var d=o[n];return r*(d=="desc"?-1:1)}}return i.index-e.index}function Es(i,e,o){e.length?e=q(e,function(u){return X(u)?function(t){return ve(t,u.length===1?u[0]:u)}:u}):e=[yi];var n=-1;e=q(e,mi(J));var a=Cs(i,function(u,t,g){var r=q(e,function(d){return d(u)});return{criteria:r,index:++n,value:u}});return mj(a,function(u,t){return Yj(u,t,o)})}function kj(i,e,o,n){return i==null?[]:(X(e)||(e=e==null?[]:[e]),o=n?void 0:o,X(o)||(o=o==null?[]:[o]),Es(i,e,o))}function qa(i){return Ii(function(e){return e=q(e,mi(J)),B(function(o){var n=this;return i(e,function(a){return ji(a,n,o)})})})}var Lj=qa(q),Sj=B,Zj=Math.min,Jj=Sj(function(i,e){e=e.length==1&&X(e[0])?q(e[0],mi(J)):q(ti(e,1),mi(J));var o=e.length;return B(function(n){for(var a=-1,u=Zj(n.length,o);++a<u;)n[a]=e[a].call(this,n[a]);return ji(i,this,n)})}),Cj=qa(ms),Tj=qa(Da),Xj=9007199254740991,Dj=Math.floor;function qn(i,e){var o="";if(!i||e<1||e>Xj)return o;do e%2&&(o+=i),e=Dj(e/2),e&&(i+=i);while(e);return o}var Hj=Qa("length"),Os="\\ud800-\\udfff",Bj="\\u0300-\\u036f",Mj="\\ufe20-\\ufe2f",xj="\\u20d0-\\u20ff",Qj=Bj+Mj+xj,Gj="\\ufe0e\\ufe0f",Nj="["+Os+"]",$n="["+Qj+"]",Un="\\ud83c[\\udffb-\\udfff]",Pj="(?:"+$n+"|"+Un+")",Fs="[^"+Os+"]",_s="(?:\\ud83c[\\udde6-\\uddff]){2}",Rs="[\\ud800-\\udbff][\\udc00-\\udfff]",Wj="\\u200d",As=Pj+"?",Ks="["+Gj+"]?",Ej="(?:"+Wj+"(?:"+[Fs,_s,Rs].join("|")+")"+Ks+As+")*",Oj=Ks+As+Ej,Fj="(?:"+[Fs+$n+"?",$n,_s,Rs,Nj].join("|")+")",ht=RegExp(Un+"(?="+Un+")|"+Fj+Oj,"g");function _j(i){for(var e=ht.lastIndex=0;ht.test(i);)++e;return e}function Me(i){return De(i)?_j(i):Hj(i)}var Rj=Math.ceil;function Bo(i,e){e=e===void 0?" ":fi(e);var o=e.length;if(o<2)return o?qn(e,i):e;var n=qn(e,Rj(i/Me(e)));return De(e)?oe(Bi(n),0,i).join(""):n.slice(0,i)}var Aj=Math.ceil,Kj=Math.floor;function zj(i,e,o){i=F(i),e=D(e);var n=e?Me(i):0;if(!e||n>=e)return i;var a=(e-n)/2;return Bo(Kj(a),o)+i+Bo(Aj(a),o)}function Ij(i,e,o){i=F(i),e=D(e);var n=e?Me(i):0;return e&&n<e?i+Bo(e-n,o):i}function qj(i,e,o){i=F(i),e=D(e);var n=e?Me(i):0;return e&&n<e?Bo(e-n,o)+i:i}var $j=/^\s+/,Uj=ai.parseInt;function Vj(i,e,o){return o||e==null?e=0:e&&(e=+e),Uj(F(i).replace($j,""),e||0)}var im=32,sn=B(function(i,e){var o=$i(e,Ce(sn));return Ai(i,im,void 0,e,o)});sn.placeholder={};var em=64,$a=B(function(i,e){var o=$i(e,Ce($a));return Ai(i,em,void 0,e,o)});$a.placeholder={};var om=Uo(function(i,e,o){i[o?0:1].push(e)},function(){return[[],[]]});function nm(i,e){return Ns(i,e,function(o,n){return xa(i,n)})}var am=Ii(function(i,e){return i==null?{}:nm(i,e)});function um(i){for(var e,o=this;o instanceof Eo;){var n=Vt(o);n.__index__=0,n.__values__=void 0,e?a.__wrapped__=n:e=n;var a=n;o=o.__wrapped__}return a.__wrapped__=i,e}function tm(i){return function(e){return i==null?void 0:ve(i,e)}}function gm(i,e,o,n){for(var a=o-1,u=i.length;++a<u;)if(n(i[a],e))return a;return-1}var sm=Array.prototype,lt=sm.splice;function Ua(i,e,o,n){var a=n?gm:Je,u=-1,t=e.length,g=i;for(i===e&&(e=ci(e)),o&&(g=q(i,mi(o)));++u<t;)for(var r=0,d=e[u],l=o?o(d):d;(r=a(g,l,r,n))>-1;)g!==i&<.call(g,r,1),lt.call(i,r,1);return i}function zs(i,e){return i&&i.length&&e&&e.length?Ua(i,e):i}var rm=B(zs);function dm(i,e,o){return i&&i.length&&e&&e.length?Ua(i,e,J(o)):i}function hm(i,e,o){return i&&i.length&&e&&e.length?Ua(i,e,void 0,o):i}var lm=Array.prototype,vm=lm.splice;function Is(i,e){for(var o=i?e.length:0,n=o-1;o--;){var a=e[o];if(o==n||a!==u){var u=a;Ri(a)?vm.call(i,a,1):Ia(i,a)}}return i}var cm=Ii(function(i,e){var o=i==null?0:i.length,n=ja(i,e);return Is(i,q(e,function(a){return Ri(a,o)?+a:a}).sort(Ws)),n}),ym=Math.floor,bm=Math.random;function Va(i,e){return i+ym(bm()*(e-i+1))}var pm=parseFloat,wm=Math.min,fm=Math.random;function jm(i,e,o){if(o&&typeof o!="boolean"&&di(i,e,o)&&(e=o=void 0),o===void 0&&(typeof e=="boolean"?(o=e,e=void 0):typeof i=="boolean"&&(o=i,i=void 0)),i===void 0&&e===void 0?(i=0,e=1):(i=Fi(i),e===void 0?(e=i,i=0):e=Fi(e)),i>e){var n=i;i=e,e=n}if(o||i%1||e%1){var a=fm();return wm(i+a*(e-i+pm("1e-"+((a+"").length-1))),e)}return Va(i,e)}var mm=Math.ceil,Ym=Math.max;function km(i,e,o,n){for(var a=-1,u=Ym(mm((e-i)/(o||1)),0),t=Array(u);u--;)t[n?u:++a]=i,i+=o;return t}function qs(i){return function(e,o,n){return n&&typeof n!="number"&&di(e,o,n)&&(o=n=void 0),e=Fi(e),o===void 0?(o=e,e=0):o=Fi(o),n=n===void 0?e<o?1:-1:Fi(n),km(e,o,n,i)}}var Lm=qs(),Sm=qs(!0),Zm=256,Jm=Ii(function(i,e){return Ai(i,Zm,void 0,void 0,void 0,e)});function $s(i,e,o,n,a){return a(i,function(u,t,g){o=n?(n=!1,u):e(o,u,t,g)}),o}function Cm(i,e,o){var n=X(i)?La:$s,a=arguments.length<3;return n(i,J(e),o,a,ae)}function Tm(i,e,o,n){var a=i==null?0:i.length;for(n&&a&&(o=i[--a]);a--;)o=e(o,i[a],a,i);return o}function Xm(i,e,o){var n=X(i)?Tm:$s,a=arguments.length<3;return n(i,J(e),o,a,bs)}function Dm(i,e){var o=X(i)?ne:ks;return o(i,gn(J(e)))}function Hm(i,e){var o=[];if(!(i&&i.length))return o;var n=-1,a=[],u=i.length;for(e=J(e);++n<u;){var t=i[n];e(t,n,i)&&(o.push(t),a.push(n))}return Is(i,a),o}function Bm(i,e,o){return(o?di(i,e,o):e===void 0)?e=1:e=D(e),qn(F(i),e)}function Mm(){var i=arguments,e=F(i[0]);return i.length<3?e:e.replace(i[1],i[2])}var xm="Expected a function";function Qm(i,e){if(typeof i!="function")throw new TypeError(xm);return e=e===void 0?e:D(e),B(i,e)}function Gm(i,e,o){e=ie(e,i);var n=-1,a=e.length;for(a||(a=1,i=void 0);++n<a;){var u=i?.[Hi(e[n])];u===void 0&&(n=a,u=o),i=_i(u)?u.call(i):u}return i}var Nm=Array.prototype,Pm=Nm.reverse;function Vn(i){return i==null?i:Pm.call(i)}var Wm=Za("round");function Us(i){var e=i.length;return e?i[Va(0,e-1)]:void 0}function Em(i){return Us(Be(i))}function Om(i){var e=X(i)?Us:Em;return e(i)}function rn(i,e){var o=-1,n=i.length,a=n-1;for(e=e===void 0?n:e;++o<e;){var u=Va(o,a),t=i[u];i[u]=i[o],i[o]=t}return i.length=e,i}function Fm(i,e){return rn(ci(i),ce(e,0,i.length))}function _m(i,e){var o=Be(i);return rn(o,ce(e,0,o.length))}function Rm(i,e,o){(o?di(i,e,o):e===void 0)?e=1:e=D(e);var n=X(i)?Fm:_m;return n(i,e)}function Am(i,e,o){return i==null?i:so(i,e,o)}function Km(i,e,o,n){return n=typeof n=="function"?n:void 0,i==null?i:so(i,e,o,n)}function zm(i){return rn(ci(i))}function Im(i){return rn(Be(i))}function qm(i){var e=X(i)?zm:Im;return e(i)}var $m="[object Map]",Um="[object Set]";function Vm(i){if(i==null)return 0;if(bi(i))return un(i)?Me(i):i.length;var e=Gi(i);return e==$m||e==Um?i.size:pa(i).length}function iY(i,e,o){var n=i==null?0:i.length;return n?(o&&typeof o!="number"&&di(i,e,o)?(e=0,o=n):(e=e==null?0:D(e),o=o===void 0?n:D(o)),Ji(i,e,o)):[]}var eY=He(function(i,e,o){return i+(o?"_":"")+e.toLowerCase()});function oY(i,e){var o;return ae(i,function(n,a,u){return o=e(n,a,u),!o}),!!o}function nY(i,e,o){var n=X(i)?Da:oY;return o&&di(i,e,o)&&(e=void 0),n(i,J(e))}var aY=B(function(i,e){if(i==null)return[];var o=e.length;return o>1&&di(i,e[0],e[1])?e=[]:o>2&&di(e[0],e[1],e[2])&&(e=[e[0]]),Es(i,ti(e,1),[])}),uY=4294967295,tY=uY-1,gY=Math.floor,sY=Math.min;function iu(i,e,o,n){var a=0,u=i==null?0:i.length;if(u===0)return 0;e=o(e);for(var t=e!==e,g=e===null,r=wi(e),d=e===void 0;a<u;){var l=gY((a+u)/2),h=o(i[l]),v=h!==void 0,c=h===null,y=h===h,b=wi(h);if(t)var f=n||y;else d?f=y&&(n||v):g?f=y&&v&&(n||!c):r?f=y&&v&&!c&&(n||!b):c||b?f=!1:f=n?h<=e:h<e;f?a=l+1:u=l}return sY(u,tY)}var rY=4294967295,dY=rY>>>1;function dn(i,e,o){var n=0,a=i==null?n:i.length;if(typeof e=="number"&&e===e&&a<=dY){for(;n<a;){var u=n+a>>>1,t=i[u];t!==null&&!wi(t)&&(o?t<=e:t<e)?n=u+1:a=u}return a}return iu(i,e,yi,o)}function hY(i,e){return dn(i,e)}function lY(i,e,o){return iu(i,e,J(o))}function vY(i,e){var o=i==null?0:i.length;if(o){var n=dn(i,e);if(n<o&&Mi(i[n],e))return n}return-1}function cY(i,e){return dn(i,e,!0)}function yY(i,e,o){return iu(i,e,J(o),!0)}function bY(i,e){var o=i==null?0:i.length;if(o){var n=dn(i,e,!0)-1;if(Mi(i[n],e))return n}return-1}function Vs(i,e){for(var o=-1,n=i.length,a=0,u=[];++o<n;){var t=i[o],g=e?e(t):t;if(!o||!Mi(g,r)){var r=g;u[a++]=t===0?0:t}}return u}function pY(i){return i&&i.length?Vs(i):[]}function wY(i,e){return i&&i.length?Vs(i,J(e)):[]}var fY=4294967295;function jY(i,e,o){return o&&typeof o!="number"&&di(i,e,o)&&(e=o=void 0),o=o===void 0?fY:o>>>0,o?(i=F(i),i&&(typeof e=="string"||e!=null&&!Aa(e))&&(e=fi(e),!e&&De(i))?oe(Bi(i),0,o):i.split(e,o)):[]}var mY="Expected a function",YY=Math.max;function kY(i,e){if(typeof i!="function")throw new TypeError(mY);return e=e==null?0:YY(D(e),0),B(function(o){var n=o[e],a=oe(o,0,e);return n&&ee(a,n),ji(i,this,a)})}var LY=He(function(i,e,o){return i+(o?" ":"")+ka(e)});function SY(i,e,o){return i=F(i),o=o==null?0:ce(D(o),0,i.length),e=fi(e),i.slice(o,o+e.length)==e}function ZY(){return{}}function JY(){return""}function CY(){return!0}var TY=Wo(function(i,e){return i-e},0);function XY(i){return i&&i.length?za(i,yi):0}function DY(i,e){return i&&i.length?za(i,J(e)):0}function HY(i){var e=i==null?0:i.length;return e?Ji(i,1,e):[]}function BY(i,e,o){return i&&i.length?(e=o||e===void 0?1:D(e),Ji(i,0,e<0?0:e)):[]}function MY(i,e,o){var n=i==null?0:i.length;return n?(e=o||e===void 0?1:D(e),e=n-e,Ji(i,e<0?0:e,n)):[]}function xY(i,e){return i&&i.length?en(i,J(e),!1,!0):[]}function QY(i,e){return i&&i.length?en(i,J(e)):[]}function GY(i,e){return e(i),i}var ir=Object.prototype,NY=ir.hasOwnProperty;function vt(i,e,o,n){return i===void 0||Mi(i,ir[o])&&!NY.call(n,o)?e:i}var PY={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function WY(i){return"\\"+PY[i]}var er=/<%=([\s\S]+?)%>/g,EY=/<%-([\s\S]+?)%>/g,OY=/<%([\s\S]+?)%>/g,ia={escape:EY,evaluate:OY,interpolate:er,variable:"",imports:{_:{escape:fs}}},FY="Invalid `variable` option passed into `_.template`",_Y="Invalid `imports` option passed into `_.template`",RY=/\b__p \+= '';/g,AY=/\b(__p \+=) '' \+/g,KY=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ct=/[()=,{}\[\]\/\s]/,zY=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,po=/($^)/,IY=/['\n\r\u2028\u2029\\]/g,qY=Object.prototype,yt=qY.hasOwnProperty;function $Y(i,e,o){var n=ia.imports._.templateSettings||ia;o&&di(i,e,o)&&(e=void 0),i=F(i),e=On({},e,n,vt);var a=On({},e.imports,n.imports,vt),u=ui(a),t=Fa(a,u);Yi(u,function(f){if(ct.test(f))throw new Error(_Y)});var g,r,d=0,l=e.interpolate||po,h="__p += '",v=RegExp((e.escape||po).source+"|"+l.source+"|"+(l===er?zY:po).source+"|"+(e.evaluate||po).source+"|$","g"),c=yt.call(e,"sourceURL")?"//# sourceURL="+(e.sourceURL+"").replace(/\s/g," ")+`
|
|
4
4
|
`:"";i.replace(v,function(f,m,p,j,Y,N){return p||(p=j),h+=i.slice(d,N).replace(IY,WY),m&&(g=!0,h+=`' +
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{m as j,f as F,a as V,O as Y}from"./index-KXVG6Tyr.js";const B=0,O=1,$=2,M=3,U=/^-{1,2}(no-color|no-colors|color=false|color=never)$/,W=/^-{1,2}(color=256)$/,H=/^-{1,2}(color=16m|color=full|color=truecolor)$/,K=/^-{1,2}(color|colors|color=true|color=always)$/,q=/-mono|dumb/i,z=/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/,J=/-256(color)?$/i,Q=/^screen|^tmux|^xterm|^vt[1-5]\d\d|^ansi|color|mintty|rxvt|cygwin|linux/i,Z=()=>{const t=globalThis.process?.getBuiltinModule;return typeof t!="function"?"":t("node:os").release()},_=(t,e={})=>{const{isTTY:s,sniffFlags:i=!0}=e,n=globalThis,l=n.Deno!=null,u=n.process??n.Deno??{},p=u.argv??u.args??[],T=i?p.indexOf("--"):-1,a=d=>{if(!i)return!1;const y=p.findIndex(D=>d.test(D));return y!==-1&&(T===-1||y<T)};let r={};try{r=l?u.env.toObject():u.env??{}}catch{}const o="FORCE_COLOR",g=o in r,c=r[o]??void 0,m=typeof c=="string",N=typeof c=="number";let h;if(c==="true")h=O;else if(c==="false")h=B;else if(m&&c.length===0)h=O;else if(m&&c.length>0){const d=Number.parseInt(c,10);h=Number.isNaN(d)?void 0:Math.min(d,3)}else N&&(h=Number.isNaN(c)?void 0:Math.min(c,3));if(c!=="true"&&c!=="false"&&h!==void 0&&h<4)return h;const L=g&&h!==void 0&&h>0;if(g&&h===0||a(U)||!L&&"NO_COLOR"in r)return B;if(a(W))return $;if(a(H))return M;if(a(K))return O;const I=h??B;if("TF_BUILD"in r&&"AGENT_NAME"in r)return O;if(r.TERM&&q.test(r.TERM))return I;if((l?n.Deno.build.os:u.platform)==="win32"){if("WT_SESSION"in r)return M;if("ANSICON"in r)return O;try{let d;l?d=n.Deno.osRelease():typeof u.os?.release=="function"?d=u.os.release():d=Z();const y=d.split(".");return Number(y[0])>=10&&Number(y[2])>=10586?Number(y[2])>=14931?M:$:O}catch{}}if("CI"in r)return["GITEA_ACTIONS","CIRCLECI","GITHUB_WORKFLOW","GITHUB_ACTIONS"].some(d=>d in r)?M:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(d=>d in r)||r.CI_NAME==="codeship"?O:I;if(r.TERMINAL_EMULATOR?.includes("JediTerm"))return M;if("TEAMCITY_VERSION"in r)return z.test(r.TEAMCITY_VERSION)?O:B;if(r.COLORTERM==="truecolor"||r.TERM==="xterm-kitty"||r.TERM==="xterm-ghostty"||r.TERM==="wezterm")return M;if("TERM_PROGRAM"in r){const d=Number.parseInt((r.TERM_PROGRAM_VERSION??"").split(".")[0],10);if(r.TERM_PROGRAM==="iTerm.app")return d>=3?M:$;if(r.TERM_PROGRAM==="Apple_Terminal")return $}if(J.test(r.TERM))return $;let E;return s!==void 0?E=s:l?E=t==="out"?n.Deno.stdout.isTerminal():n.Deno.stderr.isTerminal():"PM2_HOME"in r&&"pm_id"in r?E=!0:E=!!u[`std${t}`]?.isTTY,E&&Q.test(r.TERM)||"COLORTERM"in r?O:I},X=()=>_("out"),ee=()=>_("err");function te({onlyFirst:t=!1}={}){const e="(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(e,t?void 0:"g")}const S=(t,e,s)=>e>t?e:Math.min(t,s),re=/^#?([a-f\d]{3}|[a-f\d]{6})$/i,ne=t=>{let[,e]=re.exec(t)??[];const s=e?e.length:0;if(s===3){const n=e.charAt(0),l=e.charAt(1),u=e.charAt(2);e=n+n+l+l+u+u}else if(s!==6)return globalThis.process?.env?.NODE_ENV!=="production"&&console.warn(`[@visulima/colorize] Invalid hex color "${t}"; expected a 3- or 6-digit hex string (e.g. "#96C" or "#E0115F"). Falling back to black.`),[0,0,0];const i=Number.parseInt(e,16);return[i>>16&255,i>>8&255,i&255]},k=(t,e,s)=>t===e&&e===s?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/51)+6*Math.round(e/51)+Math.round(s/51),v=t=>{let e,s,i;if(t<8)return 30+t;if(t<16)return 90+(t-8);if(t>=232)e=s=i=((t-232)*10+8)/255;else{t-=16;const u=t%36;e=Math.floor(t/36)/5,s=Math.floor(u/6)/5,i=u%6/5}const n=Math.max(e,s,i)*2;if(n===0)return 30;const l=30+(Math.round(i)<<2|Math.round(s)<<1|Math.round(e));return n===2?l+60:l},A=(t,e,s)=>v(k(t,e,s)),f=39,b=49,x=10,C={close:"",open:""},w=t=>{const e=t>0?(o,g)=>({close:`\x1B[${String(g)}m`,open:`\x1B[${String(o)}m`}):()=>C,s=o=>(g,c,m)=>o(k(Number(g),Number(c),Number(m))),i=o=>g=>{const[c,m,N]=ne(g);return o(c,m,N)};let n=o=>e(`38;5;${String(o)}`,f),l=o=>e(`48;5;${String(o)}`,b),u=(o,g,c)=>e(`38;2;${String(o)};${String(g)};${String(c)}`,f),p=(o,g,c)=>e(`48;2;${String(o)};${String(g)};${String(c)}`,b);t===1?(n=o=>e(v(Number(o)),f),l=o=>e(v(Number(o))+x,b),u=(o,g,c)=>e(A(Number(o),Number(g),Number(c)),f),p=(o,g,c)=>e(A(Number(o),Number(g),Number(c))+x,b)):t===2&&(u=s(n),p=s(l));const T={bold:e(1,22),dim:e(2,22),hidden:e(8,28),inverse:e(7,27),italic:e(3,23),overline:e(53,55),reset:e(0,0),strike:e(9,29),strikethrough:e(9,29),underline:e(4,24),visible:C},a={bgBlack:e(40,b),bgBlackBright:e(100,b),bgBlue:e(44,b),bgBlueBright:e(104,b),bgCyan:e(46,b),bgCyanBright:e(106,b),bgGray:e(100,b),bgGreen:e(42,b),bgGreenBright:e(102,b),bgGrey:e(100,b),bgMagenta:e(45,b),bgMagentaBright:e(105,b),bgRed:e(41,b),bgRedBright:e(101,b),bgWhite:e(47,b),bgWhiteBright:e(107,b),bgYellow:e(43,b),bgYellowBright:e(103,b),black:e(30,f),blackBright:e(90,f),blue:e(34,f),blueBright:e(94,f),cyan:e(36,f),cyanBright:e(96,f),gray:e(90,f),green:e(32,f),greenBright:e(92,f),grey:e(90,f),magenta:e(35,f),magentaBright:e(95,f),red:e(31,f),redBright:e(91,f),white:e(37,f),whiteBright:e(97,f),yellow:e(33,f),yellowBright:e(93,f)},r={bg:o=>l(S(o,0,255)),bgHex:i(p),bgRgb:(o,g,c)=>p(S(o,0,255),S(g,0,255),S(c,0,255)),fg:o=>n(S(o,0,255)),hex:i(u),rgb:(o,g,c)=>u(S(o,0,255),S(g,0,255),S(c,0,255))};return{baseColors:a,baseStyles:T,styleMethods:r}},G=X(),oe=ee();w(G);const ie=(t,e,s)=>{if(e==="")return t;let i=t.indexOf(e);if(i<0)return t;const n=e.length;let l=0,u="";for(;~i;)u+=t.slice(l,i)+s,l=i+n,i=t.indexOf(e,l);return u+t.slice(l)},se=(t,e,s)=>{if(!t)return"";let i;if(t.raw===void 0?i=String(t):i=String.raw(t,...e),i.includes("\x1B"))for(let n=s;n;n=n.props)i=ie(i,n.close,n.open);return i.includes(`
|
|
2
|
+
`)&&(i=i.replace(/(\r*\n)/g,`${s.closeStack}$1${s.openStack}`)),s.openStack+i+s.closeStack},P=function(t){const e=t?.level??G,{baseColors:s,baseStyles:i,styleMethods:n}=w(e),l={};let u=null;const p=({props:a},{close:r,open:o})=>{const g=(a?.openStack??"")+o,c=r+(a?.closeStack??""),m=(N,...h)=>se(N,h,m.props);return Object.setPrototypeOf(m,u),m.props={close:r,closeStack:c,open:o,openStack:g,props:a},m.open=g,m.close=c,m},T=a=>String(a);T.strip=a=>a.replaceAll(te(),"");for(const a in s)l[a]={get(){const r=p(this,s[a]);return Object.defineProperty(this,a,{value:r}),r}};for(const a in i)l[a]={get(){const r=p(this,i[a]);return Object.defineProperty(this,a,{value:r}),r}};for(const a in n)l[a]={get(){return(...r)=>p(this,n[a](...r))}};return l.ansi256=l.fg,l.bgAnsi256=l.bg,u=Object.defineProperties({},l),Object.setPrototypeOf(T,u),T},R=new P;new P({level:oe});const ce=R.blue,ue=R.bold,ae=R.cyan,ge=R.dim,fe=R.gray,be=R.green,de=R.grey,he=R.magenta,me=R.red,pe=R.yellow,Oe=(t,e,s,i)=>{try{let n={};const l=j(e,"keystore.json");F(l)&&(n=V(l)),Object.hasOwn(n,t)||(n[t]=new Date().toISOString()),Y(l,n,{overwrite:!0})}catch(n){s.debug({context:[n],message:n instanceof Error?n.message:String(n),prefix:"cache-key-store"})}};export{ge as E,fe as F,be as I,de as K,ce as L,he as Q,me as V,R as e,Oe as f,ue as j,ae as q,pe as s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{k as e}from"./oxcResolvePlugin-DERMXYPc-CqFUTcUY.js";import{t as x}from"./oxcTransformPlugin-B5ATuMoi-DwCO2qaH.js";export{e as oxcResolvePlugin,x as oxcTransformPlugin};
|