@fragment-dev/cli 2026.8.19-2 → 2026.8.19-5

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.
Files changed (74) hide show
  1. package/dist/{chunk-TKGH62DQ.js → chunk-2F3EPMC2.js} +3 -3
  2. package/dist/{chunk-4BCQFVJS.js → chunk-2SSJEXQE.js} +2 -2
  3. package/dist/{chunk-IYYWZCZE.js → chunk-52KK5CBJ.js} +3 -3
  4. package/dist/{chunk-5JLMMFER.js → chunk-6CZRVR4P.js} +1 -1
  5. package/dist/{chunk-MW6SJUWV.js → chunk-A7SZSUFN.js} +3 -3
  6. package/dist/{chunk-B6FQTKMF.js → chunk-BOKRXIIJ.js} +6 -1
  7. package/dist/{chunk-K5RBCJWQ.js → chunk-BYZNYEGH.js} +2 -2
  8. package/dist/{chunk-VCANHQTI.js → chunk-C76SZWZQ.js} +3 -3
  9. package/dist/{chunk-JFF37Z5K.js → chunk-EXE547EZ.js} +1 -1
  10. package/dist/{chunk-K3P7VNMI.js → chunk-FFPHQE2L.js} +2 -2
  11. package/dist/{chunk-SI23PX53.js → chunk-FSXQNE7C.js} +3 -3
  12. package/dist/{chunk-U3MARZMM.js → chunk-GC4BS6PI.js} +2 -2
  13. package/dist/{chunk-XWX7CFJN.js → chunk-GMRU6GAU.js} +3 -3
  14. package/dist/{chunk-G353NPK6.js → chunk-GR56HSO2.js} +3 -3
  15. package/dist/{chunk-2IMQAI2H.js → chunk-HD5OZZGY.js} +3 -3
  16. package/dist/{chunk-URUHIS5X.js → chunk-IJZAXY2T.js} +2 -2
  17. package/dist/{chunk-63M7ILIN.js → chunk-IMKPDURF.js} +1 -1
  18. package/dist/{chunk-6SMC73UW.js → chunk-LFCNPXLH.js} +11 -11
  19. package/dist/{chunk-TUQGCEII.js → chunk-LFLUV5JB.js} +3 -3
  20. package/dist/{chunk-5AKX23CJ.js → chunk-LKSH7JX2.js} +1 -1
  21. package/dist/{chunk-T3VKTESM.js → chunk-OU47YR6G.js} +2 -2
  22. package/dist/{chunk-IXX2EVIM.js → chunk-PISSWWTD.js} +3 -3
  23. package/dist/{chunk-QBPVO732.js → chunk-PYCCU6YP.js} +25 -25
  24. package/dist/{chunk-TOXMGEU7.js → chunk-Q4ZYW3HH.js} +2 -2
  25. package/dist/{chunk-PRVTTUHI.js → chunk-QQKP5HYM.js} +3 -3
  26. package/dist/{chunk-YVL4XU33.js → chunk-T26ZJFU2.js} +2 -2
  27. package/dist/{chunk-O4B4GJRJ.js → chunk-TA7AII5O.js} +3 -3
  28. package/dist/{chunk-JDSPZQFF.js → chunk-UZGZUY2H.js} +4 -4
  29. package/dist/{chunk-W2V2ILHS.js → chunk-W33MLXYW.js} +34 -817
  30. package/dist/{chunk-7WVW7SOJ.js → chunk-W3NR7LXK.js} +7 -7
  31. package/dist/{chunk-AFWII2SB.js → chunk-WCZBTF4D.js} +5 -5
  32. package/dist/{chunk-HVQUC54T.js → chunk-XDMOC74J.js} +1 -1
  33. package/dist/{chunk-B7FCVEVL.js → chunk-XK2D2Z44.js} +7 -7
  34. package/dist/{chunk-QAFH3E4Q.js → chunk-YIORXOPF.js} +1 -1
  35. package/dist/{chunk-GXPUQEAI.js → chunk-YMMWICMZ.js} +3 -3
  36. package/dist/{chunk-KAGCPC3G.js → chunk-YPZVTJEH.js} +46 -830
  37. package/dist/{chunk-X5KIPJRF.js → chunk-ZMFGVGZP.js} +1 -1
  38. package/dist/{chunk-7FQSPYFZ.js → chunk-ZQC6OQUA.js} +3 -3
  39. package/dist/commands/add-ledger-entry.js +5 -5
  40. package/dist/commands/api-client/create.js +4 -4
  41. package/dist/commands/create-custom-link.js +5 -5
  42. package/dist/commands/create-ledger.js +5 -5
  43. package/dist/commands/delete-custom-txs.js +5 -5
  44. package/dist/commands/delete-ledger.js +5 -5
  45. package/dist/commands/delete-schema.js +5 -5
  46. package/dist/commands/gen-graphql.js +10 -10
  47. package/dist/commands/get-schema.js +6 -6
  48. package/dist/commands/init.js +4 -4
  49. package/dist/commands/login.js +5 -5
  50. package/dist/commands/migrate-ledger-entry.js +5 -5
  51. package/dist/commands/query/ledgerAccounts.js +5 -5
  52. package/dist/commands/query/ledgers.js +5 -5
  53. package/dist/commands/query/schema.js +5 -5
  54. package/dist/commands/query/schemas.js +5 -5
  55. package/dist/commands/reverse-ledger-entry.js +5 -5
  56. package/dist/commands/start.js +4 -4
  57. package/dist/commands/store-schema.js +5 -5
  58. package/dist/commands/token.js +5 -5
  59. package/dist/commands/update-ledger-account.js +5 -5
  60. package/dist/commands/update.js +5 -5
  61. package/dist/commands/verify-schema.js +9 -9
  62. package/dist/commands/version.js +4 -4
  63. package/dist/commands/workspace.js +5 -5
  64. package/dist/commands.js +38 -38
  65. package/dist/graphql.js +5 -5
  66. package/dist/index.js +38 -38
  67. package/dist/lib/authenticatedCommand.js +4 -4
  68. package/dist/lib/baseCommand.js +3 -3
  69. package/dist/lib/errors.js +2 -2
  70. package/dist/utils/formatValidationErrors.js +3 -3
  71. package/dist/utils/schemaValidation.js +6 -6
  72. package/dist/utils.js +2 -2
  73. package/oclif.manifest.json +1 -1
  74. package/package.json +1 -1
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-34NLRFFT.js";
5
5
  import {
6
6
  parseJSON
7
- } from "./chunk-6SMC73UW.js";
7
+ } from "./chunk-LFCNPXLH.js";
8
8
  import {
9
9
  require_graphql
10
10
  } from "./chunk-QF5EN33L.js";
@@ -13,10 +13,10 @@ import {
13
13
  getFragmentCliVersion
14
14
  } from "./chunk-DYLKAHKE.js";
15
15
  import {
16
- require_color_name,
16
+ require_color_convert,
17
17
  require_has_flag,
18
18
  require_source
19
- } from "./chunk-B7FCVEVL.js";
19
+ } from "./chunk-XK2D2Z44.js";
20
20
  import {
21
21
  attemptToCacheToken,
22
22
  getToken,
@@ -4096,9 +4096,9 @@ var require_write = __commonJS({
4096
4096
  }
4097
4097
  });
4098
4098
 
4099
- // ../../node_modules/escape-string-regexp/index.js
4099
+ // ../../node_modules/clean-stack/node_modules/escape-string-regexp/index.js
4100
4100
  var require_escape_string_regexp = __commonJS({
4101
- "../../node_modules/escape-string-regexp/index.js"(exports, module) {
4101
+ "../../node_modules/clean-stack/node_modules/escape-string-regexp/index.js"(exports, module) {
4102
4102
  "use strict";
4103
4103
  init_cjs_shims();
4104
4104
  module.exports = (string) => {
@@ -4288,811 +4288,6 @@ var require_string_width = __commonJS({
4288
4288
  }
4289
4289
  });
4290
4290
 
4291
- // ../../node_modules/@oclif/core/node_modules/color-convert/conversions.js
4292
- var require_conversions = __commonJS({
4293
- "../../node_modules/@oclif/core/node_modules/color-convert/conversions.js"(exports, module) {
4294
- init_cjs_shims();
4295
- var cssKeywords = require_color_name();
4296
- var reverseKeywords = {};
4297
- for (const key of Object.keys(cssKeywords)) {
4298
- reverseKeywords[cssKeywords[key]] = key;
4299
- }
4300
- var convert = {
4301
- rgb: { channels: 3, labels: "rgb" },
4302
- hsl: { channels: 3, labels: "hsl" },
4303
- hsv: { channels: 3, labels: "hsv" },
4304
- hwb: { channels: 3, labels: "hwb" },
4305
- cmyk: { channels: 4, labels: "cmyk" },
4306
- xyz: { channels: 3, labels: "xyz" },
4307
- lab: { channels: 3, labels: "lab" },
4308
- lch: { channels: 3, labels: "lch" },
4309
- hex: { channels: 1, labels: ["hex"] },
4310
- keyword: { channels: 1, labels: ["keyword"] },
4311
- ansi16: { channels: 1, labels: ["ansi16"] },
4312
- ansi256: { channels: 1, labels: ["ansi256"] },
4313
- hcg: { channels: 3, labels: ["h", "c", "g"] },
4314
- apple: { channels: 3, labels: ["r16", "g16", "b16"] },
4315
- gray: { channels: 1, labels: ["gray"] }
4316
- };
4317
- module.exports = convert;
4318
- for (const model of Object.keys(convert)) {
4319
- if (!("channels" in convert[model])) {
4320
- throw new Error("missing channels property: " + model);
4321
- }
4322
- if (!("labels" in convert[model])) {
4323
- throw new Error("missing channel labels property: " + model);
4324
- }
4325
- if (convert[model].labels.length !== convert[model].channels) {
4326
- throw new Error("channel and label counts mismatch: " + model);
4327
- }
4328
- const { channels, labels } = convert[model];
4329
- delete convert[model].channels;
4330
- delete convert[model].labels;
4331
- Object.defineProperty(convert[model], "channels", { value: channels });
4332
- Object.defineProperty(convert[model], "labels", { value: labels });
4333
- }
4334
- convert.rgb.hsl = function(rgb) {
4335
- const r = rgb[0] / 255;
4336
- const g = rgb[1] / 255;
4337
- const b = rgb[2] / 255;
4338
- const min = Math.min(r, g, b);
4339
- const max = Math.max(r, g, b);
4340
- const delta = max - min;
4341
- let h;
4342
- let s;
4343
- if (max === min) {
4344
- h = 0;
4345
- } else if (r === max) {
4346
- h = (g - b) / delta;
4347
- } else if (g === max) {
4348
- h = 2 + (b - r) / delta;
4349
- } else if (b === max) {
4350
- h = 4 + (r - g) / delta;
4351
- }
4352
- h = Math.min(h * 60, 360);
4353
- if (h < 0) {
4354
- h += 360;
4355
- }
4356
- const l = (min + max) / 2;
4357
- if (max === min) {
4358
- s = 0;
4359
- } else if (l <= 0.5) {
4360
- s = delta / (max + min);
4361
- } else {
4362
- s = delta / (2 - max - min);
4363
- }
4364
- return [h, s * 100, l * 100];
4365
- };
4366
- convert.rgb.hsv = function(rgb) {
4367
- let rdif;
4368
- let gdif;
4369
- let bdif;
4370
- let h;
4371
- let s;
4372
- const r = rgb[0] / 255;
4373
- const g = rgb[1] / 255;
4374
- const b = rgb[2] / 255;
4375
- const v = Math.max(r, g, b);
4376
- const diff = v - Math.min(r, g, b);
4377
- const diffc = function(c) {
4378
- return (v - c) / 6 / diff + 1 / 2;
4379
- };
4380
- if (diff === 0) {
4381
- h = 0;
4382
- s = 0;
4383
- } else {
4384
- s = diff / v;
4385
- rdif = diffc(r);
4386
- gdif = diffc(g);
4387
- bdif = diffc(b);
4388
- if (r === v) {
4389
- h = bdif - gdif;
4390
- } else if (g === v) {
4391
- h = 1 / 3 + rdif - bdif;
4392
- } else if (b === v) {
4393
- h = 2 / 3 + gdif - rdif;
4394
- }
4395
- if (h < 0) {
4396
- h += 1;
4397
- } else if (h > 1) {
4398
- h -= 1;
4399
- }
4400
- }
4401
- return [
4402
- h * 360,
4403
- s * 100,
4404
- v * 100
4405
- ];
4406
- };
4407
- convert.rgb.hwb = function(rgb) {
4408
- const r = rgb[0];
4409
- const g = rgb[1];
4410
- let b = rgb[2];
4411
- const h = convert.rgb.hsl(rgb)[0];
4412
- const w = 1 / 255 * Math.min(r, Math.min(g, b));
4413
- b = 1 - 1 / 255 * Math.max(r, Math.max(g, b));
4414
- return [h, w * 100, b * 100];
4415
- };
4416
- convert.rgb.cmyk = function(rgb) {
4417
- const r = rgb[0] / 255;
4418
- const g = rgb[1] / 255;
4419
- const b = rgb[2] / 255;
4420
- const k = Math.min(1 - r, 1 - g, 1 - b);
4421
- const c = (1 - r - k) / (1 - k) || 0;
4422
- const m = (1 - g - k) / (1 - k) || 0;
4423
- const y = (1 - b - k) / (1 - k) || 0;
4424
- return [c * 100, m * 100, y * 100, k * 100];
4425
- };
4426
- function comparativeDistance(x, y) {
4427
- return (x[0] - y[0]) ** 2 + (x[1] - y[1]) ** 2 + (x[2] - y[2]) ** 2;
4428
- }
4429
- convert.rgb.keyword = function(rgb) {
4430
- const reversed = reverseKeywords[rgb];
4431
- if (reversed) {
4432
- return reversed;
4433
- }
4434
- let currentClosestDistance = Infinity;
4435
- let currentClosestKeyword;
4436
- for (const keyword of Object.keys(cssKeywords)) {
4437
- const value = cssKeywords[keyword];
4438
- const distance = comparativeDistance(rgb, value);
4439
- if (distance < currentClosestDistance) {
4440
- currentClosestDistance = distance;
4441
- currentClosestKeyword = keyword;
4442
- }
4443
- }
4444
- return currentClosestKeyword;
4445
- };
4446
- convert.keyword.rgb = function(keyword) {
4447
- return cssKeywords[keyword];
4448
- };
4449
- convert.rgb.xyz = function(rgb) {
4450
- let r = rgb[0] / 255;
4451
- let g = rgb[1] / 255;
4452
- let b = rgb[2] / 255;
4453
- r = r > 0.04045 ? ((r + 0.055) / 1.055) ** 2.4 : r / 12.92;
4454
- g = g > 0.04045 ? ((g + 0.055) / 1.055) ** 2.4 : g / 12.92;
4455
- b = b > 0.04045 ? ((b + 0.055) / 1.055) ** 2.4 : b / 12.92;
4456
- const x = r * 0.4124 + g * 0.3576 + b * 0.1805;
4457
- const y = r * 0.2126 + g * 0.7152 + b * 0.0722;
4458
- const z = r * 0.0193 + g * 0.1192 + b * 0.9505;
4459
- return [x * 100, y * 100, z * 100];
4460
- };
4461
- convert.rgb.lab = function(rgb) {
4462
- const xyz = convert.rgb.xyz(rgb);
4463
- let x = xyz[0];
4464
- let y = xyz[1];
4465
- let z = xyz[2];
4466
- x /= 95.047;
4467
- y /= 100;
4468
- z /= 108.883;
4469
- x = x > 8856e-6 ? x ** (1 / 3) : 7.787 * x + 16 / 116;
4470
- y = y > 8856e-6 ? y ** (1 / 3) : 7.787 * y + 16 / 116;
4471
- z = z > 8856e-6 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
4472
- const l = 116 * y - 16;
4473
- const a = 500 * (x - y);
4474
- const b = 200 * (y - z);
4475
- return [l, a, b];
4476
- };
4477
- convert.hsl.rgb = function(hsl) {
4478
- const h = hsl[0] / 360;
4479
- const s = hsl[1] / 100;
4480
- const l = hsl[2] / 100;
4481
- let t2;
4482
- let t3;
4483
- let val;
4484
- if (s === 0) {
4485
- val = l * 255;
4486
- return [val, val, val];
4487
- }
4488
- if (l < 0.5) {
4489
- t2 = l * (1 + s);
4490
- } else {
4491
- t2 = l + s - l * s;
4492
- }
4493
- const t1 = 2 * l - t2;
4494
- const rgb = [0, 0, 0];
4495
- for (let i = 0; i < 3; i++) {
4496
- t3 = h + 1 / 3 * -(i - 1);
4497
- if (t3 < 0) {
4498
- t3++;
4499
- }
4500
- if (t3 > 1) {
4501
- t3--;
4502
- }
4503
- if (6 * t3 < 1) {
4504
- val = t1 + (t2 - t1) * 6 * t3;
4505
- } else if (2 * t3 < 1) {
4506
- val = t2;
4507
- } else if (3 * t3 < 2) {
4508
- val = t1 + (t2 - t1) * (2 / 3 - t3) * 6;
4509
- } else {
4510
- val = t1;
4511
- }
4512
- rgb[i] = val * 255;
4513
- }
4514
- return rgb;
4515
- };
4516
- convert.hsl.hsv = function(hsl) {
4517
- const h = hsl[0];
4518
- let s = hsl[1] / 100;
4519
- let l = hsl[2] / 100;
4520
- let smin = s;
4521
- const lmin = Math.max(l, 0.01);
4522
- l *= 2;
4523
- s *= l <= 1 ? l : 2 - l;
4524
- smin *= lmin <= 1 ? lmin : 2 - lmin;
4525
- const v = (l + s) / 2;
4526
- const sv = l === 0 ? 2 * smin / (lmin + smin) : 2 * s / (l + s);
4527
- return [h, sv * 100, v * 100];
4528
- };
4529
- convert.hsv.rgb = function(hsv) {
4530
- const h = hsv[0] / 60;
4531
- const s = hsv[1] / 100;
4532
- let v = hsv[2] / 100;
4533
- const hi = Math.floor(h) % 6;
4534
- const f2 = h - Math.floor(h);
4535
- const p = 255 * v * (1 - s);
4536
- const q = 255 * v * (1 - s * f2);
4537
- const t = 255 * v * (1 - s * (1 - f2));
4538
- v *= 255;
4539
- switch (hi) {
4540
- case 0:
4541
- return [v, t, p];
4542
- case 1:
4543
- return [q, v, p];
4544
- case 2:
4545
- return [p, v, t];
4546
- case 3:
4547
- return [p, q, v];
4548
- case 4:
4549
- return [t, p, v];
4550
- case 5:
4551
- return [v, p, q];
4552
- }
4553
- };
4554
- convert.hsv.hsl = function(hsv) {
4555
- const h = hsv[0];
4556
- const s = hsv[1] / 100;
4557
- const v = hsv[2] / 100;
4558
- const vmin = Math.max(v, 0.01);
4559
- let sl;
4560
- let l;
4561
- l = (2 - s) * v;
4562
- const lmin = (2 - s) * vmin;
4563
- sl = s * vmin;
4564
- sl /= lmin <= 1 ? lmin : 2 - lmin;
4565
- sl = sl || 0;
4566
- l /= 2;
4567
- return [h, sl * 100, l * 100];
4568
- };
4569
- convert.hwb.rgb = function(hwb) {
4570
- const h = hwb[0] / 360;
4571
- let wh = hwb[1] / 100;
4572
- let bl = hwb[2] / 100;
4573
- const ratio = wh + bl;
4574
- let f2;
4575
- if (ratio > 1) {
4576
- wh /= ratio;
4577
- bl /= ratio;
4578
- }
4579
- const i = Math.floor(6 * h);
4580
- const v = 1 - bl;
4581
- f2 = 6 * h - i;
4582
- if ((i & 1) !== 0) {
4583
- f2 = 1 - f2;
4584
- }
4585
- const n = wh + f2 * (v - wh);
4586
- let r;
4587
- let g;
4588
- let b;
4589
- switch (i) {
4590
- default:
4591
- case 6:
4592
- case 0:
4593
- r = v;
4594
- g = n;
4595
- b = wh;
4596
- break;
4597
- case 1:
4598
- r = n;
4599
- g = v;
4600
- b = wh;
4601
- break;
4602
- case 2:
4603
- r = wh;
4604
- g = v;
4605
- b = n;
4606
- break;
4607
- case 3:
4608
- r = wh;
4609
- g = n;
4610
- b = v;
4611
- break;
4612
- case 4:
4613
- r = n;
4614
- g = wh;
4615
- b = v;
4616
- break;
4617
- case 5:
4618
- r = v;
4619
- g = wh;
4620
- b = n;
4621
- break;
4622
- }
4623
- return [r * 255, g * 255, b * 255];
4624
- };
4625
- convert.cmyk.rgb = function(cmyk) {
4626
- const c = cmyk[0] / 100;
4627
- const m = cmyk[1] / 100;
4628
- const y = cmyk[2] / 100;
4629
- const k = cmyk[3] / 100;
4630
- const r = 1 - Math.min(1, c * (1 - k) + k);
4631
- const g = 1 - Math.min(1, m * (1 - k) + k);
4632
- const b = 1 - Math.min(1, y * (1 - k) + k);
4633
- return [r * 255, g * 255, b * 255];
4634
- };
4635
- convert.xyz.rgb = function(xyz) {
4636
- const x = xyz[0] / 100;
4637
- const y = xyz[1] / 100;
4638
- const z = xyz[2] / 100;
4639
- let r;
4640
- let g;
4641
- let b;
4642
- r = x * 3.2406 + y * -1.5372 + z * -0.4986;
4643
- g = x * -0.9689 + y * 1.8758 + z * 0.0415;
4644
- b = x * 0.0557 + y * -0.204 + z * 1.057;
4645
- r = r > 31308e-7 ? 1.055 * r ** (1 / 2.4) - 0.055 : r * 12.92;
4646
- g = g > 31308e-7 ? 1.055 * g ** (1 / 2.4) - 0.055 : g * 12.92;
4647
- b = b > 31308e-7 ? 1.055 * b ** (1 / 2.4) - 0.055 : b * 12.92;
4648
- r = Math.min(Math.max(0, r), 1);
4649
- g = Math.min(Math.max(0, g), 1);
4650
- b = Math.min(Math.max(0, b), 1);
4651
- return [r * 255, g * 255, b * 255];
4652
- };
4653
- convert.xyz.lab = function(xyz) {
4654
- let x = xyz[0];
4655
- let y = xyz[1];
4656
- let z = xyz[2];
4657
- x /= 95.047;
4658
- y /= 100;
4659
- z /= 108.883;
4660
- x = x > 8856e-6 ? x ** (1 / 3) : 7.787 * x + 16 / 116;
4661
- y = y > 8856e-6 ? y ** (1 / 3) : 7.787 * y + 16 / 116;
4662
- z = z > 8856e-6 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
4663
- const l = 116 * y - 16;
4664
- const a = 500 * (x - y);
4665
- const b = 200 * (y - z);
4666
- return [l, a, b];
4667
- };
4668
- convert.lab.xyz = function(lab) {
4669
- const l = lab[0];
4670
- const a = lab[1];
4671
- const b = lab[2];
4672
- let x;
4673
- let y;
4674
- let z;
4675
- y = (l + 16) / 116;
4676
- x = a / 500 + y;
4677
- z = y - b / 200;
4678
- const y2 = y ** 3;
4679
- const x2 = x ** 3;
4680
- const z2 = z ** 3;
4681
- y = y2 > 8856e-6 ? y2 : (y - 16 / 116) / 7.787;
4682
- x = x2 > 8856e-6 ? x2 : (x - 16 / 116) / 7.787;
4683
- z = z2 > 8856e-6 ? z2 : (z - 16 / 116) / 7.787;
4684
- x *= 95.047;
4685
- y *= 100;
4686
- z *= 108.883;
4687
- return [x, y, z];
4688
- };
4689
- convert.lab.lch = function(lab) {
4690
- const l = lab[0];
4691
- const a = lab[1];
4692
- const b = lab[2];
4693
- let h;
4694
- const hr = Math.atan2(b, a);
4695
- h = hr * 360 / 2 / Math.PI;
4696
- if (h < 0) {
4697
- h += 360;
4698
- }
4699
- const c = Math.sqrt(a * a + b * b);
4700
- return [l, c, h];
4701
- };
4702
- convert.lch.lab = function(lch) {
4703
- const l = lch[0];
4704
- const c = lch[1];
4705
- const h = lch[2];
4706
- const hr = h / 360 * 2 * Math.PI;
4707
- const a = c * Math.cos(hr);
4708
- const b = c * Math.sin(hr);
4709
- return [l, a, b];
4710
- };
4711
- convert.rgb.ansi16 = function(args, saturation = null) {
4712
- const [r, g, b] = args;
4713
- let value = saturation === null ? convert.rgb.hsv(args)[2] : saturation;
4714
- value = Math.round(value / 50);
4715
- if (value === 0) {
4716
- return 30;
4717
- }
4718
- let ansi = 30 + (Math.round(b / 255) << 2 | Math.round(g / 255) << 1 | Math.round(r / 255));
4719
- if (value === 2) {
4720
- ansi += 60;
4721
- }
4722
- return ansi;
4723
- };
4724
- convert.hsv.ansi16 = function(args) {
4725
- return convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);
4726
- };
4727
- convert.rgb.ansi256 = function(args) {
4728
- const r = args[0];
4729
- const g = args[1];
4730
- const b = args[2];
4731
- if (r === g && g === b) {
4732
- if (r < 8) {
4733
- return 16;
4734
- }
4735
- if (r > 248) {
4736
- return 231;
4737
- }
4738
- return Math.round((r - 8) / 247 * 24) + 232;
4739
- }
4740
- const ansi = 16 + 36 * Math.round(r / 255 * 5) + 6 * Math.round(g / 255 * 5) + Math.round(b / 255 * 5);
4741
- return ansi;
4742
- };
4743
- convert.ansi16.rgb = function(args) {
4744
- let color = args % 10;
4745
- if (color === 0 || color === 7) {
4746
- if (args > 50) {
4747
- color += 3.5;
4748
- }
4749
- color = color / 10.5 * 255;
4750
- return [color, color, color];
4751
- }
4752
- const mult = (~~(args > 50) + 1) * 0.5;
4753
- const r = (color & 1) * mult * 255;
4754
- const g = (color >> 1 & 1) * mult * 255;
4755
- const b = (color >> 2 & 1) * mult * 255;
4756
- return [r, g, b];
4757
- };
4758
- convert.ansi256.rgb = function(args) {
4759
- if (args >= 232) {
4760
- const c = (args - 232) * 10 + 8;
4761
- return [c, c, c];
4762
- }
4763
- args -= 16;
4764
- let rem;
4765
- const r = Math.floor(args / 36) / 5 * 255;
4766
- const g = Math.floor((rem = args % 36) / 6) / 5 * 255;
4767
- const b = rem % 6 / 5 * 255;
4768
- return [r, g, b];
4769
- };
4770
- convert.rgb.hex = function(args) {
4771
- const integer = ((Math.round(args[0]) & 255) << 16) + ((Math.round(args[1]) & 255) << 8) + (Math.round(args[2]) & 255);
4772
- const string = integer.toString(16).toUpperCase();
4773
- return "000000".substring(string.length) + string;
4774
- };
4775
- convert.hex.rgb = function(args) {
4776
- const match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
4777
- if (!match) {
4778
- return [0, 0, 0];
4779
- }
4780
- let colorString = match[0];
4781
- if (match[0].length === 3) {
4782
- colorString = colorString.split("").map((char) => {
4783
- return char + char;
4784
- }).join("");
4785
- }
4786
- const integer = parseInt(colorString, 16);
4787
- const r = integer >> 16 & 255;
4788
- const g = integer >> 8 & 255;
4789
- const b = integer & 255;
4790
- return [r, g, b];
4791
- };
4792
- convert.rgb.hcg = function(rgb) {
4793
- const r = rgb[0] / 255;
4794
- const g = rgb[1] / 255;
4795
- const b = rgb[2] / 255;
4796
- const max = Math.max(Math.max(r, g), b);
4797
- const min = Math.min(Math.min(r, g), b);
4798
- const chroma = max - min;
4799
- let grayscale;
4800
- let hue;
4801
- if (chroma < 1) {
4802
- grayscale = min / (1 - chroma);
4803
- } else {
4804
- grayscale = 0;
4805
- }
4806
- if (chroma <= 0) {
4807
- hue = 0;
4808
- } else if (max === r) {
4809
- hue = (g - b) / chroma % 6;
4810
- } else if (max === g) {
4811
- hue = 2 + (b - r) / chroma;
4812
- } else {
4813
- hue = 4 + (r - g) / chroma;
4814
- }
4815
- hue /= 6;
4816
- hue %= 1;
4817
- return [hue * 360, chroma * 100, grayscale * 100];
4818
- };
4819
- convert.hsl.hcg = function(hsl) {
4820
- const s = hsl[1] / 100;
4821
- const l = hsl[2] / 100;
4822
- const c = l < 0.5 ? 2 * s * l : 2 * s * (1 - l);
4823
- let f2 = 0;
4824
- if (c < 1) {
4825
- f2 = (l - 0.5 * c) / (1 - c);
4826
- }
4827
- return [hsl[0], c * 100, f2 * 100];
4828
- };
4829
- convert.hsv.hcg = function(hsv) {
4830
- const s = hsv[1] / 100;
4831
- const v = hsv[2] / 100;
4832
- const c = s * v;
4833
- let f2 = 0;
4834
- if (c < 1) {
4835
- f2 = (v - c) / (1 - c);
4836
- }
4837
- return [hsv[0], c * 100, f2 * 100];
4838
- };
4839
- convert.hcg.rgb = function(hcg) {
4840
- const h = hcg[0] / 360;
4841
- const c = hcg[1] / 100;
4842
- const g = hcg[2] / 100;
4843
- if (c === 0) {
4844
- return [g * 255, g * 255, g * 255];
4845
- }
4846
- const pure = [0, 0, 0];
4847
- const hi = h % 1 * 6;
4848
- const v = hi % 1;
4849
- const w = 1 - v;
4850
- let mg = 0;
4851
- switch (Math.floor(hi)) {
4852
- case 0:
4853
- pure[0] = 1;
4854
- pure[1] = v;
4855
- pure[2] = 0;
4856
- break;
4857
- case 1:
4858
- pure[0] = w;
4859
- pure[1] = 1;
4860
- pure[2] = 0;
4861
- break;
4862
- case 2:
4863
- pure[0] = 0;
4864
- pure[1] = 1;
4865
- pure[2] = v;
4866
- break;
4867
- case 3:
4868
- pure[0] = 0;
4869
- pure[1] = w;
4870
- pure[2] = 1;
4871
- break;
4872
- case 4:
4873
- pure[0] = v;
4874
- pure[1] = 0;
4875
- pure[2] = 1;
4876
- break;
4877
- default:
4878
- pure[0] = 1;
4879
- pure[1] = 0;
4880
- pure[2] = w;
4881
- }
4882
- mg = (1 - c) * g;
4883
- return [
4884
- (c * pure[0] + mg) * 255,
4885
- (c * pure[1] + mg) * 255,
4886
- (c * pure[2] + mg) * 255
4887
- ];
4888
- };
4889
- convert.hcg.hsv = function(hcg) {
4890
- const c = hcg[1] / 100;
4891
- const g = hcg[2] / 100;
4892
- const v = c + g * (1 - c);
4893
- let f2 = 0;
4894
- if (v > 0) {
4895
- f2 = c / v;
4896
- }
4897
- return [hcg[0], f2 * 100, v * 100];
4898
- };
4899
- convert.hcg.hsl = function(hcg) {
4900
- const c = hcg[1] / 100;
4901
- const g = hcg[2] / 100;
4902
- const l = g * (1 - c) + 0.5 * c;
4903
- let s = 0;
4904
- if (l > 0 && l < 0.5) {
4905
- s = c / (2 * l);
4906
- } else if (l >= 0.5 && l < 1) {
4907
- s = c / (2 * (1 - l));
4908
- }
4909
- return [hcg[0], s * 100, l * 100];
4910
- };
4911
- convert.hcg.hwb = function(hcg) {
4912
- const c = hcg[1] / 100;
4913
- const g = hcg[2] / 100;
4914
- const v = c + g * (1 - c);
4915
- return [hcg[0], (v - c) * 100, (1 - v) * 100];
4916
- };
4917
- convert.hwb.hcg = function(hwb) {
4918
- const w = hwb[1] / 100;
4919
- const b = hwb[2] / 100;
4920
- const v = 1 - b;
4921
- const c = v - w;
4922
- let g = 0;
4923
- if (c < 1) {
4924
- g = (v - c) / (1 - c);
4925
- }
4926
- return [hwb[0], c * 100, g * 100];
4927
- };
4928
- convert.apple.rgb = function(apple) {
4929
- return [apple[0] / 65535 * 255, apple[1] / 65535 * 255, apple[2] / 65535 * 255];
4930
- };
4931
- convert.rgb.apple = function(rgb) {
4932
- return [rgb[0] / 255 * 65535, rgb[1] / 255 * 65535, rgb[2] / 255 * 65535];
4933
- };
4934
- convert.gray.rgb = function(args) {
4935
- return [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];
4936
- };
4937
- convert.gray.hsl = function(args) {
4938
- return [0, 0, args[0]];
4939
- };
4940
- convert.gray.hsv = convert.gray.hsl;
4941
- convert.gray.hwb = function(gray) {
4942
- return [0, 100, gray[0]];
4943
- };
4944
- convert.gray.cmyk = function(gray) {
4945
- return [0, 0, 0, gray[0]];
4946
- };
4947
- convert.gray.lab = function(gray) {
4948
- return [gray[0], 0, 0];
4949
- };
4950
- convert.gray.hex = function(gray) {
4951
- const val = Math.round(gray[0] / 100 * 255) & 255;
4952
- const integer = (val << 16) + (val << 8) + val;
4953
- const string = integer.toString(16).toUpperCase();
4954
- return "000000".substring(string.length) + string;
4955
- };
4956
- convert.rgb.gray = function(rgb) {
4957
- const val = (rgb[0] + rgb[1] + rgb[2]) / 3;
4958
- return [val / 255 * 100];
4959
- };
4960
- }
4961
- });
4962
-
4963
- // ../../node_modules/@oclif/core/node_modules/color-convert/route.js
4964
- var require_route = __commonJS({
4965
- "../../node_modules/@oclif/core/node_modules/color-convert/route.js"(exports, module) {
4966
- init_cjs_shims();
4967
- var conversions = require_conversions();
4968
- function buildGraph() {
4969
- const graph = {};
4970
- const models = Object.keys(conversions);
4971
- for (let len = models.length, i = 0; i < len; i++) {
4972
- graph[models[i]] = {
4973
- // http://jsperf.com/1-vs-infinity
4974
- // micro-opt, but this is simple.
4975
- distance: -1,
4976
- parent: null
4977
- };
4978
- }
4979
- return graph;
4980
- }
4981
- function deriveBFS(fromModel) {
4982
- const graph = buildGraph();
4983
- const queue = [fromModel];
4984
- graph[fromModel].distance = 0;
4985
- while (queue.length) {
4986
- const current = queue.pop();
4987
- const adjacents = Object.keys(conversions[current]);
4988
- for (let len = adjacents.length, i = 0; i < len; i++) {
4989
- const adjacent = adjacents[i];
4990
- const node2 = graph[adjacent];
4991
- if (node2.distance === -1) {
4992
- node2.distance = graph[current].distance + 1;
4993
- node2.parent = current;
4994
- queue.unshift(adjacent);
4995
- }
4996
- }
4997
- }
4998
- return graph;
4999
- }
5000
- function link(from, to) {
5001
- return function(args) {
5002
- return to(from(args));
5003
- };
5004
- }
5005
- function wrapConversion(toModel, graph) {
5006
- const path = [graph[toModel].parent, toModel];
5007
- let fn = conversions[graph[toModel].parent][toModel];
5008
- let cur = graph[toModel].parent;
5009
- while (graph[cur].parent) {
5010
- path.unshift(graph[cur].parent);
5011
- fn = link(conversions[graph[cur].parent][cur], fn);
5012
- cur = graph[cur].parent;
5013
- }
5014
- fn.conversion = path;
5015
- return fn;
5016
- }
5017
- module.exports = function(fromModel) {
5018
- const graph = deriveBFS(fromModel);
5019
- const conversion = {};
5020
- const models = Object.keys(graph);
5021
- for (let len = models.length, i = 0; i < len; i++) {
5022
- const toModel = models[i];
5023
- const node2 = graph[toModel];
5024
- if (node2.parent === null) {
5025
- continue;
5026
- }
5027
- conversion[toModel] = wrapConversion(toModel, graph);
5028
- }
5029
- return conversion;
5030
- };
5031
- }
5032
- });
5033
-
5034
- // ../../node_modules/@oclif/core/node_modules/color-convert/index.js
5035
- var require_color_convert = __commonJS({
5036
- "../../node_modules/@oclif/core/node_modules/color-convert/index.js"(exports, module) {
5037
- init_cjs_shims();
5038
- var conversions = require_conversions();
5039
- var route = require_route();
5040
- var convert = {};
5041
- var models = Object.keys(conversions);
5042
- function wrapRaw(fn) {
5043
- const wrappedFn = function(...args) {
5044
- const arg0 = args[0];
5045
- if (arg0 === void 0 || arg0 === null) {
5046
- return arg0;
5047
- }
5048
- if (arg0.length > 1) {
5049
- args = arg0;
5050
- }
5051
- return fn(args);
5052
- };
5053
- if ("conversion" in fn) {
5054
- wrappedFn.conversion = fn.conversion;
5055
- }
5056
- return wrappedFn;
5057
- }
5058
- function wrapRounded(fn) {
5059
- const wrappedFn = function(...args) {
5060
- const arg0 = args[0];
5061
- if (arg0 === void 0 || arg0 === null) {
5062
- return arg0;
5063
- }
5064
- if (arg0.length > 1) {
5065
- args = arg0;
5066
- }
5067
- const result = fn(args);
5068
- if (typeof result === "object") {
5069
- for (let len = result.length, i = 0; i < len; i++) {
5070
- result[i] = Math.round(result[i]);
5071
- }
5072
- }
5073
- return result;
5074
- };
5075
- if ("conversion" in fn) {
5076
- wrappedFn.conversion = fn.conversion;
5077
- }
5078
- return wrappedFn;
5079
- }
5080
- models.forEach((fromModel) => {
5081
- convert[fromModel] = {};
5082
- Object.defineProperty(convert[fromModel], "channels", { value: conversions[fromModel].channels });
5083
- Object.defineProperty(convert[fromModel], "labels", { value: conversions[fromModel].labels });
5084
- const routes = route(fromModel);
5085
- const routeModels = Object.keys(routes);
5086
- routeModels.forEach((toModel) => {
5087
- const fn = routes[toModel];
5088
- convert[fromModel][toModel] = wrapRounded(fn);
5089
- convert[fromModel][toModel].raw = wrapRaw(fn);
5090
- });
5091
- });
5092
- module.exports = convert;
5093
- }
5094
- });
5095
-
5096
4291
  // ../../node_modules/@oclif/core/node_modules/ansi-styles/index.js
5097
4292
  var require_ansi_styles = __commonJS({
5098
4293
  "../../node_modules/@oclif/core/node_modules/ansi-styles/index.js"(exports, module) {
@@ -10691,7 +9886,7 @@ var require_commonjs2 = __commonJS({
10691
9886
  }
10692
9887
  return out;
10693
9888
  }
10694
- function expandSequence(body, isAlphaSequence, max) {
9889
+ function expandSequence(body, isAlphaSequence, max, maxLength) {
10695
9890
  const n = body.split(/\.\./);
10696
9891
  const N = [];
10697
9892
  if (n[0] === void 0 || n[1] === void 0) {
@@ -10708,6 +9903,7 @@ var require_commonjs2 = __commonJS({
10708
9903
  test = gte;
10709
9904
  }
10710
9905
  const pad = n.some(isPadded);
9906
+ let length = 0;
10711
9907
  for (let i = x; test(i, y) && N.length < max; i += incr) {
10712
9908
  let c;
10713
9909
  if (isAlphaSequence) {
@@ -10729,7 +9925,10 @@ var require_commonjs2 = __commonJS({
10729
9925
  }
10730
9926
  }
10731
9927
  }
9928
+ if (length + c.length > maxLength)
9929
+ break;
10732
9930
  N.push(c);
9931
+ length += c.length;
10733
9932
  }
10734
9933
  return N;
10735
9934
  }
@@ -10769,7 +9968,7 @@ var require_commonjs2 = __commonJS({
10769
9968
  }
10770
9969
  let values;
10771
9970
  if (isSequence) {
10772
- values = expandSequence(m.body, isAlphaSequence, max);
9971
+ values = expandSequence(m.body, isAlphaSequence, max, maxLength);
10773
9972
  } else {
10774
9973
  let n = parseCommaParts(m.body);
10775
9974
  if (n.length === 1 && n[0] !== void 0) {
@@ -10782,10 +9981,28 @@ var require_commonjs2 = __commonJS({
10782
9981
  continue;
10783
9982
  }
10784
9983
  }
10785
- values = [];
10786
- for (let j = 0; j < n.length; j++) {
10787
- values.push.apply(values, expand_(n[j], max, maxLength, false));
9984
+ let dropsEmpties = dropEmpties && !m.post.length && !pre;
9985
+ for (let d = 0; dropsEmpties && d < acc.length; d++) {
9986
+ if (acc[d]) {
9987
+ dropsEmpties = false;
9988
+ }
10788
9989
  }
9990
+ values = [];
9991
+ let valuesLength = 0;
9992
+ outer:
9993
+ for (let j = 0; j < n.length; j++) {
9994
+ const expanded = expand_(n[j], max, maxLength, false);
9995
+ for (let k = 0; k < expanded.length; k++) {
9996
+ const v = expanded[k];
9997
+ if (dropsEmpties && !v)
9998
+ continue;
9999
+ if (values.length >= max || valuesLength + v.length > maxLength) {
10000
+ break outer;
10001
+ }
10002
+ values.push(v);
10003
+ valuesLength += v.length;
10004
+ }
10005
+ }
10789
10006
  }
10790
10007
  acc = combine(acc, pre, values, max, maxLength, dropEmpties && !m.post.length);
10791
10008
  if (!m.post.length)
@@ -36111,9 +35328,9 @@ var require_gopd = __commonJS({
36111
35328
  }
36112
35329
  });
36113
35330
 
36114
- // ../../node_modules/es-set-tostringtag/node_modules/es-define-property/index.js
35331
+ // ../../node_modules/es-define-property/index.js
36115
35332
  var require_es_define_property = __commonJS({
36116
- "../../node_modules/es-set-tostringtag/node_modules/es-define-property/index.js"(exports, module) {
35333
+ "../../node_modules/es-define-property/index.js"(exports, module) {
36117
35334
  "use strict";
36118
35335
  init_cjs_shims();
36119
35336
  var $defineProperty = Object.defineProperty || false;