eddyter 1.3.60 → 1.3.61

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