gong-code 0.1.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 +38 -0
- package/dist/SKILL-22jccbka.md +1 -0
- package/dist/chunk-01wdn84e.js +8 -0
- package/dist/chunk-04bc74vz.js +243 -0
- package/dist/chunk-05t2vqsb.js +490 -0
- package/dist/chunk-0727wret.js +159 -0
- package/dist/chunk-07rervty.js +200 -0
- package/dist/chunk-0b9nxvyg.js +478 -0
- package/dist/chunk-0e428b73.js +600 -0
- package/dist/chunk-0hqfheht.js +3439 -0
- package/dist/chunk-0pnk52c2.js +116 -0
- package/dist/chunk-0sbddf6m.js +68 -0
- package/dist/chunk-0vf7xb84.js +176 -0
- package/dist/chunk-0yz17yjy.js +1061 -0
- package/dist/chunk-0zscb6c7.js +10 -0
- package/dist/chunk-10p21kq6.js +378 -0
- package/dist/chunk-17k78pmz.js +120 -0
- package/dist/chunk-19jvvqzp.js +1390 -0
- package/dist/chunk-1d5czqnr.js +173 -0
- package/dist/chunk-1gjysfnf.js +13876 -0
- package/dist/chunk-1jjfv0wd.js +467 -0
- package/dist/chunk-1jjzp2pa.js +617 -0
- package/dist/chunk-1m38dj2k.js +155 -0
- package/dist/chunk-1pgttway.js +211 -0
- package/dist/chunk-1vvnx0gb.js +8035 -0
- package/dist/chunk-1ztm9yps.js +49145 -0
- package/dist/chunk-208x1t0m.js +88 -0
- package/dist/chunk-20xqs3yk.js +843 -0
- package/dist/chunk-2b2c0wnn.js +584 -0
- package/dist/chunk-2g07117j.js +541 -0
- package/dist/chunk-2g6p2t3w.js +780 -0
- package/dist/chunk-2kjeaeg7.js +28 -0
- package/dist/chunk-2n0s2dhc.js +12 -0
- package/dist/chunk-2p0hvt8k.js +785 -0
- package/dist/chunk-2qmxg9y7.js +40174 -0
- package/dist/chunk-2qpy8kne.js +28 -0
- package/dist/chunk-2rgbf62a.js +40 -0
- package/dist/chunk-2tx0s41y.js +150 -0
- package/dist/chunk-2x8zk5cz.js +101 -0
- package/dist/chunk-2yqy25z4.js +48 -0
- package/dist/chunk-318g78ty.js +552 -0
- package/dist/chunk-31gfg8tz.js +290 -0
- package/dist/chunk-32n0s532.js +1317 -0
- package/dist/chunk-35dw2r9g.js +137 -0
- package/dist/chunk-36b5zqvn.js +1865 -0
- package/dist/chunk-38kpx69j.js +97 -0
- package/dist/chunk-3b01vp8p.js +815 -0
- package/dist/chunk-3f76a1ek.js +317 -0
- package/dist/chunk-3fd1hkhh.js +4254 -0
- package/dist/chunk-3ffxa7zj.js +8 -0
- package/dist/chunk-3gcj7w95.js +8 -0
- package/dist/chunk-3jf3k40v.js +970 -0
- package/dist/chunk-3k51qfp9.js +9301 -0
- package/dist/chunk-3mhygd2v.js +1180 -0
- package/dist/chunk-3p6y0gvb.js +117 -0
- package/dist/chunk-3r60xdt5.js +93 -0
- package/dist/chunk-43agf6xv.js +8 -0
- package/dist/chunk-46zr418r.js +15 -0
- package/dist/chunk-48k2bs4w.js +118 -0
- package/dist/chunk-4p987a4z.js +84 -0
- package/dist/chunk-4px25pe0.js +776 -0
- package/dist/chunk-4s93jyky.js +113 -0
- package/dist/chunk-4xv8bedf.js +58 -0
- package/dist/chunk-4y382mzd.js +346 -0
- package/dist/chunk-52dzw4bc.js +246 -0
- package/dist/chunk-52qqmh5g.js +110 -0
- package/dist/chunk-53grnhp7.js +8 -0
- package/dist/chunk-59craaxx.js +4249 -0
- package/dist/chunk-5b833jqs.js +96 -0
- package/dist/chunk-5cp2q9sh.js +58 -0
- package/dist/chunk-5dbaxmts.js +87 -0
- package/dist/chunk-5f5sxgp0.js +96 -0
- package/dist/chunk-5mkfderj.js +195 -0
- package/dist/chunk-5qw0mpvq.js +389 -0
- package/dist/chunk-5rxmszm8.js +48 -0
- package/dist/chunk-5ygxa3hr.js +65 -0
- package/dist/chunk-61d5dqq2.js +71 -0
- package/dist/chunk-6350958y.js +272 -0
- package/dist/chunk-65z8hg8j.js +1337 -0
- package/dist/chunk-6aq85gdq.js +8 -0
- package/dist/chunk-6cjh9exg.js +40751 -0
- package/dist/chunk-6e41p5m6.js +187 -0
- package/dist/chunk-6jb6xcnq.js +10511 -0
- package/dist/chunk-6jta29r1.js +20 -0
- package/dist/chunk-6q7f2rrv.js +4757 -0
- package/dist/chunk-6sg0ec6v.js +41 -0
- package/dist/chunk-6v0rhx4e.js +328 -0
- package/dist/chunk-6x5mz95v.js +751 -0
- package/dist/chunk-6xqp51qr.js +87 -0
- package/dist/chunk-6xvyx1s9.js +6957 -0
- package/dist/chunk-6ywh7wgp.js +468 -0
- package/dist/chunk-75ne77gm.js +1920 -0
- package/dist/chunk-77cb06js.js +602 -0
- package/dist/chunk-78n9kfp8.js +1645 -0
- package/dist/chunk-7be87rww.js +277 -0
- package/dist/chunk-7e1qjk3s.js +125 -0
- package/dist/chunk-7e7nxnss.js +360 -0
- package/dist/chunk-7g8156qp.js +55 -0
- package/dist/chunk-7nz71s42.js +3353 -0
- package/dist/chunk-7r078t2x.js +113 -0
- package/dist/chunk-7shx41hj.js +3094 -0
- package/dist/chunk-7yexhdjs.js +216 -0
- package/dist/chunk-83kmfcjv.js +256 -0
- package/dist/chunk-846rr9n1.js +107 -0
- package/dist/chunk-84ncsm1r.js +183 -0
- package/dist/chunk-867x8aq0.js +8936 -0
- package/dist/chunk-8byh30kb.js +1947 -0
- package/dist/chunk-8c8f6gnt.js +432 -0
- package/dist/chunk-8gtdseev.js +454 -0
- package/dist/chunk-8jfh9rq6.js +642 -0
- package/dist/chunk-8n4n4m67.js +800 -0
- package/dist/chunk-8za61tze.js +847 -0
- package/dist/chunk-9029sbq1.js +57 -0
- package/dist/chunk-94dm5rrm.js +673 -0
- package/dist/chunk-9bs8n985.js +329 -0
- package/dist/chunk-9c23776j.js +763 -0
- package/dist/chunk-9e93g81n.js +298 -0
- package/dist/chunk-9f3d61y7.js +548 -0
- package/dist/chunk-9gc3andd.js +422 -0
- package/dist/chunk-9kn3tgpb.js +130 -0
- package/dist/chunk-9m5rn7hk.js +61 -0
- package/dist/chunk-9p4hsd6a.js +50 -0
- package/dist/chunk-9qasfk8n.js +758 -0
- package/dist/chunk-9snp5mn2.js +533 -0
- package/dist/chunk-9tcvras3.js +2331 -0
- package/dist/chunk-a0186ngk.js +57 -0
- package/dist/chunk-a2m8f0aj.js +268 -0
- package/dist/chunk-a2rcafav.js +716 -0
- package/dist/chunk-a9hjdzar.js +160 -0
- package/dist/chunk-aak6ts5n.js +526 -0
- package/dist/chunk-aca3w84n.js +267 -0
- package/dist/chunk-ae76ded0.js +30 -0
- package/dist/chunk-afnjhn3j.js +21933 -0
- package/dist/chunk-ahj70tf0.js +880 -0
- package/dist/chunk-apjsxssq.js +169 -0
- package/dist/chunk-av49wjj1.js +43 -0
- package/dist/chunk-axggebfy.js +206 -0
- package/dist/chunk-az7jpbv8.js +16 -0
- package/dist/chunk-azz7sep6.js +328 -0
- package/dist/chunk-b4tpz2g1.js +93 -0
- package/dist/chunk-bczf2eyq.js +115 -0
- package/dist/chunk-bd95f637.js +208 -0
- package/dist/chunk-bdhdmkya.js +10 -0
- package/dist/chunk-bp0ynk17.js +32 -0
- package/dist/chunk-bq75gxjs.js +90 -0
- package/dist/chunk-btk5jaq6.js +10464 -0
- package/dist/chunk-bv4c48a5.js +120 -0
- package/dist/chunk-byfb105n.js +341 -0
- package/dist/chunk-c0bdmy7w.js +4223 -0
- package/dist/chunk-c20aqkz8.js +641 -0
- package/dist/chunk-c4jg3s2c.js +163 -0
- package/dist/chunk-c61q5cer.js +258 -0
- package/dist/chunk-c9f761sy.js +386 -0
- package/dist/chunk-ca6jkz06.js +157 -0
- package/dist/chunk-ccyg9ap9.js +171374 -0
- package/dist/chunk-cfej8cc7.js +371 -0
- package/dist/chunk-cjqxdnf9.js +23 -0
- package/dist/chunk-ckrs789w.js +8 -0
- package/dist/chunk-cqeq13wg.js +48 -0
- package/dist/chunk-crfj3w5e.js +22821 -0
- package/dist/chunk-ct5x6z7g.js +8066 -0
- package/dist/chunk-cv5h8n8c.js +101 -0
- package/dist/chunk-cwe8h159.js +1563 -0
- package/dist/chunk-cwm234zz.js +908 -0
- package/dist/chunk-d1jkfp45.js +1580 -0
- package/dist/chunk-d3hb1qdr.js +126 -0
- package/dist/chunk-d70d0zer.js +713 -0
- package/dist/chunk-d91tx29f.js +105 -0
- package/dist/chunk-d952pymh.js +20 -0
- package/dist/chunk-d9af3z8k.js +720 -0
- package/dist/chunk-da1n53c2.js +47 -0
- package/dist/chunk-df5c1x8m.js +732 -0
- package/dist/chunk-dkv64xys.js +71 -0
- package/dist/chunk-dm7166v6.js +251 -0
- package/dist/chunk-dr0y5a61.js +258 -0
- package/dist/chunk-drzb0rrd.js +306 -0
- package/dist/chunk-dw1v1q7w.js +37 -0
- package/dist/chunk-e224qet4.js +348 -0
- package/dist/chunk-e50ckbv0.js +1099 -0
- package/dist/chunk-e5gn6by6.js +1165 -0
- package/dist/chunk-e7m3f74m.js +37 -0
- package/dist/chunk-e8ghgwaj.js +295 -0
- package/dist/chunk-ed8k4ya2.js +41 -0
- package/dist/chunk-eh0vnqdz.js +76 -0
- package/dist/chunk-epwrzr35.js +4301 -0
- package/dist/chunk-er9h6sw5.js +5379 -0
- package/dist/chunk-eta5aekm.js +79 -0
- package/dist/chunk-ev5gxscq.js +63 -0
- package/dist/chunk-evp72hv5.js +212 -0
- package/dist/chunk-ex41stfq.js +127 -0
- package/dist/chunk-ezpa510h.js +62 -0
- package/dist/chunk-f0fm6dey.js +477 -0
- package/dist/chunk-f239sbhc.js +152 -0
- package/dist/chunk-f2bj47xf.js +109 -0
- package/dist/chunk-f4t24rq4.js +258 -0
- package/dist/chunk-f9ghvzy8.js +106 -0
- package/dist/chunk-f9rahzgr.js +99 -0
- package/dist/chunk-ff75qzty.js +521 -0
- package/dist/chunk-fj0ctt6q.js +264 -0
- package/dist/chunk-fj7wxdt3.js +221 -0
- package/dist/chunk-fnnpqv92.js +714 -0
- package/dist/chunk-fpd3zzx1.js +26696 -0
- package/dist/chunk-fqv2cn76.js +227 -0
- package/dist/chunk-fqw9j3bj.js +439 -0
- package/dist/chunk-frbcqhz0.js +4984 -0
- package/dist/chunk-fzkj59sg.js +174 -0
- package/dist/chunk-fzpzbpbw.js +248 -0
- package/dist/chunk-g52cpmd1.js +686 -0
- package/dist/chunk-g98m2qe6.js +31 -0
- package/dist/chunk-g9zgq4vy.js +715 -0
- package/dist/chunk-gbpt7tm8.js +687 -0
- package/dist/chunk-gg52jka8.js +373 -0
- package/dist/chunk-gjttphax.js +5793 -0
- package/dist/chunk-gs7vjaas.js +65 -0
- package/dist/chunk-gv8n85j2.js +8 -0
- package/dist/chunk-gxdwm6pt.js +650 -0
- package/dist/chunk-gy8wajg2.js +1014 -0
- package/dist/chunk-gz3647m0.js +200 -0
- package/dist/chunk-gzg07mqh.js +16 -0
- package/dist/chunk-h3zc60tq.js +44 -0
- package/dist/chunk-h4p1qt16.js +74 -0
- package/dist/chunk-h8219f18.js +282 -0
- package/dist/chunk-h9agq92v.js +331 -0
- package/dist/chunk-hhjtpwbj.js +16 -0
- package/dist/chunk-hpgpwzra.js +548 -0
- package/dist/chunk-hsnjvn19.js +80 -0
- package/dist/chunk-hsp9qrry.js +417 -0
- package/dist/chunk-hwz6aq2m.js +3939 -0
- package/dist/chunk-hzph0hbh.js +272 -0
- package/dist/chunk-hzqkss6v.js +153 -0
- package/dist/chunk-j0t31f39.js +1149 -0
- package/dist/chunk-j1qm6n1v.js +30 -0
- package/dist/chunk-j6e4b522.js +81 -0
- package/dist/chunk-j7qfbvxk.js +84 -0
- package/dist/chunk-j7qv3hvm.js +1635 -0
- package/dist/chunk-j8mxc6k6.js +213 -0
- package/dist/chunk-jevj87jn.js +224 -0
- package/dist/chunk-jk2ps88q.js +815 -0
- package/dist/chunk-jz7tbdyv.js +1599 -0
- package/dist/chunk-k36jpjvh.js +300 -0
- package/dist/chunk-k4nmrt3w.js +61 -0
- package/dist/chunk-kavn03r9.js +16606 -0
- package/dist/chunk-kkgav8dm.js +54 -0
- package/dist/chunk-kkq26g5c.js +33 -0
- package/dist/chunk-kp6nepx4.js +106 -0
- package/dist/chunk-ksefybc8.js +1551 -0
- package/dist/chunk-kv147680.js +3436 -0
- package/dist/chunk-kya46axt.js +833 -0
- package/dist/chunk-kyz233ny.js +227 -0
- package/dist/chunk-kzs75xmj.js +143 -0
- package/dist/chunk-m0vrez9w.js +266 -0
- package/dist/chunk-m1wadav3.js +118 -0
- package/dist/chunk-m4rfx3cj.js +221 -0
- package/dist/chunk-mc9zaggs.js +6374 -0
- package/dist/chunk-mcg5ttj4.js +105 -0
- package/dist/chunk-mf4r7918.js +63 -0
- package/dist/chunk-mh9khrt4.js +286 -0
- package/dist/chunk-mhc4szw7.js +22 -0
- package/dist/chunk-mkq0yzp0.js +38 -0
- package/dist/chunk-mr58jv4w.js +256 -0
- package/dist/chunk-mrrx3bmt.js +168 -0
- package/dist/chunk-mtyk3zz6.js +87 -0
- package/dist/chunk-mvgxntv6.js +62 -0
- package/dist/chunk-mwnjydcm.js +102 -0
- package/dist/chunk-mwxt0m3f.js +862 -0
- package/dist/chunk-mz1pxck8.js +998 -0
- package/dist/chunk-n3agghys.js +214 -0
- package/dist/chunk-n6q02ya9.js +442 -0
- package/dist/chunk-nt3y91vh.js +443 -0
- package/dist/chunk-nt837qt9.js +21 -0
- package/dist/chunk-ntgmegfs.js +39 -0
- package/dist/chunk-nwk16bbd.js +30 -0
- package/dist/chunk-p367ay90.js +672 -0
- package/dist/chunk-p7m3x9qk.js +48 -0
- package/dist/chunk-pagmjwp5.js +132 -0
- package/dist/chunk-pbd4r8ek.js +161 -0
- package/dist/chunk-pdkpssgv.js +2422 -0
- package/dist/chunk-pf6z1e35.js +32 -0
- package/dist/chunk-pfzejvpt.js +213 -0
- package/dist/chunk-pktxyhvk.js +400 -0
- package/dist/chunk-pp5xhveq.js +124 -0
- package/dist/chunk-ppnd7a8x.js +38 -0
- package/dist/chunk-pqh2w7dr.js +2202 -0
- package/dist/chunk-pr878d0z.js +240 -0
- package/dist/chunk-psf0y7hy.js +140 -0
- package/dist/chunk-pz2zz2f7.js +1586 -0
- package/dist/chunk-q0xkrxy8.js +890 -0
- package/dist/chunk-q5b0kpr3.js +14369 -0
- package/dist/chunk-q7z3t531.js +334 -0
- package/dist/chunk-qdjjtgwt.js +3183 -0
- package/dist/chunk-qezv7msv.js +26 -0
- package/dist/chunk-qmxn7f86.js +2643 -0
- package/dist/chunk-qqc3b97c.js +15 -0
- package/dist/chunk-qwrp63wh.js +145 -0
- package/dist/chunk-qyvqbst3.js +537 -0
- package/dist/chunk-qztvd4hd.js +465 -0
- package/dist/chunk-r0bvez4y.js +235 -0
- package/dist/chunk-r3z0896k.js +2831 -0
- package/dist/chunk-r4cxb6t7.js +32 -0
- package/dist/chunk-rb8k68m7.js +118 -0
- package/dist/chunk-rdprgm4t.js +42 -0
- package/dist/chunk-rex82hys.js +1710 -0
- package/dist/chunk-rjjakkw2.js +2560 -0
- package/dist/chunk-rka6gcv3.js +304 -0
- package/dist/chunk-rkz12ghm.js +144 -0
- package/dist/chunk-rnc7m1qs.js +436 -0
- package/dist/chunk-rx6z23h0.js +165 -0
- package/dist/chunk-s76582j1.js +28 -0
- package/dist/chunk-sez03qd9.js +7140 -0
- package/dist/chunk-sjvdn2ep.js +130 -0
- package/dist/chunk-smwhyy8p.js +115 -0
- package/dist/chunk-snw7nh0d.js +695 -0
- package/dist/chunk-sqx9c057.js +193 -0
- package/dist/chunk-sscms68s.js +16 -0
- package/dist/chunk-stknnmsb.js +272 -0
- package/dist/chunk-sywdxbs6.js +853 -0
- package/dist/chunk-syxy4pf2.js +782 -0
- package/dist/chunk-t0hpqsqn.js +6157 -0
- package/dist/chunk-tjm70vnw.js +123 -0
- package/dist/chunk-trzh0msn.js +154 -0
- package/dist/chunk-v1z17cpg.js +723 -0
- package/dist/chunk-vsfj449x.js +333 -0
- package/dist/chunk-vvkq20tt.js +287 -0
- package/dist/chunk-vxgdzx6p.js +338 -0
- package/dist/chunk-vxqhjyfz.js +15 -0
- package/dist/chunk-vzsstfmb.js +80 -0
- package/dist/chunk-w1jew5sn.js +69 -0
- package/dist/chunk-w3kwr76v.js +789 -0
- package/dist/chunk-w40netr9.js +59 -0
- package/dist/chunk-w99cpfdg.js +559 -0
- package/dist/chunk-wacn14d2.js +271 -0
- package/dist/chunk-wbhrqrq3.js +3033 -0
- package/dist/chunk-wfg9g0p7.js +17612 -0
- package/dist/chunk-wj3vjsbx.js +93 -0
- package/dist/chunk-wjhq855a.js +372 -0
- package/dist/chunk-wr06gqxh.js +114 -0
- package/dist/chunk-ws0z2y1g.js +195 -0
- package/dist/chunk-wt62wqcj.js +98 -0
- package/dist/chunk-wx4v7ddx.js +42 -0
- package/dist/chunk-wy0t3vb2.js +6101 -0
- package/dist/chunk-wysz7qk4.js +280 -0
- package/dist/chunk-x63fx1vd.js +192 -0
- package/dist/chunk-x8b7vft8.js +132 -0
- package/dist/chunk-x8jhkgxb.js +346 -0
- package/dist/chunk-x9z4q5k5.js +275 -0
- package/dist/chunk-xjd7e9jq.js +126 -0
- package/dist/chunk-xjr0n27e.js +42 -0
- package/dist/chunk-xpwyw7cd.js +24 -0
- package/dist/chunk-xw4ycnyz.js +37 -0
- package/dist/chunk-y66bqywr.js +17303 -0
- package/dist/chunk-ycarry7d.js +157 -0
- package/dist/chunk-ycr0hp6v.js +1486 -0
- package/dist/chunk-yqmaw6hf.js +496 -0
- package/dist/chunk-yrtm7d23.js +602 -0
- package/dist/chunk-yts879rw.js +48 -0
- package/dist/chunk-yvmhx96e.js +347 -0
- package/dist/chunk-ywq00rg4.js +246 -0
- package/dist/chunk-yygeg5mj.js +752 -0
- package/dist/chunk-z0exw850.js +726 -0
- package/dist/chunk-z2dp53wn.js +17 -0
- package/dist/chunk-z4rzc9nd.js +103 -0
- package/dist/chunk-zb0akt77.js +684 -0
- package/dist/chunk-zb2xrj5t.js +1789 -0
- package/dist/chunk-zbptn0ky.js +423 -0
- package/dist/chunk-zd45wbmf.js +1090 -0
- package/dist/chunk-zjkvspz9.js +2050 -0
- package/dist/chunk-zke1sp3x.js +1524 -0
- package/dist/chunk-zv2cvfsv.js +58 -0
- package/dist/chunk-zy4tmqst.js +644 -0
- package/dist/chunk-zygzzzvk.js +192 -0
- package/dist/cli-21v3v6ny.md +1 -0
- package/dist/cli.js +246 -0
- package/dist/server-n5f2q89z.md +1 -0
- package/package.json +161 -0
|
@@ -0,0 +1,1090 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
__commonJS
|
|
4
|
+
} from "./chunk-eta5aekm.js";
|
|
5
|
+
|
|
6
|
+
// node_modules/.bun/color-name@1.1.4/node_modules/color-name/index.js
|
|
7
|
+
var require_color_name = __commonJS((exports, module) => {
|
|
8
|
+
module.exports = {
|
|
9
|
+
aliceblue: [240, 248, 255],
|
|
10
|
+
antiquewhite: [250, 235, 215],
|
|
11
|
+
aqua: [0, 255, 255],
|
|
12
|
+
aquamarine: [127, 255, 212],
|
|
13
|
+
azure: [240, 255, 255],
|
|
14
|
+
beige: [245, 245, 220],
|
|
15
|
+
bisque: [255, 228, 196],
|
|
16
|
+
black: [0, 0, 0],
|
|
17
|
+
blanchedalmond: [255, 235, 205],
|
|
18
|
+
blue: [0, 0, 255],
|
|
19
|
+
blueviolet: [138, 43, 226],
|
|
20
|
+
brown: [165, 42, 42],
|
|
21
|
+
burlywood: [222, 184, 135],
|
|
22
|
+
cadetblue: [95, 158, 160],
|
|
23
|
+
chartreuse: [127, 255, 0],
|
|
24
|
+
chocolate: [210, 105, 30],
|
|
25
|
+
coral: [255, 127, 80],
|
|
26
|
+
cornflowerblue: [100, 149, 237],
|
|
27
|
+
cornsilk: [255, 248, 220],
|
|
28
|
+
crimson: [220, 20, 60],
|
|
29
|
+
cyan: [0, 255, 255],
|
|
30
|
+
darkblue: [0, 0, 139],
|
|
31
|
+
darkcyan: [0, 139, 139],
|
|
32
|
+
darkgoldenrod: [184, 134, 11],
|
|
33
|
+
darkgray: [169, 169, 169],
|
|
34
|
+
darkgreen: [0, 100, 0],
|
|
35
|
+
darkgrey: [169, 169, 169],
|
|
36
|
+
darkkhaki: [189, 183, 107],
|
|
37
|
+
darkmagenta: [139, 0, 139],
|
|
38
|
+
darkolivegreen: [85, 107, 47],
|
|
39
|
+
darkorange: [255, 140, 0],
|
|
40
|
+
darkorchid: [153, 50, 204],
|
|
41
|
+
darkred: [139, 0, 0],
|
|
42
|
+
darksalmon: [233, 150, 122],
|
|
43
|
+
darkseagreen: [143, 188, 143],
|
|
44
|
+
darkslateblue: [72, 61, 139],
|
|
45
|
+
darkslategray: [47, 79, 79],
|
|
46
|
+
darkslategrey: [47, 79, 79],
|
|
47
|
+
darkturquoise: [0, 206, 209],
|
|
48
|
+
darkviolet: [148, 0, 211],
|
|
49
|
+
deeppink: [255, 20, 147],
|
|
50
|
+
deepskyblue: [0, 191, 255],
|
|
51
|
+
dimgray: [105, 105, 105],
|
|
52
|
+
dimgrey: [105, 105, 105],
|
|
53
|
+
dodgerblue: [30, 144, 255],
|
|
54
|
+
firebrick: [178, 34, 34],
|
|
55
|
+
floralwhite: [255, 250, 240],
|
|
56
|
+
forestgreen: [34, 139, 34],
|
|
57
|
+
fuchsia: [255, 0, 255],
|
|
58
|
+
gainsboro: [220, 220, 220],
|
|
59
|
+
ghostwhite: [248, 248, 255],
|
|
60
|
+
gold: [255, 215, 0],
|
|
61
|
+
goldenrod: [218, 165, 32],
|
|
62
|
+
gray: [128, 128, 128],
|
|
63
|
+
green: [0, 128, 0],
|
|
64
|
+
greenyellow: [173, 255, 47],
|
|
65
|
+
grey: [128, 128, 128],
|
|
66
|
+
honeydew: [240, 255, 240],
|
|
67
|
+
hotpink: [255, 105, 180],
|
|
68
|
+
indianred: [205, 92, 92],
|
|
69
|
+
indigo: [75, 0, 130],
|
|
70
|
+
ivory: [255, 255, 240],
|
|
71
|
+
khaki: [240, 230, 140],
|
|
72
|
+
lavender: [230, 230, 250],
|
|
73
|
+
lavenderblush: [255, 240, 245],
|
|
74
|
+
lawngreen: [124, 252, 0],
|
|
75
|
+
lemonchiffon: [255, 250, 205],
|
|
76
|
+
lightblue: [173, 216, 230],
|
|
77
|
+
lightcoral: [240, 128, 128],
|
|
78
|
+
lightcyan: [224, 255, 255],
|
|
79
|
+
lightgoldenrodyellow: [250, 250, 210],
|
|
80
|
+
lightgray: [211, 211, 211],
|
|
81
|
+
lightgreen: [144, 238, 144],
|
|
82
|
+
lightgrey: [211, 211, 211],
|
|
83
|
+
lightpink: [255, 182, 193],
|
|
84
|
+
lightsalmon: [255, 160, 122],
|
|
85
|
+
lightseagreen: [32, 178, 170],
|
|
86
|
+
lightskyblue: [135, 206, 250],
|
|
87
|
+
lightslategray: [119, 136, 153],
|
|
88
|
+
lightslategrey: [119, 136, 153],
|
|
89
|
+
lightsteelblue: [176, 196, 222],
|
|
90
|
+
lightyellow: [255, 255, 224],
|
|
91
|
+
lime: [0, 255, 0],
|
|
92
|
+
limegreen: [50, 205, 50],
|
|
93
|
+
linen: [250, 240, 230],
|
|
94
|
+
magenta: [255, 0, 255],
|
|
95
|
+
maroon: [128, 0, 0],
|
|
96
|
+
mediumaquamarine: [102, 205, 170],
|
|
97
|
+
mediumblue: [0, 0, 205],
|
|
98
|
+
mediumorchid: [186, 85, 211],
|
|
99
|
+
mediumpurple: [147, 112, 219],
|
|
100
|
+
mediumseagreen: [60, 179, 113],
|
|
101
|
+
mediumslateblue: [123, 104, 238],
|
|
102
|
+
mediumspringgreen: [0, 250, 154],
|
|
103
|
+
mediumturquoise: [72, 209, 204],
|
|
104
|
+
mediumvioletred: [199, 21, 133],
|
|
105
|
+
midnightblue: [25, 25, 112],
|
|
106
|
+
mintcream: [245, 255, 250],
|
|
107
|
+
mistyrose: [255, 228, 225],
|
|
108
|
+
moccasin: [255, 228, 181],
|
|
109
|
+
navajowhite: [255, 222, 173],
|
|
110
|
+
navy: [0, 0, 128],
|
|
111
|
+
oldlace: [253, 245, 230],
|
|
112
|
+
olive: [128, 128, 0],
|
|
113
|
+
olivedrab: [107, 142, 35],
|
|
114
|
+
orange: [255, 165, 0],
|
|
115
|
+
orangered: [255, 69, 0],
|
|
116
|
+
orchid: [218, 112, 214],
|
|
117
|
+
palegoldenrod: [238, 232, 170],
|
|
118
|
+
palegreen: [152, 251, 152],
|
|
119
|
+
paleturquoise: [175, 238, 238],
|
|
120
|
+
palevioletred: [219, 112, 147],
|
|
121
|
+
papayawhip: [255, 239, 213],
|
|
122
|
+
peachpuff: [255, 218, 185],
|
|
123
|
+
peru: [205, 133, 63],
|
|
124
|
+
pink: [255, 192, 203],
|
|
125
|
+
plum: [221, 160, 221],
|
|
126
|
+
powderblue: [176, 224, 230],
|
|
127
|
+
purple: [128, 0, 128],
|
|
128
|
+
rebeccapurple: [102, 51, 153],
|
|
129
|
+
red: [255, 0, 0],
|
|
130
|
+
rosybrown: [188, 143, 143],
|
|
131
|
+
royalblue: [65, 105, 225],
|
|
132
|
+
saddlebrown: [139, 69, 19],
|
|
133
|
+
salmon: [250, 128, 114],
|
|
134
|
+
sandybrown: [244, 164, 96],
|
|
135
|
+
seagreen: [46, 139, 87],
|
|
136
|
+
seashell: [255, 245, 238],
|
|
137
|
+
sienna: [160, 82, 45],
|
|
138
|
+
silver: [192, 192, 192],
|
|
139
|
+
skyblue: [135, 206, 235],
|
|
140
|
+
slateblue: [106, 90, 205],
|
|
141
|
+
slategray: [112, 128, 144],
|
|
142
|
+
slategrey: [112, 128, 144],
|
|
143
|
+
snow: [255, 250, 250],
|
|
144
|
+
springgreen: [0, 255, 127],
|
|
145
|
+
steelblue: [70, 130, 180],
|
|
146
|
+
tan: [210, 180, 140],
|
|
147
|
+
teal: [0, 128, 128],
|
|
148
|
+
thistle: [216, 191, 216],
|
|
149
|
+
tomato: [255, 99, 71],
|
|
150
|
+
turquoise: [64, 224, 208],
|
|
151
|
+
violet: [238, 130, 238],
|
|
152
|
+
wheat: [245, 222, 179],
|
|
153
|
+
white: [255, 255, 255],
|
|
154
|
+
whitesmoke: [245, 245, 245],
|
|
155
|
+
yellow: [255, 255, 0],
|
|
156
|
+
yellowgreen: [154, 205, 50]
|
|
157
|
+
};
|
|
158
|
+
});
|
|
159
|
+
|
|
160
|
+
// node_modules/.bun/color-convert@2.0.1/node_modules/color-convert/conversions.js
|
|
161
|
+
var require_conversions = __commonJS((exports, module) => {
|
|
162
|
+
var cssKeywords = require_color_name();
|
|
163
|
+
var reverseKeywords = {};
|
|
164
|
+
for (const key of Object.keys(cssKeywords)) {
|
|
165
|
+
reverseKeywords[cssKeywords[key]] = key;
|
|
166
|
+
}
|
|
167
|
+
var convert = {
|
|
168
|
+
rgb: { channels: 3, labels: "rgb" },
|
|
169
|
+
hsl: { channels: 3, labels: "hsl" },
|
|
170
|
+
hsv: { channels: 3, labels: "hsv" },
|
|
171
|
+
hwb: { channels: 3, labels: "hwb" },
|
|
172
|
+
cmyk: { channels: 4, labels: "cmyk" },
|
|
173
|
+
xyz: { channels: 3, labels: "xyz" },
|
|
174
|
+
lab: { channels: 3, labels: "lab" },
|
|
175
|
+
lch: { channels: 3, labels: "lch" },
|
|
176
|
+
hex: { channels: 1, labels: ["hex"] },
|
|
177
|
+
keyword: { channels: 1, labels: ["keyword"] },
|
|
178
|
+
ansi16: { channels: 1, labels: ["ansi16"] },
|
|
179
|
+
ansi256: { channels: 1, labels: ["ansi256"] },
|
|
180
|
+
hcg: { channels: 3, labels: ["h", "c", "g"] },
|
|
181
|
+
apple: { channels: 3, labels: ["r16", "g16", "b16"] },
|
|
182
|
+
gray: { channels: 1, labels: ["gray"] }
|
|
183
|
+
};
|
|
184
|
+
module.exports = convert;
|
|
185
|
+
for (const model of Object.keys(convert)) {
|
|
186
|
+
if (!("channels" in convert[model])) {
|
|
187
|
+
throw new Error("missing channels property: " + model);
|
|
188
|
+
}
|
|
189
|
+
if (!("labels" in convert[model])) {
|
|
190
|
+
throw new Error("missing channel labels property: " + model);
|
|
191
|
+
}
|
|
192
|
+
if (convert[model].labels.length !== convert[model].channels) {
|
|
193
|
+
throw new Error("channel and label counts mismatch: " + model);
|
|
194
|
+
}
|
|
195
|
+
const { channels, labels } = convert[model];
|
|
196
|
+
delete convert[model].channels;
|
|
197
|
+
delete convert[model].labels;
|
|
198
|
+
Object.defineProperty(convert[model], "channels", { value: channels });
|
|
199
|
+
Object.defineProperty(convert[model], "labels", { value: labels });
|
|
200
|
+
}
|
|
201
|
+
convert.rgb.hsl = function(rgb) {
|
|
202
|
+
const r = rgb[0] / 255;
|
|
203
|
+
const g = rgb[1] / 255;
|
|
204
|
+
const b = rgb[2] / 255;
|
|
205
|
+
const min = Math.min(r, g, b);
|
|
206
|
+
const max = Math.max(r, g, b);
|
|
207
|
+
const delta = max - min;
|
|
208
|
+
let h;
|
|
209
|
+
let s;
|
|
210
|
+
if (max === min) {
|
|
211
|
+
h = 0;
|
|
212
|
+
} else if (r === max) {
|
|
213
|
+
h = (g - b) / delta;
|
|
214
|
+
} else if (g === max) {
|
|
215
|
+
h = 2 + (b - r) / delta;
|
|
216
|
+
} else if (b === max) {
|
|
217
|
+
h = 4 + (r - g) / delta;
|
|
218
|
+
}
|
|
219
|
+
h = Math.min(h * 60, 360);
|
|
220
|
+
if (h < 0) {
|
|
221
|
+
h += 360;
|
|
222
|
+
}
|
|
223
|
+
const l = (min + max) / 2;
|
|
224
|
+
if (max === min) {
|
|
225
|
+
s = 0;
|
|
226
|
+
} else if (l <= 0.5) {
|
|
227
|
+
s = delta / (max + min);
|
|
228
|
+
} else {
|
|
229
|
+
s = delta / (2 - max - min);
|
|
230
|
+
}
|
|
231
|
+
return [h, s * 100, l * 100];
|
|
232
|
+
};
|
|
233
|
+
convert.rgb.hsv = function(rgb) {
|
|
234
|
+
let rdif;
|
|
235
|
+
let gdif;
|
|
236
|
+
let bdif;
|
|
237
|
+
let h;
|
|
238
|
+
let s;
|
|
239
|
+
const r = rgb[0] / 255;
|
|
240
|
+
const g = rgb[1] / 255;
|
|
241
|
+
const b = rgb[2] / 255;
|
|
242
|
+
const v = Math.max(r, g, b);
|
|
243
|
+
const diff = v - Math.min(r, g, b);
|
|
244
|
+
const diffc = function(c) {
|
|
245
|
+
return (v - c) / 6 / diff + 1 / 2;
|
|
246
|
+
};
|
|
247
|
+
if (diff === 0) {
|
|
248
|
+
h = 0;
|
|
249
|
+
s = 0;
|
|
250
|
+
} else {
|
|
251
|
+
s = diff / v;
|
|
252
|
+
rdif = diffc(r);
|
|
253
|
+
gdif = diffc(g);
|
|
254
|
+
bdif = diffc(b);
|
|
255
|
+
if (r === v) {
|
|
256
|
+
h = bdif - gdif;
|
|
257
|
+
} else if (g === v) {
|
|
258
|
+
h = 1 / 3 + rdif - bdif;
|
|
259
|
+
} else if (b === v) {
|
|
260
|
+
h = 2 / 3 + gdif - rdif;
|
|
261
|
+
}
|
|
262
|
+
if (h < 0) {
|
|
263
|
+
h += 1;
|
|
264
|
+
} else if (h > 1) {
|
|
265
|
+
h -= 1;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
return [
|
|
269
|
+
h * 360,
|
|
270
|
+
s * 100,
|
|
271
|
+
v * 100
|
|
272
|
+
];
|
|
273
|
+
};
|
|
274
|
+
convert.rgb.hwb = function(rgb) {
|
|
275
|
+
const r = rgb[0];
|
|
276
|
+
const g = rgb[1];
|
|
277
|
+
let b = rgb[2];
|
|
278
|
+
const h = convert.rgb.hsl(rgb)[0];
|
|
279
|
+
const w = 1 / 255 * Math.min(r, Math.min(g, b));
|
|
280
|
+
b = 1 - 1 / 255 * Math.max(r, Math.max(g, b));
|
|
281
|
+
return [h, w * 100, b * 100];
|
|
282
|
+
};
|
|
283
|
+
convert.rgb.cmyk = function(rgb) {
|
|
284
|
+
const r = rgb[0] / 255;
|
|
285
|
+
const g = rgb[1] / 255;
|
|
286
|
+
const b = rgb[2] / 255;
|
|
287
|
+
const k = Math.min(1 - r, 1 - g, 1 - b);
|
|
288
|
+
const c = (1 - r - k) / (1 - k) || 0;
|
|
289
|
+
const m = (1 - g - k) / (1 - k) || 0;
|
|
290
|
+
const y = (1 - b - k) / (1 - k) || 0;
|
|
291
|
+
return [c * 100, m * 100, y * 100, k * 100];
|
|
292
|
+
};
|
|
293
|
+
function comparativeDistance(x, y) {
|
|
294
|
+
return (x[0] - y[0]) ** 2 + (x[1] - y[1]) ** 2 + (x[2] - y[2]) ** 2;
|
|
295
|
+
}
|
|
296
|
+
convert.rgb.keyword = function(rgb) {
|
|
297
|
+
const reversed = reverseKeywords[rgb];
|
|
298
|
+
if (reversed) {
|
|
299
|
+
return reversed;
|
|
300
|
+
}
|
|
301
|
+
let currentClosestDistance = Infinity;
|
|
302
|
+
let currentClosestKeyword;
|
|
303
|
+
for (const keyword of Object.keys(cssKeywords)) {
|
|
304
|
+
const value = cssKeywords[keyword];
|
|
305
|
+
const distance = comparativeDistance(rgb, value);
|
|
306
|
+
if (distance < currentClosestDistance) {
|
|
307
|
+
currentClosestDistance = distance;
|
|
308
|
+
currentClosestKeyword = keyword;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
return currentClosestKeyword;
|
|
312
|
+
};
|
|
313
|
+
convert.keyword.rgb = function(keyword) {
|
|
314
|
+
return cssKeywords[keyword];
|
|
315
|
+
};
|
|
316
|
+
convert.rgb.xyz = function(rgb) {
|
|
317
|
+
let r = rgb[0] / 255;
|
|
318
|
+
let g = rgb[1] / 255;
|
|
319
|
+
let b = rgb[2] / 255;
|
|
320
|
+
r = r > 0.04045 ? ((r + 0.055) / 1.055) ** 2.4 : r / 12.92;
|
|
321
|
+
g = g > 0.04045 ? ((g + 0.055) / 1.055) ** 2.4 : g / 12.92;
|
|
322
|
+
b = b > 0.04045 ? ((b + 0.055) / 1.055) ** 2.4 : b / 12.92;
|
|
323
|
+
const x = r * 0.4124 + g * 0.3576 + b * 0.1805;
|
|
324
|
+
const y = r * 0.2126 + g * 0.7152 + b * 0.0722;
|
|
325
|
+
const z = r * 0.0193 + g * 0.1192 + b * 0.9505;
|
|
326
|
+
return [x * 100, y * 100, z * 100];
|
|
327
|
+
};
|
|
328
|
+
convert.rgb.lab = function(rgb) {
|
|
329
|
+
const xyz = convert.rgb.xyz(rgb);
|
|
330
|
+
let x = xyz[0];
|
|
331
|
+
let y = xyz[1];
|
|
332
|
+
let z = xyz[2];
|
|
333
|
+
x /= 95.047;
|
|
334
|
+
y /= 100;
|
|
335
|
+
z /= 108.883;
|
|
336
|
+
x = x > 0.008856 ? x ** (1 / 3) : 7.787 * x + 16 / 116;
|
|
337
|
+
y = y > 0.008856 ? y ** (1 / 3) : 7.787 * y + 16 / 116;
|
|
338
|
+
z = z > 0.008856 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
|
|
339
|
+
const l = 116 * y - 16;
|
|
340
|
+
const a = 500 * (x - y);
|
|
341
|
+
const b = 200 * (y - z);
|
|
342
|
+
return [l, a, b];
|
|
343
|
+
};
|
|
344
|
+
convert.hsl.rgb = function(hsl) {
|
|
345
|
+
const h = hsl[0] / 360;
|
|
346
|
+
const s = hsl[1] / 100;
|
|
347
|
+
const l = hsl[2] / 100;
|
|
348
|
+
let t2;
|
|
349
|
+
let t3;
|
|
350
|
+
let val;
|
|
351
|
+
if (s === 0) {
|
|
352
|
+
val = l * 255;
|
|
353
|
+
return [val, val, val];
|
|
354
|
+
}
|
|
355
|
+
if (l < 0.5) {
|
|
356
|
+
t2 = l * (1 + s);
|
|
357
|
+
} else {
|
|
358
|
+
t2 = l + s - l * s;
|
|
359
|
+
}
|
|
360
|
+
const t1 = 2 * l - t2;
|
|
361
|
+
const rgb = [0, 0, 0];
|
|
362
|
+
for (let i = 0;i < 3; i++) {
|
|
363
|
+
t3 = h + 1 / 3 * -(i - 1);
|
|
364
|
+
if (t3 < 0) {
|
|
365
|
+
t3++;
|
|
366
|
+
}
|
|
367
|
+
if (t3 > 1) {
|
|
368
|
+
t3--;
|
|
369
|
+
}
|
|
370
|
+
if (6 * t3 < 1) {
|
|
371
|
+
val = t1 + (t2 - t1) * 6 * t3;
|
|
372
|
+
} else if (2 * t3 < 1) {
|
|
373
|
+
val = t2;
|
|
374
|
+
} else if (3 * t3 < 2) {
|
|
375
|
+
val = t1 + (t2 - t1) * (2 / 3 - t3) * 6;
|
|
376
|
+
} else {
|
|
377
|
+
val = t1;
|
|
378
|
+
}
|
|
379
|
+
rgb[i] = val * 255;
|
|
380
|
+
}
|
|
381
|
+
return rgb;
|
|
382
|
+
};
|
|
383
|
+
convert.hsl.hsv = function(hsl) {
|
|
384
|
+
const h = hsl[0];
|
|
385
|
+
let s = hsl[1] / 100;
|
|
386
|
+
let l = hsl[2] / 100;
|
|
387
|
+
let smin = s;
|
|
388
|
+
const lmin = Math.max(l, 0.01);
|
|
389
|
+
l *= 2;
|
|
390
|
+
s *= l <= 1 ? l : 2 - l;
|
|
391
|
+
smin *= lmin <= 1 ? lmin : 2 - lmin;
|
|
392
|
+
const v = (l + s) / 2;
|
|
393
|
+
const sv = l === 0 ? 2 * smin / (lmin + smin) : 2 * s / (l + s);
|
|
394
|
+
return [h, sv * 100, v * 100];
|
|
395
|
+
};
|
|
396
|
+
convert.hsv.rgb = function(hsv) {
|
|
397
|
+
const h = hsv[0] / 60;
|
|
398
|
+
const s = hsv[1] / 100;
|
|
399
|
+
let v = hsv[2] / 100;
|
|
400
|
+
const hi = Math.floor(h) % 6;
|
|
401
|
+
const f = h - Math.floor(h);
|
|
402
|
+
const p = 255 * v * (1 - s);
|
|
403
|
+
const q = 255 * v * (1 - s * f);
|
|
404
|
+
const t = 255 * v * (1 - s * (1 - f));
|
|
405
|
+
v *= 255;
|
|
406
|
+
switch (hi) {
|
|
407
|
+
case 0:
|
|
408
|
+
return [v, t, p];
|
|
409
|
+
case 1:
|
|
410
|
+
return [q, v, p];
|
|
411
|
+
case 2:
|
|
412
|
+
return [p, v, t];
|
|
413
|
+
case 3:
|
|
414
|
+
return [p, q, v];
|
|
415
|
+
case 4:
|
|
416
|
+
return [t, p, v];
|
|
417
|
+
case 5:
|
|
418
|
+
return [v, p, q];
|
|
419
|
+
}
|
|
420
|
+
};
|
|
421
|
+
convert.hsv.hsl = function(hsv) {
|
|
422
|
+
const h = hsv[0];
|
|
423
|
+
const s = hsv[1] / 100;
|
|
424
|
+
const v = hsv[2] / 100;
|
|
425
|
+
const vmin = Math.max(v, 0.01);
|
|
426
|
+
let sl;
|
|
427
|
+
let l;
|
|
428
|
+
l = (2 - s) * v;
|
|
429
|
+
const lmin = (2 - s) * vmin;
|
|
430
|
+
sl = s * vmin;
|
|
431
|
+
sl /= lmin <= 1 ? lmin : 2 - lmin;
|
|
432
|
+
sl = sl || 0;
|
|
433
|
+
l /= 2;
|
|
434
|
+
return [h, sl * 100, l * 100];
|
|
435
|
+
};
|
|
436
|
+
convert.hwb.rgb = function(hwb) {
|
|
437
|
+
const h = hwb[0] / 360;
|
|
438
|
+
let wh = hwb[1] / 100;
|
|
439
|
+
let bl = hwb[2] / 100;
|
|
440
|
+
const ratio = wh + bl;
|
|
441
|
+
let f;
|
|
442
|
+
if (ratio > 1) {
|
|
443
|
+
wh /= ratio;
|
|
444
|
+
bl /= ratio;
|
|
445
|
+
}
|
|
446
|
+
const i = Math.floor(6 * h);
|
|
447
|
+
const v = 1 - bl;
|
|
448
|
+
f = 6 * h - i;
|
|
449
|
+
if ((i & 1) !== 0) {
|
|
450
|
+
f = 1 - f;
|
|
451
|
+
}
|
|
452
|
+
const n = wh + f * (v - wh);
|
|
453
|
+
let r;
|
|
454
|
+
let g;
|
|
455
|
+
let b;
|
|
456
|
+
switch (i) {
|
|
457
|
+
default:
|
|
458
|
+
case 6:
|
|
459
|
+
case 0:
|
|
460
|
+
r = v;
|
|
461
|
+
g = n;
|
|
462
|
+
b = wh;
|
|
463
|
+
break;
|
|
464
|
+
case 1:
|
|
465
|
+
r = n;
|
|
466
|
+
g = v;
|
|
467
|
+
b = wh;
|
|
468
|
+
break;
|
|
469
|
+
case 2:
|
|
470
|
+
r = wh;
|
|
471
|
+
g = v;
|
|
472
|
+
b = n;
|
|
473
|
+
break;
|
|
474
|
+
case 3:
|
|
475
|
+
r = wh;
|
|
476
|
+
g = n;
|
|
477
|
+
b = v;
|
|
478
|
+
break;
|
|
479
|
+
case 4:
|
|
480
|
+
r = n;
|
|
481
|
+
g = wh;
|
|
482
|
+
b = v;
|
|
483
|
+
break;
|
|
484
|
+
case 5:
|
|
485
|
+
r = v;
|
|
486
|
+
g = wh;
|
|
487
|
+
b = n;
|
|
488
|
+
break;
|
|
489
|
+
}
|
|
490
|
+
return [r * 255, g * 255, b * 255];
|
|
491
|
+
};
|
|
492
|
+
convert.cmyk.rgb = function(cmyk) {
|
|
493
|
+
const c = cmyk[0] / 100;
|
|
494
|
+
const m = cmyk[1] / 100;
|
|
495
|
+
const y = cmyk[2] / 100;
|
|
496
|
+
const k = cmyk[3] / 100;
|
|
497
|
+
const r = 1 - Math.min(1, c * (1 - k) + k);
|
|
498
|
+
const g = 1 - Math.min(1, m * (1 - k) + k);
|
|
499
|
+
const b = 1 - Math.min(1, y * (1 - k) + k);
|
|
500
|
+
return [r * 255, g * 255, b * 255];
|
|
501
|
+
};
|
|
502
|
+
convert.xyz.rgb = function(xyz) {
|
|
503
|
+
const x = xyz[0] / 100;
|
|
504
|
+
const y = xyz[1] / 100;
|
|
505
|
+
const z = xyz[2] / 100;
|
|
506
|
+
let r;
|
|
507
|
+
let g;
|
|
508
|
+
let b;
|
|
509
|
+
r = x * 3.2406 + y * -1.5372 + z * -0.4986;
|
|
510
|
+
g = x * -0.9689 + y * 1.8758 + z * 0.0415;
|
|
511
|
+
b = x * 0.0557 + y * -0.204 + z * 1.057;
|
|
512
|
+
r = r > 0.0031308 ? 1.055 * r ** (1 / 2.4) - 0.055 : r * 12.92;
|
|
513
|
+
g = g > 0.0031308 ? 1.055 * g ** (1 / 2.4) - 0.055 : g * 12.92;
|
|
514
|
+
b = b > 0.0031308 ? 1.055 * b ** (1 / 2.4) - 0.055 : b * 12.92;
|
|
515
|
+
r = Math.min(Math.max(0, r), 1);
|
|
516
|
+
g = Math.min(Math.max(0, g), 1);
|
|
517
|
+
b = Math.min(Math.max(0, b), 1);
|
|
518
|
+
return [r * 255, g * 255, b * 255];
|
|
519
|
+
};
|
|
520
|
+
convert.xyz.lab = function(xyz) {
|
|
521
|
+
let x = xyz[0];
|
|
522
|
+
let y = xyz[1];
|
|
523
|
+
let z = xyz[2];
|
|
524
|
+
x /= 95.047;
|
|
525
|
+
y /= 100;
|
|
526
|
+
z /= 108.883;
|
|
527
|
+
x = x > 0.008856 ? x ** (1 / 3) : 7.787 * x + 16 / 116;
|
|
528
|
+
y = y > 0.008856 ? y ** (1 / 3) : 7.787 * y + 16 / 116;
|
|
529
|
+
z = z > 0.008856 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
|
|
530
|
+
const l = 116 * y - 16;
|
|
531
|
+
const a = 500 * (x - y);
|
|
532
|
+
const b = 200 * (y - z);
|
|
533
|
+
return [l, a, b];
|
|
534
|
+
};
|
|
535
|
+
convert.lab.xyz = function(lab) {
|
|
536
|
+
const l = lab[0];
|
|
537
|
+
const a = lab[1];
|
|
538
|
+
const b = lab[2];
|
|
539
|
+
let x;
|
|
540
|
+
let y;
|
|
541
|
+
let z;
|
|
542
|
+
y = (l + 16) / 116;
|
|
543
|
+
x = a / 500 + y;
|
|
544
|
+
z = y - b / 200;
|
|
545
|
+
const y2 = y ** 3;
|
|
546
|
+
const x2 = x ** 3;
|
|
547
|
+
const z2 = z ** 3;
|
|
548
|
+
y = y2 > 0.008856 ? y2 : (y - 16 / 116) / 7.787;
|
|
549
|
+
x = x2 > 0.008856 ? x2 : (x - 16 / 116) / 7.787;
|
|
550
|
+
z = z2 > 0.008856 ? z2 : (z - 16 / 116) / 7.787;
|
|
551
|
+
x *= 95.047;
|
|
552
|
+
y *= 100;
|
|
553
|
+
z *= 108.883;
|
|
554
|
+
return [x, y, z];
|
|
555
|
+
};
|
|
556
|
+
convert.lab.lch = function(lab) {
|
|
557
|
+
const l = lab[0];
|
|
558
|
+
const a = lab[1];
|
|
559
|
+
const b = lab[2];
|
|
560
|
+
let h;
|
|
561
|
+
const hr = Math.atan2(b, a);
|
|
562
|
+
h = hr * 360 / 2 / Math.PI;
|
|
563
|
+
if (h < 0) {
|
|
564
|
+
h += 360;
|
|
565
|
+
}
|
|
566
|
+
const c = Math.sqrt(a * a + b * b);
|
|
567
|
+
return [l, c, h];
|
|
568
|
+
};
|
|
569
|
+
convert.lch.lab = function(lch) {
|
|
570
|
+
const l = lch[0];
|
|
571
|
+
const c = lch[1];
|
|
572
|
+
const h = lch[2];
|
|
573
|
+
const hr = h / 360 * 2 * Math.PI;
|
|
574
|
+
const a = c * Math.cos(hr);
|
|
575
|
+
const b = c * Math.sin(hr);
|
|
576
|
+
return [l, a, b];
|
|
577
|
+
};
|
|
578
|
+
convert.rgb.ansi16 = function(args, saturation = null) {
|
|
579
|
+
const [r, g, b] = args;
|
|
580
|
+
let value = saturation === null ? convert.rgb.hsv(args)[2] : saturation;
|
|
581
|
+
value = Math.round(value / 50);
|
|
582
|
+
if (value === 0) {
|
|
583
|
+
return 30;
|
|
584
|
+
}
|
|
585
|
+
let ansi = 30 + (Math.round(b / 255) << 2 | Math.round(g / 255) << 1 | Math.round(r / 255));
|
|
586
|
+
if (value === 2) {
|
|
587
|
+
ansi += 60;
|
|
588
|
+
}
|
|
589
|
+
return ansi;
|
|
590
|
+
};
|
|
591
|
+
convert.hsv.ansi16 = function(args) {
|
|
592
|
+
return convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);
|
|
593
|
+
};
|
|
594
|
+
convert.rgb.ansi256 = function(args) {
|
|
595
|
+
const r = args[0];
|
|
596
|
+
const g = args[1];
|
|
597
|
+
const b = args[2];
|
|
598
|
+
if (r === g && g === b) {
|
|
599
|
+
if (r < 8) {
|
|
600
|
+
return 16;
|
|
601
|
+
}
|
|
602
|
+
if (r > 248) {
|
|
603
|
+
return 231;
|
|
604
|
+
}
|
|
605
|
+
return Math.round((r - 8) / 247 * 24) + 232;
|
|
606
|
+
}
|
|
607
|
+
const ansi = 16 + 36 * Math.round(r / 255 * 5) + 6 * Math.round(g / 255 * 5) + Math.round(b / 255 * 5);
|
|
608
|
+
return ansi;
|
|
609
|
+
};
|
|
610
|
+
convert.ansi16.rgb = function(args) {
|
|
611
|
+
let color = args % 10;
|
|
612
|
+
if (color === 0 || color === 7) {
|
|
613
|
+
if (args > 50) {
|
|
614
|
+
color += 3.5;
|
|
615
|
+
}
|
|
616
|
+
color = color / 10.5 * 255;
|
|
617
|
+
return [color, color, color];
|
|
618
|
+
}
|
|
619
|
+
const mult = (~~(args > 50) + 1) * 0.5;
|
|
620
|
+
const r = (color & 1) * mult * 255;
|
|
621
|
+
const g = (color >> 1 & 1) * mult * 255;
|
|
622
|
+
const b = (color >> 2 & 1) * mult * 255;
|
|
623
|
+
return [r, g, b];
|
|
624
|
+
};
|
|
625
|
+
convert.ansi256.rgb = function(args) {
|
|
626
|
+
if (args >= 232) {
|
|
627
|
+
const c = (args - 232) * 10 + 8;
|
|
628
|
+
return [c, c, c];
|
|
629
|
+
}
|
|
630
|
+
args -= 16;
|
|
631
|
+
let rem;
|
|
632
|
+
const r = Math.floor(args / 36) / 5 * 255;
|
|
633
|
+
const g = Math.floor((rem = args % 36) / 6) / 5 * 255;
|
|
634
|
+
const b = rem % 6 / 5 * 255;
|
|
635
|
+
return [r, g, b];
|
|
636
|
+
};
|
|
637
|
+
convert.rgb.hex = function(args) {
|
|
638
|
+
const integer = ((Math.round(args[0]) & 255) << 16) + ((Math.round(args[1]) & 255) << 8) + (Math.round(args[2]) & 255);
|
|
639
|
+
const string = integer.toString(16).toUpperCase();
|
|
640
|
+
return "000000".substring(string.length) + string;
|
|
641
|
+
};
|
|
642
|
+
convert.hex.rgb = function(args) {
|
|
643
|
+
const match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
|
|
644
|
+
if (!match) {
|
|
645
|
+
return [0, 0, 0];
|
|
646
|
+
}
|
|
647
|
+
let colorString = match[0];
|
|
648
|
+
if (match[0].length === 3) {
|
|
649
|
+
colorString = colorString.split("").map((char) => {
|
|
650
|
+
return char + char;
|
|
651
|
+
}).join("");
|
|
652
|
+
}
|
|
653
|
+
const integer = parseInt(colorString, 16);
|
|
654
|
+
const r = integer >> 16 & 255;
|
|
655
|
+
const g = integer >> 8 & 255;
|
|
656
|
+
const b = integer & 255;
|
|
657
|
+
return [r, g, b];
|
|
658
|
+
};
|
|
659
|
+
convert.rgb.hcg = function(rgb) {
|
|
660
|
+
const r = rgb[0] / 255;
|
|
661
|
+
const g = rgb[1] / 255;
|
|
662
|
+
const b = rgb[2] / 255;
|
|
663
|
+
const max = Math.max(Math.max(r, g), b);
|
|
664
|
+
const min = Math.min(Math.min(r, g), b);
|
|
665
|
+
const chroma = max - min;
|
|
666
|
+
let grayscale;
|
|
667
|
+
let hue;
|
|
668
|
+
if (chroma < 1) {
|
|
669
|
+
grayscale = min / (1 - chroma);
|
|
670
|
+
} else {
|
|
671
|
+
grayscale = 0;
|
|
672
|
+
}
|
|
673
|
+
if (chroma <= 0) {
|
|
674
|
+
hue = 0;
|
|
675
|
+
} else if (max === r) {
|
|
676
|
+
hue = (g - b) / chroma % 6;
|
|
677
|
+
} else if (max === g) {
|
|
678
|
+
hue = 2 + (b - r) / chroma;
|
|
679
|
+
} else {
|
|
680
|
+
hue = 4 + (r - g) / chroma;
|
|
681
|
+
}
|
|
682
|
+
hue /= 6;
|
|
683
|
+
hue %= 1;
|
|
684
|
+
return [hue * 360, chroma * 100, grayscale * 100];
|
|
685
|
+
};
|
|
686
|
+
convert.hsl.hcg = function(hsl) {
|
|
687
|
+
const s = hsl[1] / 100;
|
|
688
|
+
const l = hsl[2] / 100;
|
|
689
|
+
const c = l < 0.5 ? 2 * s * l : 2 * s * (1 - l);
|
|
690
|
+
let f = 0;
|
|
691
|
+
if (c < 1) {
|
|
692
|
+
f = (l - 0.5 * c) / (1 - c);
|
|
693
|
+
}
|
|
694
|
+
return [hsl[0], c * 100, f * 100];
|
|
695
|
+
};
|
|
696
|
+
convert.hsv.hcg = function(hsv) {
|
|
697
|
+
const s = hsv[1] / 100;
|
|
698
|
+
const v = hsv[2] / 100;
|
|
699
|
+
const c = s * v;
|
|
700
|
+
let f = 0;
|
|
701
|
+
if (c < 1) {
|
|
702
|
+
f = (v - c) / (1 - c);
|
|
703
|
+
}
|
|
704
|
+
return [hsv[0], c * 100, f * 100];
|
|
705
|
+
};
|
|
706
|
+
convert.hcg.rgb = function(hcg) {
|
|
707
|
+
const h = hcg[0] / 360;
|
|
708
|
+
const c = hcg[1] / 100;
|
|
709
|
+
const g = hcg[2] / 100;
|
|
710
|
+
if (c === 0) {
|
|
711
|
+
return [g * 255, g * 255, g * 255];
|
|
712
|
+
}
|
|
713
|
+
const pure = [0, 0, 0];
|
|
714
|
+
const hi = h % 1 * 6;
|
|
715
|
+
const v = hi % 1;
|
|
716
|
+
const w = 1 - v;
|
|
717
|
+
let mg = 0;
|
|
718
|
+
switch (Math.floor(hi)) {
|
|
719
|
+
case 0:
|
|
720
|
+
pure[0] = 1;
|
|
721
|
+
pure[1] = v;
|
|
722
|
+
pure[2] = 0;
|
|
723
|
+
break;
|
|
724
|
+
case 1:
|
|
725
|
+
pure[0] = w;
|
|
726
|
+
pure[1] = 1;
|
|
727
|
+
pure[2] = 0;
|
|
728
|
+
break;
|
|
729
|
+
case 2:
|
|
730
|
+
pure[0] = 0;
|
|
731
|
+
pure[1] = 1;
|
|
732
|
+
pure[2] = v;
|
|
733
|
+
break;
|
|
734
|
+
case 3:
|
|
735
|
+
pure[0] = 0;
|
|
736
|
+
pure[1] = w;
|
|
737
|
+
pure[2] = 1;
|
|
738
|
+
break;
|
|
739
|
+
case 4:
|
|
740
|
+
pure[0] = v;
|
|
741
|
+
pure[1] = 0;
|
|
742
|
+
pure[2] = 1;
|
|
743
|
+
break;
|
|
744
|
+
default:
|
|
745
|
+
pure[0] = 1;
|
|
746
|
+
pure[1] = 0;
|
|
747
|
+
pure[2] = w;
|
|
748
|
+
}
|
|
749
|
+
mg = (1 - c) * g;
|
|
750
|
+
return [
|
|
751
|
+
(c * pure[0] + mg) * 255,
|
|
752
|
+
(c * pure[1] + mg) * 255,
|
|
753
|
+
(c * pure[2] + mg) * 255
|
|
754
|
+
];
|
|
755
|
+
};
|
|
756
|
+
convert.hcg.hsv = function(hcg) {
|
|
757
|
+
const c = hcg[1] / 100;
|
|
758
|
+
const g = hcg[2] / 100;
|
|
759
|
+
const v = c + g * (1 - c);
|
|
760
|
+
let f = 0;
|
|
761
|
+
if (v > 0) {
|
|
762
|
+
f = c / v;
|
|
763
|
+
}
|
|
764
|
+
return [hcg[0], f * 100, v * 100];
|
|
765
|
+
};
|
|
766
|
+
convert.hcg.hsl = function(hcg) {
|
|
767
|
+
const c = hcg[1] / 100;
|
|
768
|
+
const g = hcg[2] / 100;
|
|
769
|
+
const l = g * (1 - c) + 0.5 * c;
|
|
770
|
+
let s = 0;
|
|
771
|
+
if (l > 0 && l < 0.5) {
|
|
772
|
+
s = c / (2 * l);
|
|
773
|
+
} else if (l >= 0.5 && l < 1) {
|
|
774
|
+
s = c / (2 * (1 - l));
|
|
775
|
+
}
|
|
776
|
+
return [hcg[0], s * 100, l * 100];
|
|
777
|
+
};
|
|
778
|
+
convert.hcg.hwb = function(hcg) {
|
|
779
|
+
const c = hcg[1] / 100;
|
|
780
|
+
const g = hcg[2] / 100;
|
|
781
|
+
const v = c + g * (1 - c);
|
|
782
|
+
return [hcg[0], (v - c) * 100, (1 - v) * 100];
|
|
783
|
+
};
|
|
784
|
+
convert.hwb.hcg = function(hwb) {
|
|
785
|
+
const w = hwb[1] / 100;
|
|
786
|
+
const b = hwb[2] / 100;
|
|
787
|
+
const v = 1 - b;
|
|
788
|
+
const c = v - w;
|
|
789
|
+
let g = 0;
|
|
790
|
+
if (c < 1) {
|
|
791
|
+
g = (v - c) / (1 - c);
|
|
792
|
+
}
|
|
793
|
+
return [hwb[0], c * 100, g * 100];
|
|
794
|
+
};
|
|
795
|
+
convert.apple.rgb = function(apple) {
|
|
796
|
+
return [apple[0] / 65535 * 255, apple[1] / 65535 * 255, apple[2] / 65535 * 255];
|
|
797
|
+
};
|
|
798
|
+
convert.rgb.apple = function(rgb) {
|
|
799
|
+
return [rgb[0] / 255 * 65535, rgb[1] / 255 * 65535, rgb[2] / 255 * 65535];
|
|
800
|
+
};
|
|
801
|
+
convert.gray.rgb = function(args) {
|
|
802
|
+
return [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];
|
|
803
|
+
};
|
|
804
|
+
convert.gray.hsl = function(args) {
|
|
805
|
+
return [0, 0, args[0]];
|
|
806
|
+
};
|
|
807
|
+
convert.gray.hsv = convert.gray.hsl;
|
|
808
|
+
convert.gray.hwb = function(gray) {
|
|
809
|
+
return [0, 100, gray[0]];
|
|
810
|
+
};
|
|
811
|
+
convert.gray.cmyk = function(gray) {
|
|
812
|
+
return [0, 0, 0, gray[0]];
|
|
813
|
+
};
|
|
814
|
+
convert.gray.lab = function(gray) {
|
|
815
|
+
return [gray[0], 0, 0];
|
|
816
|
+
};
|
|
817
|
+
convert.gray.hex = function(gray) {
|
|
818
|
+
const val = Math.round(gray[0] / 100 * 255) & 255;
|
|
819
|
+
const integer = (val << 16) + (val << 8) + val;
|
|
820
|
+
const string = integer.toString(16).toUpperCase();
|
|
821
|
+
return "000000".substring(string.length) + string;
|
|
822
|
+
};
|
|
823
|
+
convert.rgb.gray = function(rgb) {
|
|
824
|
+
const val = (rgb[0] + rgb[1] + rgb[2]) / 3;
|
|
825
|
+
return [val / 255 * 100];
|
|
826
|
+
};
|
|
827
|
+
});
|
|
828
|
+
|
|
829
|
+
// node_modules/.bun/color-convert@2.0.1/node_modules/color-convert/route.js
|
|
830
|
+
var require_route = __commonJS((exports, module) => {
|
|
831
|
+
var conversions = require_conversions();
|
|
832
|
+
function buildGraph() {
|
|
833
|
+
const graph = {};
|
|
834
|
+
const models = Object.keys(conversions);
|
|
835
|
+
for (let len = models.length, i = 0;i < len; i++) {
|
|
836
|
+
graph[models[i]] = {
|
|
837
|
+
distance: -1,
|
|
838
|
+
parent: null
|
|
839
|
+
};
|
|
840
|
+
}
|
|
841
|
+
return graph;
|
|
842
|
+
}
|
|
843
|
+
function deriveBFS(fromModel) {
|
|
844
|
+
const graph = buildGraph();
|
|
845
|
+
const queue = [fromModel];
|
|
846
|
+
graph[fromModel].distance = 0;
|
|
847
|
+
while (queue.length) {
|
|
848
|
+
const current = queue.pop();
|
|
849
|
+
const adjacents = Object.keys(conversions[current]);
|
|
850
|
+
for (let len = adjacents.length, i = 0;i < len; i++) {
|
|
851
|
+
const adjacent = adjacents[i];
|
|
852
|
+
const node = graph[adjacent];
|
|
853
|
+
if (node.distance === -1) {
|
|
854
|
+
node.distance = graph[current].distance + 1;
|
|
855
|
+
node.parent = current;
|
|
856
|
+
queue.unshift(adjacent);
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
return graph;
|
|
861
|
+
}
|
|
862
|
+
function link(from, to) {
|
|
863
|
+
return function(args) {
|
|
864
|
+
return to(from(args));
|
|
865
|
+
};
|
|
866
|
+
}
|
|
867
|
+
function wrapConversion(toModel, graph) {
|
|
868
|
+
const path = [graph[toModel].parent, toModel];
|
|
869
|
+
let fn = conversions[graph[toModel].parent][toModel];
|
|
870
|
+
let cur = graph[toModel].parent;
|
|
871
|
+
while (graph[cur].parent) {
|
|
872
|
+
path.unshift(graph[cur].parent);
|
|
873
|
+
fn = link(conversions[graph[cur].parent][cur], fn);
|
|
874
|
+
cur = graph[cur].parent;
|
|
875
|
+
}
|
|
876
|
+
fn.conversion = path;
|
|
877
|
+
return fn;
|
|
878
|
+
}
|
|
879
|
+
module.exports = function(fromModel) {
|
|
880
|
+
const graph = deriveBFS(fromModel);
|
|
881
|
+
const conversion = {};
|
|
882
|
+
const models = Object.keys(graph);
|
|
883
|
+
for (let len = models.length, i = 0;i < len; i++) {
|
|
884
|
+
const toModel = models[i];
|
|
885
|
+
const node = graph[toModel];
|
|
886
|
+
if (node.parent === null) {
|
|
887
|
+
continue;
|
|
888
|
+
}
|
|
889
|
+
conversion[toModel] = wrapConversion(toModel, graph);
|
|
890
|
+
}
|
|
891
|
+
return conversion;
|
|
892
|
+
};
|
|
893
|
+
});
|
|
894
|
+
|
|
895
|
+
// node_modules/.bun/color-convert@2.0.1/node_modules/color-convert/index.js
|
|
896
|
+
var require_color_convert = __commonJS((exports, module) => {
|
|
897
|
+
var conversions = require_conversions();
|
|
898
|
+
var route = require_route();
|
|
899
|
+
var convert = {};
|
|
900
|
+
var models = Object.keys(conversions);
|
|
901
|
+
function wrapRaw(fn) {
|
|
902
|
+
const wrappedFn = function(...args) {
|
|
903
|
+
const arg0 = args[0];
|
|
904
|
+
if (arg0 === undefined || arg0 === null) {
|
|
905
|
+
return arg0;
|
|
906
|
+
}
|
|
907
|
+
if (arg0.length > 1) {
|
|
908
|
+
args = arg0;
|
|
909
|
+
}
|
|
910
|
+
return fn(args);
|
|
911
|
+
};
|
|
912
|
+
if ("conversion" in fn) {
|
|
913
|
+
wrappedFn.conversion = fn.conversion;
|
|
914
|
+
}
|
|
915
|
+
return wrappedFn;
|
|
916
|
+
}
|
|
917
|
+
function wrapRounded(fn) {
|
|
918
|
+
const wrappedFn = function(...args) {
|
|
919
|
+
const arg0 = args[0];
|
|
920
|
+
if (arg0 === undefined || arg0 === null) {
|
|
921
|
+
return arg0;
|
|
922
|
+
}
|
|
923
|
+
if (arg0.length > 1) {
|
|
924
|
+
args = arg0;
|
|
925
|
+
}
|
|
926
|
+
const result = fn(args);
|
|
927
|
+
if (typeof result === "object") {
|
|
928
|
+
for (let len = result.length, i = 0;i < len; i++) {
|
|
929
|
+
result[i] = Math.round(result[i]);
|
|
930
|
+
}
|
|
931
|
+
}
|
|
932
|
+
return result;
|
|
933
|
+
};
|
|
934
|
+
if ("conversion" in fn) {
|
|
935
|
+
wrappedFn.conversion = fn.conversion;
|
|
936
|
+
}
|
|
937
|
+
return wrappedFn;
|
|
938
|
+
}
|
|
939
|
+
models.forEach((fromModel) => {
|
|
940
|
+
convert[fromModel] = {};
|
|
941
|
+
Object.defineProperty(convert[fromModel], "channels", { value: conversions[fromModel].channels });
|
|
942
|
+
Object.defineProperty(convert[fromModel], "labels", { value: conversions[fromModel].labels });
|
|
943
|
+
const routes = route(fromModel);
|
|
944
|
+
const routeModels = Object.keys(routes);
|
|
945
|
+
routeModels.forEach((toModel) => {
|
|
946
|
+
const fn = routes[toModel];
|
|
947
|
+
convert[fromModel][toModel] = wrapRounded(fn);
|
|
948
|
+
convert[fromModel][toModel].raw = wrapRaw(fn);
|
|
949
|
+
});
|
|
950
|
+
});
|
|
951
|
+
module.exports = convert;
|
|
952
|
+
});
|
|
953
|
+
|
|
954
|
+
// node_modules/.bun/ansi-styles@4.3.0/node_modules/ansi-styles/index.js
|
|
955
|
+
var require_ansi_styles = __commonJS((exports, module) => {
|
|
956
|
+
var wrapAnsi16 = (fn, offset) => (...args) => {
|
|
957
|
+
const code = fn(...args);
|
|
958
|
+
return `\x1B[${code + offset}m`;
|
|
959
|
+
};
|
|
960
|
+
var wrapAnsi256 = (fn, offset) => (...args) => {
|
|
961
|
+
const code = fn(...args);
|
|
962
|
+
return `\x1B[${38 + offset};5;${code}m`;
|
|
963
|
+
};
|
|
964
|
+
var wrapAnsi16m = (fn, offset) => (...args) => {
|
|
965
|
+
const rgb = fn(...args);
|
|
966
|
+
return `\x1B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
|
|
967
|
+
};
|
|
968
|
+
var ansi2ansi = (n) => n;
|
|
969
|
+
var rgb2rgb = (r, g, b) => [r, g, b];
|
|
970
|
+
var setLazyProperty = (object, property, get) => {
|
|
971
|
+
Object.defineProperty(object, property, {
|
|
972
|
+
get: () => {
|
|
973
|
+
const value = get();
|
|
974
|
+
Object.defineProperty(object, property, {
|
|
975
|
+
value,
|
|
976
|
+
enumerable: true,
|
|
977
|
+
configurable: true
|
|
978
|
+
});
|
|
979
|
+
return value;
|
|
980
|
+
},
|
|
981
|
+
enumerable: true,
|
|
982
|
+
configurable: true
|
|
983
|
+
});
|
|
984
|
+
};
|
|
985
|
+
var colorConvert;
|
|
986
|
+
var makeDynamicStyles = (wrap, targetSpace, identity, isBackground) => {
|
|
987
|
+
if (colorConvert === undefined) {
|
|
988
|
+
colorConvert = require_color_convert();
|
|
989
|
+
}
|
|
990
|
+
const offset = isBackground ? 10 : 0;
|
|
991
|
+
const styles = {};
|
|
992
|
+
for (const [sourceSpace, suite] of Object.entries(colorConvert)) {
|
|
993
|
+
const name = sourceSpace === "ansi16" ? "ansi" : sourceSpace;
|
|
994
|
+
if (sourceSpace === targetSpace) {
|
|
995
|
+
styles[name] = wrap(identity, offset);
|
|
996
|
+
} else if (typeof suite === "object") {
|
|
997
|
+
styles[name] = wrap(suite[targetSpace], offset);
|
|
998
|
+
}
|
|
999
|
+
}
|
|
1000
|
+
return styles;
|
|
1001
|
+
};
|
|
1002
|
+
function assembleStyles() {
|
|
1003
|
+
const codes = new Map;
|
|
1004
|
+
const styles = {
|
|
1005
|
+
modifier: {
|
|
1006
|
+
reset: [0, 0],
|
|
1007
|
+
bold: [1, 22],
|
|
1008
|
+
dim: [2, 22],
|
|
1009
|
+
italic: [3, 23],
|
|
1010
|
+
underline: [4, 24],
|
|
1011
|
+
inverse: [7, 27],
|
|
1012
|
+
hidden: [8, 28],
|
|
1013
|
+
strikethrough: [9, 29]
|
|
1014
|
+
},
|
|
1015
|
+
color: {
|
|
1016
|
+
black: [30, 39],
|
|
1017
|
+
red: [31, 39],
|
|
1018
|
+
green: [32, 39],
|
|
1019
|
+
yellow: [33, 39],
|
|
1020
|
+
blue: [34, 39],
|
|
1021
|
+
magenta: [35, 39],
|
|
1022
|
+
cyan: [36, 39],
|
|
1023
|
+
white: [37, 39],
|
|
1024
|
+
blackBright: [90, 39],
|
|
1025
|
+
redBright: [91, 39],
|
|
1026
|
+
greenBright: [92, 39],
|
|
1027
|
+
yellowBright: [93, 39],
|
|
1028
|
+
blueBright: [94, 39],
|
|
1029
|
+
magentaBright: [95, 39],
|
|
1030
|
+
cyanBright: [96, 39],
|
|
1031
|
+
whiteBright: [97, 39]
|
|
1032
|
+
},
|
|
1033
|
+
bgColor: {
|
|
1034
|
+
bgBlack: [40, 49],
|
|
1035
|
+
bgRed: [41, 49],
|
|
1036
|
+
bgGreen: [42, 49],
|
|
1037
|
+
bgYellow: [43, 49],
|
|
1038
|
+
bgBlue: [44, 49],
|
|
1039
|
+
bgMagenta: [45, 49],
|
|
1040
|
+
bgCyan: [46, 49],
|
|
1041
|
+
bgWhite: [47, 49],
|
|
1042
|
+
bgBlackBright: [100, 49],
|
|
1043
|
+
bgRedBright: [101, 49],
|
|
1044
|
+
bgGreenBright: [102, 49],
|
|
1045
|
+
bgYellowBright: [103, 49],
|
|
1046
|
+
bgBlueBright: [104, 49],
|
|
1047
|
+
bgMagentaBright: [105, 49],
|
|
1048
|
+
bgCyanBright: [106, 49],
|
|
1049
|
+
bgWhiteBright: [107, 49]
|
|
1050
|
+
}
|
|
1051
|
+
};
|
|
1052
|
+
styles.color.gray = styles.color.blackBright;
|
|
1053
|
+
styles.bgColor.bgGray = styles.bgColor.bgBlackBright;
|
|
1054
|
+
styles.color.grey = styles.color.blackBright;
|
|
1055
|
+
styles.bgColor.bgGrey = styles.bgColor.bgBlackBright;
|
|
1056
|
+
for (const [groupName, group] of Object.entries(styles)) {
|
|
1057
|
+
for (const [styleName, style] of Object.entries(group)) {
|
|
1058
|
+
styles[styleName] = {
|
|
1059
|
+
open: `\x1B[${style[0]}m`,
|
|
1060
|
+
close: `\x1B[${style[1]}m`
|
|
1061
|
+
};
|
|
1062
|
+
group[styleName] = styles[styleName];
|
|
1063
|
+
codes.set(style[0], style[1]);
|
|
1064
|
+
}
|
|
1065
|
+
Object.defineProperty(styles, groupName, {
|
|
1066
|
+
value: group,
|
|
1067
|
+
enumerable: false
|
|
1068
|
+
});
|
|
1069
|
+
}
|
|
1070
|
+
Object.defineProperty(styles, "codes", {
|
|
1071
|
+
value: codes,
|
|
1072
|
+
enumerable: false
|
|
1073
|
+
});
|
|
1074
|
+
styles.color.close = "\x1B[39m";
|
|
1075
|
+
styles.bgColor.close = "\x1B[49m";
|
|
1076
|
+
setLazyProperty(styles.color, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, false));
|
|
1077
|
+
setLazyProperty(styles.color, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, false));
|
|
1078
|
+
setLazyProperty(styles.color, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, false));
|
|
1079
|
+
setLazyProperty(styles.bgColor, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, true));
|
|
1080
|
+
setLazyProperty(styles.bgColor, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, true));
|
|
1081
|
+
setLazyProperty(styles.bgColor, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, true));
|
|
1082
|
+
return styles;
|
|
1083
|
+
}
|
|
1084
|
+
Object.defineProperty(module, "exports", {
|
|
1085
|
+
enumerable: true,
|
|
1086
|
+
get: assembleStyles
|
|
1087
|
+
});
|
|
1088
|
+
});
|
|
1089
|
+
|
|
1090
|
+
export { require_ansi_styles };
|