hldesigner 0.0.1

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 (173) hide show
  1. package/FileSaver.min-b57403e6.js +103 -0
  2. package/_commonjsHelpers-e7ea1525.js +36 -0
  3. package/_plugin-vue_export-helper-dad06003.js +9 -0
  4. package/affix-widget-94198099.js +38 -0
  5. package/anchor-link-widget-919ac0ee.js +5 -0
  6. package/anchor-link-widget.vue_vue_type_script_setup_true_name_anchor-link-widget_lang-7df7e7c1.js +35 -0
  7. package/anchor-widget-77003871.js +57 -0
  8. package/auto-complete-widget-8d76ea70.js +74 -0
  9. package/avatar-widget-3cd63f01.js +38 -0
  10. package/backtop-widget-6fc3db98.js +38 -0
  11. package/badge-widget-f36a769c.js +44 -0
  12. package/baseImp-8c4be88e.js +11050 -0
  13. package/breadcrumb-widget-422a9d28.js +79 -0
  14. package/button-widget-918dde3f.js +48 -0
  15. package/cache-widget-a1637f5f.js +53 -0
  16. package/card-widget-2db8e9d4.js +112 -0
  17. package/carousel-widget-838cc8c9.js +75 -0
  18. package/cascader-widget-42482528.js +97 -0
  19. package/chart-widget-ac07a466.js +44285 -0
  20. package/checkbox-widget-ee1fcb0c.js +79 -0
  21. package/clipboard-fc4d858d.js +497 -0
  22. package/code-cf4fbc89.js +82 -0
  23. package/collapse-widget-1a93bdb5.js +89 -0
  24. package/color-picker-widget-e893711a.js +56 -0
  25. package/common-editor-76ac2e32.js +24 -0
  26. package/common-editor.vue_vue_type_script_setup_true_name_common-editor_lang-634a504e.js +25 -0
  27. package/configItem-6bfa74e0.js +113 -0
  28. package/cont-cell-widget-42f96421.js +8 -0
  29. package/cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-d3be593a.js +59 -0
  30. package/cont-widget-9dda9135.js +42 -0
  31. package/content-wrapper-20c559ac.js +14 -0
  32. package/content-wrapper.vue_vue_type_script_setup_true_lang-4a97c453.js +37 -0
  33. package/customClass-editor-9088a8cf.js +43 -0
  34. package/date-picker-range-widget-b9287f93.js +72 -0
  35. package/date-picker-widget-21595fd5.js +78 -0
  36. package/default-slot-widget-fc87ed0a.js +24 -0
  37. package/default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-0fb8e1cc.js +59 -0
  38. package/descriptions-widget-33a02f1a.js +83 -0
  39. package/designer.es.js +42 -0
  40. package/designer.style.css +11 -0
  41. package/designer.umd.js +161882 -0
  42. package/dialog-5e196819.js +124 -0
  43. package/dialog-widget-22714c34.js +33 -0
  44. package/divider-widget-adf656f2.js +38 -0
  45. package/drag-wrapper-f9fb1533.js +259 -0
  46. package/drawer-widget-404cb6db.js +33 -0
  47. package/dropdown-widget-a4a1e2f7.js +92 -0
  48. package/editor-wrapper-e6b30023.js +779 -0
  49. package/emitter-2b9b9409.js +53 -0
  50. package/empty-widget-c53b07dd.js +64 -0
  51. package/enum-type-255ade69.js +543 -0
  52. package/enum-type-287a50b6.js +2054 -0
  53. package/expression-ea95606e.js +2181 -0
  54. package/feedback-widget-c041b474.js +26 -0
  55. package/feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-efe168a5.js +82 -0
  56. package/field-base-5547436d.js +7 -0
  57. package/field-editor-3e1ce4f3.js +69 -0
  58. package/file-upload-widget-941b9493.js +98 -0
  59. package/form-item-wrapper-8039c512.js +113 -0
  60. package/form-widget-98a02c28.js +184 -0
  61. package/grid-col-widget-3ea371ea.js +8 -0
  62. package/grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-f40c8e16.js +41 -0
  63. package/grid-widget-f0635d43.js +43 -0
  64. package/html-text-widget-c440e86d.js +50 -0
  65. package/icon-2bb9fa65.js +129 -0
  66. package/iframe-widget-37ef665f.js +77 -0
  67. package/image-widget-871d5987.js +64 -0
  68. package/import-config-1eb9a66b.js +13156 -0
  69. package/index-0a2f2997.js +225 -0
  70. package/index-12505eec.js +42 -0
  71. package/index-18720c06.js +138 -0
  72. package/index-188b745d.js +132 -0
  73. package/index-28f32a55.js +216 -0
  74. package/index-2936e7cf.js +3265 -0
  75. package/index-2d29f8d3.js +7233 -0
  76. package/index-3d5d5fac.js +23 -0
  77. package/index-50c3e002.js +227 -0
  78. package/index-6a276ef7.js +131 -0
  79. package/index-6d56f058.js +45 -0
  80. package/index-7b38fd82.js +330 -0
  81. package/index-7c2a8e33.js +17993 -0
  82. package/index-7fa591e3.js +4817 -0
  83. package/index-82f2c56a.js +135 -0
  84. package/index-8713c192.js +344 -0
  85. package/index-8d537d38.js +2393 -0
  86. package/index-9fd4a537.js +99 -0
  87. package/index-ad538d7e.js +832 -0
  88. package/index-c1b1f59f.js +88 -0
  89. package/index-d6fa09d6.js +39 -0
  90. package/index-db2305dc.js +117 -0
  91. package/index-ddd23411.js +4884 -0
  92. package/index-e795786b.js +119 -0
  93. package/index-f146282d.js +1356 -0
  94. package/index-f849ef29.js +216 -0
  95. package/index-ffbcbc43.js +65 -0
  96. package/input-number-widget-64f89b9d.js +66 -0
  97. package/input-widget-0fe7c3d7.js +71 -0
  98. package/install-designer-bed2e18a.js +4752 -0
  99. package/item-4be3cb5b.js +34 -0
  100. package/item-ddbdee11.js +24 -0
  101. package/itemDetail-b31192a5.js +43 -0
  102. package/label-wrapper-91b95fb0.js +12 -0
  103. package/label-wrapper.vue_vue_type_style_index_0_lang-0a7f6bdd.js +80 -0
  104. package/link-widget-0f2bb61c.js +56 -0
  105. package/ltable-col-widget-9f26b93d.js +8 -0
  106. package/ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-639ee976.js +256 -0
  107. package/ltable-widget-b78a72ee.js +69 -0
  108. package/menu-widget-15fdd710.js +96 -0
  109. package/model-widget-3f2b1368.js +122 -0
  110. package/multirow-e1e1205c.js +292 -0
  111. package/multirow-widget copy-671ebd9c.js +858 -0
  112. package/multirow-widget-d256cac6.js +694 -0
  113. package/name-editor-05685151.js +104 -0
  114. package/optionItem-0ac4a3ae.js +4667 -0
  115. package/package.json +13 -0
  116. package/pagination-widget-31a7301d.js +81 -0
  117. package/picture-upload-widget-46ea42a0.js +102 -0
  118. package/postcss-2c4d92ea.js +2285 -0
  119. package/progress-widget-fc1f9557.js +52 -0
  120. package/property-base-e63e2f28.js +78 -0
  121. package/propresult-8fdf23e2.js +22 -0
  122. package/radio-widget-fbc63c11.js +79 -0
  123. package/range-widget-b0882319.js +74 -0
  124. package/rate-widget-9719ca7d.js +56 -0
  125. package/reg-editor.vue_vue_type_script_setup_true_lang-56504fb0.js +61 -0
  126. package/result-widget-925a5426.js +67 -0
  127. package/rich-editor-widget-426f0b19.js +77 -0
  128. package/router-widget-209f0eb1.js +54 -0
  129. package/schemaData-ab87bd49.js +333 -0
  130. package/select-widget-0b560a2f.js +288 -0
  131. package/setView-de8aaf40.js +84 -0
  132. package/sfc-10e3d29c.js +2570 -0
  133. package/share-editor-27d43940.js +448 -0
  134. package/share-event-dd8ff2ba.js +26 -0
  135. package/share-field-451430de.js +690 -0
  136. package/share-file-124a4d83.js +121 -0
  137. package/size-editor-ea05760c.js +92 -0
  138. package/slider-widget-fb4efa96.js +62 -0
  139. package/slot-04a83a27.js +17 -0
  140. package/static-text-widget-2efdd909.js +51 -0
  141. package/steps-widget-6f283f21.js +91 -0
  142. package/subMenu-widget-77e295cb.js +16 -0
  143. package/subMenu-widget.vue_vue_type_script_setup_true_lang-b051a10e.js +69 -0
  144. package/switch-widget-f1120b6c.js +56 -0
  145. package/tab-pane-widget-99c21615.js +8 -0
  146. package/tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-bc962788.js +35 -0
  147. package/table-col-widget-d6d5d21f.js +23 -0
  148. package/table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-2efa4d60.js +80 -0
  149. package/table-widget-9b8d9798.js +163 -0
  150. package/tabs-widget-88393072.js +68 -0
  151. package/tag-widget-33c17c06.js +38 -0
  152. package/target-code-48e9d055.js +33 -0
  153. package/target-datasource-35dfcb1d.js +221 -0
  154. package/target-link-3ffd0149.js +126 -0
  155. package/target-saveForm-012b7de1.js +136 -0
  156. package/target-widget-3d7f6104.js +59 -0
  157. package/target-window-7556d301.js +54 -0
  158. package/template-c30585f4.js +251740 -0
  159. package/text-widget-8b5ece83.js +38 -0
  160. package/textarea-widget-e7c1d9ed.js +56 -0
  161. package/time-picker-range-widget-b8dfcc3b.js +58 -0
  162. package/time-picker-widget-73bde0a3.js +57 -0
  163. package/time-select-widget-08008b76.js +57 -0
  164. package/tmpl-widget-7d245d41.js +92 -0
  165. package/tooltip-wrapper-2922e49e.js +31 -0
  166. package/tree-select-widget-67231123.js +94 -0
  167. package/tree-widget-ab91165f.js +90 -0
  168. package/uuid-39f0308a.js +196 -0
  169. package/value-editor-27783d6c.js +89 -0
  170. package/vue3-sfc-loader-b70bdce4.js +34688 -0
  171. package/widget-base-4c2d6265.js +27 -0
  172. package/widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-bbe0cabe.js +277 -0
  173. package/wrapper-widget-5702502d.js +78 -0
@@ -0,0 +1,2285 @@
1
+ import { N as y } from "./baseImp-8c4be88e.js";
2
+ import { g as Dt } from "./_commonjsHelpers-e7ea1525.js";
3
+ import "./enum-type-287a50b6.js";
4
+ import "./uuid-39f0308a.js";
5
+ import "./enum-type-255ade69.js";
6
+ import "./icon-2bb9fa65.js";
7
+ import "vue";
8
+ import "./template-c30585f4.js";
9
+ import "./dialog-5e196819.js";
10
+ import "element-plus";
11
+ var q = {}, zt = {
12
+ get exports() {
13
+ return q;
14
+ },
15
+ set exports(o) {
16
+ q = o;
17
+ }
18
+ }, c = String, tt = function() {
19
+ return { isColorSupported: !1, reset: c, bold: c, dim: c, italic: c, underline: c, inverse: c, hidden: c, strikethrough: c, black: c, red: c, green: c, yellow: c, blue: c, magenta: c, cyan: c, white: c, gray: c, bgBlack: c, bgRed: c, bgGreen: c, bgYellow: c, bgBlue: c, bgMagenta: c, bgCyan: c, bgWhite: c, blackBright: c, redBright: c, greenBright: c, yellowBright: c, blueBright: c, magentaBright: c, cyanBright: c, whiteBright: c, bgBlackBright: c, bgRedBright: c, bgGreenBright: c, bgYellowBright: c, bgBlueBright: c, bgMagentaBright: c, bgCyanBright: c, bgWhiteBright: c };
20
+ };
21
+ zt.exports = tt();
22
+ q.createColors = tt;
23
+ let De = q, ze = y, K = class extends Error {
24
+ constructor(e, t, r, s, i, l) {
25
+ super(e), this.name = "CssSyntaxError", this.reason = e, i && (this.file = i), s && (this.source = s), l && (this.plugin = l), typeof t < "u" && typeof r < "u" && (typeof t == "number" ? (this.line = t, this.column = r) : (this.line = t.line, this.column = t.column, this.endLine = r.line, this.endColumn = r.column)), this.setMessage(), Error.captureStackTrace && Error.captureStackTrace(this, K);
26
+ }
27
+ setMessage() {
28
+ 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;
29
+ }
30
+ showSourceCode(e) {
31
+ if (!this.source)
32
+ return "";
33
+ let t = this.source;
34
+ e == null && (e = De.isColorSupported);
35
+ let r = (h) => h, s = (h) => h, i = (h) => h;
36
+ if (e) {
37
+ let { bold: h, gray: m, red: d } = De.createColors(!0);
38
+ s = (g) => h(d(g)), r = (g) => m(g), ze && (i = (g) => ze(g));
39
+ }
40
+ let l = t.split(/\r?\n/), a = Math.max(this.line - 3, 0), n = Math.min(this.line + 2, l.length), u = String(n).length;
41
+ return l.slice(a, n).map((h, m) => {
42
+ let d = a + 1 + m, g = " " + (" " + d).slice(-u) + " | ";
43
+ if (d === this.line) {
44
+ if (h.length > 160) {
45
+ let S = 20, f = Math.max(0, this.column - S), P = Math.max(
46
+ this.column + S,
47
+ this.endColumn + S
48
+ ), R = h.slice(f, P), le = r(g.replace(/\d/g, " ")) + h.slice(0, Math.min(this.column - 1, S - 1)).replace(/[^\t]/g, " ");
49
+ return s(">") + r(g) + i(R) + `
50
+ ` + le + s("^");
51
+ }
52
+ let O = r(g.replace(/\d/g, " ")) + h.slice(0, this.column - 1).replace(/[^\t]/g, " ");
53
+ return s(">") + r(g) + i(h) + `
54
+ ` + O + s("^");
55
+ }
56
+ return " " + r(g) + i(h);
57
+ }).join(`
58
+ `);
59
+ }
60
+ toString() {
61
+ let e = this.showSourceCode();
62
+ return e && (e = `
63
+
64
+ ` + e + `
65
+ `), this.name + ": " + this.message + e;
66
+ }
67
+ };
68
+ var Ae = K;
69
+ K.default = K;
70
+ const Fe = {
71
+ after: `
72
+ `,
73
+ beforeClose: `
74
+ `,
75
+ beforeComment: `
76
+ `,
77
+ beforeDecl: `
78
+ `,
79
+ beforeOpen: " ",
80
+ beforeRule: `
81
+ `,
82
+ colon: ": ",
83
+ commentLeft: " ",
84
+ commentRight: " ",
85
+ emptyBody: "",
86
+ indent: " ",
87
+ semicolon: !1
88
+ };
89
+ function Ft(o) {
90
+ return o[0].toUpperCase() + o.slice(1);
91
+ }
92
+ let me = class {
93
+ constructor(e) {
94
+ this.builder = e;
95
+ }
96
+ atrule(e, t) {
97
+ let r = "@" + e.name, s = e.params ? this.rawValue(e, "params") : "";
98
+ if (typeof e.raws.afterName < "u" ? r += e.raws.afterName : s && (r += " "), e.nodes)
99
+ this.block(e, r + s);
100
+ else {
101
+ let i = (e.raws.between || "") + (t ? ";" : "");
102
+ this.builder(r + s + i, e);
103
+ }
104
+ }
105
+ beforeAfter(e, t) {
106
+ let r;
107
+ e.type === "decl" ? r = this.raw(e, null, "beforeDecl") : e.type === "comment" ? r = this.raw(e, null, "beforeComment") : t === "before" ? r = this.raw(e, null, "beforeRule") : r = this.raw(e, null, "beforeClose");
108
+ let s = e.parent, i = 0;
109
+ for (; s && s.type !== "root"; )
110
+ i += 1, s = s.parent;
111
+ if (r.includes(`
112
+ `)) {
113
+ let l = this.raw(e, null, "indent");
114
+ if (l.length)
115
+ for (let a = 0; a < i; a++)
116
+ r += l;
117
+ }
118
+ return r;
119
+ }
120
+ block(e, t) {
121
+ let r = this.raw(e, "between", "beforeOpen");
122
+ this.builder(t + r + "{", e, "start");
123
+ let s;
124
+ e.nodes && e.nodes.length ? (this.body(e), s = this.raw(e, "after")) : s = this.raw(e, "after", "emptyBody"), s && this.builder(s), this.builder("}", e, "end");
125
+ }
126
+ body(e) {
127
+ let t = e.nodes.length - 1;
128
+ for (; t > 0 && e.nodes[t].type === "comment"; )
129
+ t -= 1;
130
+ let r = this.raw(e, "semicolon");
131
+ for (let s = 0; s < e.nodes.length; s++) {
132
+ let i = e.nodes[s], l = this.raw(i, "before");
133
+ l && this.builder(l), this.stringify(i, t !== s || r);
134
+ }
135
+ }
136
+ comment(e) {
137
+ let t = this.raw(e, "left", "commentLeft"), r = this.raw(e, "right", "commentRight");
138
+ this.builder("/*" + t + e.text + r + "*/", e);
139
+ }
140
+ decl(e, t) {
141
+ let r = this.raw(e, "between", "colon"), s = e.prop + r + this.rawValue(e, "value");
142
+ e.important && (s += e.raws.important || " !important"), t && (s += ";"), this.builder(s, e);
143
+ }
144
+ document(e) {
145
+ this.body(e);
146
+ }
147
+ raw(e, t, r) {
148
+ let s;
149
+ if (r || (r = t), t && (s = e.raws[t], typeof s < "u"))
150
+ return s;
151
+ let i = e.parent;
152
+ if (r === "before" && (!i || i.type === "root" && i.first === e || i && i.type === "document"))
153
+ return "";
154
+ if (!i)
155
+ return Fe[r];
156
+ let l = e.root();
157
+ if (l.rawCache || (l.rawCache = {}), typeof l.rawCache[r] < "u")
158
+ return l.rawCache[r];
159
+ if (r === "before" || r === "after")
160
+ return this.beforeAfter(e, r);
161
+ {
162
+ let a = "raw" + Ft(r);
163
+ this[a] ? s = this[a](l, e) : l.walk((n) => {
164
+ if (s = n.raws[t], typeof s < "u")
165
+ return !1;
166
+ });
167
+ }
168
+ return typeof s > "u" && (s = Fe[r]), l.rawCache[r] = s, s;
169
+ }
170
+ rawBeforeClose(e) {
171
+ let t;
172
+ return e.walk((r) => {
173
+ if (r.nodes && r.nodes.length > 0 && typeof r.raws.after < "u")
174
+ return t = r.raws.after, t.includes(`
175
+ `) && (t = t.replace(/[^\n]+$/, "")), !1;
176
+ }), t && (t = t.replace(/\S/g, "")), t;
177
+ }
178
+ rawBeforeComment(e, t) {
179
+ let r;
180
+ return e.walkComments((s) => {
181
+ if (typeof s.raws.before < "u")
182
+ return r = s.raws.before, r.includes(`
183
+ `) && (r = r.replace(/[^\n]+$/, "")), !1;
184
+ }), typeof r > "u" ? r = this.raw(t, null, "beforeDecl") : r && (r = r.replace(/\S/g, "")), r;
185
+ }
186
+ rawBeforeDecl(e, t) {
187
+ let r;
188
+ return e.walkDecls((s) => {
189
+ if (typeof s.raws.before < "u")
190
+ return r = s.raws.before, r.includes(`
191
+ `) && (r = r.replace(/[^\n]+$/, "")), !1;
192
+ }), typeof r > "u" ? r = this.raw(t, null, "beforeRule") : r && (r = r.replace(/\S/g, "")), r;
193
+ }
194
+ rawBeforeOpen(e) {
195
+ let t;
196
+ return e.walk((r) => {
197
+ if (r.type !== "decl" && (t = r.raws.between, typeof t < "u"))
198
+ return !1;
199
+ }), t;
200
+ }
201
+ rawBeforeRule(e) {
202
+ let t;
203
+ return e.walk((r) => {
204
+ if (r.nodes && (r.parent !== e || e.first !== r) && typeof r.raws.before < "u")
205
+ return t = r.raws.before, t.includes(`
206
+ `) && (t = t.replace(/[^\n]+$/, "")), !1;
207
+ }), t && (t = t.replace(/\S/g, "")), t;
208
+ }
209
+ rawColon(e) {
210
+ let t;
211
+ return e.walkDecls((r) => {
212
+ if (typeof r.raws.between < "u")
213
+ return t = r.raws.between.replace(/[^\s:]/g, ""), !1;
214
+ }), t;
215
+ }
216
+ rawEmptyBody(e) {
217
+ let t;
218
+ return e.walk((r) => {
219
+ if (r.nodes && r.nodes.length === 0 && (t = r.raws.after, typeof t < "u"))
220
+ return !1;
221
+ }), t;
222
+ }
223
+ rawIndent(e) {
224
+ if (e.raws.indent)
225
+ return e.raws.indent;
226
+ let t;
227
+ return e.walk((r) => {
228
+ let s = r.parent;
229
+ if (s && s !== e && s.parent && s.parent === e && typeof r.raws.before < "u") {
230
+ let i = r.raws.before.split(`
231
+ `);
232
+ return t = i[i.length - 1], t = t.replace(/\S/g, ""), !1;
233
+ }
234
+ }), t;
235
+ }
236
+ rawSemicolon(e) {
237
+ let t;
238
+ return e.walk((r) => {
239
+ if (r.nodes && r.nodes.length && r.last.type === "decl" && (t = r.raws.semicolon, typeof t < "u"))
240
+ return !1;
241
+ }), t;
242
+ }
243
+ rawValue(e, t) {
244
+ let r = e[t], s = e.raws[t];
245
+ return s && s.value === r ? s.raw : r;
246
+ }
247
+ root(e) {
248
+ this.body(e), e.raws.after && this.builder(e.raws.after);
249
+ }
250
+ rule(e) {
251
+ this.block(e, this.rawValue(e, "selector")), e.raws.ownSemicolon && this.builder(e.raws.ownSemicolon, e, "end");
252
+ }
253
+ stringify(e, t) {
254
+ if (!this[e.type])
255
+ throw new Error(
256
+ "Unknown AST node type " + e.type + ". Maybe you need to change PostCSS stringifier."
257
+ );
258
+ this[e.type](e, t);
259
+ }
260
+ };
261
+ var rt = me;
262
+ me.default = me;
263
+ let Tt = rt;
264
+ function de(o, e) {
265
+ new Tt(e).stringify(o);
266
+ }
267
+ var re = de;
268
+ de.default = de;
269
+ var D = {};
270
+ D.isClean = Symbol("isClean");
271
+ D.my = Symbol("my");
272
+ let Wt = Ae, jt = rt, Vt = re, { isClean: M, my: Gt } = D;
273
+ function ge(o, e) {
274
+ let t = new o.constructor();
275
+ for (let r in o) {
276
+ if (!Object.prototype.hasOwnProperty.call(o, r) || r === "proxyCache")
277
+ continue;
278
+ let s = o[r], i = typeof s;
279
+ r === "parent" && i === "object" ? e && (t[r] = e) : r === "source" ? t[r] = s : Array.isArray(s) ? t[r] = s.map((l) => ge(l, t)) : (i === "object" && s !== null && (s = ge(s)), t[r] = s);
280
+ }
281
+ return t;
282
+ }
283
+ function k(o, e) {
284
+ if (e && typeof e.offset < "u")
285
+ return e.offset;
286
+ let t = 1, r = 1, s = 0;
287
+ for (let i = 0; i < o.length; i++) {
288
+ if (r === e.line && t === e.column) {
289
+ s = i;
290
+ break;
291
+ }
292
+ o[i] === `
293
+ ` ? (t = 1, r += 1) : t += 1;
294
+ }
295
+ return s;
296
+ }
297
+ let we = class {
298
+ constructor(e = {}) {
299
+ this.raws = {}, this[M] = !1, this[Gt] = !0;
300
+ for (let t in e)
301
+ if (t === "nodes") {
302
+ this.nodes = [];
303
+ for (let r of e[t])
304
+ typeof r.clone == "function" ? this.append(r.clone()) : this.append(r);
305
+ } else
306
+ this[t] = e[t];
307
+ }
308
+ addToError(e) {
309
+ if (e.postcssNode = this, e.stack && this.source && /\n\s{4}at /.test(e.stack)) {
310
+ let t = this.source;
311
+ e.stack = e.stack.replace(
312
+ /\n\s{4}at /,
313
+ `$&${t.input.from}:${t.start.line}:${t.start.column}$&`
314
+ );
315
+ }
316
+ return e;
317
+ }
318
+ after(e) {
319
+ return this.parent.insertAfter(this, e), this;
320
+ }
321
+ assign(e = {}) {
322
+ for (let t in e)
323
+ this[t] = e[t];
324
+ return this;
325
+ }
326
+ before(e) {
327
+ return this.parent.insertBefore(this, e), this;
328
+ }
329
+ cleanRaws(e) {
330
+ delete this.raws.before, delete this.raws.after, e || delete this.raws.between;
331
+ }
332
+ clone(e = {}) {
333
+ let t = ge(this);
334
+ for (let r in e)
335
+ t[r] = e[r];
336
+ return t;
337
+ }
338
+ cloneAfter(e = {}) {
339
+ let t = this.clone(e);
340
+ return this.parent.insertAfter(this, t), t;
341
+ }
342
+ cloneBefore(e = {}) {
343
+ let t = this.clone(e);
344
+ return this.parent.insertBefore(this, t), t;
345
+ }
346
+ error(e, t = {}) {
347
+ if (this.source) {
348
+ let { end: r, start: s } = this.rangeBy(t);
349
+ return this.source.input.error(
350
+ e,
351
+ { column: s.column, line: s.line },
352
+ { column: r.column, line: r.line },
353
+ t
354
+ );
355
+ }
356
+ return new Wt(e);
357
+ }
358
+ getProxyProcessor() {
359
+ return {
360
+ get(e, t) {
361
+ return t === "proxyOf" ? e : t === "root" ? () => e.root().toProxy() : e[t];
362
+ },
363
+ set(e, t, r) {
364
+ return e[t] === r || (e[t] = r, (t === "prop" || t === "value" || t === "name" || t === "params" || t === "important" || /* c8 ignore next */
365
+ t === "text") && e.markDirty()), !0;
366
+ }
367
+ };
368
+ }
369
+ /* c8 ignore next 3 */
370
+ markClean() {
371
+ this[M] = !0;
372
+ }
373
+ markDirty() {
374
+ if (this[M]) {
375
+ this[M] = !1;
376
+ let e = this;
377
+ for (; e = e.parent; )
378
+ e[M] = !1;
379
+ }
380
+ }
381
+ next() {
382
+ if (!this.parent)
383
+ return;
384
+ let e = this.parent.index(this);
385
+ return this.parent.nodes[e + 1];
386
+ }
387
+ positionBy(e) {
388
+ let t = this.source.start;
389
+ if (e.index)
390
+ t = this.positionInside(e.index);
391
+ else if (e.word) {
392
+ let r = "document" in this.source.input ? this.source.input.document : this.source.input.css, i = r.slice(
393
+ k(r, this.source.start),
394
+ k(r, this.source.end)
395
+ ).indexOf(e.word);
396
+ i !== -1 && (t = this.positionInside(i));
397
+ }
398
+ return t;
399
+ }
400
+ positionInside(e) {
401
+ let t = this.source.start.column, r = this.source.start.line, s = "document" in this.source.input ? this.source.input.document : this.source.input.css, i = k(s, this.source.start), l = i + e;
402
+ for (let a = i; a < l; a++)
403
+ s[a] === `
404
+ ` ? (t = 1, r += 1) : t += 1;
405
+ return { column: t, line: r };
406
+ }
407
+ prev() {
408
+ if (!this.parent)
409
+ return;
410
+ let e = this.parent.index(this);
411
+ return this.parent.nodes[e - 1];
412
+ }
413
+ rangeBy(e) {
414
+ let t = {
415
+ column: this.source.start.column,
416
+ line: this.source.start.line
417
+ }, r = this.source.end ? {
418
+ column: this.source.end.column + 1,
419
+ line: this.source.end.line
420
+ } : {
421
+ column: t.column + 1,
422
+ line: t.line
423
+ };
424
+ if (e.word) {
425
+ let s = "document" in this.source.input ? this.source.input.document : this.source.input.css, l = s.slice(
426
+ k(s, this.source.start),
427
+ k(s, this.source.end)
428
+ ).indexOf(e.word);
429
+ l !== -1 && (t = this.positionInside(l), r = this.positionInside(
430
+ l + e.word.length
431
+ ));
432
+ } else
433
+ e.start ? t = {
434
+ column: e.start.column,
435
+ line: e.start.line
436
+ } : e.index && (t = this.positionInside(e.index)), e.end ? r = {
437
+ column: e.end.column,
438
+ line: e.end.line
439
+ } : typeof e.endIndex == "number" ? r = this.positionInside(e.endIndex) : e.index && (r = this.positionInside(e.index + 1));
440
+ return (r.line < t.line || r.line === t.line && r.column <= t.column) && (r = { column: t.column + 1, line: t.line }), { end: r, start: t };
441
+ }
442
+ raw(e, t) {
443
+ return new jt().raw(this, e, t);
444
+ }
445
+ remove() {
446
+ return this.parent && this.parent.removeChild(this), this.parent = void 0, this;
447
+ }
448
+ replaceWith(...e) {
449
+ if (this.parent) {
450
+ let t = this, r = !1;
451
+ for (let s of e)
452
+ s === this ? r = !0 : r ? (this.parent.insertAfter(t, s), t = s) : this.parent.insertBefore(t, s);
453
+ r || this.remove();
454
+ }
455
+ return this;
456
+ }
457
+ root() {
458
+ let e = this;
459
+ for (; e.parent && e.parent.type !== "document"; )
460
+ e = e.parent;
461
+ return e;
462
+ }
463
+ toJSON(e, t) {
464
+ let r = {}, s = t == null;
465
+ t = t || /* @__PURE__ */ new Map();
466
+ let i = 0;
467
+ for (let l in this) {
468
+ if (!Object.prototype.hasOwnProperty.call(this, l) || l === "parent" || l === "proxyCache")
469
+ continue;
470
+ let a = this[l];
471
+ if (Array.isArray(a))
472
+ r[l] = a.map((n) => typeof n == "object" && n.toJSON ? n.toJSON(null, t) : n);
473
+ else if (typeof a == "object" && a.toJSON)
474
+ r[l] = a.toJSON(null, t);
475
+ else if (l === "source") {
476
+ let n = t.get(a.input);
477
+ n == null && (n = i, t.set(a.input, i), i++), r[l] = {
478
+ end: a.end,
479
+ inputId: n,
480
+ start: a.start
481
+ };
482
+ } else
483
+ r[l] = a;
484
+ }
485
+ return s && (r.inputs = [...t.keys()].map((l) => l.toJSON())), r;
486
+ }
487
+ toProxy() {
488
+ return this.proxyCache || (this.proxyCache = new Proxy(this, this.getProxyProcessor())), this.proxyCache;
489
+ }
490
+ toString(e = Vt) {
491
+ e.stringify && (e = e.stringify);
492
+ let t = "";
493
+ return e(this, (r) => {
494
+ t += r;
495
+ }), t;
496
+ }
497
+ warn(e, t, r) {
498
+ let s = { node: this };
499
+ for (let i in r)
500
+ s[i] = r[i];
501
+ return e.warn(t, s);
502
+ }
503
+ get proxyOf() {
504
+ return this;
505
+ }
506
+ };
507
+ var se = we;
508
+ we.default = we;
509
+ let Jt = se, ye = class extends Jt {
510
+ constructor(e) {
511
+ super(e), this.type = "comment";
512
+ }
513
+ };
514
+ var ie = ye;
515
+ ye.default = ye;
516
+ let Ht = se, be = class extends Ht {
517
+ constructor(e) {
518
+ e && typeof e.value < "u" && typeof e.value != "string" && (e = { ...e, value: String(e.value) }), super(e), this.type = "decl";
519
+ }
520
+ get variable() {
521
+ return this.prop.startsWith("--") || this.prop[0] === "$";
522
+ }
523
+ };
524
+ var ne = be;
525
+ be.default = be;
526
+ let st = ie, it = ne, Yt = se, { isClean: nt, my: ot } = D, Pe, lt, at, Me;
527
+ function ut(o) {
528
+ return o.map((e) => (e.nodes && (e.nodes = ut(e.nodes)), delete e.source, e));
529
+ }
530
+ function ht(o) {
531
+ if (o[nt] = !1, o.proxyOf.nodes)
532
+ for (let e of o.proxyOf.nodes)
533
+ ht(e);
534
+ }
535
+ let x = class extends Yt {
536
+ append(...e) {
537
+ for (let t of e) {
538
+ let r = this.normalize(t, this.last);
539
+ for (let s of r)
540
+ this.proxyOf.nodes.push(s);
541
+ }
542
+ return this.markDirty(), this;
543
+ }
544
+ cleanRaws(e) {
545
+ if (super.cleanRaws(e), this.nodes)
546
+ for (let t of this.nodes)
547
+ t.cleanRaws(e);
548
+ }
549
+ each(e) {
550
+ if (!this.proxyOf.nodes)
551
+ return;
552
+ let t = this.getIterator(), r, s;
553
+ for (; this.indexes[t] < this.proxyOf.nodes.length && (r = this.indexes[t], s = e(this.proxyOf.nodes[r], r), s !== !1); )
554
+ this.indexes[t] += 1;
555
+ return delete this.indexes[t], s;
556
+ }
557
+ every(e) {
558
+ return this.nodes.every(e);
559
+ }
560
+ getIterator() {
561
+ this.lastEach || (this.lastEach = 0), this.indexes || (this.indexes = {}), this.lastEach += 1;
562
+ let e = this.lastEach;
563
+ return this.indexes[e] = 0, e;
564
+ }
565
+ getProxyProcessor() {
566
+ return {
567
+ get(e, t) {
568
+ return t === "proxyOf" ? e : e[t] ? t === "each" || typeof t == "string" && t.startsWith("walk") ? (...r) => e[t](
569
+ ...r.map((s) => typeof s == "function" ? (i, l) => s(i.toProxy(), l) : s)
570
+ ) : t === "every" || t === "some" ? (r) => e[t](
571
+ (s, ...i) => r(s.toProxy(), ...i)
572
+ ) : t === "root" ? () => e.root().toProxy() : t === "nodes" ? e.nodes.map((r) => r.toProxy()) : t === "first" || t === "last" ? e[t].toProxy() : e[t] : e[t];
573
+ },
574
+ set(e, t, r) {
575
+ return e[t] === r || (e[t] = r, (t === "name" || t === "params" || t === "selector") && e.markDirty()), !0;
576
+ }
577
+ };
578
+ }
579
+ index(e) {
580
+ return typeof e == "number" ? e : (e.proxyOf && (e = e.proxyOf), this.proxyOf.nodes.indexOf(e));
581
+ }
582
+ insertAfter(e, t) {
583
+ let r = this.index(e), s = this.normalize(t, this.proxyOf.nodes[r]).reverse();
584
+ r = this.index(e);
585
+ for (let l of s)
586
+ this.proxyOf.nodes.splice(r + 1, 0, l);
587
+ let i;
588
+ for (let l in this.indexes)
589
+ i = this.indexes[l], r < i && (this.indexes[l] = i + s.length);
590
+ return this.markDirty(), this;
591
+ }
592
+ insertBefore(e, t) {
593
+ let r = this.index(e), s = r === 0 ? "prepend" : !1, i = this.normalize(
594
+ t,
595
+ this.proxyOf.nodes[r],
596
+ s
597
+ ).reverse();
598
+ r = this.index(e);
599
+ for (let a of i)
600
+ this.proxyOf.nodes.splice(r, 0, a);
601
+ let l;
602
+ for (let a in this.indexes)
603
+ l = this.indexes[a], r <= l && (this.indexes[a] = l + i.length);
604
+ return this.markDirty(), this;
605
+ }
606
+ normalize(e, t) {
607
+ if (typeof e == "string")
608
+ e = ut(lt(e).nodes);
609
+ else if (typeof e > "u")
610
+ e = [];
611
+ else if (Array.isArray(e)) {
612
+ e = e.slice(0);
613
+ for (let s of e)
614
+ s.parent && s.parent.removeChild(s, "ignore");
615
+ } else if (e.type === "root" && this.type !== "document") {
616
+ e = e.nodes.slice(0);
617
+ for (let s of e)
618
+ s.parent && s.parent.removeChild(s, "ignore");
619
+ } else if (e.type)
620
+ e = [e];
621
+ else if (e.prop) {
622
+ if (typeof e.value > "u")
623
+ throw new Error("Value field is missed in node creation");
624
+ typeof e.value != "string" && (e.value = String(e.value)), e = [new it(e)];
625
+ } else if (e.selector || e.selectors)
626
+ e = [new Me(e)];
627
+ else if (e.name)
628
+ e = [new Pe(e)];
629
+ else if (e.text)
630
+ e = [new st(e)];
631
+ else
632
+ throw new Error("Unknown node type in node creation");
633
+ return e.map((s) => (s[ot] || x.rebuild(s), s = s.proxyOf, s.parent && s.parent.removeChild(s), s[nt] && ht(s), s.raws || (s.raws = {}), typeof s.raws.before > "u" && t && typeof t.raws.before < "u" && (s.raws.before = t.raws.before.replace(/\S/g, "")), s.parent = this.proxyOf, s));
634
+ }
635
+ prepend(...e) {
636
+ e = e.reverse();
637
+ for (let t of e) {
638
+ let r = this.normalize(t, this.first, "prepend").reverse();
639
+ for (let s of r)
640
+ this.proxyOf.nodes.unshift(s);
641
+ for (let s in this.indexes)
642
+ this.indexes[s] = this.indexes[s] + r.length;
643
+ }
644
+ return this.markDirty(), this;
645
+ }
646
+ push(e) {
647
+ return e.parent = this, this.proxyOf.nodes.push(e), this;
648
+ }
649
+ removeAll() {
650
+ for (let e of this.proxyOf.nodes)
651
+ e.parent = void 0;
652
+ return this.proxyOf.nodes = [], this.markDirty(), this;
653
+ }
654
+ removeChild(e) {
655
+ e = this.index(e), this.proxyOf.nodes[e].parent = void 0, this.proxyOf.nodes.splice(e, 1);
656
+ let t;
657
+ for (let r in this.indexes)
658
+ t = this.indexes[r], t >= e && (this.indexes[r] = t - 1);
659
+ return this.markDirty(), this;
660
+ }
661
+ replaceValues(e, t, r) {
662
+ return r || (r = t, t = {}), this.walkDecls((s) => {
663
+ t.props && !t.props.includes(s.prop) || t.fast && !s.value.includes(t.fast) || (s.value = s.value.replace(e, r));
664
+ }), this.markDirty(), this;
665
+ }
666
+ some(e) {
667
+ return this.nodes.some(e);
668
+ }
669
+ walk(e) {
670
+ return this.each((t, r) => {
671
+ let s;
672
+ try {
673
+ s = e(t, r);
674
+ } catch (i) {
675
+ throw t.addToError(i);
676
+ }
677
+ return s !== !1 && t.walk && (s = t.walk(e)), s;
678
+ });
679
+ }
680
+ walkAtRules(e, t) {
681
+ return t ? e instanceof RegExp ? this.walk((r, s) => {
682
+ if (r.type === "atrule" && e.test(r.name))
683
+ return t(r, s);
684
+ }) : this.walk((r, s) => {
685
+ if (r.type === "atrule" && r.name === e)
686
+ return t(r, s);
687
+ }) : (t = e, this.walk((r, s) => {
688
+ if (r.type === "atrule")
689
+ return t(r, s);
690
+ }));
691
+ }
692
+ walkComments(e) {
693
+ return this.walk((t, r) => {
694
+ if (t.type === "comment")
695
+ return e(t, r);
696
+ });
697
+ }
698
+ walkDecls(e, t) {
699
+ return t ? e instanceof RegExp ? this.walk((r, s) => {
700
+ if (r.type === "decl" && e.test(r.prop))
701
+ return t(r, s);
702
+ }) : this.walk((r, s) => {
703
+ if (r.type === "decl" && r.prop === e)
704
+ return t(r, s);
705
+ }) : (t = e, this.walk((r, s) => {
706
+ if (r.type === "decl")
707
+ return t(r, s);
708
+ }));
709
+ }
710
+ walkRules(e, t) {
711
+ return t ? e instanceof RegExp ? this.walk((r, s) => {
712
+ if (r.type === "rule" && e.test(r.selector))
713
+ return t(r, s);
714
+ }) : this.walk((r, s) => {
715
+ if (r.type === "rule" && r.selector === e)
716
+ return t(r, s);
717
+ }) : (t = e, this.walk((r, s) => {
718
+ if (r.type === "rule")
719
+ return t(r, s);
720
+ }));
721
+ }
722
+ get first() {
723
+ if (this.proxyOf.nodes)
724
+ return this.proxyOf.nodes[0];
725
+ }
726
+ get last() {
727
+ if (this.proxyOf.nodes)
728
+ return this.proxyOf.nodes[this.proxyOf.nodes.length - 1];
729
+ }
730
+ };
731
+ x.registerParse = (o) => {
732
+ lt = o;
733
+ };
734
+ x.registerRule = (o) => {
735
+ Me = o;
736
+ };
737
+ x.registerAtRule = (o) => {
738
+ Pe = o;
739
+ };
740
+ x.registerRoot = (o) => {
741
+ at = o;
742
+ };
743
+ var v = x;
744
+ x.default = x;
745
+ x.rebuild = (o) => {
746
+ o.type === "atrule" ? Object.setPrototypeOf(o, Pe.prototype) : o.type === "rule" ? Object.setPrototypeOf(o, Me.prototype) : o.type === "decl" ? Object.setPrototypeOf(o, it.prototype) : o.type === "comment" ? Object.setPrototypeOf(o, st.prototype) : o.type === "root" && Object.setPrototypeOf(o, at.prototype), o[ot] = !0, o.nodes && o.nodes.forEach((e) => {
747
+ x.rebuild(e);
748
+ });
749
+ };
750
+ let ft = v, X = class extends ft {
751
+ constructor(e) {
752
+ super(e), this.type = "atrule";
753
+ }
754
+ append(...e) {
755
+ return this.proxyOf.nodes || (this.nodes = []), super.append(...e);
756
+ }
757
+ prepend(...e) {
758
+ return this.proxyOf.nodes || (this.nodes = []), super.prepend(...e);
759
+ }
760
+ };
761
+ var ke = X;
762
+ X.default = X;
763
+ ft.registerAtRule(X);
764
+ let Qt = v, ct, pt, U = class extends Qt {
765
+ constructor(e) {
766
+ super({ type: "document", ...e }), this.nodes || (this.nodes = []);
767
+ }
768
+ toResult(e = {}) {
769
+ return new ct(new pt(), this, e).stringify();
770
+ }
771
+ };
772
+ U.registerLazyResult = (o) => {
773
+ ct = o;
774
+ };
775
+ U.registerProcessor = (o) => {
776
+ pt = o;
777
+ };
778
+ var Ie = U;
779
+ U.default = U;
780
+ let qt = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Kt = (o, e = 21) => (t = e) => {
781
+ let r = "", s = t | 0;
782
+ for (; s--; )
783
+ r += o[Math.random() * o.length | 0];
784
+ return r;
785
+ }, Xt = (o = 21) => {
786
+ let e = "", t = o | 0;
787
+ for (; t--; )
788
+ e += qt[Math.random() * 64 | 0];
789
+ return e;
790
+ };
791
+ const Zt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
792
+ __proto__: null,
793
+ customAlphabet: Kt,
794
+ nanoid: Xt
795
+ }, Symbol.toStringTag, { value: "Module" })), er = /* @__PURE__ */ Dt(Zt);
796
+ let { existsSync: tr, readFileSync: rr } = y, { dirname: he, join: sr } = y, { SourceMapConsumer: Te, SourceMapGenerator: We } = y;
797
+ function ir(o) {
798
+ return Buffer ? Buffer.from(o, "base64").toString() : window.atob(o);
799
+ }
800
+ let xe = class {
801
+ constructor(e, t) {
802
+ if (t.map === !1)
803
+ return;
804
+ this.loadAnnotation(e), this.inline = this.startWith(this.annotation, "data:");
805
+ let r = t.map ? t.map.prev : void 0, s = this.loadMap(t.from, r);
806
+ !this.mapFile && t.from && (this.mapFile = t.from), this.mapFile && (this.root = he(this.mapFile)), s && (this.text = s);
807
+ }
808
+ consumer() {
809
+ return this.consumerCache || (this.consumerCache = new Te(this.text)), this.consumerCache;
810
+ }
811
+ decodeInline(e) {
812
+ let t = /^data:application\/json;charset=utf-?8;base64,/, r = /^data:application\/json;base64,/, s = /^data:application\/json;charset=utf-?8,/, i = /^data:application\/json,/, l = e.match(s) || e.match(i);
813
+ if (l)
814
+ return decodeURIComponent(e.substr(l[0].length));
815
+ let a = e.match(t) || e.match(r);
816
+ if (a)
817
+ return ir(e.substr(a[0].length));
818
+ let n = e.match(/data:application\/json;([^,]+),/)[1];
819
+ throw new Error("Unsupported source map encoding " + n);
820
+ }
821
+ getAnnotationURL(e) {
822
+ return e.replace(/^\/\*\s*# sourceMappingURL=/, "").trim();
823
+ }
824
+ isMap(e) {
825
+ return typeof e != "object" ? !1 : typeof e.mappings == "string" || typeof e._mappings == "string" || Array.isArray(e.sections);
826
+ }
827
+ loadAnnotation(e) {
828
+ let t = e.match(/\/\*\s*# sourceMappingURL=/g);
829
+ if (!t)
830
+ return;
831
+ let r = e.lastIndexOf(t.pop()), s = e.indexOf("*/", r);
832
+ r > -1 && s > -1 && (this.annotation = this.getAnnotationURL(e.substring(r, s)));
833
+ }
834
+ loadFile(e) {
835
+ if (this.root = he(e), tr(e))
836
+ return this.mapFile = e, rr(e, "utf-8").toString().trim();
837
+ }
838
+ loadMap(e, t) {
839
+ if (t === !1)
840
+ return !1;
841
+ if (t) {
842
+ if (typeof t == "string")
843
+ return t;
844
+ if (typeof t == "function") {
845
+ let r = t(e);
846
+ if (r) {
847
+ let s = this.loadFile(r);
848
+ if (!s)
849
+ throw new Error(
850
+ "Unable to load previous source map: " + r.toString()
851
+ );
852
+ return s;
853
+ }
854
+ } else {
855
+ if (t instanceof Te)
856
+ return We.fromSourceMap(t).toString();
857
+ if (t instanceof We)
858
+ return t.toString();
859
+ if (this.isMap(t))
860
+ return JSON.stringify(t);
861
+ throw new Error(
862
+ "Unsupported previous source map format: " + t.toString()
863
+ );
864
+ }
865
+ } else {
866
+ if (this.inline)
867
+ return this.decodeInline(this.annotation);
868
+ if (this.annotation) {
869
+ let r = this.annotation;
870
+ return e && (r = sr(he(e), r)), this.loadFile(r);
871
+ }
872
+ }
873
+ }
874
+ startWith(e, t) {
875
+ return e ? e.substr(0, t.length) === t : !1;
876
+ }
877
+ withContent() {
878
+ return !!(this.consumer().sourcesContent && this.consumer().sourcesContent.length > 0);
879
+ }
880
+ };
881
+ var mt = xe;
882
+ xe.default = xe;
883
+ let { nanoid: nr } = er, { isAbsolute: Se, resolve: Ce } = y, { SourceMapConsumer: or, SourceMapGenerator: lr } = y, { fileURLToPath: je, pathToFileURL: F } = y, Ve = Ae, ar = mt, fe = y, ce = Symbol("fromOffsetCache"), ur = Boolean(or && lr), Ge = Boolean(Ce && Se), Z = class {
884
+ constructor(e, t = {}) {
885
+ if (e === null || typeof e > "u" || typeof e == "object" && !e.toString)
886
+ throw new Error(`PostCSS received ${e} instead of CSS string`);
887
+ if (this.css = e.toString(), this.css[0] === "\uFEFF" || this.css[0] === "￾" ? (this.hasBOM = !0, this.css = this.css.slice(1)) : this.hasBOM = !1, this.document = this.css, t.document && (this.document = t.document.toString()), t.from && (!Ge || /^\w+:\/\//.test(t.from) || Se(t.from) ? this.file = t.from : this.file = Ce(t.from)), Ge && ur) {
888
+ let r = new ar(this.css, t);
889
+ if (r.text) {
890
+ this.map = r;
891
+ let s = r.consumer().file;
892
+ !this.file && s && (this.file = this.mapResolve(s));
893
+ }
894
+ }
895
+ this.file || (this.id = "<input css " + nr(6) + ">"), this.map && (this.map.file = this.from);
896
+ }
897
+ error(e, t, r, s = {}) {
898
+ let i, l, a;
899
+ if (t && typeof t == "object") {
900
+ let u = t, h = r;
901
+ if (typeof u.offset == "number") {
902
+ let m = this.fromOffset(u.offset);
903
+ t = m.line, r = m.col;
904
+ } else
905
+ t = u.line, r = u.column;
906
+ if (typeof h.offset == "number") {
907
+ let m = this.fromOffset(h.offset);
908
+ l = m.line, i = m.col;
909
+ } else
910
+ l = h.line, i = h.column;
911
+ } else if (!r) {
912
+ let u = this.fromOffset(t);
913
+ t = u.line, r = u.col;
914
+ }
915
+ let n = this.origin(t, r, l, i);
916
+ return n ? a = new Ve(
917
+ e,
918
+ n.endLine === void 0 ? n.line : { column: n.column, line: n.line },
919
+ n.endLine === void 0 ? n.column : { column: n.endColumn, line: n.endLine },
920
+ n.source,
921
+ n.file,
922
+ s.plugin
923
+ ) : a = new Ve(
924
+ e,
925
+ l === void 0 ? t : { column: r, line: t },
926
+ l === void 0 ? r : { column: i, line: l },
927
+ this.css,
928
+ this.file,
929
+ s.plugin
930
+ ), a.input = { column: r, endColumn: i, endLine: l, line: t, source: this.css }, this.file && (F && (a.input.url = F(this.file).toString()), a.input.file = this.file), a;
931
+ }
932
+ fromOffset(e) {
933
+ let t, r;
934
+ if (this[ce])
935
+ r = this[ce];
936
+ else {
937
+ let i = this.css.split(`
938
+ `);
939
+ r = new Array(i.length);
940
+ let l = 0;
941
+ for (let a = 0, n = i.length; a < n; a++)
942
+ r[a] = l, l += i[a].length + 1;
943
+ this[ce] = r;
944
+ }
945
+ t = r[r.length - 1];
946
+ let s = 0;
947
+ if (e >= t)
948
+ s = r.length - 1;
949
+ else {
950
+ let i = r.length - 2, l;
951
+ for (; s < i; )
952
+ if (l = s + (i - s >> 1), e < r[l])
953
+ i = l - 1;
954
+ else if (e >= r[l + 1])
955
+ s = l + 1;
956
+ else {
957
+ s = l;
958
+ break;
959
+ }
960
+ }
961
+ return {
962
+ col: e - r[s] + 1,
963
+ line: s + 1
964
+ };
965
+ }
966
+ mapResolve(e) {
967
+ return /^\w+:\/\//.test(e) ? e : Ce(this.map.consumer().sourceRoot || this.map.root || ".", e);
968
+ }
969
+ origin(e, t, r, s) {
970
+ if (!this.map)
971
+ return !1;
972
+ let i = this.map.consumer(), l = i.originalPositionFor({ column: t, line: e });
973
+ if (!l.source)
974
+ return !1;
975
+ let a;
976
+ typeof r == "number" && (a = i.originalPositionFor({ column: s, line: r }));
977
+ let n;
978
+ Se(l.source) ? n = F(l.source) : n = new URL(
979
+ l.source,
980
+ this.map.consumer().sourceRoot || F(this.map.mapFile)
981
+ );
982
+ let u = {
983
+ column: l.column,
984
+ endColumn: a && a.column,
985
+ endLine: a && a.line,
986
+ line: l.line,
987
+ url: n.toString()
988
+ };
989
+ if (n.protocol === "file:")
990
+ if (je)
991
+ u.file = je(n);
992
+ else
993
+ throw new Error("file: protocol is not available in this PostCSS build");
994
+ let h = i.sourceContentFor(l.source);
995
+ return h && (u.source = h), u;
996
+ }
997
+ toJSON() {
998
+ let e = {};
999
+ for (let t of ["hasBOM", "css", "file", "id"])
1000
+ this[t] != null && (e[t] = this[t]);
1001
+ return this.map && (e.map = { ...this.map }, e.map.consumerCache && (e.map.consumerCache = void 0)), e;
1002
+ }
1003
+ get from() {
1004
+ return this.file || this.id;
1005
+ }
1006
+ };
1007
+ var oe = Z;
1008
+ Z.default = Z;
1009
+ fe && fe.registerInput && fe.registerInput(Z);
1010
+ let dt = v, gt, wt, E = class extends dt {
1011
+ constructor(e) {
1012
+ super(e), this.type = "root", this.nodes || (this.nodes = []);
1013
+ }
1014
+ normalize(e, t, r) {
1015
+ let s = super.normalize(e);
1016
+ if (t) {
1017
+ if (r === "prepend")
1018
+ this.nodes.length > 1 ? t.raws.before = this.nodes[1].raws.before : delete t.raws.before;
1019
+ else if (this.first !== t)
1020
+ for (let i of s)
1021
+ i.raws.before = t.raws.before;
1022
+ }
1023
+ return s;
1024
+ }
1025
+ removeChild(e, t) {
1026
+ let r = this.index(e);
1027
+ return !t && r === 0 && this.nodes.length > 1 && (this.nodes[1].raws.before = this.nodes[r].raws.before), super.removeChild(e);
1028
+ }
1029
+ toResult(e = {}) {
1030
+ return new gt(new wt(), this, e).stringify();
1031
+ }
1032
+ };
1033
+ E.registerLazyResult = (o) => {
1034
+ gt = o;
1035
+ };
1036
+ E.registerProcessor = (o) => {
1037
+ wt = o;
1038
+ };
1039
+ var z = E;
1040
+ E.default = E;
1041
+ dt.registerRoot(E);
1042
+ let N = {
1043
+ comma(o) {
1044
+ return N.split(o, [","], !0);
1045
+ },
1046
+ space(o) {
1047
+ let e = [" ", `
1048
+ `, " "];
1049
+ return N.split(o, e);
1050
+ },
1051
+ split(o, e, t) {
1052
+ let r = [], s = "", i = !1, l = 0, a = !1, n = "", u = !1;
1053
+ for (let h of o)
1054
+ u ? u = !1 : h === "\\" ? u = !0 : a ? h === n && (a = !1) : h === '"' || h === "'" ? (a = !0, n = h) : h === "(" ? l += 1 : h === ")" ? l > 0 && (l -= 1) : l === 0 && e.includes(h) && (i = !0), i ? (s !== "" && r.push(s.trim()), s = "", i = !1) : s += h;
1055
+ return (t || s !== "") && r.push(s.trim()), r;
1056
+ }
1057
+ };
1058
+ var yt = N;
1059
+ N.default = N;
1060
+ let bt = v, hr = yt, ee = class extends bt {
1061
+ constructor(e) {
1062
+ super(e), this.type = "rule", this.nodes || (this.nodes = []);
1063
+ }
1064
+ get selectors() {
1065
+ return hr.comma(this.selector);
1066
+ }
1067
+ set selectors(e) {
1068
+ let t = this.selector ? this.selector.match(/,\s*/) : null, r = t ? t[0] : "," + this.raw("between", "beforeOpen");
1069
+ this.selector = e.join(r);
1070
+ }
1071
+ };
1072
+ var Le = ee;
1073
+ ee.default = ee;
1074
+ bt.registerRule(ee);
1075
+ let fr = ke, cr = ie, pr = ne, mr = oe, dr = mt, gr = z, wr = Le;
1076
+ function _(o, e) {
1077
+ if (Array.isArray(o))
1078
+ return o.map((s) => _(s));
1079
+ let { inputs: t, ...r } = o;
1080
+ if (t) {
1081
+ e = [];
1082
+ for (let s of t) {
1083
+ let i = { ...s, __proto__: mr.prototype };
1084
+ i.map && (i.map = {
1085
+ ...i.map,
1086
+ __proto__: dr.prototype
1087
+ }), e.push(i);
1088
+ }
1089
+ }
1090
+ if (r.nodes && (r.nodes = o.nodes.map((s) => _(s, e))), r.source) {
1091
+ let { inputId: s, ...i } = r.source;
1092
+ r.source = i, s != null && (r.source.input = e[s]);
1093
+ }
1094
+ if (r.type === "root")
1095
+ return new gr(r);
1096
+ if (r.type === "decl")
1097
+ return new pr(r);
1098
+ if (r.type === "rule")
1099
+ return new wr(r);
1100
+ if (r.type === "comment")
1101
+ return new cr(r);
1102
+ if (r.type === "atrule")
1103
+ return new fr(r);
1104
+ throw new Error("Unknown node type: " + o.type);
1105
+ }
1106
+ var yr = _;
1107
+ _.default = _;
1108
+ let { dirname: Y, relative: xt, resolve: St, sep: Ct } = y, { SourceMapConsumer: vt, SourceMapGenerator: Q } = y, { pathToFileURL: Je } = y, br = oe, xr = Boolean(vt && Q), Sr = Boolean(Y && St && xt && Ct), Cr = class {
1109
+ constructor(e, t, r, s) {
1110
+ this.stringify = e, this.mapOpts = r.map || {}, this.root = t, this.opts = r, this.css = s, this.originalCSS = s, this.usesFileUrls = !this.mapOpts.from && this.mapOpts.absolute, this.memoizedFileURLs = /* @__PURE__ */ new Map(), this.memoizedPaths = /* @__PURE__ */ new Map(), this.memoizedURLs = /* @__PURE__ */ new Map();
1111
+ }
1112
+ addAnnotation() {
1113
+ let e;
1114
+ this.isInline() ? e = "data:application/json;base64," + this.toBase64(this.map.toString()) : typeof this.mapOpts.annotation == "string" ? e = this.mapOpts.annotation : typeof this.mapOpts.annotation == "function" ? e = this.mapOpts.annotation(this.opts.to, this.root) : e = this.outputFile() + ".map";
1115
+ let t = `
1116
+ `;
1117
+ this.css.includes(`\r
1118
+ `) && (t = `\r
1119
+ `), this.css += t + "/*# sourceMappingURL=" + e + " */";
1120
+ }
1121
+ applyPrevMaps() {
1122
+ for (let e of this.previous()) {
1123
+ let t = this.toUrl(this.path(e.file)), r = e.root || Y(e.file), s;
1124
+ this.mapOpts.sourcesContent === !1 ? (s = new vt(e.text), s.sourcesContent && (s.sourcesContent = null)) : s = e.consumer(), this.map.applySourceMap(s, t, this.toUrl(this.path(r)));
1125
+ }
1126
+ }
1127
+ clearAnnotation() {
1128
+ if (this.mapOpts.annotation !== !1)
1129
+ if (this.root) {
1130
+ let e;
1131
+ for (let t = this.root.nodes.length - 1; t >= 0; t--)
1132
+ e = this.root.nodes[t], e.type === "comment" && e.text.startsWith("# sourceMappingURL=") && this.root.removeChild(t);
1133
+ } else
1134
+ this.css && (this.css = this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm, ""));
1135
+ }
1136
+ generate() {
1137
+ if (this.clearAnnotation(), Sr && xr && this.isMap())
1138
+ return this.generateMap();
1139
+ {
1140
+ let e = "";
1141
+ return this.stringify(this.root, (t) => {
1142
+ e += t;
1143
+ }), [e];
1144
+ }
1145
+ }
1146
+ generateMap() {
1147
+ if (this.root)
1148
+ this.generateString();
1149
+ else if (this.previous().length === 1) {
1150
+ let e = this.previous()[0].consumer();
1151
+ e.file = this.outputFile(), this.map = Q.fromSourceMap(e, {
1152
+ ignoreInvalidMapping: !0
1153
+ });
1154
+ } else
1155
+ this.map = new Q({
1156
+ file: this.outputFile(),
1157
+ ignoreInvalidMapping: !0
1158
+ }), this.map.addMapping({
1159
+ generated: { column: 0, line: 1 },
1160
+ original: { column: 0, line: 1 },
1161
+ source: this.opts.from ? this.toUrl(this.path(this.opts.from)) : "<no source>"
1162
+ });
1163
+ return this.isSourcesContent() && this.setSourcesContent(), this.root && this.previous().length > 0 && this.applyPrevMaps(), this.isAnnotation() && this.addAnnotation(), this.isInline() ? [this.css] : [this.css, this.map];
1164
+ }
1165
+ generateString() {
1166
+ this.css = "", this.map = new Q({
1167
+ file: this.outputFile(),
1168
+ ignoreInvalidMapping: !0
1169
+ });
1170
+ let e = 1, t = 1, r = "<no source>", s = {
1171
+ generated: { column: 0, line: 0 },
1172
+ original: { column: 0, line: 0 },
1173
+ source: ""
1174
+ }, i, l;
1175
+ this.stringify(this.root, (a, n, u) => {
1176
+ if (this.css += a, n && u !== "end" && (s.generated.line = e, s.generated.column = t - 1, n.source && n.source.start ? (s.source = this.sourcePath(n), s.original.line = n.source.start.line, s.original.column = n.source.start.column - 1, this.map.addMapping(s)) : (s.source = r, s.original.line = 1, s.original.column = 0, this.map.addMapping(s))), l = a.match(/\n/g), l ? (e += l.length, i = a.lastIndexOf(`
1177
+ `), t = a.length - i) : t += a.length, n && u !== "start") {
1178
+ let h = n.parent || { raws: {} };
1179
+ (!(n.type === "decl" || n.type === "atrule" && !n.nodes) || n !== h.last || h.raws.semicolon) && (n.source && n.source.end ? (s.source = this.sourcePath(n), s.original.line = n.source.end.line, s.original.column = n.source.end.column - 1, s.generated.line = e, s.generated.column = t - 2, this.map.addMapping(s)) : (s.source = r, s.original.line = 1, s.original.column = 0, s.generated.line = e, s.generated.column = t - 1, this.map.addMapping(s)));
1180
+ }
1181
+ });
1182
+ }
1183
+ isAnnotation() {
1184
+ return this.isInline() ? !0 : typeof this.mapOpts.annotation < "u" ? this.mapOpts.annotation : this.previous().length ? this.previous().some((e) => e.annotation) : !0;
1185
+ }
1186
+ isInline() {
1187
+ if (typeof this.mapOpts.inline < "u")
1188
+ return this.mapOpts.inline;
1189
+ let e = this.mapOpts.annotation;
1190
+ return typeof e < "u" && e !== !0 ? !1 : this.previous().length ? this.previous().some((t) => t.inline) : !0;
1191
+ }
1192
+ isMap() {
1193
+ return typeof this.opts.map < "u" ? !!this.opts.map : this.previous().length > 0;
1194
+ }
1195
+ isSourcesContent() {
1196
+ return typeof this.mapOpts.sourcesContent < "u" ? this.mapOpts.sourcesContent : this.previous().length ? this.previous().some((e) => e.withContent()) : !0;
1197
+ }
1198
+ outputFile() {
1199
+ return this.opts.to ? this.path(this.opts.to) : this.opts.from ? this.path(this.opts.from) : "to.css";
1200
+ }
1201
+ path(e) {
1202
+ if (this.mapOpts.absolute || e.charCodeAt(0) === 60 || /^\w+:\/\//.test(e))
1203
+ return e;
1204
+ let t = this.memoizedPaths.get(e);
1205
+ if (t)
1206
+ return t;
1207
+ let r = this.opts.to ? Y(this.opts.to) : ".";
1208
+ typeof this.mapOpts.annotation == "string" && (r = Y(St(r, this.mapOpts.annotation)));
1209
+ let s = xt(r, e);
1210
+ return this.memoizedPaths.set(e, s), s;
1211
+ }
1212
+ previous() {
1213
+ if (!this.previousMaps)
1214
+ if (this.previousMaps = [], this.root)
1215
+ this.root.walk((e) => {
1216
+ if (e.source && e.source.input.map) {
1217
+ let t = e.source.input.map;
1218
+ this.previousMaps.includes(t) || this.previousMaps.push(t);
1219
+ }
1220
+ });
1221
+ else {
1222
+ let e = new br(this.originalCSS, this.opts);
1223
+ e.map && this.previousMaps.push(e.map);
1224
+ }
1225
+ return this.previousMaps;
1226
+ }
1227
+ setSourcesContent() {
1228
+ let e = {};
1229
+ if (this.root)
1230
+ this.root.walk((t) => {
1231
+ if (t.source) {
1232
+ let r = t.source.input.from;
1233
+ if (r && !e[r]) {
1234
+ e[r] = !0;
1235
+ let s = this.usesFileUrls ? this.toFileUrl(r) : this.toUrl(this.path(r));
1236
+ this.map.setSourceContent(s, t.source.input.css);
1237
+ }
1238
+ }
1239
+ });
1240
+ else if (this.css) {
1241
+ let t = this.opts.from ? this.toUrl(this.path(this.opts.from)) : "<no source>";
1242
+ this.map.setSourceContent(t, this.css);
1243
+ }
1244
+ }
1245
+ sourcePath(e) {
1246
+ return this.mapOpts.from ? this.toUrl(this.mapOpts.from) : this.usesFileUrls ? this.toFileUrl(e.source.input.from) : this.toUrl(this.path(e.source.input.from));
1247
+ }
1248
+ toBase64(e) {
1249
+ return Buffer ? Buffer.from(e).toString("base64") : window.btoa(unescape(encodeURIComponent(e)));
1250
+ }
1251
+ toFileUrl(e) {
1252
+ let t = this.memoizedFileURLs.get(e);
1253
+ if (t)
1254
+ return t;
1255
+ if (Je) {
1256
+ let r = Je(e).toString();
1257
+ return this.memoizedFileURLs.set(e, r), r;
1258
+ } else
1259
+ throw new Error(
1260
+ "`map.absolute` option is not available in this PostCSS build"
1261
+ );
1262
+ }
1263
+ toUrl(e) {
1264
+ let t = this.memoizedURLs.get(e);
1265
+ if (t)
1266
+ return t;
1267
+ Ct === "\\" && (e = e.replace(/\\/g, "/"));
1268
+ let r = encodeURI(e).replace(/[#?]/g, encodeURIComponent);
1269
+ return this.memoizedURLs.set(e, r), r;
1270
+ }
1271
+ };
1272
+ var Ot = Cr;
1273
+ const pe = "'".charCodeAt(0), He = '"'.charCodeAt(0), T = "\\".charCodeAt(0), Ye = "/".charCodeAt(0), W = `
1274
+ `.charCodeAt(0), I = " ".charCodeAt(0), j = "\f".charCodeAt(0), V = " ".charCodeAt(0), G = "\r".charCodeAt(0), vr = "[".charCodeAt(0), Or = "]".charCodeAt(0), Rr = "(".charCodeAt(0), $r = ")".charCodeAt(0), Er = "{".charCodeAt(0), Ar = "}".charCodeAt(0), Pr = ";".charCodeAt(0), Mr = "*".charCodeAt(0), kr = ":".charCodeAt(0), Ir = "@".charCodeAt(0), J = /[\t\n\f\r "#'()/;[\\\]{}]/g, H = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, Lr = /.[\r\n"'(/\\]/, Qe = /[\da-f]/i;
1275
+ var Ur = function(e, t = {}) {
1276
+ let r = e.css.valueOf(), s = t.ignoreErrors, i, l, a, n, u, h, m, d, g, O, S = r.length, f = 0, P = [], R = [];
1277
+ function le() {
1278
+ return f;
1279
+ }
1280
+ function ae($) {
1281
+ throw e.error("Unclosed " + $, f);
1282
+ }
1283
+ function Nt() {
1284
+ return R.length === 0 && f >= S;
1285
+ }
1286
+ function _t($) {
1287
+ if (R.length)
1288
+ return R.pop();
1289
+ if (f >= S)
1290
+ return;
1291
+ let ue = $ ? $.ignoreUnclosed : !1;
1292
+ switch (i = r.charCodeAt(f), i) {
1293
+ case W:
1294
+ case I:
1295
+ case V:
1296
+ case G:
1297
+ case j: {
1298
+ n = f;
1299
+ do
1300
+ n += 1, i = r.charCodeAt(n);
1301
+ while (i === I || i === W || i === V || i === G || i === j);
1302
+ h = ["space", r.slice(f, n)], f = n - 1;
1303
+ break;
1304
+ }
1305
+ case vr:
1306
+ case Or:
1307
+ case Er:
1308
+ case Ar:
1309
+ case kr:
1310
+ case Pr:
1311
+ case $r: {
1312
+ let Be = String.fromCharCode(i);
1313
+ h = [Be, Be, f];
1314
+ break;
1315
+ }
1316
+ case Rr: {
1317
+ if (O = P.length ? P.pop()[1] : "", g = r.charCodeAt(f + 1), O === "url" && g !== pe && g !== He && g !== I && g !== W && g !== V && g !== j && g !== G) {
1318
+ n = f;
1319
+ do {
1320
+ if (m = !1, n = r.indexOf(")", n + 1), n === -1)
1321
+ if (s || ue) {
1322
+ n = f;
1323
+ break;
1324
+ } else
1325
+ ae("bracket");
1326
+ for (d = n; r.charCodeAt(d - 1) === T; )
1327
+ d -= 1, m = !m;
1328
+ } while (m);
1329
+ h = ["brackets", r.slice(f, n + 1), f, n], f = n;
1330
+ } else
1331
+ n = r.indexOf(")", f + 1), l = r.slice(f, n + 1), n === -1 || Lr.test(l) ? h = ["(", "(", f] : (h = ["brackets", l, f, n], f = n);
1332
+ break;
1333
+ }
1334
+ case pe:
1335
+ case He: {
1336
+ u = i === pe ? "'" : '"', n = f;
1337
+ do {
1338
+ if (m = !1, n = r.indexOf(u, n + 1), n === -1)
1339
+ if (s || ue) {
1340
+ n = f + 1;
1341
+ break;
1342
+ } else
1343
+ ae("string");
1344
+ for (d = n; r.charCodeAt(d - 1) === T; )
1345
+ d -= 1, m = !m;
1346
+ } while (m);
1347
+ h = ["string", r.slice(f, n + 1), f, n], f = n;
1348
+ break;
1349
+ }
1350
+ case Ir: {
1351
+ J.lastIndex = f + 1, J.test(r), J.lastIndex === 0 ? n = r.length - 1 : n = J.lastIndex - 2, h = ["at-word", r.slice(f, n + 1), f, n], f = n;
1352
+ break;
1353
+ }
1354
+ case T: {
1355
+ for (n = f, a = !0; r.charCodeAt(n + 1) === T; )
1356
+ n += 1, a = !a;
1357
+ if (i = r.charCodeAt(n + 1), a && i !== Ye && i !== I && i !== W && i !== V && i !== G && i !== j && (n += 1, Qe.test(r.charAt(n)))) {
1358
+ for (; Qe.test(r.charAt(n + 1)); )
1359
+ n += 1;
1360
+ r.charCodeAt(n + 1) === I && (n += 1);
1361
+ }
1362
+ h = ["word", r.slice(f, n + 1), f, n], f = n;
1363
+ break;
1364
+ }
1365
+ default: {
1366
+ i === Ye && r.charCodeAt(f + 1) === Mr ? (n = r.indexOf("*/", f + 2) + 1, n === 0 && (s || ue ? n = r.length : ae("comment")), h = ["comment", r.slice(f, n + 1), f, n], f = n) : (H.lastIndex = f + 1, H.test(r), H.lastIndex === 0 ? n = r.length - 1 : n = H.lastIndex - 2, h = ["word", r.slice(f, n + 1), f, n], P.push(h), f = n);
1367
+ break;
1368
+ }
1369
+ }
1370
+ return f++, h;
1371
+ }
1372
+ function Bt($) {
1373
+ R.push($);
1374
+ }
1375
+ return {
1376
+ back: Bt,
1377
+ endOfFile: Nt,
1378
+ nextToken: _t,
1379
+ position: le
1380
+ };
1381
+ };
1382
+ let Nr = ke, _r = ie, Br = ne, Dr = z, qe = Le, zr = Ur;
1383
+ const Ke = {
1384
+ empty: !0,
1385
+ space: !0
1386
+ };
1387
+ function Fr(o) {
1388
+ for (let e = o.length - 1; e >= 0; e--) {
1389
+ let t = o[e], r = t[3] || t[2];
1390
+ if (r)
1391
+ return r;
1392
+ }
1393
+ }
1394
+ let Tr = class {
1395
+ constructor(e) {
1396
+ this.input = e, this.root = new Dr(), this.current = this.root, this.spaces = "", this.semicolon = !1, this.createTokenizer(), this.root.source = { input: e, start: { column: 1, line: 1, offset: 0 } };
1397
+ }
1398
+ atrule(e) {
1399
+ let t = new Nr();
1400
+ t.name = e[1].slice(1), t.name === "" && this.unnamedAtrule(t, e), this.init(t, e[2]);
1401
+ let r, s, i, l = !1, a = !1, n = [], u = [];
1402
+ for (; !this.tokenizer.endOfFile(); ) {
1403
+ if (e = this.tokenizer.nextToken(), r = e[0], r === "(" || r === "[" ? u.push(r === "(" ? ")" : "]") : r === "{" && u.length > 0 ? u.push("}") : r === u[u.length - 1] && u.pop(), u.length === 0)
1404
+ if (r === ";") {
1405
+ t.source.end = this.getPosition(e[2]), t.source.end.offset++, this.semicolon = !0;
1406
+ break;
1407
+ } else if (r === "{") {
1408
+ a = !0;
1409
+ break;
1410
+ } else if (r === "}") {
1411
+ if (n.length > 0) {
1412
+ for (i = n.length - 1, s = n[i]; s && s[0] === "space"; )
1413
+ s = n[--i];
1414
+ s && (t.source.end = this.getPosition(s[3] || s[2]), t.source.end.offset++);
1415
+ }
1416
+ this.end(e);
1417
+ break;
1418
+ } else
1419
+ n.push(e);
1420
+ else
1421
+ n.push(e);
1422
+ if (this.tokenizer.endOfFile()) {
1423
+ l = !0;
1424
+ break;
1425
+ }
1426
+ }
1427
+ t.raws.between = this.spacesAndCommentsFromEnd(n), n.length ? (t.raws.afterName = this.spacesAndCommentsFromStart(n), this.raw(t, "params", n), l && (e = n[n.length - 1], t.source.end = this.getPosition(e[3] || e[2]), t.source.end.offset++, this.spaces = t.raws.between, t.raws.between = "")) : (t.raws.afterName = "", t.params = ""), a && (t.nodes = [], this.current = t);
1428
+ }
1429
+ checkMissedSemicolon(e) {
1430
+ let t = this.colon(e);
1431
+ if (t === !1)
1432
+ return;
1433
+ let r = 0, s;
1434
+ for (let i = t - 1; i >= 0 && (s = e[i], !(s[0] !== "space" && (r += 1, r === 2))); i--)
1435
+ ;
1436
+ throw this.input.error(
1437
+ "Missed semicolon",
1438
+ s[0] === "word" ? s[3] + 1 : s[2]
1439
+ );
1440
+ }
1441
+ colon(e) {
1442
+ let t = 0, r, s, i;
1443
+ for (let [l, a] of e.entries()) {
1444
+ if (s = a, i = s[0], i === "(" && (t += 1), i === ")" && (t -= 1), t === 0 && i === ":")
1445
+ if (!r)
1446
+ this.doubleColon(s);
1447
+ else {
1448
+ if (r[0] === "word" && r[1] === "progid")
1449
+ continue;
1450
+ return l;
1451
+ }
1452
+ r = s;
1453
+ }
1454
+ return !1;
1455
+ }
1456
+ comment(e) {
1457
+ let t = new _r();
1458
+ this.init(t, e[2]), t.source.end = this.getPosition(e[3] || e[2]), t.source.end.offset++;
1459
+ let r = e[1].slice(2, -2);
1460
+ if (/^\s*$/.test(r))
1461
+ t.text = "", t.raws.left = r, t.raws.right = "";
1462
+ else {
1463
+ let s = r.match(/^(\s*)([^]*\S)(\s*)$/);
1464
+ t.text = s[2], t.raws.left = s[1], t.raws.right = s[3];
1465
+ }
1466
+ }
1467
+ createTokenizer() {
1468
+ this.tokenizer = zr(this.input);
1469
+ }
1470
+ decl(e, t) {
1471
+ let r = new Br();
1472
+ this.init(r, e[0][2]);
1473
+ let s = e[e.length - 1];
1474
+ for (s[0] === ";" && (this.semicolon = !0, e.pop()), r.source.end = this.getPosition(
1475
+ s[3] || s[2] || Fr(e)
1476
+ ), r.source.end.offset++; e[0][0] !== "word"; )
1477
+ e.length === 1 && this.unknownWord(e), r.raws.before += e.shift()[1];
1478
+ for (r.source.start = this.getPosition(e[0][2]), r.prop = ""; e.length; ) {
1479
+ let u = e[0][0];
1480
+ if (u === ":" || u === "space" || u === "comment")
1481
+ break;
1482
+ r.prop += e.shift()[1];
1483
+ }
1484
+ r.raws.between = "";
1485
+ let i;
1486
+ for (; e.length; )
1487
+ if (i = e.shift(), i[0] === ":") {
1488
+ r.raws.between += i[1];
1489
+ break;
1490
+ } else
1491
+ i[0] === "word" && /\w/.test(i[1]) && this.unknownWord([i]), r.raws.between += i[1];
1492
+ (r.prop[0] === "_" || r.prop[0] === "*") && (r.raws.before += r.prop[0], r.prop = r.prop.slice(1));
1493
+ let l = [], a;
1494
+ for (; e.length && (a = e[0][0], !(a !== "space" && a !== "comment")); )
1495
+ l.push(e.shift());
1496
+ this.precheckMissedSemicolon(e);
1497
+ for (let u = e.length - 1; u >= 0; u--) {
1498
+ if (i = e[u], i[1].toLowerCase() === "!important") {
1499
+ r.important = !0;
1500
+ let h = this.stringFrom(e, u);
1501
+ h = this.spacesFromEnd(e) + h, h !== " !important" && (r.raws.important = h);
1502
+ break;
1503
+ } else if (i[1].toLowerCase() === "important") {
1504
+ let h = e.slice(0), m = "";
1505
+ for (let d = u; d > 0; d--) {
1506
+ let g = h[d][0];
1507
+ if (m.trim().startsWith("!") && g !== "space")
1508
+ break;
1509
+ m = h.pop()[1] + m;
1510
+ }
1511
+ m.trim().startsWith("!") && (r.important = !0, r.raws.important = m, e = h);
1512
+ }
1513
+ if (i[0] !== "space" && i[0] !== "comment")
1514
+ break;
1515
+ }
1516
+ e.some((u) => u[0] !== "space" && u[0] !== "comment") && (r.raws.between += l.map((u) => u[1]).join(""), l = []), this.raw(r, "value", l.concat(e), t), r.value.includes(":") && !t && this.checkMissedSemicolon(e);
1517
+ }
1518
+ doubleColon(e) {
1519
+ throw this.input.error(
1520
+ "Double colon",
1521
+ { offset: e[2] },
1522
+ { offset: e[2] + e[1].length }
1523
+ );
1524
+ }
1525
+ emptyRule(e) {
1526
+ let t = new qe();
1527
+ this.init(t, e[2]), t.selector = "", t.raws.between = "", this.current = t;
1528
+ }
1529
+ end(e) {
1530
+ 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(e[2]), this.current.source.end.offset++, this.current = this.current.parent) : this.unexpectedClose(e);
1531
+ }
1532
+ endFile() {
1533
+ 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());
1534
+ }
1535
+ freeSemicolon(e) {
1536
+ if (this.spaces += e[1], this.current.nodes) {
1537
+ let t = this.current.nodes[this.current.nodes.length - 1];
1538
+ t && t.type === "rule" && !t.raws.ownSemicolon && (t.raws.ownSemicolon = this.spaces, this.spaces = "", t.source.end = this.getPosition(e[2]), t.source.end.offset += t.raws.ownSemicolon.length);
1539
+ }
1540
+ }
1541
+ // Helpers
1542
+ getPosition(e) {
1543
+ let t = this.input.fromOffset(e);
1544
+ return {
1545
+ column: t.col,
1546
+ line: t.line,
1547
+ offset: e
1548
+ };
1549
+ }
1550
+ init(e, t) {
1551
+ this.current.push(e), e.source = {
1552
+ input: this.input,
1553
+ start: this.getPosition(t)
1554
+ }, e.raws.before = this.spaces, this.spaces = "", e.type !== "comment" && (this.semicolon = !1);
1555
+ }
1556
+ other(e) {
1557
+ let t = !1, r = null, s = !1, i = null, l = [], a = e[1].startsWith("--"), n = [], u = e;
1558
+ for (; u; ) {
1559
+ if (r = u[0], n.push(u), r === "(" || r === "[")
1560
+ i || (i = u), l.push(r === "(" ? ")" : "]");
1561
+ else if (a && s && r === "{")
1562
+ i || (i = u), l.push("}");
1563
+ else if (l.length === 0)
1564
+ if (r === ";")
1565
+ if (s) {
1566
+ this.decl(n, a);
1567
+ return;
1568
+ } else
1569
+ break;
1570
+ else if (r === "{") {
1571
+ this.rule(n);
1572
+ return;
1573
+ } else if (r === "}") {
1574
+ this.tokenizer.back(n.pop()), t = !0;
1575
+ break;
1576
+ } else
1577
+ r === ":" && (s = !0);
1578
+ else
1579
+ r === l[l.length - 1] && (l.pop(), l.length === 0 && (i = null));
1580
+ u = this.tokenizer.nextToken();
1581
+ }
1582
+ if (this.tokenizer.endOfFile() && (t = !0), l.length > 0 && this.unclosedBracket(i), t && s) {
1583
+ if (!a)
1584
+ for (; n.length && (u = n[n.length - 1][0], !(u !== "space" && u !== "comment")); )
1585
+ this.tokenizer.back(n.pop());
1586
+ this.decl(n, a);
1587
+ } else
1588
+ this.unknownWord(n);
1589
+ }
1590
+ parse() {
1591
+ let e;
1592
+ for (; !this.tokenizer.endOfFile(); )
1593
+ switch (e = this.tokenizer.nextToken(), e[0]) {
1594
+ case "space":
1595
+ this.spaces += e[1];
1596
+ break;
1597
+ case ";":
1598
+ this.freeSemicolon(e);
1599
+ break;
1600
+ case "}":
1601
+ this.end(e);
1602
+ break;
1603
+ case "comment":
1604
+ this.comment(e);
1605
+ break;
1606
+ case "at-word":
1607
+ this.atrule(e);
1608
+ break;
1609
+ case "{":
1610
+ this.emptyRule(e);
1611
+ break;
1612
+ default:
1613
+ this.other(e);
1614
+ break;
1615
+ }
1616
+ this.endFile();
1617
+ }
1618
+ precheckMissedSemicolon() {
1619
+ }
1620
+ raw(e, t, r, s) {
1621
+ let i, l, a = r.length, n = "", u = !0, h, m;
1622
+ for (let d = 0; d < a; d += 1)
1623
+ i = r[d], l = i[0], l === "space" && d === a - 1 && !s ? u = !1 : l === "comment" ? (m = r[d - 1] ? r[d - 1][0] : "empty", h = r[d + 1] ? r[d + 1][0] : "empty", !Ke[m] && !Ke[h] ? n.slice(-1) === "," ? u = !1 : n += i[1] : u = !1) : n += i[1];
1624
+ if (!u) {
1625
+ let d = r.reduce((g, O) => g + O[1], "");
1626
+ e.raws[t] = { raw: d, value: n };
1627
+ }
1628
+ e[t] = n;
1629
+ }
1630
+ rule(e) {
1631
+ e.pop();
1632
+ let t = new qe();
1633
+ this.init(t, e[0][2]), t.raws.between = this.spacesAndCommentsFromEnd(e), this.raw(t, "selector", e), this.current = t;
1634
+ }
1635
+ spacesAndCommentsFromEnd(e) {
1636
+ let t, r = "";
1637
+ for (; e.length && (t = e[e.length - 1][0], !(t !== "space" && t !== "comment")); )
1638
+ r = e.pop()[1] + r;
1639
+ return r;
1640
+ }
1641
+ // Errors
1642
+ spacesAndCommentsFromStart(e) {
1643
+ let t, r = "";
1644
+ for (; e.length && (t = e[0][0], !(t !== "space" && t !== "comment")); )
1645
+ r += e.shift()[1];
1646
+ return r;
1647
+ }
1648
+ spacesFromEnd(e) {
1649
+ let t, r = "";
1650
+ for (; e.length && (t = e[e.length - 1][0], t === "space"); )
1651
+ r = e.pop()[1] + r;
1652
+ return r;
1653
+ }
1654
+ stringFrom(e, t) {
1655
+ let r = "";
1656
+ for (let s = t; s < e.length; s++)
1657
+ r += e[s][1];
1658
+ return e.splice(t, e.length - t), r;
1659
+ }
1660
+ unclosedBlock() {
1661
+ let e = this.current.source.start;
1662
+ throw this.input.error("Unclosed block", e.line, e.column);
1663
+ }
1664
+ unclosedBracket(e) {
1665
+ throw this.input.error(
1666
+ "Unclosed bracket",
1667
+ { offset: e[2] },
1668
+ { offset: e[2] + 1 }
1669
+ );
1670
+ }
1671
+ unexpectedClose(e) {
1672
+ throw this.input.error(
1673
+ "Unexpected }",
1674
+ { offset: e[2] },
1675
+ { offset: e[2] + 1 }
1676
+ );
1677
+ }
1678
+ unknownWord(e) {
1679
+ throw this.input.error(
1680
+ "Unknown word",
1681
+ { offset: e[0][2] },
1682
+ { offset: e[0][2] + e[0][1].length }
1683
+ );
1684
+ }
1685
+ unnamedAtrule(e, t) {
1686
+ throw this.input.error(
1687
+ "At-rule without name",
1688
+ { offset: t[2] },
1689
+ { offset: t[2] + t[1].length }
1690
+ );
1691
+ }
1692
+ };
1693
+ var Wr = Tr;
1694
+ let jr = v, Vr = oe, Gr = Wr;
1695
+ function te(o, e) {
1696
+ let t = new Vr(o, e), r = new Gr(t);
1697
+ try {
1698
+ r.parse();
1699
+ } catch (s) {
1700
+ throw process.env.NODE_ENV !== "production" && s.name === "CssSyntaxError" && e && e.from && (/\.scss$/i.test(e.from) ? s.message += `
1701
+ You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser` : /\.sass/i.test(e.from) ? s.message += `
1702
+ You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser` : /\.less$/i.test(e.from) && (s.message += `
1703
+ You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)), s;
1704
+ }
1705
+ return r.root;
1706
+ }
1707
+ var Ue = te;
1708
+ te.default = te;
1709
+ jr.registerParse(te);
1710
+ let ve = class {
1711
+ constructor(e, t = {}) {
1712
+ if (this.type = "warning", this.text = e, t.node && t.node.source) {
1713
+ let r = t.node.rangeBy(t);
1714
+ this.line = r.start.line, this.column = r.start.column, this.endLine = r.end.line, this.endColumn = r.end.column;
1715
+ }
1716
+ for (let r in t)
1717
+ this[r] = t[r];
1718
+ }
1719
+ toString() {
1720
+ return this.node ? this.node.error(this.text, {
1721
+ index: this.index,
1722
+ plugin: this.plugin,
1723
+ word: this.word
1724
+ }).message : this.plugin ? this.plugin + ": " + this.text : this.text;
1725
+ }
1726
+ };
1727
+ var Rt = ve;
1728
+ ve.default = ve;
1729
+ let Jr = Rt, Oe = class {
1730
+ constructor(e, t, r) {
1731
+ this.processor = e, this.messages = [], this.root = t, this.opts = r, this.css = void 0, this.map = void 0;
1732
+ }
1733
+ toString() {
1734
+ return this.css;
1735
+ }
1736
+ warn(e, t = {}) {
1737
+ t.plugin || this.lastPlugin && this.lastPlugin.postcssPlugin && (t.plugin = this.lastPlugin.postcssPlugin);
1738
+ let r = new Jr(e, t);
1739
+ return this.messages.push(r), r;
1740
+ }
1741
+ warnings() {
1742
+ return this.messages.filter((e) => e.type === "warning");
1743
+ }
1744
+ get content() {
1745
+ return this.css;
1746
+ }
1747
+ };
1748
+ var Ne = Oe;
1749
+ Oe.default = Oe;
1750
+ let Xe = {};
1751
+ var $t = function(e) {
1752
+ Xe[e] || (Xe[e] = !0, typeof console < "u" && console.warn && console.warn(e));
1753
+ };
1754
+ let Hr = v, Yr = Ie, Qr = Ot, qr = Ue, Ze = Ne, Kr = z, Xr = re, { isClean: b, my: Zr } = D, es = $t;
1755
+ const ts = {
1756
+ atrule: "AtRule",
1757
+ comment: "Comment",
1758
+ decl: "Declaration",
1759
+ document: "Document",
1760
+ root: "Root",
1761
+ rule: "Rule"
1762
+ }, rs = {
1763
+ AtRule: !0,
1764
+ AtRuleExit: !0,
1765
+ Comment: !0,
1766
+ CommentExit: !0,
1767
+ Declaration: !0,
1768
+ DeclarationExit: !0,
1769
+ Document: !0,
1770
+ DocumentExit: !0,
1771
+ Once: !0,
1772
+ OnceExit: !0,
1773
+ postcssPlugin: !0,
1774
+ prepare: !0,
1775
+ Root: !0,
1776
+ RootExit: !0,
1777
+ Rule: !0,
1778
+ RuleExit: !0
1779
+ }, ss = {
1780
+ Once: !0,
1781
+ postcssPlugin: !0,
1782
+ prepare: !0
1783
+ }, A = 0;
1784
+ function L(o) {
1785
+ return typeof o == "object" && typeof o.then == "function";
1786
+ }
1787
+ function Et(o) {
1788
+ let e = !1, t = ts[o.type];
1789
+ return o.type === "decl" ? e = o.prop.toLowerCase() : o.type === "atrule" && (e = o.name.toLowerCase()), e && o.append ? [
1790
+ t,
1791
+ t + "-" + e,
1792
+ A,
1793
+ t + "Exit",
1794
+ t + "Exit-" + e
1795
+ ] : e ? [t, t + "-" + e, t + "Exit", t + "Exit-" + e] : o.append ? [t, A, t + "Exit"] : [t, t + "Exit"];
1796
+ }
1797
+ function et(o) {
1798
+ let e;
1799
+ return o.type === "document" ? e = ["Document", A, "DocumentExit"] : o.type === "root" ? e = ["Root", A, "RootExit"] : e = Et(o), {
1800
+ eventIndex: 0,
1801
+ events: e,
1802
+ iterator: 0,
1803
+ node: o,
1804
+ visitorIndex: 0,
1805
+ visitors: []
1806
+ };
1807
+ }
1808
+ function Re(o) {
1809
+ return o[b] = !1, o.nodes && o.nodes.forEach((e) => Re(e)), o;
1810
+ }
1811
+ let $e = {}, C = class {
1812
+ constructor(e, t, r) {
1813
+ this.stringified = !1, this.processed = !1;
1814
+ let s;
1815
+ if (typeof t == "object" && t !== null && (t.type === "root" || t.type === "document"))
1816
+ s = Re(t);
1817
+ else if (t instanceof C || t instanceof Ze)
1818
+ s = Re(t.root), t.map && (typeof r.map > "u" && (r.map = {}), r.map.inline || (r.map.inline = !1), r.map.prev = t.map);
1819
+ else {
1820
+ let i = qr;
1821
+ r.syntax && (i = r.syntax.parse), r.parser && (i = r.parser), i.parse && (i = i.parse);
1822
+ try {
1823
+ s = i(t, r);
1824
+ } catch (l) {
1825
+ this.processed = !0, this.error = l;
1826
+ }
1827
+ s && !s[Zr] && Hr.rebuild(s);
1828
+ }
1829
+ this.result = new Ze(e, s, r), this.helpers = { ...$e, postcss: $e, result: this.result }, this.plugins = this.processor.plugins.map((i) => typeof i == "object" && i.prepare ? { ...i, ...i.prepare(this.result) } : i);
1830
+ }
1831
+ async() {
1832
+ return this.error ? Promise.reject(this.error) : this.processed ? Promise.resolve(this.result) : (this.processing || (this.processing = this.runAsync()), this.processing);
1833
+ }
1834
+ catch(e) {
1835
+ return this.async().catch(e);
1836
+ }
1837
+ finally(e) {
1838
+ return this.async().then(e, e);
1839
+ }
1840
+ getAsyncError() {
1841
+ throw new Error("Use process(css).then(cb) to work with async plugins");
1842
+ }
1843
+ handleError(e, t) {
1844
+ let r = this.result.lastPlugin;
1845
+ try {
1846
+ if (t && t.addToError(e), this.error = e, e.name === "CssSyntaxError" && !e.plugin)
1847
+ e.plugin = r.postcssPlugin, e.setMessage();
1848
+ else if (r.postcssVersion && process.env.NODE_ENV !== "production") {
1849
+ let s = r.postcssPlugin, i = r.postcssVersion, l = this.result.processor.version, a = i.split("."), n = l.split(".");
1850
+ (a[0] !== n[0] || parseInt(a[1]) > parseInt(n[1])) && console.error(
1851
+ "Unknown error from PostCSS plugin. Your current PostCSS version is " + l + ", but " + s + " uses " + i + ". Perhaps this is the source of the error below."
1852
+ );
1853
+ }
1854
+ } catch (s) {
1855
+ console && console.error && console.error(s);
1856
+ }
1857
+ return e;
1858
+ }
1859
+ prepareVisitors() {
1860
+ this.listeners = {};
1861
+ let e = (t, r, s) => {
1862
+ this.listeners[r] || (this.listeners[r] = []), this.listeners[r].push([t, s]);
1863
+ };
1864
+ for (let t of this.plugins)
1865
+ if (typeof t == "object")
1866
+ for (let r in t) {
1867
+ if (!rs[r] && /^[A-Z]/.test(r))
1868
+ throw new Error(
1869
+ `Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`
1870
+ );
1871
+ if (!ss[r])
1872
+ if (typeof t[r] == "object")
1873
+ for (let s in t[r])
1874
+ s === "*" ? e(t, r, t[r][s]) : e(
1875
+ t,
1876
+ r + "-" + s.toLowerCase(),
1877
+ t[r][s]
1878
+ );
1879
+ else
1880
+ typeof t[r] == "function" && e(t, r, t[r]);
1881
+ }
1882
+ this.hasListener = Object.keys(this.listeners).length > 0;
1883
+ }
1884
+ async runAsync() {
1885
+ this.plugin = 0;
1886
+ for (let e = 0; e < this.plugins.length; e++) {
1887
+ let t = this.plugins[e], r = this.runOnRoot(t);
1888
+ if (L(r))
1889
+ try {
1890
+ await r;
1891
+ } catch (s) {
1892
+ throw this.handleError(s);
1893
+ }
1894
+ }
1895
+ if (this.prepareVisitors(), this.hasListener) {
1896
+ let e = this.result.root;
1897
+ for (; !e[b]; ) {
1898
+ e[b] = !0;
1899
+ let t = [et(e)];
1900
+ for (; t.length > 0; ) {
1901
+ let r = this.visitTick(t);
1902
+ if (L(r))
1903
+ try {
1904
+ await r;
1905
+ } catch (s) {
1906
+ let i = t[t.length - 1].node;
1907
+ throw this.handleError(s, i);
1908
+ }
1909
+ }
1910
+ }
1911
+ if (this.listeners.OnceExit)
1912
+ for (let [t, r] of this.listeners.OnceExit) {
1913
+ this.result.lastPlugin = t;
1914
+ try {
1915
+ if (e.type === "document") {
1916
+ let s = e.nodes.map(
1917
+ (i) => r(i, this.helpers)
1918
+ );
1919
+ await Promise.all(s);
1920
+ } else
1921
+ await r(e, this.helpers);
1922
+ } catch (s) {
1923
+ throw this.handleError(s);
1924
+ }
1925
+ }
1926
+ }
1927
+ return this.processed = !0, this.stringify();
1928
+ }
1929
+ runOnRoot(e) {
1930
+ this.result.lastPlugin = e;
1931
+ try {
1932
+ if (typeof e == "object" && e.Once) {
1933
+ if (this.result.root.type === "document") {
1934
+ let t = this.result.root.nodes.map(
1935
+ (r) => e.Once(r, this.helpers)
1936
+ );
1937
+ return L(t[0]) ? Promise.all(t) : t;
1938
+ }
1939
+ return e.Once(this.result.root, this.helpers);
1940
+ } else if (typeof e == "function")
1941
+ return e(this.result.root, this.result);
1942
+ } catch (t) {
1943
+ throw this.handleError(t);
1944
+ }
1945
+ }
1946
+ stringify() {
1947
+ if (this.error)
1948
+ throw this.error;
1949
+ if (this.stringified)
1950
+ return this.result;
1951
+ this.stringified = !0, this.sync();
1952
+ let e = this.result.opts, t = Xr;
1953
+ e.syntax && (t = e.syntax.stringify), e.stringifier && (t = e.stringifier), t.stringify && (t = t.stringify);
1954
+ let s = new Qr(t, this.result.root, this.result.opts).generate();
1955
+ return this.result.css = s[0], this.result.map = s[1], this.result;
1956
+ }
1957
+ sync() {
1958
+ if (this.error)
1959
+ throw this.error;
1960
+ if (this.processed)
1961
+ return this.result;
1962
+ if (this.processed = !0, this.processing)
1963
+ throw this.getAsyncError();
1964
+ for (let e of this.plugins) {
1965
+ let t = this.runOnRoot(e);
1966
+ if (L(t))
1967
+ throw this.getAsyncError();
1968
+ }
1969
+ if (this.prepareVisitors(), this.hasListener) {
1970
+ let e = this.result.root;
1971
+ for (; !e[b]; )
1972
+ e[b] = !0, this.walkSync(e);
1973
+ if (this.listeners.OnceExit)
1974
+ if (e.type === "document")
1975
+ for (let t of e.nodes)
1976
+ this.visitSync(this.listeners.OnceExit, t);
1977
+ else
1978
+ this.visitSync(this.listeners.OnceExit, e);
1979
+ }
1980
+ return this.result;
1981
+ }
1982
+ then(e, t) {
1983
+ return process.env.NODE_ENV !== "production" && ("from" in this.opts || es(
1984
+ "Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."
1985
+ )), this.async().then(e, t);
1986
+ }
1987
+ toString() {
1988
+ return this.css;
1989
+ }
1990
+ visitSync(e, t) {
1991
+ for (let [r, s] of e) {
1992
+ this.result.lastPlugin = r;
1993
+ let i;
1994
+ try {
1995
+ i = s(t, this.helpers);
1996
+ } catch (l) {
1997
+ throw this.handleError(l, t.proxyOf);
1998
+ }
1999
+ if (t.type !== "root" && t.type !== "document" && !t.parent)
2000
+ return !0;
2001
+ if (L(i))
2002
+ throw this.getAsyncError();
2003
+ }
2004
+ }
2005
+ visitTick(e) {
2006
+ let t = e[e.length - 1], { node: r, visitors: s } = t;
2007
+ if (r.type !== "root" && r.type !== "document" && !r.parent) {
2008
+ e.pop();
2009
+ return;
2010
+ }
2011
+ if (s.length > 0 && t.visitorIndex < s.length) {
2012
+ let [l, a] = s[t.visitorIndex];
2013
+ t.visitorIndex += 1, t.visitorIndex === s.length && (t.visitors = [], t.visitorIndex = 0), this.result.lastPlugin = l;
2014
+ try {
2015
+ return a(r.toProxy(), this.helpers);
2016
+ } catch (n) {
2017
+ throw this.handleError(n, r);
2018
+ }
2019
+ }
2020
+ if (t.iterator !== 0) {
2021
+ let l = t.iterator, a;
2022
+ for (; a = r.nodes[r.indexes[l]]; )
2023
+ if (r.indexes[l] += 1, !a[b]) {
2024
+ a[b] = !0, e.push(et(a));
2025
+ return;
2026
+ }
2027
+ t.iterator = 0, delete r.indexes[l];
2028
+ }
2029
+ let i = t.events;
2030
+ for (; t.eventIndex < i.length; ) {
2031
+ let l = i[t.eventIndex];
2032
+ if (t.eventIndex += 1, l === A) {
2033
+ r.nodes && r.nodes.length && (r[b] = !0, t.iterator = r.getIterator());
2034
+ return;
2035
+ } else if (this.listeners[l]) {
2036
+ t.visitors = this.listeners[l];
2037
+ return;
2038
+ }
2039
+ }
2040
+ e.pop();
2041
+ }
2042
+ walkSync(e) {
2043
+ e[b] = !0;
2044
+ let t = Et(e);
2045
+ for (let r of t)
2046
+ if (r === A)
2047
+ e.nodes && e.each((s) => {
2048
+ s[b] || this.walkSync(s);
2049
+ });
2050
+ else {
2051
+ let s = this.listeners[r];
2052
+ if (s && this.visitSync(s, e.toProxy()))
2053
+ return;
2054
+ }
2055
+ }
2056
+ warnings() {
2057
+ return this.sync().warnings();
2058
+ }
2059
+ get content() {
2060
+ return this.stringify().content;
2061
+ }
2062
+ get css() {
2063
+ return this.stringify().css;
2064
+ }
2065
+ get map() {
2066
+ return this.stringify().map;
2067
+ }
2068
+ get messages() {
2069
+ return this.sync().messages;
2070
+ }
2071
+ get opts() {
2072
+ return this.result.opts;
2073
+ }
2074
+ get processor() {
2075
+ return this.result.processor;
2076
+ }
2077
+ get root() {
2078
+ return this.sync().root;
2079
+ }
2080
+ get [Symbol.toStringTag]() {
2081
+ return "LazyResult";
2082
+ }
2083
+ };
2084
+ C.registerPostcss = (o) => {
2085
+ $e = o;
2086
+ };
2087
+ var At = C;
2088
+ C.default = C;
2089
+ Kr.registerLazyResult(C);
2090
+ Yr.registerLazyResult(C);
2091
+ let is = Ot, ns = Ue;
2092
+ const os = Ne;
2093
+ let ls = re, as = $t, Ee = class {
2094
+ constructor(e, t, r) {
2095
+ t = t.toString(), this.stringified = !1, this._processor = e, this._css = t, this._opts = r, this._map = void 0;
2096
+ let s, i = ls;
2097
+ this.result = new os(this._processor, s, this._opts), this.result.css = t;
2098
+ let l = this;
2099
+ Object.defineProperty(this.result, "root", {
2100
+ get() {
2101
+ return l.root;
2102
+ }
2103
+ });
2104
+ let a = new is(i, s, this._opts, t);
2105
+ if (a.isMap()) {
2106
+ let [n, u] = a.generate();
2107
+ n && (this.result.css = n), u && (this.result.map = u);
2108
+ } else
2109
+ a.clearAnnotation(), this.result.css = a.css;
2110
+ }
2111
+ async() {
2112
+ return this.error ? Promise.reject(this.error) : Promise.resolve(this.result);
2113
+ }
2114
+ catch(e) {
2115
+ return this.async().catch(e);
2116
+ }
2117
+ finally(e) {
2118
+ return this.async().then(e, e);
2119
+ }
2120
+ sync() {
2121
+ if (this.error)
2122
+ throw this.error;
2123
+ return this.result;
2124
+ }
2125
+ then(e, t) {
2126
+ return process.env.NODE_ENV !== "production" && ("from" in this._opts || as(
2127
+ "Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."
2128
+ )), this.async().then(e, t);
2129
+ }
2130
+ toString() {
2131
+ return this._css;
2132
+ }
2133
+ warnings() {
2134
+ return [];
2135
+ }
2136
+ get content() {
2137
+ return this.result.css;
2138
+ }
2139
+ get css() {
2140
+ return this.result.css;
2141
+ }
2142
+ get map() {
2143
+ return this.result.map;
2144
+ }
2145
+ get messages() {
2146
+ return [];
2147
+ }
2148
+ get opts() {
2149
+ return this.result.opts;
2150
+ }
2151
+ get processor() {
2152
+ return this.result.processor;
2153
+ }
2154
+ get root() {
2155
+ if (this._root)
2156
+ return this._root;
2157
+ let e, t = ns;
2158
+ try {
2159
+ e = t(this._css, this._opts);
2160
+ } catch (r) {
2161
+ this.error = r;
2162
+ }
2163
+ if (this.error)
2164
+ throw this.error;
2165
+ return this._root = e, e;
2166
+ }
2167
+ get [Symbol.toStringTag]() {
2168
+ return "NoWorkResult";
2169
+ }
2170
+ };
2171
+ var us = Ee;
2172
+ Ee.default = Ee;
2173
+ let hs = Ie, fs = At, cs = us, ps = z, B = class {
2174
+ constructor(e = []) {
2175
+ this.version = "8.5.2", this.plugins = this.normalize(e);
2176
+ }
2177
+ normalize(e) {
2178
+ let t = [];
2179
+ for (let r of e)
2180
+ if (r.postcss === !0 ? r = r() : r.postcss && (r = r.postcss), typeof r == "object" && Array.isArray(r.plugins))
2181
+ t = t.concat(r.plugins);
2182
+ else if (typeof r == "object" && r.postcssPlugin)
2183
+ t.push(r);
2184
+ else if (typeof r == "function")
2185
+ t.push(r);
2186
+ else if (typeof r == "object" && (r.parse || r.stringify)) {
2187
+ if (process.env.NODE_ENV !== "production")
2188
+ throw new Error(
2189
+ "PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation."
2190
+ );
2191
+ } else
2192
+ throw new Error(r + " is not a PostCSS plugin");
2193
+ return t;
2194
+ }
2195
+ process(e, t = {}) {
2196
+ return !this.plugins.length && !t.parser && !t.stringifier && !t.syntax ? new cs(this, e, t) : new fs(this, e, t);
2197
+ }
2198
+ use(e) {
2199
+ return this.plugins = this.plugins.concat(this.normalize([e])), this;
2200
+ }
2201
+ };
2202
+ var ms = B;
2203
+ B.default = B;
2204
+ ps.registerProcessor(B);
2205
+ hs.registerProcessor(B);
2206
+ let Pt = ke, Mt = ie, ds = v, gs = Ae, kt = ne, It = Ie, ws = yr, ys = oe, bs = At, xs = yt, Ss = se, Cs = Ue, _e = ms, vs = Ne, Lt = z, Ut = Le, Os = re, Rs = Rt;
2207
+ function p(...o) {
2208
+ return o.length === 1 && Array.isArray(o[0]) && (o = o[0]), new _e(o);
2209
+ }
2210
+ p.plugin = function(e, t) {
2211
+ let r = !1;
2212
+ function s(...l) {
2213
+ console && console.warn && !r && (r = !0, console.warn(
2214
+ e + `: postcss.plugin was deprecated. Migration guide:
2215
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`
2216
+ ), process.env.LANG && process.env.LANG.startsWith("cn") && console.warn(
2217
+ e + `: 里面 postcss.plugin 被弃用. 迁移指南:
2218
+ https://www.w3ctech.com/topic/2226`
2219
+ ));
2220
+ let a = t(...l);
2221
+ return a.postcssPlugin = e, a.postcssVersion = new _e().version, a;
2222
+ }
2223
+ let i;
2224
+ return Object.defineProperty(s, "postcss", {
2225
+ get() {
2226
+ return i || (i = s()), i;
2227
+ }
2228
+ }), s.process = function(l, a, n) {
2229
+ return p([s(n)]).process(l, a);
2230
+ }, s;
2231
+ };
2232
+ p.stringify = Os;
2233
+ p.parse = Cs;
2234
+ p.fromJSON = ws;
2235
+ p.list = xs;
2236
+ p.comment = (o) => new Mt(o);
2237
+ p.atRule = (o) => new Pt(o);
2238
+ p.decl = (o) => new kt(o);
2239
+ p.rule = (o) => new Ut(o);
2240
+ p.root = (o) => new Lt(o);
2241
+ p.document = (o) => new It(o);
2242
+ p.CssSyntaxError = gs;
2243
+ p.Declaration = kt;
2244
+ p.Container = ds;
2245
+ p.Processor = _e;
2246
+ p.Document = It;
2247
+ p.Comment = Mt;
2248
+ p.Warning = Rs;
2249
+ p.AtRule = Pt;
2250
+ p.Result = vs;
2251
+ p.Input = ys;
2252
+ p.Rule = Ut;
2253
+ p.Root = Lt;
2254
+ p.Node = Ss;
2255
+ bs.registerPostcss(p);
2256
+ var $s = p;
2257
+ p.default = p;
2258
+ const w = $s, ri = w.stringify, si = w.fromJSON, ii = w.plugin, ni = w.parse, oi = w.list, li = w.document, ai = w.comment, ui = w.atRule, hi = w.rule, fi = w.decl, ci = w.root, pi = w.CssSyntaxError, mi = w.Declaration, di = w.Container, gi = w.Processor, wi = w.Document, yi = w.Comment, bi = w.Warning, xi = w.AtRule, Si = w.Result, Ci = w.Input, vi = w.Rule, Oi = w.Root, Ri = w.Node;
2259
+ export {
2260
+ xi as AtRule,
2261
+ yi as Comment,
2262
+ di as Container,
2263
+ pi as CssSyntaxError,
2264
+ mi as Declaration,
2265
+ wi as Document,
2266
+ Ci as Input,
2267
+ Ri as Node,
2268
+ gi as Processor,
2269
+ Si as Result,
2270
+ Oi as Root,
2271
+ vi as Rule,
2272
+ bi as Warning,
2273
+ ui as atRule,
2274
+ ai as comment,
2275
+ fi as decl,
2276
+ w as default,
2277
+ li as document,
2278
+ si as fromJSON,
2279
+ oi as list,
2280
+ ni as parse,
2281
+ ii as plugin,
2282
+ ci as root,
2283
+ hi as rule,
2284
+ ri as stringify
2285
+ };