vue-api-request-builder 0.2.6 → 0.2.7

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.es.js CHANGED
@@ -6,9 +6,9 @@ var Tn = (t) => {
6
6
  };
7
7
  var jr = (t, e, n) => e in t ? Br(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
8
8
  var h = (t, e, n) => jr(t, typeof e != "symbol" ? e + "" : e, n), Mt = (t, e, n) => e.has(t) || Tn("Cannot " + n);
9
- var K = (t, e, n) => (Mt(t, e, "read from private field"), n ? n.call(t) : e.get(t)), Ce = (t, e, n) => e.has(t) ? Tn("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), re = (t, e, n, a) => (Mt(t, e, "write to private field"), a ? a.call(t, n) : e.set(t, n), n), Ot = (t, e, n) => (Mt(t, e, "access private method"), n);
9
+ var K = (t, e, n) => (Mt(t, e, "read from private field"), n ? n.call(t) : e.get(t)), Ce = (t, e, n) => e.has(t) ? Tn("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), se = (t, e, n, a) => (Mt(t, e, "write to private field"), a ? a.call(t, n) : e.set(t, n), n), Ot = (t, e, n) => (Mt(t, e, "access private method"), n);
10
10
  var Ln = (t, e, n) => Lr(Tr(t), n, e);
11
- import { defineComponent as st, ref as L, watch as Qe, resolveComponent as j, createElementBlock as J, openBlock as M, createElementVNode as N, createCommentVNode as se, createBlock as $e, createVNode as S, withCtx as R, createTextVNode as D, toDisplayString as Ee, Fragment as _n, renderList as va, computed as Gt, useModel as Ca, normalizeStyle as Mr, withDirectives as Or, vModelText as Gr, nextTick as Fr, onMounted as Dr, unref as Ur } from "vue";
11
+ import { defineComponent as st, ref as L, watch as Qe, resolveComponent as j, createElementBlock as J, openBlock as M, createElementVNode as N, createCommentVNode as te, createBlock as me, createVNode as E, withCtx as R, createTextVNode as D, toDisplayString as Ee, Fragment as _n, renderList as va, computed as Gt, useModel as Ca, normalizeStyle as Mr, withDirectives as Or, vModelText as Gr, nextTick as Fr, onMounted as Dr, unref as Ur } from "vue";
12
12
  const zr = { class: "key-value-input flex flex-col gap-1" }, qr = { class: "flex gap-2" }, Wr = {
13
13
  key: 0,
14
14
  class: "flex flex-col gap-1"
@@ -46,7 +46,7 @@ const zr = { class: "key-value-input flex flex-col gap-1" }, qr = { class: "flex
46
46
  const u = j("a-button"), p = j("a-popconfirm"), d = j("a-input"), f = j("a-typography-paragraph"), m = j("a-typography");
47
47
  return M(), J("div", zr, [
48
48
  N("div", qr, [
49
- S(u, {
49
+ E(u, {
50
50
  type: "primary",
51
51
  onClick: s,
52
52
  class: "w-full max-w-50%",
@@ -57,7 +57,7 @@ const zr = { class: "key-value-input flex flex-col gap-1" }, qr = { class: "flex
57
57
  ]),
58
58
  _: 1
59
59
  }),
60
- S(p, {
60
+ E(p, {
61
61
  class: "w-full max-w-50%",
62
62
  title: "确认清空",
63
63
  description: "确定要清空所有参数吗?",
@@ -66,7 +66,7 @@ const zr = { class: "key-value-input flex flex-col gap-1" }, qr = { class: "flex
66
66
  onConfirm: l
67
67
  }, {
68
68
  default: R(() => [
69
- S(u, {
69
+ E(u, {
70
70
  type: "primary",
71
71
  danger: "",
72
72
  size: "small",
@@ -88,7 +88,7 @@ const zr = { class: "key-value-input flex flex-col gap-1" }, qr = { class: "flex
88
88
  class: "flex"
89
89
  }, [
90
90
  N("div", Hr, [
91
- S(u, {
91
+ E(u, {
92
92
  type: "primary",
93
93
  danger: "",
94
94
  onClick: (b) => o(g),
@@ -100,14 +100,14 @@ const zr = { class: "key-value-input flex flex-col gap-1" }, qr = { class: "flex
100
100
  ])),
101
101
  _: 2
102
102
  }, 1032, ["onClick"]),
103
- S(d, {
103
+ E(d, {
104
104
  value: _.key,
105
105
  "onUpdate:value": (b) => _.key = b,
106
106
  placeholder: "键",
107
107
  style: { width: "60%" },
108
108
  size: "small"
109
109
  }, null, 8, ["value", "onUpdate:value"]),
110
- S(d, {
110
+ E(d, {
111
111
  value: _.value,
112
112
  "onUpdate:value": (b) => _.value = b,
113
113
  placeholder: "值",
@@ -116,13 +116,13 @@ const zr = { class: "key-value-input flex flex-col gap-1" }, qr = { class: "flex
116
116
  }, null, 8, ["value", "onUpdate:value"])
117
117
  ])
118
118
  ]))), 128))
119
- ])) : se("", !0),
120
- i.showPreview ? (M(), $e(m, {
119
+ ])) : te("", !0),
120
+ i.showPreview ? (M(), me(m, {
121
121
  key: 1,
122
122
  class: "m-0"
123
123
  }, {
124
124
  default: R(() => [
125
- S(f, { class: "!m-0" }, {
125
+ E(f, { class: "!m-0" }, {
126
126
  default: R(() => [
127
127
  N("pre", null, Ee(i.previewText), 1)
128
128
  ]),
@@ -130,7 +130,7 @@ const zr = { class: "key-value-input flex flex-col gap-1" }, qr = { class: "flex
130
130
  })
131
131
  ]),
132
132
  _: 1
133
- })) : se("", !0)
133
+ })) : te("", !0)
134
134
  ]);
135
135
  };
136
136
  }
@@ -160,22 +160,33 @@ const zr = { class: "key-value-input flex flex-col gap-1" }, qr = { class: "flex
160
160
  }, rs = { class: "flex flex-row gap-1 items-center" }, ss = /* @__PURE__ */ st({
161
161
  __name: "RequestForm",
162
162
  props: {
163
- modelValue: { default: () => Xr }
163
+ modelValue: { default: () => Xr },
164
+ showAuth: { type: Boolean, default: !1 }
164
165
  },
165
166
  emits: ["update:modelValue"],
166
167
  setup(t, { emit: e }) {
167
168
  const n = t, a = e, r = L(n.modelValue.method), s = L(n.modelValue.url), o = L(n.modelValue.auth.type), l = L(n.modelValue.path), i = L(n.modelValue.auth.username || ""), c = L(n.modelValue.auth.password || ""), u = L(n.modelValue.auth.token || ""), p = L(n.modelValue.params), d = L(n.modelValue.headers), f = L(n.modelValue.body.formData || []), m = L(n.modelValue.body.type), _ = L(n.modelValue.body.json || ""), g = L(n.modelValue.body.raw || ""), b = L("");
168
- function w(E, $) {
169
+ function w(x, $) {
169
170
  let T;
170
171
  return function(...ue) {
171
- clearTimeout(T), T = setTimeout(() => E.apply(this, ue), $);
172
+ clearTimeout(T), T = setTimeout(() => x.apply(this, ue), $);
172
173
  };
173
174
  }
174
- const k = () => ({
175
- method: r.value,
176
- url: s.value,
177
- path: l.value,
178
- auth: {
175
+ const k = () => {
176
+ const x = {
177
+ method: r.value,
178
+ url: s.value,
179
+ path: l.value,
180
+ auth: { type: "none" },
181
+ // 默认提供一个空的auth对象
182
+ params: p.value,
183
+ headers: d.value,
184
+ body: {
185
+ type: m.value,
186
+ ...m.value === "application/json" ? { json: _.value } : m.value === "multipart/form-data" ? { formData: f.value } : { raw: g.value }
187
+ }
188
+ };
189
+ return n.showAuth && (x.auth = {
179
190
  type: o.value,
180
191
  ...o.value === "Basic" ? {
181
192
  username: i.value,
@@ -183,14 +194,8 @@ const zr = { class: "key-value-input flex flex-col gap-1" }, qr = { class: "flex
183
194
  } : o.value === "Bearer" ? {
184
195
  token: u.value
185
196
  } : {}
186
- },
187
- params: p.value,
188
- headers: d.value,
189
- body: {
190
- type: m.value,
191
- ...m.value === "application/json" ? { json: _.value } : m.value === "multipart/form-data" ? { formData: f.value } : { raw: g.value }
192
- }
193
- }), v = w(() => {
197
+ }), x;
198
+ }, v = w(() => {
194
199
  a("update:modelValue", k());
195
200
  }, 100);
196
201
  Qe(
@@ -215,15 +220,15 @@ const zr = { class: "key-value-input flex flex-col gap-1" }, qr = { class: "flex
215
220
  { deep: !0 }
216
221
  ), Qe(
217
222
  () => n.modelValue,
218
- (E) => {
223
+ (x) => {
219
224
  const $ = k();
220
- JSON.stringify(E) !== JSON.stringify($) && (r.value = E.method, s.value = E.url, l.value = E.path, o.value = E.auth.type, i.value = E.auth.username || "", c.value = E.auth.password || "", u.value = E.auth.token || "", p.value = E.params, d.value = E.headers, m.value = E.body.type, f.value = E.body.formData || [], _.value = E.body.json || "", g.value = E.body.raw || "");
225
+ JSON.stringify(x) !== JSON.stringify($) && (r.value = x.method, s.value = x.url, l.value = x.path, n.showAuth && x.auth && (o.value = x.auth.type, i.value = x.auth.username || "", c.value = x.auth.password || "", u.value = x.auth.token || ""), p.value = x.params, d.value = x.headers, m.value = x.body.type, f.value = x.body.formData || [], _.value = x.body.json || "", g.value = x.body.raw || "");
221
226
  },
222
227
  { deep: !0 }
223
228
  );
224
229
  const A = Gt(() => {
225
- const E = p.value.filter(($) => !!$.key).map(($) => $.key + "=" + encodeURIComponent($.value)).join("&");
226
- return E === "" ? "" : "?" + E;
230
+ const x = p.value.filter(($) => !!$.key).map(($) => $.key + "=" + encodeURIComponent($.value)).join("&");
231
+ return x === "" ? "" : "?" + x;
227
232
  }), O = Gt(() => {
228
233
  switch (m.value) {
229
234
  case "application/json":
@@ -233,14 +238,14 @@ const zr = { class: "key-value-input flex flex-col gap-1" }, qr = { class: "flex
233
238
  return "Invalid JSON";
234
239
  }
235
240
  case "multipart/form-data":
236
- const E = "----WebKitFormBoundaryPreview";
241
+ const x = "----WebKitFormBoundaryPreview";
237
242
  return f.value.filter((T) => !!T.key).map(
238
- (T) => `--${E}\r
243
+ (T) => `--${x}\r
239
244
  Content-Disposition: form-data; name="${T.key}"\r
240
245
  \r
241
246
  ${T.value}\r
242
247
  `
243
- ).join("") + `--${E}--\r
248
+ ).join("") + `--${x}--\r
244
249
  `;
245
250
  case "text/plain":
246
251
  return g.value || "-空-";
@@ -255,30 +260,30 @@ ${T.value}\r
255
260
  }
256
261
  }, q = () => {
257
262
  try {
258
- const E = s.value, $ = new URL(E);
263
+ const x = s.value, $ = new URL(x);
259
264
  s.value = `${$.protocol}//${$.host}`, l.value = $.pathname;
260
265
  const T = new URLSearchParams($.search), ue = [];
261
266
  T.forEach((H, ie) => {
262
267
  ue.push({ key: ie, value: H });
263
268
  }), p.value = ue;
264
- } catch (E) {
265
- console.error("URL解析失败:", E);
269
+ } catch (x) {
270
+ console.error("URL解析失败:", x);
266
271
  }
267
272
  }, ce = Gt(() => {
268
273
  if (!s.value) return !1;
269
274
  try {
270
- const E = s.value, $ = new URL(E);
275
+ const x = s.value, $ = new URL(x);
271
276
  return $.search !== "" || $.pathname !== "/";
272
277
  } catch {
273
278
  return !1;
274
279
  }
275
280
  });
276
- return (E, $) => {
277
- const T = j("a-input"), ue = j("a-button"), H = j("a-select-option"), ie = j("a-select"), be = j("a-card"), Le = j("a-radio-button"), Bn = j("a-radio-group"), Rr = j("a-input-password"), jt = j("a-textarea"), Nr = j("a-alert"), Pr = j("a-form");
281
+ return (x, $) => {
282
+ const T = j("a-input"), ue = j("a-button"), H = j("a-select-option"), ie = j("a-select"), ye = j("a-card"), Le = j("a-radio-button"), Bn = j("a-radio-group"), Rr = j("a-input-password"), jt = j("a-textarea"), Nr = j("a-alert"), Pr = j("a-form");
278
283
  return M(), J("div", Zr, [
279
- S(Pr, { layout: "vertical" }, {
284
+ E(Pr, { layout: "vertical" }, {
280
285
  default: R(() => [
281
- S(be, {
286
+ E(ye, {
282
287
  title: "URL配置",
283
288
  class: "form-section",
284
289
  size: "small"
@@ -286,13 +291,13 @@ ${T.value}\r
286
291
  default: R(() => [
287
292
  N("div", Kr, [
288
293
  N("div", Jr, [
289
- S(T, {
294
+ E(T, {
290
295
  value: s.value,
291
296
  "onUpdate:value": $[0] || ($[0] = (B) => s.value = B),
292
297
  placeholder: "基础URL",
293
298
  size: "small"
294
299
  }, null, 8, ["value"]),
295
- ce.value ? (M(), $e(ue, {
300
+ ce.value ? (M(), me(ue, {
296
301
  key: 0,
297
302
  type: "primary",
298
303
  size: "small",
@@ -302,41 +307,41 @@ ${T.value}\r
302
307
  D("拆解")
303
308
  ])),
304
309
  _: 1
305
- })) : se("", !0)
310
+ })) : te("", !0)
306
311
  ]),
307
312
  N("div", Qr, [
308
- S(ie, {
313
+ E(ie, {
309
314
  value: r.value,
310
315
  "onUpdate:value": $[1] || ($[1] = (B) => r.value = B),
311
316
  class: "w-40",
312
317
  size: "small"
313
318
  }, {
314
319
  default: R(() => [
315
- S(H, { value: "GET" }, {
320
+ E(H, { value: "GET" }, {
316
321
  default: R(() => $[14] || ($[14] = [
317
322
  D("GET")
318
323
  ])),
319
324
  _: 1
320
325
  }),
321
- S(H, { value: "POST" }, {
326
+ E(H, { value: "POST" }, {
322
327
  default: R(() => $[15] || ($[15] = [
323
328
  D("POST")
324
329
  ])),
325
330
  _: 1
326
331
  }),
327
- S(H, { value: "PUT" }, {
332
+ E(H, { value: "PUT" }, {
328
333
  default: R(() => $[16] || ($[16] = [
329
334
  D("PUT")
330
335
  ])),
331
336
  _: 1
332
337
  }),
333
- S(H, { value: "DELETE" }, {
338
+ E(H, { value: "DELETE" }, {
334
339
  default: R(() => $[17] || ($[17] = [
335
340
  D("DELETE")
336
341
  ])),
337
342
  _: 1
338
343
  }),
339
- S(H, { value: "OPTIONS" }, {
344
+ E(H, { value: "OPTIONS" }, {
340
345
  default: R(() => $[18] || ($[18] = [
341
346
  D("OPTIONS")
342
347
  ])),
@@ -345,7 +350,7 @@ ${T.value}\r
345
350
  ]),
346
351
  _: 1
347
352
  }, 8, ["value"]),
348
- S(T, {
353
+ E(T, {
349
354
  value: l.value,
350
355
  "onUpdate:value": $[2] || ($[2] = (B) => l.value = B),
351
356
  placeholder: "路径",
@@ -354,7 +359,7 @@ ${T.value}\r
354
359
  ])
355
360
  ]),
356
361
  N("div", Yr, [
357
- S(Ft, {
362
+ E(Ft, {
358
363
  modelValue: p.value,
359
364
  "onUpdate:modelValue": $[3] || ($[3] = (B) => p.value = B),
360
365
  "add-button-text": "添加参数",
@@ -365,32 +370,33 @@ ${T.value}\r
365
370
  ]),
366
371
  _: 1
367
372
  }),
368
- S(be, {
373
+ n.showAuth ? (M(), me(ye, {
374
+ key: 0,
369
375
  title: "认证方案",
370
376
  class: "form-section",
371
377
  size: "small"
372
378
  }, {
373
379
  default: R(() => [
374
- S(Bn, {
380
+ E(Bn, {
375
381
  value: o.value,
376
382
  "onUpdate:value": $[4] || ($[4] = (B) => o.value = B),
377
383
  "button-style": "solid",
378
384
  size: "small"
379
385
  }, {
380
386
  default: R(() => [
381
- S(Le, { value: "none" }, {
387
+ E(Le, { value: "none" }, {
382
388
  default: R(() => $[19] || ($[19] = [
383
389
  D("无认证")
384
390
  ])),
385
391
  _: 1
386
392
  }),
387
- S(Le, { value: "Basic" }, {
393
+ E(Le, { value: "Basic" }, {
388
394
  default: R(() => $[20] || ($[20] = [
389
395
  D("Basic认证")
390
396
  ])),
391
397
  _: 1
392
398
  }),
393
- S(Le, { value: "Bearer" }, {
399
+ E(Le, { value: "Bearer" }, {
394
400
  default: R(() => $[21] || ($[21] = [
395
401
  D("Bearer认证")
396
402
  ])),
@@ -402,7 +408,7 @@ ${T.value}\r
402
408
  o.value === "Basic" ? (M(), J("div", es, [
403
409
  N("div", ts, [
404
410
  $[22] || ($[22] = N("p", { class: "m-0 w-16" }, "用户名", -1)),
405
- S(T, {
411
+ E(T, {
406
412
  value: i.value,
407
413
  "onUpdate:value": $[5] || ($[5] = (B) => i.value = B),
408
414
  size: "small"
@@ -410,17 +416,17 @@ ${T.value}\r
410
416
  ]),
411
417
  N("div", ns, [
412
418
  $[23] || ($[23] = N("p", { class: "m-0 w-16" }, "密码", -1)),
413
- S(Rr, {
419
+ E(Rr, {
414
420
  value: c.value,
415
421
  "onUpdate:value": $[6] || ($[6] = (B) => c.value = B),
416
422
  size: "small"
417
423
  }, null, 8, ["value"])
418
424
  ])
419
- ])) : se("", !0),
425
+ ])) : te("", !0),
420
426
  o.value === "Bearer" ? (M(), J("div", as, [
421
427
  N("div", rs, [
422
428
  $[24] || ($[24] = N("p", { class: "m-0 w-16 h-full" }, "Token", -1)),
423
- S(jt, {
429
+ E(jt, {
424
430
  value: u.value,
425
431
  "onUpdate:value": $[7] || ($[7] = (B) => u.value = B),
426
432
  size: "small",
@@ -429,17 +435,17 @@ ${T.value}\r
429
435
  placeholder: "请输入Token"
430
436
  }, null, 8, ["value"])
431
437
  ])
432
- ])) : se("", !0)
438
+ ])) : te("", !0)
433
439
  ]),
434
440
  _: 1
435
- }),
436
- S(be, {
441
+ })) : te("", !0),
442
+ E(ye, {
437
443
  title: "请求头",
438
444
  class: "form-section",
439
445
  size: "small"
440
446
  }, {
441
447
  default: R(() => [
442
- S(Ft, {
448
+ E(Ft, {
443
449
  modelValue: d.value,
444
450
  "onUpdate:modelValue": $[8] || ($[8] = (B) => d.value = B),
445
451
  "add-button-text": "添加请求头",
@@ -448,14 +454,14 @@ ${T.value}\r
448
454
  ]),
449
455
  _: 1
450
456
  }),
451
- r.value === "POST" || r.value === "PUT" ? (M(), $e(be, {
452
- key: 0,
457
+ r.value === "POST" || r.value === "PUT" ? (M(), me(ye, {
458
+ key: 1,
453
459
  title: "请求体",
454
460
  class: "form-section",
455
461
  size: "small"
456
462
  }, {
457
463
  default: R(() => [
458
- S(Bn, {
464
+ E(Bn, {
459
465
  value: m.value,
460
466
  "onUpdate:value": $[9] || ($[9] = (B) => m.value = B),
461
467
  "button-style": "solid",
@@ -463,19 +469,19 @@ ${T.value}\r
463
469
  class: "mb-1"
464
470
  }, {
465
471
  default: R(() => [
466
- S(Le, { value: "application/json" }, {
472
+ E(Le, { value: "application/json" }, {
467
473
  default: R(() => $[25] || ($[25] = [
468
474
  D("JSON")
469
475
  ])),
470
476
  _: 1
471
477
  }),
472
- S(Le, { value: "multipart/form-data" }, {
478
+ E(Le, { value: "multipart/form-data" }, {
473
479
  default: R(() => $[26] || ($[26] = [
474
480
  D("Form Data")
475
481
  ])),
476
482
  _: 1
477
483
  }),
478
- S(Le, { value: "text/plain" }, {
484
+ E(Le, { value: "text/plain" }, {
479
485
  default: R(() => $[27] || ($[27] = [
480
486
  D("Raw")
481
487
  ])),
@@ -485,46 +491,46 @@ ${T.value}\r
485
491
  _: 1
486
492
  }, 8, ["value"]),
487
493
  m.value === "application/json" ? (M(), J(_n, { key: 0 }, [
488
- S(jt, {
494
+ E(jt, {
489
495
  value: _.value,
490
496
  "onUpdate:value": $[10] || ($[10] = (B) => _.value = B),
491
497
  rows: 6,
492
498
  placeholder: "请输入 JSON 数据",
493
499
  onInput: I
494
500
  }, null, 8, ["value"]),
495
- b.value ? (M(), $e(Nr, {
501
+ b.value ? (M(), me(Nr, {
496
502
  key: 0,
497
503
  type: "error",
498
504
  message: b.value,
499
505
  banner: "",
500
506
  style: { "margin-bottom": "8px" }
501
- }, null, 8, ["message"])) : se("", !0)
502
- ], 64)) : se("", !0),
503
- m.value === "multipart/form-data" ? (M(), $e(Ft, {
507
+ }, null, 8, ["message"])) : te("", !0)
508
+ ], 64)) : te("", !0),
509
+ m.value === "multipart/form-data" ? (M(), me(Ft, {
504
510
  key: 1,
505
511
  modelValue: f.value,
506
512
  "onUpdate:modelValue": $[11] || ($[11] = (B) => f.value = B),
507
513
  "add-button-text": "添加表单字段",
508
514
  "show-preview": !1
509
- }, null, 8, ["modelValue"])) : se("", !0),
510
- m.value === "text/plain" ? (M(), $e(jt, {
515
+ }, null, 8, ["modelValue"])) : te("", !0),
516
+ m.value === "text/plain" ? (M(), me(jt, {
511
517
  key: 2,
512
518
  value: g.value,
513
519
  "onUpdate:value": $[12] || ($[12] = (B) => g.value = B),
514
520
  rows: 6,
515
521
  placeholder: "请输入原始数据"
516
- }, null, 8, ["value"])) : se("", !0),
522
+ }, null, 8, ["value"])) : te("", !0),
517
523
  N("pre", null, Ee(O.value), 1)
518
524
  ]),
519
525
  _: 1
520
- })) : se("", !0)
526
+ })) : te("", !0)
521
527
  ]),
522
528
  _: 1
523
529
  })
524
530
  ]);
525
531
  };
526
532
  }
527
- }), au = /* @__PURE__ */ Rt(ss, [["__scopeId", "data-v-c9f65487"]]);
533
+ }), au = /* @__PURE__ */ Rt(ss, [["__scopeId", "data-v-48c52b42"]]);
528
534
  async function os(t, e = "xhr") {
529
535
  return e === "fetch" ? is(t) : ls(t);
530
536
  }
@@ -668,27 +674,27 @@ const us = { style: { display: "flex", "align-items": "center", gap: "8px", "mar
668
674
  };
669
675
  return (i, c) => {
670
676
  const u = j("a-radio-button"), p = j("a-radio-group"), d = j("a-button"), f = j("a-alert"), m = j("a-tag"), _ = j("a-textarea"), g = j("a-card");
671
- return M(), $e(g, {
677
+ return M(), me(g, {
672
678
  title: "响应",
673
679
  class: "form-section",
674
680
  size: "small"
675
681
  }, {
676
682
  default: R(() => [
677
683
  N("div", us, [
678
- S(p, {
684
+ E(p, {
679
685
  value: n.value,
680
686
  "onUpdate:value": c[0] || (c[0] = (b) => n.value = b),
681
687
  "button-style": "solid",
682
688
  size: "small"
683
689
  }, {
684
690
  default: R(() => [
685
- S(u, { value: "xhr" }, {
691
+ E(u, { value: "xhr" }, {
686
692
  default: R(() => c[2] || (c[2] = [
687
693
  D("XMLHttpRequest")
688
694
  ])),
689
695
  _: 1
690
696
  }),
691
- S(u, { value: "fetch" }, {
697
+ E(u, { value: "fetch" }, {
692
698
  default: R(() => c[3] || (c[3] = [
693
699
  D("Fetch")
694
700
  ])),
@@ -697,7 +703,7 @@ const us = { style: { display: "flex", "align-items": "center", gap: "8px", "mar
697
703
  ]),
698
704
  _: 1
699
705
  }, 8, ["value"]),
700
- S(d, {
706
+ E(d, {
701
707
  type: "primary",
702
708
  onClick: l,
703
709
  size: "small"
@@ -708,19 +714,19 @@ const us = { style: { display: "flex", "align-items": "center", gap: "8px", "mar
708
714
  _: 1
709
715
  })
710
716
  ]),
711
- r.value ? (M(), $e(f, {
717
+ r.value ? (M(), me(f, {
712
718
  key: 0,
713
719
  message: r.value,
714
720
  type: "error",
715
721
  "show-icon": "",
716
722
  style: { "margin-bottom": "8px" }
717
- }, null, 8, ["message"])) : se("", !0),
723
+ }, null, 8, ["message"])) : te("", !0),
718
724
  N("div", ps, [
719
725
  c[7] || (c[7] = N("div", { class: "text-sm font-bold" }, "基本信息", -1)),
720
726
  N("div", ds, [
721
727
  N("div", null, [
722
728
  c[5] || (c[5] = N("span", null, "状态码:", -1)),
723
- S(m, {
729
+ E(m, {
724
730
  color: s(a.value.status)
725
731
  }, {
726
732
  default: R(() => [
@@ -744,7 +750,7 @@ const us = { style: { display: "flex", "align-items": "center", gap: "8px", "mar
744
750
  ])
745
751
  ])) : (M(), J("p", gs, "无响应头")),
746
752
  c[9] || (c[9] = N("div", { class: "text-sm font-bold" }, "响应体", -1)),
747
- S(_, {
753
+ E(_, {
748
754
  value: a.value.body,
749
755
  "onUpdate:value": c[1] || (c[1] = (b) => a.value.body = b),
750
756
  rows: 5,
@@ -1823,7 +1829,7 @@ var ot = class {
1823
1829
  constructor(t, e) {
1824
1830
  this.languageId = t, this.tokenType = e;
1825
1831
  }
1826
- }, fe, zs = (fe = class {
1832
+ }, he, zs = (he = class {
1827
1833
  constructor(e, n) {
1828
1834
  h(this, "_defaultAttributes");
1829
1835
  h(this, "_embeddedLanguagesMatcher");
@@ -1841,7 +1847,7 @@ var ot = class {
1841
1847
  return this._defaultAttributes;
1842
1848
  }
1843
1849
  getBasicScopeAttributes(e) {
1844
- return e === null ? fe._NULL_SCOPE_METADATA : this._getBasicScopeAttributes.get(e);
1850
+ return e === null ? he._NULL_SCOPE_METADATA : this._getBasicScopeAttributes.get(e);
1845
1851
  }
1846
1852
  /**
1847
1853
  * Given a produced TM scope, return the language that token describes or null if unknown.
@@ -1851,7 +1857,7 @@ var ot = class {
1851
1857
  return this._embeddedLanguagesMatcher.match(e) || 0;
1852
1858
  }
1853
1859
  _toStandardTokenType(e) {
1854
- const n = e.match(fe.STANDARD_TOKEN_TYPE_REGEXP);
1860
+ const n = e.match(he.STANDARD_TOKEN_TYPE_REGEXP);
1855
1861
  if (!n)
1856
1862
  return 8;
1857
1863
  switch (n[1]) {
@@ -1866,7 +1872,7 @@ var ot = class {
1866
1872
  }
1867
1873
  throw new Error("Unexpected match for standard token type!");
1868
1874
  }
1869
- }, h(fe, "_NULL_SCOPE_METADATA", new zt(0, 0)), h(fe, "STANDARD_TOKEN_TYPE_REGEXP", /\b(comment|string|regex|meta\.embedded)\b/), fe), qs = class {
1875
+ }, h(he, "_NULL_SCOPE_METADATA", new zt(0, 0)), h(he, "STANDARD_TOKEN_TYPE_REGEXP", /\b(comment|string|regex|meta\.embedded)\b/), he), qs = class {
1870
1876
  constructor(t) {
1871
1877
  h(this, "values");
1872
1878
  h(this, "scopesRegExp");
@@ -2475,7 +2481,7 @@ var Ke = class le {
2475
2481
  }), a = a.parent;
2476
2482
  return a === e ? n.reverse() : void 0;
2477
2483
  }
2478
- }, te, sn = (te = class {
2484
+ }, ne, sn = (ne = class {
2479
2485
  /**
2480
2486
  * Invariant:
2481
2487
  * ```
@@ -2508,7 +2514,7 @@ var Ke = class le {
2508
2514
  this.parent = e, this.ruleId = n, this.beginRuleCapturedEOL = s, this.endRule = o, this.nameScopesList = l, this.contentNameScopesList = i, this.depth = this.parent ? this.parent.depth + 1 : 1, this._enterPos = a, this._anchorPos = r;
2509
2515
  }
2510
2516
  equals(e) {
2511
- return e === null ? !1 : te._equals(this, e);
2517
+ return e === null ? !1 : ne._equals(this, e);
2512
2518
  }
2513
2519
  static _equals(e, n) {
2514
2520
  return e === n ? !0 : this._structuralEquals(e, n) ? Ke.equals(e.contentNameScopesList, n.contentNameScopesList) : !1;
@@ -2533,7 +2539,7 @@ var Ke = class le {
2533
2539
  e._enterPos = -1, e._anchorPos = -1, e = e.parent;
2534
2540
  }
2535
2541
  reset() {
2536
- te._reset(this);
2542
+ ne._reset(this);
2537
2543
  }
2538
2544
  pop() {
2539
2545
  return this.parent;
@@ -2542,7 +2548,7 @@ var Ke = class le {
2542
2548
  return this.parent ? this.parent : this;
2543
2549
  }
2544
2550
  push(e, n, a, r, s, o, l) {
2545
- return new te(
2551
+ return new ne(
2546
2552
  this,
2547
2553
  e,
2548
2554
  n,
@@ -2582,7 +2588,7 @@ var Ke = class le {
2582
2588
  );
2583
2589
  }
2584
2590
  withEndRule(e) {
2585
- return this.endRule === e ? this : new te(
2591
+ return this.endRule === e ? this : new ne(
2586
2592
  this.parent,
2587
2593
  this.ruleId,
2588
2594
  this._enterPos,
@@ -2615,7 +2621,7 @@ var Ke = class le {
2615
2621
  }
2616
2622
  static pushFrame(e, n) {
2617
2623
  const a = Ke.fromExtension((e == null ? void 0 : e.nameScopesList) ?? null, n.nameScopesList);
2618
- return new te(
2624
+ return new ne(
2619
2625
  e,
2620
2626
  n.ruleId,
2621
2627
  n.enterPos ?? -1,
@@ -2627,7 +2633,7 @@ var Ke = class le {
2627
2633
  );
2628
2634
  }
2629
2635
  }, // TODO remove me
2630
- h(te, "NULL", new te(
2636
+ h(ne, "NULL", new ne(
2631
2637
  null,
2632
2638
  0,
2633
2639
  0,
@@ -2636,7 +2642,7 @@ h(te, "NULL", new te(
2636
2642
  null,
2637
2643
  null,
2638
2644
  null
2639
- )), te), eo = class {
2645
+ )), ne), eo = class {
2640
2646
  constructor(t, e) {
2641
2647
  h(this, "balancedBracketScopes");
2642
2648
  h(this, "unbalancedBracketScopes");
@@ -2976,13 +2982,13 @@ Q.prototype.property = "";
2976
2982
  Q.prototype.spaceSeparated = !1;
2977
2983
  Q.prototype.space = void 0;
2978
2984
  let so = 0;
2979
- const x = Te(), F = Te(), cn = Te(), y = Te(), P = Te(), De = Te(), Y = Te();
2985
+ const S = Te(), F = Te(), cn = Te(), y = Te(), P = Te(), De = Te(), Y = Te();
2980
2986
  function Te() {
2981
2987
  return 2 ** ++so;
2982
2988
  }
2983
2989
  const un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2984
2990
  __proto__: null,
2985
- boolean: x,
2991
+ boolean: S,
2986
2992
  booleanish: F,
2987
2993
  commaOrSpaceSeparated: Y,
2988
2994
  commaSeparated: De,
@@ -3111,38 +3117,38 @@ const oo = qe({
3111
3117
  accessKey: P,
3112
3118
  action: null,
3113
3119
  allow: null,
3114
- allowFullScreen: x,
3115
- allowPaymentRequest: x,
3116
- allowUserMedia: x,
3120
+ allowFullScreen: S,
3121
+ allowPaymentRequest: S,
3122
+ allowUserMedia: S,
3117
3123
  alt: null,
3118
3124
  as: null,
3119
- async: x,
3125
+ async: S,
3120
3126
  autoCapitalize: null,
3121
3127
  autoComplete: P,
3122
- autoFocus: x,
3123
- autoPlay: x,
3128
+ autoFocus: S,
3129
+ autoPlay: S,
3124
3130
  blocking: P,
3125
3131
  capture: null,
3126
3132
  charSet: null,
3127
- checked: x,
3133
+ checked: S,
3128
3134
  cite: null,
3129
3135
  className: P,
3130
3136
  cols: y,
3131
3137
  colSpan: null,
3132
3138
  content: null,
3133
3139
  contentEditable: F,
3134
- controls: x,
3140
+ controls: S,
3135
3141
  controlsList: P,
3136
3142
  coords: y | De,
3137
3143
  crossOrigin: null,
3138
3144
  data: null,
3139
3145
  dateTime: null,
3140
3146
  decoding: null,
3141
- default: x,
3142
- defer: x,
3147
+ default: S,
3148
+ defer: S,
3143
3149
  dir: null,
3144
3150
  dirName: null,
3145
- disabled: x,
3151
+ disabled: S,
3146
3152
  download: cn,
3147
3153
  draggable: F,
3148
3154
  encType: null,
@@ -3152,7 +3158,7 @@ const oo = qe({
3152
3158
  formAction: null,
3153
3159
  formEncType: null,
3154
3160
  formMethod: null,
3155
- formNoValidate: x,
3161
+ formNoValidate: S,
3156
3162
  formTarget: null,
3157
3163
  headers: P,
3158
3164
  height: y,
@@ -3165,15 +3171,15 @@ const oo = qe({
3165
3171
  id: null,
3166
3172
  imageSizes: null,
3167
3173
  imageSrcSet: null,
3168
- inert: x,
3174
+ inert: S,
3169
3175
  inputMode: null,
3170
3176
  integrity: null,
3171
3177
  is: null,
3172
- isMap: x,
3178
+ isMap: S,
3173
3179
  itemId: null,
3174
3180
  itemProp: P,
3175
3181
  itemRef: P,
3176
- itemScope: x,
3182
+ itemScope: S,
3177
3183
  itemType: P,
3178
3184
  kind: null,
3179
3185
  label: null,
@@ -3181,7 +3187,7 @@ const oo = qe({
3181
3187
  language: null,
3182
3188
  list: null,
3183
3189
  loading: null,
3184
- loop: x,
3190
+ loop: S,
3185
3191
  low: y,
3186
3192
  manifest: null,
3187
3193
  max: null,
@@ -3190,12 +3196,12 @@ const oo = qe({
3190
3196
  method: null,
3191
3197
  min: null,
3192
3198
  minLength: y,
3193
- multiple: x,
3194
- muted: x,
3199
+ multiple: S,
3200
+ muted: S,
3195
3201
  name: null,
3196
3202
  nonce: null,
3197
- noModule: x,
3198
- noValidate: x,
3203
+ noModule: S,
3204
+ noValidate: S,
3199
3205
  onAbort: null,
3200
3206
  onAfterPrint: null,
3201
3207
  onAuxClick: null,
@@ -3284,31 +3290,31 @@ const oo = qe({
3284
3290
  onVolumeChange: null,
3285
3291
  onWaiting: null,
3286
3292
  onWheel: null,
3287
- open: x,
3293
+ open: S,
3288
3294
  optimum: y,
3289
3295
  pattern: null,
3290
3296
  ping: P,
3291
3297
  placeholder: null,
3292
- playsInline: x,
3298
+ playsInline: S,
3293
3299
  popover: null,
3294
3300
  popoverTarget: null,
3295
3301
  popoverTargetAction: null,
3296
3302
  poster: null,
3297
3303
  preload: null,
3298
- readOnly: x,
3304
+ readOnly: S,
3299
3305
  referrerPolicy: null,
3300
3306
  rel: P,
3301
- required: x,
3302
- reversed: x,
3307
+ required: S,
3308
+ reversed: S,
3303
3309
  rows: y,
3304
3310
  rowSpan: y,
3305
3311
  sandbox: P,
3306
3312
  scope: null,
3307
- scoped: x,
3308
- seamless: x,
3309
- selected: x,
3310
- shadowRootClonable: x,
3311
- shadowRootDelegatesFocus: x,
3313
+ scoped: S,
3314
+ seamless: S,
3315
+ selected: S,
3316
+ shadowRootClonable: S,
3317
+ shadowRootDelegatesFocus: S,
3312
3318
  shadowRootMode: null,
3313
3319
  shape: null,
3314
3320
  size: y,
@@ -3328,7 +3334,7 @@ const oo = qe({
3328
3334
  title: null,
3329
3335
  translate: null,
3330
3336
  type: null,
3331
- typeMustMatch: x,
3337
+ typeMustMatch: S,
3332
3338
  useMap: null,
3333
3339
  value: F,
3334
3340
  width: y,
@@ -3374,9 +3380,9 @@ const oo = qe({
3374
3380
  // `<object>`
3375
3381
  color: null,
3376
3382
  // `<font>` and `<hr>`. Use CSS instead
3377
- compact: x,
3383
+ compact: S,
3378
3384
  // Lists. Use CSS to reduce space between items instead
3379
- declare: x,
3385
+ declare: S,
3380
3386
  // `<object>`
3381
3387
  event: null,
3382
3388
  // `<script>`
@@ -3400,13 +3406,13 @@ const oo = qe({
3400
3406
  // `<body>`
3401
3407
  marginWidth: y,
3402
3408
  // `<body>`
3403
- noResize: x,
3409
+ noResize: S,
3404
3410
  // `<frame>`
3405
- noHref: x,
3411
+ noHref: S,
3406
3412
  // `<area>`. Use no href instead of an explicit `nohref`
3407
- noShade: x,
3413
+ noShade: S,
3408
3414
  // `<hr>`. Use background-color and height instead of borders
3409
- noWrap: x,
3415
+ noWrap: S,
3410
3416
  // `<td>` and `<th>`
3411
3417
  object: null,
3412
3418
  // `<applet>`
@@ -3446,8 +3452,8 @@ const oo = qe({
3446
3452
  allowTransparency: null,
3447
3453
  autoCorrect: null,
3448
3454
  autoSave: null,
3449
- disablePictureInPicture: x,
3450
- disableRemotePlayback: x,
3455
+ disablePictureInPicture: S,
3456
+ disableRemotePlayback: S,
3451
3457
  prefix: null,
3452
3458
  property: null,
3453
3459
  results: y,
@@ -3682,7 +3688,7 @@ const oo = qe({
3682
3688
  dur: null,
3683
3689
  divisor: y,
3684
3690
  dominantBaseline: null,
3685
- download: x,
3691
+ download: S,
3686
3692
  dx: null,
3687
3693
  dy: null,
3688
3694
  edgeMode: null,
@@ -5537,11 +5543,11 @@ function St(t, e, n, a, r) {
5537
5543
  const q = k.tokens[2 * A + 1], ce = Ae(
5538
5544
  a[ze.getForeground(q)],
5539
5545
  s
5540
- ), E = ze.getFontStyle(q), $ = {
5546
+ ), x = ze.getFontStyle(q), $ = {
5541
5547
  content: m.substring(O, I),
5542
5548
  offset: _ + O,
5543
5549
  color: ce,
5544
- fontStyle: E
5550
+ fontStyle: x
5545
5551
  };
5546
5552
  if (r.includeExplanation) {
5547
5553
  const T = [];
@@ -5550,7 +5556,7 @@ function St(t, e, n, a, r) {
5550
5556
  let ie;
5551
5557
  switch (typeof H.scope) {
5552
5558
  case "string":
5553
- ie = H.scope.split(/,/).map((be) => be.trim());
5559
+ ie = H.scope.split(/,/).map((ye) => ye.trim());
5554
5560
  break;
5555
5561
  case "object":
5556
5562
  ie = H.scope;
@@ -5560,7 +5566,7 @@ function St(t, e, n, a, r) {
5560
5566
  }
5561
5567
  T.push({
5562
5568
  settings: H,
5563
- selectors: ie.map((be) => be.split(/ /))
5569
+ selectors: ie.map((ye) => ye.split(/ /))
5564
5570
  });
5565
5571
  }
5566
5572
  $.explanation = [];
@@ -5849,8 +5855,8 @@ function Vi(t, e, n, a = nt(t)) {
5849
5855
  };
5850
5856
  const ce = dn(I.htmlStyle || Ct(I));
5851
5857
  ce && (q.properties.style = ce);
5852
- for (const E of r)
5853
- q = ((A = E == null ? void 0 : E.span) == null ? void 0 : A.call(d, q, w + 1, v, k, I)) || q;
5858
+ for (const x of r)
5859
+ q = ((A = x == null ? void 0 : x.span) == null ? void 0 : A.call(d, q, w + 1, v, k, I)) || q;
5854
5860
  l === "inline" ? o.children.push(q) : l === "classic" && k.children.push(q), v += I.content.length;
5855
5861
  }
5856
5862
  if (l === "classic") {
@@ -6401,7 +6407,7 @@ function pl(t, e, n, a) {
6401
6407
  const o = t.singleline ? { "^": W`\A`, $: W`\Z` }[n] : n;
6402
6408
  return { token: aa(o, n) };
6403
6409
  }
6404
- return n === "|" ? { token: fl(n) } : In.test(n) ? { tokens: Pl(n) } : { token: he(He(n), n) };
6410
+ return n === "|" ? { token: fl(n) } : In.test(n) ? { tokens: Pl(n) } : { token: ge(He(n), n) };
6405
6411
  }
6406
6412
  function dl(t, e, n) {
6407
6413
  const a = [ra(e[1] === "^", e)];
@@ -6410,7 +6416,7 @@ function dl(t, e, n) {
6410
6416
  const o = s[0];
6411
6417
  if (o[0] === "[" && o[1] !== ":") r++, a.push(ra(o[1] === "^", o));
6412
6418
  else if (o === "]") {
6413
- if (a.at(-1).type === "CharacterClassOpen") a.push(he(93, o));
6419
+ if (a.at(-1).type === "CharacterClassOpen") a.push(ge(93, o));
6414
6420
  else if (r--, a.push(hl(o)), !r) break;
6415
6421
  } else {
6416
6422
  const l = ml(o);
@@ -6426,7 +6432,7 @@ function ml(t) {
6426
6432
  if (!e || !An.has(e.groups.name)) throw new Error(`Invalid POSIX class "${t}"`);
6427
6433
  return Re("posix", t, { value: e.groups.name, negate: !!e.groups.negate });
6428
6434
  }
6429
- return t === "-" ? gl(t) : t === "&&" ? bl(t) : he(He(t), t);
6435
+ return t === "-" ? gl(t) : t === "&&" ? bl(t) : ge(He(t), t);
6430
6436
  }
6431
6437
  function lr(t, { inCharClass: e }) {
6432
6438
  const n = t[1];
@@ -6441,17 +6447,17 @@ function lr(t, { inCharClass: e }) {
6441
6447
  const a = t.split(/\\x/).slice(1).map((o) => parseInt(o, 16)), r = new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 }).decode(new Uint8Array(a)), s = new TextEncoder();
6442
6448
  return [...r].map((o) => {
6443
6449
  const l = [...s.encode(o)].map((i) => `\\x${i.toString(16)}`).join("");
6444
- return he(He(o), l);
6450
+ return ge(He(o), l);
6445
6451
  });
6446
6452
  } catch {
6447
6453
  throw new Error(`Multibyte code "${t}" incomplete or invalid in Oniguruma`);
6448
6454
  }
6449
- if (n === "u" || n === "x") return he(Rl(t), t);
6450
- if (sa.has(n)) return he(sa.get(n), t);
6455
+ if (n === "u" || n === "x") return ge(Rl(t), t);
6456
+ if (sa.has(n)) return ge(sa.get(n), t);
6451
6457
  if (/\d/.test(n)) return yl(e, t);
6452
6458
  if (t === "\\") throw new Error(W`Incomplete escape "\"`);
6453
6459
  if (n === "M") throw new Error(`Unsupported meta "${t}"`);
6454
- if ([...t].length === 2) return he(t.codePointAt(1), t);
6460
+ if ([...t].length === 2) return ge(t.codePointAt(1), t);
6455
6461
  throw new Error(`Unexpected escape "${t}"`);
6456
6462
  }
6457
6463
  function fl(t) {
@@ -6463,7 +6469,7 @@ function aa(t, e) {
6463
6469
  function cr(t) {
6464
6470
  return { type: "Backreference", raw: t };
6465
6471
  }
6466
- function he(t, e) {
6472
+ function ge(t, e) {
6467
6473
  return { type: "Character", value: t, raw: e };
6468
6474
  }
6469
6475
  function hl(t) {
@@ -6506,7 +6512,7 @@ const vl = /* @__PURE__ */ new Set(["COUNT", "CMP", "ERROR", "FAIL", "MAX", "MIS
6506
6512
  function Cl(t) {
6507
6513
  const e = t[1] === "c" ? t[2] : t[3];
6508
6514
  if (!e || !/[A-Za-z]/.test(e)) throw new Error(`Unsupported control character "${t}"`);
6509
- return he(He(e.toUpperCase()) - 64, t);
6515
+ return ge(He(e.toUpperCase()) - 64, t);
6510
6516
  }
6511
6517
  function xl(t, e) {
6512
6518
  let { on: n, off: a } = /^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(t).groups;
@@ -6609,7 +6615,7 @@ function Nl(t, e) {
6609
6615
  if (l === 0 && i !== "8" && i !== "9") {
6610
6616
  if (c = parseInt(i, 8), c > 127) throw new Error(W`Octal encoded byte above 177 unsupported "${n}"`);
6611
6617
  } else c = He(i);
6612
- s.push(he(c, (l === 0 ? "\\" : "") + i));
6618
+ s.push(ge(c, (l === 0 ? "\\" : "") + i));
6613
6619
  }
6614
6620
  return s;
6615
6621
  }
@@ -6995,7 +7001,7 @@ function ec(t, e) {
6995
7001
  function tc(t, e, n, a) {
6996
7002
  return t.slice(0, e) + a + t.slice(e + n.length);
6997
7003
  }
6998
- const ae = Object.freeze({
7004
+ const re = Object.freeze({
6999
7005
  DEFAULT: "DEFAULT",
7000
7006
  CHAR_CLASS: "CHAR_CLASS"
7001
7007
  });
@@ -7004,9 +7010,9 @@ function Rn(t, e, n, a) {
7004
7010
  let o = 0, l = "";
7005
7011
  for (const i of t.matchAll(r)) {
7006
7012
  const { 0: c, groups: { $skip: u } } = i;
7007
- if (!u && (!a || a === ae.DEFAULT == !o)) {
7013
+ if (!u && (!a || a === re.DEFAULT == !o)) {
7008
7014
  n instanceof Function ? l += n(i, {
7009
- context: o ? ae.CHAR_CLASS : ae.DEFAULT,
7015
+ context: o ? re.CHAR_CLASS : re.DEFAULT,
7010
7016
  negated: s[s.length - 1]
7011
7017
  }) : l += n;
7012
7018
  continue;
@@ -7026,7 +7032,7 @@ function nc(t, e, n = 0, a) {
7026
7032
  let s = 0, o;
7027
7033
  for (; o = r.exec(t); ) {
7028
7034
  const { 0: l, groups: { $skip: i } } = o;
7029
- if (!i && (!a || a === ae.DEFAULT == !s))
7035
+ if (!i && (!a || a === re.DEFAULT == !s))
7030
7036
  return o;
7031
7037
  l === "[" ? s++ : l === "]" && s && s--, r.lastIndex == o.index && r.lastIndex++;
7032
7038
  }
@@ -7112,7 +7118,7 @@ function rc(t, e) {
7112
7118
  }
7113
7119
  return `\\${m}`;
7114
7120
  },
7115
- ae.DEFAULT
7121
+ re.DEFAULT
7116
7122
  ), {
7117
7123
  pattern: t,
7118
7124
  captureTransfers: a,
@@ -7173,7 +7179,7 @@ function sc(t) {
7173
7179
  pattern: t
7174
7180
  };
7175
7181
  }
7176
- const ne = String.raw, oc = ne`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`, gn = ne`\(\?R=(?<rDepth>[^\)]+)\)|${oc}`, Lt = ne`\(\?<(?![=!])(?<captureName>[^>]+)>`, _r = ne`${Lt}|(?<unnamed>\()(?!\?)`, xe = new RegExp(ne`${Lt}|${gn}|\(\?|\\?.`, "gsu"), Kt = "Cannot use multiple overlapping recursions";
7182
+ const ae = String.raw, oc = ae`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`, gn = ae`\(\?R=(?<rDepth>[^\)]+)\)|${oc}`, Lt = ae`\(\?<(?![=!])(?<captureName>[^>]+)>`, _r = ae`${Lt}|(?<unnamed>\()(?!\?)`, xe = new RegExp(ae`${Lt}|${gn}|\(\?|\\?.`, "gsu"), Kt = "Cannot use multiple overlapping recursions";
7177
7183
  function ic(t, e) {
7178
7184
  const { hiddenCaptures: n, mode: a } = {
7179
7185
  hiddenCaptures: [],
@@ -7187,9 +7193,9 @@ function ic(t, e) {
7187
7193
  captureTransfers: r,
7188
7194
  hiddenCaptures: n
7189
7195
  };
7190
- if (a === "plugin" && ft(t, ne`\(\?\(DEFINE\)`, ae.DEFAULT))
7196
+ if (a === "plugin" && ft(t, ae`\(\?\(DEFINE\)`, re.DEFAULT))
7191
7197
  throw new Error("DEFINE groups cannot be used with recursion");
7192
- const s = [], o = ft(t, ne`\\[1-9]`, ae.DEFAULT), l = /* @__PURE__ */ new Map(), i = [];
7198
+ const s = [], o = ft(t, ae`\\[1-9]`, re.DEFAULT), l = /* @__PURE__ */ new Map(), i = [];
7193
7199
  let c = !1, u = 0, p = 0, d;
7194
7200
  for (xe.lastIndex = 0; d = xe.exec(t); ) {
7195
7201
  const { 0: f, groups: { captureName: m, rDepth: _, gRNameOrNum: g, gRDepth: b } } = d;
@@ -7207,7 +7213,7 @@ function ic(t, e) {
7207
7213
  `${a === "external" ? "Backrefs" : "Numbered backrefs"} cannot be used with global recursion`
7208
7214
  );
7209
7215
  const w = t.slice(0, d.index), k = t.slice(xe.lastIndex);
7210
- if (ft(k, gn, ae.DEFAULT))
7216
+ if (ft(k, gn, re.DEFAULT))
7211
7217
  throw new Error(Kt);
7212
7218
  const v = +_ - 1;
7213
7219
  t = fa(
@@ -7237,9 +7243,9 @@ function ic(t, e) {
7237
7243
  break;
7238
7244
  }
7239
7245
  if (!w)
7240
- throw new Error(ne`Recursive \g cannot be used outside the referenced group "${a === "external" ? g : ne`\g<${g}&R=${b}>`}"`);
7246
+ throw new Error(ae`Recursive \g cannot be used outside the referenced group "${a === "external" ? g : ae`\g<${g}&R=${b}>`}"`);
7241
7247
  const k = l.get(g), v = ac(t, k);
7242
- if (o && ft(v, ne`${Lt}|\((?!\?)`, ae.DEFAULT))
7248
+ if (o && ft(v, ae`${Lt}|\((?!\?)`, re.DEFAULT))
7243
7249
  throw new Error(
7244
7250
  // When used in `external` mode by transpilers other than Regex+, backrefs might have
7245
7251
  // gone through conversion from named to numbered, so avoid a misleading error
@@ -7262,8 +7268,8 @@ function ic(t, e) {
7262
7268
  I,
7263
7269
  p
7264
7270
  );
7265
- const E = t.slice(0, k), $ = t.slice(k + v.length);
7266
- t = `${E}${ce}${$}`, xe.lastIndex += ce.length - f.length - A.length - O.length, i.forEach((T) => T.hasRecursedWithin = !0), c = !0;
7271
+ const x = t.slice(0, k), $ = t.slice(k + v.length);
7272
+ t = `${x}${ce}${$}`, xe.lastIndex += ce.length - f.length - A.length - O.length, i.forEach((T) => T.hasRecursedWithin = !0), c = !0;
7267
7273
  } else if (m)
7268
7274
  p++, l.set(String(p), xe.lastIndex), l.set(m, xe.lastIndex), i.push({
7269
7275
  num: p,
@@ -7291,7 +7297,7 @@ function fa(t, e, n, a, r, s, o) {
7291
7297
  const l = /* @__PURE__ */ new Set();
7292
7298
  a && br(t + e, Lt, ({ groups: { captureName: c } }) => {
7293
7299
  l.add(c);
7294
- }, ae.DEFAULT);
7300
+ }, re.DEFAULT);
7295
7301
  const i = [
7296
7302
  n,
7297
7303
  a ? l : null,
@@ -7308,7 +7314,7 @@ function ha(t, e, n, a, r, s, o) {
7308
7314
  const p = i(u);
7309
7315
  c += Rn(
7310
7316
  t,
7311
- ne`${_r}|\\k<(?<backref>[^>]+)>`,
7317
+ ae`${_r}|\\k<(?<backref>[^>]+)>`,
7312
7318
  ({ 0: d, groups: { captureName: f, unnamed: m, backref: _ } }) => {
7313
7319
  if (_ && a && !a.has(_))
7314
7320
  return d;
@@ -7317,9 +7323,9 @@ function ha(t, e, n, a, r, s, o) {
7317
7323
  const b = o + s.length + 1;
7318
7324
  return s.push(b), lc(r, b), m ? d : `(?<${f}${g}>`;
7319
7325
  }
7320
- return ne`\k<${_}${g}>`;
7326
+ return ae`\k<${_}${g}>`;
7321
7327
  },
7322
- ae.DEFAULT
7328
+ re.DEFAULT
7323
7329
  );
7324
7330
  }
7325
7331
  return c;
@@ -7331,7 +7337,7 @@ function lc(t, e) {
7331
7337
  function ga(t, e, n, a, r, s) {
7332
7338
  if (t.size && a) {
7333
7339
  let o = 0;
7334
- br(e, _r, () => o++, ae.DEFAULT);
7340
+ br(e, _r, () => o++, re.DEFAULT);
7335
7341
  const l = s - o + r, i = /* @__PURE__ */ new Map();
7336
7342
  return t.forEach((c, u) => {
7337
7343
  const p = (a - o * n) / n, d = o * n, f = u > l + o ? u + a : u, m = [];
@@ -7351,7 +7357,7 @@ function ga(t, e, n, a, r, s) {
7351
7357
  }
7352
7358
  return t;
7353
7359
  }
7354
- var U = String.fromCodePoint, C = String.raw, ge = {
7360
+ var U = String.fromCodePoint, C = String.raw, be = {
7355
7361
  flagGroups: (() => {
7356
7362
  try {
7357
7363
  new RegExp("(?i:)");
@@ -7369,7 +7375,7 @@ var U = String.fromCodePoint, C = String.raw, ge = {
7369
7375
  return !0;
7370
7376
  })()
7371
7377
  };
7372
- ge.bugFlagVLiteralHyphenIsRange = ge.unicodeSets ? (() => {
7378
+ be.bugFlagVLiteralHyphenIsRange = be.unicodeSets ? (() => {
7373
7379
  try {
7374
7380
  new RegExp(C`[\d\-a]`, "v");
7375
7381
  } catch {
@@ -7377,7 +7383,7 @@ ge.bugFlagVLiteralHyphenIsRange = ge.unicodeSets ? (() => {
7377
7383
  }
7378
7384
  return !1;
7379
7385
  })() : !1;
7380
- ge.bugNestedClassIgnoresNegation = ge.unicodeSets && new RegExp("[[^a]]", "v").test("a");
7386
+ be.bugNestedClassIgnoresNegation = be.unicodeSets && new RegExp("[[^a]]", "v").test("a");
7381
7387
  function It(t, { enable: e, disable: n }) {
7382
7388
  return {
7383
7389
  dotAll: !(n != null && n.dotAll) && !!(e != null && e.dotAll || t.dotAll),
@@ -7453,7 +7459,7 @@ function $r(t = {}) {
7453
7459
  ...t.rules
7454
7460
  }
7455
7461
  };
7456
- return e.target === "auto" && (e.target = ge.flagGroups ? "ES2025" : ge.unicodeSets ? "ES2024" : "ES2018"), e;
7462
+ return e.target === "auto" && (e.target = be.flagGroups ? "ES2025" : be.unicodeSets ? "ES2024" : "ES2018"), e;
7457
7463
  }
7458
7464
  var pc = "[ -\r ]", dc = /* @__PURE__ */ new Set([
7459
7465
  U(304),
@@ -7574,16 +7580,16 @@ XID_Start XIDS`.split(/\s/).map((t) => [Tt(t), t])
7574
7580
  [U(969), U(8486)]
7575
7581
  // ω, Ω (Ohm)
7576
7582
  ]), hc = new Map([
7577
- ye(453),
7578
- ye(456),
7579
- ye(459),
7580
- ye(498),
7583
+ _e(453),
7584
+ _e(456),
7585
+ _e(459),
7586
+ _e(498),
7581
7587
  ...Jt(8072, 8079),
7582
7588
  ...Jt(8088, 8095),
7583
7589
  ...Jt(8104, 8111),
7584
- ye(8124),
7585
- ye(8140),
7586
- ye(8188)
7590
+ _e(8124),
7591
+ _e(8140),
7592
+ _e(8188)
7587
7593
  ]), gc = /* @__PURE__ */ new Map([
7588
7594
  ["alnum", C`[\p{Alpha}\p{Nd}]`],
7589
7595
  ["alpha", C`\p{Alpha}`],
@@ -7607,12 +7613,12 @@ function bc(t, e) {
7607
7613
  n.push(a);
7608
7614
  return n;
7609
7615
  }
7610
- function ye(t) {
7616
+ function _e(t) {
7611
7617
  const e = U(t);
7612
7618
  return [e.toLowerCase(), e];
7613
7619
  }
7614
7620
  function Jt(t, e) {
7615
- return bc(t, e).map((n) => ye(n));
7621
+ return bc(t, e).map((n) => _e(n));
7616
7622
  }
7617
7623
  var kr = /* @__PURE__ */ new Set([
7618
7624
  "Lower",
@@ -7743,7 +7749,7 @@ var _c = {
7743
7749
  else {
7744
7750
  if (p)
7745
7751
  throw new Error(C`Uses "\G" in a way that requires a subclass`);
7746
- o(_e(mn("string_start"), e)), l.strategy = "clip_search";
7752
+ o($e(mn("string_start"), e)), l.strategy = "clip_search";
7747
7753
  }
7748
7754
  }
7749
7755
  else if (!(i === "string_end" || i === "string_start")) if (i === "string_end_newline")
@@ -7773,7 +7779,7 @@ var _c = {
7773
7779
  CharacterSet({ node: t, parent: e, replaceWith: n }, { accuracy: a, minTargetEs2024: r, digitIsAscii: s, spaceIsAscii: o, wordIsAscii: l }) {
7774
7780
  const { kind: i, negate: c, value: u } = t;
7775
7781
  if (s && (i === "digit" || u === "digit")) {
7776
- n(_e(hn("digit", { negate: c }), e));
7782
+ n($e(hn("digit", { negate: c }), e));
7777
7783
  return;
7778
7784
  }
7779
7785
  if (o && (i === "space" || u === "space")) {
@@ -7781,13 +7787,13 @@ var _c = {
7781
7787
  return;
7782
7788
  }
7783
7789
  if (l && (i === "word" || u === "word")) {
7784
- n(_e(hn("word", { negate: c }), e));
7790
+ n($e(hn("word", { negate: c }), e));
7785
7791
  return;
7786
7792
  }
7787
7793
  if (i === "any")
7788
- n(_e(Ge("Any"), e));
7794
+ n($e(Ge("Any"), e));
7789
7795
  else if (i === "digit")
7790
- n(_e(Ge("Nd", { negate: c }), e));
7796
+ n($e(Ge("Nd", { negate: c }), e));
7791
7797
  else if (i !== "dot") if (i === "text_segment") {
7792
7798
  if (a === "strict")
7793
7799
  throw new Error(C`Use of "\X" requires non-strict accuracy`);
@@ -7799,7 +7805,7 @@ var _c = {
7799
7805
  { skipPropertyNameValidation: !0 }
7800
7806
  ), e));
7801
7807
  } else if (i === "hex")
7802
- n(_e(Ge("AHex", { negate: c }), e));
7808
+ n($e(Ge("AHex", { negate: c }), e));
7803
7809
  else if (i === "newline")
7804
7810
  n(G(de(c ? `[^
7805
7811
  ]` : `(?>\r
@@ -7819,7 +7825,7 @@ var _c = {
7819
7825
  else if (i === "property")
7820
7826
  Nn.has(Tt(u)) || (t.key = "sc");
7821
7827
  else if (i === "space")
7822
- n(_e(Ge("space", { negate: c }), e));
7828
+ n($e(Ge("space", { negate: c }), e));
7823
7829
  else if (i === "word")
7824
7830
  n(G(en(de(pe), c), e));
7825
7831
  else
@@ -7957,7 +7963,7 @@ var _c = {
7957
7963
  }) {
7958
7964
  const c = r.get(t);
7959
7965
  if (c && l.has(t.number)) {
7960
- const p = _e(ya(t.number), e);
7966
+ const p = $e(ya(t.number), e);
7961
7967
  i.set(p, l.get(t.number)), n(p);
7962
7968
  return;
7963
7969
  }
@@ -8196,7 +8202,7 @@ function de(t, e) {
8196
8202
  function en(t, e) {
8197
8203
  return t.negate = e, t;
8198
8204
  }
8199
- function _e(t, e) {
8205
+ function $e(t, e) {
8200
8206
  return t.parent = e, t;
8201
8207
  }
8202
8208
  function G(t, e) {
@@ -8348,12 +8354,12 @@ var Rc = {
8348
8354
  let { body: o } = t;
8349
8355
  if (a === "intersection" && !e.useFlagV)
8350
8356
  throw new Error("Use of class intersection requires min target ES2024");
8351
- ge.bugFlagVLiteralHyphenIsRange && e.useFlagV && o.some(wa) && (o = [Bt(45), ...o.filter((c) => !wa(c))]);
8357
+ be.bugFlagVLiteralHyphenIsRange && e.useFlagV && o.some(wa) && (o = [Bt(45), ...o.filter((c) => !wa(c))]);
8352
8358
  const l = () => `[${r ? "^" : ""}${o.map(n).join(a === "intersection" ? "&&" : "")}]`;
8353
8359
  if (!e.inCharClass) {
8354
8360
  if (
8355
8361
  // Already established `kind !== 'intersection'` if `!state.useFlagV`; don't check again
8356
- (!e.useFlagV || ge.bugNestedClassIgnoresNegation) && !r
8362
+ (!e.useFlagV || be.bugNestedClassIgnoresNegation) && !r
8357
8363
  ) {
8358
8364
  const u = o.filter(
8359
8365
  (p) => p.type === "CharacterClass" && p.kind === "union" && p.negate
@@ -8374,7 +8380,7 @@ var Rc = {
8374
8380
  if (
8375
8381
  // Already established that the parent is a char class via `inCharClass`; don't check again
8376
8382
  a === "union" && !r && i && // Allows many nested classes to work with `target` ES2018 which doesn't support nesting
8377
- ((!e.useFlagV || !e.verbose) && s.kind === "union" && !(ge.bugFlagVLiteralHyphenIsRange && e.useFlagV) || !e.verbose && s.kind === "intersection" && // JS doesn't allow intersection with union or ranges
8383
+ ((!e.useFlagV || !e.verbose) && s.kind === "union" && !(be.bugFlagVLiteralHyphenIsRange && e.useFlagV) || !e.verbose && s.kind === "intersection" && // JS doesn't allow intersection with union or ranges
8378
8384
  o.length === 1 && i.type !== "CharacterClassRange")
8379
8385
  )
8380
8386
  return o.map(n).join("");
@@ -8604,7 +8610,7 @@ function Gc(t) {
8604
8610
  function wa({ type: t, value: e }) {
8605
8611
  return t === "Character" && e === 45;
8606
8612
  }
8607
- var we, me, Ne, ke, Pe, rt, yn, ve, Fc = (ve = class extends RegExp {
8613
+ var we, fe, Ne, ke, Pe, rt, yn, ve, Fc = (ve = class extends RegExp {
8608
8614
  /**
8609
8615
  @overload
8610
8616
  @param {string} pattern
@@ -8626,7 +8632,7 @@ var we, me, Ne, ke, Pe, rt, yn, ve, Fc = (ve = class extends RegExp {
8626
8632
  Ce(this, we, /* @__PURE__ */ new Map()), /**
8627
8633
  @type {RegExp | EmulatedRegExp | null}
8628
8634
  */
8629
- Ce(this, me, null), /**
8635
+ Ce(this, fe, null), /**
8630
8636
  @type {string}
8631
8637
  */
8632
8638
  Ce(this, Ne), /**
@@ -8645,7 +8651,7 @@ var we, me, Ne, ke, Pe, rt, yn, ve, Fc = (ve = class extends RegExp {
8645
8651
  if (r)
8646
8652
  throw new Error("Cannot provide options when copying a regexp");
8647
8653
  const o = n;
8648
- e(o, a), re(this, Ne, o.source), o instanceof ve && (re(this, we, K(o, we)), re(this, ke, K(o, ke)), re(this, Pe, K(o, Pe)), this.rawOptions = o.rawOptions);
8654
+ e(o, a), se(this, Ne, o.source), o instanceof ve && (se(this, we, K(o, we)), se(this, ke, K(o, ke)), se(this, Pe, K(o, Pe)), this.rawOptions = o.rawOptions);
8649
8655
  } else {
8650
8656
  const o = {
8651
8657
  hiddenCaptures: [],
@@ -8653,9 +8659,9 @@ var we, me, Ne, ke, Pe, rt, yn, ve, Fc = (ve = class extends RegExp {
8653
8659
  transfers: [],
8654
8660
  ...r
8655
8661
  };
8656
- e(s ? "" : n, a), re(this, Ne, n), re(this, we, Uc(o.hiddenCaptures, o.transfers)), re(this, Pe, o.strategy), this.rawOptions = r ?? {};
8662
+ e(s ? "" : n, a), se(this, Ne, n), se(this, we, Uc(o.hiddenCaptures, o.transfers)), se(this, Pe, o.strategy), this.rawOptions = r ?? {};
8657
8663
  }
8658
- s || re(this, me, this);
8664
+ s || se(this, fe, this);
8659
8665
  }
8660
8666
  // Override the getter with one that works with lazy-compiled regexes
8661
8667
  get source() {
@@ -8668,9 +8674,9 @@ var we, me, Ne, ke, Pe, rt, yn, ve, Fc = (ve = class extends RegExp {
8668
8674
  @returns {RegExpExecArray?}
8669
8675
  */
8670
8676
  exec(n) {
8671
- if (!K(this, me)) {
8677
+ if (!K(this, fe)) {
8672
8678
  const { lazyCompile: s, ...o } = this.rawOptions;
8673
- re(this, me, new ve(K(this, Ne), this.flags, o));
8679
+ se(this, fe, new ve(K(this, Ne), this.flags, o));
8674
8680
  }
8675
8681
  const a = this.global || this.sticky, r = this.lastIndex;
8676
8682
  if (K(this, Pe) === "clip_search" && a && r) {
@@ -8680,15 +8686,15 @@ var we, me, Ne, ke, Pe, rt, yn, ve, Fc = (ve = class extends RegExp {
8680
8686
  }
8681
8687
  return Ot(this, rt, yn).call(this, n);
8682
8688
  }
8683
- }, we = new WeakMap(), me = new WeakMap(), Ne = new WeakMap(), ke = new WeakMap(), Pe = new WeakMap(), rt = new WeakSet(), /**
8689
+ }, we = new WeakMap(), fe = new WeakMap(), Ne = new WeakMap(), ke = new WeakMap(), Pe = new WeakMap(), rt = new WeakSet(), /**
8684
8690
  Adds support for hidden and transfer captures.
8685
8691
  @param {string} str
8686
8692
  @returns
8687
8693
  */
8688
8694
  yn = function(n) {
8689
- K(this, me).lastIndex = this.lastIndex;
8690
- const a = Ln(ve.prototype, this, "exec").call(K(this, me), n);
8691
- if (this.lastIndex = K(this, me).lastIndex, !a || !K(this, we).size)
8695
+ K(this, fe).lastIndex = this.lastIndex;
8696
+ const a = Ln(ve.prototype, this, "exec").call(K(this, fe), n);
8697
+ if (this.lastIndex = K(this, fe).lastIndex, !a || !K(this, we).size)
8692
8698
  return a;
8693
8699
  const r = [...a];
8694
8700
  a.length = 1;
@@ -8702,7 +8708,7 @@ yn = function(n) {
8702
8708
  if (!u)
8703
8709
  throw new Error(`Invalid capture transfer to "${u}"`);
8704
8710
  if (a[u] = r[l], this.hasIndices && (a.indices[u] = s[l]), a.groups) {
8705
- K(this, ke) || re(this, ke, zc(this.source));
8711
+ K(this, ke) || se(this, ke, zc(this.source));
8706
8712
  const p = K(this, ke).get(c);
8707
8713
  p && (a.groups[p] = r[l], this.hasIndices && (a.indices.groups[p] = s[l]));
8708
8714
  }
@@ -9001,7 +9007,7 @@ const Zc = { class: "relative float-left min-w-full" }, Kc = ["innerHTML"], Jc =
9001
9007
  }`);
9002
9008
  }), (n, a) => (M(), J("div", Qc, [
9003
9009
  N("div", Yc, [
9004
- S(Ur(Jc), {
9010
+ E(Ur(Jc), {
9005
9011
  modelValue: e.value,
9006
9012
  "onUpdate:modelValue": a[0] || (a[0] = (r) => e.value = r)
9007
9013
  }, null, 8, ["modelValue"])