openskillmd 0.4.0 → 0.5.0

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/README.md CHANGED
@@ -16,10 +16,6 @@ npm i -g openskillmd
16
16
  Both packages install the same CLI and expose the `osm` command (plus `openskill`
17
17
  and `openskillmd` aliases).
18
18
 
19
- > **Note:** releases are published to both the `latest` and `beta` dist-tags.
20
- > The CLI points at the production API (`https://openskill.md/api`) by default;
21
- > override anytime with `OPENSKILL_API_URL` (e.g. to target staging or local).
22
-
23
19
  ## Usage
24
20
 
25
21
  ```bash
@@ -51,29 +47,29 @@ osm add anthropics/skills --global --copy
51
47
  Run `osm search <query>` to discover skills, then `osm info <slug>` — the install
52
48
  hint shows the exact `osm add owner/repo` command for that skill.
53
49
 
54
- ## Configuration
50
+ ## Telemetry
51
+
52
+ `osm` collects **anonymous** usage data (CLI version, command names, and installed
53
+ skill slugs) to help us improve the tool. No personal data, file contents, or
54
+ arguments are collected, and an anonymous random id is used — never your identity.
55
55
 
56
- Settings live in `~/.openskill/config.json`. The CLI defaults to **production**;
57
- set `baseUrl` only to pin a non-default API (e.g. staging):
56
+ Opt out at any time:
58
57
 
59
- ```json
60
- { "baseUrl": "https://staging.openskill.md/api" }
58
+ ```bash
59
+ export OSM_TELEMETRY=0 # or the cross-tool standard:
60
+ export DO_NOT_TRACK=1
61
61
  ```
62
62
 
63
- The API base URL is resolved in this order:
63
+ ## Configuration
64
64
 
65
- 1. `OPENSKILL_API_URL` environment variable
66
- 2. `baseUrl` in `~/.openskill/config.json`
67
- 3. the built-in default (production: `https://openskill.md/api`)
65
+ Settings live in `~/.openskill/config.json`. The CLI talks to the production API
66
+ by default; you can point it elsewhere with the `OPENSKILL_API_URL` environment
67
+ variable (takes precedence) or a `baseUrl` in the config file:
68
68
 
69
69
  ```bash
70
- OPENSKILL_API_URL=http://localhost:8080/api osm search testing
70
+ OPENSKILL_API_URL=https://openskill.md/api osm search testing
71
71
  ```
72
72
 
73
- > Maintainers: see [docs/environments-and-releases.md](docs/environments-and-releases.md)
74
- > for how environments (staging/prod) and release channels (`latest`/`beta`) work —
75
- > **one CLI, never per-environment packages.**
76
-
77
73
  ## Coming soon
78
74
 
79
75
  Authenticated publishing (`osm login` / `osm publish`) is in development and not
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
3
+ import{a as y}from"./chunk-N5U3SVLG.js";import{c as S,e as b}from"./chunk-CPJXVPRK.js";import{g as h}from"./chunk-JL5OF5KH.js";import"./chunk-YAZPI4SK.js";import{l as g,n as k,u,w as d}from"./chunk-4WV7FA5L.js";import{spawn as w}from"child_process";import{createRequire as x}from"module";var v=x(import.meta.url);function R(e){return e.replace(/^.*[█╔╗╚╝═║].*\r?\n?/gm,"").replace(/^.*open agent skills ecosystem.*\r?\n?/gm,"")}function A(e){return!e||typeof e!="string"||e.length===0||e.length>500?{ok:!1,code:2,message:"Source is required, e.g. owner/repo or owner/repo@skill"}:/[/@:.]/.test(e)?{ok:!0}:{ok:!1,code:"needs-resolution",slug:e}}async function L(e){let r;try{r=await b(e)}catch(s){return s instanceof S&&s.statusCode===404?{ok:!1,message:`No skill named "${e}" in the registry.`,suggestion:"Run `osm search <query>` to find it, or pass owner/repo directly."}:{ok:!1,message:`Couldn't reach the registry to resolve "${e}".`,suggestion:"Check your connection (and OPENSKILL_API_URL, if set), or pass owner/repo directly."}}let t=r.name||null;if(r.githubOwner&&r.githubRepo){let s=`${r.githubOwner}/${r.githubRepo}`;return{ok:!0,source:s,skillName:t,note:t?`resolved ${e} \u2192 ${s} (skill: ${t})`:`resolved ${e} \u2192 ${s}`}}return r.sourceUrl&&/^https?:\/\//.test(r.sourceUrl)?{ok:!0,source:r.sourceUrl,skillName:t,note:t?`resolved ${e} \u2192 ${r.sourceUrl} (skill: ${t})`:`resolved ${e} \u2192 ${r.sourceUrl}`}:{ok:!1,message:`"${e}" lives only in the OpenSkill registry \u2014 it has no GitHub source to install from yet.`,suggestion:`Run \`osm info ${e}\` to inspect it.`}}function O(e){return e.toLowerCase().replace(/[\s_]+/g,"-").replace(/[^a-z0-9-]/g,"").replace(/-+/g,"-").replace(/^-|-$/g,"")}function j(e,r={},t=null){let s=["add",e,"-y"];if(t){s.push("--skill",t);let n=O(t);n&&n!==t.toLowerCase()&&s.push("--skill",n)}for(let n of r.agent??[])s.push("-a",n);return r.global&&s.push("-g"),r.copy&&s.push("--copy"),s}function E(e,r,t,s,n=null){return t===0?{ok:!0,source:e,resolvedFrom:n,agent:r.agent??null,scope:r.global?"user":"project"}:{ok:!1,source:e,resolvedFrom:n,error:{code:`INSTALL_EXIT_${t}`,message:s.trim()||"install failed"}}}async function q(e,r={}){let t=e,s=null,n=null,i=A(e);if(!i.ok){i.code!=="needs-resolution"&&(console.error(u(i.message,i.suggestion)),process.exit(i.code));let l=r.json?null:y({text:`Resolving "${i.slug}" in the registry...`,spinner:k,color:!1}).start(),o=await L(i.slug);l?.stop(),o.ok||(r.json?d({ok:!1,source:e,resolvedFrom:null,error:{code:"SLUG_RESOLUTION_FAILED",message:o.message}}):console.error(u(o.message,o.suggestion)),process.exit(2)),r.json||console.error(g(` \u2192 ${o.note}`)),t=o.source,s=i.slug,n=o.skillName}let p;try{p=v.resolve("skills/bin/cli.mjs")}catch{console.error(u("The installer backend is missing.","Reinstall @openskillmd/osm to restore its dependencies.")),process.exit(3)}let $=j(t,r,n);r.json||(console.error(g(" \u2192 fetching skill files\u2026")),console.error(""));let a=w(process.execPath,[p,...$],{stdio:["inherit","pipe","pipe"],env:{...process.env,DISABLE_TELEMETRY:"1"}}),f="";a.stdout&&a.stdout.on("data",l=>{let o=R(l.toString("utf-8"));o&&!r.json&&process.stdout.write(o)}),a.stderr&&a.stderr.on("data",l=>{let o=l.toString("utf-8");if(r.json)f+=o;else{let m=R(o);m&&process.stderr.write(m)}});let c=await new Promise(l=>{a.once("exit",o=>l(o??1)),a.once("error",()=>l(3))});r.json&&d(E(t,r,c,f,s)),s&&await h(s,{success:c===0}),process.exit(c)}export{q as addCommand,E as buildJsonResult,j as buildSkillsArgs,L as resolveSlug,R as stripSkillsBanner,O as toSkillSlug,A as validateSource};
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
3
- import{a as d}from"./chunk-K3MPWRF4.js";import{g as C,h as v,i as y,j as S}from"./chunk-C5KG3WI6.js";import{a as g}from"./chunk-KS57GYQM.js";import"./chunk-YAZPI4SK.js";import{a as f,b as h,d as $,e as l,f as m}from"./chunk-AZ56ID7P.js";import{g as n,l as w,m as s,o as u}from"./chunk-GTRQVB2J.js";var p="__exit__";async function _(){try{let{mode:t}=await g.prompt([{type:"list",name:"mode",message:n("What would you like to explore?"),choices:[{name:"\u{1F4DA} Collections (curated sets of skills & blueprints)",value:"collections"},{name:"\u{1F50C} MCP servers",value:"mcp"},{name:s("\u2190 Exit"),value:p}]}]);if(t===p)return;if(t==="mcp"){await k();return}await x()}catch(t){process.stderr.write(m(t instanceof Error?t.message:"Unknown error")+`
3
+ import{a as d}from"./chunk-N5U3SVLG.js";import{g as C,h as v,i as y,j as S}from"./chunk-CPJXVPRK.js";import"./chunk-JL5OF5KH.js";import{a as g}from"./chunk-2CMBJDSX.js";import"./chunk-YAZPI4SK.js";import{g as n,k as w,l as s,n as u,p as f,q as h,s as $,t as l,u as m}from"./chunk-4WV7FA5L.js";var p="__exit__";async function _(){try{let{mode:t}=await g.prompt([{type:"list",name:"mode",message:n("What would you like to explore?"),choices:[{name:"\u{1F4DA} Collections (curated sets of skills & blueprints)",value:"collections"},{name:"\u{1F50C} MCP servers",value:"mcp"},{name:s("\u2190 Exit"),value:p}]}]);if(t===p)return;if(t==="mcp"){await k();return}await x()}catch(t){process.stderr.write(m(t instanceof Error?t.message:"Unknown error")+`
4
4
  `)}}async function x(){let t=d({text:"Loading collections...",spinner:u,color:!1}).start(),i=await C({limit:50});if(t.stop(),i.length===0){process.stderr.write(m("No collections found.")+`
5
5
  `);return}let c=i.map(r=>({name:`${r.icon||"\u{1F4E6}"} ${r.name} ${s(`(${r.itemCount} items)`)}`,value:r.slug}));c.push({name:s("\u2190 Exit"),value:p});let{slug:o}=await g.prompt([{type:"list",name:"slug",message:n("Choose a collection to explore:"),choices:c,pageSize:15}]);if(o===p)return;let e=d({text:"Loading collection...",spinner:u,color:!1}).start(),a=await v(o);e.stop(),M(a)}function M(t){process.stderr.write(l(`${t.icon||"\u{1F4E6}"} ${t.name}`)+`
6
6
  `),t.description&&process.stderr.write(` ${w(t.description)}
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
3
- import{a as ls}from"./chunk-YAZPI4SK.js";import{a as mr,b as f,d as ie}from"./chunk-GTRQVB2J.js";var Ke=f((fO,ps)=>{"use strict";var G1=mr("tty"),H1=G1?.WriteStream?.prototype?.hasColors?.()??!1,I=(e,r)=>{if(!H1)return i=>i;let t=`\x1B[${e}m`,n=`\x1B[${r}m`;return i=>{let u=i+"",a=u.indexOf(n);if(a===-1)return t+u+n;let o=t,c=0,x=(r===22?n:"")+t;for(;a!==-1;)o+=u.slice(c,a)+x,c=a+n.length,a=u.indexOf(n,c);return o+=u.slice(c)+n,o}},P={};P.reset=I(0,0);P.bold=I(1,22);P.dim=I(2,22);P.italic=I(3,23);P.underline=I(4,24);P.overline=I(53,55);P.inverse=I(7,27);P.hidden=I(8,28);P.strikethrough=I(9,29);P.black=I(30,39);P.red=I(31,39);P.green=I(32,39);P.yellow=I(33,39);P.blue=I(34,39);P.magenta=I(35,39);P.cyan=I(36,39);P.white=I(37,39);P.gray=I(90,39);P.bgBlack=I(40,49);P.bgRed=I(41,49);P.bgGreen=I(42,49);P.bgYellow=I(43,49);P.bgBlue=I(44,49);P.bgMagenta=I(45,49);P.bgCyan=I(46,49);P.bgWhite=I(47,49);P.bgGray=I(100,49);P.redBright=I(91,39);P.greenBright=I(92,39);P.yellowBright=I(93,39);P.blueBright=I(94,39);P.magentaBright=I(95,39);P.cyanBright=I(96,39);P.whiteBright=I(97,39);P.bgRedBright=I(101,49);P.bgGreenBright=I(102,49);P.bgYellowBright=I(103,49);P.bgBlueBright=I(104,49);P.bgMagentaBright=I(105,49);P.bgCyanBright=I(106,49);P.bgWhiteBright=I(107,49);ps.exports=P});var _s=f((jO,Ds)=>{"use strict";Ds.exports=np;function tp(e){let r={defaultWidth:0,output:process.stdout,tty:mr("tty")};return e?(Object.keys(r).forEach(function(t){e[t]||(e[t]=r[t])}),e):r}function np(e){let r=tp(e);if(r.output.getWindowSize)return r.output.getWindowSize()[0]||r.defaultWidth;if(r.tty.getWindowSize)return r.tty.getWindowSize()[1]||r.defaultWidth;if(r.output.columns)return r.output.columns;if(process.env.CLI_WIDTH){let t=parseInt(process.env.CLI_WIDTH,10);if(!isNaN(t)&&t!==0)return t}return r.defaultWidth}});var ws=f((PO,gs)=>{"use strict";gs.exports=({onlyFirst:e=!1}={})=>{let r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(r,e?void 0:"g")}});var ra=f((BO,Ss)=>{"use strict";var ip=ws();Ss.exports=e=>typeof e=="string"?e.replace(ip(),""):e});var Os=f((MO,ta)=>{"use strict";var Fs=e=>Number.isNaN(e)?!1:e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141);ta.exports=Fs;ta.exports.default=Fs});var qs=f((IO,Es)=>{"use strict";Es.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var As=f((TO,na)=>{"use strict";var up=ra(),ap=Os(),op=qs(),Cs=e=>{if(typeof e!="string"||e.length===0||(e=up(e),e.length===0))return 0;e=e.replace(op()," ");let r=0;for(let t=0;t<e.length;t++){let n=e.codePointAt(t);n<=31||n>=127&&n<=159||n>=768&&n<=879||(n>65535&&t++,r+=ap(n)?2:1)}return r};na.exports=Cs;na.exports.default=Cs});var Ps=f((kO,js)=>{"use strict";js.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var ia=f((LO,Ms)=>{"use strict";var Rt=Ps(),Bs={};for(let e of Object.keys(Rt))Bs[Rt[e]]=e;var S={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};Ms.exports=S;for(let e of Object.keys(S)){if(!("channels"in S[e]))throw new Error("missing channels property: "+e);if(!("labels"in S[e]))throw new Error("missing channel labels property: "+e);if(S[e].labels.length!==S[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:r,labels:t}=S[e];delete S[e].channels,delete S[e].labels,Object.defineProperty(S[e],"channels",{value:r}),Object.defineProperty(S[e],"labels",{value:t})}S.rgb.hsl=function(e){let r=e[0]/255,t=e[1]/255,n=e[2]/255,i=Math.min(r,t,n),u=Math.max(r,t,n),a=u-i,o,c;u===i?o=0:r===u?o=(t-n)/a:t===u?o=2+(n-r)/a:n===u&&(o=4+(r-t)/a),o=Math.min(o*60,360),o<0&&(o+=360);let s=(i+u)/2;return u===i?c=0:s<=.5?c=a/(u+i):c=a/(2-u-i),[o,c*100,s*100]};S.rgb.hsv=function(e){let r,t,n,i,u,a=e[0]/255,o=e[1]/255,c=e[2]/255,s=Math.max(a,o,c),x=s-Math.min(a,o,c),d=function(p){return(s-p)/6/x+1/2};return x===0?(i=0,u=0):(u=x/s,r=d(a),t=d(o),n=d(c),a===s?i=n-t:o===s?i=1/3+r-n:c===s&&(i=2/3+t-r),i<0?i+=1:i>1&&(i-=1)),[i*360,u*100,s*100]};S.rgb.hwb=function(e){let r=e[0],t=e[1],n=e[2],i=S.rgb.hsl(e)[0],u=1/255*Math.min(r,Math.min(t,n));return n=1-1/255*Math.max(r,Math.max(t,n)),[i,u*100,n*100]};S.rgb.cmyk=function(e){let r=e[0]/255,t=e[1]/255,n=e[2]/255,i=Math.min(1-r,1-t,1-n),u=(1-r-i)/(1-i)||0,a=(1-t-i)/(1-i)||0,o=(1-n-i)/(1-i)||0;return[u*100,a*100,o*100,i*100]};function cp(e,r){return(e[0]-r[0])**2+(e[1]-r[1])**2+(e[2]-r[2])**2}S.rgb.keyword=function(e){let r=Bs[e];if(r)return r;let t=1/0,n;for(let i of Object.keys(Rt)){let u=Rt[i],a=cp(e,u);a<t&&(t=a,n=i)}return n};S.keyword.rgb=function(e){return Rt[e]};S.rgb.xyz=function(e){let r=e[0]/255,t=e[1]/255,n=e[2]/255;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let i=r*.4124+t*.3576+n*.1805,u=r*.2126+t*.7152+n*.0722,a=r*.0193+t*.1192+n*.9505;return[i*100,u*100,a*100]};S.rgb.lab=function(e){let r=S.rgb.xyz(e),t=r[0],n=r[1],i=r[2];t/=95.047,n/=100,i/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let u=116*n-16,a=500*(t-n),o=200*(n-i);return[u,a,o]};S.hsl.rgb=function(e){let r=e[0]/360,t=e[1]/100,n=e[2]/100,i,u,a;if(t===0)return a=n*255,[a,a,a];n<.5?i=n*(1+t):i=n+t-n*t;let o=2*n-i,c=[0,0,0];for(let s=0;s<3;s++)u=r+1/3*-(s-1),u<0&&u++,u>1&&u--,6*u<1?a=o+(i-o)*6*u:2*u<1?a=i:3*u<2?a=o+(i-o)*(2/3-u)*6:a=o,c[s]=a*255;return c};S.hsl.hsv=function(e){let r=e[0],t=e[1]/100,n=e[2]/100,i=t,u=Math.max(n,.01);n*=2,t*=n<=1?n:2-n,i*=u<=1?u:2-u;let a=(n+t)/2,o=n===0?2*i/(u+i):2*t/(n+t);return[r,o*100,a*100]};S.hsv.rgb=function(e){let r=e[0]/60,t=e[1]/100,n=e[2]/100,i=Math.floor(r)%6,u=r-Math.floor(r),a=255*n*(1-t),o=255*n*(1-t*u),c=255*n*(1-t*(1-u));switch(n*=255,i){case 0:return[n,c,a];case 1:return[o,n,a];case 2:return[a,n,c];case 3:return[a,o,n];case 4:return[c,a,n];case 5:return[n,a,o]}};S.hsv.hsl=function(e){let r=e[0],t=e[1]/100,n=e[2]/100,i=Math.max(n,.01),u,a;a=(2-t)*n;let o=(2-t)*i;return u=t*i,u/=o<=1?o:2-o,u=u||0,a/=2,[r,u*100,a*100]};S.hwb.rgb=function(e){let r=e[0]/360,t=e[1]/100,n=e[2]/100,i=t+n,u;i>1&&(t/=i,n/=i);let a=Math.floor(6*r),o=1-n;u=6*r-a,(a&1)!==0&&(u=1-u);let c=t+u*(o-t),s,x,d;switch(a){default:case 6:case 0:s=o,x=c,d=t;break;case 1:s=c,x=o,d=t;break;case 2:s=t,x=o,d=c;break;case 3:s=t,x=c,d=o;break;case 4:s=c,x=t,d=o;break;case 5:s=o,x=t,d=c;break}return[s*255,x*255,d*255]};S.cmyk.rgb=function(e){let r=e[0]/100,t=e[1]/100,n=e[2]/100,i=e[3]/100,u=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,n*(1-i)+i);return[u*255,a*255,o*255]};S.xyz.rgb=function(e){let r=e[0]/100,t=e[1]/100,n=e[2]/100,i,u,a;return i=r*3.2406+t*-1.5372+n*-.4986,u=r*-.9689+t*1.8758+n*.0415,a=r*.0557+t*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,u=u>.0031308?1.055*u**(1/2.4)-.055:u*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,i=Math.min(Math.max(0,i),1),u=Math.min(Math.max(0,u),1),a=Math.min(Math.max(0,a),1),[i*255,u*255,a*255]};S.xyz.lab=function(e){let r=e[0],t=e[1],n=e[2];r/=95.047,t/=100,n/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let i=116*t-16,u=500*(r-t),a=200*(t-n);return[i,u,a]};S.lab.xyz=function(e){let r=e[0],t=e[1],n=e[2],i,u,a;u=(r+16)/116,i=t/500+u,a=u-n/200;let o=u**3,c=i**3,s=a**3;return u=o>.008856?o:(u-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,a=s>.008856?s:(a-16/116)/7.787,i*=95.047,u*=100,a*=108.883,[i,u,a]};S.lab.lch=function(e){let r=e[0],t=e[1],n=e[2],i;i=Math.atan2(n,t)*360/2/Math.PI,i<0&&(i+=360);let a=Math.sqrt(t*t+n*n);return[r,a,i]};S.lch.lab=function(e){let r=e[0],t=e[1],i=e[2]/360*2*Math.PI,u=t*Math.cos(i),a=t*Math.sin(i);return[r,u,a]};S.rgb.ansi16=function(e,r=null){let[t,n,i]=e,u=r===null?S.rgb.hsv(e)[2]:r;if(u=Math.round(u/50),u===0)return 30;let a=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return u===2&&(a+=60),a};S.hsv.ansi16=function(e){return S.rgb.ansi16(S.hsv.rgb(e),e[2])};S.rgb.ansi256=function(e){let r=e[0],t=e[1],n=e[2];return r===t&&t===n?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5)};S.ansi16.rgb=function(e){let r=e%10;if(r===0||r===7)return e>50&&(r+=3.5),r=r/10.5*255,[r,r,r];let t=(~~(e>50)+1)*.5,n=(r&1)*t*255,i=(r>>1&1)*t*255,u=(r>>2&1)*t*255;return[n,i,u]};S.ansi256.rgb=function(e){if(e>=232){let u=(e-232)*10+8;return[u,u,u]}e-=16;let r,t=Math.floor(e/36)/5*255,n=Math.floor((r=e%36)/6)/5*255,i=r%6/5*255;return[t,n,i]};S.rgb.hex=function(e){let t=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(t.length)+t};S.hex.rgb=function(e){let r=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!r)return[0,0,0];let t=r[0];r[0].length===3&&(t=t.split("").map(o=>o+o).join(""));let n=parseInt(t,16),i=n>>16&255,u=n>>8&255,a=n&255;return[i,u,a]};S.rgb.hcg=function(e){let r=e[0]/255,t=e[1]/255,n=e[2]/255,i=Math.max(Math.max(r,t),n),u=Math.min(Math.min(r,t),n),a=i-u,o,c;return a<1?o=u/(1-a):o=0,a<=0?c=0:i===r?c=(t-n)/a%6:i===t?c=2+(n-r)/a:c=4+(r-t)/a,c/=6,c%=1,[c*360,a*100,o*100]};S.hsl.hcg=function(e){let r=e[1]/100,t=e[2]/100,n=t<.5?2*r*t:2*r*(1-t),i=0;return n<1&&(i=(t-.5*n)/(1-n)),[e[0],n*100,i*100]};S.hsv.hcg=function(e){let r=e[1]/100,t=e[2]/100,n=r*t,i=0;return n<1&&(i=(t-n)/(1-n)),[e[0],n*100,i*100]};S.hcg.rgb=function(e){let r=e[0]/360,t=e[1]/100,n=e[2]/100;if(t===0)return[n*255,n*255,n*255];let i=[0,0,0],u=r%1*6,a=u%1,o=1-a,c=0;switch(Math.floor(u)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=o,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=o,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=o}return c=(1-t)*n,[(t*i[0]+c)*255,(t*i[1]+c)*255,(t*i[2]+c)*255]};S.hcg.hsv=function(e){let r=e[1]/100,t=e[2]/100,n=r+t*(1-r),i=0;return n>0&&(i=r/n),[e[0],i*100,n*100]};S.hcg.hsl=function(e){let r=e[1]/100,n=e[2]/100*(1-r)+.5*r,i=0;return n>0&&n<.5?i=r/(2*n):n>=.5&&n<1&&(i=r/(2*(1-n))),[e[0],i*100,n*100]};S.hcg.hwb=function(e){let r=e[1]/100,t=e[2]/100,n=r+t*(1-r);return[e[0],(n-r)*100,(1-n)*100]};S.hwb.hcg=function(e){let r=e[1]/100,n=1-e[2]/100,i=n-r,u=0;return i<1&&(u=(n-i)/(1-i)),[e[0],i*100,u*100]};S.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};S.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};S.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};S.gray.hsl=function(e){return[0,0,e[0]]};S.gray.hsv=S.gray.hsl;S.gray.hwb=function(e){return[0,100,e[0]]};S.gray.cmyk=function(e){return[0,0,0,e[0]]};S.gray.lab=function(e){return[e[0],0,0]};S.gray.hex=function(e){let r=Math.round(e[0]/100*255)&255,n=((r<<16)+(r<<8)+r).toString(16).toUpperCase();return"000000".substring(n.length)+n};S.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var Ts=f((RO,Is)=>{"use strict";var hn=ia();function sp(){let e={},r=Object.keys(hn);for(let t=r.length,n=0;n<t;n++)e[r[n]]={distance:-1,parent:null};return e}function lp(e){let r=sp(),t=[e];for(r[e].distance=0;t.length;){let n=t.pop(),i=Object.keys(hn[n]);for(let u=i.length,a=0;a<u;a++){let o=i[a],c=r[o];c.distance===-1&&(c.distance=r[n].distance+1,c.parent=n,t.unshift(o))}}return r}function fp(e,r){return function(t){return r(e(t))}}function xp(e,r){let t=[r[e].parent,e],n=hn[r[e].parent][e],i=r[e].parent;for(;r[i].parent;)t.unshift(r[i].parent),n=fp(hn[r[i].parent][i],n),i=r[i].parent;return n.conversion=t,n}Is.exports=function(e){let r=lp(e),t={},n=Object.keys(r);for(let i=n.length,u=0;u<i;u++){let a=n[u];r[a].parent!==null&&(t[a]=xp(a,r))}return t}});var Ls=f((UO,ks)=>{"use strict";var ua=ia(),dp=Ts(),Wr={},pp=Object.keys(ua);function hp(e){let r=function(...t){let n=t[0];return n==null?n:(n.length>1&&(t=n),e(t))};return"conversion"in e&&(r.conversion=e.conversion),r}function bp(e){let r=function(...t){let n=t[0];if(n==null)return n;n.length>1&&(t=n);let i=e(t);if(typeof i=="object")for(let u=i.length,a=0;a<u;a++)i[a]=Math.round(i[a]);return i};return"conversion"in e&&(r.conversion=e.conversion),r}pp.forEach(e=>{Wr[e]={},Object.defineProperty(Wr[e],"channels",{value:ua[e].channels}),Object.defineProperty(Wr[e],"labels",{value:ua[e].labels});let r=dp(e);Object.keys(r).forEach(n=>{let i=r[n];Wr[e][n]=bp(i),Wr[e][n].raw=hp(i)})});ks.exports=Wr});var $s=f((NO,Vs)=>{"use strict";var Rs=(e,r)=>(...t)=>`\x1B[${e(...t)+r}m`,Us=(e,r)=>(...t)=>{let n=e(...t);return`\x1B[${38+r};5;${n}m`},Ns=(e,r)=>(...t)=>{let n=e(...t);return`\x1B[${38+r};2;${n[0]};${n[1]};${n[2]}m`},bn=e=>e,Ws=(e,r,t)=>[e,r,t],Vr=(e,r,t)=>{Object.defineProperty(e,r,{get:()=>{let n=t();return Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},aa,$r=(e,r,t,n)=>{aa===void 0&&(aa=Ls());let i=n?10:0,u={};for(let[a,o]of Object.entries(aa)){let c=a==="ansi16"?"ansi":a;a===r?u[c]=e(t,i):typeof o=="object"&&(u[c]=e(o[r],i))}return u};function vp(){let e=new Map,r={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};r.color.gray=r.color.blackBright,r.bgColor.bgGray=r.bgColor.bgBlackBright,r.color.grey=r.color.blackBright,r.bgColor.bgGrey=r.bgColor.bgBlackBright;for(let[t,n]of Object.entries(r)){for(let[i,u]of Object.entries(n))r[i]={open:`\x1B[${u[0]}m`,close:`\x1B[${u[1]}m`},n[i]=r[i],e.set(u[0],u[1]);Object.defineProperty(r,t,{value:n,enumerable:!1})}return Object.defineProperty(r,"codes",{value:e,enumerable:!1}),r.color.close="\x1B[39m",r.bgColor.close="\x1B[49m",Vr(r.color,"ansi",()=>$r(Rs,"ansi16",bn,!1)),Vr(r.color,"ansi256",()=>$r(Us,"ansi256",bn,!1)),Vr(r.color,"ansi16m",()=>$r(Ns,"rgb",Ws,!1)),Vr(r.bgColor,"ansi",()=>$r(Rs,"ansi16",bn,!0)),Vr(r.bgColor,"ansi256",()=>$r(Us,"ansi256",bn,!0)),Vr(r.bgColor,"ansi16m",()=>$r(Ns,"rgb",Ws,!0)),r}Object.defineProperty(Vs,"exports",{enumerable:!0,get:vp})});var Ys=f((WO,Ks)=>{"use strict";var Ut=As(),mp=ra(),yp=$s(),ca=new Set(["\x1B","\x9B"]),Dp=39,zs=e=>`${ca.values().next().value}[${e}m`,_p=e=>e.split(" ").map(r=>Ut(r)),oa=(e,r,t)=>{let n=[...r],i=!1,u=Ut(mp(e[e.length-1]));for(let[a,o]of n.entries()){let c=Ut(o);if(u+c<=t?e[e.length-1]+=o:(e.push(o),u=0),ca.has(o))i=!0;else if(i&&o==="m"){i=!1;continue}i||(u+=c,u===t&&a<n.length-1&&(e.push(""),u=0))}!u&&e[e.length-1].length>0&&e.length>1&&(e[e.length-2]+=e.pop())},gp=e=>{let r=e.split(" "),t=r.length;for(;t>0&&!(Ut(r[t-1])>0);)t--;return t===r.length?e:r.slice(0,t).join(" ")+r.slice(t).join("")},wp=(e,r,t={})=>{if(t.trim!==!1&&e.trim()==="")return"";let n="",i="",u,a=_p(e),o=[""];for(let[c,s]of e.split(" ").entries()){t.trim!==!1&&(o[o.length-1]=o[o.length-1].trimLeft());let x=Ut(o[o.length-1]);if(c!==0&&(x>=r&&(t.wordWrap===!1||t.trim===!1)&&(o.push(""),x=0),(x>0||t.trim===!1)&&(o[o.length-1]+=" ",x++)),t.hard&&a[c]>r){let d=r-x,p=1+Math.floor((a[c]-d-1)/r);Math.floor((a[c]-1)/r)<p&&o.push(""),oa(o,s,r);continue}if(x+a[c]>r&&x>0&&a[c]>0){if(t.wordWrap===!1&&x<r){oa(o,s,r);continue}o.push("")}if(x+a[c]>r&&t.wordWrap===!1){oa(o,s,r);continue}o[o.length-1]+=s}t.trim!==!1&&(o=o.map(gp)),n=o.join(`
3
+ import{a as ls}from"./chunk-YAZPI4SK.js";import{a as mr,b as f,d as ie}from"./chunk-4WV7FA5L.js";var Ke=f((fO,ps)=>{"use strict";var G1=mr("tty"),H1=G1?.WriteStream?.prototype?.hasColors?.()??!1,I=(e,r)=>{if(!H1)return i=>i;let t=`\x1B[${e}m`,n=`\x1B[${r}m`;return i=>{let u=i+"",a=u.indexOf(n);if(a===-1)return t+u+n;let o=t,c=0,x=(r===22?n:"")+t;for(;a!==-1;)o+=u.slice(c,a)+x,c=a+n.length,a=u.indexOf(n,c);return o+=u.slice(c)+n,o}},P={};P.reset=I(0,0);P.bold=I(1,22);P.dim=I(2,22);P.italic=I(3,23);P.underline=I(4,24);P.overline=I(53,55);P.inverse=I(7,27);P.hidden=I(8,28);P.strikethrough=I(9,29);P.black=I(30,39);P.red=I(31,39);P.green=I(32,39);P.yellow=I(33,39);P.blue=I(34,39);P.magenta=I(35,39);P.cyan=I(36,39);P.white=I(37,39);P.gray=I(90,39);P.bgBlack=I(40,49);P.bgRed=I(41,49);P.bgGreen=I(42,49);P.bgYellow=I(43,49);P.bgBlue=I(44,49);P.bgMagenta=I(45,49);P.bgCyan=I(46,49);P.bgWhite=I(47,49);P.bgGray=I(100,49);P.redBright=I(91,39);P.greenBright=I(92,39);P.yellowBright=I(93,39);P.blueBright=I(94,39);P.magentaBright=I(95,39);P.cyanBright=I(96,39);P.whiteBright=I(97,39);P.bgRedBright=I(101,49);P.bgGreenBright=I(102,49);P.bgYellowBright=I(103,49);P.bgBlueBright=I(104,49);P.bgMagentaBright=I(105,49);P.bgCyanBright=I(106,49);P.bgWhiteBright=I(107,49);ps.exports=P});var _s=f((jO,Ds)=>{"use strict";Ds.exports=np;function tp(e){let r={defaultWidth:0,output:process.stdout,tty:mr("tty")};return e?(Object.keys(r).forEach(function(t){e[t]||(e[t]=r[t])}),e):r}function np(e){let r=tp(e);if(r.output.getWindowSize)return r.output.getWindowSize()[0]||r.defaultWidth;if(r.tty.getWindowSize)return r.tty.getWindowSize()[1]||r.defaultWidth;if(r.output.columns)return r.output.columns;if(process.env.CLI_WIDTH){let t=parseInt(process.env.CLI_WIDTH,10);if(!isNaN(t)&&t!==0)return t}return r.defaultWidth}});var ws=f((PO,gs)=>{"use strict";gs.exports=({onlyFirst:e=!1}={})=>{let r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(r,e?void 0:"g")}});var ra=f((BO,Ss)=>{"use strict";var ip=ws();Ss.exports=e=>typeof e=="string"?e.replace(ip(),""):e});var Os=f((MO,ta)=>{"use strict";var Fs=e=>Number.isNaN(e)?!1:e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141);ta.exports=Fs;ta.exports.default=Fs});var qs=f((IO,Es)=>{"use strict";Es.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var As=f((TO,na)=>{"use strict";var up=ra(),ap=Os(),op=qs(),Cs=e=>{if(typeof e!="string"||e.length===0||(e=up(e),e.length===0))return 0;e=e.replace(op()," ");let r=0;for(let t=0;t<e.length;t++){let n=e.codePointAt(t);n<=31||n>=127&&n<=159||n>=768&&n<=879||(n>65535&&t++,r+=ap(n)?2:1)}return r};na.exports=Cs;na.exports.default=Cs});var Ps=f((kO,js)=>{"use strict";js.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var ia=f((LO,Ms)=>{"use strict";var Rt=Ps(),Bs={};for(let e of Object.keys(Rt))Bs[Rt[e]]=e;var S={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};Ms.exports=S;for(let e of Object.keys(S)){if(!("channels"in S[e]))throw new Error("missing channels property: "+e);if(!("labels"in S[e]))throw new Error("missing channel labels property: "+e);if(S[e].labels.length!==S[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:r,labels:t}=S[e];delete S[e].channels,delete S[e].labels,Object.defineProperty(S[e],"channels",{value:r}),Object.defineProperty(S[e],"labels",{value:t})}S.rgb.hsl=function(e){let r=e[0]/255,t=e[1]/255,n=e[2]/255,i=Math.min(r,t,n),u=Math.max(r,t,n),a=u-i,o,c;u===i?o=0:r===u?o=(t-n)/a:t===u?o=2+(n-r)/a:n===u&&(o=4+(r-t)/a),o=Math.min(o*60,360),o<0&&(o+=360);let s=(i+u)/2;return u===i?c=0:s<=.5?c=a/(u+i):c=a/(2-u-i),[o,c*100,s*100]};S.rgb.hsv=function(e){let r,t,n,i,u,a=e[0]/255,o=e[1]/255,c=e[2]/255,s=Math.max(a,o,c),x=s-Math.min(a,o,c),d=function(p){return(s-p)/6/x+1/2};return x===0?(i=0,u=0):(u=x/s,r=d(a),t=d(o),n=d(c),a===s?i=n-t:o===s?i=1/3+r-n:c===s&&(i=2/3+t-r),i<0?i+=1:i>1&&(i-=1)),[i*360,u*100,s*100]};S.rgb.hwb=function(e){let r=e[0],t=e[1],n=e[2],i=S.rgb.hsl(e)[0],u=1/255*Math.min(r,Math.min(t,n));return n=1-1/255*Math.max(r,Math.max(t,n)),[i,u*100,n*100]};S.rgb.cmyk=function(e){let r=e[0]/255,t=e[1]/255,n=e[2]/255,i=Math.min(1-r,1-t,1-n),u=(1-r-i)/(1-i)||0,a=(1-t-i)/(1-i)||0,o=(1-n-i)/(1-i)||0;return[u*100,a*100,o*100,i*100]};function cp(e,r){return(e[0]-r[0])**2+(e[1]-r[1])**2+(e[2]-r[2])**2}S.rgb.keyword=function(e){let r=Bs[e];if(r)return r;let t=1/0,n;for(let i of Object.keys(Rt)){let u=Rt[i],a=cp(e,u);a<t&&(t=a,n=i)}return n};S.keyword.rgb=function(e){return Rt[e]};S.rgb.xyz=function(e){let r=e[0]/255,t=e[1]/255,n=e[2]/255;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let i=r*.4124+t*.3576+n*.1805,u=r*.2126+t*.7152+n*.0722,a=r*.0193+t*.1192+n*.9505;return[i*100,u*100,a*100]};S.rgb.lab=function(e){let r=S.rgb.xyz(e),t=r[0],n=r[1],i=r[2];t/=95.047,n/=100,i/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let u=116*n-16,a=500*(t-n),o=200*(n-i);return[u,a,o]};S.hsl.rgb=function(e){let r=e[0]/360,t=e[1]/100,n=e[2]/100,i,u,a;if(t===0)return a=n*255,[a,a,a];n<.5?i=n*(1+t):i=n+t-n*t;let o=2*n-i,c=[0,0,0];for(let s=0;s<3;s++)u=r+1/3*-(s-1),u<0&&u++,u>1&&u--,6*u<1?a=o+(i-o)*6*u:2*u<1?a=i:3*u<2?a=o+(i-o)*(2/3-u)*6:a=o,c[s]=a*255;return c};S.hsl.hsv=function(e){let r=e[0],t=e[1]/100,n=e[2]/100,i=t,u=Math.max(n,.01);n*=2,t*=n<=1?n:2-n,i*=u<=1?u:2-u;let a=(n+t)/2,o=n===0?2*i/(u+i):2*t/(n+t);return[r,o*100,a*100]};S.hsv.rgb=function(e){let r=e[0]/60,t=e[1]/100,n=e[2]/100,i=Math.floor(r)%6,u=r-Math.floor(r),a=255*n*(1-t),o=255*n*(1-t*u),c=255*n*(1-t*(1-u));switch(n*=255,i){case 0:return[n,c,a];case 1:return[o,n,a];case 2:return[a,n,c];case 3:return[a,o,n];case 4:return[c,a,n];case 5:return[n,a,o]}};S.hsv.hsl=function(e){let r=e[0],t=e[1]/100,n=e[2]/100,i=Math.max(n,.01),u,a;a=(2-t)*n;let o=(2-t)*i;return u=t*i,u/=o<=1?o:2-o,u=u||0,a/=2,[r,u*100,a*100]};S.hwb.rgb=function(e){let r=e[0]/360,t=e[1]/100,n=e[2]/100,i=t+n,u;i>1&&(t/=i,n/=i);let a=Math.floor(6*r),o=1-n;u=6*r-a,(a&1)!==0&&(u=1-u);let c=t+u*(o-t),s,x,d;switch(a){default:case 6:case 0:s=o,x=c,d=t;break;case 1:s=c,x=o,d=t;break;case 2:s=t,x=o,d=c;break;case 3:s=t,x=c,d=o;break;case 4:s=c,x=t,d=o;break;case 5:s=o,x=t,d=c;break}return[s*255,x*255,d*255]};S.cmyk.rgb=function(e){let r=e[0]/100,t=e[1]/100,n=e[2]/100,i=e[3]/100,u=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,n*(1-i)+i);return[u*255,a*255,o*255]};S.xyz.rgb=function(e){let r=e[0]/100,t=e[1]/100,n=e[2]/100,i,u,a;return i=r*3.2406+t*-1.5372+n*-.4986,u=r*-.9689+t*1.8758+n*.0415,a=r*.0557+t*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,u=u>.0031308?1.055*u**(1/2.4)-.055:u*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,i=Math.min(Math.max(0,i),1),u=Math.min(Math.max(0,u),1),a=Math.min(Math.max(0,a),1),[i*255,u*255,a*255]};S.xyz.lab=function(e){let r=e[0],t=e[1],n=e[2];r/=95.047,t/=100,n/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let i=116*t-16,u=500*(r-t),a=200*(t-n);return[i,u,a]};S.lab.xyz=function(e){let r=e[0],t=e[1],n=e[2],i,u,a;u=(r+16)/116,i=t/500+u,a=u-n/200;let o=u**3,c=i**3,s=a**3;return u=o>.008856?o:(u-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,a=s>.008856?s:(a-16/116)/7.787,i*=95.047,u*=100,a*=108.883,[i,u,a]};S.lab.lch=function(e){let r=e[0],t=e[1],n=e[2],i;i=Math.atan2(n,t)*360/2/Math.PI,i<0&&(i+=360);let a=Math.sqrt(t*t+n*n);return[r,a,i]};S.lch.lab=function(e){let r=e[0],t=e[1],i=e[2]/360*2*Math.PI,u=t*Math.cos(i),a=t*Math.sin(i);return[r,u,a]};S.rgb.ansi16=function(e,r=null){let[t,n,i]=e,u=r===null?S.rgb.hsv(e)[2]:r;if(u=Math.round(u/50),u===0)return 30;let a=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return u===2&&(a+=60),a};S.hsv.ansi16=function(e){return S.rgb.ansi16(S.hsv.rgb(e),e[2])};S.rgb.ansi256=function(e){let r=e[0],t=e[1],n=e[2];return r===t&&t===n?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5)};S.ansi16.rgb=function(e){let r=e%10;if(r===0||r===7)return e>50&&(r+=3.5),r=r/10.5*255,[r,r,r];let t=(~~(e>50)+1)*.5,n=(r&1)*t*255,i=(r>>1&1)*t*255,u=(r>>2&1)*t*255;return[n,i,u]};S.ansi256.rgb=function(e){if(e>=232){let u=(e-232)*10+8;return[u,u,u]}e-=16;let r,t=Math.floor(e/36)/5*255,n=Math.floor((r=e%36)/6)/5*255,i=r%6/5*255;return[t,n,i]};S.rgb.hex=function(e){let t=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(t.length)+t};S.hex.rgb=function(e){let r=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!r)return[0,0,0];let t=r[0];r[0].length===3&&(t=t.split("").map(o=>o+o).join(""));let n=parseInt(t,16),i=n>>16&255,u=n>>8&255,a=n&255;return[i,u,a]};S.rgb.hcg=function(e){let r=e[0]/255,t=e[1]/255,n=e[2]/255,i=Math.max(Math.max(r,t),n),u=Math.min(Math.min(r,t),n),a=i-u,o,c;return a<1?o=u/(1-a):o=0,a<=0?c=0:i===r?c=(t-n)/a%6:i===t?c=2+(n-r)/a:c=4+(r-t)/a,c/=6,c%=1,[c*360,a*100,o*100]};S.hsl.hcg=function(e){let r=e[1]/100,t=e[2]/100,n=t<.5?2*r*t:2*r*(1-t),i=0;return n<1&&(i=(t-.5*n)/(1-n)),[e[0],n*100,i*100]};S.hsv.hcg=function(e){let r=e[1]/100,t=e[2]/100,n=r*t,i=0;return n<1&&(i=(t-n)/(1-n)),[e[0],n*100,i*100]};S.hcg.rgb=function(e){let r=e[0]/360,t=e[1]/100,n=e[2]/100;if(t===0)return[n*255,n*255,n*255];let i=[0,0,0],u=r%1*6,a=u%1,o=1-a,c=0;switch(Math.floor(u)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=o,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=o,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=o}return c=(1-t)*n,[(t*i[0]+c)*255,(t*i[1]+c)*255,(t*i[2]+c)*255]};S.hcg.hsv=function(e){let r=e[1]/100,t=e[2]/100,n=r+t*(1-r),i=0;return n>0&&(i=r/n),[e[0],i*100,n*100]};S.hcg.hsl=function(e){let r=e[1]/100,n=e[2]/100*(1-r)+.5*r,i=0;return n>0&&n<.5?i=r/(2*n):n>=.5&&n<1&&(i=r/(2*(1-n))),[e[0],i*100,n*100]};S.hcg.hwb=function(e){let r=e[1]/100,t=e[2]/100,n=r+t*(1-r);return[e[0],(n-r)*100,(1-n)*100]};S.hwb.hcg=function(e){let r=e[1]/100,n=1-e[2]/100,i=n-r,u=0;return i<1&&(u=(n-i)/(1-i)),[e[0],i*100,u*100]};S.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};S.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};S.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};S.gray.hsl=function(e){return[0,0,e[0]]};S.gray.hsv=S.gray.hsl;S.gray.hwb=function(e){return[0,100,e[0]]};S.gray.cmyk=function(e){return[0,0,0,e[0]]};S.gray.lab=function(e){return[e[0],0,0]};S.gray.hex=function(e){let r=Math.round(e[0]/100*255)&255,n=((r<<16)+(r<<8)+r).toString(16).toUpperCase();return"000000".substring(n.length)+n};S.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var Ts=f((RO,Is)=>{"use strict";var hn=ia();function sp(){let e={},r=Object.keys(hn);for(let t=r.length,n=0;n<t;n++)e[r[n]]={distance:-1,parent:null};return e}function lp(e){let r=sp(),t=[e];for(r[e].distance=0;t.length;){let n=t.pop(),i=Object.keys(hn[n]);for(let u=i.length,a=0;a<u;a++){let o=i[a],c=r[o];c.distance===-1&&(c.distance=r[n].distance+1,c.parent=n,t.unshift(o))}}return r}function fp(e,r){return function(t){return r(e(t))}}function xp(e,r){let t=[r[e].parent,e],n=hn[r[e].parent][e],i=r[e].parent;for(;r[i].parent;)t.unshift(r[i].parent),n=fp(hn[r[i].parent][i],n),i=r[i].parent;return n.conversion=t,n}Is.exports=function(e){let r=lp(e),t={},n=Object.keys(r);for(let i=n.length,u=0;u<i;u++){let a=n[u];r[a].parent!==null&&(t[a]=xp(a,r))}return t}});var Ls=f((UO,ks)=>{"use strict";var ua=ia(),dp=Ts(),Wr={},pp=Object.keys(ua);function hp(e){let r=function(...t){let n=t[0];return n==null?n:(n.length>1&&(t=n),e(t))};return"conversion"in e&&(r.conversion=e.conversion),r}function bp(e){let r=function(...t){let n=t[0];if(n==null)return n;n.length>1&&(t=n);let i=e(t);if(typeof i=="object")for(let u=i.length,a=0;a<u;a++)i[a]=Math.round(i[a]);return i};return"conversion"in e&&(r.conversion=e.conversion),r}pp.forEach(e=>{Wr[e]={},Object.defineProperty(Wr[e],"channels",{value:ua[e].channels}),Object.defineProperty(Wr[e],"labels",{value:ua[e].labels});let r=dp(e);Object.keys(r).forEach(n=>{let i=r[n];Wr[e][n]=bp(i),Wr[e][n].raw=hp(i)})});ks.exports=Wr});var $s=f((NO,Vs)=>{"use strict";var Rs=(e,r)=>(...t)=>`\x1B[${e(...t)+r}m`,Us=(e,r)=>(...t)=>{let n=e(...t);return`\x1B[${38+r};5;${n}m`},Ns=(e,r)=>(...t)=>{let n=e(...t);return`\x1B[${38+r};2;${n[0]};${n[1]};${n[2]}m`},bn=e=>e,Ws=(e,r,t)=>[e,r,t],Vr=(e,r,t)=>{Object.defineProperty(e,r,{get:()=>{let n=t();return Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},aa,$r=(e,r,t,n)=>{aa===void 0&&(aa=Ls());let i=n?10:0,u={};for(let[a,o]of Object.entries(aa)){let c=a==="ansi16"?"ansi":a;a===r?u[c]=e(t,i):typeof o=="object"&&(u[c]=e(o[r],i))}return u};function vp(){let e=new Map,r={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};r.color.gray=r.color.blackBright,r.bgColor.bgGray=r.bgColor.bgBlackBright,r.color.grey=r.color.blackBright,r.bgColor.bgGrey=r.bgColor.bgBlackBright;for(let[t,n]of Object.entries(r)){for(let[i,u]of Object.entries(n))r[i]={open:`\x1B[${u[0]}m`,close:`\x1B[${u[1]}m`},n[i]=r[i],e.set(u[0],u[1]);Object.defineProperty(r,t,{value:n,enumerable:!1})}return Object.defineProperty(r,"codes",{value:e,enumerable:!1}),r.color.close="\x1B[39m",r.bgColor.close="\x1B[49m",Vr(r.color,"ansi",()=>$r(Rs,"ansi16",bn,!1)),Vr(r.color,"ansi256",()=>$r(Us,"ansi256",bn,!1)),Vr(r.color,"ansi16m",()=>$r(Ns,"rgb",Ws,!1)),Vr(r.bgColor,"ansi",()=>$r(Rs,"ansi16",bn,!0)),Vr(r.bgColor,"ansi256",()=>$r(Us,"ansi256",bn,!0)),Vr(r.bgColor,"ansi16m",()=>$r(Ns,"rgb",Ws,!0)),r}Object.defineProperty(Vs,"exports",{enumerable:!0,get:vp})});var Ys=f((WO,Ks)=>{"use strict";var Ut=As(),mp=ra(),yp=$s(),ca=new Set(["\x1B","\x9B"]),Dp=39,zs=e=>`${ca.values().next().value}[${e}m`,_p=e=>e.split(" ").map(r=>Ut(r)),oa=(e,r,t)=>{let n=[...r],i=!1,u=Ut(mp(e[e.length-1]));for(let[a,o]of n.entries()){let c=Ut(o);if(u+c<=t?e[e.length-1]+=o:(e.push(o),u=0),ca.has(o))i=!0;else if(i&&o==="m"){i=!1;continue}i||(u+=c,u===t&&a<n.length-1&&(e.push(""),u=0))}!u&&e[e.length-1].length>0&&e.length>1&&(e[e.length-2]+=e.pop())},gp=e=>{let r=e.split(" "),t=r.length;for(;t>0&&!(Ut(r[t-1])>0);)t--;return t===r.length?e:r.slice(0,t).join(" ")+r.slice(t).join("")},wp=(e,r,t={})=>{if(t.trim!==!1&&e.trim()==="")return"";let n="",i="",u,a=_p(e),o=[""];for(let[c,s]of e.split(" ").entries()){t.trim!==!1&&(o[o.length-1]=o[o.length-1].trimLeft());let x=Ut(o[o.length-1]);if(c!==0&&(x>=r&&(t.wordWrap===!1||t.trim===!1)&&(o.push(""),x=0),(x>0||t.trim===!1)&&(o[o.length-1]+=" ",x++)),t.hard&&a[c]>r){let d=r-x,p=1+Math.floor((a[c]-d-1)/r);Math.floor((a[c]-1)/r)<p&&o.push(""),oa(o,s,r);continue}if(x+a[c]>r&&x>0&&a[c]>0){if(t.wordWrap===!1&&x<r){oa(o,s,r);continue}o.push("")}if(x+a[c]>r&&t.wordWrap===!1){oa(o,s,r);continue}o[o.length-1]+=s}t.trim!==!1&&(o=o.map(gp)),n=o.join(`
4
4
  `);for(let[c,s]of[...n].entries()){if(i+=s,ca.has(s)){let d=parseFloat(/\d[^m]*/.exec(n.slice(c,c+4)));u=d===Dp?null:d}let x=yp.codes.get(Number(u));u&&x&&(n[c+1]===`
5
5
  `?i+=zs(x):s===`
6
6
  `&&(i+=zs(u)))}return i};Ks.exports=(e,r,t)=>String(e).normalize().replace(/\r\n/g,`
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env node
2
+ import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
3
+ var V=Object.create;var v=Object.defineProperty;var K=Object.getOwnPropertyDescriptor;var W=Object.getOwnPropertyNames;var H=Object.getPrototypeOf,z=Object.prototype.hasOwnProperty;var he=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(r,t)=>(typeof require<"u"?require:r)[t]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var me=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),pe=(e,r)=>{for(var t in r)v(e,t,{get:r[t],enumerable:!0})},J=(e,r,t,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of W(r))!z.call(e,n)&&n!==t&&v(e,n,{get:()=>r[n],enumerable:!(o=K(r,n))||o.enumerable});return e};var de=(e,r,t)=>(t=e!=null?V(H(e)):{},J(r||!e||!e.__esModule?v(t,"default",{value:e,enumerable:!0}):t,e));var F=(e=0)=>r=>`\x1B[${r+e}m`,w=(e=0)=>r=>`\x1B[${38+e};5;${r}m`,_=(e=0)=>(r,t,o)=>`\x1B[${38+e};2;${r};${t};${o}m`,l={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},xe=Object.keys(l.modifier),q=Object.keys(l.color),Q=Object.keys(l.bgColor),Oe=[...q,...Q];function X(){let e=new Map;for(let[r,t]of Object.entries(l)){for(let[o,n]of Object.entries(t))l[o]={open:`\x1B[${n[0]}m`,close:`\x1B[${n[1]}m`},t[o]=l[o],e.set(n[0],n[1]);Object.defineProperty(l,r,{value:t,enumerable:!1})}return Object.defineProperty(l,"codes",{value:e,enumerable:!1}),l.color.close="\x1B[39m",l.bgColor.close="\x1B[49m",l.color.ansi=F(),l.color.ansi256=w(),l.color.ansi16m=_(),l.bgColor.ansi=F(10),l.bgColor.ansi256=w(10),l.bgColor.ansi16m=_(10),Object.defineProperties(l,{rgbToAnsi256:{value(r,t,o){return r===t&&t===o?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(t/255*5)+Math.round(o/255*5)},enumerable:!1},hexToRgb:{value(r){let t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(r.toString(16));if(!t)return[0,0,0];let[o]=t;o.length===3&&(o=[...o].map(s=>s+s).join(""));let n=Number.parseInt(o,16);return[n>>16&255,n>>8&255,n&255]},enumerable:!1},hexToAnsi256:{value:r=>l.rgbToAnsi256(...l.hexToRgb(r)),enumerable:!1},ansi256ToAnsi:{value(r){if(r<8)return 30+r;if(r<16)return 90+(r-8);let t,o,n;if(r>=232)t=((r-232)*10+8)/255,o=t,n=t;else{r-=16;let y=r%36;t=Math.floor(r/36)/5,o=Math.floor(y/6)/5,n=y%6/5}let s=Math.max(t,o,n)*2;if(s===0)return 30;let a=30+(Math.round(n)<<2|Math.round(o)<<1|Math.round(t));return s===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(r,t,o)=>l.ansi256ToAnsi(l.rgbToAnsi256(r,t,o)),enumerable:!1},hexToAnsi:{value:r=>l.ansi256ToAnsi(l.hexToAnsi256(r)),enumerable:!1}}),l}var Z=X(),f=Z;import A from"process";import ee from"os";import j from"tty";function u(e,r=globalThis.Deno?globalThis.Deno.args:A.argv){let t=e.startsWith("-")?"":e.length===1?"-":"--",o=r.indexOf(t+e),n=r.indexOf("--");return o!==-1&&(n===-1||o<n)}var{env:c}=A,O;u("no-color")||u("no-colors")||u("color=false")||u("color=never")?O=0:(u("color")||u("colors")||u("color=true")||u("color=always"))&&(O=1);function re(){if("FORCE_COLOR"in c)return c.FORCE_COLOR==="true"?1:c.FORCE_COLOR==="false"?0:c.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(c.FORCE_COLOR,10),3)}function te(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function oe(e,{streamIsTTY:r,sniffFlags:t=!0}={}){let o=re();o!==void 0&&(O=o);let n=t?O:o;if(n===0)return 0;if(t){if(u("color=16m")||u("color=full")||u("color=truecolor"))return 3;if(u("color=256"))return 2}if("TF_BUILD"in c&&"AGENT_NAME"in c)return 1;if(e&&!r&&n===void 0)return 0;let s=n||0;if(c.TERM==="dumb")return s;if(A.platform==="win32"){let a=ee.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in c)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(a=>a in c)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(a=>a in c)||c.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in c)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(c.TEAMCITY_VERSION)?1:0;if(c.COLORTERM==="truecolor"||c.TERM==="xterm-kitty"||c.TERM==="xterm-ghostty"||c.TERM==="wezterm")return 3;if("TERM_PROGRAM"in c){let a=Number.parseInt((c.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(c.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(c.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(c.TERM)||"COLORTERM"in c?1:s}function k(e,r={}){let t=oe(e,{streamIsTTY:e&&e.isTTY,...r});return te(t)}var ne={stdout:k({isTTY:j.isatty(1)}),stderr:k({isTTY:j.isatty(2)})},L=ne;function P(e,r,t){let o=e.indexOf(r);if(o===-1)return e;let n=r.length,s=0,a="";do a+=e.slice(s,o)+r+t,s=o+n,o=e.indexOf(r,s);while(o!==-1);return a+=e.slice(s),a}function G(e,r,t,o){let n=0,s="";do{let a=e[o-1]==="\r";s+=e.slice(n,a?o-1:o)+r+(a?`\r
4
+ `:`
5
+ `)+t,n=o+1,o=e.indexOf(`
6
+ `,n)}while(o!==-1);return s+=e.slice(n),s}var{stdout:$,stderr:Y}=L,M=Symbol("GENERATOR"),h=Symbol("STYLER"),p=Symbol("IS_EMPTY"),D=["ansi","ansi","ansi256","ansi16m"],m=Object.create(null),se=(e,r={})=>{if(r.level&&!(Number.isInteger(r.level)&&r.level>=0&&r.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let t=$?$.level:0;e.level=r.level===void 0?t:r.level};var ie=e=>{let r=(...t)=>t.join(" ");return se(r,e),Object.setPrototypeOf(r,d.prototype),r};function d(e){return ie(e)}Object.setPrototypeOf(d.prototype,Function.prototype);for(let[e,r]of Object.entries(f))m[e]={get(){let t=T(this,S(r.open,r.close,this[h]),this[p]);return Object.defineProperty(this,e,{value:t}),t}};m.visible={get(){let e=T(this,this[h],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var E=(e,r,t,...o)=>e==="rgb"?r==="ansi16m"?f[t].ansi16m(...o):r==="ansi256"?f[t].ansi256(f.rgbToAnsi256(...o)):f[t].ansi(f.rgbToAnsi(...o)):e==="hex"?E("rgb",r,t,...f.hexToRgb(...o)):f[t][e](...o),le=["rgb","hex","ansi256"];for(let e of le){m[e]={get(){let{level:t}=this;return function(...o){let n=S(E(e,D[t],"color",...o),f.color.close,this[h]);return T(this,n,this[p])}}};let r="bg"+e[0].toUpperCase()+e.slice(1);m[r]={get(){let{level:t}=this;return function(...o){let n=S(E(e,D[t],"bgColor",...o),f.bgColor.close,this[h]);return T(this,n,this[p])}}}}var ce=Object.defineProperties(()=>{},{...m,level:{enumerable:!0,get(){return this[M].level},set(e){this[M].level=e}}}),S=(e,r,t)=>{let o,n;return t===void 0?(o=e,n=r):(o=t.openAll+e,n=r+t.closeAll),{open:e,close:r,openAll:o,closeAll:n,parent:t}},T=(e,r,t)=>{let o=(...n)=>ae(o,n.length===1?""+n[0]:n.join(" "));return Object.setPrototypeOf(o,ce),o[M]=e,o[h]=r,o[p]=t,o},ae=(e,r)=>{if(e.level<=0||!r)return e[p]?"":r;let t=e[h];if(t===void 0)return r;let{openAll:o,closeAll:n}=t;if(r.includes("\x1B"))for(;t!==void 0;)r=P(r,t.close,t.open),t=t.parent;let s=r.indexOf(`
7
+ `);return s!==-1&&(r=G(r,n,o,s)),o+r+n};Object.defineProperties(d.prototype,m);var ue=d(),Ne=d({level:Y?Y.level:0});var i=ue;var b={rosewater:i.hex("#f5e0dc"),flamingo:i.hex("#f2cdcd"),pink:i.hex("#f5c2e7"),mauve:i.hex("#cba6f7"),red:i.hex("#f38ba8"),maroon:i.hex("#eba0ac"),peach:i.hex("#fab387"),yellow:i.hex("#f9e2af"),green:i.hex("#a6e3a1"),teal:i.hex("#94e2d5"),sky:i.hex("#89dceb"),sapphire:i.hex("#74c7ec"),blue:i.hex("#89b4fa"),lavender:i.hex("#b4befe"),text:i.hex("#cdd6f4"),subtext1:i.hex("#bac2de"),subtext0:i.hex("#a6adc8"),overlay2:i.hex("#9399b2"),overlay1:i.hex("#7f849c"),overlay0:i.hex("#6c7086"),surface2:i.hex("#585b70"),surface1:i.hex("#45475a"),surface0:i.hex("#313244"),base:i.hex("#1e1e2e"),mantle:i.hex("#181825"),crust:i.hex("#11111b")},N=b.mauve,g=b.green,B=b.yellow,R=b.red,Fe=b.teal,we=b.text,I=b.overlay1,_e=b.overlay0,je=b.surface2,fe=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"],ke={interval:80,frames:fe.map(e=>N(e))},C=[[203,166,247],[245,194,231],[250,179,135]];function be(e){let t=Math.max(0,Math.min(1,e))*(C.length-1),o=Math.min(Math.floor(t),C.length-2),n=t-o,[s,a]=[C[o],C[o+1]];return`#${s.map((x,U)=>Math.round(x+(a[U]-x)*n)).map(x=>x.toString(16).padStart(2,"0")).join("")}`}function Le(e,r=0,t=1){let o=Array.from(e),n=o.length+t*2;return o.map((s,a)=>s===" "?s:i.hex(be((a+r*2)/n))(s)).join("")}function $e(e){return e?.verificationStatus==="verified"?g(" \u2713 verified"):""}function Ye(e,r){let t=e/r;return t>=.8?g(String(e)):t>=.6?B(String(e)):R(String(e))}function De(e,r){let t=Math.round(e/r*20),o=20-t,n=e/r;return(n>=.8?g:n>=.6?B:R)("\u2588".repeat(t))+I("\u2591".repeat(o))}function Ue(e){return e?e>=1e3?`${(e/1e3).toFixed(1)}k`:String(e):"0"}function Ve(e){return N.bold(`
8
+ ${e}
9
+ ${"\u2500".repeat(e.length)}
10
+ `)}function Ke(e,r){let t=R(` \u2716 ${e}`);return r&&(t+=I(`
11
+ \u2192 ${r}`)),t}function We(e){return g(` \u2714 ${e}`)}function He(e){process.stdout.write(JSON.stringify(e)+`
12
+ `)}export{he as a,me as b,pe as c,de as d,i as e,b as f,N as g,g as h,B as i,Fe as j,we as k,I as l,je as m,ke as n,Le as o,$e as p,Ye as q,De as r,Ue as s,Ve as t,Ke as u,We as v,He as w};
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
3
+ import{b as u,c as a,e as c}from"./chunk-JL5OF5KH.js";var s;async function o(){if(s)return s;let e=await u();return s=a(e),s}async function p(){return o()}async function b(){return(await o()).replace(/\/api\/?$/,"")}var l=class extends Error{statusCode;constructor(t,n){super(n),this.name="ApiError",this.statusCode=t}};async function r(e){let n=`${await o()}${e}`,i=await fetch(n,{headers:await c()});if(!i.ok)throw new l(i.status,`API returned ${i.status} for ${e}`);return i.json()}async function f(e){return r(`/search?q=${encodeURIComponent(e)}`)}async function S(e){return r(`/skills/${encodeURIComponent(e)}`)}async function d(e){return r(`/blueprints/${encodeURIComponent(e)}`)}async function y(e){let t=new URLSearchParams;return e?.search&&t.set("search",e.search),t.set("limit",String(e?.limit??50)),(await r(`/collections?${t.toString()}`)).data}async function h(e){return r(`/collections/${encodeURIComponent(e)}`)}async function C(e){let t=new URLSearchParams;return e?.search&&t.set("search",e.search),e?.category&&t.set("category",e.category),t.set("limit",String(e?.limit??50)),t.set("sort","stars"),t.set("order","desc"),r(`/mcp-servers?${t.toString()}`)}async function v(){return r("/mcp-servers/categories")}async function x(e){return r(`/mcp-servers/${encodeURIComponent(e)}`)}export{p as a,b,l as c,f as d,S as e,d as f,y as g,h,C as i,v as j,x as k};