odm-client 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/dist/client/mongodb-client.d.ts +9 -7
  2. package/dist/client/mongodb-index.d.ts +2 -2
  3. package/dist/cloudbase-index.cjs +1 -1
  4. package/dist/cloudbase-index.js +66 -56
  5. package/dist/decorators/index.d.ts +7 -0
  6. package/dist/deps/_commonjsHelpers-KaVRbhAgd4-5pgl5rkso.js +28 -0
  7. package/dist/deps/_commonjsHelpers-KaVRbhAgd4-r4alsdeis.js +1 -0
  8. package/dist/deps/acorn-DYjaOAP8Gz-29lcn4w0b.js +16 -0
  9. package/dist/deps/acorn-DYjaOAP8Gz-gyct7wut5.js +3005 -0
  10. package/dist/deps/angular-1bp1uAROl4-bz9b1prej.js +2533 -0
  11. package/dist/deps/angular-1bp1uAROl4-z3xa5q2km.js +3 -0
  12. package/dist/deps/babel-_P9jsDBVVy-ipfz7c01i.js +7217 -0
  13. package/dist/deps/babel-_P9jsDBVVy-kjb76ly0t.js +15 -0
  14. package/dist/deps/estree-Q-oFBmJEml-u09jq3zep.js +44 -0
  15. package/dist/deps/estree-Q-oFBmJEml-w9z7zljkf.js +4528 -0
  16. package/dist/deps/flow-j77MFvzLrn-kf5rv1yl1.js +20 -0
  17. package/dist/deps/flow-j77MFvzLrn-l8rtylmcl.js +27411 -0
  18. package/dist/deps/glimmer-ewQPb5nTUl-5p9240228.js +37 -0
  19. package/dist/deps/glimmer-ewQPb5nTUl-xsdp5ejns.js +2703 -0
  20. package/dist/deps/graphql-8EXR1_taGG-a4my17998.js +28 -0
  21. package/dist/deps/graphql-8EXR1_taGG-iqqy1396h.js +1221 -0
  22. package/dist/deps/html-dGbiW_CFWL-inuu6eaf1.js +25 -0
  23. package/dist/deps/html-dGbiW_CFWL-mq1pmq7je.js +2791 -0
  24. package/dist/deps/markdown-vAYIRClyWZ-el25zjeip.js +62 -0
  25. package/dist/deps/markdown-vAYIRClyWZ-f8svm8az3.js +3190 -0
  26. package/dist/deps/meriyah-d5_qqf88x--ntk7vora9.js +5 -0
  27. package/dist/deps/meriyah-d5_qqf88x--tbqv1nv9b.js +2645 -0
  28. package/dist/deps/postcss-Vz5bDQ3hJO-if8y8k5xi.js +4739 -0
  29. package/dist/deps/postcss-Vz5bDQ3hJO-rmv75nb4j.js +61 -0
  30. package/dist/deps/typescript-2hCq12HCbJ-n0w7fscoa.js +21 -0
  31. package/dist/deps/typescript-2hCq12HCbJ-yusfiayfb.js +12947 -0
  32. package/dist/deps/yaml-I5o0CrcX7J-ibk1yd293.js +4079 -0
  33. package/dist/deps/yaml-I5o0CrcX7J-xyc4o9p22.js +159 -0
  34. package/dist/generator/cloudbase-init-generator.d.ts +8 -0
  35. package/dist/generator/enum-generator.d.ts +3 -0
  36. package/dist/generator/index.d.ts +6 -0
  37. package/dist/generator/mongodb-init-generator.d.ts +9 -0
  38. package/dist/generator/parser.d.ts +21 -0
  39. package/dist/generator/table-generator.d.ts +3 -0
  40. package/dist/generator/type-generator.d.ts +6 -0
  41. package/dist/index.cjs +1 -1
  42. package/dist/index.d.ts +1 -1
  43. package/dist/index.js +6 -29
  44. package/dist/index2.cjs +42770 -0
  45. package/dist/index2.js +242204 -0
  46. package/dist/mongodb-index.cjs +11 -11
  47. package/dist/mongodb-index.js +2103 -2106
  48. package/dist/types/index.d.ts +14 -0
  49. package/package.json +3 -1
  50. /package/dist/deps/{query-builder-h6B2D2BCoQ-4ajykqs3m.js → query-builder-h6B2D2BCoQ-f5zcr506g.js} +0 -0
  51. /package/dist/deps/{query-builder-h6B2D2BCoQ-wqso6i87o.js → query-builder-h6B2D2BCoQ-iw94q0kiz.js} +0 -0
@@ -0,0 +1,4739 @@
1
+ var ts = Object.defineProperty;
2
+ var rs = (e, s, o) => s in e ? ts(e, s, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[s] = o;
3
+ var lt = (e, s, o) => rs(e, typeof s != "symbol" ? s + "" : s, o);
4
+ var ss = Object.create, xt = Object.defineProperty, ns = Object.getOwnPropertyDescriptor, os = Object.getOwnPropertyNames, is = Object.getPrototypeOf, as = Object.prototype.hasOwnProperty, A = (e, s) => () => (s || e((s = { exports: {} }).exports, s), s.exports), Kt = (e, s) => {
5
+ for (var o in s) xt(e, o, { get: s[o], enumerable: !0 });
6
+ }, us = (e, s, o, r) => {
7
+ if (s && typeof s == "object" || typeof s == "function") for (let c of os(s)) !as.call(e, c) && c !== o && xt(e, c, { get: () => s[c], enumerable: !(r = ns(s, c)) || r.enumerable });
8
+ return e;
9
+ }, xe = (e, s, o) => (o = e != null ? ss(is(e)) : {}, us(xt(o, "default", { value: e, enumerable: !0 }), e)), ls = A((e, s) => {
10
+ var o = String, r = function() {
11
+ return { isColorSupported: !1, reset: o, bold: o, dim: o, italic: o, underline: o, inverse: o, hidden: o, strikethrough: o, black: o, red: o, green: o, yellow: o, blue: o, magenta: o, cyan: o, white: o, gray: o, bgBlack: o, bgRed: o, bgGreen: o, bgYellow: o, bgBlue: o, bgMagenta: o, bgCyan: o, bgWhite: o, blackBright: o, redBright: o, greenBright: o, yellowBright: o, blueBright: o, magentaBright: o, cyanBright: o, whiteBright: o, bgBlackBright: o, bgRedBright: o, bgGreenBright: o, bgYellowBright: o, bgBlueBright: o, bgMagentaBright: o, bgCyanBright: o, bgWhiteBright: o };
12
+ };
13
+ s.exports = r(), s.exports.createColors = r;
14
+ }), Xt = A(() => {
15
+ }), kt = A((e, s) => {
16
+ var o = ls(), r = Xt(), c = class er extends Error {
17
+ constructor(a, l, m, d, n, t) {
18
+ super(a), this.name = "CssSyntaxError", this.reason = a, n && (this.file = n), d && (this.source = d), t && (this.plugin = t), typeof l < "u" && typeof m < "u" && (typeof l == "number" ? (this.line = l, this.column = m) : (this.line = l.line, this.column = l.column, this.endLine = m.line, this.endColumn = m.column)), this.setMessage(), Error.captureStackTrace && Error.captureStackTrace(this, er);
19
+ }
20
+ setMessage() {
21
+ this.message = this.plugin ? this.plugin + ": " : "", this.message += this.file ? this.file : "<css input>", typeof this.line < "u" && (this.message += ":" + this.line + ":" + this.column), this.message += ": " + this.reason;
22
+ }
23
+ showSourceCode(a) {
24
+ if (!this.source) return "";
25
+ let l = this.source;
26
+ a == null && (a = o.isColorSupported);
27
+ let m = (u) => u, d = (u) => u, n = (u) => u;
28
+ if (a) {
29
+ let { bold: u, gray: b, red: v } = o.createColors(!0);
30
+ d = (y) => u(v(y)), m = (y) => b(y), r && (n = (y) => r(y));
31
+ }
32
+ let t = l.split(/\r?\n/), h = Math.max(this.line - 3, 0), p = Math.min(this.line + 2, t.length), f = String(p).length;
33
+ return t.slice(h, p).map((u, b) => {
34
+ let v = h + 1 + b, y = " " + (" " + v).slice(-f) + " | ";
35
+ if (v === this.line) {
36
+ if (u.length > 160) {
37
+ let x = 20, w = Math.max(0, this.column - x), k = Math.max(this.column + x, this.endColumn + x), T = u.slice(w, k), O = m(y.replace(/\d/g, " ")) + u.slice(0, Math.min(this.column - 1, x - 1)).replace(/[^\t]/g, " ");
38
+ return d(">") + m(y) + n(T) + `
39
+ ` + O + d("^");
40
+ }
41
+ let g = m(y.replace(/\d/g, " ")) + u.slice(0, this.column - 1).replace(/[^\t]/g, " ");
42
+ return d(">") + m(y) + n(u) + `
43
+ ` + g + d("^");
44
+ }
45
+ return " " + m(y) + n(u);
46
+ }).join(`
47
+ `);
48
+ }
49
+ toString() {
50
+ let a = this.showSourceCode();
51
+ return a && (a = `
52
+
53
+ ` + a + `
54
+ `), this.name + ": " + this.message + a;
55
+ }
56
+ };
57
+ s.exports = c, c.default = c;
58
+ }), Tt = A((e, s) => {
59
+ var o = { after: `
60
+ `, beforeClose: `
61
+ `, beforeComment: `
62
+ `, beforeDecl: `
63
+ `, beforeOpen: " ", beforeRule: `
64
+ `, colon: ": ", commentLeft: " ", commentRight: " ", emptyBody: "", indent: " ", semicolon: !1 };
65
+ function r(i) {
66
+ return i[0].toUpperCase() + i.slice(1);
67
+ }
68
+ var c = class {
69
+ constructor(i) {
70
+ this.builder = i;
71
+ }
72
+ atrule(i, a) {
73
+ let l = "@" + i.name, m = i.params ? this.rawValue(i, "params") : "";
74
+ if (typeof i.raws.afterName < "u" ? l += i.raws.afterName : m && (l += " "), i.nodes) this.block(i, l + m);
75
+ else {
76
+ let d = (i.raws.between || "") + (a ? ";" : "");
77
+ this.builder(l + m + d, i);
78
+ }
79
+ }
80
+ beforeAfter(i, a) {
81
+ let l;
82
+ i.type === "decl" ? l = this.raw(i, null, "beforeDecl") : i.type === "comment" ? l = this.raw(i, null, "beforeComment") : a === "before" ? l = this.raw(i, null, "beforeRule") : l = this.raw(i, null, "beforeClose");
83
+ let m = i.parent, d = 0;
84
+ for (; m && m.type !== "root"; ) d += 1, m = m.parent;
85
+ if (l.includes(`
86
+ `)) {
87
+ let n = this.raw(i, null, "indent");
88
+ if (n.length) for (let t = 0; t < d; t++) l += n;
89
+ }
90
+ return l;
91
+ }
92
+ block(i, a) {
93
+ let l = this.raw(i, "between", "beforeOpen");
94
+ this.builder(a + l + "{", i, "start");
95
+ let m;
96
+ i.nodes && i.nodes.length ? (this.body(i), m = this.raw(i, "after")) : m = this.raw(i, "after", "emptyBody"), m && this.builder(m), this.builder("}", i, "end");
97
+ }
98
+ body(i) {
99
+ let a = i.nodes.length - 1;
100
+ for (; a > 0 && i.nodes[a].type === "comment"; ) a -= 1;
101
+ let l = this.raw(i, "semicolon");
102
+ for (let m = 0; m < i.nodes.length; m++) {
103
+ let d = i.nodes[m], n = this.raw(d, "before");
104
+ n && this.builder(n), this.stringify(d, a !== m || l);
105
+ }
106
+ }
107
+ comment(i) {
108
+ let a = this.raw(i, "left", "commentLeft"), l = this.raw(i, "right", "commentRight");
109
+ this.builder("/*" + a + i.text + l + "*/", i);
110
+ }
111
+ decl(i, a) {
112
+ let l = this.raw(i, "between", "colon"), m = i.prop + l + this.rawValue(i, "value");
113
+ i.important && (m += i.raws.important || " !important"), a && (m += ";"), this.builder(m, i);
114
+ }
115
+ document(i) {
116
+ this.body(i);
117
+ }
118
+ raw(i, a, l) {
119
+ let m;
120
+ if (l || (l = a), a && (m = i.raws[a], typeof m < "u")) return m;
121
+ let d = i.parent;
122
+ if (l === "before" && (!d || d.type === "root" && d.first === i || d && d.type === "document")) return "";
123
+ if (!d) return o[l];
124
+ let n = i.root();
125
+ if (n.rawCache || (n.rawCache = {}), typeof n.rawCache[l] < "u") return n.rawCache[l];
126
+ if (l === "before" || l === "after") return this.beforeAfter(i, l);
127
+ {
128
+ let t = "raw" + r(l);
129
+ this[t] ? m = this[t](n, i) : n.walk((h) => {
130
+ if (m = h.raws[a], typeof m < "u") return !1;
131
+ });
132
+ }
133
+ return typeof m > "u" && (m = o[l]), n.rawCache[l] = m, m;
134
+ }
135
+ rawBeforeClose(i) {
136
+ let a;
137
+ return i.walk((l) => {
138
+ if (l.nodes && l.nodes.length > 0 && typeof l.raws.after < "u") return a = l.raws.after, a.includes(`
139
+ `) && (a = a.replace(/[^\n]+$/, "")), !1;
140
+ }), a && (a = a.replace(/\S/g, "")), a;
141
+ }
142
+ rawBeforeComment(i, a) {
143
+ let l;
144
+ return i.walkComments((m) => {
145
+ if (typeof m.raws.before < "u") return l = m.raws.before, l.includes(`
146
+ `) && (l = l.replace(/[^\n]+$/, "")), !1;
147
+ }), typeof l > "u" ? l = this.raw(a, null, "beforeDecl") : l && (l = l.replace(/\S/g, "")), l;
148
+ }
149
+ rawBeforeDecl(i, a) {
150
+ let l;
151
+ return i.walkDecls((m) => {
152
+ if (typeof m.raws.before < "u") return l = m.raws.before, l.includes(`
153
+ `) && (l = l.replace(/[^\n]+$/, "")), !1;
154
+ }), typeof l > "u" ? l = this.raw(a, null, "beforeRule") : l && (l = l.replace(/\S/g, "")), l;
155
+ }
156
+ rawBeforeOpen(i) {
157
+ let a;
158
+ return i.walk((l) => {
159
+ if (l.type !== "decl" && (a = l.raws.between, typeof a < "u")) return !1;
160
+ }), a;
161
+ }
162
+ rawBeforeRule(i) {
163
+ let a;
164
+ return i.walk((l) => {
165
+ if (l.nodes && (l.parent !== i || i.first !== l) && typeof l.raws.before < "u") return a = l.raws.before, a.includes(`
166
+ `) && (a = a.replace(/[^\n]+$/, "")), !1;
167
+ }), a && (a = a.replace(/\S/g, "")), a;
168
+ }
169
+ rawColon(i) {
170
+ let a;
171
+ return i.walkDecls((l) => {
172
+ if (typeof l.raws.between < "u") return a = l.raws.between.replace(/[^\s:]/g, ""), !1;
173
+ }), a;
174
+ }
175
+ rawEmptyBody(i) {
176
+ let a;
177
+ return i.walk((l) => {
178
+ if (l.nodes && l.nodes.length === 0 && (a = l.raws.after, typeof a < "u")) return !1;
179
+ }), a;
180
+ }
181
+ rawIndent(i) {
182
+ if (i.raws.indent) return i.raws.indent;
183
+ let a;
184
+ return i.walk((l) => {
185
+ let m = l.parent;
186
+ if (m && m !== i && m.parent && m.parent === i && typeof l.raws.before < "u") {
187
+ let d = l.raws.before.split(`
188
+ `);
189
+ return a = d[d.length - 1], a = a.replace(/\S/g, ""), !1;
190
+ }
191
+ }), a;
192
+ }
193
+ rawSemicolon(i) {
194
+ let a;
195
+ return i.walk((l) => {
196
+ if (l.nodes && l.nodes.length && l.last.type === "decl" && (a = l.raws.semicolon, typeof a < "u")) return !1;
197
+ }), a;
198
+ }
199
+ rawValue(i, a) {
200
+ let l = i[a], m = i.raws[a];
201
+ return m && m.value === l ? m.raw : l;
202
+ }
203
+ root(i) {
204
+ this.body(i), i.raws.after && this.builder(i.raws.after);
205
+ }
206
+ rule(i) {
207
+ this.block(i, this.rawValue(i, "selector")), i.raws.ownSemicolon && this.builder(i.raws.ownSemicolon, i, "end");
208
+ }
209
+ stringify(i, a) {
210
+ if (!this[i.type]) throw new Error("Unknown AST node type " + i.type + ". Maybe you need to change PostCSS stringifier.");
211
+ this[i.type](i, a);
212
+ }
213
+ };
214
+ s.exports = c, c.default = c;
215
+ }), Ye = A((e, s) => {
216
+ var o = Tt();
217
+ function r(c, i) {
218
+ new o(i).stringify(c);
219
+ }
220
+ s.exports = r, r.default = r;
221
+ }), Ot = A((e, s) => {
222
+ s.exports.isClean = Symbol("isClean"), s.exports.my = Symbol("my");
223
+ }), Ke = A((e, s) => {
224
+ var o = kt(), r = Tt(), c = Ye(), { isClean: i, my: a } = Ot();
225
+ function l(n, t) {
226
+ let h = new n.constructor();
227
+ for (let p in n) {
228
+ if (!Object.prototype.hasOwnProperty.call(n, p) || p === "proxyCache") continue;
229
+ let f = n[p], u = typeof f;
230
+ p === "parent" && u === "object" ? t && (h[p] = t) : p === "source" ? h[p] = f : Array.isArray(f) ? h[p] = f.map((b) => l(b, h)) : (u === "object" && f !== null && (f = l(f)), h[p] = f);
231
+ }
232
+ return h;
233
+ }
234
+ function m(n, t) {
235
+ if (t && typeof t.offset < "u") return t.offset;
236
+ let h = 1, p = 1, f = 0;
237
+ for (let u = 0; u < n.length; u++) {
238
+ if (p === t.line && h === t.column) {
239
+ f = u;
240
+ break;
241
+ }
242
+ n[u] === `
243
+ ` ? (h = 1, p += 1) : h += 1;
244
+ }
245
+ return f;
246
+ }
247
+ var d = class {
248
+ get proxyOf() {
249
+ return this;
250
+ }
251
+ constructor(n = {}) {
252
+ this.raws = {}, this[i] = !1, this[a] = !0;
253
+ for (let t in n) if (t === "nodes") {
254
+ this.nodes = [];
255
+ for (let h of n[t]) typeof h.clone == "function" ? this.append(h.clone()) : this.append(h);
256
+ } else this[t] = n[t];
257
+ }
258
+ addToError(n) {
259
+ if (n.postcssNode = this, n.stack && this.source && /\n\s{4}at /.test(n.stack)) {
260
+ let t = this.source;
261
+ n.stack = n.stack.replace(/\n\s{4}at /, `$&${t.input.from}:${t.start.line}:${t.start.column}$&`);
262
+ }
263
+ return n;
264
+ }
265
+ after(n) {
266
+ return this.parent.insertAfter(this, n), this;
267
+ }
268
+ assign(n = {}) {
269
+ for (let t in n) this[t] = n[t];
270
+ return this;
271
+ }
272
+ before(n) {
273
+ return this.parent.insertBefore(this, n), this;
274
+ }
275
+ cleanRaws(n) {
276
+ delete this.raws.before, delete this.raws.after, n || delete this.raws.between;
277
+ }
278
+ clone(n = {}) {
279
+ let t = l(this);
280
+ for (let h in n) t[h] = n[h];
281
+ return t;
282
+ }
283
+ cloneAfter(n = {}) {
284
+ let t = this.clone(n);
285
+ return this.parent.insertAfter(this, t), t;
286
+ }
287
+ cloneBefore(n = {}) {
288
+ let t = this.clone(n);
289
+ return this.parent.insertBefore(this, t), t;
290
+ }
291
+ error(n, t = {}) {
292
+ if (this.source) {
293
+ let { end: h, start: p } = this.rangeBy(t);
294
+ return this.source.input.error(n, { column: p.column, line: p.line }, { column: h.column, line: h.line }, t);
295
+ }
296
+ return new o(n);
297
+ }
298
+ getProxyProcessor() {
299
+ return { get(n, t) {
300
+ return t === "proxyOf" ? n : t === "root" ? () => n.root().toProxy() : n[t];
301
+ }, set(n, t, h) {
302
+ return n[t] === h || (n[t] = h, (t === "prop" || t === "value" || t === "name" || t === "params" || t === "important" || t === "text") && n.markDirty()), !0;
303
+ } };
304
+ }
305
+ markClean() {
306
+ this[i] = !0;
307
+ }
308
+ markDirty() {
309
+ if (this[i]) {
310
+ this[i] = !1;
311
+ let n = this;
312
+ for (; n = n.parent; ) n[i] = !1;
313
+ }
314
+ }
315
+ next() {
316
+ if (!this.parent) return;
317
+ let n = this.parent.index(this);
318
+ return this.parent.nodes[n + 1];
319
+ }
320
+ positionBy(n = {}) {
321
+ let t = this.source.start;
322
+ if (n.index) t = this.positionInside(n.index);
323
+ else if (n.word) {
324
+ let h = "document" in this.source.input ? this.source.input.document : this.source.input.css, p = h.slice(m(h, this.source.start), m(h, this.source.end)).indexOf(n.word);
325
+ p !== -1 && (t = this.positionInside(p));
326
+ }
327
+ return t;
328
+ }
329
+ positionInside(n) {
330
+ let t = this.source.start.column, h = this.source.start.line, p = "document" in this.source.input ? this.source.input.document : this.source.input.css, f = m(p, this.source.start), u = f + n;
331
+ for (let b = f; b < u; b++) p[b] === `
332
+ ` ? (t = 1, h += 1) : t += 1;
333
+ return { column: t, line: h, offset: u };
334
+ }
335
+ prev() {
336
+ if (!this.parent) return;
337
+ let n = this.parent.index(this);
338
+ return this.parent.nodes[n - 1];
339
+ }
340
+ rangeBy(n = {}) {
341
+ let t = "document" in this.source.input ? this.source.input.document : this.source.input.css, h = { column: this.source.start.column, line: this.source.start.line, offset: m(t, this.source.start) }, p = this.source.end ? { column: this.source.end.column + 1, line: this.source.end.line, offset: typeof this.source.end.offset == "number" ? this.source.end.offset : m(t, this.source.end) + 1 } : { column: h.column + 1, line: h.line, offset: h.offset + 1 };
342
+ if (n.word) {
343
+ let f = t.slice(m(t, this.source.start), m(t, this.source.end)).indexOf(n.word);
344
+ f !== -1 && (h = this.positionInside(f), p = this.positionInside(f + n.word.length));
345
+ } else n.start ? h = { column: n.start.column, line: n.start.line, offset: m(t, n.start) } : n.index && (h = this.positionInside(n.index)), n.end ? p = { column: n.end.column, line: n.end.line, offset: m(t, n.end) } : typeof n.endIndex == "number" ? p = this.positionInside(n.endIndex) : n.index && (p = this.positionInside(n.index + 1));
346
+ return (p.line < h.line || p.line === h.line && p.column <= h.column) && (p = { column: h.column + 1, line: h.line, offset: h.offset + 1 }), { end: p, start: h };
347
+ }
348
+ raw(n, t) {
349
+ return new r().raw(this, n, t);
350
+ }
351
+ remove() {
352
+ return this.parent && this.parent.removeChild(this), this.parent = void 0, this;
353
+ }
354
+ replaceWith(...n) {
355
+ if (this.parent) {
356
+ let t = this, h = !1;
357
+ for (let p of n) p === this ? h = !0 : h ? (this.parent.insertAfter(t, p), t = p) : this.parent.insertBefore(t, p);
358
+ h || this.remove();
359
+ }
360
+ return this;
361
+ }
362
+ root() {
363
+ let n = this;
364
+ for (; n.parent && n.parent.type !== "document"; ) n = n.parent;
365
+ return n;
366
+ }
367
+ toJSON(n, t) {
368
+ let h = {}, p = t == null;
369
+ t = t || /* @__PURE__ */ new Map();
370
+ let f = 0;
371
+ for (let u in this) {
372
+ if (!Object.prototype.hasOwnProperty.call(this, u) || u === "parent" || u === "proxyCache") continue;
373
+ let b = this[u];
374
+ if (Array.isArray(b)) h[u] = b.map((v) => typeof v == "object" && v.toJSON ? v.toJSON(null, t) : v);
375
+ else if (typeof b == "object" && b.toJSON) h[u] = b.toJSON(null, t);
376
+ else if (u === "source") {
377
+ if (b == null) continue;
378
+ let v = t.get(b.input);
379
+ v == null && (v = f, t.set(b.input, f), f++), h[u] = { end: b.end, inputId: v, start: b.start };
380
+ } else h[u] = b;
381
+ }
382
+ return p && (h.inputs = [...t.keys()].map((u) => u.toJSON())), h;
383
+ }
384
+ toProxy() {
385
+ return this.proxyCache || (this.proxyCache = new Proxy(this, this.getProxyProcessor())), this.proxyCache;
386
+ }
387
+ toString(n = c) {
388
+ n.stringify && (n = n.stringify);
389
+ let t = "";
390
+ return n(this, (h) => {
391
+ t += h;
392
+ }), t;
393
+ }
394
+ warn(n, t, h = {}) {
395
+ let p = { node: this };
396
+ for (let f in h) p[f] = h[f];
397
+ return n.warn(t, p);
398
+ }
399
+ };
400
+ s.exports = d, d.default = d;
401
+ }), Ne = A((e, s) => {
402
+ var o = Ke(), r = class extends o {
403
+ constructor(c) {
404
+ super(c), this.type = "comment";
405
+ }
406
+ };
407
+ s.exports = r, r.default = r;
408
+ }), Xe = A((e, s) => {
409
+ var o = Ke(), r = class extends o {
410
+ get variable() {
411
+ return this.prop.startsWith("--") || this.prop[0] === "$";
412
+ }
413
+ constructor(c) {
414
+ c && typeof c.value < "u" && typeof c.value != "string" && (c = { ...c, value: String(c.value) }), super(c), this.type = "decl";
415
+ }
416
+ };
417
+ s.exports = r, r.default = r;
418
+ }), pe = A((e, s) => {
419
+ var o = Ne(), r = Xe(), c = Ke(), { isClean: i, my: a } = Ot(), l, m, d, n;
420
+ function t(f) {
421
+ return f.map((u) => (u.nodes && (u.nodes = t(u.nodes)), delete u.source, u));
422
+ }
423
+ function h(f) {
424
+ if (f[i] = !1, f.proxyOf.nodes) for (let u of f.proxyOf.nodes) h(u);
425
+ }
426
+ var p = class tr extends c {
427
+ get first() {
428
+ if (this.proxyOf.nodes) return this.proxyOf.nodes[0];
429
+ }
430
+ get last() {
431
+ if (this.proxyOf.nodes) return this.proxyOf.nodes[this.proxyOf.nodes.length - 1];
432
+ }
433
+ append(...u) {
434
+ for (let b of u) {
435
+ let v = this.normalize(b, this.last);
436
+ for (let y of v) this.proxyOf.nodes.push(y);
437
+ }
438
+ return this.markDirty(), this;
439
+ }
440
+ cleanRaws(u) {
441
+ if (super.cleanRaws(u), this.nodes) for (let b of this.nodes) b.cleanRaws(u);
442
+ }
443
+ each(u) {
444
+ if (!this.proxyOf.nodes) return;
445
+ let b = this.getIterator(), v, y;
446
+ for (; this.indexes[b] < this.proxyOf.nodes.length && (v = this.indexes[b], y = u(this.proxyOf.nodes[v], v), y !== !1); ) this.indexes[b] += 1;
447
+ return delete this.indexes[b], y;
448
+ }
449
+ every(u) {
450
+ return this.nodes.every(u);
451
+ }
452
+ getIterator() {
453
+ this.lastEach || (this.lastEach = 0), this.indexes || (this.indexes = {}), this.lastEach += 1;
454
+ let u = this.lastEach;
455
+ return this.indexes[u] = 0, u;
456
+ }
457
+ getProxyProcessor() {
458
+ return { get(u, b) {
459
+ return b === "proxyOf" ? u : u[b] ? b === "each" || typeof b == "string" && b.startsWith("walk") ? (...v) => u[b](...v.map((y) => typeof y == "function" ? (g, x) => y(g.toProxy(), x) : y)) : b === "every" || b === "some" ? (v) => u[b]((y, ...g) => v(y.toProxy(), ...g)) : b === "root" ? () => u.root().toProxy() : b === "nodes" ? u.nodes.map((v) => v.toProxy()) : b === "first" || b === "last" ? u[b].toProxy() : u[b] : u[b];
460
+ }, set(u, b, v) {
461
+ return u[b] === v || (u[b] = v, (b === "name" || b === "params" || b === "selector") && u.markDirty()), !0;
462
+ } };
463
+ }
464
+ index(u) {
465
+ return typeof u == "number" ? u : (u.proxyOf && (u = u.proxyOf), this.proxyOf.nodes.indexOf(u));
466
+ }
467
+ insertAfter(u, b) {
468
+ let v = this.index(u), y = this.normalize(b, this.proxyOf.nodes[v]).reverse();
469
+ v = this.index(u);
470
+ for (let x of y) this.proxyOf.nodes.splice(v + 1, 0, x);
471
+ let g;
472
+ for (let x in this.indexes) g = this.indexes[x], v < g && (this.indexes[x] = g + y.length);
473
+ return this.markDirty(), this;
474
+ }
475
+ insertBefore(u, b) {
476
+ let v = this.index(u), y = v === 0 ? "prepend" : !1, g = this.normalize(b, this.proxyOf.nodes[v], y).reverse();
477
+ v = this.index(u);
478
+ for (let w of g) this.proxyOf.nodes.splice(v, 0, w);
479
+ let x;
480
+ for (let w in this.indexes) x = this.indexes[w], v <= x && (this.indexes[w] = x + g.length);
481
+ return this.markDirty(), this;
482
+ }
483
+ normalize(u, b) {
484
+ if (typeof u == "string") u = t(m(u).nodes);
485
+ else if (typeof u > "u") u = [];
486
+ else if (Array.isArray(u)) {
487
+ u = u.slice(0);
488
+ for (let v of u) v.parent && v.parent.removeChild(v, "ignore");
489
+ } else if (u.type === "root" && this.type !== "document") {
490
+ u = u.nodes.slice(0);
491
+ for (let v of u) v.parent && v.parent.removeChild(v, "ignore");
492
+ } else if (u.type) u = [u];
493
+ else if (u.prop) {
494
+ if (typeof u.value > "u") throw new Error("Value field is missed in node creation");
495
+ typeof u.value != "string" && (u.value = String(u.value)), u = [new r(u)];
496
+ } else if (u.selector || u.selectors) u = [new n(u)];
497
+ else if (u.name) u = [new l(u)];
498
+ else if (u.text) u = [new o(u)];
499
+ else throw new Error("Unknown node type in node creation");
500
+ return u.map((v) => (v[a] || tr.rebuild(v), v = v.proxyOf, v.parent && v.parent.removeChild(v), v[i] && h(v), v.raws || (v.raws = {}), typeof v.raws.before > "u" && b && typeof b.raws.before < "u" && (v.raws.before = b.raws.before.replace(/\S/g, "")), v.parent = this.proxyOf, v));
501
+ }
502
+ prepend(...u) {
503
+ u = u.reverse();
504
+ for (let b of u) {
505
+ let v = this.normalize(b, this.first, "prepend").reverse();
506
+ for (let y of v) this.proxyOf.nodes.unshift(y);
507
+ for (let y in this.indexes) this.indexes[y] = this.indexes[y] + v.length;
508
+ }
509
+ return this.markDirty(), this;
510
+ }
511
+ push(u) {
512
+ return u.parent = this, this.proxyOf.nodes.push(u), this;
513
+ }
514
+ removeAll() {
515
+ for (let u of this.proxyOf.nodes) u.parent = void 0;
516
+ return this.proxyOf.nodes = [], this.markDirty(), this;
517
+ }
518
+ removeChild(u) {
519
+ u = this.index(u), this.proxyOf.nodes[u].parent = void 0, this.proxyOf.nodes.splice(u, 1);
520
+ let b;
521
+ for (let v in this.indexes) b = this.indexes[v], b >= u && (this.indexes[v] = b - 1);
522
+ return this.markDirty(), this;
523
+ }
524
+ replaceValues(u, b, v) {
525
+ return v || (v = b, b = {}), this.walkDecls((y) => {
526
+ b.props && !b.props.includes(y.prop) || b.fast && !y.value.includes(b.fast) || (y.value = y.value.replace(u, v));
527
+ }), this.markDirty(), this;
528
+ }
529
+ some(u) {
530
+ return this.nodes.some(u);
531
+ }
532
+ walk(u) {
533
+ return this.each((b, v) => {
534
+ let y;
535
+ try {
536
+ y = u(b, v);
537
+ } catch (g) {
538
+ throw b.addToError(g);
539
+ }
540
+ return y !== !1 && b.walk && (y = b.walk(u)), y;
541
+ });
542
+ }
543
+ walkAtRules(u, b) {
544
+ return b ? u instanceof RegExp ? this.walk((v, y) => {
545
+ if (v.type === "atrule" && u.test(v.name)) return b(v, y);
546
+ }) : this.walk((v, y) => {
547
+ if (v.type === "atrule" && v.name === u) return b(v, y);
548
+ }) : (b = u, this.walk((v, y) => {
549
+ if (v.type === "atrule") return b(v, y);
550
+ }));
551
+ }
552
+ walkComments(u) {
553
+ return this.walk((b, v) => {
554
+ if (b.type === "comment") return u(b, v);
555
+ });
556
+ }
557
+ walkDecls(u, b) {
558
+ return b ? u instanceof RegExp ? this.walk((v, y) => {
559
+ if (v.type === "decl" && u.test(v.prop)) return b(v, y);
560
+ }) : this.walk((v, y) => {
561
+ if (v.type === "decl" && v.prop === u) return b(v, y);
562
+ }) : (b = u, this.walk((v, y) => {
563
+ if (v.type === "decl") return b(v, y);
564
+ }));
565
+ }
566
+ walkRules(u, b) {
567
+ return b ? u instanceof RegExp ? this.walk((v, y) => {
568
+ if (v.type === "rule" && u.test(v.selector)) return b(v, y);
569
+ }) : this.walk((v, y) => {
570
+ if (v.type === "rule" && v.selector === u) return b(v, y);
571
+ }) : (b = u, this.walk((v, y) => {
572
+ if (v.type === "rule") return b(v, y);
573
+ }));
574
+ }
575
+ };
576
+ p.registerParse = (f) => {
577
+ m = f;
578
+ }, p.registerRule = (f) => {
579
+ n = f;
580
+ }, p.registerAtRule = (f) => {
581
+ l = f;
582
+ }, p.registerRoot = (f) => {
583
+ d = f;
584
+ }, s.exports = p, p.default = p, p.rebuild = (f) => {
585
+ f.type === "atrule" ? Object.setPrototypeOf(f, l.prototype) : f.type === "rule" ? Object.setPrototypeOf(f, n.prototype) : f.type === "decl" ? Object.setPrototypeOf(f, r.prototype) : f.type === "comment" ? Object.setPrototypeOf(f, o.prototype) : f.type === "root" && Object.setPrototypeOf(f, d.prototype), f[a] = !0, f.nodes && f.nodes.forEach((u) => {
586
+ p.rebuild(u);
587
+ });
588
+ };
589
+ }), cs = A((e, s) => {
590
+ var o = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", r = (i, a = 21) => (l = a) => {
591
+ let m = "", d = l | 0;
592
+ for (; d--; ) m += i[Math.random() * i.length | 0];
593
+ return m;
594
+ }, c = (i = 21) => {
595
+ let a = "", l = i | 0;
596
+ for (; l--; ) a += o[Math.random() * 64 | 0];
597
+ return a;
598
+ };
599
+ s.exports = { nanoid: c, customAlphabet: r };
600
+ }), ps = A(() => {
601
+ }), rr = A((e, s) => {
602
+ s.exports = class {
603
+ };
604
+ }), Le = A((e, s) => {
605
+ var { nanoid: o } = cs(), { isAbsolute: r, resolve: c } = {}, { SourceMapConsumer: i, SourceMapGenerator: a } = ps(), { fileURLToPath: l, pathToFileURL: m } = {}, d = kt(), n = rr(), t = Xt(), h = Symbol("lineToIndexCache"), p = !!(i && a), f = !!(c && r);
606
+ function u(v) {
607
+ if (v[h]) return v[h];
608
+ let y = v.css.split(`
609
+ `), g = new Array(y.length), x = 0;
610
+ for (let w = 0, k = y.length; w < k; w++) g[w] = x, x += y[w].length + 1;
611
+ return v[h] = g, g;
612
+ }
613
+ var b = class {
614
+ get from() {
615
+ return this.file || this.id;
616
+ }
617
+ constructor(v, y = {}) {
618
+ if (v === null || typeof v > "u" || typeof v == "object" && !v.toString) throw new Error(`PostCSS received ${v} instead of CSS string`);
619
+ if (this.css = v.toString(), this.css[0] === "\uFEFF" || this.css[0] === "￾" ? (this.hasBOM = !0, this.css = this.css.slice(1)) : this.hasBOM = !1, this.document = this.css, y.document && (this.document = y.document.toString()), y.from && (!f || /^\w+:\/\//.test(y.from) || r(y.from) ? this.file = y.from : this.file = c(y.from)), f && p) {
620
+ let g = new n(this.css, y);
621
+ if (g.text) {
622
+ this.map = g;
623
+ let x = g.consumer().file;
624
+ !this.file && x && (this.file = this.mapResolve(x));
625
+ }
626
+ }
627
+ this.file || (this.id = "<input css " + o(6) + ">"), this.map && (this.map.file = this.from);
628
+ }
629
+ error(v, y, g, x = {}) {
630
+ let w, k, T, O, S;
631
+ if (y && typeof y == "object") {
632
+ let I = y, N = g;
633
+ if (typeof I.offset == "number") {
634
+ O = I.offset;
635
+ let $ = this.fromOffset(O);
636
+ y = $.line, g = $.col;
637
+ } else y = I.line, g = I.column, O = this.fromLineAndColumn(y, g);
638
+ if (typeof N.offset == "number") {
639
+ T = N.offset;
640
+ let $ = this.fromOffset(T);
641
+ k = $.line, w = $.col;
642
+ } else k = N.line, w = N.column, T = this.fromLineAndColumn(N.line, N.column);
643
+ } else if (g) O = this.fromLineAndColumn(y, g);
644
+ else {
645
+ O = y;
646
+ let I = this.fromOffset(O);
647
+ y = I.line, g = I.col;
648
+ }
649
+ let E = this.origin(y, g, k, w);
650
+ return E ? S = new d(v, E.endLine === void 0 ? E.line : { column: E.column, line: E.line }, E.endLine === void 0 ? E.column : { column: E.endColumn, line: E.endLine }, E.source, E.file, x.plugin) : S = new d(v, k === void 0 ? y : { column: g, line: y }, k === void 0 ? g : { column: w, line: k }, this.css, this.file, x.plugin), S.input = { column: g, endColumn: w, endLine: k, endOffset: T, line: y, offset: O, source: this.css }, this.file && (m && (S.input.url = m(this.file).toString()), S.input.file = this.file), S;
651
+ }
652
+ fromLineAndColumn(v, y) {
653
+ return u(this)[v - 1] + y - 1;
654
+ }
655
+ fromOffset(v) {
656
+ let y = u(this), g = y[y.length - 1], x = 0;
657
+ if (v >= g) x = y.length - 1;
658
+ else {
659
+ let w = y.length - 2, k;
660
+ for (; x < w; ) if (k = x + (w - x >> 1), v < y[k]) w = k - 1;
661
+ else if (v >= y[k + 1]) x = k + 1;
662
+ else {
663
+ x = k;
664
+ break;
665
+ }
666
+ }
667
+ return { col: v - y[x] + 1, line: x + 1 };
668
+ }
669
+ mapResolve(v) {
670
+ return /^\w+:\/\//.test(v) ? v : c(this.map.consumer().sourceRoot || this.map.root || ".", v);
671
+ }
672
+ origin(v, y, g, x) {
673
+ if (!this.map) return !1;
674
+ let w = this.map.consumer(), k = w.originalPositionFor({ column: y, line: v });
675
+ if (!k.source) return !1;
676
+ let T;
677
+ typeof g == "number" && (T = w.originalPositionFor({ column: x, line: g }));
678
+ let O;
679
+ r(k.source) ? O = m(k.source) : O = new URL(k.source, this.map.consumer().sourceRoot || m(this.map.mapFile));
680
+ let S = { column: k.column, endColumn: T && T.column, endLine: T && T.line, line: k.line, url: O.toString() };
681
+ if (O.protocol === "file:") if (l) S.file = l(O);
682
+ else throw new Error("file: protocol is not available in this PostCSS build");
683
+ let E = w.sourceContentFor(k.source);
684
+ return E && (S.source = E), S;
685
+ }
686
+ toJSON() {
687
+ let v = {};
688
+ for (let y of ["hasBOM", "css", "file", "id"]) this[y] != null && (v[y] = this[y]);
689
+ return this.map && (v.map = { ...this.map }, v.map.consumerCache && (v.map.consumerCache = void 0)), v;
690
+ }
691
+ };
692
+ s.exports = b, b.default = b, t && t.registerInput && t.registerInput(b);
693
+ }), _t = A((e, s) => {
694
+ var o = pe(), r = class extends o {
695
+ constructor(c) {
696
+ super(c), this.type = "atrule";
697
+ }
698
+ append(...c) {
699
+ return this.proxyOf.nodes || (this.nodes = []), super.append(...c);
700
+ }
701
+ prepend(...c) {
702
+ return this.proxyOf.nodes || (this.nodes = []), super.prepend(...c);
703
+ }
704
+ };
705
+ s.exports = r, r.default = r, o.registerAtRule(r);
706
+ }), We = A((e, s) => {
707
+ var o = pe(), r, c, i = class extends o {
708
+ constructor(a) {
709
+ super(a), this.type = "root", this.nodes || (this.nodes = []);
710
+ }
711
+ normalize(a, l, m) {
712
+ let d = super.normalize(a);
713
+ if (l) {
714
+ if (m === "prepend") this.nodes.length > 1 ? l.raws.before = this.nodes[1].raws.before : delete l.raws.before;
715
+ else if (this.first !== l) for (let n of d) n.raws.before = l.raws.before;
716
+ }
717
+ return d;
718
+ }
719
+ removeChild(a, l) {
720
+ let m = this.index(a);
721
+ return !l && m === 0 && this.nodes.length > 1 && (this.nodes[1].raws.before = this.nodes[m].raws.before), super.removeChild(a);
722
+ }
723
+ toResult(a = {}) {
724
+ return new r(new c(), this, a).stringify();
725
+ }
726
+ };
727
+ i.registerLazyResult = (a) => {
728
+ r = a;
729
+ }, i.registerProcessor = (a) => {
730
+ c = a;
731
+ }, s.exports = i, i.default = i, o.registerRoot(i);
732
+ }), sr = A((e, s) => {
733
+ var o = { comma(r) {
734
+ return o.split(r, [","], !0);
735
+ }, space(r) {
736
+ let c = [" ", `
737
+ `, " "];
738
+ return o.split(r, c);
739
+ }, split(r, c, i) {
740
+ let a = [], l = "", m = !1, d = 0, n = !1, t = "", h = !1;
741
+ for (let p of r) h ? h = !1 : p === "\\" ? h = !0 : n ? p === t && (n = !1) : p === '"' || p === "'" ? (n = !0, t = p) : p === "(" ? d += 1 : p === ")" ? d > 0 && (d -= 1) : d === 0 && c.includes(p) && (m = !0), m ? (l !== "" && a.push(l.trim()), l = "", m = !1) : l += p;
742
+ return (i || l !== "") && a.push(l.trim()), a;
743
+ } };
744
+ s.exports = o, o.default = o;
745
+ }), Ct = A((e, s) => {
746
+ var o = pe(), r = sr(), c = class extends o {
747
+ get selectors() {
748
+ return r.comma(this.selector);
749
+ }
750
+ set selectors(i) {
751
+ let a = this.selector ? this.selector.match(/,\s*/) : null, l = a ? a[0] : "," + this.raw("between", "beforeOpen");
752
+ this.selector = i.join(l);
753
+ }
754
+ constructor(i) {
755
+ super(i), this.type = "rule", this.nodes || (this.nodes = []);
756
+ }
757
+ };
758
+ s.exports = c, c.default = c, o.registerRule(c);
759
+ }), St = A((e, s) => {
760
+ var o = /[\t\n\f\r "#'()/;[\\\]{}]/g, r = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, c = /.[\r\n"'(/\\]/, i = /[\da-f]/i;
761
+ s.exports = function(a, l = {}) {
762
+ let m = a.css.valueOf(), d = l.ignoreErrors, n, t, h, p, f, u, b, v, y, g, x = m.length, w = 0, k = [], T = [];
763
+ function O() {
764
+ return w;
765
+ }
766
+ function S($) {
767
+ throw a.error("Unclosed " + $, w);
768
+ }
769
+ function E() {
770
+ return T.length === 0 && w >= x;
771
+ }
772
+ function I($) {
773
+ if (T.length) return T.pop();
774
+ if (w >= x) return;
775
+ let R = $ ? $.ignoreUnclosed : !1;
776
+ switch (n = m.charCodeAt(w), n) {
777
+ case 10:
778
+ case 32:
779
+ case 9:
780
+ case 13:
781
+ case 12: {
782
+ p = w;
783
+ do
784
+ p += 1, n = m.charCodeAt(p);
785
+ while (n === 32 || n === 10 || n === 9 || n === 13 || n === 12);
786
+ u = ["space", m.slice(w, p)], w = p - 1;
787
+ break;
788
+ }
789
+ case 91:
790
+ case 93:
791
+ case 123:
792
+ case 125:
793
+ case 58:
794
+ case 59:
795
+ case 41: {
796
+ let M = String.fromCharCode(n);
797
+ u = [M, M, w];
798
+ break;
799
+ }
800
+ case 40: {
801
+ if (g = k.length ? k.pop()[1] : "", y = m.charCodeAt(w + 1), g === "url" && y !== 39 && y !== 34 && y !== 32 && y !== 10 && y !== 9 && y !== 12 && y !== 13) {
802
+ p = w;
803
+ do {
804
+ if (b = !1, p = m.indexOf(")", p + 1), p === -1) if (d || R) {
805
+ p = w;
806
+ break;
807
+ } else S("bracket");
808
+ for (v = p; m.charCodeAt(v - 1) === 92; ) v -= 1, b = !b;
809
+ } while (b);
810
+ u = ["brackets", m.slice(w, p + 1), w, p], w = p;
811
+ } else p = m.indexOf(")", w + 1), t = m.slice(w, p + 1), p === -1 || c.test(t) ? u = ["(", "(", w] : (u = ["brackets", t, w, p], w = p);
812
+ break;
813
+ }
814
+ case 39:
815
+ case 34: {
816
+ f = n === 39 ? "'" : '"', p = w;
817
+ do {
818
+ if (b = !1, p = m.indexOf(f, p + 1), p === -1) if (d || R) {
819
+ p = w + 1;
820
+ break;
821
+ } else S("string");
822
+ for (v = p; m.charCodeAt(v - 1) === 92; ) v -= 1, b = !b;
823
+ } while (b);
824
+ u = ["string", m.slice(w, p + 1), w, p], w = p;
825
+ break;
826
+ }
827
+ case 64: {
828
+ o.lastIndex = w + 1, o.test(m), o.lastIndex === 0 ? p = m.length - 1 : p = o.lastIndex - 2, u = ["at-word", m.slice(w, p + 1), w, p], w = p;
829
+ break;
830
+ }
831
+ case 92: {
832
+ for (p = w, h = !0; m.charCodeAt(p + 1) === 92; ) p += 1, h = !h;
833
+ if (n = m.charCodeAt(p + 1), h && n !== 47 && n !== 32 && n !== 10 && n !== 9 && n !== 13 && n !== 12 && (p += 1, i.test(m.charAt(p)))) {
834
+ for (; i.test(m.charAt(p + 1)); ) p += 1;
835
+ m.charCodeAt(p + 1) === 32 && (p += 1);
836
+ }
837
+ u = ["word", m.slice(w, p + 1), w, p], w = p;
838
+ break;
839
+ }
840
+ default: {
841
+ n === 47 && m.charCodeAt(w + 1) === 42 ? (p = m.indexOf("*/", w + 2) + 1, p === 0 && (d || R ? p = m.length : S("comment")), u = ["comment", m.slice(w, p + 1), w, p], w = p) : (r.lastIndex = w + 1, r.test(m), r.lastIndex === 0 ? p = m.length - 1 : p = r.lastIndex - 2, u = ["word", m.slice(w, p + 1), w, p], k.push(u), w = p);
842
+ break;
843
+ }
844
+ }
845
+ return w++, u;
846
+ }
847
+ function N($) {
848
+ T.push($);
849
+ }
850
+ return { back: N, endOfFile: E, nextToken: I, position: O };
851
+ };
852
+ }), At = A((e, s) => {
853
+ var o = _t(), r = Ne(), c = Xe(), i = We(), a = Ct(), l = St(), m = { empty: !0, space: !0 };
854
+ function d(t) {
855
+ for (let h = t.length - 1; h >= 0; h--) {
856
+ let p = t[h], f = p[3] || p[2];
857
+ if (f) return f;
858
+ }
859
+ }
860
+ var n = class {
861
+ constructor(t) {
862
+ this.input = t, this.root = new i(), this.current = this.root, this.spaces = "", this.semicolon = !1, this.createTokenizer(), this.root.source = { input: t, start: { column: 1, line: 1, offset: 0 } };
863
+ }
864
+ atrule(t) {
865
+ let h = new o();
866
+ h.name = t[1].slice(1), h.name === "" && this.unnamedAtrule(h, t), this.init(h, t[2]);
867
+ let p, f, u, b = !1, v = !1, y = [], g = [];
868
+ for (; !this.tokenizer.endOfFile(); ) {
869
+ if (t = this.tokenizer.nextToken(), p = t[0], p === "(" || p === "[" ? g.push(p === "(" ? ")" : "]") : p === "{" && g.length > 0 ? g.push("}") : p === g[g.length - 1] && g.pop(), g.length === 0) if (p === ";") {
870
+ h.source.end = this.getPosition(t[2]), h.source.end.offset++, this.semicolon = !0;
871
+ break;
872
+ } else if (p === "{") {
873
+ v = !0;
874
+ break;
875
+ } else if (p === "}") {
876
+ if (y.length > 0) {
877
+ for (u = y.length - 1, f = y[u]; f && f[0] === "space"; ) f = y[--u];
878
+ f && (h.source.end = this.getPosition(f[3] || f[2]), h.source.end.offset++);
879
+ }
880
+ this.end(t);
881
+ break;
882
+ } else y.push(t);
883
+ else y.push(t);
884
+ if (this.tokenizer.endOfFile()) {
885
+ b = !0;
886
+ break;
887
+ }
888
+ }
889
+ h.raws.between = this.spacesAndCommentsFromEnd(y), y.length ? (h.raws.afterName = this.spacesAndCommentsFromStart(y), this.raw(h, "params", y), b && (t = y[y.length - 1], h.source.end = this.getPosition(t[3] || t[2]), h.source.end.offset++, this.spaces = h.raws.between, h.raws.between = "")) : (h.raws.afterName = "", h.params = ""), v && (h.nodes = [], this.current = h);
890
+ }
891
+ checkMissedSemicolon(t) {
892
+ let h = this.colon(t);
893
+ if (h === !1) return;
894
+ let p = 0, f;
895
+ for (let u = h - 1; u >= 0 && (f = t[u], !(f[0] !== "space" && (p += 1, p === 2))); u--) ;
896
+ throw this.input.error("Missed semicolon", f[0] === "word" ? f[3] + 1 : f[2]);
897
+ }
898
+ colon(t) {
899
+ let h = 0, p, f, u;
900
+ for (let [b, v] of t.entries()) {
901
+ if (f = v, u = f[0], u === "(" && (h += 1), u === ")" && (h -= 1), h === 0 && u === ":") if (!p) this.doubleColon(f);
902
+ else {
903
+ if (p[0] === "word" && p[1] === "progid") continue;
904
+ return b;
905
+ }
906
+ p = f;
907
+ }
908
+ return !1;
909
+ }
910
+ comment(t) {
911
+ let h = new r();
912
+ this.init(h, t[2]), h.source.end = this.getPosition(t[3] || t[2]), h.source.end.offset++;
913
+ let p = t[1].slice(2, -2);
914
+ if (/^\s*$/.test(p)) h.text = "", h.raws.left = p, h.raws.right = "";
915
+ else {
916
+ let f = p.match(/^(\s*)([^]*\S)(\s*)$/);
917
+ h.text = f[2], h.raws.left = f[1], h.raws.right = f[3];
918
+ }
919
+ }
920
+ createTokenizer() {
921
+ this.tokenizer = l(this.input);
922
+ }
923
+ decl(t, h) {
924
+ let p = new c();
925
+ this.init(p, t[0][2]);
926
+ let f = t[t.length - 1];
927
+ for (f[0] === ";" && (this.semicolon = !0, t.pop()), p.source.end = this.getPosition(f[3] || f[2] || d(t)), p.source.end.offset++; t[0][0] !== "word"; ) t.length === 1 && this.unknownWord(t), p.raws.before += t.shift()[1];
928
+ for (p.source.start = this.getPosition(t[0][2]), p.prop = ""; t.length; ) {
929
+ let y = t[0][0];
930
+ if (y === ":" || y === "space" || y === "comment") break;
931
+ p.prop += t.shift()[1];
932
+ }
933
+ p.raws.between = "";
934
+ let u;
935
+ for (; t.length; ) if (u = t.shift(), u[0] === ":") {
936
+ p.raws.between += u[1];
937
+ break;
938
+ } else u[0] === "word" && /\w/.test(u[1]) && this.unknownWord([u]), p.raws.between += u[1];
939
+ (p.prop[0] === "_" || p.prop[0] === "*") && (p.raws.before += p.prop[0], p.prop = p.prop.slice(1));
940
+ let b = [], v;
941
+ for (; t.length && (v = t[0][0], !(v !== "space" && v !== "comment")); ) b.push(t.shift());
942
+ this.precheckMissedSemicolon(t);
943
+ for (let y = t.length - 1; y >= 0; y--) {
944
+ if (u = t[y], u[1].toLowerCase() === "!important") {
945
+ p.important = !0;
946
+ let g = this.stringFrom(t, y);
947
+ g = this.spacesFromEnd(t) + g, g !== " !important" && (p.raws.important = g);
948
+ break;
949
+ } else if (u[1].toLowerCase() === "important") {
950
+ let g = t.slice(0), x = "";
951
+ for (let w = y; w > 0; w--) {
952
+ let k = g[w][0];
953
+ if (x.trim().startsWith("!") && k !== "space") break;
954
+ x = g.pop()[1] + x;
955
+ }
956
+ x.trim().startsWith("!") && (p.important = !0, p.raws.important = x, t = g);
957
+ }
958
+ if (u[0] !== "space" && u[0] !== "comment") break;
959
+ }
960
+ t.some((y) => y[0] !== "space" && y[0] !== "comment") && (p.raws.between += b.map((y) => y[1]).join(""), b = []), this.raw(p, "value", b.concat(t), h), p.value.includes(":") && !h && this.checkMissedSemicolon(t);
961
+ }
962
+ doubleColon(t) {
963
+ throw this.input.error("Double colon", { offset: t[2] }, { offset: t[2] + t[1].length });
964
+ }
965
+ emptyRule(t) {
966
+ let h = new a();
967
+ this.init(h, t[2]), h.selector = "", h.raws.between = "", this.current = h;
968
+ }
969
+ end(t) {
970
+ this.current.nodes && this.current.nodes.length && (this.current.raws.semicolon = this.semicolon), this.semicolon = !1, this.current.raws.after = (this.current.raws.after || "") + this.spaces, this.spaces = "", this.current.parent ? (this.current.source.end = this.getPosition(t[2]), this.current.source.end.offset++, this.current = this.current.parent) : this.unexpectedClose(t);
971
+ }
972
+ endFile() {
973
+ this.current.parent && this.unclosedBlock(), this.current.nodes && this.current.nodes.length && (this.current.raws.semicolon = this.semicolon), this.current.raws.after = (this.current.raws.after || "") + this.spaces, this.root.source.end = this.getPosition(this.tokenizer.position());
974
+ }
975
+ freeSemicolon(t) {
976
+ if (this.spaces += t[1], this.current.nodes) {
977
+ let h = this.current.nodes[this.current.nodes.length - 1];
978
+ h && h.type === "rule" && !h.raws.ownSemicolon && (h.raws.ownSemicolon = this.spaces, this.spaces = "", h.source.end = this.getPosition(t[2]), h.source.end.offset += h.raws.ownSemicolon.length);
979
+ }
980
+ }
981
+ getPosition(t) {
982
+ let h = this.input.fromOffset(t);
983
+ return { column: h.col, line: h.line, offset: t };
984
+ }
985
+ init(t, h) {
986
+ this.current.push(t), t.source = { input: this.input, start: this.getPosition(h) }, t.raws.before = this.spaces, this.spaces = "", t.type !== "comment" && (this.semicolon = !1);
987
+ }
988
+ other(t) {
989
+ let h = !1, p = null, f = !1, u = null, b = [], v = t[1].startsWith("--"), y = [], g = t;
990
+ for (; g; ) {
991
+ if (p = g[0], y.push(g), p === "(" || p === "[") u || (u = g), b.push(p === "(" ? ")" : "]");
992
+ else if (v && f && p === "{") u || (u = g), b.push("}");
993
+ else if (b.length === 0) if (p === ";") if (f) {
994
+ this.decl(y, v);
995
+ return;
996
+ } else break;
997
+ else if (p === "{") {
998
+ this.rule(y);
999
+ return;
1000
+ } else if (p === "}") {
1001
+ this.tokenizer.back(y.pop()), h = !0;
1002
+ break;
1003
+ } else p === ":" && (f = !0);
1004
+ else p === b[b.length - 1] && (b.pop(), b.length === 0 && (u = null));
1005
+ g = this.tokenizer.nextToken();
1006
+ }
1007
+ if (this.tokenizer.endOfFile() && (h = !0), b.length > 0 && this.unclosedBracket(u), h && f) {
1008
+ if (!v) for (; y.length && (g = y[y.length - 1][0], !(g !== "space" && g !== "comment")); ) this.tokenizer.back(y.pop());
1009
+ this.decl(y, v);
1010
+ } else this.unknownWord(y);
1011
+ }
1012
+ parse() {
1013
+ let t;
1014
+ for (; !this.tokenizer.endOfFile(); ) switch (t = this.tokenizer.nextToken(), t[0]) {
1015
+ case "space":
1016
+ this.spaces += t[1];
1017
+ break;
1018
+ case ";":
1019
+ this.freeSemicolon(t);
1020
+ break;
1021
+ case "}":
1022
+ this.end(t);
1023
+ break;
1024
+ case "comment":
1025
+ this.comment(t);
1026
+ break;
1027
+ case "at-word":
1028
+ this.atrule(t);
1029
+ break;
1030
+ case "{":
1031
+ this.emptyRule(t);
1032
+ break;
1033
+ default:
1034
+ this.other(t);
1035
+ break;
1036
+ }
1037
+ this.endFile();
1038
+ }
1039
+ precheckMissedSemicolon() {
1040
+ }
1041
+ raw(t, h, p, f) {
1042
+ let u, b, v = p.length, y = "", g = !0, x, w;
1043
+ for (let k = 0; k < v; k += 1) u = p[k], b = u[0], b === "space" && k === v - 1 && !f ? g = !1 : b === "comment" ? (w = p[k - 1] ? p[k - 1][0] : "empty", x = p[k + 1] ? p[k + 1][0] : "empty", !m[w] && !m[x] ? y.slice(-1) === "," ? g = !1 : y += u[1] : g = !1) : y += u[1];
1044
+ if (!g) {
1045
+ let k = p.reduce((T, O) => T + O[1], "");
1046
+ t.raws[h] = { raw: k, value: y };
1047
+ }
1048
+ t[h] = y;
1049
+ }
1050
+ rule(t) {
1051
+ t.pop();
1052
+ let h = new a();
1053
+ this.init(h, t[0][2]), h.raws.between = this.spacesAndCommentsFromEnd(t), this.raw(h, "selector", t), this.current = h;
1054
+ }
1055
+ spacesAndCommentsFromEnd(t) {
1056
+ let h, p = "";
1057
+ for (; t.length && (h = t[t.length - 1][0], !(h !== "space" && h !== "comment")); ) p = t.pop()[1] + p;
1058
+ return p;
1059
+ }
1060
+ spacesAndCommentsFromStart(t) {
1061
+ let h, p = "";
1062
+ for (; t.length && (h = t[0][0], !(h !== "space" && h !== "comment")); ) p += t.shift()[1];
1063
+ return p;
1064
+ }
1065
+ spacesFromEnd(t) {
1066
+ let h, p = "";
1067
+ for (; t.length && (h = t[t.length - 1][0], h === "space"); ) p = t.pop()[1] + p;
1068
+ return p;
1069
+ }
1070
+ stringFrom(t, h) {
1071
+ let p = "";
1072
+ for (let f = h; f < t.length; f++) p += t[f][1];
1073
+ return t.splice(h, t.length - h), p;
1074
+ }
1075
+ unclosedBlock() {
1076
+ let t = this.current.source.start;
1077
+ throw this.input.error("Unclosed block", t.line, t.column);
1078
+ }
1079
+ unclosedBracket(t) {
1080
+ throw this.input.error("Unclosed bracket", { offset: t[2] }, { offset: t[2] + 1 });
1081
+ }
1082
+ unexpectedClose(t) {
1083
+ throw this.input.error("Unexpected }", { offset: t[2] }, { offset: t[2] + 1 });
1084
+ }
1085
+ unknownWord(t) {
1086
+ throw this.input.error("Unknown word " + t[0][1], { offset: t[0][2] }, { offset: t[0][2] + t[0][1].length });
1087
+ }
1088
+ unnamedAtrule(t, h) {
1089
+ throw this.input.error("At-rule without name", { offset: h[2] }, { offset: h[2] + h[1].length });
1090
+ }
1091
+ };
1092
+ s.exports = n;
1093
+ }), et = A((e, s) => {
1094
+ var o = pe(), r = Le(), c = At();
1095
+ function i(a, l) {
1096
+ let m = new r(a, l), d = new c(m);
1097
+ try {
1098
+ d.parse();
1099
+ } catch (n) {
1100
+ throw n;
1101
+ }
1102
+ return d.root;
1103
+ }
1104
+ s.exports = i, i.default = i, o.registerParse(i);
1105
+ }), hs = A((e, s) => {
1106
+ var o = St(), r = Le();
1107
+ s.exports = { isInlineComment(c) {
1108
+ if (c[0] === "word" && c[1].slice(0, 2) === "//") {
1109
+ let i = c, a = [], l, m;
1110
+ for (; c; ) {
1111
+ if (/\r?\n/.test(c[1])) {
1112
+ if (/['"].*\r?\n/.test(c[1])) {
1113
+ a.push(c[1].substring(0, c[1].indexOf(`
1114
+ `))), m = c[1].substring(c[1].indexOf(`
1115
+ `));
1116
+ let n = this.input.css.valueOf().substring(this.tokenizer.position());
1117
+ m += n, l = c[3] + n.length - m.length;
1118
+ } else this.tokenizer.back(c);
1119
+ break;
1120
+ }
1121
+ a.push(c[1]), l = c[2], c = this.tokenizer.nextToken({ ignoreUnclosed: !0 });
1122
+ }
1123
+ let d = ["comment", a.join(""), i[2], l];
1124
+ return this.inlineComment(d), m && (this.input = new r(m), this.tokenizer = o(this.input)), !0;
1125
+ } else if (c[1] === "/") {
1126
+ let i = this.tokenizer.nextToken({ ignoreUnclosed: !0 });
1127
+ if (i[0] === "comment" && /^\/\*/.test(i[1])) return i[0] = "word", i[1] = i[1].slice(1), c[1] = "//", this.tokenizer.back(i), s.exports.isInlineComment.bind(this)(c);
1128
+ }
1129
+ return !1;
1130
+ } };
1131
+ }), fs = A((e, s) => {
1132
+ s.exports = { interpolation(o) {
1133
+ let r = [o, this.tokenizer.nextToken()], c = ["word", "}"];
1134
+ if (r[0][1].length > 1 || r[1][0] !== "{") return this.tokenizer.back(r[1]), !1;
1135
+ for (o = this.tokenizer.nextToken(); o && c.includes(o[0]); ) r.push(o), o = this.tokenizer.nextToken();
1136
+ let i = r.map((d) => d[1]), [a] = r, l = r.pop(), m = ["word", i.join(""), a[2], l[2]];
1137
+ return this.tokenizer.back(o), this.tokenizer.back(m), !0;
1138
+ } };
1139
+ }), ds = A((e, s) => {
1140
+ var o = /^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/, r = /\.[0-9]/, c = (i) => {
1141
+ let [, a] = i, [l] = a;
1142
+ return (l === "." || l === "#") && o.test(a) === !1 && r.test(a) === !1;
1143
+ };
1144
+ s.exports = { isMixinToken: c };
1145
+ }), ms = A((e, s) => {
1146
+ var o = St(), r = /^url\((.+)\)/;
1147
+ s.exports = (c) => {
1148
+ let { name: i, params: a = "" } = c;
1149
+ if (i === "import" && a.length) {
1150
+ c.import = !0;
1151
+ let l = o({ css: a });
1152
+ for (c.filename = a.replace(r, "$1"); !l.endOfFile(); ) {
1153
+ let [m, d] = l.nextToken();
1154
+ if (m === "word" && d === "url") return;
1155
+ if (m === "brackets") {
1156
+ c.options = d, c.filename = a.replace(d, "").trim();
1157
+ break;
1158
+ }
1159
+ }
1160
+ }
1161
+ };
1162
+ }), ys = A((e, s) => {
1163
+ var o = /:$/, r = /^:(\s+)?/;
1164
+ s.exports = (c) => {
1165
+ let { name: i, params: a = "" } = c;
1166
+ if (c.name.slice(-1) === ":") {
1167
+ if (o.test(i)) {
1168
+ let [l] = i.match(o);
1169
+ c.name = i.replace(l, ""), c.raws.afterName = l + (c.raws.afterName || ""), c.variable = !0, c.value = c.params;
1170
+ }
1171
+ if (r.test(a)) {
1172
+ let [l] = a.match(r);
1173
+ c.value = a.replace(l, ""), c.raws.afterName = (c.raws.afterName || "") + l, c.variable = !0;
1174
+ }
1175
+ }
1176
+ };
1177
+ }), vs = A((e, s) => {
1178
+ var o = Ne(), r = At(), { isInlineComment: c } = hs(), { interpolation: i } = fs(), { isMixinToken: a } = ds(), l = ms(), m = ys(), d = /(!\s*important)$/i;
1179
+ s.exports = class extends r {
1180
+ constructor(...n) {
1181
+ super(...n), this.lastNode = null;
1182
+ }
1183
+ atrule(n) {
1184
+ i.bind(this)(n) || (super.atrule(n), l(this.lastNode), m(this.lastNode));
1185
+ }
1186
+ decl(...n) {
1187
+ super.decl(...n), /extend\(.+\)/i.test(this.lastNode.value) && (this.lastNode.extend = !0);
1188
+ }
1189
+ each(n) {
1190
+ n[0][1] = ` ${n[0][1]}`;
1191
+ let t = n.findIndex((u) => u[0] === "("), h = n.reverse().find((u) => u[0] === ")"), p = n.reverse().indexOf(h), f = n.splice(t, p).map((u) => u[1]).join("");
1192
+ for (let u of n.reverse()) this.tokenizer.back(u);
1193
+ this.atrule(this.tokenizer.nextToken()), this.lastNode.function = !0, this.lastNode.params = f;
1194
+ }
1195
+ init(n, t, h) {
1196
+ super.init(n, t, h), this.lastNode = n;
1197
+ }
1198
+ inlineComment(n) {
1199
+ let t = new o(), h = n[1].slice(2);
1200
+ if (this.init(t, n[2]), t.source.end = this.getPosition(n[3] || n[2]), t.inline = !0, t.raws.begin = "//", /^\s*$/.test(h)) t.text = "", t.raws.left = h, t.raws.right = "";
1201
+ else {
1202
+ let p = h.match(/^(\s*)([^]*[^\s])(\s*)$/);
1203
+ [, t.raws.left, t.text, t.raws.right] = p;
1204
+ }
1205
+ }
1206
+ mixin(n) {
1207
+ let [t] = n, h = t[1].slice(0, 1), p = n.findIndex((y) => y[0] === "brackets"), f = n.findIndex((y) => y[0] === "("), u = "";
1208
+ if ((p < 0 || p > 3) && f > 0) {
1209
+ let y = n.reduce((I, N, $) => N[0] === ")" ? $ : I), g = n.slice(f, y + f).map((I) => I[1]).join(""), [x] = n.slice(f), w = [x[2], x[3]], [k] = n.slice(y, y + 1), T = [k[2], k[3]], O = ["brackets", g].concat(w, T), S = n.slice(0, f), E = n.slice(y + 1);
1210
+ n = S, n.push(O), n = n.concat(E);
1211
+ }
1212
+ let b = [];
1213
+ for (let y of n) if ((y[1] === "!" || b.length) && b.push(y), y[1] === "important") break;
1214
+ if (b.length) {
1215
+ let [y] = b, g = n.indexOf(y), x = b[b.length - 1], w = [y[2], y[3]], k = [x[4], x[5]], T = ["word", b.map((O) => O[1]).join("")].concat(w, k);
1216
+ n.splice(g, b.length, T);
1217
+ }
1218
+ let v = n.findIndex((y) => d.test(y[1]));
1219
+ v > 0 && ([, u] = n[v], n.splice(v, 1));
1220
+ for (let y of n.reverse()) this.tokenizer.back(y);
1221
+ this.atrule(this.tokenizer.nextToken()), this.lastNode.mixin = !0, this.lastNode.raws.identifier = h, u && (this.lastNode.important = !0, this.lastNode.raws.important = u);
1222
+ }
1223
+ other(n) {
1224
+ c.bind(this)(n) || super.other(n);
1225
+ }
1226
+ rule(n) {
1227
+ let t = n[n.length - 1], h = n[n.length - 2];
1228
+ if (h[0] === "at-word" && t[0] === "{" && (this.tokenizer.back(t), i.bind(this)(h))) {
1229
+ let p = this.tokenizer.nextToken();
1230
+ n = n.slice(0, n.length - 2).concat([p]);
1231
+ for (let f of n.reverse()) this.tokenizer.back(f);
1232
+ return;
1233
+ }
1234
+ super.rule(n), /:extend\(.+\)/i.test(this.lastNode.selector) && (this.lastNode.extend = !0);
1235
+ }
1236
+ unknownWord(n) {
1237
+ let [t] = n;
1238
+ if (n[0][1] === "each" && n[1][0] === "(") {
1239
+ this.each(n);
1240
+ return;
1241
+ }
1242
+ if (a(t)) {
1243
+ this.mixin(n);
1244
+ return;
1245
+ }
1246
+ super.unknownWord(n);
1247
+ }
1248
+ };
1249
+ }), gs = A((e, s) => {
1250
+ var o = Tt();
1251
+ s.exports = class extends o {
1252
+ atrule(r, c) {
1253
+ if (!r.mixin && !r.variable && !r.function) {
1254
+ super.atrule(r, c);
1255
+ return;
1256
+ }
1257
+ let i = `${r.function ? "" : r.raws.identifier || "@"}${r.name}`, a = r.params ? this.rawValue(r, "params") : "", l = r.raws.important || "";
1258
+ if (r.variable && (a = r.value), typeof r.raws.afterName < "u" ? i += r.raws.afterName : a && (i += " "), r.nodes) this.block(r, i + a + l);
1259
+ else {
1260
+ let m = (r.raws.between || "") + l + (c ? ";" : "");
1261
+ this.builder(i + a + m, r);
1262
+ }
1263
+ }
1264
+ comment(r) {
1265
+ if (r.inline) {
1266
+ let c = this.raw(r, "left", "commentLeft"), i = this.raw(r, "right", "commentRight");
1267
+ this.builder(`//${c}${r.text}${i}`, r);
1268
+ } else super.comment(r);
1269
+ }
1270
+ };
1271
+ }), ws = A((e, s) => {
1272
+ var o = Le(), r = vs(), c = gs();
1273
+ s.exports = { parse(i, a) {
1274
+ let l = new o(i, a), m = new r(l);
1275
+ return m.parse(), m.root.walk((d) => {
1276
+ let n = l.css.lastIndexOf(d.source.input.css);
1277
+ if (n === 0) return;
1278
+ if (n + d.source.input.css.length !== l.css.length) throw new Error("Invalid state detected in postcss-less");
1279
+ let t = n + d.source.start.offset, h = l.fromOffset(n + d.source.start.offset);
1280
+ if (d.source.start = { offset: t, line: h.line, column: h.col }, d.source.end) {
1281
+ let p = n + d.source.end.offset, f = l.fromOffset(n + d.source.end.offset);
1282
+ d.source.end = { offset: p, line: f.line, column: f.col };
1283
+ }
1284
+ }), m.root;
1285
+ }, stringify(i, a) {
1286
+ new c(a).stringify(i);
1287
+ }, nodeToString(i) {
1288
+ let a = "";
1289
+ return s.exports.stringify(i, (l) => {
1290
+ a += l;
1291
+ }), a;
1292
+ } };
1293
+ }), Et = A((e, s) => {
1294
+ var o = pe(), r, c, i = class extends o {
1295
+ constructor(a) {
1296
+ super({ type: "document", ...a }), this.nodes || (this.nodes = []);
1297
+ }
1298
+ toResult(a = {}) {
1299
+ return new r(new c(), this, a).stringify();
1300
+ }
1301
+ };
1302
+ i.registerLazyResult = (a) => {
1303
+ r = a;
1304
+ }, i.registerProcessor = (a) => {
1305
+ c = a;
1306
+ }, s.exports = i, i.default = i;
1307
+ }), bs = A((e, s) => {
1308
+ var o = _t(), r = Ne(), c = Xe(), i = Le(), a = rr(), l = We(), m = Ct();
1309
+ function d(n, t) {
1310
+ if (Array.isArray(n)) return n.map((f) => d(f));
1311
+ let { inputs: h, ...p } = n;
1312
+ if (h) {
1313
+ t = [];
1314
+ for (let f of h) {
1315
+ let u = { ...f, __proto__: i.prototype };
1316
+ u.map && (u.map = { ...u.map, __proto__: a.prototype }), t.push(u);
1317
+ }
1318
+ }
1319
+ if (p.nodes && (p.nodes = n.nodes.map((f) => d(f, t))), p.source) {
1320
+ let { inputId: f, ...u } = p.source;
1321
+ p.source = u, f != null && (p.source.input = t[f]);
1322
+ }
1323
+ if (p.type === "root") return new l(p);
1324
+ if (p.type === "decl") return new c(p);
1325
+ if (p.type === "rule") return new m(p);
1326
+ if (p.type === "comment") return new r(p);
1327
+ if (p.type === "atrule") return new o(p);
1328
+ throw new Error("Unknown node type: " + n.type);
1329
+ }
1330
+ s.exports = d, d.default = d;
1331
+ }), nr = A((e, s) => {
1332
+ s.exports = class {
1333
+ generate() {
1334
+ }
1335
+ };
1336
+ }), or = A((e, s) => {
1337
+ var o = class {
1338
+ constructor(r, c = {}) {
1339
+ if (this.type = "warning", this.text = r, c.node && c.node.source) {
1340
+ let i = c.node.rangeBy(c);
1341
+ this.line = i.start.line, this.column = i.start.column, this.endLine = i.end.line, this.endColumn = i.end.column;
1342
+ }
1343
+ for (let i in c) this[i] = c[i];
1344
+ }
1345
+ toString() {
1346
+ return this.node ? this.node.error(this.text, { index: this.index, plugin: this.plugin, word: this.word }).message : this.plugin ? this.plugin + ": " + this.text : this.text;
1347
+ }
1348
+ };
1349
+ s.exports = o, o.default = o;
1350
+ }), jt = A((e, s) => {
1351
+ var o = or(), r = class {
1352
+ get content() {
1353
+ return this.css;
1354
+ }
1355
+ constructor(c, i, a) {
1356
+ this.processor = c, this.messages = [], this.root = i, this.opts = a, this.css = "", this.map = void 0;
1357
+ }
1358
+ toString() {
1359
+ return this.css;
1360
+ }
1361
+ warn(c, i = {}) {
1362
+ i.plugin || this.lastPlugin && this.lastPlugin.postcssPlugin && (i.plugin = this.lastPlugin.postcssPlugin);
1363
+ let a = new o(c, i);
1364
+ return this.messages.push(a), a;
1365
+ }
1366
+ warnings() {
1367
+ return this.messages.filter((c) => c.type === "warning");
1368
+ }
1369
+ };
1370
+ s.exports = r, r.default = r;
1371
+ }), ir = A((e, s) => {
1372
+ var o = {};
1373
+ s.exports = function(r) {
1374
+ o[r] || (o[r] = !0, typeof console < "u" && console.warn && console.warn(r));
1375
+ };
1376
+ }), ar = A((e, s) => {
1377
+ var o = pe(), r = Et(), c = nr(), i = et(), a = jt(), l = We(), m = Ye(), { isClean: d, my: n } = Ot();
1378
+ ir();
1379
+ var t = { atrule: "AtRule", comment: "Comment", decl: "Declaration", document: "Document", root: "Root", rule: "Rule" }, h = { AtRule: !0, AtRuleExit: !0, Comment: !0, CommentExit: !0, Declaration: !0, DeclarationExit: !0, Document: !0, DocumentExit: !0, Once: !0, OnceExit: !0, postcssPlugin: !0, prepare: !0, Root: !0, RootExit: !0, Rule: !0, RuleExit: !0 }, p = { Once: !0, postcssPlugin: !0, prepare: !0 }, f = 0;
1380
+ function u(w) {
1381
+ return typeof w == "object" && typeof w.then == "function";
1382
+ }
1383
+ function b(w) {
1384
+ let k = !1, T = t[w.type];
1385
+ return w.type === "decl" ? k = w.prop.toLowerCase() : w.type === "atrule" && (k = w.name.toLowerCase()), k && w.append ? [T, T + "-" + k, f, T + "Exit", T + "Exit-" + k] : k ? [T, T + "-" + k, T + "Exit", T + "Exit-" + k] : w.append ? [T, f, T + "Exit"] : [T, T + "Exit"];
1386
+ }
1387
+ function v(w) {
1388
+ let k;
1389
+ return w.type === "document" ? k = ["Document", f, "DocumentExit"] : w.type === "root" ? k = ["Root", f, "RootExit"] : k = b(w), { eventIndex: 0, events: k, iterator: 0, node: w, visitorIndex: 0, visitors: [] };
1390
+ }
1391
+ function y(w) {
1392
+ return w[d] = !1, w.nodes && w.nodes.forEach((k) => y(k)), w;
1393
+ }
1394
+ var g = {}, x = class ur {
1395
+ get content() {
1396
+ return this.stringify().content;
1397
+ }
1398
+ get css() {
1399
+ return this.stringify().css;
1400
+ }
1401
+ get map() {
1402
+ return this.stringify().map;
1403
+ }
1404
+ get messages() {
1405
+ return this.sync().messages;
1406
+ }
1407
+ get opts() {
1408
+ return this.result.opts;
1409
+ }
1410
+ get processor() {
1411
+ return this.result.processor;
1412
+ }
1413
+ get root() {
1414
+ return this.sync().root;
1415
+ }
1416
+ get [Symbol.toStringTag]() {
1417
+ return "LazyResult";
1418
+ }
1419
+ constructor(k, T, O) {
1420
+ this.stringified = !1, this.processed = !1;
1421
+ let S;
1422
+ if (typeof T == "object" && T !== null && (T.type === "root" || T.type === "document")) S = y(T);
1423
+ else if (T instanceof ur || T instanceof a) S = y(T.root), T.map && (typeof O.map > "u" && (O.map = {}), O.map.inline || (O.map.inline = !1), O.map.prev = T.map);
1424
+ else {
1425
+ let E = i;
1426
+ O.syntax && (E = O.syntax.parse), O.parser && (E = O.parser), E.parse && (E = E.parse);
1427
+ try {
1428
+ S = E(T, O);
1429
+ } catch (I) {
1430
+ this.processed = !0, this.error = I;
1431
+ }
1432
+ S && !S[n] && o.rebuild(S);
1433
+ }
1434
+ this.result = new a(k, S, O), this.helpers = { ...g, postcss: g, result: this.result }, this.plugins = this.processor.plugins.map((E) => typeof E == "object" && E.prepare ? { ...E, ...E.prepare(this.result) } : E);
1435
+ }
1436
+ async() {
1437
+ return this.error ? Promise.reject(this.error) : this.processed ? Promise.resolve(this.result) : (this.processing || (this.processing = this.runAsync()), this.processing);
1438
+ }
1439
+ catch(k) {
1440
+ return this.async().catch(k);
1441
+ }
1442
+ finally(k) {
1443
+ return this.async().then(k, k);
1444
+ }
1445
+ getAsyncError() {
1446
+ throw new Error("Use process(css).then(cb) to work with async plugins");
1447
+ }
1448
+ handleError(k, T) {
1449
+ let O = this.result.lastPlugin;
1450
+ try {
1451
+ T && T.addToError(k), this.error = k, k.name === "CssSyntaxError" && !k.plugin ? (k.plugin = O.postcssPlugin, k.setMessage()) : O.postcssVersion;
1452
+ } catch (S) {
1453
+ console && console.error && console.error(S);
1454
+ }
1455
+ return k;
1456
+ }
1457
+ prepareVisitors() {
1458
+ this.listeners = {};
1459
+ let k = (T, O, S) => {
1460
+ this.listeners[O] || (this.listeners[O] = []), this.listeners[O].push([T, S]);
1461
+ };
1462
+ for (let T of this.plugins) if (typeof T == "object") for (let O in T) {
1463
+ if (!h[O] && /^[A-Z]/.test(O)) throw new Error(`Unknown event ${O} in ${T.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);
1464
+ if (!p[O]) if (typeof T[O] == "object") for (let S in T[O]) S === "*" ? k(T, O, T[O][S]) : k(T, O + "-" + S.toLowerCase(), T[O][S]);
1465
+ else typeof T[O] == "function" && k(T, O, T[O]);
1466
+ }
1467
+ this.hasListener = Object.keys(this.listeners).length > 0;
1468
+ }
1469
+ async runAsync() {
1470
+ this.plugin = 0;
1471
+ for (let k = 0; k < this.plugins.length; k++) {
1472
+ let T = this.plugins[k], O = this.runOnRoot(T);
1473
+ if (u(O)) try {
1474
+ await O;
1475
+ } catch (S) {
1476
+ throw this.handleError(S);
1477
+ }
1478
+ }
1479
+ if (this.prepareVisitors(), this.hasListener) {
1480
+ let k = this.result.root;
1481
+ for (; !k[d]; ) {
1482
+ k[d] = !0;
1483
+ let T = [v(k)];
1484
+ for (; T.length > 0; ) {
1485
+ let O = this.visitTick(T);
1486
+ if (u(O)) try {
1487
+ await O;
1488
+ } catch (S) {
1489
+ let E = T[T.length - 1].node;
1490
+ throw this.handleError(S, E);
1491
+ }
1492
+ }
1493
+ }
1494
+ if (this.listeners.OnceExit) for (let [T, O] of this.listeners.OnceExit) {
1495
+ this.result.lastPlugin = T;
1496
+ try {
1497
+ if (k.type === "document") {
1498
+ let S = k.nodes.map((E) => O(E, this.helpers));
1499
+ await Promise.all(S);
1500
+ } else await O(k, this.helpers);
1501
+ } catch (S) {
1502
+ throw this.handleError(S);
1503
+ }
1504
+ }
1505
+ }
1506
+ return this.processed = !0, this.stringify();
1507
+ }
1508
+ runOnRoot(k) {
1509
+ this.result.lastPlugin = k;
1510
+ try {
1511
+ if (typeof k == "object" && k.Once) {
1512
+ if (this.result.root.type === "document") {
1513
+ let T = this.result.root.nodes.map((O) => k.Once(O, this.helpers));
1514
+ return u(T[0]) ? Promise.all(T) : T;
1515
+ }
1516
+ return k.Once(this.result.root, this.helpers);
1517
+ } else if (typeof k == "function") return k(this.result.root, this.result);
1518
+ } catch (T) {
1519
+ throw this.handleError(T);
1520
+ }
1521
+ }
1522
+ stringify() {
1523
+ if (this.error) throw this.error;
1524
+ if (this.stringified) return this.result;
1525
+ this.stringified = !0, this.sync();
1526
+ let k = this.result.opts, T = m;
1527
+ k.syntax && (T = k.syntax.stringify), k.stringifier && (T = k.stringifier), T.stringify && (T = T.stringify);
1528
+ let O = new c(T, this.result.root, this.result.opts).generate();
1529
+ return this.result.css = O[0], this.result.map = O[1], this.result;
1530
+ }
1531
+ sync() {
1532
+ if (this.error) throw this.error;
1533
+ if (this.processed) return this.result;
1534
+ if (this.processed = !0, this.processing) throw this.getAsyncError();
1535
+ for (let k of this.plugins) {
1536
+ let T = this.runOnRoot(k);
1537
+ if (u(T)) throw this.getAsyncError();
1538
+ }
1539
+ if (this.prepareVisitors(), this.hasListener) {
1540
+ let k = this.result.root;
1541
+ for (; !k[d]; ) k[d] = !0, this.walkSync(k);
1542
+ if (this.listeners.OnceExit) if (k.type === "document") for (let T of k.nodes) this.visitSync(this.listeners.OnceExit, T);
1543
+ else this.visitSync(this.listeners.OnceExit, k);
1544
+ }
1545
+ return this.result;
1546
+ }
1547
+ then(k, T) {
1548
+ return this.async().then(k, T);
1549
+ }
1550
+ toString() {
1551
+ return this.css;
1552
+ }
1553
+ visitSync(k, T) {
1554
+ for (let [O, S] of k) {
1555
+ this.result.lastPlugin = O;
1556
+ let E;
1557
+ try {
1558
+ E = S(T, this.helpers);
1559
+ } catch (I) {
1560
+ throw this.handleError(I, T.proxyOf);
1561
+ }
1562
+ if (T.type !== "root" && T.type !== "document" && !T.parent) return !0;
1563
+ if (u(E)) throw this.getAsyncError();
1564
+ }
1565
+ }
1566
+ visitTick(k) {
1567
+ let T = k[k.length - 1], { node: O, visitors: S } = T;
1568
+ if (O.type !== "root" && O.type !== "document" && !O.parent) {
1569
+ k.pop();
1570
+ return;
1571
+ }
1572
+ if (S.length > 0 && T.visitorIndex < S.length) {
1573
+ let [I, N] = S[T.visitorIndex];
1574
+ T.visitorIndex += 1, T.visitorIndex === S.length && (T.visitors = [], T.visitorIndex = 0), this.result.lastPlugin = I;
1575
+ try {
1576
+ return N(O.toProxy(), this.helpers);
1577
+ } catch ($) {
1578
+ throw this.handleError($, O);
1579
+ }
1580
+ }
1581
+ if (T.iterator !== 0) {
1582
+ let I = T.iterator, N;
1583
+ for (; N = O.nodes[O.indexes[I]]; ) if (O.indexes[I] += 1, !N[d]) {
1584
+ N[d] = !0, k.push(v(N));
1585
+ return;
1586
+ }
1587
+ T.iterator = 0, delete O.indexes[I];
1588
+ }
1589
+ let E = T.events;
1590
+ for (; T.eventIndex < E.length; ) {
1591
+ let I = E[T.eventIndex];
1592
+ if (T.eventIndex += 1, I === f) {
1593
+ O.nodes && O.nodes.length && (O[d] = !0, T.iterator = O.getIterator());
1594
+ return;
1595
+ } else if (this.listeners[I]) {
1596
+ T.visitors = this.listeners[I];
1597
+ return;
1598
+ }
1599
+ }
1600
+ k.pop();
1601
+ }
1602
+ walkSync(k) {
1603
+ k[d] = !0;
1604
+ let T = b(k);
1605
+ for (let O of T) if (O === f) k.nodes && k.each((S) => {
1606
+ S[d] || this.walkSync(S);
1607
+ });
1608
+ else {
1609
+ let S = this.listeners[O];
1610
+ if (S && this.visitSync(S, k.toProxy())) return;
1611
+ }
1612
+ }
1613
+ warnings() {
1614
+ return this.sync().warnings();
1615
+ }
1616
+ };
1617
+ x.registerPostcss = (w) => {
1618
+ g = w;
1619
+ }, s.exports = x, x.default = x, l.registerLazyResult(x), r.registerLazyResult(x);
1620
+ }), xs = A((e, s) => {
1621
+ var o = nr(), r = et(), c = jt(), i = Ye();
1622
+ ir();
1623
+ var a = class {
1624
+ get content() {
1625
+ return this.result.css;
1626
+ }
1627
+ get css() {
1628
+ return this.result.css;
1629
+ }
1630
+ get map() {
1631
+ return this.result.map;
1632
+ }
1633
+ get messages() {
1634
+ return [];
1635
+ }
1636
+ get opts() {
1637
+ return this.result.opts;
1638
+ }
1639
+ get processor() {
1640
+ return this.result.processor;
1641
+ }
1642
+ get root() {
1643
+ if (this._root) return this._root;
1644
+ let l, m = r;
1645
+ try {
1646
+ l = m(this._css, this._opts);
1647
+ } catch (d) {
1648
+ this.error = d;
1649
+ }
1650
+ if (this.error) throw this.error;
1651
+ return this._root = l, l;
1652
+ }
1653
+ get [Symbol.toStringTag]() {
1654
+ return "NoWorkResult";
1655
+ }
1656
+ constructor(l, m, d) {
1657
+ m = m.toString(), this.stringified = !1, this._processor = l, this._css = m, this._opts = d, this._map = void 0;
1658
+ let n, t = i;
1659
+ this.result = new c(this._processor, n, this._opts), this.result.css = m;
1660
+ let h = this;
1661
+ Object.defineProperty(this.result, "root", { get() {
1662
+ return h.root;
1663
+ } });
1664
+ let p = new o(t, n, this._opts, m);
1665
+ if (p.isMap()) {
1666
+ let [f, u] = p.generate();
1667
+ f && (this.result.css = f), u && (this.result.map = u);
1668
+ } else p.clearAnnotation(), this.result.css = p.css;
1669
+ }
1670
+ async() {
1671
+ return this.error ? Promise.reject(this.error) : Promise.resolve(this.result);
1672
+ }
1673
+ catch(l) {
1674
+ return this.async().catch(l);
1675
+ }
1676
+ finally(l) {
1677
+ return this.async().then(l, l);
1678
+ }
1679
+ sync() {
1680
+ if (this.error) throw this.error;
1681
+ return this.result;
1682
+ }
1683
+ then(l, m) {
1684
+ return this.async().then(l, m);
1685
+ }
1686
+ toString() {
1687
+ return this._css;
1688
+ }
1689
+ warnings() {
1690
+ return [];
1691
+ }
1692
+ };
1693
+ s.exports = a, a.default = a;
1694
+ }), ks = A((e, s) => {
1695
+ var o = Et(), r = ar(), c = xs(), i = We(), a = class {
1696
+ constructor(l = []) {
1697
+ this.version = "8.5.6", this.plugins = this.normalize(l);
1698
+ }
1699
+ normalize(l) {
1700
+ let m = [];
1701
+ for (let d of l) if (d.postcss === !0 ? d = d() : d.postcss && (d = d.postcss), typeof d == "object" && Array.isArray(d.plugins)) m = m.concat(d.plugins);
1702
+ else if (typeof d == "object" && d.postcssPlugin) m.push(d);
1703
+ else if (typeof d == "function") m.push(d);
1704
+ else if (!(typeof d == "object" && (d.parse || d.stringify))) throw new Error(d + " is not a PostCSS plugin");
1705
+ return m;
1706
+ }
1707
+ process(l, m = {}) {
1708
+ return !this.plugins.length && !m.parser && !m.stringifier && !m.syntax ? new c(this, l, m) : new r(this, l, m);
1709
+ }
1710
+ use(l) {
1711
+ return this.plugins = this.plugins.concat(this.normalize([l])), this;
1712
+ }
1713
+ };
1714
+ s.exports = a, a.default = a, i.registerProcessor(a), o.registerProcessor(a);
1715
+ }), It = A((e, s) => {
1716
+ var o = _t(), r = Ne(), c = pe(), i = kt(), a = Xe(), l = Et(), m = bs(), d = Le(), n = ar(), t = sr(), h = Ke(), p = et(), f = ks(), u = jt(), b = We(), v = Ct(), y = Ye(), g = or();
1717
+ function x(...w) {
1718
+ return w.length === 1 && Array.isArray(w[0]) && (w = w[0]), new f(w);
1719
+ }
1720
+ x.plugin = function(w, k) {
1721
+ let T = !1;
1722
+ function O(...E) {
1723
+ console && console.warn && !T && (T = !0, console.warn(w + `: postcss.plugin was deprecated. Migration guide:
1724
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
1725
+ let I = k(...E);
1726
+ return I.postcssPlugin = w, I.postcssVersion = new f().version, I;
1727
+ }
1728
+ let S;
1729
+ return Object.defineProperty(O, "postcss", { get() {
1730
+ return S || (S = O()), S;
1731
+ } }), O.process = function(E, I, N) {
1732
+ return x([O(N)]).process(E, I);
1733
+ }, O;
1734
+ }, x.stringify = y, x.parse = p, x.fromJSON = m, x.list = t, x.comment = (w) => new r(w), x.atRule = (w) => new o(w), x.decl = (w) => new a(w), x.rule = (w) => new v(w), x.root = (w) => new b(w), x.document = (w) => new l(w), x.CssSyntaxError = i, x.Declaration = a, x.Container = c, x.Processor = f, x.Document = l, x.Comment = r, x.Warning = g, x.AtRule = o, x.Result = u, x.Input = d, x.Rule = v, x.Root = b, x.Node = h, n.registerPostcss(x), s.exports = x, x.default = x;
1735
+ }), Ts = A((e, s) => {
1736
+ var { Container: o } = It(), r = class extends o {
1737
+ constructor(c) {
1738
+ super(c), this.type = "decl", this.isNested = !0, this.nodes || (this.nodes = []);
1739
+ }
1740
+ };
1741
+ s.exports = r;
1742
+ }), Os = A((e, s) => {
1743
+ var o = /[\t\n\f\r "#'()/;[\\\]{}]/g, r = /[,\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, c = /.[\r\n"'(/\\]/, i = /[\da-f]/i, a = /[\n\f\r]/g;
1744
+ s.exports = function(l, m = {}) {
1745
+ let d = l.css.valueOf(), n = m.ignoreErrors, t, h, p, f, u, b, v, y, g, x = d.length, w = 0, k = [], T = [], O;
1746
+ function S() {
1747
+ return w;
1748
+ }
1749
+ function E(M) {
1750
+ throw l.error("Unclosed " + M, w);
1751
+ }
1752
+ function I() {
1753
+ return T.length === 0 && w >= x;
1754
+ }
1755
+ function N() {
1756
+ let M = 1, P = !1, U = !1;
1757
+ for (; M > 0; ) h += 1, d.length <= h && E("interpolation"), t = d.charCodeAt(h), y = d.charCodeAt(h + 1), P ? !U && t === P ? (P = !1, U = !1) : t === 92 ? U = !U : U && (U = !1) : t === 39 || t === 34 ? P = t : t === 125 ? M -= 1 : t === 35 && y === 123 && (M += 1);
1758
+ }
1759
+ function $(M) {
1760
+ if (T.length) return T.pop();
1761
+ if (w >= x) return;
1762
+ let P = M ? M.ignoreUnclosed : !1;
1763
+ switch (t = d.charCodeAt(w), t) {
1764
+ case 10:
1765
+ case 32:
1766
+ case 9:
1767
+ case 13:
1768
+ case 12: {
1769
+ h = w;
1770
+ do
1771
+ h += 1, t = d.charCodeAt(h);
1772
+ while (t === 32 || t === 10 || t === 9 || t === 13 || t === 12);
1773
+ g = ["space", d.slice(w, h)], w = h - 1;
1774
+ break;
1775
+ }
1776
+ case 91:
1777
+ case 93:
1778
+ case 123:
1779
+ case 125:
1780
+ case 58:
1781
+ case 59:
1782
+ case 41: {
1783
+ let U = String.fromCharCode(t);
1784
+ g = [U, U, w];
1785
+ break;
1786
+ }
1787
+ case 44: {
1788
+ g = ["word", ",", w, w + 1];
1789
+ break;
1790
+ }
1791
+ case 40: {
1792
+ if (v = k.length ? k.pop()[1] : "", y = d.charCodeAt(w + 1), v === "url" && y !== 39 && y !== 34) {
1793
+ for (O = 1, b = !1, h = w + 1; h <= d.length - 1; ) {
1794
+ if (y = d.charCodeAt(h), y === 92) b = !b;
1795
+ else if (y === 40) O += 1;
1796
+ else if (y === 41 && (O -= 1, O === 0)) break;
1797
+ h += 1;
1798
+ }
1799
+ f = d.slice(w, h + 1), g = ["brackets", f, w, h], w = h;
1800
+ } else h = d.indexOf(")", w + 1), f = d.slice(w, h + 1), h === -1 || c.test(f) ? g = ["(", "(", w] : (g = ["brackets", f, w, h], w = h);
1801
+ break;
1802
+ }
1803
+ case 39:
1804
+ case 34: {
1805
+ for (p = t, h = w, b = !1; h < x && (h++, h === x && E("string"), t = d.charCodeAt(h), y = d.charCodeAt(h + 1), !(!b && t === p)); ) t === 92 ? b = !b : b ? b = !1 : t === 35 && y === 123 && N();
1806
+ g = ["string", d.slice(w, h + 1), w, h], w = h;
1807
+ break;
1808
+ }
1809
+ case 64: {
1810
+ o.lastIndex = w + 1, o.test(d), o.lastIndex === 0 ? h = d.length - 1 : h = o.lastIndex - 2, g = ["at-word", d.slice(w, h + 1), w, h], w = h;
1811
+ break;
1812
+ }
1813
+ case 92: {
1814
+ for (h = w, u = !0; d.charCodeAt(h + 1) === 92; ) h += 1, u = !u;
1815
+ if (t = d.charCodeAt(h + 1), u && t !== 47 && t !== 32 && t !== 10 && t !== 9 && t !== 13 && t !== 12 && (h += 1, i.test(d.charAt(h)))) {
1816
+ for (; i.test(d.charAt(h + 1)); ) h += 1;
1817
+ d.charCodeAt(h + 1) === 32 && (h += 1);
1818
+ }
1819
+ g = ["word", d.slice(w, h + 1), w, h], w = h;
1820
+ break;
1821
+ }
1822
+ default:
1823
+ y = d.charCodeAt(w + 1), t === 35 && y === 123 ? (h = w, N(), f = d.slice(w, h + 1), g = ["word", f, w, h], w = h) : t === 47 && y === 42 ? (h = d.indexOf("*/", w + 2) + 1, h === 0 && (n || P ? h = d.length : E("comment")), g = ["comment", d.slice(w, h + 1), w, h], w = h) : t === 47 && y === 47 ? (a.lastIndex = w + 1, a.test(d), a.lastIndex === 0 ? h = d.length - 1 : h = a.lastIndex - 2, f = d.slice(w, h + 1), g = ["comment", f, w, h, "inline"], w = h) : (r.lastIndex = w + 1, r.test(d), r.lastIndex === 0 ? h = d.length - 1 : h = r.lastIndex - 2, g = ["word", d.slice(w, h + 1), w, h], k.push(g), w = h);
1824
+ break;
1825
+ }
1826
+ return w++, g;
1827
+ }
1828
+ function R(M) {
1829
+ T.push(M);
1830
+ }
1831
+ return { back: R, endOfFile: I, nextToken: $, position: S };
1832
+ };
1833
+ }), _s = A((e, s) => {
1834
+ var { Comment: o } = It(), r = At(), c = Ts(), i = Os(), a = class extends r {
1835
+ atrule(l) {
1836
+ let m = l[1], d = l;
1837
+ for (; !this.tokenizer.endOfFile(); ) {
1838
+ let n = this.tokenizer.nextToken();
1839
+ if (n[0] === "word" && n[2] === d[3] + 1) m += n[1], d = n;
1840
+ else {
1841
+ this.tokenizer.back(n);
1842
+ break;
1843
+ }
1844
+ }
1845
+ super.atrule(["at-word", m, l[2], d[3]]);
1846
+ }
1847
+ comment(l) {
1848
+ if (l[4] === "inline") {
1849
+ let m = new o();
1850
+ this.init(m, l[2]), m.raws.inline = !0;
1851
+ let d = this.input.fromOffset(l[3]);
1852
+ m.source.end = { column: d.col, line: d.line, offset: l[3] + 1 };
1853
+ let n = l[1].slice(2);
1854
+ if (/^\s*$/.test(n)) m.text = "", m.raws.left = n, m.raws.right = "";
1855
+ else {
1856
+ let t = n.match(/^(\s*)([^]*\S)(\s*)$/), h = t[2].replace(/(\*\/|\/\*)/g, "*//*");
1857
+ m.text = h, m.raws.left = t[1], m.raws.right = t[3], m.raws.text = t[2];
1858
+ }
1859
+ } else super.comment(l);
1860
+ }
1861
+ createTokenizer() {
1862
+ this.tokenizer = i(this.input);
1863
+ }
1864
+ raw(l, m, d, n) {
1865
+ if (super.raw(l, m, d, n), l.raws[m]) {
1866
+ let t = l.raws[m].raw;
1867
+ l.raws[m].raw = d.reduce((h, p) => {
1868
+ if (p[0] === "comment" && p[4] === "inline") {
1869
+ let f = p[1].slice(2).replace(/(\*\/|\/\*)/g, "*//*");
1870
+ return h + "/*" + f + "*/";
1871
+ } else return h + p[1];
1872
+ }, ""), t !== l.raws[m].raw && (l.raws[m].scss = t);
1873
+ }
1874
+ }
1875
+ rule(l) {
1876
+ let m = !1, d = 0, n = "";
1877
+ for (let t of l) if (m) t[0] !== "comment" && t[0] !== "{" && (n += t[1]);
1878
+ else {
1879
+ if (t[0] === "space" && t[1].includes(`
1880
+ `)) break;
1881
+ t[0] === "(" ? d += 1 : t[0] === ")" ? d -= 1 : d === 0 && t[0] === ":" && (m = !0);
1882
+ }
1883
+ if (!m || n.trim() === "" || /^[#:A-Za-z-]/.test(n)) super.rule(l);
1884
+ else {
1885
+ l.pop();
1886
+ let t = new c();
1887
+ this.init(t, l[0][2]);
1888
+ let h;
1889
+ for (let f = l.length - 1; f >= 0; f--) if (l[f][0] !== "space") {
1890
+ h = l[f];
1891
+ break;
1892
+ }
1893
+ if (h[3]) {
1894
+ let f = this.input.fromOffset(h[3]);
1895
+ t.source.end = { column: f.col, line: f.line, offset: h[3] + 1 };
1896
+ } else {
1897
+ let f = this.input.fromOffset(h[2]);
1898
+ t.source.end = { column: f.col, line: f.line, offset: h[2] + 1 };
1899
+ }
1900
+ for (; l[0][0] !== "word"; ) t.raws.before += l.shift()[1];
1901
+ if (l[0][2]) {
1902
+ let f = this.input.fromOffset(l[0][2]);
1903
+ t.source.start = { column: f.col, line: f.line, offset: l[0][2] };
1904
+ }
1905
+ for (t.prop = ""; l.length; ) {
1906
+ let f = l[0][0];
1907
+ if (f === ":" || f === "space" || f === "comment") break;
1908
+ t.prop += l.shift()[1];
1909
+ }
1910
+ t.raws.between = "";
1911
+ let p;
1912
+ for (; l.length; ) if (p = l.shift(), p[0] === ":") {
1913
+ t.raws.between += p[1];
1914
+ break;
1915
+ } else t.raws.between += p[1];
1916
+ (t.prop[0] === "_" || t.prop[0] === "*") && (t.raws.before += t.prop[0], t.prop = t.prop.slice(1)), t.raws.between += this.spacesAndCommentsFromStart(l), this.precheckMissedSemicolon(l);
1917
+ for (let f = l.length - 1; f > 0; f--) {
1918
+ if (p = l[f], p[1] === "!important") {
1919
+ t.important = !0;
1920
+ let u = this.stringFrom(l, f);
1921
+ u = this.spacesFromEnd(l) + u, u !== " !important" && (t.raws.important = u);
1922
+ break;
1923
+ } else if (p[1] === "important") {
1924
+ let u = l.slice(0), b = "";
1925
+ for (let v = f; v > 0; v--) {
1926
+ let y = u[v][0];
1927
+ if (b.trim().indexOf("!") === 0 && y !== "space") break;
1928
+ b = u.pop()[1] + b;
1929
+ }
1930
+ b.trim().indexOf("!") === 0 && (t.important = !0, t.raws.important = b, l = u);
1931
+ }
1932
+ if (p[0] !== "space" && p[0] !== "comment") break;
1933
+ }
1934
+ this.raw(t, "value", l), t.value.includes(":") && this.checkMissedSemicolon(l), this.current = t;
1935
+ }
1936
+ }
1937
+ };
1938
+ s.exports = a;
1939
+ }), Cs = A((e, s) => {
1940
+ var { Input: o } = It(), r = _s();
1941
+ s.exports = function(c, i) {
1942
+ let a = new o(c, i), l = new r(a);
1943
+ return l.parse(), l.root;
1944
+ };
1945
+ }), lr = A((e) => {
1946
+ Object.defineProperty(e, "__esModule", { value: !0 });
1947
+ function s(o) {
1948
+ this.after = o.after, this.before = o.before, this.type = o.type, this.value = o.value, this.sourceIndex = o.sourceIndex;
1949
+ }
1950
+ e.default = s;
1951
+ }), cr = A((e) => {
1952
+ Object.defineProperty(e, "__esModule", { value: !0 });
1953
+ var s = lr(), o = r(s);
1954
+ function r(i) {
1955
+ return i && i.__esModule ? i : { default: i };
1956
+ }
1957
+ function c(i) {
1958
+ var a = this;
1959
+ this.constructor(i), this.nodes = i.nodes, this.after === void 0 && (this.after = this.nodes.length > 0 ? this.nodes[this.nodes.length - 1].after : ""), this.before === void 0 && (this.before = this.nodes.length > 0 ? this.nodes[0].before : ""), this.sourceIndex === void 0 && (this.sourceIndex = this.before.length), this.nodes.forEach(function(l) {
1960
+ l.parent = a;
1961
+ });
1962
+ }
1963
+ c.prototype = Object.create(o.default.prototype), c.constructor = o.default, c.prototype.walk = function(i, a) {
1964
+ for (var l = typeof i == "string" || i instanceof RegExp, m = l ? a : i, d = typeof i == "string" ? new RegExp(i) : i, n = 0; n < this.nodes.length; n++) {
1965
+ var t = this.nodes[n], h = l ? d.test(t.type) : !0;
1966
+ if (h && m && m(t, n, this.nodes) === !1 || t.nodes && t.walk(i, a) === !1) return !1;
1967
+ }
1968
+ return !0;
1969
+ }, c.prototype.each = function() {
1970
+ for (var i = arguments.length <= 0 || arguments[0] === void 0 ? function() {
1971
+ } : arguments[0], a = 0; a < this.nodes.length; a++) {
1972
+ var l = this.nodes[a];
1973
+ if (i(l, a, this.nodes) === !1) return !1;
1974
+ }
1975
+ return !0;
1976
+ }, e.default = c;
1977
+ }), Ss = A((e) => {
1978
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.parseMediaFeature = a, e.parseMediaQuery = l, e.parseMediaList = m;
1979
+ var s = lr(), o = i(s), r = cr(), c = i(r);
1980
+ function i(d) {
1981
+ return d && d.__esModule ? d : { default: d };
1982
+ }
1983
+ function a(d) {
1984
+ var n = arguments.length <= 1 || arguments[1] === void 0 ? 0 : arguments[1], t = [{ mode: "normal", character: null }], h = [], p = 0, f = "", u = null, b = null, v = n, y = d;
1985
+ d[0] === "(" && d[d.length - 1] === ")" && (y = d.substring(1, d.length - 1), v++);
1986
+ for (var g = 0; g < y.length; g++) {
1987
+ var x = y[g];
1988
+ if ((x === "'" || x === '"') && (t[p].isCalculationEnabled === !0 ? (t.push({ mode: "string", isCalculationEnabled: !1, character: x }), p++) : t[p].mode === "string" && t[p].character === x && y[g - 1] !== "\\" && (t.pop(), p--)), x === "{" ? (t.push({ mode: "interpolation", isCalculationEnabled: !0 }), p++) : x === "}" && (t.pop(), p--), t[p].mode === "normal" && x === ":") {
1989
+ var w = y.substring(g + 1);
1990
+ b = { type: "value", before: /^(\s*)/.exec(w)[1], after: /(\s*)$/.exec(w)[1], value: w.trim() }, b.sourceIndex = b.before.length + g + 1 + v, u = { type: "colon", sourceIndex: g + v, after: b.before, value: ":" };
1991
+ break;
1992
+ }
1993
+ f += x;
1994
+ }
1995
+ return f = { type: "media-feature", before: /^(\s*)/.exec(f)[1], after: /(\s*)$/.exec(f)[1], value: f.trim() }, f.sourceIndex = f.before.length + v, h.push(f), u !== null && (u.before = f.after, h.push(u)), b !== null && h.push(b), h;
1996
+ }
1997
+ function l(d) {
1998
+ var n = arguments.length <= 1 || arguments[1] === void 0 ? 0 : arguments[1], t = [], h = 0, p = !1, f = void 0;
1999
+ function u() {
2000
+ return { before: "", after: "", value: "" };
2001
+ }
2002
+ f = u();
2003
+ for (var b = 0; b < d.length; b++) {
2004
+ var v = d[b];
2005
+ p ? (f.value += v, (v === "{" || v === "(") && h++, (v === ")" || v === "}") && h--) : v.search(/\s/) !== -1 ? f.before += v : (v === "(" && (f.type = "media-feature-expression", h++), f.value = v, f.sourceIndex = n + b, p = !0), p && h === 0 && (v === ")" || b === d.length - 1 || d[b + 1].search(/\s/) !== -1) && (["not", "only", "and"].indexOf(f.value) !== -1 && (f.type = "keyword"), f.type === "media-feature-expression" && (f.nodes = a(f.value, f.sourceIndex)), t.push(Array.isArray(f.nodes) ? new c.default(f) : new o.default(f)), f = u(), p = !1);
2006
+ }
2007
+ for (var y = 0; y < t.length; y++) if (f = t[y], y > 0 && (t[y - 1].after = f.before), f.type === void 0) {
2008
+ if (y > 0) {
2009
+ if (t[y - 1].type === "media-feature-expression") {
2010
+ f.type = "keyword";
2011
+ continue;
2012
+ }
2013
+ if (t[y - 1].value === "not" || t[y - 1].value === "only") {
2014
+ f.type = "media-type";
2015
+ continue;
2016
+ }
2017
+ if (t[y - 1].value === "and") {
2018
+ f.type = "media-feature-expression";
2019
+ continue;
2020
+ }
2021
+ t[y - 1].type === "media-type" && (t[y + 1] ? f.type = t[y + 1].type === "media-feature-expression" ? "keyword" : "media-feature-expression" : f.type = "media-feature-expression");
2022
+ }
2023
+ if (y === 0) {
2024
+ if (!t[y + 1]) {
2025
+ f.type = "media-type";
2026
+ continue;
2027
+ }
2028
+ if (t[y + 1] && (t[y + 1].type === "media-feature-expression" || t[y + 1].type === "keyword")) {
2029
+ f.type = "media-type";
2030
+ continue;
2031
+ }
2032
+ if (t[y + 2]) {
2033
+ if (t[y + 2].type === "media-feature-expression") {
2034
+ f.type = "media-type", t[y + 1].type = "keyword";
2035
+ continue;
2036
+ }
2037
+ if (t[y + 2].type === "keyword") {
2038
+ f.type = "keyword", t[y + 1].type = "media-type";
2039
+ continue;
2040
+ }
2041
+ }
2042
+ if (t[y + 3] && t[y + 3].type === "media-feature-expression") {
2043
+ f.type = "keyword", t[y + 1].type = "media-type", t[y + 2].type = "keyword";
2044
+ continue;
2045
+ }
2046
+ }
2047
+ }
2048
+ return t;
2049
+ }
2050
+ function m(d) {
2051
+ var n = [], t = 0, h = 0, p = /^(\s*)url\s*\(/.exec(d);
2052
+ if (p !== null) {
2053
+ for (var f = p[0].length, u = 1; u > 0; ) {
2054
+ var b = d[f];
2055
+ b === "(" && u++, b === ")" && u--, f++;
2056
+ }
2057
+ n.unshift(new o.default({ type: "url", value: d.substring(0, f).trim(), sourceIndex: p[1].length, before: p[1], after: /^(\s*)/.exec(d.substring(f))[1] })), t = f;
2058
+ }
2059
+ for (var v = t; v < d.length; v++) {
2060
+ var y = d[v];
2061
+ if (y === "(" && h++, y === ")" && h--, h === 0 && y === ",") {
2062
+ var g = d.substring(t, v), x = /^(\s*)/.exec(g)[1];
2063
+ n.push(new c.default({ type: "media-query", value: g.trim(), sourceIndex: t + x.length, nodes: l(g, t), before: x, after: /(\s*)$/.exec(g)[1] })), t = v + 1;
2064
+ }
2065
+ }
2066
+ var w = d.substring(t), k = /^(\s*)/.exec(w)[1];
2067
+ return n.push(new c.default({ type: "media-query", value: w.trim(), sourceIndex: t + k.length, nodes: l(w, t), before: k, after: /(\s*)$/.exec(w)[1] })), n;
2068
+ }
2069
+ }), As = A((e) => {
2070
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.default = i;
2071
+ var s = cr(), o = c(s), r = Ss();
2072
+ function c(a) {
2073
+ return a && a.__esModule ? a : { default: a };
2074
+ }
2075
+ function i(a) {
2076
+ return new o.default({ nodes: (0, r.parseMediaList)(a), type: "media-query-list", value: a.trim() });
2077
+ }
2078
+ }), pr = A((e, s) => {
2079
+ s.exports = function(o, r) {
2080
+ if (r = typeof r == "number" ? r : 1 / 0, !r) return Array.isArray(o) ? o.map(function(i) {
2081
+ return i;
2082
+ }) : o;
2083
+ return c(o, 1);
2084
+ function c(i, a) {
2085
+ return i.reduce(function(l, m) {
2086
+ return Array.isArray(m) && a < r ? l.concat(c(m, a + 1)) : l.concat(m);
2087
+ }, []);
2088
+ }
2089
+ };
2090
+ }), hr = A((e, s) => {
2091
+ s.exports = function(o, r) {
2092
+ for (var c = -1, i = []; (c = o.indexOf(r, c + 1)) !== -1; ) i.push(c);
2093
+ return i;
2094
+ };
2095
+ }), fr = A((e, s) => {
2096
+ function o(i, a) {
2097
+ for (var l = 1, m = i.length, d = i[0], n = i[0], t = 1; t < m; ++t) if (n = d, d = i[t], a(d, n)) {
2098
+ if (t === l) {
2099
+ l++;
2100
+ continue;
2101
+ }
2102
+ i[l++] = d;
2103
+ }
2104
+ return i.length = l, i;
2105
+ }
2106
+ function r(i) {
2107
+ for (var a = 1, l = i.length, m = i[0], d = i[0], n = 1; n < l; ++n, d = m) if (d = m, m = i[n], m !== d) {
2108
+ if (n === a) {
2109
+ a++;
2110
+ continue;
2111
+ }
2112
+ i[a++] = m;
2113
+ }
2114
+ return i.length = a, i;
2115
+ }
2116
+ function c(i, a, l) {
2117
+ return i.length === 0 ? i : a ? (l || i.sort(a), o(i, a)) : (l || i.sort(), r(i));
2118
+ }
2119
+ s.exports = c;
2120
+ }), ke = A((e, s) => {
2121
+ e.__esModule = !0;
2122
+ var o = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(a) {
2123
+ return typeof a;
2124
+ } : function(a) {
2125
+ return a && typeof Symbol == "function" && a.constructor === Symbol && a !== Symbol.prototype ? "symbol" : typeof a;
2126
+ };
2127
+ function r(a, l) {
2128
+ if (!(a instanceof l)) throw new TypeError("Cannot call a class as a function");
2129
+ }
2130
+ var c = function a(l, m) {
2131
+ if ((typeof l > "u" ? "undefined" : o(l)) !== "object") return l;
2132
+ var d = new l.constructor();
2133
+ for (var n in l) if (l.hasOwnProperty(n)) {
2134
+ var t = l[n], h = typeof t > "u" ? "undefined" : o(t);
2135
+ n === "parent" && h === "object" ? m && (d[n] = m) : t instanceof Array ? d[n] = t.map(function(p) {
2136
+ return a(p, d);
2137
+ }) : d[n] = a(t, d);
2138
+ }
2139
+ return d;
2140
+ }, i = function() {
2141
+ function a() {
2142
+ var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2143
+ r(this, a);
2144
+ for (var m in l) this[m] = l[m];
2145
+ var d = l.spaces;
2146
+ d = d === void 0 ? {} : d;
2147
+ var n = d.before, t = n === void 0 ? "" : n, h = d.after, p = h === void 0 ? "" : h;
2148
+ this.spaces = { before: t, after: p };
2149
+ }
2150
+ return a.prototype.remove = function() {
2151
+ return this.parent && this.parent.removeChild(this), this.parent = void 0, this;
2152
+ }, a.prototype.replaceWith = function() {
2153
+ if (this.parent) {
2154
+ for (var l in arguments) this.parent.insertBefore(this, arguments[l]);
2155
+ this.remove();
2156
+ }
2157
+ return this;
2158
+ }, a.prototype.next = function() {
2159
+ return this.parent.at(this.parent.index(this) + 1);
2160
+ }, a.prototype.prev = function() {
2161
+ return this.parent.at(this.parent.index(this) - 1);
2162
+ }, a.prototype.clone = function() {
2163
+ var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, m = c(this);
2164
+ for (var d in l) m[d] = l[d];
2165
+ return m;
2166
+ }, a.prototype.toString = function() {
2167
+ return [this.spaces.before, String(this.value), this.spaces.after].join("");
2168
+ }, a;
2169
+ }();
2170
+ e.default = i, s.exports = e.default;
2171
+ }), H = A((e) => {
2172
+ e.__esModule = !0, e.TAG = "tag", e.STRING = "string", e.SELECTOR = "selector", e.ROOT = "root", e.PSEUDO = "pseudo", e.NESTING = "nesting", e.ID = "id", e.COMMENT = "comment", e.COMBINATOR = "combinator", e.CLASS = "class", e.ATTRIBUTE = "attribute", e.UNIVERSAL = "universal";
2173
+ }), Pt = A((e, s) => {
2174
+ e.__esModule = !0;
2175
+ var o = /* @__PURE__ */ function() {
2176
+ function p(f, u) {
2177
+ for (var b = 0; b < u.length; b++) {
2178
+ var v = u[b];
2179
+ v.enumerable = v.enumerable || !1, v.configurable = !0, "value" in v && (v.writable = !0), Object.defineProperty(f, v.key, v);
2180
+ }
2181
+ }
2182
+ return function(f, u, b) {
2183
+ return u && p(f.prototype, u), b && p(f, b), f;
2184
+ };
2185
+ }(), r = ke(), c = m(r), i = H(), a = l(i);
2186
+ function l(p) {
2187
+ if (p && p.__esModule) return p;
2188
+ var f = {};
2189
+ if (p != null) for (var u in p) Object.prototype.hasOwnProperty.call(p, u) && (f[u] = p[u]);
2190
+ return f.default = p, f;
2191
+ }
2192
+ function m(p) {
2193
+ return p && p.__esModule ? p : { default: p };
2194
+ }
2195
+ function d(p, f) {
2196
+ if (!(p instanceof f)) throw new TypeError("Cannot call a class as a function");
2197
+ }
2198
+ function n(p, f) {
2199
+ if (!p) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2200
+ return f && (typeof f == "object" || typeof f == "function") ? f : p;
2201
+ }
2202
+ function t(p, f) {
2203
+ if (typeof f != "function" && f !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof f);
2204
+ p.prototype = Object.create(f && f.prototype, { constructor: { value: p, enumerable: !1, writable: !0, configurable: !0 } }), f && (Object.setPrototypeOf ? Object.setPrototypeOf(p, f) : p.__proto__ = f);
2205
+ }
2206
+ var h = function(p) {
2207
+ t(f, p);
2208
+ function f(u) {
2209
+ d(this, f);
2210
+ var b = n(this, p.call(this, u));
2211
+ return b.nodes || (b.nodes = []), b;
2212
+ }
2213
+ return f.prototype.append = function(u) {
2214
+ return u.parent = this, this.nodes.push(u), this;
2215
+ }, f.prototype.prepend = function(u) {
2216
+ return u.parent = this, this.nodes.unshift(u), this;
2217
+ }, f.prototype.at = function(u) {
2218
+ return this.nodes[u];
2219
+ }, f.prototype.index = function(u) {
2220
+ return typeof u == "number" ? u : this.nodes.indexOf(u);
2221
+ }, f.prototype.removeChild = function(u) {
2222
+ u = this.index(u), this.at(u).parent = void 0, this.nodes.splice(u, 1);
2223
+ var b = void 0;
2224
+ for (var v in this.indexes) b = this.indexes[v], b >= u && (this.indexes[v] = b - 1);
2225
+ return this;
2226
+ }, f.prototype.removeAll = function() {
2227
+ for (var v = this.nodes, u = Array.isArray(v), b = 0, v = u ? v : v[Symbol.iterator](); ; ) {
2228
+ var y;
2229
+ if (u) {
2230
+ if (b >= v.length) break;
2231
+ y = v[b++];
2232
+ } else {
2233
+ if (b = v.next(), b.done) break;
2234
+ y = b.value;
2235
+ }
2236
+ var g = y;
2237
+ g.parent = void 0;
2238
+ }
2239
+ return this.nodes = [], this;
2240
+ }, f.prototype.empty = function() {
2241
+ return this.removeAll();
2242
+ }, f.prototype.insertAfter = function(u, b) {
2243
+ var v = this.index(u);
2244
+ this.nodes.splice(v + 1, 0, b);
2245
+ var y = void 0;
2246
+ for (var g in this.indexes) y = this.indexes[g], v <= y && (this.indexes[g] = y + this.nodes.length);
2247
+ return this;
2248
+ }, f.prototype.insertBefore = function(u, b) {
2249
+ var v = this.index(u);
2250
+ this.nodes.splice(v, 0, b);
2251
+ var y = void 0;
2252
+ for (var g in this.indexes) y = this.indexes[g], v <= y && (this.indexes[g] = y + this.nodes.length);
2253
+ return this;
2254
+ }, f.prototype.each = function(u) {
2255
+ this.lastEach || (this.lastEach = 0), this.indexes || (this.indexes = {}), this.lastEach++;
2256
+ var b = this.lastEach;
2257
+ if (this.indexes[b] = 0, !!this.length) {
2258
+ for (var v = void 0, y = void 0; this.indexes[b] < this.length && (v = this.indexes[b], y = u(this.at(v), v), y !== !1); ) this.indexes[b] += 1;
2259
+ if (delete this.indexes[b], y === !1) return !1;
2260
+ }
2261
+ }, f.prototype.walk = function(u) {
2262
+ return this.each(function(b, v) {
2263
+ var y = u(b, v);
2264
+ if (y !== !1 && b.length && (y = b.walk(u)), y === !1) return !1;
2265
+ });
2266
+ }, f.prototype.walkAttributes = function(u) {
2267
+ var b = this;
2268
+ return this.walk(function(v) {
2269
+ if (v.type === a.ATTRIBUTE) return u.call(b, v);
2270
+ });
2271
+ }, f.prototype.walkClasses = function(u) {
2272
+ var b = this;
2273
+ return this.walk(function(v) {
2274
+ if (v.type === a.CLASS) return u.call(b, v);
2275
+ });
2276
+ }, f.prototype.walkCombinators = function(u) {
2277
+ var b = this;
2278
+ return this.walk(function(v) {
2279
+ if (v.type === a.COMBINATOR) return u.call(b, v);
2280
+ });
2281
+ }, f.prototype.walkComments = function(u) {
2282
+ var b = this;
2283
+ return this.walk(function(v) {
2284
+ if (v.type === a.COMMENT) return u.call(b, v);
2285
+ });
2286
+ }, f.prototype.walkIds = function(u) {
2287
+ var b = this;
2288
+ return this.walk(function(v) {
2289
+ if (v.type === a.ID) return u.call(b, v);
2290
+ });
2291
+ }, f.prototype.walkNesting = function(u) {
2292
+ var b = this;
2293
+ return this.walk(function(v) {
2294
+ if (v.type === a.NESTING) return u.call(b, v);
2295
+ });
2296
+ }, f.prototype.walkPseudos = function(u) {
2297
+ var b = this;
2298
+ return this.walk(function(v) {
2299
+ if (v.type === a.PSEUDO) return u.call(b, v);
2300
+ });
2301
+ }, f.prototype.walkTags = function(u) {
2302
+ var b = this;
2303
+ return this.walk(function(v) {
2304
+ if (v.type === a.TAG) return u.call(b, v);
2305
+ });
2306
+ }, f.prototype.walkUniversals = function(u) {
2307
+ var b = this;
2308
+ return this.walk(function(v) {
2309
+ if (v.type === a.UNIVERSAL) return u.call(b, v);
2310
+ });
2311
+ }, f.prototype.split = function(u) {
2312
+ var b = this, v = [];
2313
+ return this.reduce(function(y, g, x) {
2314
+ var w = u.call(b, g);
2315
+ return v.push(g), w ? (y.push(v), v = []) : x === b.length - 1 && y.push(v), y;
2316
+ }, []);
2317
+ }, f.prototype.map = function(u) {
2318
+ return this.nodes.map(u);
2319
+ }, f.prototype.reduce = function(u, b) {
2320
+ return this.nodes.reduce(u, b);
2321
+ }, f.prototype.every = function(u) {
2322
+ return this.nodes.every(u);
2323
+ }, f.prototype.some = function(u) {
2324
+ return this.nodes.some(u);
2325
+ }, f.prototype.filter = function(u) {
2326
+ return this.nodes.filter(u);
2327
+ }, f.prototype.sort = function(u) {
2328
+ return this.nodes.sort(u);
2329
+ }, f.prototype.toString = function() {
2330
+ return this.map(String).join("");
2331
+ }, o(f, [{ key: "first", get: function() {
2332
+ return this.at(0);
2333
+ } }, { key: "last", get: function() {
2334
+ return this.at(this.length - 1);
2335
+ } }, { key: "length", get: function() {
2336
+ return this.nodes.length;
2337
+ } }]), f;
2338
+ }(c.default);
2339
+ e.default = h, s.exports = e.default;
2340
+ }), Es = A((e, s) => {
2341
+ e.__esModule = !0;
2342
+ var o = Pt(), r = i(o), c = H();
2343
+ function i(n) {
2344
+ return n && n.__esModule ? n : { default: n };
2345
+ }
2346
+ function a(n, t) {
2347
+ if (!(n instanceof t)) throw new TypeError("Cannot call a class as a function");
2348
+ }
2349
+ function l(n, t) {
2350
+ if (!n) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2351
+ return t && (typeof t == "object" || typeof t == "function") ? t : n;
2352
+ }
2353
+ function m(n, t) {
2354
+ if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2355
+ n.prototype = Object.create(t && t.prototype, { constructor: { value: n, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(n, t) : n.__proto__ = t);
2356
+ }
2357
+ var d = function(n) {
2358
+ m(t, n);
2359
+ function t(h) {
2360
+ a(this, t);
2361
+ var p = l(this, n.call(this, h));
2362
+ return p.type = c.ROOT, p;
2363
+ }
2364
+ return t.prototype.toString = function() {
2365
+ var h = this.reduce(function(p, f) {
2366
+ var u = String(f);
2367
+ return u ? p + u + "," : "";
2368
+ }, "").slice(0, -1);
2369
+ return this.trailingComma ? h + "," : h;
2370
+ }, t;
2371
+ }(r.default);
2372
+ e.default = d, s.exports = e.default;
2373
+ }), js = A((e, s) => {
2374
+ e.__esModule = !0;
2375
+ var o = Pt(), r = i(o), c = H();
2376
+ function i(n) {
2377
+ return n && n.__esModule ? n : { default: n };
2378
+ }
2379
+ function a(n, t) {
2380
+ if (!(n instanceof t)) throw new TypeError("Cannot call a class as a function");
2381
+ }
2382
+ function l(n, t) {
2383
+ if (!n) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2384
+ return t && (typeof t == "object" || typeof t == "function") ? t : n;
2385
+ }
2386
+ function m(n, t) {
2387
+ if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2388
+ n.prototype = Object.create(t && t.prototype, { constructor: { value: n, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(n, t) : n.__proto__ = t);
2389
+ }
2390
+ var d = function(n) {
2391
+ m(t, n);
2392
+ function t(h) {
2393
+ a(this, t);
2394
+ var p = l(this, n.call(this, h));
2395
+ return p.type = c.SELECTOR, p;
2396
+ }
2397
+ return t;
2398
+ }(r.default);
2399
+ e.default = d, s.exports = e.default;
2400
+ }), ze = A((e, s) => {
2401
+ e.__esModule = !0;
2402
+ var o = /* @__PURE__ */ function() {
2403
+ function n(t, h) {
2404
+ for (var p = 0; p < h.length; p++) {
2405
+ var f = h[p];
2406
+ f.enumerable = f.enumerable || !1, f.configurable = !0, "value" in f && (f.writable = !0), Object.defineProperty(t, f.key, f);
2407
+ }
2408
+ }
2409
+ return function(t, h, p) {
2410
+ return h && n(t.prototype, h), p && n(t, p), t;
2411
+ };
2412
+ }(), r = ke(), c = i(r);
2413
+ function i(n) {
2414
+ return n && n.__esModule ? n : { default: n };
2415
+ }
2416
+ function a(n, t) {
2417
+ if (!(n instanceof t)) throw new TypeError("Cannot call a class as a function");
2418
+ }
2419
+ function l(n, t) {
2420
+ if (!n) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2421
+ return t && (typeof t == "object" || typeof t == "function") ? t : n;
2422
+ }
2423
+ function m(n, t) {
2424
+ if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2425
+ n.prototype = Object.create(t && t.prototype, { constructor: { value: n, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(n, t) : n.__proto__ = t);
2426
+ }
2427
+ var d = function(n) {
2428
+ m(t, n);
2429
+ function t() {
2430
+ return a(this, t), l(this, n.apply(this, arguments));
2431
+ }
2432
+ return t.prototype.toString = function() {
2433
+ return [this.spaces.before, this.ns, String(this.value), this.spaces.after].join("");
2434
+ }, o(t, [{ key: "ns", get: function() {
2435
+ var h = this.namespace;
2436
+ return h ? (typeof h == "string" ? h : "") + "|" : "";
2437
+ } }]), t;
2438
+ }(c.default);
2439
+ e.default = d, s.exports = e.default;
2440
+ }), Is = A((e, s) => {
2441
+ e.__esModule = !0;
2442
+ var o = ze(), r = i(o), c = H();
2443
+ function i(n) {
2444
+ return n && n.__esModule ? n : { default: n };
2445
+ }
2446
+ function a(n, t) {
2447
+ if (!(n instanceof t)) throw new TypeError("Cannot call a class as a function");
2448
+ }
2449
+ function l(n, t) {
2450
+ if (!n) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2451
+ return t && (typeof t == "object" || typeof t == "function") ? t : n;
2452
+ }
2453
+ function m(n, t) {
2454
+ if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2455
+ n.prototype = Object.create(t && t.prototype, { constructor: { value: n, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(n, t) : n.__proto__ = t);
2456
+ }
2457
+ var d = function(n) {
2458
+ m(t, n);
2459
+ function t(h) {
2460
+ a(this, t);
2461
+ var p = l(this, n.call(this, h));
2462
+ return p.type = c.CLASS, p;
2463
+ }
2464
+ return t.prototype.toString = function() {
2465
+ return [this.spaces.before, this.ns, "." + this.value, this.spaces.after].join("");
2466
+ }, t;
2467
+ }(r.default);
2468
+ e.default = d, s.exports = e.default;
2469
+ }), Ps = A((e, s) => {
2470
+ e.__esModule = !0;
2471
+ var o = ke(), r = i(o), c = H();
2472
+ function i(n) {
2473
+ return n && n.__esModule ? n : { default: n };
2474
+ }
2475
+ function a(n, t) {
2476
+ if (!(n instanceof t)) throw new TypeError("Cannot call a class as a function");
2477
+ }
2478
+ function l(n, t) {
2479
+ if (!n) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2480
+ return t && (typeof t == "object" || typeof t == "function") ? t : n;
2481
+ }
2482
+ function m(n, t) {
2483
+ if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2484
+ n.prototype = Object.create(t && t.prototype, { constructor: { value: n, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(n, t) : n.__proto__ = t);
2485
+ }
2486
+ var d = function(n) {
2487
+ m(t, n);
2488
+ function t(h) {
2489
+ a(this, t);
2490
+ var p = l(this, n.call(this, h));
2491
+ return p.type = c.COMMENT, p;
2492
+ }
2493
+ return t;
2494
+ }(r.default);
2495
+ e.default = d, s.exports = e.default;
2496
+ }), Ms = A((e, s) => {
2497
+ e.__esModule = !0;
2498
+ var o = ze(), r = i(o), c = H();
2499
+ function i(n) {
2500
+ return n && n.__esModule ? n : { default: n };
2501
+ }
2502
+ function a(n, t) {
2503
+ if (!(n instanceof t)) throw new TypeError("Cannot call a class as a function");
2504
+ }
2505
+ function l(n, t) {
2506
+ if (!n) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2507
+ return t && (typeof t == "object" || typeof t == "function") ? t : n;
2508
+ }
2509
+ function m(n, t) {
2510
+ if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2511
+ n.prototype = Object.create(t && t.prototype, { constructor: { value: n, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(n, t) : n.__proto__ = t);
2512
+ }
2513
+ var d = function(n) {
2514
+ m(t, n);
2515
+ function t(h) {
2516
+ a(this, t);
2517
+ var p = l(this, n.call(this, h));
2518
+ return p.type = c.ID, p;
2519
+ }
2520
+ return t.prototype.toString = function() {
2521
+ return [this.spaces.before, this.ns, "#" + this.value, this.spaces.after].join("");
2522
+ }, t;
2523
+ }(r.default);
2524
+ e.default = d, s.exports = e.default;
2525
+ }), Rs = A((e, s) => {
2526
+ e.__esModule = !0;
2527
+ var o = ze(), r = i(o), c = H();
2528
+ function i(n) {
2529
+ return n && n.__esModule ? n : { default: n };
2530
+ }
2531
+ function a(n, t) {
2532
+ if (!(n instanceof t)) throw new TypeError("Cannot call a class as a function");
2533
+ }
2534
+ function l(n, t) {
2535
+ if (!n) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2536
+ return t && (typeof t == "object" || typeof t == "function") ? t : n;
2537
+ }
2538
+ function m(n, t) {
2539
+ if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2540
+ n.prototype = Object.create(t && t.prototype, { constructor: { value: n, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(n, t) : n.__proto__ = t);
2541
+ }
2542
+ var d = function(n) {
2543
+ m(t, n);
2544
+ function t(h) {
2545
+ a(this, t);
2546
+ var p = l(this, n.call(this, h));
2547
+ return p.type = c.TAG, p;
2548
+ }
2549
+ return t;
2550
+ }(r.default);
2551
+ e.default = d, s.exports = e.default;
2552
+ }), $s = A((e, s) => {
2553
+ e.__esModule = !0;
2554
+ var o = ke(), r = i(o), c = H();
2555
+ function i(n) {
2556
+ return n && n.__esModule ? n : { default: n };
2557
+ }
2558
+ function a(n, t) {
2559
+ if (!(n instanceof t)) throw new TypeError("Cannot call a class as a function");
2560
+ }
2561
+ function l(n, t) {
2562
+ if (!n) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2563
+ return t && (typeof t == "object" || typeof t == "function") ? t : n;
2564
+ }
2565
+ function m(n, t) {
2566
+ if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2567
+ n.prototype = Object.create(t && t.prototype, { constructor: { value: n, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(n, t) : n.__proto__ = t);
2568
+ }
2569
+ var d = function(n) {
2570
+ m(t, n);
2571
+ function t(h) {
2572
+ a(this, t);
2573
+ var p = l(this, n.call(this, h));
2574
+ return p.type = c.STRING, p;
2575
+ }
2576
+ return t;
2577
+ }(r.default);
2578
+ e.default = d, s.exports = e.default;
2579
+ }), Ns = A((e, s) => {
2580
+ e.__esModule = !0;
2581
+ var o = Pt(), r = i(o), c = H();
2582
+ function i(n) {
2583
+ return n && n.__esModule ? n : { default: n };
2584
+ }
2585
+ function a(n, t) {
2586
+ if (!(n instanceof t)) throw new TypeError("Cannot call a class as a function");
2587
+ }
2588
+ function l(n, t) {
2589
+ if (!n) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2590
+ return t && (typeof t == "object" || typeof t == "function") ? t : n;
2591
+ }
2592
+ function m(n, t) {
2593
+ if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2594
+ n.prototype = Object.create(t && t.prototype, { constructor: { value: n, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(n, t) : n.__proto__ = t);
2595
+ }
2596
+ var d = function(n) {
2597
+ m(t, n);
2598
+ function t(h) {
2599
+ a(this, t);
2600
+ var p = l(this, n.call(this, h));
2601
+ return p.type = c.PSEUDO, p;
2602
+ }
2603
+ return t.prototype.toString = function() {
2604
+ var h = this.length ? "(" + this.map(String).join(",") + ")" : "";
2605
+ return [this.spaces.before, String(this.value), h, this.spaces.after].join("");
2606
+ }, t;
2607
+ }(r.default);
2608
+ e.default = d, s.exports = e.default;
2609
+ }), Ls = A((e, s) => {
2610
+ e.__esModule = !0;
2611
+ var o = ze(), r = i(o), c = H();
2612
+ function i(n) {
2613
+ return n && n.__esModule ? n : { default: n };
2614
+ }
2615
+ function a(n, t) {
2616
+ if (!(n instanceof t)) throw new TypeError("Cannot call a class as a function");
2617
+ }
2618
+ function l(n, t) {
2619
+ if (!n) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2620
+ return t && (typeof t == "object" || typeof t == "function") ? t : n;
2621
+ }
2622
+ function m(n, t) {
2623
+ if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2624
+ n.prototype = Object.create(t && t.prototype, { constructor: { value: n, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(n, t) : n.__proto__ = t);
2625
+ }
2626
+ var d = function(n) {
2627
+ m(t, n);
2628
+ function t(h) {
2629
+ a(this, t);
2630
+ var p = l(this, n.call(this, h));
2631
+ return p.type = c.ATTRIBUTE, p.raws = {}, p;
2632
+ }
2633
+ return t.prototype.toString = function() {
2634
+ var h = [this.spaces.before, "[", this.ns, this.attribute];
2635
+ return this.operator && h.push(this.operator), this.value && h.push(this.value), this.raws.insensitive ? h.push(this.raws.insensitive) : this.insensitive && h.push(" i"), h.push("]"), h.concat(this.spaces.after).join("");
2636
+ }, t;
2637
+ }(r.default);
2638
+ e.default = d, s.exports = e.default;
2639
+ }), Ws = A((e, s) => {
2640
+ e.__esModule = !0;
2641
+ var o = ze(), r = i(o), c = H();
2642
+ function i(n) {
2643
+ return n && n.__esModule ? n : { default: n };
2644
+ }
2645
+ function a(n, t) {
2646
+ if (!(n instanceof t)) throw new TypeError("Cannot call a class as a function");
2647
+ }
2648
+ function l(n, t) {
2649
+ if (!n) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2650
+ return t && (typeof t == "object" || typeof t == "function") ? t : n;
2651
+ }
2652
+ function m(n, t) {
2653
+ if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2654
+ n.prototype = Object.create(t && t.prototype, { constructor: { value: n, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(n, t) : n.__proto__ = t);
2655
+ }
2656
+ var d = function(n) {
2657
+ m(t, n);
2658
+ function t(h) {
2659
+ a(this, t);
2660
+ var p = l(this, n.call(this, h));
2661
+ return p.type = c.UNIVERSAL, p.value = "*", p;
2662
+ }
2663
+ return t;
2664
+ }(r.default);
2665
+ e.default = d, s.exports = e.default;
2666
+ }), zs = A((e, s) => {
2667
+ e.__esModule = !0;
2668
+ var o = ke(), r = i(o), c = H();
2669
+ function i(n) {
2670
+ return n && n.__esModule ? n : { default: n };
2671
+ }
2672
+ function a(n, t) {
2673
+ if (!(n instanceof t)) throw new TypeError("Cannot call a class as a function");
2674
+ }
2675
+ function l(n, t) {
2676
+ if (!n) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2677
+ return t && (typeof t == "object" || typeof t == "function") ? t : n;
2678
+ }
2679
+ function m(n, t) {
2680
+ if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2681
+ n.prototype = Object.create(t && t.prototype, { constructor: { value: n, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(n, t) : n.__proto__ = t);
2682
+ }
2683
+ var d = function(n) {
2684
+ m(t, n);
2685
+ function t(h) {
2686
+ a(this, t);
2687
+ var p = l(this, n.call(this, h));
2688
+ return p.type = c.COMBINATOR, p;
2689
+ }
2690
+ return t;
2691
+ }(r.default);
2692
+ e.default = d, s.exports = e.default;
2693
+ }), Bs = A((e, s) => {
2694
+ e.__esModule = !0;
2695
+ var o = ke(), r = i(o), c = H();
2696
+ function i(n) {
2697
+ return n && n.__esModule ? n : { default: n };
2698
+ }
2699
+ function a(n, t) {
2700
+ if (!(n instanceof t)) throw new TypeError("Cannot call a class as a function");
2701
+ }
2702
+ function l(n, t) {
2703
+ if (!n) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2704
+ return t && (typeof t == "object" || typeof t == "function") ? t : n;
2705
+ }
2706
+ function m(n, t) {
2707
+ if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2708
+ n.prototype = Object.create(t && t.prototype, { constructor: { value: n, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(n, t) : n.__proto__ = t);
2709
+ }
2710
+ var d = function(n) {
2711
+ m(t, n);
2712
+ function t(h) {
2713
+ a(this, t);
2714
+ var p = l(this, n.call(this, h));
2715
+ return p.type = c.NESTING, p.value = "&", p;
2716
+ }
2717
+ return t;
2718
+ }(r.default);
2719
+ e.default = d, s.exports = e.default;
2720
+ }), qs = A((e, s) => {
2721
+ e.__esModule = !0, e.default = o;
2722
+ function o(r) {
2723
+ return r.sort(function(c, i) {
2724
+ return c - i;
2725
+ });
2726
+ }
2727
+ s.exports = e.default;
2728
+ }), Fs = A((e, s) => {
2729
+ e.__esModule = !0, e.default = I;
2730
+ var o = 39, r = 34, c = 92, i = 47, a = 10, l = 32, m = 12, d = 9, n = 13, t = 43, h = 62, p = 126, f = 124, u = 44, b = 40, v = 41, y = 91, g = 93, x = 59, w = 42, k = 58, T = 38, O = 64, S = /[ \n\t\r\{\(\)'"\\;/]/g, E = /[ \n\t\r\(\)\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g;
2731
+ function I(N) {
2732
+ for (var $ = [], R = N.css.valueOf(), M = void 0, P = void 0, U = void 0, Oe = void 0, he = void 0, fe = void 0, de = void 0, me = void 0, ye = void 0, B = void 0, _e = void 0, ut = R.length, j = -1, _ = 1, C = 0, W = function(z, q) {
2733
+ if (N.safe) R += q, P = R.length - 1;
2734
+ else throw N.error("Unclosed " + z, _, C - j, C);
2735
+ }; C < ut; ) {
2736
+ switch (M = R.charCodeAt(C), M === a && (j = C, _ += 1), M) {
2737
+ case a:
2738
+ case l:
2739
+ case d:
2740
+ case n:
2741
+ case m:
2742
+ P = C;
2743
+ do
2744
+ P += 1, M = R.charCodeAt(P), M === a && (j = P, _ += 1);
2745
+ while (M === l || M === a || M === d || M === n || M === m);
2746
+ $.push(["space", R.slice(C, P), _, C - j, C]), C = P - 1;
2747
+ break;
2748
+ case t:
2749
+ case h:
2750
+ case p:
2751
+ case f:
2752
+ P = C;
2753
+ do
2754
+ P += 1, M = R.charCodeAt(P);
2755
+ while (M === t || M === h || M === p || M === f);
2756
+ $.push(["combinator", R.slice(C, P), _, C - j, C]), C = P - 1;
2757
+ break;
2758
+ case w:
2759
+ $.push(["*", "*", _, C - j, C]);
2760
+ break;
2761
+ case T:
2762
+ $.push(["&", "&", _, C - j, C]);
2763
+ break;
2764
+ case u:
2765
+ $.push([",", ",", _, C - j, C]);
2766
+ break;
2767
+ case y:
2768
+ $.push(["[", "[", _, C - j, C]);
2769
+ break;
2770
+ case g:
2771
+ $.push(["]", "]", _, C - j, C]);
2772
+ break;
2773
+ case k:
2774
+ $.push([":", ":", _, C - j, C]);
2775
+ break;
2776
+ case x:
2777
+ $.push([";", ";", _, C - j, C]);
2778
+ break;
2779
+ case b:
2780
+ $.push(["(", "(", _, C - j, C]);
2781
+ break;
2782
+ case v:
2783
+ $.push([")", ")", _, C - j, C]);
2784
+ break;
2785
+ case o:
2786
+ case r:
2787
+ U = M === o ? "'" : '"', P = C;
2788
+ do
2789
+ for (B = !1, P = R.indexOf(U, P + 1), P === -1 && W("quote", U), _e = P; R.charCodeAt(_e - 1) === c; ) _e -= 1, B = !B;
2790
+ while (B);
2791
+ $.push(["string", R.slice(C, P + 1), _, C - j, _, P - j, C]), C = P;
2792
+ break;
2793
+ case O:
2794
+ S.lastIndex = C + 1, S.test(R), S.lastIndex === 0 ? P = R.length - 1 : P = S.lastIndex - 2, $.push(["at-word", R.slice(C, P + 1), _, C - j, _, P - j, C]), C = P;
2795
+ break;
2796
+ case c:
2797
+ for (P = C, de = !0; R.charCodeAt(P + 1) === c; ) P += 1, de = !de;
2798
+ M = R.charCodeAt(P + 1), de && M !== i && M !== l && M !== a && M !== d && M !== n && M !== m && (P += 1), $.push(["word", R.slice(C, P + 1), _, C - j, _, P - j, C]), C = P;
2799
+ break;
2800
+ default:
2801
+ M === i && R.charCodeAt(C + 1) === w ? (P = R.indexOf("*/", C + 2) + 1, P === 0 && W("comment", "*/"), fe = R.slice(C, P + 1), Oe = fe.split(`
2802
+ `), he = Oe.length - 1, he > 0 ? (me = _ + he, ye = P - Oe[he].length) : (me = _, ye = j), $.push(["comment", fe, _, C - j, me, P - ye, C]), j = ye, _ = me, C = P) : (E.lastIndex = C + 1, E.test(R), E.lastIndex === 0 ? P = R.length - 1 : P = E.lastIndex - 2, $.push(["word", R.slice(C, P + 1), _, C - j, _, P - j, C]), C = P);
2803
+ break;
2804
+ }
2805
+ C++;
2806
+ }
2807
+ return $;
2808
+ }
2809
+ s.exports = e.default;
2810
+ }), Ds = A((e, s) => {
2811
+ e.__esModule = !0;
2812
+ var o = /* @__PURE__ */ function() {
2813
+ function j(_, C) {
2814
+ for (var W = 0; W < C.length; W++) {
2815
+ var z = C[W];
2816
+ z.enumerable = z.enumerable || !1, z.configurable = !0, "value" in z && (z.writable = !0), Object.defineProperty(_, z.key, z);
2817
+ }
2818
+ }
2819
+ return function(_, C, W) {
2820
+ return C && j(_.prototype, C), W && j(_, W), _;
2821
+ };
2822
+ }(), r = pr(), c = B(r), i = hr(), a = B(i), l = fr(), m = B(l), d = Es(), n = B(d), t = js(), h = B(t), p = Is(), f = B(p), u = Ps(), b = B(u), v = Ms(), y = B(v), g = Rs(), x = B(g), w = $s(), k = B(w), T = Ns(), O = B(T), S = Ls(), E = B(S), I = Ws(), N = B(I), $ = zs(), R = B($), M = Bs(), P = B(M), U = qs(), Oe = B(U), he = Fs(), fe = B(he), de = H(), me = ye(de);
2823
+ function ye(j) {
2824
+ if (j && j.__esModule) return j;
2825
+ var _ = {};
2826
+ if (j != null) for (var C in j) Object.prototype.hasOwnProperty.call(j, C) && (_[C] = j[C]);
2827
+ return _.default = j, _;
2828
+ }
2829
+ function B(j) {
2830
+ return j && j.__esModule ? j : { default: j };
2831
+ }
2832
+ function _e(j, _) {
2833
+ if (!(j instanceof _)) throw new TypeError("Cannot call a class as a function");
2834
+ }
2835
+ var ut = function() {
2836
+ function j(_) {
2837
+ _e(this, j), this.input = _, this.lossy = _.options.lossless === !1, this.position = 0, this.root = new n.default();
2838
+ var C = new h.default();
2839
+ return this.root.append(C), this.current = C, this.lossy ? this.tokens = (0, fe.default)({ safe: _.safe, css: _.css.trim() }) : this.tokens = (0, fe.default)(_), this.loop();
2840
+ }
2841
+ return j.prototype.attribute = function() {
2842
+ var _ = "", C = void 0, W = this.currToken;
2843
+ for (this.position++; this.position < this.tokens.length && this.currToken[0] !== "]"; ) _ += this.tokens[this.position][1], this.position++;
2844
+ this.position === this.tokens.length && !~_.indexOf("]") && this.error("Expected a closing square bracket.");
2845
+ var z = _.split(/((?:[*~^$|]?=))([^]*)/), q = z[0].split(/(\|)/g), X = { operator: z[1], value: z[2], source: { start: { line: W[2], column: W[3] }, end: { line: this.currToken[2], column: this.currToken[3] } }, sourceIndex: W[4] };
2846
+ if (q.length > 1 ? (q[0] === "" && (q[0] = !0), X.attribute = this.parseValue(q[2]), X.namespace = this.parseNamespace(q[0])) : X.attribute = this.parseValue(z[0]), C = new E.default(X), z[2]) {
2847
+ var re = z[2].split(/(\s+i\s*?)$/), se = re[0].trim();
2848
+ C.value = this.lossy ? se : re[0], re[1] && (C.insensitive = !0, this.lossy || (C.raws.insensitive = re[1])), C.quoted = se[0] === "'" || se[0] === '"', C.raws.unquoted = C.quoted ? se.slice(1, -1) : se;
2849
+ }
2850
+ this.newNode(C), this.position++;
2851
+ }, j.prototype.combinator = function() {
2852
+ if (this.currToken[1] === "|") return this.namespace();
2853
+ for (var _ = new R.default({ value: "", source: { start: { line: this.currToken[2], column: this.currToken[3] }, end: { line: this.currToken[2], column: this.currToken[3] } }, sourceIndex: this.currToken[4] }); this.position < this.tokens.length && this.currToken && (this.currToken[0] === "space" || this.currToken[0] === "combinator"); ) this.nextToken && this.nextToken[0] === "combinator" ? (_.spaces.before = this.parseSpace(this.currToken[1]), _.source.start.line = this.nextToken[2], _.source.start.column = this.nextToken[3], _.source.end.column = this.nextToken[3], _.source.end.line = this.nextToken[2], _.sourceIndex = this.nextToken[4]) : this.prevToken && this.prevToken[0] === "combinator" ? _.spaces.after = this.parseSpace(this.currToken[1]) : this.currToken[0] === "combinator" ? _.value = this.currToken[1] : this.currToken[0] === "space" && (_.value = this.parseSpace(this.currToken[1], " ")), this.position++;
2854
+ return this.newNode(_);
2855
+ }, j.prototype.comma = function() {
2856
+ if (this.position === this.tokens.length - 1) {
2857
+ this.root.trailingComma = !0, this.position++;
2858
+ return;
2859
+ }
2860
+ var _ = new h.default();
2861
+ this.current.parent.append(_), this.current = _, this.position++;
2862
+ }, j.prototype.comment = function() {
2863
+ var _ = new b.default({ value: this.currToken[1], source: { start: { line: this.currToken[2], column: this.currToken[3] }, end: { line: this.currToken[4], column: this.currToken[5] } }, sourceIndex: this.currToken[6] });
2864
+ this.newNode(_), this.position++;
2865
+ }, j.prototype.error = function(_) {
2866
+ throw new this.input.error(_);
2867
+ }, j.prototype.missingBackslash = function() {
2868
+ return this.error("Expected a backslash preceding the semicolon.");
2869
+ }, j.prototype.missingParenthesis = function() {
2870
+ return this.error("Expected opening parenthesis.");
2871
+ }, j.prototype.missingSquareBracket = function() {
2872
+ return this.error("Expected opening square bracket.");
2873
+ }, j.prototype.namespace = function() {
2874
+ var _ = this.prevToken && this.prevToken[1] || !0;
2875
+ if (this.nextToken[0] === "word") return this.position++, this.word(_);
2876
+ if (this.nextToken[0] === "*") return this.position++, this.universal(_);
2877
+ }, j.prototype.nesting = function() {
2878
+ this.newNode(new P.default({ value: this.currToken[1], source: { start: { line: this.currToken[2], column: this.currToken[3] }, end: { line: this.currToken[2], column: this.currToken[3] } }, sourceIndex: this.currToken[4] })), this.position++;
2879
+ }, j.prototype.parentheses = function() {
2880
+ var _ = this.current.last;
2881
+ if (_ && _.type === me.PSEUDO) {
2882
+ var C = new h.default(), W = this.current;
2883
+ _.append(C), this.current = C;
2884
+ var z = 1;
2885
+ for (this.position++; this.position < this.tokens.length && z; ) this.currToken[0] === "(" && z++, this.currToken[0] === ")" && z--, z ? this.parse() : (C.parent.source.end.line = this.currToken[2], C.parent.source.end.column = this.currToken[3], this.position++);
2886
+ z && this.error("Expected closing parenthesis."), this.current = W;
2887
+ } else {
2888
+ var q = 1;
2889
+ for (this.position++, _.value += "("; this.position < this.tokens.length && q; ) this.currToken[0] === "(" && q++, this.currToken[0] === ")" && q--, _.value += this.parseParenthesisToken(this.currToken), this.position++;
2890
+ q && this.error("Expected closing parenthesis.");
2891
+ }
2892
+ }, j.prototype.pseudo = function() {
2893
+ for (var _ = this, C = "", W = this.currToken; this.currToken && this.currToken[0] === ":"; ) C += this.currToken[1], this.position++;
2894
+ if (!this.currToken) return this.error("Expected pseudo-class or pseudo-element");
2895
+ if (this.currToken[0] === "word") {
2896
+ var z = void 0;
2897
+ this.splitWord(!1, function(q, X) {
2898
+ C += q, z = new O.default({ value: C, source: { start: { line: W[2], column: W[3] }, end: { line: _.currToken[4], column: _.currToken[5] } }, sourceIndex: W[4] }), _.newNode(z), X > 1 && _.nextToken && _.nextToken[0] === "(" && _.error("Misplaced parenthesis.");
2899
+ });
2900
+ } else this.error('Unexpected "' + this.currToken[0] + '" found.');
2901
+ }, j.prototype.space = function() {
2902
+ var _ = this.currToken;
2903
+ this.position === 0 || this.prevToken[0] === "," || this.prevToken[0] === "(" ? (this.spaces = this.parseSpace(_[1]), this.position++) : this.position === this.tokens.length - 1 || this.nextToken[0] === "," || this.nextToken[0] === ")" ? (this.current.last.spaces.after = this.parseSpace(_[1]), this.position++) : this.combinator();
2904
+ }, j.prototype.string = function() {
2905
+ var _ = this.currToken;
2906
+ this.newNode(new k.default({ value: this.currToken[1], source: { start: { line: _[2], column: _[3] }, end: { line: _[4], column: _[5] } }, sourceIndex: _[6] })), this.position++;
2907
+ }, j.prototype.universal = function(_) {
2908
+ var C = this.nextToken;
2909
+ if (C && C[1] === "|") return this.position++, this.namespace();
2910
+ this.newNode(new N.default({ value: this.currToken[1], source: { start: { line: this.currToken[2], column: this.currToken[3] }, end: { line: this.currToken[2], column: this.currToken[3] } }, sourceIndex: this.currToken[4] }), _), this.position++;
2911
+ }, j.prototype.splitWord = function(_, C) {
2912
+ for (var W = this, z = this.nextToken, q = this.currToken[1]; z && z[0] === "word"; ) {
2913
+ this.position++;
2914
+ var X = this.currToken[1];
2915
+ if (q += X, X.lastIndexOf("\\") === X.length - 1) {
2916
+ var re = this.nextToken;
2917
+ re && re[0] === "space" && (q += this.parseSpace(re[1], " "), this.position++);
2918
+ }
2919
+ z = this.nextToken;
2920
+ }
2921
+ var se = (0, a.default)(q, "."), qe = (0, a.default)(q, "#"), Dt = (0, a.default)(q, "#{");
2922
+ Dt.length && (qe = qe.filter(function(ne) {
2923
+ return !~Dt.indexOf(ne);
2924
+ }));
2925
+ var ve = (0, Oe.default)((0, m.default)((0, c.default)([[0], se, qe])));
2926
+ ve.forEach(function(ne, Ce) {
2927
+ var Fe = ve[Ce + 1] || q.length, De = q.slice(ne, Fe);
2928
+ if (Ce === 0 && C) return C.call(W, De, ve.length);
2929
+ var Ue = void 0;
2930
+ ~se.indexOf(ne) ? Ue = new f.default({ value: De.slice(1), source: { start: { line: W.currToken[2], column: W.currToken[3] + ne }, end: { line: W.currToken[4], column: W.currToken[3] + (Fe - 1) } }, sourceIndex: W.currToken[6] + ve[Ce] }) : ~qe.indexOf(ne) ? Ue = new y.default({ value: De.slice(1), source: { start: { line: W.currToken[2], column: W.currToken[3] + ne }, end: { line: W.currToken[4], column: W.currToken[3] + (Fe - 1) } }, sourceIndex: W.currToken[6] + ve[Ce] }) : Ue = new x.default({ value: De, source: { start: { line: W.currToken[2], column: W.currToken[3] + ne }, end: { line: W.currToken[4], column: W.currToken[3] + (Fe - 1) } }, sourceIndex: W.currToken[6] + ve[Ce] }), W.newNode(Ue, _);
2931
+ }), this.position++;
2932
+ }, j.prototype.word = function(_) {
2933
+ var C = this.nextToken;
2934
+ return C && C[1] === "|" ? (this.position++, this.namespace()) : this.splitWord(_);
2935
+ }, j.prototype.loop = function() {
2936
+ for (; this.position < this.tokens.length; ) this.parse(!0);
2937
+ return this.root;
2938
+ }, j.prototype.parse = function(_) {
2939
+ switch (this.currToken[0]) {
2940
+ case "space":
2941
+ this.space();
2942
+ break;
2943
+ case "comment":
2944
+ this.comment();
2945
+ break;
2946
+ case "(":
2947
+ this.parentheses();
2948
+ break;
2949
+ case ")":
2950
+ _ && this.missingParenthesis();
2951
+ break;
2952
+ case "[":
2953
+ this.attribute();
2954
+ break;
2955
+ case "]":
2956
+ this.missingSquareBracket();
2957
+ break;
2958
+ case "at-word":
2959
+ case "word":
2960
+ this.word();
2961
+ break;
2962
+ case ":":
2963
+ this.pseudo();
2964
+ break;
2965
+ case ";":
2966
+ this.missingBackslash();
2967
+ break;
2968
+ case ",":
2969
+ this.comma();
2970
+ break;
2971
+ case "*":
2972
+ this.universal();
2973
+ break;
2974
+ case "&":
2975
+ this.nesting();
2976
+ break;
2977
+ case "combinator":
2978
+ this.combinator();
2979
+ break;
2980
+ case "string":
2981
+ this.string();
2982
+ break;
2983
+ }
2984
+ }, j.prototype.parseNamespace = function(_) {
2985
+ if (this.lossy && typeof _ == "string") {
2986
+ var C = _.trim();
2987
+ return C.length ? C : !0;
2988
+ }
2989
+ return _;
2990
+ }, j.prototype.parseSpace = function(_, C) {
2991
+ return this.lossy ? C || "" : _;
2992
+ }, j.prototype.parseValue = function(_) {
2993
+ return this.lossy && _ && typeof _ == "string" ? _.trim() : _;
2994
+ }, j.prototype.parseParenthesisToken = function(_) {
2995
+ return this.lossy ? _[0] === "space" ? this.parseSpace(_[1], " ") : this.parseValue(_[1]) : _[1];
2996
+ }, j.prototype.newNode = function(_, C) {
2997
+ return C && (_.namespace = this.parseNamespace(C)), this.spaces && (_.spaces.before = this.spaces, this.spaces = ""), this.current.append(_);
2998
+ }, o(j, [{ key: "currToken", get: function() {
2999
+ return this.tokens[this.position];
3000
+ } }, { key: "nextToken", get: function() {
3001
+ return this.tokens[this.position + 1];
3002
+ } }, { key: "prevToken", get: function() {
3003
+ return this.tokens[this.position - 1];
3004
+ } }]), j;
3005
+ }();
3006
+ e.default = ut, s.exports = e.default;
3007
+ }), Us = A((e, s) => {
3008
+ e.__esModule = !0;
3009
+ var o = /* @__PURE__ */ function() {
3010
+ function m(d, n) {
3011
+ for (var t = 0; t < n.length; t++) {
3012
+ var h = n[t];
3013
+ h.enumerable = h.enumerable || !1, h.configurable = !0, "value" in h && (h.writable = !0), Object.defineProperty(d, h.key, h);
3014
+ }
3015
+ }
3016
+ return function(d, n, t) {
3017
+ return n && m(d.prototype, n), t && m(d, t), d;
3018
+ };
3019
+ }(), r = Ds(), c = i(r);
3020
+ function i(m) {
3021
+ return m && m.__esModule ? m : { default: m };
3022
+ }
3023
+ function a(m, d) {
3024
+ if (!(m instanceof d)) throw new TypeError("Cannot call a class as a function");
3025
+ }
3026
+ var l = function() {
3027
+ function m(d) {
3028
+ return a(this, m), this.func = d || function() {
3029
+ }, this;
3030
+ }
3031
+ return m.prototype.process = function(d) {
3032
+ var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = new c.default({ css: d, error: function(h) {
3033
+ throw new Error(h);
3034
+ }, options: n });
3035
+ return this.res = t, this.func(t), this;
3036
+ }, o(m, [{ key: "result", get: function() {
3037
+ return String(this.res);
3038
+ } }]), m;
3039
+ }();
3040
+ e.default = l, s.exports = e.default;
3041
+ }), te = A((e, s) => {
3042
+ var o = function(r, c) {
3043
+ let i = new r.constructor();
3044
+ for (let a in r) {
3045
+ if (!r.hasOwnProperty(a)) continue;
3046
+ let l = r[a], m = typeof l;
3047
+ a === "parent" && m === "object" ? c && (i[a] = c) : a === "source" ? i[a] = l : l instanceof Array ? i[a] = l.map((d) => o(d, i)) : a !== "before" && a !== "after" && a !== "between" && a !== "semicolon" && (m === "object" && l !== null && (l = o(l)), i[a] = l);
3048
+ }
3049
+ return i;
3050
+ };
3051
+ s.exports = class {
3052
+ constructor(r) {
3053
+ r = r || {}, this.raws = { before: "", after: "" };
3054
+ for (let c in r) this[c] = r[c];
3055
+ }
3056
+ remove() {
3057
+ return this.parent && this.parent.removeChild(this), this.parent = void 0, this;
3058
+ }
3059
+ toString() {
3060
+ return [this.raws.before, String(this.value), this.raws.after].join("");
3061
+ }
3062
+ clone(r) {
3063
+ r = r || {};
3064
+ let c = o(this);
3065
+ for (let i in r) c[i] = r[i];
3066
+ return c;
3067
+ }
3068
+ cloneBefore(r) {
3069
+ r = r || {};
3070
+ let c = this.clone(r);
3071
+ return this.parent.insertBefore(this, c), c;
3072
+ }
3073
+ cloneAfter(r) {
3074
+ r = r || {};
3075
+ let c = this.clone(r);
3076
+ return this.parent.insertAfter(this, c), c;
3077
+ }
3078
+ replaceWith() {
3079
+ let r = Array.prototype.slice.call(arguments);
3080
+ if (this.parent) {
3081
+ for (let c of r) this.parent.insertBefore(this, c);
3082
+ this.remove();
3083
+ }
3084
+ return this;
3085
+ }
3086
+ moveTo(r) {
3087
+ return this.cleanRaws(this.root() === r.root()), this.remove(), r.append(this), this;
3088
+ }
3089
+ moveBefore(r) {
3090
+ return this.cleanRaws(this.root() === r.root()), this.remove(), r.parent.insertBefore(r, this), this;
3091
+ }
3092
+ moveAfter(r) {
3093
+ return this.cleanRaws(this.root() === r.root()), this.remove(), r.parent.insertAfter(r, this), this;
3094
+ }
3095
+ next() {
3096
+ let r = this.parent.index(this);
3097
+ return this.parent.nodes[r + 1];
3098
+ }
3099
+ prev() {
3100
+ let r = this.parent.index(this);
3101
+ return this.parent.nodes[r - 1];
3102
+ }
3103
+ toJSON() {
3104
+ let r = {};
3105
+ for (let c in this) {
3106
+ if (!this.hasOwnProperty(c) || c === "parent") continue;
3107
+ let i = this[c];
3108
+ i instanceof Array ? r[c] = i.map((a) => typeof a == "object" && a.toJSON ? a.toJSON() : a) : typeof i == "object" && i.toJSON ? r[c] = i.toJSON() : r[c] = i;
3109
+ }
3110
+ return r;
3111
+ }
3112
+ root() {
3113
+ let r = this;
3114
+ for (; r.parent; ) r = r.parent;
3115
+ return r;
3116
+ }
3117
+ cleanRaws(r) {
3118
+ delete this.raws.before, delete this.raws.after, r || delete this.raws.between;
3119
+ }
3120
+ positionInside(r) {
3121
+ let c = this.toString(), i = this.source.start.column, a = this.source.start.line;
3122
+ for (let l = 0; l < r; l++) c[l] === `
3123
+ ` ? (i = 1, a += 1) : i += 1;
3124
+ return { line: a, column: i };
3125
+ }
3126
+ positionBy(r) {
3127
+ let c = this.source.start;
3128
+ if (Object(r).index) c = this.positionInside(r.index);
3129
+ else if (Object(r).word) {
3130
+ let i = this.toString().indexOf(r.word);
3131
+ i !== -1 && (c = this.positionInside(i));
3132
+ }
3133
+ return c;
3134
+ }
3135
+ };
3136
+ }), Z = A((e, s) => {
3137
+ var o = te(), r = class extends o {
3138
+ constructor(c) {
3139
+ super(c), this.nodes || (this.nodes = []);
3140
+ }
3141
+ push(c) {
3142
+ return c.parent = this, this.nodes.push(c), this;
3143
+ }
3144
+ each(c) {
3145
+ this.lastEach || (this.lastEach = 0), this.indexes || (this.indexes = {}), this.lastEach += 1;
3146
+ let i = this.lastEach, a, l;
3147
+ if (this.indexes[i] = 0, !!this.nodes) {
3148
+ for (; this.indexes[i] < this.nodes.length && (a = this.indexes[i], l = c(this.nodes[a], a), l !== !1); ) this.indexes[i] += 1;
3149
+ return delete this.indexes[i], l;
3150
+ }
3151
+ }
3152
+ walk(c) {
3153
+ return this.each((i, a) => {
3154
+ let l = c(i, a);
3155
+ return l !== !1 && i.walk && (l = i.walk(c)), l;
3156
+ });
3157
+ }
3158
+ walkType(c, i) {
3159
+ if (!c || !i) throw new Error("Parameters {type} and {callback} are required.");
3160
+ let a = typeof c == "function";
3161
+ return this.walk((l, m) => {
3162
+ if (a && l instanceof c || !a && l.type === c) return i.call(this, l, m);
3163
+ });
3164
+ }
3165
+ append(c) {
3166
+ return c.parent = this, this.nodes.push(c), this;
3167
+ }
3168
+ prepend(c) {
3169
+ return c.parent = this, this.nodes.unshift(c), this;
3170
+ }
3171
+ cleanRaws(c) {
3172
+ if (super.cleanRaws(c), this.nodes) for (let i of this.nodes) i.cleanRaws(c);
3173
+ }
3174
+ insertAfter(c, i) {
3175
+ let a = this.index(c), l;
3176
+ this.nodes.splice(a + 1, 0, i);
3177
+ for (let m in this.indexes) l = this.indexes[m], a <= l && (this.indexes[m] = l + this.nodes.length);
3178
+ return this;
3179
+ }
3180
+ insertBefore(c, i) {
3181
+ let a = this.index(c), l;
3182
+ this.nodes.splice(a, 0, i);
3183
+ for (let m in this.indexes) l = this.indexes[m], a <= l && (this.indexes[m] = l + this.nodes.length);
3184
+ return this;
3185
+ }
3186
+ removeChild(c) {
3187
+ c = this.index(c), this.nodes[c].parent = void 0, this.nodes.splice(c, 1);
3188
+ let i;
3189
+ for (let a in this.indexes) i = this.indexes[a], i >= c && (this.indexes[a] = i - 1);
3190
+ return this;
3191
+ }
3192
+ removeAll() {
3193
+ for (let c of this.nodes) c.parent = void 0;
3194
+ return this.nodes = [], this;
3195
+ }
3196
+ every(c) {
3197
+ return this.nodes.every(c);
3198
+ }
3199
+ some(c) {
3200
+ return this.nodes.some(c);
3201
+ }
3202
+ index(c) {
3203
+ return typeof c == "number" ? c : this.nodes.indexOf(c);
3204
+ }
3205
+ get first() {
3206
+ if (this.nodes) return this.nodes[0];
3207
+ }
3208
+ get last() {
3209
+ if (this.nodes) return this.nodes[this.nodes.length - 1];
3210
+ }
3211
+ toString() {
3212
+ let c = this.nodes.map(String).join("");
3213
+ return this.value && (c = this.value + c), this.raws.before && (c = this.raws.before + c), this.raws.after && (c += this.raws.after), c;
3214
+ }
3215
+ };
3216
+ r.registerWalker = (c) => {
3217
+ let i = "walk" + c.name;
3218
+ i.lastIndexOf("s") !== i.length - 1 && (i += "s"), !r.prototype[i] && (r.prototype[i] = function(a) {
3219
+ return this.walkType(c, a);
3220
+ });
3221
+ }, s.exports = r;
3222
+ }), Vs = A((e, s) => {
3223
+ var o = Z();
3224
+ s.exports = class extends o {
3225
+ constructor(r) {
3226
+ super(r), this.type = "root";
3227
+ }
3228
+ };
3229
+ }), Gs = A((e, s) => {
3230
+ var o = Z();
3231
+ s.exports = class extends o {
3232
+ constructor(r) {
3233
+ super(r), this.type = "value", this.unbalanced = 0;
3234
+ }
3235
+ };
3236
+ }), Js = A((e, s) => {
3237
+ var o = Z(), r = class extends o {
3238
+ constructor(c) {
3239
+ super(c), this.type = "atword";
3240
+ }
3241
+ toString() {
3242
+ return this.quoted && this.raws.quote, [this.raws.before, "@", String.prototype.toString.call(this.value), this.raws.after].join("");
3243
+ }
3244
+ };
3245
+ o.registerWalker(r), s.exports = r;
3246
+ }), Hs = A((e, s) => {
3247
+ var o = Z(), r = te(), c = class extends r {
3248
+ constructor(i) {
3249
+ super(i), this.type = "colon";
3250
+ }
3251
+ };
3252
+ o.registerWalker(c), s.exports = c;
3253
+ }), Qs = A((e, s) => {
3254
+ var o = Z(), r = te(), c = class extends r {
3255
+ constructor(i) {
3256
+ super(i), this.type = "comma";
3257
+ }
3258
+ };
3259
+ o.registerWalker(c), s.exports = c;
3260
+ }), Zs = A((e, s) => {
3261
+ var o = Z(), r = te(), c = class extends r {
3262
+ constructor(i) {
3263
+ super(i), this.type = "comment", this.inline = Object(i).inline || !1;
3264
+ }
3265
+ toString() {
3266
+ return [this.raws.before, this.inline ? "//" : "/*", String(this.value), this.inline ? "" : "*/", this.raws.after].join("");
3267
+ }
3268
+ };
3269
+ o.registerWalker(c), s.exports = c;
3270
+ }), Ys = A((e, s) => {
3271
+ var o = Z(), r = class extends o {
3272
+ constructor(c) {
3273
+ super(c), this.type = "func", this.unbalanced = -1;
3274
+ }
3275
+ };
3276
+ o.registerWalker(r), s.exports = r;
3277
+ }), Ks = A((e, s) => {
3278
+ var o = Z(), r = te(), c = class extends r {
3279
+ constructor(i) {
3280
+ super(i), this.type = "number", this.unit = Object(i).unit || "";
3281
+ }
3282
+ toString() {
3283
+ return [this.raws.before, String(this.value), this.unit, this.raws.after].join("");
3284
+ }
3285
+ };
3286
+ o.registerWalker(c), s.exports = c;
3287
+ }), Xs = A((e, s) => {
3288
+ var o = Z(), r = te(), c = class extends r {
3289
+ constructor(i) {
3290
+ super(i), this.type = "operator";
3291
+ }
3292
+ };
3293
+ o.registerWalker(c), s.exports = c;
3294
+ }), en = A((e, s) => {
3295
+ var o = Z(), r = te(), c = class extends r {
3296
+ constructor(i) {
3297
+ super(i), this.type = "paren", this.parenType = "";
3298
+ }
3299
+ };
3300
+ o.registerWalker(c), s.exports = c;
3301
+ }), tn = A((e, s) => {
3302
+ var o = Z(), r = te(), c = class extends r {
3303
+ constructor(i) {
3304
+ super(i), this.type = "string";
3305
+ }
3306
+ toString() {
3307
+ let i = this.quoted ? this.raws.quote : "";
3308
+ return [this.raws.before, i, this.value + "", i, this.raws.after].join("");
3309
+ }
3310
+ };
3311
+ o.registerWalker(c), s.exports = c;
3312
+ }), rn = A((e, s) => {
3313
+ var o = Z(), r = te(), c = class extends r {
3314
+ constructor(i) {
3315
+ super(i), this.type = "word";
3316
+ }
3317
+ };
3318
+ o.registerWalker(c), s.exports = c;
3319
+ }), sn = A((e, s) => {
3320
+ var o = Z(), r = te(), c = class extends r {
3321
+ constructor(i) {
3322
+ super(i), this.type = "unicode-range";
3323
+ }
3324
+ };
3325
+ o.registerWalker(c), s.exports = c;
3326
+ }), nn = A((e, s) => {
3327
+ var o = class extends Error {
3328
+ constructor(r) {
3329
+ super(r), this.name = this.constructor.name, this.message = r || "An error ocurred while tokzenizing.", typeof Error.captureStackTrace == "function" ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error(r).stack;
3330
+ }
3331
+ };
3332
+ s.exports = o;
3333
+ }), on = A((e, s) => {
3334
+ var o = /[ \n\t\r\{\(\)'"\\;,/]/g, r = /[ \n\t\r\(\)\{\}\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g, c = /[ \n\t\r\(\)\{\}\*:;@!&'"\-\+\|~>,\[\]\\]|\//g, i = /^[a-z0-9]/i, a = /^[a-f0-9?\-]/i, l = nn();
3335
+ s.exports = function(m, d) {
3336
+ d = d || {};
3337
+ let n = [], t = m.valueOf(), h = t.length, p = -1, f = 1, u = 0, b = 0, v = null, y, g, x, w, k, T, O, S, E, I, N;
3338
+ function $(R) {
3339
+ let M = `Unclosed ${R} at line: ${f}, column: ${u - p}, token: ${u}`;
3340
+ throw new l(M);
3341
+ }
3342
+ for (; u < h; ) {
3343
+ switch (y = t.charCodeAt(u), y === 10 && (p = u, f += 1), y) {
3344
+ case 10:
3345
+ case 32:
3346
+ case 9:
3347
+ case 13:
3348
+ case 12:
3349
+ g = u;
3350
+ do
3351
+ g += 1, y = t.charCodeAt(g), y === 10 && (p = g, f += 1);
3352
+ while (y === 32 || y === 10 || y === 9 || y === 13 || y === 12);
3353
+ n.push(["space", t.slice(u, g), f, u - p, f, g - p, u]), u = g - 1;
3354
+ break;
3355
+ case 58:
3356
+ g = u + 1, n.push(["colon", t.slice(u, g), f, u - p, f, g - p, u]), u = g - 1;
3357
+ break;
3358
+ case 44:
3359
+ g = u + 1, n.push(["comma", t.slice(u, g), f, u - p, f, g - p, u]), u = g - 1;
3360
+ break;
3361
+ case 123:
3362
+ n.push(["{", "{", f, u - p, f, g - p, u]);
3363
+ break;
3364
+ case 125:
3365
+ n.push(["}", "}", f, u - p, f, g - p, u]);
3366
+ break;
3367
+ case 40:
3368
+ b++, v = !v && b === 1 && n.length > 0 && n[n.length - 1][0] === "word" && n[n.length - 1][1] === "url", n.push(["(", "(", f, u - p, f, g - p, u]);
3369
+ break;
3370
+ case 41:
3371
+ b--, v = v && b > 0, n.push([")", ")", f, u - p, f, g - p, u]);
3372
+ break;
3373
+ case 39:
3374
+ case 34:
3375
+ x = y === 39 ? "'" : '"', g = u;
3376
+ do
3377
+ for (E = !1, g = t.indexOf(x, g + 1), g === -1 && $("quote"), I = g; t.charCodeAt(I - 1) === 92; ) I -= 1, E = !E;
3378
+ while (E);
3379
+ n.push(["string", t.slice(u, g + 1), f, u - p, f, g - p, u]), u = g;
3380
+ break;
3381
+ case 64:
3382
+ o.lastIndex = u + 1, o.test(t), o.lastIndex === 0 ? g = t.length - 1 : g = o.lastIndex - 2, n.push(["atword", t.slice(u, g + 1), f, u - p, f, g - p, u]), u = g;
3383
+ break;
3384
+ case 92:
3385
+ g = u, y = t.charCodeAt(g + 1), n.push(["word", t.slice(u, g + 1), f, u - p, f, g - p, u]), u = g;
3386
+ break;
3387
+ case 43:
3388
+ case 45:
3389
+ case 42:
3390
+ if (g = u + 1, N = t.slice(u + 1, g + 1), t.slice(u - 1, u), y === 45 && N.charCodeAt(0) === 45) {
3391
+ g++, n.push(["word", t.slice(u, g), f, u - p, f, g - p, u]), u = g - 1;
3392
+ break;
3393
+ }
3394
+ n.push(["operator", t.slice(u, g), f, u - p, f, g - p, u]), u = g - 1;
3395
+ break;
3396
+ default:
3397
+ if (y === 47 && (t.charCodeAt(u + 1) === 42 || d.loose && !v && t.charCodeAt(u + 1) === 47)) {
3398
+ if (t.charCodeAt(u + 1) === 42) g = t.indexOf("*/", u + 2) + 1, g === 0 && $("comment");
3399
+ else {
3400
+ let R = t.indexOf(`
3401
+ `, u + 2);
3402
+ g = R !== -1 ? R - 1 : h;
3403
+ }
3404
+ T = t.slice(u, g + 1), w = T.split(`
3405
+ `), k = w.length - 1, k > 0 ? (O = f + k, S = g - w[k].length) : (O = f, S = p), n.push(["comment", T, f, u - p, O, g - S, u]), p = S, f = O, u = g;
3406
+ } else if (y === 35 && !i.test(t.slice(u + 1, u + 2))) g = u + 1, n.push(["#", t.slice(u, g), f, u - p, f, g - p, u]), u = g - 1;
3407
+ else if ((y === 117 || y === 85) && t.charCodeAt(u + 1) === 43) {
3408
+ g = u + 2;
3409
+ do
3410
+ g += 1, y = t.charCodeAt(g);
3411
+ while (g < h && a.test(t.slice(g, g + 1)));
3412
+ n.push(["unicoderange", t.slice(u, g), f, u - p, f, g - p, u]), u = g - 1;
3413
+ } else if (y === 47) g = u + 1, n.push(["operator", t.slice(u, g), f, u - p, f, g - p, u]), u = g - 1;
3414
+ else {
3415
+ let R = r;
3416
+ if (y >= 48 && y <= 57 && (R = c), R.lastIndex = u + 1, R.test(t), R.lastIndex === 0 ? g = t.length - 1 : g = R.lastIndex - 2, R === c || y === 46) {
3417
+ let M = t.charCodeAt(g), P = t.charCodeAt(g + 1), U = t.charCodeAt(g + 2);
3418
+ (M === 101 || M === 69) && (P === 45 || P === 43) && U >= 48 && U <= 57 && (c.lastIndex = g + 2, c.test(t), c.lastIndex === 0 ? g = t.length - 1 : g = c.lastIndex - 2);
3419
+ }
3420
+ n.push(["word", t.slice(u, g + 1), f, u - p, f, g - p, u]), u = g;
3421
+ }
3422
+ break;
3423
+ }
3424
+ u++;
3425
+ }
3426
+ return n;
3427
+ };
3428
+ }), an = A((e, s) => {
3429
+ var o = class extends Error {
3430
+ constructor(r) {
3431
+ super(r), this.name = this.constructor.name, this.message = r || "An error ocurred while parsing.", typeof Error.captureStackTrace == "function" ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error(r).stack;
3432
+ }
3433
+ };
3434
+ s.exports = o;
3435
+ }), un = A((e, s) => {
3436
+ var o = Vs(), r = Gs(), c = Js(), i = Hs(), a = Qs(), l = Zs(), m = Ys(), d = Ks(), n = Xs(), t = en(), h = tn(), p = rn(), f = sn(), u = on(), b = pr(), v = hr(), y = fr(), g = an();
3437
+ function x(w) {
3438
+ return w.sort((k, T) => k - T);
3439
+ }
3440
+ s.exports = class {
3441
+ constructor(w, k) {
3442
+ let T = { loose: !1 };
3443
+ this.cache = [], this.input = w, this.options = Object.assign({}, T, k), this.position = 0, this.unbalanced = 0, this.root = new o();
3444
+ let O = new r();
3445
+ this.root.append(O), this.current = O, this.tokens = u(w, this.options);
3446
+ }
3447
+ parse() {
3448
+ return this.loop();
3449
+ }
3450
+ colon() {
3451
+ let w = this.currToken;
3452
+ this.newNode(new i({ value: w[1], source: { start: { line: w[2], column: w[3] }, end: { line: w[4], column: w[5] } }, sourceIndex: w[6] })), this.position++;
3453
+ }
3454
+ comma() {
3455
+ let w = this.currToken;
3456
+ this.newNode(new a({ value: w[1], source: { start: { line: w[2], column: w[3] }, end: { line: w[4], column: w[5] } }, sourceIndex: w[6] })), this.position++;
3457
+ }
3458
+ comment() {
3459
+ let w = !1, k = this.currToken[1].replace(/\/\*|\*\//g, ""), T;
3460
+ this.options.loose && k.startsWith("//") && (k = k.substring(2), w = !0), T = new l({ value: k, inline: w, source: { start: { line: this.currToken[2], column: this.currToken[3] }, end: { line: this.currToken[4], column: this.currToken[5] } }, sourceIndex: this.currToken[6] }), this.newNode(T), this.position++;
3461
+ }
3462
+ error(w, k) {
3463
+ throw new g(w + ` at line: ${k[2]}, column ${k[3]}`);
3464
+ }
3465
+ loop() {
3466
+ for (; this.position < this.tokens.length; ) this.parseTokens();
3467
+ return !this.current.last && this.spaces ? this.current.raws.before += this.spaces : this.spaces && (this.current.last.raws.after += this.spaces), this.spaces = "", this.root;
3468
+ }
3469
+ operator() {
3470
+ let w = this.currToken[1], k;
3471
+ if (w === "+" || w === "-") {
3472
+ if (this.options.loose || this.position > 0 && (this.current.type === "func" && this.current.value === "calc" ? this.prevToken[0] !== "space" && this.prevToken[0] !== "(" ? this.error("Syntax Error", this.currToken) : this.nextToken[0] !== "space" && this.nextToken[0] !== "word" ? this.error("Syntax Error", this.currToken) : this.nextToken[0] === "word" && this.current.last.type !== "operator" && this.current.last.value !== "(" && this.error("Syntax Error", this.currToken) : (this.nextToken[0] === "space" || this.nextToken[0] === "operator" || this.prevToken[0] === "operator") && this.error("Syntax Error", this.currToken)), this.options.loose) {
3473
+ if ((!this.current.nodes.length || this.current.last && this.current.last.type === "operator") && this.nextToken[0] === "word") return this.word();
3474
+ } else if (this.nextToken[0] === "word") return this.word();
3475
+ }
3476
+ return k = new n({ value: this.currToken[1], source: { start: { line: this.currToken[2], column: this.currToken[3] }, end: { line: this.currToken[2], column: this.currToken[3] } }, sourceIndex: this.currToken[4] }), this.position++, this.newNode(k);
3477
+ }
3478
+ parseTokens() {
3479
+ switch (this.currToken[0]) {
3480
+ case "space":
3481
+ this.space();
3482
+ break;
3483
+ case "colon":
3484
+ this.colon();
3485
+ break;
3486
+ case "comma":
3487
+ this.comma();
3488
+ break;
3489
+ case "comment":
3490
+ this.comment();
3491
+ break;
3492
+ case "(":
3493
+ this.parenOpen();
3494
+ break;
3495
+ case ")":
3496
+ this.parenClose();
3497
+ break;
3498
+ case "atword":
3499
+ case "word":
3500
+ this.word();
3501
+ break;
3502
+ case "operator":
3503
+ this.operator();
3504
+ break;
3505
+ case "string":
3506
+ this.string();
3507
+ break;
3508
+ case "unicoderange":
3509
+ this.unicodeRange();
3510
+ break;
3511
+ default:
3512
+ this.word();
3513
+ break;
3514
+ }
3515
+ }
3516
+ parenOpen() {
3517
+ let w = 1, k = this.position + 1, T = this.currToken, O;
3518
+ for (; k < this.tokens.length && w; ) {
3519
+ let S = this.tokens[k];
3520
+ S[0] === "(" && w++, S[0] === ")" && w--, k++;
3521
+ }
3522
+ if (w && this.error("Expected closing parenthesis", T), O = this.current.last, O && O.type === "func" && O.unbalanced < 0 && (O.unbalanced = 0, this.current = O), this.current.unbalanced++, this.newNode(new t({ value: T[1], source: { start: { line: T[2], column: T[3] }, end: { line: T[4], column: T[5] } }, sourceIndex: T[6] })), this.position++, this.current.type === "func" && this.current.unbalanced && this.current.value === "url" && this.currToken[0] !== "string" && this.currToken[0] !== ")" && !this.options.loose) {
3523
+ let S = this.nextToken, E = this.currToken[1], I = { line: this.currToken[2], column: this.currToken[3] };
3524
+ for (; S && S[0] !== ")" && this.current.unbalanced; ) this.position++, E += this.currToken[1], S = this.nextToken;
3525
+ this.position !== this.tokens.length - 1 && (this.position++, this.newNode(new p({ value: E, source: { start: I, end: { line: this.currToken[4], column: this.currToken[5] } }, sourceIndex: this.currToken[6] })));
3526
+ }
3527
+ }
3528
+ parenClose() {
3529
+ let w = this.currToken;
3530
+ this.newNode(new t({ value: w[1], source: { start: { line: w[2], column: w[3] }, end: { line: w[4], column: w[5] } }, sourceIndex: w[6] })), this.position++, !(this.position >= this.tokens.length - 1 && !this.current.unbalanced) && (this.current.unbalanced--, this.current.unbalanced < 0 && this.error("Expected opening parenthesis", w), !this.current.unbalanced && this.cache.length && (this.current = this.cache.pop()));
3531
+ }
3532
+ space() {
3533
+ let w = this.currToken;
3534
+ this.position === this.tokens.length - 1 || this.nextToken[0] === "," || this.nextToken[0] === ")" ? (this.current.last.raws.after += w[1], this.position++) : (this.spaces = w[1], this.position++);
3535
+ }
3536
+ unicodeRange() {
3537
+ let w = this.currToken;
3538
+ this.newNode(new f({ value: w[1], source: { start: { line: w[2], column: w[3] }, end: { line: w[4], column: w[5] } }, sourceIndex: w[6] })), this.position++;
3539
+ }
3540
+ splitWord() {
3541
+ let w = this.nextToken, k = this.currToken[1], T = /^[\+\-]?((\d+(\.\d*)?)|(\.\d+))([eE][\+\-]?\d+)?/, O = /^(?!\#([a-z0-9]+))[\#\{\}]/gi, S, E;
3542
+ if (!O.test(k)) for (; w && w[0] === "word"; ) {
3543
+ this.position++;
3544
+ let I = this.currToken[1];
3545
+ k += I, w = this.nextToken;
3546
+ }
3547
+ S = v(k, "@"), E = x(y(b([[0], S]))), E.forEach((I, N) => {
3548
+ let $ = E[N + 1] || k.length, R = k.slice(I, $), M;
3549
+ if (~S.indexOf(I)) M = new c({ value: R.slice(1), source: { start: { line: this.currToken[2], column: this.currToken[3] + I }, end: { line: this.currToken[4], column: this.currToken[3] + ($ - 1) } }, sourceIndex: this.currToken[6] + E[N] });
3550
+ else if (T.test(this.currToken[1])) {
3551
+ let P = R.replace(T, "");
3552
+ M = new d({ value: R.replace(P, ""), source: { start: { line: this.currToken[2], column: this.currToken[3] + I }, end: { line: this.currToken[4], column: this.currToken[3] + ($ - 1) } }, sourceIndex: this.currToken[6] + E[N], unit: P });
3553
+ } else M = new (w && w[0] === "(" ? m : p)({ value: R, source: { start: { line: this.currToken[2], column: this.currToken[3] + I }, end: { line: this.currToken[4], column: this.currToken[3] + ($ - 1) } }, sourceIndex: this.currToken[6] + E[N] }), M.type === "word" ? (M.isHex = /^#(.+)/.test(R), M.isColor = /^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(R)) : this.cache.push(this.current);
3554
+ this.newNode(M);
3555
+ }), this.position++;
3556
+ }
3557
+ string() {
3558
+ let w = this.currToken, k = this.currToken[1], T = /^(\"|\')/, O = T.test(k), S = "", E;
3559
+ O && (S = k.match(T)[0], k = k.slice(1, k.length - 1)), E = new h({ value: k, source: { start: { line: w[2], column: w[3] }, end: { line: w[4], column: w[5] } }, sourceIndex: w[6], quoted: O }), E.raws.quote = S, this.newNode(E), this.position++;
3560
+ }
3561
+ word() {
3562
+ return this.splitWord();
3563
+ }
3564
+ newNode(w) {
3565
+ return this.spaces && (w.raws.before += this.spaces, this.spaces = ""), this.current.append(w);
3566
+ }
3567
+ get currToken() {
3568
+ return this.tokens[this.position];
3569
+ }
3570
+ get nextToken() {
3571
+ return this.tokens[this.position + 1];
3572
+ }
3573
+ get prevToken() {
3574
+ return this.tokens[this.position - 1];
3575
+ }
3576
+ };
3577
+ }), ln = {};
3578
+ Kt(ln, { languages: () => bi, options: () => Ti, parsers: () => Jr, printers: () => na });
3579
+ var dr = (e, s) => (o, r, ...c) => o | 1 && r == null ? void 0 : (s.call(r) ?? r[e]).apply(r, c), cn = String.prototype.replaceAll ?? function(e, s) {
3580
+ return e.global ? this.replace(e, s) : this.split(e).join(s);
3581
+ }, pn = dr("replaceAll", function() {
3582
+ if (typeof this == "string") return cn;
3583
+ }), F = pn;
3584
+ function hn(e) {
3585
+ return this[e < 0 ? this.length + e : e];
3586
+ }
3587
+ var fn = dr("at", function() {
3588
+ if (Array.isArray(this) || typeof this == "string") return hn;
3589
+ }), ce = fn, dn = () => {
3590
+ }, mn = dn, mr = "string", yr = "array", vr = "cursor", tt = "indent", Mt = "align", gr = "trim", rt = "group", st = "fill", nt = "if-break", wr = "indent-if-break", Rt = "line-suffix", br = "line-suffix-boundary", Te = "line", xr = "label", $t = "break-parent", kr = /* @__PURE__ */ new Set([vr, tt, Mt, gr, rt, st, nt, wr, Rt, br, Te, xr, $t]);
3591
+ function yn(e) {
3592
+ if (typeof e == "string") return mr;
3593
+ if (Array.isArray(e)) return yr;
3594
+ if (!e) return;
3595
+ let { type: s } = e;
3596
+ if (kr.has(s)) return s;
3597
+ }
3598
+ var Pe = yn, vn = (e) => new Intl.ListFormat("en-US", { type: "disjunction" }).format(e);
3599
+ function gn(e) {
3600
+ let s = e === null ? "null" : typeof e;
3601
+ if (s !== "string" && s !== "object") return `Unexpected doc '${s}',
3602
+ Expected it to be 'string' or 'object'.`;
3603
+ if (Pe(e)) throw new Error("doc is valid.");
3604
+ let o = Object.prototype.toString.call(e);
3605
+ if (o !== "[object Object]") return `Unexpected doc '${o}'.`;
3606
+ let r = vn([...kr].map((c) => `'${c}'`));
3607
+ return `Unexpected doc.type '${e.type}'.
3608
+ Expected it to be ${r}.`;
3609
+ }
3610
+ var wn = class extends Error {
3611
+ constructor(s) {
3612
+ super(gn(s));
3613
+ lt(this, "name", "InvalidDocError");
3614
+ this.doc = s;
3615
+ }
3616
+ }, bn = wn;
3617
+ function xn(e, s) {
3618
+ if (typeof e == "string") return s(e);
3619
+ let o = /* @__PURE__ */ new Map();
3620
+ return r(e);
3621
+ function r(i) {
3622
+ if (o.has(i)) return o.get(i);
3623
+ let a = c(i);
3624
+ return o.set(i, a), a;
3625
+ }
3626
+ function c(i) {
3627
+ switch (Pe(i)) {
3628
+ case yr:
3629
+ return s(i.map(r));
3630
+ case st:
3631
+ return s({ ...i, parts: i.parts.map(r) });
3632
+ case nt:
3633
+ return s({ ...i, breakContents: r(i.breakContents), flatContents: r(i.flatContents) });
3634
+ case rt: {
3635
+ let { expandedStates: a, contents: l } = i;
3636
+ return a ? (a = a.map(r), l = a[0]) : l = r(l), s({ ...i, contents: l, expandedStates: a });
3637
+ }
3638
+ case Mt:
3639
+ case tt:
3640
+ case wr:
3641
+ case xr:
3642
+ case Rt:
3643
+ return s({ ...i, contents: r(i.contents) });
3644
+ case mr:
3645
+ case vr:
3646
+ case gr:
3647
+ case br:
3648
+ case Te:
3649
+ case $t:
3650
+ return s(i);
3651
+ default:
3652
+ throw new bn(i);
3653
+ }
3654
+ }
3655
+ }
3656
+ function kn(e) {
3657
+ return e.type === Te && !e.hard ? e.soft ? "" : " " : e.type === nt ? e.flatContents : e;
3658
+ }
3659
+ function Tn(e) {
3660
+ return xn(e, kn);
3661
+ }
3662
+ var On = mn;
3663
+ function Q(e) {
3664
+ return { type: tt, contents: e };
3665
+ }
3666
+ function _n(e, s) {
3667
+ return { type: Mt, contents: s, n: e };
3668
+ }
3669
+ function $e(e) {
3670
+ return _n(-1, e);
3671
+ }
3672
+ var Nt = { type: $t };
3673
+ function Qe(e) {
3674
+ return { type: st, parts: e };
3675
+ }
3676
+ function K(e, s = {}) {
3677
+ return On(s.expandedStates), { type: rt, id: s.id, contents: e, break: !!s.shouldBreak, expandedStates: s.expandedStates };
3678
+ }
3679
+ function Tr(e, s = "", o = {}) {
3680
+ return { type: nt, breakContents: e, flatContents: s, groupId: o.groupId };
3681
+ }
3682
+ function ae(e, s) {
3683
+ let o = [];
3684
+ for (let r = 0; r < s.length; r++) r !== 0 && o.push(e), o.push(s[r]);
3685
+ return o;
3686
+ }
3687
+ var V = { type: Te }, Y = { type: Te, soft: !0 }, Cn = { type: Te, hard: !0 }, D = [Cn, Nt];
3688
+ function Sn(e) {
3689
+ return { type: Rt, contents: e };
3690
+ }
3691
+ function An(e) {
3692
+ return Array.isArray(e) && e.length > 0;
3693
+ }
3694
+ var ot = An, Or = Object.freeze({ character: "'", codePoint: 39 }), _r = Object.freeze({ character: '"', codePoint: 34 }), En = Object.freeze({ preferred: Or, alternate: _r }), jn = Object.freeze({ preferred: _r, alternate: Or });
3695
+ function In(e, s) {
3696
+ let { preferred: o, alternate: r } = s === !0 || s === "'" ? En : jn, { length: c } = e, i = 0, a = 0;
3697
+ for (let l = 0; l < c; l++) {
3698
+ let m = e.charCodeAt(l);
3699
+ m === o.codePoint ? i++ : m === r.codePoint && a++;
3700
+ }
3701
+ return (i > a ? r : o).character;
3702
+ }
3703
+ var Pn = In, Mn = /\\(["'\\])|(["'])/gu;
3704
+ function Rn(e, s) {
3705
+ let o = s === '"' ? "'" : '"', r = F(0, e, Mn, (c, i, a) => i ? i === o ? o : c : a === s ? "\\" + a : a);
3706
+ return s + r + s;
3707
+ }
3708
+ var $n = Rn;
3709
+ function Nn(e, s) {
3710
+ let o = e.slice(1, -1), r = s.parser === "json" || s.parser === "jsonc" || s.parser === "json5" && s.quoteProps === "preserve" && !s.singleQuote ? '"' : s.__isInHtmlAttribute ? "'" : Pn(o, s.singleQuote);
3711
+ return e.charAt(0) === r ? e : $n(o, r);
3712
+ }
3713
+ var Cr = Nn, Ln = class extends Error {
3714
+ constructor(s, o, r = "type") {
3715
+ super(`Unexpected ${o} node ${r}: ${JSON.stringify(s[r])}.`);
3716
+ lt(this, "name", "UnexpectedNodeError");
3717
+ this.node = s;
3718
+ }
3719
+ }, Wn = Ln, Sr = Symbol.for("PRETTIER_IS_FRONT_MATTER");
3720
+ function zn(e) {
3721
+ return !!(e != null && e[Sr]);
3722
+ }
3723
+ var mt = zn, Se = 3;
3724
+ function Bn(e) {
3725
+ let s = e.slice(0, Se);
3726
+ if (s !== "---" && s !== "+++") return;
3727
+ let o = e.indexOf(`
3728
+ `, Se);
3729
+ if (o === -1) return;
3730
+ let r = e.slice(Se, o).trim(), c = e.indexOf(`
3731
+ ${s}`, o), i = r;
3732
+ if (i || (i = s === "+++" ? "toml" : "yaml"), c === -1 && s === "---" && i === "yaml" && (c = e.indexOf(`
3733
+ ...`, o)), c === -1) return;
3734
+ let a = c + 1 + Se, l = e.charAt(a + 1);
3735
+ if (!/\s?/u.test(l)) return;
3736
+ let m = e.slice(0, a), d;
3737
+ return { language: i, explicitLanguage: r || null, value: e.slice(o + 1, c), startDelimiter: s, endDelimiter: m.slice(-Se), raw: m, start: { line: 1, column: 0, index: 0 }, end: { index: m.length, get line() {
3738
+ return d ?? (d = m.split(`
3739
+ `)), d.length;
3740
+ }, get column() {
3741
+ return d ?? (d = m.split(`
3742
+ `)), ce(0, d, -1).length;
3743
+ } }, [Sr]: !0 };
3744
+ }
3745
+ function qn(e) {
3746
+ let s = Bn(e);
3747
+ return s ? { frontMatter: s, get content() {
3748
+ let { raw: o } = s;
3749
+ return F(0, o, /[^\n]/gu, " ") + e.slice(o.length);
3750
+ } } : { content: e };
3751
+ }
3752
+ var it = qn, Fn = /* @__PURE__ */ new Set(["raw", "raws", "sourceIndex", "source", "before", "after", "trailingComma", "spaces"]);
3753
+ function Ar(e, s, o) {
3754
+ if (e.type === "css-comment" && o.type === "css-root" && o.nodes.length > 0 && ((o.nodes[0] === e || mt(o.nodes[0]) && o.nodes[1] === e) && (delete s.text, /^\*\s*@(?:format|prettier)\s*$/u.test(e.text)) || o.type === "css-root" && ce(0, o.nodes, -1) === e)) return null;
3755
+ if (e.type === "value-root" && delete s.text, (e.type === "media-query" || e.type === "media-query-list" || e.type === "media-feature-expression") && delete s.value, e.type === "css-rule" && delete s.params, (e.type === "media-feature" || e.type === "media-keyword" || e.type === "media-type" || e.type === "media-unknown" || e.type === "media-url" || e.type === "media-value" || e.type === "selector-attribute" || e.type === "selector-string" || e.type === "selector-class" || e.type === "selector-combinator" || e.type === "value-string") && e.value && (s.value = Dn(e.value)), e.type === "selector-combinator" && (s.value = F(0, s.value, /\s+/gu, " ")), e.type === "media-feature" && (s.value = F(0, s.value, " ", "")), (e.type === "value-word" && (e.isColor && e.isHex || ["initial", "inherit", "unset", "revert"].includes(e.value.toLowerCase())) || e.type === "media-feature" || e.type === "selector-root-invalid" || e.type === "selector-pseudo") && (s.value = s.value.toLowerCase()), e.type === "css-decl" && (s.prop = e.prop.toLowerCase()), (e.type === "css-atrule" || e.type === "css-import") && (s.name = e.name.toLowerCase()), e.type === "value-number" && (s.unit = e.unit.toLowerCase()), e.type === "value-unknown" && (s.value = F(0, s.value, /;$/gu, "")), e.type === "selector-attribute" && (s.attribute = e.attribute.trim(), e.namespace && typeof e.namespace == "string" && (s.namespace = e.namespace.trim() || !0), e.value)) {
3756
+ let { value: r } = s;
3757
+ /\s[a-zA-Z]$/u.test(r) && (s.__prettier_attribute_selector_flag = ce(0, r, -1), r = r.slice(0, -1)), r = r.trim(), r = r.replace(/^(?<quote>["'])(?<value>.*?)\k<quote>$/u, "$<value>"), s.value = r, delete s.quoted;
3758
+ }
3759
+ if ((e.type === "media-value" || e.type === "media-type" || e.type === "value-number" || e.type === "selector-root-invalid" || e.type === "selector-class" || e.type === "selector-combinator" || e.type === "selector-tag") && e.value && (s.value = F(0, s.value, /([\d+.e-]+)([a-z]*)/giu, (r, c, i) => {
3760
+ let a = Number(c);
3761
+ return Number.isNaN(a) ? r : a + i.toLowerCase();
3762
+ })), e.type === "selector-tag") {
3763
+ let r = s.value.toLowerCase();
3764
+ ["from", "to"].includes(r) && (s.value = r);
3765
+ }
3766
+ if (e.type === "css-atrule" && e.name.toLowerCase() === "supports" && delete s.value, e.type === "selector-unknown" && delete s.value, e.type === "value-comma_group") {
3767
+ let r = e.groups.findIndex((c) => c.type === "value-number" && c.unit === "...");
3768
+ r !== -1 && (s.groups[r].unit = "", s.groups.splice(r + 1, 0, { type: "value-word", value: "...", isColor: !1, isHex: !1 }));
3769
+ }
3770
+ if (e.type === "value-comma_group" && e.groups.some((r) => r.type === "value-atword" && (r.value.endsWith("[") || r.value.endsWith("]")) || r.type === "value-word" && (r.value.startsWith("]") || r.value.startsWith("[")))) return { type: "value-atword", value: e.groups.map((r) => r.value).join(""), group: { open: null, close: null, groups: [], type: "value-paren_group" } };
3771
+ }
3772
+ Ar.ignoredProperties = Fn;
3773
+ function Dn(e) {
3774
+ return F(0, F(0, e, "'", '"'), /\\([^\da-f])/giu, "$1");
3775
+ }
3776
+ var Un = Ar;
3777
+ function Er() {
3778
+ }
3779
+ Er.getVisitorKeys = (e) => e.type === "css-root" ? ["frontMatter"] : [];
3780
+ var Vn = Er, Ae = null;
3781
+ function Me(e) {
3782
+ if (Ae !== null && typeof Ae.property) {
3783
+ let s = Ae;
3784
+ return Ae = Me.prototype = null, s;
3785
+ }
3786
+ return Ae = Me.prototype = e ?? /* @__PURE__ */ Object.create(null), new Me();
3787
+ }
3788
+ var Gn = 10;
3789
+ for (let e = 0; e <= Gn; e++) Me();
3790
+ function Jn(e) {
3791
+ return Me(e);
3792
+ }
3793
+ function Hn(e, s = "type") {
3794
+ Jn(e);
3795
+ function o(r) {
3796
+ let c = r[s], i = e[c];
3797
+ if (!Array.isArray(i)) throw Object.assign(new Error(`Missing visitor keys for '${c}'.`), { node: r });
3798
+ return i;
3799
+ }
3800
+ return o;
3801
+ }
3802
+ var Qn = Hn, L = [[], ["nodes"], ["group"]], Zn = { "css-root": ["frontMatter", "nodes"], "css-comment": L[0], "css-rule": ["selector", "nodes"], "css-decl": ["value", "selector", "nodes"], "css-atrule": ["selector", "params", "value", "nodes"], "media-query-list": L[1], "media-query": L[1], "media-type": L[0], "media-feature-expression": L[1], "media-feature": L[0], "media-colon": L[0], "media-value": L[0], "media-keyword": L[0], "media-url": L[0], "media-unknown": L[0], "selector-root": L[1], "selector-selector": L[1], "selector-comment": L[0], "selector-string": L[0], "selector-tag": L[0], "selector-id": L[0], "selector-class": L[0], "selector-attribute": L[0], "selector-combinator": L[1], "selector-universal": L[0], "selector-pseudo": L[1], "selector-nesting": L[0], "selector-unknown": L[0], "value-value": L[2], "value-root": L[2], "value-comment": L[0], "value-comma_group": ["groups"], "value-paren_group": ["open", "groups", "close"], "value-func": L[2], "value-paren": L[0], "value-number": L[0], "value-operator": L[0], "value-word": L[0], "value-colon": L[0], "value-comma": L[0], "value-string": L[0], "value-atword": L[0], "value-unicode-range": L[0], "value-unknown": L[0] }, Yn = Qn(Zn), Kn = Yn;
3803
+ function Xn(e, s) {
3804
+ let o = 0;
3805
+ for (let r = 0; r < e.line - 1; ++r) o = s.indexOf(`
3806
+ `, o) + 1;
3807
+ return o + e.column;
3808
+ }
3809
+ var jr = Xn;
3810
+ function Lt(e) {
3811
+ return (s, o, r) => {
3812
+ let c = !!(r != null && r.backwards);
3813
+ if (o === !1) return !1;
3814
+ let { length: i } = s, a = o;
3815
+ for (; a >= 0 && a < i; ) {
3816
+ let l = s.charAt(a);
3817
+ if (e instanceof RegExp) {
3818
+ if (!e.test(l)) return a;
3819
+ } else if (!e.includes(l)) return a;
3820
+ c ? a-- : a++;
3821
+ }
3822
+ return a === -1 || a === i ? a : !1;
3823
+ };
3824
+ }
3825
+ var Ir = Lt(" "), eo = Lt(",; "), Pr = Lt(/[^\n\r]/u);
3826
+ function Mr(e, s) {
3827
+ let { value: o } = e;
3828
+ return o === "-" || o === "--" || o.charAt(0) !== "-" ? s : s - (o.charAt(1) === "-" ? 2 : 1);
3829
+ }
3830
+ function Rr(e, s) {
3831
+ var o, r, c;
3832
+ if (typeof ((r = (o = e.source) == null ? void 0 : o.start) == null ? void 0 : r.offset) == "number") return e.source.start.offset;
3833
+ if (typeof e.sourceIndex == "number") return e.type === "value-word" ? Mr(e, e.sourceIndex) : e.sourceIndex;
3834
+ if ((c = e.source) != null && c.start) return jr(e.source.start, s);
3835
+ throw Object.assign(new Error("Can not locate node."), { node: e });
3836
+ }
3837
+ function Wt(e, s) {
3838
+ var o, r;
3839
+ if (e.type === "css-comment" && e.inline) return Pr(s, e.source.startOffset);
3840
+ if (typeof ((r = (o = e.source) == null ? void 0 : o.end) == null ? void 0 : r.offset) == "number") return e.source.end.offset;
3841
+ if (e.source) {
3842
+ if (e.source.end) {
3843
+ let c = jr(e.source.end, s);
3844
+ return e.type === "value-word" ? Mr(e, c) : c;
3845
+ }
3846
+ if (ot(e.nodes)) return Wt(ce(0, e.nodes, -1), s);
3847
+ }
3848
+ return null;
3849
+ }
3850
+ function $r(e, s) {
3851
+ e.source && (e.source.startOffset = Rr(e, s), e.source.endOffset = Wt(e, s));
3852
+ for (let o in e) {
3853
+ let r = e[o];
3854
+ o === "source" || !r || typeof r != "object" || (r.type === "value-root" || r.type === "value-unknown" ? Nr(r, to(e), r.text || r.value) : $r(r, s));
3855
+ }
3856
+ }
3857
+ function Nr(e, s, o) {
3858
+ e.source && (e.source.startOffset = Rr(e, o) + s, e.source.endOffset = Wt(e, o) + s);
3859
+ for (let r in e) {
3860
+ let c = e[r];
3861
+ r === "source" || !c || typeof c != "object" || Nr(c, s, o);
3862
+ }
3863
+ }
3864
+ function to(e) {
3865
+ var o;
3866
+ let s = e.source.startOffset;
3867
+ return typeof e.prop == "string" && (s += e.prop.length), e.type === "css-atrule" && typeof e.name == "string" && (s += 1 + e.name.length + e.raws.afterName.match(/^\s*:?\s*/u)[0].length), e.type !== "css-atrule" && typeof ((o = e.raws) == null ? void 0 : o.between) == "string" && (s += e.raws.between.length), s;
3868
+ }
3869
+ function ro(e) {
3870
+ let s = "initial", o = "initial", r, c = !1, i = [];
3871
+ for (let a = 0; a < e.length; a++) {
3872
+ let l = e[a];
3873
+ switch (s) {
3874
+ case "initial":
3875
+ if (l === "'") {
3876
+ s = "single-quotes";
3877
+ continue;
3878
+ }
3879
+ if (l === '"') {
3880
+ s = "double-quotes";
3881
+ continue;
3882
+ }
3883
+ if ((l === "u" || l === "U") && e.slice(a, a + 4).toLowerCase() === "url(") {
3884
+ s = "url", a += 3;
3885
+ continue;
3886
+ }
3887
+ if (l === "*" && e[a - 1] === "/") {
3888
+ s = "comment-block";
3889
+ continue;
3890
+ }
3891
+ if (l === "/" && e[a - 1] === "/") {
3892
+ s = "comment-inline", r = a - 1;
3893
+ continue;
3894
+ }
3895
+ continue;
3896
+ case "single-quotes":
3897
+ if (l === "'" && e[a - 1] !== "\\" && (s = o, o = "initial"), l === `
3898
+ ` || l === "\r") return e;
3899
+ continue;
3900
+ case "double-quotes":
3901
+ if (l === '"' && e[a - 1] !== "\\" && (s = o, o = "initial"), l === `
3902
+ ` || l === "\r") return e;
3903
+ continue;
3904
+ case "url":
3905
+ if (l === ")" && (s = "initial"), l === `
3906
+ ` || l === "\r") return e;
3907
+ if (l === "'") {
3908
+ s = "single-quotes", o = "url";
3909
+ continue;
3910
+ }
3911
+ if (l === '"') {
3912
+ s = "double-quotes", o = "url";
3913
+ continue;
3914
+ }
3915
+ continue;
3916
+ case "comment-block":
3917
+ l === "/" && e[a - 1] === "*" && (s = "initial");
3918
+ continue;
3919
+ case "comment-inline":
3920
+ (l === '"' || l === "'" || l === "*") && (c = !0), (l === `
3921
+ ` || l === "\r") && (c && i.push([r, a]), s = "initial", c = !1);
3922
+ continue;
3923
+ }
3924
+ }
3925
+ for (let [a, l] of i) e = e.slice(0, a) + F(0, e.slice(a, l), /["'*]/gu, " ") + e.slice(l);
3926
+ return e;
3927
+ }
3928
+ var G = (e) => {
3929
+ var s;
3930
+ return (s = e.source) == null ? void 0 : s.startOffset;
3931
+ }, J = (e) => {
3932
+ var s;
3933
+ return (s = e.source) == null ? void 0 : s.endOffset;
3934
+ }, so = /\*\/$/, no = /^\/\*\*?/, Lr = /^\s*(\/\*\*?(.|\r?\n)*?\*\/)/, oo = /(^|\s+)\/\/([^\n\r]*)/g, Ut = /^(\r?\n)+/, io = /(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g, Vt = /(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g, ao = /(\r?\n|^) *\* ?/g, Wr = [];
3935
+ function uo(e) {
3936
+ let s = e.match(Lr);
3937
+ return s ? s[0].trimStart() : "";
3938
+ }
3939
+ function lo(e) {
3940
+ var o;
3941
+ let s = (o = e.match(Lr)) == null ? void 0 : o[0];
3942
+ return s == null ? e : e.slice(s.length);
3943
+ }
3944
+ function co(e) {
3945
+ e = F(0, e.replace(no, "").replace(so, ""), ao, "$1");
3946
+ let s = "";
3947
+ for (; s !== e; ) s = e, e = F(0, e, io, `
3948
+ $1 $2
3949
+ `);
3950
+ e = e.replace(Ut, "").trimEnd();
3951
+ let o = /* @__PURE__ */ Object.create(null), r = F(0, e, Vt, "").replace(Ut, "").trimEnd(), c;
3952
+ for (; c = Vt.exec(e); ) {
3953
+ let i = F(0, c[2], oo, "");
3954
+ if (typeof o[c[1]] == "string" || Array.isArray(o[c[1]])) {
3955
+ let a = o[c[1]];
3956
+ o[c[1]] = [...Wr, ...Array.isArray(a) ? a : [a], i];
3957
+ } else o[c[1]] = i;
3958
+ }
3959
+ return { comments: r, pragmas: o };
3960
+ }
3961
+ function po({ comments: e = "", pragmas: s = {} }) {
3962
+ let o = Object.keys(s), r = o.flatMap((i) => Gt(i, s[i])).map((i) => ` * ${i}
3963
+ `).join("");
3964
+ if (!e) {
3965
+ if (o.length === 0) return "";
3966
+ if (o.length === 1 && !Array.isArray(s[o[0]])) {
3967
+ let i = s[o[0]];
3968
+ return `/** ${Gt(o[0], i)[0]} */`;
3969
+ }
3970
+ }
3971
+ let c = e.split(`
3972
+ `).map((i) => ` * ${i}`).join(`
3973
+ `) + `
3974
+ `;
3975
+ return `/**
3976
+ ` + (e ? c : "") + (e && o.length > 0 ? ` *
3977
+ ` : "") + r + " */";
3978
+ }
3979
+ function Gt(e, s) {
3980
+ return [...Wr, ...Array.isArray(s) ? s : [s]].map((o) => `@${e} ${o}`.trim());
3981
+ }
3982
+ var ho = ["noformat", "noprettier"], fo = ["format", "prettier"], mo = "format";
3983
+ function yo(e) {
3984
+ if (!e.startsWith("#!")) return "";
3985
+ let s = e.indexOf(`
3986
+ `);
3987
+ return s === -1 ? e : e.slice(0, s);
3988
+ }
3989
+ var vo = yo;
3990
+ function zt(e) {
3991
+ let s = vo(e);
3992
+ s && (e = e.slice(s.length + 1));
3993
+ let o = uo(e), { pragmas: r, comments: c } = co(o);
3994
+ return { shebang: s, text: e, pragmas: r, comments: c };
3995
+ }
3996
+ function go(e) {
3997
+ let { pragmas: s } = zt(e);
3998
+ return fo.some((o) => Object.prototype.hasOwnProperty.call(s, o));
3999
+ }
4000
+ function wo(e) {
4001
+ let { pragmas: s } = zt(e);
4002
+ return ho.some((o) => Object.prototype.hasOwnProperty.call(s, o));
4003
+ }
4004
+ function bo(e) {
4005
+ let { shebang: s, text: o, pragmas: r, comments: c } = zt(e), i = lo(o), a = po({ pragmas: { [mo]: "", ...r }, comments: c.trimStart() });
4006
+ return (s ? `${s}
4007
+ ` : "") + a + (i.startsWith(`
4008
+ `) ? `
4009
+ ` : `
4010
+
4011
+ `) + i;
4012
+ }
4013
+ var xo = (e) => go(it(e).content), ko = (e) => wo(it(e).content), To = (e) => {
4014
+ let { frontMatter: s, content: o } = it(e);
4015
+ return (s ? s.raw + `
4016
+
4017
+ ` : "") + bo(o);
4018
+ }, Oo = /* @__PURE__ */ new Set(["red", "green", "blue", "alpha", "a", "rgb", "hue", "h", "saturation", "s", "lightness", "l", "whiteness", "w", "blackness", "b", "tint", "shade", "blend", "blenda", "contrast", "hsl", "hsla", "hwb", "hwba"]);
4019
+ function _o(e) {
4020
+ var s, o;
4021
+ return (o = (s = e.findAncestor((r) => r.type === "css-decl")) == null ? void 0 : s.prop) == null ? void 0 : o.toLowerCase();
4022
+ }
4023
+ var Co = /* @__PURE__ */ new Set(["initial", "inherit", "unset", "revert"]);
4024
+ function So(e) {
4025
+ return Co.has(e.toLowerCase());
4026
+ }
4027
+ function Ao(e, s) {
4028
+ var o, r;
4029
+ return ((r = (o = e.findAncestor((c) => c.type === "css-atrule")) == null ? void 0 : o.name) == null ? void 0 : r.toLowerCase().endsWith("keyframes")) && ["from", "to"].includes(s.toLowerCase());
4030
+ }
4031
+ function Ee(e) {
4032
+ return e.includes("$") || e.includes("@") || e.includes("#") || e.startsWith("%") || e.startsWith("--") || e.startsWith(":--") || e.includes("(") && e.includes(")") ? e : e.toLowerCase();
4033
+ }
4034
+ function Ze(e, s) {
4035
+ var o, r;
4036
+ return ((r = (o = e.findAncestor((c) => c.type === "value-func")) == null ? void 0 : o.value) == null ? void 0 : r.toLowerCase()) === s;
4037
+ }
4038
+ function Eo(e) {
4039
+ return e.hasAncestor((s) => {
4040
+ var r;
4041
+ if (s.type !== "css-rule") return !1;
4042
+ let o = (r = s.raws) == null ? void 0 : r.selector;
4043
+ return o && (o.startsWith(":import") || o.startsWith(":export"));
4044
+ });
4045
+ }
4046
+ function Re(e, s) {
4047
+ let o = Array.isArray(s) ? s : [s], r = e.findAncestor((c) => c.type === "css-atrule");
4048
+ return r && o.includes(r.name.toLowerCase());
4049
+ }
4050
+ function jo(e) {
4051
+ var o, r;
4052
+ let { node: s } = e;
4053
+ return ((o = s.groups[0]) == null ? void 0 : o.value) === "url" && s.groups.length === 2 && ((r = e.findAncestor((c) => c.type === "css-atrule")) == null ? void 0 : r.name) === "import";
4054
+ }
4055
+ function Io(e) {
4056
+ return e.type === "value-func" && e.value.toLowerCase() === "url";
4057
+ }
4058
+ function Po(e) {
4059
+ return e.type === "value-func" && e.value.toLowerCase() === "var";
4060
+ }
4061
+ function Mo(e) {
4062
+ let { selector: s } = e;
4063
+ return s ? typeof s == "string" && /^@.+:.*$/u.test(s) || s.value && /^@.+:.*$/u.test(s.value) : !1;
4064
+ }
4065
+ function Ro(e) {
4066
+ return e.type === "value-word" && ["from", "through", "end"].includes(e.value);
4067
+ }
4068
+ function $o(e) {
4069
+ return e.type === "value-word" && ["and", "or", "not"].includes(e.value);
4070
+ }
4071
+ function No(e) {
4072
+ return e.type === "value-word" && e.value === "in";
4073
+ }
4074
+ function yt(e) {
4075
+ return e.type === "value-operator" && e.value === "*";
4076
+ }
4077
+ function we(e) {
4078
+ return (e == null ? void 0 : e.type) === "value-operator" && e.value === "/";
4079
+ }
4080
+ function ie(e) {
4081
+ return e.type === "value-operator" && e.value === "+";
4082
+ }
4083
+ function be(e) {
4084
+ return e.type === "value-operator" && e.value === "-";
4085
+ }
4086
+ function Lo(e) {
4087
+ return e.type === "value-operator" && e.value === "%";
4088
+ }
4089
+ function ct(e) {
4090
+ return yt(e) || we(e) || ie(e) || be(e) || Lo(e);
4091
+ }
4092
+ function Wo(e) {
4093
+ return e.type === "value-word" && ["==", "!="].includes(e.value);
4094
+ }
4095
+ function zo(e) {
4096
+ return e.type === "value-word" && ["<", ">", "<=", ">="].includes(e.value);
4097
+ }
4098
+ function vt(e, s) {
4099
+ return s.parser === "scss" && e.type === "css-atrule" && ["if", "else", "for", "each", "while"].includes(e.name);
4100
+ }
4101
+ function Jt(e) {
4102
+ var s;
4103
+ return ((s = e.raws) == null ? void 0 : s.params) && /^\(\s*\)$/u.test(e.raws.params);
4104
+ }
4105
+ function pt(e) {
4106
+ return e.name.startsWith("prettier-placeholder");
4107
+ }
4108
+ function Bo(e) {
4109
+ return e.prop.startsWith("@prettier-placeholder");
4110
+ }
4111
+ function qo(e, s) {
4112
+ return e.value === "$$" && e.type === "value-func" && (s == null ? void 0 : s.type) === "value-word" && !s.raws.before;
4113
+ }
4114
+ function Fo(e) {
4115
+ var s, o;
4116
+ return ((s = e.value) == null ? void 0 : s.type) === "value-root" && ((o = e.value.group) == null ? void 0 : o.type) === "value-value" && e.prop.toLowerCase() === "composes";
4117
+ }
4118
+ function Do(e) {
4119
+ var s, o, r;
4120
+ return ((r = (o = (s = e.value) == null ? void 0 : s.group) == null ? void 0 : o.group) == null ? void 0 : r.type) === "value-paren_group" && e.value.group.group.open !== null && e.value.group.group.close !== null;
4121
+ }
4122
+ function oe(e) {
4123
+ var s;
4124
+ return ((s = e == null ? void 0 : e.raws) == null ? void 0 : s.before) === "";
4125
+ }
4126
+ function Bt(e) {
4127
+ var s, o;
4128
+ return e.type === "value-comma_group" && ((o = (s = e.groups) == null ? void 0 : s[1]) == null ? void 0 : o.type) === "value-colon";
4129
+ }
4130
+ function ht(e) {
4131
+ var s;
4132
+ return e.type === "value-paren_group" && ((s = e.groups) == null ? void 0 : s[0]) && Bt(e.groups[0]);
4133
+ }
4134
+ function zr(e, s) {
4135
+ var c, i;
4136
+ if (s.parser !== "scss") return !1;
4137
+ let { node: o } = e;
4138
+ if (o.groups.length === 0) return !1;
4139
+ let r = e.grandparent;
4140
+ return !ht(o) && !(r && ht(r)) ? !1 : !!((i = (c = e.findAncestor((a) => a.type === "css-decl")) == null ? void 0 : c.prop) != null && i.startsWith("$") || ht(r) || r.type === "value-func");
4141
+ }
4142
+ function Ve(e) {
4143
+ return e.type === "value-comment" && e.inline;
4144
+ }
4145
+ function ft(e) {
4146
+ return e.type === "value-word" && e.value === "#";
4147
+ }
4148
+ function Ht(e) {
4149
+ return e.type === "value-word" && e.value === "{";
4150
+ }
4151
+ function dt(e) {
4152
+ return e.type === "value-word" && e.value === "}";
4153
+ }
4154
+ function Ge(e) {
4155
+ return ["value-word", "value-atword"].includes(e.type);
4156
+ }
4157
+ function gt(e) {
4158
+ return (e == null ? void 0 : e.type) === "value-colon";
4159
+ }
4160
+ function Uo(e, s) {
4161
+ if (!Bt(s)) return !1;
4162
+ let { groups: o } = s, r = o.indexOf(e);
4163
+ return r === -1 ? !1 : gt(o[r + 1]);
4164
+ }
4165
+ function Vo(e) {
4166
+ return e.value && ["not", "and", "or"].includes(e.value.toLowerCase());
4167
+ }
4168
+ function Go(e) {
4169
+ return e.type !== "value-func" ? !1 : Oo.has(e.value.toLowerCase());
4170
+ }
4171
+ function je(e) {
4172
+ return /\/\//u.test(e.split(/[\n\r]/u).pop());
4173
+ }
4174
+ function Je(e) {
4175
+ return (e == null ? void 0 : e.type) === "value-atword" && e.value.startsWith("prettier-placeholder-");
4176
+ }
4177
+ function Jo(e, s) {
4178
+ var o, r;
4179
+ if (((o = e.open) == null ? void 0 : o.value) !== "(" || ((r = e.close) == null ? void 0 : r.value) !== ")" || e.groups.some((c) => c.type !== "value-comma_group")) return !1;
4180
+ if (s.type === "value-comma_group") {
4181
+ let c = s.groups.indexOf(e) - 1, i = s.groups[c];
4182
+ if ((i == null ? void 0 : i.type) === "value-word" && i.value === "with") return !0;
4183
+ }
4184
+ return !1;
4185
+ }
4186
+ function He(e) {
4187
+ var s, o;
4188
+ return e.type === "value-paren_group" && ((s = e.open) == null ? void 0 : s.value) === "(" && ((o = e.close) == null ? void 0 : o.value) === ")";
4189
+ }
4190
+ function Ho(e, s, o) {
4191
+ var b;
4192
+ let { node: r } = e, c = e.parent, i = e.grandparent, a = _o(e), l = a && c.type === "value-value" && (a === "grid" || a.startsWith("grid-template")), m = e.findAncestor((v) => v.type === "css-atrule"), d = m && vt(m, s), n = r.groups.some((v) => Ve(v)), t = e.map(o, "groups"), h = [""], p = Ze(e, "url"), f = !1, u = !1;
4193
+ for (let v = 0; v < r.groups.length; ++v) {
4194
+ let y = r.groups[v - 1], g = r.groups[v], x = r.groups[v + 1], w = r.groups[v + 2];
4195
+ if (Ve(g) && !x) {
4196
+ h.push([h.pop(), Sn([" ", t[v]])]);
4197
+ continue;
4198
+ }
4199
+ if (h.push([h.pop(), t[v]]), p) {
4200
+ (x && ie(x) || ie(g)) && h.push([h.pop(), " "]);
4201
+ continue;
4202
+ }
4203
+ if (Re(e, "forward") && g.type === "value-word" && g.value && y !== void 0 && y.type === "value-word" && y.value === "as" && x.type === "value-operator" && x.value === "*" || Re(e, "utility") && g.type === "value-word" && x && x.type === "value-operator" && x.value === "*" || !x || g.type === "value-word" && Je(x) && J(g) === G(x)) continue;
4204
+ if (g.type === "value-string" && g.quoted) {
4205
+ let I = g.value.lastIndexOf("#{"), N = g.value.lastIndexOf("}");
4206
+ I !== -1 && N !== -1 ? f = I > N : I !== -1 ? f = !0 : N !== -1 && (f = !1);
4207
+ }
4208
+ if (f || gt(g) || gt(x) || g.type === "value-atword" && (g.value === "" || g.value.endsWith("[")) || x.type === "value-word" && x.value.startsWith("]") || g.value === "~" || s.parser === "less" && ((x == null ? void 0 : x.type) === "value-word" && x.value === "[" || g.type === "value-word" && g.value === "[" && ((x == null ? void 0 : x.type) === "value-atword" || (x == null ? void 0 : x.type) === "value-word") || g.type === "value-word" && g.value === "][" && (x == null ? void 0 : x.type) === "value-word") || g.type !== "value-string" && g.value && g.value.includes("\\") && x && x.type !== "value-comment" || y != null && y.value && y.value.indexOf("\\") === y.value.length - 1 && g.type === "value-operator" && g.value === "/" || g.value === "\\" || qo(g, x) || ft(g) || Ht(g) || dt(x) || Ht(x) && oe(x) || dt(g) && oe(x) || g.value === "--" && ft(x)) continue;
4209
+ let k = ct(g), T = ct(x);
4210
+ if ((k && ft(x) || T && dt(g)) && oe(x) || !y && we(g) || Ze(e, "calc") && (ie(g) || ie(x) || be(g) || be(x)) && oe(x)) continue;
4211
+ let O = (ie(g) || be(g)) && v === 0 && (x.type === "value-number" || x.isHex) && i && Go(i) && !oe(x);
4212
+ if (s.parser === "scss" && k && g.value === "-" && x.type === "value-func" && J(g) !== G(x)) {
4213
+ h.push([h.pop(), " "]);
4214
+ continue;
4215
+ }
4216
+ let S = (w == null ? void 0 : w.type) === "value-func" || w && Ge(w) || g.type === "value-func" || Ge(g), E = x.type === "value-func" || Ge(x) || (y == null ? void 0 : y.type) === "value-func" || y && Ge(y);
4217
+ if (!(!(yt(x) || yt(g)) && !Ze(e, "calc") && !O && (we(x) && !S || we(g) && !E || ie(x) && !S || ie(g) && !E || be(x) || be(g)) && (oe(x) || k && (!y || y && ct(y)))) && !((s.parser === "scss" || s.parser === "less") && k && g.value === "-" && He(x) && J(g) === G(x.open) && x.open.value === "(")) {
4218
+ if (Ve(g)) {
4219
+ if (c.type === "value-paren_group") {
4220
+ h.push($e(D), "");
4221
+ continue;
4222
+ }
4223
+ h.push(D, "");
4224
+ continue;
4225
+ }
4226
+ if (d && (Wo(x) || zo(x) || $o(x) || No(g) || Ro(g))) {
4227
+ h.push([h.pop(), " "]);
4228
+ continue;
4229
+ }
4230
+ if (m && m.name.toLowerCase() === "namespace") {
4231
+ h.push([h.pop(), " "]);
4232
+ continue;
4233
+ }
4234
+ if (l) {
4235
+ g.source && x.source && g.source.start.line !== x.source.start.line ? (h.push(D, ""), u = !0) : h.push([h.pop(), " "]);
4236
+ continue;
4237
+ }
4238
+ if (!(a && (a === "font" || a.startsWith("--")) && (we(x) && oe(x) && Qt(g) || we(g) && oe(g) && Qt(y)))) {
4239
+ if (T) {
4240
+ h.push([h.pop(), " "]);
4241
+ continue;
4242
+ }
4243
+ if ((x == null ? void 0 : x.value) !== "..." && !(Je(g) && Je(x) && J(g) === G(x))) {
4244
+ if (Je(g) && He(x) && J(g) === G(x.open)) {
4245
+ h.push(Y, "");
4246
+ continue;
4247
+ }
4248
+ if (g.value === "with" && He(x)) {
4249
+ h = [[Qe(h), " "]];
4250
+ continue;
4251
+ }
4252
+ if (!((b = g.value) != null && b.endsWith("#") && x.value === "{" && He(x.group)) && !(Ve(x) && !w)) {
4253
+ if (!m && g.type === "value-comment" && !g.inline && r.groups.slice(0, v).every((I) => I.type === "value-comment")) {
4254
+ h.push($e(V), "");
4255
+ continue;
4256
+ }
4257
+ h.push(V, "");
4258
+ }
4259
+ }
4260
+ }
4261
+ }
4262
+ }
4263
+ return n && h.push([h.pop(), Nt]), u && h.unshift("", D), d ? K(Q(h)) : jo(e) ? K(Qe(h)) : K(Q(Qe(h)));
4264
+ }
4265
+ function Qt(e) {
4266
+ if ((e == null ? void 0 : e.type) === "value-number") return !0;
4267
+ if ((e == null ? void 0 : e.type) !== "value-func") return !1;
4268
+ let s = e.value.toLowerCase();
4269
+ return s === "var" || s === "calc" || s === "min" || s === "max" || s === "clamp" || s.startsWith("--");
4270
+ }
4271
+ var Qo = Ho;
4272
+ function Zo(e) {
4273
+ return e.length === 1 ? e : e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u, "$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u, "$1").replace(/^([+-])?\./u, "$10.").replace(/(\.\d+?)0+(?=e|$)/u, "$1").replace(/\.(?=e|$)/u, "");
4274
+ }
4275
+ var Yo = Zo, wt = /* @__PURE__ */ new Map([["em", "em"], ["rem", "rem"], ["ex", "ex"], ["rex", "rex"], ["cap", "cap"], ["rcap", "rcap"], ["ch", "ch"], ["rch", "rch"], ["ic", "ic"], ["ric", "ric"], ["lh", "lh"], ["rlh", "rlh"], ["vw", "vw"], ["svw", "svw"], ["lvw", "lvw"], ["dvw", "dvw"], ["vh", "vh"], ["svh", "svh"], ["lvh", "lvh"], ["dvh", "dvh"], ["vi", "vi"], ["svi", "svi"], ["lvi", "lvi"], ["dvi", "dvi"], ["vb", "vb"], ["svb", "svb"], ["lvb", "lvb"], ["dvb", "dvb"], ["vmin", "vmin"], ["svmin", "svmin"], ["lvmin", "lvmin"], ["dvmin", "dvmin"], ["vmax", "vmax"], ["svmax", "svmax"], ["lvmax", "lvmax"], ["dvmax", "dvmax"], ["cm", "cm"], ["mm", "mm"], ["q", "Q"], ["in", "in"], ["pt", "pt"], ["pc", "pc"], ["px", "px"], ["deg", "deg"], ["grad", "grad"], ["rad", "rad"], ["turn", "turn"], ["s", "s"], ["ms", "ms"], ["hz", "Hz"], ["khz", "kHz"], ["dpi", "dpi"], ["dpcm", "dpcm"], ["dppx", "dppx"], ["x", "x"], ["cqw", "cqw"], ["cqh", "cqh"], ["cqi", "cqi"], ["cqb", "cqb"], ["cqmin", "cqmin"], ["cqmax", "cqmax"], ["fr", "fr"]]);
4276
+ function Br(e) {
4277
+ let s = e.toLowerCase();
4278
+ return wt.has(s) ? wt.get(s) : e;
4279
+ }
4280
+ var qr = /(["'])(?:(?!\1)[^\\]|\\.)*\1/gsu, Ko = /(?:\d*\.\d+|\d+\.?)(?:e[+-]?\d+)?/giu, Xo = /[a-z]+/giu, ei = /[$@]?[_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/giu, ti = new RegExp(qr.source + `|(${ei.source})?(${Ko.source})(${Xo.source})?`, "giu");
4281
+ function ee(e, s) {
4282
+ return F(0, e, qr, (o) => Cr(o, s));
4283
+ }
4284
+ function ri(e, s) {
4285
+ let o = s.singleQuote ? "'" : '"', r = "", c = e.match(/^(?<value>.+?)\s+(?<flag>[a-zA-Z])$/u);
4286
+ return c && ({ value: e, flag: r } = c.groups), (e.includes('"') || e.includes("'") ? e : o + e + o) + (r ? ` ${r}` : "");
4287
+ }
4288
+ function ge(e) {
4289
+ return F(0, e, ti, (s, o, r, c, i) => !r && c && (i ?? (i = ""), i = i.toLowerCase(), !i || i === "n" || wt.has(i)) ? Fr(c) + (i ? Br(i) : "") : s);
4290
+ }
4291
+ function Fr(e) {
4292
+ return Yo(e).replace(/\.0(?=$|e)/u, "");
4293
+ }
4294
+ function si(e) {
4295
+ return e.trailingComma === "es5" || e.trailingComma === "all";
4296
+ }
4297
+ var Zt = (e) => e === `
4298
+ ` || e === "\r" || e === "\u2028" || e === "\u2029";
4299
+ function ni(e, s, o) {
4300
+ let r = !!(o != null && o.backwards);
4301
+ if (s === !1) return !1;
4302
+ let c = e.charAt(s);
4303
+ if (r) {
4304
+ if (e.charAt(s - 1) === "\r" && c === `
4305
+ `) return s - 2;
4306
+ if (Zt(c)) return s - 1;
4307
+ } else {
4308
+ if (c === "\r" && e.charAt(s + 1) === `
4309
+ `) return s + 2;
4310
+ if (Zt(c)) return s + 1;
4311
+ }
4312
+ return s;
4313
+ }
4314
+ var Dr = ni;
4315
+ function oi(e, s, o = {}) {
4316
+ let r = Ir(e, o.backwards ? s - 1 : s, o), c = Dr(e, r, o);
4317
+ return r !== c;
4318
+ }
4319
+ var Ur = oi;
4320
+ function ii(e, s) {
4321
+ if (s === !1) return !1;
4322
+ if (e.charAt(s) === "/" && e.charAt(s + 1) === "*") {
4323
+ for (let o = s + 2; o < e.length; ++o) if (e.charAt(o) === "*" && e.charAt(o + 1) === "/") return o + 2;
4324
+ }
4325
+ return s;
4326
+ }
4327
+ var ai = ii;
4328
+ function ui(e, s) {
4329
+ return s === !1 ? !1 : e.charAt(s) === "/" && e.charAt(s + 1) === "/" ? Pr(e, s) : s;
4330
+ }
4331
+ var li = ui;
4332
+ function ci(e, s) {
4333
+ let o = null, r = s;
4334
+ for (; r !== o; ) o = r, r = eo(e, r), r = ai(e, r), r = Ir(e, r);
4335
+ return r = li(e, r), r = Dr(e, r), r !== !1 && Ur(e, r);
4336
+ }
4337
+ var Vr = ci;
4338
+ function pi({ node: e, parent: s }, o) {
4339
+ return !!(e.source && o.originalText.slice(G(e), G(s.close)).trimEnd().endsWith(","));
4340
+ }
4341
+ function hi(e, s) {
4342
+ return Po(e.grandparent) && pi(e, s) ? "," : e.node.type !== "value-comment" && !(e.node.type === "value-comma_group" && e.node.groups.every((o) => o.type === "value-comment")) && si(s) && e.callParent(() => zr(e, s)) ? Tr(",") : "";
4343
+ }
4344
+ function fi(e, s, o) {
4345
+ let { node: r, parent: c } = e, i = e.map(({ node: p }) => typeof p == "string" ? p : o(), "groups");
4346
+ if (c && Io(c) && (r.groups.length === 1 || r.groups.length > 0 && r.groups[0].type === "value-comma_group" && r.groups[0].groups.length > 0 && r.groups[0].groups[0].type === "value-word" && r.groups[0].groups[0].value.startsWith("data:"))) return [r.open ? o("open") : "", ae(",", i), r.close ? o("close") : ""];
4347
+ if (!r.open) {
4348
+ let p = Gr(e), f = mi(ae(",", i), 2), u = ae(p ? D : V, f);
4349
+ return Q(p ? [D, u] : K([di(e) ? Y : "", Qe(u)]));
4350
+ }
4351
+ let a = e.map(({ node: p, isLast: f, index: u }) => {
4352
+ var y;
4353
+ let b = i[u];
4354
+ Bt(p) && p.type === "value-comma_group" && p.groups && p.groups[0].type !== "value-paren_group" && ((y = p.groups[2]) == null ? void 0 : y.type) === "value-paren_group" && Pe(b) === rt && Pe(b.contents) === tt && Pe(b.contents.contents) === st && (b = K($e(b)));
4355
+ let v = [b, f ? hi(e, s) : ","];
4356
+ if (!f && p.type === "value-comma_group" && ot(p.groups)) {
4357
+ let g = ce(0, p.groups, -1);
4358
+ !g.source && g.close && (g = g.close), g.source && Vr(s.originalText, J(g)) && v.push(D);
4359
+ }
4360
+ return v;
4361
+ }, "groups"), l = Uo(r, c), m = Jo(r, c), d = zr(e, s), n = m || d && !l, t = m || l, h = K([r.open ? o("open") : "", Q([Y, ae(V, a)]), Y, r.close ? o("close") : ""], { shouldBreak: n });
4362
+ return t ? $e(h) : h;
4363
+ }
4364
+ function Gr(e) {
4365
+ return e.match((s) => s.type === "value-paren_group" && !s.open && s.groups.some((o) => o.type === "value-comma_group"), (s, o) => o === "group" && s.type === "value-value", (s, o) => o === "group" && s.type === "value-root", (s, o) => o === "value" && (s.type === "css-decl" && !s.prop.startsWith("--") || s.type === "css-atrule" && s.variable));
4366
+ }
4367
+ function di(e) {
4368
+ return e.match((s) => s.type === "value-paren_group" && !s.open, (s, o) => o === "group" && s.type === "value-value", (s, o) => o === "group" && s.type === "value-root", (s, o) => o === "value" && s.type === "css-decl");
4369
+ }
4370
+ function mi(e, s) {
4371
+ let o = [];
4372
+ for (let r = 0; r < e.length; r += s) o.push(e.slice(r, r + s));
4373
+ return o;
4374
+ }
4375
+ function yi(e, s, o) {
4376
+ let r = [];
4377
+ return e.each(() => {
4378
+ let { node: c, previous: i } = e;
4379
+ if ((i == null ? void 0 : i.type) === "css-comment" && i.text.trim() === "prettier-ignore" ? r.push(s.originalText.slice(G(c), J(c))) : r.push(o()), e.isLast) return;
4380
+ let { next: a } = e;
4381
+ a.type === "css-comment" && !Ur(s.originalText, G(a), { backwards: !0 }) && !mt(c) || a.type === "css-atrule" && a.name === "else" && c.type !== "css-comment" ? r.push(" ") : (r.push(s.__isHTMLStyleAttribute ? V : D), Vr(s.originalText, J(c)) && !mt(c) && r.push(D));
4382
+ }, "nodes"), r;
4383
+ }
4384
+ var Ie = yi;
4385
+ function vi(e, s, o) {
4386
+ var c, i, a, l, m;
4387
+ let { node: r } = e;
4388
+ switch (r.type) {
4389
+ case "css-root": {
4390
+ let d = Ie(e, s, o), n = r.raws.after.trim();
4391
+ return n.startsWith(";") && (n = n.slice(1).trim()), [r.frontMatter ? [o("frontMatter"), D, r.nodes.length > 0 ? D : ""] : "", d, n ? ` ${n}` : "", r.nodes.length > 0 ? D : ""];
4392
+ }
4393
+ case "css-comment": {
4394
+ let d = r.inline || r.raws.inline, n = s.originalText.slice(G(r), J(r));
4395
+ return d ? n.trimEnd() : n;
4396
+ }
4397
+ case "css-rule":
4398
+ return [o("selector"), r.important ? " !important" : "", r.nodes ? [((c = r.selector) == null ? void 0 : c.type) === "selector-unknown" && je(r.selector.value) ? V : r.selector ? " " : "", "{", r.nodes.length > 0 ? Q([D, Ie(e, s, o)]) : "", D, "}", Mo(r) ? ";" : ""] : ";"];
4399
+ case "css-decl": {
4400
+ let d = e.parent, { between: n } = r.raws, t = n.trim(), h = t === ":", p = typeof r.value == "string" && /^ *$/u.test(r.value), f = typeof r.value == "string" ? r.value : o("value");
4401
+ return f = Fo(r) ? Tn(f) : f, !h && je(t) && !e.call(() => Gr(e), "value", "group", "group") && (f = Q([D, $e(f)])), [F(0, r.raws.before, /[\s;]/gu, ""), d.type === "css-atrule" && d.variable || Eo(e) ? r.prop : Ee(r.prop), t.startsWith("//") ? " " : "", t, r.extend || p ? "" : " ", s.parser === "less" && r.extend && r.selector ? ["extend(", o("selector"), ")"] : "", f, r.raws.important ? r.raws.important.replace(/\s*!\s*important/iu, " !important") : r.important ? " !important" : "", r.raws.scssDefault ? r.raws.scssDefault.replace(/\s*!default/iu, " !default") : r.scssDefault ? " !default" : "", r.raws.scssGlobal ? r.raws.scssGlobal.replace(/\s*!global/iu, " !global") : r.scssGlobal ? " !global" : "", r.nodes ? [" {", Q([Y, Ie(e, s, o)]), Y, "}"] : Bo(r) && !d.raws.semicolon && s.originalText[J(r) - 1] !== ";" ? "" : s.__isHTMLStyleAttribute && e.isLast ? Tr(";") : ";"];
4402
+ }
4403
+ case "css-atrule": {
4404
+ let d = e.parent, n = pt(r) && !d.raws.semicolon && s.originalText[J(r) - 1] !== ";";
4405
+ if (s.parser === "less") {
4406
+ if (r.mixin) return [o("selector"), r.important ? " !important" : "", n ? "" : ";"];
4407
+ if (r.function) return [r.name, typeof r.params == "string" ? r.params : o("params"), n ? "" : ";"];
4408
+ if (r.variable) return ["@", r.name, ": ", r.value ? o("value") : "", r.raws.between.trim() ? r.raws.between.trim() + " " : "", r.nodes ? ["{", Q([r.nodes.length > 0 ? Y : "", Ie(e, s, o)]), Y, "}"] : "", n ? "" : ";"];
4409
+ }
4410
+ let t = r.name === "import" && ((i = r.params) == null ? void 0 : i.type) === "value-unknown" && r.params.value.endsWith(";");
4411
+ return ["@", Jt(r) || r.name.endsWith(":") || pt(r) ? r.name : Ee(r.name), r.params ? [Jt(r) ? "" : pt(r) ? r.raws.afterName === "" ? "" : r.name.endsWith(":") ? " " : /^\s*\n\s*\n/u.test(r.raws.afterName) ? [D, D] : /^\s*\n/u.test(r.raws.afterName) ? D : " " : " ", typeof r.params == "string" ? r.params : o("params")] : "", r.selector ? Q([" ", o("selector")]) : "", r.value ? K([" ", o("value"), vt(r, s) ? Do(r) ? " " : V : ""]) : r.name === "else" ? " " : "", r.nodes ? [vt(r, s) ? "" : r.selector && !r.selector.nodes && typeof r.selector.value == "string" && je(r.selector.value) || !r.selector && typeof r.params == "string" && je(r.params) ? V : " ", "{", Q([r.nodes.length > 0 ? Y : "", Ie(e, s, o)]), Y, "}"] : n || t ? "" : ";"];
4412
+ }
4413
+ case "media-query-list": {
4414
+ let d = [];
4415
+ return e.each(({ node: n }) => {
4416
+ n.type === "media-query" && n.value === "" || d.push(o());
4417
+ }, "nodes"), K(Q(ae(V, d)));
4418
+ }
4419
+ case "media-query":
4420
+ return [ae(" ", e.map(o, "nodes")), e.isLast ? "" : ","];
4421
+ case "media-type":
4422
+ return ge(ee(r.value, s));
4423
+ case "media-feature-expression":
4424
+ return r.nodes ? ["(", ...e.map(o, "nodes"), ")"] : r.value;
4425
+ case "media-feature":
4426
+ return Ee(ee(F(0, r.value, / +/gu, " "), s));
4427
+ case "media-colon":
4428
+ return [r.value, " "];
4429
+ case "media-value":
4430
+ return ge(ee(r.value, s));
4431
+ case "media-keyword":
4432
+ return ee(r.value, s);
4433
+ case "media-url":
4434
+ return ee(F(0, F(0, r.value, /^url\(\s+/giu, "url("), /\s+\)$/gu, ")"), s);
4435
+ case "media-unknown":
4436
+ return r.value;
4437
+ case "selector-root":
4438
+ return K([Re(e, "custom-selector") ? [e.findAncestor((d) => d.type === "css-atrule").customSelector, V] : "", ae([",", Re(e, ["extend", "custom-selector", "nest"]) ? V : D], e.map(o, "nodes"))]);
4439
+ case "selector-selector": {
4440
+ let d = r.nodes.length > 2;
4441
+ return K((d ? Q : (n) => n)(e.map(o, "nodes")));
4442
+ }
4443
+ case "selector-comment":
4444
+ return r.value;
4445
+ case "selector-string":
4446
+ return ee(r.value, s);
4447
+ case "selector-tag":
4448
+ return [r.namespace ? [r.namespace === !0 ? "" : r.namespace.trim(), "|"] : "", ((a = e.previous) == null ? void 0 : a.type) === "selector-nesting" ? r.value : ge(Ao(e, r.value) ? r.value.toLowerCase() : r.value)];
4449
+ case "selector-id":
4450
+ return ["#", r.value];
4451
+ case "selector-class":
4452
+ return [".", ge(ee(r.value, s))];
4453
+ case "selector-attribute":
4454
+ return ["[", r.namespace ? [r.namespace === !0 ? "" : r.namespace.trim(), "|"] : "", r.attribute.trim(), r.operator ?? "", r.value ? ri(ee(r.value.trim(), s), s) : "", r.insensitive ? " i" : "", "]"];
4455
+ case "selector-combinator": {
4456
+ if (r.value === "+" || r.value === ">" || r.value === "~" || r.value === ">>>") {
4457
+ let t = e.parent;
4458
+ return [t.type === "selector-selector" && t.nodes[0] === r ? "" : V, r.value, e.isLast ? "" : " "];
4459
+ }
4460
+ let d = r.value.trim().startsWith("(") ? V : "", n = ge(ee(r.value.trim(), s)) || V;
4461
+ return [d, n];
4462
+ }
4463
+ case "selector-universal":
4464
+ return [r.namespace ? [r.namespace === !0 ? "" : r.namespace.trim(), "|"] : "", r.value];
4465
+ case "selector-pseudo":
4466
+ return [Ee(r.value), ot(r.nodes) ? K(["(", Q([Y, ae([",", V], e.map(o, "nodes"))]), Y, ")"]) : ""];
4467
+ case "selector-nesting":
4468
+ return r.value;
4469
+ case "selector-unknown": {
4470
+ if ((l = e.findAncestor((t) => t.type === "css-rule")) != null && l.isSCSSNesterProperty) return ge(ee(Ee(r.value), s));
4471
+ let d = e.parent;
4472
+ if ((m = d.raws) != null && m.selector) {
4473
+ let t = G(d), h = t + d.raws.selector.length;
4474
+ return s.originalText.slice(t, h).trim();
4475
+ }
4476
+ let n = e.grandparent;
4477
+ if (d.type === "value-paren_group" && (n == null ? void 0 : n.type) === "value-func" && n.value === "selector") {
4478
+ let t = J(d.open) + 1, h = G(d.close), p = s.originalText.slice(t, h).trim();
4479
+ return je(p) ? [Nt, p] : p;
4480
+ }
4481
+ return r.value;
4482
+ }
4483
+ case "value-value":
4484
+ case "value-root":
4485
+ return o("group");
4486
+ case "value-comment":
4487
+ return s.originalText.slice(G(r), J(r));
4488
+ case "value-comma_group":
4489
+ return Qo(e, s, o);
4490
+ case "value-paren_group":
4491
+ return fi(e, s, o);
4492
+ case "value-func":
4493
+ return [r.value, Re(e, "supports") && Vo(r) ? " " : "", o("group")];
4494
+ case "value-paren":
4495
+ return r.value;
4496
+ case "value-number":
4497
+ return [Fr(r.value), Br(r.unit)];
4498
+ case "value-operator":
4499
+ return r.value;
4500
+ case "value-word":
4501
+ return r.isColor && r.isHex || So(r.value) ? r.value.toLowerCase() : r.value;
4502
+ case "value-colon": {
4503
+ let { previous: d } = e;
4504
+ return K([r.value, typeof (d == null ? void 0 : d.value) == "string" && d.value.endsWith("\\") || Ze(e, "url") ? "" : V]);
4505
+ }
4506
+ case "value-string":
4507
+ return Cr(r.raws.quote + r.value + r.raws.quote, s);
4508
+ case "value-atword":
4509
+ return ["@", r.value];
4510
+ case "value-unicode-range":
4511
+ return r.value;
4512
+ case "value-unknown":
4513
+ return r.value;
4514
+ case "front-matter":
4515
+ case "value-comma":
4516
+ default:
4517
+ throw new Wn(r, "PostCSS");
4518
+ }
4519
+ }
4520
+ var gi = { features: { experimental_frontMatterSupport: { massageAstNode: !0, embed: !0, print: !0 } }, print: vi, embed: Vn, insertPragma: To, massageAstNode: Un, getVisitorKeys: Kn }, wi = gi, bi = [{ name: "CSS", type: "markup", aceMode: "css", extensions: [".css", ".wxss"], tmScope: "source.css", codemirrorMode: "css", codemirrorMimeType: "text/css", parsers: ["css"], vscodeLanguageIds: ["css"], linguistLanguageId: 50 }, { name: "PostCSS", type: "markup", aceMode: "text", extensions: [".pcss", ".postcss"], tmScope: "source.postcss", group: "CSS", parsers: ["css"], vscodeLanguageIds: ["postcss"], linguistLanguageId: 262764437 }, { name: "Less", type: "markup", aceMode: "less", extensions: [".less"], tmScope: "source.css.less", aliases: ["less-css"], codemirrorMode: "css", codemirrorMimeType: "text/x-less", parsers: ["less"], vscodeLanguageIds: ["less"], linguistLanguageId: 198 }, { name: "SCSS", type: "markup", aceMode: "scss", extensions: [".scss"], tmScope: "source.css.scss", codemirrorMode: "css", codemirrorMimeType: "text/x-scss", parsers: ["scss"], vscodeLanguageIds: ["scss"], linguistLanguageId: 329 }], xi = { singleQuote: { category: "Common", type: "boolean", default: !1, description: "Use single quotes instead of double quotes." } }, ki = { singleQuote: xi.singleQuote }, Ti = ki, Jr = {};
4521
+ Kt(Jr, { css: () => ta, less: () => ra, scss: () => sa });
4522
+ var Oi = xe(et()), _i = xe(ws()), Ci = xe(Cs());
4523
+ function Si(e, s) {
4524
+ let o = new SyntaxError(e + " (" + s.loc.start.line + ":" + s.loc.start.column + ")");
4525
+ return Object.assign(o, s);
4526
+ }
4527
+ var Ai = Si;
4528
+ function Ei(e) {
4529
+ return e !== null && typeof e == "object";
4530
+ }
4531
+ var at = Ei, ji = xe(As());
4532
+ function Be(e, s, o) {
4533
+ if (at(e)) {
4534
+ delete e.parent;
4535
+ for (let r in e) Be(e[r], s, o), r === "type" && typeof e[r] == "string" && !e[r].startsWith(s) && (!o || !o.test(e[r])) && (e[r] = s + e[r]);
4536
+ }
4537
+ return e;
4538
+ }
4539
+ function Hr(e) {
4540
+ if (at(e)) {
4541
+ delete e.parent;
4542
+ for (let s in e) Hr(e[s]);
4543
+ !Array.isArray(e) && e.value && !e.type && (e.type = "unknown");
4544
+ }
4545
+ return e;
4546
+ }
4547
+ var Ii = ji.default.default;
4548
+ function Pi(e) {
4549
+ let s;
4550
+ try {
4551
+ s = Ii(e);
4552
+ } catch {
4553
+ return { type: "selector-unknown", value: e };
4554
+ }
4555
+ return Be(Hr(s), "media-");
4556
+ }
4557
+ var Mi = Pi, Ri = xe(Us());
4558
+ function $i(e) {
4559
+ if (/\/[/*]/u.test(F(0, e, /"[^"]+"|'[^']+'/gu, ""))) return { type: "selector-unknown", value: e.trim() };
4560
+ let s;
4561
+ try {
4562
+ new Ri.default((o) => {
4563
+ s = o;
4564
+ }).process(e);
4565
+ } catch {
4566
+ return { type: "selector-unknown", value: e };
4567
+ }
4568
+ return Be(s, "selector-");
4569
+ }
4570
+ var le = $i, Ni = xe(un()), Li = (e) => {
4571
+ for (; e.parent; ) e = e.parent;
4572
+ return e;
4573
+ }, Qr = Li;
4574
+ function Wi(e) {
4575
+ return Qr(e).text.slice(e.group.open.sourceIndex + 1, e.group.close.sourceIndex).trim();
4576
+ }
4577
+ var zi = Wi;
4578
+ function Bi(e) {
4579
+ if (ot(e)) {
4580
+ for (let s = e.length - 1; s > 0; s--) if (e[s].type === "word" && e[s].value === "{" && e[s - 1].type === "word" && e[s - 1].value.endsWith("#")) return !0;
4581
+ }
4582
+ return !1;
4583
+ }
4584
+ var qi = Bi;
4585
+ function Fi(e) {
4586
+ return e.some((s) => s.type === "string" || s.type === "func" && !s.value.endsWith("\\"));
4587
+ }
4588
+ var Di = Fi;
4589
+ function Ui(e, s) {
4590
+ return !!(s.parser === "scss" && (e == null ? void 0 : e.type) === "word" && e.value.startsWith("$"));
4591
+ }
4592
+ var Vi = Ui, Yt = (e) => e.type === "paren" && e.value === ")";
4593
+ function Gi(e, s) {
4594
+ var m;
4595
+ let { nodes: o } = e, r = { open: null, close: null, groups: [], type: "paren_group" }, c = [r], i = r, a = { groups: [], type: "comma_group" }, l = [a];
4596
+ for (let d = 0; d < o.length; ++d) {
4597
+ let n = o[d];
4598
+ if (s.parser === "scss" && n.type === "number" && n.unit === ".." && n.value.endsWith(".") && (n.value = n.value.slice(0, -1), n.unit = "..."), n.type === "func" && n.value === "selector" && (n.group.groups = [le(Qr(e).text.slice(n.group.open.sourceIndex + 1, n.group.close.sourceIndex))]), n.type === "func" && n.value === "url") {
4599
+ let t = ((m = n.group) == null ? void 0 : m.groups) ?? [], h = [];
4600
+ for (let p = 0; p < t.length; p++) {
4601
+ let f = t[p];
4602
+ f.type === "comma_group" ? h = [...h, ...f.groups] : h.push(f);
4603
+ }
4604
+ (qi(h) || !Di(h) && !Vi(h[0], s)) && (n.group.groups = [zi(n)]);
4605
+ }
4606
+ if (n.type === "paren" && n.value === "(") r = { open: n, close: null, groups: [], type: "paren_group" }, c.push(r), a = { groups: [], type: "comma_group" }, l.push(a);
4607
+ else if (Yt(n)) {
4608
+ if (a.groups.length > 0 && r.groups.push(a), r.close = n, l.length === 1) throw new Error("Unbalanced parenthesis");
4609
+ l.pop(), a = ce(0, l, -1), a.groups.push(r), c.pop(), r = ce(0, c, -1);
4610
+ } else if (n.type === "comma") {
4611
+ if (d === o.length - 3 && o[d + 1].type === "comment" && Yt(o[d + 2])) continue;
4612
+ r.groups.push(a), a = { groups: [], type: "comma_group" }, l[l.length - 1] = a;
4613
+ } else a.groups.push(n);
4614
+ }
4615
+ return a.groups.length > 0 && r.groups.push(a), i;
4616
+ }
4617
+ function bt(e) {
4618
+ return e.type === "paren_group" && !e.open && !e.close && e.groups.length === 1 || e.type === "comma_group" && e.groups.length === 1 ? bt(e.groups[0]) : e.type === "paren_group" || e.type === "comma_group" ? { ...e, groups: e.groups.map(bt) } : e;
4619
+ }
4620
+ function Zr(e, s) {
4621
+ if (at(e)) for (let o in e) o !== "parent" && (Zr(e[o], s), o === "nodes" && (e.group = bt(Gi(e, s)), delete e[o]));
4622
+ return e;
4623
+ }
4624
+ function Ji(e, s) {
4625
+ if (s.parser === "less" && e.startsWith("~`")) return { type: "value-unknown", value: e };
4626
+ let o = null;
4627
+ try {
4628
+ o = new Ni.default(e, { loose: !0 }).parse();
4629
+ } catch {
4630
+ return { type: "value-unknown", value: e };
4631
+ }
4632
+ o.text = e;
4633
+ let r = Zr(o, s);
4634
+ return Be(r, "value-", /^selector-/u);
4635
+ }
4636
+ var ue = Ji, Hi = /* @__PURE__ */ new Set(["import", "use", "forward"]);
4637
+ function Qi(e) {
4638
+ return Hi.has(e);
4639
+ }
4640
+ var Zi = Qi;
4641
+ function Yi(e, s) {
4642
+ return s.parser !== "scss" || !e.selector ? !1 : e.selector.replace(/\/\*.*?\*\//u, "").replace(/\/\/.*\n/u, "").trim().endsWith(":");
4643
+ }
4644
+ var Ki = Yi, Xi = /(\s*)(!default).*$/u, ea = /(\s*)(!global).*$/u;
4645
+ function Yr(e, s) {
4646
+ var o, r;
4647
+ if (at(e)) {
4648
+ delete e.parent;
4649
+ for (let l in e) Yr(e[l], s);
4650
+ if (!e.type) return e;
4651
+ if (e.raws ?? (e.raws = {}), e.type === "css-decl" && typeof e.prop == "string" && e.prop.startsWith("--") && typeof e.value == "string" && e.value.startsWith("{")) {
4652
+ let l;
4653
+ if (e.value.trimEnd().endsWith("}")) {
4654
+ let m = s.originalText.slice(0, e.source.start.offset), d = "a".repeat(e.prop.length) + s.originalText.slice(e.source.start.offset + e.prop.length, e.source.end.offset), n = F(0, m, /[^\n]/gu, " ") + d, t;
4655
+ s.parser === "scss" ? t = es : s.parser === "less" ? t = Xr : t = Kr;
4656
+ let h;
4657
+ try {
4658
+ h = t(n, { ...s });
4659
+ } catch {
4660
+ }
4661
+ ((o = h == null ? void 0 : h.nodes) == null ? void 0 : o.length) === 1 && h.nodes[0].type === "css-rule" && (l = h.nodes[0].nodes);
4662
+ }
4663
+ return l ? e.value = { type: "css-rule", nodes: l } : e.value = { type: "value-unknown", value: e.raws.value.raw }, e;
4664
+ }
4665
+ let c = "";
4666
+ typeof e.selector == "string" && (c = e.raws.selector ? e.raws.selector.scss ?? e.raws.selector.raw : e.selector, e.raws.between && e.raws.between.trim().length > 0 && (c += e.raws.between), e.raws.selector = c);
4667
+ let i = "";
4668
+ typeof e.value == "string" && (i = e.raws.value ? e.raws.value.scss ?? e.raws.value.raw : e.value, e.raws.value = i.trim());
4669
+ let a = "";
4670
+ if (typeof e.params == "string" && (a = e.raws.params ? e.raws.params.scss ?? e.raws.params.raw : e.params, e.raws.afterName && e.raws.afterName.trim().length > 0 && (a = e.raws.afterName + a), e.raws.between && e.raws.between.trim().length > 0 && (a = a + e.raws.between), a = a.trim(), e.raws.params = a), c.trim().length > 0) return c.startsWith("@") && c.endsWith(":") ? e : e.mixin ? (e.selector = ue(c, s), e) : (Ki(e, s) && (e.isSCSSNesterProperty = !0), e.selector = le(c), e);
4671
+ if (i.trim().length > 0) {
4672
+ let l = i.match(Xi);
4673
+ l && (i = i.slice(0, l.index), e.scssDefault = !0, l[0].trim() !== "!default" && (e.raws.scssDefault = l[0]));
4674
+ let m = i.match(ea);
4675
+ if (m && (i = i.slice(0, m.index), e.scssGlobal = !0, m[0].trim() !== "!global" && (e.raws.scssGlobal = m[0])), i.startsWith("progid:")) return { type: "value-unknown", value: i };
4676
+ e.value = ue(i, s);
4677
+ }
4678
+ if (s.parser === "less" && e.type === "css-decl" && i.startsWith("extend(") && (e.extend || (e.extend = e.raws.between === ":"), e.extend && !e.selector && (delete e.value, e.selector = le(i.slice(7, -1)))), e.type === "css-atrule") {
4679
+ if (s.parser === "less") {
4680
+ if (e.mixin) {
4681
+ let l = e.raws.identifier + e.name + e.raws.afterName + e.raws.params;
4682
+ return e.selector = le(l), delete e.params, e;
4683
+ }
4684
+ if (e.function) return e;
4685
+ }
4686
+ if (s.parser === "css" && e.name === "custom-selector") {
4687
+ let l = e.params.match(/:--\S+\s+/u)[0].trim();
4688
+ return e.customSelector = l, e.selector = le(e.params.slice(l.length).trim()), delete e.params, e;
4689
+ }
4690
+ if (s.parser === "less") {
4691
+ if (e.name.includes(":")) {
4692
+ e.variable = !0;
4693
+ let l = e.name.split(":");
4694
+ e.name = l[0];
4695
+ let m = l.slice(1).join(":");
4696
+ e.params && (m += e.params), e.value = ue(m, s);
4697
+ }
4698
+ if (!["page", "nest", "keyframes"].includes(e.name) && ((r = e.params) == null ? void 0 : r[0]) === ":") {
4699
+ e.variable = !0;
4700
+ let l = e.params.slice(1);
4701
+ l && (e.value = ue(l, s)), e.raws.afterName += ":";
4702
+ }
4703
+ if (e.variable) return delete e.params, e.value || delete e.value, e;
4704
+ }
4705
+ }
4706
+ if (e.type === "css-atrule" && a.length > 0) {
4707
+ let { name: l } = e, m = e.name.toLowerCase();
4708
+ return l === "warn" || l === "error" ? (e.params = { type: "media-unknown", value: a }, e) : l === "extend" || l === "nest" ? (e.selector = le(a), delete e.params, e) : l === "at-root" ? (/^\(\s*(?:without|with)\s*:.+\)$/su.test(a) ? e.params = ue(a, s) : (e.selector = le(a), delete e.params), e) : Zi(m) ? (e.import = !0, delete e.filename, e.params = ue(a, s), e) : ["namespace", "supports", "if", "else", "for", "each", "while", "debug", "mixin", "include", "function", "return", "define-mixin", "add-mixin"].includes(l) ? (a = a.replace(/(\$\S+?)(\s+)?\.{3}/u, "$1...$2"), a = a.replace(/^(?!if)([^"'\s(]+)(\s+)\(/u, "$1($2"), e.value = ue(a, s), delete e.params, e) : ["media", "custom-media"].includes(m) ? a.includes("#{") ? { type: "media-unknown", value: a } : (e.params = Mi(a), e) : (e.params = a, e);
4709
+ }
4710
+ }
4711
+ return e;
4712
+ }
4713
+ function qt(e, s, o) {
4714
+ let { frontMatter: r, content: c } = it(s), i;
4715
+ try {
4716
+ i = e(c, { map: !1 });
4717
+ } catch (a) {
4718
+ let { name: l, reason: m, line: d, column: n } = a;
4719
+ throw typeof d != "number" ? a : Ai(`${l}: ${m}`, { loc: { start: { line: d, column: n } }, cause: a });
4720
+ }
4721
+ return o.originalText = s, i = Yr(Be(i, "css-"), o), $r(i, s), r && (i.frontMatter = { ...r, type: "front-matter", source: { startOffset: r.start.index, endOffset: r.end.index } }), i;
4722
+ }
4723
+ function Kr(e, s = {}) {
4724
+ return qt(Oi.default.default, e, s);
4725
+ }
4726
+ function Xr(e, s = {}) {
4727
+ return qt((o) => _i.default.parse(ro(o)), e, s);
4728
+ }
4729
+ function es(e, s = {}) {
4730
+ return qt(Ci.default, e, s);
4731
+ }
4732
+ var Ft = { astFormat: "postcss", hasPragma: xo, hasIgnorePragma: ko, locStart: G, locEnd: J }, ta = { ...Ft, parse: Kr }, ra = { ...Ft, parse: Xr }, sa = { ...Ft, parse: es }, na = { postcss: wi };
4733
+ export {
4734
+ ln as default,
4735
+ bi as languages,
4736
+ Ti as options,
4737
+ Jr as parsers,
4738
+ na as printers
4739
+ };