prettier-plugin-embed 0.5.0 → 0.5.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.
package/dist/index.js CHANGED
@@ -1,203 +1,262 @@
1
- import { builders as M, utils as si } from "prettier/doc";
2
- import fi from "prettier/parser-babel";
3
- import yi from "prettier/parser-espree";
4
- import _i from "prettier/parser-flow";
5
- import $i from "prettier/parser-meriyah";
6
- import vi from "prettier/parser-typescript";
7
- import { printers as Di } from "prettier/plugins/estree.mjs";
8
- import { resolveConfigFile as Ti } from "prettier";
9
- const { group: Mi, indent: Ai, softline: Be, hardline: Si, lineSuffixBoundary: ki } = M, { mapDoc: Li } = si;
10
- function Gi(e, t) {
11
- const { node: n } = e;
12
- let r = t();
13
- return n?.comments?.length && (r = Mi([Ai([Be, r]), Be])), ["${", r, ki, "}"];
14
- }
15
- function k(e, t) {
16
- return e.map(
17
- (n) => Gi(n, t),
1
+ import { builders as A, utils as bi } from "prettier/doc";
2
+ import Oi from "prettier/parser-babel";
3
+ import Gi from "prettier/parser-espree";
4
+ import Ii from "prettier/parser-flow";
5
+ import xi from "prettier/parser-meriyah";
6
+ import Pi from "prettier/parser-typescript";
7
+ import { printers as qi } from "prettier/plugins/estree.mjs";
8
+ import { resolveConfigFile as ji } from "prettier";
9
+ const {
10
+ group: Fe,
11
+ indent: Ri,
12
+ softline: ze,
13
+ lineSuffixBoundary: Bi,
14
+ addAlignmentToDoc: wi,
15
+ align: Ui,
16
+ hardline: Ci
17
+ } = A, { mapDoc: Wi, replaceEndOfLine: Fi } = bi;
18
+ function zi(t, e) {
19
+ let n = 0;
20
+ for (const i of t)
21
+ i === " " ? n = n + e - n % e : n++;
22
+ return n;
23
+ }
24
+ function Je(t, e) {
25
+ const n = t.lastIndexOf(`
26
+ `);
27
+ if (n === -1)
28
+ return 0;
29
+ const r = t.slice(n + 1).match(/^[\t ]*/)?.[0] ?? "";
30
+ return zi(r, e);
31
+ }
32
+ function Ji(t, e, n) {
33
+ let i = e;
34
+ const o = t.quasis[i]?.value.raw ?? "";
35
+ if (o.includes(`
36
+ `))
37
+ return {
38
+ indentSize: Je(o, n),
39
+ previousQuasiText: o
40
+ };
41
+ for (; i-- > 0; ) {
42
+ const s = t.quasis[i];
43
+ if (!s) break;
44
+ const l = s.value.raw;
45
+ if (l.includes(`
46
+ `))
47
+ return { indentSize: Je(l, n), previousQuasiText: o };
48
+ }
49
+ return { indentSize: 0, previousQuasiText: o };
50
+ }
51
+ function Xi(t, e, n, i, r) {
52
+ const { node: o } = t;
53
+ let s = e();
54
+ o?.comments?.length && (s = Fe([Ri([ze, s]), ze]));
55
+ const { indentSize: l, previousQuasiText: p } = Ji(
56
+ n,
57
+ i,
58
+ r
59
+ );
60
+ let f = s;
61
+ return f = l === 0 && p.endsWith(`
62
+ `) ? Ui(Number.NEGATIVE_INFINITY, f) : wi(f, l, r), Fe(["${", f, Bi, "}"]);
63
+ }
64
+ function L(t, e, n) {
65
+ const r = t.node;
66
+ return t.map(
67
+ (o, s) => Xi(
68
+ o,
69
+ e,
70
+ r,
71
+ s,
72
+ 2
73
+ ),
18
74
  "expressions"
19
75
  );
20
76
  }
21
- function S(e, t, n, r = !1) {
22
- return Li(e, (o) => {
77
+ function M(t, e, n, i = !1) {
78
+ return Wi(t, (o) => {
23
79
  if (typeof o != "string")
24
80
  return o;
25
- const i = [], l = o.split(t);
26
- for (let u = 0; u < l.length; u++) {
27
- let E = l[u];
28
- if (u % 2 === 0) {
29
- if (!E)
81
+ const s = [], l = o.split(e);
82
+ for (let p = 0; p < l.length; p++) {
83
+ let f = l[p];
84
+ if (p % 2 === 0) {
85
+ if (!f)
30
86
  continue;
31
- if (E = E.replaceAll(/([\\`]|\${)/g, "\\$1"), r)
32
- for (const d of E.split(/(\n)/))
87
+ if (f = f.replaceAll(/([\\`]|\${)/g, "\\$1"), i === "literalline")
88
+ s.push(Fi(f));
89
+ else if (i === "hardline")
90
+ for (const d of f.split(/(\n)/))
33
91
  d === `
34
- ` ? i.push(Si) : i.push(d);
92
+ ` ? s.push(Ci) : s.push(d);
35
93
  else
36
- i.push(E);
94
+ s.push(f);
37
95
  } else {
38
- const d = Number(E);
39
- i.push(n[d]);
96
+ const d = Number(f);
97
+ s.push(n[d]);
40
98
  }
41
99
  }
42
- return i;
100
+ return s;
43
101
  });
44
102
  }
45
- function Ni(e, t, n) {
46
- if (t === n) {
47
- e.unshift(t);
103
+ function Hi(t, e, n) {
104
+ if (e === n) {
105
+ t.unshift(e);
48
106
  return;
49
107
  }
50
- let r = 0, s = e.length;
51
- for (; r < s; ) {
52
- const o = r + s >>> 1;
53
- if (e[o] === n) {
54
- e.push(t);
108
+ let i = 0, r = t.length;
109
+ for (; i < r; ) {
110
+ const o = i + r >>> 1;
111
+ if (t[o] === n) {
112
+ t.push(e);
55
113
  return;
56
114
  }
57
- e[o] < t ? r = o + 1 : s = o;
115
+ t[o] < e ? i = o + 1 : r = o;
58
116
  }
59
- e.splice(r, 0, t);
117
+ t.splice(i, 0, e);
60
118
  }
61
- const he = (() => {
62
- const e = [...Array(26).keys()].map((t) => String.fromCharCode(t + 97)).concat([...Array(10).keys()].map((t) => `${t}`));
119
+ const ye = (() => {
120
+ const t = [...Array(26).keys()].map((e) => String.fromCharCode(e + 97)).concat([...Array(10).keys()].map((e) => `${e}`));
63
121
  return () => {
64
122
  let n = "";
65
- for (let r = 0; r < 16; ++r)
66
- n += e[Number.parseInt((Math.random() * e.length).toFixed(0), 10) % e.length];
123
+ for (let i = 0; i < 16; ++i)
124
+ n += t[Number.parseInt((Math.random() * t.length).toFixed(0), 10) % t.length];
67
125
  return n;
68
126
  };
69
127
  })();
70
- function L(e = "p", t = "") {
71
- const n = he(), r = he(), s = qe(e), o = qe(t), i = (u) => `${e}${n}${u}${r}${t}`, l = new RegExp(
72
- `${s}${n}(\\d+)${r}${o}`,
128
+ function N(t = "p", e = "") {
129
+ const n = ye(), i = ye(), r = Xe(t), o = Xe(e), s = (p) => `${t}${n}${p}${i}${e}`, l = new RegExp(
130
+ `${r}${n}(\\d+)${i}${o}`,
73
131
  "ig"
74
132
  );
75
133
  return {
76
- createPlaceholder: i,
134
+ createPlaceholder: s,
77
135
  placeholderRegex: l
78
136
  };
79
137
  }
80
- function qe(e) {
81
- return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
138
+ function Xe(t) {
139
+ return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
82
140
  }
83
- function D(e) {
84
- return `${e}Identifiers`;
141
+ function T(t) {
142
+ return `${t}Identifiers`;
85
143
  }
86
- function A(e) {
87
- return `${e}Comments`;
144
+ function S(t) {
145
+ return `${t}Comments`;
88
146
  }
89
- function T(e) {
90
- return `${e}Tags`;
147
+ function v(t) {
148
+ return `${t}Tags`;
91
149
  }
92
- function Oi(e) {
93
- return `${e}Plugin`;
150
+ function Qi(t) {
151
+ return `${t}Plugin`;
94
152
  }
95
- function O(e) {
96
- return `${e}Parser`;
153
+ function G(t) {
154
+ return `${t}Parser`;
97
155
  }
98
- const _ = "9ff2b366e8ca4c97b9aed1a29b5b94ed", { line: je, group: I, indent: Ue, softline: Re } = M, xi = async (e, t, n, r, { commentOrTag: s, embeddedOverrideOptions: o }) => {
99
- const i = {
100
- ...r,
156
+ const $ = "9ff2b366e8ca4c97b9aed1a29b5b94ed", { line: He, group: P, indent: Qe, softline: Ve } = A, Vi = async (t, e, n, i, { commentOrTag: r, embeddedOverrideOptions: o }) => {
157
+ const s = {
158
+ ...i,
101
159
  ...o
102
- }, { node: l } = n, { createPlaceholder: u, placeholderRegex: E } = L(
160
+ }, { node: l } = n, { createPlaceholder: p, placeholderRegex: f } = N(
103
161
  "@prettier-placeholder"
104
162
  ), d = l.quasis.map(
105
- (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + u(g)
106
- ).join(""), c = d.match(/^\s+/)?.[0] ?? "", p = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
107
- c.length,
108
- -p.length || void 0
109
- ), b = k(n, t), $ = await e(f, {
110
- ...i,
111
- parser: i.embeddedCssParser ?? "scss"
112
- }), a = S(
113
- $,
114
- E,
163
+ (m, h, { length: _ }) => h === _ - 1 ? m.value.cooked : m.value.cooked + p(h)
164
+ ).join(""), u = d.match(/^\s+/)?.[0] ?? "", c = d.match(/\s+$/)?.[0] ?? "", y = d.slice(
165
+ u.length,
166
+ -c.length || void 0
167
+ ), b = L(n, e), D = await t(y, {
168
+ ...s,
169
+ parser: s.embeddedCssParser ?? "scss"
170
+ }), a = M(
171
+ D,
172
+ f,
115
173
  b,
174
+ // Use literalline to preserve original indentation in CSS comments
116
175
  // https://github.com/prettier/prettier/blob/3bfabd012873e5022f341aca75566966d91870f1/src/language-js/embed/css.js#L52
117
- !0
176
+ "literalline"
118
177
  );
119
- if (i.preserveEmbeddedExteriorWhitespaces?.includes(s))
120
- return I([
178
+ if (s.preserveEmbeddedExteriorWhitespaces?.includes(r))
179
+ return P([
121
180
  "`",
181
+ u,
182
+ s.noEmbeddedMultiLineIndentation?.includes(r) ? [P(a)] : Qe([P(a)]),
122
183
  c,
123
- i.noEmbeddedMultiLineIndentation?.includes(s) ? [I(a)] : Ue([I(a)]),
124
- p,
125
184
  "`"
126
185
  ]);
127
- const h = c.length ? je : Re, v = p.length ? je : Re;
128
- return I([
186
+ const g = u.length ? He : Ve, E = c.length ? He : Ve;
187
+ return P([
129
188
  "`",
130
- i.noEmbeddedMultiLineIndentation?.includes(s) ? [h, I(a)] : Ue([h, I(a)]),
131
- v,
189
+ s.noEmbeddedMultiLineIndentation?.includes(r) ? [g, P(a)] : Qe([g, P(a)]),
190
+ E,
132
191
  "`"
133
192
  ]);
134
- }, re = "embeddedCss", Ii = ["css"], Pi = ["css", "less", "scss"], Bi = D(re), Ce = A(re), we = T(re), qi = O(re), ji = {
135
- [Bi]: {
193
+ }, ce = "embeddedCss", Yi = ["css"], Ki = ["css", "less", "scss"], Zi = T(ce), Ye = S(ce), Ke = v(ce), er = G(ce), tr = {
194
+ [Zi]: {
136
195
  category: "Embed",
137
196
  type: "string",
138
197
  array: !0,
139
- default: [{ value: [...Ii] }],
198
+ default: [{ value: [...Yi] }],
140
199
  description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded CSS language.",
141
- deprecated: `Please use \`${Ce}\` or \`${we}\`.`
200
+ deprecated: `Please use \`${Ye}\` or \`${Ke}\`.`
142
201
  },
143
- [Ce]: {
202
+ [Ye]: {
144
203
  category: "Embed",
145
204
  type: "string",
146
205
  array: !0,
147
- default: [{ value: [_] }],
206
+ default: [{ value: [$] }],
148
207
  description: "Block comments that make their subsequent template literals be identified as embedded CSS language."
149
208
  },
150
- [we]: {
209
+ [Ke]: {
151
210
  category: "Embed",
152
211
  type: "string",
153
212
  array: !0,
154
- default: [{ value: [_] }],
213
+ default: [{ value: [$] }],
155
214
  description: "Tags that make their subsequent template literals be identified as embedded CSS language."
156
215
  },
157
- [qi]: {
216
+ [er]: {
158
217
  category: "Embed",
159
218
  type: "choice",
160
219
  default: "scss",
161
220
  description: "The parser used to parse the embedded CSS language.",
162
- choices: Pi.map((e) => ({
163
- value: e,
164
- description: `Use the "${e}" parser.`
221
+ choices: Ki.map((t) => ({
222
+ value: t,
223
+ description: `Use the "${t}" parser.`
165
224
  }))
166
225
  }
167
- }, Ui = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
226
+ }, nr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
168
227
  __proto__: null,
169
- embedder: xi,
170
- language: re,
171
- options: ji
172
- }, Symbol.toStringTag, { value: "Module" })), { line: Fe, group: P, indent: We, softline: ze } = M, Ri = async (e, t, n, r, { commentOrTag: s, embeddedOverrideOptions: o }) => {
173
- const i = {
174
- ...r,
175
- ...o
176
- }, { node: l } = n, { createPlaceholder: u, placeholderRegex: E } = L(), d = l.quasis.map(
177
- (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + u(g)
178
- ).join(""), c = d.match(/^\s+/)?.[0] ?? "", p = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
179
- c.length,
180
- -p.length || void 0
181
- ), b = k(n, t), $ = await e(f, {
228
+ embedder: Vi,
229
+ language: ce,
230
+ options: tr
231
+ }, Symbol.toStringTag, { value: "Module" })), { line: Ze, group: q, indent: et, softline: tt } = A, ir = async (t, e, n, i, { commentOrTag: r, embeddedOverrideOptions: o }) => {
232
+ const s = {
182
233
  ...i,
183
- parser: i.embeddedEsParser ?? "babel"
184
- }), a = S($, E, b);
185
- if (i.preserveEmbeddedExteriorWhitespaces?.includes(s))
186
- return P([
234
+ ...o
235
+ }, { node: l } = n, { createPlaceholder: p, placeholderRegex: f } = N(), d = l.quasis.map(
236
+ (m, h, { length: _ }) => h === _ - 1 ? m.value.cooked : m.value.cooked + p(h)
237
+ ).join(""), u = d.match(/^\s+/)?.[0] ?? "", c = d.match(/\s+$/)?.[0] ?? "", y = d.slice(
238
+ u.length,
239
+ -c.length || void 0
240
+ ), b = L(n, e), D = await t(y, {
241
+ ...s,
242
+ parser: s.embeddedEsParser ?? "babel"
243
+ }), a = M(D, f, b);
244
+ if (s.preserveEmbeddedExteriorWhitespaces?.includes(r))
245
+ return q([
187
246
  "`",
247
+ u,
248
+ s.noEmbeddedMultiLineIndentation?.includes(r) ? [q(a)] : et([q(a)]),
188
249
  c,
189
- i.noEmbeddedMultiLineIndentation?.includes(s) ? [P(a)] : We([P(a)]),
190
- p,
191
250
  "`"
192
251
  ]);
193
- const h = c.length ? Fe : ze, v = p.length ? Fe : ze;
194
- return P([
252
+ const g = u.length ? Ze : tt, E = c.length ? Ze : tt;
253
+ return q([
195
254
  "`",
196
- i.noEmbeddedMultiLineIndentation?.includes(s) ? [h, P(a)] : We([h, P(a)]),
197
- v,
255
+ s.noEmbeddedMultiLineIndentation?.includes(r) ? [g, q(a)] : et([g, q(a)]),
256
+ E,
198
257
  "`"
199
258
  ]);
200
- }, oe = "embeddedEs", Ci = [
259
+ }, de = "embeddedEs", rr = [
201
260
  "js",
202
261
  "jsx",
203
262
  "es",
@@ -206,525 +265,525 @@ const _ = "9ff2b366e8ca4c97b9aed1a29b5b94ed", { line: je, group: I, indent: Ue,
206
265
  "cjs",
207
266
  "pac",
208
267
  "javascript"
209
- ], wi = [
268
+ ], sr = [
210
269
  "babel",
211
270
  "babel-flow",
212
271
  "acorn",
213
272
  "espree",
214
273
  "flow",
215
274
  "meriyah"
216
- ], Fi = D(oe), Ke = A(oe), Je = T(oe), Wi = O(oe), zi = {
217
- [Fi]: {
275
+ ], or = T(de), nt = S(de), it = v(de), ar = G(de), lr = {
276
+ [or]: {
218
277
  category: "Embed",
219
278
  type: "string",
220
279
  array: !0,
221
- default: [{ value: [...Ci] }],
280
+ default: [{ value: [...rr] }],
222
281
  description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded ECMAScript/JavaScript language.",
223
- deprecated: `Please use \`${Ke}\` or \`${Je}\`.`
282
+ deprecated: `Please use \`${nt}\` or \`${it}\`.`
224
283
  },
225
- [Ke]: {
284
+ [nt]: {
226
285
  category: "Embed",
227
286
  type: "string",
228
287
  array: !0,
229
- default: [{ value: [_] }],
288
+ default: [{ value: [$] }],
230
289
  description: "Block comments that make their subsequent template literals be identified as embedded ECMAScript/JavaScript language."
231
290
  },
232
- [Je]: {
291
+ [it]: {
233
292
  category: "Embed",
234
293
  type: "string",
235
294
  array: !0,
236
- default: [{ value: [_] }],
295
+ default: [{ value: [$] }],
237
296
  description: "Tags that make their subsequent template literals be identified as embedded ECMAScript/JavaScript language."
238
297
  },
239
- [Wi]: {
298
+ [ar]: {
240
299
  category: "Embed",
241
300
  type: "choice",
242
301
  default: "babel",
243
302
  description: "The parser used to parse the embedded ECMASCript/JavaScript language.",
244
- choices: wi.map((e) => ({
245
- value: e,
246
- description: `Use the "${e}" parser.`
303
+ choices: sr.map((t) => ({
304
+ value: t,
305
+ description: `Use the "${t}" parser.`
247
306
  }))
248
307
  }
249
- }, Ki = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
308
+ }, cr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
250
309
  __proto__: null,
251
- embedder: Ri,
252
- language: oe,
253
- options: zi
254
- }, Symbol.toStringTag, { value: "Module" })), { line: He, group: B, indent: Xe, softline: Qe } = M, Ji = async (e, t, n, r, { commentOrTag: s, embeddedOverrideOptions: o }) => {
255
- const i = {
256
- ...r,
257
- ...o
258
- }, { node: l } = n, { createPlaceholder: u, placeholderRegex: E } = L(), d = l.quasis.map(
259
- (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + u(g)
260
- ).join(""), c = d.match(/^\s+/)?.[0] ?? "", p = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
261
- c.length,
262
- -p.length || void 0
263
- ), b = k(n, t), $ = await e(f, {
310
+ embedder: ir,
311
+ language: de,
312
+ options: lr
313
+ }, Symbol.toStringTag, { value: "Module" })), { line: rt, group: j, indent: st, softline: ot } = A, dr = async (t, e, n, i, { commentOrTag: r, embeddedOverrideOptions: o }) => {
314
+ const s = {
264
315
  ...i,
316
+ ...o
317
+ }, { node: l } = n, { createPlaceholder: p, placeholderRegex: f } = N(), d = l.quasis.map(
318
+ (m, h, { length: _ }) => h === _ - 1 ? m.value.cooked : m.value.cooked + p(h)
319
+ ).join(""), u = d.match(/^\s+/)?.[0] ?? "", c = d.match(/\s+$/)?.[0] ?? "", y = d.slice(
320
+ u.length,
321
+ -c.length || void 0
322
+ ), b = L(n, e), D = await t(y, {
323
+ ...s,
265
324
  parser: "glsl-parser"
266
- }), a = S($, E, b);
267
- if (i.preserveEmbeddedExteriorWhitespaces?.includes(s))
268
- return B([
325
+ }), a = M(D, f, b);
326
+ if (s.preserveEmbeddedExteriorWhitespaces?.includes(r))
327
+ return j([
269
328
  "`",
329
+ u,
330
+ s.noEmbeddedMultiLineIndentation?.includes(r) ? [j(a)] : st([j(a)]),
270
331
  c,
271
- i.noEmbeddedMultiLineIndentation?.includes(s) ? [B(a)] : Xe([B(a)]),
272
- p,
273
332
  "`"
274
333
  ]);
275
- const h = c.length ? He : Qe, v = p.length ? He : Qe;
276
- return B([
334
+ const g = u.length ? rt : ot, E = c.length ? rt : ot;
335
+ return j([
277
336
  "`",
278
- i.noEmbeddedMultiLineIndentation?.includes(s) ? [h, B(a)] : Xe([h, B(a)]),
279
- v,
337
+ s.noEmbeddedMultiLineIndentation?.includes(r) ? [g, j(a)] : st([g, j(a)]),
338
+ E,
280
339
  "`"
281
340
  ]);
282
- }, be = "embeddedGlsl", Hi = ["glsl", "shader"], Xi = D(be), Ye = A(be), Ve = T(be), Qi = {
283
- [Xi]: {
341
+ }, $e = "embeddedGlsl", ur = ["glsl", "shader"], pr = T($e), at = S($e), lt = v($e), gr = {
342
+ [pr]: {
284
343
  category: "Embed",
285
344
  type: "string",
286
345
  array: !0,
287
- default: [{ value: [...Hi] }],
346
+ default: [{ value: [...ur] }],
288
347
  description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded GLSL language. This option requires the `prettier-plugin-glsl` plugin.",
289
- deprecated: `Please use \`${Ye}\` or \`${Ve}\`.`
348
+ deprecated: `Please use \`${at}\` or \`${lt}\`.`
290
349
  },
291
- [Ye]: {
350
+ [at]: {
292
351
  category: "Embed",
293
352
  type: "string",
294
353
  array: !0,
295
- default: [{ value: [_] }],
354
+ default: [{ value: [$] }],
296
355
  description: "Block comments that make their subsequent template literals be identified as embedded GLSL language. This option requires the `prettier-plugin-glsl` plugin."
297
356
  },
298
- [Ve]: {
357
+ [lt]: {
299
358
  category: "Embed",
300
359
  type: "string",
301
360
  array: !0,
302
- default: [{ value: [_] }],
361
+ default: [{ value: [$] }],
303
362
  description: "Tags that make their subsequent template literals be identified as embedded GLSL language. This option requires the `prettier-plugin-glsl` plugin."
304
363
  }
305
- }, Yi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
364
+ }, mr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
306
365
  __proto__: null,
307
- embedder: Ji,
308
- language: be,
309
- options: Qi
310
- }, Symbol.toStringTag, { value: "Module" })), { line: Ze, group: q, indent: et, softline: tt } = M, Vi = async (e, t, n, r, { commentOrTag: s, embeddedOverrideOptions: o }) => {
311
- const i = {
312
- ...r,
313
- ...o
314
- }, { node: l } = n, { createPlaceholder: u, placeholderRegex: E } = L(), d = l.quasis.map(
315
- (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + u(g)
316
- ).join(""), c = d.match(/^\s+/)?.[0] ?? "", p = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
317
- c.length,
318
- -p.length || void 0
319
- ), b = k(n, t), $ = await e(f, {
366
+ embedder: dr,
367
+ language: $e,
368
+ options: gr
369
+ }, Symbol.toStringTag, { value: "Module" })), { line: ct, group: R, indent: dt, softline: ut } = A, hr = async (t, e, n, i, { commentOrTag: r, embeddedOverrideOptions: o }) => {
370
+ const s = {
320
371
  ...i,
372
+ ...o
373
+ }, { node: l } = n, { createPlaceholder: p, placeholderRegex: f } = N(), d = l.quasis.map(
374
+ (m, h, { length: _ }) => h === _ - 1 ? m.value.cooked : m.value.cooked + p(h)
375
+ ).join(""), u = d.match(/^\s+/)?.[0] ?? "", c = d.match(/\s+$/)?.[0] ?? "", y = d.slice(
376
+ u.length,
377
+ -c.length || void 0
378
+ ), b = L(n, e), D = await t(y, {
379
+ ...s,
321
380
  parser: "graphql"
322
- }), a = S($, E, b);
323
- if (i.preserveEmbeddedExteriorWhitespaces?.includes(s))
324
- return q([
381
+ }), a = M(D, f, b);
382
+ if (s.preserveEmbeddedExteriorWhitespaces?.includes(r))
383
+ return R([
325
384
  "`",
385
+ u,
386
+ s.noEmbeddedMultiLineIndentation?.includes(r) ? [R(a)] : dt([R(a)]),
326
387
  c,
327
- i.noEmbeddedMultiLineIndentation?.includes(s) ? [q(a)] : et([q(a)]),
328
- p,
329
388
  "`"
330
389
  ]);
331
- const h = c.length ? Ze : tt, v = p.length ? Ze : tt;
332
- return q([
390
+ const g = u.length ? ct : ut, E = c.length ? ct : ut;
391
+ return R([
333
392
  "`",
334
- i.noEmbeddedMultiLineIndentation?.includes(s) ? [h, q(a)] : et([h, q(a)]),
335
- v,
393
+ s.noEmbeddedMultiLineIndentation?.includes(r) ? [g, R(a)] : dt([g, R(a)]),
394
+ E,
336
395
  "`"
337
396
  ]);
338
- }, fe = "embeddedGraphql", Zi = ["graphql", "gql"], es = D(fe), nt = A(fe), it = T(fe), ts = {
339
- [es]: {
397
+ }, Te = "embeddedGraphql", fr = ["graphql", "gql"], Er = T(Te), pt = S(Te), gt = v(Te), br = {
398
+ [Er]: {
340
399
  category: "Embed",
341
400
  type: "string",
342
401
  array: !0,
343
- default: [{ value: [...Zi] }],
402
+ default: [{ value: [...fr] }],
344
403
  description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded GraphQL language.",
345
- deprecated: `Please use \`${nt}\` or \`${it}\`.`
404
+ deprecated: `Please use \`${pt}\` or \`${gt}\`.`
346
405
  },
347
- [nt]: {
406
+ [pt]: {
348
407
  category: "Embed",
349
408
  type: "string",
350
409
  array: !0,
351
- default: [{ value: [_] }],
410
+ default: [{ value: [$] }],
352
411
  description: "Block comments that make their subsequent template literals be identified as embedded GraphQL language."
353
412
  },
354
- [it]: {
413
+ [gt]: {
355
414
  category: "Embed",
356
415
  type: "string",
357
416
  array: !0,
358
- default: [{ value: [_] }],
417
+ default: [{ value: [$] }],
359
418
  description: "Tags that make their subsequent template literals be identified as embedded GraphQL language."
360
419
  }
361
- }, ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
420
+ }, _r = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
362
421
  __proto__: null,
363
- embedder: Vi,
364
- language: fe,
365
- options: ts
366
- }, Symbol.toStringTag, { value: "Module" })), { line: st, group: j, indent: rt, softline: ot } = M, { mapDoc: is } = si, ss = async (e, t, n, r, { commentOrTag: s, embeddedOverrideOptions: o }) => {
367
- const i = {
368
- ...r,
369
- ...o
370
- }, { node: l } = n, { createPlaceholder: u, placeholderRegex: E } = L(), d = l.quasis.map(
371
- (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + u(g)
372
- ).join(""), c = d.match(/^\s+/)?.[0] ?? "", p = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
373
- c.length,
374
- -p.length || void 0
375
- ), b = k(n, t), $ = await e(f, {
422
+ embedder: hr,
423
+ language: Te,
424
+ options: br
425
+ }, Symbol.toStringTag, { value: "Module" })), { line: mt, group: B, indent: ht, softline: ft } = A, { mapDoc: yr } = bi, Dr = async (t, e, n, i, { commentOrTag: r, embeddedOverrideOptions: o }) => {
426
+ const s = {
376
427
  ...i,
377
- parser: i.embeddedHtmlParser ?? "html"
378
- }), a = is($, (m) => {
428
+ ...o
429
+ }, { node: l } = n, { createPlaceholder: p, placeholderRegex: f } = N(), d = l.quasis.map(
430
+ (m, h, { length: _ }) => h === _ - 1 ? m.value.cooked : m.value.cooked + p(h)
431
+ ).join(""), u = d.match(/^\s+/)?.[0] ?? "", c = d.match(/\s+$/)?.[0] ?? "", y = d.slice(
432
+ u.length,
433
+ -c.length || void 0
434
+ ), b = L(n, e), D = await t(y, {
435
+ ...s,
436
+ parser: s.embeddedHtmlParser ?? "html"
437
+ }), a = yr(D, (m) => {
379
438
  if (typeof m != "string")
380
439
  return m;
381
- const g = [], y = m.split(E);
382
- for (let G = 0; G < y.length; G++) {
383
- let N = y[G];
384
- if (G % 2 === 0) {
385
- if (!N)
440
+ const h = [], _ = m.split(f);
441
+ for (let k = 0; k < _.length; k++) {
442
+ let O = _[k];
443
+ if (k % 2 === 0) {
444
+ if (!O)
386
445
  continue;
387
- N = N.replaceAll(/([\\`]|\${)/g, "\\$1"), i.__embeddedInHtml && (N = N.replaceAll(/<\/(?=script\b)/gi, "<\\/")), g.push(N);
446
+ O = O.replaceAll(/([\\`]|\${)/g, "\\$1"), s.__embeddedInHtml && (O = O.replaceAll(/<\/(?=script\b)/gi, "<\\/")), h.push(O);
388
447
  } else {
389
- const x = Number(N);
390
- g.push(b[x]);
448
+ const ki = Number(O);
449
+ h.push(b[ki]);
391
450
  }
392
451
  }
393
- return g;
452
+ return h;
394
453
  });
395
- if (i.htmlWhitespaceSensitivity === "strict" || // TODO: is css mode should be included here?
396
- i.htmlWhitespaceSensitivity === "css" || i.preserveEmbeddedExteriorWhitespaces?.includes(s))
397
- return j([
454
+ if (s.htmlWhitespaceSensitivity === "strict" || // TODO: is css mode should be included here?
455
+ s.htmlWhitespaceSensitivity === "css" || s.preserveEmbeddedExteriorWhitespaces?.includes(r))
456
+ return B([
398
457
  "`",
458
+ u,
459
+ s.noEmbeddedMultiLineIndentation?.includes(r) ? [B(a)] : ht([B(a)]),
399
460
  c,
400
- i.noEmbeddedMultiLineIndentation?.includes(s) ? [j(a)] : rt([j(a)]),
401
- p,
402
461
  "`"
403
462
  ]);
404
- const h = c.length ? st : ot, v = p.length ? st : ot;
405
- return j([
463
+ const g = u.length ? mt : ft, E = c.length ? mt : ft;
464
+ return B([
406
465
  "`",
407
- i.noEmbeddedMultiLineIndentation?.includes(s) ? [h, j(a)] : rt([h, j(a)]),
408
- v,
466
+ s.noEmbeddedMultiLineIndentation?.includes(r) ? [g, B(a)] : ht([g, B(a)]),
467
+ E,
409
468
  "`"
410
469
  ]);
411
- }, ae = "embeddedHtml", rs = ["html", "xhtml"], os = ["html", "vue", "angular", "lwc"], as = D(ae), at = A(ae), dt = T(ae), ds = O(ae), ls = {
412
- [as]: {
470
+ }, ue = "embeddedHtml", $r = ["html", "xhtml"], Tr = ["html", "vue", "angular", "lwc"], vr = T(ue), Et = S(ue), bt = v(ue), Ar = G(ue), Sr = {
471
+ [vr]: {
413
472
  category: "Embed",
414
473
  type: "string",
415
474
  array: !0,
416
- default: [{ value: [...rs] }],
475
+ default: [{ value: [...$r] }],
417
476
  description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded HTML language.",
418
- deprecated: `Please use \`${at}\` or \`${dt}\`.`
477
+ deprecated: `Please use \`${Et}\` or \`${bt}\`.`
419
478
  },
420
- [at]: {
479
+ [Et]: {
421
480
  category: "Embed",
422
481
  type: "string",
423
482
  array: !0,
424
- default: [{ value: [_] }],
483
+ default: [{ value: [$] }],
425
484
  description: "Block comments that make their subsequent template literals be identified as embedded HTML language."
426
485
  },
427
- [dt]: {
486
+ [bt]: {
428
487
  category: "Embed",
429
488
  type: "string",
430
489
  array: !0,
431
- default: [{ value: [_] }],
490
+ default: [{ value: [$] }],
432
491
  description: "Tags that make their subsequent template literals be identified as embedded HTML language."
433
492
  },
434
- [ds]: {
493
+ [Ar]: {
435
494
  category: "Embed",
436
495
  type: "choice",
437
496
  default: "html",
438
497
  description: "The parser used to parse the embedded HTML language.",
439
- choices: os.map((e) => ({
440
- value: e,
441
- description: `Use the "${e}" parser.`
498
+ choices: Tr.map((t) => ({
499
+ value: t,
500
+ description: `Use the "${t}" parser.`
442
501
  }))
443
502
  }
444
- }, cs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
503
+ }, Mr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
445
504
  __proto__: null,
446
- embedder: ss,
447
- language: ae,
448
- options: ls
449
- }, Symbol.toStringTag, { value: "Module" })), { line: lt, group: U, indent: ct, softline: ut } = M, us = async (e, t, n, r, { commentOrTag: s, embeddedOverrideOptions: o }) => {
450
- const i = {
451
- ...r,
452
- ...o
453
- }, { node: l } = n, { createPlaceholder: u, placeholderRegex: E } = L(), d = l.quasis.map(
454
- (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + u(g)
455
- ).join(""), c = d.match(/^\s+/)?.[0] ?? "", p = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
456
- c.length,
457
- -p.length || void 0
458
- ), b = k(n, t), $ = await e(f, {
505
+ embedder: Dr,
506
+ language: ue,
507
+ options: Sr
508
+ }, Symbol.toStringTag, { value: "Module" })), { line: _t, group: w, indent: yt, softline: Dt } = A, Lr = async (t, e, n, i, { commentOrTag: r, embeddedOverrideOptions: o }) => {
509
+ const s = {
459
510
  ...i,
511
+ ...o
512
+ }, { node: l } = n, { createPlaceholder: p, placeholderRegex: f } = N(), d = l.quasis.map(
513
+ (m, h, { length: _ }) => h === _ - 1 ? m.value.cooked : m.value.cooked + p(h)
514
+ ).join(""), u = d.match(/^\s+/)?.[0] ?? "", c = d.match(/\s+$/)?.[0] ?? "", y = d.slice(
515
+ u.length,
516
+ -c.length || void 0
517
+ ), b = L(n, e), D = await t(y, {
518
+ ...s,
460
519
  parser: "ini"
461
- }), a = S($, E, b);
462
- if (i.preserveEmbeddedExteriorWhitespaces?.includes(s))
463
- return U([
520
+ }), a = M(D, f, b);
521
+ if (s.preserveEmbeddedExteriorWhitespaces?.includes(r))
522
+ return w([
464
523
  "`",
524
+ u,
525
+ s.noEmbeddedMultiLineIndentation?.includes(r) ? [w(a)] : yt([w(a)]),
465
526
  c,
466
- i.noEmbeddedMultiLineIndentation?.includes(s) ? [U(a)] : ct([U(a)]),
467
- p,
468
527
  "`"
469
528
  ]);
470
- const h = c.length ? lt : ut, v = p.length ? lt : ut;
471
- return U([
529
+ const g = u.length ? _t : Dt, E = c.length ? _t : Dt;
530
+ return w([
472
531
  "`",
473
- i.noEmbeddedMultiLineIndentation?.includes(s) ? [h, U(a)] : ct([h, U(a)]),
474
- v,
532
+ s.noEmbeddedMultiLineIndentation?.includes(r) ? [g, w(a)] : yt([g, w(a)]),
533
+ E,
475
534
  "`"
476
535
  ]);
477
- }, ye = "embeddedIni", ps = ["ini", "cfg", "pro"], gs = D(ye), pt = A(ye), gt = T(ye), ms = {
478
- [gs]: {
536
+ }, ve = "embeddedIni", Nr = ["ini", "cfg", "pro"], kr = T(ve), $t = S(ve), Tt = v(ve), Or = {
537
+ [kr]: {
479
538
  category: "Embed",
480
539
  type: "string",
481
540
  array: !0,
482
- default: [{ value: [...ps] }],
541
+ default: [{ value: [...Nr] }],
483
542
  description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded INI language. This option requires the `prettier-plugin-ini` plugin.",
484
- deprecated: `Please use \`${pt}\` or \`${gt}\`.`
543
+ deprecated: `Please use \`${$t}\` or \`${Tt}\`.`
485
544
  },
486
- [pt]: {
545
+ [$t]: {
487
546
  category: "Embed",
488
547
  type: "string",
489
548
  array: !0,
490
- default: [{ value: [_] }],
549
+ default: [{ value: [$] }],
491
550
  description: "Block comments that make their subsequent template literals be identified as embedded INI language. This option requires the `prettier-plugin-ini` plugin."
492
551
  },
493
- [gt]: {
552
+ [Tt]: {
494
553
  category: "Embed",
495
554
  type: "string",
496
555
  array: !0,
497
- default: [{ value: [_] }],
556
+ default: [{ value: [$] }],
498
557
  description: "Tags that make their subsequent template literals be identified as embedded INI language. This option requires the `prettier-plugin-ini` plugin."
499
558
  }
500
- }, hs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
559
+ }, Gr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
501
560
  __proto__: null,
502
- embedder: us,
503
- language: ye,
504
- options: ms
505
- }, Symbol.toStringTag, { value: "Module" })), { group: R, line: mt, softline: ht, indent: Et } = M, Es = async (e, t, n, r, { commentOrTag: s, embeddedOverrideOptions: o }) => {
506
- const i = {
507
- ...r,
508
- ...o
509
- }, { node: l } = n, { createPlaceholder: u, placeholderRegex: E } = L(), d = l.quasis.map(
510
- (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + u(g)
511
- ).join(""), c = d.match(/^\s+/)?.[0] ?? "", p = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
512
- c.length,
513
- -p.length || void 0
514
- ), b = k(n, t), $ = await e(f, {
561
+ embedder: Lr,
562
+ language: ve,
563
+ options: Or
564
+ }, Symbol.toStringTag, { value: "Module" })), { group: U, line: vt, softline: At, indent: St } = A, Ir = async (t, e, n, i, { commentOrTag: r, embeddedOverrideOptions: o }) => {
565
+ const s = {
515
566
  ...i,
567
+ ...o
568
+ }, { node: l } = n, { createPlaceholder: p, placeholderRegex: f } = N(), d = l.quasis.map(
569
+ (m, h, { length: _ }) => h === _ - 1 ? m.value.cooked : m.value.cooked + p(h)
570
+ ).join(""), u = d.match(/^\s+/)?.[0] ?? "", c = d.match(/\s+$/)?.[0] ?? "", y = d.slice(
571
+ u.length,
572
+ -c.length || void 0
573
+ ), b = L(n, e), D = await t(y, {
574
+ ...s,
516
575
  parser: "java"
517
- }), a = S(
518
- $,
519
- E,
576
+ }), a = M(
577
+ D,
578
+ f,
520
579
  b,
521
- !0
580
+ "hardline"
522
581
  );
523
- if (i.preserveEmbeddedExteriorWhitespaces?.includes(s))
524
- return R([
582
+ if (s.preserveEmbeddedExteriorWhitespaces?.includes(r))
583
+ return U([
525
584
  "`",
585
+ u,
586
+ s.noEmbeddedMultiLineIndentation?.includes(r) ? [U(a)] : St([U(a)]),
526
587
  c,
527
- i.noEmbeddedMultiLineIndentation?.includes(s) ? [R(a)] : Et([R(a)]),
528
- p,
529
588
  "`"
530
589
  ]);
531
- const h = c.length ? mt : ht, v = p.length ? mt : ht;
532
- return R([
590
+ const g = u.length ? vt : At, E = c.length ? vt : At;
591
+ return U([
533
592
  "`",
534
- i.noEmbeddedMultiLineIndentation?.includes(s) ? [h, R(a)] : Et([h, R(a)]),
535
- v,
593
+ s.noEmbeddedMultiLineIndentation?.includes(r) ? [g, U(a)] : St([g, U(a)]),
594
+ E,
536
595
  "`"
537
596
  ]);
538
- }, _e = "embeddedJava", bs = ["java"], fs = D(_e), bt = A(_e), ft = T(_e), ys = {
539
- [fs]: {
597
+ }, Ae = "embeddedJava", xr = ["java"], Pr = T(Ae), Mt = S(Ae), Lt = v(Ae), qr = {
598
+ [Pr]: {
540
599
  category: "Embed",
541
600
  type: "string",
542
601
  array: !0,
543
- default: [{ value: [...bs] }],
602
+ default: [{ value: [...xr] }],
544
603
  description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded Java language. This option requires the `prettier-plugin-java` plugin.",
545
- deprecated: `Please use \`${bt}\` or \`${ft}\`.`
604
+ deprecated: `Please use \`${Mt}\` or \`${Lt}\`.`
546
605
  },
547
- [bt]: {
606
+ [Mt]: {
548
607
  category: "Embed",
549
608
  type: "string",
550
609
  array: !0,
551
- default: [{ value: [_] }],
610
+ default: [{ value: [$] }],
552
611
  description: "Block comments that make their subsequent template literals be identified as embedded Java language. This option requires the `prettier-plugin-java` plugin."
553
612
  },
554
- [ft]: {
613
+ [Lt]: {
555
614
  category: "Embed",
556
615
  type: "string",
557
616
  array: !0,
558
- default: [{ value: [_] }],
617
+ default: [{ value: [$] }],
559
618
  description: "Tags that make their subsequent template literals be identified as embedded Java language. This option requires the `prettier-plugin-java` plugin."
560
619
  }
561
- }, _s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
620
+ }, jr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
562
621
  __proto__: null,
563
- embedder: Es,
564
- language: _e,
565
- options: ys
566
- }, Symbol.toStringTag, { value: "Module" })), { line: yt, group: C, indent: _t, softline: $t } = M, $s = async (e, t, n, r, { commentOrTag: s, embeddedOverrideOptions: o }) => {
567
- const i = {
568
- ...r,
569
- ...o
570
- }, { node: l } = n, { createPlaceholder: u, placeholderRegex: E } = vs(), d = l.quasis.map(
571
- (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + u(g)
572
- ).join(""), c = d.match(/^\s+/)?.[0] ?? "", p = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
573
- c.length,
574
- -p.length || void 0
575
- ), b = k(n, t), $ = await e(f, {
622
+ embedder: Ir,
623
+ language: Ae,
624
+ options: qr
625
+ }, Symbol.toStringTag, { value: "Module" })), { line: Nt, group: C, indent: kt, softline: Ot } = A, Rr = async (t, e, n, i, { commentOrTag: r, embeddedOverrideOptions: o }) => {
626
+ const s = {
576
627
  ...i,
577
- parser: i.embeddedJsonParser ?? "json"
578
- }), a = S($, E, b);
579
- if (i.preserveEmbeddedExteriorWhitespaces?.includes(s))
628
+ ...o
629
+ }, { node: l } = n, { createPlaceholder: p, placeholderRegex: f } = Br(), d = l.quasis.map(
630
+ (m, h, { length: _ }) => h === _ - 1 ? m.value.cooked : m.value.cooked + p(h)
631
+ ).join(""), u = d.match(/^\s+/)?.[0] ?? "", c = d.match(/\s+$/)?.[0] ?? "", y = d.slice(
632
+ u.length,
633
+ -c.length || void 0
634
+ ), b = L(n, e), D = await t(y, {
635
+ ...s,
636
+ parser: s.embeddedJsonParser ?? "json"
637
+ }), a = M(D, f, b);
638
+ if (s.preserveEmbeddedExteriorWhitespaces?.includes(r))
580
639
  return C([
581
640
  "`",
641
+ u,
642
+ s.noEmbeddedMultiLineIndentation?.includes(r) ? [C(a)] : kt([C(a)]),
582
643
  c,
583
- i.noEmbeddedMultiLineIndentation?.includes(s) ? [C(a)] : _t([C(a)]),
584
- p,
585
644
  "`"
586
645
  ]);
587
- const h = c.length ? yt : $t, v = p.length ? yt : $t;
646
+ const g = u.length ? Nt : Ot, E = c.length ? Nt : Ot;
588
647
  return C([
589
648
  "`",
590
- i.noEmbeddedMultiLineIndentation?.includes(s) ? [h, C(a)] : _t([h, C(a)]),
591
- v,
649
+ s.noEmbeddedMultiLineIndentation?.includes(r) ? [g, C(a)] : kt([g, C(a)]),
650
+ E,
592
651
  "`"
593
652
  ]);
594
653
  };
595
- function vs() {
596
- const e = he(), t = he(), n = (s) => `'0${e}${s}${t}'`, r = new RegExp(
597
- `["']?0${e}(\\d+)${t}['"]?`,
654
+ function Br() {
655
+ const t = ye(), e = ye(), n = (r) => `'0${t}${r}${e}'`, i = new RegExp(
656
+ `["']?0${t}(\\d+)${e}['"]?`,
598
657
  "ig"
599
658
  );
600
659
  return {
601
660
  createPlaceholder: n,
602
- placeholderRegex: r
661
+ placeholderRegex: i
603
662
  };
604
663
  }
605
- const de = "embeddedJson", Ds = ["json", "jsonl"], Ts = ["json", "json5", "jsonc", "json-stringify"], Ms = D(de), vt = A(de), Dt = T(de), As = O(de), Ss = {
606
- [Ms]: {
664
+ const pe = "embeddedJson", wr = ["json", "jsonl"], Ur = ["json", "json5", "jsonc", "json-stringify"], Cr = T(pe), Gt = S(pe), It = v(pe), Wr = G(pe), Fr = {
665
+ [Cr]: {
607
666
  category: "Embed",
608
667
  type: "string",
609
668
  array: !0,
610
- default: [{ value: [...Ds] }],
669
+ default: [{ value: [...wr] }],
611
670
  description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded JSON language.",
612
- deprecated: `Please use \`${vt}\` or \`${Dt}\`.`
671
+ deprecated: `Please use \`${Gt}\` or \`${It}\`.`
613
672
  },
614
- [vt]: {
673
+ [Gt]: {
615
674
  category: "Embed",
616
675
  type: "string",
617
676
  array: !0,
618
- default: [{ value: [_] }],
677
+ default: [{ value: [$] }],
619
678
  description: "Block comments that make their subsequent template literals be identified as embedded JSON language."
620
679
  },
621
- [Dt]: {
680
+ [It]: {
622
681
  category: "Embed",
623
682
  type: "string",
624
683
  array: !0,
625
- default: [{ value: [_] }],
684
+ default: [{ value: [$] }],
626
685
  description: "Tags that make their subsequent template literals be identified as embedded JSON language."
627
686
  },
628
- [As]: {
687
+ [Wr]: {
629
688
  category: "Embed",
630
689
  type: "choice",
631
690
  default: "json",
632
691
  description: "The parser used to parse the embedded JSON language.",
633
- choices: Ts.map((e) => ({
634
- value: e,
635
- description: `Use the "${e}" parser.`
692
+ choices: Ur.map((t) => ({
693
+ value: t,
694
+ description: `Use the "${t}" parser.`
636
695
  }))
637
696
  }
638
- }, ks = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
697
+ }, zr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
639
698
  __proto__: null,
640
- embedder: $s,
641
- language: de,
642
- options: Ss
643
- }, Symbol.toStringTag, { value: "Module" })), { line: Tt, group: w, indent: Mt, softline: At } = M, Ls = async (e, t, n, r, { commentOrTag: s, embeddedOverrideOptions: o }) => {
644
- const i = {
645
- ...r,
646
- ...o
647
- }, { node: l } = n, { createPlaceholder: u, placeholderRegex: E } = L("$p"), d = l.quasis.map(
648
- (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + u(g)
649
- ).join(""), c = d.match(/^\s+/)?.[0] ?? "", p = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
650
- c.length,
651
- -p.length || void 0
652
- ), b = k(n, t), $ = await e(f, {
699
+ embedder: Rr,
700
+ language: pe,
701
+ options: Fr
702
+ }, Symbol.toStringTag, { value: "Module" })), { line: xt, group: W, indent: Pt, softline: qt } = A, Jr = async (t, e, n, i, { commentOrTag: r, embeddedOverrideOptions: o }) => {
703
+ const s = {
653
704
  ...i,
705
+ ...o
706
+ }, { node: l } = n, { createPlaceholder: p, placeholderRegex: f } = N("$p"), d = l.quasis.map(
707
+ (m, h, { length: _ }) => h === _ - 1 ? m.value.cooked : m.value.cooked + p(h)
708
+ ).join(""), u = d.match(/^\s+/)?.[0] ?? "", c = d.match(/\s+$/)?.[0] ?? "", y = d.slice(
709
+ u.length,
710
+ -c.length || void 0
711
+ ), b = L(n, e), D = await t(y, {
712
+ ...s,
654
713
  parser: "JSONata"
655
- }), a = S($, E, b);
656
- if (i.preserveEmbeddedExteriorWhitespaces?.includes(s))
657
- return w([
714
+ }), a = M(D, f, b);
715
+ if (s.preserveEmbeddedExteriorWhitespaces?.includes(r))
716
+ return W([
658
717
  "`",
718
+ u,
719
+ s.noEmbeddedMultiLineIndentation?.includes(r) ? [W(a)] : Pt([W(a)]),
659
720
  c,
660
- i.noEmbeddedMultiLineIndentation?.includes(s) ? [w(a)] : Mt([w(a)]),
661
- p,
662
721
  "`"
663
722
  ]);
664
- const h = c.length ? Tt : At, v = p.length ? Tt : At;
665
- return w([
723
+ const g = u.length ? xt : qt, E = c.length ? xt : qt;
724
+ return W([
666
725
  "`",
667
- i.noEmbeddedMultiLineIndentation?.includes(s) ? [h, w(a)] : Mt([h, w(a)]),
668
- v,
726
+ s.noEmbeddedMultiLineIndentation?.includes(r) ? [g, W(a)] : Pt([g, W(a)]),
727
+ E,
669
728
  "`"
670
729
  ]);
671
- }, $e = "embeddedJsonata", Gs = ["jsonata"], Ns = D($e), St = A($e), kt = T($e), Os = {
672
- [Ns]: {
730
+ }, Se = "embeddedJsonata", Xr = ["jsonata"], Hr = T(Se), jt = S(Se), Rt = v(Se), Qr = {
731
+ [Hr]: {
673
732
  category: "Embed",
674
733
  type: "string",
675
734
  array: !0,
676
- default: [{ value: [...Gs] }],
735
+ default: [{ value: [...Xr] }],
677
736
  description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded JSONata language. This option requires the `@stedi/prettier-plugin-jsonata` plugin.",
678
- deprecated: `Please use \`${St}\` or \`${kt}\`.`
737
+ deprecated: `Please use \`${jt}\` or \`${Rt}\`.`
679
738
  },
680
- [St]: {
739
+ [jt]: {
681
740
  category: "Embed",
682
741
  type: "string",
683
742
  array: !0,
684
- default: [{ value: [_] }],
743
+ default: [{ value: [$] }],
685
744
  description: "Block comments that make their subsequent template literals be identified as embedded JSONata language. This option requires the `@stedi/prettier-plugin-jsonata` plugin."
686
745
  },
687
- [kt]: {
746
+ [Rt]: {
688
747
  category: "Embed",
689
748
  type: "string",
690
749
  array: !0,
691
- default: [{ value: [_] }],
750
+ default: [{ value: [$] }],
692
751
  description: "Tags that make their subsequent template literals be identified as embedded JSONata language. This option requires the `@stedi/prettier-plugin-jsonata` plugin."
693
752
  }
694
- }, xs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
753
+ }, Vr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
695
754
  __proto__: null,
696
- embedder: Ls,
697
- language: $e,
698
- options: Os
699
- }, Symbol.toStringTag, { value: "Module" })), { line: Lt, group: F, indent: Gt, softline: Nt } = M, Is = async (e, t, n, r, { commentOrTag: s, embeddedOverrideOptions: o }) => {
700
- const i = {
701
- ...r,
702
- ...o
703
- }, { node: l } = n, { createPlaceholder: u, placeholderRegex: E } = L(), d = l.quasis.map(
704
- (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + u(g)
705
- ).join(""), c = d.match(/^\s+/)?.[0] ?? "", p = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
706
- c.length,
707
- -p.length || void 0
708
- ), b = k(n, t), $ = await e(f, {
755
+ embedder: Jr,
756
+ language: Se,
757
+ options: Qr
758
+ }, Symbol.toStringTag, { value: "Module" })), { line: Bt, group: F, indent: wt, softline: Ut } = A, Yr = async (t, e, n, i, { commentOrTag: r, embeddedOverrideOptions: o }) => {
759
+ const s = {
709
760
  ...i,
761
+ ...o
762
+ }, { node: l } = n, { createPlaceholder: p, placeholderRegex: f } = N(), d = l.quasis.map(
763
+ (m, h, { length: _ }) => h === _ - 1 ? m.value.cooked : m.value.cooked + p(h)
764
+ ).join(""), u = d.match(/^\s+/)?.[0] ?? "", c = d.match(/\s+$/)?.[0] ?? "", y = d.slice(
765
+ u.length,
766
+ -c.length || void 0
767
+ ), b = L(n, e), D = await t(y, {
768
+ ...s,
710
769
  parser: "latex-parser"
711
- }), a = S($, E, b);
712
- if (i.preserveEmbeddedExteriorWhitespaces?.includes(s))
770
+ }), a = M(D, f, b);
771
+ if (s.preserveEmbeddedExteriorWhitespaces?.includes(r))
713
772
  return F([
714
773
  "`",
774
+ u,
775
+ s.noEmbeddedMultiLineIndentation?.includes(r) ? [F(a)] : wt([F(a)]),
715
776
  c,
716
- i.noEmbeddedMultiLineIndentation?.includes(s) ? [F(a)] : Gt([F(a)]),
717
- p,
718
777
  "`"
719
778
  ]);
720
- const h = c.length ? Lt : Nt, v = p.length ? Lt : Nt;
779
+ const g = u.length ? Bt : Ut, E = c.length ? Bt : Ut;
721
780
  return F([
722
781
  "`",
723
- i.noEmbeddedMultiLineIndentation?.includes(s) ? [h, F(a)] : Gt([h, F(a)]),
724
- v,
782
+ s.noEmbeddedMultiLineIndentation?.includes(r) ? [g, F(a)] : wt([g, F(a)]),
783
+ E,
725
784
  "`"
726
785
  ]);
727
- }, ve = "embeddedLatex", Ps = [
786
+ }, Me = "embeddedLatex", Kr = [
728
787
  "latex",
729
788
  "tex",
730
789
  "aux",
@@ -733,976 +792,1007 @@ const de = "embeddedJson", Ds = ["json", "jsonl"], Ts = ["json", "json5", "jsonc
733
792
  "bib",
734
793
  "toc",
735
794
  "sty"
736
- ], Bs = D(ve), Ot = A(ve), xt = T(ve), qs = {
737
- [Bs]: {
795
+ ], Zr = T(Me), Ct = S(Me), Wt = v(Me), es = {
796
+ [Zr]: {
738
797
  category: "Embed",
739
798
  type: "string",
740
799
  array: !0,
741
- default: [{ value: [...Ps] }],
800
+ default: [{ value: [...Kr] }],
742
801
  description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded LaTeX language. This option requires the `prettier-plugin-latex` plugin.",
743
- deprecated: `Please use \`${Ot}\` or \`${xt}\`.`
802
+ deprecated: `Please use \`${Ct}\` or \`${Wt}\`.`
744
803
  },
745
- [Ot]: {
804
+ [Ct]: {
746
805
  category: "Embed",
747
806
  type: "string",
748
807
  array: !0,
749
- default: [{ value: [_] }],
808
+ default: [{ value: [$] }],
750
809
  description: "Block comments that make their subsequent template literals be identified as embedded LaTeX language. This option requires the `prettier-plugin-latex` plugin."
751
810
  },
752
- [xt]: {
811
+ [Wt]: {
753
812
  category: "Embed",
754
813
  type: "string",
755
814
  array: !0,
756
- default: [{ value: [_] }],
815
+ default: [{ value: [$] }],
757
816
  description: "Tags that make their subsequent template literals be identified as embedded LaTeX language. This option requires the `prettier-plugin-latex` plugin."
758
817
  }
759
- }, js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
818
+ }, ts = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
760
819
  __proto__: null,
761
- embedder: Is,
762
- language: ve,
763
- options: qs
820
+ embedder: Yr,
821
+ language: Me,
822
+ options: es
764
823
  }, Symbol.toStringTag, { value: "Module" }));
765
- function It(e, t) {
766
- var n = Object.keys(e);
824
+ function Ft(t, e) {
825
+ var n = Object.keys(t);
767
826
  if (Object.getOwnPropertySymbols) {
768
- var r = Object.getOwnPropertySymbols(e);
769
- t && (r = r.filter(function(s) {
770
- return Object.getOwnPropertyDescriptor(e, s).enumerable;
771
- })), n.push.apply(n, r);
827
+ var i = Object.getOwnPropertySymbols(t);
828
+ e && (i = i.filter(function(r) {
829
+ return Object.getOwnPropertyDescriptor(t, r).enumerable;
830
+ })), n.push.apply(n, i);
772
831
  }
773
832
  return n;
774
833
  }
775
- function Pt(e) {
776
- for (var t = 1; t < arguments.length; t++) {
777
- var n = arguments[t] != null ? arguments[t] : {};
778
- t % 2 ? It(Object(n), !0).forEach(function(r) {
779
- Us(e, r, n[r]);
780
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : It(Object(n)).forEach(function(r) {
781
- Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
834
+ function zt(t) {
835
+ for (var e = 1; e < arguments.length; e++) {
836
+ var n = arguments[e] != null ? arguments[e] : {};
837
+ e % 2 ? Ft(Object(n), !0).forEach(function(i) {
838
+ ns(t, i, n[i]);
839
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : Ft(Object(n)).forEach(function(i) {
840
+ Object.defineProperty(t, i, Object.getOwnPropertyDescriptor(n, i));
782
841
  });
783
842
  }
784
- return e;
843
+ return t;
785
844
  }
786
- function Us(e, t, n) {
787
- return t = Rs(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
845
+ function ns(t, e, n) {
846
+ return e = is(e), e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
788
847
  }
789
- function Rs(e) {
790
- var t = Cs(e, "string");
791
- return typeof t == "symbol" ? t : String(t);
848
+ function is(t) {
849
+ var e = rs(t, "string");
850
+ return typeof e == "symbol" ? e : String(e);
792
851
  }
793
- function Cs(e, t) {
794
- if (typeof e != "object" || e === null) return e;
795
- var n = e[Symbol.toPrimitive];
852
+ function rs(t, e) {
853
+ if (typeof t != "object" || t === null) return t;
854
+ var n = t[Symbol.toPrimitive];
796
855
  if (n !== void 0) {
797
- var r = n.call(e, t);
798
- if (typeof r != "object") return r;
856
+ var i = n.call(t, e);
857
+ if (typeof i != "object") return i;
799
858
  throw new TypeError("@@toPrimitive must return a primitive value.");
800
859
  }
801
- return (t === "string" ? String : Number)(e);
802
- }
803
- const ri = oi({});
804
- function oi(e) {
805
- return t.withOptions = (n) => oi(Pt(Pt({}, e), n)), t;
806
- function t(n, ...r) {
807
- const s = typeof n == "string" ? [n] : n.raw, {
808
- escapeSpecialCharacters: o = Array.isArray(n)
809
- } = e;
810
- let i = "";
811
- for (let E = 0; E < s.length; E++) {
812
- let d = s[E];
813
- o && (d = d.replace(/\\\n[ \t]*/g, "").replace(/\\`/g, "`").replace(/\\\$/g, "$").replace(/\\\{/g, "{")), i += d, E < r.length && (i += r[E]);
860
+ return (e === "string" ? String : Number)(t);
861
+ }
862
+ const _i = yi({});
863
+ function yi(t) {
864
+ return e.withOptions = (n) => yi(zt(zt({}, t), n)), e;
865
+ function e(n, ...i) {
866
+ const r = typeof n == "string" ? [n] : n.raw, {
867
+ alignValues: o = !1,
868
+ escapeSpecialCharacters: s = Array.isArray(n),
869
+ trimWhitespace: l = !0
870
+ } = t;
871
+ let p = "";
872
+ for (let u = 0; u < r.length; u++) {
873
+ let c = r[u];
874
+ if (s && (c = c.replace(/\\\n[ \t]*/g, "").replace(/\\`/g, "`").replace(/\\\$/g, "$").replace(/\\\{/g, "{")), p += c, u < i.length) {
875
+ const y = o ? ss(i[u], p) : i[u];
876
+ p += y;
877
+ }
814
878
  }
815
- const l = i.split(`
879
+ const f = p.split(`
816
880
  `);
817
- let u = null;
818
- for (const E of l) {
819
- const d = E.match(/^(\s+)\S+/);
820
- if (d) {
821
- const c = d[1].length;
822
- u ? u = Math.min(u, c) : u = c;
881
+ let d = null;
882
+ for (const u of f) {
883
+ const c = u.match(/^(\s+)\S+/);
884
+ if (c) {
885
+ const y = c[1].length;
886
+ d ? d = Math.min(d, y) : d = y;
823
887
  }
824
888
  }
825
- if (u !== null) {
826
- const E = u;
827
- i = l.map((d) => d[0] === " " || d[0] === " " ? d.slice(E) : d).join(`
889
+ if (d !== null) {
890
+ const u = d;
891
+ p = f.map((c) => c[0] === " " || c[0] === " " ? c.slice(u) : c).join(`
828
892
  `);
829
893
  }
830
- return i = i.trim(), o && (i = i.replace(/\\n/g, `
831
- `)), i;
894
+ return l && (p = p.trim()), s && (p = p.replace(/\\n/g, `
895
+ `)), typeof Bun < "u" && (p = p.replace(
896
+ // Matches e.g. \\u{1f60a} or \\u5F1F
897
+ /\\u(?:\{([\da-fA-F]{1,6})\}|([\da-fA-F]{4}))/g,
898
+ (u, c, y) => {
899
+ var b;
900
+ const D = (b = c ?? y) !== null && b !== void 0 ? b : "";
901
+ return String.fromCodePoint(parseInt(D, 16));
902
+ }
903
+ )), p;
904
+ }
905
+ }
906
+ function ss(t, e) {
907
+ if (typeof t != "string" || !t.includes(`
908
+ `))
909
+ return t;
910
+ const i = e.slice(e.lastIndexOf(`
911
+ `) + 1).match(/^(\s+)/);
912
+ if (i) {
913
+ const r = i[1];
914
+ return t.replace(/\n/g, `
915
+ ${r}`);
832
916
  }
917
+ return t;
833
918
  }
834
- const { line: Bt, group: W, indent: qt, softline: jt } = M, ws = async (e, t, n, r, { commentOrTag: s, embeddedOverrideOptions: o }) => {
835
- const i = {
836
- ...r,
919
+ const { line: Jt, group: se, indent: Xt, softline: je, dedentToRoot: Ht, literalline: os } = A, as = async (t, e, n, i, { commentOrTag: r, embeddedOverrideOptions: o }) => {
920
+ const s = {
921
+ ...i,
837
922
  ...o
838
- }, { node: l } = n, { createPlaceholder: u, placeholderRegex: E } = L(), d = l.quasis.map(
839
- (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + u(g)
840
- ).join(""), c = d.match(/^\s+/)?.[0] ?? "", p = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
841
- c.length,
842
- -p.length || void 0
843
- ), b = k(n, t), $ = await e(
923
+ }, { node: l } = n, { createPlaceholder: p, placeholderRegex: f } = N(), d = l.quasis.map(
924
+ (m, h, { length: _ }) => h === _ - 1 ? m.value.cooked : m.value.cooked + p(h)
925
+ ).join(""), u = d.match(/^\s+/)?.[0] ?? "", c = d.match(/\s+$/)?.[0] ?? "", y = d.slice(
926
+ u.length,
927
+ -c.length || void 0
928
+ ), b = L(n, e), D = await t(
844
929
  // use `dedent` to fix unstable embedded markdown indentation with the `useTabs` option
845
930
  // https://github.com/Sec-ant/prettier-plugin-embed/pull/91#issuecomment-1963760555
846
931
  // https://github.com/prettier/prettier/blob/1079517b32e5bb145afa7acba448af51f8a7b6e6/src/language-js/embed/markdown.js#L15-L19
847
- ri(f),
932
+ _i(y),
848
933
  {
849
- ...i,
850
- parser: i.embeddedMarkdownParser ?? "markdown",
934
+ ...s,
935
+ parser: s.embeddedMarkdownParser ?? "markdown",
851
936
  // this will change the code fence delimiter from ``` to ~~~
852
937
  // https://github.com/prettier/prettier/blob/1079517b32e5bb145afa7acba448af51f8a7b6e6/src/language-markdown/embed.js#L15
853
938
  __inJsTemplate: !0
854
939
  }
855
- ), a = S(
856
- $,
857
- E,
940
+ ), a = M(
941
+ D,
942
+ f,
858
943
  b,
859
- !0
944
+ "hardline"
860
945
  );
861
- if (i.preserveEmbeddedExteriorWhitespaces?.includes(s))
862
- return W([
946
+ if (s.preserveEmbeddedExteriorWhitespaces?.includes(r))
947
+ return se([
863
948
  "`",
949
+ u,
950
+ s.noEmbeddedMultiLineIndentation?.includes(r) ? Ht(se(a)) : Xt([se(a)]),
864
951
  c,
865
- i.noEmbeddedMultiLineIndentation?.includes(s) ? [W(a)] : qt([W(a)]),
866
- p,
867
952
  "`"
868
953
  ]);
869
- const h = c.length ? Bt : jt, v = p.length ? Bt : jt;
870
- return W([
954
+ const g = u.length ? Jt : je, E = c.length ? Jt : je;
955
+ return s.noEmbeddedMultiLineIndentation?.includes(r) ? ["`", os, Ht(a), je, "`"] : se([
871
956
  "`",
872
- i.noEmbeddedMultiLineIndentation?.includes(s) ? [h, W(a)] : qt([h, W(a)]),
873
- v,
957
+ Xt([g, se(a)]),
958
+ E,
874
959
  "`"
875
960
  ]);
876
- }, le = "embeddedMarkdown", Fs = ["md", "markdown"], Ws = ["markdown", "mdx", "remark"], zs = D(le), Ut = A(le), Rt = T(le), Ks = O(le), Js = {
877
- [zs]: {
961
+ }, ge = "embeddedMarkdown", ls = ["md", "markdown"], cs = ["markdown", "mdx", "remark"], ds = T(ge), Qt = S(ge), Vt = v(ge), us = G(ge), ps = {
962
+ [ds]: {
878
963
  category: "Embed",
879
964
  type: "string",
880
965
  array: !0,
881
- default: [{ value: [...Fs] }],
966
+ default: [{ value: [...ls] }],
882
967
  description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded Markdown language.",
883
- deprecated: `Please use \`${Ut}\` or \`${Rt}\`.`
968
+ deprecated: `Please use \`${Qt}\` or \`${Vt}\`.`
884
969
  },
885
- [Ut]: {
970
+ [Qt]: {
886
971
  category: "Embed",
887
972
  type: "string",
888
973
  array: !0,
889
- default: [{ value: [_] }],
974
+ default: [{ value: [$] }],
890
975
  description: "Block comments that make their subsequent template literals be identified as embedded Markdown language."
891
976
  },
892
- [Rt]: {
977
+ [Vt]: {
893
978
  category: "Embed",
894
979
  type: "string",
895
980
  array: !0,
896
- default: [{ value: [_] }],
981
+ default: [{ value: [$] }],
897
982
  description: "Tags that make their subsequent template literals be identified as embedded Markdown language."
898
983
  },
899
- [Ks]: {
984
+ [us]: {
900
985
  category: "Embed",
901
986
  type: "choice",
902
987
  default: "markdown",
903
988
  description: "The parser used to parse the embedded Markdown language.",
904
- choices: Ws.map((e) => ({
905
- value: e,
906
- description: `Use the "${e}" parser.`
989
+ choices: cs.map((t) => ({
990
+ value: t,
991
+ description: `Use the "${t}" parser.`
907
992
  }))
908
993
  }
909
- }, Hs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
994
+ }, gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
910
995
  __proto__: null,
911
- embedder: ws,
912
- language: le,
913
- options: Js
914
- }, Symbol.toStringTag, { value: "Module" })), { line: Ct, group: z, indent: wt, softline: Ft } = M, Xs = async (e, t, n, r, { commentOrTag: s, embeddedOverrideOptions: o }) => {
915
- const i = {
916
- ...r,
917
- ...o
918
- }, { node: l } = n, { createPlaceholder: u, placeholderRegex: E } = L(), d = l.quasis.map(
919
- (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + u(g)
920
- ).join(""), c = d.match(/^\s+/)?.[0] ?? "", p = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
921
- c.length,
922
- -p.length || void 0
923
- ), b = k(n, t), $ = await e(f, {
996
+ embedder: as,
997
+ language: ge,
998
+ options: ps
999
+ }, Symbol.toStringTag, { value: "Module" })), { line: Yt, group: z, indent: Kt, softline: Zt } = A, ms = async (t, e, n, i, { commentOrTag: r, embeddedOverrideOptions: o }) => {
1000
+ const s = {
924
1001
  ...i,
1002
+ ...o
1003
+ }, { node: l } = n, { createPlaceholder: p, placeholderRegex: f } = N(), d = l.quasis.map(
1004
+ (m, h, { length: _ }) => h === _ - 1 ? m.value.cooked : m.value.cooked + p(h)
1005
+ ).join(""), u = d.match(/^\s+/)?.[0] ?? "", c = d.match(/\s+$/)?.[0] ?? "", y = d.slice(
1006
+ u.length,
1007
+ -c.length || void 0
1008
+ ), b = L(n, e), D = await t(y, {
1009
+ ...s,
925
1010
  parser: "nginx"
926
- }), a = S($, E, b);
927
- if (i.preserveEmbeddedExteriorWhitespaces?.includes(s))
1011
+ }), a = M(D, f, b);
1012
+ if (s.preserveEmbeddedExteriorWhitespaces?.includes(r))
928
1013
  return z([
929
1014
  "`",
1015
+ u,
1016
+ s.noEmbeddedMultiLineIndentation?.includes(r) ? [z(a)] : Kt([z(a)]),
930
1017
  c,
931
- i.noEmbeddedMultiLineIndentation?.includes(s) ? [z(a)] : wt([z(a)]),
932
- p,
933
1018
  "`"
934
1019
  ]);
935
- const h = c.length ? Ct : Ft, v = p.length ? Ct : Ft;
1020
+ const g = u.length ? Yt : Zt, E = c.length ? Yt : Zt;
936
1021
  return z([
937
1022
  "`",
938
- i.noEmbeddedMultiLineIndentation?.includes(s) ? [h, z(a)] : wt([h, z(a)]),
939
- v,
1023
+ s.noEmbeddedMultiLineIndentation?.includes(r) ? [g, z(a)] : Kt([g, z(a)]),
1024
+ E,
940
1025
  "`"
941
1026
  ]);
942
- }, De = "embeddedNginx", Qs = ["nginx"], Ys = D(De), Wt = A(De), zt = T(De), Vs = {
943
- [Ys]: {
1027
+ }, Le = "embeddedNginx", hs = ["nginx"], fs = T(Le), en = S(Le), tn = v(Le), Es = {
1028
+ [fs]: {
944
1029
  category: "Embed",
945
1030
  type: "string",
946
1031
  array: !0,
947
- default: [{ value: [...Qs] }],
1032
+ default: [{ value: [...hs] }],
948
1033
  description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded NGINX language. This option requires the `prettier-plugin-nginx` plugin.",
949
- deprecated: `Please use \`${Wt}\` or \`${zt}\`.`
1034
+ deprecated: `Please use \`${en}\` or \`${tn}\`.`
950
1035
  },
951
- [Wt]: {
1036
+ [en]: {
952
1037
  category: "Embed",
953
1038
  type: "string",
954
1039
  array: !0,
955
- default: [{ value: [_] }],
1040
+ default: [{ value: [$] }],
956
1041
  description: "Block comments that make their subsequent template literals be identified as embedded NGINX language. This option requires the `prettier-plugin-nginx` plugin."
957
1042
  },
958
- [zt]: {
1043
+ [tn]: {
959
1044
  category: "Embed",
960
1045
  type: "string",
961
1046
  array: !0,
962
- default: [{ value: [_] }],
1047
+ default: [{ value: [$] }],
963
1048
  description: "Tags that make their subsequent template literals be identified as embedded NGINX language. This option requires the `prettier-plugin-nginx` plugin."
964
1049
  }
965
- }, Zs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1050
+ }, bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
966
1051
  __proto__: null,
967
- embedder: Xs,
968
- language: De,
969
- options: Vs
970
- }, Symbol.toStringTag, { value: "Module" })), ce = "embeddedNoop", er = D(ce), Kt = A(ce), Jt = T(ce), tr = {
971
- [er]: {
1052
+ embedder: ms,
1053
+ language: Le,
1054
+ options: Es
1055
+ }, Symbol.toStringTag, { value: "Module" })), me = "embeddedNoop", _s = T(me), nn = S(me), rn = v(me), ys = {
1056
+ [_s]: {
972
1057
  category: "Embed",
973
1058
  type: "string",
974
1059
  array: !0,
975
1060
  default: [{ value: [] }],
976
1061
  description: "Tag or comment identifiers that prevent their subsequent template literals from being identified as embedded languages and thus from being formatted.",
977
- deprecated: `Please use \`${Kt}\` or \`${Jt}\`.`
1062
+ deprecated: `Please use \`${nn}\` or \`${rn}\`.`
978
1063
  },
979
- [Kt]: {
1064
+ [nn]: {
980
1065
  category: "Embed",
981
1066
  type: "string",
982
1067
  array: !0,
983
- default: [{ value: [_] }],
1068
+ default: [{ value: [$] }],
984
1069
  description: "Block comments that prevent their subsequent template literals from being identified as embedded languages and thus from being formatted."
985
1070
  },
986
- [Jt]: {
1071
+ [rn]: {
987
1072
  category: "Embed",
988
1073
  type: "string",
989
1074
  array: !0,
990
- default: [{ value: [_] }],
1075
+ default: [{ value: [$] }],
991
1076
  description: "Tags that prevent their subsequent template literals from being identified as embedded languages and thus from being formatted."
992
1077
  }
993
- }, nr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1078
+ }, Ds = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
994
1079
  __proto__: null,
995
- language: ce,
996
- options: tr
997
- }, Symbol.toStringTag, { value: "Module" })), { line: Ht, group: K, indent: Xt, softline: Qt } = M, ir = async (e, t, n, r, { commentOrTag: s, embeddedOverrideOptions: o }) => {
998
- const i = {
999
- ...r,
1000
- ...o
1001
- }, { node: l } = n, { createPlaceholder: u, placeholderRegex: E } = L(), d = l.quasis.map(
1002
- (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + u(g)
1003
- ).join(""), c = d.match(/^\s+/)?.[0] ?? "", p = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
1004
- c.length,
1005
- -p.length || void 0
1006
- ), b = k(n, t), $ = await e(f, {
1080
+ language: me,
1081
+ options: ys
1082
+ }, Symbol.toStringTag, { value: "Module" })), { line: sn, group: J, indent: on, softline: an } = A, $s = async (t, e, n, i, { commentOrTag: r, embeddedOverrideOptions: o }) => {
1083
+ const s = {
1007
1084
  ...i,
1085
+ ...o
1086
+ }, { node: l } = n, { createPlaceholder: p, placeholderRegex: f } = N(), d = l.quasis.map(
1087
+ (m, h, { length: _ }) => h === _ - 1 ? m.value.cooked : m.value.cooked + p(h)
1088
+ ).join(""), u = d.match(/^\s+/)?.[0] ?? "", c = d.match(/\s+$/)?.[0] ?? "", y = d.slice(
1089
+ u.length,
1090
+ -c.length || void 0
1091
+ ), b = L(n, e), D = await t(y, {
1092
+ ...s,
1008
1093
  parser: "pegjs-parser"
1009
- }), a = S($, E, b);
1010
- if (i.preserveEmbeddedExteriorWhitespaces?.includes(s))
1011
- return K([
1094
+ }), a = M(D, f, b);
1095
+ if (s.preserveEmbeddedExteriorWhitespaces?.includes(r))
1096
+ return J([
1012
1097
  "`",
1098
+ u,
1099
+ s.noEmbeddedMultiLineIndentation?.includes(r) ? [J(a)] : on([J(a)]),
1013
1100
  c,
1014
- i.noEmbeddedMultiLineIndentation?.includes(s) ? [K(a)] : Xt([K(a)]),
1015
- p,
1016
1101
  "`"
1017
1102
  ]);
1018
- const h = c.length ? Ht : Qt, v = p.length ? Ht : Qt;
1019
- return K([
1103
+ const g = u.length ? sn : an, E = c.length ? sn : an;
1104
+ return J([
1020
1105
  "`",
1021
- i.noEmbeddedMultiLineIndentation?.includes(s) ? [h, K(a)] : Xt([h, K(a)]),
1022
- v,
1106
+ s.noEmbeddedMultiLineIndentation?.includes(r) ? [g, J(a)] : on([g, J(a)]),
1107
+ E,
1023
1108
  "`"
1024
1109
  ]);
1025
- }, Te = "embeddedPegjs", sr = ["pegjs", "peggy", "peg"], rr = D(Te), Yt = A(Te), Vt = T(Te), or = {
1026
- [rr]: {
1110
+ }, Ne = "embeddedPegjs", Ts = ["pegjs", "peggy", "peg"], vs = T(Ne), ln = S(Ne), cn = v(Ne), As = {
1111
+ [vs]: {
1027
1112
  category: "Embed",
1028
1113
  type: "string",
1029
1114
  array: !0,
1030
- default: [{ value: [...sr] }],
1115
+ default: [{ value: [...Ts] }],
1031
1116
  description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded Pegjs language. This option requires the `prettier-plugin-pegjs` plugin.",
1032
- deprecated: `Please use \`${Yt}\` or \`${Vt}\`.`
1117
+ deprecated: `Please use \`${ln}\` or \`${cn}\`.`
1033
1118
  },
1034
- [Yt]: {
1119
+ [ln]: {
1035
1120
  category: "Embed",
1036
1121
  type: "string",
1037
1122
  array: !0,
1038
- default: [{ value: [_] }],
1123
+ default: [{ value: [$] }],
1039
1124
  description: "Block comments that make their subsequent template literals be identified as embedded Pegjs language. This option requires the `prettier-plugin-pegjs` plugin."
1040
1125
  },
1041
- [Vt]: {
1126
+ [cn]: {
1042
1127
  category: "Embed",
1043
1128
  type: "string",
1044
1129
  array: !0,
1045
- default: [{ value: [_] }],
1130
+ default: [{ value: [$] }],
1046
1131
  description: "Tags that make their subsequent template literals be identified as embedded Pegjs language. This option requires the `prettier-plugin-pegjs` plugin."
1047
1132
  }
1048
- }, ar = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1133
+ }, Ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1049
1134
  __proto__: null,
1050
- embedder: ir,
1051
- language: Te,
1052
- options: or
1053
- }, Symbol.toStringTag, { value: "Module" })), { line: Zt, group: J, indent: en, softline: tn } = M, dr = async (e, t, n, r, { commentOrTag: s, embeddedOverrideOptions: o }) => {
1054
- const i = {
1055
- ...r,
1056
- ...o
1057
- }, { node: l } = n, { createPlaceholder: u, placeholderRegex: E } = L("$p"), d = l.quasis.map(
1058
- (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + u(g)
1059
- ).join(""), c = d.match(/^\s+/)?.[0] ?? "", p = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
1060
- c.length,
1061
- -p.length || void 0
1062
- ), b = k(n, t), $ = await e(f, {
1135
+ embedder: $s,
1136
+ language: Ne,
1137
+ options: As
1138
+ }, Symbol.toStringTag, { value: "Module" })), { line: dn, group: X, indent: un, softline: pn } = A, Ms = async (t, e, n, i, { commentOrTag: r, embeddedOverrideOptions: o }) => {
1139
+ const s = {
1063
1140
  ...i,
1141
+ ...o
1142
+ }, { node: l } = n, { createPlaceholder: p, placeholderRegex: f } = N("$p"), d = l.quasis.map(
1143
+ (m, h, { length: _ }) => h === _ - 1 ? m.value.cooked : m.value.cooked + p(h)
1144
+ ).join(""), u = d.match(/^\s+/)?.[0] ?? "", c = d.match(/\s+$/)?.[0] ?? "", y = d.slice(
1145
+ u.length,
1146
+ -c.length || void 0
1147
+ ), b = L(n, e), D = await t(y, {
1148
+ ...s,
1064
1149
  parser: "php"
1065
- }), a = S($, E, b);
1066
- if (i.preserveEmbeddedExteriorWhitespaces?.includes(s))
1067
- return J([
1150
+ }), a = M(D, f, b);
1151
+ if (s.preserveEmbeddedExteriorWhitespaces?.includes(r))
1152
+ return X([
1068
1153
  "`",
1154
+ u,
1155
+ s.noEmbeddedMultiLineIndentation?.includes(r) ? [X(a)] : un([X(a)]),
1069
1156
  c,
1070
- i.noEmbeddedMultiLineIndentation?.includes(s) ? [J(a)] : en([J(a)]),
1071
- p,
1072
1157
  "`"
1073
1158
  ]);
1074
- const h = c.length ? Zt : tn, v = p.length ? Zt : tn;
1075
- return J([
1159
+ const g = u.length ? dn : pn, E = c.length ? dn : pn;
1160
+ return X([
1076
1161
  "`",
1077
- i.noEmbeddedMultiLineIndentation?.includes(s) ? [h, J(a)] : en([h, J(a)]),
1078
- v,
1162
+ s.noEmbeddedMultiLineIndentation?.includes(r) ? [g, X(a)] : un([g, X(a)]),
1163
+ E,
1079
1164
  "`"
1080
1165
  ]);
1081
- }, Me = "embeddedPhp", lr = ["php", "php5"], cr = D(Me), nn = A(Me), sn = T(Me), ur = {
1082
- [cr]: {
1166
+ }, ke = "embeddedPhp", Ls = ["php", "php5"], Ns = T(ke), gn = S(ke), mn = v(ke), ks = {
1167
+ [Ns]: {
1083
1168
  category: "Embed",
1084
1169
  type: "string",
1085
1170
  array: !0,
1086
- default: [{ value: [...lr] }],
1171
+ default: [{ value: [...Ls] }],
1087
1172
  description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded PHP language. This option requires the `@prettier/plugin-php` plugin.",
1088
- deprecated: `Please use \`${nn}\` or \`${sn}\`.`
1173
+ deprecated: `Please use \`${gn}\` or \`${mn}\`.`
1089
1174
  },
1090
- [nn]: {
1175
+ [gn]: {
1091
1176
  category: "Embed",
1092
1177
  type: "string",
1093
1178
  array: !0,
1094
- default: [{ value: [_] }],
1179
+ default: [{ value: [$] }],
1095
1180
  description: "Block comments that make their subsequent template literals be identified as embedded PHP language. This option requires the `@prettier/plugin-php` plugin."
1096
1181
  },
1097
- [sn]: {
1182
+ [mn]: {
1098
1183
  category: "Embed",
1099
1184
  type: "string",
1100
1185
  array: !0,
1101
- default: [{ value: [_] }],
1186
+ default: [{ value: [$] }],
1102
1187
  description: "Tags that make their subsequent template literals be identified as embedded PHP language. This option requires the `@prettier/plugin-php` plugin."
1103
1188
  }
1104
- }, pr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1189
+ }, Os = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1105
1190
  __proto__: null,
1106
- embedder: dr,
1107
- language: Me,
1108
- options: ur
1109
- }, Symbol.toStringTag, { value: "Module" })), { line: rn, group: H, indent: on, softline: an } = M, gr = async (e, t, n, r, { commentOrTag: s, embeddedOverrideOptions: o }) => {
1110
- const i = {
1111
- ...r,
1112
- ...o
1113
- }, { node: l } = n, { createPlaceholder: u, placeholderRegex: E } = L(), d = l.quasis.map(
1114
- (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + u(g)
1115
- ).join(""), c = d.match(/^\s+/)?.[0] ?? "", p = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
1116
- c.length,
1117
- -p.length || void 0
1118
- ), b = k(n, t), $ = await e(f, {
1191
+ embedder: Ms,
1192
+ language: ke,
1193
+ options: ks
1194
+ }, Symbol.toStringTag, { value: "Module" })), { line: hn, group: H, indent: fn, softline: En } = A, Gs = async (t, e, n, i, { commentOrTag: r, embeddedOverrideOptions: o }) => {
1195
+ const s = {
1119
1196
  ...i,
1197
+ ...o
1198
+ }, { node: l } = n, { createPlaceholder: p, placeholderRegex: f } = N(), d = l.quasis.map(
1199
+ (m, h, { length: _ }) => h === _ - 1 ? m.value.cooked : m.value.cooked + p(h)
1200
+ ).join(""), u = d.match(/^\s+/)?.[0] ?? "", c = d.match(/\s+$/)?.[0] ?? "", y = d.slice(
1201
+ u.length,
1202
+ -c.length || void 0
1203
+ ), b = L(n, e), D = await t(y, {
1204
+ ...s,
1120
1205
  parser: "prisma-parse"
1121
- }), a = S($, E, b);
1122
- if (i.preserveEmbeddedExteriorWhitespaces?.includes(s))
1206
+ }), a = M(
1207
+ D,
1208
+ f,
1209
+ b,
1210
+ "hardline"
1211
+ );
1212
+ if (s.preserveEmbeddedExteriorWhitespaces?.includes(r))
1123
1213
  return H([
1124
1214
  "`",
1215
+ u,
1216
+ s.noEmbeddedMultiLineIndentation?.includes(r) ? [H(a)] : fn([H(a)]),
1125
1217
  c,
1126
- i.noEmbeddedMultiLineIndentation?.includes(s) ? [H(a)] : on([H(a)]),
1127
- p,
1128
1218
  "`"
1129
1219
  ]);
1130
- const h = c.length ? rn : an, v = p.length ? rn : an;
1220
+ const g = u.length ? hn : En, E = c.length ? hn : En;
1131
1221
  return H([
1132
1222
  "`",
1133
- i.noEmbeddedMultiLineIndentation?.includes(s) ? [h, H(a)] : on([h, H(a)]),
1134
- v,
1223
+ s.noEmbeddedMultiLineIndentation?.includes(r) ? [g, H(a)] : fn([g, H(a)]),
1224
+ E,
1135
1225
  "`"
1136
1226
  ]);
1137
- }, Ae = "embeddedPrisma", mr = ["prisma"], hr = D(Ae), dn = A(Ae), ln = T(Ae), Er = {
1138
- [hr]: {
1227
+ }, Oe = "embeddedPrisma", Is = ["prisma"], xs = T(Oe), bn = S(Oe), _n = v(Oe), Ps = {
1228
+ [xs]: {
1139
1229
  category: "Embed",
1140
1230
  type: "string",
1141
1231
  array: !0,
1142
- default: [{ value: [...mr] }],
1232
+ default: [{ value: [...Is] }],
1143
1233
  description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded Prisma language. This option requires the `prettier-plugin-prisma` plugin.",
1144
- deprecated: `Please use \`${dn}\` or \`${ln}\`.`
1234
+ deprecated: `Please use \`${bn}\` or \`${_n}\`.`
1145
1235
  },
1146
- [dn]: {
1236
+ [bn]: {
1147
1237
  category: "Embed",
1148
1238
  type: "string",
1149
1239
  array: !0,
1150
- default: [{ value: [_] }],
1240
+ default: [{ value: [$] }],
1151
1241
  description: "Block comments that make their subsequent template literals be identified as embedded Prisma language. This option requires the `prettier-plugin-prisma` plugin."
1152
1242
  },
1153
- [ln]: {
1243
+ [_n]: {
1154
1244
  category: "Embed",
1155
1245
  type: "string",
1156
1246
  array: !0,
1157
- default: [{ value: [_] }],
1247
+ default: [{ value: [$] }],
1158
1248
  description: "Tags that make their subsequent template literals be identified as embedded Prisma language. This option requires the `prettier-plugin-prisma` plugin."
1159
1249
  }
1160
- }, br = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1250
+ }, qs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1161
1251
  __proto__: null,
1162
- embedder: gr,
1163
- language: Ae,
1164
- options: Er
1165
- }, Symbol.toStringTag, { value: "Module" })), { line: cn, group: X, indent: un, softline: pn } = M, fr = async (e, t, n, r, { commentOrTag: s, embeddedOverrideOptions: o }) => {
1166
- const i = {
1167
- ...r,
1168
- ...o
1169
- }, { node: l } = n, { createPlaceholder: u, placeholderRegex: E } = L(), d = l.quasis.map(
1170
- (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + u(g)
1171
- ).join(""), c = d.match(/^\s+/)?.[0] ?? "", p = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
1172
- c.length,
1173
- -p.length || void 0
1174
- ), b = k(n, t), $ = await e(f, {
1252
+ embedder: Gs,
1253
+ language: Oe,
1254
+ options: Ps
1255
+ }, Symbol.toStringTag, { value: "Module" })), { line: yn, group: Q, indent: Dn, softline: $n } = A, js = async (t, e, n, i, { commentOrTag: r, embeddedOverrideOptions: o }) => {
1256
+ const s = {
1175
1257
  ...i,
1258
+ ...o
1259
+ }, { node: l } = n, { createPlaceholder: p, placeholderRegex: f } = N(), d = l.quasis.map(
1260
+ (m, h, { length: _ }) => h === _ - 1 ? m.value.cooked : m.value.cooked + p(h)
1261
+ ).join(""), u = d.match(/^\s+/)?.[0] ?? "", c = d.match(/\s+$/)?.[0] ?? "", y = d.slice(
1262
+ u.length,
1263
+ -c.length || void 0
1264
+ ), b = L(n, e), D = await t(y, {
1265
+ ...s,
1176
1266
  parser: "dot-properties"
1177
- }), a = S($, E, b);
1178
- if (i.preserveEmbeddedExteriorWhitespaces?.includes(s))
1179
- return X([
1267
+ }), a = M(D, f, b);
1268
+ if (s.preserveEmbeddedExteriorWhitespaces?.includes(r))
1269
+ return Q([
1180
1270
  "`",
1271
+ u,
1272
+ s.noEmbeddedMultiLineIndentation?.includes(r) ? [Q(a)] : Dn([Q(a)]),
1181
1273
  c,
1182
- i.noEmbeddedMultiLineIndentation?.includes(s) ? [X(a)] : un([X(a)]),
1183
- p,
1184
1274
  "`"
1185
1275
  ]);
1186
- const h = c.length ? cn : pn, v = p.length ? cn : pn;
1187
- return X([
1276
+ const g = u.length ? yn : $n, E = c.length ? yn : $n;
1277
+ return Q([
1188
1278
  "`",
1189
- i.noEmbeddedMultiLineIndentation?.includes(s) ? [h, X(a)] : un([h, X(a)]),
1190
- v,
1279
+ s.noEmbeddedMultiLineIndentation?.includes(r) ? [g, Q(a)] : Dn([g, Q(a)]),
1280
+ E,
1191
1281
  "`"
1192
1282
  ]);
1193
- }, Se = "embeddedProperties", yr = ["properties"], _r = D(Se), gn = A(Se), mn = T(Se), $r = {
1194
- [_r]: {
1283
+ }, Ge = "embeddedProperties", Rs = ["properties"], Bs = T(Ge), Tn = S(Ge), vn = v(Ge), ws = {
1284
+ [Bs]: {
1195
1285
  category: "Embed",
1196
1286
  type: "string",
1197
1287
  array: !0,
1198
- default: [{ value: [...yr] }],
1288
+ default: [{ value: [...Rs] }],
1199
1289
  description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded Properties language. This option requires the `prettier-plugin-properties` plugin.",
1200
- deprecated: `Please use \`${gn}\` or \`${mn}\`.`
1290
+ deprecated: `Please use \`${Tn}\` or \`${vn}\`.`
1201
1291
  },
1202
- [gn]: {
1292
+ [Tn]: {
1203
1293
  category: "Embed",
1204
1294
  type: "string",
1205
1295
  array: !0,
1206
- default: [{ value: [_] }],
1296
+ default: [{ value: [$] }],
1207
1297
  description: "Block comments that make their subsequent template literals be identified as embedded Properties language. This option requires the `prettier-plugin-properties` plugin."
1208
1298
  },
1209
- [mn]: {
1299
+ [vn]: {
1210
1300
  category: "Embed",
1211
1301
  type: "string",
1212
1302
  array: !0,
1213
- default: [{ value: [_] }],
1303
+ default: [{ value: [$] }],
1214
1304
  description: "Tags that make their subsequent template literals be identified as embedded Properties language. This option requires the `prettier-plugin-properties` plugin."
1215
1305
  }
1216
- }, vr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1306
+ }, Us = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1217
1307
  __proto__: null,
1218
- embedder: fr,
1219
- language: Se,
1220
- options: $r
1221
- }, Symbol.toStringTag, { value: "Module" })), { group: Q, line: hn, softline: En, indent: bn } = M, Dr = async (e, t, n, r, { commentOrTag: s, embeddedOverrideOptions: o }) => {
1222
- const i = {
1223
- ...r,
1224
- ...o
1225
- }, { node: l } = n, { createPlaceholder: u, placeholderRegex: E } = L(), d = l.quasis.map(
1226
- (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + u(g)
1227
- ).join(""), c = d.match(/^\s+/)?.[0] ?? "", p = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
1228
- c.length,
1229
- -p.length || void 0
1230
- ), b = k(n, t), $ = await e(f, {
1308
+ embedder: js,
1309
+ language: Ge,
1310
+ options: ws
1311
+ }, Symbol.toStringTag, { value: "Module" })), { group: V, line: An, softline: Sn, indent: Mn } = A, Cs = async (t, e, n, i, { commentOrTag: r, embeddedOverrideOptions: o }) => {
1312
+ const s = {
1231
1313
  ...i,
1314
+ ...o
1315
+ }, { node: l } = n, { createPlaceholder: p, placeholderRegex: f } = N(), d = l.quasis.map(
1316
+ (m, h, { length: _ }) => h === _ - 1 ? m.value.cooked : m.value.cooked + p(h)
1317
+ ).join(""), u = d.match(/^\s+/)?.[0] ?? "", c = d.match(/\s+$/)?.[0] ?? "", y = d.slice(
1318
+ u.length,
1319
+ -c.length || void 0
1320
+ ), b = L(n, e), D = await t(y, {
1321
+ ...s,
1232
1322
  parser: "pug"
1233
- }), a = S(
1234
- $,
1235
- E,
1323
+ }), a = M(
1324
+ D,
1325
+ f,
1236
1326
  b,
1237
- !0
1327
+ "hardline"
1238
1328
  );
1239
- if (i.preserveEmbeddedExteriorWhitespaces?.includes(s))
1240
- return Q([
1329
+ if (s.preserveEmbeddedExteriorWhitespaces?.includes(r))
1330
+ return V([
1241
1331
  "`",
1332
+ u,
1333
+ s.noEmbeddedMultiLineIndentation?.includes(r) ? [V(a)] : Mn([V(a)]),
1242
1334
  c,
1243
- i.noEmbeddedMultiLineIndentation?.includes(s) ? [Q(a)] : bn([Q(a)]),
1244
- p,
1245
1335
  "`"
1246
1336
  ]);
1247
- const h = c.length ? hn : En, v = p.length ? hn : En;
1248
- return Q([
1337
+ const g = u.length ? An : Sn, E = c.length ? An : Sn;
1338
+ return V([
1249
1339
  "`",
1250
- i.noEmbeddedMultiLineIndentation?.includes(s) ? [h, Q(a)] : bn([h, Q(a)]),
1251
- v,
1340
+ s.noEmbeddedMultiLineIndentation?.includes(r) ? [g, V(a)] : Mn([g, V(a)]),
1341
+ E,
1252
1342
  "`"
1253
1343
  ]);
1254
- }, ke = "embeddedPug", Tr = ["pug", "jade"], Mr = D(ke), fn = A(ke), yn = T(ke), Ar = {
1255
- [Mr]: {
1344
+ }, Ie = "embeddedPug", Ws = ["pug", "jade"], Fs = T(Ie), Ln = S(Ie), Nn = v(Ie), zs = {
1345
+ [Fs]: {
1256
1346
  category: "Embed",
1257
1347
  type: "string",
1258
1348
  array: !0,
1259
- default: [{ value: [...Tr] }],
1349
+ default: [{ value: [...Ws] }],
1260
1350
  description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded Pug language. This option requires the `@prettier/plugin-pug` plugin.",
1261
- deprecated: `Please use \`${fn}\` or \`${yn}\`.`
1351
+ deprecated: `Please use \`${Ln}\` or \`${Nn}\`.`
1262
1352
  },
1263
- [fn]: {
1353
+ [Ln]: {
1264
1354
  category: "Embed",
1265
1355
  type: "string",
1266
1356
  array: !0,
1267
- default: [{ value: [_] }],
1357
+ default: [{ value: [$] }],
1268
1358
  description: "Block comments that make their subsequent template literals be identified as embedded Pug language. This option requires the `@prettier/plugin-pug` plugin."
1269
1359
  },
1270
- [yn]: {
1360
+ [Nn]: {
1271
1361
  category: "Embed",
1272
1362
  type: "string",
1273
1363
  array: !0,
1274
- default: [{ value: [_] }],
1364
+ default: [{ value: [$] }],
1275
1365
  description: "Tags that make their subsequent template literals be identified as embedded Pug language. This option requires the `@prettier/plugin-pug` plugin."
1276
1366
  }
1277
- }, Sr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1367
+ }, Js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1278
1368
  __proto__: null,
1279
- embedder: Dr,
1280
- language: ke,
1281
- options: Ar
1282
- }, Symbol.toStringTag, { value: "Module" })), { line: _n, group: Y, indent: $n, softline: vn } = M, kr = async (e, t, n, r, { commentOrTag: s, embeddedOverrideOptions: o }) => {
1283
- const i = {
1284
- ...r,
1285
- ...o
1286
- }, { node: l } = n, { createPlaceholder: u, placeholderRegex: E } = L(), d = l.quasis.map(
1287
- (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + u(g)
1288
- ).join(""), c = d.match(/^\s+/)?.[0] ?? "", p = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
1289
- c.length,
1290
- -p.length || void 0
1291
- ), b = k(n, t), $ = await e(f, {
1369
+ embedder: Cs,
1370
+ language: Ie,
1371
+ options: zs
1372
+ }, Symbol.toStringTag, { value: "Module" })), { line: kn, group: Y, indent: On, softline: Gn } = A, Xs = async (t, e, n, i, { commentOrTag: r, embeddedOverrideOptions: o }) => {
1373
+ const s = {
1292
1374
  ...i,
1293
- parser: i.embeddedRubyParser ?? "ruby"
1294
- }), a = S($, E, b);
1295
- if (i.preserveEmbeddedExteriorWhitespaces?.includes(s))
1375
+ ...o
1376
+ }, { node: l } = n, { createPlaceholder: p, placeholderRegex: f } = N(), d = l.quasis.map(
1377
+ (m, h, { length: _ }) => h === _ - 1 ? m.value.cooked : m.value.cooked + p(h)
1378
+ ).join(""), u = d.match(/^\s+/)?.[0] ?? "", c = d.match(/\s+$/)?.[0] ?? "", y = d.slice(
1379
+ u.length,
1380
+ -c.length || void 0
1381
+ ), b = L(n, e), D = await t(y, {
1382
+ ...s,
1383
+ parser: s.embeddedRubyParser ?? "ruby"
1384
+ }), a = M(D, f, b);
1385
+ if (s.preserveEmbeddedExteriorWhitespaces?.includes(r))
1296
1386
  return Y([
1297
1387
  "`",
1388
+ u,
1389
+ s.noEmbeddedMultiLineIndentation?.includes(r) ? [Y(a)] : On([Y(a)]),
1298
1390
  c,
1299
- i.noEmbeddedMultiLineIndentation?.includes(s) ? [Y(a)] : $n([Y(a)]),
1300
- p,
1301
1391
  "`"
1302
1392
  ]);
1303
- const h = c.length ? _n : vn, v = p.length ? _n : vn;
1393
+ const g = u.length ? kn : Gn, E = c.length ? kn : Gn;
1304
1394
  return Y([
1305
1395
  "`",
1306
- i.noEmbeddedMultiLineIndentation?.includes(s) ? [h, Y(a)] : $n([h, Y(a)]),
1307
- v,
1396
+ s.noEmbeddedMultiLineIndentation?.includes(r) ? [g, Y(a)] : On([g, Y(a)]),
1397
+ E,
1308
1398
  "`"
1309
1399
  ]);
1310
- }, ue = "embeddedRuby", Lr = ["ruby"], Gr = ["ruby", "rbs", "haml"], Nr = D(ue), Dn = A(ue), Tn = T(ue), Or = O(ue), xr = {
1311
- [Nr]: {
1400
+ }, he = "embeddedRuby", Hs = ["ruby"], Qs = ["ruby", "rbs", "haml"], Vs = T(he), In = S(he), xn = v(he), Ys = G(he), Ks = {
1401
+ [Vs]: {
1312
1402
  category: "Embed",
1313
1403
  type: "string",
1314
1404
  array: !0,
1315
- default: [{ value: [...Lr] }],
1405
+ default: [{ value: [...Hs] }],
1316
1406
  description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded Ruby language. This option requires the `@prettier/plugin-ruby` plugin.",
1317
- deprecated: `Please use \`${Dn}\` or \`${Tn}\`.`
1407
+ deprecated: `Please use \`${In}\` or \`${xn}\`.`
1318
1408
  },
1319
- [Dn]: {
1409
+ [In]: {
1320
1410
  category: "Embed",
1321
1411
  type: "string",
1322
1412
  array: !0,
1323
- default: [{ value: [_] }],
1413
+ default: [{ value: [$] }],
1324
1414
  description: "Block comments that make their subsequent template literals be identified as embedded Ruby language. This option requires the `@prettier/plugin-ruby` plugin."
1325
1415
  },
1326
- [Tn]: {
1416
+ [xn]: {
1327
1417
  category: "Embed",
1328
1418
  type: "string",
1329
1419
  array: !0,
1330
- default: [{ value: [_] }],
1420
+ default: [{ value: [$] }],
1331
1421
  description: "Tags that make their subsequent template literals be identified as embedded Ruby language. This option requires the `@prettier/plugin-ruby` plugin."
1332
1422
  },
1333
- [Or]: {
1423
+ [Ys]: {
1334
1424
  category: "Embed",
1335
1425
  type: "choice",
1336
1426
  default: "ruby",
1337
1427
  description: "The parser used to parse the embedded Ruby language. This option requires the `@prettier/plugin-ruby` plugin.",
1338
- choices: Gr.map((e) => ({
1339
- value: e,
1340
- description: `Use the "${e}" parser.`
1428
+ choices: Qs.map((t) => ({
1429
+ value: t,
1430
+ description: `Use the "${t}" parser.`
1341
1431
  }))
1342
1432
  }
1343
- }, Ir = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1433
+ }, Zs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1344
1434
  __proto__: null,
1345
- embedder: kr,
1346
- language: ue,
1347
- options: xr
1348
- }, Symbol.toStringTag, { value: "Module" })), { group: V, line: Mn, softline: An, indent: Sn } = M, Pr = async (e, t, n, r, { commentOrTag: s, embeddedOverrideOptions: o }) => {
1349
- const i = {
1350
- ...r,
1351
- ...o
1352
- }, { node: l } = n, { createPlaceholder: u, placeholderRegex: E } = L(), d = l.quasis.map(
1353
- (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + u(g)
1354
- ).join(""), c = d.match(/^\s+/)?.[0] ?? "", p = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
1355
- c.length,
1356
- -p.length || void 0
1357
- ), b = k(n, t), $ = await e(f, {
1435
+ embedder: Xs,
1436
+ language: he,
1437
+ options: Ks
1438
+ }, Symbol.toStringTag, { value: "Module" })), { group: K, line: Pn, softline: qn, indent: jn } = A, eo = async (t, e, n, i, { commentOrTag: r, embeddedOverrideOptions: o }) => {
1439
+ const s = {
1358
1440
  ...i,
1441
+ ...o
1442
+ }, { node: l } = n, { createPlaceholder: p, placeholderRegex: f } = N(), d = l.quasis.map(
1443
+ (m, h, { length: _ }) => h === _ - 1 ? m.value.cooked : m.value.cooked + p(h)
1444
+ ).join(""), u = d.match(/^\s+/)?.[0] ?? "", c = d.match(/\s+$/)?.[0] ?? "", y = d.slice(
1445
+ u.length,
1446
+ -c.length || void 0
1447
+ ), b = L(n, e), D = await t(y, {
1448
+ ...s,
1359
1449
  parser: "sh"
1360
- }), a = S(
1361
- $,
1362
- E,
1450
+ }), a = M(
1451
+ D,
1452
+ f,
1363
1453
  b,
1364
- !0
1454
+ "hardline"
1365
1455
  );
1366
- if (i.preserveEmbeddedExteriorWhitespaces?.includes(s))
1367
- return V([
1456
+ if (s.preserveEmbeddedExteriorWhitespaces?.includes(r))
1457
+ return K([
1368
1458
  "`",
1459
+ u,
1460
+ s.noEmbeddedMultiLineIndentation?.includes(r) ? [K(a)] : jn([K(a)]),
1369
1461
  c,
1370
- i.noEmbeddedMultiLineIndentation?.includes(s) ? [V(a)] : Sn([V(a)]),
1371
- p,
1372
1462
  "`"
1373
1463
  ]);
1374
- const h = c.length ? Mn : An, v = p.length ? Mn : An;
1375
- return V([
1464
+ const g = u.length ? Pn : qn, E = c.length ? Pn : qn;
1465
+ return K([
1376
1466
  "`",
1377
- i.noEmbeddedMultiLineIndentation?.includes(s) ? [h, V(a)] : Sn([h, V(a)]),
1378
- v,
1467
+ s.noEmbeddedMultiLineIndentation?.includes(r) ? [g, K(a)] : jn([g, K(a)]),
1468
+ E,
1379
1469
  "`"
1380
1470
  ]);
1381
- }, Le = "embeddedSh", Br = ["sh"], qr = D(Le), kn = A(Le), Ln = T(Le), jr = {
1382
- [qr]: {
1471
+ }, xe = "embeddedSh", to = ["sh"], no = T(xe), Rn = S(xe), Bn = v(xe), io = {
1472
+ [no]: {
1383
1473
  category: "Embed",
1384
1474
  type: "string",
1385
1475
  array: !0,
1386
- default: [{ value: [...Br] }],
1476
+ default: [{ value: [...to] }],
1387
1477
  description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded Shell language. This option requires the `prettier-plugin-sh` plugin.",
1388
- deprecated: `Please use \`${kn}\` or \`${Ln}\`.`
1478
+ deprecated: `Please use \`${Rn}\` or \`${Bn}\`.`
1389
1479
  },
1390
- [kn]: {
1480
+ [Rn]: {
1391
1481
  category: "Embed",
1392
1482
  type: "string",
1393
1483
  array: !0,
1394
- default: [{ value: [_] }],
1484
+ default: [{ value: [$] }],
1395
1485
  description: "Block comments that make their subsequent template literals be identified as embedded Shell language. This option requires the `prettier-plugin-sh` plugin."
1396
1486
  },
1397
- [Ln]: {
1487
+ [Bn]: {
1398
1488
  category: "Embed",
1399
1489
  type: "string",
1400
1490
  array: !0,
1401
- default: [{ value: [_] }],
1491
+ default: [{ value: [$] }],
1402
1492
  description: "Tags that make their subsequent template literals be identified as embedded Shell language. This option requires the `prettier-plugin-sh` plugin."
1403
1493
  }
1404
- }, Ur = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1494
+ }, ro = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1405
1495
  __proto__: null,
1406
- embedder: Pr,
1407
- language: Le,
1408
- options: jr
1409
- }, Symbol.toStringTag, { value: "Module" })), { group: Z, line: Gn, softline: Nn, indent: On } = M, Rr = async (e, t, n, r, { commentOrTag: s, embeddedOverrideOptions: o }) => {
1410
- const i = {
1411
- ...r,
1496
+ embedder: eo,
1497
+ language: xe,
1498
+ options: io
1499
+ }, Symbol.toStringTag, { value: "Module" })), { group: Z, line: wn, softline: Un, indent: Cn } = A, so = async (t, e, n, i, { commentOrTag: r, embeddedOverrideOptions: o }) => {
1500
+ const s = {
1501
+ ...i,
1412
1502
  ...o
1413
- }, l = i.embeddedSqlPlugin ?? "prettier-plugin-sql", { node: u } = n, { createPlaceholder: E, placeholderRegex: d } = L(), c = u.quasis.map(
1414
- (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + E(g)
1415
- ).join(""), p = c.match(/^\s+/)?.[0] ?? "", f = c.match(/\s+$/)?.[0] ?? "", b = c.slice(
1416
- p.length,
1417
- -f.length || void 0
1418
- ), $ = k(n, t);
1503
+ }, l = s.embeddedSqlPlugin ?? "prettier-plugin-sql", { node: p } = n, { createPlaceholder: f, placeholderRegex: d } = N(), u = p.quasis.map(
1504
+ (m, h, { length: _ }) => h === _ - 1 ? m.value.cooked : m.value.cooked + f(h)
1505
+ ).join(""), c = u.match(/^\s+/)?.[0] ?? "", y = u.match(/\s+$/)?.[0] ?? "", b = u.slice(
1506
+ c.length,
1507
+ -y.length || void 0
1508
+ ), D = L(n, e);
1419
1509
  let a;
1420
1510
  if (l === "prettier-plugin-sql-cst") {
1421
- const m = await e(b, {
1422
- ...i,
1423
- parser: i.embeddedSqlParser ?? "sqlite"
1511
+ const m = await t(b, {
1512
+ ...s,
1513
+ parser: s.embeddedSqlParser ?? "sqlite"
1424
1514
  });
1425
- a = S(m, d, $);
1515
+ a = M(m, d, D);
1426
1516
  } else {
1427
- const m = await e(ri(b), {
1428
- ...i,
1517
+ const m = await t(_i(b), {
1518
+ ...s,
1429
1519
  parser: "sql"
1430
1520
  });
1431
- a = S(
1521
+ a = M(
1432
1522
  m,
1433
1523
  d,
1434
- $,
1435
- !0
1524
+ D,
1525
+ "hardline"
1436
1526
  );
1437
1527
  }
1438
- if (i.preserveEmbeddedExteriorWhitespaces?.includes(s))
1528
+ if (s.preserveEmbeddedExteriorWhitespaces?.includes(r))
1439
1529
  return Z([
1440
1530
  "`",
1441
- p,
1442
- i.noEmbeddedMultiLineIndentation?.includes(s) ? [Z(a)] : On([Z(a)]),
1443
- f,
1531
+ c,
1532
+ s.noEmbeddedMultiLineIndentation?.includes(r) ? [Z(a)] : Cn([Z(a)]),
1533
+ y,
1444
1534
  "`"
1445
1535
  ]);
1446
- const h = p.length ? Gn : Nn, v = f.length ? Gn : Nn;
1536
+ const g = c.length ? wn : Un, E = y.length ? wn : Un;
1447
1537
  return Z([
1448
1538
  "`",
1449
- i.noEmbeddedMultiLineIndentation?.includes(s) ? [h, Z(a)] : On([h, Z(a)]),
1450
- v,
1539
+ s.noEmbeddedMultiLineIndentation?.includes(r) ? [g, Z(a)] : Cn([g, Z(a)]),
1540
+ E,
1451
1541
  "`"
1452
1542
  ]);
1453
- }, se = "embeddedSql", Cr = ["sql"], wr = ["prettier-plugin-sql", "prettier-plugin-sql-cst"], Fr = [
1543
+ }, re = "embeddedSql", oo = ["sql"], ao = ["prettier-plugin-sql", "prettier-plugin-sql-cst"], lo = [
1454
1544
  "sqlite",
1455
1545
  "bigquery",
1456
1546
  "mysql",
1457
1547
  "mariadb",
1458
1548
  "postgresql"
1459
- ], Wr = D(se), xn = A(se), In = T(se), zr = Oi(se), Kr = O(se), Jr = {
1460
- [Wr]: {
1549
+ ], co = T(re), Wn = S(re), Fn = v(re), uo = Qi(re), po = G(re), go = {
1550
+ [co]: {
1461
1551
  category: "Embed",
1462
1552
  type: "string",
1463
1553
  array: !0,
1464
- default: [{ value: [...Cr] }],
1554
+ default: [{ value: [...oo] }],
1465
1555
  description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded SQL language. This option requires the `prettier-plugin-sql` plugin or the `prettier-plugin-sql-cst` plugin.",
1466
- deprecated: `Please use \`${xn}\` or \`${In}\`.`
1556
+ deprecated: `Please use \`${Wn}\` or \`${Fn}\`.`
1467
1557
  },
1468
- [xn]: {
1558
+ [Wn]: {
1469
1559
  category: "Embed",
1470
1560
  type: "string",
1471
1561
  array: !0,
1472
- default: [{ value: [_] }],
1562
+ default: [{ value: [$] }],
1473
1563
  description: "Block comments that make their subsequent template literals be identified as embedded SQL language. This option requires the `prettier-plugin-sql` plugin or the `prettier-plugin-sql-cst` plugin."
1474
1564
  },
1475
- [In]: {
1565
+ [Fn]: {
1476
1566
  category: "Embed",
1477
1567
  type: "string",
1478
1568
  array: !0,
1479
- default: [{ value: [_] }],
1569
+ default: [{ value: [$] }],
1480
1570
  description: "Tags that make their subsequent template literals be identified as embedded SQL language. This option requires the `prettier-plugin-sql` plugin or the `prettier-plugin-sql-cst` plugin."
1481
1571
  },
1482
- [zr]: {
1572
+ [uo]: {
1483
1573
  category: "Embed",
1484
1574
  type: "choice",
1485
1575
  default: "prettier-plugin-sql",
1486
1576
  description: "The plugin used to format the embedded SQL language. This option requires the `prettier-plugin-sql` plugin or the `prettier-plugin-sql-cst` plugin.",
1487
- choices: wr.map((e) => ({
1488
- value: e,
1489
- description: `Use the "${e}" plugin.`
1577
+ choices: ao.map((t) => ({
1578
+ value: t,
1579
+ description: `Use the "${t}" plugin.`
1490
1580
  }))
1491
1581
  },
1492
- [Kr]: {
1582
+ [po]: {
1493
1583
  category: "Embed",
1494
1584
  type: "choice",
1495
1585
  default: "sqlite",
1496
1586
  description: "Specify the embedded SQL language parser. This option is only needed with the `prettier-plugin-sql-cst` plugin.",
1497
- choices: Fr.map((e) => ({
1498
- value: e,
1499
- description: `Use the "${e}" parser.`
1587
+ choices: lo.map((t) => ({
1588
+ value: t,
1589
+ description: `Use the "${t}" parser.`
1500
1590
  }))
1501
1591
  }
1502
- }, Hr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1592
+ }, mo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1503
1593
  __proto__: null,
1504
- embedder: Rr,
1505
- language: se,
1506
- options: Jr
1507
- }, Symbol.toStringTag, { value: "Module" })), { line: Pn, group: ee, indent: Bn, softline: qn } = M, Xr = async (e, t, n, r, { commentOrTag: s, embeddedOverrideOptions: o }) => {
1508
- const i = {
1509
- ...r,
1510
- ...o
1511
- }, { node: l } = n, { createPlaceholder: u, placeholderRegex: E } = L(), d = l.quasis.map(
1512
- (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + u(g)
1513
- ).join(""), c = d.match(/^\s+/)?.[0] ?? "", p = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
1514
- c.length,
1515
- -p.length || void 0
1516
- ), b = k(n, t), $ = await e(f, {
1594
+ embedder: so,
1595
+ language: re,
1596
+ options: go
1597
+ }, Symbol.toStringTag, { value: "Module" })), { line: zn, group: ee, indent: Jn, softline: Xn } = A, ho = async (t, e, n, i, { commentOrTag: r, embeddedOverrideOptions: o }) => {
1598
+ const s = {
1517
1599
  ...i,
1600
+ ...o
1601
+ }, { node: l } = n, { createPlaceholder: p, placeholderRegex: f } = N(), d = l.quasis.map(
1602
+ (m, h, { length: _ }) => h === _ - 1 ? m.value.cooked : m.value.cooked + p(h)
1603
+ ).join(""), u = d.match(/^\s+/)?.[0] ?? "", c = d.match(/\s+$/)?.[0] ?? "", y = d.slice(
1604
+ u.length,
1605
+ -c.length || void 0
1606
+ ), b = L(n, e), D = await t(y, {
1607
+ ...s,
1518
1608
  parser: "toml"
1519
- }), a = S(
1520
- $,
1521
- E,
1609
+ }), a = M(
1610
+ D,
1611
+ f,
1522
1612
  b,
1523
- !0
1613
+ "hardline"
1524
1614
  );
1525
- if (i.preserveEmbeddedExteriorWhitespaces?.includes(s))
1615
+ if (s.preserveEmbeddedExteriorWhitespaces?.includes(r))
1526
1616
  return ee([
1527
1617
  "`",
1618
+ u,
1619
+ s.noEmbeddedMultiLineIndentation?.includes(r) ? [ee(a)] : Jn([ee(a)]),
1528
1620
  c,
1529
- i.noEmbeddedMultiLineIndentation?.includes(s) ? [ee(a)] : Bn([ee(a)]),
1530
- p,
1531
1621
  "`"
1532
1622
  ]);
1533
- const h = c.length ? Pn : qn, v = p.length ? Pn : qn;
1623
+ const g = u.length ? zn : Xn, E = c.length ? zn : Xn;
1534
1624
  return ee([
1535
1625
  "`",
1536
- i.noEmbeddedMultiLineIndentation?.includes(s) ? [h, ee(a)] : Bn([h, ee(a)]),
1537
- v,
1626
+ s.noEmbeddedMultiLineIndentation?.includes(r) ? [g, ee(a)] : Jn([g, ee(a)]),
1627
+ E,
1538
1628
  "`"
1539
1629
  ]);
1540
- }, Ge = "embeddedToml", Qr = ["toml"], Yr = D(Ge), jn = A(Ge), Un = T(Ge), Vr = {
1541
- [Yr]: {
1630
+ }, Pe = "embeddedToml", fo = ["toml"], Eo = T(Pe), Hn = S(Pe), Qn = v(Pe), bo = {
1631
+ [Eo]: {
1542
1632
  category: "Embed",
1543
1633
  type: "string",
1544
1634
  array: !0,
1545
- default: [{ value: [...Qr] }],
1635
+ default: [{ value: [...fo] }],
1546
1636
  description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded TOML language. This option requires the `prettier-plugin-toml` plugin.",
1547
- deprecated: `Please use \`${jn}\` or \`${Un}\`.`
1637
+ deprecated: `Please use \`${Hn}\` or \`${Qn}\`.`
1548
1638
  },
1549
- [jn]: {
1639
+ [Hn]: {
1550
1640
  category: "Embed",
1551
1641
  type: "string",
1552
1642
  array: !0,
1553
- default: [{ value: [_] }],
1643
+ default: [{ value: [$] }],
1554
1644
  description: "Block comments that make their subsequent template literals be identified as embedded TOML language. This option requires the `prettier-plugin-toml` plugin."
1555
1645
  },
1556
- [Un]: {
1646
+ [Qn]: {
1557
1647
  category: "Embed",
1558
1648
  type: "string",
1559
1649
  array: !0,
1560
- default: [{ value: [_] }],
1650
+ default: [{ value: [$] }],
1561
1651
  description: "Tags that make their subsequent template literals be identified as embedded TOML language. This option requires the `prettier-plugin-toml` plugin."
1562
1652
  }
1563
- }, Zr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1653
+ }, _o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1564
1654
  __proto__: null,
1565
- embedder: Xr,
1566
- language: Ge,
1567
- options: Vr
1568
- }, Symbol.toStringTag, { value: "Module" })), { line: Rn, group: te, indent: Cn, softline: wn } = M, eo = async (e, t, n, r, { commentOrTag: s, embeddedOverrideOptions: o }) => {
1569
- const i = {
1570
- ...r,
1571
- ...o
1572
- }, { node: l } = n, { createPlaceholder: u, placeholderRegex: E } = L(), d = l.quasis.map(
1573
- (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + u(g)
1574
- ).join(""), c = d.match(/^\s+/)?.[0] ?? "", p = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
1575
- c.length,
1576
- -p.length || void 0
1577
- ), b = k(n, t), $ = await e(f, {
1655
+ embedder: ho,
1656
+ language: Pe,
1657
+ options: bo
1658
+ }, Symbol.toStringTag, { value: "Module" })), { line: Vn, group: te, indent: Yn, softline: Kn } = A, yo = async (t, e, n, i, { commentOrTag: r, embeddedOverrideOptions: o }) => {
1659
+ const s = {
1578
1660
  ...i,
1579
- parser: i.embeddedTsParser ?? "typescript",
1661
+ ...o
1662
+ }, { node: l } = n, { createPlaceholder: p, placeholderRegex: f } = N(), d = l.quasis.map(
1663
+ (m, h, { length: _ }) => h === _ - 1 ? m.value.cooked : m.value.cooked + p(h)
1664
+ ).join(""), u = d.match(/^\s+/)?.[0] ?? "", c = d.match(/\s+$/)?.[0] ?? "", y = d.slice(
1665
+ u.length,
1666
+ -c.length || void 0
1667
+ ), b = L(n, e), D = await t(y, {
1668
+ ...s,
1669
+ parser: s.embeddedTsParser ?? "typescript",
1580
1670
  // set filepath to undefined to enable jsx auto detection:
1581
1671
  // https://github.com/prettier/prettier/blob/427a84d24203e2d54160cde153a1e6a6390fe65a/src/language-js/parse/typescript.js#L49-L53
1582
1672
  filepath: void 0
1583
- }), a = S($, E, b);
1584
- if (i.preserveEmbeddedExteriorWhitespaces?.includes(s))
1673
+ }), a = M(D, f, b);
1674
+ if (s.preserveEmbeddedExteriorWhitespaces?.includes(r))
1585
1675
  return te([
1586
1676
  "`",
1677
+ u,
1678
+ s.noEmbeddedMultiLineIndentation?.includes(r) ? [te(a)] : Yn([te(a)]),
1587
1679
  c,
1588
- i.noEmbeddedMultiLineIndentation?.includes(s) ? [te(a)] : Cn([te(a)]),
1589
- p,
1590
1680
  "`"
1591
1681
  ]);
1592
- const h = c.length ? Rn : wn, v = p.length ? Rn : wn;
1682
+ const g = u.length ? Vn : Kn, E = c.length ? Vn : Kn;
1593
1683
  return te([
1594
1684
  "`",
1595
- i.noEmbeddedMultiLineIndentation?.includes(s) ? [h, te(a)] : Cn([h, te(a)]),
1596
- v,
1685
+ s.noEmbeddedMultiLineIndentation?.includes(r) ? [g, te(a)] : Yn([g, te(a)]),
1686
+ E,
1597
1687
  "`"
1598
1688
  ]);
1599
- }, pe = "embeddedTs", to = [
1689
+ }, fe = "embeddedTs", Do = [
1600
1690
  "ts",
1601
1691
  "tsx",
1602
1692
  "cts",
1603
1693
  "mts",
1604
1694
  "typescript"
1605
- ], no = ["typescript", "babel-ts"], io = D(pe), Fn = A(pe), Wn = T(pe), so = O(pe), ro = {
1606
- [io]: {
1695
+ ], $o = ["typescript", "babel-ts"], To = T(fe), Zn = S(fe), ei = v(fe), vo = G(fe), Ao = {
1696
+ [To]: {
1607
1697
  category: "Embed",
1608
1698
  type: "string",
1609
1699
  array: !0,
1610
- default: [{ value: [...to] }],
1700
+ default: [{ value: [...Do] }],
1611
1701
  description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded TypeScript language.",
1612
- deprecated: `Please use \`${Fn}\` or \`${Wn}\`.`
1702
+ deprecated: `Please use \`${Zn}\` or \`${ei}\`.`
1613
1703
  },
1614
- [Fn]: {
1704
+ [Zn]: {
1615
1705
  category: "Embed",
1616
1706
  type: "string",
1617
1707
  array: !0,
1618
- default: [{ value: [_] }],
1708
+ default: [{ value: [$] }],
1619
1709
  description: "Block comments that make their subsequent template literals be identified as embedded TypeScript language."
1620
1710
  },
1621
- [Wn]: {
1711
+ [ei]: {
1622
1712
  category: "Embed",
1623
1713
  type: "string",
1624
1714
  array: !0,
1625
- default: [{ value: [_] }],
1715
+ default: [{ value: [$] }],
1626
1716
  description: "Tags that make their subsequent template literals be identified as embedded TypeScript language."
1627
1717
  },
1628
- [so]: {
1718
+ [vo]: {
1629
1719
  category: "Embed",
1630
1720
  type: "choice",
1631
1721
  default: "typescript",
1632
1722
  description: "The parser used to parse the embedded TypeScript language.",
1633
- choices: no.map((e) => ({
1634
- value: e,
1635
- description: `Use the "${e}" parser.`
1723
+ choices: $o.map((t) => ({
1724
+ value: t,
1725
+ description: `Use the "${t}" parser.`
1636
1726
  }))
1637
1727
  }
1638
- }, oo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1728
+ }, So = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1639
1729
  __proto__: null,
1640
- embedder: eo,
1641
- language: pe,
1642
- options: ro
1643
- }, Symbol.toStringTag, { value: "Module" })), ge = "embeddedXml", { line: zn, group: ne, indent: Kn, softline: Oe } = M, ao = async (e, t, n, r, { commentOrTag: s, embeddedOverrideOptions: o }) => {
1644
- const i = {
1645
- ...r,
1730
+ embedder: yo,
1731
+ language: fe,
1732
+ options: Ao
1733
+ }, Symbol.toStringTag, { value: "Module" })), Ee = "embeddedXml", { line: ti, group: ne, indent: ni, softline: Re } = A, Mo = async (t, e, n, i, { commentOrTag: r, embeddedOverrideOptions: o }) => {
1734
+ const s = {
1735
+ ...i,
1646
1736
  ...o
1647
- }, { node: l } = n, { createPlaceholder: u, placeholderRegex: E } = L(), d = l.quasis.map(
1648
- (g, y, { length: G }) => y === G - 1 ? g.value.cooked : g.value.cooked + u(y)
1649
- ).join(""), c = d.match(/^\s+/)?.[0] ?? "", p = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
1650
- c.length,
1651
- -p.length || void 0
1652
- ), b = k(n, t), $ = [];
1737
+ }, { node: l } = n, { createPlaceholder: p, placeholderRegex: f } = N(), d = l.quasis.map(
1738
+ (h, _, { length: k }) => _ === k - 1 ? h.value.cooked : h.value.cooked + p(_)
1739
+ ).join(""), u = d.match(/^\s+/)?.[0] ?? "", c = d.match(/\s+$/)?.[0] ?? "", y = d.slice(
1740
+ u.length,
1741
+ -c.length || void 0
1742
+ ), b = L(n, e), D = [];
1653
1743
  let a = 0;
1654
1744
  for (; a !== void 0; ) {
1655
- const g = f.slice(a);
1656
- if (g.length === 0)
1745
+ const h = y.slice(a);
1746
+ if (h.length === 0)
1657
1747
  break;
1658
- a > 0 && i.xmlWhitespaceSensitivity !== "strict" && $.push(Oe), i.__embeddedXmlFragmentRecoverIndex?.splice(
1748
+ a > 0 && s.xmlWhitespaceSensitivity !== "strict" && D.push(Re), s.__embeddedXmlFragmentRecoverIndex?.splice(
1659
1749
  0,
1660
- i.__embeddedXmlFragmentRecoverIndex.length
1750
+ s.__embeddedXmlFragmentRecoverIndex.length
1661
1751
  );
1662
- let y = await e(g, {
1663
- ...i,
1664
- parser: ge
1752
+ let _ = await t(h, {
1753
+ ...s,
1754
+ parser: Ee
1665
1755
  });
1666
- const [G, N] = i.__embeddedXmlFragmentRecoverIndex ?? [];
1667
- G === void 0 ? a = void 0 : N === void 0 ? a += G : (y = g.slice(G, N + 1), a += N + 1), $.push(y);
1756
+ const [k, O] = s.__embeddedXmlFragmentRecoverIndex ?? [];
1757
+ k === void 0 ? a = void 0 : O === void 0 ? a += k : (_ = h.slice(k, O + 1), a += O + 1), D.push(_);
1668
1758
  }
1669
- const h = S($, E, b);
1670
- if (i.xmlWhitespaceSensitivity === "strict" || i.preserveEmbeddedExteriorWhitespaces?.includes(s))
1759
+ const g = M(D, f, b);
1760
+ if (s.xmlWhitespaceSensitivity === "strict" || s.preserveEmbeddedExteriorWhitespaces?.includes(r))
1671
1761
  return ne([
1672
1762
  "`",
1763
+ u,
1764
+ s.noEmbeddedMultiLineIndentation?.includes(r) ? [ne(g)] : ni([ne(g)]),
1673
1765
  c,
1674
- i.noEmbeddedMultiLineIndentation?.includes(s) ? [ne(h)] : Kn([ne(h)]),
1675
- p,
1676
1766
  "`"
1677
1767
  ]);
1678
- const v = c.length ? zn : Oe, m = p.length ? zn : Oe;
1768
+ const E = u.length ? ti : Re, m = c.length ? ti : Re;
1679
1769
  return ne([
1680
1770
  "`",
1681
- i.noEmbeddedMultiLineIndentation?.includes(s) ? [v, ne(h)] : Kn([v, ne(h)]),
1771
+ s.noEmbeddedMultiLineIndentation?.includes(r) ? [E, ne(g)] : ni([E, ne(g)]),
1682
1772
  m,
1683
1773
  "`"
1684
1774
  ]);
1685
- }, lo = ["xml", "opml", "rss", "svg"], co = D(ge), Jn = A(ge), Hn = T(ge), uo = {
1686
- [co]: {
1775
+ }, Lo = ["xml", "opml", "rss", "svg"], No = T(Ee), ii = S(Ee), ri = v(Ee), ko = {
1776
+ [No]: {
1687
1777
  category: "Embed",
1688
1778
  type: "string",
1689
1779
  array: !0,
1690
- default: [{ value: [...lo] }],
1780
+ default: [{ value: [...Lo] }],
1691
1781
  description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded XML language. This option requires the `@prettier/plugin-xml` plugin.",
1692
- deprecated: `Please use \`${Jn}\` or \`${Hn}\`.`
1782
+ deprecated: `Please use \`${ii}\` or \`${ri}\`.`
1693
1783
  },
1694
- [Jn]: {
1784
+ [ii]: {
1695
1785
  category: "Embed",
1696
1786
  type: "string",
1697
1787
  array: !0,
1698
- default: [{ value: [_] }],
1788
+ default: [{ value: [$] }],
1699
1789
  description: "Block comments that make their subsequent template literals be identified as embedded XML language. This option requires the `@prettier/plugin-xml` plugin."
1700
1790
  },
1701
- [Hn]: {
1791
+ [ri]: {
1702
1792
  category: "Embed",
1703
1793
  type: "string",
1704
1794
  array: !0,
1705
- default: [{ value: [_] }],
1795
+ default: [{ value: [$] }],
1706
1796
  description: "Tags that make their subsequent template literals be identified as embedded XML language. This option requires the `@prettier/plugin-xml` plugin."
1707
1797
  },
1708
1798
  /**
@@ -1716,70 +1806,184 @@ const { line: Bt, group: W, indent: qt, softline: jt } = M, ws = async (e, t, n,
1716
1806
  description: "This option is read only and is used internally as a workaround to support xml fragments"
1717
1807
  }
1718
1808
  };
1719
- function po(e) {
1720
- const t = {
1809
+ function ae(t) {
1810
+ const e = t.children, n = (o) => o?.[0]?.image ?? null, i = (o) => o?.filter(le).map(ae) ?? [], r = (o) => o?.[0] && le(o[0]) ? ae(o[0]) : null;
1811
+ switch (t.name) {
1812
+ case "document":
1813
+ return {
1814
+ name: t.name,
1815
+ location: t.location,
1816
+ prolog: r(e.prolog),
1817
+ docTypeDecl: r(e.docTypeDecl),
1818
+ element: r(e.element),
1819
+ // Filter out misc nodes that only contain SEA_WS (whitespace)
1820
+ misc: (e.misc ?? []).filter(
1821
+ (o) => le(o) && !o.children.SEA_WS
1822
+ ).map(ae)
1823
+ };
1824
+ case "prolog":
1825
+ return {
1826
+ name: t.name,
1827
+ location: t.location,
1828
+ XMLDeclOpen: n(e.XMLDeclOpen),
1829
+ attribute: i(e.attribute),
1830
+ SPECIAL_CLOSE: n(e.SPECIAL_CLOSE)
1831
+ };
1832
+ case "docTypeDecl":
1833
+ return {
1834
+ name: t.name,
1835
+ location: t.location,
1836
+ DocType: n(e.DocType),
1837
+ Name: n(e.Name),
1838
+ externalID: r(e.externalID),
1839
+ CLOSE: n(e.CLOSE)
1840
+ };
1841
+ case "externalID":
1842
+ return {
1843
+ name: t.name,
1844
+ location: t.location,
1845
+ Public: n(e.Public),
1846
+ System: n(e.System),
1847
+ PubIDLiteral: n(e.PubIDLiteral),
1848
+ SystemLiteral: n(e.SystemLiteral)
1849
+ };
1850
+ case "element":
1851
+ return {
1852
+ name: t.name,
1853
+ location: t.location,
1854
+ OPEN: n(e.OPEN),
1855
+ Name: n(e.Name),
1856
+ attribute: i(e.attribute),
1857
+ START_CLOSE: n(e.START_CLOSE),
1858
+ content: r(e.content),
1859
+ SLASH_OPEN: n(e.SLASH_OPEN),
1860
+ END_NAME: n(e.END_NAME),
1861
+ END: n(e.END),
1862
+ SLASH_CLOSE: n(e.SLASH_CLOSE)
1863
+ };
1864
+ case "attribute":
1865
+ return {
1866
+ name: t.name,
1867
+ location: t.location,
1868
+ Name: n(e.Name),
1869
+ EQUALS: n(e.EQUALS),
1870
+ STRING: n(e.STRING)
1871
+ };
1872
+ case "content":
1873
+ return {
1874
+ name: t.name,
1875
+ location: t.location,
1876
+ chardata: i(e.chardata),
1877
+ element: i(e.element),
1878
+ reference: i(e.reference),
1879
+ // These should remain as IToken arrays (not mapped to .image)
1880
+ CData: e.CData ?? [],
1881
+ Comment: e.Comment ?? [],
1882
+ PROCESSING_INSTRUCTION: e.PROCESSING_INSTRUCTION ?? []
1883
+ };
1884
+ case "chardata":
1885
+ return {
1886
+ name: t.name,
1887
+ location: t.location,
1888
+ SEA_WS: n(e.SEA_WS),
1889
+ TEXT: n(e.TEXT)
1890
+ };
1891
+ case "reference":
1892
+ return {
1893
+ name: t.name,
1894
+ location: t.location,
1895
+ EntityRef: n(e.EntityRef),
1896
+ CharRef: n(e.CharRef)
1897
+ };
1898
+ case "misc":
1899
+ return {
1900
+ name: t.name,
1901
+ location: t.location,
1902
+ Comment: n(e.Comment),
1903
+ PROCESSING_INSTRUCTION: n(
1904
+ e.PROCESSING_INSTRUCTION
1905
+ ),
1906
+ SEA_WS: n(e.SEA_WS)
1907
+ };
1908
+ default:
1909
+ return {
1910
+ name: t.name,
1911
+ location: t.location,
1912
+ ...Object.fromEntries(
1913
+ Object.entries(e).map(([o, s]) => [
1914
+ o,
1915
+ Array.isArray(s) ? s.map(
1916
+ (l) => le(l) ? ae(l) : l.image
1917
+ ) : s
1918
+ ])
1919
+ )
1920
+ };
1921
+ }
1922
+ }
1923
+ function Oo(t) {
1924
+ const e = {
1721
1925
  loc: {
1722
1926
  start: {
1723
- line: e.line,
1724
- column: e.column
1927
+ line: t.line,
1928
+ column: t.column
1725
1929
  },
1726
1930
  end: {
1727
- line: e.line,
1728
- column: e.column + e.length
1931
+ line: t.line,
1932
+ column: t.column + t.length
1729
1933
  }
1730
1934
  }
1731
1935
  }, n = new SyntaxError(
1732
- `${e.message} (${t.loc.start.line}:${t.loc.start.column})`,
1936
+ `${t.message} (${e.loc.start.line}:${e.loc.start.column})`,
1733
1937
  {
1734
- cause: e
1938
+ cause: t
1735
1939
  }
1736
1940
  );
1737
- return Object.assign(n, t), n;
1941
+ return Object.assign(n, e), n;
1738
1942
  }
1739
- function Xn(e) {
1740
- const t = {
1943
+ function si(t) {
1944
+ const e = {
1741
1945
  loc: {
1742
1946
  start: {
1743
- line: e.token.startLine ?? Number.NaN,
1744
- column: e.token.startColumn ?? Number.NaN
1947
+ line: t.token.startLine ?? Number.NaN,
1948
+ column: t.token.startColumn ?? Number.NaN
1745
1949
  },
1746
1950
  end: {
1747
- line: e.token.endLine ?? Number.NaN,
1748
- column: e.token.endColumn ?? Number.NaN
1951
+ line: t.token.endLine ?? Number.NaN,
1952
+ column: t.token.endColumn ?? Number.NaN
1749
1953
  }
1750
1954
  }
1751
1955
  }, n = new SyntaxError(
1752
- `${e.message} (${t.loc.start.line}:${t.loc.start.column})`,
1956
+ `${t.message} (${e.loc.start.line}:${e.loc.start.column})`,
1753
1957
  {
1754
- cause: e
1958
+ cause: t
1755
1959
  }
1756
1960
  );
1757
- return Object.assign(n, t), n;
1961
+ return Object.assign(n, e), n;
1758
1962
  }
1759
- const go = {
1760
- async parse(e, t) {
1761
- const { parse: n } = await import("@xml-tools/parser"), { lexErrors: r, parseErrors: s, cst: o } = n(e);
1762
- if (r.length > 0) {
1763
- const i = r[0];
1764
- throw po(i);
1963
+ const Go = {
1964
+ async parse(t, e) {
1965
+ const { parse: n } = await import("@xml-tools/parser"), { lexErrors: i, parseErrors: r, cst: o } = n(t);
1966
+ if (i.length > 0) {
1967
+ const s = i[0];
1968
+ throw Oo(s);
1765
1969
  }
1766
- if (s.length > 0) {
1767
- let i = !1;
1768
- for (const l of s) {
1970
+ if (r.length > 0) {
1971
+ let s = !1;
1972
+ for (const l of r) {
1769
1973
  if (!["MismatchedTokenException", "NotAllInputParsedException"].includes(
1770
1974
  l.name
1771
1975
  ))
1772
- throw Xn(l);
1976
+ throw si(l);
1773
1977
  if (l.message === "Expecting token of type --> OPEN <-- but found --> '' <--") {
1774
- i = !0;
1978
+ s = !0;
1775
1979
  continue;
1776
1980
  }
1777
1981
  if (/Expecting token of type --> EOF <-- but found --> '[\s\S]+' <--/.test(
1778
1982
  l.message
1779
1983
  ) || /Redundant input, expecting EOF but found: /.test(l.message)) {
1780
- t.__embeddedXmlFragmentRecoverIndex?.splice(
1984
+ e.__embeddedXmlFragmentRecoverIndex?.splice(
1781
1985
  0,
1782
- t.__embeddedXmlFragmentRecoverIndex.length,
1986
+ e.__embeddedXmlFragmentRecoverIndex.length,
1783
1987
  l.token.startOffset
1784
1988
  );
1785
1989
  break;
@@ -1789,144 +1993,144 @@ const go = {
1789
1993
  )) {
1790
1994
  if (l.token.endOffset === void 0 || Number.isNaN(l.token.endOffset))
1791
1995
  break;
1792
- t.__embeddedXmlFragmentRecoverIndex?.splice(
1996
+ e.__embeddedXmlFragmentRecoverIndex?.splice(
1793
1997
  0,
1794
- t.__embeddedXmlFragmentRecoverIndex.length,
1998
+ e.__embeddedXmlFragmentRecoverIndex.length,
1795
1999
  l.token.startOffset,
1796
2000
  l.token.endOffset
1797
- ), i = !0;
2001
+ ), s = !0;
1798
2002
  break;
1799
2003
  }
1800
- throw Xn(l);
2004
+ throw si(l);
1801
2005
  }
1802
- i && ai(o);
2006
+ s && Di(o);
1803
2007
  }
1804
- return o;
2008
+ return ae(o);
1805
2009
  },
1806
2010
  astFormat: "xml",
1807
- locStart(e) {
1808
- return e.location.startOffset;
2011
+ locStart(t) {
2012
+ return t.location?.startOffset ?? 0;
1809
2013
  },
1810
- locEnd(e) {
1811
- return e.location.endOffset ?? Number.NaN;
2014
+ locEnd(t) {
2015
+ return t.location?.endOffset ?? Number.NaN;
1812
2016
  }
1813
2017
  };
1814
- function ai(e) {
1815
- const t = e.children;
1816
- for (const n in t) {
1817
- const r = t[n] ?? [];
1818
- for (let s = r.length - 1; s >= 0; --s) {
1819
- const o = r[s];
1820
- if (mo(o)) {
2018
+ function Di(t) {
2019
+ const e = t.children;
2020
+ for (const n in e) {
2021
+ const i = e[n] ?? [];
2022
+ for (let r = i.length - 1; r >= 0; --r) {
2023
+ const o = i[r];
2024
+ if (le(o)) {
1821
2025
  if (Object.keys(o.children).length === 0) {
1822
- r.splice(s, 1), r.length === 0 && delete t[n];
2026
+ i.splice(r, 1), i.length === 0 && delete e[n];
1823
2027
  continue;
1824
2028
  }
1825
- ai(o);
2029
+ Di(o);
1826
2030
  }
1827
2031
  }
1828
2032
  }
1829
2033
  }
1830
- function mo(e) {
1831
- return "name" in e && "children" in e && "location" in e;
2034
+ function le(t) {
2035
+ return "name" in t && "children" in t && "location" in t;
1832
2036
  }
1833
- const ho = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2037
+ const Io = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1834
2038
  __proto__: null,
1835
- embedder: ao,
1836
- language: ge,
1837
- options: uo,
1838
- parser: go
1839
- }, Symbol.toStringTag, { value: "Module" })), { line: Qn, group: ie, indent: Yn, softline: Vn } = M, Eo = async (e, t, n, r, { commentOrTag: s, embeddedOverrideOptions: o }) => {
1840
- const i = {
1841
- ...r,
1842
- ...o
1843
- }, { node: l } = n, { createPlaceholder: u, placeholderRegex: E } = L(), d = l.quasis.map(
1844
- (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + u(g)
1845
- ).join(""), c = d.match(/^\s+/)?.[0] ?? "", p = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
1846
- c.length,
1847
- -p.length || void 0
1848
- ), b = k(n, t), $ = await e(f, {
2039
+ embedder: Mo,
2040
+ language: Ee,
2041
+ options: ko,
2042
+ parser: Go
2043
+ }, Symbol.toStringTag, { value: "Module" })), { line: oi, group: ie, indent: ai, softline: li } = A, xo = async (t, e, n, i, { commentOrTag: r, embeddedOverrideOptions: o }) => {
2044
+ const s = {
1849
2045
  ...i,
2046
+ ...o
2047
+ }, { node: l } = n, { createPlaceholder: p, placeholderRegex: f } = N(), d = l.quasis.map(
2048
+ (m, h, { length: _ }) => h === _ - 1 ? m.value.cooked : m.value.cooked + p(h)
2049
+ ).join(""), u = d.match(/^\s+/)?.[0] ?? "", c = d.match(/\s+$/)?.[0] ?? "", y = d.slice(
2050
+ u.length,
2051
+ -c.length || void 0
2052
+ ), b = L(n, e), D = await t(y, {
2053
+ ...s,
1850
2054
  parser: "yaml"
1851
- }), a = S($, E, b);
1852
- if (i.preserveEmbeddedExteriorWhitespaces?.includes(s))
2055
+ }), a = M(D, f, b);
2056
+ if (s.preserveEmbeddedExteriorWhitespaces?.includes(r))
1853
2057
  return ie([
1854
2058
  "`",
2059
+ u,
2060
+ s.noEmbeddedMultiLineIndentation?.includes(r) ? [ie(a)] : ai([ie(a)]),
1855
2061
  c,
1856
- i.noEmbeddedMultiLineIndentation?.includes(s) ? [ie(a)] : Yn([ie(a)]),
1857
- p,
1858
2062
  "`"
1859
2063
  ]);
1860
- const h = c.length ? Qn : Vn, v = p.length ? Qn : Vn;
2064
+ const g = u.length ? oi : li, E = c.length ? oi : li;
1861
2065
  return ie([
1862
2066
  "`",
1863
- i.noEmbeddedMultiLineIndentation?.includes(s) ? [h, ie(a)] : Yn([h, ie(a)]),
1864
- v,
2067
+ s.noEmbeddedMultiLineIndentation?.includes(r) ? [g, ie(a)] : ai([g, ie(a)]),
2068
+ E,
1865
2069
  "`"
1866
2070
  ]);
1867
- }, Ne = "embeddedYaml", bo = ["yaml", "yml"], fo = D(Ne), Zn = A(Ne), ei = T(Ne), yo = {
1868
- [fo]: {
2071
+ }, qe = "embeddedYaml", Po = ["yaml", "yml"], qo = T(qe), ci = S(qe), di = v(qe), jo = {
2072
+ [qo]: {
1869
2073
  category: "Embed",
1870
2074
  type: "string",
1871
2075
  array: !0,
1872
- default: [{ value: [...bo] }],
2076
+ default: [{ value: [...Po] }],
1873
2077
  description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded YAML language.",
1874
- deprecated: `Please use \`${Zn}\` or \`${ei}\`.`
2078
+ deprecated: `Please use \`${ci}\` or \`${di}\`.`
1875
2079
  },
1876
- [Zn]: {
2080
+ [ci]: {
1877
2081
  category: "Embed",
1878
2082
  type: "string",
1879
2083
  array: !0,
1880
- default: [{ value: [_] }],
2084
+ default: [{ value: [$] }],
1881
2085
  description: "Block comments that make their subsequent template literals be identified as embedded YAML language."
1882
2086
  },
1883
- [ei]: {
2087
+ [di]: {
1884
2088
  category: "Embed",
1885
2089
  type: "string",
1886
2090
  array: !0,
1887
- default: [{ value: [_] }],
2091
+ default: [{ value: [$] }],
1888
2092
  description: "Tags that make their subsequent template literals be identified as embedded YAML language."
1889
2093
  }
1890
- }, _o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2094
+ }, Ro = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1891
2095
  __proto__: null,
1892
- embedder: Eo,
1893
- language: Ne,
1894
- options: yo
1895
- }, Symbol.toStringTag, { value: "Module" })), me = [], di = {}, li = {}, ci = {}, $o = /* @__PURE__ */ Object.assign({
1896
- "./css/index.ts": Ui,
1897
- "./es/index.ts": Ki,
1898
- "./glsl/index.ts": Yi,
1899
- "./graphql/index.ts": ns,
1900
- "./html/index.ts": cs,
1901
- "./ini/index.ts": hs,
1902
- "./java/index.ts": _s,
1903
- "./json/index.ts": ks,
1904
- "./jsonata/index.ts": xs,
1905
- "./latex/index.ts": js,
1906
- "./markdown/index.ts": Hs,
1907
- "./nginx/index.ts": Zs,
1908
- "./noop/index.ts": nr,
1909
- "./pegjs/index.ts": ar,
1910
- "./php/index.ts": pr,
1911
- "./prisma/index.ts": br,
1912
- "./properties/index.ts": vr,
1913
- "./pug/index.ts": Sr,
1914
- "./ruby/index.ts": Ir,
1915
- "./sh/index.ts": Ur,
1916
- "./sql/index.ts": Hr,
1917
- "./toml/index.ts": Zr,
1918
- "./ts/index.ts": oo,
1919
- "./xml/index.ts": ho,
1920
- "./yaml/index.ts": _o
2096
+ embedder: xo,
2097
+ language: qe,
2098
+ options: jo
2099
+ }, Symbol.toStringTag, { value: "Module" })), _e = [], $i = {}, Ti = {}, vi = {}, Bo = /* @__PURE__ */ Object.assign({
2100
+ "./css/index.ts": nr,
2101
+ "./es/index.ts": cr,
2102
+ "./glsl/index.ts": mr,
2103
+ "./graphql/index.ts": _r,
2104
+ "./html/index.ts": Mr,
2105
+ "./ini/index.ts": Gr,
2106
+ "./java/index.ts": jr,
2107
+ "./json/index.ts": zr,
2108
+ "./jsonata/index.ts": Vr,
2109
+ "./latex/index.ts": ts,
2110
+ "./markdown/index.ts": gs,
2111
+ "./nginx/index.ts": bs,
2112
+ "./noop/index.ts": Ds,
2113
+ "./pegjs/index.ts": Ss,
2114
+ "./php/index.ts": Os,
2115
+ "./prisma/index.ts": qs,
2116
+ "./properties/index.ts": Us,
2117
+ "./pug/index.ts": Js,
2118
+ "./ruby/index.ts": Zs,
2119
+ "./sh/index.ts": ro,
2120
+ "./sql/index.ts": mo,
2121
+ "./toml/index.ts": _o,
2122
+ "./ts/index.ts": So,
2123
+ "./xml/index.ts": Io,
2124
+ "./yaml/index.ts": Ro
1921
2125
  });
1922
- for (const { language: e, parser: t, embedder: n, options: r } of Object.values($o))
1923
- Ni(me, e, ce), t && (di[e] = t), n && (li[e] = n), Object.assign(ci, r);
1924
- const vo = "noEmbeddedIdentificationByComment", Do = "noEmbeddedIdentificationByTag", To = "preserveEmbeddedExteriorWhitespaces", Mo = "noEmbeddedMultiLineIndentation", Ao = "embeddedOverrides", sa = {
1925
- ...ci,
2126
+ for (const { language: t, parser: e, embedder: n, options: i } of Object.values(Bo))
2127
+ Hi(_e, t, me), e && ($i[t] = e), n && (Ti[t] = n), Object.assign(vi, i);
2128
+ const wo = "noEmbeddedIdentificationByComment", Uo = "noEmbeddedIdentificationByTag", Co = "preserveEmbeddedExteriorWhitespaces", Wo = "noEmbeddedMultiLineIndentation", Fo = "embeddedOverrides", bl = {
2129
+ ...vi,
1926
2130
  /**
1927
2131
  * @deprecated Please use `embedded<Language>Comments` or `embedded<Language>Tags` to configure each embedded language, and you won't need this option anymore.
1928
2132
  */
1929
- [vo]: {
2133
+ [wo]: {
1930
2134
  category: "Embed",
1931
2135
  type: "string",
1932
2136
  array: !0,
@@ -1937,7 +2141,7 @@ const vo = "noEmbeddedIdentificationByComment", Do = "noEmbeddedIdentificationBy
1937
2141
  /**
1938
2142
  * @deprecated Please use `embedded<Language>Comments` or `embedded<Language>Tags` to configure each embedded language, and you won't need this option anymore.
1939
2143
  */
1940
- [Do]: {
2144
+ [Uo]: {
1941
2145
  category: "Embed",
1942
2146
  type: "string",
1943
2147
  array: !0,
@@ -1945,334 +2149,853 @@ const vo = "noEmbeddedIdentificationByComment", Do = "noEmbeddedIdentificationBy
1945
2149
  description: "Turns off `` tag`...` `` tag-based embedded language identification for the specified identifiers.",
1946
2150
  deprecated: "Please use `embedded<Language>Comments` or `embedded<Language>Tags` to configure each embedded language, and you won't need this option anymore."
1947
2151
  },
1948
- [To]: {
2152
+ [Co]: {
1949
2153
  category: "Embed",
1950
2154
  type: "string",
1951
2155
  array: !0,
1952
2156
  default: [{ value: [] }],
1953
2157
  description: "Preserves leading and trailing whitespaces in the formatting results for the specified comments or tags."
1954
2158
  },
1955
- [Mo]: {
2159
+ [Wo]: {
1956
2160
  category: "Embed",
1957
2161
  type: "string",
1958
2162
  array: !0,
1959
2163
  default: [{ value: [] }],
1960
2164
  description: "Turns off auto indentation in the formatting results for the specified comments or tags when they are formatted to span multi lines."
1961
2165
  },
1962
- [Ao]: {
2166
+ [Fo]: {
1963
2167
  category: "Embed",
1964
2168
  type: "string",
1965
2169
  array: !1,
1966
2170
  default: void 0,
1967
2171
  description: "Option overrides for the specified comments or tags. It should either be a stringified JSON or an absolute filepath to the option overrides file."
1968
2172
  }
1969
- }, So = {
2173
+ }, zo = {
1970
2174
  // parsers from internal
1971
- ...fi.parsers,
1972
- ...yi.parsers,
1973
- ..._i.parsers,
1974
- ...vi.parsers,
1975
- ...$i.parsers,
2175
+ ...Oi.parsers,
2176
+ ...Gi.parsers,
2177
+ ...Ii.parsers,
2178
+ ...Pi.parsers,
2179
+ ...xi.parsers,
1976
2180
  // parsers from this plugin
1977
- ...di
1978
- };
1979
- var ko = {
1980
- isEqual: !0,
1981
- isMatchingKey: !0,
1982
- isPromise: !0,
1983
- maxSize: !0,
1984
- onCacheAdd: !0,
1985
- onCacheChange: !0,
1986
- onCacheHit: !0,
1987
- transformKey: !0
1988
- }, Lo = Array.prototype.slice;
1989
- function Ee(e) {
1990
- var t = e.length;
1991
- return t ? t === 1 ? [e[0]] : t === 2 ? [e[0], e[1]] : t === 3 ? [e[0], e[1], e[2]] : Lo.call(e, 0) : [];
1992
- }
1993
- function Go(e) {
1994
- var t = {};
1995
- for (var n in e)
1996
- ko[n] || (t[n] = e[n]);
1997
- return t;
2181
+ ...$i
2182
+ }, { getOwnPropertyNames: Jo, getOwnPropertySymbols: Xo } = Object, { hasOwnProperty: Ho } = Object.prototype;
2183
+ function Be(t, e) {
2184
+ return function(i, r, o) {
2185
+ return t(i, r, o) && e(i, r, o);
2186
+ };
1998
2187
  }
1999
- function No(e) {
2000
- return typeof e == "function" && e.isMemoized;
2188
+ function be(t) {
2189
+ return function(n, i, r) {
2190
+ if (!n || !i || typeof n != "object" || typeof i != "object")
2191
+ return t(n, i, r);
2192
+ const { cache: o } = r, s = o.get(n), l = o.get(i);
2193
+ if (s && l)
2194
+ return s === i && l === n;
2195
+ o.set(n, i), o.set(i, n);
2196
+ const p = t(n, i, r);
2197
+ return o.delete(n), o.delete(i), p;
2198
+ };
2001
2199
  }
2002
- function Oo(e, t) {
2003
- return e === t || e !== e && t !== t;
2200
+ function Qo(t) {
2201
+ return t?.[Symbol.toStringTag];
2004
2202
  }
2005
- function ti(e, t) {
2006
- var n = {};
2007
- for (var r in e)
2008
- n[r] = e[r];
2009
- for (var r in t)
2010
- n[r] = t[r];
2011
- return n;
2203
+ function ui(t) {
2204
+ return Jo(t).concat(Xo(t));
2205
+ }
2206
+ const Vo = (
2207
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
2208
+ Object.hasOwn || ((t, e) => Ho.call(t, e))
2209
+ );
2210
+ function x(t, e) {
2211
+ return t === e || !t && !e && t !== t && e !== e;
2012
2212
  }
2013
- var xo = (
2014
- /** @class */
2015
- function() {
2016
- function e(t) {
2017
- this.keys = [], this.values = [], this.options = t;
2018
- var n = typeof t.isMatchingKey == "function";
2019
- n ? this.getKeyIndex = this._getKeyIndexFromMatchingKey : t.maxSize > 1 ? this.getKeyIndex = this._getKeyIndexForMany : this.getKeyIndex = this._getKeyIndexForSingle, this.canTransformKey = typeof t.transformKey == "function", this.shouldCloneArguments = this.canTransformKey || n, this.shouldUpdateOnAdd = typeof t.onCacheAdd == "function", this.shouldUpdateOnChange = typeof t.onCacheChange == "function", this.shouldUpdateOnHit = typeof t.onCacheHit == "function";
2213
+ const Yo = "__v", Ko = "__o", Zo = "_owner", { getOwnPropertyDescriptor: pi, keys: gi } = Object;
2214
+ function ea(t, e) {
2215
+ return t.byteLength === e.byteLength && De(new Uint8Array(t), new Uint8Array(e));
2216
+ }
2217
+ function ta(t, e, n) {
2218
+ let i = t.length;
2219
+ if (e.length !== i)
2220
+ return !1;
2221
+ for (; i-- > 0; )
2222
+ if (!n.equals(t[i], e[i], i, i, t, e, n))
2223
+ return !1;
2224
+ return !0;
2225
+ }
2226
+ function na(t, e) {
2227
+ return t.byteLength === e.byteLength && De(new Uint8Array(t.buffer, t.byteOffset, t.byteLength), new Uint8Array(e.buffer, e.byteOffset, e.byteLength));
2228
+ }
2229
+ function ia(t, e) {
2230
+ return x(t.getTime(), e.getTime());
2231
+ }
2232
+ function ra(t, e) {
2233
+ return t.name === e.name && t.message === e.message && t.cause === e.cause && t.stack === e.stack;
2234
+ }
2235
+ function sa(t, e) {
2236
+ return t === e;
2237
+ }
2238
+ function mi(t, e, n) {
2239
+ const i = t.size;
2240
+ if (i !== e.size)
2241
+ return !1;
2242
+ if (!i)
2243
+ return !0;
2244
+ const r = new Array(i), o = t.entries();
2245
+ let s, l, p = 0;
2246
+ for (; (s = o.next()) && !s.done; ) {
2247
+ const f = e.entries();
2248
+ let d = !1, u = 0;
2249
+ for (; (l = f.next()) && !l.done; ) {
2250
+ if (r[u]) {
2251
+ u++;
2252
+ continue;
2253
+ }
2254
+ const c = s.value, y = l.value;
2255
+ if (n.equals(c[0], y[0], p, u, t, e, n) && n.equals(c[1], y[1], c[0], y[0], t, e, n)) {
2256
+ d = r[u] = !0;
2257
+ break;
2258
+ }
2259
+ u++;
2020
2260
  }
2021
- return Object.defineProperty(e.prototype, "size", {
2022
- /**
2023
- * The number of cached [key,value] results.
2024
- */
2025
- get: function() {
2026
- return this.keys.length;
2027
- },
2028
- enumerable: !1,
2029
- configurable: !0
2030
- }), Object.defineProperty(e.prototype, "snapshot", {
2031
- /**
2032
- * A copy of the cache at a moment in time. This is useful
2033
- * to compare changes over time, since the cache mutates
2034
- * internally for performance reasons.
2035
- */
2036
- get: function() {
2037
- return {
2038
- keys: Ee(this.keys),
2039
- size: this.size,
2040
- values: Ee(this.values)
2041
- };
2042
- },
2043
- enumerable: !1,
2044
- configurable: !0
2045
- }), e.prototype._getKeyIndexFromMatchingKey = function(t) {
2046
- var n = this.options, r = n.isMatchingKey, s = n.maxSize, o = this.keys, i = o.length;
2047
- if (!i)
2048
- return -1;
2049
- if (r(o[0], t))
2050
- return 0;
2051
- if (s > 1) {
2052
- for (var l = 1; l < i; l++)
2053
- if (r(o[l], t))
2054
- return l;
2261
+ if (!d)
2262
+ return !1;
2263
+ p++;
2264
+ }
2265
+ return !0;
2266
+ }
2267
+ const oa = x;
2268
+ function aa(t, e, n) {
2269
+ const i = gi(t);
2270
+ let r = i.length;
2271
+ if (gi(e).length !== r)
2272
+ return !1;
2273
+ for (; r-- > 0; )
2274
+ if (!Ai(t, e, n, i[r]))
2275
+ return !1;
2276
+ return !0;
2277
+ }
2278
+ function oe(t, e, n) {
2279
+ const i = ui(t);
2280
+ let r = i.length;
2281
+ if (ui(e).length !== r)
2282
+ return !1;
2283
+ let o, s, l;
2284
+ for (; r-- > 0; )
2285
+ if (o = i[r], !Ai(t, e, n, o) || (s = pi(t, o), l = pi(e, o), (s || l) && (!s || !l || s.configurable !== l.configurable || s.enumerable !== l.enumerable || s.writable !== l.writable)))
2286
+ return !1;
2287
+ return !0;
2288
+ }
2289
+ function la(t, e) {
2290
+ return x(t.valueOf(), e.valueOf());
2291
+ }
2292
+ function ca(t, e) {
2293
+ return t.source === e.source && t.flags === e.flags;
2294
+ }
2295
+ function hi(t, e, n) {
2296
+ const i = t.size;
2297
+ if (i !== e.size)
2298
+ return !1;
2299
+ if (!i)
2300
+ return !0;
2301
+ const r = new Array(i), o = t.values();
2302
+ let s, l;
2303
+ for (; (s = o.next()) && !s.done; ) {
2304
+ const p = e.values();
2305
+ let f = !1, d = 0;
2306
+ for (; (l = p.next()) && !l.done; ) {
2307
+ if (!r[d] && n.equals(s.value, l.value, s.value, l.value, t, e, n)) {
2308
+ f = r[d] = !0;
2309
+ break;
2055
2310
  }
2056
- return -1;
2057
- }, e.prototype._getKeyIndexForMany = function(t) {
2058
- var n = this.options.isEqual, r = this.keys, s = r.length;
2059
- if (!s)
2060
- return -1;
2061
- if (s === 1)
2062
- return this._getKeyIndexForSingle(t);
2063
- var o = t.length, i, l;
2064
- if (o > 1) {
2065
- for (var u = 0; u < s; u++)
2066
- if (i = r[u], i.length === o) {
2067
- for (l = 0; l < o && n(i[l], t[l]); l++)
2068
- ;
2069
- if (l === o)
2070
- return u;
2071
- }
2072
- } else
2073
- for (var u = 0; u < s; u++)
2074
- if (i = r[u], i.length === o && n(i[0], t[0]))
2075
- return u;
2076
- return -1;
2077
- }, e.prototype._getKeyIndexForSingle = function(t) {
2078
- var n = this.keys;
2079
- if (!n.length)
2080
- return -1;
2081
- var r = n[0], s = r.length;
2082
- if (t.length !== s)
2083
- return -1;
2084
- var o = this.options.isEqual;
2085
- if (s > 1) {
2086
- for (var i = 0; i < s; i++)
2087
- if (!o(r[i], t[i]))
2088
- return -1;
2089
- return 0;
2311
+ d++;
2312
+ }
2313
+ if (!f)
2314
+ return !1;
2315
+ }
2316
+ return !0;
2317
+ }
2318
+ function De(t, e) {
2319
+ let n = t.byteLength;
2320
+ if (e.byteLength !== n || t.byteOffset !== e.byteOffset)
2321
+ return !1;
2322
+ for (; n-- > 0; )
2323
+ if (t[n] !== e[n])
2324
+ return !1;
2325
+ return !0;
2326
+ }
2327
+ function da(t, e) {
2328
+ return t.hostname === e.hostname && t.pathname === e.pathname && t.protocol === e.protocol && t.port === e.port && t.hash === e.hash && t.username === e.username && t.password === e.password;
2329
+ }
2330
+ function Ai(t, e, n, i) {
2331
+ return (i === Zo || i === Ko || i === Yo) && (t.$$typeof || e.$$typeof) ? !0 : Vo(e, i) && n.equals(t[i], e[i], i, i, t, e, n);
2332
+ }
2333
+ const ua = "[object ArrayBuffer]", pa = "[object Arguments]", ga = "[object Boolean]", ma = "[object DataView]", ha = "[object Date]", fa = "[object Error]", Ea = "[object Map]", ba = "[object Number]", _a = "[object Object]", ya = "[object RegExp]", Da = "[object Set]", $a = "[object String]", Ta = {
2334
+ "[object Int8Array]": !0,
2335
+ "[object Uint8Array]": !0,
2336
+ "[object Uint8ClampedArray]": !0,
2337
+ "[object Int16Array]": !0,
2338
+ "[object Uint16Array]": !0,
2339
+ "[object Int32Array]": !0,
2340
+ "[object Uint32Array]": !0,
2341
+ "[object Float16Array]": !0,
2342
+ "[object Float32Array]": !0,
2343
+ "[object Float64Array]": !0,
2344
+ "[object BigInt64Array]": !0,
2345
+ "[object BigUint64Array]": !0
2346
+ }, va = "[object URL]", Aa = Object.prototype.toString;
2347
+ function Sa({ areArrayBuffersEqual: t, areArraysEqual: e, areDataViewsEqual: n, areDatesEqual: i, areErrorsEqual: r, areFunctionsEqual: o, areMapsEqual: s, areNumbersEqual: l, areObjectsEqual: p, arePrimitiveWrappersEqual: f, areRegExpsEqual: d, areSetsEqual: u, areTypedArraysEqual: c, areUrlsEqual: y, unknownTagComparators: b }) {
2348
+ return function(a, g, E) {
2349
+ if (a === g)
2350
+ return !0;
2351
+ if (a == null || g == null)
2352
+ return !1;
2353
+ const m = typeof a;
2354
+ if (m !== typeof g)
2355
+ return !1;
2356
+ if (m !== "object")
2357
+ return m === "number" ? l(a, g, E) : m === "function" ? o(a, g, E) : !1;
2358
+ const h = a.constructor;
2359
+ if (h !== g.constructor)
2360
+ return !1;
2361
+ if (h === Object)
2362
+ return p(a, g, E);
2363
+ if (Array.isArray(a))
2364
+ return e(a, g, E);
2365
+ if (h === Date)
2366
+ return i(a, g, E);
2367
+ if (h === RegExp)
2368
+ return d(a, g, E);
2369
+ if (h === Map)
2370
+ return s(a, g, E);
2371
+ if (h === Set)
2372
+ return u(a, g, E);
2373
+ const _ = Aa.call(a);
2374
+ if (_ === ha)
2375
+ return i(a, g, E);
2376
+ if (_ === ya)
2377
+ return d(a, g, E);
2378
+ if (_ === Ea)
2379
+ return s(a, g, E);
2380
+ if (_ === Da)
2381
+ return u(a, g, E);
2382
+ if (_ === _a)
2383
+ return typeof a.then != "function" && typeof g.then != "function" && p(a, g, E);
2384
+ if (_ === va)
2385
+ return y(a, g, E);
2386
+ if (_ === fa)
2387
+ return r(a, g, E);
2388
+ if (_ === pa)
2389
+ return p(a, g, E);
2390
+ if (Ta[_])
2391
+ return c(a, g, E);
2392
+ if (_ === ua)
2393
+ return t(a, g, E);
2394
+ if (_ === ma)
2395
+ return n(a, g, E);
2396
+ if (_ === ga || _ === ba || _ === $a)
2397
+ return f(a, g, E);
2398
+ if (b) {
2399
+ let k = b[_];
2400
+ if (!k) {
2401
+ const O = Qo(a);
2402
+ O && (k = b[O]);
2090
2403
  }
2091
- return o(r[0], t[0]) ? 0 : -1;
2092
- }, e.prototype.orderByLru = function(t, n, r) {
2093
- for (var s = this.keys, o = this.values, i = s.length, l = r; l--; )
2094
- s[l + 1] = s[l], o[l + 1] = o[l];
2095
- s[0] = t, o[0] = n;
2096
- var u = this.options.maxSize;
2097
- i === u && r === i ? (s.pop(), o.pop()) : r >= u && (s.length = o.length = u);
2098
- }, e.prototype.updateAsyncCache = function(t) {
2099
- var n = this, r = this.options, s = r.onCacheChange, o = r.onCacheHit, i = this.keys[0], l = this.values[0];
2100
- this.values[0] = l.then(function(u) {
2101
- return n.shouldUpdateOnHit && o(n, n.options, t), n.shouldUpdateOnChange && s(n, n.options, t), u;
2102
- }, function(u) {
2103
- var E = n.getKeyIndex(i);
2104
- throw E !== -1 && (n.keys.splice(E, 1), n.values.splice(E, 1)), u;
2404
+ if (k)
2405
+ return k(a, g, E);
2406
+ }
2407
+ return !1;
2408
+ };
2409
+ }
2410
+ function Ma({ circular: t, createCustomConfig: e, strict: n }) {
2411
+ let i = {
2412
+ areArrayBuffersEqual: ea,
2413
+ areArraysEqual: n ? oe : ta,
2414
+ areDataViewsEqual: na,
2415
+ areDatesEqual: ia,
2416
+ areErrorsEqual: ra,
2417
+ areFunctionsEqual: sa,
2418
+ areMapsEqual: n ? Be(mi, oe) : mi,
2419
+ areNumbersEqual: oa,
2420
+ areObjectsEqual: n ? oe : aa,
2421
+ arePrimitiveWrappersEqual: la,
2422
+ areRegExpsEqual: ca,
2423
+ areSetsEqual: n ? Be(hi, oe) : hi,
2424
+ areTypedArraysEqual: n ? Be(De, oe) : De,
2425
+ areUrlsEqual: da,
2426
+ unknownTagComparators: void 0
2427
+ };
2428
+ if (e && (i = Object.assign({}, i, e(i))), t) {
2429
+ const r = be(i.areArraysEqual), o = be(i.areMapsEqual), s = be(i.areObjectsEqual), l = be(i.areSetsEqual);
2430
+ i = Object.assign({}, i, {
2431
+ areArraysEqual: r,
2432
+ areMapsEqual: o,
2433
+ areObjectsEqual: s,
2434
+ areSetsEqual: l
2435
+ });
2436
+ }
2437
+ return i;
2438
+ }
2439
+ function La(t) {
2440
+ return function(e, n, i, r, o, s, l) {
2441
+ return t(e, n, l);
2442
+ };
2443
+ }
2444
+ function Na({ circular: t, comparator: e, createState: n, equals: i, strict: r }) {
2445
+ if (n)
2446
+ return function(l, p) {
2447
+ const { cache: f = t ? /* @__PURE__ */ new WeakMap() : void 0, meta: d } = n();
2448
+ return e(l, p, {
2449
+ cache: f,
2450
+ equals: i,
2451
+ meta: d,
2452
+ strict: r
2105
2453
  });
2106
- }, e;
2107
- }()
2108
- );
2109
- function ui(e, t) {
2110
- if (t === void 0 && (t = {}), No(e))
2111
- return ui(e.fn, ti(e.options, t));
2112
- if (typeof e != "function")
2113
- throw new TypeError("You must pass a function to `memoize`.");
2114
- var n = t.isEqual, r = n === void 0 ? Oo : n, s = t.isMatchingKey, o = t.isPromise, i = o === void 0 ? !1 : o, l = t.maxSize, u = l === void 0 ? 1 : l, E = t.onCacheAdd, d = t.onCacheChange, c = t.onCacheHit, p = t.transformKey, f = ti({
2115
- isEqual: r,
2116
- isMatchingKey: s,
2117
- isPromise: i,
2118
- maxSize: u,
2119
- onCacheAdd: E,
2120
- onCacheChange: d,
2121
- onCacheHit: c,
2122
- transformKey: p
2123
- }, Go(t)), b = new xo(f), $ = b.keys, a = b.values, h = b.canTransformKey, v = b.shouldCloneArguments, m = b.shouldUpdateOnAdd, g = b.shouldUpdateOnChange, y = b.shouldUpdateOnHit, G = function() {
2124
- var N = v ? Ee(arguments) : arguments;
2125
- h && (N = p(N));
2126
- var x = $.length ? b.getKeyIndex(N) : -1;
2127
- if (x !== -1)
2128
- y && c(b, f, G), x && (b.orderByLru($[x], a[x], x), g && d(b, f, G));
2129
- else {
2130
- var Ei = e.apply(this, arguments), bi = v ? N : Ee(arguments);
2131
- b.orderByLru(bi, Ei, $.length), i && b.updateAsyncCache(G), m && E(b, f, G), g && d(b, f, G);
2454
+ };
2455
+ if (t)
2456
+ return function(l, p) {
2457
+ return e(l, p, {
2458
+ cache: /* @__PURE__ */ new WeakMap(),
2459
+ equals: i,
2460
+ meta: void 0,
2461
+ strict: r
2462
+ });
2463
+ };
2464
+ const o = {
2465
+ cache: void 0,
2466
+ equals: i,
2467
+ meta: void 0,
2468
+ strict: r
2469
+ };
2470
+ return function(l, p) {
2471
+ return e(l, p, o);
2472
+ };
2473
+ }
2474
+ const ka = I();
2475
+ I({ strict: !0 });
2476
+ I({ circular: !0 });
2477
+ I({
2478
+ circular: !0,
2479
+ strict: !0
2480
+ });
2481
+ const Oa = I({
2482
+ createInternalComparator: () => x
2483
+ });
2484
+ I({
2485
+ strict: !0,
2486
+ createInternalComparator: () => x
2487
+ });
2488
+ I({
2489
+ circular: !0,
2490
+ createInternalComparator: () => x
2491
+ });
2492
+ I({
2493
+ circular: !0,
2494
+ createInternalComparator: () => x,
2495
+ strict: !0
2496
+ });
2497
+ function I(t = {}) {
2498
+ const { circular: e = !1, createInternalComparator: n, createState: i, strict: r = !1 } = t, o = Ma(t), s = Sa(o), l = n ? n(s) : La(s);
2499
+ return Na({ circular: e, comparator: s, createState: i, equals: l, strict: r });
2500
+ }
2501
+ var Ga = {};
2502
+ function Ia(t, e) {
2503
+ var n = e === void 0 ? Ga : e, i = n.indent, r = n.replacer, o = n.circularReplacer, s = n.stable, l = n.stabilizer, p = [], f = [], d = s && l ? function(u) {
2504
+ var c = {
2505
+ get: function(y) {
2506
+ return u[y];
2507
+ }
2508
+ };
2509
+ return function(y, b) {
2510
+ return l({ key: y, value: u[y] }, { key: b, value: u[b] }, c);
2511
+ };
2512
+ } : void 0;
2513
+ return JSON.stringify(t, function(c, y) {
2514
+ var b = y;
2515
+ if (typeof b == "object" && b !== null) {
2516
+ if (p.length) {
2517
+ var D = p.indexOf(this) + 1;
2518
+ D === 0 ? p[p.length] = this : (p.splice(D), f.splice(D)), f[f.length] = c;
2519
+ var a = p.indexOf(b) + 1;
2520
+ if (a > 0) {
2521
+ var g = f.slice(0, a).join(".") || ".";
2522
+ return o ? o.call(this, c, b, g) : "[ref=" + g + "]";
2523
+ }
2524
+ } else
2525
+ p[0] = b, f[0] = c;
2526
+ s && !Array.isArray(b) && (b = Object.keys(b).sort(d?.(b)).reduce(function(E, m) {
2527
+ return E[m] = b[m], E;
2528
+ }, {}));
2132
2529
  }
2133
- return a[0];
2530
+ return r ? r.call(this, c, b) : b;
2531
+ }, i);
2532
+ }
2533
+ class xa {
2534
+ constructor(e) {
2535
+ this.l = {}, this.c = e;
2536
+ }
2537
+ /**
2538
+ * Method to [a]dd a listener for the given cache change event.
2539
+ */
2540
+ a(e, n) {
2541
+ const i = this.l[e];
2542
+ i ? i.has(n) || i.add(n) : this.l[e] = /* @__PURE__ */ new Set([n]);
2543
+ }
2544
+ /**
2545
+ * Method to [n]otify all listeners for the given cache change event.
2546
+ */
2547
+ n(e, n, i) {
2548
+ const r = this.l[e];
2549
+ r && r.forEach((o) => {
2550
+ o({
2551
+ cache: this.c,
2552
+ key: n.k,
2553
+ reason: i,
2554
+ value: n.v,
2555
+ type: e
2556
+ });
2557
+ });
2558
+ }
2559
+ /**
2560
+ * Method to [r]emove a listener for the given cache change event.
2561
+ */
2562
+ r(e, n) {
2563
+ const i = this.l[e];
2564
+ i && (i.delete(n), i.size || (this.l[e] = void 0));
2565
+ }
2566
+ }
2567
+ function Pa(t) {
2568
+ return t === 1 ? (e) => t >= e.length ? e : [e[0]] : t === 2 ? (e) => t >= e.length ? e : [e[0], e[1]] : (e) => {
2569
+ if (t >= e.length)
2570
+ return e;
2571
+ const n = new Array(t);
2572
+ for (let i = 0; i < t; ++i)
2573
+ n[i] = e[i];
2574
+ return n;
2134
2575
  };
2135
- return G.cache = b, G.fn = e, G.isMemoized = !0, G.options = f, G;
2136
2576
  }
2137
- const Io = /("(?:\\?[^])*?")|(\/\/.*)|(\/\*[^]*?\*\/)/g, Po = /("(?:\\?[^])*?")|(,\s*)(?=]|})/g, Pe = {
2138
- parse: (e) => {
2139
- e = String(e);
2577
+ function qa(t, e) {
2578
+ const n = typeof e;
2579
+ return n === "function" || n === "symbol" ? e.toString() : e;
2580
+ }
2581
+ function ja(t) {
2582
+ return [Ia(t, { replacer: qa })];
2583
+ }
2584
+ function Ra(t, e) {
2585
+ return t[0] === e[0];
2586
+ }
2587
+ function Ba(t) {
2588
+ return typeof t == "function" && t.isMemoized;
2589
+ }
2590
+ function We(t) {
2591
+ return typeof t == "number" && t >= 0 && Number.isFinite(t);
2592
+ }
2593
+ class wa {
2594
+ constructor(e) {
2595
+ this.c = 0;
2596
+ const { async: n, maxSize: i } = e;
2597
+ this.e = Ua(e), this.k = Ca(e), this.p = typeof n == "boolean" && n, this.s = We(i) ? i : 1;
2598
+ }
2599
+ /**
2600
+ * The size of the populated cache.
2601
+ */
2602
+ get size() {
2603
+ return this.c;
2604
+ }
2605
+ /**
2606
+ * The [key, value] pairs for the existing entries in cache.
2607
+ */
2608
+ get snapshot() {
2609
+ const e = [], n = [], i = [];
2610
+ let r = this.h, o = 0;
2611
+ for (; r != null; )
2612
+ n.push(r.k), i.push(r.v), e.push([r.k, r.v]), ++o, r = r.n;
2613
+ return { entries: e, keys: n, size: o, values: i };
2614
+ }
2615
+ /**
2616
+ * Clear the cache.
2617
+ */
2618
+ clear(e = "explicit clear") {
2619
+ if (!this.h)
2620
+ return;
2621
+ const n = this.o;
2622
+ let i;
2623
+ if (n) {
2624
+ i = [];
2625
+ let r = this.h;
2626
+ for (; r != null; )
2627
+ i.push(r), r = r.n;
2628
+ }
2629
+ if (this.h = this.t = void 0, this.c = 0, n && i)
2630
+ for (let r = 0; r < i.length; ++r)
2631
+ n.n("delete", i[r], e);
2632
+ }
2633
+ /**
2634
+ * Delete the entry for the key based on the given `args` in cache.
2635
+ */
2636
+ delete(e, n = "explicit delete") {
2637
+ const i = this.g(this.k ? this.k(e) : e);
2638
+ return i ? (this.d(i, n), !0) : !1;
2639
+ }
2640
+ /**
2641
+ * Get the value in cache based on the given `args`.
2642
+ */
2643
+ get(e, n = "explicit get") {
2644
+ const i = this.g(this.k ? this.k(e) : e);
2645
+ if (i)
2646
+ return i !== this.h ? this.u(i, n, !0) : this.o && this.o.n("hit", i, n), i.v;
2647
+ }
2648
+ /**
2649
+ * Determine whether the given `args` have a related entry in the cache.
2650
+ */
2651
+ has(e) {
2652
+ return !!this.g(this.k ? this.k(e) : e);
2653
+ }
2654
+ /**
2655
+ * Remove the given `listener` for the given `type` of cache event.
2656
+ */
2657
+ off(e, n) {
2658
+ this.o && this.o.r(e, n);
2659
+ }
2660
+ /**
2661
+ * Add the given `listener` for the given `type` of cache event.
2662
+ */
2663
+ on(e, n) {
2664
+ this.o || (this.o = new xa(this)), this.o.a(e, n);
2665
+ }
2666
+ /**
2667
+ * Add or update the cache entry for the given `key`.
2668
+ */
2669
+ set(e, n, i = "explicit set") {
2670
+ const r = this.k ? this.k(e) : e;
2671
+ let o = this.g(r);
2672
+ if (o) {
2673
+ const s = o.v;
2674
+ o.v = n, this.p && n !== s && (o.v = this.w(o)), o !== this.h && this.u(o, i, !1);
2675
+ } else
2676
+ o = this.n(r, n);
2677
+ }
2678
+ /**
2679
+ * Method to [d]elete the given `node` from the cache.
2680
+ */
2681
+ d(e, n) {
2682
+ const i = e.n, r = e.p;
2683
+ i ? i.p = r : this.t = r, r ? r.n = i : this.h = i, --this.c, e.r = !0, this.o && this.o.n("delete", e, n);
2684
+ }
2685
+ /**
2686
+ * Method to [g]et an existing node from cache based on the given `key`.
2687
+ */
2688
+ g(e) {
2689
+ let n = this.h;
2690
+ if (!(!n || n.r)) {
2691
+ if (this.e(n.k, e))
2692
+ return n;
2693
+ if (this.h !== this.t)
2694
+ for (n = n.n; n; ) {
2695
+ if (n.r)
2696
+ return;
2697
+ if (this.e(n.k, e))
2698
+ return n;
2699
+ n = n.n;
2700
+ }
2701
+ }
2702
+ }
2703
+ /**
2704
+ * Method to create a new [n]ode and set it at the head of the linked list.
2705
+ */
2706
+ n(e, n, i) {
2707
+ const r = this.h, o = this.t, s = { k: e, n: r, p: void 0, v: n };
2708
+ return this.p && (s.v = this.w(s)), this.h = s, r ? r.p = s : this.t = s, ++this.c > this.s && o && this.d(o, "evicted"), this.o && this.o.n("add", s, i), s;
2709
+ }
2710
+ /**
2711
+ * Method to [u]date the location of the given `node` in cache.
2712
+ */
2713
+ u(e, n, i) {
2714
+ const r = e.n, o = e.p;
2715
+ r && (r.p = o), o && (o.n = r), this.h && (this.h.p = e), e.n = this.h, e.p = void 0, this.h = e, e === this.t && (this.t = o), this.o && (i && this.o.n("hit", e, n), this.o.n("update", e, n));
2716
+ }
2717
+ /**
2718
+ * Method to [w]rap the promise in a handler to automatically delete the
2719
+ * entry if it rejects.
2720
+ */
2721
+ w(e) {
2722
+ const { v: n } = e;
2723
+ return n == null || typeof n.then != "function" ? n : n.then((i) => (!e.r && this.o && this.o.n("update", e, "resolved"), i), (i) => {
2724
+ throw !e.r && this.d(e, "rejected"), i;
2725
+ });
2726
+ }
2727
+ }
2728
+ function Ua({ isKeyEqual: t, isKeyItemEqual: e, serialize: n }) {
2729
+ if (typeof t == "function")
2730
+ return t;
2731
+ if (n)
2732
+ return Ra;
2733
+ const i = typeof e == "function" ? e : e === "deep" ? ka : e === "shallow" ? Oa : Object.is;
2734
+ return function(o, s) {
2735
+ const l = s.length;
2736
+ if (o.length !== l)
2737
+ return !1;
2738
+ if (l === 1)
2739
+ return i(o[0], s[0], 0);
2740
+ for (let p = 0; p < l; ++p)
2741
+ if (!i(o[p], s[p], p))
2742
+ return !1;
2743
+ return !0;
2744
+ };
2745
+ }
2746
+ function Ca(t) {
2747
+ const { maxArgs: e, serialize: n, transformKey: i } = t, r = [
2748
+ n ? typeof n == "function" ? n : ja : void 0,
2749
+ We(e) ? Pa(e) : void 0,
2750
+ typeof i == "function" ? i : void 0
2751
+ ].filter(Boolean);
2752
+ return r.length ? r.reduce((o, s) => (...l) => (
2753
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
2754
+ o(s(...l))
2755
+ )) : void 0;
2756
+ }
2757
+ class Wa {
2758
+ constructor(e, n) {
2759
+ if (this.e = /* @__PURE__ */ new Map(), this.c = e, typeof n == "object" ? (this.t = n.after, this.p = n.shouldPersist, this.r = n.shouldRemove, this.u = !!n.update) : (this.t = n, this.u = !1), this.c.on("add", ({ key: i, value: r }) => {
2760
+ this.a(i, r) && this.s(i, r);
2761
+ }), this.u && (this.c.on("hit", ({ key: i, value: r }) => {
2762
+ this.a(i, r) && this.s(i, r);
2763
+ }), this.c.p)) {
2764
+ const i = ({ key: r, reason: o, value: s }) => {
2765
+ o === "resolved" && this.a(r, s) && (this.s(r, s), this.c.off("update", i));
2766
+ };
2767
+ this.c.on("update", i);
2768
+ }
2769
+ this.c.on("delete", ({ key: i }) => {
2770
+ this.e.has(i) && this.d(i);
2771
+ });
2772
+ }
2773
+ get size() {
2774
+ return this.e.size;
2775
+ }
2776
+ /**
2777
+ * Whether the cache expiration should be set [a]gain, generally after some cache change.
2778
+ */
2779
+ a(e, n) {
2780
+ var i;
2781
+ return !!(this.c.g(e) && !(!((i = this.p) === null || i === void 0) && i.call(this, e, n, this.c)));
2782
+ }
2783
+ /**
2784
+ * Method to [d]elete the expiration.
2785
+ */
2786
+ d(e) {
2787
+ const n = this.e.get(e);
2788
+ n && (clearTimeout(n), this.e.delete(e));
2789
+ }
2790
+ /**
2791
+ * Method to [s]et the new expiration. If one is present for the given `key`, it will delete
2792
+ * the existing expiration before creating the new one.
2793
+ */
2794
+ s(e, n) {
2795
+ this.e.has(e) && this.d(e);
2796
+ const i = this.c, r = typeof this.t == "function" ? this.t(e, n, i) : this.t;
2797
+ if (!We(r))
2798
+ throw new TypeError(`The expiration time must be a finite, non-negative number; received ${r}`);
2799
+ const o = setTimeout(() => {
2800
+ this.d(e);
2801
+ const s = i.g(e);
2802
+ s && (typeof this.r == "function" && !this.r(e, s.v, r, i) ? (s !== i.h ? i.u(s, "expiration reset", !1) : i.o && i.o.n("update", s, "expiration reset"), this.s(e, s.v)) : i.d(s, "expired"));
2803
+ }, r);
2804
+ typeof o.unref == "function" && o.unref(), this.e.set(e, o);
2805
+ }
2806
+ }
2807
+ const Fa = /* @__PURE__ */ new Map();
2808
+ class za {
2809
+ constructor(e, n) {
2810
+ this.p = { c: 0, h: 0 }, this.c = e, this.n = n, Fa.set(n, this);
2811
+ }
2812
+ /**
2813
+ * Method to compute the [m]etrics for the profile stats.
2814
+ */
2815
+ m() {
2816
+ const { c: e, h: n } = this.p, i = e ? `${(n / e * 100).toFixed(4)}%` : "0.0000%";
2817
+ return { calls: e, hits: n, name: this.n, usage: i };
2818
+ }
2819
+ /**
2820
+ * Method to [r]eset the counts.
2821
+ */
2822
+ r() {
2823
+ this.p = { c: 0, h: 0 };
2824
+ }
2825
+ /**
2826
+ * Method to [s]tart the collection of stats for the given profile.
2827
+ */
2828
+ s() {
2829
+ const e = () => {
2830
+ ++this.p.c;
2831
+ }, n = () => {
2832
+ ++this.p.c, ++this.p.h;
2833
+ };
2834
+ this.d = () => {
2835
+ this.c.off("add", e), this.c.off("hit", n), this.d = void 0, this.p.c = this.p.h = 0;
2836
+ }, this.c.on("add", e), this.c.on("hit", n);
2837
+ }
2838
+ }
2839
+ const Ja = function t(e, n = {}) {
2840
+ if (Ba(e))
2841
+ return t(e.fn, Object.assign({}, e.options, n));
2842
+ if (typeof e != "function")
2843
+ throw new TypeError(`Expected first parameter to be function; received ${typeof e}`);
2844
+ const i = new wa(n), r = Xa(e, i, n.forceUpdate), { expires: o, statsName: s } = n;
2845
+ return r.cache = i, r.expirationManager = o != null ? new Wa(i, o) : null, r.fn = e, r.isMemoized = !0, r.options = n, r.statsManager = s != null ? new za(i, s) : null, r;
2846
+ };
2847
+ function Xa(t, e, n) {
2848
+ const i = function(...o) {
2849
+ const s = e.k ? e.k(o) : o;
2850
+ let l = e.g(s);
2851
+ return l ? l !== e.h ? e.u(l, void 0, !0) : e.o && e.o.n("hit", l) : l = e.n(s, t.apply(this, o)), l.v;
2852
+ };
2853
+ return n ? function(...o) {
2854
+ if (!n(o) || !e.has(o))
2855
+ return i.apply(this, o);
2856
+ const s = t.apply(this, o);
2857
+ return e.set(o, s, "forced"), s;
2858
+ } : i;
2859
+ }
2860
+ const Ha = /("(?:\\?[^])*?")|(\/\/.*)|(\/\*[^]*?\*\/)/g, Qa = /("(?:\\?[^])*?")|(,\s*)(?=]|})/g, Ce = {
2861
+ parse: (t) => {
2862
+ t = String(t);
2140
2863
  try {
2141
- return JSON.parse(e);
2864
+ return JSON.parse(t);
2142
2865
  } catch {
2143
- return JSON.parse(e.replace(Io, "$1").replace(Po, "$1"));
2866
+ return JSON.parse(t.replace(Ha, "$1").replace(Qa, "$1"));
2144
2867
  }
2145
2868
  }
2146
- }, { label: Bo } = M;
2147
- async function ni(e) {
2869
+ }, { label: Va } = A;
2870
+ async function fi(t) {
2148
2871
  try {
2149
- const { readFile: t } = await import("node:fs/promises"), n = await t(e, { encoding: "utf-8" });
2150
- return Pe.parse(n);
2872
+ const { readFile: e } = await import("node:fs/promises"), n = await e(t, { encoding: "utf-8" });
2873
+ return Ce.parse(n);
2151
2874
  } catch {
2152
2875
  }
2153
2876
  }
2154
- const qo = /* @__PURE__ */ new URL(
2877
+ const Ya = /* @__PURE__ */ new URL(
2155
2878
  `data:text/javascript,${encodeURIComponent('import{pathToFileURL as o}from"node:url";import{parentPort as t,workerData as a}from"node:worker_threads";const s=async({absolutePath:r})=>{try{const e=await import(o(r).href);t?.postMessage(e.embeddedOverrides??e.default??void 0)}catch{t?.postMessage(void 0)}};s(a);')}`
2156
- ), jo = /* @__PURE__ */ new URL(
2879
+ ), Ka = /* @__PURE__ */ new URL(
2157
2880
  `data:text/javascript,${encodeURIComponent('import{register as a}from"node:module";import{pathToFileURL as s}from"node:url";import{parentPort as t,workerData as i}from"node:worker_threads";const d=async({absolutePath:r,importMetaUrl:o})=>{a("tsx/esm",{parentURL:o,data:!0});try{const e=await import(s(r).href);t?.postMessage(e.embeddedOverrides??e.default??void 0)}catch{t?.postMessage(void 0)}};d(i);')}`
2158
2881
  );
2159
- async function Uo(e) {
2160
- const { Worker: t } = await import("node:worker_threads");
2882
+ async function Za(t) {
2883
+ const { Worker: e } = await import("node:worker_threads");
2161
2884
  return new Promise((n) => {
2162
- const r = new t(qo, {
2885
+ const i = new e(Ya, {
2163
2886
  workerData: {
2164
- absolutePath: e
2887
+ absolutePath: t
2165
2888
  }
2166
2889
  });
2167
- r.once("message", (s) => {
2168
- n(s);
2169
- }), r.once("error", (s) => {
2170
- console.error(s), n(void 0);
2890
+ i.once("message", (r) => {
2891
+ n(r);
2892
+ }), i.once("error", (r) => {
2893
+ console.error(r), n(void 0);
2171
2894
  });
2172
2895
  });
2173
2896
  }
2174
- async function Ro(e) {
2175
- const { Worker: t } = await import("node:worker_threads");
2897
+ async function el(t) {
2898
+ const { Worker: e } = await import("node:worker_threads");
2176
2899
  return new Promise((n) => {
2177
- const r = new t(jo, {
2900
+ const i = new e(Ka, {
2178
2901
  workerData: {
2179
- absolutePath: e,
2902
+ absolutePath: t,
2180
2903
  importMetaUrl: import.meta.url
2181
2904
  }
2182
2905
  });
2183
- r.once("message", (s) => {
2184
- n(s);
2185
- }), r.once("error", (s) => {
2186
- console.error(s), n(void 0);
2906
+ i.once("message", (r) => {
2907
+ n(r);
2908
+ }), i.once("error", (r) => {
2909
+ console.error(r), n(void 0);
2187
2910
  });
2188
2911
  });
2189
2912
  }
2190
- const Co = ui(
2191
- async (e, t) => {
2192
- const { isAbsolute: n, dirname: r, resolve: s } = await import("node:path");
2193
- if (n(e))
2194
- return e;
2195
- const o = await Ti(t);
2196
- let i;
2197
- return typeof o != "string" ? i = process.env.PWD ?? process.cwd() : i = r(o), s(i, e);
2913
+ const tl = Ja(
2914
+ async (t, e) => {
2915
+ const { isAbsolute: n, dirname: i, resolve: r } = await import("node:path");
2916
+ if (n(t))
2917
+ return t;
2918
+ const o = await ji(e);
2919
+ let s;
2920
+ return typeof o != "string" ? s = process.env.PWD ?? process.cwd() : s = i(o), r(s, t);
2198
2921
  }
2199
- ), wo = async (e, t) => {
2922
+ ), nl = async (t, e) => {
2200
2923
  let n;
2201
2924
  try {
2202
2925
  n = (await import("node:path")).extname(
2203
- e
2926
+ t
2204
2927
  );
2205
2928
  } catch {
2206
2929
  try {
2207
- return Pe.parse(e);
2930
+ return Ce.parse(t);
2208
2931
  } catch {
2209
2932
  console.error("Failed to parse embeddedOverrides as a json object");
2210
2933
  return;
2211
2934
  }
2212
2935
  }
2213
- const r = Co(
2214
- e,
2215
- t
2936
+ const i = tl(
2937
+ t,
2938
+ e
2216
2939
  );
2217
2940
  if (n === ".json" || n === ".jsonc") {
2218
- const s = await r, o = await ni(s);
2941
+ const r = await i, o = await fi(r);
2219
2942
  if (o !== void 0)
2220
2943
  return o;
2221
- console.error(`Failed to parse the json file: ${s}`);
2944
+ console.error(`Failed to parse the json file: ${r}`);
2222
2945
  return;
2223
2946
  }
2224
2947
  if (n === ".mjs" || n === ".cjs" || n === ".js") {
2225
- const s = await r, o = await Uo(s);
2948
+ const r = await i, o = await Za(r);
2226
2949
  if (o !== void 0)
2227
2950
  return o;
2228
- console.error(`Failed to parse the js module file: ${s}`);
2951
+ console.error(`Failed to parse the js module file: ${r}`);
2229
2952
  return;
2230
2953
  }
2231
2954
  if (n === ".mts" || n === ".cts" || n === ".ts") {
2232
- const s = await r, o = await Ro(s);
2955
+ const r = await i, o = await el(r);
2233
2956
  if (o !== void 0)
2234
2957
  return o;
2235
- console.error(`Failed to parse the ts module file: ${s}`);
2958
+ console.error(`Failed to parse the ts module file: ${r}`);
2236
2959
  return;
2237
2960
  }
2238
2961
  if (n === "") {
2239
- const s = await r, o = await ni(s);
2962
+ const r = await i, o = await fi(r);
2240
2963
  if (o !== void 0)
2241
2964
  return o;
2242
2965
  }
2243
2966
  try {
2244
- return Pe.parse(e);
2967
+ return Ce.parse(t);
2245
2968
  } catch {
2246
2969
  console.error("Failed to parse embeddedOverrides as a json object");
2247
2970
  }
2248
2971
  };
2249
- async function Fo(e, {
2250
- commentOrTag: t,
2972
+ async function il(t, {
2973
+ commentOrTag: e,
2251
2974
  kind: n,
2252
- filepath: r
2975
+ filepath: i
2253
2976
  }) {
2254
- if (e === void 0)
2977
+ if (t === void 0)
2255
2978
  return;
2256
- const s = await wo(
2257
- e,
2258
- r
2979
+ const r = await nl(
2980
+ t,
2981
+ i
2259
2982
  );
2260
- if (s !== void 0)
2983
+ if (r !== void 0)
2261
2984
  for (const {
2262
2985
  [`${n}s`]: o,
2263
- identifiers: i,
2986
+ identifiers: s,
2264
2987
  options: l
2265
- } of s) {
2266
- const u = o ?? [];
2267
- if (u.length === 0 && i?.includes(t) || u.includes(t))
2988
+ } of r) {
2989
+ const p = o ?? [];
2990
+ if (p.length === 0 && s?.includes(e) || p.includes(e))
2268
2991
  return l;
2269
2992
  }
2270
2993
  }
2271
- function* pi(e) {
2272
- yield e, e.type === "CallExpression" && (yield* pi(e.callee));
2994
+ function* Si(t) {
2995
+ yield t, t.type === "CallExpression" && (yield* Si(t.callee));
2273
2996
  }
2274
- const Wo = /* @__PURE__ */ (() => {
2275
- const e = /* @__PURE__ */ new Set([
2997
+ const rl = /* @__PURE__ */ (() => {
2998
+ const t = /* @__PURE__ */ new Set([
2276
2999
  "start",
2277
3000
  "end",
2278
3001
  "loc",
@@ -2281,39 +3004,39 @@ const Wo = /* @__PURE__ */ (() => {
2281
3004
  "typeAnnotation",
2282
3005
  "decorators"
2283
3006
  ]);
2284
- return (t, n, r) => {
2285
- let s;
3007
+ return (e, n, i) => {
3008
+ let r;
2286
3009
  try {
2287
- const i = r(`${n}\`\``);
2288
- if (i instanceof Promise)
3010
+ const s = i(`${n}\`\``);
3011
+ if (s instanceof Promise)
2289
3012
  throw new TypeError("Async parse function hasn't been supported yet.");
2290
- s = i;
3013
+ r = s;
2291
3014
  } catch {
2292
3015
  return !1;
2293
3016
  }
2294
- if (s.type === "File" && (s = s.program), !(s.type === "Program" && s.body[0]?.type === "ExpressionStatement"))
3017
+ if (r.type === "File" && (r = r.program), !(r.type === "Program" && r.body[0]?.type === "ExpressionStatement"))
2295
3018
  return !1;
2296
- const o = s.body[0]?.expression;
3019
+ const o = r.body[0]?.expression;
2297
3020
  if (o?.type !== "TaggedTemplateExpression")
2298
3021
  return !1;
2299
- for (const i of pi(t))
2300
- if (mi(
2301
- i,
3022
+ for (const s of Si(e))
3023
+ if (Li(
3024
+ s,
2302
3025
  o.tag,
2303
- e
3026
+ t
2304
3027
  ))
2305
3028
  return !0;
2306
3029
  return !1;
2307
3030
  };
2308
3031
  })();
2309
- function zo({
2310
- node: e,
2311
- parent: t
3032
+ function sl({
3033
+ node: t,
3034
+ parent: e
2312
3035
  }) {
2313
- const n = e.comments ?? t?.comments;
3036
+ const n = t.comments ?? e?.comments;
2314
3037
  if (!n)
2315
3038
  return;
2316
- const r = n[n.length - 1];
3039
+ const i = n[n.length - 1];
2317
3040
  if (![
2318
3041
  "MultiLine",
2319
3042
  // meriyah
@@ -2321,171 +3044,171 @@ function zo({
2321
3044
  // typescript, acorn, espree, flow
2322
3045
  "CommentBlock"
2323
3046
  // babel, babel-flow, babel-ts
2324
- ].includes(r.type) || !r.leading)
3047
+ ].includes(i.type) || !i.leading)
2325
3048
  return;
2326
- const s = r.value;
2327
- if (s.length > 1 && s.startsWith(" ") && s.endsWith(" "))
2328
- return s.slice(1, -1);
3049
+ const r = i.value;
3050
+ if (r.length > 1 && r.startsWith(" ") && r.endsWith(" "))
3051
+ return r.slice(1, -1);
2329
3052
  }
2330
- function Ko({
2331
- parent: e
3053
+ function ol({
3054
+ parent: t
2332
3055
  }) {
2333
- if (e?.type === "TaggedTemplateExpression")
2334
- return e.tag.type === "Identifier" ? e.tag.name : e.tag;
2335
- }
2336
- function Jo(e, t) {
2337
- return e.noEmbeddedIdentificationByComment?.includes(t) ?? !1 ? function* (r) {
2338
- } : function* (r) {
2339
- const s = e[A(r)] ?? [_];
2340
- s[0] === _ ? yield* e[D(r)] ?? [] : yield* s ?? [];
3056
+ if (t?.type === "TaggedTemplateExpression")
3057
+ return t.tag.type === "Identifier" ? t.tag.name : t.tag;
3058
+ }
3059
+ function al(t, e) {
3060
+ return t.noEmbeddedIdentificationByComment?.includes(e) ?? !1 ? function* (i) {
3061
+ } : function* (i) {
3062
+ const r = t[S(i)] ?? [$];
3063
+ r[0] === $ ? yield* t[T(i)] ?? [] : yield* r ?? [];
2341
3064
  };
2342
3065
  }
2343
- function ii(e, t) {
2344
- return typeof t == "string" ? e.noEmbeddedIdentificationByTag?.includes(t) ?? !1 ? function* (r) {
2345
- } : function* (r) {
2346
- const s = e[T(r)] ?? [
2347
- _
3066
+ function Ei(t, e) {
3067
+ return typeof e == "string" ? t.noEmbeddedIdentificationByTag?.includes(e) ?? !1 ? function* (i) {
3068
+ } : function* (i) {
3069
+ const r = t[v(i)] ?? [
3070
+ $
2348
3071
  ];
2349
- s[0] === _ ? yield* e[D(r)] ?? [] : yield* s ?? [];
3072
+ r[0] === $ ? yield* t[T(i)] ?? [] : yield* r ?? [];
2350
3073
  } : function* (n) {
2351
- const r = e[T(n)] ?? [
2352
- _
3074
+ const i = t[v(n)] ?? [
3075
+ $
2353
3076
  ];
2354
- if (r[0] === _) {
2355
- const { noEmbeddedIdentificationByTag: s } = e;
2356
- for (const o of e[D(n)] ?? [])
2357
- s?.includes(o) || (yield o);
3077
+ if (i[0] === $) {
3078
+ const { noEmbeddedIdentificationByTag: r } = t;
3079
+ for (const o of t[T(n)] ?? [])
3080
+ r?.includes(o) || (yield o);
2358
3081
  } else
2359
- yield* r;
3082
+ yield* i;
2360
3083
  };
2361
3084
  }
2362
- function xe(e, t, n, r, s) {
2363
- const o = li[t];
3085
+ function we(t, e, n, i, r) {
3086
+ const o = Ti[e];
2364
3087
  if (!o)
2365
3088
  return null;
2366
- if (e.quasis.length === 1 && e.quasis[0]?.value.raw.trim() === "")
3089
+ if (t.quasis.length === 1 && t.quasis[0]?.value.raw.trim() === "")
2367
3090
  return "``";
2368
- const i = Fo(
2369
- s.embeddedOverrides,
3091
+ const s = il(
3092
+ r.embeddedOverrides,
2370
3093
  {
2371
3094
  commentOrTag: n,
2372
- kind: r,
2373
- filepath: s.filepath
3095
+ kind: i,
3096
+ filepath: r.filepath
2374
3097
  }
2375
3098
  );
2376
3099
  return async (...l) => {
2377
3100
  try {
2378
- const u = await o(...l, {
3101
+ const p = await o(...l, {
2379
3102
  commentOrTag: n,
2380
- kind: r,
2381
- embeddedOverrideOptions: await i
3103
+ kind: i,
3104
+ embeddedOverrideOptions: await s
2382
3105
  });
2383
- return Bo(
3106
+ return Va(
2384
3107
  {
2385
3108
  embed: !0,
2386
- ...u.label
3109
+ ...p.label
2387
3110
  },
2388
- u
3111
+ p
2389
3112
  );
2390
- } catch (u) {
2391
- throw console.error(u), u;
3113
+ } catch (p) {
3114
+ throw console.error(p), p;
2392
3115
  }
2393
3116
  };
2394
3117
  }
2395
- function gi(e, t, n) {
2396
- return Object.is(e, t) ? !0 : e === null || t === null ? !1 : Array.isArray(e) ? Ho(e, t, n) : typeof e == "object" ? mi(e, t, n) : !1;
3118
+ function Mi(t, e, n) {
3119
+ return Object.is(t, e) ? !0 : t === null || e === null ? !1 : Array.isArray(t) ? ll(t, e, n) : typeof t == "object" ? Li(t, e, n) : !1;
2397
3120
  }
2398
- function Ho(e, t, n) {
2399
- const r = e.length;
2400
- if (r !== t.length)
3121
+ function ll(t, e, n) {
3122
+ const i = t.length;
3123
+ if (i !== e.length)
2401
3124
  return !1;
2402
- for (let s = 0; s < r; s++)
2403
- if (!gi(e[s], t[s], n))
3125
+ for (let r = 0; r < i; r++)
3126
+ if (!Mi(t[r], e[r], n))
2404
3127
  return !1;
2405
3128
  return !0;
2406
3129
  }
2407
- function mi(e, t, n) {
2408
- for (const r of Object.keys(e))
2409
- if (!n?.has(r) && !(Object.prototype.hasOwnProperty.call(t, r) && gi(e[r], t[r], n)))
3130
+ function Li(t, e, n) {
3131
+ for (const i of Object.keys(t))
3132
+ if (!n?.has(i) && !(Object.hasOwn(e, i) && Mi(t[i], e[i], n)))
2410
3133
  return !1;
2411
3134
  return !0;
2412
3135
  }
2413
- const { estree: hi } = Di, { embed: Ie } = hi, Xo = (e, t) => {
2414
- const { node: n } = e;
3136
+ const { estree: Ni } = qi, { embed: Ue } = Ni, cl = (t, e) => {
3137
+ const { node: n } = t;
2415
3138
  if (n.type !== "TemplateLiteral" || n.quasis.some(({ value: { cooked: o } }) => o === null))
2416
3139
  return null;
2417
- const r = zo(e);
2418
- if (typeof r == "string") {
2419
- const o = Jo(
2420
- t,
2421
- r
3140
+ const i = sl(t);
3141
+ if (typeof i == "string") {
3142
+ const o = al(
3143
+ e,
3144
+ i
2422
3145
  );
2423
- for (const i of me) {
3146
+ for (const s of _e) {
2424
3147
  let l = !1;
2425
- for (const u of o(
2426
- i
3148
+ for (const p of o(
3149
+ s
2427
3150
  ))
2428
- if (r === u) {
3151
+ if (i === p) {
2429
3152
  l = !0;
2430
3153
  break;
2431
3154
  }
2432
3155
  if (l)
2433
- return xe(
3156
+ return we(
2434
3157
  n,
3158
+ s,
2435
3159
  i,
2436
- r,
2437
3160
  "comment",
2438
- t
3161
+ e
2439
3162
  );
2440
3163
  }
2441
- return Ie?.(e, t) ?? null;
3164
+ return Ue?.(t, e) ?? null;
2442
3165
  }
2443
- const s = Ko(e);
2444
- if (typeof s == "string") {
2445
- const o = ii(t, s);
2446
- for (const i of me) {
3166
+ const r = ol(t);
3167
+ if (typeof r == "string") {
3168
+ const o = Ei(e, r);
3169
+ for (const s of _e) {
2447
3170
  let l = !1;
2448
- for (const u of o(i))
2449
- if (s === u) {
3171
+ for (const p of o(s))
3172
+ if (r === p) {
2450
3173
  l = !0;
2451
3174
  break;
2452
3175
  }
2453
3176
  if (l)
2454
- return xe(n, i, s, "tag", t);
3177
+ return we(n, s, r, "tag", e);
2455
3178
  }
2456
- return Ie?.(e, t) ?? null;
3179
+ return Ue?.(t, e) ?? null;
2457
3180
  }
2458
- if (s !== void 0) {
2459
- const o = (l) => So[t.parser].parse(
3181
+ if (r !== void 0) {
3182
+ const o = (l) => zo[e.parser].parse(
2460
3183
  l,
2461
- t
2462
- ), i = ii(t);
2463
- for (const l of me) {
2464
- let u;
2465
- for (const E of i(l))
2466
- if (Wo(s, E, o)) {
2467
- u = E;
3184
+ e
3185
+ ), s = Ei(e);
3186
+ for (const l of _e) {
3187
+ let p;
3188
+ for (const f of s(l))
3189
+ if (rl(r, f, o)) {
3190
+ p = f;
2468
3191
  break;
2469
3192
  }
2470
- if (u !== void 0)
2471
- return xe(
3193
+ if (p !== void 0)
3194
+ return we(
2472
3195
  n,
2473
3196
  l,
2474
- u,
3197
+ p,
2475
3198
  "tag",
2476
- t
3199
+ e
2477
3200
  );
2478
3201
  }
2479
3202
  }
2480
- return Ie?.(e, t) ?? null;
2481
- }, ra = {
3203
+ return Ue?.(t, e) ?? null;
3204
+ }, _l = {
2482
3205
  estree: {
2483
- ...hi,
2484
- embed: Xo
3206
+ ...Ni,
3207
+ embed: cl
2485
3208
  }
2486
3209
  };
2487
3210
  export {
2488
- sa as options,
2489
- So as parsers,
2490
- ra as printers
3211
+ bl as options,
3212
+ zo as parsers,
3213
+ _l as printers
2491
3214
  };