@sourcegraph/amp 0.0.1748462555-g4327bb → 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-CUPGkX15.js → color-Bs5UNAQf.js} +148 -149
- package/dist/color-Bs5UNAQf.js.map +1 -0
- package/dist/{create_file.node-SpjRITEy.js → create_file.node-DhqtPKLL.js} +2 -2
- package/dist/{create_file.node-SpjRITEy.js.map → create_file.node-DhqtPKLL.js.map} +1 -1
- package/dist/{edit_file.node-D5N7LO47.js → edit_file.node-_jUhb0Ej.js} +3 -3
- package/dist/{edit_file.node-D5N7LO47.js.map → edit_file.node-_jUhb0Ej.js.map} +1 -1
- package/dist/{executable-c0v_Cgtd.js → executable-De4-Iq-q.js} +2 -2
- package/dist/{executable-c0v_Cgtd.js.map → executable-De4-Iq-q.js.map} +1 -1
- package/dist/{files-BHaKzjeq.js → files-Cahfcbk6.js} +2 -2
- package/dist/{files-BHaKzjeq.js.map → files-Cahfcbk6.js.map} +1 -1
- package/dist/{glob.node-DElvFTve.js → glob.node-DMC-mbKX.js} +3 -3
- package/dist/{glob.node-DElvFTve.js.map → glob.node-DMC-mbKX.js.map} +1 -1
- package/dist/{list_directory.node-XFwN3yE0.js → list_directory.node-BiNTY-zJ.js} +2 -2
- package/dist/{list_directory.node-XFwN3yE0.js.map → list_directory.node-BiNTY-zJ.js.map} +1 -1
- package/dist/{load-profile-BYmdPZi4.js → load-profile-Gn3gm8Ha.js} +2 -2
- package/dist/{load-profile-BYmdPZi4.js.map → load-profile-Gn3gm8Ha.js.map} +1 -1
- package/dist/{main-DR9dUGdY.js → main-D2HRoJ1Y.js} +15 -15
- package/dist/{main-DR9dUGdY.js.map → main-D2HRoJ1Y.js.map} +1 -1
- package/dist/{node-DBAQSiZY.js → node-B-VoRsW5.js} +2 -2
- package/dist/{node-DBAQSiZY.js.map → node-B-VoRsW5.js.map} +1 -1
- package/dist/{node-Bp6ny8-f.js → node-BeQHJ-gW.js} +2 -2
- package/dist/{node-Bp6ny8-f.js.map → node-BeQHJ-gW.js.map} +1 -1
- package/dist/{node-9bKk9FwK.js → node-BuLml2yb.js} +3 -3
- package/dist/{node-9bKk9FwK.js.map → node-BuLml2yb.js.map} +1 -1
- package/dist/{node-XBUPK8tB.js → node-CD0uLwWO.js} +3 -3
- package/dist/{node-XBUPK8tB.js.map → node-CD0uLwWO.js.map} +1 -1
- package/dist/{node-CUJPEKyh.js → node-CQ8EKnFW.js} +3 -3
- package/dist/{node-CUJPEKyh.js.map → node-CQ8EKnFW.js.map} +1 -1
- package/dist/{node-B09Ab5Cm.js → node-IbYXJXx-.js} +3 -3
- package/dist/{node-B09Ab5Cm.js.map → node-IbYXJXx-.js.map} +1 -1
- package/dist/{read_file.node-QTo58SRd.js → read_file.node-D_famz3I.js} +2 -2
- package/dist/{read_file.node-QTo58SRd.js.map → read_file.node-D_famz3I.js.map} +1 -1
- package/dist/{stdio-ZOtkCu09.js → stdio-Dj_ddrN9.js} +3 -3
- package/dist/{stdio-ZOtkCu09.js.map → stdio-Dj_ddrN9.js.map} +1 -1
- package/dist/storybook.js +1 -1
- package/dist/{undo_edit.node-DBBw_ukz.js → undo_edit.node-C8sU5262.js} +2 -2
- package/dist/{undo_edit.node-DBBw_ukz.js.map → undo_edit.node-C8sU5262.js.map} +1 -1
- package/package.json +1 -1
- package/dist/color-CUPGkX15.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>
|
@@ -9603,11 +9604,9 @@ Only add code comments when:
|
|
9603
9604
|
|
9604
9605
|
## Citations
|
9605
9606
|
|
9606
|
-
To keep the user in the loop, it is important to cite your work with Markdown links.
|
9607
|
-
|
9608
9607
|
If you respond with information from a web search, link to the page that contained the important information.
|
9609
9608
|
|
9610
|
-
|
9609
|
+
To make it easy for the user to look into code you are referring to, you always link to the code with markdown links. The URL should use \`file\` as the scheme, the absolute path to the file as the path, and an optional fragment with the line range.
|
9611
9610
|
|
9612
9611
|
Here is an example URL for linking to a file:
|
9613
9612
|
<example-file-url>file:///Users/bob/src/test.py</example-file-url>
|
@@ -9895,7 +9894,7 @@ async function Q0(t, e, r, n, a, s, i, o = !1) {
|
|
9895
9894
|
},
|
9896
9895
|
{
|
9897
9896
|
role: "user",
|
9898
|
-
content: G
|
9897
|
+
content: G.filter((K) => K !== void 0)
|
9899
9898
|
}
|
9900
9899
|
);
|
9901
9900
|
}
|
@@ -9911,7 +9910,7 @@ async function Q0(t, e, r, n, a, s, i, o = !1) {
|
|
9911
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({
|
9912
9911
|
status: "cancelled",
|
9913
9912
|
progress: [...u]
|
9914
|
-
}), a.complete()) : (
|
9913
|
+
}), a.complete()) : (Sr.error("Error in codebase_search_agent", S), a.error(S));
|
9915
9914
|
}
|
9916
9915
|
}
|
9917
9916
|
function j0(t, e, r, n) {
|
@@ -10037,7 +10036,7 @@ Returns a git-style diff showing the changes that were undone as formatted markd
|
|
10037
10036
|
},
|
10038
10037
|
source: "builtin"
|
10039
10038
|
},
|
10040
|
-
fn: import("./undo_edit.node-
|
10039
|
+
fn: import("./undo_edit.node-C8sU5262.js").then(({ nodeUndoEditTool: t }) => t)
|
10041
10040
|
};
|
10042
10041
|
function NJ(t, e, r, n) {
|
10043
10042
|
const a = [], s = [];
|
@@ -10156,7 +10155,7 @@ function rR(t, e, r, n, a) {
|
|
10156
10155
|
return `${Sn(n, "default", r, "Mermaid Diagram", u.code, void 0, void 0)}
|
10157
10156
|
|
10158
10157
|
${n.print(m, { foreground: "blue", style: "bold" })}`;
|
10159
|
-
} else if (t.name ===
|
10158
|
+
} else if (t.name === kr) {
|
10160
10159
|
const u = t.input;
|
10161
10160
|
if (i = u.path ? `Read ${n.print(u.path, { foreground: "blue" })}` : "Read file", u.read_range) {
|
10162
10161
|
const [d, m] = u.read_range;
|
@@ -10282,7 +10281,7 @@ function IJ(t, e) {
|
|
10282
10281
|
}
|
10283
10282
|
);
|
10284
10283
|
}
|
10285
|
-
function
|
10284
|
+
function wr(t) {
|
10286
10285
|
const e = t.replace(/\u001b\[\d+(;\d+)*m/gu, "");
|
10287
10286
|
return Z1(e);
|
10288
10287
|
}
|
@@ -10295,11 +10294,11 @@ function Gi(t, e) {
|
|
10295
10294
|
}
|
10296
10295
|
function Sn(t, e, r, n, a, s, i) {
|
10297
10296
|
const o = r - 4, l = n.replace(/\t/g, " ").split(`
|
10298
|
-
`).map((y) => ({ line: y, visibleCount:
|
10299
|
-
`).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));
|
10300
10299
|
let m;
|
10301
10300
|
i && (m = i.trimEnd().replace(/\t/g, " ").split(`
|
10302
|
-
`).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) })));
|
10303
10302
|
let _ = d;
|
10304
10303
|
if (u)
|
10305
10304
|
if (s !== void 0 && u.length > s) {
|
@@ -10312,7 +10311,7 @@ function Sn(t, e, r, n, a, s, i) {
|
|
10312
10311
|
_ = Math.max(_, ...u.map((y) => y.visibleCount));
|
10313
10312
|
m && (_ = Math.max(_, ...m.map((y) => y.visibleCount)));
|
10314
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) => {
|
10315
|
-
const M = y, x =
|
10314
|
+
const M = y, x = wr(M);
|
10316
10315
|
let $ = "";
|
10317
10316
|
return x < C && ($ = " ".repeat(C - x)), t.print("│", { foreground: w }) + ` ${M}${$} ` + t.print("│", { foreground: w });
|
10318
10317
|
}, O = l.map(
|
@@ -10326,7 +10325,7 @@ function Sn(t, e, r, n, a, s, i) {
|
|
10326
10325
|
...v.slice(0, y),
|
10327
10326
|
...v.slice(-Math.max(f, 0))
|
10328
10327
|
], G = Math.max(
|
10329
|
-
...M.map((ie) =>
|
10328
|
+
...M.map((ie) => wr(ie.replace(/[│┤├]/g, ""))),
|
10330
10329
|
d,
|
10331
10330
|
// Make sure we have enough space for the omitted message with at least 2 dashes on each side
|
10332
10331
|
w.length + 4
|
@@ -10365,7 +10364,7 @@ function wd(t, e, r) {
|
|
10365
10364
|
return {
|
10366
10365
|
location: m,
|
10367
10366
|
messageFormatted: _,
|
10368
|
-
filePathLength: r.includeFilePaths ? 0 :
|
10367
|
+
filePathLength: r.includeFilePaths ? 0 : wr(m)
|
10369
10368
|
};
|
10370
10369
|
}), s = Math.max(...n.map((o) => o.filePathLength), 1) + 2;
|
10371
10370
|
return n.map((o) => {
|
@@ -11316,7 +11315,7 @@ function fR() {
|
|
11316
11315
|
}, Le = (b, R) => {
|
11317
11316
|
Ct[`${b}/${R}`] || (console.log(`Deprecated as of ${b}. ${R}`), Ct[`${b}/${R}`] = !0);
|
11318
11317
|
}, ee = a, it = s, gt = Symbol("nomatch");
|
11319
|
-
var
|
11318
|
+
var yr = function(b) {
|
11320
11319
|
const R = /* @__PURE__ */ Object.create(null), I = /* @__PURE__ */ Object.create(null), k = [];
|
11321
11320
|
let L = !0;
|
11322
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: [] };
|
@@ -11358,7 +11357,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), pr = U, ot = Q);
|
|
11358
11357
|
}
|
11359
11358
|
function ke(U, Q, le, Oe) {
|
11360
11359
|
function ot(Z, te) {
|
11361
|
-
const se =
|
11360
|
+
const se = Ar.case_insensitive ? te[0].toLowerCase() : te[0];
|
11362
11361
|
return Object.prototype.hasOwnProperty.call(Z.keywords, se) && Z.keywords[se];
|
11363
11362
|
}
|
11364
11363
|
function pr() {
|
@@ -11373,11 +11372,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), pr = U, ot = Q);
|
|
11373
11372
|
se += ze.substring(Z, te.index);
|
11374
11373
|
const Se = ot(de, te);
|
11375
11374
|
if (Se) {
|
11376
|
-
const [dt,
|
11377
|
-
if (ht.addText(se), se = "", Fr +=
|
11375
|
+
const [dt, Nr] = Se;
|
11376
|
+
if (ht.addText(se), se = "", Fr += Nr, dt.startsWith("_"))
|
11378
11377
|
se += te[0];
|
11379
11378
|
else {
|
11380
|
-
const un =
|
11379
|
+
const un = Ar.classNameAliases[dt] || dt;
|
11381
11380
|
ht.addKeyword(te[0], un);
|
11382
11381
|
}
|
11383
11382
|
} else
|
@@ -11404,7 +11403,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), pr = U, ot = Q);
|
|
11404
11403
|
de.subLanguage != null ? qt() : pr(), ze = "";
|
11405
11404
|
}
|
11406
11405
|
function Ft(Z) {
|
11407
|
-
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;
|
11408
11407
|
}
|
11409
11408
|
function cr(Z, te, se) {
|
11410
11409
|
let Se = D(Z.endRe, se);
|
@@ -11427,8 +11426,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), pr = U, ot = Q);
|
|
11427
11426
|
}
|
11428
11427
|
function cn(Z) {
|
11429
11428
|
const te = Z[0], se = Z.rule, Se = new n(se), dt = [se.__beforeBegin, se["on:begin"]];
|
11430
|
-
for (const
|
11431
|
-
if (
|
11429
|
+
for (const Nr of dt)
|
11430
|
+
if (Nr && (Nr(Z, Se), Se.isMatchIgnored))
|
11432
11431
|
return Bt(te);
|
11433
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;
|
11434
11433
|
}
|
@@ -11445,7 +11444,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), pr = U, ot = Q);
|
|
11445
11444
|
}
|
11446
11445
|
function pa() {
|
11447
11446
|
const Z = [];
|
11448
|
-
for (let te = de; te !==
|
11447
|
+
for (let te = de; te !== Ar; te = te.parent)
|
11449
11448
|
te.className && Z.unshift(te.className);
|
11450
11449
|
Z.forEach((te) => ht.openNode(te));
|
11451
11450
|
}
|
@@ -11477,10 +11476,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), pr = U, ot = Q);
|
|
11477
11476
|
throw new Error("potential infinite loop, way more iterations than matches");
|
11478
11477
|
return ze += se, se.length;
|
11479
11478
|
}
|
11480
|
-
const
|
11481
|
-
if (!
|
11479
|
+
const Ar = J(U);
|
11480
|
+
if (!Ar)
|
11482
11481
|
throw Yt(B.replace("{}", U)), new Error('Unknown language: "' + U + '"');
|
11483
|
-
const Rn = at(
|
11482
|
+
const Rn = at(Ar, { plugins: k });
|
11484
11483
|
let $r = "", de = Oe || Rn;
|
11485
11484
|
const ln = {}, ht = new H.__emitter(H);
|
11486
11485
|
pa();
|
@@ -11558,7 +11557,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), pr = U, ot = Q);
|
|
11558
11557
|
}), [pr, qt] = ot, $t = pr;
|
11559
11558
|
return $t.second_best = qt, $t;
|
11560
11559
|
}
|
11561
|
-
function
|
11560
|
+
function Dr(U) {
|
11562
11561
|
return H.tabReplace || H.useBR ? U.replace(P, (Q) => Q === `
|
11563
11562
|
` ? H.useBR ? "<br>" : Q : H.tabReplace ? Q.replace(/\t/g, H.tabReplace) : Q) : U;
|
11564
11563
|
}
|
@@ -11611,20 +11610,20 @@ https://github.com/highlightjs/highlight.js/issues/2277`), pr = U, ot = Q);
|
|
11611
11610
|
dr.called = !0, Le("10.6.0", "initHighlighting() is deprecated. Use highlightAll() instead."), document.querySelectorAll("pre code").forEach(Xe);
|
11612
11611
|
};
|
11613
11612
|
function Lr() {
|
11614
|
-
Le("10.6.0", "initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),
|
11613
|
+
Le("10.6.0", "initHighlightingOnLoad() is deprecated. Use highlightAll() instead."), Cr = !0;
|
11615
11614
|
}
|
11616
|
-
let
|
11615
|
+
let Cr = !1;
|
11617
11616
|
function Hr() {
|
11618
11617
|
if (document.readyState === "loading") {
|
11619
|
-
|
11618
|
+
Cr = !0;
|
11620
11619
|
return;
|
11621
11620
|
}
|
11622
11621
|
document.querySelectorAll("pre code").forEach(Xe);
|
11623
11622
|
}
|
11624
|
-
function
|
11625
|
-
|
11623
|
+
function Rr() {
|
11624
|
+
Cr && Hr();
|
11626
11625
|
}
|
11627
|
-
typeof window < "u" && window.addEventListener && window.addEventListener("DOMContentLoaded",
|
11626
|
+
typeof window < "u" && window.addEventListener && window.addEventListener("DOMContentLoaded", Rr, !1);
|
11628
11627
|
function xe(U, Q) {
|
11629
11628
|
let le = null;
|
11630
11629
|
try {
|
@@ -11686,7 +11685,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), pr = U, ot = Q);
|
|
11686
11685
|
});
|
11687
11686
|
}
|
11688
11687
|
function We(U) {
|
11689
|
-
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);
|
11690
11689
|
}
|
11691
11690
|
function Ke(U) {
|
11692
11691
|
return Le("10.7.0", "highlightBlock will be removed entirely in v12.0"), Le("10.7.0", "Please use highlightElement now."), Xe(U);
|
@@ -11722,7 +11721,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), pr = U, ot = Q);
|
|
11722
11721
|
typeof lt[U] == "object" && e(lt[U]);
|
11723
11722
|
return Object.assign(b, lt), b.addPlugin(_e), b.addPlugin(Gt), b.addPlugin(Pe), b;
|
11724
11723
|
}({});
|
11725
|
-
return Hi =
|
11724
|
+
return Hi = yr, Hi;
|
11726
11725
|
}
|
11727
11726
|
var qi, Hd;
|
11728
11727
|
function gR() {
|
@@ -22425,7 +22424,7 @@ function KA() {
|
|
22425
22424
|
begin: "\\.\\s*" + e.UNDERSCORE_IDENT_RE,
|
22426
22425
|
keywords: Se,
|
22427
22426
|
relevance: 0
|
22428
|
-
},
|
22427
|
+
}, Nr = {
|
22429
22428
|
className: "type",
|
22430
22429
|
begin: ":[ \\t]*(" + ln.trim().replace(/\s/g, "|") + ")",
|
22431
22430
|
end: "[ \\t]*=",
|
@@ -22436,7 +22435,7 @@ function KA() {
|
|
22436
22435
|
begin: r,
|
22437
22436
|
relevance: 0,
|
22438
22437
|
contains: [
|
22439
|
-
|
22438
|
+
Nr,
|
22440
22439
|
dt
|
22441
22440
|
]
|
22442
22441
|
}, Vr = n + "\\(";
|
@@ -22472,7 +22471,7 @@ function KA() {
|
|
22472
22471
|
se
|
22473
22472
|
]
|
22474
22473
|
},
|
22475
|
-
|
22474
|
+
Nr,
|
22476
22475
|
dt,
|
22477
22476
|
un,
|
22478
22477
|
mr,
|
@@ -43428,7 +43427,7 @@ function bi() {
|
|
43428
43427
|
156: 339,
|
43429
43428
|
158: 382,
|
43430
43429
|
159: 376
|
43431
|
-
}, 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";
|
43432
43431
|
function _e(J) {
|
43433
43432
|
return J === a.SPACE || J === a.LINE_FEED || J === a.TABULATION || J === a.FORM_FEED;
|
43434
43433
|
}
|
@@ -43450,20 +43449,20 @@ function bi() {
|
|
43450
43449
|
function Lr(J) {
|
43451
43450
|
return J >= a.LATIN_CAPITAL_A && J <= a.LATIN_CAPITAL_F;
|
43452
43451
|
}
|
43453
|
-
function
|
43452
|
+
function Cr(J) {
|
43454
43453
|
return J >= a.LATIN_SMALL_A && J <= a.LATIN_SMALL_F;
|
43455
43454
|
}
|
43456
43455
|
function Hr(J) {
|
43457
|
-
return Ot(J) || Lr(J) ||
|
43456
|
+
return Ot(J) || Lr(J) || Cr(J);
|
43458
43457
|
}
|
43459
|
-
function
|
43458
|
+
function Rr(J) {
|
43460
43459
|
return J + 32;
|
43461
43460
|
}
|
43462
43461
|
function xe(J) {
|
43463
43462
|
return J <= 65535 ? String.fromCharCode(J) : (J -= 65536, String.fromCharCode(J >>> 10 & 1023 | 55296) + String.fromCharCode(56320 | J & 1023));
|
43464
43463
|
}
|
43465
43464
|
function Ht(J) {
|
43466
|
-
return String.fromCharCode(
|
43465
|
+
return String.fromCharCode(Rr(J));
|
43467
43466
|
}
|
43468
43467
|
function Pr(J, T) {
|
43469
43468
|
const me = r[++J];
|
@@ -43532,7 +43531,7 @@ function bi() {
|
|
43532
43531
|
Ve = !1;
|
43533
43532
|
break;
|
43534
43533
|
}
|
43535
|
-
if (Q = T[Ke], U !== Q && (Rt || U !==
|
43534
|
+
if (Q = T[Ke], U !== Q && (Rt || U !== Rr(Q))) {
|
43536
43535
|
Ve = !1;
|
43537
43536
|
break;
|
43538
43537
|
}
|
@@ -43883,7 +43882,7 @@ function bi() {
|
|
43883
43882
|
// Script data double escape start state
|
43884
43883
|
//------------------------------------------------------------------
|
43885
43884
|
[et](T) {
|
43886
|
-
_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);
|
43887
43886
|
}
|
43888
43887
|
// Script data double escaped state
|
43889
43888
|
//------------------------------------------------------------------
|
@@ -43908,7 +43907,7 @@ function bi() {
|
|
43908
43907
|
// Script data double escape end state
|
43909
43908
|
//------------------------------------------------------------------
|
43910
43909
|
[bt](T) {
|
43911
|
-
_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);
|
43912
43911
|
}
|
43913
43912
|
// Before attribute name state
|
43914
43913
|
//------------------------------------------------------------------
|
@@ -44033,7 +44032,7 @@ function bi() {
|
|
44033
44032
|
// After DOCTYPE name state
|
44034
44033
|
//------------------------------------------------------------------
|
44035
44034
|
[Yt](T) {
|
44036
|
-
_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)));
|
44037
44036
|
}
|
44038
44037
|
// After DOCTYPE public keyword state
|
44039
44038
|
//------------------------------------------------------------------
|
@@ -44067,7 +44066,7 @@ function bi() {
|
|
44067
44066
|
}
|
44068
44067
|
// After DOCTYPE system keyword state
|
44069
44068
|
//------------------------------------------------------------------
|
44070
|
-
[
|
44069
|
+
[yr](T) {
|
44071
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));
|
44072
44071
|
}
|
44073
44072
|
// Before DOCTYPE system identifier state
|
@@ -44145,16 +44144,16 @@ function bi() {
|
|
44145
44144
|
// Decimal character reference start state
|
44146
44145
|
//------------------------------------------------------------------
|
44147
44146
|
[Et](T) {
|
44148
|
-
Ot(T) ? this._reconsumeInState(
|
44147
|
+
Ot(T) ? this._reconsumeInState(Dr) : (this._err(n.absenceOfDigitsInNumericCharacterReference), this._flushCodePointsConsumedAsCharacterReference(), this._reconsumeInState(this.returnState));
|
44149
44148
|
}
|
44150
44149
|
// Hexademical character reference state
|
44151
44150
|
//------------------------------------------------------------------
|
44152
44151
|
[vt](T) {
|
44153
|
-
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));
|
44154
44153
|
}
|
44155
44154
|
// Decimal character reference state
|
44156
44155
|
//------------------------------------------------------------------
|
44157
|
-
[
|
44156
|
+
[Dr](T) {
|
44158
44157
|
Ot(T) ? this.charRefCode = this.charRefCode * 10 + T - 48 : T === a.SEMICOLON ? this.state = Re : (this._err(n.missingSemicolonAfterCharacterReference), this._reconsumeInState(Re));
|
44159
44158
|
}
|
44160
44159
|
// Numeric character reference end state
|
@@ -45385,9 +45384,9 @@ function Eh() {
|
|
45385
45384
|
return m && (h += m), _ ? h += " PUBLIC " + u(_) : c && (h += " SYSTEM"), c !== null && (h += " " + u(c)), h;
|
45386
45385
|
}, zn;
|
45387
45386
|
}
|
45388
|
-
var
|
45387
|
+
var vr = {}, zg;
|
45389
45388
|
function tI() {
|
45390
|
-
if (zg) return
|
45389
|
+
if (zg) return vr;
|
45391
45390
|
zg = 1;
|
45392
45391
|
const t = bi(), e = sn(), r = e.TAG_NAMES, n = e.NAMESPACES, a = e.ATTRS, s = {
|
45393
45392
|
TEXT_HTML: "text/html",
|
@@ -45464,7 +45463,7 @@ function tI() {
|
|
45464
45463
|
"xml:space": { prefix: "xml", name: "space", namespace: n.XML },
|
45465
45464
|
xmlns: { prefix: "", name: "xmlns", namespace: n.XMLNS },
|
45466
45465
|
"xmlns:xlink": { prefix: "xmlns", name: "xlink", namespace: n.XMLNS }
|
45467
|
-
}, d =
|
45466
|
+
}, d = vr.SVG_TAG_NAMES_ADJUSTMENT_MAP = {
|
45468
45467
|
altglyph: "altGlyph",
|
45469
45468
|
altglyphdef: "altGlyphDef",
|
45470
45469
|
altglyphitem: "altGlyphItem",
|
@@ -45547,26 +45546,26 @@ function tI() {
|
|
45547
45546
|
[r.UL]: !0,
|
45548
45547
|
[r.VAR]: !0
|
45549
45548
|
};
|
45550
|
-
|
45549
|
+
vr.causesExit = function(h) {
|
45551
45550
|
const S = h.tagName;
|
45552
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];
|
45553
|
-
},
|
45552
|
+
}, vr.adjustTokenMathMLAttrs = function(h) {
|
45554
45553
|
for (let S = 0; S < h.attrs.length; S++)
|
45555
45554
|
if (h.attrs[S].name === i) {
|
45556
45555
|
h.attrs[S].name = o;
|
45557
45556
|
break;
|
45558
45557
|
}
|
45559
|
-
},
|
45558
|
+
}, vr.adjustTokenSVGAttrs = function(h) {
|
45560
45559
|
for (let S = 0; S < h.attrs.length; S++) {
|
45561
45560
|
const D = l[h.attrs[S].name];
|
45562
45561
|
D && (h.attrs[S].name = D);
|
45563
45562
|
}
|
45564
|
-
},
|
45563
|
+
}, vr.adjustTokenXMLAttrs = function(h) {
|
45565
45564
|
for (let S = 0; S < h.attrs.length; S++) {
|
45566
45565
|
const D = u[h.attrs[S].name];
|
45567
45566
|
D && (h.attrs[S].prefix = D.prefix, h.attrs[S].name = D.name, h.attrs[S].namespace = D.namespace);
|
45568
45567
|
}
|
45569
|
-
},
|
45568
|
+
}, vr.adjustTokenSVGTagName = function(h) {
|
45570
45569
|
const S = d[h.tagName];
|
45571
45570
|
S && (h.tagName = S);
|
45572
45571
|
};
|
@@ -45583,9 +45582,9 @@ function tI() {
|
|
45583
45582
|
}
|
45584
45583
|
return S === n.SVG && (h === r.FOREIGN_OBJECT || h === r.DESC || h === r.TITLE);
|
45585
45584
|
}
|
45586
|
-
return
|
45585
|
+
return vr.isIntegrationPoint = function(h, S, D, A) {
|
45587
45586
|
return !!((!A || A === n.HTML) && c(h, S, D) || (!A || A === n.MATHML) && _(h, S));
|
45588
|
-
},
|
45587
|
+
}, vr;
|
45589
45588
|
}
|
45590
45589
|
var Fl, Gg;
|
45591
45590
|
function rI() {
|
@@ -45664,7 +45663,7 @@ function rI() {
|
|
45664
45663
|
[t.COMMENT_TOKEN]: he,
|
45665
45664
|
[t.DOCTYPE_TOKEN]: at,
|
45666
45665
|
[t.START_TAG_TOKEN]: or,
|
45667
|
-
[t.END_TAG_TOKEN]:
|
45666
|
+
[t.END_TAG_TOKEN]: yr,
|
45668
45667
|
[t.EOF_TOKEN]: b
|
45669
45668
|
},
|
45670
45669
|
[M]: {
|
@@ -45733,7 +45732,7 @@ function rI() {
|
|
45733
45732
|
[t.WHITESPACE_CHARACTER_TOKEN]: we,
|
45734
45733
|
[t.COMMENT_TOKEN]: he,
|
45735
45734
|
[t.DOCTYPE_TOKEN]: ae,
|
45736
|
-
[t.START_TAG_TOKEN]:
|
45735
|
+
[t.START_TAG_TOKEN]: Nr,
|
45737
45736
|
[t.END_TAG_TOKEN]: un,
|
45738
45737
|
[t.EOF_TOKEN]: Jt
|
45739
45738
|
},
|
@@ -46229,7 +46228,7 @@ function rI() {
|
|
46229
46228
|
const E = g.tagName;
|
46230
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);
|
46231
46230
|
}
|
46232
|
-
function
|
46231
|
+
function yr(p, g) {
|
46233
46232
|
const E = g.tagName;
|
46234
46233
|
E === c.NOSCRIPT ? (p.openElements.pop(), p.insertionMode = C) : E === c.BR ? b(p, g) : p._err(d.endTagWithoutMatchingOpenElement);
|
46235
46234
|
}
|
@@ -46298,7 +46297,7 @@ function rI() {
|
|
46298
46297
|
function vt(p, g) {
|
46299
46298
|
p.openElements.hasInButtonScope(c.P) && p._closePElement(), p._insertElement(g, h.HTML), p.tokenizer.state = t.MODE.PLAINTEXT;
|
46300
46299
|
}
|
46301
|
-
function
|
46300
|
+
function Dr(p, g) {
|
46302
46301
|
p.openElements.hasInScope(c.BUTTON) && (p.openElements.generateImpliedEndTags(), p.openElements.popUntilTagNamePopped(c.BUTTON)), p._reconstructActiveFormattingElements(), p._insertElement(g, h.HTML), p.framesetOk = !1;
|
46303
46302
|
}
|
46304
46303
|
function Re(p, g) {
|
@@ -46328,13 +46327,13 @@ function rI() {
|
|
46328
46327
|
function Lr(p, g) {
|
46329
46328
|
p._appendElement(g, h.HTML), g.ackSelfClosing = !0;
|
46330
46329
|
}
|
46331
|
-
function
|
46330
|
+
function Cr(p, g) {
|
46332
46331
|
p.openElements.hasInButtonScope(c.P) && p._closePElement(), p._appendElement(g, h.HTML), p.framesetOk = !1, p.ackSelfClosing = !0;
|
46333
46332
|
}
|
46334
46333
|
function Hr(p, g) {
|
46335
46334
|
g.tagName = c.IMG, Fe(p, g);
|
46336
46335
|
}
|
46337
|
-
function
|
46336
|
+
function Rr(p, g) {
|
46338
46337
|
p._insertElement(g, h.HTML), p.skipNextNewLine = !0, p.tokenizer.state = t.MODE.RCDATA, p.originalInsertionMode = p.insertionMode, p.framesetOk = !1, p.insertionMode = $;
|
46339
46338
|
}
|
46340
46339
|
function xe(p, g) {
|
@@ -46377,7 +46376,7 @@ function rI() {
|
|
46377
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);
|
46378
46377
|
break;
|
46379
46378
|
case 2:
|
46380
|
-
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);
|
46381
46380
|
break;
|
46382
46381
|
case 3:
|
46383
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);
|
@@ -46389,13 +46388,13 @@ function rI() {
|
|
46389
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);
|
46390
46389
|
break;
|
46391
46390
|
case 6:
|
46392
|
-
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);
|
46393
46392
|
break;
|
46394
46393
|
case 7:
|
46395
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);
|
46396
46395
|
break;
|
46397
46396
|
case 8:
|
46398
|
-
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);
|
46399
46398
|
break;
|
46400
46399
|
case 9:
|
46401
46400
|
E === c.PLAINTEXT ? vt(p, g) : We(p, g);
|
@@ -46500,7 +46499,7 @@ function rI() {
|
|
46500
46499
|
const E = p.openElements.currentTagName;
|
46501
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);
|
46502
46501
|
}
|
46503
|
-
function
|
46502
|
+
function Ar(p, g) {
|
46504
46503
|
p.openElements.clearBackToTableContext(), p.activeFormattingElements.insertMarker(), p._insertElement(g, h.HTML), p.insertionMode = j;
|
46505
46504
|
}
|
46506
46505
|
function Rn(p, g) {
|
@@ -46544,7 +46543,7 @@ function rI() {
|
|
46544
46543
|
E === c.SCRIPT ? ee(p, g) : St(p, g);
|
46545
46544
|
break;
|
46546
46545
|
case 7:
|
46547
|
-
E === c.CAPTION ?
|
46546
|
+
E === c.CAPTION ? Ar(p, g) : St(p, g);
|
46548
46547
|
break;
|
46549
46548
|
case 8:
|
46550
46549
|
E === c.COLGROUP ? Rn(p, g) : E === c.TEMPLATE ? ee(p, g) : St(p, g);
|
@@ -46585,7 +46584,7 @@ function rI() {
|
|
46585
46584
|
const E = g.tagName;
|
46586
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);
|
46587
46586
|
}
|
46588
|
-
function
|
46587
|
+
function Nr(p, g) {
|
46589
46588
|
const E = g.tagName;
|
46590
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);
|
46591
46590
|
}
|
@@ -54143,7 +54142,7 @@ class tZ {
|
|
54143
54142
|
Yh = r.width;
|
54144
54143
|
try {
|
54145
54144
|
const n = Ae(e, { async: !1 }).trimEnd();
|
54146
|
-
return
|
54145
|
+
return Sr.info("marked output", { out: n }), n;
|
54147
54146
|
} catch {
|
54148
54147
|
return e;
|
54149
54148
|
}
|
@@ -54280,7 +54279,7 @@ export {
|
|
54280
54279
|
nn as k,
|
54281
54280
|
RZ as l,
|
54282
54281
|
yS as m,
|
54283
|
-
|
54282
|
+
Sr as n,
|
54284
54283
|
EZ as o,
|
54285
54284
|
Cn as p,
|
54286
54285
|
bZ as q,
|
@@ -54294,4 +54293,4 @@ export {
|
|
54294
54293
|
uZ as y,
|
54295
54294
|
mZ as z
|
54296
54295
|
};
|
54297
|
-
//# sourceMappingURL=color-
|
54296
|
+
//# sourceMappingURL=color-Bs5UNAQf.js.map
|