@sourcegraph/amp 0.0.1748476906-g715cf0 → 0.0.1748491454-gdefe97
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/amp.js +2 -2
- package/dist/{color-BzIjJtnB.js → color-Bs5UNAQf.js} +147 -146
- package/dist/color-Bs5UNAQf.js.map +1 -0
- package/dist/{create_file.node-DChD1DjB.js → create_file.node-DhqtPKLL.js} +2 -2
- package/dist/{create_file.node-DChD1DjB.js.map → create_file.node-DhqtPKLL.js.map} +1 -1
- package/dist/{edit_file.node-B1i7Irj_.js → edit_file.node-_jUhb0Ej.js} +3 -3
- package/dist/{edit_file.node-B1i7Irj_.js.map → edit_file.node-_jUhb0Ej.js.map} +1 -1
- package/dist/{executable-BQxnlFId.js → executable-De4-Iq-q.js} +2 -2
- package/dist/{executable-BQxnlFId.js.map → executable-De4-Iq-q.js.map} +1 -1
- package/dist/{files-CkJlqXKo.js → files-Cahfcbk6.js} +2 -2
- package/dist/{files-CkJlqXKo.js.map → files-Cahfcbk6.js.map} +1 -1
- package/dist/{glob.node-1g9lAvYU.js → glob.node-DMC-mbKX.js} +3 -3
- package/dist/{glob.node-1g9lAvYU.js.map → glob.node-DMC-mbKX.js.map} +1 -1
- package/dist/{list_directory.node-BoNGYthN.js → list_directory.node-BiNTY-zJ.js} +2 -2
- package/dist/{list_directory.node-BoNGYthN.js.map → list_directory.node-BiNTY-zJ.js.map} +1 -1
- package/dist/{load-profile-DFLkW6WV.js → load-profile-Gn3gm8Ha.js} +2 -2
- package/dist/{load-profile-DFLkW6WV.js.map → load-profile-Gn3gm8Ha.js.map} +1 -1
- package/dist/{main-Cj-TDfxo.js → main-D2HRoJ1Y.js} +15 -15
- package/dist/{main-Cj-TDfxo.js.map → main-D2HRoJ1Y.js.map} +1 -1
- package/dist/{node-bkYFEYK7.js → node-B-VoRsW5.js} +2 -2
- package/dist/{node-bkYFEYK7.js.map → node-B-VoRsW5.js.map} +1 -1
- package/dist/{node-BoOCJ7th.js → node-BeQHJ-gW.js} +2 -2
- package/dist/{node-BoOCJ7th.js.map → node-BeQHJ-gW.js.map} +1 -1
- package/dist/{node-BMyzDv_R.js → node-BuLml2yb.js} +3 -3
- package/dist/{node-BMyzDv_R.js.map → node-BuLml2yb.js.map} +1 -1
- package/dist/{node-CJv9CDhh.js → node-CD0uLwWO.js} +3 -3
- package/dist/{node-CJv9CDhh.js.map → node-CD0uLwWO.js.map} +1 -1
- package/dist/{node-61NQS4s2.js → node-CQ8EKnFW.js} +3 -3
- package/dist/{node-61NQS4s2.js.map → node-CQ8EKnFW.js.map} +1 -1
- package/dist/{node-C8RVGYJn.js → node-IbYXJXx-.js} +3 -3
- package/dist/{node-C8RVGYJn.js.map → node-IbYXJXx-.js.map} +1 -1
- package/dist/{read_file.node-wkKQeHGb.js → read_file.node-D_famz3I.js} +2 -2
- package/dist/{read_file.node-wkKQeHGb.js.map → read_file.node-D_famz3I.js.map} +1 -1
- package/dist/{stdio-DQq9n086.js → stdio-Dj_ddrN9.js} +3 -3
- package/dist/{stdio-DQq9n086.js.map → stdio-Dj_ddrN9.js.map} +1 -1
- package/dist/storybook.js +1 -1
- package/dist/{undo_edit.node-zOzdRUqj.js → undo_edit.node-C8sU5262.js} +2 -2
- package/dist/{undo_edit.node-zOzdRUqj.js.map → undo_edit.node-C8sU5262.js.map} +1 -1
- package/package.json +1 -1
- package/dist/color-BzIjJtnB.js.map +0 -1
@@ -26,7 +26,7 @@ let mn = fS;
|
|
26
26
|
function cZ(t) {
|
27
27
|
mn = t;
|
28
28
|
}
|
29
|
-
const
|
29
|
+
const Sr = {
|
30
30
|
error: (t, ...e) => mn.error(t, ...e),
|
31
31
|
warn: (t, ...e) => mn.warn(t, ...e),
|
32
32
|
info: (t, ...e) => mn.info(t, ...e),
|
@@ -2533,7 +2533,7 @@ const CT = (t) => {
|
|
2533
2533
|
}
|
2534
2534
|
}), e;
|
2535
2535
|
}, DE = (t) => JSON.parse(AT(RT(gn(CT(t)))));
|
2536
|
-
var er, Br, Nn, ha, On, In, Sa, vn,
|
2536
|
+
var er, Br, Nn, ha, On, In, Sa, vn, Or, wn, Ta, ba, _n, ya, Da, Oi, q_, Ii, vi, wi, ki, $_;
|
2537
2537
|
const V_ = "__json_buf";
|
2538
2538
|
class Ka {
|
2539
2539
|
constructor() {
|
@@ -2541,7 +2541,7 @@ class Ka {
|
|
2541
2541
|
}), On.set(this, () => {
|
2542
2542
|
}), In.set(this, void 0), Sa.set(this, () => {
|
2543
2543
|
}), vn.set(this, () => {
|
2544
|
-
}),
|
2544
|
+
}), Or.set(this, {}), wn.set(this, !1), Ta.set(this, !1), ba.set(this, !1), _n.set(this, !1), ya.set(this, void 0), Da.set(this, void 0), Ii.set(this, (e) => {
|
2545
2545
|
if (ue(this, Ta, !0), Jn(e) && (e = new nr()), e instanceof nr)
|
2546
2546
|
return ue(this, ba, !0), this._emit("abort", e);
|
2547
2547
|
if (e instanceof fe)
|
@@ -2647,7 +2647,7 @@ class Ka {
|
|
2647
2647
|
* @returns this MessageStream, so that calls can be chained
|
2648
2648
|
*/
|
2649
2649
|
on(e, r) {
|
2650
|
-
return (Y(this,
|
2650
|
+
return (Y(this, Or, "f")[e] || (Y(this, Or, "f")[e] = [])).push({ listener: r }), this;
|
2651
2651
|
}
|
2652
2652
|
/**
|
2653
2653
|
* Removes the specified listener from the listener array for the event.
|
@@ -2657,7 +2657,7 @@ class Ka {
|
|
2657
2657
|
* @returns this MessageStream, so that calls can be chained
|
2658
2658
|
*/
|
2659
2659
|
off(e, r) {
|
2660
|
-
const n = Y(this,
|
2660
|
+
const n = Y(this, Or, "f")[e];
|
2661
2661
|
if (!n)
|
2662
2662
|
return this;
|
2663
2663
|
const a = n.findIndex((s) => s.listener === r);
|
@@ -2669,7 +2669,7 @@ class Ka {
|
|
2669
2669
|
* @returns this MessageStream, so that calls can be chained
|
2670
2670
|
*/
|
2671
2671
|
once(e, r) {
|
2672
|
-
return (Y(this,
|
2672
|
+
return (Y(this, Or, "f")[e] || (Y(this, Or, "f")[e] = [])).push({ listener: r, once: !0 }), this;
|
2673
2673
|
}
|
2674
2674
|
/**
|
2675
2675
|
* This is similar to `.once()`, but returns a Promise that resolves the next time
|
@@ -2712,8 +2712,8 @@ class Ka {
|
|
2712
2712
|
if (Y(this, wn, "f"))
|
2713
2713
|
return;
|
2714
2714
|
e === "end" && (ue(this, wn, !0), Y(this, Sa, "f").call(this));
|
2715
|
-
const n = Y(this,
|
2716
|
-
if (n && (Y(this,
|
2715
|
+
const n = Y(this, Or, "f")[e];
|
2716
|
+
if (n && (Y(this, Or, "f")[e] = n.filter((a) => !a.once), n.forEach(({ listener: a }) => a(...r))), e === "abort") {
|
2717
2717
|
const a = r[0];
|
2718
2718
|
!Y(this, _n, "f") && !n?.length && Promise.reject(a), Y(this, On, "f").call(this, a), Y(this, vn, "f").call(this, a), this._emit("end");
|
2719
2719
|
return;
|
@@ -2736,7 +2736,7 @@ class Ka {
|
|
2736
2736
|
throw new nr();
|
2737
2737
|
Y(this, er, "m", ki).call(this);
|
2738
2738
|
}
|
2739
|
-
[(Br = /* @__PURE__ */ new WeakMap(), Nn = /* @__PURE__ */ new WeakMap(), ha = /* @__PURE__ */ new WeakMap(), On = /* @__PURE__ */ new WeakMap(), In = /* @__PURE__ */ new WeakMap(), Sa = /* @__PURE__ */ new WeakMap(), vn = /* @__PURE__ */ new WeakMap(),
|
2739
|
+
[(Br = /* @__PURE__ */ new WeakMap(), Nn = /* @__PURE__ */ new WeakMap(), ha = /* @__PURE__ */ new WeakMap(), On = /* @__PURE__ */ new WeakMap(), In = /* @__PURE__ */ new WeakMap(), Sa = /* @__PURE__ */ new WeakMap(), vn = /* @__PURE__ */ new WeakMap(), Or = /* @__PURE__ */ new WeakMap(), wn = /* @__PURE__ */ new WeakMap(), Ta = /* @__PURE__ */ new WeakMap(), ba = /* @__PURE__ */ new WeakMap(), _n = /* @__PURE__ */ new WeakMap(), ya = /* @__PURE__ */ new WeakMap(), Da = /* @__PURE__ */ new WeakMap(), Ii = /* @__PURE__ */ new WeakMap(), er = /* @__PURE__ */ new WeakSet(), Oi = function() {
|
2740
2740
|
if (this.receivedMessages.length === 0)
|
2741
2741
|
throw new fe("stream ended without producing a Message with role=assistant");
|
2742
2742
|
return this.receivedMessages.at(-1);
|
@@ -2986,7 +2986,7 @@ class RE extends Mr {
|
|
2986
2986
|
});
|
2987
2987
|
}
|
2988
2988
|
}
|
2989
|
-
var tr, Ur, kn, Ca, Mn, xn, Ra, Ln,
|
2989
|
+
var tr, Ur, kn, Ca, Mn, xn, Ra, Ln, Ir, Pn, Aa, Na, dn, Oa, Ia, Mi, K_, xi, Li, Pi, Fi, Q_;
|
2990
2990
|
const j_ = "__json_buf";
|
2991
2991
|
class Qa {
|
2992
2992
|
constructor() {
|
@@ -2994,7 +2994,7 @@ class Qa {
|
|
2994
2994
|
}), Mn.set(this, () => {
|
2995
2995
|
}), xn.set(this, void 0), Ra.set(this, () => {
|
2996
2996
|
}), Ln.set(this, () => {
|
2997
|
-
}),
|
2997
|
+
}), Ir.set(this, {}), Pn.set(this, !1), Aa.set(this, !1), Na.set(this, !1), dn.set(this, !1), Oa.set(this, void 0), Ia.set(this, void 0), xi.set(this, (e) => {
|
2998
2998
|
if (ue(this, Aa, !0), Jn(e) && (e = new nr()), e instanceof nr)
|
2999
2999
|
return ue(this, Na, !0), this._emit("abort", e);
|
3000
3000
|
if (e instanceof fe)
|
@@ -3100,7 +3100,7 @@ class Qa {
|
|
3100
3100
|
* @returns this MessageStream, so that calls can be chained
|
3101
3101
|
*/
|
3102
3102
|
on(e, r) {
|
3103
|
-
return (Y(this,
|
3103
|
+
return (Y(this, Ir, "f")[e] || (Y(this, Ir, "f")[e] = [])).push({ listener: r }), this;
|
3104
3104
|
}
|
3105
3105
|
/**
|
3106
3106
|
* Removes the specified listener from the listener array for the event.
|
@@ -3110,7 +3110,7 @@ class Qa {
|
|
3110
3110
|
* @returns this MessageStream, so that calls can be chained
|
3111
3111
|
*/
|
3112
3112
|
off(e, r) {
|
3113
|
-
const n = Y(this,
|
3113
|
+
const n = Y(this, Ir, "f")[e];
|
3114
3114
|
if (!n)
|
3115
3115
|
return this;
|
3116
3116
|
const a = n.findIndex((s) => s.listener === r);
|
@@ -3122,7 +3122,7 @@ class Qa {
|
|
3122
3122
|
* @returns this MessageStream, so that calls can be chained
|
3123
3123
|
*/
|
3124
3124
|
once(e, r) {
|
3125
|
-
return (Y(this,
|
3125
|
+
return (Y(this, Ir, "f")[e] || (Y(this, Ir, "f")[e] = [])).push({ listener: r, once: !0 }), this;
|
3126
3126
|
}
|
3127
3127
|
/**
|
3128
3128
|
* This is similar to `.once()`, but returns a Promise that resolves the next time
|
@@ -3165,8 +3165,8 @@ class Qa {
|
|
3165
3165
|
if (Y(this, Pn, "f"))
|
3166
3166
|
return;
|
3167
3167
|
e === "end" && (ue(this, Pn, !0), Y(this, Ra, "f").call(this));
|
3168
|
-
const n = Y(this,
|
3169
|
-
if (n && (Y(this,
|
3168
|
+
const n = Y(this, Ir, "f")[e];
|
3169
|
+
if (n && (Y(this, Ir, "f")[e] = n.filter((a) => !a.once), n.forEach(({ listener: a }) => a(...r))), e === "abort") {
|
3170
3170
|
const a = r[0];
|
3171
3171
|
!Y(this, dn, "f") && !n?.length && Promise.reject(a), Y(this, Mn, "f").call(this, a), Y(this, Ln, "f").call(this, a), this._emit("end");
|
3172
3172
|
return;
|
@@ -3189,7 +3189,7 @@ class Qa {
|
|
3189
3189
|
throw new nr();
|
3190
3190
|
Y(this, tr, "m", Fi).call(this);
|
3191
3191
|
}
|
3192
|
-
[(Ur = /* @__PURE__ */ new WeakMap(), kn = /* @__PURE__ */ new WeakMap(), Ca = /* @__PURE__ */ new WeakMap(), Mn = /* @__PURE__ */ new WeakMap(), xn = /* @__PURE__ */ new WeakMap(), Ra = /* @__PURE__ */ new WeakMap(), Ln = /* @__PURE__ */ new WeakMap(),
|
3192
|
+
[(Ur = /* @__PURE__ */ new WeakMap(), kn = /* @__PURE__ */ new WeakMap(), Ca = /* @__PURE__ */ new WeakMap(), Mn = /* @__PURE__ */ new WeakMap(), xn = /* @__PURE__ */ new WeakMap(), Ra = /* @__PURE__ */ new WeakMap(), Ln = /* @__PURE__ */ new WeakMap(), Ir = /* @__PURE__ */ new WeakMap(), Pn = /* @__PURE__ */ new WeakMap(), Aa = /* @__PURE__ */ new WeakMap(), Na = /* @__PURE__ */ new WeakMap(), dn = /* @__PURE__ */ new WeakMap(), Oa = /* @__PURE__ */ new WeakMap(), Ia = /* @__PURE__ */ new WeakMap(), xi = /* @__PURE__ */ new WeakMap(), tr = /* @__PURE__ */ new WeakSet(), Mi = function() {
|
3193
3193
|
if (this.receivedMessages.length === 0)
|
3194
3194
|
throw new fe("stream ended without producing a Message with role=assistant");
|
3195
3195
|
return this.receivedMessages.at(-1);
|
@@ -4240,9 +4240,9 @@ async function bu(t, e, r) {
|
|
4240
4240
|
throw n;
|
4241
4241
|
}
|
4242
4242
|
}
|
4243
|
-
function
|
4243
|
+
function Tr() {
|
4244
4244
|
}
|
4245
|
-
|
4245
|
+
Tr.prototype = {
|
4246
4246
|
diff: function(e, r) {
|
4247
4247
|
var n, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, s = a.callback;
|
4248
4248
|
typeof a == "function" && (s = a, a = {});
|
@@ -4432,7 +4432,7 @@ function YT(t, e) {
|
|
4432
4432
|
}
|
4433
4433
|
return s;
|
4434
4434
|
}
|
4435
|
-
var Xa = "a-zA-Z0-9_\\u{C0}-\\u{FF}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}", HT = new RegExp("[".concat(Xa, "]+|\\s+|[^").concat(Xa, "]"), "ug"), fi = new
|
4435
|
+
var Xa = "a-zA-Z0-9_\\u{C0}-\\u{FF}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}", HT = new RegExp("[".concat(Xa, "]+|\\s+|[^").concat(Xa, "]"), "ug"), fi = new Tr();
|
4436
4436
|
fi.equals = function(t, e, r) {
|
4437
4437
|
return r.ignoreCase && (t = t.toLowerCase(), e = e.toLowerCase()), t.trim() === e.trim();
|
4438
4438
|
};
|
@@ -4490,12 +4490,12 @@ function id(t, e, r, n) {
|
|
4490
4490
|
e.value = Fn(e.value, N);
|
4491
4491
|
}
|
4492
4492
|
}
|
4493
|
-
var qT = new
|
4493
|
+
var qT = new Tr();
|
4494
4494
|
qT.tokenize = function(t) {
|
4495
4495
|
var e = new RegExp("(\\r?\\n)|[".concat(Xa, "]+|[^\\S\\n\\r]+|[^").concat(Xa, "]"), "ug");
|
4496
4496
|
return t.match(e) || [];
|
4497
4497
|
};
|
4498
|
-
var gi = new
|
4498
|
+
var gi = new Tr();
|
4499
4499
|
gi.tokenize = function(t, e) {
|
4500
4500
|
e.stripTrailingCr && (t = t.replace(/\r\n/g, `
|
4501
4501
|
`));
|
@@ -4512,16 +4512,16 @@ gi.equals = function(t, e, r) {
|
|
4512
4512
|
`)) && (t = t.trim()), (!r.newlineIsToken || !e.includes(`
|
4513
4513
|
`)) && (e = e.trim())) : r.ignoreNewlineAtEof && !r.newlineIsToken && (t.endsWith(`
|
4514
4514
|
`) && (t = t.slice(0, -1)), e.endsWith(`
|
4515
|
-
`) && (e = e.slice(0, -1))),
|
4515
|
+
`) && (e = e.slice(0, -1))), Tr.prototype.equals.call(this, t, e, r);
|
4516
4516
|
};
|
4517
4517
|
function sd(t, e, r) {
|
4518
4518
|
return gi.diff(t, e, r);
|
4519
4519
|
}
|
4520
|
-
var $T = new
|
4520
|
+
var $T = new Tr();
|
4521
4521
|
$T.tokenize = function(t) {
|
4522
4522
|
return t.split(/(\S.+?[.!?])(?=\s+|$)/);
|
4523
4523
|
};
|
4524
|
-
var VT = new
|
4524
|
+
var VT = new Tr();
|
4525
4525
|
VT.tokenize = function(t) {
|
4526
4526
|
return t.split(/([{}:;,]|\s+)/);
|
4527
4527
|
};
|
@@ -4602,7 +4602,7 @@ function JT() {
|
|
4602
4602
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
4603
4603
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
4604
4604
|
}
|
4605
|
-
var ta = new
|
4605
|
+
var ta = new Tr();
|
4606
4606
|
ta.useLongestToken = !0;
|
4607
4607
|
ta.tokenize = gi.tokenize;
|
4608
4608
|
ta.castInput = function(t, e) {
|
@@ -4612,7 +4612,7 @@ ta.castInput = function(t, e) {
|
|
4612
4612
|
return typeof t == "string" ? t : JSON.stringify(Au(t, null, null, a), a, " ");
|
4613
4613
|
};
|
4614
4614
|
ta.equals = function(t, e, r) {
|
4615
|
-
return
|
4615
|
+
return Tr.prototype.equals.call(ta, t.replace(/,([\r\n])/g, "$1"), e.replace(/,([\r\n])/g, "$1"), r);
|
4616
4616
|
};
|
4617
4617
|
function Au(t, e, r, n, a) {
|
4618
4618
|
e = e || [], r = r || [], n && (t = n(a, t));
|
@@ -4638,7 +4638,7 @@ function Au(t, e, r, n, a) {
|
|
4638
4638
|
i = t;
|
4639
4639
|
return i;
|
4640
4640
|
}
|
4641
|
-
var Nu = new
|
4641
|
+
var Nu = new Tr();
|
4642
4642
|
Nu.tokenize = function(t) {
|
4643
4643
|
return t.slice();
|
4644
4644
|
};
|
@@ -5111,11 +5111,11 @@ function Ub(t) {
|
|
5111
5111
|
const zb = (t) => {
|
5112
5112
|
const e = t ? `[\\s\\S]{${t?.minimum ?? 0},${t?.maximum ?? ""}}` : "[\\s\\S]*";
|
5113
5113
|
return new RegExp(`^${e}$`);
|
5114
|
-
}, Gb = /^[^A-Z]*$/, Yb = /^[^a-z]*$/,
|
5114
|
+
}, Gb = /^[^A-Z]*$/, Yb = /^[^a-z]*$/, br = /* @__PURE__ */ z("$ZodCheck", (t, e) => {
|
5115
5115
|
var r;
|
5116
5116
|
t._zod ?? (t._zod = {}), t._zod.def = e, (r = t._zod).onattach ?? (r.onattach = []);
|
5117
5117
|
}), Hb = /* @__PURE__ */ z("$ZodCheckMaxLength", (t, e) => {
|
5118
|
-
|
5118
|
+
br.init(t, e), t._zod.when = (r) => {
|
5119
5119
|
const n = r.value;
|
5120
5120
|
return !Ju(n) && n.length !== void 0;
|
5121
5121
|
}, t._zod.onattach.push((r) => {
|
@@ -5136,7 +5136,7 @@ const zb = (t) => {
|
|
5136
5136
|
});
|
5137
5137
|
};
|
5138
5138
|
}), qb = /* @__PURE__ */ z("$ZodCheckMinLength", (t, e) => {
|
5139
|
-
|
5139
|
+
br.init(t, e), t._zod.when = (r) => {
|
5140
5140
|
const n = r.value;
|
5141
5141
|
return !Ju(n) && n.length !== void 0;
|
5142
5142
|
}, t._zod.onattach.push((r) => {
|
@@ -5157,7 +5157,7 @@ const zb = (t) => {
|
|
5157
5157
|
});
|
5158
5158
|
};
|
5159
5159
|
}), $b = /* @__PURE__ */ z("$ZodCheckLengthEquals", (t, e) => {
|
5160
|
-
|
5160
|
+
br.init(t, e), t._zod.when = (r) => {
|
5161
5161
|
const n = r.value;
|
5162
5162
|
return !Ju(n) && n.length !== void 0;
|
5163
5163
|
}, t._zod.onattach.push((r) => {
|
@@ -5178,7 +5178,7 @@ const zb = (t) => {
|
|
5178
5178
|
};
|
5179
5179
|
}), Ei = /* @__PURE__ */ z("$ZodCheckStringFormat", (t, e) => {
|
5180
5180
|
var r;
|
5181
|
-
|
5181
|
+
br.init(t, e), t._zod.onattach.push((n) => {
|
5182
5182
|
n._zod.bag.format = e.format, e.pattern && (n._zod.bag.pattern = e.pattern);
|
5183
5183
|
}), (r = t._zod).check ?? (r.check = (n) => {
|
5184
5184
|
if (!e.pattern)
|
@@ -5210,7 +5210,7 @@ const zb = (t) => {
|
|
5210
5210
|
}), Kb = /* @__PURE__ */ z("$ZodCheckUpperCase", (t, e) => {
|
5211
5211
|
e.pattern ?? (e.pattern = Yb), Ei.init(t, e);
|
5212
5212
|
}), Qb = /* @__PURE__ */ z("$ZodCheckIncludes", (t, e) => {
|
5213
|
-
|
5213
|
+
br.init(t, e);
|
5214
5214
|
const r = new RegExp(na(e.includes));
|
5215
5215
|
e.pattern = r, t._zod.onattach.push((n) => {
|
5216
5216
|
n._zod.bag.pattern = r;
|
@@ -5226,7 +5226,7 @@ const zb = (t) => {
|
|
5226
5226
|
});
|
5227
5227
|
};
|
5228
5228
|
}), jb = /* @__PURE__ */ z("$ZodCheckStartsWith", (t, e) => {
|
5229
|
-
|
5229
|
+
br.init(t, e);
|
5230
5230
|
const r = new RegExp(`^${na(e.prefix)}.*`);
|
5231
5231
|
e.pattern ?? (e.pattern = r), t._zod.onattach.push((n) => {
|
5232
5232
|
n._zod.bag.pattern = r;
|
@@ -5242,7 +5242,7 @@ const zb = (t) => {
|
|
5242
5242
|
});
|
5243
5243
|
};
|
5244
5244
|
}), Xb = /* @__PURE__ */ z("$ZodCheckEndsWith", (t, e) => {
|
5245
|
-
|
5245
|
+
br.init(t, e);
|
5246
5246
|
const r = new RegExp(`.*${na(e.suffix)}$`);
|
5247
5247
|
e.pattern ?? (e.pattern = r), t._zod.onattach.push((n) => {
|
5248
5248
|
n._zod.bag.pattern = new RegExp(`.*${na(e.suffix)}$`);
|
@@ -5258,7 +5258,7 @@ const zb = (t) => {
|
|
5258
5258
|
});
|
5259
5259
|
};
|
5260
5260
|
}), Zb = /* @__PURE__ */ z("$ZodCheckOverwrite", (t, e) => {
|
5261
|
-
|
5261
|
+
br.init(t, e), t._zod.check = (r) => {
|
5262
5262
|
r.value = e.tx(r.value);
|
5263
5263
|
};
|
5264
5264
|
});
|
@@ -5888,7 +5888,7 @@ function hd(t) {
|
|
5888
5888
|
return t.value = Object.freeze(t.value), t;
|
5889
5889
|
}
|
5890
5890
|
const Yy = /* @__PURE__ */ z("$ZodCustom", (t, e) => {
|
5891
|
-
|
5891
|
+
br.init(t, e), Tt.init(t, e), t._zod.parse = (r, n) => r, t._zod.check = (r) => {
|
5892
5892
|
const n = r.value, a = e.fn(n);
|
5893
5893
|
if (a instanceof Promise)
|
5894
5894
|
return a.then((s) => Sd(s, r, n, t));
|
@@ -7017,7 +7017,7 @@ const xC = /* @__PURE__ */ z("ZodCustom", (t, e) => {
|
|
7017
7017
|
Yy.init(t, e), At.init(t, e);
|
7018
7018
|
});
|
7019
7019
|
function LC(t, e) {
|
7020
|
-
const r = new
|
7020
|
+
const r = new br({
|
7021
7021
|
check: "custom",
|
7022
7022
|
...oe(e)
|
7023
7023
|
});
|
@@ -7062,7 +7062,7 @@ Prefer this tool over \`edit_file\` when you want to ovewrite the entire content
|
|
7062
7062
|
},
|
7063
7063
|
source: "builtin"
|
7064
7064
|
},
|
7065
|
-
fn: import("./create_file.node-
|
7065
|
+
fn: import("./create_file.node-DhqtPKLL.js").then(
|
7066
7066
|
({ nodeCreateFileTool: t }) => t
|
7067
7067
|
)
|
7068
7068
|
}, ar = "Grep", UC = 15, zC = 250, GC = `Search for exact text patterns in files using ripgrep, a fast keyword search tool.
|
@@ -7195,10 +7195,10 @@ COMPLEMENTARY USE WITH CODEBASE_SEARCH:
|
|
7195
7195
|
},
|
7196
7196
|
source: "builtin"
|
7197
7197
|
},
|
7198
|
-
fn: import("./node-
|
7199
|
-
},
|
7198
|
+
fn: import("./node-IbYXJXx-.js").then(({ nodeGrepTool: t }) => t)
|
7199
|
+
}, kr = "read_file", YC = 1e3, jn = {
|
7200
7200
|
spec: {
|
7201
|
-
name:
|
7201
|
+
name: kr,
|
7202
7202
|
description: `Read the contents of a file in the workspace. Make sure you know that the path of the file exists, otherwise this will fail.
|
7203
7203
|
This tool will never return more than 1000 lines. Reading a file longer than that requires multiple calls. Files with very long lines will cause the tool to fail. Use the ${ar} tool to find specific content in large files or files with long lines.
|
7204
7204
|
Returns the contents of the file with each line prefixed by its line number. For example, if a file has contents "abc\\n", you will receive "1: abc\\n"`,
|
@@ -7227,7 +7227,7 @@ Returns the contents of the file with each line prefixed by its line number. For
|
|
7227
7227
|
switch ("node") {
|
7228
7228
|
case "node":
|
7229
7229
|
case "vscode":
|
7230
|
-
return import("./read_file.node-
|
7230
|
+
return import("./read_file.node-D_famz3I.js").then(({ nodeReadFileTool: t }) => t);
|
7231
7231
|
}
|
7232
7232
|
})()
|
7233
7233
|
}, HC = fC({
|
@@ -7242,7 +7242,7 @@ Returns a git-style diff showing the changes made as formatted markdown, along w
|
|
7242
7242
|
|
7243
7243
|
The file specified by \`path\` MUST exist. If you need to create a new file, use \`${ei}\` instead.
|
7244
7244
|
|
7245
|
-
\`old_str\` MUST exist in the file. Use tools like \`${
|
7245
|
+
\`old_str\` MUST exist in the file. Use tools like \`${kr}\` to understand the files you are editing before changing them.
|
7246
7246
|
|
7247
7247
|
\`old_str\` and \`new_str\` MUST be different from each other.
|
7248
7248
|
|
@@ -7256,7 +7256,7 @@ If you need to replace the entire contents of a file, use \`${ei}\` instead, sin
|
|
7256
7256
|
inputSchema: wD(HC),
|
7257
7257
|
source: "builtin"
|
7258
7258
|
},
|
7259
|
-
fn: import("./edit_file.node-
|
7259
|
+
fn: import("./edit_file.node-_jUhb0Ej.js").then(({ nodeEditFileTool: t }) => t)
|
7260
7260
|
};
|
7261
7261
|
async function tJ(t, e, r, n) {
|
7262
7262
|
e = Xn(e);
|
@@ -7358,7 +7358,7 @@ function aJ({
|
|
7358
7358
|
d === null ? (l = !0, u = "") : (l = !1, u = d);
|
7359
7359
|
}
|
7360
7360
|
} catch (d) {
|
7361
|
-
|
7361
|
+
Sr.error(`Error reading file ${a} before modification:`, d);
|
7362
7362
|
}
|
7363
7363
|
if (await s(a), !o.has(a))
|
7364
7364
|
try {
|
@@ -7377,13 +7377,13 @@ function aJ({
|
|
7377
7377
|
};
|
7378
7378
|
o.set(a, S);
|
7379
7379
|
const D = jE(t, h);
|
7380
|
-
await r.storeFileChange(D, S),
|
7380
|
+
await r.storeFileChange(D, S), Sr.debug("Generated diff for file", {
|
7381
7381
|
isNewFile: l,
|
7382
7382
|
filePath: a,
|
7383
7383
|
toolUseID: t
|
7384
7384
|
}), n && QE(a, n, _);
|
7385
7385
|
} catch (d) {
|
7386
|
-
|
7386
|
+
Sr.error(`Error generating diff for ${a} after tool use:`, d);
|
7387
7387
|
}
|
7388
7388
|
};
|
7389
7389
|
}
|
@@ -7414,7 +7414,7 @@ async function oJ(t, e, r, n) {
|
|
7414
7414
|
const m = await bu(t, l) !== null;
|
7415
7415
|
u.isNewFile && m ? (await t.deleteFile(l), i.add(l)) : m && (await t.writeFile(l, u.before), i.add(l));
|
7416
7416
|
} catch (d) {
|
7417
|
-
|
7417
|
+
Sr.error(`Error reverting file ${l}:`, d);
|
7418
7418
|
}
|
7419
7419
|
const o = Date.now();
|
7420
7420
|
for (const l of i) {
|
@@ -7433,7 +7433,7 @@ async function oJ(t, e, r, n) {
|
|
7433
7433
|
const _ = jE(l, m.id);
|
7434
7434
|
await t.storeFileChange(_, m);
|
7435
7435
|
} catch (_) {
|
7436
|
-
|
7436
|
+
Sr.error(`Error updating backup for file ${d}:`, _);
|
7437
7437
|
}
|
7438
7438
|
}
|
7439
7439
|
}
|
@@ -7462,7 +7462,7 @@ function KC(t) {
|
|
7462
7462
|
try {
|
7463
7463
|
process.platform !== "win32" && t.pid ? process.kill(-t.pid, "SIGKILL") : t.kill("SIGKILL");
|
7464
7464
|
} catch (e) {
|
7465
|
-
|
7465
|
+
Sr.error(`Failed to kill process ${t.pid}`, e);
|
7466
7466
|
return;
|
7467
7467
|
}
|
7468
7468
|
}
|
@@ -8011,9 +8011,10 @@ function d0(t) {
|
|
8011
8011
|
text: n0(t.userState)
|
8012
8012
|
} : null, n = [], a = [];
|
8013
8013
|
for (const s of t.content)
|
8014
|
-
if (s.type === "tool_result")
|
8015
|
-
|
8016
|
-
|
8014
|
+
if (s.type === "tool_result") {
|
8015
|
+
const i = ku(s.toolUseID, s.run);
|
8016
|
+
i && n.push(i);
|
8017
|
+
} else if (s.type === "image")
|
8017
8018
|
if (s.source.type === "base64" && "mediaType" in s.source && "data" in s.source)
|
8018
8019
|
a.push({
|
8019
8020
|
type: "image",
|
@@ -8042,10 +8043,10 @@ function d0(t) {
|
|
8042
8043
|
);
|
8043
8044
|
}
|
8044
8045
|
function ku(t, e) {
|
8045
|
-
if (!Ku(e))
|
8046
|
-
|
8047
|
-
|
8048
|
-
|
8046
|
+
if (!Ku(e)) {
|
8047
|
+
Sr.error("runToBlockParam", "run is not terminal", { run: e });
|
8048
|
+
return;
|
8049
|
+
}
|
8049
8050
|
let r = [];
|
8050
8051
|
switch (e.status) {
|
8051
8052
|
case "done":
|
@@ -8261,7 +8262,7 @@ Note: Results are sorted by modification time with the most recently modified fi
|
|
8261
8262
|
},
|
8262
8263
|
source: "builtin"
|
8263
8264
|
},
|
8264
|
-
fn: import("./glob.node-
|
8265
|
+
fn: import("./glob.node-DMC-mbKX.js").then(({ nodeGlobTool: t }) => t)
|
8265
8266
|
}, ai = "list_directory", nh = {
|
8266
8267
|
spec: {
|
8267
8268
|
name: ai,
|
@@ -8282,7 +8283,7 @@ Note: Results are sorted by modification time with the most recently modified fi
|
|
8282
8283
|
switch ("node") {
|
8283
8284
|
case "node":
|
8284
8285
|
case "vscode":
|
8285
|
-
return import("./list_directory.node-
|
8286
|
+
return import("./list_directory.node-BiNTY-zJ.js").then(
|
8286
8287
|
({ nodeListDirectoryTool: t }) => t
|
8287
8288
|
);
|
8288
8289
|
}
|
@@ -8541,9 +8542,9 @@ function b0() {
|
|
8541
8542
|
var vt = b.split(/\r\n|[\n\r\u2028\u2029]/);
|
8542
8543
|
I = F.column - 1, k = F.line - 1, P = bt(k, ie, ge, vt.length), L = vt.slice(P.from, P.to), B = P.to.toString().length;
|
8543
8544
|
}
|
8544
|
-
var
|
8545
|
+
var Dr = k - P.from;
|
8545
8546
|
return f(b) && (B = (8 * (P.to > 0 ? P.to - 1 : P.to)).toString(16).length) < 2 && (B = 2), l(function(Re, _e, Ot) {
|
8546
|
-
var Pe, Xe = Ot ===
|
8547
|
+
var Pe, Xe = Ot === Dr, Fe = Xe ? "> " : It;
|
8547
8548
|
return Pe = f(b) ? $e((8 * (P.from + Ot)).toString(16), B, "0") : $e((P.from + Ot + 1).toString(), B, " "), [].concat(Re, [Fe + Pe + " | " + _e], Xe ? [It + qe(" ", B) + " | " + $e("", I, " ") + qe("^", W)] : []);
|
8548
8549
|
}, [], L).join(`
|
8549
8550
|
`);
|
@@ -8807,7 +8808,7 @@ function b0() {
|
|
8807
8808
|
return R < b.length ? w(R, "EOF") : C(R, null);
|
8808
8809
|
}), Xt = je(/[0-9]/).desc("a digit"), Pt = je(/[0-9]*/).desc("optional digits"), Ct = je(/[a-z]/i).desc("a letter"), Yt = je(/[a-z]*/i).desc("optional letters"), Zt = je(/\s*/).desc("optional whitespace"), Le = je(/\s+/).desc("whitespace"), ee = rt("\r"), it = rt(`
|
8809
8810
|
`), gt = rt(`\r
|
8810
|
-
`), or = tt(gt, it, ee).desc("newline"),
|
8811
|
+
`), or = tt(gt, it, ee).desc("newline"), yr = tt(or, _t);
|
8811
8812
|
s.all = Gt, s.alt = tt, s.any = Dt, s.cr = ee, s.createLanguage = function(b) {
|
8812
8813
|
var R = {};
|
8813
8814
|
for (var I in b) ({}).hasOwnProperty.call(b, I) && function(k) {
|
@@ -8818,7 +8819,7 @@ function b0() {
|
|
8818
8819
|
return R;
|
8819
8820
|
}, s.crlf = gt, s.custom = function(b) {
|
8820
8821
|
return s(b(C, w));
|
8821
|
-
}, s.digit = Xt, s.digits = Pt, s.empty = Lt, s.end =
|
8822
|
+
}, s.digit = Xt, s.digits = Pt, s.empty = Lt, s.end = yr, s.eof = _t, s.fail = nt, s.formatError = Nt, s.index = we, s.isParser = N, s.lazy = yt, s.letter = Ct, s.letters = Yt, s.lf = it, s.lookahead = ae, s.makeFailure = w, s.makeSuccess = C, s.newline = or, s.noneOf = function(b) {
|
8822
8823
|
return he(function(R) {
|
8823
8824
|
return b.indexOf(R) < 0;
|
8824
8825
|
}).desc("none of '" + b + "'");
|
@@ -9106,7 +9107,7 @@ It's VERY IMPORTANT to use specific tools when searching for files, instead of i
|
|
9106
9107
|
},
|
9107
9108
|
source: "builtin"
|
9108
9109
|
},
|
9109
|
-
fn: import("./node-
|
9110
|
+
fn: import("./node-CD0uLwWO.js").then(({ nodeBashTool: t }) => t)
|
9110
9111
|
}, Y0 = [
|
9111
9112
|
"ls",
|
9112
9113
|
"dir",
|
@@ -9319,7 +9320,7 @@ function SJ(t, e, r) {
|
|
9319
9320
|
const o = B0(t);
|
9320
9321
|
n = U0(o);
|
9321
9322
|
} catch (o) {
|
9322
|
-
|
9323
|
+
Sr.warn("Failed to parse command", { cmd: t }, o), n = [t];
|
9323
9324
|
}
|
9324
9325
|
const a = r?.["commands.allowlist"] || [];
|
9325
9326
|
if (a.includes("*"))
|
@@ -9444,7 +9445,7 @@ Here are some examples of good tool use in different situations:
|
|
9444
9445
|
|
9445
9446
|
<example>
|
9446
9447
|
<user>Which command should I run to start the development build?</user>
|
9447
|
-
<response>[uses ${ai} tool to list the files in the current directory, then reads relevant files and docs with ${
|
9448
|
+
<response>[uses ${ai} tool to list the files in the current directory, then reads relevant files and docs with ${kr} to find out how to start development build]
|
9448
9449
|
cargo run</response>
|
9449
9450
|
<user>Which command should I run to start release build?</user>
|
9450
9451
|
<response>cargo run --release</response>
|
@@ -9459,24 +9460,24 @@ cargo run</response>
|
|
9459
9460
|
|
9460
9461
|
<example>
|
9461
9462
|
<user>write tests for new feature</user>
|
9462
|
-
<response>[uses the ${ar} and ${Xr} tools to find tests that already exist and could be similar, then uses concurrent ${
|
9463
|
+
<response>[uses the ${ar} and ${Xr} tools to find tests that already exist and could be similar, then uses concurrent ${kr} tool use blocks in one tool call to read the relevant files at the same time, finally uses ${i_} tool to add new tests]</response>
|
9463
9464
|
</example>
|
9464
9465
|
|
9465
9466
|
<example>
|
9466
9467
|
<user>how does the Controller component work?</user>
|
9467
|
-
<response>[uses ${ar} tool to locate the definition, and then ${
|
9468
|
+
<response>[uses ${ar} tool to locate the definition, and then ${kr} tool to read the full file, then the ${Xr} tool to understand related concepts and finally gives an answer]</response>
|
9468
9469
|
</example>
|
9469
9470
|
|
9470
9471
|
<example>
|
9471
9472
|
<user>Summarize the markdown files in this directory</user>
|
9472
|
-
<response>[uses ${Si} tool to find all markdown files in the given directory, and then parallel calls to the ${
|
9473
|
+
<response>[uses ${Si} tool to find all markdown files in the given directory, and then parallel calls to the ${kr} tool to read them all
|
9473
9474
|
Here is a summary of the markdown files:
|
9474
9475
|
[...]</response>
|
9475
9476
|
</example>
|
9476
9477
|
|
9477
9478
|
<example>
|
9478
9479
|
<user>explain how this part of the system works</user>
|
9479
|
-
<response>[uses ${ar}, ${Xr}, and ${
|
9480
|
+
<response>[uses ${ar}, ${Xr}, and ${kr} to understand the code, then proactively creates a diagram using ${ii}]
|
9480
9481
|
This component handles API requests through three stages: authentication, validation, and processing.
|
9481
9482
|
|
9482
9483
|
[renders a sequence diagram showing the flow between components]</response>
|
@@ -9484,7 +9485,7 @@ This component handles API requests through three stages: authentication, valida
|
|
9484
9485
|
|
9485
9486
|
<example>
|
9486
9487
|
<user>how are the different services connected?</user>
|
9487
|
-
<response>[uses ${Xr} and ${
|
9488
|
+
<response>[uses ${Xr} and ${kr} to analyze the codebase architecture]
|
9488
9489
|
The system uses a microservice architecture with message queues connecting services.
|
9489
9490
|
|
9490
9491
|
[creates an architecture diagram with ${ii} showing service relationships]</response>
|
@@ -9893,7 +9894,7 @@ async function Q0(t, e, r, n, a, s, i, o = !1) {
|
|
9893
9894
|
},
|
9894
9895
|
{
|
9895
9896
|
role: "user",
|
9896
|
-
content: G
|
9897
|
+
content: G.filter((K) => K !== void 0)
|
9897
9898
|
}
|
9898
9899
|
);
|
9899
9900
|
}
|
@@ -9909,7 +9910,7 @@ async function Q0(t, e, r, n, a, s, i, o = !1) {
|
|
9909
9910
|
i.forEach((D) => D.abort()), i.clear(), J1(S) ? (o ? u.push({ message: "Operation cancelled" }) : (u.length = 0, u.push({ message: "Operation cancelled" })), a.next({
|
9910
9911
|
status: "cancelled",
|
9911
9912
|
progress: [...u]
|
9912
|
-
}), a.complete()) : (
|
9913
|
+
}), a.complete()) : (Sr.error("Error in codebase_search_agent", S), a.error(S));
|
9913
9914
|
}
|
9914
9915
|
}
|
9915
9916
|
function j0(t, e, r, n) {
|
@@ -10035,7 +10036,7 @@ Returns a git-style diff showing the changes that were undone as formatted markd
|
|
10035
10036
|
},
|
10036
10037
|
source: "builtin"
|
10037
10038
|
},
|
10038
|
-
fn: import("./undo_edit.node-
|
10039
|
+
fn: import("./undo_edit.node-C8sU5262.js").then(({ nodeUndoEditTool: t }) => t)
|
10039
10040
|
};
|
10040
10041
|
function NJ(t, e, r, n) {
|
10041
10042
|
const a = [], s = [];
|
@@ -10154,7 +10155,7 @@ function rR(t, e, r, n, a) {
|
|
10154
10155
|
return `${Sn(n, "default", r, "Mermaid Diagram", u.code, void 0, void 0)}
|
10155
10156
|
|
10156
10157
|
${n.print(m, { foreground: "blue", style: "bold" })}`;
|
10157
|
-
} else if (t.name ===
|
10158
|
+
} else if (t.name === kr) {
|
10158
10159
|
const u = t.input;
|
10159
10160
|
if (i = u.path ? `Read ${n.print(u.path, { foreground: "blue" })}` : "Read file", u.read_range) {
|
10160
10161
|
const [d, m] = u.read_range;
|
@@ -10280,7 +10281,7 @@ function IJ(t, e) {
|
|
10280
10281
|
}
|
10281
10282
|
);
|
10282
10283
|
}
|
10283
|
-
function
|
10284
|
+
function wr(t) {
|
10284
10285
|
const e = t.replace(/\u001b\[\d+(;\d+)*m/gu, "");
|
10285
10286
|
return Z1(e);
|
10286
10287
|
}
|
@@ -10293,11 +10294,11 @@ function Gi(t, e) {
|
|
10293
10294
|
}
|
10294
10295
|
function Sn(t, e, r, n, a, s, i) {
|
10295
10296
|
const o = r - 4, l = n.replace(/\t/g, " ").split(`
|
10296
|
-
`).map((y) => ({ line: y, visibleCount:
|
10297
|
-
`).map((y) => ({ line: y, visibleCount:
|
10297
|
+
`).map((y) => ({ line: y, visibleCount: wr(y) })).map((y) => Ni(y.line, y.visibleCount, o) + "\x1B[0m").map((y) => ({ line: y, visibleCount: wr(y) })), u = a?.trimEnd()?.replace(/\t/g, " ")?.split(`
|
10298
|
+
`).map((y) => ({ line: y, visibleCount: wr(y) })).map((y) => Ni(y.line, y.visibleCount, o) + "\x1B[0m").map((y) => ({ line: y, visibleCount: wr(y) })), d = Math.max(...l.map((y) => y.visibleCount));
|
10298
10299
|
let m;
|
10299
10300
|
i && (m = i.trimEnd().replace(/\t/g, " ").split(`
|
10300
|
-
`).map((y) => ({ line: y, visibleCount:
|
10301
|
+
`).map((y) => ({ line: y, visibleCount: wr(y) })).map((y) => Ni(y.line, y.visibleCount, o) + "\x1B[0m").map((y) => ({ line: y, visibleCount: wr(y) })));
|
10301
10302
|
let _ = d;
|
10302
10303
|
if (u)
|
10303
10304
|
if (s !== void 0 && u.length > s) {
|
@@ -10310,7 +10311,7 @@ function Sn(t, e, r, n, a, s, i) {
|
|
10310
10311
|
_ = Math.max(_, ...u.map((y) => y.visibleCount));
|
10311
10312
|
m && (_ = Math.max(_, ...m.map((y) => y.visibleCount)));
|
10312
10313
|
const c = t.print("─".repeat(_ + 2), { foreground: e }), h = t.print("╭", { foreground: e }) + c + t.print("╮", { foreground: e }), S = t.print("├", { foreground: e }) + c + t.print("┤", { foreground: e }), D = t.print("╰", { foreground: e }) + c + t.print("╯", { foreground: e }), A = (y, f, C, w) => {
|
10313
|
-
const M = y, x =
|
10314
|
+
const M = y, x = wr(M);
|
10314
10315
|
let $ = "";
|
10315
10316
|
return x < C && ($ = " ".repeat(C - x)), t.print("│", { foreground: w }) + ` ${M}${$} ` + t.print("│", { foreground: w });
|
10316
10317
|
}, O = l.map(
|
@@ -10324,7 +10325,7 @@ function Sn(t, e, r, n, a, s, i) {
|
|
10324
10325
|
...v.slice(0, y),
|
10325
10326
|
...v.slice(-Math.max(f, 0))
|
10326
10327
|
], G = Math.max(
|
10327
|
-
...M.map((ie) =>
|
10328
|
+
...M.map((ie) => wr(ie.replace(/[│┤├]/g, ""))),
|
10328
10329
|
d,
|
10329
10330
|
// Make sure we have enough space for the omitted message with at least 2 dashes on each side
|
10330
10331
|
w.length + 4
|
@@ -10363,7 +10364,7 @@ function wd(t, e, r) {
|
|
10363
10364
|
return {
|
10364
10365
|
location: m,
|
10365
10366
|
messageFormatted: _,
|
10366
|
-
filePathLength: r.includeFilePaths ? 0 :
|
10367
|
+
filePathLength: r.includeFilePaths ? 0 : wr(m)
|
10367
10368
|
};
|
10368
10369
|
}), s = Math.max(...n.map((o) => o.filePathLength), 1) + 2;
|
10369
10370
|
return n.map((o) => {
|
@@ -11314,7 +11315,7 @@ function fR() {
|
|
11314
11315
|
}, Le = (b, R) => {
|
11315
11316
|
Ct[`${b}/${R}`] || (console.log(`Deprecated as of ${b}. ${R}`), Ct[`${b}/${R}`] = !0);
|
11316
11317
|
}, ee = a, it = s, gt = Symbol("nomatch");
|
11317
|
-
var
|
11318
|
+
var yr = function(b) {
|
11318
11319
|
const R = /* @__PURE__ */ Object.create(null), I = /* @__PURE__ */ Object.create(null), k = [];
|
11319
11320
|
let L = !0;
|
11320
11321
|
const P = /(^(<[^>]+>|\t|)+|\n)/gm, B = "Could not find the language '{}', did you forget to load/include a language module?", F = { disableAutodetect: !0, name: "Plain text", contains: [] };
|
@@ -11356,7 +11357,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), pr = U, ot = Q);
|
|
11356
11357
|
}
|
11357
11358
|
function ke(U, Q, le, Oe) {
|
11358
11359
|
function ot(Z, te) {
|
11359
|
-
const se =
|
11360
|
+
const se = Ar.case_insensitive ? te[0].toLowerCase() : te[0];
|
11360
11361
|
return Object.prototype.hasOwnProperty.call(Z.keywords, se) && Z.keywords[se];
|
11361
11362
|
}
|
11362
11363
|
function pr() {
|
@@ -11371,11 +11372,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), pr = U, ot = Q);
|
|
11371
11372
|
se += ze.substring(Z, te.index);
|
11372
11373
|
const Se = ot(de, te);
|
11373
11374
|
if (Se) {
|
11374
|
-
const [dt,
|
11375
|
-
if (ht.addText(se), se = "", Fr +=
|
11375
|
+
const [dt, Nr] = Se;
|
11376
|
+
if (ht.addText(se), se = "", Fr += Nr, dt.startsWith("_"))
|
11376
11377
|
se += te[0];
|
11377
11378
|
else {
|
11378
|
-
const un =
|
11379
|
+
const un = Ar.classNameAliases[dt] || dt;
|
11379
11380
|
ht.addKeyword(te[0], un);
|
11380
11381
|
}
|
11381
11382
|
} else
|
@@ -11402,7 +11403,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), pr = U, ot = Q);
|
|
11402
11403
|
de.subLanguage != null ? qt() : pr(), ze = "";
|
11403
11404
|
}
|
11404
11405
|
function Ft(Z) {
|
11405
|
-
return Z.className && ht.openNode(
|
11406
|
+
return Z.className && ht.openNode(Ar.classNameAliases[Z.className] || Z.className), de = Object.create(Z, { parent: { value: de } }), de;
|
11406
11407
|
}
|
11407
11408
|
function cr(Z, te, se) {
|
11408
11409
|
let Se = D(Z.endRe, se);
|
@@ -11425,8 +11426,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), pr = U, ot = Q);
|
|
11425
11426
|
}
|
11426
11427
|
function cn(Z) {
|
11427
11428
|
const te = Z[0], se = Z.rule, Se = new n(se), dt = [se.__beforeBegin, se["on:begin"]];
|
11428
|
-
for (const
|
11429
|
-
if (
|
11429
|
+
for (const Nr of dt)
|
11430
|
+
if (Nr && (Nr(Z, Se), Se.isMatchIgnored))
|
11430
11431
|
return Bt(te);
|
11431
11432
|
return se && se.endSameAsBegin && (se.endRe = m(te)), se.skip ? ze += te : (se.excludeBegin && (ze += te), $t(), !se.returnBegin && !se.excludeBegin && (ze = te)), Ft(se), se.returnBegin ? 0 : te.length;
|
11432
11433
|
}
|
@@ -11443,7 +11444,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), pr = U, ot = Q);
|
|
11443
11444
|
}
|
11444
11445
|
function pa() {
|
11445
11446
|
const Z = [];
|
11446
|
-
for (let te = de; te !==
|
11447
|
+
for (let te = de; te !== Ar; te = te.parent)
|
11447
11448
|
te.className && Z.unshift(te.className);
|
11448
11449
|
Z.forEach((te) => ht.openNode(te));
|
11449
11450
|
}
|
@@ -11475,10 +11476,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), pr = U, ot = Q);
|
|
11475
11476
|
throw new Error("potential infinite loop, way more iterations than matches");
|
11476
11477
|
return ze += se, se.length;
|
11477
11478
|
}
|
11478
|
-
const
|
11479
|
-
if (!
|
11479
|
+
const Ar = J(U);
|
11480
|
+
if (!Ar)
|
11480
11481
|
throw Yt(B.replace("{}", U)), new Error('Unknown language: "' + U + '"');
|
11481
|
-
const Rn = at(
|
11482
|
+
const Rn = at(Ar, { plugins: k });
|
11482
11483
|
let $r = "", de = Oe || Rn;
|
11483
11484
|
const ln = {}, ht = new H.__emitter(H);
|
11484
11485
|
pa();
|
@@ -11556,7 +11557,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), pr = U, ot = Q);
|
|
11556
11557
|
}), [pr, qt] = ot, $t = pr;
|
11557
11558
|
return $t.second_best = qt, $t;
|
11558
11559
|
}
|
11559
|
-
function
|
11560
|
+
function Dr(U) {
|
11560
11561
|
return H.tabReplace || H.useBR ? U.replace(P, (Q) => Q === `
|
11561
11562
|
` ? H.useBR ? "<br>" : Q : H.tabReplace ? Q.replace(/\t/g, H.tabReplace) : Q) : U;
|
11562
11563
|
}
|
@@ -11609,20 +11610,20 @@ https://github.com/highlightjs/highlight.js/issues/2277`), pr = U, ot = Q);
|
|
11609
11610
|
dr.called = !0, Le("10.6.0", "initHighlighting() is deprecated. Use highlightAll() instead."), document.querySelectorAll("pre code").forEach(Xe);
|
11610
11611
|
};
|
11611
11612
|
function Lr() {
|
11612
|
-
Le("10.6.0", "initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),
|
11613
|
+
Le("10.6.0", "initHighlightingOnLoad() is deprecated. Use highlightAll() instead."), Cr = !0;
|
11613
11614
|
}
|
11614
|
-
let
|
11615
|
+
let Cr = !1;
|
11615
11616
|
function Hr() {
|
11616
11617
|
if (document.readyState === "loading") {
|
11617
|
-
|
11618
|
+
Cr = !0;
|
11618
11619
|
return;
|
11619
11620
|
}
|
11620
11621
|
document.querySelectorAll("pre code").forEach(Xe);
|
11621
11622
|
}
|
11622
|
-
function
|
11623
|
-
|
11623
|
+
function Rr() {
|
11624
|
+
Cr && Hr();
|
11624
11625
|
}
|
11625
|
-
typeof window < "u" && window.addEventListener && window.addEventListener("DOMContentLoaded",
|
11626
|
+
typeof window < "u" && window.addEventListener && window.addEventListener("DOMContentLoaded", Rr, !1);
|
11626
11627
|
function xe(U, Q) {
|
11627
11628
|
let le = null;
|
11628
11629
|
try {
|
@@ -11684,7 +11685,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), pr = U, ot = Q);
|
|
11684
11685
|
});
|
11685
11686
|
}
|
11686
11687
|
function We(U) {
|
11687
|
-
return Le("10.2.0", "fixMarkup will be removed entirely in v11.0"), Le("10.2.0", "Please see https://github.com/highlightjs/highlight.js/issues/2534"),
|
11688
|
+
return Le("10.2.0", "fixMarkup will be removed entirely in v11.0"), Le("10.2.0", "Please see https://github.com/highlightjs/highlight.js/issues/2534"), Dr(U);
|
11688
11689
|
}
|
11689
11690
|
function Ke(U) {
|
11690
11691
|
return Le("10.7.0", "highlightBlock will be removed entirely in v12.0"), Le("10.7.0", "Please use highlightElement now."), Xe(U);
|
@@ -11720,7 +11721,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), pr = U, ot = Q);
|
|
11720
11721
|
typeof lt[U] == "object" && e(lt[U]);
|
11721
11722
|
return Object.assign(b, lt), b.addPlugin(_e), b.addPlugin(Gt), b.addPlugin(Pe), b;
|
11722
11723
|
}({});
|
11723
|
-
return Hi =
|
11724
|
+
return Hi = yr, Hi;
|
11724
11725
|
}
|
11725
11726
|
var qi, Hd;
|
11726
11727
|
function gR() {
|
@@ -22423,7 +22424,7 @@ function KA() {
|
|
22423
22424
|
begin: "\\.\\s*" + e.UNDERSCORE_IDENT_RE,
|
22424
22425
|
keywords: Se,
|
22425
22426
|
relevance: 0
|
22426
|
-
},
|
22427
|
+
}, Nr = {
|
22427
22428
|
className: "type",
|
22428
22429
|
begin: ":[ \\t]*(" + ln.trim().replace(/\s/g, "|") + ")",
|
22429
22430
|
end: "[ \\t]*=",
|
@@ -22434,7 +22435,7 @@ function KA() {
|
|
22434
22435
|
begin: r,
|
22435
22436
|
relevance: 0,
|
22436
22437
|
contains: [
|
22437
|
-
|
22438
|
+
Nr,
|
22438
22439
|
dt
|
22439
22440
|
]
|
22440
22441
|
}, Vr = n + "\\(";
|
@@ -22470,7 +22471,7 @@ function KA() {
|
|
22470
22471
|
se
|
22471
22472
|
]
|
22472
22473
|
},
|
22473
|
-
|
22474
|
+
Nr,
|
22474
22475
|
dt,
|
22475
22476
|
un,
|
22476
22477
|
mr,
|
@@ -43426,7 +43427,7 @@ function bi() {
|
|
43426
43427
|
156: 339,
|
43427
43428
|
158: 382,
|
43428
43429
|
159: 376
|
43429
|
-
}, o = 1, l = 2, u = 4, d = o | l | u, m = "DATA_STATE", _ = "RCDATA_STATE", c = "RAWTEXT_STATE", h = "SCRIPT_DATA_STATE", S = "PLAINTEXT_STATE", D = "TAG_OPEN_STATE", A = "END_TAG_OPEN_STATE", O = "TAG_NAME_STATE", v = "RCDATA_LESS_THAN_SIGN_STATE", N = "RCDATA_END_TAG_OPEN_STATE", y = "RCDATA_END_TAG_NAME_STATE", f = "RAWTEXT_LESS_THAN_SIGN_STATE", C = "RAWTEXT_END_TAG_OPEN_STATE", w = "RAWTEXT_END_TAG_NAME_STATE", M = "SCRIPT_DATA_LESS_THAN_SIGN_STATE", x = "SCRIPT_DATA_END_TAG_OPEN_STATE", $ = "SCRIPT_DATA_END_TAG_NAME_STATE", G = "SCRIPT_DATA_ESCAPE_START_STATE", K = "SCRIPT_DATA_ESCAPE_START_DASH_STATE", j = "SCRIPT_DATA_ESCAPED_STATE", ce = "SCRIPT_DATA_ESCAPED_DASH_STATE", re = "SCRIPT_DATA_ESCAPED_DASH_DASH_STATE", ie = "SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE", ge = "SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE", De = "SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE", et = "SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE", Be = "SCRIPT_DATA_DOUBLE_ESCAPED_STATE", It = "SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE", qe = "SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE", $e = "SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE", bt = "SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE", Me = "BEFORE_ATTRIBUTE_NAME_STATE", Nt = "ATTRIBUTE_NAME_STATE", lt = "AFTER_ATTRIBUTE_NAME_STATE", mt = "BEFORE_ATTRIBUTE_VALUE_STATE", Ue = "ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE", tt = "ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE", ft = "ATTRIBUTE_VALUE_UNQUOTED_STATE", Mt = "AFTER_ATTRIBUTE_VALUE_QUOTED_STATE", rt = "SELF_CLOSING_START_TAG_STATE", je = "BOGUS_COMMENT_STATE", ut = "MARKUP_DECLARATION_OPEN_STATE", nt = "COMMENT_START_STATE", ae = "COMMENT_START_DASH_STATE", at = "COMMENT_STATE", he = "COMMENT_LESS_THAN_SIGN_STATE", yt = "COMMENT_LESS_THAN_SIGN_BANG_STATE", Lt = "COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE", we = "COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE", Dt = "COMMENT_END_DASH_STATE", Gt = "COMMENT_END_STATE", _t = "COMMENT_END_BANG_STATE", Xt = "DOCTYPE_STATE", Pt = "BEFORE_DOCTYPE_NAME_STATE", Ct = "DOCTYPE_NAME_STATE", Yt = "AFTER_DOCTYPE_NAME_STATE", Zt = "AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE", Le = "BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE", ee = "DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE", it = "DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE", gt = "AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE", or = "BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",
|
43430
|
+
}, o = 1, l = 2, u = 4, d = o | l | u, m = "DATA_STATE", _ = "RCDATA_STATE", c = "RAWTEXT_STATE", h = "SCRIPT_DATA_STATE", S = "PLAINTEXT_STATE", D = "TAG_OPEN_STATE", A = "END_TAG_OPEN_STATE", O = "TAG_NAME_STATE", v = "RCDATA_LESS_THAN_SIGN_STATE", N = "RCDATA_END_TAG_OPEN_STATE", y = "RCDATA_END_TAG_NAME_STATE", f = "RAWTEXT_LESS_THAN_SIGN_STATE", C = "RAWTEXT_END_TAG_OPEN_STATE", w = "RAWTEXT_END_TAG_NAME_STATE", M = "SCRIPT_DATA_LESS_THAN_SIGN_STATE", x = "SCRIPT_DATA_END_TAG_OPEN_STATE", $ = "SCRIPT_DATA_END_TAG_NAME_STATE", G = "SCRIPT_DATA_ESCAPE_START_STATE", K = "SCRIPT_DATA_ESCAPE_START_DASH_STATE", j = "SCRIPT_DATA_ESCAPED_STATE", ce = "SCRIPT_DATA_ESCAPED_DASH_STATE", re = "SCRIPT_DATA_ESCAPED_DASH_DASH_STATE", ie = "SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE", ge = "SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE", De = "SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE", et = "SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE", Be = "SCRIPT_DATA_DOUBLE_ESCAPED_STATE", It = "SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE", qe = "SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE", $e = "SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE", bt = "SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE", Me = "BEFORE_ATTRIBUTE_NAME_STATE", Nt = "ATTRIBUTE_NAME_STATE", lt = "AFTER_ATTRIBUTE_NAME_STATE", mt = "BEFORE_ATTRIBUTE_VALUE_STATE", Ue = "ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE", tt = "ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE", ft = "ATTRIBUTE_VALUE_UNQUOTED_STATE", Mt = "AFTER_ATTRIBUTE_VALUE_QUOTED_STATE", rt = "SELF_CLOSING_START_TAG_STATE", je = "BOGUS_COMMENT_STATE", ut = "MARKUP_DECLARATION_OPEN_STATE", nt = "COMMENT_START_STATE", ae = "COMMENT_START_DASH_STATE", at = "COMMENT_STATE", he = "COMMENT_LESS_THAN_SIGN_STATE", yt = "COMMENT_LESS_THAN_SIGN_BANG_STATE", Lt = "COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE", we = "COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE", Dt = "COMMENT_END_DASH_STATE", Gt = "COMMENT_END_STATE", _t = "COMMENT_END_BANG_STATE", Xt = "DOCTYPE_STATE", Pt = "BEFORE_DOCTYPE_NAME_STATE", Ct = "DOCTYPE_NAME_STATE", Yt = "AFTER_DOCTYPE_NAME_STATE", Zt = "AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE", Le = "BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE", ee = "DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE", it = "DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE", gt = "AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE", or = "BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE", yr = "AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE", b = "BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE", R = "DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE", I = "DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE", k = "AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE", L = "BOGUS_DOCTYPE_STATE", P = "CDATA_SECTION_STATE", B = "CDATA_SECTION_BRACKET_STATE", F = "CDATA_SECTION_END_STATE", H = "CHARACTER_REFERENCE_STATE", W = "NAMED_CHARACTER_REFERENCE_STATE", X = "AMBIGUOS_AMPERSAND_STATE", pe = "NUMERIC_CHARACTER_REFERENCE_STATE", ke = "HEXADEMICAL_CHARACTER_REFERENCE_START_STATE", Et = "DECIMAL_CHARACTER_REFERENCE_START_STATE", vt = "HEXADEMICAL_CHARACTER_REFERENCE_STATE", Dr = "DECIMAL_CHARACTER_REFERENCE_STATE", Re = "NUMERIC_CHARACTER_REFERENCE_END_STATE";
|
43430
43431
|
function _e(J) {
|
43431
43432
|
return J === a.SPACE || J === a.LINE_FEED || J === a.TABULATION || J === a.FORM_FEED;
|
43432
43433
|
}
|
@@ -43448,20 +43449,20 @@ function bi() {
|
|
43448
43449
|
function Lr(J) {
|
43449
43450
|
return J >= a.LATIN_CAPITAL_A && J <= a.LATIN_CAPITAL_F;
|
43450
43451
|
}
|
43451
|
-
function
|
43452
|
+
function Cr(J) {
|
43452
43453
|
return J >= a.LATIN_SMALL_A && J <= a.LATIN_SMALL_F;
|
43453
43454
|
}
|
43454
43455
|
function Hr(J) {
|
43455
|
-
return Ot(J) || Lr(J) ||
|
43456
|
+
return Ot(J) || Lr(J) || Cr(J);
|
43456
43457
|
}
|
43457
|
-
function
|
43458
|
+
function Rr(J) {
|
43458
43459
|
return J + 32;
|
43459
43460
|
}
|
43460
43461
|
function xe(J) {
|
43461
43462
|
return J <= 65535 ? String.fromCharCode(J) : (J -= 65536, String.fromCharCode(J >>> 10 & 1023 | 55296) + String.fromCharCode(56320 | J & 1023));
|
43462
43463
|
}
|
43463
43464
|
function Ht(J) {
|
43464
|
-
return String.fromCharCode(
|
43465
|
+
return String.fromCharCode(Rr(J));
|
43465
43466
|
}
|
43466
43467
|
function Pr(J, T) {
|
43467
43468
|
const me = r[++J];
|
@@ -43530,7 +43531,7 @@ function bi() {
|
|
43530
43531
|
Ve = !1;
|
43531
43532
|
break;
|
43532
43533
|
}
|
43533
|
-
if (Q = T[Ke], U !== Q && (Rt || U !==
|
43534
|
+
if (Q = T[Ke], U !== Q && (Rt || U !== Rr(Q))) {
|
43534
43535
|
Ve = !1;
|
43535
43536
|
break;
|
43536
43537
|
}
|
@@ -43881,7 +43882,7 @@ function bi() {
|
|
43881
43882
|
// Script data double escape start state
|
43882
43883
|
//------------------------------------------------------------------
|
43883
43884
|
[et](T) {
|
43884
|
-
_e(T) || T === a.SOLIDUS || T === a.GREATER_THAN_SIGN ? (this.state = this._isTempBufferEqualToScriptString() ? Be : j, this._emitCodePoint(T)) : Pe(T) ? (this.tempBuff.push(
|
43885
|
+
_e(T) || T === a.SOLIDUS || T === a.GREATER_THAN_SIGN ? (this.state = this._isTempBufferEqualToScriptString() ? Be : j, this._emitCodePoint(T)) : Pe(T) ? (this.tempBuff.push(Rr(T)), this._emitCodePoint(T)) : Xe(T) ? (this.tempBuff.push(T), this._emitCodePoint(T)) : this._reconsumeInState(j);
|
43885
43886
|
}
|
43886
43887
|
// Script data double escaped state
|
43887
43888
|
//------------------------------------------------------------------
|
@@ -43906,7 +43907,7 @@ function bi() {
|
|
43906
43907
|
// Script data double escape end state
|
43907
43908
|
//------------------------------------------------------------------
|
43908
43909
|
[bt](T) {
|
43909
|
-
_e(T) || T === a.SOLIDUS || T === a.GREATER_THAN_SIGN ? (this.state = this._isTempBufferEqualToScriptString() ? j : Be, this._emitCodePoint(T)) : Pe(T) ? (this.tempBuff.push(
|
43910
|
+
_e(T) || T === a.SOLIDUS || T === a.GREATER_THAN_SIGN ? (this.state = this._isTempBufferEqualToScriptString() ? j : Be, this._emitCodePoint(T)) : Pe(T) ? (this.tempBuff.push(Rr(T)), this._emitCodePoint(T)) : Xe(T) ? (this.tempBuff.push(T), this._emitCodePoint(T)) : this._reconsumeInState(Be);
|
43910
43911
|
}
|
43911
43912
|
// Before attribute name state
|
43912
43913
|
//------------------------------------------------------------------
|
@@ -44031,7 +44032,7 @@ function bi() {
|
|
44031
44032
|
// After DOCTYPE name state
|
44032
44033
|
//------------------------------------------------------------------
|
44033
44034
|
[Yt](T) {
|
44034
|
-
_e(T) || (T === a.GREATER_THAN_SIGN ? (this.state = m, this._emitCurrentToken()) : T === a.EOF ? (this._err(n.eofInDoctype), this.currentToken.forceQuirks = !0, this._emitCurrentToken(), this._emitEOFToken()) : this._consumeSequenceIfMatch(s.PUBLIC_STRING, T, !1) ? this.state = Zt : this._consumeSequenceIfMatch(s.SYSTEM_STRING, T, !1) ? this.state =
|
44035
|
+
_e(T) || (T === a.GREATER_THAN_SIGN ? (this.state = m, this._emitCurrentToken()) : T === a.EOF ? (this._err(n.eofInDoctype), this.currentToken.forceQuirks = !0, this._emitCurrentToken(), this._emitEOFToken()) : this._consumeSequenceIfMatch(s.PUBLIC_STRING, T, !1) ? this.state = Zt : this._consumeSequenceIfMatch(s.SYSTEM_STRING, T, !1) ? this.state = yr : this._ensureHibernation() || (this._err(n.invalidCharacterSequenceAfterDoctypeName), this.currentToken.forceQuirks = !0, this._reconsumeInState(L)));
|
44035
44036
|
}
|
44036
44037
|
// After DOCTYPE public keyword state
|
44037
44038
|
//------------------------------------------------------------------
|
@@ -44065,7 +44066,7 @@ function bi() {
|
|
44065
44066
|
}
|
44066
44067
|
// After DOCTYPE system keyword state
|
44067
44068
|
//------------------------------------------------------------------
|
44068
|
-
[
|
44069
|
+
[yr](T) {
|
44069
44070
|
_e(T) ? this.state = b : T === a.QUOTATION_MARK ? (this._err(n.missingWhitespaceAfterDoctypeSystemKeyword), this.currentToken.systemId = "", this.state = R) : T === a.APOSTROPHE ? (this._err(n.missingWhitespaceAfterDoctypeSystemKeyword), this.currentToken.systemId = "", this.state = I) : T === a.GREATER_THAN_SIGN ? (this._err(n.missingDoctypeSystemIdentifier), this.currentToken.forceQuirks = !0, this.state = m, this._emitCurrentToken()) : T === a.EOF ? (this._err(n.eofInDoctype), this.currentToken.forceQuirks = !0, this._emitCurrentToken(), this._emitEOFToken()) : (this._err(n.missingQuoteBeforeDoctypeSystemIdentifier), this.currentToken.forceQuirks = !0, this._reconsumeInState(L));
|
44070
44071
|
}
|
44071
44072
|
// Before DOCTYPE system identifier state
|
@@ -44143,16 +44144,16 @@ function bi() {
|
|
44143
44144
|
// Decimal character reference start state
|
44144
44145
|
//------------------------------------------------------------------
|
44145
44146
|
[Et](T) {
|
44146
|
-
Ot(T) ? this._reconsumeInState(
|
44147
|
+
Ot(T) ? this._reconsumeInState(Dr) : (this._err(n.absenceOfDigitsInNumericCharacterReference), this._flushCodePointsConsumedAsCharacterReference(), this._reconsumeInState(this.returnState));
|
44147
44148
|
}
|
44148
44149
|
// Hexademical character reference state
|
44149
44150
|
//------------------------------------------------------------------
|
44150
44151
|
[vt](T) {
|
44151
|
-
Lr(T) ? this.charRefCode = this.charRefCode * 16 + T - 55 :
|
44152
|
+
Lr(T) ? this.charRefCode = this.charRefCode * 16 + T - 55 : Cr(T) ? this.charRefCode = this.charRefCode * 16 + T - 87 : Ot(T) ? this.charRefCode = this.charRefCode * 16 + T - 48 : T === a.SEMICOLON ? this.state = Re : (this._err(n.missingSemicolonAfterCharacterReference), this._reconsumeInState(Re));
|
44152
44153
|
}
|
44153
44154
|
// Decimal character reference state
|
44154
44155
|
//------------------------------------------------------------------
|
44155
|
-
[
|
44156
|
+
[Dr](T) {
|
44156
44157
|
Ot(T) ? this.charRefCode = this.charRefCode * 10 + T - 48 : T === a.SEMICOLON ? this.state = Re : (this._err(n.missingSemicolonAfterCharacterReference), this._reconsumeInState(Re));
|
44157
44158
|
}
|
44158
44159
|
// Numeric character reference end state
|
@@ -45383,9 +45384,9 @@ function Eh() {
|
|
45383
45384
|
return m && (h += m), _ ? h += " PUBLIC " + u(_) : c && (h += " SYSTEM"), c !== null && (h += " " + u(c)), h;
|
45384
45385
|
}, zn;
|
45385
45386
|
}
|
45386
|
-
var
|
45387
|
+
var vr = {}, zg;
|
45387
45388
|
function tI() {
|
45388
|
-
if (zg) return
|
45389
|
+
if (zg) return vr;
|
45389
45390
|
zg = 1;
|
45390
45391
|
const t = bi(), e = sn(), r = e.TAG_NAMES, n = e.NAMESPACES, a = e.ATTRS, s = {
|
45391
45392
|
TEXT_HTML: "text/html",
|
@@ -45462,7 +45463,7 @@ function tI() {
|
|
45462
45463
|
"xml:space": { prefix: "xml", name: "space", namespace: n.XML },
|
45463
45464
|
xmlns: { prefix: "", name: "xmlns", namespace: n.XMLNS },
|
45464
45465
|
"xmlns:xlink": { prefix: "xmlns", name: "xlink", namespace: n.XMLNS }
|
45465
|
-
}, d =
|
45466
|
+
}, d = vr.SVG_TAG_NAMES_ADJUSTMENT_MAP = {
|
45466
45467
|
altglyph: "altGlyph",
|
45467
45468
|
altglyphdef: "altGlyphDef",
|
45468
45469
|
altglyphitem: "altGlyphItem",
|
@@ -45545,26 +45546,26 @@ function tI() {
|
|
45545
45546
|
[r.UL]: !0,
|
45546
45547
|
[r.VAR]: !0
|
45547
45548
|
};
|
45548
|
-
|
45549
|
+
vr.causesExit = function(h) {
|
45549
45550
|
const S = h.tagName;
|
45550
45551
|
return S === r.FONT && (t.getTokenAttr(h, a.COLOR) !== null || t.getTokenAttr(h, a.SIZE) !== null || t.getTokenAttr(h, a.FACE) !== null) ? !0 : m[S];
|
45551
|
-
},
|
45552
|
+
}, vr.adjustTokenMathMLAttrs = function(h) {
|
45552
45553
|
for (let S = 0; S < h.attrs.length; S++)
|
45553
45554
|
if (h.attrs[S].name === i) {
|
45554
45555
|
h.attrs[S].name = o;
|
45555
45556
|
break;
|
45556
45557
|
}
|
45557
|
-
},
|
45558
|
+
}, vr.adjustTokenSVGAttrs = function(h) {
|
45558
45559
|
for (let S = 0; S < h.attrs.length; S++) {
|
45559
45560
|
const D = l[h.attrs[S].name];
|
45560
45561
|
D && (h.attrs[S].name = D);
|
45561
45562
|
}
|
45562
|
-
},
|
45563
|
+
}, vr.adjustTokenXMLAttrs = function(h) {
|
45563
45564
|
for (let S = 0; S < h.attrs.length; S++) {
|
45564
45565
|
const D = u[h.attrs[S].name];
|
45565
45566
|
D && (h.attrs[S].prefix = D.prefix, h.attrs[S].name = D.name, h.attrs[S].namespace = D.namespace);
|
45566
45567
|
}
|
45567
|
-
},
|
45568
|
+
}, vr.adjustTokenSVGTagName = function(h) {
|
45568
45569
|
const S = d[h.tagName];
|
45569
45570
|
S && (h.tagName = S);
|
45570
45571
|
};
|
@@ -45581,9 +45582,9 @@ function tI() {
|
|
45581
45582
|
}
|
45582
45583
|
return S === n.SVG && (h === r.FOREIGN_OBJECT || h === r.DESC || h === r.TITLE);
|
45583
45584
|
}
|
45584
|
-
return
|
45585
|
+
return vr.isIntegrationPoint = function(h, S, D, A) {
|
45585
45586
|
return !!((!A || A === n.HTML) && c(h, S, D) || (!A || A === n.MATHML) && _(h, S));
|
45586
|
-
},
|
45587
|
+
}, vr;
|
45587
45588
|
}
|
45588
45589
|
var Fl, Gg;
|
45589
45590
|
function rI() {
|
@@ -45662,7 +45663,7 @@ function rI() {
|
|
45662
45663
|
[t.COMMENT_TOKEN]: he,
|
45663
45664
|
[t.DOCTYPE_TOKEN]: at,
|
45664
45665
|
[t.START_TAG_TOKEN]: or,
|
45665
|
-
[t.END_TAG_TOKEN]:
|
45666
|
+
[t.END_TAG_TOKEN]: yr,
|
45666
45667
|
[t.EOF_TOKEN]: b
|
45667
45668
|
},
|
45668
45669
|
[M]: {
|
@@ -45731,7 +45732,7 @@ function rI() {
|
|
45731
45732
|
[t.WHITESPACE_CHARACTER_TOKEN]: we,
|
45732
45733
|
[t.COMMENT_TOKEN]: he,
|
45733
45734
|
[t.DOCTYPE_TOKEN]: ae,
|
45734
|
-
[t.START_TAG_TOKEN]:
|
45735
|
+
[t.START_TAG_TOKEN]: Nr,
|
45735
45736
|
[t.END_TAG_TOKEN]: un,
|
45736
45737
|
[t.EOF_TOKEN]: Jt
|
45737
45738
|
},
|
@@ -46227,7 +46228,7 @@ function rI() {
|
|
46227
46228
|
const E = g.tagName;
|
46228
46229
|
E === c.HTML ? Ke(p, g) : E === c.BASEFONT || E === c.BGSOUND || E === c.HEAD || E === c.LINK || E === c.META || E === c.NOFRAMES || E === c.STYLE ? ee(p, g) : E === c.NOSCRIPT ? p._err(d.nestedNoscriptInHead) : b(p, g);
|
46229
46230
|
}
|
46230
|
-
function
|
46231
|
+
function yr(p, g) {
|
46231
46232
|
const E = g.tagName;
|
46232
46233
|
E === c.NOSCRIPT ? (p.openElements.pop(), p.insertionMode = C) : E === c.BR ? b(p, g) : p._err(d.endTagWithoutMatchingOpenElement);
|
46233
46234
|
}
|
@@ -46296,7 +46297,7 @@ function rI() {
|
|
46296
46297
|
function vt(p, g) {
|
46297
46298
|
p.openElements.hasInButtonScope(c.P) && p._closePElement(), p._insertElement(g, h.HTML), p.tokenizer.state = t.MODE.PLAINTEXT;
|
46298
46299
|
}
|
46299
|
-
function
|
46300
|
+
function Dr(p, g) {
|
46300
46301
|
p.openElements.hasInScope(c.BUTTON) && (p.openElements.generateImpliedEndTags(), p.openElements.popUntilTagNamePopped(c.BUTTON)), p._reconstructActiveFormattingElements(), p._insertElement(g, h.HTML), p.framesetOk = !1;
|
46301
46302
|
}
|
46302
46303
|
function Re(p, g) {
|
@@ -46326,13 +46327,13 @@ function rI() {
|
|
46326
46327
|
function Lr(p, g) {
|
46327
46328
|
p._appendElement(g, h.HTML), g.ackSelfClosing = !0;
|
46328
46329
|
}
|
46329
|
-
function
|
46330
|
+
function Cr(p, g) {
|
46330
46331
|
p.openElements.hasInButtonScope(c.P) && p._closePElement(), p._appendElement(g, h.HTML), p.framesetOk = !1, p.ackSelfClosing = !0;
|
46331
46332
|
}
|
46332
46333
|
function Hr(p, g) {
|
46333
46334
|
g.tagName = c.IMG, Fe(p, g);
|
46334
46335
|
}
|
46335
|
-
function
|
46336
|
+
function Rr(p, g) {
|
46336
46337
|
p._insertElement(g, h.HTML), p.skipNextNewLine = !0, p.tokenizer.state = t.MODE.RCDATA, p.originalInsertionMode = p.insertionMode, p.framesetOk = !1, p.insertionMode = $;
|
46337
46338
|
}
|
46338
46339
|
function xe(p, g) {
|
@@ -46375,7 +46376,7 @@ function rI() {
|
|
46375
46376
|
E === c.I || E === c.S || E === c.B || E === c.U ? _e(p, g) : E === c.P ? W(p, g) : E === c.A ? Re(p, g) : We(p, g);
|
46376
46377
|
break;
|
46377
46378
|
case 2:
|
46378
|
-
E === c.DL || E === c.OL || E === c.UL ? W(p, g) : E === c.H1 || E === c.H2 || E === c.H3 || E === c.H4 || E === c.H5 || E === c.H6 ? X(p, g) : E === c.LI || E === c.DD || E === c.DT ? Et(p, g) : E === c.EM || E === c.TT ? _e(p, g) : E === c.BR ? Fe(p, g) : E === c.HR ?
|
46379
|
+
E === c.DL || E === c.OL || E === c.UL ? W(p, g) : E === c.H1 || E === c.H2 || E === c.H3 || E === c.H4 || E === c.H5 || E === c.H6 ? X(p, g) : E === c.LI || E === c.DD || E === c.DT ? Et(p, g) : E === c.EM || E === c.TT ? _e(p, g) : E === c.BR ? Fe(p, g) : E === c.HR ? Cr(p, g) : E === c.RB ? T(p, g) : E === c.RT || E === c.RP ? me(p, g) : E !== c.TH && E !== c.TD && E !== c.TR && We(p, g);
|
46379
46380
|
break;
|
46380
46381
|
case 3:
|
46381
46382
|
E === c.DIV || E === c.DIR || E === c.NAV ? W(p, g) : E === c.PRE ? pe(p, g) : E === c.BIG ? _e(p, g) : E === c.IMG || E === c.WBR ? Fe(p, g) : E === c.XMP ? xe(p, g) : E === c.SVG ? Ve(p, g) : E === c.RTC ? T(p, g) : E !== c.COL && We(p, g);
|
@@ -46387,13 +46388,13 @@ function rI() {
|
|
46387
46388
|
E === c.STYLE || E === c.TITLE ? ee(p, g) : E === c.ASIDE ? W(p, g) : E === c.SMALL ? _e(p, g) : E === c.TABLE ? Xe(p, g) : E === c.EMBED ? Fe(p, g) : E === c.INPUT ? dr(p, g) : E === c.PARAM || E === c.TRACK ? Lr(p, g) : E === c.IMAGE ? Hr(p, g) : E !== c.FRAME && E !== c.TBODY && E !== c.TFOOT && E !== c.THEAD && We(p, g);
|
46388
46389
|
break;
|
46389
46390
|
case 6:
|
46390
|
-
E === c.SCRIPT ? ee(p, g) : E === c.CENTER || E === c.FIGURE || E === c.FOOTER || E === c.HEADER || E === c.HGROUP || E === c.DIALOG ? W(p, g) : E === c.BUTTON ?
|
46391
|
+
E === c.SCRIPT ? ee(p, g) : E === c.CENTER || E === c.FIGURE || E === c.FOOTER || E === c.HEADER || E === c.HGROUP || E === c.DIALOG ? W(p, g) : E === c.BUTTON ? Dr(p, g) : E === c.STRIKE || E === c.STRONG ? _e(p, g) : E === c.APPLET || E === c.OBJECT ? Pe(p, g) : E === c.KEYGEN ? Fe(p, g) : E === c.SOURCE ? Lr(p, g) : E === c.IFRAME ? Ht(p, g) : E === c.SELECT ? Ce(p, g) : E === c.OPTION ? J(p, g) : We(p, g);
|
46391
46392
|
break;
|
46392
46393
|
case 7:
|
46393
46394
|
E === c.BGSOUND ? ee(p, g) : E === c.DETAILS || E === c.ADDRESS || E === c.ARTICLE || E === c.SECTION || E === c.SUMMARY ? W(p, g) : E === c.LISTING ? pe(p, g) : E === c.MARQUEE ? Pe(p, g) : E === c.NOEMBED ? Pr(p, g) : E !== c.CAPTION && We(p, g);
|
46394
46395
|
break;
|
46395
46396
|
case 8:
|
46396
|
-
E === c.BASEFONT ? ee(p, g) : E === c.FRAMESET ? H(p, g) : E === c.FIELDSET ? W(p, g) : E === c.TEXTAREA ?
|
46397
|
+
E === c.BASEFONT ? ee(p, g) : E === c.FRAMESET ? H(p, g) : E === c.FIELDSET ? W(p, g) : E === c.TEXTAREA ? Rr(p, g) : E === c.TEMPLATE ? ee(p, g) : E === c.NOSCRIPT ? p.options.scriptingEnabled ? Pr(p, g) : We(p, g) : E === c.OPTGROUP ? J(p, g) : E !== c.COLGROUP && We(p, g);
|
46397
46398
|
break;
|
46398
46399
|
case 9:
|
46399
46400
|
E === c.PLAINTEXT ? vt(p, g) : We(p, g);
|
@@ -46498,7 +46499,7 @@ function rI() {
|
|
46498
46499
|
const E = p.openElements.currentTagName;
|
46499
46500
|
E === c.TABLE || E === c.TBODY || E === c.TFOOT || E === c.THEAD || E === c.TR ? (p.pendingCharacterTokens = [], p.hasNonWhitespacePendingCharacterToken = !1, p.originalInsertionMode = p.insertionMode, p.insertionMode = K, p._processToken(g)) : St(p, g);
|
46500
46501
|
}
|
46501
|
-
function
|
46502
|
+
function Ar(p, g) {
|
46502
46503
|
p.openElements.clearBackToTableContext(), p.activeFormattingElements.insertMarker(), p._insertElement(g, h.HTML), p.insertionMode = j;
|
46503
46504
|
}
|
46504
46505
|
function Rn(p, g) {
|
@@ -46542,7 +46543,7 @@ function rI() {
|
|
46542
46543
|
E === c.SCRIPT ? ee(p, g) : St(p, g);
|
46543
46544
|
break;
|
46544
46545
|
case 7:
|
46545
|
-
E === c.CAPTION ?
|
46546
|
+
E === c.CAPTION ? Ar(p, g) : St(p, g);
|
46546
46547
|
break;
|
46547
46548
|
case 8:
|
46548
46549
|
E === c.COLGROUP ? Rn(p, g) : E === c.TEMPLATE ? ee(p, g) : St(p, g);
|
@@ -46583,7 +46584,7 @@ function rI() {
|
|
46583
46584
|
const E = g.tagName;
|
46584
46585
|
E === c.CAPTION || E === c.TABLE ? p.openElements.hasInTableScope(c.CAPTION) && (p.openElements.generateImpliedEndTags(), p.openElements.popUntilTagNamePopped(c.CAPTION), p.activeFormattingElements.clearToLastMarker(), p.insertionMode = G, E === c.TABLE && p._processToken(g)) : E !== c.BODY && E !== c.COL && E !== c.COLGROUP && E !== c.HTML && E !== c.TBODY && E !== c.TD && E !== c.TFOOT && E !== c.TH && E !== c.THEAD && E !== c.TR && cn(p, g);
|
46585
46586
|
}
|
46586
|
-
function
|
46587
|
+
function Nr(p, g) {
|
46587
46588
|
const E = g.tagName;
|
46588
46589
|
E === c.HTML ? Ke(p, g) : E === c.COL ? (p._appendElement(g, h.HTML), g.ackSelfClosing = !0) : E === c.TEMPLATE ? ee(p, g) : Vr(p, g);
|
46589
46590
|
}
|
@@ -54141,7 +54142,7 @@ class tZ {
|
|
54141
54142
|
Yh = r.width;
|
54142
54143
|
try {
|
54143
54144
|
const n = Ae(e, { async: !1 }).trimEnd();
|
54144
|
-
return
|
54145
|
+
return Sr.info("marked output", { out: n }), n;
|
54145
54146
|
} catch {
|
54146
54147
|
return e;
|
54147
54148
|
}
|
@@ -54278,7 +54279,7 @@ export {
|
|
54278
54279
|
nn as k,
|
54279
54280
|
RZ as l,
|
54280
54281
|
yS as m,
|
54281
|
-
|
54282
|
+
Sr as n,
|
54282
54283
|
EZ as o,
|
54283
54284
|
Cn as p,
|
54284
54285
|
bZ as q,
|
@@ -54292,4 +54293,4 @@ export {
|
|
54292
54293
|
uZ as y,
|
54293
54294
|
mZ as z
|
54294
54295
|
};
|
54295
|
-
//# sourceMappingURL=color-
|
54296
|
+
//# sourceMappingURL=color-Bs5UNAQf.js.map
|