bejamas 0.4.1 → 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.
@@ -1,11 +1,8 @@
1
1
  import { createRequire } from "node:module";
2
2
  import { createRequire as createRequire$1 } from "module";
3
- import path from "node:path";
4
3
  import { z } from "zod";
5
- import path$1, { dirname, extname as extname$1, join as join$1, posix } from "path";
4
+ import path, { dirname, extname, join, posix } from "path";
6
5
  import { existsSync } from "fs";
7
- import { readFileSync } from "node:fs";
8
- import { fileURLToPath } from "node:url";
9
6
  import fs from "fs-extra";
10
7
  import fg from "fast-glob";
11
8
  import { cyan, green, red, yellow } from "kleur/colors";
@@ -15,31 +12,33 @@ import ora from "ora";
15
12
  import { readdir } from "fs/promises";
16
13
  import { Project, SyntaxKind } from "ts-morph";
17
14
 
18
- //#region rolldown:runtime
15
+ //#region \0rolldown/runtime.js
19
16
  var __create = Object.create;
20
17
  var __defProp = Object.defineProperty;
21
18
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
22
19
  var __getOwnPropNames = Object.getOwnPropertyNames;
23
20
  var __getProtoOf = Object.getPrototypeOf;
24
21
  var __hasOwnProp = Object.prototype.hasOwnProperty;
25
- var __commonJS = (cb, mod) => function() {
26
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
27
- };
22
+ var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
28
23
  var __copyProps = (to, from, except, desc) => {
29
- if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
30
- key = keys[i];
31
- if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
32
- get: ((k) => from[k]).bind(null, key),
33
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
34
- });
24
+ if (from && typeof from === "object" || typeof from === "function") {
25
+ for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
26
+ key = keys[i];
27
+ if (!__hasOwnProp.call(to, key) && key !== except) {
28
+ __defProp(to, key, {
29
+ get: ((k) => from[k]).bind(null, key),
30
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
31
+ });
32
+ }
33
+ }
35
34
  }
36
35
  return to;
37
36
  };
38
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
37
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
39
38
  value: mod,
40
39
  enumerable: true
41
40
  }) : target, mod));
42
- var __require = /* @__PURE__ */ createRequire(import.meta.url);
41
+ var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
43
42
 
44
43
  //#endregion
45
44
  //#region ../registry/src/catalog/themes.ts
@@ -1991,7 +1990,7 @@ const PRESET_ENCODERS = [
1991
1990
  PRESET_VERSION_B_LEGACY,
1992
1991
  PRESET_VERSION_C
1993
1992
  ];
1994
- const PRESET_VERSION_MAP = new Map([["a", PRESET_VERSION_A], ["c", PRESET_VERSION_C]]);
1993
+ const PRESET_VERSION_MAP = /* @__PURE__ */ new Map([["a", PRESET_VERSION_A], ["c", PRESET_VERSION_C]]);
1995
1994
  const VALID_VERSIONS = [
1996
1995
  "a",
1997
1996
  "b",
@@ -2107,8 +2106,8 @@ function decodePreset(code) {
2107
2106
  const version = code[0];
2108
2107
  if (!VALID_VERSIONS.includes(version)) return null;
2109
2108
  if (version === "b") {
2110
- const decoded$1 = decodePresetWithVersion(code, shouldDecodeLegacyBejamasB(code) ? PRESET_VERSION_B_LEGACY : PRESET_VERSION_B_SHARED);
2111
- return decoded$1 ? normalizeDecodedPreset(decoded$1) : null;
2109
+ const decoded = decodePresetWithVersion(code, shouldDecodeLegacyBejamasB(code) ? PRESET_VERSION_B_LEGACY : PRESET_VERSION_B_SHARED);
2110
+ return decoded ? normalizeDecodedPreset(decoded) : null;
2112
2111
  }
2113
2112
  const presetVersion = PRESET_VERSION_MAP.get(version);
2114
2113
  if (!presetVersion) return null;
@@ -2240,7 +2239,7 @@ function getFontPackageName(name) {
2240
2239
  return `@fontsource-variable/${name}`;
2241
2240
  }
2242
2241
  function getDocumentLanguage(config) {
2243
- return config.rtl ? config.rtlLanguage : DEFAULT_LANGUAGE;
2242
+ return config.rtl ? config.rtlLanguage : "en";
2244
2243
  }
2245
2244
  function getDocumentDirection(config) {
2246
2245
  return config.rtl ? "rtl" : "ltr";
@@ -2290,7 +2289,9 @@ const SEMANTIC_ICON_NAMES = [
2290
2289
  "globe",
2291
2290
  "credit-card",
2292
2291
  "x",
2293
- "loader-circle"
2292
+ "loader-circle",
2293
+ "sun",
2294
+ "moon"
2294
2295
  ];
2295
2296
  const ICON_DATA = {
2296
2297
  lucide: {
@@ -2433,6 +2434,16 @@ const ICON_DATA = {
2433
2434
  body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M21 12a9 9 0 1 1-6.219-8.56\"/>",
2434
2435
  width: 24,
2435
2436
  height: 24
2437
+ },
2438
+ "sun": {
2439
+ body: "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><circle cx=\"12\" cy=\"12\" r=\"4\"/><path d=\"M12 2v2m0 16v2M4.93 4.93l1.41 1.41m11.32 11.32l1.41 1.41M2 12h2m16 0h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41\"/></g>",
2440
+ width: 24,
2441
+ height: 24
2442
+ },
2443
+ "moon": {
2444
+ body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401\"/>",
2445
+ width: 24,
2446
+ height: 24
2436
2447
  }
2437
2448
  },
2438
2449
  hugeicons: {
@@ -2575,6 +2586,16 @@ const ICON_DATA = {
2575
2586
  body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.5\" d=\"M12 3v3m0 12v3m9-9h-3M6 12H3m15.364-6.363l-2.122 2.121m-8.484 8.484l-2.121 2.121m12.727.001l-2.122-2.122M7.758 7.758L5.637 5.637\"/>",
2576
2587
  width: 24,
2577
2588
  height: 24
2589
+ },
2590
+ "sun": {
2591
+ body: "<g fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\"><path d=\"M17 12a5 5 0 1 1-10 0a5 5 0 0 1 10 0Z\"/><path stroke-linecap=\"round\" d=\"M12 2v1.5m0 17V22m7.07-2.929l-1.06-1.06M5.99 5.989L4.928 4.93M22 12h-1.5m-17 0H2m17.071-7.071l-1.06 1.06M5.99 18.011l-1.06 1.06\"/></g>",
2592
+ width: 24,
2593
+ height: 24
2594
+ },
2595
+ "moon": {
2596
+ body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" d=\"M21.5 14.078A8.557 8.557 0 0 1 9.922 2.5C5.668 3.497 2.5 7.315 2.5 11.873a9.627 9.627 0 0 0 9.627 9.627c4.558 0 8.376-3.168 9.373-7.422\"/>",
2597
+ width: 24,
2598
+ height: 24
2578
2599
  }
2579
2600
  },
2580
2601
  tabler: {
@@ -2717,6 +2738,16 @@ const ICON_DATA = {
2717
2738
  body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M12 3a9 9 0 1 0 9 9\"/>",
2718
2739
  width: 24,
2719
2740
  height: 24
2741
+ },
2742
+ "sun": {
2743
+ body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M8 12a4 4 0 1 0 8 0a4 4 0 1 0-8 0m-5 0h1m8-9v1m8 8h1m-9 8v1M5.6 5.6l.7.7m12.1-.7l-.7.7m0 11.4l.7.7m-12.1-.7l-.7.7\"/>",
2744
+ width: 24,
2745
+ height: 24
2746
+ },
2747
+ "moon": {
2748
+ body: "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M12 3h.393a7.5 7.5 0 0 0 7.92 12.446A9 9 0 1 1 12 2.992z\"/>",
2749
+ width: 24,
2750
+ height: 24
2720
2751
  }
2721
2752
  },
2722
2753
  phosphor: {
@@ -2859,6 +2890,16 @@ const ICON_DATA = {
2859
2890
  body: "<path fill=\"currentColor\" d=\"M136 32v32a8 8 0 0 1-16 0V32a8 8 0 0 1 16 0m37.25 58.75a8 8 0 0 0 5.66-2.35l22.63-22.62a8 8 0 0 0-11.32-11.32L167.6 77.09a8 8 0 0 0 5.65 13.66M224 120h-32a8 8 0 0 0 0 16h32a8 8 0 0 0 0-16m-45.09 47.6a8 8 0 0 0-11.31 11.31l22.62 22.63a8 8 0 0 0 11.32-11.32ZM128 184a8 8 0 0 0-8 8v32a8 8 0 0 0 16 0v-32a8 8 0 0 0-8-8m-50.91-16.4l-22.63 22.62a8 8 0 0 0 11.32 11.32l22.62-22.63a8 8 0 0 0-11.31-11.31M72 128a8 8 0 0 0-8-8H32a8 8 0 0 0 0 16h32a8 8 0 0 0 8-8m-6.22-73.54a8 8 0 0 0-11.32 11.32L77.09 88.4A8 8 0 0 0 88.4 77.09Z\"/>",
2860
2891
  width: 256,
2861
2892
  height: 256
2893
+ },
2894
+ "sun": {
2895
+ body: "<path fill=\"currentColor\" d=\"M120 40V16a8 8 0 0 1 16 0v24a8 8 0 0 1-16 0m72 88a64 64 0 1 1-64-64a64.07 64.07 0 0 1 64 64m-16 0a48 48 0 1 0-48 48a48.05 48.05 0 0 0 48-48M58.34 69.66a8 8 0 0 0 11.32-11.32l-16-16a8 8 0 0 0-11.32 11.32Zm0 116.68l-16 16a8 8 0 0 0 11.32 11.32l16-16a8 8 0 0 0-11.32-11.32M192 72a8 8 0 0 0 5.66-2.34l16-16a8 8 0 0 0-11.32-11.32l-16 16A8 8 0 0 0 192 72m5.66 114.34a8 8 0 0 0-11.32 11.32l16 16a8 8 0 0 0 11.32-11.32ZM48 128a8 8 0 0 0-8-8H16a8 8 0 0 0 0 16h24a8 8 0 0 0 8-8m80 80a8 8 0 0 0-8 8v24a8 8 0 0 0 16 0v-24a8 8 0 0 0-8-8m112-88h-24a8 8 0 0 0 0 16h24a8 8 0 0 0 0-16\"/>",
2896
+ width: 256,
2897
+ height: 256
2898
+ },
2899
+ "moon": {
2900
+ body: "<path fill=\"currentColor\" d=\"M233.54 142.23a8 8 0 0 0-8-2a88.08 88.08 0 0 1-109.8-109.8a8 8 0 0 0-10-10a104.84 104.84 0 0 0-52.91 37A104 104 0 0 0 136 224a103.1 103.1 0 0 0 62.52-20.88a104.84 104.84 0 0 0 37-52.91a8 8 0 0 0-1.98-7.98m-44.64 48.11A88 88 0 0 1 65.66 67.11a89 89 0 0 1 31.4-26A106 106 0 0 0 96 56a104.11 104.11 0 0 0 104 104a106 106 0 0 0 14.92-1.06a89 89 0 0 1-26.02 31.4\"/>",
2901
+ width: 256,
2902
+ height: 256
2862
2903
  }
2863
2904
  },
2864
2905
  remixicon: {
@@ -3001,6 +3042,16 @@ const ICON_DATA = {
3001
3042
  body: "<path fill=\"currentColor\" d=\"M12 2a1 1 0 0 1 1 1v3a1 1 0 1 1-2 0V3a1 1 0 0 1 1-1m0 15a1 1 0 0 1 1 1v3a1 1 0 1 1-2 0v-3a1 1 0 0 1 1-1m10-5a1 1 0 0 1-1 1h-3a1 1 0 1 1 0-2h3a1 1 0 0 1 1 1M7 12a1 1 0 0 1-1 1H3a1 1 0 1 1 0-2h3a1 1 0 0 1 1 1m12.071 7.071a1 1 0 0 1-1.414 0l-2.121-2.121a1 1 0 0 1 1.414-1.414l2.121 2.12a1 1 0 0 1 0 1.415M8.464 8.464a1 1 0 0 1-1.414 0l-2.12-2.12a1 1 0 0 1 1.414-1.415l2.12 2.121a1 1 0 0 1 0 1.414M4.93 19.071a1 1 0 0 1 0-1.414l2.121-2.121a1 1 0 0 1 1.414 1.414l-2.12 2.121a1 1 0 0 1-1.415 0M15.536 8.464a1 1 0 0 1 0-1.414l2.12-2.121a1 1 0 1 1 1.415 1.414L16.95 8.464a1 1 0 0 1-1.414 0\"/>",
3002
3043
  width: 24,
3003
3044
  height: 24
3045
+ },
3046
+ "sun": {
3047
+ body: "<path fill=\"currentColor\" d=\"M12 18a6 6 0 1 1 0-12a6 6 0 0 1 0 12m0-2a4 4 0 1 0 0-8a4 4 0 0 0 0 8M11 1h2v3h-2zm0 19h2v3h-2zM3.515 4.929l1.414-1.414L7.05 5.636L5.636 7.05zM16.95 18.364l1.414-1.414l2.121 2.121l-1.414 1.414zm2.121-14.85l1.414 1.415l-2.121 2.121l-1.414-1.414zM5.636 16.95l1.414 1.414l-2.121 2.121l-1.414-1.414zM23 11v2h-3v-2zM4 11v2H1v-2z\"/>",
3048
+ width: 24,
3049
+ height: 24
3050
+ },
3051
+ "moon": {
3052
+ body: "<path fill=\"currentColor\" d=\"M10 7a7 7 0 0 0 12 4.9v.1c0 5.523-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2h.1A6.98 6.98 0 0 0 10 7m-6 5a8 8 0 0 0 15.062 3.762A9 9 0 0 1 8.238 4.938A8 8 0 0 0 4 12\"/>",
3053
+ width: 24,
3054
+ height: 24
3004
3055
  }
3005
3056
  }
3006
3057
  };
@@ -3062,7 +3113,11 @@ const LUCIDE_EXPORT_TO_SEMANTIC_ICON = {
3062
3113
  LoaderCircle: "loader-circle",
3063
3114
  Loader2: "loader-circle",
3064
3115
  Loader2Icon: "loader-circle",
3065
- LoaderIcon: "loader-circle"
3116
+ LoaderIcon: "loader-circle",
3117
+ Sun: "sun",
3118
+ SunIcon: "sun",
3119
+ Moon: "moon",
3120
+ MoonIcon: "moon"
3066
3121
  };
3067
3122
  const LUCIDE_PATH_TO_SEMANTIC_ICON = {
3068
3123
  check: "check",
@@ -3092,10 +3147,12 @@ const LUCIDE_PATH_TO_SEMANTIC_ICON = {
3092
3147
  menu: "menu",
3093
3148
  shuffle: "shuffle",
3094
3149
  x: "x",
3095
- "loader-circle": "loader-circle"
3150
+ "loader-circle": "loader-circle",
3151
+ sun: "sun",
3152
+ moon: "moon"
3096
3153
  };
3097
- function getSemanticIconNameFromLucidePath(path$2) {
3098
- return LUCIDE_PATH_TO_SEMANTIC_ICON[path$2];
3154
+ function getSemanticIconNameFromLucidePath(path) {
3155
+ return LUCIDE_PATH_TO_SEMANTIC_ICON[path];
3099
3156
  }
3100
3157
  function getSemanticIconNameFromLucideExport(name) {
3101
3158
  return LUCIDE_EXPORT_TO_SEMANTIC_ICON[name];
@@ -3191,8 +3248,10 @@ function buildRegistryTheme(config) {
3191
3248
 
3192
3249
  //#endregion
3193
3250
  //#region ../../node_modules/picocolors/picocolors.js
3194
- var require_picocolors = /* @__PURE__ */ __commonJS({ "../../node_modules/picocolors/picocolors.js": ((exports, module) => {
3195
- let p = process || {}, argv = p.argv || [], env = p.env || {};
3251
+ var require_picocolors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3252
+ let p = process || {};
3253
+ let argv = p.argv || [];
3254
+ let env = p.env || {};
3196
3255
  let isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
3197
3256
  let formatter = (open, close, replace = open) => (input) => {
3198
3257
  let string = "" + input, index = string.indexOf(close, open.length);
@@ -3256,11 +3315,11 @@ var require_picocolors = /* @__PURE__ */ __commonJS({ "../../node_modules/picoco
3256
3315
  };
3257
3316
  module.exports = createColors();
3258
3317
  module.exports.createColors = createColors;
3259
- }) });
3318
+ }));
3260
3319
 
3261
3320
  //#endregion
3262
3321
  //#region ../../node_modules/postcss/lib/tokenize.js
3263
- var require_tokenize = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib/tokenize.js": ((exports, module) => {
3322
+ var require_tokenize = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3264
3323
  const SINGLE_QUOTE = "'".charCodeAt(0);
3265
3324
  const DOUBLE_QUOTE = "\"".charCodeAt(0);
3266
3325
  const BACKSLASH = "\\".charCodeAt(0);
@@ -3284,7 +3343,7 @@ var require_tokenize = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/
3284
3343
  const RE_WORD_END = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g;
3285
3344
  const RE_BAD_BRACKET = /.[\r\n"'(/\\]/;
3286
3345
  const RE_HEX_ESCAPE = /[\da-f]/i;
3287
- module.exports = function tokenizer$2(input, options = {}) {
3346
+ module.exports = function tokenizer(input, options = {}) {
3288
3347
  let css = input.css.valueOf();
3289
3348
  let ignore = options.ignoreErrors;
3290
3349
  let code, content, escape, next, quote;
@@ -3345,10 +3404,12 @@ var require_tokenize = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/
3345
3404
  do {
3346
3405
  escaped = false;
3347
3406
  next = css.indexOf(")", next + 1);
3348
- if (next === -1) if (ignore || ignoreUnclosed) {
3349
- next = pos;
3350
- break;
3351
- } else unclosed("bracket");
3407
+ if (next === -1) {
3408
+ if (ignore || ignoreUnclosed) {
3409
+ next = pos;
3410
+ break;
3411
+ } else unclosed("bracket");
3412
+ }
3352
3413
  escapePos = next;
3353
3414
  while (css.charCodeAt(escapePos - 1) === BACKSLASH) {
3354
3415
  escapePos -= 1;
@@ -3395,10 +3456,12 @@ var require_tokenize = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/
3395
3456
  do {
3396
3457
  escaped = false;
3397
3458
  next = css.indexOf(quote, next + 1);
3398
- if (next === -1) if (ignore || ignoreUnclosed) {
3399
- next = pos + 1;
3400
- break;
3401
- } else unclosed("string");
3459
+ if (next === -1) {
3460
+ if (ignore || ignoreUnclosed) {
3461
+ next = pos + 1;
3462
+ break;
3463
+ } else unclosed("string");
3464
+ }
3402
3465
  escapePos = next;
3403
3466
  while (css.charCodeAt(escapePos - 1) === BACKSLASH) {
3404
3467
  escapePos -= 1;
@@ -3449,33 +3512,33 @@ var require_tokenize = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/
3449
3512
  ];
3450
3513
  pos = next;
3451
3514
  break;
3452
- default:
3453
- if (code === SLASH && css.charCodeAt(pos + 1) === ASTERISK) {
3454
- next = css.indexOf("*/", pos + 2) + 1;
3455
- if (next === 0) if (ignore || ignoreUnclosed) next = css.length;
3515
+ default: if (code === SLASH && css.charCodeAt(pos + 1) === ASTERISK) {
3516
+ next = css.indexOf("*/", pos + 2) + 1;
3517
+ if (next === 0) {
3518
+ if (ignore || ignoreUnclosed) next = css.length;
3456
3519
  else unclosed("comment");
3457
- currentToken = [
3458
- "comment",
3459
- css.slice(pos, next + 1),
3460
- pos,
3461
- next
3462
- ];
3463
- pos = next;
3464
- } else {
3465
- RE_WORD_END.lastIndex = pos + 1;
3466
- RE_WORD_END.test(css);
3467
- if (RE_WORD_END.lastIndex === 0) next = css.length - 1;
3468
- else next = RE_WORD_END.lastIndex - 2;
3469
- currentToken = [
3470
- "word",
3471
- css.slice(pos, next + 1),
3472
- pos,
3473
- next
3474
- ];
3475
- buffer.push(currentToken);
3476
- pos = next;
3477
3520
  }
3478
- break;
3521
+ currentToken = [
3522
+ "comment",
3523
+ css.slice(pos, next + 1),
3524
+ pos,
3525
+ next
3526
+ ];
3527
+ pos = next;
3528
+ } else {
3529
+ RE_WORD_END.lastIndex = pos + 1;
3530
+ RE_WORD_END.test(css);
3531
+ if (RE_WORD_END.lastIndex === 0) next = css.length - 1;
3532
+ else next = RE_WORD_END.lastIndex - 2;
3533
+ currentToken = [
3534
+ "word",
3535
+ css.slice(pos, next + 1),
3536
+ pos,
3537
+ next
3538
+ ];
3539
+ buffer.push(currentToken);
3540
+ pos = next;
3541
+ }
3479
3542
  }
3480
3543
  pos++;
3481
3544
  return currentToken;
@@ -3490,33 +3553,33 @@ var require_tokenize = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/
3490
3553
  position
3491
3554
  };
3492
3555
  };
3493
- }) });
3556
+ }));
3494
3557
 
3495
3558
  //#endregion
3496
3559
  //#region ../../node_modules/postcss/lib/terminal-highlight.js
3497
- var require_terminal_highlight = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib/terminal-highlight.js": ((exports, module) => {
3498
- let pico$1 = require_picocolors();
3499
- let tokenizer$1 = require_tokenize();
3500
- let Input$6;
3560
+ var require_terminal_highlight = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3561
+ let pico = require_picocolors();
3562
+ let tokenizer = require_tokenize();
3563
+ let Input;
3501
3564
  function registerInput(dependant) {
3502
- Input$6 = dependant;
3565
+ Input = dependant;
3503
3566
  }
3504
3567
  const HIGHLIGHT_THEME = {
3505
- ";": pico$1.yellow,
3506
- ":": pico$1.yellow,
3507
- "(": pico$1.cyan,
3508
- ")": pico$1.cyan,
3509
- "[": pico$1.yellow,
3510
- "]": pico$1.yellow,
3511
- "{": pico$1.yellow,
3512
- "}": pico$1.yellow,
3513
- "at-word": pico$1.cyan,
3514
- "brackets": pico$1.cyan,
3515
- "call": pico$1.cyan,
3516
- "class": pico$1.yellow,
3517
- "comment": pico$1.gray,
3518
- "hash": pico$1.magenta,
3519
- "string": pico$1.green
3568
+ ";": pico.yellow,
3569
+ ":": pico.yellow,
3570
+ "(": pico.cyan,
3571
+ ")": pico.cyan,
3572
+ "[": pico.yellow,
3573
+ "]": pico.yellow,
3574
+ "{": pico.yellow,
3575
+ "}": pico.yellow,
3576
+ "at-word": pico.cyan,
3577
+ "brackets": pico.cyan,
3578
+ "call": pico.cyan,
3579
+ "class": pico.yellow,
3580
+ "comment": pico.gray,
3581
+ "hash": pico.magenta,
3582
+ "string": pico.green
3520
3583
  };
3521
3584
  function getTokenType([type, value], processor) {
3522
3585
  if (type === "word") {
@@ -3530,8 +3593,8 @@ var require_terminal_highlight = /* @__PURE__ */ __commonJS({ "../../node_module
3530
3593
  }
3531
3594
  return type;
3532
3595
  }
3533
- function terminalHighlight$2(css) {
3534
- let processor = tokenizer$1(new Input$6(css), { ignoreErrors: true });
3596
+ function terminalHighlight(css) {
3597
+ let processor = tokenizer(new Input(css), { ignoreErrors: true });
3535
3598
  let result = "";
3536
3599
  while (!processor.endOfFile()) {
3537
3600
  let token = processor.nextToken();
@@ -3541,34 +3604,36 @@ var require_terminal_highlight = /* @__PURE__ */ __commonJS({ "../../node_module
3541
3604
  }
3542
3605
  return result;
3543
3606
  }
3544
- terminalHighlight$2.registerInput = registerInput;
3545
- module.exports = terminalHighlight$2;
3546
- }) });
3607
+ terminalHighlight.registerInput = registerInput;
3608
+ module.exports = terminalHighlight;
3609
+ }));
3547
3610
 
3548
3611
  //#endregion
3549
3612
  //#region ../../node_modules/postcss/lib/css-syntax-error.js
3550
- var require_css_syntax_error = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib/css-syntax-error.js": ((exports, module) => {
3613
+ var require_css_syntax_error = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3551
3614
  let pico = require_picocolors();
3552
- let terminalHighlight$1 = require_terminal_highlight();
3553
- var CssSyntaxError$4 = class CssSyntaxError$4 extends Error {
3554
- constructor(message, line, column, source, file, plugin$1) {
3615
+ let terminalHighlight = require_terminal_highlight();
3616
+ var CssSyntaxError = class CssSyntaxError extends Error {
3617
+ constructor(message, line, column, source, file, plugin) {
3555
3618
  super(message);
3556
3619
  this.name = "CssSyntaxError";
3557
3620
  this.reason = message;
3558
3621
  if (file) this.file = file;
3559
3622
  if (source) this.source = source;
3560
- if (plugin$1) this.plugin = plugin$1;
3561
- if (typeof line !== "undefined" && typeof column !== "undefined") if (typeof line === "number") {
3562
- this.line = line;
3563
- this.column = column;
3564
- } else {
3565
- this.line = line.line;
3566
- this.column = line.column;
3567
- this.endLine = column.line;
3568
- this.endColumn = column.column;
3623
+ if (plugin) this.plugin = plugin;
3624
+ if (typeof line !== "undefined" && typeof column !== "undefined") {
3625
+ if (typeof line === "number") {
3626
+ this.line = line;
3627
+ this.column = column;
3628
+ } else {
3629
+ this.line = line.line;
3630
+ this.column = line.column;
3631
+ this.endLine = column.line;
3632
+ this.endColumn = column.column;
3633
+ }
3569
3634
  }
3570
3635
  this.setMessage();
3571
- if (Error.captureStackTrace) Error.captureStackTrace(this, CssSyntaxError$4);
3636
+ if (Error.captureStackTrace) Error.captureStackTrace(this, CssSyntaxError);
3572
3637
  }
3573
3638
  setMessage() {
3574
3639
  this.message = this.plugin ? this.plugin + ": " : "";
@@ -3584,10 +3649,10 @@ var require_css_syntax_error = /* @__PURE__ */ __commonJS({ "../../node_modules/
3584
3649
  let mark = (text) => text;
3585
3650
  let highlight = (text) => text;
3586
3651
  if (color) {
3587
- let { bold: bold$1, gray, red: red$1 } = pico.createColors(true);
3588
- mark = (text) => bold$1(red$1(text));
3652
+ let { bold, gray, red } = pico.createColors(true);
3653
+ mark = (text) => bold(red(text));
3589
3654
  aside = (text) => gray(text);
3590
- if (terminalHighlight$1) highlight = (text) => terminalHighlight$1(text);
3655
+ if (terminalHighlight) highlight = (text) => terminalHighlight(text);
3591
3656
  }
3592
3657
  let lines = css.split(/\r?\n/);
3593
3658
  let start = Math.max(this.line - 3, 0);
@@ -3602,8 +3667,8 @@ var require_css_syntax_error = /* @__PURE__ */ __commonJS({ "../../node_modules/
3602
3667
  let subLineStart = Math.max(0, this.column - padding);
3603
3668
  let subLineEnd = Math.max(this.column + padding, this.endColumn + padding);
3604
3669
  let subLine = line.slice(subLineStart, subLineEnd);
3605
- let spacing$1 = aside(gutter.replace(/\d/g, " ")) + line.slice(0, Math.min(this.column - 1, padding - 1)).replace(/[^\t]/g, " ");
3606
- return mark(">") + aside(gutter) + highlight(subLine) + "\n " + spacing$1 + mark("^");
3670
+ let spacing = aside(gutter.replace(/\d/g, " ")) + line.slice(0, Math.min(this.column - 1, 19)).replace(/[^\t]/g, " ");
3671
+ return mark(">") + aside(gutter) + highlight(subLine) + "\n " + spacing + mark("^");
3607
3672
  }
3608
3673
  let spacing = aside(gutter.replace(/\d/g, " ")) + line.slice(0, this.column - 1).replace(/[^\t]/g, " ");
3609
3674
  return mark(">") + aside(gutter) + highlight(line) + "\n " + spacing + mark("^");
@@ -3617,15 +3682,16 @@ var require_css_syntax_error = /* @__PURE__ */ __commonJS({ "../../node_modules/
3617
3682
  return this.name + ": " + this.message + code;
3618
3683
  }
3619
3684
  };
3620
- module.exports = CssSyntaxError$4;
3621
- CssSyntaxError$4.default = CssSyntaxError$4;
3622
- }) });
3685
+ module.exports = CssSyntaxError;
3686
+ CssSyntaxError.default = CssSyntaxError;
3687
+ }));
3623
3688
 
3624
3689
  //#endregion
3625
3690
  //#region ../../node_modules/postcss/lib/stringifier.js
3626
- var require_stringifier = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib/stringifier.js": ((exports, module) => {
3691
+ var require_stringifier = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3627
3692
  const STYLE_TAG = /(<)(\/?style\b)/gi;
3628
3693
  const COMMENT_OPEN = /(<)(!--)/g;
3694
+ const AT_NAME_END = /[\t\n\f\r "#'()/;[\\\]{}]/;
3629
3695
  function escapeHTMLInCSS(str) {
3630
3696
  if (typeof str !== "string") return str;
3631
3697
  if (!str.includes("<")) return str;
@@ -3648,20 +3714,64 @@ var require_stringifier = /* @__PURE__ */ __commonJS({ "../../node_modules/postc
3648
3714
  function capitalize(str) {
3649
3715
  return str[0].toUpperCase() + str.slice(1);
3650
3716
  }
3651
- var Stringifier$2 = class {
3717
+ function atruleStart(str, node) {
3718
+ let name = "@" + node.name;
3719
+ let params = node.params ? str.rawValue(node, "params") : "";
3720
+ let afterName = node.raws.afterName;
3721
+ if (typeof afterName === "undefined") afterName = params ? " " : "";
3722
+ else if (afterName === "" && params && !AT_NAME_END.test(params[0])) afterName = " ";
3723
+ return name + afterName + params;
3724
+ }
3725
+ function isCustomProperty(node) {
3726
+ if (!node.prop.startsWith("--")) return false;
3727
+ let before = node.raws.before;
3728
+ return typeof before === "undefined" || !/\S$/.test(before);
3729
+ }
3730
+ function pushBody(str, stack, node) {
3731
+ let nodes = node.nodes;
3732
+ let last = nodes.length - 1;
3733
+ while (last > 0) {
3734
+ if (nodes[last].type !== "comment") break;
3735
+ last -= 1;
3736
+ }
3737
+ let semicolon = str.raw(node, "semicolon");
3738
+ let isDocument = node.type === "document";
3739
+ for (let i = nodes.length - 1; i >= 0; i--) {
3740
+ let child = nodes[i];
3741
+ let childSemicolon = last !== i || semicolon;
3742
+ if (!childSemicolon && i < nodes.length - 1 && (child.type === "atrule" && !child.nodes || child.type === "decl" && isCustomProperty(child))) childSemicolon = true;
3743
+ stack.push({
3744
+ document: isDocument,
3745
+ node: child,
3746
+ semicolon: childSemicolon
3747
+ });
3748
+ }
3749
+ }
3750
+ function pushBlock(str, stack, node, start) {
3751
+ let between = str.raw(node, "between", "beforeOpen");
3752
+ str.builder(escapeHTMLInCSS(start + between) + "{", node, "start");
3753
+ let hasNodes = node.nodes && node.nodes.length;
3754
+ let close = () => {
3755
+ let after = hasNodes ? str.raw(node, "after") : str.raw(node, "after", "emptyBody");
3756
+ if (after) str.builder(escapeHTMLInCSS(after));
3757
+ str.builder("}", node, "end");
3758
+ if (node.type === "rule" && node.raws.ownSemicolon) str.builder(escapeHTMLInCSS(node.raws.ownSemicolon), node, "end");
3759
+ };
3760
+ if (hasNodes) {
3761
+ stack.push(close);
3762
+ pushBody(str, stack, node);
3763
+ } else close();
3764
+ }
3765
+ var Stringifier = class Stringifier {
3652
3766
  constructor(builder) {
3653
3767
  this.builder = builder;
3654
3768
  }
3655
3769
  atrule(node, semicolon) {
3656
- let raws = node.raws;
3657
- let name = "@" + node.name;
3658
- let params = node.params ? this.rawValue(node, "params") : "";
3659
- if (typeof raws.afterName !== "undefined") name += raws.afterName;
3660
- else if (params) name += " ";
3661
- if (node.nodes) this.block(node, name + params);
3770
+ let start = atruleStart(this, node);
3771
+ if (node.nodes) this.block(node, start);
3662
3772
  else {
3663
- let end = (raws.between || "") + (semicolon ? ";" : "");
3664
- this.builder(escapeHTMLInCSS(name + params + end), node);
3773
+ let end = (node.raws.between || "") + (semicolon ? ";" : "");
3774
+ this.builder(escapeHTMLInCSS(start + end), node);
3665
3775
  }
3666
3776
  }
3667
3777
  beforeAfter(node, detect) {
@@ -3694,19 +3804,28 @@ var require_stringifier = /* @__PURE__ */ __commonJS({ "../../node_modules/postc
3694
3804
  this.builder("}", node, "end");
3695
3805
  }
3696
3806
  body(node) {
3697
- let nodes = node.nodes;
3698
- let last = nodes.length - 1;
3699
- while (last > 0) {
3700
- if (nodes[last].type !== "comment") break;
3701
- last -= 1;
3702
- }
3703
- let semicolon = this.raw(node, "semicolon");
3704
- let isDocument = node.type === "document";
3705
- for (let i = 0; i < nodes.length; i++) {
3706
- let child = nodes[i];
3807
+ let proto = Stringifier.prototype;
3808
+ let expandable = [
3809
+ "atrule",
3810
+ "block",
3811
+ "body",
3812
+ "rule",
3813
+ "stringify"
3814
+ ].every((method) => this[method] === proto[method]);
3815
+ let stack = [];
3816
+ pushBody(this, stack, node);
3817
+ while (stack.length > 0) {
3818
+ let entry = stack.pop();
3819
+ if (typeof entry === "function") {
3820
+ entry();
3821
+ continue;
3822
+ }
3823
+ let child = entry.node;
3707
3824
  let before = this.raw(child, "before");
3708
- if (before) this.builder(isDocument ? before : escapeHTMLInCSS(before));
3709
- this.stringify(child, last !== i || semicolon);
3825
+ if (before) this.builder(entry.document ? before : escapeHTMLInCSS(before));
3826
+ if (expandable && child.type === "rule") pushBlock(this, stack, child, this.rawValue(child, "selector"));
3827
+ else if (expandable && child.type === "atrule" && child.nodes) pushBlock(this, stack, child, atruleStart(this, child));
3828
+ else this.stringify(child, entry.semicolon);
3710
3829
  }
3711
3830
  }
3712
3831
  comment(node) {
@@ -3738,14 +3857,14 @@ var require_stringifier = /* @__PURE__ */ __commonJS({ "../../node_modules/postc
3738
3857
  if (parent && parent.type === "document") return "";
3739
3858
  }
3740
3859
  if (!parent) return DEFAULT_RAW[detect];
3741
- let root$1 = node.root();
3742
- let cache = root$1.rawCache || (root$1.rawCache = {});
3860
+ let root = node.root();
3861
+ let cache = root.rawCache || (root.rawCache = {});
3743
3862
  if (typeof cache[detect] !== "undefined") return cache[detect];
3744
3863
  if (detect === "before" || detect === "after") return this.beforeAfter(node, detect);
3745
3864
  else {
3746
3865
  let method = "raw" + capitalize(detect);
3747
- if (this[method]) value = this[method](root$1, node);
3748
- else root$1.walk((i) => {
3866
+ if (this[method]) value = this[method](root, node);
3867
+ else root.walk((i) => {
3749
3868
  value = i.raws[own];
3750
3869
  if (typeof value !== "undefined") return false;
3751
3870
  });
@@ -3754,9 +3873,9 @@ var require_stringifier = /* @__PURE__ */ __commonJS({ "../../node_modules/postc
3754
3873
  cache[detect] = value;
3755
3874
  return value;
3756
3875
  }
3757
- rawBeforeClose(root$1) {
3876
+ rawBeforeClose(root) {
3758
3877
  let value;
3759
- root$1.walk((i) => {
3878
+ root.walk((i) => {
3760
3879
  if (i.nodes && i.nodes.length > 0) {
3761
3880
  if (typeof i.raws.after !== "undefined") {
3762
3881
  value = i.raws.after;
@@ -3768,9 +3887,9 @@ var require_stringifier = /* @__PURE__ */ __commonJS({ "../../node_modules/postc
3768
3887
  if (value) value = value.replace(/\S/g, "");
3769
3888
  return value;
3770
3889
  }
3771
- rawBeforeComment(root$1, node) {
3890
+ rawBeforeComment(root, node) {
3772
3891
  let value;
3773
- root$1.walkComments((i) => {
3892
+ root.walkComments((i) => {
3774
3893
  if (typeof i.raws.before !== "undefined") {
3775
3894
  value = i.raws.before;
3776
3895
  if (value.includes("\n")) value = value.replace(/[^\n]+$/, "");
@@ -3781,9 +3900,9 @@ var require_stringifier = /* @__PURE__ */ __commonJS({ "../../node_modules/postc
3781
3900
  else if (value) value = value.replace(/\S/g, "");
3782
3901
  return value;
3783
3902
  }
3784
- rawBeforeDecl(root$1, node) {
3903
+ rawBeforeDecl(root, node) {
3785
3904
  let value;
3786
- root$1.walkDecls((i) => {
3905
+ root.walkDecls((i) => {
3787
3906
  if (typeof i.raws.before !== "undefined") {
3788
3907
  value = i.raws.before;
3789
3908
  if (value.includes("\n")) value = value.replace(/[^\n]+$/, "");
@@ -3794,9 +3913,9 @@ var require_stringifier = /* @__PURE__ */ __commonJS({ "../../node_modules/postc
3794
3913
  else if (value) value = value.replace(/\S/g, "");
3795
3914
  return value;
3796
3915
  }
3797
- rawBeforeOpen(root$1) {
3916
+ rawBeforeOpen(root) {
3798
3917
  let value;
3799
- root$1.walk((i) => {
3918
+ root.walk((i) => {
3800
3919
  if (i.type !== "decl") {
3801
3920
  value = i.raws.between;
3802
3921
  if (typeof value !== "undefined") return false;
@@ -3804,10 +3923,10 @@ var require_stringifier = /* @__PURE__ */ __commonJS({ "../../node_modules/postc
3804
3923
  });
3805
3924
  return value;
3806
3925
  }
3807
- rawBeforeRule(root$1) {
3926
+ rawBeforeRule(root) {
3808
3927
  let value;
3809
- root$1.walk((i) => {
3810
- if (i.nodes && (i.parent !== root$1 || root$1.first !== i)) {
3928
+ root.walk((i) => {
3929
+ if (i.nodes && (i.parent !== root || root.first !== i)) {
3811
3930
  if (typeof i.raws.before !== "undefined") {
3812
3931
  value = i.raws.before;
3813
3932
  if (value.includes("\n")) value = value.replace(/[^\n]+$/, "");
@@ -3818,9 +3937,9 @@ var require_stringifier = /* @__PURE__ */ __commonJS({ "../../node_modules/postc
3818
3937
  if (value) value = value.replace(/\S/g, "");
3819
3938
  return value;
3820
3939
  }
3821
- rawColon(root$1) {
3940
+ rawColon(root) {
3822
3941
  let value;
3823
- root$1.walkDecls((i) => {
3942
+ root.walkDecls((i) => {
3824
3943
  if (typeof i.raws.between !== "undefined") {
3825
3944
  value = i.raws.between.replace(/[^\s:]/g, "");
3826
3945
  return false;
@@ -3828,9 +3947,9 @@ var require_stringifier = /* @__PURE__ */ __commonJS({ "../../node_modules/postc
3828
3947
  });
3829
3948
  return value;
3830
3949
  }
3831
- rawEmptyBody(root$1) {
3950
+ rawEmptyBody(root) {
3832
3951
  let value;
3833
- root$1.walk((i) => {
3952
+ root.walk((i) => {
3834
3953
  if (i.nodes && i.nodes.length === 0) {
3835
3954
  value = i.raws.after;
3836
3955
  if (typeof value !== "undefined") return false;
@@ -3838,12 +3957,12 @@ var require_stringifier = /* @__PURE__ */ __commonJS({ "../../node_modules/postc
3838
3957
  });
3839
3958
  return value;
3840
3959
  }
3841
- rawIndent(root$1) {
3842
- if (root$1.raws.indent) return root$1.raws.indent;
3960
+ rawIndent(root) {
3961
+ if (root.raws.indent) return root.raws.indent;
3843
3962
  let value;
3844
- root$1.walk((i) => {
3845
- let p$1 = i.parent;
3846
- if (p$1 && p$1 !== root$1 && p$1.parent && p$1.parent === root$1) {
3963
+ root.walk((i) => {
3964
+ let p = i.parent;
3965
+ if (p && p !== root && p.parent && p.parent === root) {
3847
3966
  if (typeof i.raws.before !== "undefined") {
3848
3967
  let parts = i.raws.before.split("\n");
3849
3968
  value = parts[parts.length - 1];
@@ -3854,9 +3973,9 @@ var require_stringifier = /* @__PURE__ */ __commonJS({ "../../node_modules/postc
3854
3973
  });
3855
3974
  return value;
3856
3975
  }
3857
- rawSemicolon(root$1) {
3976
+ rawSemicolon(root) {
3858
3977
  let value;
3859
- root$1.walk((i) => {
3978
+ root.walk((i) => {
3860
3979
  if (i.nodes && i.nodes.length && i.last.type === "decl") {
3861
3980
  value = i.raws.semicolon;
3862
3981
  if (typeof value !== "undefined") return false;
@@ -3871,6 +3990,7 @@ var require_stringifier = /* @__PURE__ */ __commonJS({ "../../node_modules/postc
3871
3990
  return value;
3872
3991
  }
3873
3992
  root(node) {
3993
+ if (node.source && node.source.input.hasBOM) this.builder("", node, "start");
3874
3994
  this.body(node);
3875
3995
  if (node.raws.after) {
3876
3996
  let after = node.raws.after;
@@ -3889,51 +4009,78 @@ var require_stringifier = /* @__PURE__ */ __commonJS({ "../../node_modules/postc
3889
4009
  this[node.type](node, semicolon);
3890
4010
  }
3891
4011
  };
3892
- module.exports = Stringifier$2;
3893
- Stringifier$2.default = Stringifier$2;
3894
- }) });
4012
+ module.exports = Stringifier;
4013
+ Stringifier.default = Stringifier;
4014
+ }));
3895
4015
 
3896
4016
  //#endregion
3897
4017
  //#region ../../node_modules/postcss/lib/stringify.js
3898
- var require_stringify = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib/stringify.js": ((exports, module) => {
3899
- let Stringifier$1 = require_stringifier();
3900
- function stringify$5(node, builder) {
3901
- new Stringifier$1(builder).stringify(node);
4018
+ var require_stringify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4019
+ let Stringifier = require_stringifier();
4020
+ function stringify(node, builder) {
4021
+ new Stringifier(builder).stringify(node);
3902
4022
  }
3903
- module.exports = stringify$5;
3904
- stringify$5.default = stringify$5;
3905
- }) });
4023
+ module.exports = stringify;
4024
+ stringify.default = stringify;
4025
+ }));
3906
4026
 
3907
4027
  //#endregion
3908
4028
  //#region ../../node_modules/postcss/lib/symbols.js
3909
- var require_symbols = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib/symbols.js": ((exports, module) => {
4029
+ var require_symbols = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3910
4030
  module.exports.isClean = Symbol("isClean");
3911
4031
  module.exports.my = Symbol("my");
3912
- }) });
4032
+ }));
3913
4033
 
3914
4034
  //#endregion
3915
4035
  //#region ../../node_modules/postcss/lib/node.js
3916
- var require_node = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib/node.js": ((exports, module) => {
3917
- let CssSyntaxError$3 = require_css_syntax_error();
4036
+ var require_node = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4037
+ let CssSyntaxError = require_css_syntax_error();
3918
4038
  let Stringifier = require_stringifier();
3919
- let stringify$4 = require_stringify();
3920
- let { isClean: isClean$2, my: my$2 } = require_symbols();
4039
+ let stringify = require_stringify();
4040
+ let { isClean, my } = require_symbols();
3921
4041
  function cloneNode(obj, parent) {
3922
4042
  let cloned = new obj.constructor();
3923
- for (let i in obj) {
3924
- if (!Object.prototype.hasOwnProperty.call(obj, i))
4043
+ let stack = [[
4044
+ obj,
4045
+ cloned,
4046
+ parent
4047
+ ]];
4048
+ while (stack.length > 0) {
4049
+ let [source, target, targetParent] = stack.pop();
4050
+ for (let i in source) {
4051
+ if (!Object.prototype.hasOwnProperty.call(source, i))
3925
4052
  /* c8 ignore next 2 */
3926
- continue;
3927
- if (i === "proxyCache") continue;
3928
- let value = obj[i];
3929
- let type = typeof value;
3930
- if (i === "parent" && type === "object") {
3931
- if (parent) cloned[i] = parent;
3932
- } else if (i === "source") cloned[i] = value;
3933
- else if (Array.isArray(value)) cloned[i] = value.map((j) => cloneNode(j, cloned));
3934
- else {
3935
- if (type === "object" && value !== null) value = cloneNode(value);
3936
- cloned[i] = value;
4053
+ continue;
4054
+ if (i === "proxyCache") continue;
4055
+ let value = source[i];
4056
+ let type = typeof value;
4057
+ if (i === "parent" && type === "object") {
4058
+ if (targetParent) target[i] = targetParent;
4059
+ } else if (i === "source") target[i] = value;
4060
+ else if (Array.isArray(value)) {
4061
+ let children = [];
4062
+ target[i] = children;
4063
+ for (let j of value) {
4064
+ let childClone = new j.constructor();
4065
+ children.push(childClone);
4066
+ stack.push([
4067
+ j,
4068
+ childClone,
4069
+ target
4070
+ ]);
4071
+ }
4072
+ } else {
4073
+ if (type === "object" && value !== null) {
4074
+ let valueClone = new value.constructor();
4075
+ stack.push([
4076
+ value,
4077
+ valueClone,
4078
+ void 0
4079
+ ]);
4080
+ value = valueClone;
4081
+ }
4082
+ target[i] = value;
4083
+ }
3937
4084
  }
3938
4085
  }
3939
4086
  return cloned;
@@ -3955,19 +4102,22 @@ var require_node = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib/
3955
4102
  }
3956
4103
  return offset;
3957
4104
  }
3958
- var Node$5 = class {
4105
+ var Node = class Node {
3959
4106
  get proxyOf() {
3960
4107
  return this;
3961
4108
  }
3962
4109
  constructor(defaults = {}) {
3963
4110
  this.raws = {};
3964
- this[isClean$2] = false;
3965
- this[my$2] = true;
3966
- for (let name in defaults) if (name === "nodes") {
3967
- this.nodes = [];
3968
- for (let node of defaults[name]) if (typeof node.clone === "function" && node.parent) this.append(node.clone());
3969
- else this.append(node);
3970
- } else this[name] = defaults[name];
4111
+ this[isClean] = false;
4112
+ this[my] = true;
4113
+ for (let name of Object.keys(defaults)) {
4114
+ if (name === "__proto__") continue;
4115
+ if (name === "nodes") {
4116
+ this.nodes = [];
4117
+ for (let node of defaults[name]) if (typeof node.clone === "function" && node.parent) this.append(node.clone());
4118
+ else this.append(node);
4119
+ } else this[name] = defaults[name];
4120
+ }
3971
4121
  }
3972
4122
  addToError(error) {
3973
4123
  error.postcssNode = this;
@@ -4020,7 +4170,7 @@ var require_node = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib/
4020
4170
  line: end.line
4021
4171
  }, opts);
4022
4172
  }
4023
- return new CssSyntaxError$3(message);
4173
+ return new CssSyntaxError(message);
4024
4174
  }
4025
4175
  getProxyProcessor() {
4026
4176
  return {
@@ -4032,20 +4182,22 @@ var require_node = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib/
4032
4182
  set(node, prop, value) {
4033
4183
  if (node[prop] === value) return true;
4034
4184
  node[prop] = value;
4035
- if (prop === "prop" || prop === "value" || prop === "name" || prop === "params" || prop === "important" || prop === "text") node.markDirty();
4185
+ if (prop === "prop" || prop === "value" || prop === "name" || prop === "params" || prop === "important" ||
4186
+ /* c8 ignore next */
4187
+ prop === "text") node.markDirty();
4036
4188
  return true;
4037
4189
  }
4038
4190
  };
4039
4191
  }
4040
4192
  /* c8 ignore next 3 */
4041
4193
  markClean() {
4042
- this[isClean$2] = true;
4194
+ this[isClean] = true;
4043
4195
  }
4044
4196
  markDirty() {
4045
- if (this[isClean$2]) {
4046
- this[isClean$2] = false;
4197
+ if (this[isClean]) {
4198
+ this[isClean] = false;
4047
4199
  let next = this;
4048
- while (next = next.parent) next[isClean$2] = false;
4200
+ while (next = next.parent) next[isClean] = false;
4049
4201
  }
4050
4202
  }
4051
4203
  next() {
@@ -4162,36 +4314,61 @@ var require_node = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib/
4162
4314
  return result;
4163
4315
  }
4164
4316
  toJSON(_, inputs) {
4165
- let fixed = {};
4166
4317
  let emitInputs = inputs == null;
4167
4318
  inputs = inputs || /* @__PURE__ */ new Map();
4168
- let inputsNextIndex = 0;
4169
- for (let name in this) {
4170
- if (!Object.prototype.hasOwnProperty.call(this, name))
4319
+ let holderOfRoot = [];
4320
+ let queue = [[
4321
+ this,
4322
+ holderOfRoot,
4323
+ 0
4324
+ ]];
4325
+ for (let step = 0; step < queue.length; step++) {
4326
+ let [node, holder, key] = queue[step];
4327
+ let fixed = {};
4328
+ holder[key] = fixed;
4329
+ for (let name in node) {
4330
+ if (!Object.prototype.hasOwnProperty.call(node, name))
4171
4331
  /* c8 ignore next 2 */
4172
- continue;
4173
- if (name === "parent" || name === "proxyCache") continue;
4174
- let value = this[name];
4175
- if (Array.isArray(value)) fixed[name] = value.map((i) => {
4176
- if (typeof i === "object" && i.toJSON) return i.toJSON(null, inputs);
4177
- else return i;
4178
- });
4179
- else if (typeof value === "object" && value.toJSON) fixed[name] = value.toJSON(null, inputs);
4180
- else if (name === "source") {
4181
- if (value == null) continue;
4182
- let inputId = inputs.get(value.input);
4183
- if (inputId == null) {
4184
- inputId = inputsNextIndex;
4185
- inputs.set(value.input, inputsNextIndex);
4186
- inputsNextIndex++;
4187
- }
4188
- fixed[name] = {
4189
- end: value.end,
4190
- inputId,
4191
- start: value.start
4192
- };
4193
- } else fixed[name] = value;
4332
+ continue;
4333
+ if (name === "parent" || name === "proxyCache") continue;
4334
+ let value = node[name];
4335
+ if (Array.isArray(value)) {
4336
+ let fixedArray = [];
4337
+ fixed[name] = fixedArray;
4338
+ for (let i = 0; i < value.length; i++) {
4339
+ let item = value[i];
4340
+ if (typeof item === "object" && item.toJSON) {
4341
+ if (item.toJSON === Node.prototype.toJSON) queue.push([
4342
+ item,
4343
+ fixedArray,
4344
+ i
4345
+ ]);
4346
+ else fixedArray[i] = item.toJSON(null, inputs);
4347
+ } else fixedArray[i] = item;
4348
+ }
4349
+ } else if (typeof value === "object" && value.toJSON) {
4350
+ if (value.toJSON === Node.prototype.toJSON) queue.push([
4351
+ value,
4352
+ fixed,
4353
+ name
4354
+ ]);
4355
+ else fixed[name] = value.toJSON(null, inputs);
4356
+ } else if (name === "source") {
4357
+ if (value == null) continue;
4358
+ let inputId = inputs.get(value.input);
4359
+ if (inputId == null) {
4360
+ inputId = inputs.size;
4361
+ inputs.set(value.input, inputId);
4362
+ }
4363
+ fixed[name] = {
4364
+ end: value.end,
4365
+ inputId,
4366
+ start: value.start
4367
+ };
4368
+ } else fixed[name] = value;
4369
+ }
4194
4370
  }
4371
+ let fixed = holderOfRoot[0];
4195
4372
  if (emitInputs) fixed.inputs = [...inputs.keys()].map((input) => input.toJSON());
4196
4373
  return fixed;
4197
4374
  }
@@ -4199,7 +4376,7 @@ var require_node = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib/
4199
4376
  if (!this.proxyCache) this.proxyCache = new Proxy(this, this.getProxyProcessor());
4200
4377
  return this.proxyCache;
4201
4378
  }
4202
- toString(stringifier = stringify$4) {
4379
+ toString(stringifier = stringify) {
4203
4380
  if (stringifier.stringify) stringifier = stringifier.stringify;
4204
4381
  let result = "";
4205
4382
  stringifier(this, (i) => {
@@ -4213,29 +4390,29 @@ var require_node = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib/
4213
4390
  return result.warn(text, data);
4214
4391
  }
4215
4392
  };
4216
- module.exports = Node$5;
4217
- Node$5.default = Node$5;
4218
- }) });
4393
+ module.exports = Node;
4394
+ Node.default = Node;
4395
+ }));
4219
4396
 
4220
4397
  //#endregion
4221
4398
  //#region ../../node_modules/postcss/lib/comment.js
4222
- var require_comment = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib/comment.js": ((exports, module) => {
4223
- let Node$4 = require_node();
4224
- var Comment$5 = class extends Node$4 {
4399
+ var require_comment = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4400
+ let Node = require_node();
4401
+ var Comment = class extends Node {
4225
4402
  constructor(defaults) {
4226
4403
  super(defaults);
4227
4404
  this.type = "comment";
4228
4405
  }
4229
4406
  };
4230
- module.exports = Comment$5;
4231
- Comment$5.default = Comment$5;
4232
- }) });
4407
+ module.exports = Comment;
4408
+ Comment.default = Comment;
4409
+ }));
4233
4410
 
4234
4411
  //#endregion
4235
4412
  //#region ../../node_modules/postcss/lib/declaration.js
4236
- var require_declaration = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib/declaration.js": ((exports, module) => {
4237
- let Node$3 = require_node();
4238
- var Declaration$5 = class extends Node$3 {
4413
+ var require_declaration = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4414
+ let Node = require_node();
4415
+ var Declaration = class extends Node {
4239
4416
  get variable() {
4240
4417
  return this.prop.startsWith("--") || this.prop[0] === "$";
4241
4418
  }
@@ -4248,30 +4425,42 @@ var require_declaration = /* @__PURE__ */ __commonJS({ "../../node_modules/postc
4248
4425
  this.type = "decl";
4249
4426
  }
4250
4427
  };
4251
- module.exports = Declaration$5;
4252
- Declaration$5.default = Declaration$5;
4253
- }) });
4428
+ module.exports = Declaration;
4429
+ Declaration.default = Declaration;
4430
+ }));
4254
4431
 
4255
4432
  //#endregion
4256
4433
  //#region ../../node_modules/postcss/lib/container.js
4257
- var require_container = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib/container.js": ((exports, module) => {
4258
- let Comment$4 = require_comment();
4259
- let Declaration$4 = require_declaration();
4260
- let Node$2 = require_node();
4261
- let { isClean: isClean$1, my: my$1 } = require_symbols();
4262
- let AtRule$5, parse$5, Root$7, Rule$5;
4434
+ var require_container = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4435
+ let Comment = require_comment();
4436
+ let Declaration = require_declaration();
4437
+ let Node = require_node();
4438
+ let { isClean, my } = require_symbols();
4439
+ let AtRule;
4440
+ let parse;
4441
+ let Root;
4442
+ let Rule;
4263
4443
  function cleanSource(nodes) {
4264
- return nodes.map((i) => {
4265
- if (i.nodes) i.nodes = cleanSource(i.nodes);
4266
- delete i.source;
4267
- return i;
4268
- });
4444
+ let stack = nodes.slice();
4445
+ while (stack.length > 0) {
4446
+ let node = stack.pop();
4447
+ delete node.source;
4448
+ if (node.nodes) {
4449
+ node.nodes = node.nodes.slice();
4450
+ for (let i of node.nodes) stack.push(i);
4451
+ }
4452
+ }
4453
+ return nodes.slice();
4269
4454
  }
4270
4455
  function markTreeDirty(node) {
4271
- node[isClean$1] = false;
4272
- if (node.proxyOf.nodes) for (let i of node.proxyOf.nodes) markTreeDirty(i);
4456
+ let stack = [node];
4457
+ while (stack.length > 0) {
4458
+ let next = stack.pop();
4459
+ next[isClean] = false;
4460
+ if (next.proxyOf.nodes) for (let i of next.proxyOf.nodes) stack.push(i);
4461
+ }
4273
4462
  }
4274
- var Container$8 = class Container$8 extends Node$2 {
4463
+ var Container = class Container extends Node {
4275
4464
  get first() {
4276
4465
  if (!this.proxyOf.nodes) return void 0;
4277
4466
  return this.proxyOf.nodes[0];
@@ -4289,8 +4478,16 @@ var require_container = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss
4289
4478
  return this;
4290
4479
  }
4291
4480
  cleanRaws(keepBetween) {
4292
- super.cleanRaws(keepBetween);
4293
- if (this.nodes) for (let node of this.nodes) node.cleanRaws(keepBetween);
4481
+ let stack = [this];
4482
+ while (stack.length > 0) {
4483
+ let node = stack.pop();
4484
+ if (node !== this && node.cleanRaws !== Container.prototype.cleanRaws) {
4485
+ node.cleanRaws(keepBetween);
4486
+ continue;
4487
+ }
4488
+ Node.prototype.cleanRaws.call(node, keepBetween);
4489
+ if (node.nodes) for (let child of node.nodes) stack.push(child);
4490
+ }
4294
4491
  }
4295
4492
  each(callback) {
4296
4493
  if (!this.proxyOf.nodes) return void 0;
@@ -4376,7 +4573,7 @@ var require_container = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss
4376
4573
  return this;
4377
4574
  }
4378
4575
  normalize(nodes, sample) {
4379
- if (typeof nodes === "string") nodes = cleanSource(parse$5(nodes).nodes);
4576
+ if (typeof nodes === "string") nodes = cleanSource(parse(nodes).nodes);
4380
4577
  else if (typeof nodes === "undefined") nodes = [];
4381
4578
  else if (Array.isArray(nodes)) {
4382
4579
  nodes = nodes.slice(0);
@@ -4388,17 +4585,17 @@ var require_container = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss
4388
4585
  else if (nodes.prop) {
4389
4586
  if (typeof nodes.value === "undefined") throw new Error("Value field is missed in node creation");
4390
4587
  else if (typeof nodes.value !== "string") nodes.value = String(nodes.value);
4391
- nodes = [new Declaration$4(nodes)];
4392
- } else if (nodes.selector || nodes.selectors) nodes = [new Rule$5(nodes)];
4393
- else if (nodes.name) nodes = [new AtRule$5(nodes)];
4394
- else if (nodes.text) nodes = [new Comment$4(nodes)];
4588
+ nodes = [new Declaration(nodes)];
4589
+ } else if (nodes.selector || nodes.selectors) nodes = [new Rule(nodes)];
4590
+ else if (nodes.name) nodes = [new AtRule(nodes)];
4591
+ else if (nodes.text) nodes = [new Comment(nodes)];
4395
4592
  else throw new Error("Unknown node type in node creation");
4396
4593
  return nodes.map((i) => {
4397
4594
  /* c8 ignore next */
4398
- if (!i[my$1]) Container$8.rebuild(i);
4595
+ if (!i[my]) Container.rebuild(i);
4399
4596
  i = i.proxyOf;
4400
4597
  if (i.parent) i.parent.removeChild(i);
4401
- if (i[isClean$1]) markTreeDirty(i);
4598
+ if (i[isClean]) markTreeDirty(i);
4402
4599
  if (!i.raws) i.raws = {};
4403
4600
  if (typeof i.raws.before === "undefined") {
4404
4601
  if (sample && typeof sample.raws.before !== "undefined") i.raws.before = sample.raws.before.replace(/\S/g, "");
@@ -4445,10 +4642,10 @@ var require_container = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss
4445
4642
  callback = opts;
4446
4643
  opts = {};
4447
4644
  }
4448
- this.walkDecls((decl$1) => {
4449
- if (opts.props && !opts.props.includes(decl$1.prop)) return;
4450
- if (opts.fast && !decl$1.value.includes(opts.fast)) return;
4451
- decl$1.value = decl$1.value.replace(pattern, callback);
4645
+ this.walkDecls((decl) => {
4646
+ if (opts.props && !opts.props.includes(decl.prop)) return;
4647
+ if (opts.fast && !decl.value.includes(opts.fast)) return;
4648
+ decl.value = decl.value.replace(pattern, callback);
4452
4649
  });
4453
4650
  this.markDirty();
4454
4651
  return this;
@@ -4457,16 +4654,38 @@ var require_container = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss
4457
4654
  return this.nodes.some(condition);
4458
4655
  }
4459
4656
  walk(callback) {
4460
- return this.each((child, i) => {
4657
+ if (!this.proxyOf.nodes) return void 0;
4658
+ let stack = [{
4659
+ iterator: this.getIterator(),
4660
+ node: this.proxyOf
4661
+ }];
4662
+ while (stack.length > 0) {
4663
+ let { iterator, node } = stack[stack.length - 1];
4664
+ let index = node.indexes[iterator];
4665
+ if (index >= node.proxyOf.nodes.length) {
4666
+ delete node.indexes[iterator];
4667
+ stack.pop();
4668
+ let parent = stack[stack.length - 1];
4669
+ if (parent) parent.node.indexes[parent.iterator] += 1;
4670
+ continue;
4671
+ }
4672
+ let child = node.proxyOf.nodes[index];
4461
4673
  let result;
4462
4674
  try {
4463
- result = callback(child, i);
4675
+ result = callback(child, index);
4464
4676
  } catch (e) {
4465
4677
  throw child.addToError(e);
4466
4678
  }
4467
- if (result !== false && child.walk) result = child.walk(callback);
4468
- return result;
4469
- });
4679
+ if (result === false) {
4680
+ for (let opened of stack) delete opened.node.indexes[opened.iterator];
4681
+ return false;
4682
+ }
4683
+ if (child.walk && child.proxyOf.nodes) stack.push({
4684
+ iterator: child.getIterator(),
4685
+ node: child
4686
+ });
4687
+ else node.indexes[iterator] += 1;
4688
+ }
4470
4689
  }
4471
4690
  walkAtRules(name, callback) {
4472
4691
  if (!callback) {
@@ -4516,40 +4735,42 @@ var require_container = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss
4516
4735
  });
4517
4736
  }
4518
4737
  };
4519
- Container$8.registerParse = (dependant) => {
4520
- parse$5 = dependant;
4738
+ Container.registerParse = (dependant) => {
4739
+ parse = dependant;
4521
4740
  };
4522
- Container$8.registerRule = (dependant) => {
4523
- Rule$5 = dependant;
4741
+ Container.registerRule = (dependant) => {
4742
+ Rule = dependant;
4524
4743
  };
4525
- Container$8.registerAtRule = (dependant) => {
4526
- AtRule$5 = dependant;
4744
+ Container.registerAtRule = (dependant) => {
4745
+ AtRule = dependant;
4527
4746
  };
4528
- Container$8.registerRoot = (dependant) => {
4529
- Root$7 = dependant;
4747
+ Container.registerRoot = (dependant) => {
4748
+ Root = dependant;
4530
4749
  };
4531
- module.exports = Container$8;
4532
- Container$8.default = Container$8;
4750
+ module.exports = Container;
4751
+ Container.default = Container;
4533
4752
  /* c8 ignore start */
4534
- Container$8.rebuild = (node) => {
4535
- if (node.type === "atrule") Object.setPrototypeOf(node, AtRule$5.prototype);
4536
- else if (node.type === "rule") Object.setPrototypeOf(node, Rule$5.prototype);
4537
- else if (node.type === "decl") Object.setPrototypeOf(node, Declaration$4.prototype);
4538
- else if (node.type === "comment") Object.setPrototypeOf(node, Comment$4.prototype);
4539
- else if (node.type === "root") Object.setPrototypeOf(node, Root$7.prototype);
4540
- node[my$1] = true;
4541
- if (node.nodes) node.nodes.forEach((child) => {
4542
- Container$8.rebuild(child);
4543
- });
4753
+ Container.rebuild = (node) => {
4754
+ let stack = [node];
4755
+ while (stack.length > 0) {
4756
+ let next = stack.pop();
4757
+ if (next.type === "atrule") Object.setPrototypeOf(next, AtRule.prototype);
4758
+ else if (next.type === "rule") Object.setPrototypeOf(next, Rule.prototype);
4759
+ else if (next.type === "decl") Object.setPrototypeOf(next, Declaration.prototype);
4760
+ else if (next.type === "comment") Object.setPrototypeOf(next, Comment.prototype);
4761
+ else if (next.type === "root") Object.setPrototypeOf(next, Root.prototype);
4762
+ next[my] = true;
4763
+ if (next.nodes) for (let child of next.nodes) stack.push(child);
4764
+ }
4544
4765
  };
4545
- }) });
4766
+ }));
4546
4767
  /* c8 ignore stop */
4547
4768
 
4548
4769
  //#endregion
4549
4770
  //#region ../../node_modules/postcss/lib/at-rule.js
4550
- var require_at_rule = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib/at-rule.js": ((exports, module) => {
4551
- let Container$7 = require_container();
4552
- var AtRule$4 = class extends Container$7 {
4771
+ var require_at_rule = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4772
+ let Container = require_container();
4773
+ var AtRule = class extends Container {
4553
4774
  constructor(defaults) {
4554
4775
  super(defaults);
4555
4776
  this.type = "atrule";
@@ -4563,17 +4784,18 @@ var require_at_rule = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/l
4563
4784
  return super.prepend(...children);
4564
4785
  }
4565
4786
  };
4566
- module.exports = AtRule$4;
4567
- AtRule$4.default = AtRule$4;
4568
- Container$7.registerAtRule(AtRule$4);
4569
- }) });
4787
+ module.exports = AtRule;
4788
+ AtRule.default = AtRule;
4789
+ Container.registerAtRule(AtRule);
4790
+ }));
4570
4791
 
4571
4792
  //#endregion
4572
4793
  //#region ../../node_modules/postcss/lib/document.js
4573
- var require_document = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib/document.js": ((exports, module) => {
4574
- let Container$6 = require_container();
4575
- let LazyResult$4, Processor$4;
4576
- var Document$4 = class extends Container$6 {
4794
+ var require_document = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4795
+ let Container = require_container();
4796
+ let LazyResult;
4797
+ let Processor;
4798
+ var Document = class extends Container {
4577
4799
  constructor(defaults) {
4578
4800
  super({
4579
4801
  type: "document",
@@ -4582,46 +4804,46 @@ var require_document = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/
4582
4804
  if (!this.nodes) this.nodes = [];
4583
4805
  }
4584
4806
  toResult(opts = {}) {
4585
- return new LazyResult$4(new Processor$4(), this, opts).stringify();
4807
+ return new LazyResult(new Processor(), this, opts).stringify();
4586
4808
  }
4587
4809
  };
4588
- Document$4.registerLazyResult = (dependant) => {
4589
- LazyResult$4 = dependant;
4810
+ Document.registerLazyResult = (dependant) => {
4811
+ LazyResult = dependant;
4590
4812
  };
4591
- Document$4.registerProcessor = (dependant) => {
4592
- Processor$4 = dependant;
4813
+ Document.registerProcessor = (dependant) => {
4814
+ Processor = dependant;
4593
4815
  };
4594
- module.exports = Document$4;
4595
- Document$4.default = Document$4;
4596
- }) });
4816
+ module.exports = Document;
4817
+ Document.default = Document;
4818
+ }));
4597
4819
 
4598
4820
  //#endregion
4599
4821
  //#region ../../node_modules/postcss/node_modules/nanoid/non-secure/index.cjs
4600
- var require_non_secure = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/node_modules/nanoid/non-secure/index.cjs": ((exports, module) => {
4822
+ var require_non_secure = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4601
4823
  let urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
4602
4824
  let customAlphabet = (alphabet, defaultSize = 21) => {
4603
4825
  return (size = defaultSize) => {
4604
4826
  let id = "";
4605
4827
  let i = size | 0;
4606
- while (i--) id += alphabet[Math.random() * alphabet.length | 0];
4828
+ while (i-- > 0) id += alphabet[Math.random() * alphabet.length | 0];
4607
4829
  return id;
4608
4830
  };
4609
4831
  };
4610
- let nanoid$1 = (size = 21) => {
4832
+ let nanoid = (size = 21) => {
4611
4833
  let id = "";
4612
4834
  let i = size | 0;
4613
- while (i--) id += urlAlphabet[Math.random() * 64 | 0];
4835
+ while (i-- > 0) id += urlAlphabet[Math.random() * 64 | 0];
4614
4836
  return id;
4615
4837
  };
4616
4838
  module.exports = {
4617
- nanoid: nanoid$1,
4839
+ nanoid,
4618
4840
  customAlphabet
4619
4841
  };
4620
- }) });
4842
+ }));
4621
4843
 
4622
4844
  //#endregion
4623
4845
  //#region ../../node_modules/source-map-js/lib/base64.js
4624
- var require_base64 = /* @__PURE__ */ __commonJS({ "../../node_modules/source-map-js/lib/base64.js": ((exports) => {
4846
+ var require_base64 = /* @__PURE__ */ __commonJSMin(((exports) => {
4625
4847
  var intToCharMap = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");
4626
4848
  /**
4627
4849
  * Encode an integer in the range of 0 to 63 to a single base 64 digit.
@@ -4652,11 +4874,11 @@ var require_base64 = /* @__PURE__ */ __commonJS({ "../../node_modules/source-map
4652
4874
  if (charCode == slash) return 63;
4653
4875
  return -1;
4654
4876
  };
4655
- }) });
4877
+ }));
4656
4878
 
4657
4879
  //#endregion
4658
4880
  //#region ../../node_modules/source-map-js/lib/base64-vlq.js
4659
- var require_base64_vlq = /* @__PURE__ */ __commonJS({ "../../node_modules/source-map-js/lib/base64-vlq.js": ((exports) => {
4881
+ var require_base64_vlq = /* @__PURE__ */ __commonJSMin(((exports) => {
4660
4882
  var base64 = require_base64();
4661
4883
  var VLQ_BASE_SHIFT = 5;
4662
4884
  var VLQ_BASE = 1 << VLQ_BASE_SHIFT;
@@ -4718,11 +4940,11 @@ var require_base64_vlq = /* @__PURE__ */ __commonJS({ "../../node_modules/source
4718
4940
  aOutParam.value = fromVLQSigned(result);
4719
4941
  aOutParam.rest = aIndex;
4720
4942
  };
4721
- }) });
4943
+ }));
4722
4944
 
4723
4945
  //#endregion
4724
4946
  //#region ../../node_modules/source-map-js/lib/util.js
4725
- var require_util = /* @__PURE__ */ __commonJS({ "../../node_modules/source-map-js/lib/util.js": ((exports) => {
4947
+ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
4726
4948
  /**
4727
4949
  * This is a helper function for getting values from parameter/options
4728
4950
  * objects.
@@ -4801,47 +5023,49 @@ var require_util = /* @__PURE__ */ __commonJS({ "../../node_modules/source-map-j
4801
5023
  *
4802
5024
  * @param aPath The path or url to normalize.
4803
5025
  */
4804
- var normalize = lruMemoize(function normalize$1(aPath) {
4805
- var path$2 = aPath;
5026
+ var normalize = lruMemoize(function normalize(aPath) {
5027
+ var path = aPath;
4806
5028
  var url = urlParse(aPath);
4807
5029
  if (url) {
4808
5030
  if (!url.path) return aPath;
4809
- path$2 = url.path;
5031
+ path = url.path;
4810
5032
  }
4811
- var isAbsolute$2 = exports.isAbsolute(path$2);
5033
+ var isAbsolute = exports.isAbsolute(path);
4812
5034
  var parts = [];
4813
5035
  var start = 0;
4814
5036
  var i = 0;
4815
5037
  while (true) {
4816
5038
  start = i;
4817
- i = path$2.indexOf("/", start);
5039
+ i = path.indexOf("/", start);
4818
5040
  if (i === -1) {
4819
- parts.push(path$2.slice(start));
5041
+ parts.push(path.slice(start));
4820
5042
  break;
4821
5043
  } else {
4822
- parts.push(path$2.slice(start, i));
4823
- while (i < path$2.length && path$2[i] === "/") i++;
5044
+ parts.push(path.slice(start, i));
5045
+ while (i < path.length && path[i] === "/") i++;
4824
5046
  }
4825
5047
  }
4826
5048
  for (var part, up = 0, i = parts.length - 1; i >= 0; i--) {
4827
5049
  part = parts[i];
4828
5050
  if (part === ".") parts.splice(i, 1);
4829
5051
  else if (part === "..") up++;
4830
- else if (up > 0) if (part === "") {
4831
- parts.splice(i + 1, up);
4832
- up = 0;
4833
- } else {
4834
- parts.splice(i, 2);
4835
- up--;
5052
+ else if (up > 0) {
5053
+ if (part === "") {
5054
+ parts.splice(i + 1, up);
5055
+ up = 0;
5056
+ } else {
5057
+ parts.splice(i, 2);
5058
+ up--;
5059
+ }
4836
5060
  }
4837
5061
  }
4838
- path$2 = parts.join("/");
4839
- if (path$2 === "") path$2 = isAbsolute$2 ? "/" : ".";
5062
+ path = parts.join("/");
5063
+ if (path === "") path = isAbsolute ? "/" : ".";
4840
5064
  if (url) {
4841
- url.path = path$2;
5065
+ url.path = path;
4842
5066
  return urlGenerate(url);
4843
5067
  }
4844
- return path$2;
5068
+ return path;
4845
5069
  });
4846
5070
  exports.normalize = normalize;
4847
5071
  /**
@@ -4860,7 +5084,7 @@ var require_util = /* @__PURE__ */ __commonJS({ "../../node_modules/source-map-j
4860
5084
  * - Otherwise the two paths are joined with a slash.
4861
5085
  * - Joining for example 'http://' and 'www.example.com' is also supported.
4862
5086
  */
4863
- function join$3(aRoot, aPath) {
5087
+ function join(aRoot, aPath) {
4864
5088
  if (aRoot === "") aRoot = ".";
4865
5089
  if (aPath === "") aPath = ".";
4866
5090
  var aPathUrl = urlParse(aPath);
@@ -4882,7 +5106,7 @@ var require_util = /* @__PURE__ */ __commonJS({ "../../node_modules/source-map-j
4882
5106
  }
4883
5107
  return joined;
4884
5108
  }
4885
- exports.join = join$3;
5109
+ exports.join = join;
4886
5110
  exports.isAbsolute = function(aPath) {
4887
5111
  return aPath.charAt(0) === "/" || urlRegexp.test(aPath);
4888
5112
  };
@@ -4892,7 +5116,7 @@ var require_util = /* @__PURE__ */ __commonJS({ "../../node_modules/source-map-j
4892
5116
  * @param aRoot The root path or URL.
4893
5117
  * @param aPath The path or URL to be made relative to aRoot.
4894
5118
  */
4895
- function relative$3(aRoot, aPath) {
5119
+ function relative(aRoot, aPath) {
4896
5120
  if (aRoot === "") aRoot = ".";
4897
5121
  aRoot = aRoot.replace(/\/$/, "");
4898
5122
  var level = 0;
@@ -4905,7 +5129,7 @@ var require_util = /* @__PURE__ */ __commonJS({ "../../node_modules/source-map-j
4905
5129
  }
4906
5130
  return Array(level + 1).join("../") + aPath.substr(aRoot.length + 1);
4907
5131
  }
4908
- exports.relative = relative$3;
5132
+ exports.relative = relative;
4909
5133
  var supportsNullProto = function() {
4910
5134
  return !("__proto__" in Object.create(null));
4911
5135
  }();
@@ -5059,17 +5283,17 @@ var require_util = /* @__PURE__ */ __commonJS({ "../../node_modules/source-map-j
5059
5283
  var index = parsed.path.lastIndexOf("/");
5060
5284
  if (index >= 0) parsed.path = parsed.path.substring(0, index + 1);
5061
5285
  }
5062
- sourceURL = join$3(urlGenerate(parsed), sourceURL);
5286
+ sourceURL = join(urlGenerate(parsed), sourceURL);
5063
5287
  }
5064
5288
  return normalize(sourceURL);
5065
5289
  }
5066
5290
  exports.computeSourceURL = computeSourceURL;
5067
- }) });
5291
+ }));
5068
5292
 
5069
5293
  //#endregion
5070
5294
  //#region ../../node_modules/source-map-js/lib/array-set.js
5071
- var require_array_set = /* @__PURE__ */ __commonJS({ "../../node_modules/source-map-js/lib/array-set.js": ((exports) => {
5072
- var util$4 = require_util();
5295
+ var require_array_set = /* @__PURE__ */ __commonJSMin(((exports) => {
5296
+ var util = require_util();
5073
5297
  var has = Object.prototype.hasOwnProperty;
5074
5298
  var hasNativeMap = typeof Map !== "undefined";
5075
5299
  /**
@@ -5078,15 +5302,15 @@ var require_array_set = /* @__PURE__ */ __commonJS({ "../../node_modules/source-
5078
5302
  * element is O(1). Removing elements from the set is not supported. Only
5079
5303
  * strings are supported for membership.
5080
5304
  */
5081
- function ArraySet$2() {
5305
+ function ArraySet() {
5082
5306
  this._array = [];
5083
5307
  this._set = hasNativeMap ? /* @__PURE__ */ new Map() : Object.create(null);
5084
5308
  }
5085
5309
  /**
5086
5310
  * Static method for creating ArraySet instances from an existing array.
5087
5311
  */
5088
- ArraySet$2.fromArray = function ArraySet_fromArray(aArray, aAllowDuplicates) {
5089
- var set = new ArraySet$2();
5312
+ ArraySet.fromArray = function ArraySet_fromArray(aArray, aAllowDuplicates) {
5313
+ var set = new ArraySet();
5090
5314
  for (var i = 0, len = aArray.length; i < len; i++) set.add(aArray[i], aAllowDuplicates);
5091
5315
  return set;
5092
5316
  };
@@ -5096,7 +5320,7 @@ var require_array_set = /* @__PURE__ */ __commonJS({ "../../node_modules/source-
5096
5320
  *
5097
5321
  * @returns Number
5098
5322
  */
5099
- ArraySet$2.prototype.size = function ArraySet_size() {
5323
+ ArraySet.prototype.size = function ArraySet_size() {
5100
5324
  return hasNativeMap ? this._set.size : Object.getOwnPropertyNames(this._set).length;
5101
5325
  };
5102
5326
  /**
@@ -5104,23 +5328,25 @@ var require_array_set = /* @__PURE__ */ __commonJS({ "../../node_modules/source-
5104
5328
  *
5105
5329
  * @param String aStr
5106
5330
  */
5107
- ArraySet$2.prototype.add = function ArraySet_add(aStr, aAllowDuplicates) {
5108
- var sStr = hasNativeMap ? aStr : util$4.toSetString(aStr);
5331
+ ArraySet.prototype.add = function ArraySet_add(aStr, aAllowDuplicates) {
5332
+ var sStr = hasNativeMap ? aStr : util.toSetString(aStr);
5109
5333
  var isDuplicate = hasNativeMap ? this.has(aStr) : has.call(this._set, sStr);
5110
5334
  var idx = this._array.length;
5111
5335
  if (!isDuplicate || aAllowDuplicates) this._array.push(aStr);
5112
- if (!isDuplicate) if (hasNativeMap) this._set.set(aStr, idx);
5113
- else this._set[sStr] = idx;
5336
+ if (!isDuplicate) {
5337
+ if (hasNativeMap) this._set.set(aStr, idx);
5338
+ else this._set[sStr] = idx;
5339
+ }
5114
5340
  };
5115
5341
  /**
5116
5342
  * Is the given string a member of this set?
5117
5343
  *
5118
5344
  * @param String aStr
5119
5345
  */
5120
- ArraySet$2.prototype.has = function ArraySet_has(aStr) {
5346
+ ArraySet.prototype.has = function ArraySet_has(aStr) {
5121
5347
  if (hasNativeMap) return this._set.has(aStr);
5122
5348
  else {
5123
- var sStr = util$4.toSetString(aStr);
5349
+ var sStr = util.toSetString(aStr);
5124
5350
  return has.call(this._set, sStr);
5125
5351
  }
5126
5352
  };
@@ -5129,12 +5355,12 @@ var require_array_set = /* @__PURE__ */ __commonJS({ "../../node_modules/source-
5129
5355
  *
5130
5356
  * @param String aStr
5131
5357
  */
5132
- ArraySet$2.prototype.indexOf = function ArraySet_indexOf(aStr) {
5358
+ ArraySet.prototype.indexOf = function ArraySet_indexOf(aStr) {
5133
5359
  if (hasNativeMap) {
5134
5360
  var idx = this._set.get(aStr);
5135
5361
  if (idx >= 0) return idx;
5136
5362
  } else {
5137
- var sStr = util$4.toSetString(aStr);
5363
+ var sStr = util.toSetString(aStr);
5138
5364
  if (has.call(this._set, sStr)) return this._set[sStr];
5139
5365
  }
5140
5366
  throw new Error("\"" + aStr + "\" is not in the set.");
@@ -5144,7 +5370,7 @@ var require_array_set = /* @__PURE__ */ __commonJS({ "../../node_modules/source-
5144
5370
  *
5145
5371
  * @param Number aIdx
5146
5372
  */
5147
- ArraySet$2.prototype.at = function ArraySet_at(aIdx) {
5373
+ ArraySet.prototype.at = function ArraySet_at(aIdx) {
5148
5374
  if (aIdx >= 0 && aIdx < this._array.length) return this._array[aIdx];
5149
5375
  throw new Error("No element indexed by " + aIdx);
5150
5376
  };
@@ -5153,16 +5379,16 @@ var require_array_set = /* @__PURE__ */ __commonJS({ "../../node_modules/source-
5153
5379
  * indicated by indexOf). Note that this is a copy of the internal array used
5154
5380
  * for storing the members so that no one can mess with internal state.
5155
5381
  */
5156
- ArraySet$2.prototype.toArray = function ArraySet_toArray() {
5382
+ ArraySet.prototype.toArray = function ArraySet_toArray() {
5157
5383
  return this._array.slice();
5158
5384
  };
5159
- exports.ArraySet = ArraySet$2;
5160
- }) });
5385
+ exports.ArraySet = ArraySet;
5386
+ }));
5161
5387
 
5162
5388
  //#endregion
5163
5389
  //#region ../../node_modules/source-map-js/lib/mapping-list.js
5164
- var require_mapping_list = /* @__PURE__ */ __commonJS({ "../../node_modules/source-map-js/lib/mapping-list.js": ((exports) => {
5165
- var util$3 = require_util();
5390
+ var require_mapping_list = /* @__PURE__ */ __commonJSMin(((exports) => {
5391
+ var util = require_util();
5166
5392
  /**
5167
5393
  * Determine whether mappingB is after mappingA with respect to generated
5168
5394
  * position.
@@ -5172,14 +5398,14 @@ var require_mapping_list = /* @__PURE__ */ __commonJS({ "../../node_modules/sour
5172
5398
  var lineB = mappingB.generatedLine;
5173
5399
  var columnA = mappingA.generatedColumn;
5174
5400
  var columnB = mappingB.generatedColumn;
5175
- return lineB > lineA || lineB == lineA && columnB >= columnA || util$3.compareByGeneratedPositionsInflated(mappingA, mappingB) <= 0;
5401
+ return lineB > lineA || lineB == lineA && columnB >= columnA || util.compareByGeneratedPositionsInflated(mappingA, mappingB) <= 0;
5176
5402
  }
5177
5403
  /**
5178
5404
  * A data structure to provide a sorted view of accumulated mappings in a
5179
5405
  * performance conscious manner. It trades a neglibable overhead in general
5180
5406
  * case for a large speedup in case of mappings being added in order.
5181
5407
  */
5182
- function MappingList$1() {
5408
+ function MappingList() {
5183
5409
  this._array = [];
5184
5410
  this._sorted = true;
5185
5411
  this._last = {
@@ -5193,7 +5419,7 @@ var require_mapping_list = /* @__PURE__ */ __commonJS({ "../../node_modules/sour
5193
5419
  *
5194
5420
  * NOTE: The order of the mappings is NOT guaranteed.
5195
5421
  */
5196
- MappingList$1.prototype.unsortedForEach = function MappingList_forEach(aCallback, aThisArg) {
5422
+ MappingList.prototype.unsortedForEach = function MappingList_forEach(aCallback, aThisArg) {
5197
5423
  this._array.forEach(aCallback, aThisArg);
5198
5424
  };
5199
5425
  /**
@@ -5201,7 +5427,7 @@ var require_mapping_list = /* @__PURE__ */ __commonJS({ "../../node_modules/sour
5201
5427
  *
5202
5428
  * @param Object aMapping
5203
5429
  */
5204
- MappingList$1.prototype.add = function MappingList_add(aMapping) {
5430
+ MappingList.prototype.add = function MappingList_add(aMapping) {
5205
5431
  if (generatedPositionAfter(this._last, aMapping)) {
5206
5432
  this._last = aMapping;
5207
5433
  this._array.push(aMapping);
@@ -5219,22 +5445,22 @@ var require_mapping_list = /* @__PURE__ */ __commonJS({ "../../node_modules/sour
5219
5445
  * an immutable borrow. If you want to take ownership, you must make your own
5220
5446
  * copy.
5221
5447
  */
5222
- MappingList$1.prototype.toArray = function MappingList_toArray() {
5448
+ MappingList.prototype.toArray = function MappingList_toArray() {
5223
5449
  if (!this._sorted) {
5224
- this._array.sort(util$3.compareByGeneratedPositionsInflated);
5450
+ this._array.sort(util.compareByGeneratedPositionsInflated);
5225
5451
  this._sorted = true;
5226
5452
  }
5227
5453
  return this._array;
5228
5454
  };
5229
- exports.MappingList = MappingList$1;
5230
- }) });
5455
+ exports.MappingList = MappingList;
5456
+ }));
5231
5457
 
5232
5458
  //#endregion
5233
5459
  //#region ../../node_modules/source-map-js/lib/source-map-generator.js
5234
- var require_source_map_generator = /* @__PURE__ */ __commonJS({ "../../node_modules/source-map-js/lib/source-map-generator.js": ((exports) => {
5235
- var base64VLQ$1 = require_base64_vlq();
5236
- var util$2 = require_util();
5237
- var ArraySet$1 = require_array_set().ArraySet;
5460
+ var require_source_map_generator = /* @__PURE__ */ __commonJSMin(((exports) => {
5461
+ var base64VLQ = require_base64_vlq();
5462
+ var util = require_util();
5463
+ var ArraySet = require_array_set().ArraySet;
5238
5464
  var MappingList = require_mapping_list().MappingList;
5239
5465
  /**
5240
5466
  * An instance of the SourceMapGenerator represents a source map which is
@@ -5244,26 +5470,26 @@ var require_source_map_generator = /* @__PURE__ */ __commonJS({ "../../node_modu
5244
5470
  * - file: The filename of the generated source.
5245
5471
  * - sourceRoot: A root for all relative URLs in this source map.
5246
5472
  */
5247
- function SourceMapGenerator$4(aArgs) {
5473
+ function SourceMapGenerator(aArgs) {
5248
5474
  if (!aArgs) aArgs = {};
5249
- this._file = util$2.getArg(aArgs, "file", null);
5250
- this._sourceRoot = util$2.getArg(aArgs, "sourceRoot", null);
5251
- this._skipValidation = util$2.getArg(aArgs, "skipValidation", false);
5252
- this._ignoreInvalidMapping = util$2.getArg(aArgs, "ignoreInvalidMapping", false);
5253
- this._sources = new ArraySet$1();
5254
- this._names = new ArraySet$1();
5475
+ this._file = util.getArg(aArgs, "file", null);
5476
+ this._sourceRoot = util.getArg(aArgs, "sourceRoot", null);
5477
+ this._skipValidation = util.getArg(aArgs, "skipValidation", false);
5478
+ this._ignoreInvalidMapping = util.getArg(aArgs, "ignoreInvalidMapping", false);
5479
+ this._sources = new ArraySet();
5480
+ this._names = new ArraySet();
5255
5481
  this._mappings = new MappingList();
5256
5482
  this._sourcesContents = null;
5257
5483
  }
5258
- SourceMapGenerator$4.prototype._version = 3;
5484
+ SourceMapGenerator.prototype._version = 3;
5259
5485
  /**
5260
5486
  * Creates a new SourceMapGenerator based on a SourceMapConsumer
5261
5487
  *
5262
5488
  * @param aSourceMapConsumer The SourceMap.
5263
5489
  */
5264
- SourceMapGenerator$4.fromSourceMap = function SourceMapGenerator_fromSourceMap(aSourceMapConsumer, generatorOps) {
5490
+ SourceMapGenerator.fromSourceMap = function SourceMapGenerator_fromSourceMap(aSourceMapConsumer, generatorOps) {
5265
5491
  var sourceRoot = aSourceMapConsumer.sourceRoot;
5266
- var generator = new SourceMapGenerator$4(Object.assign(generatorOps || {}, {
5492
+ var generator = new SourceMapGenerator(Object.assign(generatorOps || {}, {
5267
5493
  file: aSourceMapConsumer.file,
5268
5494
  sourceRoot
5269
5495
  }));
@@ -5274,7 +5500,7 @@ var require_source_map_generator = /* @__PURE__ */ __commonJS({ "../../node_modu
5274
5500
  } };
5275
5501
  if (mapping.source != null) {
5276
5502
  newMapping.source = mapping.source;
5277
- if (sourceRoot != null) newMapping.source = util$2.relative(sourceRoot, newMapping.source);
5503
+ if (sourceRoot != null) newMapping.source = util.relative(sourceRoot, newMapping.source);
5278
5504
  newMapping.original = {
5279
5505
  line: mapping.originalLine,
5280
5506
  column: mapping.originalColumn
@@ -5285,7 +5511,7 @@ var require_source_map_generator = /* @__PURE__ */ __commonJS({ "../../node_modu
5285
5511
  });
5286
5512
  aSourceMapConsumer.sources.forEach(function(sourceFile) {
5287
5513
  var sourceRelative = sourceFile;
5288
- if (sourceRoot !== null) sourceRelative = util$2.relative(sourceRoot, sourceFile);
5514
+ if (sourceRoot !== null) sourceRelative = util.relative(sourceRoot, sourceFile);
5289
5515
  if (!generator._sources.has(sourceRelative)) generator._sources.add(sourceRelative);
5290
5516
  var content = aSourceMapConsumer.sourceContentFor(sourceFile);
5291
5517
  if (content != null) generator.setSourceContent(sourceFile, content);
@@ -5302,11 +5528,11 @@ var require_source_map_generator = /* @__PURE__ */ __commonJS({ "../../node_modu
5302
5528
  * - source: The original source file (relative to the sourceRoot).
5303
5529
  * - name: An optional original token name for this mapping.
5304
5530
  */
5305
- SourceMapGenerator$4.prototype.addMapping = function SourceMapGenerator_addMapping(aArgs) {
5306
- var generated = util$2.getArg(aArgs, "generated");
5307
- var original = util$2.getArg(aArgs, "original", null);
5308
- var source = util$2.getArg(aArgs, "source", null);
5309
- var name = util$2.getArg(aArgs, "name", null);
5531
+ SourceMapGenerator.prototype.addMapping = function SourceMapGenerator_addMapping(aArgs) {
5532
+ var generated = util.getArg(aArgs, "generated");
5533
+ var original = util.getArg(aArgs, "original", null);
5534
+ var source = util.getArg(aArgs, "source", null);
5535
+ var name = util.getArg(aArgs, "name", null);
5310
5536
  if (!this._skipValidation) {
5311
5537
  if (this._validateMapping(generated, original, source, name) === false) return;
5312
5538
  }
@@ -5330,14 +5556,14 @@ var require_source_map_generator = /* @__PURE__ */ __commonJS({ "../../node_modu
5330
5556
  /**
5331
5557
  * Set the source content for a source file.
5332
5558
  */
5333
- SourceMapGenerator$4.prototype.setSourceContent = function SourceMapGenerator_setSourceContent(aSourceFile, aSourceContent) {
5559
+ SourceMapGenerator.prototype.setSourceContent = function SourceMapGenerator_setSourceContent(aSourceFile, aSourceContent) {
5334
5560
  var source = aSourceFile;
5335
- if (this._sourceRoot != null) source = util$2.relative(this._sourceRoot, source);
5561
+ if (this._sourceRoot != null) source = util.relative(this._sourceRoot, source);
5336
5562
  if (aSourceContent != null) {
5337
5563
  if (!this._sourcesContents) this._sourcesContents = Object.create(null);
5338
- this._sourcesContents[util$2.toSetString(source)] = aSourceContent;
5564
+ this._sourcesContents[util.toSetString(source)] = aSourceContent;
5339
5565
  } else if (this._sourcesContents) {
5340
- delete this._sourcesContents[util$2.toSetString(source)];
5566
+ delete this._sourcesContents[util.toSetString(source)];
5341
5567
  if (Object.keys(this._sourcesContents).length === 0) this._sourcesContents = null;
5342
5568
  }
5343
5569
  };
@@ -5357,16 +5583,16 @@ var require_source_map_generator = /* @__PURE__ */ __commonJS({ "../../node_modu
5357
5583
  * paths. If so, those relative source paths need to be rewritten
5358
5584
  * relative to the SourceMapGenerator.
5359
5585
  */
5360
- SourceMapGenerator$4.prototype.applySourceMap = function SourceMapGenerator_applySourceMap(aSourceMapConsumer, aSourceFile, aSourceMapPath) {
5586
+ SourceMapGenerator.prototype.applySourceMap = function SourceMapGenerator_applySourceMap(aSourceMapConsumer, aSourceFile, aSourceMapPath) {
5361
5587
  var sourceFile = aSourceFile;
5362
5588
  if (aSourceFile == null) {
5363
5589
  if (aSourceMapConsumer.file == null) throw new Error("SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's \"file\" property. Both were omitted.");
5364
5590
  sourceFile = aSourceMapConsumer.file;
5365
5591
  }
5366
5592
  var sourceRoot = this._sourceRoot;
5367
- if (sourceRoot != null) sourceFile = util$2.relative(sourceRoot, sourceFile);
5368
- var newSources = new ArraySet$1();
5369
- var newNames = new ArraySet$1();
5593
+ if (sourceRoot != null) sourceFile = util.relative(sourceRoot, sourceFile);
5594
+ var newSources = new ArraySet();
5595
+ var newNames = new ArraySet();
5370
5596
  this._mappings.unsortedForEach(function(mapping) {
5371
5597
  if (mapping.source === sourceFile && mapping.originalLine != null) {
5372
5598
  var original = aSourceMapConsumer.originalPositionFor({
@@ -5375,8 +5601,8 @@ var require_source_map_generator = /* @__PURE__ */ __commonJS({ "../../node_modu
5375
5601
  });
5376
5602
  if (original.source != null) {
5377
5603
  mapping.source = original.source;
5378
- if (aSourceMapPath != null) mapping.source = util$2.join(aSourceMapPath, mapping.source);
5379
- if (sourceRoot != null) mapping.source = util$2.relative(sourceRoot, mapping.source);
5604
+ if (aSourceMapPath != null) mapping.source = util.join(aSourceMapPath, mapping.source);
5605
+ if (sourceRoot != null) mapping.source = util.relative(sourceRoot, mapping.source);
5380
5606
  mapping.originalLine = original.line;
5381
5607
  mapping.originalColumn = original.column;
5382
5608
  if (original.name != null) mapping.name = original.name;
@@ -5389,12 +5615,12 @@ var require_source_map_generator = /* @__PURE__ */ __commonJS({ "../../node_modu
5389
5615
  }, this);
5390
5616
  this._sources = newSources;
5391
5617
  this._names = newNames;
5392
- aSourceMapConsumer.sources.forEach(function(sourceFile$1) {
5393
- var content = aSourceMapConsumer.sourceContentFor(sourceFile$1);
5618
+ aSourceMapConsumer.sources.forEach(function(sourceFile) {
5619
+ var content = aSourceMapConsumer.sourceContentFor(sourceFile);
5394
5620
  if (content != null) {
5395
- if (aSourceMapPath != null) sourceFile$1 = util$2.join(aSourceMapPath, sourceFile$1);
5396
- if (sourceRoot != null) sourceFile$1 = util$2.relative(sourceRoot, sourceFile$1);
5397
- this.setSourceContent(sourceFile$1, content);
5621
+ if (aSourceMapPath != null) sourceFile = util.join(aSourceMapPath, sourceFile);
5622
+ if (sourceRoot != null) sourceFile = util.relative(sourceRoot, sourceFile);
5623
+ this.setSourceContent(sourceFile, content);
5398
5624
  }
5399
5625
  }, this);
5400
5626
  };
@@ -5409,7 +5635,7 @@ var require_source_map_generator = /* @__PURE__ */ __commonJS({ "../../node_modu
5409
5635
  * To maintain consistency, we validate that any new mapping being added falls
5410
5636
  * in to one of these categories.
5411
5637
  */
5412
- SourceMapGenerator$4.prototype._validateMapping = function SourceMapGenerator_validateMapping(aGenerated, aOriginal, aSource, aName) {
5638
+ SourceMapGenerator.prototype._validateMapping = function SourceMapGenerator_validateMapping(aGenerated, aOriginal, aSource, aName) {
5413
5639
  if (aOriginal && typeof aOriginal.line !== "number" && typeof aOriginal.column !== "number") {
5414
5640
  var message = "original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.";
5415
5641
  if (this._ignoreInvalidMapping) {
@@ -5436,7 +5662,7 @@ var require_source_map_generator = /* @__PURE__ */ __commonJS({ "../../node_modu
5436
5662
  * Serialize the accumulated mappings in to the stream of base 64 VLQs
5437
5663
  * specified by the source map format.
5438
5664
  */
5439
- SourceMapGenerator$4.prototype._serializeMappings = function SourceMapGenerator_serializeMappings() {
5665
+ SourceMapGenerator.prototype._serializeMappings = function SourceMapGenerator_serializeMappings() {
5440
5666
  var previousGeneratedColumn = 0;
5441
5667
  var previousGeneratedLine = 1;
5442
5668
  var previousOriginalColumn = 0;
@@ -5459,22 +5685,22 @@ var require_source_map_generator = /* @__PURE__ */ __commonJS({ "../../node_modu
5459
5685
  previousGeneratedLine++;
5460
5686
  }
5461
5687
  } else if (i > 0) {
5462
- if (!util$2.compareByGeneratedPositionsInflated(mapping, mappings[i - 1])) continue;
5688
+ if (!util.compareByGeneratedPositionsInflated(mapping, mappings[i - 1])) continue;
5463
5689
  next += ",";
5464
5690
  }
5465
- next += base64VLQ$1.encode(mapping.generatedColumn - previousGeneratedColumn);
5691
+ next += base64VLQ.encode(mapping.generatedColumn - previousGeneratedColumn);
5466
5692
  previousGeneratedColumn = mapping.generatedColumn;
5467
5693
  if (mapping.source != null) {
5468
5694
  sourceIdx = this._sources.indexOf(mapping.source);
5469
- next += base64VLQ$1.encode(sourceIdx - previousSource);
5695
+ next += base64VLQ.encode(sourceIdx - previousSource);
5470
5696
  previousSource = sourceIdx;
5471
- next += base64VLQ$1.encode(mapping.originalLine - 1 - previousOriginalLine);
5697
+ next += base64VLQ.encode(mapping.originalLine - 1 - previousOriginalLine);
5472
5698
  previousOriginalLine = mapping.originalLine - 1;
5473
- next += base64VLQ$1.encode(mapping.originalColumn - previousOriginalColumn);
5699
+ next += base64VLQ.encode(mapping.originalColumn - previousOriginalColumn);
5474
5700
  previousOriginalColumn = mapping.originalColumn;
5475
5701
  if (mapping.name != null) {
5476
5702
  nameIdx = this._names.indexOf(mapping.name);
5477
- next += base64VLQ$1.encode(nameIdx - previousName);
5703
+ next += base64VLQ.encode(nameIdx - previousName);
5478
5704
  previousName = nameIdx;
5479
5705
  }
5480
5706
  }
@@ -5482,18 +5708,18 @@ var require_source_map_generator = /* @__PURE__ */ __commonJS({ "../../node_modu
5482
5708
  }
5483
5709
  return result;
5484
5710
  };
5485
- SourceMapGenerator$4.prototype._generateSourcesContent = function SourceMapGenerator_generateSourcesContent(aSources, aSourceRoot) {
5711
+ SourceMapGenerator.prototype._generateSourcesContent = function SourceMapGenerator_generateSourcesContent(aSources, aSourceRoot) {
5486
5712
  return aSources.map(function(source) {
5487
5713
  if (!this._sourcesContents) return null;
5488
- if (aSourceRoot != null) source = util$2.relative(aSourceRoot, source);
5489
- var key = util$2.toSetString(source);
5714
+ if (aSourceRoot != null) source = util.relative(aSourceRoot, source);
5715
+ var key = util.toSetString(source);
5490
5716
  return Object.prototype.hasOwnProperty.call(this._sourcesContents, key) ? this._sourcesContents[key] : null;
5491
5717
  }, this);
5492
5718
  };
5493
5719
  /**
5494
5720
  * Externalize the source map.
5495
5721
  */
5496
- SourceMapGenerator$4.prototype.toJSON = function SourceMapGenerator_toJSON() {
5722
+ SourceMapGenerator.prototype.toJSON = function SourceMapGenerator_toJSON() {
5497
5723
  var map = {
5498
5724
  version: this._version,
5499
5725
  sources: this._sources.toArray(),
@@ -5508,15 +5734,15 @@ var require_source_map_generator = /* @__PURE__ */ __commonJS({ "../../node_modu
5508
5734
  /**
5509
5735
  * Render the source map being generated to a string.
5510
5736
  */
5511
- SourceMapGenerator$4.prototype.toString = function SourceMapGenerator_toString() {
5737
+ SourceMapGenerator.prototype.toString = function SourceMapGenerator_toString() {
5512
5738
  return JSON.stringify(this.toJSON());
5513
5739
  };
5514
- exports.SourceMapGenerator = SourceMapGenerator$4;
5515
- }) });
5740
+ exports.SourceMapGenerator = SourceMapGenerator;
5741
+ }));
5516
5742
 
5517
5743
  //#endregion
5518
5744
  //#region ../../node_modules/source-map-js/lib/binary-search.js
5519
- var require_binary_search = /* @__PURE__ */ __commonJS({ "../../node_modules/source-map-js/lib/binary-search.js": ((exports) => {
5745
+ var require_binary_search = /* @__PURE__ */ __commonJSMin(((exports) => {
5520
5746
  exports.GREATEST_LOWER_BOUND = 1;
5521
5747
  exports.LEAST_UPPER_BOUND = 2;
5522
5748
  /**
@@ -5574,11 +5800,11 @@ var require_binary_search = /* @__PURE__ */ __commonJS({ "../../node_modules/sou
5574
5800
  }
5575
5801
  return index;
5576
5802
  };
5577
- }) });
5803
+ }));
5578
5804
 
5579
5805
  //#endregion
5580
5806
  //#region ../../node_modules/source-map-js/lib/quick-sort.js
5581
- var require_quick_sort = /* @__PURE__ */ __commonJS({ "../../node_modules/source-map-js/lib/quick-sort.js": ((exports) => {
5807
+ var require_quick_sort = /* @__PURE__ */ __commonJSMin(((exports) => {
5582
5808
  function SortTemplate(comparator) {
5583
5809
  /**
5584
5810
  * Swap the elements indexed by `x` and `y` in the array `ary`.
@@ -5618,20 +5844,20 @@ var require_quick_sort = /* @__PURE__ */ __commonJS({ "../../node_modules/source
5618
5844
  * @param {Number} r
5619
5845
  * End index of the array
5620
5846
  */
5621
- function doQuickSort(ary, comparator$1, p$1, r) {
5622
- if (p$1 < r) {
5623
- var pivotIndex = randomIntInRange(p$1, r);
5624
- var i = p$1 - 1;
5847
+ function doQuickSort(ary, comparator, p, r) {
5848
+ if (p < r) {
5849
+ var pivotIndex = randomIntInRange(p, r);
5850
+ var i = p - 1;
5625
5851
  swap(ary, pivotIndex, r);
5626
5852
  var pivot = ary[r];
5627
- for (var j = p$1; j < r; j++) if (comparator$1(ary[j], pivot, false) <= 0) {
5853
+ for (var j = p; j < r; j++) if (comparator(ary[j], pivot, false) <= 0) {
5628
5854
  i += 1;
5629
5855
  swap(ary, i, j);
5630
5856
  }
5631
5857
  swap(ary, i + 1, j);
5632
5858
  var q = i + 1;
5633
- doQuickSort(ary, comparator$1, p$1, q - 1);
5634
- doQuickSort(ary, comparator$1, q + 1, r);
5859
+ doQuickSort(ary, comparator, p, q - 1);
5860
+ doQuickSort(ary, comparator, q + 1, r);
5635
5861
  }
5636
5862
  }
5637
5863
  return doQuickSort;
@@ -5657,30 +5883,30 @@ var require_quick_sort = /* @__PURE__ */ __commonJS({ "../../node_modules/source
5657
5883
  }
5658
5884
  doQuickSort(ary, comparator, start, ary.length - 1);
5659
5885
  };
5660
- }) });
5886
+ }));
5661
5887
 
5662
5888
  //#endregion
5663
5889
  //#region ../../node_modules/source-map-js/lib/source-map-consumer.js
5664
- var require_source_map_consumer = /* @__PURE__ */ __commonJS({ "../../node_modules/source-map-js/lib/source-map-consumer.js": ((exports) => {
5665
- var util$1 = require_util();
5890
+ var require_source_map_consumer = /* @__PURE__ */ __commonJSMin(((exports) => {
5891
+ var util = require_util();
5666
5892
  var binarySearch = require_binary_search();
5667
5893
  var ArraySet = require_array_set().ArraySet;
5668
5894
  var base64VLQ = require_base64_vlq();
5669
5895
  var quickSort = require_quick_sort().quickSort;
5670
- function SourceMapConsumer$3(aSourceMap, aSourceMapURL) {
5896
+ function SourceMapConsumer(aSourceMap, aSourceMapURL) {
5671
5897
  var sourceMap = aSourceMap;
5672
- if (typeof aSourceMap === "string") sourceMap = util$1.parseSourceMapInput(aSourceMap);
5898
+ if (typeof aSourceMap === "string") sourceMap = util.parseSourceMapInput(aSourceMap);
5673
5899
  return sourceMap.sections != null ? new IndexedSourceMapConsumer(sourceMap, aSourceMapURL) : new BasicSourceMapConsumer(sourceMap, aSourceMapURL);
5674
5900
  }
5675
- SourceMapConsumer$3.fromSourceMap = function(aSourceMap, aSourceMapURL) {
5901
+ SourceMapConsumer.fromSourceMap = function(aSourceMap, aSourceMapURL) {
5676
5902
  return BasicSourceMapConsumer.fromSourceMap(aSourceMap, aSourceMapURL);
5677
5903
  };
5678
5904
  /**
5679
5905
  * The version of the source mapping spec that we are consuming.
5680
5906
  */
5681
- SourceMapConsumer$3.prototype._version = 3;
5682
- SourceMapConsumer$3.prototype.__generatedMappings = null;
5683
- Object.defineProperty(SourceMapConsumer$3.prototype, "_generatedMappings", {
5907
+ SourceMapConsumer.prototype._version = 3;
5908
+ SourceMapConsumer.prototype.__generatedMappings = null;
5909
+ Object.defineProperty(SourceMapConsumer.prototype, "_generatedMappings", {
5684
5910
  configurable: true,
5685
5911
  enumerable: true,
5686
5912
  get: function() {
@@ -5688,8 +5914,8 @@ var require_source_map_consumer = /* @__PURE__ */ __commonJS({ "../../node_modul
5688
5914
  return this.__generatedMappings;
5689
5915
  }
5690
5916
  });
5691
- SourceMapConsumer$3.prototype.__originalMappings = null;
5692
- Object.defineProperty(SourceMapConsumer$3.prototype, "_originalMappings", {
5917
+ SourceMapConsumer.prototype.__originalMappings = null;
5918
+ Object.defineProperty(SourceMapConsumer.prototype, "_originalMappings", {
5693
5919
  configurable: true,
5694
5920
  enumerable: true,
5695
5921
  get: function() {
@@ -5697,7 +5923,7 @@ var require_source_map_consumer = /* @__PURE__ */ __commonJS({ "../../node_modul
5697
5923
  return this.__originalMappings;
5698
5924
  }
5699
5925
  });
5700
- SourceMapConsumer$3.prototype._charIsMappingSeparator = function SourceMapConsumer_charIsMappingSeparator(aStr, index) {
5926
+ SourceMapConsumer.prototype._charIsMappingSeparator = function SourceMapConsumer_charIsMappingSeparator(aStr, index) {
5701
5927
  var c = aStr.charAt(index);
5702
5928
  return c === ";" || c === ",";
5703
5929
  };
@@ -5706,13 +5932,13 @@ var require_source_map_consumer = /* @__PURE__ */ __commonJS({ "../../node_modul
5706
5932
  * query (the ordered arrays in the `this.__generatedMappings` and
5707
5933
  * `this.__originalMappings` properties).
5708
5934
  */
5709
- SourceMapConsumer$3.prototype._parseMappings = function SourceMapConsumer_parseMappings(aStr, aSourceRoot) {
5935
+ SourceMapConsumer.prototype._parseMappings = function SourceMapConsumer_parseMappings(aStr, aSourceRoot) {
5710
5936
  throw new Error("Subclasses must implement _parseMappings");
5711
5937
  };
5712
- SourceMapConsumer$3.GENERATED_ORDER = 1;
5713
- SourceMapConsumer$3.ORIGINAL_ORDER = 2;
5714
- SourceMapConsumer$3.GREATEST_LOWER_BOUND = 1;
5715
- SourceMapConsumer$3.LEAST_UPPER_BOUND = 2;
5938
+ SourceMapConsumer.GENERATED_ORDER = 1;
5939
+ SourceMapConsumer.ORIGINAL_ORDER = 2;
5940
+ SourceMapConsumer.GREATEST_LOWER_BOUND = 1;
5941
+ SourceMapConsumer.LEAST_UPPER_BOUND = 2;
5716
5942
  /**
5717
5943
  * Iterate over each mapping between an original source/line/column and a
5718
5944
  * generated line/column in this source map.
@@ -5729,15 +5955,15 @@ var require_source_map_consumer = /* @__PURE__ */ __commonJS({ "../../node_modul
5729
5955
  * order or the original's source/line/column order, respectively. Defaults to
5730
5956
  * `SourceMapConsumer.GENERATED_ORDER`.
5731
5957
  */
5732
- SourceMapConsumer$3.prototype.eachMapping = function SourceMapConsumer_eachMapping(aCallback, aContext, aOrder) {
5958
+ SourceMapConsumer.prototype.eachMapping = function SourceMapConsumer_eachMapping(aCallback, aContext, aOrder) {
5733
5959
  var context = aContext || null;
5734
- var order = aOrder || SourceMapConsumer$3.GENERATED_ORDER;
5960
+ var order = aOrder || SourceMapConsumer.GENERATED_ORDER;
5735
5961
  var mappings;
5736
5962
  switch (order) {
5737
- case SourceMapConsumer$3.GENERATED_ORDER:
5963
+ case SourceMapConsumer.GENERATED_ORDER:
5738
5964
  mappings = this._generatedMappings;
5739
5965
  break;
5740
- case SourceMapConsumer$3.ORIGINAL_ORDER:
5966
+ case SourceMapConsumer.ORIGINAL_ORDER:
5741
5967
  mappings = this._originalMappings;
5742
5968
  break;
5743
5969
  default: throw new Error("Unknown order of iteration.");
@@ -5750,7 +5976,7 @@ var require_source_map_consumer = /* @__PURE__ */ __commonJS({ "../../node_modul
5750
5976
  for (var i = 0, n = mappings.length; i < n; i++) {
5751
5977
  var mapping = mappings[i];
5752
5978
  var source = mapping.source === null ? null : sources.at(mapping.source);
5753
- if (source !== null) source = util$1.computeSourceURL(sourceRoot, source, sourceMapURL);
5979
+ if (source !== null) source = util.computeSourceURL(sourceRoot, source, sourceMapURL);
5754
5980
  boundCallback({
5755
5981
  source,
5756
5982
  generatedLine: mapping.generatedLine,
@@ -5783,26 +6009,26 @@ var require_source_map_consumer = /* @__PURE__ */ __commonJS({ "../../node_modul
5783
6009
  * - column: The column number in the generated source, or null.
5784
6010
  * The column number is 0-based.
5785
6011
  */
5786
- SourceMapConsumer$3.prototype.allGeneratedPositionsFor = function SourceMapConsumer_allGeneratedPositionsFor(aArgs) {
5787
- var line = util$1.getArg(aArgs, "line");
6012
+ SourceMapConsumer.prototype.allGeneratedPositionsFor = function SourceMapConsumer_allGeneratedPositionsFor(aArgs) {
6013
+ var line = util.getArg(aArgs, "line");
5788
6014
  var needle = {
5789
- source: util$1.getArg(aArgs, "source"),
6015
+ source: util.getArg(aArgs, "source"),
5790
6016
  originalLine: line,
5791
- originalColumn: util$1.getArg(aArgs, "column", 0)
6017
+ originalColumn: util.getArg(aArgs, "column", 0)
5792
6018
  };
5793
6019
  needle.source = this._findSourceIndex(needle.source);
5794
6020
  if (needle.source < 0) return [];
5795
6021
  var mappings = [];
5796
- var index = this._findMapping(needle, this._originalMappings, "originalLine", "originalColumn", util$1.compareByOriginalPositions, binarySearch.LEAST_UPPER_BOUND);
6022
+ var index = this._findMapping(needle, this._originalMappings, "originalLine", "originalColumn", util.compareByOriginalPositions, binarySearch.LEAST_UPPER_BOUND);
5797
6023
  if (index >= 0) {
5798
6024
  var mapping = this._originalMappings[index];
5799
6025
  if (aArgs.column === void 0) {
5800
6026
  var originalLine = mapping.originalLine;
5801
6027
  while (mapping && mapping.originalLine === originalLine) {
5802
6028
  mappings.push({
5803
- line: util$1.getArg(mapping, "generatedLine", null),
5804
- column: util$1.getArg(mapping, "generatedColumn", null),
5805
- lastColumn: util$1.getArg(mapping, "lastGeneratedColumn", null)
6029
+ line: util.getArg(mapping, "generatedLine", null),
6030
+ column: util.getArg(mapping, "generatedColumn", null),
6031
+ lastColumn: util.getArg(mapping, "lastGeneratedColumn", null)
5806
6032
  });
5807
6033
  mapping = this._originalMappings[++index];
5808
6034
  }
@@ -5810,9 +6036,9 @@ var require_source_map_consumer = /* @__PURE__ */ __commonJS({ "../../node_modul
5810
6036
  var originalColumn = mapping.originalColumn;
5811
6037
  while (mapping && mapping.originalLine === line && mapping.originalColumn == originalColumn) {
5812
6038
  mappings.push({
5813
- line: util$1.getArg(mapping, "generatedLine", null),
5814
- column: util$1.getArg(mapping, "generatedColumn", null),
5815
- lastColumn: util$1.getArg(mapping, "lastGeneratedColumn", null)
6039
+ line: util.getArg(mapping, "generatedLine", null),
6040
+ column: util.getArg(mapping, "generatedColumn", null),
6041
+ lastColumn: util.getArg(mapping, "lastGeneratedColumn", null)
5816
6042
  });
5817
6043
  mapping = this._originalMappings[++index];
5818
6044
  }
@@ -5820,7 +6046,7 @@ var require_source_map_consumer = /* @__PURE__ */ __commonJS({ "../../node_modul
5820
6046
  }
5821
6047
  return mappings;
5822
6048
  };
5823
- exports.SourceMapConsumer = SourceMapConsumer$3;
6049
+ exports.SourceMapConsumer = SourceMapConsumer;
5824
6050
  /**
5825
6051
  * A BasicSourceMapConsumer instance represents a parsed source map which we can
5826
6052
  * query for information about the original file positions by giving it a file
@@ -5857,23 +6083,23 @@ var require_source_map_consumer = /* @__PURE__ */ __commonJS({ "../../node_modul
5857
6083
  */
5858
6084
  function BasicSourceMapConsumer(aSourceMap, aSourceMapURL) {
5859
6085
  var sourceMap = aSourceMap;
5860
- if (typeof aSourceMap === "string") sourceMap = util$1.parseSourceMapInput(aSourceMap);
5861
- var version = util$1.getArg(sourceMap, "version");
5862
- var sources = util$1.getArg(sourceMap, "sources");
5863
- var names = util$1.getArg(sourceMap, "names", []);
5864
- var sourceRoot = util$1.getArg(sourceMap, "sourceRoot", null);
5865
- var sourcesContent = util$1.getArg(sourceMap, "sourcesContent", null);
5866
- var mappings = util$1.getArg(sourceMap, "mappings");
5867
- var file = util$1.getArg(sourceMap, "file", null);
6086
+ if (typeof aSourceMap === "string") sourceMap = util.parseSourceMapInput(aSourceMap);
6087
+ var version = util.getArg(sourceMap, "version");
6088
+ var sources = util.getArg(sourceMap, "sources");
6089
+ var names = util.getArg(sourceMap, "names", []);
6090
+ var sourceRoot = util.getArg(sourceMap, "sourceRoot", null);
6091
+ var sourcesContent = util.getArg(sourceMap, "sourcesContent", null);
6092
+ var mappings = util.getArg(sourceMap, "mappings");
6093
+ var file = util.getArg(sourceMap, "file", null);
5868
6094
  if (version != this._version) throw new Error("Unsupported version: " + version);
5869
- if (sourceRoot) sourceRoot = util$1.normalize(sourceRoot);
5870
- sources = sources.map(String).map(util$1.normalize).map(function(source) {
5871
- return sourceRoot && util$1.isAbsolute(sourceRoot) && util$1.isAbsolute(source) ? util$1.relative(sourceRoot, source) : source;
6095
+ if (sourceRoot) sourceRoot = util.normalize(sourceRoot);
6096
+ sources = sources.map(String).map(util.normalize).map(function(source) {
6097
+ return sourceRoot && util.isAbsolute(sourceRoot) && util.isAbsolute(source) ? util.relative(sourceRoot, source) : source;
5872
6098
  });
5873
6099
  this._names = ArraySet.fromArray(names.map(String), true);
5874
6100
  this._sources = ArraySet.fromArray(sources, true);
5875
6101
  this._absoluteSources = this._sources.toArray().map(function(s) {
5876
- return util$1.computeSourceURL(sourceRoot, s, aSourceMapURL);
6102
+ return util.computeSourceURL(sourceRoot, s, aSourceMapURL);
5877
6103
  });
5878
6104
  this.sourceRoot = sourceRoot;
5879
6105
  this.sourcesContent = sourcesContent;
@@ -5881,18 +6107,18 @@ var require_source_map_consumer = /* @__PURE__ */ __commonJS({ "../../node_modul
5881
6107
  this._sourceMapURL = aSourceMapURL;
5882
6108
  this.file = file;
5883
6109
  }
5884
- BasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer$3.prototype);
5885
- BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer$3;
6110
+ BasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype);
6111
+ BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer;
5886
6112
  /**
5887
6113
  * Utility function to find the index of a source. Returns -1 if not
5888
6114
  * found.
5889
6115
  */
5890
6116
  BasicSourceMapConsumer.prototype._findSourceIndex = function(aSource) {
5891
6117
  var relativeSource = aSource;
5892
- if (this.sourceRoot != null) relativeSource = util$1.relative(this.sourceRoot, relativeSource);
6118
+ if (this.sourceRoot != null) relativeSource = util.relative(this.sourceRoot, relativeSource);
5893
6119
  if (this._sources.has(relativeSource)) return this._sources.indexOf(relativeSource);
5894
- var i;
5895
- for (i = 0; i < this._absoluteSources.length; ++i) if (this._absoluteSources[i] == aSource) return i;
6120
+ var i = 0;
6121
+ for (; i < this._absoluteSources.length; ++i) if (this._absoluteSources[i] == aSource) return i;
5896
6122
  return -1;
5897
6123
  };
5898
6124
  /**
@@ -5913,7 +6139,7 @@ var require_source_map_consumer = /* @__PURE__ */ __commonJS({ "../../node_modul
5913
6139
  smc.file = aSourceMap._file;
5914
6140
  smc._sourceMapURL = aSourceMapURL;
5915
6141
  smc._absoluteSources = smc._sources.toArray().map(function(s) {
5916
- return util$1.computeSourceURL(smc.sourceRoot, s, aSourceMapURL);
6142
+ return util.computeSourceURL(smc.sourceRoot, s, aSourceMapURL);
5917
6143
  });
5918
6144
  var generatedMappings = aSourceMap._mappings.toArray().slice();
5919
6145
  var destGeneratedMappings = smc.__generatedMappings = [];
@@ -5932,7 +6158,7 @@ var require_source_map_consumer = /* @__PURE__ */ __commonJS({ "../../node_modul
5932
6158
  }
5933
6159
  destGeneratedMappings.push(destMapping);
5934
6160
  }
5935
- quickSort(smc.__originalMappings, util$1.compareByOriginalPositions);
6161
+ quickSort(smc.__originalMappings, util.compareByOriginalPositions);
5936
6162
  return smc;
5937
6163
  };
5938
6164
  /**
@@ -5961,7 +6187,7 @@ var require_source_map_consumer = /* @__PURE__ */ __commonJS({ "../../node_modul
5961
6187
  * query (the ordered arrays in the `this.__generatedMappings` and
5962
6188
  * `this.__originalMappings` properties).
5963
6189
  */
5964
- const compareGenerated = util$1.compareByGeneratedPositionsDeflatedNoLine;
6190
+ const compareGenerated = util.compareByGeneratedPositionsDeflatedNoLine;
5965
6191
  function sortGenerated(array, start) {
5966
6192
  let l = array.length;
5967
6193
  let n = array.length - start;
@@ -6041,7 +6267,7 @@ var require_source_map_consumer = /* @__PURE__ */ __commonJS({ "../../node_modul
6041
6267
  }
6042
6268
  sortGenerated(generatedMappings, subarrayStart);
6043
6269
  this.__generatedMappings = generatedMappings;
6044
- for (var i = 0; i < originalMappings.length; i++) if (originalMappings[i] != null) quickSort(originalMappings[i], util$1.compareByOriginalPositionsNoSource);
6270
+ for (var i = 0; i < originalMappings.length; i++) if (originalMappings[i] != null) quickSort(originalMappings[i], util.compareByOriginalPositionsNoSource);
6045
6271
  this.__originalMappings = [].concat(...originalMappings);
6046
6272
  };
6047
6273
  /**
@@ -6096,24 +6322,24 @@ var require_source_map_consumer = /* @__PURE__ */ __commonJS({ "../../node_modul
6096
6322
  */
6097
6323
  BasicSourceMapConsumer.prototype.originalPositionFor = function SourceMapConsumer_originalPositionFor(aArgs) {
6098
6324
  var needle = {
6099
- generatedLine: util$1.getArg(aArgs, "line"),
6100
- generatedColumn: util$1.getArg(aArgs, "column")
6325
+ generatedLine: util.getArg(aArgs, "line"),
6326
+ generatedColumn: util.getArg(aArgs, "column")
6101
6327
  };
6102
- var index = this._findMapping(needle, this._generatedMappings, "generatedLine", "generatedColumn", util$1.compareByGeneratedPositionsDeflated, util$1.getArg(aArgs, "bias", SourceMapConsumer$3.GREATEST_LOWER_BOUND));
6328
+ var index = this._findMapping(needle, this._generatedMappings, "generatedLine", "generatedColumn", util.compareByGeneratedPositionsDeflated, util.getArg(aArgs, "bias", SourceMapConsumer.GREATEST_LOWER_BOUND));
6103
6329
  if (index >= 0) {
6104
6330
  var mapping = this._generatedMappings[index];
6105
6331
  if (mapping.generatedLine === needle.generatedLine) {
6106
- var source = util$1.getArg(mapping, "source", null);
6332
+ var source = util.getArg(mapping, "source", null);
6107
6333
  if (source !== null) {
6108
6334
  source = this._sources.at(source);
6109
- source = util$1.computeSourceURL(this.sourceRoot, source, this._sourceMapURL);
6335
+ source = util.computeSourceURL(this.sourceRoot, source, this._sourceMapURL);
6110
6336
  }
6111
- var name = util$1.getArg(mapping, "name", null);
6337
+ var name = util.getArg(mapping, "name", null);
6112
6338
  if (name !== null) name = this._names.at(name);
6113
6339
  return {
6114
6340
  source,
6115
- line: util$1.getArg(mapping, "originalLine", null),
6116
- column: util$1.getArg(mapping, "originalColumn", null),
6341
+ line: util.getArg(mapping, "originalLine", null),
6342
+ column: util.getArg(mapping, "originalColumn", null),
6117
6343
  name
6118
6344
  };
6119
6345
  }
@@ -6145,9 +6371,9 @@ var require_source_map_consumer = /* @__PURE__ */ __commonJS({ "../../node_modul
6145
6371
  var index = this._findSourceIndex(aSource);
6146
6372
  if (index >= 0) return this.sourcesContent[index];
6147
6373
  var relativeSource = aSource;
6148
- if (this.sourceRoot != null) relativeSource = util$1.relative(this.sourceRoot, relativeSource);
6374
+ if (this.sourceRoot != null) relativeSource = util.relative(this.sourceRoot, relativeSource);
6149
6375
  var url;
6150
- if (this.sourceRoot != null && (url = util$1.urlParse(this.sourceRoot))) {
6376
+ if (this.sourceRoot != null && (url = util.urlParse(this.sourceRoot))) {
6151
6377
  var fileUriAbsPath = relativeSource.replace(/^file:\/\//, "");
6152
6378
  if (url.scheme == "file" && this._sources.has(fileUriAbsPath)) return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)];
6153
6379
  if ((!url.path || url.path == "/") && this._sources.has("/" + relativeSource)) return this.sourcesContent[this._sources.indexOf("/" + relativeSource)];
@@ -6179,7 +6405,7 @@ var require_source_map_consumer = /* @__PURE__ */ __commonJS({ "../../node_modul
6179
6405
  * The column number is 0-based.
6180
6406
  */
6181
6407
  BasicSourceMapConsumer.prototype.generatedPositionFor = function SourceMapConsumer_generatedPositionFor(aArgs) {
6182
- var source = util$1.getArg(aArgs, "source");
6408
+ var source = util.getArg(aArgs, "source");
6183
6409
  source = this._findSourceIndex(source);
6184
6410
  if (source < 0) return {
6185
6411
  line: null,
@@ -6188,16 +6414,16 @@ var require_source_map_consumer = /* @__PURE__ */ __commonJS({ "../../node_modul
6188
6414
  };
6189
6415
  var needle = {
6190
6416
  source,
6191
- originalLine: util$1.getArg(aArgs, "line"),
6192
- originalColumn: util$1.getArg(aArgs, "column")
6417
+ originalLine: util.getArg(aArgs, "line"),
6418
+ originalColumn: util.getArg(aArgs, "column")
6193
6419
  };
6194
- var index = this._findMapping(needle, this._originalMappings, "originalLine", "originalColumn", util$1.compareByOriginalPositions, util$1.getArg(aArgs, "bias", SourceMapConsumer$3.GREATEST_LOWER_BOUND));
6420
+ var index = this._findMapping(needle, this._originalMappings, "originalLine", "originalColumn", util.compareByOriginalPositions, util.getArg(aArgs, "bias", SourceMapConsumer.GREATEST_LOWER_BOUND));
6195
6421
  if (index >= 0) {
6196
6422
  var mapping = this._originalMappings[index];
6197
6423
  if (mapping.source === needle.source) return {
6198
- line: util$1.getArg(mapping, "generatedLine", null),
6199
- column: util$1.getArg(mapping, "generatedColumn", null),
6200
- lastColumn: util$1.getArg(mapping, "lastGeneratedColumn", null)
6424
+ line: util.getArg(mapping, "generatedLine", null),
6425
+ column: util.getArg(mapping, "generatedColumn", null),
6426
+ lastColumn: util.getArg(mapping, "lastGeneratedColumn", null)
6201
6427
  };
6202
6428
  }
6203
6429
  return {
@@ -6258,9 +6484,9 @@ var require_source_map_consumer = /* @__PURE__ */ __commonJS({ "../../node_modul
6258
6484
  */
6259
6485
  function IndexedSourceMapConsumer(aSourceMap, aSourceMapURL) {
6260
6486
  var sourceMap = aSourceMap;
6261
- if (typeof aSourceMap === "string") sourceMap = util$1.parseSourceMapInput(aSourceMap);
6262
- var version = util$1.getArg(sourceMap, "version");
6263
- var sections = util$1.getArg(sourceMap, "sections");
6487
+ if (typeof aSourceMap === "string") sourceMap = util.parseSourceMapInput(aSourceMap);
6488
+ var version = util.getArg(sourceMap, "version");
6489
+ var sections = util.getArg(sourceMap, "sections");
6264
6490
  if (version != this._version) throw new Error("Unsupported version: " + version);
6265
6491
  this._sources = new ArraySet();
6266
6492
  this._names = new ArraySet();
@@ -6270,9 +6496,9 @@ var require_source_map_consumer = /* @__PURE__ */ __commonJS({ "../../node_modul
6270
6496
  };
6271
6497
  this._sections = sections.map(function(s) {
6272
6498
  if (s.url) throw new Error("Support for url field in sections not implemented.");
6273
- var offset = util$1.getArg(s, "offset");
6274
- var offsetLine = util$1.getArg(offset, "line");
6275
- var offsetColumn = util$1.getArg(offset, "column");
6499
+ var offset = util.getArg(s, "offset");
6500
+ var offsetLine = util.getArg(offset, "line");
6501
+ var offsetColumn = util.getArg(offset, "column");
6276
6502
  if (offsetLine < lastOffset.line || offsetLine === lastOffset.line && offsetColumn < lastOffset.column) throw new Error("Section offsets must be ordered and non-overlapping.");
6277
6503
  lastOffset = offset;
6278
6504
  return {
@@ -6280,12 +6506,12 @@ var require_source_map_consumer = /* @__PURE__ */ __commonJS({ "../../node_modul
6280
6506
  generatedLine: offsetLine + 1,
6281
6507
  generatedColumn: offsetColumn + 1
6282
6508
  },
6283
- consumer: new SourceMapConsumer$3(util$1.getArg(s, "map"), aSourceMapURL)
6509
+ consumer: new SourceMapConsumer(util.getArg(s, "map"), aSourceMapURL)
6284
6510
  };
6285
6511
  });
6286
6512
  }
6287
- IndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer$3.prototype);
6288
- IndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer$3;
6513
+ IndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype);
6514
+ IndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer;
6289
6515
  /**
6290
6516
  * The version of the source mapping spec that we are consuming.
6291
6517
  */
@@ -6319,13 +6545,13 @@ var require_source_map_consumer = /* @__PURE__ */ __commonJS({ "../../node_modul
6319
6545
  */
6320
6546
  IndexedSourceMapConsumer.prototype.originalPositionFor = function IndexedSourceMapConsumer_originalPositionFor(aArgs) {
6321
6547
  var needle = {
6322
- generatedLine: util$1.getArg(aArgs, "line"),
6323
- generatedColumn: util$1.getArg(aArgs, "column")
6548
+ generatedLine: util.getArg(aArgs, "line"),
6549
+ generatedColumn: util.getArg(aArgs, "column")
6324
6550
  };
6325
- var sectionIndex = binarySearch.search(needle, this._sections, function(needle$1, section$1) {
6326
- var cmp = needle$1.generatedLine - section$1.generatedOffset.generatedLine;
6551
+ var sectionIndex = binarySearch.search(needle, this._sections, function(needle, section) {
6552
+ var cmp = needle.generatedLine - section.generatedOffset.generatedLine;
6327
6553
  if (cmp) return cmp;
6328
- return needle$1.generatedColumn - section$1.generatedOffset.generatedColumn;
6554
+ return needle.generatedColumn - section.generatedOffset.generatedColumn;
6329
6555
  });
6330
6556
  var section = this._sections[sectionIndex];
6331
6557
  if (!section) return {
@@ -6383,7 +6609,7 @@ var require_source_map_consumer = /* @__PURE__ */ __commonJS({ "../../node_modul
6383
6609
  IndexedSourceMapConsumer.prototype.generatedPositionFor = function IndexedSourceMapConsumer_generatedPositionFor(aArgs) {
6384
6610
  for (var i = 0; i < this._sections.length; i++) {
6385
6611
  var section = this._sections[i];
6386
- if (section.consumer._findSourceIndex(util$1.getArg(aArgs, "source")) === -1) continue;
6612
+ if (section.consumer._findSourceIndex(util.getArg(aArgs, "source")) === -1) continue;
6387
6613
  var generatedPosition = section.consumer.generatedPositionFor(aArgs);
6388
6614
  if (generatedPosition) return {
6389
6615
  line: generatedPosition.line + (section.generatedOffset.generatedLine - 1),
@@ -6409,7 +6635,7 @@ var require_source_map_consumer = /* @__PURE__ */ __commonJS({ "../../node_modul
6409
6635
  for (var j = 0; j < sectionMappings.length; j++) {
6410
6636
  var mapping = sectionMappings[j];
6411
6637
  var source = section.consumer._sources.at(mapping.source);
6412
- if (source !== null) source = util$1.computeSourceURL(section.consumer.sourceRoot, source, this._sourceMapURL);
6638
+ if (source !== null) source = util.computeSourceURL(section.consumer.sourceRoot, source, this._sourceMapURL);
6413
6639
  this._sources.add(source);
6414
6640
  source = this._sources.indexOf(source);
6415
6641
  var name = null;
@@ -6430,16 +6656,16 @@ var require_source_map_consumer = /* @__PURE__ */ __commonJS({ "../../node_modul
6430
6656
  if (typeof adjustedMapping.originalLine === "number") this.__originalMappings.push(adjustedMapping);
6431
6657
  }
6432
6658
  }
6433
- quickSort(this.__generatedMappings, util$1.compareByGeneratedPositionsDeflated);
6434
- quickSort(this.__originalMappings, util$1.compareByOriginalPositions);
6659
+ quickSort(this.__generatedMappings, util.compareByGeneratedPositionsDeflated);
6660
+ quickSort(this.__originalMappings, util.compareByOriginalPositions);
6435
6661
  };
6436
6662
  exports.IndexedSourceMapConsumer = IndexedSourceMapConsumer;
6437
- }) });
6663
+ }));
6438
6664
 
6439
6665
  //#endregion
6440
6666
  //#region ../../node_modules/source-map-js/lib/source-node.js
6441
- var require_source_node = /* @__PURE__ */ __commonJS({ "../../node_modules/source-map-js/lib/source-node.js": ((exports) => {
6442
- var SourceMapGenerator$3 = require_source_map_generator().SourceMapGenerator;
6667
+ var require_source_node = /* @__PURE__ */ __commonJSMin(((exports) => {
6668
+ var SourceMapGenerator = require_source_map_generator().SourceMapGenerator;
6443
6669
  var util = require_util();
6444
6670
  var REGEX_NEWLINE = /(\r?\n)/;
6445
6671
  var NEWLINE_CODE = 10;
@@ -6487,18 +6713,20 @@ var require_source_node = /* @__PURE__ */ __commonJS({ "../../node_modules/sourc
6487
6713
  var lastGeneratedLine = 1, lastGeneratedColumn = 0;
6488
6714
  var lastMapping = null;
6489
6715
  aSourceMapConsumer.eachMapping(function(mapping) {
6490
- if (lastMapping !== null) if (lastGeneratedLine < mapping.generatedLine) {
6491
- addMappingWithCode(lastMapping, shiftNextLine());
6492
- lastGeneratedLine++;
6493
- lastGeneratedColumn = 0;
6494
- } else {
6495
- var nextLine = remainingLines[remainingLinesIndex] || "";
6496
- var code = nextLine.substr(0, mapping.generatedColumn - lastGeneratedColumn);
6497
- remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn - lastGeneratedColumn);
6498
- lastGeneratedColumn = mapping.generatedColumn;
6499
- addMappingWithCode(lastMapping, code);
6500
- lastMapping = mapping;
6501
- return;
6716
+ if (lastMapping !== null) {
6717
+ if (lastGeneratedLine < mapping.generatedLine) {
6718
+ addMappingWithCode(lastMapping, shiftNextLine());
6719
+ lastGeneratedLine++;
6720
+ lastGeneratedColumn = 0;
6721
+ } else {
6722
+ var nextLine = remainingLines[remainingLinesIndex] || "";
6723
+ var code = nextLine.substr(0, mapping.generatedColumn - lastGeneratedColumn);
6724
+ remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn - lastGeneratedColumn);
6725
+ lastGeneratedColumn = mapping.generatedColumn;
6726
+ addMappingWithCode(lastMapping, code);
6727
+ lastMapping = mapping;
6728
+ return;
6729
+ }
6502
6730
  }
6503
6731
  while (lastGeneratedLine < mapping.generatedLine) {
6504
6732
  node.add(shiftNextLine());
@@ -6656,7 +6884,7 @@ var require_source_node = /* @__PURE__ */ __commonJS({ "../../node_modules/sourc
6656
6884
  line: 1,
6657
6885
  column: 0
6658
6886
  };
6659
- var map = new SourceMapGenerator$3(aArgs);
6887
+ var map = new SourceMapGenerator(aArgs);
6660
6888
  var sourceMappingActive = false;
6661
6889
  var lastOriginalSource = null;
6662
6890
  var lastOriginalLine = null;
@@ -6719,29 +6947,36 @@ var require_source_node = /* @__PURE__ */ __commonJS({ "../../node_modules/sourc
6719
6947
  };
6720
6948
  };
6721
6949
  exports.SourceNode = SourceNode;
6722
- }) });
6950
+ }));
6723
6951
 
6724
6952
  //#endregion
6725
6953
  //#region ../../node_modules/source-map-js/source-map.js
6726
- var require_source_map = /* @__PURE__ */ __commonJS({ "../../node_modules/source-map-js/source-map.js": ((exports) => {
6954
+ var require_source_map = /* @__PURE__ */ __commonJSMin(((exports) => {
6727
6955
  exports.SourceMapGenerator = require_source_map_generator().SourceMapGenerator;
6728
6956
  exports.SourceMapConsumer = require_source_map_consumer().SourceMapConsumer;
6729
6957
  exports.SourceNode = require_source_node().SourceNode;
6730
- }) });
6958
+ }));
6731
6959
 
6732
6960
  //#endregion
6733
6961
  //#region ../../node_modules/postcss/lib/previous-map.js
6734
- var require_previous_map = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib/previous-map.js": ((exports, module) => {
6735
- let { existsSync: existsSync$2, readFileSync: readFileSync$1 } = __require("fs");
6736
- let { dirname: dirname$2, join: join$2 } = __require("path");
6737
- let { SourceMapConsumer: SourceMapConsumer$2, SourceMapGenerator: SourceMapGenerator$2 } = require_source_map();
6962
+ var require_previous_map = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6963
+ let { existsSync: existsSync$1, readFileSync, realpathSync } = __require("fs");
6964
+ let { dirname: dirname$2, isAbsolute: isAbsolute$1, join: join$1, relative: relative$2, sep: sep$1 } = __require("path");
6965
+ let { SourceMapConsumer, SourceMapGenerator } = require_source_map();
6966
+ function realPath(path) {
6967
+ try {
6968
+ return realpathSync(path);
6969
+ } catch {
6970
+ return path;
6971
+ }
6972
+ }
6738
6973
  function fromBase64(str) {
6739
6974
  if (Buffer) return Buffer.from(str, "base64").toString();
6740
6975
  else
6741
6976
  /* c8 ignore next 2 */
6742
6977
  return window.atob(str);
6743
6978
  }
6744
- var PreviousMap$2 = class {
6979
+ var PreviousMap = class {
6745
6980
  constructor(css, opts) {
6746
6981
  if (opts.map === false) return;
6747
6982
  if (opts.unsafeMap) this.unsafeMap = true;
@@ -6754,7 +6989,7 @@ var require_previous_map = /* @__PURE__ */ __commonJS({ "../../node_modules/post
6754
6989
  if (text) this.text = text;
6755
6990
  }
6756
6991
  consumer() {
6757
- if (!this.consumerCache) this.consumerCache = new SourceMapConsumer$2(this.json || this.text);
6992
+ if (!this.consumerCache) this.consumerCache = new SourceMapConsumer(this.json || this.text);
6758
6993
  return this.consumerCache;
6759
6994
  }
6760
6995
  decodeInline(text) {
@@ -6782,35 +7017,38 @@ var require_previous_map = /* @__PURE__ */ __commonJS({ "../../node_modules/post
6782
7017
  let end = css.indexOf("*/", start);
6783
7018
  if (start > -1 && end > -1) this.annotation = this.getAnnotationURL(css.substring(start, end));
6784
7019
  }
6785
- loadFile(path$2, cssFile, trusted) {
6786
- /* c8 ignore next 5 */
7020
+ loadFile(path, cssFile, trusted) {
6787
7021
  if (!trusted && !this.unsafeMap) {
6788
- if (!/\.map$/i.test(path$2)) return;
7022
+ if (!/\.map$/i.test(path)) return void 0;
7023
+ if (!cssFile) return void 0;
7024
+ let rel = relative$2(realPath(dirname$2(cssFile)), realPath(path));
7025
+ if (rel === ".." || rel.startsWith(".." + sep$1) || isAbsolute$1(rel)) return;
6789
7026
  }
6790
- this.root = dirname$2(path$2);
6791
- if (existsSync$2(path$2)) {
6792
- this.mapFile = path$2;
6793
- return readFileSync$1(path$2, "utf-8").toString().trim();
7027
+ this.root = dirname$2(path);
7028
+ if (existsSync$1(path)) {
7029
+ this.mapFile = path;
7030
+ return readFileSync(path, "utf-8").toString().trim();
6794
7031
  }
6795
7032
  }
6796
7033
  loadMap(file, prev) {
6797
7034
  if (prev === false) return false;
6798
- if (prev) if (typeof prev === "string") return prev;
6799
- else if (typeof prev === "function") {
6800
- let prevPath = prev(file);
6801
- if (prevPath) {
6802
- let map = this.loadFile(prevPath, file, true);
6803
- if (!map) throw new Error("Unable to load previous source map: " + prevPath.toString());
6804
- return map;
6805
- }
6806
- } else if (prev instanceof SourceMapConsumer$2) return SourceMapGenerator$2.fromSourceMap(prev).toString();
6807
- else if (prev instanceof SourceMapGenerator$2) return prev.toString();
6808
- else if (this.isMap(prev)) return JSON.stringify(prev);
6809
- else throw new Error("Unsupported previous source map format: " + prev.toString());
6810
- else if (this.inline) return this.decodeInline(this.annotation);
7035
+ if (prev) {
7036
+ if (typeof prev === "string") return prev;
7037
+ else if (typeof prev === "function") {
7038
+ let prevPath = prev(file);
7039
+ if (prevPath) {
7040
+ let map = this.loadFile(prevPath, file, true);
7041
+ if (!map) throw new Error("Unable to load previous source map: " + prevPath.toString());
7042
+ return map;
7043
+ }
7044
+ } else if (prev instanceof SourceMapConsumer) return SourceMapGenerator.fromSourceMap(prev).toString();
7045
+ else if (prev instanceof SourceMapGenerator) return prev.toString();
7046
+ else if (this.isMap(prev)) return JSON.stringify(prev);
7047
+ else throw new Error("Unsupported previous source map format: " + prev.toString());
7048
+ } else if (this.inline) return this.decodeInline(this.annotation);
6811
7049
  else if (this.annotation) {
6812
7050
  let map = this.annotation;
6813
- if (file) map = join$2(dirname$2(file), map);
7051
+ if (file) map = join$1(dirname$2(file), map);
6814
7052
  let unknown = this.loadFile(map, file, false);
6815
7053
  if (unknown) try {
6816
7054
  /* c8 ignore next 4 */
@@ -6829,23 +7067,23 @@ var require_previous_map = /* @__PURE__ */ __commonJS({ "../../node_modules/post
6829
7067
  return !!(this.consumer().sourcesContent && this.consumer().sourcesContent.length > 0);
6830
7068
  }
6831
7069
  };
6832
- module.exports = PreviousMap$2;
6833
- PreviousMap$2.default = PreviousMap$2;
6834
- }) });
7070
+ module.exports = PreviousMap;
7071
+ PreviousMap.default = PreviousMap;
7072
+ }));
6835
7073
 
6836
7074
  //#endregion
6837
7075
  //#region ../../node_modules/postcss/lib/input.js
6838
- var require_input = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib/input.js": ((exports, module) => {
7076
+ var require_input = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6839
7077
  let { nanoid } = require_non_secure();
6840
- let { isAbsolute: isAbsolute$1, resolve: resolve$2 } = __require("path");
6841
- let { SourceMapConsumer: SourceMapConsumer$1, SourceMapGenerator: SourceMapGenerator$1 } = require_source_map();
6842
- let { fileURLToPath: fileURLToPath$1, pathToFileURL: pathToFileURL$1 } = __require("url");
6843
- let CssSyntaxError$2 = require_css_syntax_error();
6844
- let PreviousMap$1 = require_previous_map();
7078
+ let { isAbsolute, resolve: resolve$1 } = __require("path");
7079
+ let { SourceMapConsumer, SourceMapGenerator } = require_source_map();
7080
+ let { fileURLToPath, pathToFileURL: pathToFileURL$1 } = __require("url");
7081
+ let CssSyntaxError = require_css_syntax_error();
7082
+ let PreviousMap = require_previous_map();
6845
7083
  let terminalHighlight = require_terminal_highlight();
6846
7084
  let lineToIndexCache = Symbol("lineToIndexCache");
6847
- let sourceMapAvailable$1 = Boolean(SourceMapConsumer$1 && SourceMapGenerator$1);
6848
- let pathAvailable$1 = Boolean(resolve$2 && isAbsolute$1);
7085
+ let sourceMapAvailable = Boolean(SourceMapConsumer && SourceMapGenerator);
7086
+ let pathAvailable = Boolean(resolve$1 && isAbsolute);
6849
7087
  function getLineToIndex(input) {
6850
7088
  if (input[lineToIndexCache]) return input[lineToIndexCache];
6851
7089
  let lines = input.css.split("\n");
@@ -6858,7 +7096,7 @@ var require_input = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib
6858
7096
  input[lineToIndexCache] = lineToIndex;
6859
7097
  return lineToIndex;
6860
7098
  }
6861
- var Input$5 = class {
7099
+ var Input = class {
6862
7100
  get from() {
6863
7101
  return this.file || this.id;
6864
7102
  }
@@ -6871,10 +7109,12 @@ var require_input = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib
6871
7109
  } else this.hasBOM = false;
6872
7110
  this.document = this.css;
6873
7111
  if (opts.document) this.document = opts.document.toString();
6874
- if (opts.from) if (!pathAvailable$1 || /^\w+:\/\//.test(opts.from) || isAbsolute$1(opts.from)) this.file = opts.from;
6875
- else this.file = resolve$2(opts.from);
6876
- if (pathAvailable$1 && sourceMapAvailable$1) {
6877
- let map = new PreviousMap$1(this.css, opts);
7112
+ if (opts.from) {
7113
+ if (!pathAvailable || /^\w+:\/\//.test(opts.from) || isAbsolute(opts.from)) this.file = opts.from;
7114
+ else this.file = resolve$1(opts.from);
7115
+ }
7116
+ if (pathAvailable && sourceMapAvailable) {
7117
+ let map = new PreviousMap(this.css, opts);
6878
7118
  if (map.text) {
6879
7119
  this.map = map;
6880
7120
  let file = map.consumer().file;
@@ -6916,14 +7156,14 @@ var require_input = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib
6916
7156
  column = pos.col;
6917
7157
  } else offset = this.fromLineAndColumn(line, column);
6918
7158
  let origin = this.origin(line, column, endLine, endColumn);
6919
- if (origin) result = new CssSyntaxError$2(message, origin.endLine === void 0 ? origin.line : {
7159
+ if (origin) result = new CssSyntaxError(message, origin.endLine === void 0 ? origin.line : {
6920
7160
  column: origin.column,
6921
7161
  line: origin.line
6922
7162
  }, origin.endLine === void 0 ? origin.column : {
6923
7163
  column: origin.endColumn,
6924
7164
  line: origin.endLine
6925
7165
  }, origin.source, origin.file, opts.plugin);
6926
- else result = new CssSyntaxError$2(message, endLine === void 0 ? line : {
7166
+ else result = new CssSyntaxError(message, endLine === void 0 ? line : {
6927
7167
  column,
6928
7168
  line
6929
7169
  }, endLine === void 0 ? column : {
@@ -6973,7 +7213,7 @@ var require_input = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib
6973
7213
  }
6974
7214
  mapResolve(file) {
6975
7215
  if (/^\w+:\/\//.test(file)) return file;
6976
- return resolve$2(this.map.consumer().sourceRoot || this.map.root || ".", file);
7216
+ return resolve$1(this.map.consumer().sourceRoot || this.map.root || ".", file);
6977
7217
  }
6978
7218
  origin(line, column, endLine, endColumn) {
6979
7219
  if (!this.map) return false;
@@ -6984,12 +7224,15 @@ var require_input = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib
6984
7224
  });
6985
7225
  if (!from.source) return false;
6986
7226
  let to;
6987
- if (typeof endLine === "number") to = consumer.originalPositionFor({
6988
- column: endColumn - 1,
6989
- line: endLine
6990
- });
7227
+ if (typeof endLine === "number") {
7228
+ let toPosition = consumer.originalPositionFor({
7229
+ column: endColumn - 1,
7230
+ line: endLine
7231
+ });
7232
+ if (toPosition.source) to = toPosition;
7233
+ }
6991
7234
  let fromUrl;
6992
- if (isAbsolute$1(from.source)) fromUrl = pathToFileURL$1(from.source);
7235
+ if (isAbsolute(from.source)) fromUrl = pathToFileURL$1(from.source);
6993
7236
  else fromUrl = new URL(from.source, this.map.consumer().sourceRoot || pathToFileURL$1(this.map.mapFile));
6994
7237
  let result = {
6995
7238
  column: from.column + 1,
@@ -6998,10 +7241,12 @@ var require_input = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib
6998
7241
  line: from.line,
6999
7242
  url: fromUrl.toString()
7000
7243
  };
7001
- if (fromUrl.protocol === "file:") if (fileURLToPath$1) result.file = fileURLToPath$1(fromUrl);
7002
- else
7244
+ if (fromUrl.protocol === "file:") {
7245
+ if (fileURLToPath) result.file = fileURLToPath(fromUrl);
7246
+ else
7003
7247
  /* c8 ignore next 2 */
7004
- throw new Error(`file: protocol is not available in this PostCSS build`);
7248
+ throw new Error(`file: protocol is not available in this PostCSS build`);
7249
+ }
7005
7250
  let source = consumer.sourceContentFor(from.source);
7006
7251
  if (source) result.source = source;
7007
7252
  return result;
@@ -7021,28 +7266,34 @@ var require_input = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib
7021
7266
  return json;
7022
7267
  }
7023
7268
  };
7024
- module.exports = Input$5;
7025
- Input$5.default = Input$5;
7026
- if (terminalHighlight && terminalHighlight.registerInput) terminalHighlight.registerInput(Input$5);
7027
- }) });
7269
+ module.exports = Input;
7270
+ Input.default = Input;
7271
+ if (terminalHighlight && terminalHighlight.registerInput) terminalHighlight.registerInput(Input);
7272
+ }));
7028
7273
 
7029
7274
  //#endregion
7030
7275
  //#region ../../node_modules/postcss/lib/root.js
7031
- var require_root = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib/root.js": ((exports, module) => {
7032
- let Container$5 = require_container();
7033
- let LazyResult$3, Processor$3;
7034
- var Root$6 = class extends Container$5 {
7276
+ var require_root = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7277
+ let Container = require_container();
7278
+ let LazyResult;
7279
+ let Processor;
7280
+ var Root = class extends Container {
7035
7281
  constructor(defaults) {
7036
7282
  super(defaults);
7037
7283
  this.type = "root";
7038
7284
  if (!this.nodes) this.nodes = [];
7039
7285
  }
7040
7286
  normalize(child, sample, type) {
7287
+ let keepBefore = /* @__PURE__ */ new Set();
7288
+ for (let node of Array.isArray(child) ? child : [child]) if (node && typeof node === "object" && !node.parent && node.raws && typeof node.raws.before !== "undefined") keepBefore.add(node.raws);
7041
7289
  let nodes = super.normalize(child);
7042
7290
  if (sample) {
7043
- if (type === "prepend") if (this.nodes.length > 1) sample.raws.before = this.nodes[1].raws.before;
7044
- else delete sample.raws.before;
7045
- else if (this.first !== sample) for (let node of nodes) node.raws.before = sample.raws.before;
7291
+ if (type === "prepend") {
7292
+ if (this.nodes.length > 1) sample.raws.before = this.nodes[1].raws.before;
7293
+ else delete sample.raws.before;
7294
+ } else if (this.first !== sample) {
7295
+ for (let node of nodes) if (!keepBefore.has(node.raws)) node.raws.before = sample.raws.before;
7296
+ }
7046
7297
  }
7047
7298
  return nodes;
7048
7299
  }
@@ -7052,35 +7303,36 @@ var require_root = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib/
7052
7303
  return super.removeChild(child);
7053
7304
  }
7054
7305
  toResult(opts = {}) {
7055
- return new LazyResult$3(new Processor$3(), this, opts).stringify();
7306
+ return new LazyResult(new Processor(), this, opts).stringify();
7056
7307
  }
7057
7308
  };
7058
- Root$6.registerLazyResult = (dependant) => {
7059
- LazyResult$3 = dependant;
7309
+ Root.registerLazyResult = (dependant) => {
7310
+ LazyResult = dependant;
7060
7311
  };
7061
- Root$6.registerProcessor = (dependant) => {
7062
- Processor$3 = dependant;
7312
+ Root.registerProcessor = (dependant) => {
7313
+ Processor = dependant;
7063
7314
  };
7064
- module.exports = Root$6;
7065
- Root$6.default = Root$6;
7066
- Container$5.registerRoot(Root$6);
7067
- }) });
7315
+ module.exports = Root;
7316
+ Root.default = Root;
7317
+ Container.registerRoot(Root);
7318
+ }));
7068
7319
 
7069
7320
  //#endregion
7070
7321
  //#region ../../node_modules/postcss/lib/list.js
7071
- var require_list = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib/list.js": ((exports, module) => {
7072
- let list$3 = {
7322
+ var require_list = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7323
+ let list = {
7073
7324
  comma(string) {
7074
- return list$3.split(string, [","], true);
7325
+ return list.split(string, [","], true);
7075
7326
  },
7076
7327
  space(string) {
7077
- return list$3.split(string, [
7328
+ return list.split(string, [
7078
7329
  " ",
7079
7330
  "\n",
7080
7331
  " "
7081
7332
  ]);
7082
7333
  },
7083
7334
  split(string, separators, last) {
7335
+ if (typeof string !== "string") return [];
7084
7336
  let array = [];
7085
7337
  let current = "";
7086
7338
  let split = false;
@@ -7103,32 +7355,34 @@ var require_list = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib/
7103
7355
  if (separators.includes(letter)) split = true;
7104
7356
  }
7105
7357
  if (split) {
7106
- if (current !== "") array.push(current.trim());
7358
+ let value = current.trim();
7359
+ if (last || value !== "") array.push(value);
7107
7360
  current = "";
7108
7361
  split = false;
7109
7362
  } else current += letter;
7110
7363
  }
7111
- if (last || current !== "") array.push(current.trim());
7364
+ let value = current.trim();
7365
+ if (last || value !== "") array.push(value);
7112
7366
  return array;
7113
7367
  }
7114
7368
  };
7115
- module.exports = list$3;
7116
- list$3.default = list$3;
7117
- }) });
7369
+ module.exports = list;
7370
+ list.default = list;
7371
+ }));
7118
7372
 
7119
7373
  //#endregion
7120
7374
  //#region ../../node_modules/postcss/lib/rule.js
7121
- var require_rule = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib/rule.js": ((exports, module) => {
7122
- let Container$4 = require_container();
7123
- let list$2 = require_list();
7124
- var Rule$4 = class extends Container$4 {
7375
+ var require_rule = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7376
+ let Container = require_container();
7377
+ let list = require_list();
7378
+ var Rule = class extends Container {
7125
7379
  get selectors() {
7126
- return list$2.comma(this.selector);
7380
+ return list.comma(this.selector);
7127
7381
  }
7128
7382
  set selectors(values) {
7129
7383
  let match = this.selector ? this.selector.match(/,\s*/) : null;
7130
- let sep$1 = match ? match[0] : "," + this.raw("between", "beforeOpen");
7131
- this.selector = values.join(sep$1);
7384
+ let sep = match ? match[0] : "," + this.raw("between", "beforeOpen");
7385
+ this.selector = values.join(sep);
7132
7386
  }
7133
7387
  constructor(defaults) {
7134
7388
  super(defaults);
@@ -7136,79 +7390,105 @@ var require_rule = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib/
7136
7390
  if (!this.nodes) this.nodes = [];
7137
7391
  }
7138
7392
  };
7139
- module.exports = Rule$4;
7140
- Rule$4.default = Rule$4;
7141
- Container$4.registerRule(Rule$4);
7142
- }) });
7393
+ module.exports = Rule;
7394
+ Rule.default = Rule;
7395
+ Container.registerRule(Rule);
7396
+ }));
7143
7397
 
7144
7398
  //#endregion
7145
7399
  //#region ../../node_modules/postcss/lib/fromJSON.js
7146
- var require_fromJSON = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib/fromJSON.js": ((exports, module) => {
7147
- let AtRule$3 = require_at_rule();
7148
- let Comment$3 = require_comment();
7149
- let Declaration$3 = require_declaration();
7150
- let Input$4 = require_input();
7400
+ var require_fromJSON = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7401
+ let AtRule = require_at_rule();
7402
+ let Comment = require_comment();
7403
+ let Declaration = require_declaration();
7404
+ let Input = require_input();
7151
7405
  let PreviousMap = require_previous_map();
7152
- let Root$5 = require_root();
7153
- let Rule$3 = require_rule();
7154
- function fromJSON$2(json, inputs) {
7155
- if (Array.isArray(json)) return json.map((n) => fromJSON$2(n));
7156
- let { inputs: ownInputs,...defaults } = json;
7157
- if (ownInputs) {
7158
- inputs = [];
7159
- for (let input of ownInputs) {
7160
- let inputHydrated = {
7161
- ...input,
7162
- __proto__: Input$4.prototype
7163
- };
7164
- if (inputHydrated.map) inputHydrated.map = {
7165
- ...inputHydrated.map,
7166
- __proto__: PreviousMap.prototype
7167
- };
7168
- inputs.push(inputHydrated);
7169
- }
7170
- }
7171
- let nodes;
7172
- if (defaults.nodes) {
7173
- nodes = json.nodes.map((n) => fromJSON$2(n, inputs));
7174
- delete defaults.nodes;
7175
- }
7406
+ let Root = require_root();
7407
+ let Rule = require_rule();
7408
+ function hydrateInputs(json, inputs) {
7409
+ if (!json.inputs) return inputs;
7410
+ return json.inputs.map((input) => {
7411
+ let inputHydrated = {
7412
+ ...input,
7413
+ __proto__: Input.prototype
7414
+ };
7415
+ if (inputHydrated.map) inputHydrated.map = {
7416
+ ...inputHydrated.map,
7417
+ __proto__: PreviousMap.prototype
7418
+ };
7419
+ return inputHydrated;
7420
+ });
7421
+ }
7422
+ function constructNode(json, inputs, children) {
7423
+ let defaults = { ...json };
7424
+ delete defaults.inputs;
7425
+ delete defaults.nodes;
7176
7426
  if (defaults.source) {
7177
- let { inputId,...source } = defaults.source;
7427
+ let { inputId, ...source } = defaults.source;
7178
7428
  defaults.source = source;
7179
7429
  if (inputId != null) defaults.source.input = inputs[inputId];
7180
7430
  }
7181
7431
  let node;
7182
- if (defaults.type === "root") node = new Root$5(defaults);
7183
- else if (defaults.type === "decl") node = new Declaration$3(defaults);
7184
- else if (defaults.type === "rule") node = new Rule$3(defaults);
7185
- else if (defaults.type === "comment") node = new Comment$3(defaults);
7186
- else if (defaults.type === "atrule") node = new AtRule$3(defaults);
7432
+ if (defaults.type === "root") node = new Root(defaults);
7433
+ else if (defaults.type === "decl") node = new Declaration(defaults);
7434
+ else if (defaults.type === "rule") node = new Rule(defaults);
7435
+ else if (defaults.type === "comment") node = new Comment(defaults);
7436
+ else if (defaults.type === "atrule") node = new AtRule(defaults);
7187
7437
  else throw new Error("Unknown node type: " + json.type);
7188
- if (nodes) {
7189
- node.nodes = nodes;
7190
- for (let child of nodes) child.parent = node;
7438
+ if (children) {
7439
+ node.nodes = children;
7440
+ for (let child of children) child.parent = node;
7191
7441
  }
7192
7442
  return node;
7193
7443
  }
7194
- module.exports = fromJSON$2;
7195
- fromJSON$2.default = fromJSON$2;
7196
- }) });
7444
+ function fromJSON(json, inputs) {
7445
+ if (Array.isArray(json)) return json.map((n) => fromJSON(n));
7446
+ let result;
7447
+ let stack = [{
7448
+ childIndex: 0,
7449
+ children: [],
7450
+ inputs: hydrateInputs(json, inputs),
7451
+ json
7452
+ }];
7453
+ while (stack.length > 0) {
7454
+ let frame = stack[stack.length - 1];
7455
+ let jsonNodes = frame.json.nodes;
7456
+ if (jsonNodes && frame.childIndex < jsonNodes.length) {
7457
+ let childJson = jsonNodes[frame.childIndex];
7458
+ frame.childIndex += 1;
7459
+ stack.push({
7460
+ childIndex: 0,
7461
+ children: [],
7462
+ inputs: hydrateInputs(childJson, frame.inputs),
7463
+ json: childJson
7464
+ });
7465
+ continue;
7466
+ }
7467
+ stack.pop();
7468
+ let node = constructNode(frame.json, frame.inputs, jsonNodes ? frame.children : void 0);
7469
+ if (stack.length > 0) stack[stack.length - 1].children.push(node);
7470
+ else result = node;
7471
+ }
7472
+ return result;
7473
+ }
7474
+ module.exports = fromJSON;
7475
+ fromJSON.default = fromJSON;
7476
+ }));
7197
7477
 
7198
7478
  //#endregion
7199
7479
  //#region ../../node_modules/postcss/lib/map-generator.js
7200
- var require_map_generator = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib/map-generator.js": ((exports, module) => {
7201
- let { dirname: dirname$1, relative: relative$2, resolve: resolve$1, sep } = __require("path");
7480
+ var require_map_generator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7481
+ let { dirname: dirname$1, relative: relative$1, resolve, sep } = __require("path");
7202
7482
  let { SourceMapConsumer, SourceMapGenerator } = require_source_map();
7203
7483
  let { pathToFileURL } = __require("url");
7204
- let Input$3 = require_input();
7484
+ let Input = require_input();
7205
7485
  let sourceMapAvailable = Boolean(SourceMapConsumer && SourceMapGenerator);
7206
- let pathAvailable = Boolean(dirname$1 && resolve$1 && relative$2 && sep);
7207
- var MapGenerator$2 = class {
7208
- constructor(stringify$6, root$1, opts, cssString) {
7209
- this.stringify = stringify$6;
7486
+ let pathAvailable = Boolean(dirname$1 && resolve && relative$1 && sep);
7487
+ var MapGenerator = class {
7488
+ constructor(stringify, root, opts, cssString) {
7489
+ this.stringify = stringify;
7210
7490
  this.mapOpts = opts.map || {};
7211
- this.root = root$1;
7491
+ this.root = root;
7212
7492
  this.opts = opts;
7213
7493
  this.css = cssString;
7214
7494
  this.originalCSS = cssString;
@@ -7230,13 +7510,13 @@ var require_map_generator = /* @__PURE__ */ __commonJS({ "../../node_modules/pos
7230
7510
  applyPrevMaps() {
7231
7511
  for (let prev of this.previous()) {
7232
7512
  let from = this.toUrl(this.path(prev.file));
7233
- let root$1 = prev.root || dirname$1(prev.file);
7513
+ let root = prev.root || dirname$1(prev.file);
7234
7514
  let map;
7235
7515
  if (this.mapOpts.sourcesContent === false) {
7236
7516
  map = new SourceMapConsumer(prev.text);
7237
7517
  if (map.sourcesContent) map.sourcesContent = null;
7238
7518
  } else map = prev.consumer();
7239
- this.map.applySourceMap(map, from, this.toUrl(this.path(root$1)));
7519
+ this.map.applySourceMap(map, from, this.toUrl(this.path(root)));
7240
7520
  }
7241
7521
  }
7242
7522
  clearAnnotation() {
@@ -7249,9 +7529,10 @@ var require_map_generator = /* @__PURE__ */ __commonJS({ "../../node_modules/pos
7249
7529
  if (node.text.startsWith("# sourceMappingURL=")) this.root.removeChild(i);
7250
7530
  }
7251
7531
  } else if (this.css) {
7532
+ let annotation = "/*# sourceMappingURL=";
7252
7533
  let startIndex;
7253
- while ((startIndex = this.css.lastIndexOf("/*#")) !== -1) {
7254
- let endIndex = this.css.indexOf("*/", startIndex + 3);
7534
+ while ((startIndex = this.css.lastIndexOf(annotation)) !== -1) {
7535
+ let endIndex = this.css.indexOf("*/", startIndex + 21);
7255
7536
  if (endIndex === -1) break;
7256
7537
  while (startIndex > 0 && this.css[startIndex - 1] === "\n") startIndex--;
7257
7538
  this.css = this.css.slice(0, startIndex) + this.css.slice(endIndex + 2);
@@ -7343,21 +7624,23 @@ var require_map_generator = /* @__PURE__ */ __commonJS({ "../../node_modules/pos
7343
7624
  column = str.length - last;
7344
7625
  } else column += str.length;
7345
7626
  if (node && type !== "start") {
7346
- let p$1 = node.parent || { raws: {} };
7347
- if (!(node.type === "decl" || node.type === "atrule" && !node.nodes) || node !== p$1.last || p$1.raws.semicolon) if (node.source && node.source.end) {
7348
- mapping.source = this.sourcePath(node);
7349
- mapping.original.line = node.source.end.line;
7350
- mapping.original.column = node.source.end.column - 1;
7351
- mapping.generated.line = line;
7352
- mapping.generated.column = column - 2;
7353
- this.map.addMapping(mapping);
7354
- } else {
7355
- mapping.source = noSource;
7356
- mapping.original.line = 1;
7357
- mapping.original.column = 0;
7358
- mapping.generated.line = line;
7359
- mapping.generated.column = column - 1;
7360
- this.map.addMapping(mapping);
7627
+ let p = node.parent || { raws: {} };
7628
+ if (!(node.type === "decl" || node.type === "atrule" && !node.nodes) || node !== p.last || p.raws.semicolon) {
7629
+ if (node.source && node.source.end) {
7630
+ mapping.source = this.sourcePath(node);
7631
+ mapping.original.line = node.source.end.line;
7632
+ mapping.original.column = node.source.end.column - 1;
7633
+ mapping.generated.line = line;
7634
+ mapping.generated.column = column - 2;
7635
+ this.map.addMapping(mapping);
7636
+ } else {
7637
+ mapping.source = noSource;
7638
+ mapping.original.line = 1;
7639
+ mapping.original.column = 0;
7640
+ mapping.generated.line = line;
7641
+ mapping.generated.column = column - 1;
7642
+ this.map.addMapping(mapping);
7643
+ }
7361
7644
  }
7362
7645
  }
7363
7646
  });
@@ -7396,10 +7679,10 @@ var require_map_generator = /* @__PURE__ */ __commonJS({ "../../node_modules/pos
7396
7679
  let cached = this.memoizedPaths.get(file);
7397
7680
  if (cached) return cached;
7398
7681
  let from = this.opts.to ? dirname$1(this.opts.to) : ".";
7399
- if (typeof this.mapOpts.annotation === "string") from = dirname$1(resolve$1(from, this.mapOpts.annotation));
7400
- let path$2 = relative$2(from, file);
7401
- this.memoizedPaths.set(file, path$2);
7402
- return path$2;
7682
+ if (typeof this.mapOpts.annotation === "string") from = dirname$1(resolve(from, this.mapOpts.annotation));
7683
+ let path = relative$1(from, file);
7684
+ this.memoizedPaths.set(file, path);
7685
+ return path;
7403
7686
  }
7404
7687
  previous() {
7405
7688
  if (!this.previousMaps) {
@@ -7411,7 +7694,7 @@ var require_map_generator = /* @__PURE__ */ __commonJS({ "../../node_modules/pos
7411
7694
  }
7412
7695
  });
7413
7696
  else {
7414
- let input = new Input$3(this.originalCSS, this.opts);
7697
+ let input = new Input(this.originalCSS, this.opts);
7415
7698
  if (input.map) this.previousMaps.push(input.map);
7416
7699
  }
7417
7700
  }
@@ -7443,35 +7726,35 @@ var require_map_generator = /* @__PURE__ */ __commonJS({ "../../node_modules/pos
7443
7726
  if (Buffer) return Buffer.from(str).toString("base64");
7444
7727
  else return window.btoa(unescape(encodeURIComponent(str)));
7445
7728
  }
7446
- toFileUrl(path$2) {
7447
- let cached = this.memoizedFileURLs.get(path$2);
7729
+ toFileUrl(path) {
7730
+ let cached = this.memoizedFileURLs.get(path);
7448
7731
  if (cached) return cached;
7449
7732
  if (pathToFileURL) {
7450
- let fileURL = pathToFileURL(path$2).toString();
7451
- this.memoizedFileURLs.set(path$2, fileURL);
7733
+ let fileURL = pathToFileURL(path).toString();
7734
+ this.memoizedFileURLs.set(path, fileURL);
7452
7735
  return fileURL;
7453
7736
  } else throw new Error("`map.absolute` option is not available in this PostCSS build");
7454
7737
  }
7455
- toUrl(path$2) {
7456
- let cached = this.memoizedURLs.get(path$2);
7738
+ toUrl(path) {
7739
+ let cached = this.memoizedURLs.get(path);
7457
7740
  if (cached) return cached;
7458
- if (sep === "\\") path$2 = path$2.replace(/\\/g, "/");
7459
- let url = encodeURI(path$2).replace(/[#?]/g, encodeURIComponent);
7460
- this.memoizedURLs.set(path$2, url);
7741
+ if (sep === "\\") path = path.replace(/\\/g, "/");
7742
+ let url = encodeURI(path).replace(/[#?]/g, encodeURIComponent);
7743
+ this.memoizedURLs.set(path, url);
7461
7744
  return url;
7462
7745
  }
7463
7746
  };
7464
- module.exports = MapGenerator$2;
7465
- }) });
7747
+ module.exports = MapGenerator;
7748
+ }));
7466
7749
 
7467
7750
  //#endregion
7468
7751
  //#region ../../node_modules/postcss/lib/parser.js
7469
- var require_parser = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib/parser.js": ((exports, module) => {
7470
- let AtRule$2 = require_at_rule();
7471
- let Comment$2 = require_comment();
7472
- let Declaration$2 = require_declaration();
7473
- let Root$4 = require_root();
7474
- let Rule$2 = require_rule();
7752
+ var require_parser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7753
+ let AtRule = require_at_rule();
7754
+ let Comment = require_comment();
7755
+ let Declaration = require_declaration();
7756
+ let Root = require_root();
7757
+ let Rule = require_rule();
7475
7758
  let tokenizer = require_tokenize();
7476
7759
  const SAFE_COMMENT_NEIGHBOR = {
7477
7760
  empty: true,
@@ -7489,10 +7772,10 @@ var require_parser = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/li
7489
7772
  for (let i = from; i < to; i++) result += tokens[i][1];
7490
7773
  return result;
7491
7774
  }
7492
- var Parser$1 = class {
7775
+ var Parser = class {
7493
7776
  constructor(input) {
7494
7777
  this.input = input;
7495
- this.root = new Root$4();
7778
+ this.root = new Root();
7496
7779
  this.current = this.root;
7497
7780
  this.spaces = "";
7498
7781
  this.semicolon = false;
@@ -7507,7 +7790,7 @@ var require_parser = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/li
7507
7790
  };
7508
7791
  }
7509
7792
  atrule(token) {
7510
- let node = new AtRule$2();
7793
+ let node = new AtRule();
7511
7794
  node.name = token[1].slice(1);
7512
7795
  if (node.name === "") this.unnamedAtrule(node, token);
7513
7796
  this.init(node, token[2]);
@@ -7524,28 +7807,29 @@ var require_parser = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/li
7524
7807
  if (type === "(" || type === "[") brackets.push(type === "(" ? ")" : "]");
7525
7808
  else if (type === "{" && brackets.length > 0) brackets.push("}");
7526
7809
  else if (type === brackets[brackets.length - 1]) brackets.pop();
7527
- if (brackets.length === 0) if (type === ";") {
7528
- node.source.end = this.getPosition(token[2]);
7529
- node.source.end.offset++;
7530
- this.semicolon = true;
7531
- break;
7532
- } else if (type === "{") {
7533
- open = true;
7534
- break;
7535
- } else if (type === "}") {
7536
- if (params.length > 0) {
7537
- shift = params.length - 1;
7538
- prev = params[shift];
7539
- while (prev && prev[0] === "space") prev = params[--shift];
7540
- if (prev) {
7541
- node.source.end = this.getPosition(prev[3] || prev[2]);
7542
- node.source.end.offset++;
7810
+ if (brackets.length === 0) {
7811
+ if (type === ";") {
7812
+ node.source.end = this.getPosition(token[2]);
7813
+ node.source.end.offset++;
7814
+ this.semicolon = true;
7815
+ break;
7816
+ } else if (type === "{") {
7817
+ open = true;
7818
+ break;
7819
+ } else if (type === "}") {
7820
+ if (params.length > 0) {
7821
+ shift = params.length - 1;
7822
+ prev = params[shift];
7823
+ while (prev && prev[0] === "space") prev = params[--shift];
7824
+ if (prev) {
7825
+ node.source.end = this.getPosition(prev[3] || prev[2]);
7826
+ node.source.end.offset++;
7827
+ }
7543
7828
  }
7544
- }
7545
- this.end(token);
7546
- break;
7829
+ this.end(token);
7830
+ break;
7831
+ } else params.push(token);
7547
7832
  } else params.push(token);
7548
- else params.push(token);
7549
7833
  if (this.tokenizer.endOfFile()) {
7550
7834
  last = true;
7551
7835
  break;
@@ -7593,15 +7877,17 @@ var require_parser = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/li
7593
7877
  type = token[0];
7594
7878
  if (type === "(") brackets += 1;
7595
7879
  if (type === ")") brackets -= 1;
7596
- if (brackets === 0 && type === ":") if (!prev) this.doubleColon(token);
7597
- else if (prev[0] === "word" && prev[1] === "progid") continue;
7598
- else return i;
7880
+ if (brackets === 0 && type === ":") {
7881
+ if (!prev) this.doubleColon(token);
7882
+ else if (prev[0] === "word" && prev[1] === "progid") continue;
7883
+ else return i;
7884
+ }
7599
7885
  prev = token;
7600
7886
  }
7601
7887
  return false;
7602
7888
  }
7603
7889
  comment(token) {
7604
- let node = new Comment$2();
7890
+ let node = new Comment();
7605
7891
  this.init(node, token[2]);
7606
7892
  node.source.end = this.getPosition(token[3] || token[2]);
7607
7893
  node.source.end.offset++;
@@ -7621,7 +7907,7 @@ var require_parser = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/li
7621
7907
  this.tokenizer = tokenizer(this.input);
7622
7908
  }
7623
7909
  decl(tokens, customProperty) {
7624
- let node = new Declaration$2();
7910
+ let node = new Declaration();
7625
7911
  this.init(node, tokens[0][2]);
7626
7912
  let last = tokens[tokens.length - 1];
7627
7913
  if (last[0] === ";") {
@@ -7701,7 +7987,7 @@ var require_parser = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/li
7701
7987
  throw this.input.error("Double colon", { offset: token[2] }, { offset: token[2] + token[1].length });
7702
7988
  }
7703
7989
  emptyRule(token) {
7704
- let node = new Rule$2();
7990
+ let node = new Rule();
7705
7991
  this.init(node, token[2]);
7706
7992
  node.selector = "";
7707
7993
  node.raws.between = "";
@@ -7732,7 +8018,7 @@ var require_parser = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/li
7732
8018
  prev.raws.ownSemicolon = this.spaces;
7733
8019
  this.spaces = "";
7734
8020
  prev.source.end = this.getPosition(token[2]);
7735
- prev.source.end.offset += prev.raws.ownSemicolon.length;
8021
+ prev.source.end.offset++;
7736
8022
  }
7737
8023
  }
7738
8024
  }
@@ -7773,11 +8059,12 @@ var require_parser = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/li
7773
8059
  if (!bracket) bracket = token;
7774
8060
  brackets.push("}");
7775
8061
  } else if (brackets.length === 0) {
7776
- if (type === ";") if (colon) {
7777
- this.decl(tokens, customProperty);
7778
- return;
7779
- } else break;
7780
- else if (type === "{") {
8062
+ if (type === ";") {
8063
+ if (colon) {
8064
+ this.decl(tokens, customProperty);
8065
+ return;
8066
+ } else break;
8067
+ } else if (type === "{") {
7781
8068
  this.rule(tokens);
7782
8069
  return;
7783
8070
  } else if (type === "}") {
@@ -7825,9 +8112,7 @@ var require_parser = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/li
7825
8112
  case "{":
7826
8113
  this.emptyRule(token);
7827
8114
  break;
7828
- default:
7829
- this.other(token);
7830
- break;
8115
+ default: this.other(token);
7831
8116
  }
7832
8117
  }
7833
8118
  this.endFile();
@@ -7846,9 +8131,10 @@ var require_parser = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/li
7846
8131
  else if (type === "comment") {
7847
8132
  prev = tokens[i - 1] ? tokens[i - 1][0] : "empty";
7848
8133
  next = tokens[i + 1] ? tokens[i + 1][0] : "empty";
7849
- if (!SAFE_COMMENT_NEIGHBOR[prev] && !SAFE_COMMENT_NEIGHBOR[next]) if (value.slice(-1) === ",") clean = false;
7850
- else value += token[1];
7851
- else clean = false;
8134
+ if (!SAFE_COMMENT_NEIGHBOR[prev] && !SAFE_COMMENT_NEIGHBOR[next]) {
8135
+ if (value.slice(-1) === ",") clean = false;
8136
+ else value += token[1];
8137
+ } else clean = false;
7852
8138
  } else value += token[1];
7853
8139
  }
7854
8140
  if (!clean) {
@@ -7862,7 +8148,7 @@ var require_parser = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/li
7862
8148
  }
7863
8149
  rule(tokens) {
7864
8150
  tokens.pop();
7865
- let node = new Rule$2();
8151
+ let node = new Rule();
7866
8152
  this.init(node, tokens[0][2]);
7867
8153
  node.raws.between = this.spacesAndCommentsFromEnd(tokens);
7868
8154
  this.raw(node, "selector", tokens);
@@ -7921,17 +8207,18 @@ var require_parser = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/li
7921
8207
  throw this.input.error("At-rule without name", { offset: token[2] }, { offset: token[2] + token[1].length });
7922
8208
  }
7923
8209
  };
7924
- module.exports = Parser$1;
7925
- }) });
8210
+ module.exports = Parser;
8211
+ }));
7926
8212
 
7927
8213
  //#endregion
7928
8214
  //#region ../../node_modules/postcss/lib/parse.js
7929
- var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib/parse.js": ((exports, module) => {
7930
- let Container$3 = require_container();
7931
- let Input$2 = require_input();
8215
+ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8216
+ let Container = require_container();
8217
+ let Input = require_input();
7932
8218
  let Parser = require_parser();
7933
- function parse$4(css, opts) {
7934
- let parser = new Parser(new Input$2(css, opts));
8219
+ function parse(css, opts) {
8220
+ let input = new Input(css, opts);
8221
+ let parser = new Parser(input);
7935
8222
  try {
7936
8223
  parser.parse();
7937
8224
  } catch (e) {
@@ -7946,19 +8233,22 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib
7946
8233
  }
7947
8234
  return parser.root;
7948
8235
  }
7949
- module.exports = parse$4;
7950
- parse$4.default = parse$4;
7951
- Container$3.registerParse(parse$4);
7952
- }) });
8236
+ module.exports = parse;
8237
+ parse.default = parse;
8238
+ Container.registerParse(parse);
8239
+ }));
7953
8240
 
7954
8241
  //#endregion
7955
8242
  //#region ../../node_modules/postcss/lib/warning.js
7956
- var require_warning = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib/warning.js": ((exports, module) => {
7957
- var Warning$3 = class {
8243
+ var require_warning = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8244
+ let Container = require_container();
8245
+ let { my } = require_symbols();
8246
+ var Warning = class {
7958
8247
  constructor(text, opts = {}) {
7959
8248
  this.type = "warning";
7960
8249
  this.text = text;
7961
8250
  if (opts.node && opts.node.source) {
8251
+ if (!opts.node[my]) Container.rebuild(opts.node);
7962
8252
  let range = opts.node.rangeBy(opts);
7963
8253
  this.line = range.start.line;
7964
8254
  this.column = range.start.column;
@@ -7977,22 +8267,22 @@ var require_warning = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/l
7977
8267
  return this.text;
7978
8268
  }
7979
8269
  };
7980
- module.exports = Warning$3;
7981
- Warning$3.default = Warning$3;
7982
- }) });
8270
+ module.exports = Warning;
8271
+ Warning.default = Warning;
8272
+ }));
7983
8273
 
7984
8274
  //#endregion
7985
8275
  //#region ../../node_modules/postcss/lib/result.js
7986
- var require_result = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib/result.js": ((exports, module) => {
7987
- let Warning$2 = require_warning();
7988
- var Result$4 = class {
8276
+ var require_result = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8277
+ let Warning = require_warning();
8278
+ var Result = class {
7989
8279
  get content() {
7990
8280
  return this.css;
7991
8281
  }
7992
- constructor(processor, root$1, opts) {
8282
+ constructor(processor, root, opts) {
7993
8283
  this.processor = processor;
7994
8284
  this.messages = [];
7995
- this.root = root$1;
8285
+ this.root = root;
7996
8286
  this.opts = opts;
7997
8287
  this.css = "";
7998
8288
  this.map = void 0;
@@ -8004,7 +8294,7 @@ var require_result = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/li
8004
8294
  if (!opts.plugin) {
8005
8295
  if (this.lastPlugin && this.lastPlugin.postcssPlugin) opts.plugin = this.lastPlugin.postcssPlugin;
8006
8296
  }
8007
- let warning = new Warning$2(text, opts);
8297
+ let warning = new Warning(text, opts);
8008
8298
  this.messages.push(warning);
8009
8299
  return warning;
8010
8300
  }
@@ -8012,33 +8302,33 @@ var require_result = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/li
8012
8302
  return this.messages.filter((i) => i.type === "warning");
8013
8303
  }
8014
8304
  };
8015
- module.exports = Result$4;
8016
- Result$4.default = Result$4;
8017
- }) });
8305
+ module.exports = Result;
8306
+ Result.default = Result;
8307
+ }));
8018
8308
 
8019
8309
  //#endregion
8020
8310
  //#region ../../node_modules/postcss/lib/warn-once.js
8021
- var require_warn_once = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib/warn-once.js": ((exports, module) => {
8311
+ var require_warn_once = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8022
8312
  let printed = {};
8023
- module.exports = function warnOnce$2(message) {
8313
+ module.exports = function warnOnce(message) {
8024
8314
  if (printed[message]) return;
8025
8315
  printed[message] = true;
8026
8316
  if (typeof console !== "undefined" && console.warn) console.warn(message);
8027
8317
  };
8028
- }) });
8318
+ }));
8029
8319
 
8030
8320
  //#endregion
8031
8321
  //#region ../../node_modules/postcss/lib/lazy-result.js
8032
- var require_lazy_result = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib/lazy-result.js": ((exports, module) => {
8033
- let Container$2 = require_container();
8034
- let Document$3 = require_document();
8035
- let MapGenerator$1 = require_map_generator();
8036
- let parse$3 = require_parse();
8037
- let Result$3 = require_result();
8038
- let Root$3 = require_root();
8039
- let stringify$3 = require_stringify();
8322
+ var require_lazy_result = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8323
+ let Container = require_container();
8324
+ let Document = require_document();
8325
+ let MapGenerator = require_map_generator();
8326
+ let parse = require_parse();
8327
+ let Result = require_result();
8328
+ let Root = require_root();
8329
+ let stringify = require_stringify();
8040
8330
  let { isClean, my } = require_symbols();
8041
- let warnOnce$1 = require_warn_once();
8331
+ let warnOnce = require_warn_once();
8042
8332
  const TYPE_TO_CLASS_NAME = {
8043
8333
  atrule: "AtRule",
8044
8334
  comment: "Comment",
@@ -8122,12 +8412,16 @@ var require_lazy_result = /* @__PURE__ */ __commonJS({ "../../node_modules/postc
8122
8412
  };
8123
8413
  }
8124
8414
  function cleanMarks(node) {
8125
- node[isClean] = false;
8126
- if (node.nodes) node.nodes.forEach((i) => cleanMarks(i));
8415
+ let stack = [node];
8416
+ while (stack.length > 0) {
8417
+ let next = stack.pop();
8418
+ next[isClean] = false;
8419
+ if (next.nodes) for (let i of next.nodes) stack.push(i);
8420
+ }
8127
8421
  return node;
8128
8422
  }
8129
- let postcss$2 = {};
8130
- var LazyResult$2 = class LazyResult$2 {
8423
+ let postcss = {};
8424
+ var LazyResult = class LazyResult {
8131
8425
  get content() {
8132
8426
  return this.stringify().content;
8133
8427
  }
@@ -8155,42 +8449,42 @@ var require_lazy_result = /* @__PURE__ */ __commonJS({ "../../node_modules/postc
8155
8449
  constructor(processor, css, opts) {
8156
8450
  this.stringified = false;
8157
8451
  this.processed = false;
8158
- let root$1;
8159
- if (typeof css === "object" && css !== null && (css.type === "root" || css.type === "document")) root$1 = cleanMarks(css);
8160
- else if (css instanceof LazyResult$2 || css instanceof Result$3) {
8161
- root$1 = cleanMarks(css.root);
8452
+ let root;
8453
+ if (typeof css === "object" && css !== null && (css.type === "root" || css.type === "document")) root = cleanMarks(css);
8454
+ else if (css instanceof LazyResult || css instanceof Result) {
8455
+ root = cleanMarks(css.root);
8162
8456
  if (css.map) {
8163
8457
  if (typeof opts.map === "undefined") opts.map = {};
8164
8458
  if (!opts.map.inline) opts.map.inline = false;
8165
8459
  opts.map.prev = css.map;
8166
8460
  }
8167
8461
  } else {
8168
- let parser = parse$3;
8462
+ let parser = parse;
8169
8463
  if (opts.syntax) parser = opts.syntax.parse;
8170
8464
  if (opts.parser) parser = opts.parser;
8171
8465
  if (parser.parse) parser = parser.parse;
8172
8466
  try {
8173
- root$1 = parser(css, opts);
8467
+ root = parser(css, opts);
8174
8468
  } catch (error) {
8175
8469
  this.processed = true;
8176
8470
  this.error = error;
8177
8471
  }
8178
- if (root$1 && !root$1[my])
8472
+ if (root && !root[my])
8179
8473
  /* c8 ignore next 2 */
8180
- Container$2.rebuild(root$1);
8474
+ Container.rebuild(root);
8181
8475
  }
8182
- this.result = new Result$3(processor, root$1, opts);
8476
+ this.result = new Result(processor, root, opts);
8183
8477
  this.helpers = {
8184
- ...postcss$2,
8185
- postcss: postcss$2,
8478
+ ...postcss,
8479
+ postcss,
8186
8480
  result: this.result
8187
8481
  };
8188
- this.plugins = this.processor.plugins.map((plugin$1) => {
8189
- if (typeof plugin$1 === "object" && plugin$1.prepare) return {
8190
- ...plugin$1,
8191
- ...plugin$1.prepare(this.result)
8482
+ this.plugins = this.processor.plugins.map((plugin) => {
8483
+ if (typeof plugin === "object" && plugin.prepare) return {
8484
+ ...plugin,
8485
+ ...plugin.prepare(this.result)
8192
8486
  };
8193
- else return plugin$1;
8487
+ else return plugin;
8194
8488
  });
8195
8489
  }
8196
8490
  async() {
@@ -8209,17 +8503,17 @@ var require_lazy_result = /* @__PURE__ */ __commonJS({ "../../node_modules/postc
8209
8503
  throw new Error("Use process(css).then(cb) to work with async plugins");
8210
8504
  }
8211
8505
  handleError(error, node) {
8212
- let plugin$1 = this.result.lastPlugin;
8506
+ let plugin = this.result.lastPlugin;
8213
8507
  try {
8214
8508
  if (node) node.addToError(error);
8215
8509
  this.error = error;
8216
8510
  if (error.name === "CssSyntaxError" && !error.plugin) {
8217
- error.plugin = plugin$1.postcssPlugin;
8511
+ error.plugin = plugin.postcssPlugin;
8218
8512
  error.setMessage();
8219
- } else if (plugin$1.postcssVersion) {
8513
+ } else if (plugin.postcssVersion) {
8220
8514
  if (process.env.NODE_ENV !== "production") {
8221
- let pluginName = plugin$1.postcssPlugin;
8222
- let pluginVer = plugin$1.postcssVersion;
8515
+ let pluginName = plugin.postcssPlugin;
8516
+ let pluginVer = plugin.postcssVersion;
8223
8517
  let runtimeVer = this.result.processor.version;
8224
8518
  let a = pluginVer.split(".");
8225
8519
  let b = runtimeVer.split(".");
@@ -8234,16 +8528,16 @@ var require_lazy_result = /* @__PURE__ */ __commonJS({ "../../node_modules/postc
8234
8528
  }
8235
8529
  prepareVisitors() {
8236
8530
  this.listeners = {};
8237
- let add = (plugin$1, type, cb) => {
8531
+ let add = (plugin, type, cb) => {
8238
8532
  if (!this.listeners[type]) this.listeners[type] = [];
8239
- this.listeners[type].push([plugin$1, cb]);
8533
+ this.listeners[type].push([plugin, cb]);
8240
8534
  };
8241
- for (let plugin$1 of this.plugins) if (typeof plugin$1 === "object") for (let event in plugin$1) {
8242
- if (!PLUGIN_PROPS[event] && /^[A-Z]/.test(event)) throw new Error(`Unknown event ${event} in ${plugin$1.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);
8535
+ for (let plugin of this.plugins) if (typeof plugin === "object") for (let event in plugin) {
8536
+ if (!PLUGIN_PROPS[event] && /^[A-Z]/.test(event)) throw new Error(`Unknown event ${event} in ${plugin.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);
8243
8537
  if (!NOT_VISITORS[event]) {
8244
- if (typeof plugin$1[event] === "object") for (let filter in plugin$1[event]) if (filter === "*") add(plugin$1, event, plugin$1[event][filter]);
8245
- else add(plugin$1, event + "-" + filter.toLowerCase(), plugin$1[event][filter]);
8246
- else if (typeof plugin$1[event] === "function") add(plugin$1, event, plugin$1[event]);
8538
+ if (typeof plugin[event] === "object") for (let filter in plugin[event]) if (filter === "*") add(plugin, event, plugin[event][filter]);
8539
+ else add(plugin, event + "-" + filter.toLowerCase(), plugin[event][filter]);
8540
+ else if (typeof plugin[event] === "function") add(plugin, event, plugin[event]);
8247
8541
  }
8248
8542
  }
8249
8543
  this.hasListener = Object.keys(this.listeners).length > 0;
@@ -8251,8 +8545,8 @@ var require_lazy_result = /* @__PURE__ */ __commonJS({ "../../node_modules/postc
8251
8545
  async runAsync() {
8252
8546
  this.plugin = 0;
8253
8547
  for (let i = 0; i < this.plugins.length; i++) {
8254
- let plugin$1 = this.plugins[i];
8255
- let promise = this.runOnRoot(plugin$1);
8548
+ let plugin = this.plugins[i];
8549
+ let promise = this.runOnRoot(plugin);
8256
8550
  if (isPromise(promise)) try {
8257
8551
  await promise;
8258
8552
  } catch (error) {
@@ -8261,10 +8555,10 @@ var require_lazy_result = /* @__PURE__ */ __commonJS({ "../../node_modules/postc
8261
8555
  }
8262
8556
  this.prepareVisitors();
8263
8557
  if (this.hasListener) {
8264
- let root$1 = this.result.root;
8265
- while (!root$1[isClean]) {
8266
- root$1[isClean] = true;
8267
- let stack = [toStack(root$1)];
8558
+ let root = this.result.root;
8559
+ while (!root[isClean]) {
8560
+ root[isClean] = true;
8561
+ let stack = [toStack(root)];
8268
8562
  while (stack.length > 0) {
8269
8563
  let promise = this.visitTick(stack);
8270
8564
  if (isPromise(promise)) try {
@@ -8275,13 +8569,13 @@ var require_lazy_result = /* @__PURE__ */ __commonJS({ "../../node_modules/postc
8275
8569
  }
8276
8570
  }
8277
8571
  }
8278
- if (this.listeners.OnceExit) for (let [plugin$1, visitor] of this.listeners.OnceExit) {
8279
- this.result.lastPlugin = plugin$1;
8572
+ if (this.listeners.OnceExit) for (let [plugin, visitor] of this.listeners.OnceExit) {
8573
+ this.result.lastPlugin = plugin;
8280
8574
  try {
8281
- if (root$1.type === "document") {
8282
- let roots = root$1.nodes.map((subRoot) => visitor(subRoot, this.helpers));
8575
+ if (root.type === "document") {
8576
+ let roots = root.nodes.map((subRoot) => visitor(subRoot, this.helpers));
8283
8577
  await Promise.all(roots);
8284
- } else await visitor(root$1, this.helpers);
8578
+ } else await visitor(root, this.helpers);
8285
8579
  } catch (e) {
8286
8580
  throw this.handleError(e);
8287
8581
  }
@@ -8290,17 +8584,17 @@ var require_lazy_result = /* @__PURE__ */ __commonJS({ "../../node_modules/postc
8290
8584
  this.processed = true;
8291
8585
  return this.stringify();
8292
8586
  }
8293
- runOnRoot(plugin$1) {
8294
- this.result.lastPlugin = plugin$1;
8587
+ runOnRoot(plugin) {
8588
+ this.result.lastPlugin = plugin;
8295
8589
  try {
8296
- if (typeof plugin$1 === "object" && plugin$1.Once) {
8590
+ if (typeof plugin === "object" && plugin.Once) {
8297
8591
  if (this.result.root.type === "document") {
8298
- let roots = this.result.root.nodes.map((root$1) => plugin$1.Once(root$1, this.helpers));
8592
+ let roots = this.result.root.nodes.map((root) => plugin.Once(root, this.helpers));
8299
8593
  if (isPromise(roots[0])) return Promise.all(roots);
8300
8594
  return roots;
8301
8595
  }
8302
- return plugin$1.Once(this.result.root, this.helpers);
8303
- } else if (typeof plugin$1 === "function") return plugin$1(this.result.root, this.result);
8596
+ return plugin.Once(this.result.root, this.helpers);
8597
+ } else if (typeof plugin === "function") return plugin(this.result.root, this.result);
8304
8598
  } catch (error) {
8305
8599
  throw this.handleError(error);
8306
8600
  }
@@ -8311,7 +8605,7 @@ var require_lazy_result = /* @__PURE__ */ __commonJS({ "../../node_modules/postc
8311
8605
  this.stringified = true;
8312
8606
  this.sync();
8313
8607
  let opts = this.result.opts;
8314
- let str = stringify$3;
8608
+ let str = stringify;
8315
8609
  if (opts.syntax) str = opts.syntax.stringify;
8316
8610
  if (opts.stringifier) str = opts.stringifier;
8317
8611
  if (str.stringify) str = str.stringify;
@@ -8324,7 +8618,7 @@ var require_lazy_result = /* @__PURE__ */ __commonJS({ "../../node_modules/postc
8324
8618
  this.result.css = result;
8325
8619
  return this.result;
8326
8620
  }
8327
- let data = new MapGenerator$1(str, this.result.root, this.result.opts).generate();
8621
+ let data = new MapGenerator(str, this.result.root, this.result.opts).generate();
8328
8622
  this.result.css = data[0];
8329
8623
  this.result.map = data[1];
8330
8624
  return this.result;
@@ -8334,22 +8628,24 @@ var require_lazy_result = /* @__PURE__ */ __commonJS({ "../../node_modules/postc
8334
8628
  if (this.processed) return this.result;
8335
8629
  this.processed = true;
8336
8630
  if (this.processing) throw this.getAsyncError();
8337
- for (let plugin$1 of this.plugins) if (isPromise(this.runOnRoot(plugin$1))) throw this.getAsyncError();
8631
+ for (let plugin of this.plugins) if (isPromise(this.runOnRoot(plugin))) throw this.getAsyncError();
8338
8632
  this.prepareVisitors();
8339
8633
  if (this.hasListener) {
8340
- let root$1 = this.result.root;
8341
- while (!root$1[isClean]) {
8342
- root$1[isClean] = true;
8343
- this.walkSync(root$1);
8634
+ let root = this.result.root;
8635
+ while (!root[isClean]) {
8636
+ root[isClean] = true;
8637
+ this.walkSync(root);
8638
+ }
8639
+ if (this.listeners.OnceExit) {
8640
+ if (root.type === "document") for (let subRoot of root.nodes) this.visitSync(this.listeners.OnceExit, subRoot);
8641
+ else this.visitSync(this.listeners.OnceExit, root);
8344
8642
  }
8345
- if (this.listeners.OnceExit) if (root$1.type === "document") for (let subRoot of root$1.nodes) this.visitSync(this.listeners.OnceExit, subRoot);
8346
- else this.visitSync(this.listeners.OnceExit, root$1);
8347
8643
  }
8348
8644
  return this.result;
8349
8645
  }
8350
8646
  then(onFulfilled, onRejected) {
8351
8647
  if (process.env.NODE_ENV !== "production") {
8352
- if (!("from" in this.opts)) warnOnce$1("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.");
8648
+ if (!("from" in this.opts)) warnOnce("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.");
8353
8649
  }
8354
8650
  return this.async().then(onFulfilled, onRejected);
8355
8651
  }
@@ -8357,8 +8653,8 @@ var require_lazy_result = /* @__PURE__ */ __commonJS({ "../../node_modules/postc
8357
8653
  return this.css;
8358
8654
  }
8359
8655
  visitSync(visitors, node) {
8360
- for (let [plugin$1, visitor] of visitors) {
8361
- this.result.lastPlugin = plugin$1;
8656
+ for (let [plugin, visitor] of visitors) {
8657
+ this.result.lastPlugin = plugin;
8362
8658
  let promise;
8363
8659
  try {
8364
8660
  promise = visitor(node, this.helpers);
@@ -8377,13 +8673,13 @@ var require_lazy_result = /* @__PURE__ */ __commonJS({ "../../node_modules/postc
8377
8673
  return;
8378
8674
  }
8379
8675
  if (visitors.length > 0 && visit.visitorIndex < visitors.length) {
8380
- let [plugin$1, visitor] = visitors[visit.visitorIndex];
8676
+ let [plugin, visitor] = visitors[visit.visitorIndex];
8381
8677
  visit.visitorIndex += 1;
8382
8678
  if (visit.visitorIndex === visitors.length) {
8383
8679
  visit.visitors = [];
8384
8680
  visit.visitorIndex = 0;
8385
8681
  }
8386
- this.result.lastPlugin = plugin$1;
8682
+ this.result.lastPlugin = plugin;
8387
8683
  try {
8388
8684
  return visitor(node.toProxy(), this.helpers);
8389
8685
  } catch (e) {
@@ -8392,14 +8688,19 @@ var require_lazy_result = /* @__PURE__ */ __commonJS({ "../../node_modules/postc
8392
8688
  }
8393
8689
  if (visit.iterator !== 0) {
8394
8690
  let iterator = visit.iterator;
8691
+ if (visit.descending) {
8692
+ visit.descending = false;
8693
+ node.indexes[iterator] += 1;
8694
+ }
8395
8695
  let child;
8396
8696
  while (child = node.nodes[node.indexes[iterator]]) {
8397
- node.indexes[iterator] += 1;
8398
8697
  if (!child[isClean]) {
8399
8698
  child[isClean] = true;
8699
+ visit.descending = true;
8400
8700
  stack.push(toStack(child));
8401
8701
  return;
8402
8702
  }
8703
+ node.indexes[iterator] += 1;
8403
8704
  }
8404
8705
  visit.iterator = 0;
8405
8706
  delete node.indexes[iterator];
@@ -8423,40 +8724,80 @@ var require_lazy_result = /* @__PURE__ */ __commonJS({ "../../node_modules/postc
8423
8724
  }
8424
8725
  walkSync(node) {
8425
8726
  node[isClean] = true;
8426
- let events = getEvents(node);
8427
- for (let event of events) if (event === CHILDREN) {
8428
- if (node.nodes) node.each((child) => {
8429
- if (!child[isClean]) this.walkSync(child);
8430
- });
8431
- } else {
8432
- let visitors = this.listeners[event];
8433
- if (visitors) {
8434
- if (this.visitSync(visitors, node.toProxy())) return;
8727
+ let stack = [{
8728
+ eventIndex: 0,
8729
+ events: getEvents(node),
8730
+ iterator: 0,
8731
+ node
8732
+ }];
8733
+ while (stack.length > 0) {
8734
+ let visit = stack[stack.length - 1];
8735
+ let visitNode = visit.node;
8736
+ if (visit.iterator !== 0) {
8737
+ let iterator = visit.iterator;
8738
+ if (visit.descending) {
8739
+ visit.descending = false;
8740
+ visitNode.indexes[iterator] += 1;
8741
+ }
8742
+ let child;
8743
+ let descended = false;
8744
+ while (child = visitNode.nodes[visitNode.indexes[iterator]]) {
8745
+ if (!child[isClean]) {
8746
+ child[isClean] = true;
8747
+ visit.descending = true;
8748
+ stack.push({
8749
+ eventIndex: 0,
8750
+ events: getEvents(child),
8751
+ iterator: 0,
8752
+ node: child
8753
+ });
8754
+ descended = true;
8755
+ break;
8756
+ }
8757
+ visitNode.indexes[iterator] += 1;
8758
+ }
8759
+ if (descended) continue;
8760
+ visit.iterator = 0;
8761
+ delete visitNode.indexes[iterator];
8435
8762
  }
8763
+ if (visit.eventIndex < visit.events.length) {
8764
+ let event = visit.events[visit.eventIndex];
8765
+ visit.eventIndex += 1;
8766
+ if (event === CHILDREN) {
8767
+ if (visitNode.nodes && visitNode.nodes.length) visit.iterator = visitNode.getIterator();
8768
+ } else {
8769
+ let visitors = this.listeners[event];
8770
+ if (visitors) {
8771
+ if (this.visitSync(visitors, visitNode.toProxy())) stack.pop();
8772
+ }
8773
+ }
8774
+ continue;
8775
+ }
8776
+ stack.pop();
8436
8777
  }
8437
8778
  }
8438
8779
  warnings() {
8439
8780
  return this.sync().warnings();
8440
8781
  }
8441
8782
  };
8442
- LazyResult$2.registerPostcss = (dependant) => {
8443
- postcss$2 = dependant;
8783
+ LazyResult.registerPostcss = (dependant) => {
8784
+ postcss = dependant;
8444
8785
  };
8445
- module.exports = LazyResult$2;
8446
- LazyResult$2.default = LazyResult$2;
8447
- Root$3.registerLazyResult(LazyResult$2);
8448
- Document$3.registerLazyResult(LazyResult$2);
8449
- }) });
8786
+ module.exports = LazyResult;
8787
+ LazyResult.default = LazyResult;
8788
+ Root.registerLazyResult(LazyResult);
8789
+ Document.registerLazyResult(LazyResult);
8790
+ }));
8450
8791
 
8451
8792
  //#endregion
8452
8793
  //#region ../../node_modules/postcss/lib/no-work-result.js
8453
- var require_no_work_result = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib/no-work-result.js": ((exports, module) => {
8794
+ var require_no_work_result = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8454
8795
  let MapGenerator = require_map_generator();
8455
- let parse$2 = require_parse();
8456
- let Result$2 = require_result();
8457
- let stringify$2 = require_stringify();
8796
+ let parse = require_parse();
8797
+ let Result = require_result();
8798
+ let stringify = require_stringify();
8458
8799
  let warnOnce = require_warn_once();
8459
- var NoWorkResult$1 = class {
8800
+ var NoWorkResult = class {
8460
8801
  get content() {
8461
8802
  return this.result.css;
8462
8803
  }
@@ -8477,17 +8818,17 @@ var require_no_work_result = /* @__PURE__ */ __commonJS({ "../../node_modules/po
8477
8818
  }
8478
8819
  get root() {
8479
8820
  if (this._root) return this._root;
8480
- let root$1;
8481
- let parser = parse$2;
8821
+ let root;
8822
+ let parser = parse;
8482
8823
  try {
8483
- root$1 = parser(this._css, this._opts);
8824
+ root = parser(this._css, this._opts);
8484
8825
  } catch (error) {
8485
8826
  this.error = error;
8486
8827
  }
8487
8828
  if (this.error) throw this.error;
8488
8829
  else {
8489
- this._root = root$1;
8490
- return root$1;
8830
+ this._root = root;
8831
+ return root;
8491
8832
  }
8492
8833
  }
8493
8834
  get [Symbol.toStringTag]() {
@@ -8500,8 +8841,8 @@ var require_no_work_result = /* @__PURE__ */ __commonJS({ "../../node_modules/po
8500
8841
  this._css = css;
8501
8842
  this._opts = opts;
8502
8843
  this._map = void 0;
8503
- let str = stringify$2;
8504
- this.result = new Result$2(this._processor, void 0, this._opts);
8844
+ let str = stringify;
8845
+ this.result = new Result(this._processor, void 0, this._opts);
8505
8846
  this.result.css = css;
8506
8847
  let self = this;
8507
8848
  Object.defineProperty(this.result, "root", { get() {
@@ -8544,20 +8885,20 @@ var require_no_work_result = /* @__PURE__ */ __commonJS({ "../../node_modules/po
8544
8885
  return [];
8545
8886
  }
8546
8887
  };
8547
- module.exports = NoWorkResult$1;
8548
- NoWorkResult$1.default = NoWorkResult$1;
8549
- }) });
8888
+ module.exports = NoWorkResult;
8889
+ NoWorkResult.default = NoWorkResult;
8890
+ }));
8550
8891
 
8551
8892
  //#endregion
8552
8893
  //#region ../../node_modules/postcss/lib/processor.js
8553
- var require_processor = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib/processor.js": ((exports, module) => {
8554
- let Document$2 = require_document();
8555
- let LazyResult$1 = require_lazy_result();
8894
+ var require_processor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8895
+ let Document = require_document();
8896
+ let LazyResult = require_lazy_result();
8556
8897
  let NoWorkResult = require_no_work_result();
8557
- let Root$2 = require_root();
8558
- var Processor$2 = class {
8898
+ let Root = require_root();
8899
+ var Processor = class {
8559
8900
  constructor(plugins = []) {
8560
- this.version = "8.5.16";
8901
+ this.version = "8.5.28";
8561
8902
  this.plugins = this.normalize(plugins);
8562
8903
  }
8563
8904
  normalize(plugins) {
@@ -8576,57 +8917,57 @@ var require_processor = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss
8576
8917
  }
8577
8918
  process(css, opts = {}) {
8578
8919
  if (!this.plugins.length && !opts.parser && !opts.stringifier && !opts.syntax) return new NoWorkResult(this, css, opts);
8579
- else return new LazyResult$1(this, css, opts);
8920
+ else return new LazyResult(this, css, opts);
8580
8921
  }
8581
- use(plugin$1) {
8582
- this.plugins = this.plugins.concat(this.normalize([plugin$1]));
8922
+ use(plugin) {
8923
+ this.plugins = this.plugins.concat(this.normalize([plugin]));
8583
8924
  return this;
8584
8925
  }
8585
8926
  };
8586
- module.exports = Processor$2;
8587
- Processor$2.default = Processor$2;
8588
- Root$2.registerProcessor(Processor$2);
8589
- Document$2.registerProcessor(Processor$2);
8590
- }) });
8927
+ module.exports = Processor;
8928
+ Processor.default = Processor;
8929
+ Root.registerProcessor(Processor);
8930
+ Document.registerProcessor(Processor);
8931
+ }));
8591
8932
 
8592
8933
  //#endregion
8593
8934
  //#region ../../node_modules/postcss/lib/postcss.js
8594
- var require_postcss = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib/postcss.js": ((exports, module) => {
8595
- let AtRule$1 = require_at_rule();
8596
- let Comment$1 = require_comment();
8597
- let Container$1 = require_container();
8598
- let CssSyntaxError$1 = require_css_syntax_error();
8599
- let Declaration$1 = require_declaration();
8600
- let Document$1 = require_document();
8601
- let fromJSON$1 = require_fromJSON();
8602
- let Input$1 = require_input();
8935
+ var require_postcss = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8936
+ let AtRule = require_at_rule();
8937
+ let Comment = require_comment();
8938
+ let Container = require_container();
8939
+ let CssSyntaxError = require_css_syntax_error();
8940
+ let Declaration = require_declaration();
8941
+ let Document = require_document();
8942
+ let fromJSON = require_fromJSON();
8943
+ let Input = require_input();
8603
8944
  let LazyResult = require_lazy_result();
8604
- let list$1 = require_list();
8605
- let Node$1 = require_node();
8606
- let parse$1 = require_parse();
8607
- let Processor$1 = require_processor();
8608
- let Result$1 = require_result();
8609
- let Root$1 = require_root();
8610
- let Rule$1 = require_rule();
8611
- let stringify$1 = require_stringify();
8612
- let Warning$1 = require_warning();
8613
- function postcss$1(...plugins) {
8945
+ let list = require_list();
8946
+ let Node = require_node();
8947
+ let parse = require_parse();
8948
+ let Processor = require_processor();
8949
+ let Result = require_result();
8950
+ let Root = require_root();
8951
+ let Rule = require_rule();
8952
+ let stringify = require_stringify();
8953
+ let Warning = require_warning();
8954
+ function postcss(...plugins) {
8614
8955
  if (plugins.length === 1 && Array.isArray(plugins[0])) plugins = plugins[0];
8615
- return new Processor$1(plugins);
8956
+ return new Processor(plugins);
8616
8957
  }
8617
- postcss$1.plugin = function plugin$1(name, initializer) {
8958
+ postcss.plugin = function plugin(name, initializer) {
8618
8959
  let warningPrinted = false;
8619
8960
  function creator(...args) {
8620
8961
  if (console && console.warn && !warningPrinted) {
8621
8962
  warningPrinted = true;
8622
8963
  console.warn(name + ": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration");
8623
- if (process.env.LANG && process.env.LANG.startsWith("cn"))
8964
+ if (process.env.LANG && process.env.LANG.startsWith("zh"))
8624
8965
  /* c8 ignore next 7 */
8625
8966
  console.warn(name + ": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226");
8626
8967
  }
8627
8968
  let transformer = initializer(...args);
8628
8969
  transformer.postcssPlugin = name;
8629
- transformer.postcssVersion = new Processor$1().version;
8970
+ transformer.postcssVersion = new Processor().version;
8630
8971
  return transformer;
8631
8972
  }
8632
8973
  let cache;
@@ -8635,37 +8976,37 @@ var require_postcss = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/l
8635
8976
  return cache;
8636
8977
  } });
8637
8978
  creator.process = function(css, processOpts, pluginOpts) {
8638
- return postcss$1([creator(pluginOpts)]).process(css, processOpts);
8979
+ return postcss([creator(pluginOpts)]).process(css, processOpts);
8639
8980
  };
8640
8981
  return creator;
8641
8982
  };
8642
- postcss$1.stringify = stringify$1;
8643
- postcss$1.parse = parse$1;
8644
- postcss$1.fromJSON = fromJSON$1;
8645
- postcss$1.list = list$1;
8646
- postcss$1.comment = (defaults) => new Comment$1(defaults);
8647
- postcss$1.atRule = (defaults) => new AtRule$1(defaults);
8648
- postcss$1.decl = (defaults) => new Declaration$1(defaults);
8649
- postcss$1.rule = (defaults) => new Rule$1(defaults);
8650
- postcss$1.root = (defaults) => new Root$1(defaults);
8651
- postcss$1.document = (defaults) => new Document$1(defaults);
8652
- postcss$1.CssSyntaxError = CssSyntaxError$1;
8653
- postcss$1.Declaration = Declaration$1;
8654
- postcss$1.Container = Container$1;
8655
- postcss$1.Processor = Processor$1;
8656
- postcss$1.Document = Document$1;
8657
- postcss$1.Comment = Comment$1;
8658
- postcss$1.Warning = Warning$1;
8659
- postcss$1.AtRule = AtRule$1;
8660
- postcss$1.Result = Result$1;
8661
- postcss$1.Input = Input$1;
8662
- postcss$1.Rule = Rule$1;
8663
- postcss$1.Root = Root$1;
8664
- postcss$1.Node = Node$1;
8665
- LazyResult.registerPostcss(postcss$1);
8666
- module.exports = postcss$1;
8667
- postcss$1.default = postcss$1;
8668
- }) });
8983
+ postcss.stringify = stringify;
8984
+ postcss.parse = parse;
8985
+ postcss.fromJSON = fromJSON;
8986
+ postcss.list = list;
8987
+ postcss.comment = (defaults) => new Comment(defaults);
8988
+ postcss.atRule = (defaults) => new AtRule(defaults);
8989
+ postcss.decl = (defaults) => new Declaration(defaults);
8990
+ postcss.rule = (defaults) => new Rule(defaults);
8991
+ postcss.root = (defaults) => new Root(defaults);
8992
+ postcss.document = (defaults) => new Document(defaults);
8993
+ postcss.CssSyntaxError = CssSyntaxError;
8994
+ postcss.Declaration = Declaration;
8995
+ postcss.Container = Container;
8996
+ postcss.Processor = Processor;
8997
+ postcss.Document = Document;
8998
+ postcss.Comment = Comment;
8999
+ postcss.Warning = Warning;
9000
+ postcss.AtRule = AtRule;
9001
+ postcss.Result = Result;
9002
+ postcss.Input = Input;
9003
+ postcss.Rule = Rule;
9004
+ postcss.Root = Root;
9005
+ postcss.Node = Node;
9006
+ LazyResult.registerPostcss(postcss);
9007
+ module.exports = postcss;
9008
+ postcss.default = postcss;
9009
+ }));
8669
9010
 
8670
9011
  //#endregion
8671
9012
  //#region ../../node_modules/postcss/lib/postcss.mjs
@@ -8695,11 +9036,6 @@ const Rule = import_postcss.default.Rule;
8695
9036
  const Root = import_postcss.default.Root;
8696
9037
  const Node = import_postcss.default.Node;
8697
9038
 
8698
- //#endregion
8699
- //#region ../registry/src/style-source.ts
8700
- const __filename = fileURLToPath(import.meta.url);
8701
- const __dirname = path.dirname(__filename);
8702
-
8703
9039
  //#endregion
8704
9040
  //#region ../create-config/src/style-css.ts
8705
9041
  const STYLE_IDS = STYLES.map((style) => style.id);
@@ -8715,19 +9051,19 @@ function deriveUiBaseUrlFromRegistryUrl(registryUrl) {
8715
9051
  const normalizedRegistryUrl = normalizeUrl(registryUrl);
8716
9052
  return normalizedRegistryUrl.endsWith("/r") ? normalizedRegistryUrl.slice(0, -2) : DEFAULT_UI_BASE_URL;
8717
9053
  }
8718
- function resolveUiBaseUrl(env$1 = process.env) {
8719
- if (env$1.BEJAMAS_UI_URL?.trim()) return normalizeUrl(env$1.BEJAMAS_UI_URL);
8720
- if (env$1.REGISTRY_URL?.trim()) return deriveUiBaseUrlFromRegistryUrl(env$1.REGISTRY_URL);
9054
+ function resolveUiBaseUrl(env = process.env) {
9055
+ if (env.BEJAMAS_UI_URL?.trim()) return normalizeUrl(env.BEJAMAS_UI_URL);
9056
+ if (env.REGISTRY_URL?.trim()) return deriveUiBaseUrlFromRegistryUrl(env.REGISTRY_URL);
8721
9057
  return DEFAULT_UI_BASE_URL;
8722
9058
  }
8723
- function resolveRegistryUrl(env$1 = process.env) {
8724
- if (env$1.REGISTRY_URL?.trim()) return normalizeUrl(env$1.REGISTRY_URL);
8725
- if (env$1.BEJAMAS_UI_URL?.trim()) return `${normalizeUrl(env$1.BEJAMAS_UI_URL)}/r`;
9059
+ function resolveRegistryUrl(env = process.env) {
9060
+ if (env.REGISTRY_URL?.trim()) return normalizeUrl(env.REGISTRY_URL);
9061
+ if (env.BEJAMAS_UI_URL?.trim()) return `${normalizeUrl(env.BEJAMAS_UI_URL)}/r`;
8726
9062
  return DEFAULT_REGISTRY_URL;
8727
9063
  }
8728
- function buildUiUrl(pathname, env$1 = process.env) {
9064
+ function buildUiUrl(pathname, env = process.env) {
8729
9065
  const normalizedPathname = pathname.startsWith("/") ? pathname : `/${pathname}`;
8730
- return `${resolveUiBaseUrl(env$1)}${normalizedPathname}`;
9066
+ return `${resolveUiBaseUrl(env)}${normalizedPathname}`;
8731
9067
  }
8732
9068
 
8733
9069
  //#endregion
@@ -8830,7 +9166,7 @@ const compatibleRawConfigSchema = rawConfigSchema.extend({
8830
9166
  function parseRawConfigWithCompatibility(input) {
8831
9167
  const parsed = compatibleRawConfigSchema.parse(input);
8832
9168
  const deprecatedKeys = DEPRECATED_CONFIG_KEYS.filter((key) => parsed[key] !== void 0);
8833
- const { rsc: _rsc, tsx: _tsx,...normalized } = parsed;
9169
+ const { rsc: _rsc, tsx: _tsx, ...normalized } = parsed;
8834
9170
  return {
8835
9171
  config: rawConfigSchema.parse(normalized),
8836
9172
  deprecatedKeys
@@ -9007,7 +9343,7 @@ const logger = {
9007
9343
  //#endregion
9008
9344
  //#region src/utils/get-package-info.ts
9009
9345
  function getPackageInfo(cwd = "", shouldThrow = true) {
9010
- const packageJsonPath = path$1.join(cwd, "package.json");
9346
+ const packageJsonPath = path.join(cwd, "package.json");
9011
9347
  return fs.readJSONSync(packageJsonPath, { throws: shouldThrow });
9012
9348
  }
9013
9349
 
@@ -9062,7 +9398,7 @@ async function getTailwindCssFile(cwd) {
9062
9398
  }), getTailwindVersion(cwd)]);
9063
9399
  if (!files.length) return null;
9064
9400
  for (const file of files) {
9065
- const contents = await fs.readFile(path$1.resolve(cwd, file), "utf8");
9401
+ const contents = await fs.readFile(path.resolve(cwd, file), "utf8");
9066
9402
  if (contents.includes(`@import "tailwindcss"`) || contents.includes(`@import 'tailwindcss'`) || contents.includes(`@tailwind base`)) return file;
9067
9403
  }
9068
9404
  return null;
@@ -9121,13 +9457,13 @@ async function resolveConfigPaths(cwd, config) {
9121
9457
  ...config,
9122
9458
  resolvedPaths: {
9123
9459
  cwd,
9124
- tailwindConfig: config.tailwind.config ? path$1.resolve(cwd, config.tailwind.config) : "",
9125
- tailwindCss: path$1.resolve(cwd, config.tailwind.css),
9460
+ tailwindConfig: config.tailwind.config ? path.resolve(cwd, config.tailwind.config) : "",
9461
+ tailwindCss: path.resolve(cwd, config.tailwind.css),
9126
9462
  utils: await resolveImport(config.aliases["utils"], tsConfig),
9127
9463
  components: await resolveImport(config.aliases["components"], tsConfig),
9128
- ui: config.aliases["ui"] ? await resolveImport(config.aliases["ui"], tsConfig) : path$1.resolve(await resolveImport(config.aliases["components"], tsConfig) ?? cwd, "ui"),
9129
- lib: config.aliases["lib"] ? await resolveImport(config.aliases["lib"], tsConfig) : path$1.resolve(await resolveImport(config.aliases["utils"], tsConfig) ?? cwd, ".."),
9130
- hooks: config.aliases["hooks"] ? await resolveImport(config.aliases["hooks"], tsConfig) : path$1.resolve(await resolveImport(config.aliases["components"], tsConfig) ?? cwd, "..", "hooks")
9464
+ ui: config.aliases["ui"] ? await resolveImport(config.aliases["ui"], tsConfig) : path.resolve(await resolveImport(config.aliases["components"], tsConfig) ?? cwd, "ui"),
9465
+ lib: config.aliases["lib"] ? await resolveImport(config.aliases["lib"], tsConfig) : path.resolve(await resolveImport(config.aliases["utils"], tsConfig) ?? cwd, ".."),
9466
+ hooks: config.aliases["hooks"] ? await resolveImport(config.aliases["hooks"], tsConfig) : path.resolve(await resolveImport(config.aliases["components"], tsConfig) ?? cwd, "..", "hooks")
9131
9467
  }
9132
9468
  });
9133
9469
  }
@@ -9165,7 +9501,7 @@ async function getWorkspaceConfig(config) {
9165
9501
  }
9166
9502
  async function findPackageRoot(cwd, resolvedPath) {
9167
9503
  const commonRoot = findCommonRoot(cwd, resolvedPath);
9168
- const relativePath = path$1.relative(commonRoot, resolvedPath);
9504
+ const relativePath = path.relative(commonRoot, resolvedPath);
9169
9505
  const matchingPackageRoot = (await fg.glob("**/package.json", {
9170
9506
  cwd: commonRoot,
9171
9507
  deep: 3,
@@ -9175,21 +9511,21 @@ async function findPackageRoot(cwd, resolvedPath) {
9175
9511
  "**/build/**",
9176
9512
  "**/public/**"
9177
9513
  ]
9178
- })).map((pkgPath) => path$1.dirname(pkgPath)).find((pkgDir) => relativePath.startsWith(pkgDir));
9179
- return matchingPackageRoot ? path$1.join(commonRoot, matchingPackageRoot) : null;
9514
+ })).map((pkgPath) => path.dirname(pkgPath)).find((pkgDir) => relativePath.startsWith(pkgDir));
9515
+ return matchingPackageRoot ? path.join(commonRoot, matchingPackageRoot) : null;
9180
9516
  }
9181
9517
  function isAliasKey(key, config) {
9182
- return Object.keys(config.resolvedPaths).filter((key$1) => key$1 !== "utils").includes(key);
9518
+ return Object.keys(config.resolvedPaths).filter((key) => key !== "utils").includes(key);
9183
9519
  }
9184
9520
  function findCommonRoot(cwd, resolvedPath) {
9185
- const parts1 = cwd.split(path$1.sep);
9186
- const parts2 = resolvedPath.split(path$1.sep);
9521
+ const parts1 = cwd.split(path.sep);
9522
+ const parts2 = resolvedPath.split(path.sep);
9187
9523
  const commonParts = [];
9188
9524
  for (let i = 0; i < Math.min(parts1.length, parts2.length); i++) {
9189
9525
  if (parts1[i] !== parts2[i]) break;
9190
9526
  commonParts.push(parts1[i]);
9191
9527
  }
9192
- return commonParts.join(path$1.sep);
9528
+ return commonParts.join(path.sep);
9193
9529
  }
9194
9530
 
9195
9531
  //#endregion
@@ -9203,7 +9539,7 @@ function spinner(text, options) {
9203
9539
 
9204
9540
  //#endregion
9205
9541
  //#region src/docs/generate-mdx/utils.ts
9206
- const RESERVED_COMPONENTS = new Set([
9542
+ const RESERVED_COMPONENTS = /* @__PURE__ */ new Set([
9207
9543
  "Fragment",
9208
9544
  "CodePackageManagers",
9209
9545
  "DocsTabs",
@@ -9240,30 +9576,40 @@ function parseJsDocMetadata(frontmatterCode) {
9240
9576
  const descriptionBodyLines = [];
9241
9577
  for (const rawLine of lines) {
9242
9578
  const line = rawLine;
9243
- if (inUsage) if (line.trim().startsWith("@")) inUsage = false;
9244
- else {
9245
- usageLines.push(line);
9246
- continue;
9579
+ if (inUsage) {
9580
+ if (line.trim().startsWith("@")) inUsage = false;
9581
+ else {
9582
+ usageLines.push(line);
9583
+ continue;
9584
+ }
9247
9585
  }
9248
- if (inPrimaryExample) if (line.trim().startsWith("@")) inPrimaryExample = false;
9249
- else {
9250
- primaryExampleLines.push(line);
9251
- continue;
9586
+ if (inPrimaryExample) {
9587
+ if (line.trim().startsWith("@")) inPrimaryExample = false;
9588
+ else {
9589
+ primaryExampleLines.push(line);
9590
+ continue;
9591
+ }
9252
9592
  }
9253
- if (inExamples) if (line.trim().startsWith("@")) inExamples = false;
9254
- else {
9255
- examplesLines.push(line);
9256
- continue;
9593
+ if (inExamples) {
9594
+ if (line.trim().startsWith("@")) inExamples = false;
9595
+ else {
9596
+ examplesLines.push(line);
9597
+ continue;
9598
+ }
9257
9599
  }
9258
- if (inApi) if (line.trim().startsWith("@")) inApi = false;
9259
- else {
9260
- apiLines.push(line);
9261
- continue;
9600
+ if (inApi) {
9601
+ if (line.trim().startsWith("@")) inApi = false;
9602
+ else {
9603
+ apiLines.push(line);
9604
+ continue;
9605
+ }
9262
9606
  }
9263
- if (captureDescriptionBody) if (line.trim().startsWith("@")) captureDescriptionBody = false;
9264
- else {
9265
- descriptionBodyLines.push(line);
9266
- continue;
9607
+ if (captureDescriptionBody) {
9608
+ if (line.trim().startsWith("@")) captureDescriptionBody = false;
9609
+ else {
9610
+ descriptionBodyLines.push(line);
9611
+ continue;
9612
+ }
9267
9613
  }
9268
9614
  if (line.trim().startsWith("@component")) meta.name = line.replace("@component", "").trim();
9269
9615
  else if (line.trim().startsWith("@title")) meta.title = line.replace("@title", "").trim();
@@ -9317,8 +9663,8 @@ function extractPropsFromAstroProps(sourceFile) {
9317
9663
  }
9318
9664
  return null;
9319
9665
  }
9320
- const target = sourceFile.getDescendantsOfKind(SyntaxKind.VariableDeclaration).find((decl$1) => {
9321
- const init = decl$1.getInitializer();
9666
+ const target = sourceFile.getDescendantsOfKind(SyntaxKind.VariableDeclaration).find((decl) => {
9667
+ const init = decl.getInitializer();
9322
9668
  if (!init) return false;
9323
9669
  return !!unwrapAstroProps(init);
9324
9670
  });
@@ -9375,36 +9721,36 @@ function extractPropsFromDeclaredProps(sourceFile) {
9375
9721
  return [];
9376
9722
  }
9377
9723
  function resolveUiRoot(cwd) {
9378
- const require$1 = createRequire$1(import.meta.url);
9724
+ const require = createRequire$1(import.meta.url);
9379
9725
  const envRoot = process.env.BEJAMAS_UI_ROOT;
9380
- if (envRoot && existsSync(path$1.join(envRoot, "package.json"))) return envRoot;
9726
+ if (envRoot && existsSync(path.join(envRoot, "package.json"))) return envRoot;
9381
9727
  try {
9382
- const pkgPath = require$1.resolve("@bejamas/ui/package.json", { paths: [cwd] });
9383
- return path$1.dirname(pkgPath);
9728
+ const pkgPath = require.resolve("@bejamas/ui/package.json", { paths: [cwd] });
9729
+ return path.dirname(pkgPath);
9384
9730
  } catch {}
9385
9731
  let current = cwd;
9386
9732
  for (let i = 0; i < 6; i += 1) {
9387
- const candidate = path$1.join(current, "packages", "ui", "package.json");
9388
- if (existsSync(candidate)) return path$1.dirname(candidate);
9389
- const parent = path$1.dirname(current);
9733
+ const candidate = path.join(current, "packages", "ui", "package.json");
9734
+ if (existsSync(candidate)) return path.dirname(candidate);
9735
+ const parent = path.dirname(current);
9390
9736
  if (parent === current) break;
9391
9737
  current = parent;
9392
9738
  }
9393
9739
  try {
9394
- const anyEntry = require$1.resolve("@bejamas/ui/*", { paths: [cwd] });
9395
- return path$1.resolve(anyEntry, "..", "..");
9740
+ const anyEntry = require.resolve("@bejamas/ui/*", { paths: [cwd] });
9741
+ return path.resolve(anyEntry, "..", "..");
9396
9742
  } catch {}
9397
9743
  throw new Error("Unable to locate @bejamas/ui in the workspace");
9398
9744
  }
9399
9745
  function resolveOutDir(cwd) {
9400
9746
  const envOut = process.env.BEJAMAS_DOCS_OUT_DIR;
9401
- if (envOut && envOut.length) return path$1.isAbsolute(envOut) ? envOut : path$1.resolve(cwd, envOut);
9402
- return path$1.resolve(cwd, "../../apps/web/src/content/docs/components");
9747
+ if (envOut && envOut.length) return path.isAbsolute(envOut) ? envOut : path.resolve(cwd, envOut);
9748
+ return path.resolve(cwd, "../../apps/web/src/content/docs/components");
9403
9749
  }
9404
9750
  function detectHasImportTopLevel(block, pascalName) {
9405
9751
  if (!block) return false;
9406
9752
  let inFence = false;
9407
- const importLineRegex = /* @__PURE__ */ new RegExp(`^\\s*import\\s+.*\\bfrom\\s+['"][^'"]+\\b${pascalName}\\.astro['"]`);
9753
+ const importLineRegex = new RegExp(`^\\s*import\\s+.*\\bfrom\\s+['"][^'"]+\\b${pascalName}\\.astro['"]`);
9408
9754
  for (const line of block.split("\n")) {
9409
9755
  if (line.trim().startsWith("```")) {
9410
9756
  inFence = !inFence;
@@ -9446,24 +9792,24 @@ function extractComponentTagsFromMDX(block) {
9446
9792
  return Array.from(found);
9447
9793
  }
9448
9794
  async function discoverExamples(componentFilePath, componentsDir) {
9449
- const fileBase = path$1.basename(componentFilePath, path$1.extname(componentFilePath));
9795
+ const fileBase = path.basename(componentFilePath, path.extname(componentFilePath));
9450
9796
  const kebabBase = slugify(fileBase);
9451
- const candidates = [join$1(dirname(componentFilePath), `${fileBase}.examples`), join$1(dirname(componentFilePath), `${kebabBase}.examples`)];
9797
+ const candidates = [join(dirname(componentFilePath), `${fileBase}.examples`), join(dirname(componentFilePath), `${kebabBase}.examples`)];
9452
9798
  const found = [];
9453
9799
  for (const dir of candidates) try {
9454
9800
  const items = await readdir(dir, { withFileTypes: true });
9455
- for (const it of items) if (it.isFile() && extname$1(it.name).toLowerCase() === ".astro") {
9456
- const abs = join$1(dir, it.name);
9457
- const relFromComponents = path$1.relative(componentsDir, abs).split(path$1.sep).join(posix.sep);
9801
+ for (const it of items) if (it.isFile() && extname(it.name).toLowerCase() === ".astro") {
9802
+ const abs = join(dir, it.name);
9803
+ const relFromComponents = path.relative(componentsDir, abs).split(path.sep).join(posix.sep);
9458
9804
  found.push(relFromComponents);
9459
9805
  }
9460
9806
  } catch {}
9461
- return found;
9807
+ return [...new Set(found)].sort();
9462
9808
  }
9463
9809
  function createSourceFileFromFrontmatter(frontmatterCode) {
9464
9810
  return new Project({ useInMemoryFileSystem: true }).createSourceFile("Component.ts", frontmatterCode, { overwrite: true });
9465
9811
  }
9466
9812
 
9467
9813
  //#endregion
9468
- export { PRESET_RADII as $, getSemanticIconNameFromLucideExport as A, getHeadingFontValue as B, BASE_COLORS as C, buildRegistryTheme as D, ICON_LIBRARIES as E, designSystemConfigSchema as F, DEFAULT_PRESET_CONFIG as G, getStyleDefaultRadius as H, getDocumentDirection as I, PRESET_FONTS as J, PRESET_BASE_COLORS as K, getDocumentLanguage as L, renderSemanticIconSvgWithAttributeString as M, DEFAULT_DESIGN_SYSTEM_CONFIG as N, ICON_LIBRARY_COLLECTIONS as O, RTL_LANGUAGE_VALUES as P, PRESET_MENU_COLORS as Q, getFontPackageName as R, BEJAMAS_COMPONENTS_SCHEMA_URL as S, resolveRegistryUrl as T, getStyleId as U, getRadiusValue as V, normalizeDesignSystemConfig as W, PRESET_ICON_LIBRARIES as X, PRESET_FONT_HEADINGS as Y, PRESET_MENU_ACCENTS as Z, getConfig as _, extractComponentTagsFromMDX as a, isPresetCode as at, logger as b, extractPropsFromDeclaredProps as c, parseJsDocMetadata as d, PRESET_STYLES as et, resolveOutDir as f, spinner as g, toIdentifier as h, discoverExamples as i, encodePreset as it, getSemanticIconNameFromLucidePath as j, SEMANTIC_ICON_NAMES as k, normalizeBlockMDX as l, slugify as m, createSourceFileFromFrontmatter as n, V1_CHART_COLOR_MAP as nt, extractFrontmatter as o, fonts as ot, resolveUiRoot as p, PRESET_CHART_COLORS as q, detectHasImportTopLevel as r, decodePreset as rt, extractPropsFromAstroProps as s, __require as st, RESERVED_COMPONENTS as t, PRESET_THEMES as tt, normalizeUsageMDX as u, getWorkspaceConfig as v, buildUiUrl as w, highlighter as x, getProjectInfo as y, getFontValue as z };
9469
- //# sourceMappingURL=utils-CyYWo_qS.js.map
9814
+ export { PRESET_MENU_COLORS as $, SEMANTIC_ICON_NAMES as A, getFontValue as B, BEJAMAS_COMPONENTS_SCHEMA_URL as C, ICON_LIBRARIES as D, resolveRegistryUrl as E, RTL_LANGUAGE_VALUES as F, normalizeDesignSystemConfig as G, getRadiusValue as H, designSystemConfigSchema as I, PRESET_CHART_COLORS as J, DEFAULT_PRESET_CONFIG as K, getDocumentDirection as L, getSemanticIconNameFromLucidePath as M, renderSemanticIconSvgWithAttributeString as N, buildRegistryTheme as O, DEFAULT_DESIGN_SYSTEM_CONFIG as P, PRESET_MENU_ACCENTS as Q, getDocumentLanguage as R, highlighter as S, buildUiUrl as T, getStyleDefaultRadius as U, getHeadingFontValue as V, getStyleId as W, PRESET_FONT_HEADINGS as X, PRESET_FONTS as Y, PRESET_ICON_LIBRARIES as Z, findCommonRoot as _, extractComponentTagsFromMDX as a, encodePreset as at, getProjectInfo as b, extractPropsFromDeclaredProps as c, __require as ct, parseJsDocMetadata as d, PRESET_RADII as et, resolveOutDir as f, spinner as g, toIdentifier as h, discoverExamples as i, decodePreset as it, getSemanticIconNameFromLucideExport as j, ICON_LIBRARY_COLLECTIONS as k, normalizeBlockMDX as l, slugify as m, createSourceFileFromFrontmatter as n, PRESET_THEMES as nt, extractFrontmatter as o, isPresetCode as ot, resolveUiRoot as p, PRESET_BASE_COLORS as q, detectHasImportTopLevel as r, V1_CHART_COLOR_MAP as rt, extractPropsFromAstroProps as s, fonts as st, RESERVED_COMPONENTS as t, PRESET_STYLES as tt, normalizeUsageMDX as u, getConfig as v, BASE_COLORS as w, logger as x, getWorkspaceConfig as y, getFontPackageName as z };
9815
+ //# sourceMappingURL=utils-BEqgES6q.js.map