narrat 3.2.14 → 3.2.15
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/narrat.es.js +237 -234
- package/dist/narrat.es.js.map +1 -1
- package/dist/narrat.umd.js +36 -36
- package/dist/narrat.umd.js.map +1 -1
- package/dist/stores/main-store.d.ts +1 -0
- package/dist/stores/screens-store.d.ts +1 -0
- package/package.json +1 -1
package/dist/narrat.es.js
CHANGED
|
@@ -1718,7 +1718,7 @@ function KV(e, t, n) {
|
|
|
1718
1718
|
});
|
|
1719
1719
|
}];
|
|
1720
1720
|
}
|
|
1721
|
-
var Fi, lr, Fa, fu,
|
|
1721
|
+
var Fi, lr, Fa, fu, Ja, ca, iI = function(e) {
|
|
1722
1722
|
Ve(n, Nt);
|
|
1723
1723
|
var t = Ue(n);
|
|
1724
1724
|
function n(r) {
|
|
@@ -1737,7 +1737,7 @@ var Fi, lr, Fa, fu, Ga, ca, iI = function(e) {
|
|
|
1737
1737
|
e.info = "info", e.warning = "warning", e.error = "error";
|
|
1738
1738
|
}(fu || (fu = {})), function(e) {
|
|
1739
1739
|
e.key = "key", e.value = "value";
|
|
1740
|
-
}(
|
|
1740
|
+
}(Ja || (Ja = {})), function(e) {
|
|
1741
1741
|
e.asc = "asc", e.desc = "desc";
|
|
1742
1742
|
}(ca || (ca = {}));
|
|
1743
1743
|
var kO = 50, GV = 200, JV = 400, QV = 1200, oI = 1e3, $h = 100, Gc = 100, Em = 2e4, oc = [{ start: 0, end: $h }], YV = 104857600, XV = 1048576, B1 = 10485760, aI = 10240, ac = { closeButton: !1, classBg: "jse-modal-bg", classWindow: "jse-modal-window", classWindowWrap: "jse-modal-window-wrap", classContent: "jse-modal-content" }, ZV = _e(_e({}, ac), {}, { classWindow: "jse-modal-window jse-modal-window-sort" }), eU = _e(_e({}, ac), {}, { classWindow: "jse-modal-window jse-modal-window-transform" }), xO = _e(_e({}, ac), {}, { classWindow: "jse-modal-window jse-modal-window-jsoneditor" }), fk = "Insert or paste contents, enter [ insert a new array, enter { to insert a new object, or start typing to insert a new value", dk = "Open context menu (Click here, right click on the selection, or use the context menu button or Ctrl+Q)", du = "hover-insert-inside", Th = "hover-insert-after", z1 = "hover-collection", ry = "valid", _O = "repairable", tu = 336, nu = 260, tU = "NO", hk = "SELF", pk = "NEXT_INSIDE", nU = (To(ey = {}, ca.asc, "ascending"), To(ey, ca.desc, "descending"), ey), rU = 0;
|
|
@@ -1908,7 +1908,7 @@ function bk(e, t, n) {
|
|
|
1908
1908
|
function fa(e, t) {
|
|
1909
1909
|
return e !== void 0 && (t.length === 0 || e !== null && fa(e[t[0]], t.slice(1)));
|
|
1910
1910
|
}
|
|
1911
|
-
function
|
|
1911
|
+
function es(e) {
|
|
1912
1912
|
var t = e.split("/");
|
|
1913
1913
|
return t.shift(), t.map(function(n) {
|
|
1914
1914
|
return n.replace(/~1/g, "/").replace(/~0/g, "~");
|
|
@@ -1926,7 +1926,7 @@ function q1(e, t) {
|
|
|
1926
1926
|
function Mf(e, t) {
|
|
1927
1927
|
return e.startsWith(t) && (e.length === t.length || e[t.length] === "/");
|
|
1928
1928
|
}
|
|
1929
|
-
function
|
|
1929
|
+
function Qa(e, t, n) {
|
|
1930
1930
|
for (var r = e, i = 0; i < t.length; i++) {
|
|
1931
1931
|
hU(t[i]);
|
|
1932
1932
|
var o = t[i];
|
|
@@ -2010,10 +2010,10 @@ function Ss(e, t) {
|
|
|
2010
2010
|
return r;
|
|
2011
2011
|
var i = lI(r), o = At(n, i);
|
|
2012
2012
|
return i.concat(o.length);
|
|
2013
|
-
}(e,
|
|
2013
|
+
}(e, es(t));
|
|
2014
2014
|
}
|
|
2015
2015
|
function H1(e) {
|
|
2016
|
-
return
|
|
2016
|
+
return es(e);
|
|
2017
2017
|
}
|
|
2018
2018
|
function pU(e) {
|
|
2019
2019
|
return function(t) {
|
|
@@ -2045,7 +2045,7 @@ function iy(e, t) {
|
|
|
2045
2045
|
}
|
|
2046
2046
|
function hI(e, t, n) {
|
|
2047
2047
|
var r = [];
|
|
2048
|
-
return
|
|
2048
|
+
return Qa(e, t, { before: function(i, o) {
|
|
2049
2049
|
var a, s, u = Ss(i, o.path);
|
|
2050
2050
|
if (o.op === "add")
|
|
2051
2051
|
a = CO(i, u);
|
|
@@ -3109,13 +3109,13 @@ function PI(e, t, n) {
|
|
|
3109
3109
|
function wu(e, t, n) {
|
|
3110
3110
|
t == "__proto__" && Im ? Im(e, t, { configurable: !0, enumerable: !0, value: n, writable: !0 }) : e[t] = n;
|
|
3111
3111
|
}
|
|
3112
|
-
function
|
|
3112
|
+
function is(e, t) {
|
|
3113
3113
|
return e === t || e != e && t != t;
|
|
3114
3114
|
}
|
|
3115
3115
|
var jH = Object.prototype.hasOwnProperty;
|
|
3116
3116
|
function dp(e, t, n) {
|
|
3117
3117
|
var r = e[t];
|
|
3118
|
-
jH.call(e, t) &&
|
|
3118
|
+
jH.call(e, t) && is(r, n) && (n !== void 0 || t in e) || wu(e, t, n);
|
|
3119
3119
|
}
|
|
3120
3120
|
function $s(e, t, n, r) {
|
|
3121
3121
|
var i = !n;
|
|
@@ -3151,7 +3151,7 @@ function mo(e, t, n) {
|
|
|
3151
3151
|
if (!zr(n))
|
|
3152
3152
|
return !1;
|
|
3153
3153
|
var r = St(t);
|
|
3154
|
-
return !!(r == "number" ? Po(n) && yu(t, n.length) : r == "string" && t in n) &&
|
|
3154
|
+
return !!(r == "number" ? Po(n) && yu(t, n.length) : r == "string" && t in n) && is(n[t], e);
|
|
3155
3155
|
}
|
|
3156
3156
|
function ud(e) {
|
|
3157
3157
|
return Bn(function(t, n) {
|
|
@@ -3270,7 +3270,7 @@ function Il(e) {
|
|
|
3270
3270
|
}
|
|
3271
3271
|
function Gp(e, t) {
|
|
3272
3272
|
for (var n = e.length; n--; )
|
|
3273
|
-
if (
|
|
3273
|
+
if (is(e[n][0], t))
|
|
3274
3274
|
return n;
|
|
3275
3275
|
return -1;
|
|
3276
3276
|
}
|
|
@@ -3489,7 +3489,7 @@ function cd(e) {
|
|
|
3489
3489
|
return dW.test(e);
|
|
3490
3490
|
}
|
|
3491
3491
|
var WI = "\\ud800-\\udfff", hW = "[" + WI + "]", J1 = "[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]", Q1 = "\\ud83c[\\udffb-\\udfff]", KI = "[^" + WI + "]", GI = "(?:\\ud83c[\\udde6-\\uddff]){2}", JI = "[\\ud800-\\udbff][\\udc00-\\udfff]", o3 = "(?:" + J1 + "|" + Q1 + ")?", a3 = "[\\ufe0e\\ufe0f]?", pW = a3 + o3 + ("(?:\\u200d(?:" + [KI, GI, JI].join("|") + ")" + a3 + o3 + ")*"), vW = "(?:" + [KI + J1 + "?", J1, GI, JI, hW].join("|") + ")", mW = RegExp(Q1 + "(?=" + Q1 + ")|" + vW + pW, "g");
|
|
3492
|
-
function
|
|
3492
|
+
function ts(e) {
|
|
3493
3493
|
return cd(e) ? function(t) {
|
|
3494
3494
|
return t.match(mW) || [];
|
|
3495
3495
|
}(e) : function(t) {
|
|
@@ -3498,7 +3498,7 @@ function es(e) {
|
|
|
3498
3498
|
}
|
|
3499
3499
|
function QI(e) {
|
|
3500
3500
|
return function(t) {
|
|
3501
|
-
var n = cd(t = dr(t)) ?
|
|
3501
|
+
var n = cd(t = dr(t)) ? ts(t) : void 0, r = n ? n[0] : t.charAt(0), i = n ? ml(n, 1).join("") : t.slice(1);
|
|
3502
3502
|
return r[e]() + i;
|
|
3503
3503
|
};
|
|
3504
3504
|
}
|
|
@@ -3879,7 +3879,7 @@ function qK(e, t, n, r, i, o) {
|
|
|
3879
3879
|
case EK:
|
|
3880
3880
|
case AK:
|
|
3881
3881
|
case IK:
|
|
3882
|
-
return
|
|
3882
|
+
return is(+g, +y);
|
|
3883
3883
|
case MK:
|
|
3884
3884
|
return g.name == y.name && g.message == y.message;
|
|
3885
3885
|
case NK:
|
|
@@ -4178,12 +4178,12 @@ var PN = Object.prototype, lG = PN.hasOwnProperty, cG = Bn(function(e, t) {
|
|
|
4178
4178
|
for (i && mo(t[0], t[1], i) && (r = 1); ++n < r; )
|
|
4179
4179
|
for (var o = t[n], a = Ao(o), s = -1, u = a.length; ++s < u; ) {
|
|
4180
4180
|
var l = a[s], f = e[l];
|
|
4181
|
-
(f === void 0 ||
|
|
4181
|
+
(f === void 0 || is(f, PN[l]) && !lG.call(e, l)) && (e[l] = o[l]);
|
|
4182
4182
|
}
|
|
4183
4183
|
return e;
|
|
4184
4184
|
}), fG = cG;
|
|
4185
4185
|
function vy(e, t, n) {
|
|
4186
|
-
(n !== void 0 && !
|
|
4186
|
+
(n !== void 0 && !is(e[t], n) || n === void 0 && !(t in e)) && wu(e, t, n);
|
|
4187
4187
|
}
|
|
4188
4188
|
function ui(e) {
|
|
4189
4189
|
return ni(e) && Po(e);
|
|
@@ -4850,7 +4850,7 @@ function sL(e) {
|
|
|
4850
4850
|
if (!e)
|
|
4851
4851
|
return [];
|
|
4852
4852
|
if (Po(e))
|
|
4853
|
-
return a0(e) ?
|
|
4853
|
+
return a0(e) ? ts(e) : Oo(e);
|
|
4854
4854
|
if (gy && e[gy])
|
|
4855
4855
|
return function(n) {
|
|
4856
4856
|
for (var r, i = []; !(r = n.next()).done; )
|
|
@@ -5018,7 +5018,7 @@ function Dm(e, t) {
|
|
|
5018
5018
|
if (n < 2)
|
|
5019
5019
|
return n ? nb(t, e) : t;
|
|
5020
5020
|
var r = nb(t, fY(e / hd(t)));
|
|
5021
|
-
return cd(t) ? ml(
|
|
5021
|
+
return cd(t) ? ml(ts(r), 0, e).join("") : r.slice(0, e);
|
|
5022
5022
|
}
|
|
5023
5023
|
var dY = Math.ceil, hY = Math.floor;
|
|
5024
5024
|
function pY(e, t, n) {
|
|
@@ -5313,7 +5313,7 @@ function jX(e, t) {
|
|
|
5313
5313
|
var n = e == null ? 0 : e.length;
|
|
5314
5314
|
if (n) {
|
|
5315
5315
|
var r = l0(e, t);
|
|
5316
|
-
if (r < n &&
|
|
5316
|
+
if (r < n && is(e[r], t))
|
|
5317
5317
|
return r;
|
|
5318
5318
|
}
|
|
5319
5319
|
return -1;
|
|
@@ -5327,7 +5327,7 @@ function CX(e, t, n) {
|
|
|
5327
5327
|
function $X(e, t) {
|
|
5328
5328
|
if (e != null && e.length) {
|
|
5329
5329
|
var n = l0(e, t, !0) - 1;
|
|
5330
|
-
if (
|
|
5330
|
+
if (is(e[n], t))
|
|
5331
5331
|
return n;
|
|
5332
5332
|
}
|
|
5333
5333
|
return -1;
|
|
@@ -5335,7 +5335,7 @@ function $X(e, t) {
|
|
|
5335
5335
|
function CL(e, t) {
|
|
5336
5336
|
for (var n = -1, r = e.length, i = 0, o = []; ++n < r; ) {
|
|
5337
5337
|
var a = e[n], s = t ? t(a) : a;
|
|
5338
|
-
if (!n || !
|
|
5338
|
+
if (!n || !is(s, u)) {
|
|
5339
5339
|
var u = s;
|
|
5340
5340
|
o[i++] = a === 0 ? 0 : a;
|
|
5341
5341
|
}
|
|
@@ -5349,7 +5349,7 @@ function OX(e, t) {
|
|
|
5349
5349
|
return e && e.length ? CL(e, _n(t)) : [];
|
|
5350
5350
|
}
|
|
5351
5351
|
function EX(e, t, n) {
|
|
5352
|
-
return n && typeof n != "number" && mo(e, t, n) && (t = n = void 0), (n = n === void 0 ? 4294967295 : n >>> 0) ? (e = dr(e)) && (typeof t == "string" || t != null && !sx(t)) && !(t = Wo(t)) && cd(e) ? ml(
|
|
5352
|
+
return n && typeof n != "number" && mo(e, t, n) && (t = n = void 0), (n = n === void 0 ? 4294967295 : n >>> 0) ? (e = dr(e)) && (typeof t == "string" || t != null && !sx(t)) && !(t = Wo(t)) && cd(e) ? ml(ts(e), 0, n) : e.split(t, n) : [];
|
|
5353
5353
|
}
|
|
5354
5354
|
var AX = Math.max;
|
|
5355
5355
|
function MX(e, t) {
|
|
@@ -5406,7 +5406,7 @@ function KX(e, t) {
|
|
|
5406
5406
|
}
|
|
5407
5407
|
var $L = Object.prototype, GX = $L.hasOwnProperty;
|
|
5408
5408
|
function z3(e, t, n, r) {
|
|
5409
|
-
return e === void 0 ||
|
|
5409
|
+
return e === void 0 || is(e, $L[n]) && !GX.call(r, n) ? t : e;
|
|
5410
5410
|
}
|
|
5411
5411
|
var JX = { "\\": "\\", "'": "'", "\n": "n", "\r": "r", "\u2028": "u2028", "\u2029": "u2029" };
|
|
5412
5412
|
function QX(e) {
|
|
@@ -5521,7 +5521,7 @@ function pZ(e, t, n) {
|
|
|
5521
5521
|
return xI(e);
|
|
5522
5522
|
if (!e || !(t = Wo(t)))
|
|
5523
5523
|
return e;
|
|
5524
|
-
var r =
|
|
5524
|
+
var r = ts(e), i = ts(t);
|
|
5525
5525
|
return ml(r, PL(r, i), ML(r, i) + 1).join("");
|
|
5526
5526
|
}
|
|
5527
5527
|
function vZ(e, t, n) {
|
|
@@ -5529,8 +5529,8 @@ function vZ(e, t, n) {
|
|
|
5529
5529
|
return e.slice(0, kI(e) + 1);
|
|
5530
5530
|
if (!e || !(t = Wo(t)))
|
|
5531
5531
|
return e;
|
|
5532
|
-
var r =
|
|
5533
|
-
return ml(r, 0, ML(r,
|
|
5532
|
+
var r = ts(e);
|
|
5533
|
+
return ml(r, 0, ML(r, ts(t)) + 1).join("");
|
|
5534
5534
|
}
|
|
5535
5535
|
var mZ = /^\s+/;
|
|
5536
5536
|
function gZ(e, t, n) {
|
|
@@ -5538,8 +5538,8 @@ function gZ(e, t, n) {
|
|
|
5538
5538
|
return e.replace(mZ, "");
|
|
5539
5539
|
if (!e || !(t = Wo(t)))
|
|
5540
5540
|
return e;
|
|
5541
|
-
var r =
|
|
5542
|
-
return ml(r, PL(r,
|
|
5541
|
+
var r = ts(e);
|
|
5542
|
+
return ml(r, PL(r, ts(t))).join("");
|
|
5543
5543
|
}
|
|
5544
5544
|
var yZ = /\w*$/;
|
|
5545
5545
|
function bZ(e, t) {
|
|
@@ -5550,7 +5550,7 @@ function bZ(e, t) {
|
|
|
5550
5550
|
}
|
|
5551
5551
|
var o = (e = dr(e)).length;
|
|
5552
5552
|
if (cd(e)) {
|
|
5553
|
-
var a =
|
|
5553
|
+
var a = ts(e);
|
|
5554
5554
|
o = a.length;
|
|
5555
5555
|
}
|
|
5556
5556
|
if (n >= o)
|
|
@@ -5728,7 +5728,7 @@ function tee(e, t) {
|
|
|
5728
5728
|
var nee = Bn(function(e) {
|
|
5729
5729
|
var t = e.length, n = t > 1 ? e[t - 1] : void 0;
|
|
5730
5730
|
return n = typeof n == "function" ? (e.pop(), n) : void 0, NL(e, n);
|
|
5731
|
-
}), ree = nee, zt = { chunk: LW, compact: jK, concat: SK, difference: wG, differenceBy: xG, differenceWith: jG, drop: CG, dropRight: $G, dropRightWhile: TG, dropWhile: OG, fill: FG, findIndex: GN, findLastIndex: QN, first: qi, flatten: zI, flattenDeep: YG, flattenDepth: XG, fromPairs: sJ, head: qi, indexOf: jJ, initial: Nn, intersection: CJ, intersectionBy: TJ, intersectionWith: OJ, join: fQ, last: Dt, lastIndexOf: yQ, nth: qQ, pull: $Y, pullAll: bL, pullAllBy: TY, pullAllWith: OY, pullAt: MY, remove: GY, reverse: ob, slice: dX, sortedIndex: xX, sortedIndexBy: _X, sortedIndexOf: jX, sortedLastIndex: SX, sortedLastIndexBy: CX, sortedLastIndexOf: $X, sortedUniq: TX, sortedUniqBy: OX, tail: VX, take: UX, takeRight: qX, takeRightWhile: HX, takeWhile: WX, union: $Z, unionBy: OZ, unionWith: EZ, uniq: AZ, uniqBy: MZ, uniqWith: PZ, unzip: gx, unzipWith: NL, without: UZ, xor: JZ, xorBy: YZ, xorWith: XZ, zip: ZZ, zipObject: eee, zipObjectDeep: tee, zipWith: ree }, yr = { countBy: rG, each: A3, eachRight: tb, every: RG, filter: BG, find: VG, findLast: WG, flatMap: GG, flatMapDeep: JG, flatMapDepth: QG, forEach: A3, forEachRight: tb, groupBy: wp, includes: xJ, invokeMap: FJ, keyBy: vQ, map: bp, orderBy: YQ, partition: yL, reduce: qY, reduceRight: WY, reject: KY, sample: nX, sampleSize: oX, shuffle: cX, size: fX, some: mX, sortBy: SL }, iee = { now: nm }, Xr = { after: Eq, ary: PI, before: qI, bind: HI, bindKey: fW, curry: Zk, curryRight: ex, debounce: gp, defer: vG, delay: gG, flip: ZG, memoize: pp, negate: Mh, once: QQ, overArgs: nY, partial: gL, partialRight: wY, rearg: UY, rest: YY, spread: MX, throttle: OL, unary: wZ, wrap: qZ }, ln = { castArray: EW, clone: yK, cloneDeep: bK, cloneDeepWith: _N, cloneWith: xK, conformsTo: XK, eq:
|
|
5731
|
+
}), ree = nee, zt = { chunk: LW, compact: jK, concat: SK, difference: wG, differenceBy: xG, differenceWith: jG, drop: CG, dropRight: $G, dropRightWhile: TG, dropWhile: OG, fill: FG, findIndex: GN, findLastIndex: QN, first: qi, flatten: zI, flattenDeep: YG, flattenDepth: XG, fromPairs: sJ, head: qi, indexOf: jJ, initial: Nn, intersection: CJ, intersectionBy: TJ, intersectionWith: OJ, join: fQ, last: Dt, lastIndexOf: yQ, nth: qQ, pull: $Y, pullAll: bL, pullAllBy: TY, pullAllWith: OY, pullAt: MY, remove: GY, reverse: ob, slice: dX, sortedIndex: xX, sortedIndexBy: _X, sortedIndexOf: jX, sortedLastIndex: SX, sortedLastIndexBy: CX, sortedLastIndexOf: $X, sortedUniq: TX, sortedUniqBy: OX, tail: VX, take: UX, takeRight: qX, takeRightWhile: HX, takeWhile: WX, union: $Z, unionBy: OZ, unionWith: EZ, uniq: AZ, uniqBy: MZ, uniqWith: PZ, unzip: gx, unzipWith: NL, without: UZ, xor: JZ, xorBy: YZ, xorWith: XZ, zip: ZZ, zipObject: eee, zipObjectDeep: tee, zipWith: ree }, yr = { countBy: rG, each: A3, eachRight: tb, every: RG, filter: BG, find: VG, findLast: WG, flatMap: GG, flatMapDeep: JG, flatMapDepth: QG, forEach: A3, forEachRight: tb, groupBy: wp, includes: xJ, invokeMap: FJ, keyBy: vQ, map: bp, orderBy: YQ, partition: yL, reduce: qY, reduceRight: WY, reject: KY, sample: nX, sampleSize: oX, shuffle: cX, size: fX, some: mX, sortBy: SL }, iee = { now: nm }, Xr = { after: Eq, ary: PI, before: qI, bind: HI, bindKey: fW, curry: Zk, curryRight: ex, debounce: gp, defer: vG, delay: gG, flip: ZG, memoize: pp, negate: Mh, once: QQ, overArgs: nY, partial: gL, partialRight: wY, rearg: UY, rest: YY, spread: MX, throttle: OL, unary: wZ, wrap: qZ }, ln = { castArray: EW, clone: yK, cloneDeep: bK, cloneDeepWith: _N, cloneWith: xK, conformsTo: XK, eq: is, gt: dJ, gte: hJ, isArguments: sc, isArray: Cn, isArrayBuffer: BJ, isArrayLike: Po, isArrayLikeObject: ui, isBoolean: zJ, isBuffer: tl, isDate: VJ, isElement: UJ, isEmpty: Tn, isEqual: Dn, isEqualWith: KJ, isError: Lk, isFinite: JJ, isFunction: gu, isInteger: nL, isLength: Xg, isMap: yN, isMatch: QJ, isMatchWith: YJ, isNaN: ZJ, isNative: tQ, isNil: nQ, isNull: rQ, isNumber: rL, isObject: zr, isObjectLike: ni, isPlainObject: vp, isRegExp: sx, isSafeInteger: oQ, isSet: bN, isString: a0, isSymbol: Ho, isTypedArray: ld, isUndefined: aQ, isWeakMap: sQ, isWeakSet: uQ, lt: xQ, lte: _Q, toArray: sL, toFinite: au, toInteger: Mn, toLength: HN, toNumber: da, toPlainObject: IN, toSafeInteger: fZ, toString: dr }, uo = { add: xq, ceil: PW, divide: SG, floor: eJ, max: $Q, maxBy: TQ, mean: EQ, meanBy: AQ, min: DQ, minBy: Bd, multiply: FQ, round: eX, subtract: FX, sum: BX, sumBy: zX }, oee = RW, aee = bJ, see = DY, bn = { assign: NH, assignIn: r3, assignInWith: Lm, assignWith: zH, at: ZH, create: iG, defaults: fG, defaultsDeep: hG, entries: M3, entriesIn: P3, extend: r3, extendWith: Lm, findKey: UG, findLastKey: KG, forIn: rJ, forInRight: iJ, forOwn: oJ, forOwnRight: aJ, functions: uJ, functionsIn: lJ, get: Ik, has: mJ, hasIn: Qk, invert: MJ, invertBy: LJ, invoke: RJ, keys: Si, keysIn: Ao, mapKeys: jQ, mapValues: iL, merge: PQ, mergeWith: LN, omit: GQ, omitBy: JQ, pick: _Y, pickBy: cL, result: XY, set: aX, setWith: sX, toPairs: M3, toPairsIn: P3, transform: hZ, unset: NZ, update: RZ, updateWith: DZ, values: dd, valuesIn: zZ }, us = { at: WZ, chain: cN, commit: _K, lodash: ne, next: UQ, plant: jY, reverse: GZ, tap: KX, thru: Ph, toIterator: sZ, toJSON: by, value: by, valueOf: by, wrapperChain: KZ }, ar = { camelCase: OW, capitalize: YI, deburr: XI, endsWith: AG, escape: VN, escapeRegExp: NG, kebabCase: hQ, lowerCase: wQ, lowerFirst: kQ, pad: pY, padEnd: vY, padStart: mY, parseInt: bY, repeat: JY, replace: QY, snakeCase: pX, split: EX, startCase: IX, startsWith: NX, template: rZ, templateSettings: ab, toLower: uZ, toUpper: dZ, trim: pZ, trimEnd: vZ, trimStart: gZ, truncate: bZ, unescape: _Z, upperCase: BZ, upperFirst: Fk, words: lN }, sr = { attempt: UI, bindAll: cW, cond: QK, conforms: YK, constant: Tk, defaultTo: uG, flow: tJ, flowRight: nJ, identity: vo, iteratee: lQ, matches: SQ, matchesProperty: CQ, method: NQ, methodOf: RQ, mixin: aL, noop: _r, nthArg: HQ, over: XQ, overEvery: rY, overSome: iY, property: ON, propertyOf: SY, range: xL, rangeRight: zY, stubArray: Uk, stubFalse: Ak, stubObject: LX, stubString: RX, stubTrue: DX, times: EL, toPath: lZ, uniqueId: uc }, uee = Math.max, lee = Math.min, cee = Math.min;
|
|
5732
5732
|
/**
|
|
5733
5733
|
* @license
|
|
5734
5734
|
* Lodash (Custom Build) <https://lodash.com/>
|
|
@@ -5747,7 +5747,7 @@ var wy, U3 = 4294967295, fee = Array.prototype, q3 = Object.prototype.hasOwnProp
|
|
|
5747
5747
|
return e(t, n, r);
|
|
5748
5748
|
};
|
|
5749
5749
|
}(aL);
|
|
5750
|
-
ne.after = Xr.after, ne.ary = Xr.ary, ne.assign = bn.assign, ne.assignIn = bn.assignIn, ne.assignInWith = bn.assignInWith, ne.assignWith = bn.assignWith, ne.at = bn.at, ne.before = Xr.before, ne.bind = Xr.bind, ne.bindAll = sr.bindAll, ne.bindKey = Xr.bindKey, ne.castArray = ln.castArray, ne.chain =
|
|
5750
|
+
ne.after = Xr.after, ne.ary = Xr.ary, ne.assign = bn.assign, ne.assignIn = bn.assignIn, ne.assignInWith = bn.assignInWith, ne.assignWith = bn.assignWith, ne.at = bn.at, ne.before = Xr.before, ne.bind = Xr.bind, ne.bindAll = sr.bindAll, ne.bindKey = Xr.bindKey, ne.castArray = ln.castArray, ne.chain = us.chain, ne.chunk = zt.chunk, ne.compact = zt.compact, ne.concat = zt.concat, ne.cond = sr.cond, ne.conforms = sr.conforms, ne.constant = sr.constant, ne.countBy = yr.countBy, ne.create = bn.create, ne.curry = Xr.curry, ne.curryRight = Xr.curryRight, ne.debounce = Xr.debounce, ne.defaults = bn.defaults, ne.defaultsDeep = bn.defaultsDeep, ne.defer = Xr.defer, ne.delay = Xr.delay, ne.difference = zt.difference, ne.differenceBy = zt.differenceBy, ne.differenceWith = zt.differenceWith, ne.drop = zt.drop, ne.dropRight = zt.dropRight, ne.dropRightWhile = zt.dropRightWhile, ne.dropWhile = zt.dropWhile, ne.fill = zt.fill, ne.filter = yr.filter, ne.flatMap = yr.flatMap, ne.flatMapDeep = yr.flatMapDeep, ne.flatMapDepth = yr.flatMapDepth, ne.flatten = zt.flatten, ne.flattenDeep = zt.flattenDeep, ne.flattenDepth = zt.flattenDepth, ne.flip = Xr.flip, ne.flow = sr.flow, ne.flowRight = sr.flowRight, ne.fromPairs = zt.fromPairs, ne.functions = bn.functions, ne.functionsIn = bn.functionsIn, ne.groupBy = yr.groupBy, ne.initial = zt.initial, ne.intersection = zt.intersection, ne.intersectionBy = zt.intersectionBy, ne.intersectionWith = zt.intersectionWith, ne.invert = bn.invert, ne.invertBy = bn.invertBy, ne.invokeMap = yr.invokeMap, ne.iteratee = sr.iteratee, ne.keyBy = yr.keyBy, ne.keys = Si, ne.keysIn = bn.keysIn, ne.map = yr.map, ne.mapKeys = bn.mapKeys, ne.mapValues = bn.mapValues, ne.matches = sr.matches, ne.matchesProperty = sr.matchesProperty, ne.memoize = Xr.memoize, ne.merge = bn.merge, ne.mergeWith = bn.mergeWith, ne.method = sr.method, ne.methodOf = sr.methodOf, ne.mixin = ky, ne.negate = Mh, ne.nthArg = sr.nthArg, ne.omit = bn.omit, ne.omitBy = bn.omitBy, ne.once = Xr.once, ne.orderBy = yr.orderBy, ne.over = sr.over, ne.overArgs = Xr.overArgs, ne.overEvery = sr.overEvery, ne.overSome = sr.overSome, ne.partial = Xr.partial, ne.partialRight = Xr.partialRight, ne.partition = yr.partition, ne.pick = bn.pick, ne.pickBy = bn.pickBy, ne.property = sr.property, ne.propertyOf = sr.propertyOf, ne.pull = zt.pull, ne.pullAll = zt.pullAll, ne.pullAllBy = zt.pullAllBy, ne.pullAllWith = zt.pullAllWith, ne.pullAt = zt.pullAt, ne.range = sr.range, ne.rangeRight = sr.rangeRight, ne.rearg = Xr.rearg, ne.reject = yr.reject, ne.remove = zt.remove, ne.rest = Xr.rest, ne.reverse = zt.reverse, ne.sampleSize = yr.sampleSize, ne.set = bn.set, ne.setWith = bn.setWith, ne.shuffle = yr.shuffle, ne.slice = zt.slice, ne.sortBy = yr.sortBy, ne.sortedUniq = zt.sortedUniq, ne.sortedUniqBy = zt.sortedUniqBy, ne.split = ar.split, ne.spread = Xr.spread, ne.tail = zt.tail, ne.take = zt.take, ne.takeRight = zt.takeRight, ne.takeRightWhile = zt.takeRightWhile, ne.takeWhile = zt.takeWhile, ne.tap = us.tap, ne.throttle = Xr.throttle, ne.thru = Ph, ne.toArray = ln.toArray, ne.toPairs = bn.toPairs, ne.toPairsIn = bn.toPairsIn, ne.toPath = sr.toPath, ne.toPlainObject = ln.toPlainObject, ne.transform = bn.transform, ne.unary = Xr.unary, ne.union = zt.union, ne.unionBy = zt.unionBy, ne.unionWith = zt.unionWith, ne.uniq = zt.uniq, ne.uniqBy = zt.uniqBy, ne.uniqWith = zt.uniqWith, ne.unset = bn.unset, ne.unzip = zt.unzip, ne.unzipWith = zt.unzipWith, ne.update = bn.update, ne.updateWith = bn.updateWith, ne.values = bn.values, ne.valuesIn = bn.valuesIn, ne.without = zt.without, ne.words = ar.words, ne.wrap = Xr.wrap, ne.xor = zt.xor, ne.xorBy = zt.xorBy, ne.xorWith = zt.xorWith, ne.zip = zt.zip, ne.zipObject = zt.zipObject, ne.zipObjectDeep = zt.zipObjectDeep, ne.zipWith = zt.zipWith, ne.entries = bn.toPairs, ne.entriesIn = bn.toPairsIn, ne.extend = bn.assignIn, ne.extendWith = bn.assignInWith, ky(ne, ne), ne.add = uo.add, ne.attempt = sr.attempt, ne.camelCase = ar.camelCase, ne.capitalize = ar.capitalize, ne.ceil = uo.ceil, ne.clamp = oee, ne.clone = ln.clone, ne.cloneDeep = ln.cloneDeep, ne.cloneDeepWith = ln.cloneDeepWith, ne.cloneWith = ln.cloneWith, ne.conformsTo = ln.conformsTo, ne.deburr = ar.deburr, ne.defaultTo = sr.defaultTo, ne.divide = uo.divide, ne.endsWith = ar.endsWith, ne.eq = ln.eq, ne.escape = ar.escape, ne.escapeRegExp = ar.escapeRegExp, ne.every = yr.every, ne.find = yr.find, ne.findIndex = zt.findIndex, ne.findKey = bn.findKey, ne.findLast = yr.findLast, ne.findLastIndex = zt.findLastIndex, ne.findLastKey = bn.findLastKey, ne.floor = uo.floor, ne.forEach = yr.forEach, ne.forEachRight = yr.forEachRight, ne.forIn = bn.forIn, ne.forInRight = bn.forInRight, ne.forOwn = bn.forOwn, ne.forOwnRight = bn.forOwnRight, ne.get = bn.get, ne.gt = ln.gt, ne.gte = ln.gte, ne.has = bn.has, ne.hasIn = bn.hasIn, ne.head = zt.head, ne.identity = vo, ne.includes = yr.includes, ne.indexOf = zt.indexOf, ne.inRange = aee, ne.invoke = bn.invoke, ne.isArguments = ln.isArguments, ne.isArray = Cn, ne.isArrayBuffer = ln.isArrayBuffer, ne.isArrayLike = ln.isArrayLike, ne.isArrayLikeObject = ln.isArrayLikeObject, ne.isBoolean = ln.isBoolean, ne.isBuffer = ln.isBuffer, ne.isDate = ln.isDate, ne.isElement = ln.isElement, ne.isEmpty = ln.isEmpty, ne.isEqual = ln.isEqual, ne.isEqualWith = ln.isEqualWith, ne.isError = ln.isError, ne.isFinite = ln.isFinite, ne.isFunction = ln.isFunction, ne.isInteger = ln.isInteger, ne.isLength = ln.isLength, ne.isMap = ln.isMap, ne.isMatch = ln.isMatch, ne.isMatchWith = ln.isMatchWith, ne.isNaN = ln.isNaN, ne.isNative = ln.isNative, ne.isNil = ln.isNil, ne.isNull = ln.isNull, ne.isNumber = ln.isNumber, ne.isObject = zr, ne.isObjectLike = ln.isObjectLike, ne.isPlainObject = ln.isPlainObject, ne.isRegExp = ln.isRegExp, ne.isSafeInteger = ln.isSafeInteger, ne.isSet = ln.isSet, ne.isString = ln.isString, ne.isSymbol = ln.isSymbol, ne.isTypedArray = ln.isTypedArray, ne.isUndefined = ln.isUndefined, ne.isWeakMap = ln.isWeakMap, ne.isWeakSet = ln.isWeakSet, ne.join = zt.join, ne.kebabCase = ar.kebabCase, ne.last = Dt, ne.lastIndexOf = zt.lastIndexOf, ne.lowerCase = ar.lowerCase, ne.lowerFirst = ar.lowerFirst, ne.lt = ln.lt, ne.lte = ln.lte, ne.max = uo.max, ne.maxBy = uo.maxBy, ne.mean = uo.mean, ne.meanBy = uo.meanBy, ne.min = uo.min, ne.minBy = uo.minBy, ne.stubArray = sr.stubArray, ne.stubFalse = sr.stubFalse, ne.stubObject = sr.stubObject, ne.stubString = sr.stubString, ne.stubTrue = sr.stubTrue, ne.multiply = uo.multiply, ne.nth = zt.nth, ne.noop = sr.noop, ne.now = iee.now, ne.pad = ar.pad, ne.padEnd = ar.padEnd, ne.padStart = ar.padStart, ne.parseInt = ar.parseInt, ne.random = see, ne.reduce = yr.reduce, ne.reduceRight = yr.reduceRight, ne.repeat = ar.repeat, ne.replace = ar.replace, ne.result = bn.result, ne.round = uo.round, ne.sample = yr.sample, ne.size = yr.size, ne.snakeCase = ar.snakeCase, ne.some = yr.some, ne.sortedIndex = zt.sortedIndex, ne.sortedIndexBy = zt.sortedIndexBy, ne.sortedIndexOf = zt.sortedIndexOf, ne.sortedLastIndex = zt.sortedLastIndex, ne.sortedLastIndexBy = zt.sortedLastIndexBy, ne.sortedLastIndexOf = zt.sortedLastIndexOf, ne.startCase = ar.startCase, ne.startsWith = ar.startsWith, ne.subtract = uo.subtract, ne.sum = uo.sum, ne.sumBy = uo.sumBy, ne.template = ar.template, ne.times = sr.times, ne.toFinite = ln.toFinite, ne.toInteger = Mn, ne.toLength = ln.toLength, ne.toLower = ar.toLower, ne.toNumber = ln.toNumber, ne.toSafeInteger = ln.toSafeInteger, ne.toString = ln.toString, ne.toUpper = ar.toUpper, ne.trim = ar.trim, ne.trimEnd = ar.trimEnd, ne.trimStart = ar.trimStart, ne.truncate = ar.truncate, ne.unescape = ar.unescape, ne.uniqueId = sr.uniqueId, ne.upperCase = ar.upperCase, ne.upperFirst = ar.upperFirst, ne.each = yr.forEach, ne.eachRight = yr.forEachRight, ne.first = zt.head, ky(ne, (wy = {}, Ts(ne, function(e, t) {
|
|
5751
5751
|
q3.call(ne.prototype, t) || (wy[t] = e);
|
|
5752
5752
|
}), wy), { chain: !1 }), ne.VERSION = "4.17.21", (ne.templateSettings = ar.templateSettings).imports._ = ne, ra(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(e) {
|
|
5753
5753
|
ne[e].placeholder = ne;
|
|
@@ -5877,7 +5877,7 @@ ne.after = Xr.after, ne.ary = Xr.ary, ne.assign = bn.assign, ne.assignIn = bn.as
|
|
|
5877
5877
|
p[d++] = m;
|
|
5878
5878
|
}
|
|
5879
5879
|
return p;
|
|
5880
|
-
}, ne.prototype.at =
|
|
5880
|
+
}, ne.prototype.at = us.at, ne.prototype.chain = us.wrapperChain, ne.prototype.commit = us.commit, ne.prototype.next = us.next, ne.prototype.plant = us.plant, ne.prototype.reverse = us.reverse, ne.prototype.toJSON = ne.prototype.valueOf = ne.prototype.value = us.value, ne.prototype.first = ne.prototype.head, H3 && (ne.prototype[H3] = us.toIterator);
|
|
5881
5881
|
var hee = 1e4, pee = [];
|
|
5882
5882
|
function sb(e) {
|
|
5883
5883
|
var t = arguments.length > 1 && arguments[1] !== void 0 && arguments[1], n = {};
|
|
@@ -5890,7 +5890,7 @@ function sb(e) {
|
|
|
5890
5890
|
}
|
|
5891
5891
|
for (var i = Math.min(e.length, hee), o = 0; o < i; o++)
|
|
5892
5892
|
r(e[o], pee);
|
|
5893
|
-
return Object.keys(n).sort().map(
|
|
5893
|
+
return Object.keys(n).sort().map(es);
|
|
5894
5894
|
}
|
|
5895
5895
|
function DL(e, t, n) {
|
|
5896
5896
|
if (!(t <= e))
|
|
@@ -6149,7 +6149,7 @@ function YL(e) {
|
|
|
6149
6149
|
var t = xx(e, function(r) {
|
|
6150
6150
|
return !(r == null || !r.hasAttribute) && r.hasAttribute("data-path");
|
|
6151
6151
|
}), n = t == null ? void 0 : t.getAttribute("data-path");
|
|
6152
|
-
return n ?
|
|
6152
|
+
return n ? es(decodeURIComponent(n)) : null;
|
|
6153
6153
|
}
|
|
6154
6154
|
function Cee(e) {
|
|
6155
6155
|
var t = e.allElements, n = e.currentElement, r = e.direction, i = e.hasPrio, o = i === void 0 ? function() {
|
|
@@ -7081,7 +7081,7 @@ function tR(e, t, n) {
|
|
|
7081
7081
|
return e;
|
|
7082
7082
|
}
|
|
7083
7083
|
function nR(e, t, n) {
|
|
7084
|
-
var r =
|
|
7084
|
+
var r = Qa(e, n), i = n.reduce(function(o, a) {
|
|
7085
7085
|
return sI(a) ? dE(r, o, a) : uI(a) ? hE(r, o, a) : vk(a) ? function(s, u, l) {
|
|
7086
7086
|
var f = l.path, c = Ty(s, u.expandedMap), d = Ty(s, u.enforceStringMap), h = Ty(s, u.visibleSectionsMap);
|
|
7087
7087
|
return Nr(l.value) || fr(l.value) || delete c[f], fr(l.value) || delete h[f], (Nr(l.value) || fr(l.value)) && delete d[f], _e(_e({}, u), {}, { expandedMap: c, enforceStringMap: d, visibleSectionsMap: h });
|
|
@@ -7144,7 +7144,7 @@ function hf(e, t, n, r) {
|
|
|
7144
7144
|
for (var i = t.length, o = yt(t), a = [], s = 0, u = Object.keys(e); s < u.length; s++) {
|
|
7145
7145
|
var l = u[s];
|
|
7146
7146
|
if (Mf(l, o)) {
|
|
7147
|
-
var f =
|
|
7147
|
+
var f = es(l), c = vi(f[i]);
|
|
7148
7148
|
c >= n && (f[i] = String(c + r), a.push({ oldPointer: l, newPointer: yt(f), value: e[l] }));
|
|
7149
7149
|
}
|
|
7150
7150
|
}
|
|
@@ -7235,9 +7235,9 @@ function Oy(e, t, n) {
|
|
|
7235
7235
|
}
|
|
7236
7236
|
function Pu(e, t, n) {
|
|
7237
7237
|
var r = At(e, n);
|
|
7238
|
-
return r === void 0 ? t : ia(e, t, n, VL({ json: r }, aI) ?
|
|
7238
|
+
return r === void 0 ? t : ia(e, t, n, VL({ json: r }, aI) ? gs : ih);
|
|
7239
7239
|
}
|
|
7240
|
-
function
|
|
7240
|
+
function gs(e) {
|
|
7241
7241
|
return e.length === 0 || e.length === 1 && e[0] === "0";
|
|
7242
7242
|
}
|
|
7243
7243
|
function ih() {
|
|
@@ -7791,11 +7791,11 @@ function pR(e, t) {
|
|
|
7791
7791
|
function vR(e, t) {
|
|
7792
7792
|
return hI(e, t, { before: function(n, r, i) {
|
|
7793
7793
|
if (uI(r)) {
|
|
7794
|
-
var o =
|
|
7794
|
+
var o = es(r.path);
|
|
7795
7795
|
return { revertOperations: [].concat(tn(i), tn(bE(n, o))) };
|
|
7796
7796
|
}
|
|
7797
7797
|
if (cf(r)) {
|
|
7798
|
-
var a =
|
|
7798
|
+
var a = es(r.from);
|
|
7799
7799
|
return { revertOperations: [].concat(tn(i), tn(bE(n, a))) };
|
|
7800
7800
|
}
|
|
7801
7801
|
return { revertOperations: i };
|
|
@@ -7841,12 +7841,12 @@ function mR(e, t) {
|
|
|
7841
7841
|
i.push("");
|
|
7842
7842
|
for (var h = 0, p = c; h < p.length; h++) {
|
|
7843
7843
|
var v = p[h];
|
|
7844
|
-
if (i[d] = v, wE(v, s, i,
|
|
7844
|
+
if (i[d] = v, wE(v, s, i, Ja.key, o), a(s, u[v]), r.length >= n)
|
|
7845
7845
|
return;
|
|
7846
7846
|
}
|
|
7847
7847
|
i.pop();
|
|
7848
7848
|
} else
|
|
7849
|
-
wE(String(u), s, i,
|
|
7849
|
+
wE(String(u), s, i, Ja.value, o);
|
|
7850
7850
|
}(e.toLowerCase(), t), r;
|
|
7851
7851
|
}
|
|
7852
7852
|
function wE(e, t, n, r, i) {
|
|
@@ -7866,11 +7866,11 @@ function kE(e, t, n) {
|
|
|
7866
7866
|
}
|
|
7867
7867
|
function yte(e, t, n, r, i) {
|
|
7868
7868
|
var o = r.field, a = r.path, s = r.start, u = r.end;
|
|
7869
|
-
if (o ===
|
|
7869
|
+
if (o === Ja.key) {
|
|
7870
7870
|
var l = Nn(a), f = At(e, l), c = Dt(a), d = Cp(l, Object.keys(f), c, db(c, n, s, u));
|
|
7871
7871
|
return { newSelection: Lf(e, d), operations: d };
|
|
7872
7872
|
}
|
|
7873
|
-
if (o ===
|
|
7873
|
+
if (o === Ja.value) {
|
|
7874
7874
|
var h = At(e, a);
|
|
7875
7875
|
if (h === void 0)
|
|
7876
7876
|
throw new Error("Cannot replace: path not found ".concat(yt(a)));
|
|
@@ -7885,16 +7885,16 @@ function bte(e, t, n, r, i) {
|
|
|
7885
7885
|
s !== 0 && l.field === u.field && Dn(l.path, u.path) ? Dt(a).items.push(l) : a.push({ path: l.path, field: l.field, items: [l] });
|
|
7886
7886
|
}
|
|
7887
7887
|
a.sort(function(d, h) {
|
|
7888
|
-
return d.field !== h.field ? d.field ===
|
|
7888
|
+
return d.field !== h.field ? d.field === Ja.key ? 1 : -1 : h.path.length - d.path.length;
|
|
7889
7889
|
});
|
|
7890
7890
|
var f = [], c = void 0;
|
|
7891
7891
|
return a.forEach(function(d) {
|
|
7892
7892
|
var h = d.field, p = d.path, v = d.items;
|
|
7893
|
-
if (h ===
|
|
7893
|
+
if (h === Ja.key) {
|
|
7894
7894
|
var m = Nn(p), g = At(e, m), y = Dt(p), b = Cp(m, Object.keys(g), y, kE(y, r, v));
|
|
7895
7895
|
f = f.concat(b), c = Lf(e, b);
|
|
7896
7896
|
} else {
|
|
7897
|
-
if (h !==
|
|
7897
|
+
if (h !== Ja.value)
|
|
7898
7898
|
throw new Error("Cannot replace: unknown type of search result field ".concat(h));
|
|
7899
7899
|
var w = At(e, p);
|
|
7900
7900
|
if (w === void 0)
|
|
@@ -7909,14 +7909,14 @@ function xE(e) {
|
|
|
7909
7909
|
}
|
|
7910
7910
|
function wte(e, t) {
|
|
7911
7911
|
var n, r = e == null || (n = e[t]) === null || n === void 0 ? void 0 : n.filter(function(i) {
|
|
7912
|
-
return i.field ===
|
|
7912
|
+
return i.field === Ja.key;
|
|
7913
7913
|
});
|
|
7914
7914
|
if (r && r.length !== 0)
|
|
7915
7915
|
return r;
|
|
7916
7916
|
}
|
|
7917
7917
|
function _E(e, t) {
|
|
7918
7918
|
var n, r = e == null || (n = e[t]) === null || n === void 0 ? void 0 : n.filter(function(i) {
|
|
7919
|
-
return i.field ===
|
|
7919
|
+
return i.field === Ja.value;
|
|
7920
7920
|
});
|
|
7921
7921
|
if (r && r.length !== 0)
|
|
7922
7922
|
return r;
|
|
@@ -8567,7 +8567,7 @@ function CR() {
|
|
|
8567
8567
|
function Es(e) {
|
|
8568
8568
|
return e instanceof Fo(e).HTMLElement;
|
|
8569
8569
|
}
|
|
8570
|
-
function
|
|
8570
|
+
function Ya(e) {
|
|
8571
8571
|
return e instanceof Fo(e).Element;
|
|
8572
8572
|
}
|
|
8573
8573
|
function $R(e) {
|
|
@@ -8599,7 +8599,7 @@ function Ox(e) {
|
|
|
8599
8599
|
return ["html", "body", "#document"].includes(al(e));
|
|
8600
8600
|
}
|
|
8601
8601
|
function TR(e) {
|
|
8602
|
-
return
|
|
8602
|
+
return Ya(e) ? e : e.contextElement;
|
|
8603
8603
|
}
|
|
8604
8604
|
var OR = { x: 1, y: 1 };
|
|
8605
8605
|
function mf(e) {
|
|
@@ -8613,10 +8613,10 @@ function fc(e, t, n, r) {
|
|
|
8613
8613
|
var i, o;
|
|
8614
8614
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
8615
8615
|
var a = e.getBoundingClientRect(), s = TR(e), u = OR;
|
|
8616
|
-
t && (r ?
|
|
8616
|
+
t && (r ? Ya(r) && (u = mf(r)) : u = mf(e));
|
|
8617
8617
|
var l = s ? Fo(s) : window, f = gb() && n, c = (a.left + (f && ((i = l.visualViewport) == null ? void 0 : i.offsetLeft) || 0)) / u.x, d = (a.top + (f && ((o = l.visualViewport) == null ? void 0 : o.offsetTop) || 0)) / u.y, h = a.width / u.x, p = a.height / u.y;
|
|
8618
8618
|
if (s)
|
|
8619
|
-
for (var v = Fo(s), m = r &&
|
|
8619
|
+
for (var v = Fo(s), m = r && Ya(r) ? Fo(r) : r, g = v.frameElement; g && r && m !== v; ) {
|
|
8620
8620
|
var y = mf(g), b = g.getBoundingClientRect(), w = getComputedStyle(g);
|
|
8621
8621
|
b.x += (g.clientLeft + parseFloat(w.paddingLeft)) * y.x, b.y += (g.clientTop + parseFloat(w.paddingTop)) * y.y, c *= y.x, d *= y.y, h *= y.x, p *= y.y, c += b.x, d += b.y, g = Fo(g).frameElement;
|
|
8622
8622
|
}
|
|
@@ -8626,7 +8626,7 @@ function Wu(e) {
|
|
|
8626
8626
|
return (($R(e) ? e.ownerDocument : e.document) || window.document).documentElement;
|
|
8627
8627
|
}
|
|
8628
8628
|
function b0(e) {
|
|
8629
|
-
return
|
|
8629
|
+
return Ya(e) ? { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop } : { scrollLeft: e.pageXOffset, scrollTop: e.pageYOffset };
|
|
8630
8630
|
}
|
|
8631
8631
|
function ER(e) {
|
|
8632
8632
|
return fc(Wu(e)).left + b0(e).scrollLeft;
|
|
@@ -8664,7 +8664,7 @@ function PE(e, t, n) {
|
|
|
8664
8664
|
var l = Wu(u), f = b0(u), c = u.ownerDocument.body, d = oh(l.scrollWidth, l.clientWidth, c.scrollWidth, c.clientWidth), h = oh(l.scrollHeight, l.clientHeight, c.scrollHeight, c.clientHeight), p = -f.scrollLeft + ER(u), v = -f.scrollTop;
|
|
8665
8665
|
return Os(c).direction === "rtl" && (p += oh(l.clientWidth, c.clientWidth) - d), { width: d, height: h, x: p, y: v };
|
|
8666
8666
|
}(Wu(e));
|
|
8667
|
-
else if (
|
|
8667
|
+
else if (Ya(t))
|
|
8668
8668
|
r = function(u, l) {
|
|
8669
8669
|
var f = fc(u, !0, l === "fixed"), c = f.top + u.clientTop, d = f.left + u.clientLeft, h = Es(u) ? mf(u) : { x: 1, y: 1 };
|
|
8670
8670
|
return { width: u.clientWidth * h.x, height: u.clientHeight * h.y, x: d * h.x, y: c * h.y };
|
|
@@ -8710,8 +8710,8 @@ var dne = { getClippingRect: function(e) {
|
|
|
8710
8710
|
if (c)
|
|
8711
8711
|
return c;
|
|
8712
8712
|
for (var d = ah(l).filter(function(y) {
|
|
8713
|
-
return
|
|
8714
|
-
}), h = null, p = Os(l).position === "fixed", v = p ? Fh(l) : l;
|
|
8713
|
+
return Ya(y) && al(y) !== "body";
|
|
8714
|
+
}), h = null, p = Os(l).position === "fixed", v = p ? Fh(l) : l; Ya(v) && !Ox(v); ) {
|
|
8715
8715
|
var m = Os(v), g = mb(v);
|
|
8716
8716
|
m.position === "fixed" ? h = null : (p ? g || h : g || m.position !== "static" || !h || !["absolute", "fixed"].includes(h.position)) ? h = m : d = d.filter(function(y) {
|
|
8717
8717
|
return y !== v;
|
|
@@ -8733,7 +8733,7 @@ var dne = { getClippingRect: function(e) {
|
|
|
8733
8733
|
s = mf(n), u.x = l.x + n.clientLeft, u.y = l.y + n.clientTop;
|
|
8734
8734
|
}
|
|
8735
8735
|
return { width: t.width * s.x, height: t.height * s.y, x: t.x * s.x - a.scrollLeft * s.x + u.x, y: t.y * s.y - a.scrollTop * s.y + u.y };
|
|
8736
|
-
}, isElement:
|
|
8736
|
+
}, isElement: Ya, getDimensions: function(e) {
|
|
8737
8737
|
return Es(e) ? SR(e) : e.getBoundingClientRect();
|
|
8738
8738
|
}, getOffsetParent: NE, getDocumentElement: Wu, getScale: mf, getElementRects: function(e) {
|
|
8739
8739
|
var t = this;
|
|
@@ -8791,7 +8791,7 @@ function pne(e) {
|
|
|
8791
8791
|
if (c(), h !== !1)
|
|
8792
8792
|
return function(p, v, m, g) {
|
|
8793
8793
|
g === void 0 && (g = {});
|
|
8794
|
-
var y = g, b = y.ancestorScroll, w = b === void 0 || b, C = y.ancestorResize, k = C === void 0 || C, T = y.elementResize, L = T === void 0 || T, A = y.animationFrame, _ = A !== void 0 && A, S = w && !_, O = S || k ? [].concat(tn(
|
|
8794
|
+
var y = g, b = y.ancestorScroll, w = b === void 0 || b, C = y.ancestorResize, k = C === void 0 || C, T = y.elementResize, L = T === void 0 || T, A = y.animationFrame, _ = A !== void 0 && A, S = w && !_, O = S || k ? [].concat(tn(Ya(p) ? ah(p) : p.contextElement ? ah(p.contextElement) : []), tn(ah(v))) : [];
|
|
8795
8795
|
O.forEach(function(z) {
|
|
8796
8796
|
S && z.addEventListener("scroll", m, { passive: !0 }), k && z.addEventListener("resize", m);
|
|
8797
8797
|
});
|
|
@@ -8800,7 +8800,7 @@ function pne(e) {
|
|
|
8800
8800
|
var R = !0;
|
|
8801
8801
|
$ = new ResizeObserver(function() {
|
|
8802
8802
|
R || m(), R = !1;
|
|
8803
|
-
}),
|
|
8803
|
+
}), Ya(p) && !_ && $.observe(p), Ya(p) || !p.contextElement || _ || $.observe(p.contextElement), $.observe(v);
|
|
8804
8804
|
}
|
|
8805
8805
|
var q = _ ? fc(p) : null;
|
|
8806
8806
|
return _ && function z() {
|
|
@@ -9667,7 +9667,7 @@ function Wne(e, t, n) {
|
|
|
9667
9667
|
var Ht = l[Ot];
|
|
9668
9668
|
Ht && Ht.selectable === !1 && (xe !== 1 && xe !== -1 || xr(xe));
|
|
9669
9669
|
}
|
|
9670
|
-
var so = ja,
|
|
9670
|
+
var so = ja, ss = ja;
|
|
9671
9671
|
function ja(xe) {
|
|
9672
9672
|
return { update: function(Ht) {
|
|
9673
9673
|
Ht.scroll && (Xt(), xe.scrollIntoView({ behavior: "auto", block: "nearest" }));
|
|
@@ -9796,7 +9796,7 @@ function Wne(e, t, n) {
|
|
|
9796
9796
|
}, ii, Ir, function(xe, Ht, Pn) {
|
|
9797
9797
|
if (!j)
|
|
9798
9798
|
return Ht && Ht[Pn] === xe[Pn];
|
|
9799
|
-
}, so,
|
|
9799
|
+
}, so, ss, Yo, Sa, k, be, A, S, F, R, Fe, Q, pe, qe, Ge, pt, Qt, Gn, Pt, He, function() {
|
|
9800
9800
|
return l;
|
|
9801
9801
|
}, re, ke, at, Jt, Pe, Mt, Et, ae, Ye, ft, p, v, m, Xn, C, w, function(xe) {
|
|
9802
9802
|
Fp.call(this, e, xe);
|
|
@@ -10423,7 +10423,7 @@ function dre(e, t, n) {
|
|
|
10423
10423
|
v.onMouseDown && v.onMouseDown();
|
|
10424
10424
|
}];
|
|
10425
10425
|
}
|
|
10426
|
-
var
|
|
10426
|
+
var os = function(e) {
|
|
10427
10427
|
Ve(n, Nt);
|
|
10428
10428
|
var t = Ue(n);
|
|
10429
10429
|
function n(r) {
|
|
@@ -10903,7 +10903,7 @@ function Lre(e) {
|
|
|
10903
10903
|
}
|
|
10904
10904
|
function Rre(e) {
|
|
10905
10905
|
var t, n;
|
|
10906
|
-
return t = new
|
|
10906
|
+
return t = new os({ props: { type: "success", message: "JSON is valid now and can be parsed.", actions: e[6] } }), { c: function() {
|
|
10907
10907
|
De(t.$$.fragment);
|
|
10908
10908
|
}, m: function(r, i) {
|
|
10909
10909
|
Le(t, r, i), n = !0;
|
|
@@ -10920,7 +10920,7 @@ function Rre(e) {
|
|
|
10920
10920
|
}
|
|
10921
10921
|
function Dre(e) {
|
|
10922
10922
|
var t, n;
|
|
10923
|
-
return t = new
|
|
10923
|
+
return t = new os({ props: { type: "error", icon: Sc, message: "Cannot parse JSON: ".concat(e[2].message), actions: e[7] } }), { c: function() {
|
|
10924
10924
|
De(t.$$.fragment);
|
|
10925
10925
|
}, m: function(r, i) {
|
|
10926
10926
|
Le(t, r, i), n = !0;
|
|
@@ -12317,7 +12317,7 @@ function Iy(e) {
|
|
|
12317
12317
|
}
|
|
12318
12318
|
return { operations: s, updatedSelection: void 0, offset: a.offset };
|
|
12319
12319
|
}
|
|
12320
|
-
function
|
|
12320
|
+
function ls(e, t) {
|
|
12321
12321
|
return function(n, r) {
|
|
12322
12322
|
if (n) {
|
|
12323
12323
|
for (var i = {}, o = 0, a = Object.keys(n); o < a.length; o++) {
|
|
@@ -13138,13 +13138,13 @@ function voe(e, t, n) {
|
|
|
13138
13138
|
}, [p, v, m, g, y, b, w, C, k, o, A, S, a, s, u, l, f, r, i, function(I, M, P, N, j, E, D, J, ee) {
|
|
13139
13139
|
var de = Object.keys(M).map(function(we) {
|
|
13140
13140
|
var ye = q1(o, we);
|
|
13141
|
-
return { key: we, value: M[we], path: O(I.concat(we)), pointer: ye, expandedMap:
|
|
13141
|
+
return { key: we, value: M[we], path: O(I.concat(we)), pointer: ye, expandedMap: ls(P, ye), enforceStringMap: ls(N, ye), visibleSectionsMap: ls(j, ye), validationErrorsMap: ls(E, ye), keySearchResultItemsMap: wte(D, ye), valueSearchResultItemsMap: ls(D, ye), selection: yE(J, ye) };
|
|
13142
13142
|
});
|
|
13143
13143
|
return ee && ee.offset !== 0 && (de = J3(de, ee.selectionStartIndex, ee.selectionItemsCount, ee.offset)), de;
|
|
13144
13144
|
}, function(I, M, P, N, j, E, D, J, ee, de) {
|
|
13145
13145
|
for (var we = P.start, ye = Math.min(P.end, M.length), fe = [], ze = we; ze < ye; ze++) {
|
|
13146
13146
|
var Z = q1(o, ze);
|
|
13147
|
-
fe.push({ index: ze, value: M[ze], path: O(I.concat(String(ze))), pointer: Z, expandedMap:
|
|
13147
|
+
fe.push({ index: ze, value: M[ze], path: O(I.concat(String(ze))), pointer: Z, expandedMap: ls(N, Z), enforceStringMap: ls(j, Z), visibleSectionsMap: ls(E, Z), validationErrorsMap: ls(D, Z), searchResultItemsMap: ls(J, Z), selection: yE(ee, Z) });
|
|
13148
13148
|
}
|
|
13149
13149
|
if (de && de.offset !== 0) {
|
|
13150
13150
|
var Ee = fe.map(function(Se) {
|
|
@@ -13163,7 +13163,7 @@ function voe(e, t, n) {
|
|
|
13163
13163
|
I.stopPropagation(), k.onExpand(v, !0);
|
|
13164
13164
|
}, function(I, M) {
|
|
13165
13165
|
var P = Cp(v, Object.keys(p), I, M);
|
|
13166
|
-
return k.onPatch(P), Dt(
|
|
13166
|
+
return k.onPatch(P), Dt(es(P[0].path));
|
|
13167
13167
|
}, function(I) {
|
|
13168
13168
|
if (!(function(D) {
|
|
13169
13169
|
return D.nodeName === "DIV" && D.contentEditable === "true";
|
|
@@ -14093,7 +14093,7 @@ function rae(e, t, n) {
|
|
|
14093
14093
|
if (!i)
|
|
14094
14094
|
return !1;
|
|
14095
14095
|
if (o.op === "replace") {
|
|
14096
|
-
var s = aa(
|
|
14096
|
+
var s = aa(es(o.path), a), u = s.rowIndex, l = s.columnIndex, f = a.findIndex(function(c) {
|
|
14097
14097
|
return Dn(c, i.path);
|
|
14098
14098
|
});
|
|
14099
14099
|
if (u !== -1 && l !== -1 && l !== f)
|
|
@@ -14538,7 +14538,7 @@ function gae(e) {
|
|
|
14538
14538
|
}
|
|
14539
14539
|
function U4(e) {
|
|
14540
14540
|
var t, n;
|
|
14541
|
-
return t = new
|
|
14541
|
+
return t = new os({ props: { type: "info", message: "You pasted a JSON ".concat(Array.isArray(e[19].contents) ? "array" : "object", " as text"), actions: [{ icon: p0, text: "Paste as JSON instead", onMouseDown: e[46] }, { text: "Leave as is", onClick: e[47] }], onClose: e[78] } }), { c: function() {
|
|
14542
14542
|
De(t.$$.fragment);
|
|
14543
14543
|
}, m: function(r, i) {
|
|
14544
14544
|
Le(t, r, i), n = !0;
|
|
@@ -14555,7 +14555,7 @@ function U4(e) {
|
|
|
14555
14555
|
}
|
|
14556
14556
|
function q4(e) {
|
|
14557
14557
|
var t, n;
|
|
14558
|
-
return t = new
|
|
14558
|
+
return t = new os({ props: { type: "success", message: "The loaded JSON document was invalid but is successfully repaired.", actions: e[0] ? [] : [{ icon: Dh, text: "Ok", onClick: e[8] }, { icon: ol, text: "Repair manually instead", onClick: e[48] }], onClose: e[9] } }), { c: function() {
|
|
14559
14559
|
De(t.$$.fragment);
|
|
14560
14560
|
}, m: function(r, i) {
|
|
14561
14561
|
Le(t, r, i), n = !0;
|
|
@@ -14572,7 +14572,7 @@ function q4(e) {
|
|
|
14572
14572
|
}
|
|
14573
14573
|
function yae(e) {
|
|
14574
14574
|
var t, n, r, i;
|
|
14575
|
-
return t = new
|
|
14575
|
+
return t = new os({ props: { type: "error", message: "The loaded JSON document is invalid and could not be repaired automatically.", actions: e[0] ? [] : [{ icon: ol, text: "Repair manually", onClick: e[48] }] } }), r = new JR({ props: { text: e[12], json: e[11], indentation: e[5], parser: e[3] } }), { c: function() {
|
|
14576
14576
|
De(t.$$.fragment), n = je(), De(r.$$.fragment);
|
|
14577
14577
|
}, m: function(o, a) {
|
|
14578
14578
|
Le(t, o, a), ve(o, n, a), Le(r, o, a), i = !0;
|
|
@@ -14835,7 +14835,7 @@ function kae(e, t, n) {
|
|
|
14835
14835
|
}
|
|
14836
14836
|
function Gn(ae) {
|
|
14837
14837
|
ze || (ze = !0, n(17, Z = ia(ae, Z, [], function($e) {
|
|
14838
|
-
return VL({ json: $e }, aI) ?
|
|
14838
|
+
return VL({ json: $e }, aI) ? gs : ih;
|
|
14839
14839
|
}(ae))));
|
|
14840
14840
|
}
|
|
14841
14841
|
function gn(ae) {
|
|
@@ -14848,8 +14848,8 @@ function kae(e, t, n) {
|
|
|
14848
14848
|
function wt(ae, $e) {
|
|
14849
14849
|
if (i("patch", ae, $e), l === void 0)
|
|
14850
14850
|
throw new Error("Cannot apply patch: no JSON");
|
|
14851
|
-
var Ye = { json: l, text: f }, st = l, ft = Z, gt = f, Rt = bt, Xt = vR(l, ae), Yt = nR(l, Z, ae), gr = Lf(l, ae), ii = function(
|
|
14852
|
-
return ja !== void 0 || !(arguments.length > 2 && arguments[2] !== void 0) || arguments[2] ? _e(_e({},
|
|
14851
|
+
var Ye = { json: l, text: f }, st = l, ft = Z, gt = f, Rt = bt, Xt = vR(l, ae), Yt = nR(l, Z, ae), gr = Lf(l, ae), ii = function(ss, ja) {
|
|
14852
|
+
return ja !== void 0 || !(arguments.length > 2 && arguments[2] !== void 0) || arguments[2] ? _e(_e({}, ss), {}, { selection: ja }) : ss;
|
|
14853
14853
|
}(Yt.documentState, gr, !1);
|
|
14854
14854
|
i("patch updatedSelection", gr);
|
|
14855
14855
|
var Ir = typeof $e == "function" ? $e(Yt.json, ii) : void 0;
|
|
@@ -15058,7 +15058,7 @@ function kae(e, t, n) {
|
|
|
15058
15058
|
var ae = et.undo();
|
|
15059
15059
|
if (ae) {
|
|
15060
15060
|
var $e = { json: l, text: f };
|
|
15061
|
-
n(11, l = ae.undo.patch ?
|
|
15061
|
+
n(11, l = ae.undo.patch ? Qa(l, ae.undo.patch) : ae.undo.json), n(17, Z = ae.undo.state), n(12, f = ae.undo.text), n(24, bt = ae.undo.textIsRepaired), ee = void 0, i("undo", { item: ae, json: l, documentState: Z }), $t($e, { json: l, previousJson: $e.json, redo: ae.undo.patch, undo: ae.redo.patch }), kr(), Z.selection && ut(Z.selection.focusPath, !1);
|
|
15062
15062
|
}
|
|
15063
15063
|
}
|
|
15064
15064
|
}
|
|
@@ -15067,7 +15067,7 @@ function kae(e, t, n) {
|
|
|
15067
15067
|
var ae = et.redo();
|
|
15068
15068
|
if (ae) {
|
|
15069
15069
|
var $e = { json: l, text: f };
|
|
15070
|
-
n(11, l = ae.redo.patch ?
|
|
15070
|
+
n(11, l = ae.redo.patch ? Qa(l, ae.redo.patch) : ae.redo.json), n(17, Z = ae.redo.state), n(12, f = ae.redo.text), n(24, bt = ae.redo.textIsRepaired), ee = void 0, i("redo", { item: ae, json: l, documentState: Z }), $t($e, { json: l, previousJson: $e.json, redo: ae.redo.patch, undo: ae.undo.patch }), kr(), Z.selection && ut(Z.selection.focusPath, !1);
|
|
15071
15071
|
}
|
|
15072
15072
|
}
|
|
15073
15073
|
}
|
|
@@ -15100,7 +15100,7 @@ function kae(e, t, n) {
|
|
|
15100
15100
|
if (l !== void 0) {
|
|
15101
15101
|
var $e = ae.id, Ye = ae.onTransform, st = ae.onClose, ft = ae.rootPath || [];
|
|
15102
15102
|
J = !0, E({ id: $e || h, json: l, rootPath: ft, onTransform: function(gt) {
|
|
15103
|
-
Ye ? Ye({ operations: gt, json: l, transformedJson:
|
|
15103
|
+
Ye ? Ye({ operations: gt, json: l, transformedJson: Qa(l, gt) }) : (i("onTransform", ft, gt), Et(gt, function(Rt, Xt) {
|
|
15104
15104
|
return { state: _e(_e({}, Pu(Rt, Xt, ft)), {}, { selection: Rn(ft, !1) }) };
|
|
15105
15105
|
}));
|
|
15106
15106
|
}, onClose: function() {
|
|
@@ -15169,19 +15169,19 @@ function kae(e, t, n) {
|
|
|
15169
15169
|
return i("handlePatch", ae, $e), wt(ae, $e);
|
|
15170
15170
|
}
|
|
15171
15171
|
function On(ae, $e) {
|
|
15172
|
-
var Ye = Z, st = l, ft = f, gt = { json: l, text: f }, Rt = bt, Xt = ia(l, Z, [],
|
|
15172
|
+
var Ye = Z, st = l, ft = f, gt = { json: l, text: f }, Rt = bt, Xt = ia(l, Z, [], gs), Yt = typeof $e == "function" ? $e(ae, Xt) : void 0;
|
|
15173
15173
|
n(11, l = Yt && Yt.json !== void 0 ? Yt.json : ae), n(17, Z = Yt && Yt.state !== void 0 ? Yt.state : Xt), n(12, f = void 0), n(24, bt = !1), ee = void 0, gn(l), Ae({ previousJson: st, previousState: Ye, previousText: ft, previousTextIsRepaired: Rt }), $t(gt, null);
|
|
15174
15174
|
}
|
|
15175
15175
|
function $n(ae, $e) {
|
|
15176
15176
|
i("handleChangeText");
|
|
15177
15177
|
var Ye = Z, st = l, ft = f, gt = { json: l, text: f }, Rt = bt;
|
|
15178
15178
|
try {
|
|
15179
|
-
n(11, l = _(ae)), n(17, Z = ia(l, Z, [],
|
|
15179
|
+
n(11, l = _(ae)), n(17, Z = ia(l, Z, [], gs)), n(12, f = void 0), n(24, bt = !1), ee = void 0;
|
|
15180
15180
|
} catch (Yt) {
|
|
15181
15181
|
try {
|
|
15182
|
-
n(11, l = _(Cs(ae))), n(17, Z = ia(l, Z, [],
|
|
15182
|
+
n(11, l = _(Cs(ae))), n(17, Z = ia(l, Z, [], gs)), n(12, f = ae), n(24, bt = !0), ee = void 0;
|
|
15183
15183
|
} catch {
|
|
15184
|
-
n(11, l = void 0), n(17, Z = qm({ json: l, expand:
|
|
15184
|
+
n(11, l = void 0), n(17, Z = qm({ json: l, expand: gs })), n(12, f = ae), n(24, bt = !1), ee = f !== "" ? Pf(f, Yt.message || Yt.toString()) : void 0;
|
|
15185
15185
|
}
|
|
15186
15186
|
}
|
|
15187
15187
|
if (typeof $e == "function") {
|
|
@@ -15348,13 +15348,13 @@ function kae(e, t, n) {
|
|
|
15348
15348
|
if ($e === "ArrowDown" || $e === "Shift+ArrowDown") {
|
|
15349
15349
|
ae.preventDefault();
|
|
15350
15350
|
var ft = Z.selection ? function(xr, so) {
|
|
15351
|
-
var
|
|
15351
|
+
var ss = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], ja = arguments.length > 3 && arguments[3] !== void 0 && arguments[3], Xn = so.selection;
|
|
15352
15352
|
if (!Xn)
|
|
15353
15353
|
return null;
|
|
15354
15354
|
var yo = !ja && Qn(Xn) ? Dt(Xn.paths) : Xn.focusPath, Yo = Oy(xr, so, yo), Sa = Yo, Ca = Yo;
|
|
15355
15355
|
if (Yo === null || Sa == null || Ca == null)
|
|
15356
15356
|
return null;
|
|
15357
|
-
if (
|
|
15357
|
+
if (ss) {
|
|
15358
15358
|
var _u = Oy(xr, Ar(At(xr, yo)) ? fE(so, yo) : so, yo);
|
|
15359
15359
|
return _u === null ? null : Ua(Xn) ? si(xr, _u, _u) : mi(Xn) ? si(xr, Sa, Ca) : si(xr, Xn.anchorPath, _u);
|
|
15360
15360
|
}
|
|
@@ -15369,11 +15369,11 @@ function kae(e, t, n) {
|
|
|
15369
15369
|
if ($e === "ArrowLeft" || $e === "Shift+ArrowLeft") {
|
|
15370
15370
|
ae.preventDefault();
|
|
15371
15371
|
var gt = Z.selection ? function(xr, so) {
|
|
15372
|
-
var
|
|
15372
|
+
var ss = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], ja = !(arguments.length > 3 && arguments[3] !== void 0) || arguments[3], Xn = so.selection;
|
|
15373
15373
|
if (!Xn)
|
|
15374
15374
|
return null;
|
|
15375
15375
|
var yo = vE(xr, so, ja), Yo = yo.caret, Sa = yo.previous;
|
|
15376
|
-
if (
|
|
15376
|
+
if (ss)
|
|
15377
15377
|
return Qn(Xn) ? null : si(xr, Xn.anchorPath, Xn.focusPath);
|
|
15378
15378
|
if (Yo && Sa)
|
|
15379
15379
|
return cb(Sa);
|
|
@@ -15385,11 +15385,11 @@ function kae(e, t, n) {
|
|
|
15385
15385
|
if ($e === "ArrowRight" || $e === "Shift+ArrowRight") {
|
|
15386
15386
|
ae.preventDefault();
|
|
15387
15387
|
var Rt = Z.selection && l !== void 0 ? function(xr, so) {
|
|
15388
|
-
var
|
|
15388
|
+
var ss = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], ja = !(arguments.length > 3 && arguments[3] !== void 0) || arguments[3], Xn = so.selection;
|
|
15389
15389
|
if (!Xn)
|
|
15390
15390
|
return null;
|
|
15391
15391
|
var yo = vE(xr, so, ja), Yo = yo.caret, Sa = yo.next;
|
|
15392
|
-
return
|
|
15392
|
+
return ss ? Qn(Xn) ? null : si(xr, Xn.anchorPath, Xn.focusPath) : Yo && Sa ? cb(Sa) : Qn(Xn) ? Rn(Xn.focusPath, !1) : null;
|
|
15393
15393
|
}(l, Z, Ye, !b) || Z.selection : Dc(l, Z);
|
|
15394
15394
|
de(Rt), Ot(Rt.focusPath);
|
|
15395
15395
|
}
|
|
@@ -15817,7 +15817,7 @@ var Lae = function(e) {
|
|
|
15817
15817
|
}
|
|
15818
15818
|
return le(n);
|
|
15819
15819
|
}();
|
|
15820
|
-
function
|
|
15820
|
+
function ys() {
|
|
15821
15821
|
}
|
|
15822
15822
|
function tv(e) {
|
|
15823
15823
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1e3;
|
|
@@ -16364,7 +16364,7 @@ var Sb = /\r\n?|\n/, co = function(e) {
|
|
|
16364
16364
|
} }, { key: "create", value: function(t) {
|
|
16365
16365
|
return new e(t);
|
|
16366
16366
|
} }]), e;
|
|
16367
|
-
}(),
|
|
16367
|
+
}(), ns = function(e) {
|
|
16368
16368
|
Ve(n, yf);
|
|
16369
16369
|
var t = Ue(n);
|
|
16370
16370
|
function n(r, i) {
|
|
@@ -16534,7 +16534,7 @@ function $b(e, t, n) {
|
|
|
16534
16534
|
} else {
|
|
16535
16535
|
if (!(o.ins >= 0)) {
|
|
16536
16536
|
if (o.done && a.done)
|
|
16537
|
-
return i ?
|
|
16537
|
+
return i ? ns.createSet(r, i) : yf.create(r);
|
|
16538
16538
|
throw new Error("Mismatched change set lengths");
|
|
16539
16539
|
}
|
|
16540
16540
|
for (var c = 0, d = o.len; d; )
|
|
@@ -16552,7 +16552,7 @@ function $b(e, t, n) {
|
|
|
16552
16552
|
function tD(e, t) {
|
|
16553
16553
|
for (var n = [], r = arguments.length > 2 && arguments[2] !== void 0 && arguments[2] ? [] : null, i = new Vh(e), o = new Vh(t), a = !1; ; ) {
|
|
16554
16554
|
if (i.done && o.done)
|
|
16555
|
-
return r ?
|
|
16555
|
+
return r ? ns.createSet(n, r) : yf.create(n);
|
|
16556
16556
|
if (i.ins == 0)
|
|
16557
16557
|
to(n, i.len, 0, a), i.next();
|
|
16558
16558
|
else if (o.len != 0 || o.done) {
|
|
@@ -17144,11 +17144,11 @@ function Gae(e, t) {
|
|
|
17144
17144
|
}
|
|
17145
17145
|
function tM(e, t, n) {
|
|
17146
17146
|
var r, i, o, a;
|
|
17147
|
-
return n ? (i = t.changes, o =
|
|
17147
|
+
return n ? (i = t.changes, o = ns.empty(t.changes.length), a = e.changes.compose(t.changes)) : (i = t.changes.map(e.changes), o = e.changes.mapDesc(t.changes, !0), a = e.changes.compose(i)), { changes: a, selection: t.selection ? t.selection.map(o) : (r = e.selection) === null || r === void 0 ? void 0 : r.map(i), effects: Fn.mapEffects(e.effects, i).concat(Fn.mapEffects(t.effects, o)), annotations: e.annotations.length ? e.annotations.concat(t.annotations) : t.annotations, scrollIntoView: e.scrollIntoView || t.scrollIntoView };
|
|
17148
17148
|
}
|
|
17149
17149
|
function Ly(e, t, n) {
|
|
17150
17150
|
var r = t.selection, i = bf(t.annotations);
|
|
17151
|
-
return t.userEvent && (i = i.concat(_o.userEvent.of(t.userEvent))), { changes: t.changes instanceof
|
|
17151
|
+
return t.userEvent && (i = i.concat(_o.userEvent.of(t.userEvent))), { changes: t.changes instanceof ns ? t.changes : ns.of(t.changes || [], n, e.facet(aD)), selection: r && (r instanceof dt ? r : dt.single(r.anchor, r.head)), effects: bf(t.effects), annotations: i, scrollIntoView: !!t.scrollIntoView };
|
|
17152
17152
|
}
|
|
17153
17153
|
function fD(e, t, n) {
|
|
17154
17154
|
var r = Ly(e, t.length ? t[0] : {}, e.doc.length);
|
|
@@ -17184,7 +17184,7 @@ function fD(e, t, n) {
|
|
|
17184
17184
|
if (f !== !0) {
|
|
17185
17185
|
var h, p;
|
|
17186
17186
|
if (f === !1)
|
|
17187
|
-
p = s.changes.invertedDesc, h =
|
|
17187
|
+
p = s.changes.invertedDesc, h = ns.empty(l.doc.length);
|
|
17188
17188
|
else {
|
|
17189
17189
|
var v = s.changes.filter(f);
|
|
17190
17190
|
h = v.changes, p = v.filtered.mapDesc(v.changes).invertedDesc;
|
|
@@ -17283,7 +17283,7 @@ var $r = function() {
|
|
|
17283
17283
|
return { changes: i, selection: dt.create(o, n.mainIndex), effects: a };
|
|
17284
17284
|
} }, { key: "changes", value: function() {
|
|
17285
17285
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
|
|
17286
|
-
return t instanceof
|
|
17286
|
+
return t instanceof ns ? t : ns.of(t, this.doc.length, this.facet(e.lineSeparator));
|
|
17287
17287
|
} }, { key: "toText", value: function(t) {
|
|
17288
17288
|
return vr.of(t.split(this.facet(e.lineSeparator) || Sb));
|
|
17289
17289
|
} }, { key: "sliceDoc", value: function() {
|
|
@@ -18785,7 +18785,7 @@ function Wb(e, t, n) {
|
|
|
18785
18785
|
i >= 0 && n[i] + r >= e ? n[i] = Math.max(n[i], t) : n.push(e, t);
|
|
18786
18786
|
}
|
|
18787
18787
|
qf.prototype.point = !0;
|
|
18788
|
-
var
|
|
18788
|
+
var ws = function(e) {
|
|
18789
18789
|
Ve(n, Jr);
|
|
18790
18790
|
var t = Ue(n);
|
|
18791
18791
|
function n() {
|
|
@@ -18930,7 +18930,7 @@ var bs = function(e) {
|
|
|
18930
18930
|
var t = this.content[this.content.length - 1];
|
|
18931
18931
|
return !(t.breakAfter || t instanceof Kb && t.type == Qr.WidgetBefore);
|
|
18932
18932
|
} }, { key: "getLine", value: function() {
|
|
18933
|
-
return this.curLine || (this.content.push(this.curLine = new
|
|
18933
|
+
return this.curLine || (this.content.push(this.curLine = new ws()), this.atCursorPos = !0), this.curLine;
|
|
18934
18934
|
} }, { key: "flushBuffer", value: function() {
|
|
18935
18935
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.bufferMarks;
|
|
18936
18936
|
this.pendingBuffer && (this.curLine.append(sv(new Vb(-1), t), t.length), this.pendingBuffer = 0);
|
|
@@ -19138,7 +19138,7 @@ var qd = Kt.define(), kf = function() {
|
|
|
19138
19138
|
} }]), e;
|
|
19139
19139
|
}(), gM = function() {
|
|
19140
19140
|
function e(t, n, r) {
|
|
19141
|
-
ue(this, e), this.view = t, this.state = n, this.transactions = r, this.flags = 0, this.startState = t.state, this.changes =
|
|
19141
|
+
ue(this, e), this.view = t, this.state = n, this.transactions = r, this.flags = 0, this.startState = t.state, this.changes = ns.empty(this.startState.doc.length);
|
|
19142
19142
|
var i, o = me(r);
|
|
19143
19143
|
try {
|
|
19144
19144
|
for (o.s(); !(i = o.n()).done; ) {
|
|
@@ -19182,7 +19182,7 @@ function yM(e) {
|
|
|
19182
19182
|
t.push(1 << +e[n]);
|
|
19183
19183
|
return t;
|
|
19184
19184
|
}
|
|
19185
|
-
for (var use = yM("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"), lse = yM("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"), Qb = /* @__PURE__ */ Object.create(null),
|
|
19185
|
+
for (var use = yM("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"), lse = yM("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"), Qb = /* @__PURE__ */ Object.create(null), cs = [], Uy = 0, bM = ["()", "[]", "{}"]; Uy < bM.length; Uy++) {
|
|
19186
19186
|
var wM = bM[Uy], kM = wM.charCodeAt(0), xM = wM.charCodeAt(1);
|
|
19187
19187
|
Qb[kM] = xM, Qb[xM] = -kM;
|
|
19188
19188
|
}
|
|
@@ -19335,7 +19335,7 @@ var SM = le(function e(t, n) {
|
|
|
19335
19335
|
var t = Ue(n);
|
|
19336
19336
|
function n(r) {
|
|
19337
19337
|
var i;
|
|
19338
|
-
return ue(this, n), (i = t.call(this)).view = r, i.compositionDeco = cn.none, i.decorations = [], i.dynamicDecorationMap = [], i.minWidth = 0, i.minWidthFrom = 0, i.minWidthTo = 0, i.impreciseAnchor = null, i.impreciseHead = null, i.forceSelection = !1, i.lastUpdate = Date.now(), i.setDOM(r.contentDOM), i.children = [new
|
|
19338
|
+
return ue(this, n), (i = t.call(this)).view = r, i.compositionDeco = cn.none, i.decorations = [], i.dynamicDecorationMap = [], i.minWidth = 0, i.minWidthFrom = 0, i.minWidthTo = 0, i.impreciseAnchor = null, i.impreciseHead = null, i.forceSelection = !1, i.lastUpdate = Date.now(), i.setDOM(r.contentDOM), i.children = [new ws()], i.children[0].setParent(It(i)), i.updateDeco(), i.updateInner([new kf(0, 0, 0, r.state.doc.length)], 0), i;
|
|
19339
19339
|
}
|
|
19340
19340
|
return le(n, [{ key: "length", get: function() {
|
|
19341
19341
|
return this.view.state.doc.length;
|
|
@@ -19457,7 +19457,7 @@ var SM = le(function e(t, n) {
|
|
|
19457
19457
|
if (!this.compositionDeco.size) {
|
|
19458
19458
|
var r = this.view, i = r.state.selection.main, o = Xm(r.root), a = r.observer.selectionRange, s = a.anchorNode, u = a.anchorOffset;
|
|
19459
19459
|
if (o && i.empty && i.assoc && o.modify) {
|
|
19460
|
-
var l =
|
|
19460
|
+
var l = ws.find(this, i.head);
|
|
19461
19461
|
if (l) {
|
|
19462
19462
|
var f = l.posAtStart;
|
|
19463
19463
|
if (i.head != f && i.head != f + l.length) {
|
|
@@ -19488,7 +19488,7 @@ var SM = le(function e(t, n) {
|
|
|
19488
19488
|
} }, { key: "domAtPos", value: function(r) {
|
|
19489
19489
|
for (var i = this.childCursor().findPos(r, -1), o = i.i, a = i.off; o < this.children.length - 1; ) {
|
|
19490
19490
|
var s = this.children[o];
|
|
19491
|
-
if (a < s.length || s instanceof
|
|
19491
|
+
if (a < s.length || s instanceof ws)
|
|
19492
19492
|
break;
|
|
19493
19493
|
o++, a = 0;
|
|
19494
19494
|
}
|
|
@@ -19526,7 +19526,7 @@ var SM = le(function e(t, n) {
|
|
|
19526
19526
|
try {
|
|
19527
19527
|
for (o.s(); !(r = o.n()).done; ) {
|
|
19528
19528
|
var a = r.value;
|
|
19529
|
-
if (a instanceof
|
|
19529
|
+
if (a instanceof ws) {
|
|
19530
19530
|
var s = a.measureTextSize();
|
|
19531
19531
|
if (s)
|
|
19532
19532
|
return s;
|
|
@@ -19641,7 +19641,7 @@ function VD(e) {
|
|
|
19641
19641
|
var r = e.docView.nearest(n);
|
|
19642
19642
|
if (!r)
|
|
19643
19643
|
return null;
|
|
19644
|
-
if (r instanceof
|
|
19644
|
+
if (r instanceof ws) {
|
|
19645
19645
|
for (var i = n; i.parentNode != r.dom; )
|
|
19646
19646
|
i = i.parentNode;
|
|
19647
19647
|
for (var o = i.previousSibling; o && !Jr.get(o); )
|
|
@@ -19653,7 +19653,7 @@ function VD(e) {
|
|
|
19653
19653
|
var s = r.parent;
|
|
19654
19654
|
if (!s)
|
|
19655
19655
|
return null;
|
|
19656
|
-
if (s instanceof
|
|
19656
|
+
if (s instanceof ws)
|
|
19657
19657
|
break;
|
|
19658
19658
|
r = s;
|
|
19659
19659
|
}
|
|
@@ -19810,7 +19810,7 @@ function AM(e, t, n) {
|
|
|
19810
19810
|
}
|
|
19811
19811
|
}
|
|
19812
19812
|
if (!b || !e.docView.dom.contains(b)) {
|
|
19813
|
-
var T =
|
|
19813
|
+
var T = ws.find(e.docView, v);
|
|
19814
19814
|
if (!T)
|
|
19815
19815
|
return d > o.top + o.height / 2 ? o.to : o.from;
|
|
19816
19816
|
var L = Yb(T.dom, f, c);
|
|
@@ -20160,7 +20160,7 @@ function LM(e, t, n, r) {
|
|
|
20160
20160
|
}
|
|
20161
20161
|
return dt.range(p + d.from, v + d.from);
|
|
20162
20162
|
}(e.state, t, n);
|
|
20163
|
-
var i =
|
|
20163
|
+
var i = ws.find(e.docView, t), o = e.state.doc.lineAt(i ? i.posAtEnd : t), a = i ? i.posAtStart : o.from, s = i ? i.posAtEnd : o.to;
|
|
20164
20164
|
return s < e.state.doc.length && s == o.to && s++, dt.range(a, s);
|
|
20165
20165
|
}
|
|
20166
20166
|
hi.keydown = function(e, t) {
|
|
@@ -20213,7 +20213,7 @@ var KD = function(e, t) {
|
|
|
20213
20213
|
return KD(t, n) && e >= n.left && e <= n.right;
|
|
20214
20214
|
};
|
|
20215
20215
|
function wse(e, t, n, r) {
|
|
20216
|
-
var i =
|
|
20216
|
+
var i = ws.find(e.docView, t);
|
|
20217
20217
|
if (!i)
|
|
20218
20218
|
return 1;
|
|
20219
20219
|
var o = t - i.posAtStart;
|
|
@@ -20436,7 +20436,7 @@ var qM = ["pre-wrap", "normal", "pre-line", "break-spaces"], xse = function() {
|
|
|
20436
20436
|
} }]), e;
|
|
20437
20437
|
}(), Er = function(e) {
|
|
20438
20438
|
return e[e.ByPos = 0] = "ByPos", e[e.ByHeight = 1] = "ByHeight", e[e.ByPosNoHeight = 2] = "ByPosNoHeight", e;
|
|
20439
|
-
}(Er || (Er = {})), lm = 1e-3,
|
|
20439
|
+
}(Er || (Er = {})), lm = 1e-3, Xa = function() {
|
|
20440
20440
|
function e(t, n) {
|
|
20441
20441
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 2;
|
|
20442
20442
|
ue(this, e), this.length = t, this.height = n, this.flags = r;
|
|
@@ -20464,7 +20464,7 @@ var qM = ["pre-wrap", "normal", "pre-line", "break-spaces"], xse = function() {
|
|
|
20464
20464
|
}
|
|
20465
20465
|
return o.updateHeight(r, 0);
|
|
20466
20466
|
} }], [{ key: "empty", value: function() {
|
|
20467
|
-
return new
|
|
20467
|
+
return new vs(0, 0);
|
|
20468
20468
|
} }, { key: "of", value: function(t) {
|
|
20469
20469
|
if (t.length == 1)
|
|
20470
20470
|
return t[0];
|
|
@@ -20490,9 +20490,9 @@ var qM = ["pre-wrap", "normal", "pre-line", "break-spaces"], xse = function() {
|
|
|
20490
20490
|
return t[n - 1] == null ? (f = 1, n--) : t[n] == null && (f = 1, r++), new jse(e.of(t.slice(0, n)), f, e.of(t.slice(r)));
|
|
20491
20491
|
} }]), e;
|
|
20492
20492
|
}();
|
|
20493
|
-
|
|
20493
|
+
Xa.prototype.size = 1;
|
|
20494
20494
|
var YD = function(e) {
|
|
20495
|
-
Ve(n,
|
|
20495
|
+
Ve(n, Xa);
|
|
20496
20496
|
var t = Ue(n);
|
|
20497
20497
|
function n(r, i, o) {
|
|
20498
20498
|
var a;
|
|
@@ -20510,7 +20510,7 @@ var YD = function(e) {
|
|
|
20510
20510
|
} }, { key: "toString", value: function() {
|
|
20511
20511
|
return "block(".concat(this.length, ")");
|
|
20512
20512
|
} }]), n;
|
|
20513
|
-
}(),
|
|
20513
|
+
}(), vs = function(e) {
|
|
20514
20514
|
Ve(n, YD);
|
|
20515
20515
|
var t = Ue(n);
|
|
20516
20516
|
function n(r, i) {
|
|
@@ -20521,7 +20521,7 @@ var YD = function(e) {
|
|
|
20521
20521
|
return new Iu(a, this.length, o, this.height, this.breaks);
|
|
20522
20522
|
} }, { key: "replace", value: function(r, i, o) {
|
|
20523
20523
|
var a = o[0];
|
|
20524
|
-
return o.length == 1 && (a instanceof n || a instanceof xf && 4 & a.flags) && Math.abs(this.length - a.length) < 10 ? (a instanceof xf ? a = new n(a.length, this.height) : a.height = this.height, this.outdated || (a.outdated = !1), a) :
|
|
20524
|
+
return o.length == 1 && (a instanceof n || a instanceof xf && 4 & a.flags) && Math.abs(this.length - a.length) < 10 ? (a instanceof xf ? a = new n(a.length, this.height) : a.height = this.height, this.outdated || (a.outdated = !1), a) : Xa.of(o);
|
|
20525
20525
|
} }, { key: "updateHeight", value: function(r) {
|
|
20526
20526
|
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, o = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], a = arguments.length > 3 ? arguments[3] : void 0;
|
|
20527
20527
|
return a && a.from <= i && a.more ? this.setHeight(r, a.heights[a.index++]) : (o || this.outdated) && this.setHeight(r, Math.max(this.widgetHeight, r.heightForLine(this.length - this.collapsed)) + this.breaks * r.lineHeight), this.outdated = !1, this;
|
|
@@ -20529,7 +20529,7 @@ var YD = function(e) {
|
|
|
20529
20529
|
return "line(".concat(this.length).concat(this.collapsed ? -this.collapsed : "").concat(this.widgetHeight ? ":" + this.widgetHeight : "", ")");
|
|
20530
20530
|
} }]), n;
|
|
20531
20531
|
}(), xf = function(e) {
|
|
20532
|
-
Ve(n,
|
|
20532
|
+
Ve(n, Xa);
|
|
20533
20533
|
var t = Ue(n);
|
|
20534
20534
|
function n(r) {
|
|
20535
20535
|
return ue(this, n), t.call(this, r, 0);
|
|
@@ -20580,7 +20580,7 @@ var YD = function(e) {
|
|
|
20580
20580
|
var u = o[0];
|
|
20581
20581
|
u instanceof n ? o[0] = new n(r + u.length) : o.unshift(new n(r - 1), null);
|
|
20582
20582
|
}
|
|
20583
|
-
return
|
|
20583
|
+
return Xa.of(o);
|
|
20584
20584
|
} }, { key: "decomposeLeft", value: function(r, i) {
|
|
20585
20585
|
i.push(new n(r - 1), null);
|
|
20586
20586
|
} }, { key: "decomposeRight", value: function(r, i) {
|
|
@@ -20594,11 +20594,11 @@ var YD = function(e) {
|
|
|
20594
20594
|
u.length && u.push(null);
|
|
20595
20595
|
var d = a.heights[a.index++];
|
|
20596
20596
|
f == -1 ? f = d : Math.abs(d - f) >= lm && (f = -2);
|
|
20597
|
-
var h = new
|
|
20597
|
+
var h = new vs(c, d);
|
|
20598
20598
|
h.outdated = !1, u.push(h), l += c + 1;
|
|
20599
20599
|
}
|
|
20600
20600
|
l <= s && u.push(null, new n(s - l).updateHeight(r, l));
|
|
20601
|
-
var p =
|
|
20601
|
+
var p = Xa.of(u);
|
|
20602
20602
|
return (f < 0 || Math.abs(p.height - this.height) >= lm || Math.abs(f - this.heightMetrics(r, i).perLine) >= lm) && (r.heightChanged = !0), p;
|
|
20603
20603
|
}
|
|
20604
20604
|
return (o || this.outdated) && (this.setHeight(r, r.heightForGap(i, i + this.length)), this.outdated = !1), this;
|
|
@@ -20606,7 +20606,7 @@ var YD = function(e) {
|
|
|
20606
20606
|
return "gap(".concat(this.length, ")");
|
|
20607
20607
|
} }]), n;
|
|
20608
20608
|
}(), jse = function(e) {
|
|
20609
|
-
Ve(n,
|
|
20609
|
+
Ve(n, Xa);
|
|
20610
20610
|
var t = Ue(n);
|
|
20611
20611
|
function n(r, i, o) {
|
|
20612
20612
|
var a;
|
|
@@ -20654,7 +20654,7 @@ var YD = function(e) {
|
|
|
20654
20654
|
var d = s.length;
|
|
20655
20655
|
this.decomposeRight(i, s), HM(s, d);
|
|
20656
20656
|
}
|
|
20657
|
-
return
|
|
20657
|
+
return Xa.of(s);
|
|
20658
20658
|
} }, { key: "decomposeLeft", value: function(r, i) {
|
|
20659
20659
|
var o = this.left.length;
|
|
20660
20660
|
if (r <= o)
|
|
@@ -20666,7 +20666,7 @@ var YD = function(e) {
|
|
|
20666
20666
|
return this.right.decomposeRight(r - a, i);
|
|
20667
20667
|
r < o && this.left.decomposeRight(r, i), this.break && r < a && i.push(null), i.push(this.right);
|
|
20668
20668
|
} }, { key: "balanced", value: function(r, i) {
|
|
20669
|
-
return r.size > 2 * i.size || i.size > 2 * r.size ?
|
|
20669
|
+
return r.size > 2 * i.size || i.size > 2 * r.size ? Xa.of(this.break ? [r, null, i] : [r, i]) : (this.left = r, this.right = i, this.height = r.height + i.height, this.outdated = r.outdated || i.outdated, this.size = r.size + i.size, this.length = r.length + this.break + i.length, this);
|
|
20670
20670
|
} }, { key: "updateHeight", value: function(r) {
|
|
20671
20671
|
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, o = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], a = arguments.length > 3 ? arguments[3] : void 0, s = this.left, u = this.right, l = i + s.length + this.break, f = null;
|
|
20672
20672
|
return a && a.from <= i + s.length && a.more ? f = s = s.updateHeight(r, i, o, a) : s.updateHeight(r, i, o), a && a.from <= l + u.length && a.more ? f = u = u.updateHeight(r, l, o, a) : u.updateHeight(r, l, o), f ? this.balanced(s, u) : (this.height = this.left.height + this.right.height, this.outdated = !1, this);
|
|
@@ -20687,7 +20687,7 @@ var Sse = function() {
|
|
|
20687
20687
|
} }, { key: "span", value: function(t, n) {
|
|
20688
20688
|
if (this.lineStart > -1) {
|
|
20689
20689
|
var r = Math.min(n, this.lineEnd), i = this.nodes[this.nodes.length - 1];
|
|
20690
|
-
i instanceof
|
|
20690
|
+
i instanceof vs ? i.length += r - this.pos : (r > this.pos || !this.isCovered) && this.nodes.push(new vs(r - this.pos, -1)), this.writtenTo = r, n > r && (this.nodes.push(null), this.writtenTo++, this.lineStart = -1);
|
|
20691
20691
|
}
|
|
20692
20692
|
this.pos = n;
|
|
20693
20693
|
} }, { key: "point", value: function(t, n, r) {
|
|
@@ -20702,7 +20702,7 @@ var Sse = function() {
|
|
|
20702
20702
|
} }, { key: "enterLine", value: function() {
|
|
20703
20703
|
if (!(this.lineStart > -1)) {
|
|
20704
20704
|
var t = this.oracle.doc.lineAt(this.pos), n = t.from, r = t.to;
|
|
20705
|
-
this.lineStart = n, this.lineEnd = r, this.writtenTo < n && ((this.writtenTo < n - 1 || this.nodes[this.nodes.length - 1] == null) && this.nodes.push(this.blankContent(this.writtenTo, n - 1)), this.nodes.push(null)), this.pos > n && this.nodes.push(new
|
|
20705
|
+
this.lineStart = n, this.lineEnd = r, this.writtenTo < n && ((this.writtenTo < n - 1 || this.nodes[this.nodes.length - 1] == null) && this.nodes.push(this.blankContent(this.writtenTo, n - 1)), this.nodes.push(null)), this.pos > n && this.nodes.push(new vs(this.pos - n, -1)), this.writtenTo = this.pos;
|
|
20706
20706
|
}
|
|
20707
20707
|
} }, { key: "blankContent", value: function(t, n) {
|
|
20708
20708
|
var r = new xf(n - t);
|
|
@@ -20710,9 +20710,9 @@ var Sse = function() {
|
|
|
20710
20710
|
} }, { key: "ensureLine", value: function() {
|
|
20711
20711
|
this.enterLine();
|
|
20712
20712
|
var t = this.nodes.length ? this.nodes[this.nodes.length - 1] : null;
|
|
20713
|
-
if (t instanceof
|
|
20713
|
+
if (t instanceof vs)
|
|
20714
20714
|
return t;
|
|
20715
|
-
var n = new
|
|
20715
|
+
var n = new vs(0, -1);
|
|
20716
20716
|
return this.nodes.push(n), n;
|
|
20717
20717
|
} }, { key: "addBlock", value: function(t) {
|
|
20718
20718
|
var n;
|
|
@@ -20724,12 +20724,12 @@ var Sse = function() {
|
|
|
20724
20724
|
i.length += r, i.collapsed += r, i.widgetHeight = Math.max(i.widgetHeight, t), i.breaks += n, this.writtenTo = this.pos = this.pos + r;
|
|
20725
20725
|
} }, { key: "finish", value: function(t) {
|
|
20726
20726
|
var n = this.nodes.length == 0 ? null : this.nodes[this.nodes.length - 1];
|
|
20727
|
-
!(this.lineStart > -1) || n instanceof
|
|
20727
|
+
!(this.lineStart > -1) || n instanceof vs || this.isCovered ? (this.writtenTo < this.pos || n == null) && this.nodes.push(this.blankContent(this.writtenTo, this.pos)) : this.nodes.push(new vs(0, -1));
|
|
20728
20728
|
var r, i = t, o = me(this.nodes);
|
|
20729
20729
|
try {
|
|
20730
20730
|
for (o.s(); !(r = o.n()).done; ) {
|
|
20731
20731
|
var a = r.value;
|
|
20732
|
-
a instanceof
|
|
20732
|
+
a instanceof vs && a.updateHeight(this.oracle, i), i += a ? a.length : 1;
|
|
20733
20733
|
}
|
|
20734
20734
|
} catch (s) {
|
|
20735
20735
|
o.e(s);
|
|
@@ -20809,7 +20809,7 @@ var Wy = function() {
|
|
|
20809
20809
|
});
|
|
20810
20810
|
this.heightOracle = new xse(n), this.stateDeco = t.facet(Hh).filter(function(r) {
|
|
20811
20811
|
return typeof r != "function";
|
|
20812
|
-
}), this.heightMap =
|
|
20812
|
+
}), this.heightMap = Xa.empty().applyChanges(this.stateDeco, vr.empty, this.heightOracle.setDoc(t.doc), [new kf(0, 0, 0, t.doc.length)]), this.viewport = this.getViewport(0, null), this.updateViewportLines(), this.updateForViewport(), this.lineGaps = this.ensureLineGaps([]), this.lineGapDeco = cn.set(this.lineGaps.map(function(r) {
|
|
20813
20813
|
return r.draw(!1);
|
|
20814
20814
|
})), this.computeVisibleRanges();
|
|
20815
20815
|
}
|
|
@@ -20843,7 +20843,7 @@ var Wy = function() {
|
|
|
20843
20843
|
var i = t.changedRanges, o = kf.extendWithRanges(i, function(f, c, d) {
|
|
20844
20844
|
var h = new Cse();
|
|
20845
20845
|
return Pr.compare(f, c, d, h, 0), h.changes;
|
|
20846
|
-
}(r, this.stateDeco, t ? t.changes :
|
|
20846
|
+
}(r, this.stateDeco, t ? t.changes : ns.empty(this.state.doc.length))), a = this.heightMap.height, s = this.scrolledToBottom ? null : this.lineBlockAtHeight(this.scrollTop);
|
|
20847
20847
|
this.heightMap = this.heightMap.applyChanges(this.stateDeco, t.startState.doc, this.heightOracle.setDoc(this.state.doc), o), this.heightMap.height != a && (t.flags |= 2), s ? (this.scrollAnchorPos = t.changes.mapPos(s.from, -1), this.scrollAnchorHeight = s.top) : (this.scrollAnchorPos = -1, this.scrollAnchorHeight = this.heightMap.height);
|
|
20848
20848
|
var u = o.length ? this.mapViewport(this.viewport, t.changes) : this.viewport;
|
|
20849
20849
|
(n && (n.range.head < u.from || n.range.head > u.to) || !this.viewportIsAppropriate(u)) && (u = this.getViewport(0, n));
|
|
@@ -20873,7 +20873,7 @@ var Wy = function() {
|
|
|
20873
20873
|
try {
|
|
20874
20874
|
for (L.s(); !(T = L.n()).done; ) {
|
|
20875
20875
|
var A = T.value, _ = A.from == this.viewport.from ? y : t.docView.measureVisibleLineHeights(A);
|
|
20876
|
-
this.heightMap = (a ?
|
|
20876
|
+
this.heightMap = (a ? Xa.empty().applyChanges(this.stateDeco, vr.empty, this.heightOracle, [new kf(0, 0, 0, t.state.doc.length)]) : this.heightMap).updateHeight(i, 0, a, new _se(A.from, _));
|
|
20877
20877
|
}
|
|
20878
20878
|
} catch (O) {
|
|
20879
20879
|
L.e(O);
|
|
@@ -21926,29 +21926,29 @@ var Vt = function() {
|
|
|
21926
21926
|
if (L = Qb[T = s.charCodeAt(_)])
|
|
21927
21927
|
if (L < 0) {
|
|
21928
21928
|
for (var F = S - 3; F >= 0; F -= 3)
|
|
21929
|
-
if (
|
|
21930
|
-
var $ =
|
|
21931
|
-
R && (qr[_] = qr[
|
|
21929
|
+
if (cs[F + 1] == -L) {
|
|
21930
|
+
var $ = cs[F + 2], R = 2 & $ ? f : 4 & $ ? 1 & $ ? c : f : 0;
|
|
21931
|
+
R && (qr[_] = qr[cs[F]] = R), S = F;
|
|
21932
21932
|
break;
|
|
21933
21933
|
}
|
|
21934
21934
|
} else {
|
|
21935
|
-
if (
|
|
21935
|
+
if (cs.length == 189)
|
|
21936
21936
|
break;
|
|
21937
|
-
|
|
21937
|
+
cs[S++] = _, cs[S++] = T, cs[S++] = O;
|
|
21938
21938
|
}
|
|
21939
21939
|
else if ((A = qr[_]) == 2 || A == 1) {
|
|
21940
21940
|
var q = A == f;
|
|
21941
21941
|
O = q ? 0 : 1;
|
|
21942
21942
|
for (var z = S - 3; z >= 0; z -= 3) {
|
|
21943
|
-
var B =
|
|
21943
|
+
var B = cs[z + 2];
|
|
21944
21944
|
if (2 & B)
|
|
21945
21945
|
break;
|
|
21946
21946
|
if (q)
|
|
21947
|
-
|
|
21947
|
+
cs[z + 2] |= 2;
|
|
21948
21948
|
else {
|
|
21949
21949
|
if (4 & B)
|
|
21950
21950
|
break;
|
|
21951
|
-
|
|
21951
|
+
cs[z + 2] |= 4;
|
|
21952
21952
|
}
|
|
21953
21953
|
}
|
|
21954
21954
|
}
|
|
@@ -23232,7 +23232,7 @@ function sP(e) {
|
|
|
23232
23232
|
var t = e.nextSibling;
|
|
23233
23233
|
return e.remove(), t;
|
|
23234
23234
|
}
|
|
23235
|
-
var Gh = Kt.define({ enables: d7 }),
|
|
23235
|
+
var Gh = Kt.define({ enables: d7 }), ms = function(e) {
|
|
23236
23236
|
Ve(n, Wl);
|
|
23237
23237
|
var t = Ue(n);
|
|
23238
23238
|
function n() {
|
|
@@ -23245,7 +23245,7 @@ var Gh = Kt.define({ enables: d7 }), vs = function(e) {
|
|
|
23245
23245
|
} }, { key: "destroy", value: function(r) {
|
|
23246
23246
|
} }]), n;
|
|
23247
23247
|
}();
|
|
23248
|
-
|
|
23248
|
+
ms.prototype.elementClass = "", ms.prototype.toDOM = void 0, ms.prototype.mapMode = co.TrackBefore, ms.prototype.startSide = ms.prototype.endSide = -1, ms.prototype.point = !0;
|
|
23249
23249
|
var fm = Kt.define(), pue = { class: "", renderEmptyElements: !1, elementStyle: "", markers: function() {
|
|
23250
23250
|
return Pr.empty;
|
|
23251
23251
|
}, lineMarker: function() {
|
|
@@ -23552,7 +23552,7 @@ var mue = function() {
|
|
|
23552
23552
|
return r;
|
|
23553
23553
|
} });
|
|
23554
23554
|
} }), Qy = function(e) {
|
|
23555
|
-
Ve(n,
|
|
23555
|
+
Ve(n, ms);
|
|
23556
23556
|
var t = Ue(n);
|
|
23557
23557
|
function n(r) {
|
|
23558
23558
|
var i;
|
|
@@ -23595,7 +23595,7 @@ function cP(e) {
|
|
|
23595
23595
|
return t;
|
|
23596
23596
|
}
|
|
23597
23597
|
var wue = new (function(e) {
|
|
23598
|
-
Ve(n,
|
|
23598
|
+
Ve(n, ms);
|
|
23599
23599
|
var t = Ue(n);
|
|
23600
23600
|
function n() {
|
|
23601
23601
|
var r;
|
|
@@ -24772,7 +24772,7 @@ var Zy, Iue = function() {
|
|
|
24772
24772
|
}
|
|
24773
24773
|
}
|
|
24774
24774
|
} }]), e;
|
|
24775
|
-
}(), Ct = Eu.define, yv = Ct(), Au = Ct(), pP = Ct(Au), vP = Ct(Au), Mu = Ct(), bv = Ct(Mu), e1 = Ct(Mu),
|
|
24775
|
+
}(), Ct = Eu.define, yv = Ct(), Au = Ct(), pP = Ct(Au), vP = Ct(Au), Mu = Ct(), bv = Ct(Mu), e1 = Ct(Mu), ps = Ct(), $l = Ct(ps), fs = Ct(), ds = Ct(), lw = Ct(), $d = Ct(lw), wv = Ct(), kt = { comment: yv, lineComment: Ct(yv), blockComment: Ct(yv), docComment: Ct(yv), name: Au, variableName: Ct(Au), typeName: pP, tagName: Ct(pP), propertyName: vP, attributeName: Ct(vP), className: Ct(Au), labelName: Ct(Au), namespace: Ct(Au), macroName: Ct(Au), literal: Mu, string: bv, docString: Ct(bv), character: Ct(bv), attributeValue: Ct(bv), number: e1, integer: Ct(e1), float: Ct(e1), bool: Ct(Mu), regexp: Ct(Mu), escape: Ct(Mu), color: Ct(Mu), url: Ct(Mu), keyword: fs, self: Ct(fs), null: Ct(fs), atom: Ct(fs), unit: Ct(fs), modifier: Ct(fs), operatorKeyword: Ct(fs), controlKeyword: Ct(fs), definitionKeyword: Ct(fs), moduleKeyword: Ct(fs), operator: ds, derefOperator: Ct(ds), arithmeticOperator: Ct(ds), logicOperator: Ct(ds), bitwiseOperator: Ct(ds), compareOperator: Ct(ds), updateOperator: Ct(ds), definitionOperator: Ct(ds), typeOperator: Ct(ds), controlOperator: Ct(ds), punctuation: lw, separator: Ct(lw), bracket: $d, angleBracket: Ct($d), squareBracket: Ct($d), paren: Ct($d), brace: Ct($d), content: ps, heading: $l, heading1: Ct($l), heading2: Ct($l), heading3: Ct($l), heading4: Ct($l), heading5: Ct($l), heading6: Ct($l), contentSeparator: Ct(ps), list: Ct(ps), quote: Ct(ps), emphasis: Ct(ps), strong: Ct(ps), link: Ct(ps), monospace: Ct(ps), strikethrough: Ct(ps), inserted: Ct(), deleted: Ct(), changed: Ct(), invalid: Ct(), meta: wv, documentMeta: Ct(wv), annotation: Ct(wv), processingInstruction: Ct(wv), definition: Eu.defineModifier(), constant: Eu.defineModifier(), function: Eu.defineModifier(), standard: Eu.defineModifier(), local: Eu.defineModifier(), special: Eu.defineModifier() };
|
|
24776
24776
|
x7([{ tag: kt.link, class: "tok-link" }, { tag: kt.heading, class: "tok-heading" }, { tag: kt.emphasis, class: "tok-emphasis" }, { tag: kt.strong, class: "tok-strong" }, { tag: kt.keyword, class: "tok-keyword" }, { tag: kt.atom, class: "tok-atom" }, { tag: kt.bool, class: "tok-bool" }, { tag: kt.url, class: "tok-url" }, { tag: kt.labelName, class: "tok-labelName" }, { tag: kt.inserted, class: "tok-inserted" }, { tag: kt.deleted, class: "tok-deleted" }, { tag: kt.literal, class: "tok-literal" }, { tag: kt.string, class: "tok-string" }, { tag: kt.number, class: "tok-number" }, { tag: [kt.regexp, kt.escape, kt.special(kt.string)], class: "tok-string2" }, { tag: kt.variableName, class: "tok-variableName" }, { tag: kt.local(kt.variableName), class: "tok-variableName tok-local" }, { tag: kt.definition(kt.variableName), class: "tok-variableName tok-definition" }, { tag: kt.special(kt.variableName), class: "tok-variableName2" }, { tag: kt.definition(kt.propertyName), class: "tok-propertyName tok-definition" }, { tag: kt.typeName, class: "tok-typeName" }, { tag: kt.namespace, class: "tok-namespace" }, { tag: kt.className, class: "tok-className" }, { tag: kt.macroName, class: "tok-macroName" }, { tag: kt.propertyName, class: "tok-propertyName" }, { tag: kt.operator, class: "tok-operator" }, { tag: kt.comment, class: "tok-comment" }, { tag: kt.meta, class: "tok-meta" }, { tag: kt.invalid, class: "tok-invalid" }, { tag: kt.punctuation, class: "tok-punctuation" }]);
|
|
24777
24777
|
var rf = new Un(), Nue = new Un(), Ha = function() {
|
|
24778
24778
|
function e(t, n) {
|
|
@@ -25465,7 +25465,7 @@ var xP = cn.replace({ widget: new (function(e) {
|
|
|
25465
25465
|
}())() }), Jue = { openText: "⌄", closedText: "›", markerDOM: null, domEventHandlers: {}, foldingChanged: function() {
|
|
25466
25466
|
return !1;
|
|
25467
25467
|
} }, n1 = function(e) {
|
|
25468
|
-
Ve(n,
|
|
25468
|
+
Ve(n, ms);
|
|
25469
25469
|
var t = Ue(n);
|
|
25470
25470
|
function n(r, i) {
|
|
25471
25471
|
var o;
|
|
@@ -25595,7 +25595,7 @@ var ole = Wi.define({ create: function() {
|
|
|
25595
25595
|
for (o.s(); !(n = o.n()).done; ) {
|
|
25596
25596
|
var a = n.value;
|
|
25597
25597
|
if (a.empty) {
|
|
25598
|
-
var s =
|
|
25598
|
+
var s = ks(t.state, a.head, -1, i) || a.head > 0 && ks(t.state, a.head - 1, 1, i) || i.afterCursor && (ks(t.state, a.head, 1, i) || a.head < t.state.doc.length && ks(t.state, a.head + 1, -1, i));
|
|
25599
25599
|
s && (r = r.concat(i.renderMatch(s, t.state)));
|
|
25600
25600
|
}
|
|
25601
25601
|
}
|
|
@@ -25628,7 +25628,7 @@ function hw(e) {
|
|
|
25628
25628
|
var t = e.type.prop(ule);
|
|
25629
25629
|
return t ? t(e.node) : e;
|
|
25630
25630
|
}
|
|
25631
|
-
function
|
|
25631
|
+
function ks(e, t, n) {
|
|
25632
25632
|
for (var r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, i = r.maxScanDistance || M7, o = r.brackets || P7, a = io(e), s = a.resolveInner(t, n), u = s; u; u = u.parent) {
|
|
25633
25633
|
var l = dw(u.type, n, o);
|
|
25634
25634
|
if (l && u.from < u.to) {
|
|
@@ -25909,7 +25909,7 @@ var jle = R7(0), Sle = R7(1), ru = function() {
|
|
|
25909
25909
|
return i.toJSON();
|
|
25910
25910
|
}) };
|
|
25911
25911
|
} }], [{ key: "fromJSON", value: function(t) {
|
|
25912
|
-
return new e(t.changes &&
|
|
25912
|
+
return new e(t.changes && ns.fromJSON(t.changes), [], t.mapped && yf.fromJSON(t.mapped), t.startSelection && dt.fromJSON(t.startSelection), t.selectionsAfter.map(dt.fromJSON));
|
|
25913
25913
|
} }, { key: "fromTransaction", value: function(t, n) {
|
|
25914
25914
|
var r, i = ua, o = me(t.startState.facet(wle));
|
|
25915
25915
|
try {
|
|
@@ -26058,7 +26058,7 @@ function kv(e, t, n) {
|
|
|
26058
26058
|
Ale(e, a, i) ? r = a : o = n ? a.to : a.from;
|
|
26059
26059
|
}
|
|
26060
26060
|
var s, u;
|
|
26061
|
-
return u = r.type.prop(i) && (s = n ?
|
|
26061
|
+
return u = r.type.prop(i) && (s = n ? ks(e, r.from, 1) : ks(e, r.to, -1)) && s.matched ? n ? s.end.to : s.end.from : n ? r.to : r.from, dt.cursor(u, n ? -1 : 1);
|
|
26062
26062
|
}
|
|
26063
26063
|
function U7(e, t) {
|
|
26064
26064
|
return Wa(e, function(n) {
|
|
@@ -26528,7 +26528,7 @@ var s9 = function(e) {
|
|
|
26528
26528
|
} }, { key: "Shift-Mod-\\", run: function(e) {
|
|
26529
26529
|
return function(t, n, r) {
|
|
26530
26530
|
var i = !1, o = _f(t.selection, function(a) {
|
|
26531
|
-
var s =
|
|
26531
|
+
var s = ks(t, a.head, -1) || ks(t, a.head, 1) || a.head > 0 && ks(t, a.head - 1, 1) || a.head < t.doc.length && ks(t, a.head + 1, -1);
|
|
26532
26532
|
if (!s || !s.end)
|
|
26533
26533
|
return a;
|
|
26534
26534
|
i = !0;
|
|
@@ -28354,7 +28354,7 @@ function c1(e) {
|
|
|
28354
28354
|
return pm('<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="'.concat(e, '" fill="none" stroke-width=".7"/>'), 'width="6" height="3"');
|
|
28355
28355
|
}
|
|
28356
28356
|
var $ce = Vt.baseTheme({ ".cm-diagnostic": { padding: "3px 6px 3px 8px", marginLeft: "-1px", display: "block", whiteSpace: "pre-wrap" }, ".cm-diagnostic-error": { borderLeft: "5px solid #d11" }, ".cm-diagnostic-warning": { borderLeft: "5px solid orange" }, ".cm-diagnostic-info": { borderLeft: "5px solid #999" }, ".cm-diagnosticAction": { font: "inherit", border: "none", padding: "2px 4px", backgroundColor: "#444", color: "white", borderRadius: "3px", marginLeft: "8px", cursor: "pointer" }, ".cm-diagnosticSource": { fontSize: "70%", opacity: 0.7 }, ".cm-lintRange": { backgroundPosition: "left bottom", backgroundRepeat: "repeat-x", paddingBottom: "0.7px" }, ".cm-lintRange-error": { backgroundImage: c1("#d11") }, ".cm-lintRange-warning": { backgroundImage: c1("orange") }, ".cm-lintRange-info": { backgroundImage: c1("#999") }, ".cm-lintRange-active": { backgroundColor: "#ffdd9980" }, ".cm-tooltip-lint": { padding: 0, margin: 0 }, ".cm-lintPoint": { position: "relative", "&:after": { content: '""', position: "absolute", bottom: 0, left: "-2px", borderLeft: "3px solid transparent", borderRight: "3px solid transparent", borderBottom: "4px solid #d11" } }, ".cm-lintPoint-warning": { "&:after": { borderBottomColor: "orange" } }, ".cm-lintPoint-info": { "&:after": { borderBottomColor: "#999" } }, ".cm-panel.cm-panel-lint": { position: "relative", "& ul": { maxHeight: "100px", overflowY: "auto", "& [aria-selected]": { backgroundColor: "#ddd", "& u": { textDecoration: "underline" } }, "&:focus [aria-selected]": { background_fallback: "#bdf", backgroundColor: "Highlight", color_fallback: "white", color: "HighlightText" }, "& u": { textDecoration: "none" }, padding: 0, margin: 0 }, "& [name=close]": { position: "absolute", top: "0", right: "2px", background: "inherit", border: "none", font: "inherit", padding: 0, margin: 0 } } }), Tce = function(e) {
|
|
28357
|
-
Ve(n,
|
|
28357
|
+
Ve(n, ms);
|
|
28358
28358
|
var t = Ue(n);
|
|
28359
28359
|
function n(r) {
|
|
28360
28360
|
var i;
|
|
@@ -29671,7 +29671,7 @@ function ofe(e) {
|
|
|
29671
29671
|
}
|
|
29672
29672
|
function h8(e) {
|
|
29673
29673
|
var t, n, r, i, o, a = Ds(e[11] || "", Em) + "";
|
|
29674
|
-
return t = new
|
|
29674
|
+
return t = new os({ props: { icon: Sc, type: "error", message: "The JSON document is larger than ".concat(tv(B1, 1024), ", ") + "and may crash your browser when loading it in text mode. Actual size: ".concat(tv(e[11].length, 1024), "."), actions: [{ text: "Open anyway", title: "Open the document in text mode. This may freeze or crash your browser.", onClick: e[24] }, { text: "Open in tree mode", title: "Open the document in tree mode. Tree mode can handle large documents.", onClick: e[25] }, { text: "Cancel", title: "Cancel opening this large document.", onClick: e[26] }], onClose: e[5] } }), { c: function() {
|
|
29675
29675
|
De(t.$$.fragment), n = je(), r = ie("div"), i = ht(a), V(r, "class", "jse-contents jse-preview svelte-10sadri");
|
|
29676
29676
|
}, m: function(s, u) {
|
|
29677
29677
|
Le(t, s, u), ve(s, n, u), ve(s, r, u), X(r, i), o = !0;
|
|
@@ -29729,7 +29729,7 @@ function v8(e) {
|
|
|
29729
29729
|
}
|
|
29730
29730
|
function m8(e) {
|
|
29731
29731
|
var t, n;
|
|
29732
|
-
return t = new
|
|
29732
|
+
return t = new os({ props: { type: "error", icon: Sc, message: e[14].message, actions: e[15], onClick: e[29], onClose: e[5] } }), { c: function() {
|
|
29733
29733
|
De(t.$$.fragment);
|
|
29734
29734
|
}, m: function(r, i) {
|
|
29735
29735
|
Le(t, r, i), n = !0;
|
|
@@ -29746,7 +29746,7 @@ function m8(e) {
|
|
|
29746
29746
|
}
|
|
29747
29747
|
function g8(e) {
|
|
29748
29748
|
var t, n;
|
|
29749
|
-
return t = new
|
|
29749
|
+
return t = new os({ props: { type: "success", message: "Do you want to format the JSON?", actions: [{ icon: bb, text: "Format", title: "Format JSON: add proper indentation and new lines (Ctrl+I)", onClick: e[17] }, { icon: Df, text: "No thanks", title: "Close this message", onClick: e[51] }], onClose: e[5] } }), { c: function() {
|
|
29750
29750
|
De(t.$$.fragment);
|
|
29751
29751
|
}, m: function(r, i) {
|
|
29752
29752
|
Le(t, r, i), n = !0;
|
|
@@ -29825,7 +29825,7 @@ function sfe(e, t, n) {
|
|
|
29825
29825
|
var ye = !1;
|
|
29826
29826
|
function fe(Ae) {
|
|
29827
29827
|
O("patch", Ae);
|
|
29828
|
-
var wt = g.parse(j), Pt =
|
|
29828
|
+
var wt = g.parse(j), Pt = Qa(wt, Ae), H = hI(wt, Ae);
|
|
29829
29829
|
return pe({ text: g.stringify(Pt, null, p) }), { json: Pt, previousJson: wt, undo: H, redo: Ae };
|
|
29830
29830
|
}
|
|
29831
29831
|
function ze() {
|
|
@@ -29863,7 +29863,7 @@ function sfe(e, t, n) {
|
|
|
29863
29863
|
try {
|
|
29864
29864
|
var ct = g.parse(j);
|
|
29865
29865
|
ye = !0, S({ id: wt || de, json: ct, rootPath: Pt || [], onTransform: function(vt) {
|
|
29866
|
-
H ? H({ operations: vt, json: ct, transformedJson:
|
|
29866
|
+
H ? H({ operations: vt, json: ct, transformedJson: Qa(ct, vt) }) : (O("onTransform", vt), fe(vt));
|
|
29867
29867
|
}, onClose: function() {
|
|
29868
29868
|
ye = !1, we(), He && He();
|
|
29869
29869
|
} });
|
|
@@ -30222,7 +30222,7 @@ function hfe(e, t, n) {
|
|
|
30222
30222
|
return s.onPatch(function(p, v) {
|
|
30223
30223
|
return p.flatMap(function(m) {
|
|
30224
30224
|
if (vk(m)) {
|
|
30225
|
-
var g =
|
|
30225
|
+
var g = es(m.path);
|
|
30226
30226
|
if (g.length > 0) {
|
|
30227
30227
|
for (var y = [m], b = Nn(g); b.length > 0 && !fa(v, b); )
|
|
30228
30228
|
y.unshift({ op: "add", path: yt(b), value: {} }), b = Nn(b);
|
|
@@ -30677,7 +30677,7 @@ function Ffe(e) {
|
|
|
30677
30677
|
}
|
|
30678
30678
|
function Bfe(e) {
|
|
30679
30679
|
var t, n, r, i;
|
|
30680
|
-
return t = new
|
|
30680
|
+
return t = new os({ props: { type: "error", message: "The loaded JSON document is invalid and could not be repaired automatically.", actions: e[0] ? [] : [{ icon: ol, text: "Repair manually", onClick: e[36] }] } }), r = new JR({ props: { text: e[16] || "", json: e[8], indentation: e[3], parser: e[2] } }), { c: function() {
|
|
30681
30681
|
De(t.$$.fragment), n = je(), De(r.$$.fragment);
|
|
30682
30682
|
}, m: function(o, a) {
|
|
30683
30683
|
Le(t, o, a), ve(o, n, a), Le(r, o, a), i = !0;
|
|
@@ -30781,7 +30781,7 @@ function zfe(e) {
|
|
|
30781
30781
|
}
|
|
30782
30782
|
function T8(e) {
|
|
30783
30783
|
var t, n, r, i;
|
|
30784
|
-
return r = new md({ props: { validationError: Bf([], (t = e[22]) === null || t === void 0 ? void 0 : t.root), onExpand:
|
|
30784
|
+
return r = new md({ props: { validationError: Bf([], (t = e[22]) === null || t === void 0 ? void 0 : t.root), onExpand: ys } }), { c: function() {
|
|
30785
30785
|
n = ie("div"), De(r.$$.fragment), V(n, "class", "jse-table-root-error svelte-hs49xj");
|
|
30786
30786
|
}, m: function(o, a) {
|
|
30787
30787
|
ve(o, n, a), Le(r, n, null), i = !0;
|
|
@@ -30832,7 +30832,7 @@ function E8(e) {
|
|
|
30832
30832
|
}
|
|
30833
30833
|
function A8(e) {
|
|
30834
30834
|
var t, n;
|
|
30835
|
-
return t = new md({ props: { validationError: Bf([String(e[122])], e[123].row), onExpand:
|
|
30835
|
+
return t = new md({ props: { validationError: Bf([String(e[122])], e[123].row), onExpand: ys } }), { c: function() {
|
|
30836
30836
|
De(t.$$.fragment);
|
|
30837
30837
|
}, m: function(r, i) {
|
|
30838
30838
|
Le(t, r, i), n = !0;
|
|
@@ -30921,7 +30921,7 @@ function P8(e) {
|
|
|
30921
30921
|
}
|
|
30922
30922
|
function I8(e) {
|
|
30923
30923
|
var t, n;
|
|
30924
|
-
return t = new md({ props: { validationError: Bf(e[127], e[130]), onExpand:
|
|
30924
|
+
return t = new md({ props: { validationError: Bf(e[127], e[130]), onExpand: ys } }), { c: function() {
|
|
30925
30925
|
De(t.$$.fragment);
|
|
30926
30926
|
}, m: function(r, i) {
|
|
30927
30927
|
Le(t, r, i), n = !0;
|
|
@@ -31022,7 +31022,7 @@ function R8(e) {
|
|
|
31022
31022
|
}
|
|
31023
31023
|
function D8(e) {
|
|
31024
31024
|
var t, n;
|
|
31025
|
-
return t = new
|
|
31025
|
+
return t = new os({ props: { type: "info", message: "You pasted a JSON ".concat(Array.isArray(e[18].contents) ? "array" : "object", " as text"), actions: [{ icon: p0, text: "Paste as JSON instead", onMouseDown: e[34] }, { text: "Leave as is", onClick: e[35] }], onClose: e[75] } }), { c: function() {
|
|
31026
31026
|
De(t.$$.fragment);
|
|
31027
31027
|
}, m: function(r, i) {
|
|
31028
31028
|
Le(t, r, i), n = !0;
|
|
@@ -31039,7 +31039,7 @@ function D8(e) {
|
|
|
31039
31039
|
}
|
|
31040
31040
|
function F8(e) {
|
|
31041
31041
|
var t, n;
|
|
31042
|
-
return t = new
|
|
31042
|
+
return t = new os({ props: { type: "success", message: "The loaded JSON document was invalid but is successfully repaired.", actions: e[0] ? [] : [{ icon: Dh, text: "Ok", onClick: e[7] }, { icon: ol, text: "Repair manually instead", onClick: e[36] }], onClose: e[6] } }), { c: function() {
|
|
31043
31043
|
De(t.$$.fragment);
|
|
31044
31044
|
}, m: function(r, i) {
|
|
31045
31045
|
Le(t, r, i), n = !0;
|
|
@@ -31386,19 +31386,19 @@ function Hfe(e, t, n) {
|
|
|
31386
31386
|
}))).apply(this, arguments);
|
|
31387
31387
|
}
|
|
31388
31388
|
function se(oe, Pe) {
|
|
31389
|
-
var Je = Se, Qe = w, ut = C, Mt = { json: w, text: C }, Lt = Q, Ot = ia(w, Se, [],
|
|
31389
|
+
var Je = Se, Qe = w, ut = C, Mt = { json: w, text: C }, Lt = Q, Ot = ia(w, Se, [], gs), $t = typeof Pe == "function" ? Pe(oe, Ot) : void 0;
|
|
31390
31390
|
n(8, w = $t && $t.json !== void 0 ? $t.json : oe), n(11, Se = $t && $t.state !== void 0 ? $t.state : Ot), n(16, C = void 0), n(19, Q = !1), n(17, ee = void 0), Fe(w), nt({ previousJson: Qe, previousState: Je, previousText: ut, previousTextIsRepaired: Lt }), pt(Mt, null);
|
|
31391
31391
|
}
|
|
31392
31392
|
function ke(oe, Pe) {
|
|
31393
31393
|
s("handleChangeText");
|
|
31394
31394
|
var Je = Se, Qe = w, ut = C, Mt = { json: w, text: C }, Lt = Q;
|
|
31395
31395
|
try {
|
|
31396
|
-
n(8, w = F(oe)), n(11, Se = ia(w, Se, [],
|
|
31396
|
+
n(8, w = F(oe)), n(11, Se = ia(w, Se, [], gs)), n(16, C = void 0), n(19, Q = !1), n(17, ee = void 0);
|
|
31397
31397
|
} catch ($t) {
|
|
31398
31398
|
try {
|
|
31399
|
-
n(8, w = F(Cs(oe))), n(11, Se = ia(w, Se, [],
|
|
31399
|
+
n(8, w = F(Cs(oe))), n(11, Se = ia(w, Se, [], gs)), n(16, C = oe), n(19, Q = !0), n(17, ee = void 0);
|
|
31400
31400
|
} catch {
|
|
31401
|
-
n(8, w = void 0), n(11, Se = qm({ json: w, expand:
|
|
31401
|
+
n(8, w = void 0), n(11, Se = qm({ json: w, expand: gs })), n(16, C = oe), n(19, Q = !1), n(17, ee = C !== "" ? Pf(C, $t.message || $t.toString()) : void 0);
|
|
31402
31402
|
}
|
|
31403
31403
|
}
|
|
31404
31404
|
if (typeof Pe == "function") {
|
|
@@ -31411,7 +31411,7 @@ function Hfe(e, t, n) {
|
|
|
31411
31411
|
if (w !== void 0) {
|
|
31412
31412
|
var Pe = oe.id, Je = oe.onTransform, Qe = oe.onClose, ut = oe.rootPath || [];
|
|
31413
31413
|
ye = !0, E({ id: Pe || p, json: w, rootPath: ut || [], onTransform: function(Mt) {
|
|
31414
|
-
Je ? Je({ operations: Mt, json: w, transformedJson:
|
|
31414
|
+
Je ? Je({ operations: Mt, json: w, transformedJson: Qa(w, Mt) }) : (s("onTransform", ut, Mt), lt(Mt));
|
|
31415
31415
|
}, onClose: function() {
|
|
31416
31416
|
ye = !1, Qt(), Qe && Qe();
|
|
31417
31417
|
} });
|
|
@@ -31432,7 +31432,7 @@ function Hfe(e, t, n) {
|
|
|
31432
31432
|
var oe = be.undo();
|
|
31433
31433
|
if (oe) {
|
|
31434
31434
|
var Pe = { json: w, text: C };
|
|
31435
|
-
n(8, w = oe.undo.patch ?
|
|
31435
|
+
n(8, w = oe.undo.patch ? Qa(w, oe.undo.patch) : oe.undo.json), n(11, Se = oe.undo.state), n(16, C = oe.undo.text), n(19, Q = oe.undo.textIsRepaired), n(17, ee = void 0), s("undo", { item: oe, json: w }), pt(Pe, { json: w, previousJson: Pe.json, redo: oe.undo.patch, undo: oe.redo.patch }), Qt(), Se.selection && vn(Se.selection.focusPath, !1);
|
|
31436
31436
|
}
|
|
31437
31437
|
}
|
|
31438
31438
|
}
|
|
@@ -31441,7 +31441,7 @@ function Hfe(e, t, n) {
|
|
|
31441
31441
|
var oe = be.redo();
|
|
31442
31442
|
if (oe) {
|
|
31443
31443
|
var Pe = { json: w, text: C };
|
|
31444
|
-
n(8, w = oe.redo.patch ?
|
|
31444
|
+
n(8, w = oe.redo.patch ? Qa(w, oe.redo.patch) : oe.redo.json), n(11, Se = oe.redo.state), n(16, C = oe.redo.text), n(19, Q = oe.redo.textIsRepaired), n(17, ee = void 0), s("redo", { item: oe, json: w }), pt(Pe, { json: w, previousJson: Pe.json, redo: oe.redo.patch, undo: oe.undo.patch }), Qt(), Se.selection && vn(Se.selection.focusPath, !1);
|
|
31445
31445
|
}
|
|
31446
31446
|
}
|
|
31447
31447
|
}
|
|
@@ -31474,7 +31474,7 @@ function Hfe(e, t, n) {
|
|
|
31474
31474
|
} finally {
|
|
31475
31475
|
$t.f();
|
|
31476
31476
|
}
|
|
31477
|
-
return tn(Qe).map(
|
|
31477
|
+
return tn(Qe).map(es);
|
|
31478
31478
|
}(Zoe(w, S, de), we) : []), 1280 & e.$$.dirty[0] && n(25, r = w && !Tn(we)), 768 & e.$$.dirty[0] && n(24, i = Array.isArray(w) && w.length > de), 256 & e.$$.dirty[0] | 448 & e.$$.dirty[2] && n(23, o = eae(Z, ze, w, fe, Ad)), 256 & e.$$.dirty[0] && y && y.scrollTo({ top: y.scrollTop, left: y.scrollLeft }), 2309 & e.$$.dirty[0] | 33554432 & e.$$.dirty[1] | 32 & e.$$.dirty[2] && n(21, te = { readOnly: k, parser: O, normalization: m, getJson: function() {
|
|
31479
31479
|
return w;
|
|
31480
31480
|
}, getDocumentState: function() {
|
|
@@ -31859,7 +31859,7 @@ function ede(e) {
|
|
|
31859
31859
|
}
|
|
31860
31860
|
function tde(e) {
|
|
31861
31861
|
var t, n, r, i, o, a, s, u, l, f, c, d, h, p, v, m, g, y, b;
|
|
31862
|
-
n = new Mx({ props: { title: "Edit nested content " + (e[19].length > 1 ? " (".concat(e[19].length, ")") : ""), onClose: e[24] } }), d = new F9({ props: { mode: Dt(e[19]).mode, content: Dt(e[19]).content, readOnly: e[0], indentation: e[1], tabSize: e[2], statusBar: e[5], askToFormat: e[6], mainMenuBar: e[3], navigationBar: e[4], escapeControlCharacters: e[7], escapeUnicodeCharacters: e[8], flattenColumns: e[9], parser: e[10], parseMemoizeOne: e[21], validator: e[11], validationParser: e[12], pathParser: e[13], insideModal: !0, onError: e[27], onChange: e[25], onChangeMode: e[26], onRenderValue: e[14], onClassName: e[15], onFocus:
|
|
31862
|
+
n = new Mx({ props: { title: "Edit nested content " + (e[19].length > 1 ? " (".concat(e[19].length, ")") : ""), onClose: e[24] } }), d = new F9({ props: { mode: Dt(e[19]).mode, content: Dt(e[19]).content, readOnly: e[0], indentation: e[1], tabSize: e[2], statusBar: e[5], askToFormat: e[6], mainMenuBar: e[3], navigationBar: e[4], escapeControlCharacters: e[7], escapeUnicodeCharacters: e[8], flattenColumns: e[9], parser: e[10], parseMemoizeOne: e[21], validator: e[11], validationParser: e[12], pathParser: e[13], insideModal: !0, onError: e[27], onChange: e[25], onChangeMode: e[26], onRenderValue: e[14], onClassName: e[15], onFocus: ys, onBlur: ys, onRenderMenu: e[16], onSortModal: e[17], onTransformModal: e[18], onJSONEditorModal: e[28] } });
|
|
31863
31863
|
var w = e[20] && B8(e), C = e[19].length > 1 && z8(e);
|
|
31864
31864
|
function k(A, _) {
|
|
31865
31865
|
return A[0] ? Zfe : ede;
|
|
@@ -31909,7 +31909,7 @@ function nde(e, t, n) {
|
|
|
31909
31909
|
n(20, R = void 0);
|
|
31910
31910
|
var B = [{ op: "replace", path: yt(Dt($).relativePath), value: Q3(Dt($).content, w).json }];
|
|
31911
31911
|
if ($.length > 1) {
|
|
31912
|
-
var I = { json:
|
|
31912
|
+
var I = { json: Qa(Q3($[$.length - 2].content, w).json, B) };
|
|
31913
31913
|
n(19, $ = Nn($)), z(I);
|
|
31914
31914
|
} else
|
|
31915
31915
|
l(B), F();
|
|
@@ -32058,10 +32058,10 @@ function cde(e) {
|
|
|
32058
32058
|
} };
|
|
32059
32059
|
}
|
|
32060
32060
|
function fde(e, t, n) {
|
|
32061
|
-
var r, i, o, a = Mi("jsoneditor:JSONEditor"), s = t.content, u = s === void 0 ? { text: "" } : s, l = t.readOnly, f = l !== void 0 && l, c = t.indentation, d = c === void 0 ? 2 : c, h = t.tabSize, p = h === void 0 ? 4 : h, v = t.mode, m = v === void 0 ? Fi.tree : v, g = t.mainMenuBar, y = g === void 0 || g, b = t.navigationBar, w = b === void 0 || b, C = t.statusBar, k = C === void 0 || C, T = t.askToFormat, L = T === void 0 || T, A = t.escapeControlCharacters, _ = A !== void 0 && A, S = t.escapeUnicodeCharacters, O = S !== void 0 && S, F = t.flattenColumns, $ = F === void 0 || F, R = t.parser, q = R === void 0 ? JSON : R, z = t.validator, B = z === void 0 ? null : z, I = t.validationParser, M = I === void 0 ? JSON : I, P = t.pathParser, N = P === void 0 ? { parse: Nee, stringify: Mo } : P, j = t.queryLanguages, E = j === void 0 ? [Dee] : j, D = t.queryLanguageId, J = D === void 0 ? E[0].id : D, ee = t.onChangeQueryLanguage, de = ee === void 0 ?
|
|
32062
|
-
} : Z, Fe = t.onRenderMenu, Se = Fe === void 0 ?
|
|
32061
|
+
var r, i, o, a = Mi("jsoneditor:JSONEditor"), s = t.content, u = s === void 0 ? { text: "" } : s, l = t.readOnly, f = l !== void 0 && l, c = t.indentation, d = c === void 0 ? 2 : c, h = t.tabSize, p = h === void 0 ? 4 : h, v = t.mode, m = v === void 0 ? Fi.tree : v, g = t.mainMenuBar, y = g === void 0 || g, b = t.navigationBar, w = b === void 0 || b, C = t.statusBar, k = C === void 0 || C, T = t.askToFormat, L = T === void 0 || T, A = t.escapeControlCharacters, _ = A !== void 0 && A, S = t.escapeUnicodeCharacters, O = S !== void 0 && S, F = t.flattenColumns, $ = F === void 0 || F, R = t.parser, q = R === void 0 ? JSON : R, z = t.validator, B = z === void 0 ? null : z, I = t.validationParser, M = I === void 0 ? JSON : I, P = t.pathParser, N = P === void 0 ? { parse: Nee, stringify: Mo } : P, j = t.queryLanguages, E = j === void 0 ? [Dee] : j, D = t.queryLanguageId, J = D === void 0 ? E[0].id : D, ee = t.onChangeQueryLanguage, de = ee === void 0 ? ys : ee, we = t.onChange, ye = we === void 0 ? null : we, fe = t.onRenderValue, ze = fe === void 0 ? Bte : fe, Z = t.onClassName, Ee = Z === void 0 ? function() {
|
|
32062
|
+
} : Z, Fe = t.onRenderMenu, Se = Fe === void 0 ? ys : Fe, Q = t.onChangeMode, te = Q === void 0 ? ys : Q, be = t.onError, Me = be === void 0 ? function(H) {
|
|
32063
32063
|
console.error(H), alert(H.toString());
|
|
32064
|
-
} : be, Oe = t.onFocus, nt = Oe === void 0 ?
|
|
32064
|
+
} : be, Oe = t.onFocus, nt = Oe === void 0 ? ys : Oe, pe = t.onBlur, Ne = pe === void 0 ? ys : pe, qe = eh(), et = !1, Ge = null, lt = q;
|
|
32065
32065
|
function pt() {
|
|
32066
32066
|
return (pt = rn(ot().mark(function H(He) {
|
|
32067
32067
|
var ct;
|
|
@@ -33589,7 +33589,7 @@ function V9() {
|
|
|
33589
33589
|
e.reportTypeError = d;
|
|
33590
33590
|
})(Zh);
|
|
33591
33591
|
var i5, Md = {}, o5, a5, Ea = {}, pr = {};
|
|
33592
|
-
function
|
|
33592
|
+
function as() {
|
|
33593
33593
|
if (o5)
|
|
33594
33594
|
return pr;
|
|
33595
33595
|
o5 = 1, Object.defineProperty(pr, "__esModule", { value: !0 }), pr.validateUnion = pr.validateArray = pr.usePattern = pr.callValidateCode = pr.schemaProperties = pr.allSchemaProperties = pr.noPropertyInData = pr.propertyInData = pr.isOwnProperty = pr.hasPropFunc = pr.reportMissingProp = pr.checkMissingProp = pr.checkReportMissingProp = void 0;
|
|
@@ -33680,7 +33680,7 @@ function gde() {
|
|
|
33680
33680
|
if (a5)
|
|
33681
33681
|
return Ea;
|
|
33682
33682
|
a5 = 1, Object.defineProperty(Ea, "__esModule", { value: !0 }), Ea.validateKeywordUsage = Ea.validSchemaType = Ea.funcKeywordCode = Ea.macroKeywordCode = void 0;
|
|
33683
|
-
var e = Hn(), t = fl(), n =
|
|
33683
|
+
var e = Hn(), t = fl(), n = as(), r = _g();
|
|
33684
33684
|
function i(a) {
|
|
33685
33685
|
var s = a.gen, u = a.data, l = a.it;
|
|
33686
33686
|
s.if(l.parentData, function() {
|
|
@@ -35395,7 +35395,7 @@ var Pde = { keyword: "id", code: function() {
|
|
|
35395
35395
|
y_.default = Pde;
|
|
35396
35396
|
var ec = {};
|
|
35397
35397
|
Object.defineProperty(ec, "__esModule", { value: !0 }), ec.callRef = ec.getValidate = void 0;
|
|
35398
|
-
var Ide = p_(), h5 =
|
|
35398
|
+
var Ide = p_(), h5 = as(), bo = Hn(), Oc = fl(), p5 = xo, Pv = nr, Nde = { keyword: "$ref", schemaType: "string", code: function(e) {
|
|
35399
35399
|
var t = e.gen, n = e.schema, r = e.it, i = r.baseId, o = r.schemaEnv, a = r.validateName, s = r.opts, u = r.self, l = o.root;
|
|
35400
35400
|
if ((n === "#" || n === "#/") && i === l.baseId)
|
|
35401
35401
|
return function() {
|
|
@@ -35508,7 +35508,7 @@ var Rl = Hn(), zde = nr, Vde = $w, Ude = { message: function(e) {
|
|
|
35508
35508
|
x_.default = qde;
|
|
35509
35509
|
var __ = {};
|
|
35510
35510
|
Object.defineProperty(__, "__esModule", { value: !0 });
|
|
35511
|
-
var Hde =
|
|
35511
|
+
var Hde = as(), Iv = Hn(), Wde = { keyword: "pattern", type: "string", schemaType: "string", $data: !0, error: { message: function(e) {
|
|
35512
35512
|
var t = e.schemaCode;
|
|
35513
35513
|
return (0, Iv.str)(j$ || (j$ = ce(['must match pattern "', '"'])), t);
|
|
35514
35514
|
}, params: function(e) {
|
|
@@ -35534,7 +35534,7 @@ var fh = Hn(), Kde = { message: function(e) {
|
|
|
35534
35534
|
j_.default = Gde;
|
|
35535
35535
|
var S_ = {};
|
|
35536
35536
|
Object.defineProperty(S_, "__esModule", { value: !0 });
|
|
35537
|
-
var Id =
|
|
35537
|
+
var Id = as(), Nd = Hn(), Jde = nr, Qde = { keyword: "required", type: "object", schemaType: "array", $data: !0, error: { message: function(e) {
|
|
35538
35538
|
var t = e.params.missingProperty;
|
|
35539
35539
|
return (0, Nd.str)(A$ || (A$ = ce(["must have required property '", "'"])), t);
|
|
35540
35540
|
}, params: function(e) {
|
|
@@ -35737,7 +35737,7 @@ function Y9(e, t) {
|
|
|
35737
35737
|
Gf.validateAdditionalItems = Y9, Gf.default = bhe;
|
|
35738
35738
|
var A_ = {}, Jf = {};
|
|
35739
35739
|
Object.defineProperty(Jf, "__esModule", { value: !0 }), Jf.validateTuple = void 0;
|
|
35740
|
-
var g5 = Hn(), bm = nr, whe =
|
|
35740
|
+
var g5 = Hn(), bm = nr, whe = as(), khe = { keyword: "items", type: "array", schemaType: ["object", "array", "boolean"], before: "uniqueItems", code: function(e) {
|
|
35741
35741
|
var t = e.schema, n = e.it;
|
|
35742
35742
|
if (Array.isArray(t))
|
|
35743
35743
|
return X9(e, "additionalItems", t);
|
|
@@ -35766,7 +35766,7 @@ var xhe = Jf, _he = { keyword: "prefixItems", type: "array", schemaType: ["array
|
|
|
35766
35766
|
A_.default = _he;
|
|
35767
35767
|
var M_ = {};
|
|
35768
35768
|
Object.defineProperty(M_, "__esModule", { value: !0 });
|
|
35769
|
-
var y5 = Hn(), jhe = nr, She =
|
|
35769
|
+
var y5 = Hn(), jhe = nr, She = as(), Che = Gf, $he = { keyword: "items", type: "array", schemaType: ["object", "boolean"], before: "uniqueItems", error: { message: function(e) {
|
|
35770
35770
|
var t = e.params.len;
|
|
35771
35771
|
return (0, y5.str)(hT || (hT = ce(["must NOT have more than ", " items"])), t);
|
|
35772
35772
|
}, params: function(e) {
|
|
@@ -35833,7 +35833,7 @@ P_.default = Ohe;
|
|
|
35833
35833
|
var Z9 = {};
|
|
35834
35834
|
(function(e) {
|
|
35835
35835
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateSchemaDeps = e.validatePropertyDeps = e.error = void 0;
|
|
35836
|
-
var t = Hn(), n = nr, r =
|
|
35836
|
+
var t = Hn(), n = nr, r = as();
|
|
35837
35837
|
e.error = { message: function(s) {
|
|
35838
35838
|
var u = s.params, l = u.property, f = u.depsCount, c = u.deps, d = f === 1 ? "property" : "properties";
|
|
35839
35839
|
return (0, t.str)($T || ($T = ce(["must have ", " ", " when property ", " is present"])), d, c, l);
|
|
@@ -35914,7 +35914,7 @@ var b5 = Hn(), Ehe = nr, Ahe = { keyword: "propertyNames", type: "object", schem
|
|
|
35914
35914
|
I_.default = Ahe;
|
|
35915
35915
|
var L0 = {};
|
|
35916
35916
|
Object.defineProperty(L0, "__esModule", { value: !0 });
|
|
35917
|
-
var Lv =
|
|
35917
|
+
var Lv = as(), Ma = Hn(), Mhe = fl(), Rv = nr, Phe = { keyword: "additionalProperties", type: ["object"], schemaType: ["boolean", "object"], allowUndefined: !0, trackErrors: !0, error: { message: "must NOT have additional properties", params: function(e) {
|
|
35918
35918
|
var t = e.params;
|
|
35919
35919
|
return (0, Ma._)(AT || (AT = ce(["{additionalProperty: ", "}"])), t.additionalProperty);
|
|
35920
35920
|
} }, code: function(e) {
|
|
@@ -35969,7 +35969,7 @@ var Lv = os(), Ma = Hn(), Mhe = fl(), Rv = nr, Phe = { keyword: "additionalPrope
|
|
|
35969
35969
|
L0.default = Phe;
|
|
35970
35970
|
var N_ = {};
|
|
35971
35971
|
Object.defineProperty(N_, "__esModule", { value: !0 });
|
|
35972
|
-
var Ihe = I0(), w5 =
|
|
35972
|
+
var Ihe = I0(), w5 = as(), m1 = nr, k5 = L0, Nhe = { keyword: "properties", type: "object", schemaType: "object", code: function(e) {
|
|
35973
35973
|
var t = e.gen, n = e.schema, r = e.parentSchema, i = e.data, o = e.it;
|
|
35974
35974
|
o.opts.removeAdditional === "all" && r.additionalProperties === void 0 && k5.default.code(new Ihe.KeywordCxt(o, k5.default, "additionalProperties"));
|
|
35975
35975
|
var a, s = (0, w5.allSchemaProperties)(n), u = me(s);
|
|
@@ -36010,7 +36010,7 @@ var Ihe = I0(), w5 = os(), m1 = nr, k5 = L0, Nhe = { keyword: "properties", type
|
|
|
36010
36010
|
N_.default = Nhe;
|
|
36011
36011
|
var L_ = {};
|
|
36012
36012
|
Object.defineProperty(L_, "__esModule", { value: !0 });
|
|
36013
|
-
var x5 =
|
|
36013
|
+
var x5 = as(), Dv = Hn(), _5 = nr, j5 = nr, Lhe = { keyword: "patternProperties", type: "object", schemaType: "object", code: function(e) {
|
|
36014
36014
|
var t = e.gen, n = e.schema, r = e.data, i = e.parentSchema, o = e.it, a = o.opts, s = (0, x5.allSchemaProperties)(n), u = s.filter(function(p) {
|
|
36015
36015
|
return (0, _5.alwaysValidSchema)(o, n[p]);
|
|
36016
36016
|
});
|
|
@@ -36066,7 +36066,7 @@ var Rhe = nr, Dhe = { keyword: "not", schemaType: ["object", "boolean"], trackEr
|
|
|
36066
36066
|
R_.default = Dhe;
|
|
36067
36067
|
var D_ = {};
|
|
36068
36068
|
Object.defineProperty(D_, "__esModule", { value: !0 });
|
|
36069
|
-
var Fhe = { keyword: "anyOf", schemaType: "array", trackErrors: !0, code:
|
|
36069
|
+
var Fhe = { keyword: "anyOf", schemaType: "array", trackErrors: !0, code: as().validateUnion, error: { message: "must match a schema in anyOf" } };
|
|
36070
36070
|
D_.default = Fhe;
|
|
36071
36071
|
var F_ = {};
|
|
36072
36072
|
Object.defineProperty(F_, "__esModule", { value: !0 });
|
|
@@ -37221,7 +37221,7 @@ function y1(e, t, n) {
|
|
|
37221
37221
|
});
|
|
37222
37222
|
}
|
|
37223
37223
|
var rF = "keydown", Vv = "mousedown", b1 = "focusin";
|
|
37224
|
-
function
|
|
37224
|
+
function hs(e, t) {
|
|
37225
37225
|
return (t || document).querySelector(e);
|
|
37226
37226
|
}
|
|
37227
37227
|
function iF(e) {
|
|
@@ -37309,7 +37309,7 @@ var oF = function() {
|
|
|
37309
37309
|
return this._setPosition(), t;
|
|
37310
37310
|
}
|
|
37311
37311
|
var n, r, i = this.settings.template || '<div class="picker_wrapper" tabindex="-1"><div class="picker_arrow"></div><div class="picker_hue picker_slider"><div class="picker_selector"></div></div><div class="picker_sl"><div class="picker_selector"></div></div><div class="picker_alpha picker_slider"><div class="picker_selector"></div></div><div class="picker_editor"><input aria-label="Type a color name or hex value"/></div><div class="picker_sample"></div><div class="picker_done"><button>Ok</button></div><div class="picker_cancel"><button>Cancel</button></div></div>', o = (n = i, (r = document.createElement("div")).innerHTML = n, r.firstElementChild);
|
|
37312
|
-
return this.domElement = o, this._domH =
|
|
37312
|
+
return this.domElement = o, this._domH = hs(".picker_hue", o), this._domSL = hs(".picker_sl", o), this._domA = hs(".picker_alpha", o), this._domEdit = hs(".picker_editor input", o), this._domSample = hs(".picker_sample", o), this._domOkay = hs(".picker_done button", o), this._domCancel = hs(".picker_cancel button", o), o.classList.add("layout_" + this.settings.layout), this.settings.alpha || o.classList.add("no_alpha"), this.settings.editor || o.classList.add("no_editor"), this.settings.cancelButton || o.classList.add("no_cancel"), this._ifPopup(function() {
|
|
37313
37313
|
return o.classList.add("popup");
|
|
37314
37314
|
}), this._setPosition(), this.colour ? this._updateUI() : this._setColor(this.settings.defaultColor), this._bindEvents(), !0;
|
|
37315
37315
|
} }, { key: "hide", value: function() {
|
|
@@ -37370,7 +37370,7 @@ var oF = function() {
|
|
|
37370
37370
|
} }, { key: "_updateUI", value: function(t) {
|
|
37371
37371
|
if (this.domElement) {
|
|
37372
37372
|
t = t || {};
|
|
37373
|
-
var n = this.colour, r = n.hsla, i = "hsl(" + 360 * r[0] + ", 100%, 50%)", o = n.hslString, a = n.hslaString, s = this._domH, u = this._domSL, l = this._domA, f =
|
|
37373
|
+
var n = this.colour, r = n.hsla, i = "hsl(" + 360 * r[0] + ", 100%, 50%)", o = n.hslString, a = n.hslaString, s = this._domH, u = this._domSL, l = this._domA, f = hs(".picker_selector", s), c = hs(".picker_selector", u), d = hs(".picker_selector", l);
|
|
37374
37374
|
b(0, f, r[0]), this._domSL.style.backgroundColor = this._domH.style.color = i, b(0, c, r[1]), w(0, c, 1 - r[2]), u.style.color = o, w(0, d, 1 - r[3]);
|
|
37375
37375
|
var h = o, p = h.replace("hsl", "hsla").replace(")", ", 0)"), v = "linear-gradient(" + [h, p] + ")";
|
|
37376
37376
|
if (this._domA.style.background = v + `, linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0 / 2em 2em,
|
|
@@ -39762,7 +39762,7 @@ async function Zpe(e, t) {
|
|
|
39762
39762
|
ga.log(`Loading audio ${t.src}`);
|
|
39763
39763
|
const i = new Ms.Howl({
|
|
39764
39764
|
...t,
|
|
39765
|
-
src:
|
|
39765
|
+
src: rs(t.src)
|
|
39766
39766
|
});
|
|
39767
39767
|
i.load(), wF[e] = i, n();
|
|
39768
39768
|
});
|
|
@@ -39816,7 +39816,7 @@ async function kF(e, t) {
|
|
|
39816
39816
|
af[e] = o, ga.log(`Loaded image ${e} successfully`), r(o);
|
|
39817
39817
|
}, o.onerror = (a) => {
|
|
39818
39818
|
en(`Failed to load image ${e} at ${t}`, a), i(a);
|
|
39819
|
-
}, o.src =
|
|
39819
|
+
}, o.src = rs(t);
|
|
39820
39820
|
});
|
|
39821
39821
|
return af[e] = n, n;
|
|
39822
39822
|
}
|
|
@@ -41623,7 +41623,7 @@ const HF = G.Type.Object({
|
|
|
41623
41623
|
function Dve(e) {
|
|
41624
41624
|
return e === Tg || e === Y_ || e === Rve || e === Og;
|
|
41625
41625
|
}
|
|
41626
|
-
const Fve = "3.2.
|
|
41626
|
+
const Fve = "3.2.15", Bve = /* @__PURE__ */ new Date("2023-07-15T22:19:56.909Z"), zve = 400, Eg = 20, X_ = "@empty", R5 = {
|
|
41627
41627
|
background: X_
|
|
41628
41628
|
}, Vve = G.Type.Object({
|
|
41629
41629
|
color: G.Type.Optional(G.Type.String()),
|
|
@@ -43526,7 +43526,7 @@ const zo = Ci("notifications", {
|
|
|
43526
43526
|
}
|
|
43527
43527
|
],
|
|
43528
43528
|
buttons: {}
|
|
43529
|
-
}),
|
|
43529
|
+
}), Ga = Ci("screens", {
|
|
43530
43530
|
state: I0e,
|
|
43531
43531
|
actions: {
|
|
43532
43532
|
setScreen(e, t, n) {
|
|
@@ -43644,6 +43644,9 @@ const zo = Ci("notifications", {
|
|
|
43644
43644
|
getters: {
|
|
43645
43645
|
nonEmptyLayers(e) {
|
|
43646
43646
|
return e.layers.filter((t) => t);
|
|
43647
|
+
},
|
|
43648
|
+
isTransitioning(e) {
|
|
43649
|
+
return e.layers.some((t) => t == null ? void 0 : t.transition);
|
|
43647
43650
|
}
|
|
43648
43651
|
}
|
|
43649
43652
|
});
|
|
@@ -44703,7 +44706,7 @@ const ma = Ci("rendering", {
|
|
|
44703
44706
|
},
|
|
44704
44707
|
showDialog(e) {
|
|
44705
44708
|
const t = an().inScript;
|
|
44706
|
-
return !this.overlayMode || this.layoutMode === "vertical" ? !0 : t;
|
|
44709
|
+
return Ga().isTransitioning ? !1 : !this.overlayMode || this.layoutMode === "vertical" ? !0 : t;
|
|
44707
44710
|
}
|
|
44708
44711
|
}
|
|
44709
44712
|
});
|
|
@@ -45057,7 +45060,7 @@ const an = Ci("main", {
|
|
|
45057
45060
|
});
|
|
45058
45061
|
},
|
|
45059
45062
|
resetAllStores() {
|
|
45060
|
-
const e =
|
|
45063
|
+
const e = Ga(), t = xt();
|
|
45061
45064
|
$o().reset(), e.reset(t), Gr().reset(cu()), ou().setupHudStats(t.hudStats), xi().reset(K2().items), nc().reset(ed().achievements), po().reset(W0()), Vo().reset(xt()), ir().reset(), jn.customStores().forEach(([u, l]) => {
|
|
45062
45065
|
l.reset && l.reset();
|
|
45063
45066
|
});
|
|
@@ -45076,7 +45079,7 @@ const an = Ci("main", {
|
|
|
45076
45079
|
autoSaveGame({ slotId: e, name: t }) {
|
|
45077
45080
|
const n = e ?? this.saveSlot, r = ph(n), i = fve();
|
|
45078
45081
|
r && r.saveData ? i.name = r.saveData.metadata.name : i.name = t ?? "Auto Save", xt().saves.mode === "manual" && (i.name = "Auto Save");
|
|
45079
|
-
const o =
|
|
45082
|
+
const o = Ga(), a = Gr(), s = ir(), u = dn(), l = an(), f = ou(), c = Li(), d = xi(), h = u.generateSaveData(), p = nc(), v = {
|
|
45080
45083
|
version: xF,
|
|
45081
45084
|
screen: o.generateSaveData(),
|
|
45082
45085
|
skills: a.generateSaveData(),
|
|
@@ -45111,7 +45114,7 @@ const an = Ci("main", {
|
|
|
45111
45114
|
nc().loadSaveData(e.achievements);
|
|
45112
45115
|
},
|
|
45113
45116
|
setLoadedData(e) {
|
|
45114
|
-
const t =
|
|
45117
|
+
const t = Ga(), n = Gr(), r = ir(), i = dn(), o = an(), a = ou(), s = Li(), u = xi();
|
|
45115
45118
|
this.loadGlobalData(), $o().loadSaveData(e.screenObjects), Jo().loadSaveData(e.config), t.loadSaveData(e.screen), n.loadSaveData(e.skills), r.loadSaveData(e.dialog), i.loadSaveData(e.vm, iu().globalSave), o.loadSaveData(e.main), a.loadSaveData(e.hud), s.loadSaveData(e.audio), u.loadSaveData(e.inventory), Vo().loadSaveData(e.settings), po().loadSaveData(e.quests), jn.plugins.forEach((l) => {
|
|
45116
45119
|
l.load && e[l.pluginId] && l.load(e[l.pluginId]);
|
|
45117
45120
|
}), jn.customStores().forEach(([l, f]) => {
|
|
@@ -45121,7 +45124,7 @@ const an = Ci("main", {
|
|
|
45121
45124
|
getAllStates() {
|
|
45122
45125
|
return {
|
|
45123
45126
|
main: this,
|
|
45124
|
-
screens:
|
|
45127
|
+
screens: Ga(),
|
|
45125
45128
|
skills: Gr(),
|
|
45126
45129
|
dialog: ir(),
|
|
45127
45130
|
vm: dn(),
|
|
@@ -45332,7 +45335,7 @@ const _ye = G.Type.Object({
|
|
|
45332
45335
|
saves: G.Type.Optional(hye),
|
|
45333
45336
|
characters: G.Type.Union([G.Type.String(), KF])
|
|
45334
45337
|
});
|
|
45335
|
-
var Vw = { exports: {} }, nz = {},
|
|
45338
|
+
var Vw = { exports: {} }, nz = {}, Za = {}, Xf = {}, Ip = {}, qn = {}, up = {};
|
|
45336
45339
|
(function(e) {
|
|
45337
45340
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.regexpCode = e.getEsmExportName = e.getProperty = e.safeStringify = e.stringify = e.strConcat = e.addCodeArg = e.str = e._ = e.nil = e._Code = e.Name = e.IDENTIFIER = e._CodeOrName = void 0;
|
|
45338
45341
|
class t {
|
|
@@ -46806,7 +46809,7 @@ xs.validateKeywordUsage = r1e;
|
|
|
46806
46809
|
var Qu = {};
|
|
46807
46810
|
Object.defineProperty(Qu, "__esModule", { value: !0 });
|
|
46808
46811
|
Qu.extendSubschemaMode = Qu.extendSubschemaData = Qu.getSubschema = void 0;
|
|
46809
|
-
const
|
|
46812
|
+
const bs = qn, lz = rr;
|
|
46810
46813
|
function i1e(e, { keyword: t, schemaProp: n, schema: r, schemaPath: i, errSchemaPath: o, topSchemaRef: a }) {
|
|
46811
46814
|
if (t !== void 0 && r !== void 0)
|
|
46812
46815
|
throw new Error('both "keyword" and "schema" passed, only one allowed');
|
|
@@ -46814,11 +46817,11 @@ function i1e(e, { keyword: t, schemaProp: n, schema: r, schemaPath: i, errSchema
|
|
|
46814
46817
|
const s = e.schema[t];
|
|
46815
46818
|
return n === void 0 ? {
|
|
46816
46819
|
schema: s,
|
|
46817
|
-
schemaPath: (0,
|
|
46820
|
+
schemaPath: (0, bs._)`${e.schemaPath}${(0, bs.getProperty)(t)}`,
|
|
46818
46821
|
errSchemaPath: `${e.errSchemaPath}/${t}`
|
|
46819
46822
|
} : {
|
|
46820
46823
|
schema: s[n],
|
|
46821
|
-
schemaPath: (0,
|
|
46824
|
+
schemaPath: (0, bs._)`${e.schemaPath}${(0, bs.getProperty)(t)}${(0, bs.getProperty)(n)}`,
|
|
46822
46825
|
errSchemaPath: `${e.errSchemaPath}/${t}/${(0, lz.escapeFragment)(n)}`
|
|
46823
46826
|
};
|
|
46824
46827
|
}
|
|
@@ -46840,11 +46843,11 @@ function o1e(e, t, { dataProp: n, dataPropType: r, data: i, dataTypes: o, proper
|
|
|
46840
46843
|
throw new Error('both "data" and "dataProp" passed, only one allowed');
|
|
46841
46844
|
const { gen: s } = t;
|
|
46842
46845
|
if (n !== void 0) {
|
|
46843
|
-
const { errorPath: l, dataPathArr: f, opts: c } = t, d = s.let("data", (0,
|
|
46844
|
-
u(d), e.errorPath = (0,
|
|
46846
|
+
const { errorPath: l, dataPathArr: f, opts: c } = t, d = s.let("data", (0, bs._)`${t.data}${(0, bs.getProperty)(n)}`, !0);
|
|
46847
|
+
u(d), e.errorPath = (0, bs.str)`${l}${(0, lz.getErrorPath)(n, r, c.jsPropertySyntax)}`, e.parentDataProperty = (0, bs._)`${n}`, e.dataPathArr = [...f, e.parentDataProperty];
|
|
46845
46848
|
}
|
|
46846
46849
|
if (i !== void 0) {
|
|
46847
|
-
const l = i instanceof
|
|
46850
|
+
const l = i instanceof bs.Name ? i : s.let("data", i, !0);
|
|
46848
46851
|
u(l), a !== void 0 && (e.propertyName = a);
|
|
46849
46852
|
}
|
|
46850
46853
|
o && (e.dataTypes = o);
|
|
@@ -47071,8 +47074,8 @@ function y1e(e, t) {
|
|
|
47071
47074
|
}
|
|
47072
47075
|
}
|
|
47073
47076
|
Vi.getSchemaRefs = y1e;
|
|
47074
|
-
Object.defineProperty(
|
|
47075
|
-
|
|
47077
|
+
Object.defineProperty(Za, "__esModule", { value: !0 });
|
|
47078
|
+
Za.getData = Za.KeywordCxt = Za.validateFunctionCode = void 0;
|
|
47076
47079
|
const vz = Xf, s6 = Np, d2 = uu, Lg = Np, b1e = V0, vh = xs, $1 = Qu, Zt = qn, wn = qs, w1e = Vi, lu = rr, Rd = Ip;
|
|
47077
47080
|
function k1e(e) {
|
|
47078
47081
|
if (yz(e) && (bz(e), gz(e))) {
|
|
@@ -47081,7 +47084,7 @@ function k1e(e) {
|
|
|
47081
47084
|
}
|
|
47082
47085
|
mz(e, () => (0, vz.topBoolOrEmptySchema)(e));
|
|
47083
47086
|
}
|
|
47084
|
-
|
|
47087
|
+
Za.validateFunctionCode = k1e;
|
|
47085
47088
|
function mz({ gen: e, validateName: t, schema: n, schemaEnv: r, opts: i }, o) {
|
|
47086
47089
|
i.code.es5 ? e.func(t, (0, Zt._)`${wn.default.data}, ${wn.default.valCxt}`, r.$async, () => {
|
|
47087
47090
|
e.code((0, Zt._)`"use strict"; ${u6(n, i)}`), _1e(e, i), e.code(o);
|
|
@@ -47342,7 +47345,7 @@ class _z {
|
|
|
47342
47345
|
return i.if(n, () => this.mergeEvaluated(t, Zt.Name)), !0;
|
|
47343
47346
|
}
|
|
47344
47347
|
}
|
|
47345
|
-
|
|
47348
|
+
Za.KeywordCxt = _z;
|
|
47346
47349
|
function jz(e, t, n, r) {
|
|
47347
47350
|
const i = new _z(e, n, t);
|
|
47348
47351
|
"code" in n ? n.code(i, r) : i.$data && n.validate ? (0, vh.funcKeywordCode)(i, n) : "macro" in n ? (0, vh.macroKeywordCode)(i, n) : (n.compile || n.validate) && (0, vh.funcKeywordCode)(i, n);
|
|
@@ -47380,7 +47383,7 @@ function Sz(e, { dataLevel: t, dataNames: n, dataPathArr: r }) {
|
|
|
47380
47383
|
return `Cannot access ${l} ${f} levels up, current level is ${t}`;
|
|
47381
47384
|
}
|
|
47382
47385
|
}
|
|
47383
|
-
|
|
47386
|
+
Za.getData = Sz;
|
|
47384
47387
|
var Lp = {};
|
|
47385
47388
|
Object.defineProperty(Lp, "__esModule", { value: !0 });
|
|
47386
47389
|
class V1e extends Error {
|
|
@@ -47401,7 +47404,7 @@ Rp.default = U1e;
|
|
|
47401
47404
|
var jo = {};
|
|
47402
47405
|
Object.defineProperty(jo, "__esModule", { value: !0 });
|
|
47403
47406
|
jo.resolveSchema = jo.getCompilingSchema = jo.resolveRef = jo.compileSchema = jo.SchemaEnv = void 0;
|
|
47404
|
-
const Pa = qn, q1e = Lp, El = qs, Va = Vi, f6 = rr, H1e =
|
|
47407
|
+
const Pa = qn, q1e = Lp, El = qs, Va = Vi, f6 = rr, H1e = Za;
|
|
47405
47408
|
class U0 {
|
|
47406
47409
|
constructor(t) {
|
|
47407
47410
|
var n;
|
|
@@ -48135,7 +48138,7 @@ $z.code = 'require("ajv/dist/runtime/uri").default';
|
|
|
48135
48138
|
v2.default = $z;
|
|
48136
48139
|
(function(e) {
|
|
48137
48140
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = void 0;
|
|
48138
|
-
var t =
|
|
48141
|
+
var t = Za;
|
|
48139
48142
|
Object.defineProperty(e, "KeywordCxt", { enumerable: !0, get: function() {
|
|
48140
48143
|
return t.KeywordCxt;
|
|
48141
48144
|
} });
|
|
@@ -49304,7 +49307,7 @@ const Wv = Vn, Ia = qn, pwe = qs, Kv = rr, vwe = {
|
|
|
49304
49307
|
H0.default = mwe;
|
|
49305
49308
|
var L2 = {};
|
|
49306
49309
|
Object.defineProperty(L2, "__esModule", { value: !0 });
|
|
49307
|
-
const gwe =
|
|
49310
|
+
const gwe = Za, m6 = Vn, A1 = rr, g6 = H0, ywe = {
|
|
49308
49311
|
keyword: "properties",
|
|
49309
49312
|
type: "object",
|
|
49310
49313
|
schemaType: "object",
|
|
@@ -49963,7 +49966,7 @@ const uke = "http://json-schema.org/draft-07/schema#", lke = "http://json-schema
|
|
|
49963
49966
|
}
|
|
49964
49967
|
}
|
|
49965
49968
|
e.exports = t = u, Object.defineProperty(t, "__esModule", { value: !0 }), t.default = u;
|
|
49966
|
-
var l =
|
|
49969
|
+
var l = Za;
|
|
49967
49970
|
Object.defineProperty(t, "KeywordCxt", { enumerable: !0, get: function() {
|
|
49968
49971
|
return l.KeywordCxt;
|
|
49969
49972
|
} });
|
|
@@ -50105,9 +50108,9 @@ function Vz(e) {
|
|
|
50105
50108
|
return !!xt().skillChecks.skillChecks[e];
|
|
50106
50109
|
}
|
|
50107
50110
|
function J0(e) {
|
|
50108
|
-
return e.startsWith("http") ? e : xt().images[e] ?
|
|
50111
|
+
return e.startsWith("http") ? e : xt().images[e] ? rs(xt().images[e]) : rs(e);
|
|
50109
50112
|
}
|
|
50110
|
-
function
|
|
50113
|
+
function rs(e) {
|
|
50111
50114
|
return e.startsWith("http") ? e : xt().baseAssetsPath ? `${xt().baseAssetsPath}${e}` : e;
|
|
50112
50115
|
}
|
|
50113
50116
|
function kke(e, t) {
|
|
@@ -50211,7 +50214,7 @@ function Wz(e, t, n) {
|
|
|
50211
50214
|
r[i] = n + o;
|
|
50212
50215
|
}
|
|
50213
50216
|
function nd() {
|
|
50214
|
-
const e = dn(), t = Gr(), n =
|
|
50217
|
+
const e = dn(), t = Gr(), n = Ga(), r = xi(), i = dn().scope, o = {
|
|
50215
50218
|
data: e.data,
|
|
50216
50219
|
global: e.globalData,
|
|
50217
50220
|
skills: t.skills,
|
|
@@ -52183,7 +52186,7 @@ const zxe = /* @__PURE__ */ xa(wxe, [["render", Bxe]]), Vxe = ["src"], Uxe = ["i
|
|
|
52183
52186
|
}, [
|
|
52184
52187
|
a.icon ? (Te(), Xe("img", {
|
|
52185
52188
|
key: 0,
|
|
52186
|
-
src: Hr(
|
|
52189
|
+
src: Hr(rs)(a.icon),
|
|
52187
52190
|
class: "notification-icon",
|
|
52188
52191
|
style: mr(r(a))
|
|
52189
52192
|
}, null, 12, Vxe)) : mn("", !0),
|
|
@@ -53076,7 +53079,7 @@ const __e = fn({
|
|
|
53076
53079
|
},
|
|
53077
53080
|
methods: {
|
|
53078
53081
|
getAssetUrl(e) {
|
|
53079
|
-
return
|
|
53082
|
+
return rs(e);
|
|
53080
53083
|
}
|
|
53081
53084
|
},
|
|
53082
53085
|
computed: {
|
|
@@ -53778,7 +53781,7 @@ const e2e = ["id", "innerHTML"], t2e = /* @__PURE__ */ fn({
|
|
|
53778
53781
|
activeInteractive: {}
|
|
53779
53782
|
},
|
|
53780
53783
|
setup(e) {
|
|
53781
|
-
const t = e, n =
|
|
53784
|
+
const t = e, n = Ga();
|
|
53782
53785
|
dn();
|
|
53783
53786
|
const r = Be(() => n.getButtonState(t.id)), i = wh(t.id), o = i.background ? J0(i.background) : null, a = Be(() => {
|
|
53784
53787
|
if (!t.layerSelected)
|
|
@@ -53918,7 +53921,7 @@ const i2e = /* @__PURE__ */ fn({
|
|
|
53918
53921
|
inputListener: {}
|
|
53919
53922
|
},
|
|
53920
53923
|
setup(e) {
|
|
53921
|
-
const t = e, n = ma(), r = an(), i =
|
|
53924
|
+
const t = e, n = ma(), r = an(), i = Ga(), o = $o(), a = _t(0), s = Be(() => i.nonEmptyLayers), u = Be(() => {
|
|
53922
53925
|
const m = [];
|
|
53923
53926
|
return s.value.reduce((g, y, b) => {
|
|
53924
53927
|
const C = G0(y.screen).buttons;
|
|
@@ -54039,7 +54042,7 @@ const o2e = fn({
|
|
|
54039
54042
|
},
|
|
54040
54043
|
methods: {
|
|
54041
54044
|
getStatImage(e) {
|
|
54042
|
-
return
|
|
54045
|
+
return rs(this.statsConfig[e].icon);
|
|
54043
54046
|
}
|
|
54044
54047
|
},
|
|
54045
54048
|
computed: {
|
|
@@ -54874,7 +54877,7 @@ const fje = new Ke(
|
|
|
54874
54877
|
{ name: "transitionDelay", type: "number", optional: !0 }
|
|
54875
54878
|
],
|
|
54876
54879
|
async (e) => {
|
|
54877
|
-
const t =
|
|
54880
|
+
const t = Ga();
|
|
54878
54881
|
if (!G0(e.options.screen)) {
|
|
54879
54882
|
Tt(
|
|
54880
54883
|
e,
|
|
@@ -54901,7 +54904,7 @@ const fje = new Ke(
|
|
|
54901
54904
|
{ name: "transitionDelay", type: "number", optional: !0 }
|
|
54902
54905
|
],
|
|
54903
54906
|
async (e) => {
|
|
54904
|
-
const t =
|
|
54907
|
+
const t = Ga();
|
|
54905
54908
|
return e.options.transitionName ? t.emptyLayer(e.options.layer, {
|
|
54906
54909
|
transition: e.options.transitionName,
|
|
54907
54910
|
duration: e.options.transitionDuration,
|
|
@@ -54915,7 +54918,7 @@ const fje = new Ke(
|
|
|
54915
54918
|
{ name: "state", type: "any" }
|
|
54916
54919
|
],
|
|
54917
54920
|
async (e) => {
|
|
54918
|
-
const { buttonId: t, state: n } = e.options, r =
|
|
54921
|
+
const { buttonId: t, state: n } = e.options, r = Ga();
|
|
54919
54922
|
if (!wh(t)) {
|
|
54920
54923
|
Tt(
|
|
54921
54924
|
e,
|
|
@@ -56415,7 +56418,7 @@ const UCe = ["onClick"], qCe = { class: "item-title" }, HCe = { class: "item-amo
|
|
|
56415
56418
|
}
|
|
56416
56419
|
function a(u) {
|
|
56417
56420
|
return {
|
|
56418
|
-
backgroundImage: `url(${
|
|
56421
|
+
backgroundImage: `url(${rs(Yu(u).icon)})`
|
|
56419
56422
|
};
|
|
56420
56423
|
}
|
|
56421
56424
|
function s(u) {
|
|
@@ -56463,7 +56466,7 @@ const KCe = { class: "flex flex-row item-description-container" }, GCe = { class
|
|
|
56463
56466
|
emits: ["use", "close"],
|
|
56464
56467
|
setup(e, { emit: t }) {
|
|
56465
56468
|
const n = e, r = _t(null), i = Be(() => Yu(n.item.id)), o = Be(() => ({
|
|
56466
|
-
backgroundImage: `url(${
|
|
56469
|
+
backgroundImage: `url(${rs(i.value.icon)})`
|
|
56467
56470
|
})), a = Be(() => xi().canUseItem(n.item));
|
|
56468
56471
|
function s() {
|
|
56469
56472
|
a.value && t("use");
|
|
@@ -56616,7 +56619,7 @@ const r$e = /* @__PURE__ */ fn({
|
|
|
56616
56619
|
}, a = Be(() => {
|
|
56617
56620
|
const f = r.value.unlocked ? i.value.icon : ed().defaultAchievementIcon;
|
|
56618
56621
|
return {
|
|
56619
|
-
backgroundImage: `url(${
|
|
56622
|
+
backgroundImage: `url(${rs(f)})`
|
|
56620
56623
|
};
|
|
56621
56624
|
}), s = Be(() => !i.value.secret || !o.censorName ? i.value.name : "Hidden Achievement"), u = Be(() => !i.value.secret || !o.censorDescription ? i.value.description : "This achievement is hidden. Complete it to discover more."), l = Be(() => r.value.unlocked ? `Obtained ${new Date(r.value.unlockTime).toLocaleDateString()}` : "Not obtained yet");
|
|
56622
56625
|
return (f, c) => (Te(), Xe("div", {
|
|
@@ -56914,7 +56917,7 @@ function M$e(e, t, n, r, i, o) {
|
|
|
56914
56917
|
const P$e = /* @__PURE__ */ xa(O$e, [["render", M$e]]);
|
|
56915
56918
|
function sV(e) {
|
|
56916
56919
|
const t = Gr(), n = Be(() => t.skills), r = Be(() => n.value[e]), i = Be(() => cu().skills), o = Be(() => cu().skillOptions.xpPerLevel), a = Be(() => ({
|
|
56917
|
-
backgroundImage: `url(${
|
|
56920
|
+
backgroundImage: `url(${rs(i.value[e].icon)})`
|
|
56918
56921
|
})), s = Be(() => i.value[e].name), u = Be(() => i.value[e].description), l = Be(() => `Level ${n.value[e].level}`);
|
|
56919
56922
|
return {
|
|
56920
56923
|
skills: n,
|
|
@@ -57260,7 +57263,7 @@ export {
|
|
|
57260
57263
|
pve as findVariable,
|
|
57261
57264
|
Q2 as gameloop,
|
|
57262
57265
|
Y0 as generateParser,
|
|
57263
|
-
|
|
57266
|
+
rs as getAssetUrl,
|
|
57264
57267
|
wh as getButtonConfig,
|
|
57265
57268
|
xt as getConfig,
|
|
57266
57269
|
Uz as getDataUrl,
|
|
@@ -57302,7 +57305,7 @@ export {
|
|
|
57302
57305
|
po as useQuests,
|
|
57303
57306
|
ma as useRenderingStore,
|
|
57304
57307
|
$o as useScreenObjects,
|
|
57305
|
-
|
|
57308
|
+
Ga as useScreens,
|
|
57306
57309
|
Gr as useSkills,
|
|
57307
57310
|
Q_ as useTooltips,
|
|
57308
57311
|
dn as useVM,
|