adminizer 5.2.0-build.33 → 5.2.0-build.34
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/assets/{abnfDiagram-VCTEODGH-BnsIqosm.js → abnfDiagram-VCTEODGH-BbJTXfTE.js} +1 -1
- package/assets/{add-LtDQwU4b.js → add-UCuYfqnA.js} +1 -1
- package/assets/{add-group-B7P_c4C8.js → add-group-Dqy51mK7.js} +1 -1
- package/assets/{add-user-BsX7SMOH.js → add-user-lHPqrZLh.js} +1 -1
- package/assets/ai-assistant/agent.es.js +19464 -18270
- package/assets/app-BKhgReUT.js +138 -0
- package/assets/app-Bon67K9l.css +1 -0
- package/assets/{architectureDiagram-5GKGNRK7-CHxPdttY.js → architectureDiagram-5GKGNRK7-DcRt--3g.js} +2 -2
- package/assets/{blockDiagram-I7D4REHJ-BYTzbRFE.js → blockDiagram-I7D4REHJ-8_cCt-vW.js} +4 -4
- package/assets/{c4Diagram-7LVT6UL2-CI7dW3xq.js → c4Diagram-7LVT6UL2-Bsn2OlKb.js} +1 -1
- package/assets/{catalog-BiMamMLN.js → catalog-DfYJNiry.js} +1 -1
- package/assets/channel-0VXWsV6U.js +1 -0
- package/assets/{chunk-2Q5K7J3B-Hi-aK_Ha.js → chunk-2Q5K7J3B-BzrtylLu.js} +1 -1
- package/assets/{chunk-5VM5RSS4-DgcY5Qji.js → chunk-5VM5RSS4-D7pDUki8.js} +1 -1
- package/assets/{chunk-F27PBJKO-DKXOt00w.js → chunk-F27PBJKO-Bw8mEYY6.js} +1 -1
- package/assets/{chunk-IMKFNOWR-D4WeUgcs.js → chunk-IMKFNOWR-nZKNEeNv.js} +1 -1
- package/assets/{chunk-JWPE2WC7-Ce6Rxa30.js → chunk-JWPE2WC7-DxUX2M-J.js} +1 -1
- package/assets/{chunk-POPQ4Y6H-D0kDsnoE.js → chunk-POPQ4Y6H-Bgt0Kaqd.js} +1 -1
- package/assets/{chunk-SVP7TREG-CYirWYWz.js → chunk-SVP7TREG-DLigtJWk.js} +4 -4
- package/assets/{chunk-TICWLB2K-HEf09VbM.js → chunk-TICWLB2K-B5WjdD1M.js} +1 -1
- package/assets/{chunk-XXDRQBXY-_0ZRO4MZ.js → chunk-XXDRQBXY-BJS0Ht92.js} +1 -1
- package/assets/classDiagram-ZZMXUADV-DgvmCbKR.js +1 -0
- package/assets/classDiagram-v2-VYDZK3BY-DgvmCbKR.js +1 -0
- package/assets/controls/ckeditor.es.js +9602 -9418
- package/assets/controls/jsoneditor.es.js +667 -668
- package/assets/controls/toast-ui.es.js +14232 -14230
- package/assets/{cose-bilkent-JH36ORCC-Btol7060.js → cose-bilkent-JH36ORCC-Be1z_i9Q.js} +1 -1
- package/assets/{cynefin-OW5HDTMX-Olv1bWeO.js → cynefin-OW5HDTMX-na8kWeny.js} +1 -1
- package/assets/{cynefinDiagram-5FMLGOSQ-CK0ep8mN.js → cynefinDiagram-5FMLGOSQ-ql71XTsQ.js} +2 -2
- package/assets/d3-scale-4DPf7zan.js +1 -0
- package/assets/{dagre-GXQ25YYZ-D_Tgq3Xg.js → dagre-GXQ25YYZ-BuKFYbmi.js} +2 -2
- package/assets/{dashboard-D7Vrpy3X.js → dashboard-Drm_gp-G.js} +1 -1
- package/assets/{diagram-S7CK7UJ4-Cylxlvfi.js → diagram-S7CK7UJ4-znl5Fq0J.js} +3 -3
- package/assets/diagram-UQ7AKVKN-CRFVfrL1.js +41 -0
- package/assets/{diagram-VSXAHHWV-DBLNVtPt.js → diagram-VSXAHHWV-CIVgZDJa.js} +1 -1
- package/assets/diagram-VX7I27RA-DIQB8SES.js +24 -0
- package/assets/{diagram-Z3DM3KII-B6K8hUqN.js → diagram-Z3DM3KII-DeY6yMBN.js} +1 -1
- package/assets/{docs-Ce8UYCsn.js → docs-B6LIpITJ.js} +1 -1
- package/assets/{ebnfDiagram-PWID7BFC-D5fzOhJr.js → ebnfDiagram-PWID7BFC-Im7jHJ-6.js} +1 -1
- package/assets/{erDiagram-RLTQ6QDP-B1b5aX0r.js → erDiagram-RLTQ6QDP-CCvI6JHH.js} +1 -1
- package/assets/{flowDiagram-HODETNUW-DUt4TmGE.js → flowDiagram-HODETNUW-DgdTOUM1.js} +4 -4
- package/assets/ganttDiagram-EL5Y4UJY-BZ5DzFSb.js +292 -0
- package/assets/{gitGraphDiagram-WWUBYQGX-BCagtg-j.js → gitGraphDiagram-WWUBYQGX-CQklLXfY.js} +1 -1
- package/assets/{history-Bq0XZ13j.js → history-CbgCLusU.js} +1 -1
- package/assets/{infoDiagram-27XIBGKW-CtqP-RaE.js → infoDiagram-27XIBGKW-inaVWWG7.js} +1 -1
- package/assets/{init-user-BCb4NPxa.js → init-user-DmWRf1Jr.js} +1 -1
- package/assets/{ishikawaDiagram-5VMMS53U-CU7tu3i5.js → ishikawaDiagram-5VMMS53U-R9uOXdb9.js} +3 -3
- package/assets/{journeyDiagram-3NMN7TZE-DcGtNnor.js → journeyDiagram-3NMN7TZE-YhsaQCHu.js} +2 -2
- package/assets/{kanban-definition-UXKFOSKX-Da1vwxDK.js → kanban-definition-UXKFOSKX-SFHx0aHd.js} +6 -6
- package/assets/layout-CryHDwUP.js +1 -0
- package/assets/{list-Co2Yh_RS.js → list-CMYKENzO.js} +1 -1
- package/assets/login-inT0h68O.js +1 -0
- package/assets/manifest.json +281 -322
- package/assets/{media-manager-BhrlfUDZ.js → media-manager-DLwgt3w-.js} +1 -1
- package/assets/mermaid.core-BJx2V7Fx.js +310 -0
- package/assets/{mindmap-definition-YA3MSWOX-DwC--3ep.js → mindmap-definition-YA3MSWOX-DavgP5bX.js} +1 -1
- package/assets/{module-CBCiLH2M.js → module-Cd8HVyqp.js} +1 -1
- package/assets/{notification-Dv_yjwYp.js → notification-NHcn4uVC.js} +1 -1
- package/assets/{pegDiagram-XKGWAZYB-Bfjta7he.js → pegDiagram-XKGWAZYB-yFW3IMW-.js} +1 -1
- package/assets/pieDiagram-E7YTZNPT-CQTyXz50.js +39 -0
- package/assets/{quadrantDiagram-AXDQQJYC-DMsQ6bx3.js → quadrantDiagram-AXDQQJYC-Cqjg5HSm.js} +4 -4
- package/assets/{railroadDiagram-O6MQD6OU-OMQR6DgW.js → railroadDiagram-O6MQD6OU-DzL2XDLc.js} +1 -1
- package/assets/{register-bvLgzRnh.js → register-BrZOgrIT.js} +1 -1
- package/assets/{requirementDiagram-BXWQKSXE-4eXUH2nw.js → requirementDiagram-BXWQKSXE-CWcLe5E-.js} +1 -1
- package/assets/{ru-GghByIKs.js → ru-DqbXrFdY.js} +1 -1
- package/assets/sankeyDiagram-P5KCCOFB-BzTZcPVf.js +40 -0
- package/assets/{sequenceDiagram-WJ2MYXX4-Cb-fxQnC.js → sequenceDiagram-WJ2MYXX4-DM48lXLE.js} +1 -1
- package/assets/{sizeCapture-INFHLROL-DgQ7-zHE.js → sizeCapture-INFHLROL-D7cx9va2.js} +1 -1
- package/assets/stateDiagram-D77RDMKH-CUReM6ha.js +1 -0
- package/assets/stateDiagram-v2-MP3YSRHH-UNjCyT1j.js +1 -0
- package/assets/{swimlanes-42K2YHIH-yCzVS5Kf.js → swimlanes-42K2YHIH-DEqEyhLN.js} +1 -1
- package/assets/swimlanesDiagram-VR7AAH4N-Dh-s4bKd.js +8 -0
- package/assets/{timeline-definition-24CTP7MA-DZ-J8WVk.js → timeline-definition-24CTP7MA-_OQxzNu9.js} +2 -2
- package/assets/{use-appearance-CNzjRFkO.js → use-appearance-BfSu2Tjm.js} +1 -1
- package/assets/{user-filters-list-XZQeWIcY.js → user-filters-list-LqHail28.js} +1 -1
- package/assets/{vennDiagram-4TSXK5OY-DmJwiSA5.js → vennDiagram-4TSXK5OY-wUfSnIxp.js} +5 -5
- package/assets/{wardleyDiagram-VM6X3IG4-CBtPOf2I.js → wardleyDiagram-VM6X3IG4-BPcd3HO7.js} +2 -2
- package/assets/{welcome-hJX9AsIB.js → welcome-XTbUvCzA.js} +1 -1
- package/assets/with-app-layout-CTv_hHug.js +37 -0
- package/assets/xychartDiagram-S5SC5T6Z-DBXGC8lX.js +7 -0
- package/controllers/login.d.ts +1 -1
- package/controllers/login.js +18 -17
- package/interfaces/global.d.ts +0 -1
- package/lib/helper/pretend.d.ts +4 -0
- package/lib/helper/pretend.js +27 -0
- package/package.json +1 -1
- package/system/bindInertia.js +1 -1
- package/system/bindReqFunctions.js +13 -4
- package/assets/app-DM8KzeFz.css +0 -1
- package/assets/app-D_WEQ9Ix.js +0 -138
- package/assets/arc-CqLlrEwa.js +0 -1
- package/assets/channel-TXm2e8eJ.js +0 -1
- package/assets/classDiagram-ZZMXUADV-DhaqWTWz.js +0 -1
- package/assets/classDiagram-v2-VYDZK3BY-DhaqWTWz.js +0 -1
- package/assets/defaultLocale-DX6XiGOO.js +0 -1
- package/assets/diagram-UQ7AKVKN-DTi2F_20.js +0 -41
- package/assets/diagram-VX7I27RA-CahscuCU.js +0 -24
- package/assets/ganttDiagram-EL5Y4UJY-CK-rD_6X.js +0 -292
- package/assets/init-Gi6I4Gst.js +0 -1
- package/assets/layout-wE9NXraK.js +0 -1
- package/assets/linear-Cl40xh64.js +0 -1
- package/assets/login-Cl1b-jvN.js +0 -1
- package/assets/mermaid.core-DFiCyHcW.js +0 -310
- package/assets/ordinal-Cboi1Yqb.js +0 -1
- package/assets/pieDiagram-E7YTZNPT-DR6xKA3p.js +0 -39
- package/assets/sankeyDiagram-P5KCCOFB-Cl9Yn7o4.js +0 -40
- package/assets/stateDiagram-D77RDMKH-BIK_kLM3.js +0 -1
- package/assets/stateDiagram-v2-MP3YSRHH-B6Bu0mpm.js +0 -1
- package/assets/swimlanesDiagram-VR7AAH4N-DFHYvxlZ.js +0 -8
- package/assets/with-app-layout-ORRLIlc0.js +0 -34
- package/assets/xychartDiagram-S5SC5T6Z-Drb6_i6k.js +0 -7
|
@@ -373,7 +373,7 @@ function n6() {
|
|
|
373
373
|
}
|
|
374
374
|
function M() {
|
|
375
375
|
var _ = "", S = !0;
|
|
376
|
-
m[k] == "-" && (_ += G()), _ += m[k] == "0" ? G() :
|
|
376
|
+
m[k] == "-" && (_ += G()), _ += m[k] == "0" ? G() : Se(), m[k] == "." && (_ += G() + Se(), S = !1), (m[k] == "e" || m[k] == "E") && (_ += G(), (m[k] == "+" || m[k] == "-") && (_ += G()), _ += Se(), S = !1);
|
|
377
377
|
var C = +_;
|
|
378
378
|
return b && S && (C > Number.MAX_SAFE_INTEGER || C < Number.MIN_SAFE_INTEGER) ? BigInt(_) : C;
|
|
379
379
|
}
|
|
@@ -410,7 +410,7 @@ function n6() {
|
|
|
410
410
|
G() !== _[S] && R();
|
|
411
411
|
}
|
|
412
412
|
function G() {
|
|
413
|
-
|
|
413
|
+
B();
|
|
414
414
|
var _ = m[k];
|
|
415
415
|
return k++, w++, _;
|
|
416
416
|
}
|
|
@@ -425,11 +425,11 @@ function n6() {
|
|
|
425
425
|
}
|
|
426
426
|
return String.fromCharCode(S);
|
|
427
427
|
}
|
|
428
|
-
function
|
|
428
|
+
function Se() {
|
|
429
429
|
for (var _ = ""; m[k] >= "0" && m[k] <= "9"; )
|
|
430
430
|
_ += G();
|
|
431
431
|
if (_.length) return _;
|
|
432
|
-
|
|
432
|
+
B(), te();
|
|
433
433
|
}
|
|
434
434
|
function ge(_, S) {
|
|
435
435
|
le(_, S, ne());
|
|
@@ -450,7 +450,7 @@ function n6() {
|
|
|
450
450
|
function R() {
|
|
451
451
|
Q(), te();
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function B() {
|
|
454
454
|
if (k >= m.length)
|
|
455
455
|
throw new SyntaxError("Unexpected end of JSON input");
|
|
456
456
|
}
|
|
@@ -505,18 +505,18 @@ function n6() {
|
|
|
505
505
|
pe(d(ne));
|
|
506
506
|
break;
|
|
507
507
|
case "object":
|
|
508
|
-
ne === null ? pe("null") : typeof ne.toJSON == "function" ? pe(d(ne.toJSON())) : Array.isArray(ne) ?
|
|
508
|
+
ne === null ? pe("null") : typeof ne.toJSON == "function" ? pe(d(ne.toJSON())) : Array.isArray(ne) ? B() : G ? ne.constructor.BYTES_PER_ELEMENT ? B() : ne instanceof Map ? S() : ne instanceof Set ? S(!0) : _() : _();
|
|
509
509
|
}
|
|
510
510
|
ge(R, "valueEnd");
|
|
511
|
-
function
|
|
511
|
+
function B() {
|
|
512
512
|
if (ne.length) {
|
|
513
513
|
pe("[");
|
|
514
514
|
for (var C = te + 1, $ = 0; $ < ne.length; $++) {
|
|
515
|
-
$ && pe(","),
|
|
515
|
+
$ && pe(","), Se(C);
|
|
516
516
|
var U = r(ne[$]) ? ne[$] : null, J = R + "/" + $;
|
|
517
517
|
Q(U, C, J);
|
|
518
518
|
}
|
|
519
|
-
|
|
519
|
+
Se(te), pe("]");
|
|
520
520
|
} else
|
|
521
521
|
pe("[]");
|
|
522
522
|
}
|
|
@@ -529,10 +529,10 @@ function n6() {
|
|
|
529
529
|
if (r(de)) {
|
|
530
530
|
U && pe(",");
|
|
531
531
|
var Ne = R + "/" + p(J);
|
|
532
|
-
|
|
532
|
+
Se($), ge(Ne, "key"), pe(d(J)), ge(Ne, "keyEnd"), pe(":"), k && pe(" "), Q(de, $, Ne);
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
|
-
|
|
535
|
+
Se(te), pe("}");
|
|
536
536
|
} else
|
|
537
537
|
pe("{}");
|
|
538
538
|
}
|
|
@@ -540,15 +540,15 @@ function n6() {
|
|
|
540
540
|
if (ne.size) {
|
|
541
541
|
pe("{");
|
|
542
542
|
for (var $ = te + 1, U = !0, J = ne.entries(), de = J.next(); !de.done; ) {
|
|
543
|
-
var Ne = de.value, D = Ne[0],
|
|
544
|
-
if (r(
|
|
543
|
+
var Ne = de.value, D = Ne[0], q = C ? !0 : Ne[1];
|
|
544
|
+
if (r(q)) {
|
|
545
545
|
U || pe(","), U = !1;
|
|
546
546
|
var P = R + "/" + p(D);
|
|
547
|
-
|
|
547
|
+
Se($), ge(P, "key"), pe(d(D)), ge(P, "keyEnd"), pe(":"), k && pe(" "), Q(q, $, P);
|
|
548
548
|
}
|
|
549
549
|
de = J.next();
|
|
550
550
|
}
|
|
551
|
-
|
|
551
|
+
Se(te), pe("}");
|
|
552
552
|
} else
|
|
553
553
|
pe("{}");
|
|
554
554
|
}
|
|
@@ -556,7 +556,7 @@ function n6() {
|
|
|
556
556
|
function pe(ne) {
|
|
557
557
|
H += ne.length, V += ne.length, N += ne;
|
|
558
558
|
}
|
|
559
|
-
function
|
|
559
|
+
function Se(ne) {
|
|
560
560
|
if (k) {
|
|
561
561
|
for (N += `
|
|
562
562
|
` + le(ne, k), z++, H = 0; ne--; )
|
|
@@ -839,8 +839,8 @@ function Fs(t) {
|
|
|
839
839
|
break;
|
|
840
840
|
}
|
|
841
841
|
s();
|
|
842
|
-
const R = f(":"),
|
|
843
|
-
R || (Rx(t[e]) ||
|
|
842
|
+
const R = f(":"), B = e >= t.length;
|
|
843
|
+
R || (Rx(t[e]) || B ? n = is(n, ":") : Se()), o() || (R || B ? n += "null" : Se()), le = !1;
|
|
844
844
|
}
|
|
845
845
|
return t[e] === "}" ? (n += "}", e++) : n = is(n, "}"), !0;
|
|
846
846
|
}
|
|
@@ -873,18 +873,18 @@ ${n}
|
|
|
873
873
|
let le = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, ne = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : -1;
|
|
874
874
|
const te = t[e] === "\\";
|
|
875
875
|
te && (e++, Md(t[e]) || G());
|
|
876
|
-
const R = t[e] === "&" ? Lx(t.slice(e, e + Dx)) : null,
|
|
877
|
-
if (Md(t[e]) ||
|
|
876
|
+
const R = t[e] === "&" ? Lx(t.slice(e, e + Dx)) : null, B = w6(R) || j6(R);
|
|
877
|
+
if (Md(t[e]) || B) {
|
|
878
878
|
const _ = $x(t[e]) ? $x : Ix(t[e]) ? Ix : H0(t[e]) ? H0 : dC, S = e, C = n.length;
|
|
879
879
|
let $ = '"';
|
|
880
|
-
for (e +=
|
|
880
|
+
for (e += B && R ? R.length : 1; ; ) {
|
|
881
881
|
if (e >= t.length) {
|
|
882
882
|
const de = M(e - 1);
|
|
883
883
|
return !le && ud(t.charAt(de)) ? (e = S, n = n.substring(0, C), x(!0)) : ($ = is($, '"'), n += $, !0);
|
|
884
884
|
}
|
|
885
885
|
if (e === ne)
|
|
886
886
|
return $ = is($, '"'), n += $, !0;
|
|
887
|
-
const U =
|
|
887
|
+
const U = B && t[e] === "&" ? Lx(t.slice(e, e + Dx)) : null;
|
|
888
888
|
if (U && R ? U.char === R.char : _(t[e])) {
|
|
889
889
|
const de = e, Ne = $.length;
|
|
890
890
|
if ($ += '"', e += U ? U.length : 1, n += $, s(!1), le || e >= t.length || ud(t[e]) && // only count the brackets inside the string when actually needed,
|
|
@@ -892,10 +892,10 @@ ${n}
|
|
|
892
892
|
!k6($, t[e]) || Md(t[e]) && !z(e) || Ba(t[e]))
|
|
893
893
|
return w(), !0;
|
|
894
894
|
t[e] === "\\" && G();
|
|
895
|
-
const D = M(de - 1),
|
|
896
|
-
if (
|
|
895
|
+
const D = M(de - 1), q = t.charAt(D);
|
|
896
|
+
if (q === ",")
|
|
897
897
|
return e = S, n = n.substring(0, C), x(!1, D);
|
|
898
|
-
if (ud(
|
|
898
|
+
if (ud(q))
|
|
899
899
|
return e = S, n = n.substring(0, C), x(!0);
|
|
900
900
|
n = n.substring(0, C), e = de + (U ? U.length : 1), $ = `${$.substring(0, Ne)}\\${$.substring(Ne)}`;
|
|
901
901
|
} else if (le && Px(t[e])) {
|
|
@@ -1016,7 +1016,7 @@ ${n}
|
|
|
1016
1016
|
function pe() {
|
|
1017
1017
|
throw new Pc("Object key expected", e);
|
|
1018
1018
|
}
|
|
1019
|
-
function
|
|
1019
|
+
function Se() {
|
|
1020
1020
|
throw new Pc("Colon expected", e);
|
|
1021
1021
|
}
|
|
1022
1022
|
function ge() {
|
|
@@ -2525,12 +2525,12 @@ function WC(t, e) {
|
|
|
2525
2525
|
const Q = N, pe = l(H);
|
|
2526
2526
|
if (!pe)
|
|
2527
2527
|
break;
|
|
2528
|
-
const
|
|
2528
|
+
const Se = a(z - 1), ge = G[0], le = pe === ge && !V;
|
|
2529
2529
|
if (le && !s.includes(i[pe])) {
|
|
2530
2530
|
N = Q;
|
|
2531
2531
|
break;
|
|
2532
2532
|
}
|
|
2533
|
-
G = le && o.includes(i[pe]) ? [...G,
|
|
2533
|
+
G = le && o.includes(i[pe]) ? [...G, Se] : [pe, G, Se];
|
|
2534
2534
|
}
|
|
2535
2535
|
return G;
|
|
2536
2536
|
}, l = (z) => {
|
|
@@ -3342,7 +3342,7 @@ function Tn() {
|
|
|
3342
3342
|
C = this.else = Array.isArray($) ? new v($) : $;
|
|
3343
3343
|
}
|
|
3344
3344
|
if (C)
|
|
3345
|
-
return S === !1 ? C instanceof y ? C : C.nodes : this.nodes.length ? this : new y(
|
|
3345
|
+
return S === !1 ? C instanceof y ? C : C.nodes : this.nodes.length ? this : new y(Se(S), C instanceof y ? [C] : C.nodes);
|
|
3346
3346
|
if (!(S === !1 || !this.nodes.length))
|
|
3347
3347
|
return this;
|
|
3348
3348
|
}
|
|
@@ -3688,10 +3688,10 @@ function Tn() {
|
|
|
3688
3688
|
for (const C in S)
|
|
3689
3689
|
_[C] = (_[C] || 0) - (S[C] || 0);
|
|
3690
3690
|
}
|
|
3691
|
-
function
|
|
3692
|
-
return typeof _ == "boolean" || typeof _ == "number" || _ === null ? !_ : (0, e._)`!${
|
|
3691
|
+
function Se(_) {
|
|
3692
|
+
return typeof _ == "boolean" || typeof _ == "number" || _ === null ? !_ : (0, e._)`!${B(_)}`;
|
|
3693
3693
|
}
|
|
3694
|
-
t.not =
|
|
3694
|
+
t.not = Se;
|
|
3695
3695
|
const ge = R(t.operators.AND);
|
|
3696
3696
|
function le(..._) {
|
|
3697
3697
|
return _.reduce(ge);
|
|
@@ -3703,9 +3703,9 @@ function Tn() {
|
|
|
3703
3703
|
}
|
|
3704
3704
|
t.or = te;
|
|
3705
3705
|
function R(_) {
|
|
3706
|
-
return (S, C) => S === e.nil ? C : C === e.nil ? S : (0, e._)`${
|
|
3706
|
+
return (S, C) => S === e.nil ? C : C === e.nil ? S : (0, e._)`${B(S)} ${_} ${B(C)}`;
|
|
3707
3707
|
}
|
|
3708
|
-
function
|
|
3708
|
+
function B(_) {
|
|
3709
3709
|
return _ instanceof e.Name ? _ : (0, e._)`(${_})`;
|
|
3710
3710
|
}
|
|
3711
3711
|
})(Cv)), Cv;
|
|
@@ -4653,8 +4653,8 @@ function _g() {
|
|
|
4653
4653
|
return;
|
|
4654
4654
|
const Q = b + H;
|
|
4655
4655
|
let pe = k[G];
|
|
4656
|
-
typeof z[y] == "string" && (pe =
|
|
4657
|
-
function
|
|
4656
|
+
typeof z[y] == "string" && (pe = Se.call(this, z[y])), ge.call(this, z.$anchor), ge.call(this, z.$dynamicAnchor), k[H] = pe;
|
|
4657
|
+
function Se(le) {
|
|
4658
4658
|
const ne = this.opts.uriResolver.resolve;
|
|
4659
4659
|
if (le = f(pe ? ne(pe, le) : le), O.has(le))
|
|
4660
4660
|
throw M(le);
|
|
@@ -4666,7 +4666,7 @@ function _g() {
|
|
|
4666
4666
|
if (typeof le == "string") {
|
|
4667
4667
|
if (!p.test(le))
|
|
4668
4668
|
throw new Error(`invalid anchor "${le}"`);
|
|
4669
|
-
|
|
4669
|
+
Se.call(this, `#${le}`);
|
|
4670
4670
|
}
|
|
4671
4671
|
}
|
|
4672
4672
|
}), j;
|
|
@@ -4693,204 +4693,204 @@ function Pg() {
|
|
|
4693
4693
|
p(D, () => (0, t.topBoolOrEmptySchema)(D));
|
|
4694
4694
|
}
|
|
4695
4695
|
ea.validateFunctionCode = h;
|
|
4696
|
-
function p({ gen: D, validateName:
|
|
4697
|
-
ie.code.es5 ? D.func(
|
|
4696
|
+
function p({ gen: D, validateName: q, schema: P, schemaEnv: Y, opts: ie }, Ae) {
|
|
4697
|
+
ie.code.es5 ? D.func(q, (0, a._)`${l.default.data}, ${l.default.valCxt}`, Y.$async, () => {
|
|
4698
4698
|
D.code((0, a._)`"use strict"; ${x(P, ie)}`), g(D, ie), D.code(Ae);
|
|
4699
|
-
}) : D.func(
|
|
4699
|
+
}) : D.func(q, (0, a._)`${l.default.data}, ${m(ie)}`, Y.$async, () => D.code(x(P, ie)).code(Ae));
|
|
4700
4700
|
}
|
|
4701
4701
|
function m(D) {
|
|
4702
4702
|
return (0, a._)`{${l.default.instancePath}="", ${l.default.parentData}, ${l.default.parentDataProperty}, ${l.default.rootData}=${l.default.data}${D.dynamicRef ? (0, a._)`, ${l.default.dynamicAnchors}={}` : a.nil}}={}`;
|
|
4703
4703
|
}
|
|
4704
|
-
function g(D,
|
|
4704
|
+
function g(D, q) {
|
|
4705
4705
|
D.if(l.default.valCxt, () => {
|
|
4706
|
-
D.var(l.default.instancePath, (0, a._)`${l.default.valCxt}.${l.default.instancePath}`), D.var(l.default.parentData, (0, a._)`${l.default.valCxt}.${l.default.parentData}`), D.var(l.default.parentDataProperty, (0, a._)`${l.default.valCxt}.${l.default.parentDataProperty}`), D.var(l.default.rootData, (0, a._)`${l.default.valCxt}.${l.default.rootData}`),
|
|
4706
|
+
D.var(l.default.instancePath, (0, a._)`${l.default.valCxt}.${l.default.instancePath}`), D.var(l.default.parentData, (0, a._)`${l.default.valCxt}.${l.default.parentData}`), D.var(l.default.parentDataProperty, (0, a._)`${l.default.valCxt}.${l.default.parentDataProperty}`), D.var(l.default.rootData, (0, a._)`${l.default.valCxt}.${l.default.rootData}`), q.dynamicRef && D.var(l.default.dynamicAnchors, (0, a._)`${l.default.valCxt}.${l.default.dynamicAnchors}`);
|
|
4707
4707
|
}, () => {
|
|
4708
|
-
D.var(l.default.instancePath, (0, a._)`""`), D.var(l.default.parentData, (0, a._)`undefined`), D.var(l.default.parentDataProperty, (0, a._)`undefined`), D.var(l.default.rootData, l.default.data),
|
|
4708
|
+
D.var(l.default.instancePath, (0, a._)`""`), D.var(l.default.parentData, (0, a._)`undefined`), D.var(l.default.parentDataProperty, (0, a._)`undefined`), D.var(l.default.rootData, l.default.data), q.dynamicRef && D.var(l.default.dynamicAnchors, (0, a._)`{}`);
|
|
4709
4709
|
});
|
|
4710
4710
|
}
|
|
4711
4711
|
function v(D) {
|
|
4712
|
-
const { schema:
|
|
4712
|
+
const { schema: q, opts: P, gen: Y } = D;
|
|
4713
4713
|
p(D, () => {
|
|
4714
|
-
P.$comment &&
|
|
4714
|
+
P.$comment && q.$comment && G(D), z(D), Y.let(l.default.vErrors, null), Y.let(l.default.errors, 0), P.unevaluated && y(D), N(D), Q(D);
|
|
4715
4715
|
});
|
|
4716
4716
|
}
|
|
4717
4717
|
function y(D) {
|
|
4718
|
-
const { gen:
|
|
4719
|
-
D.evaluated =
|
|
4718
|
+
const { gen: q, validateName: P } = D;
|
|
4719
|
+
D.evaluated = q.const("evaluated", (0, a._)`${P}.evaluated`), q.if((0, a._)`${D.evaluated}.dynamicProps`, () => q.assign((0, a._)`${D.evaluated}.props`, (0, a._)`undefined`)), q.if((0, a._)`${D.evaluated}.dynamicItems`, () => q.assign((0, a._)`${D.evaluated}.items`, (0, a._)`undefined`));
|
|
4720
4720
|
}
|
|
4721
|
-
function x(D,
|
|
4722
|
-
const P = typeof D == "object" && D[
|
|
4723
|
-
return P && (
|
|
4721
|
+
function x(D, q) {
|
|
4722
|
+
const P = typeof D == "object" && D[q.schemaId];
|
|
4723
|
+
return P && (q.code.source || q.code.process) ? (0, a._)`/*# sourceURL=${P} */` : a.nil;
|
|
4724
4724
|
}
|
|
4725
|
-
function w(D,
|
|
4725
|
+
function w(D, q) {
|
|
4726
4726
|
if (b(D) && (O(D), k(D))) {
|
|
4727
|
-
j(D,
|
|
4727
|
+
j(D, q);
|
|
4728
4728
|
return;
|
|
4729
4729
|
}
|
|
4730
|
-
(0, t.boolOrEmptySchema)(D,
|
|
4730
|
+
(0, t.boolOrEmptySchema)(D, q);
|
|
4731
4731
|
}
|
|
4732
|
-
function k({ schema: D, self:
|
|
4732
|
+
function k({ schema: D, self: q }) {
|
|
4733
4733
|
if (typeof D == "boolean")
|
|
4734
4734
|
return !D;
|
|
4735
4735
|
for (const P in D)
|
|
4736
|
-
if (
|
|
4736
|
+
if (q.RULES.all[P])
|
|
4737
4737
|
return !0;
|
|
4738
4738
|
return !1;
|
|
4739
4739
|
}
|
|
4740
4740
|
function b(D) {
|
|
4741
4741
|
return typeof D.schema != "boolean";
|
|
4742
4742
|
}
|
|
4743
|
-
function j(D,
|
|
4743
|
+
function j(D, q) {
|
|
4744
4744
|
const { schema: P, gen: Y, opts: ie } = D;
|
|
4745
4745
|
ie.$comment && P.$comment && G(D), H(D), V(D);
|
|
4746
4746
|
const Ae = Y.const("_errs", l.default.errors);
|
|
4747
|
-
N(D, Ae), Y.var(
|
|
4747
|
+
N(D, Ae), Y.var(q, (0, a._)`${Ae} === ${l.default.errors}`);
|
|
4748
4748
|
}
|
|
4749
4749
|
function O(D) {
|
|
4750
4750
|
(0, d.checkUnknownRules)(D), M(D);
|
|
4751
4751
|
}
|
|
4752
|
-
function N(D,
|
|
4752
|
+
function N(D, q) {
|
|
4753
4753
|
if (D.opts.jtd)
|
|
4754
|
-
return
|
|
4754
|
+
return Se(D, [], !1, q);
|
|
4755
4755
|
const P = (0, e.getSchemaTypes)(D.schema), Y = (0, e.coerceAndCheckDataType)(D, P);
|
|
4756
|
-
|
|
4756
|
+
Se(D, P, !Y, q);
|
|
4757
4757
|
}
|
|
4758
4758
|
function M(D) {
|
|
4759
|
-
const { schema:
|
|
4760
|
-
|
|
4759
|
+
const { schema: q, errSchemaPath: P, opts: Y, self: ie } = D;
|
|
4760
|
+
q.$ref && Y.ignoreKeywordsWithRef && (0, d.schemaHasRulesButRef)(q, ie.RULES) && ie.logger.warn(`$ref: keywords ignored in schema at path "${P}"`);
|
|
4761
4761
|
}
|
|
4762
4762
|
function z(D) {
|
|
4763
|
-
const { schema:
|
|
4764
|
-
|
|
4763
|
+
const { schema: q, opts: P } = D;
|
|
4764
|
+
q.default !== void 0 && P.useDefaults && P.strictSchema && (0, d.checkStrictMode)(D, "default is ignored in the schema root");
|
|
4765
4765
|
}
|
|
4766
4766
|
function H(D) {
|
|
4767
|
-
const
|
|
4768
|
-
|
|
4767
|
+
const q = D.schema[D.opts.schemaId];
|
|
4768
|
+
q && (D.baseId = (0, u.resolveUrl)(D.opts.uriResolver, D.baseId, q));
|
|
4769
4769
|
}
|
|
4770
4770
|
function V(D) {
|
|
4771
4771
|
if (D.schema.$async && !D.schemaEnv.$async)
|
|
4772
4772
|
throw new Error("async schema in sync schema");
|
|
4773
4773
|
}
|
|
4774
|
-
function G({ gen: D, schemaEnv:
|
|
4774
|
+
function G({ gen: D, schemaEnv: q, schema: P, errSchemaPath: Y, opts: ie }) {
|
|
4775
4775
|
const Ae = P.$comment;
|
|
4776
4776
|
if (ie.$comment === !0)
|
|
4777
4777
|
D.code((0, a._)`${l.default.self}.logger.log(${Ae})`);
|
|
4778
4778
|
else if (typeof ie.$comment == "function") {
|
|
4779
|
-
const me = (0, a.str)`${Y}/$comment`, re = D.scopeValue("root", { ref:
|
|
4779
|
+
const me = (0, a.str)`${Y}/$comment`, re = D.scopeValue("root", { ref: q.root });
|
|
4780
4780
|
D.code((0, a._)`${l.default.self}.opts.$comment(${Ae}, ${me}, ${re}.schema)`);
|
|
4781
4781
|
}
|
|
4782
4782
|
}
|
|
4783
4783
|
function Q(D) {
|
|
4784
|
-
const { gen:
|
|
4785
|
-
P.$async ?
|
|
4784
|
+
const { gen: q, schemaEnv: P, validateName: Y, ValidationError: ie, opts: Ae } = D;
|
|
4785
|
+
P.$async ? q.if((0, a._)`${l.default.errors} === 0`, () => q.return(l.default.data), () => q.throw((0, a._)`new ${ie}(${l.default.vErrors})`)) : (q.assign((0, a._)`${Y}.errors`, l.default.vErrors), Ae.unevaluated && pe(D), q.return((0, a._)`${l.default.errors} === 0`));
|
|
4786
4786
|
}
|
|
4787
|
-
function pe({ gen: D, evaluated:
|
|
4788
|
-
P instanceof a.Name && D.assign((0, a._)`${
|
|
4787
|
+
function pe({ gen: D, evaluated: q, props: P, items: Y }) {
|
|
4788
|
+
P instanceof a.Name && D.assign((0, a._)`${q}.props`, P), Y instanceof a.Name && D.assign((0, a._)`${q}.items`, Y);
|
|
4789
4789
|
}
|
|
4790
|
-
function
|
|
4790
|
+
function Se(D, q, P, Y) {
|
|
4791
4791
|
const { gen: ie, schema: Ae, data: me, allErrors: re, opts: ke, self: tt } = D, { RULES: $e } = tt;
|
|
4792
4792
|
if (Ae.$ref && (ke.ignoreKeywordsWithRef || !(0, d.schemaHasRulesButRef)(Ae, $e))) {
|
|
4793
4793
|
ie.block(() => U(D, "$ref", $e.all.$ref.definition));
|
|
4794
4794
|
return;
|
|
4795
4795
|
}
|
|
4796
|
-
ke.jtd || le(D,
|
|
4796
|
+
ke.jtd || le(D, q), ie.block(() => {
|
|
4797
4797
|
for (const Ye of $e.rules)
|
|
4798
4798
|
it(Ye);
|
|
4799
4799
|
it($e.post);
|
|
4800
4800
|
});
|
|
4801
4801
|
function it(Ye) {
|
|
4802
|
-
(0, n.shouldUseGroup)(Ae, Ye) && (Ye.type ? (ie.if((0, r.checkDataType)(Ye.type, me, ke.strictNumbers)), ge(D, Ye),
|
|
4802
|
+
(0, n.shouldUseGroup)(Ae, Ye) && (Ye.type ? (ie.if((0, r.checkDataType)(Ye.type, me, ke.strictNumbers)), ge(D, Ye), q.length === 1 && q[0] === Ye.type && P && (ie.else(), (0, r.reportTypeError)(D)), ie.endIf()) : ge(D, Ye), re || ie.if((0, a._)`${l.default.errors} === ${Y || 0}`));
|
|
4803
4803
|
}
|
|
4804
4804
|
}
|
|
4805
|
-
function ge(D,
|
|
4805
|
+
function ge(D, q) {
|
|
4806
4806
|
const { gen: P, schema: Y, opts: { useDefaults: ie } } = D;
|
|
4807
|
-
ie && (0, i.assignDefaults)(D,
|
|
4808
|
-
for (const Ae of
|
|
4809
|
-
(0, n.shouldUseRule)(Y, Ae) && U(D, Ae.keyword, Ae.definition,
|
|
4807
|
+
ie && (0, i.assignDefaults)(D, q.type), P.block(() => {
|
|
4808
|
+
for (const Ae of q.rules)
|
|
4809
|
+
(0, n.shouldUseRule)(Y, Ae) && U(D, Ae.keyword, Ae.definition, q.type);
|
|
4810
4810
|
});
|
|
4811
4811
|
}
|
|
4812
|
-
function le(D,
|
|
4813
|
-
D.schemaEnv.meta || !D.opts.strictTypes || (ne(D,
|
|
4812
|
+
function le(D, q) {
|
|
4813
|
+
D.schemaEnv.meta || !D.opts.strictTypes || (ne(D, q), D.opts.allowUnionTypes || te(D, q), R(D, D.dataTypes));
|
|
4814
4814
|
}
|
|
4815
|
-
function ne(D,
|
|
4816
|
-
if (
|
|
4815
|
+
function ne(D, q) {
|
|
4816
|
+
if (q.length) {
|
|
4817
4817
|
if (!D.dataTypes.length) {
|
|
4818
|
-
D.dataTypes =
|
|
4818
|
+
D.dataTypes = q;
|
|
4819
4819
|
return;
|
|
4820
4820
|
}
|
|
4821
|
-
|
|
4821
|
+
q.forEach((P) => {
|
|
4822
4822
|
_(D.dataTypes, P) || C(D, `type "${P}" not allowed by context "${D.dataTypes.join(",")}"`);
|
|
4823
|
-
}), S(D,
|
|
4823
|
+
}), S(D, q);
|
|
4824
4824
|
}
|
|
4825
4825
|
}
|
|
4826
|
-
function te(D,
|
|
4827
|
-
|
|
4826
|
+
function te(D, q) {
|
|
4827
|
+
q.length > 1 && !(q.length === 2 && q.includes("null")) && C(D, "use allowUnionTypes to allow union type keyword");
|
|
4828
4828
|
}
|
|
4829
|
-
function R(D,
|
|
4829
|
+
function R(D, q) {
|
|
4830
4830
|
const P = D.self.RULES.all;
|
|
4831
4831
|
for (const Y in P) {
|
|
4832
4832
|
const ie = P[Y];
|
|
4833
4833
|
if (typeof ie == "object" && (0, n.shouldUseRule)(D.schema, ie)) {
|
|
4834
4834
|
const { type: Ae } = ie.definition;
|
|
4835
|
-
Ae.length && !Ae.some((me) => q
|
|
4835
|
+
Ae.length && !Ae.some((me) => B(q, me)) && C(D, `missing type "${Ae.join(",")}" for keyword "${Y}"`);
|
|
4836
4836
|
}
|
|
4837
4837
|
}
|
|
4838
4838
|
}
|
|
4839
|
-
function
|
|
4840
|
-
return D.includes(
|
|
4839
|
+
function B(D, q) {
|
|
4840
|
+
return D.includes(q) || q === "number" && D.includes("integer");
|
|
4841
4841
|
}
|
|
4842
|
-
function _(D,
|
|
4843
|
-
return D.includes(
|
|
4842
|
+
function _(D, q) {
|
|
4843
|
+
return D.includes(q) || q === "integer" && D.includes("number");
|
|
4844
4844
|
}
|
|
4845
|
-
function S(D,
|
|
4845
|
+
function S(D, q) {
|
|
4846
4846
|
const P = [];
|
|
4847
4847
|
for (const Y of D.dataTypes)
|
|
4848
|
-
_(
|
|
4848
|
+
_(q, Y) ? P.push(Y) : q.includes("integer") && Y === "number" && P.push("integer");
|
|
4849
4849
|
D.dataTypes = P;
|
|
4850
4850
|
}
|
|
4851
|
-
function C(D,
|
|
4851
|
+
function C(D, q) {
|
|
4852
4852
|
const P = D.schemaEnv.baseId + D.errSchemaPath;
|
|
4853
|
-
|
|
4853
|
+
q += ` at "${P}" (strictTypes)`, (0, d.checkStrictMode)(D, q, D.opts.strictTypes);
|
|
4854
4854
|
}
|
|
4855
4855
|
class $ {
|
|
4856
|
-
constructor(
|
|
4857
|
-
if ((0, o.validateKeywordUsage)(
|
|
4858
|
-
this.schemaCode =
|
|
4856
|
+
constructor(q, P, Y) {
|
|
4857
|
+
if ((0, o.validateKeywordUsage)(q, P, Y), this.gen = q.gen, this.allErrors = q.allErrors, this.keyword = Y, this.data = q.data, this.schema = q.schema[Y], this.$data = P.$data && q.opts.$data && this.schema && this.schema.$data, this.schemaValue = (0, d.schemaRefOrVal)(q, this.schema, Y, this.$data), this.schemaType = P.schemaType, this.parentSchema = q.schema, this.params = {}, this.it = q, this.def = P, this.$data)
|
|
4858
|
+
this.schemaCode = q.gen.const("vSchema", Ne(this.$data, q));
|
|
4859
4859
|
else if (this.schemaCode = this.schemaValue, !(0, o.validSchemaType)(this.schema, P.schemaType, P.allowUndefined))
|
|
4860
4860
|
throw new Error(`${Y} value must be ${JSON.stringify(P.schemaType)}`);
|
|
4861
|
-
("code" in P ? P.trackErrors : P.errors !== !1) && (this.errsCount =
|
|
4861
|
+
("code" in P ? P.trackErrors : P.errors !== !1) && (this.errsCount = q.gen.const("_errs", l.default.errors));
|
|
4862
4862
|
}
|
|
4863
|
-
result(
|
|
4864
|
-
this.failResult((0, a.not)(
|
|
4863
|
+
result(q, P, Y) {
|
|
4864
|
+
this.failResult((0, a.not)(q), P, Y);
|
|
4865
4865
|
}
|
|
4866
|
-
failResult(
|
|
4867
|
-
this.gen.if(
|
|
4866
|
+
failResult(q, P, Y) {
|
|
4867
|
+
this.gen.if(q), Y ? Y() : this.error(), P ? (this.gen.else(), P(), this.allErrors && this.gen.endIf()) : this.allErrors ? this.gen.endIf() : this.gen.else();
|
|
4868
4868
|
}
|
|
4869
|
-
pass(
|
|
4870
|
-
this.failResult((0, a.not)(
|
|
4869
|
+
pass(q, P) {
|
|
4870
|
+
this.failResult((0, a.not)(q), void 0, P);
|
|
4871
4871
|
}
|
|
4872
|
-
fail(
|
|
4873
|
-
if (
|
|
4872
|
+
fail(q) {
|
|
4873
|
+
if (q === void 0) {
|
|
4874
4874
|
this.error(), this.allErrors || this.gen.if(!1);
|
|
4875
4875
|
return;
|
|
4876
4876
|
}
|
|
4877
|
-
this.gen.if(
|
|
4877
|
+
this.gen.if(q), this.error(), this.allErrors ? this.gen.endIf() : this.gen.else();
|
|
4878
4878
|
}
|
|
4879
|
-
fail$data(
|
|
4879
|
+
fail$data(q) {
|
|
4880
4880
|
if (!this.$data)
|
|
4881
|
-
return this.fail(
|
|
4881
|
+
return this.fail(q);
|
|
4882
4882
|
const { schemaCode: P } = this;
|
|
4883
|
-
this.fail((0, a._)`${P} !== undefined && (${(0, a.or)(this.invalid$data(),
|
|
4883
|
+
this.fail((0, a._)`${P} !== undefined && (${(0, a.or)(this.invalid$data(), q)})`);
|
|
4884
4884
|
}
|
|
4885
|
-
error(
|
|
4885
|
+
error(q, P, Y) {
|
|
4886
4886
|
if (P) {
|
|
4887
|
-
this.setParams(P), this._error(
|
|
4887
|
+
this.setParams(P), this._error(q, Y), this.setParams({});
|
|
4888
4888
|
return;
|
|
4889
4889
|
}
|
|
4890
|
-
this._error(
|
|
4890
|
+
this._error(q, Y);
|
|
4891
4891
|
}
|
|
4892
|
-
_error(
|
|
4893
|
-
(
|
|
4892
|
+
_error(q, P) {
|
|
4893
|
+
(q ? f.reportExtraError : f.reportError)(this, this.def.error, P);
|
|
4894
4894
|
}
|
|
4895
4895
|
$dataError() {
|
|
4896
4896
|
(0, f.reportError)(this, this.def.$dataError || f.keyword$DataError);
|
|
@@ -4900,25 +4900,25 @@ function Pg() {
|
|
|
4900
4900
|
throw new Error('add "trackErrors" to keyword definition');
|
|
4901
4901
|
(0, f.resetErrorsCount)(this.gen, this.errsCount);
|
|
4902
4902
|
}
|
|
4903
|
-
ok(
|
|
4904
|
-
this.allErrors || this.gen.if(
|
|
4903
|
+
ok(q) {
|
|
4904
|
+
this.allErrors || this.gen.if(q);
|
|
4905
4905
|
}
|
|
4906
|
-
setParams(
|
|
4907
|
-
P ? Object.assign(this.params,
|
|
4906
|
+
setParams(q, P) {
|
|
4907
|
+
P ? Object.assign(this.params, q) : this.params = q;
|
|
4908
4908
|
}
|
|
4909
|
-
block$data(
|
|
4909
|
+
block$data(q, P, Y = a.nil) {
|
|
4910
4910
|
this.gen.block(() => {
|
|
4911
|
-
this.check$data(
|
|
4911
|
+
this.check$data(q, Y), P();
|
|
4912
4912
|
});
|
|
4913
4913
|
}
|
|
4914
|
-
check$data(
|
|
4914
|
+
check$data(q = a.nil, P = a.nil) {
|
|
4915
4915
|
if (!this.$data)
|
|
4916
4916
|
return;
|
|
4917
4917
|
const { gen: Y, schemaCode: ie, schemaType: Ae, def: me } = this;
|
|
4918
|
-
Y.if((0, a.or)((0, a._)`${ie} === undefined`, P)),
|
|
4918
|
+
Y.if((0, a.or)((0, a._)`${ie} === undefined`, P)), q !== a.nil && Y.assign(q, !0), (Ae.length || me.validateSchema) && (Y.elseIf(this.invalid$data()), this.$dataError(), q !== a.nil && Y.assign(q, !1)), Y.else();
|
|
4919
4919
|
}
|
|
4920
4920
|
invalid$data() {
|
|
4921
|
-
const { gen:
|
|
4921
|
+
const { gen: q, schemaCode: P, schemaType: Y, def: ie, it: Ae } = this;
|
|
4922
4922
|
return (0, a.or)(me(), re());
|
|
4923
4923
|
function me() {
|
|
4924
4924
|
if (Y.length) {
|
|
@@ -4931,35 +4931,35 @@ function Pg() {
|
|
|
4931
4931
|
}
|
|
4932
4932
|
function re() {
|
|
4933
4933
|
if (ie.validateSchema) {
|
|
4934
|
-
const ke =
|
|
4934
|
+
const ke = q.scopeValue("validate$data", { ref: ie.validateSchema });
|
|
4935
4935
|
return (0, a._)`!${ke}(${P})`;
|
|
4936
4936
|
}
|
|
4937
4937
|
return a.nil;
|
|
4938
4938
|
}
|
|
4939
4939
|
}
|
|
4940
|
-
subschema(
|
|
4941
|
-
const Y = (0, s.getSubschema)(this.it,
|
|
4942
|
-
(0, s.extendSubschemaData)(Y, this.it,
|
|
4940
|
+
subschema(q, P) {
|
|
4941
|
+
const Y = (0, s.getSubschema)(this.it, q);
|
|
4942
|
+
(0, s.extendSubschemaData)(Y, this.it, q), (0, s.extendSubschemaMode)(Y, q);
|
|
4943
4943
|
const ie = { ...this.it, ...Y, items: void 0, props: void 0 };
|
|
4944
4944
|
return w(ie, P), ie;
|
|
4945
4945
|
}
|
|
4946
|
-
mergeEvaluated(
|
|
4946
|
+
mergeEvaluated(q, P) {
|
|
4947
4947
|
const { it: Y, gen: ie } = this;
|
|
4948
|
-
Y.opts.unevaluated && (Y.props !== !0 &&
|
|
4948
|
+
Y.opts.unevaluated && (Y.props !== !0 && q.props !== void 0 && (Y.props = d.mergeEvaluated.props(ie, q.props, Y.props, P)), Y.items !== !0 && q.items !== void 0 && (Y.items = d.mergeEvaluated.items(ie, q.items, Y.items, P)));
|
|
4949
4949
|
}
|
|
4950
|
-
mergeValidEvaluated(
|
|
4950
|
+
mergeValidEvaluated(q, P) {
|
|
4951
4951
|
const { it: Y, gen: ie } = this;
|
|
4952
4952
|
if (Y.opts.unevaluated && (Y.props !== !0 || Y.items !== !0))
|
|
4953
|
-
return ie.if(P, () => this.mergeEvaluated(
|
|
4953
|
+
return ie.if(P, () => this.mergeEvaluated(q, a.Name)), !0;
|
|
4954
4954
|
}
|
|
4955
4955
|
}
|
|
4956
4956
|
ea.KeywordCxt = $;
|
|
4957
|
-
function U(D,
|
|
4958
|
-
const ie = new $(D, P,
|
|
4957
|
+
function U(D, q, P, Y) {
|
|
4958
|
+
const ie = new $(D, P, q);
|
|
4959
4959
|
"code" in P ? P.code(ie, Y) : ie.$data && P.validate ? (0, o.funcKeywordCode)(ie, P) : "macro" in P ? (0, o.macroKeywordCode)(ie, P) : (P.compile || P.validate) && (0, o.funcKeywordCode)(ie, P);
|
|
4960
4960
|
}
|
|
4961
4961
|
const J = /^\/(?:[^~]|~0|~1)*$/, de = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
|
|
4962
|
-
function Ne(D, { dataLevel:
|
|
4962
|
+
function Ne(D, { dataLevel: q, dataNames: P, dataPathArr: Y }) {
|
|
4963
4963
|
let ie, Ae;
|
|
4964
4964
|
if (D === "")
|
|
4965
4965
|
return l.default.rootData;
|
|
@@ -4973,13 +4973,13 @@ function Pg() {
|
|
|
4973
4973
|
throw new Error(`Invalid JSON-pointer: ${D}`);
|
|
4974
4974
|
const $e = +tt[1];
|
|
4975
4975
|
if (ie = tt[2], ie === "#") {
|
|
4976
|
-
if ($e >=
|
|
4976
|
+
if ($e >= q)
|
|
4977
4977
|
throw new Error(ke("property/index", $e));
|
|
4978
|
-
return Y[
|
|
4978
|
+
return Y[q - $e];
|
|
4979
4979
|
}
|
|
4980
|
-
if ($e >
|
|
4980
|
+
if ($e > q)
|
|
4981
4981
|
throw new Error(ke("data", $e));
|
|
4982
|
-
if (Ae = P[
|
|
4982
|
+
if (Ae = P[q - $e], !ie)
|
|
4983
4983
|
return Ae;
|
|
4984
4984
|
}
|
|
4985
4985
|
let me = Ae;
|
|
@@ -4988,7 +4988,7 @@ function Pg() {
|
|
|
4988
4988
|
tt && (Ae = (0, a._)`${Ae}${(0, a.getProperty)((0, d.unescapeJsonPointer)(tt))}`, me = (0, a._)`${me} && ${Ae}`);
|
|
4989
4989
|
return me;
|
|
4990
4990
|
function ke(tt, $e) {
|
|
4991
|
-
return `Cannot access ${tt} ${$e} levels up, current level is ${
|
|
4991
|
+
return `Cannot access ${tt} ${$e} levels up, current level is ${q}`;
|
|
4992
4992
|
}
|
|
4993
4993
|
}
|
|
4994
4994
|
return ea.getData = Ne, ea;
|
|
@@ -5189,35 +5189,35 @@ function i4() {
|
|
|
5189
5189
|
const t = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu), e = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u), n = RegExp.prototype.test.bind(/^\d*$/u), r = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu), i = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu), o = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u), s = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/?]$/u), a = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:]$/u), l = new Array(256);
|
|
5190
5190
|
{
|
|
5191
5191
|
const R = "0123456789ABCDEF";
|
|
5192
|
-
for (let
|
|
5193
|
-
l[
|
|
5192
|
+
for (let B = 0; B < 256; B++)
|
|
5193
|
+
l[B] = "%" + R[B >> 4] + R[B & 15];
|
|
5194
5194
|
}
|
|
5195
5195
|
function u(R) {
|
|
5196
5196
|
return R < 2048 ? l[192 | R >> 6] + l[128 | R & 63] : R < 65536 ? l[224 | R >> 12] + l[128 | R >> 6 & 63] + l[128 | R & 63] : l[240 | R >> 18] + l[128 | R >> 12 & 63] + l[128 | R >> 6 & 63] + l[128 | R & 63];
|
|
5197
5197
|
}
|
|
5198
5198
|
function d(R) {
|
|
5199
|
-
let
|
|
5199
|
+
let B = "", _ = 0, S = 0;
|
|
5200
5200
|
for (S = 0; S < R.length; S++)
|
|
5201
5201
|
if (_ = R[S].charCodeAt(0), _ !== 48) {
|
|
5202
5202
|
if (!(_ >= 48 && _ <= 57 || _ >= 65 && _ <= 70 || _ >= 97 && _ <= 102))
|
|
5203
5203
|
return "";
|
|
5204
|
-
|
|
5204
|
+
B += R[S];
|
|
5205
5205
|
break;
|
|
5206
5206
|
}
|
|
5207
5207
|
for (S += 1; S < R.length; S++) {
|
|
5208
5208
|
if (_ = R[S].charCodeAt(0), !(_ >= 48 && _ <= 57 || _ >= 65 && _ <= 70 || _ >= 97 && _ <= 102))
|
|
5209
5209
|
return "";
|
|
5210
|
-
|
|
5210
|
+
B += R[S];
|
|
5211
5211
|
}
|
|
5212
|
-
return
|
|
5212
|
+
return B;
|
|
5213
5213
|
}
|
|
5214
5214
|
const f = RegExp.prototype.test.bind(/^[\dA-Fa-f]{1,4}$/), h = RegExp.prototype.test.bind(/^[vV][\dA-Fa-f]+\.[A-Za-z\d\-._~!$&'()*+,;=:]+$/), p = RegExp.prototype.test.bind(/^[A-Za-z\d\-._~]$/), m = RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);
|
|
5215
5215
|
function g(R) {
|
|
5216
5216
|
if (R.length === 0) return !1;
|
|
5217
|
-
for (let
|
|
5218
|
-
if (!p(R[
|
|
5219
|
-
if (R[
|
|
5220
|
-
|
|
5217
|
+
for (let B = 0; B < R.length; B++)
|
|
5218
|
+
if (!p(R[B])) {
|
|
5219
|
+
if (R[B] === "%" && B + 2 < R.length && r(R.slice(B + 1, B + 3))) {
|
|
5220
|
+
B += 2;
|
|
5221
5221
|
continue;
|
|
5222
5222
|
}
|
|
5223
5223
|
return !1;
|
|
@@ -5225,32 +5225,32 @@ function i4() {
|
|
|
5225
5225
|
return !0;
|
|
5226
5226
|
}
|
|
5227
5227
|
function v(R) {
|
|
5228
|
-
let
|
|
5228
|
+
let B = -1, _ = 0, S = -1, C = 0;
|
|
5229
5229
|
for (let J = 0; J < R.length; J++)
|
|
5230
|
-
R[J] === "0" ? (S === -1 && (S = J), C++, C > _ && (_ = C,
|
|
5230
|
+
R[J] === "0" ? (S === -1 && (S = J), C++, C > _ && (_ = C, B = S)) : (S = -1, C = 0);
|
|
5231
5231
|
if (_ < 2) return R.join(":");
|
|
5232
|
-
const $ = R.slice(0,
|
|
5232
|
+
const $ = R.slice(0, B).join(":"), U = R.slice(B + _).join(":");
|
|
5233
5233
|
return $ + "::" + U;
|
|
5234
5234
|
}
|
|
5235
5235
|
function y(R) {
|
|
5236
|
-
const
|
|
5237
|
-
if (
|
|
5238
|
-
const _ =
|
|
5239
|
-
|
|
5236
|
+
const B = R.indexOf("::");
|
|
5237
|
+
if (B !== -1 && R.indexOf("::", B + 1) !== -1) return;
|
|
5238
|
+
const _ = B === -1 ? R.split(":") : R.slice(0, B).split(":"), S = B === -1 ? [] : R.slice(B + 2).split(":");
|
|
5239
|
+
B !== -1 && (_.length === 1 && _[0] === "" && (_.length = 0), S.length === 1 && S[0] === "" && (S.length = 0));
|
|
5240
5240
|
const C = _.concat(S);
|
|
5241
5241
|
let $ = 0;
|
|
5242
5242
|
for (let J = 0; J < C.length; J++) {
|
|
5243
5243
|
const de = C[J];
|
|
5244
5244
|
if (de === "") return;
|
|
5245
5245
|
if (de.indexOf(".") !== -1) {
|
|
5246
|
-
if (J !== C.length - 1 ||
|
|
5246
|
+
if (J !== C.length - 1 || B !== -1 && S.length === 0 || !e(de)) return;
|
|
5247
5247
|
$ += 2;
|
|
5248
5248
|
continue;
|
|
5249
5249
|
}
|
|
5250
5250
|
if (!f(de)) return;
|
|
5251
5251
|
C[J] = parseInt(de, 16).toString(16), $++;
|
|
5252
5252
|
}
|
|
5253
|
-
if (
|
|
5253
|
+
if (B === -1)
|
|
5254
5254
|
return $ !== 8 ? void 0 : v(C);
|
|
5255
5255
|
if ($ >= 8) return;
|
|
5256
5256
|
const U = C.slice(0, _.length);
|
|
@@ -5259,13 +5259,13 @@ function i4() {
|
|
|
5259
5259
|
return v(U);
|
|
5260
5260
|
}
|
|
5261
5261
|
function x(R) {
|
|
5262
|
-
const
|
|
5263
|
-
if ((R[0] === "[" || R[R.length - 1] === "]") && !
|
|
5264
|
-
let S =
|
|
5265
|
-
if (
|
|
5262
|
+
const B = R[0] === "[" && R[R.length - 1] === "]";
|
|
5263
|
+
if ((R[0] === "[" || R[R.length - 1] === "]") && !B) return { host: R, isIPV6: !1, error: !0 };
|
|
5264
|
+
let S = B ? R.slice(1, -1) : R;
|
|
5265
|
+
if (B && h(S))
|
|
5266
5266
|
return S = S.toLowerCase(), { host: `[${S}]`, escapedHost: S, isIPV6: !1, isIPVFuture: !0 };
|
|
5267
5267
|
if (w(S, ":") < 2)
|
|
5268
|
-
return { host: R, isIPV6: !1, error:
|
|
5268
|
+
return { host: R, isIPV6: !1, error: B };
|
|
5269
5269
|
let C = "";
|
|
5270
5270
|
const $ = S.indexOf("%");
|
|
5271
5271
|
if ($ !== -1) {
|
|
@@ -5280,87 +5280,87 @@ function i4() {
|
|
|
5280
5280
|
isIPV6: !0
|
|
5281
5281
|
};
|
|
5282
5282
|
}
|
|
5283
|
-
function w(R,
|
|
5283
|
+
function w(R, B) {
|
|
5284
5284
|
let _ = 0;
|
|
5285
5285
|
for (let S = 0; S < R.length; S++)
|
|
5286
|
-
R[S] ===
|
|
5286
|
+
R[S] === B && _++;
|
|
5287
5287
|
return _;
|
|
5288
5288
|
}
|
|
5289
5289
|
function k(R) {
|
|
5290
|
-
let
|
|
5290
|
+
let B = R;
|
|
5291
5291
|
const _ = [];
|
|
5292
5292
|
let S = -1, C = 0;
|
|
5293
|
-
for (; C =
|
|
5293
|
+
for (; C = B.length; ) {
|
|
5294
5294
|
if (C === 1) {
|
|
5295
|
-
if (
|
|
5295
|
+
if (B === ".")
|
|
5296
5296
|
break;
|
|
5297
|
-
if (
|
|
5297
|
+
if (B === "/") {
|
|
5298
5298
|
_.push("/");
|
|
5299
5299
|
break;
|
|
5300
5300
|
} else {
|
|
5301
|
-
_.push(
|
|
5301
|
+
_.push(B);
|
|
5302
5302
|
break;
|
|
5303
5303
|
}
|
|
5304
5304
|
} else if (C === 2) {
|
|
5305
|
-
if (
|
|
5306
|
-
if (
|
|
5305
|
+
if (B[0] === ".") {
|
|
5306
|
+
if (B[1] === ".")
|
|
5307
5307
|
break;
|
|
5308
|
-
if (
|
|
5309
|
-
|
|
5308
|
+
if (B[1] === "/") {
|
|
5309
|
+
B = B.slice(2);
|
|
5310
5310
|
continue;
|
|
5311
5311
|
}
|
|
5312
|
-
} else if (
|
|
5312
|
+
} else if (B[0] === "/" && (B[1] === "." || B[1] === "/")) {
|
|
5313
5313
|
_.push("/");
|
|
5314
5314
|
break;
|
|
5315
5315
|
}
|
|
5316
|
-
} else if (C === 3 &&
|
|
5316
|
+
} else if (C === 3 && B === "/..") {
|
|
5317
5317
|
_.length !== 0 && _.pop(), _.push("/");
|
|
5318
5318
|
break;
|
|
5319
5319
|
}
|
|
5320
|
-
if (
|
|
5321
|
-
if (
|
|
5322
|
-
if (
|
|
5323
|
-
|
|
5320
|
+
if (B[0] === ".") {
|
|
5321
|
+
if (B[1] === ".") {
|
|
5322
|
+
if (B[2] === "/") {
|
|
5323
|
+
B = B.slice(3);
|
|
5324
5324
|
continue;
|
|
5325
5325
|
}
|
|
5326
|
-
} else if (
|
|
5327
|
-
|
|
5326
|
+
} else if (B[1] === "/") {
|
|
5327
|
+
B = B.slice(2);
|
|
5328
5328
|
continue;
|
|
5329
5329
|
}
|
|
5330
|
-
} else if (
|
|
5331
|
-
if (
|
|
5332
|
-
|
|
5330
|
+
} else if (B[0] === "/" && B[1] === ".") {
|
|
5331
|
+
if (B[2] === "/") {
|
|
5332
|
+
B = B.slice(2);
|
|
5333
5333
|
continue;
|
|
5334
|
-
} else if (
|
|
5335
|
-
|
|
5334
|
+
} else if (B[2] === "." && B[3] === "/") {
|
|
5335
|
+
B = B.slice(3), _.length !== 0 && _.pop();
|
|
5336
5336
|
continue;
|
|
5337
5337
|
}
|
|
5338
5338
|
}
|
|
5339
|
-
if ((S =
|
|
5340
|
-
_.push(
|
|
5339
|
+
if ((S = B.indexOf("/", 1)) === -1) {
|
|
5340
|
+
_.push(B);
|
|
5341
5341
|
break;
|
|
5342
5342
|
} else
|
|
5343
|
-
_.push(
|
|
5343
|
+
_.push(B.slice(0, S)), B = B.slice(S);
|
|
5344
5344
|
}
|
|
5345
5345
|
return _.join("");
|
|
5346
5346
|
}
|
|
5347
5347
|
function b(R) {
|
|
5348
5348
|
if (R === "" || R[0] === "/")
|
|
5349
5349
|
return k(R);
|
|
5350
|
-
const
|
|
5350
|
+
const B = R.split("/"), _ = B.length - 1, S = [];
|
|
5351
5351
|
let C = !1;
|
|
5352
5352
|
for (let $ = 0; $ <= _; $++) {
|
|
5353
|
-
const U =
|
|
5353
|
+
const U = B[$];
|
|
5354
5354
|
U === "." || U === ".." ? (U === ".." && (S.length !== 0 && S[S.length - 1] !== ".." ? S.pop() : S.push("..")), C = $ === _) : S.push(U);
|
|
5355
5355
|
}
|
|
5356
5356
|
return C && S[S.length - 1] !== ".." && S.push(""), (S.length === 0 || S[0] === "" || S[0].includes(":")) && S.unshift("."), S.join("/");
|
|
5357
5357
|
}
|
|
5358
5358
|
const j = { "@": "%40", "/": "%2F", "?": "%3F", "#": "%23", ":": "%3A" }, O = /[@/?#:]/g, N = /[@/?#]/g;
|
|
5359
|
-
function M(R,
|
|
5360
|
-
const _ =
|
|
5359
|
+
function M(R, B) {
|
|
5360
|
+
const _ = B ? N : O;
|
|
5361
5361
|
return _.lastIndex = 0, R.replace(_, (S) => j[S]);
|
|
5362
5362
|
}
|
|
5363
|
-
function z(R,
|
|
5363
|
+
function z(R, B = !1) {
|
|
5364
5364
|
if (R.indexOf("%") === -1)
|
|
5365
5365
|
return R;
|
|
5366
5366
|
let _ = "";
|
|
@@ -5369,7 +5369,7 @@ function i4() {
|
|
|
5369
5369
|
const C = R.slice(S + 1, S + 3);
|
|
5370
5370
|
if (r(C)) {
|
|
5371
5371
|
const $ = C.toUpperCase(), U = String.fromCharCode(parseInt($, 16));
|
|
5372
|
-
|
|
5372
|
+
B && i(U) ? _ += U : _ += "%" + $, S += 2;
|
|
5373
5373
|
continue;
|
|
5374
5374
|
}
|
|
5375
5375
|
}
|
|
@@ -5378,36 +5378,36 @@ function i4() {
|
|
|
5378
5378
|
return _;
|
|
5379
5379
|
}
|
|
5380
5380
|
function H(R) {
|
|
5381
|
-
let
|
|
5381
|
+
let B = "";
|
|
5382
5382
|
for (let _ = 0; _ < R.length; _++) {
|
|
5383
5383
|
const S = R[_];
|
|
5384
5384
|
if (S === "%" && _ + 2 < R.length) {
|
|
5385
5385
|
const C = R.slice(_ + 1, _ + 3);
|
|
5386
5386
|
if (r(C)) {
|
|
5387
5387
|
const $ = C.toUpperCase(), U = String.fromCharCode(parseInt($, 16));
|
|
5388
|
-
U !== "." && i(U) ?
|
|
5388
|
+
U !== "." && i(U) ? B += U : B += "%" + $, _ += 2;
|
|
5389
5389
|
continue;
|
|
5390
5390
|
}
|
|
5391
5391
|
}
|
|
5392
5392
|
if (o(S))
|
|
5393
|
-
|
|
5393
|
+
B += S;
|
|
5394
5394
|
else {
|
|
5395
5395
|
const C = R.charCodeAt(_);
|
|
5396
5396
|
if (C < 128)
|
|
5397
|
-
|
|
5397
|
+
B += ge(C) ? S : l[C];
|
|
5398
5398
|
else if (C < 55296 || C > 57343)
|
|
5399
|
-
|
|
5399
|
+
B += u(C);
|
|
5400
5400
|
else if (C <= 56319 && _ + 1 < R.length) {
|
|
5401
5401
|
const $ = R.charCodeAt(_ + 1);
|
|
5402
|
-
$ >= 56320 && $ <= 57343 ? (
|
|
5402
|
+
$ >= 56320 && $ <= 57343 ? (B += u(65536 + (C - 55296 << 10) + ($ - 56320)), _++) : B += u(65533);
|
|
5403
5403
|
} else
|
|
5404
|
-
|
|
5404
|
+
B += u(65533);
|
|
5405
5405
|
}
|
|
5406
5406
|
}
|
|
5407
|
-
return
|
|
5407
|
+
return B;
|
|
5408
5408
|
}
|
|
5409
|
-
function V(R,
|
|
5410
|
-
let _ = "", S =
|
|
5409
|
+
function V(R, B = !1) {
|
|
5410
|
+
let _ = "", S = B && R[0] !== "/";
|
|
5411
5411
|
for (let C = 0; C < R.length; C++) {
|
|
5412
5412
|
const $ = R[C];
|
|
5413
5413
|
if ($ === "%" && C + 2 < R.length) {
|
|
@@ -5434,7 +5434,7 @@ function i4() {
|
|
|
5434
5434
|
}
|
|
5435
5435
|
return _;
|
|
5436
5436
|
}
|
|
5437
|
-
function G(R,
|
|
5437
|
+
function G(R, B) {
|
|
5438
5438
|
let _ = "";
|
|
5439
5439
|
for (let S = 0; S < R.length; S++) {
|
|
5440
5440
|
const C = R[S];
|
|
@@ -5445,7 +5445,7 @@ function i4() {
|
|
|
5445
5445
|
continue;
|
|
5446
5446
|
}
|
|
5447
5447
|
}
|
|
5448
|
-
if (
|
|
5448
|
+
if (B(C))
|
|
5449
5449
|
_ += C;
|
|
5450
5450
|
else {
|
|
5451
5451
|
const $ = R.charCodeAt(S);
|
|
@@ -5468,72 +5468,72 @@ function i4() {
|
|
|
5468
5468
|
function pe(R) {
|
|
5469
5469
|
return G(R, s);
|
|
5470
5470
|
}
|
|
5471
|
-
function
|
|
5471
|
+
function Se(R) {
|
|
5472
5472
|
return G(R, s);
|
|
5473
5473
|
}
|
|
5474
5474
|
function ge(R) {
|
|
5475
5475
|
return R >= 48 && R <= 57 || R >= 65 && R <= 90 || R >= 97 && R <= 122 || R === 42 || R === 43 || R === 45 || R === 46 || R === 47 || R === 64 || R === 95;
|
|
5476
5476
|
}
|
|
5477
5477
|
function le(R) {
|
|
5478
|
-
let
|
|
5478
|
+
let B = "";
|
|
5479
5479
|
for (let _ = 0; _ < R.length; _++) {
|
|
5480
5480
|
const S = R[_];
|
|
5481
5481
|
if (S === "%" && _ + 2 < R.length) {
|
|
5482
5482
|
const C = R.slice(_ + 1, _ + 3);
|
|
5483
5483
|
if (r(C)) {
|
|
5484
5484
|
const $ = C.toUpperCase(), U = String.fromCharCode(parseInt($, 16));
|
|
5485
|
-
i(U) ?
|
|
5485
|
+
i(U) ? B += U : B += "%" + $, _ += 2;
|
|
5486
5486
|
continue;
|
|
5487
5487
|
}
|
|
5488
5488
|
}
|
|
5489
5489
|
if (s(S))
|
|
5490
|
-
|
|
5490
|
+
B += S;
|
|
5491
5491
|
else {
|
|
5492
5492
|
const C = R.charCodeAt(_);
|
|
5493
5493
|
if (C < 128)
|
|
5494
|
-
|
|
5494
|
+
B += ge(C) ? S : l[C];
|
|
5495
5495
|
else if (C < 55296 || C > 57343)
|
|
5496
|
-
|
|
5496
|
+
B += u(C);
|
|
5497
5497
|
else if (C <= 56319 && _ + 1 < R.length) {
|
|
5498
5498
|
const $ = R.charCodeAt(_ + 1);
|
|
5499
|
-
$ >= 56320 && $ <= 57343 ? (
|
|
5499
|
+
$ >= 56320 && $ <= 57343 ? (B += u(65536 + (C - 55296 << 10) + ($ - 56320)), _++) : B += u(65533);
|
|
5500
5500
|
} else
|
|
5501
|
-
|
|
5501
|
+
B += u(65533);
|
|
5502
5502
|
}
|
|
5503
5503
|
}
|
|
5504
|
-
return
|
|
5504
|
+
return B;
|
|
5505
5505
|
}
|
|
5506
5506
|
function ne(R) {
|
|
5507
|
-
let
|
|
5507
|
+
let B = "";
|
|
5508
5508
|
for (let _ = 0; _ < R.length; _++) {
|
|
5509
5509
|
if (R[_] === "%" && _ + 2 < R.length) {
|
|
5510
5510
|
const S = R.slice(_ + 1, _ + 3);
|
|
5511
5511
|
if (r(S)) {
|
|
5512
|
-
|
|
5512
|
+
B += "%" + S.toUpperCase(), _ += 2;
|
|
5513
5513
|
continue;
|
|
5514
5514
|
}
|
|
5515
5515
|
}
|
|
5516
|
-
|
|
5516
|
+
B += escape(R[_]);
|
|
5517
5517
|
}
|
|
5518
|
-
return
|
|
5518
|
+
return B;
|
|
5519
5519
|
}
|
|
5520
5520
|
function te(R) {
|
|
5521
|
-
const
|
|
5522
|
-
if (R.userinfo !== void 0 && (
|
|
5521
|
+
const B = [];
|
|
5522
|
+
if (R.userinfo !== void 0 && (B.push(Q(R.userinfo)), B.push("@")), R.host !== void 0) {
|
|
5523
5523
|
let _ = R.host;
|
|
5524
5524
|
if (!e(_)) {
|
|
5525
5525
|
let S = x(_);
|
|
5526
5526
|
S.isIPV6 !== !0 && S.isIPVFuture !== !0 && (_ = z(_, !0), S = x(_)), S.isIPV6 === !0 || S.isIPVFuture === !0 ? _ = `[${S.escapedHost}]` : _ = M(_, !1);
|
|
5527
5527
|
}
|
|
5528
|
-
|
|
5528
|
+
B.push(_);
|
|
5529
5529
|
}
|
|
5530
5530
|
if (typeof R.port == "number" || typeof R.port == "string") {
|
|
5531
5531
|
const _ = String(R.port);
|
|
5532
5532
|
if (!n(_))
|
|
5533
5533
|
throw new TypeError("URI port is malformed.");
|
|
5534
|
-
|
|
5534
|
+
B.push(":"), B.push(_);
|
|
5535
5535
|
}
|
|
5536
|
-
return
|
|
5536
|
+
return B.length ? B.join("") : void 0;
|
|
5537
5537
|
}
|
|
5538
5538
|
return Tv = {
|
|
5539
5539
|
nonSimpleDomain: m,
|
|
@@ -5545,7 +5545,7 @@ function i4() {
|
|
|
5545
5545
|
normalizeQueryFragmentEncoding: le,
|
|
5546
5546
|
encodeUserinfo: Q,
|
|
5547
5547
|
encodeQuery: pe,
|
|
5548
|
-
encodeFragment:
|
|
5548
|
+
encodeFragment: Se,
|
|
5549
5549
|
escapePreservingEscapes: ne,
|
|
5550
5550
|
removeDotSegments: k,
|
|
5551
5551
|
removeDotSegmentsRelative: b,
|
|
@@ -5722,7 +5722,7 @@ function l9() {
|
|
|
5722
5722
|
parsed: de,
|
|
5723
5723
|
malformedAuthorityOrPort: Ne,
|
|
5724
5724
|
malformedPercentEncoding: D,
|
|
5725
|
-
malformedSchemeSpecific:
|
|
5725
|
+
malformedSchemeSpecific: q,
|
|
5726
5726
|
malformedHost: P,
|
|
5727
5727
|
malformedScheme: Y
|
|
5728
5728
|
} = ne(C, J), {
|
|
@@ -5733,12 +5733,12 @@ function l9() {
|
|
|
5733
5733
|
malformedHost: ke,
|
|
5734
5734
|
malformedScheme: tt
|
|
5735
5735
|
} = ne($, J);
|
|
5736
|
-
if (Ne || Ae || D || me ||
|
|
5736
|
+
if (Ne || Ae || D || me || q || re || P || ke || Y || tt)
|
|
5737
5737
|
throw new Error(de.error || ie.error || "URI is malformed.");
|
|
5738
5738
|
const $e = j(de, ie, J, !0), it = m(U && U.scheme || $e.scheme), Ye = $e.host, Le = Ye !== void 0 && Ye !== "" && (f(Ye) || t(Ye).isIPV6);
|
|
5739
5739
|
if (ge($e, U || {}, it, Le))
|
|
5740
5740
|
throw new Error(y);
|
|
5741
|
-
|
|
5741
|
+
Se($e, U || {}, it, Le);
|
|
5742
5742
|
const pt = Ye && Ye.indexOf("%") !== -1 && !new RegExp("\\P{ASCII}", "u").test(Ye);
|
|
5743
5743
|
if ($e.error && !pt)
|
|
5744
5744
|
throw new Error($e.error);
|
|
@@ -5793,12 +5793,12 @@ function l9() {
|
|
|
5793
5793
|
U.scheme && (U.scheme = w(U.scheme));
|
|
5794
5794
|
const Ne = m(J.scheme || U.scheme);
|
|
5795
5795
|
Ne && Ne.serialize && Ne.serialize(U, J);
|
|
5796
|
-
const D = U.userinfo !== void 0 || U.host !== void 0 || U.port !== void 0,
|
|
5796
|
+
const D = U.userinfo !== void 0 || U.host !== void 0 || U.port !== void 0, q = (U.scheme === void 0 || J.reference === "suffix") && !D, P = !J.skipEscape && q;
|
|
5797
5797
|
U.path !== void 0 && (J.skipEscape ? U.path = i(U.path) : U.path = s(U.path, P)), J.reference !== "suffix" && U.scheme && (U.scheme = w(U.scheme), de.push(U.scheme, ":"));
|
|
5798
5798
|
const Y = r(U);
|
|
5799
5799
|
if (Y !== void 0 && (J.reference !== "suffix" && de.push("//"), de.push(Y), U.path && U.path[0] !== "/" && de.push("/")), U.path !== void 0) {
|
|
5800
5800
|
let ie = U.path;
|
|
5801
|
-
!J.absolutePath && (!Ne || !Ne.absolutePath) && (ie =
|
|
5801
|
+
!J.absolutePath && (!Ne || !Ne.absolutePath) && (ie = q && ie[0] !== "/" ? n(ie) : e(ie)), q && (ie = s(ie, !0)), Y === void 0 && ie[0] === "/" && ie[1] === "/" && (ie = "/%2F" + ie.slice(2)), de.push(ie);
|
|
5802
5802
|
}
|
|
5803
5803
|
return U.query !== void 0 && de.push("?", l(U.query)), U.fragment !== void 0 && de.push("#", u(U.fragment)), de.join("");
|
|
5804
5804
|
}
|
|
@@ -5826,7 +5826,7 @@ function l9() {
|
|
|
5826
5826
|
const $ = C[4];
|
|
5827
5827
|
return G(C[3]) || $ !== void 0 && !Q($) && G($) || G(C[6]) || G(C[7]) || G(C[8]);
|
|
5828
5828
|
}
|
|
5829
|
-
function
|
|
5829
|
+
function Se(C, $, U, J) {
|
|
5830
5830
|
if (ge(C, $, U, J))
|
|
5831
5831
|
return C.error = C.error || y, !0;
|
|
5832
5832
|
if (!$.unicodeSupport && (!U || !U.unicodeSupport) && C.host && !Q(C.host) && ($.domainHost || U && U.domainHost) && J === !1 && h(C.host)) {
|
|
@@ -5858,7 +5858,7 @@ function l9() {
|
|
|
5858
5858
|
query: void 0,
|
|
5859
5859
|
fragment: void 0
|
|
5860
5860
|
};
|
|
5861
|
-
let de = !1, Ne = !1, D = !1,
|
|
5861
|
+
let de = !1, Ne = !1, D = !1, q = !1, P = !1, Y = !1, ie = !1;
|
|
5862
5862
|
U.reference === "suffix" && (U.scheme ? C = U.scheme + ":" + C : C = "//" + C);
|
|
5863
5863
|
const Ae = C.match(z);
|
|
5864
5864
|
Ae !== null && Ae[1].indexOf("\\") !== -1 && (J.error = "URI authority must not contain a literal backslash.", de = !0);
|
|
@@ -5879,30 +5879,30 @@ function l9() {
|
|
|
5879
5879
|
ie = !0;
|
|
5880
5880
|
J.scheme === void 0 && J.userinfo === void 0 && J.host === void 0 && J.port === void 0 && J.query === void 0 && !J.path ? J.reference = "same-document" : J.scheme === void 0 ? J.reference = "relative" : J.fragment === void 0 ? J.reference = "absolute" : J.reference = "uri", U.reference && U.reference !== "suffix" && U.reference !== J.reference && (J.error = J.error || "URI is not a " + U.reference + " reference.");
|
|
5881
5881
|
const tt = m(U.scheme || J.scheme);
|
|
5882
|
-
if (P || (
|
|
5882
|
+
if (P || (q = Se(J, U, tt, ie)), C.indexOf("%") !== -1 && J.host !== void 0 && !P) {
|
|
5883
5883
|
let $e = ie ? J.host : i(J.host, !0);
|
|
5884
5884
|
ie || ($e = i($e.toLowerCase())), J.host = ie || U.scheme !== "null" ? d($e, ie) : $e;
|
|
5885
5885
|
}
|
|
5886
5886
|
(!tt || tt && !tt.skipNormalize) && (J.path && (J.path = o(J.path)), J.query && (J.query = a(J.query)), J.fragment && (J.fragment = a(J.fragment))), tt && tt.parse && (tt.parse(J, U), tt === p.urn && J.nid === void 0 && (D = !0));
|
|
5887
5887
|
} else
|
|
5888
5888
|
J.error = J.error || "URI can not be parsed.";
|
|
5889
|
-
return { parsed: J, malformedAuthorityOrPort: de, malformedPercentEncoding: Ne, malformedSchemeSpecific: D, malformedHost:
|
|
5889
|
+
return { parsed: J, malformedAuthorityOrPort: de, malformedPercentEncoding: Ne, malformedSchemeSpecific: D, malformedHost: q, malformedScheme: Y };
|
|
5890
5890
|
}
|
|
5891
5891
|
function te(C, $) {
|
|
5892
5892
|
return ne(C, $).parsed;
|
|
5893
5893
|
}
|
|
5894
5894
|
function R(C, $) {
|
|
5895
|
-
return
|
|
5895
|
+
return B(C, $).normalized;
|
|
5896
5896
|
}
|
|
5897
|
-
function
|
|
5898
|
-
const { parsed: U, malformedAuthorityOrPort: J, malformedPercentEncoding: de, malformedSchemeSpecific: Ne, malformedHost: D, malformedScheme:
|
|
5897
|
+
function B(C, $) {
|
|
5898
|
+
const { parsed: U, malformedAuthorityOrPort: J, malformedPercentEncoding: de, malformedSchemeSpecific: Ne, malformedHost: D, malformedScheme: q } = ne(C, $);
|
|
5899
5899
|
return {
|
|
5900
|
-
normalized: J || de || Ne || D ||
|
|
5900
|
+
normalized: J || de || Ne || D || q ? C : N(U, $),
|
|
5901
5901
|
malformedAuthorityOrPort: J,
|
|
5902
5902
|
malformedPercentEncoding: de,
|
|
5903
5903
|
malformedSchemeSpecific: Ne,
|
|
5904
5904
|
malformedHost: D,
|
|
5905
|
-
malformedScheme:
|
|
5905
|
+
malformedScheme: q
|
|
5906
5906
|
};
|
|
5907
5907
|
}
|
|
5908
5908
|
function _(C, $) {
|
|
@@ -5914,8 +5914,8 @@ function l9() {
|
|
|
5914
5914
|
} catch {
|
|
5915
5915
|
return;
|
|
5916
5916
|
}
|
|
5917
|
-
const { normalized: J, malformedAuthorityOrPort: de, malformedPercentEncoding: Ne, malformedSchemeSpecific: D, malformedHost:
|
|
5918
|
-
return de || Ne || D ||
|
|
5917
|
+
const { normalized: J, malformedAuthorityOrPort: de, malformedPercentEncoding: Ne, malformedSchemeSpecific: D, malformedHost: q, malformedScheme: P } = B(U, $);
|
|
5918
|
+
return de || Ne || D || q || P ? void 0 : J;
|
|
5919
5919
|
}
|
|
5920
5920
|
const S = {
|
|
5921
5921
|
SCHEMES: p,
|
|
@@ -5995,13 +5995,13 @@ function u9() {
|
|
|
5995
5995
|
unicode: '"minLength"/"maxLength" account for unicode characters by default.'
|
|
5996
5996
|
}, x = 200;
|
|
5997
5997
|
function w(te) {
|
|
5998
|
-
var R,
|
|
5999
|
-
const I = te.strict, K = (R = te.code) === null || R === void 0 ? void 0 : R.optimize, X = K === !0 || K === void 0 ? 1 : K || 0, ue = (_ = (
|
|
5998
|
+
var R, B, _, S, C, $, U, J, de, Ne, D, q, P, Y, ie, Ae, me, re, ke, tt, $e, it, Ye, Le, pt;
|
|
5999
|
+
const I = te.strict, K = (R = te.code) === null || R === void 0 ? void 0 : R.optimize, X = K === !0 || K === void 0 ? 1 : K || 0, ue = (_ = (B = te.code) === null || B === void 0 ? void 0 : B.regExp) !== null && _ !== void 0 ? _ : p, xe = (S = te.uriResolver) !== null && S !== void 0 ? S : h.default;
|
|
6000
6000
|
return {
|
|
6001
6001
|
strictSchema: ($ = (C = te.strictSchema) !== null && C !== void 0 ? C : I) !== null && $ !== void 0 ? $ : !0,
|
|
6002
6002
|
strictNumbers: (J = (U = te.strictNumbers) !== null && U !== void 0 ? U : I) !== null && J !== void 0 ? J : !0,
|
|
6003
6003
|
strictTypes: (Ne = (de = te.strictTypes) !== null && de !== void 0 ? de : I) !== null && Ne !== void 0 ? Ne : "log",
|
|
6004
|
-
strictTuples: (
|
|
6004
|
+
strictTuples: (q = (D = te.strictTuples) !== null && D !== void 0 ? D : I) !== null && q !== void 0 ? q : "log",
|
|
6005
6005
|
strictRequired: (Y = (P = te.strictRequired) !== null && P !== void 0 ? P : I) !== null && Y !== void 0 ? Y : !1,
|
|
6006
6006
|
code: te.code ? { ...te.code, optimize: X, regExp: ue } : { optimize: X, regExp: ue },
|
|
6007
6007
|
loopRequired: (ie = te.loopRequired) !== null && ie !== void 0 ? ie : x,
|
|
@@ -6021,8 +6021,8 @@ function u9() {
|
|
|
6021
6021
|
class k {
|
|
6022
6022
|
constructor(R = {}) {
|
|
6023
6023
|
this.schemas = {}, this.refs = {}, this.formats = /* @__PURE__ */ Object.create(null), this._compilations = /* @__PURE__ */ new Set(), this._loading = {}, this._cache = /* @__PURE__ */ new Map(), R = this.opts = { ...R, ...w(R) };
|
|
6024
|
-
const { es5:
|
|
6025
|
-
this.scope = new a.ValueScope({ scope: {}, prefixes: g, es5:
|
|
6024
|
+
const { es5: B, lines: _ } = this.opts.code;
|
|
6025
|
+
this.scope = new a.ValueScope({ scope: {}, prefixes: g, es5: B, lines: _ }), this.logger = V(R.logger);
|
|
6026
6026
|
const S = R.validateFormats;
|
|
6027
6027
|
R.validateFormats = !1, this.RULES = (0, o.getRules)(), b.call(this, v, R, "NOT SUPPORTED"), b.call(this, y, R, "DEPRECATED", "warn"), this._metaOpts = z.call(this), R.formats && N.call(this), this._addVocabularies(), this._addDefaultMetaSchema(), R.keywords && M.call(this, R.keywords), typeof R.meta == "object" && this.addMetaSchema(R.meta), O.call(this), R.validateFormats = S;
|
|
6028
6028
|
}
|
|
@@ -6030,37 +6030,37 @@ function u9() {
|
|
|
6030
6030
|
this.addKeyword("$async");
|
|
6031
6031
|
}
|
|
6032
6032
|
_addDefaultMetaSchema() {
|
|
6033
|
-
const { $data: R, meta:
|
|
6033
|
+
const { $data: R, meta: B, schemaId: _ } = this.opts;
|
|
6034
6034
|
let S = f;
|
|
6035
|
-
_ === "id" && (S = { ...f }, S.id = S.$id, delete S.$id),
|
|
6035
|
+
_ === "id" && (S = { ...f }, S.id = S.$id, delete S.$id), B && R && this.addMetaSchema(S, S[_], !1);
|
|
6036
6036
|
}
|
|
6037
6037
|
defaultMeta() {
|
|
6038
|
-
const { meta: R, schemaId:
|
|
6039
|
-
return this.opts.defaultMeta = typeof R == "object" ? R[
|
|
6038
|
+
const { meta: R, schemaId: B } = this.opts;
|
|
6039
|
+
return this.opts.defaultMeta = typeof R == "object" ? R[B] || R : void 0;
|
|
6040
6040
|
}
|
|
6041
|
-
validate(R,
|
|
6041
|
+
validate(R, B) {
|
|
6042
6042
|
let _;
|
|
6043
6043
|
if (typeof R == "string") {
|
|
6044
6044
|
if (_ = this.getSchema(R), !_)
|
|
6045
6045
|
throw new Error(`no schema with key or ref "${R}"`);
|
|
6046
6046
|
} else
|
|
6047
6047
|
_ = this.compile(R);
|
|
6048
|
-
const S = _(
|
|
6048
|
+
const S = _(B);
|
|
6049
6049
|
return "$async" in _ || (this.errors = _.errors), S;
|
|
6050
6050
|
}
|
|
6051
|
-
compile(R,
|
|
6052
|
-
const _ = this._addSchema(R,
|
|
6051
|
+
compile(R, B) {
|
|
6052
|
+
const _ = this._addSchema(R, B);
|
|
6053
6053
|
return _.validate || this._compileSchemaEnv(_);
|
|
6054
6054
|
}
|
|
6055
|
-
compileAsync(R,
|
|
6055
|
+
compileAsync(R, B) {
|
|
6056
6056
|
if (typeof this.opts.loadSchema != "function")
|
|
6057
6057
|
throw new Error("options.loadSchema should be a function");
|
|
6058
6058
|
const { loadSchema: _ } = this.opts;
|
|
6059
|
-
return S.call(this, R,
|
|
6059
|
+
return S.call(this, R, B);
|
|
6060
6060
|
async function S(Ne, D) {
|
|
6061
6061
|
await C.call(this, Ne.$schema);
|
|
6062
|
-
const
|
|
6063
|
-
return
|
|
6062
|
+
const q = this._addSchema(Ne, D);
|
|
6063
|
+
return q.validate || $.call(this, q);
|
|
6064
6064
|
}
|
|
6065
6065
|
async function C(Ne) {
|
|
6066
6066
|
Ne && !this.getSchema(Ne) && await S.call(this, { $ref: Ne }, !0);
|
|
@@ -6080,7 +6080,7 @@ function u9() {
|
|
|
6080
6080
|
}
|
|
6081
6081
|
async function J(Ne) {
|
|
6082
6082
|
const D = await de.call(this, Ne);
|
|
6083
|
-
this.refs[Ne] || await C.call(this, D.$schema), this.refs[Ne] || this.addSchema(D, Ne,
|
|
6083
|
+
this.refs[Ne] || await C.call(this, D.$schema), this.refs[Ne] || this.addSchema(D, Ne, B);
|
|
6084
6084
|
}
|
|
6085
6085
|
async function de(Ne) {
|
|
6086
6086
|
const D = this._loading[Ne];
|
|
@@ -6094,7 +6094,7 @@ function u9() {
|
|
|
6094
6094
|
}
|
|
6095
6095
|
}
|
|
6096
6096
|
// Adds schema to the instance
|
|
6097
|
-
addSchema(R,
|
|
6097
|
+
addSchema(R, B, _, S = this.opts.validateSchema) {
|
|
6098
6098
|
if (Array.isArray(R)) {
|
|
6099
6099
|
for (const $ of R)
|
|
6100
6100
|
this.addSchema($, void 0, _, S);
|
|
@@ -6106,15 +6106,15 @@ function u9() {
|
|
|
6106
6106
|
if (C = R[$], C !== void 0 && typeof C != "string")
|
|
6107
6107
|
throw new Error(`schema ${$} must be string`);
|
|
6108
6108
|
}
|
|
6109
|
-
return
|
|
6109
|
+
return B = (0, l.normalizeId)(B || C), this._checkUnique(B), this.schemas[B] = this._addSchema(R, _, B, S, !0), this;
|
|
6110
6110
|
}
|
|
6111
6111
|
// Add schema that will be used to validate other schemas
|
|
6112
6112
|
// options in META_IGNORE_OPTIONS are alway set to false
|
|
6113
|
-
addMetaSchema(R,
|
|
6114
|
-
return this.addSchema(R,
|
|
6113
|
+
addMetaSchema(R, B, _ = this.opts.validateSchema) {
|
|
6114
|
+
return this.addSchema(R, B, !0, _), this;
|
|
6115
6115
|
}
|
|
6116
6116
|
// Validate schema against its meta-schema
|
|
6117
|
-
validateSchema(R,
|
|
6117
|
+
validateSchema(R, B) {
|
|
6118
6118
|
if (typeof R == "boolean")
|
|
6119
6119
|
return !0;
|
|
6120
6120
|
let _;
|
|
@@ -6123,7 +6123,7 @@ function u9() {
|
|
|
6123
6123
|
if (_ = _ || this.opts.defaultMeta || this.defaultMeta(), !_)
|
|
6124
6124
|
return this.logger.warn("meta-schema not available"), this.errors = null, !0;
|
|
6125
6125
|
const S = this.validate(_, R);
|
|
6126
|
-
if (!S &&
|
|
6126
|
+
if (!S && B) {
|
|
6127
6127
|
const C = "schema is invalid: " + this.errorsText();
|
|
6128
6128
|
if (this.opts.validateSchema === "log")
|
|
6129
6129
|
this.logger.error(C);
|
|
@@ -6135,16 +6135,16 @@ function u9() {
|
|
|
6135
6135
|
// Get compiled schema by `key` or `ref`.
|
|
6136
6136
|
// (`key` that was passed to `addSchema` or full schema reference - `schema.$id` or resolved id)
|
|
6137
6137
|
getSchema(R) {
|
|
6138
|
-
let
|
|
6139
|
-
for (; typeof (
|
|
6140
|
-
R =
|
|
6141
|
-
if (
|
|
6138
|
+
let B;
|
|
6139
|
+
for (; typeof (B = j.call(this, R)) == "string"; )
|
|
6140
|
+
R = B;
|
|
6141
|
+
if (B === void 0) {
|
|
6142
6142
|
const { schemaId: _ } = this.opts, S = new s.SchemaEnv({ schema: {}, schemaId: _ });
|
|
6143
|
-
if (
|
|
6143
|
+
if (B = s.resolveSchema.call(this, S, R), !B)
|
|
6144
6144
|
return;
|
|
6145
|
-
this.refs[R] =
|
|
6145
|
+
this.refs[R] = B;
|
|
6146
6146
|
}
|
|
6147
|
-
return
|
|
6147
|
+
return B.validate || this._compileSchemaEnv(B);
|
|
6148
6148
|
}
|
|
6149
6149
|
// Remove cached schema(s).
|
|
6150
6150
|
// If no parameter is passed all schemas but meta-schemas are removed.
|
|
@@ -6157,12 +6157,12 @@ function u9() {
|
|
|
6157
6157
|
case "undefined":
|
|
6158
6158
|
return this._removeAllSchemas(this.schemas), this._removeAllSchemas(this.refs), this._cache.clear(), this;
|
|
6159
6159
|
case "string": {
|
|
6160
|
-
const
|
|
6161
|
-
return typeof
|
|
6160
|
+
const B = j.call(this, R);
|
|
6161
|
+
return typeof B == "object" && this._cache.delete(B.schema), delete this.schemas[R], delete this.refs[R], this;
|
|
6162
6162
|
}
|
|
6163
6163
|
case "object": {
|
|
6164
|
-
const
|
|
6165
|
-
this._cache.delete(
|
|
6164
|
+
const B = R;
|
|
6165
|
+
this._cache.delete(B);
|
|
6166
6166
|
let _ = R[this.opts.schemaId];
|
|
6167
6167
|
return _ && (_ = (0, l.normalizeId)(_), delete this.schemas[_], delete this.refs[_]), this;
|
|
6168
6168
|
}
|
|
@@ -6172,54 +6172,54 @@ function u9() {
|
|
|
6172
6172
|
}
|
|
6173
6173
|
// add "vocabulary" - a collection of keywords
|
|
6174
6174
|
addVocabulary(R) {
|
|
6175
|
-
for (const
|
|
6176
|
-
this.addKeyword(
|
|
6175
|
+
for (const B of R)
|
|
6176
|
+
this.addKeyword(B);
|
|
6177
6177
|
return this;
|
|
6178
6178
|
}
|
|
6179
|
-
addKeyword(R,
|
|
6179
|
+
addKeyword(R, B) {
|
|
6180
6180
|
let _;
|
|
6181
6181
|
if (typeof R == "string")
|
|
6182
|
-
_ = R, typeof
|
|
6183
|
-
else if (typeof R == "object" &&
|
|
6184
|
-
if (
|
|
6182
|
+
_ = R, typeof B == "object" && (this.logger.warn("these parameters are deprecated, see docs for addKeyword"), B.keyword = _);
|
|
6183
|
+
else if (typeof R == "object" && B === void 0) {
|
|
6184
|
+
if (B = R, _ = B.keyword, Array.isArray(_) && !_.length)
|
|
6185
6185
|
throw new Error("addKeywords: keyword must be string or non-empty array");
|
|
6186
6186
|
} else
|
|
6187
6187
|
throw new Error("invalid addKeywords parameters");
|
|
6188
|
-
if (Q.call(this, _,
|
|
6188
|
+
if (Q.call(this, _, B), !B)
|
|
6189
6189
|
return (0, d.eachItem)(_, (C) => pe.call(this, C)), this;
|
|
6190
|
-
ge.call(this,
|
|
6190
|
+
ge.call(this, B);
|
|
6191
6191
|
const S = {
|
|
6192
|
-
...
|
|
6193
|
-
type: (0, u.getJSONTypes)(
|
|
6194
|
-
schemaType: (0, u.getJSONTypes)(
|
|
6192
|
+
...B,
|
|
6193
|
+
type: (0, u.getJSONTypes)(B.type),
|
|
6194
|
+
schemaType: (0, u.getJSONTypes)(B.schemaType)
|
|
6195
6195
|
};
|
|
6196
6196
|
return (0, d.eachItem)(_, S.type.length === 0 ? (C) => pe.call(this, C, S) : (C) => S.type.forEach(($) => pe.call(this, C, S, $))), this;
|
|
6197
6197
|
}
|
|
6198
6198
|
getKeyword(R) {
|
|
6199
|
-
const
|
|
6200
|
-
return typeof
|
|
6199
|
+
const B = this.RULES.all[R];
|
|
6200
|
+
return typeof B == "object" ? B.definition : !!B;
|
|
6201
6201
|
}
|
|
6202
6202
|
// Remove keyword
|
|
6203
6203
|
removeKeyword(R) {
|
|
6204
|
-
const { RULES:
|
|
6205
|
-
delete
|
|
6206
|
-
for (const _ of
|
|
6204
|
+
const { RULES: B } = this;
|
|
6205
|
+
delete B.keywords[R], delete B.all[R];
|
|
6206
|
+
for (const _ of B.rules) {
|
|
6207
6207
|
const S = _.rules.findIndex((C) => C.keyword === R);
|
|
6208
6208
|
S >= 0 && _.rules.splice(S, 1);
|
|
6209
6209
|
}
|
|
6210
6210
|
return this;
|
|
6211
6211
|
}
|
|
6212
6212
|
// Add format
|
|
6213
|
-
addFormat(R,
|
|
6214
|
-
return typeof
|
|
6213
|
+
addFormat(R, B) {
|
|
6214
|
+
return typeof B == "string" && (B = new RegExp(B)), this.formats[R] = B, this;
|
|
6215
6215
|
}
|
|
6216
|
-
errorsText(R = this.errors, { separator:
|
|
6217
|
-
return !R || R.length === 0 ? "No errors" : R.map((S) => `${_}${S.instancePath} ${S.message}`).reduce((S, C) => S +
|
|
6216
|
+
errorsText(R = this.errors, { separator: B = ", ", dataVar: _ = "data" } = {}) {
|
|
6217
|
+
return !R || R.length === 0 ? "No errors" : R.map((S) => `${_}${S.instancePath} ${S.message}`).reduce((S, C) => S + B + C);
|
|
6218
6218
|
}
|
|
6219
|
-
$dataMetaSchema(R,
|
|
6219
|
+
$dataMetaSchema(R, B) {
|
|
6220
6220
|
const _ = this.RULES.all;
|
|
6221
6221
|
R = JSON.parse(JSON.stringify(R));
|
|
6222
|
-
for (const S of
|
|
6222
|
+
for (const S of B) {
|
|
6223
6223
|
const C = S.split("/").slice(1);
|
|
6224
6224
|
let $ = R;
|
|
6225
6225
|
for (const U of C)
|
|
@@ -6234,13 +6234,13 @@ function u9() {
|
|
|
6234
6234
|
}
|
|
6235
6235
|
return R;
|
|
6236
6236
|
}
|
|
6237
|
-
_removeAllSchemas(R,
|
|
6237
|
+
_removeAllSchemas(R, B) {
|
|
6238
6238
|
for (const _ in R) {
|
|
6239
6239
|
const S = R[_];
|
|
6240
|
-
(!
|
|
6240
|
+
(!B || B.test(_)) && (typeof S == "string" ? delete R[_] : S && !S.meta && (this._cache.delete(S.schema), delete R[_]));
|
|
6241
6241
|
}
|
|
6242
6242
|
}
|
|
6243
|
-
_addSchema(R,
|
|
6243
|
+
_addSchema(R, B, _, S = this.opts.validateSchema, C = this.opts.addUsedSchema) {
|
|
6244
6244
|
let $;
|
|
6245
6245
|
const { schemaId: U } = this.opts;
|
|
6246
6246
|
if (typeof R == "object")
|
|
@@ -6256,7 +6256,7 @@ function u9() {
|
|
|
6256
6256
|
return J;
|
|
6257
6257
|
_ = (0, l.normalizeId)($ || _);
|
|
6258
6258
|
const de = l.getSchemaRefs.call(this, R, _);
|
|
6259
|
-
return J = new s.SchemaEnv({ schema: R, schemaId: U, meta:
|
|
6259
|
+
return J = new s.SchemaEnv({ schema: R, schemaId: U, meta: B, baseId: _, localRefs: de }), this._cache.set(J.schema, J), C && !_.startsWith("#") && (_ && this._checkUnique(_), this.refs[_] = J), S && this.validateSchema(R, !0), J;
|
|
6260
6260
|
}
|
|
6261
6261
|
_checkUnique(R) {
|
|
6262
6262
|
if (this.schemas[R] || this.refs[R])
|
|
@@ -6268,20 +6268,20 @@ function u9() {
|
|
|
6268
6268
|
return R.validate;
|
|
6269
6269
|
}
|
|
6270
6270
|
_compileMetaSchema(R) {
|
|
6271
|
-
const
|
|
6271
|
+
const B = this.opts;
|
|
6272
6272
|
this.opts = this._metaOpts;
|
|
6273
6273
|
try {
|
|
6274
6274
|
s.compileSchema.call(this, R);
|
|
6275
6275
|
} finally {
|
|
6276
|
-
this.opts =
|
|
6276
|
+
this.opts = B;
|
|
6277
6277
|
}
|
|
6278
6278
|
}
|
|
6279
6279
|
}
|
|
6280
6280
|
k.ValidationError = r.default, k.MissingRefError = i.default, t.default = k;
|
|
6281
|
-
function b(te, R,
|
|
6281
|
+
function b(te, R, B, _ = "error") {
|
|
6282
6282
|
for (const S in te) {
|
|
6283
6283
|
const C = S;
|
|
6284
|
-
C in R && this.logger[_](`${
|
|
6284
|
+
C in R && this.logger[_](`${B}: option ${S}. ${te[C]}`);
|
|
6285
6285
|
}
|
|
6286
6286
|
}
|
|
6287
6287
|
function j(te) {
|
|
@@ -6309,8 +6309,8 @@ function u9() {
|
|
|
6309
6309
|
}
|
|
6310
6310
|
this.logger.warn("keywords option as map is deprecated, pass array");
|
|
6311
6311
|
for (const R in te) {
|
|
6312
|
-
const
|
|
6313
|
-
|
|
6312
|
+
const B = te[R];
|
|
6313
|
+
B.keyword || (B.keyword = R), this.addKeyword(B);
|
|
6314
6314
|
}
|
|
6315
6315
|
}
|
|
6316
6316
|
function z() {
|
|
@@ -6334,23 +6334,23 @@ function u9() {
|
|
|
6334
6334
|
}
|
|
6335
6335
|
const G = /^[a-z_$][a-z0-9_$:-]*$/i;
|
|
6336
6336
|
function Q(te, R) {
|
|
6337
|
-
const { RULES:
|
|
6337
|
+
const { RULES: B } = this;
|
|
6338
6338
|
if ((0, d.eachItem)(te, (_) => {
|
|
6339
|
-
if (
|
|
6339
|
+
if (B.keywords[_])
|
|
6340
6340
|
throw new Error(`Keyword ${_} is already defined`);
|
|
6341
6341
|
if (!G.test(_))
|
|
6342
6342
|
throw new Error(`Keyword ${_} has invalid name`);
|
|
6343
6343
|
}), !!R && R.$data && !("code" in R || "validate" in R))
|
|
6344
6344
|
throw new Error('$data keyword must have "code" or "validate" function');
|
|
6345
6345
|
}
|
|
6346
|
-
function pe(te, R,
|
|
6346
|
+
function pe(te, R, B) {
|
|
6347
6347
|
var _;
|
|
6348
6348
|
const S = R?.post;
|
|
6349
|
-
if (
|
|
6349
|
+
if (B && S)
|
|
6350
6350
|
throw new Error('keyword with "post" flag cannot have "type"');
|
|
6351
6351
|
const { RULES: C } = this;
|
|
6352
|
-
let $ = S ? C.post : C.rules.find(({ type: J }) => J ===
|
|
6353
|
-
if ($ || ($ = { type:
|
|
6352
|
+
let $ = S ? C.post : C.rules.find(({ type: J }) => J === B);
|
|
6353
|
+
if ($ || ($ = { type: B, rules: [] }, C.rules.push($)), C.keywords[te] = !0, !R)
|
|
6354
6354
|
return;
|
|
6355
6355
|
const U = {
|
|
6356
6356
|
keyword: te,
|
|
@@ -6360,11 +6360,11 @@ function u9() {
|
|
|
6360
6360
|
schemaType: (0, u.getJSONTypes)(R.schemaType)
|
|
6361
6361
|
}
|
|
6362
6362
|
};
|
|
6363
|
-
R.before ?
|
|
6363
|
+
R.before ? Se.call(this, $, U, R.before) : $.rules.push(U), C.all[te] = U, (_ = R.implements) === null || _ === void 0 || _.forEach((J) => this.addKeyword(J));
|
|
6364
6364
|
}
|
|
6365
|
-
function
|
|
6366
|
-
const _ = te.rules.findIndex((S) => S.keyword ===
|
|
6367
|
-
_ >= 0 ? te.rules.splice(_, 0, R) : (te.rules.push(R), this.logger.warn(`rule ${
|
|
6365
|
+
function Se(te, R, B) {
|
|
6366
|
+
const _ = te.rules.findIndex((S) => S.keyword === B);
|
|
6367
|
+
_ >= 0 ? te.rules.splice(_, 0, R) : (te.rules.push(R), this.logger.warn(`rule ${B} is not defined`));
|
|
6368
6368
|
}
|
|
6369
6369
|
function ge(te) {
|
|
6370
6370
|
let { metaSchema: R } = te;
|
|
@@ -7763,7 +7763,7 @@ function nN() {
|
|
|
7763
7763
|
7: "null",
|
|
7764
7764
|
8: "Array<number>",
|
|
7765
7765
|
9: "Array<string>"
|
|
7766
|
-
}, w = "EOF", k = "UnquotedIdentifier", b = "QuotedIdentifier", j = "Rbracket", O = "Rparen", N = "Comma", M = "Colon", z = "Rbrace", H = "Number", V = "Current", G = "Expref", Q = "Pipe", pe = "Or",
|
|
7766
|
+
}, w = "EOF", k = "UnquotedIdentifier", b = "QuotedIdentifier", j = "Rbracket", O = "Rparen", N = "Comma", M = "Colon", z = "Rbrace", H = "Number", V = "Current", G = "Expref", Q = "Pipe", pe = "Or", Se = "And", ge = "EQ", le = "GT", ne = "LT", te = "GTE", R = "LTE", B = "NE", _ = "Flatten", S = "Star", C = "Filter", $ = "Dot", U = "Not", J = "Lbrace", de = "Lbracket", Ne = "Lparen", D = "Literal", q = {
|
|
7767
7767
|
".": $,
|
|
7768
7768
|
"*": S,
|
|
7769
7769
|
",": N,
|
|
@@ -7806,9 +7806,9 @@ function nN() {
|
|
|
7806
7806
|
value: ue,
|
|
7807
7807
|
start: X
|
|
7808
7808
|
});
|
|
7809
|
-
else if (
|
|
7809
|
+
else if (q[I[this._current]] !== void 0)
|
|
7810
7810
|
K.push({
|
|
7811
|
-
type:
|
|
7811
|
+
type: q[I[this._current]],
|
|
7812
7812
|
value: I[this._current],
|
|
7813
7813
|
start: this._current
|
|
7814
7814
|
}), this._current++;
|
|
@@ -7841,7 +7841,7 @@ function nN() {
|
|
|
7841
7841
|
else if (Y[I[this._current]] !== void 0)
|
|
7842
7842
|
this._current++;
|
|
7843
7843
|
else if (I[this._current] === "&")
|
|
7844
|
-
X = this._current, this._current++, I[this._current] === "&" ? (this._current++, K.push({ type:
|
|
7844
|
+
X = this._current, this._current++, I[this._current] === "&" ? (this._current++, K.push({ type: Se, value: "&&", start: X })) : K.push({ type: G, value: "&", start: X });
|
|
7845
7845
|
else if (I[this._current] === "|")
|
|
7846
7846
|
X = this._current, this._current++, I[this._current] === "|" ? (this._current++, K.push({ type: pe, value: "||", start: X })) : K.push({ type: Q, value: "|", start: X });
|
|
7847
7847
|
else {
|
|
@@ -7891,7 +7891,7 @@ function nN() {
|
|
|
7891
7891
|
_consumeOperator: function(I) {
|
|
7892
7892
|
var K = this._current, X = I[K];
|
|
7893
7893
|
if (this._current++, X === "!")
|
|
7894
|
-
return I[this._current] === "=" ? (this._current++, { type:
|
|
7894
|
+
return I[this._current] === "=" ? (this._current++, { type: B, value: "!=", start: K }) : { type: U, value: "!", start: K };
|
|
7895
7895
|
if (X === "<")
|
|
7896
7896
|
return I[this._current] === "=" ? (this._current++, { type: R, value: "<=", start: K }) : { type: ne, value: "<", start: K };
|
|
7897
7897
|
if (X === ">")
|
|
@@ -7927,7 +7927,7 @@ function nN() {
|
|
|
7927
7927
|
}
|
|
7928
7928
|
};
|
|
7929
7929
|
var ke = {};
|
|
7930
|
-
ke[w] = 0, ke[k] = 0, ke[b] = 0, ke[j] = 0, ke[O] = 0, ke[N] = 0, ke[z] = 0, ke[H] = 0, ke[V] = 0, ke[G] = 0, ke[Q] = 1, ke[pe] = 2, ke[
|
|
7930
|
+
ke[w] = 0, ke[k] = 0, ke[b] = 0, ke[j] = 0, ke[O] = 0, ke[N] = 0, ke[z] = 0, ke[H] = 0, ke[V] = 0, ke[G] = 0, ke[Q] = 1, ke[pe] = 2, ke[Se] = 3, ke[ge] = 5, ke[le] = 5, ke[ne] = 5, ke[te] = 5, ke[R] = 5, ke[B] = 5, ke[_] = 9, ke[S] = 20, ke[C] = 21, ke[$] = 40, ke[U] = 45, ke[J] = 50, ke[de] = 55, ke[Ne] = 60;
|
|
7931
7931
|
function tt() {
|
|
7932
7932
|
}
|
|
7933
7933
|
tt.prototype = {
|
|
@@ -8011,7 +8011,7 @@ function nN() {
|
|
|
8011
8011
|
return X = this.expression(ke.Pipe), { type: Q, children: [K, X] };
|
|
8012
8012
|
case pe:
|
|
8013
8013
|
return X = this.expression(ke.Or), { type: "OrExpression", children: [K, X] };
|
|
8014
|
-
case
|
|
8014
|
+
case Se:
|
|
8015
8015
|
return X = this.expression(ke.And), { type: "AndExpression", children: [K, X] };
|
|
8016
8016
|
case Ne:
|
|
8017
8017
|
for (var xe = K.name, ve = [], Ie, qe; this._lookahead(0) !== O; )
|
|
@@ -8024,7 +8024,7 @@ function nN() {
|
|
|
8024
8024
|
var Qe = { type: _, children: [K] }, je = this._parseProjectionRHS(ke.Flatten);
|
|
8025
8025
|
return { type: "Projection", children: [Qe, je] };
|
|
8026
8026
|
case ge:
|
|
8027
|
-
case
|
|
8027
|
+
case B:
|
|
8028
8028
|
case le:
|
|
8029
8029
|
case te:
|
|
8030
8030
|
case ne:
|
|
@@ -8197,7 +8197,7 @@ function nN() {
|
|
|
8197
8197
|
case ge:
|
|
8198
8198
|
xe = i(ve, Ie);
|
|
8199
8199
|
break;
|
|
8200
|
-
case
|
|
8200
|
+
case B:
|
|
8201
8201
|
xe = !i(ve, Ie);
|
|
8202
8202
|
break;
|
|
8203
8203
|
case le:
|
|
@@ -18338,22 +18338,22 @@ function bI(t, e, n) {
|
|
|
18338
18338
|
}
|
|
18339
18339
|
function w(b, j, O) {
|
|
18340
18340
|
let N = 1e9, M = -1e9, z = [];
|
|
18341
|
-
function H(Q, pe,
|
|
18342
|
-
let ne = t.coordsAtPos(Q, Q == O.to ? -2 : 2), te = t.coordsAtPos(
|
|
18341
|
+
function H(Q, pe, Se, ge, le) {
|
|
18342
|
+
let ne = t.coordsAtPos(Q, Q == O.to ? -2 : 2), te = t.coordsAtPos(Se, Se == O.from ? 2 : -2);
|
|
18343
18343
|
!ne || !te || (N = Math.min(ne.top, te.top, N), M = Math.max(ne.bottom, te.bottom, M), le == mr.LTR ? z.push(o && pe ? f : ne.left, o && ge ? h : te.right) : z.push(!o && ge ? f : te.left, !o && pe ? h : ne.right));
|
|
18344
18344
|
}
|
|
18345
18345
|
let V = b ?? O.from, G = j ?? O.to;
|
|
18346
18346
|
for (let Q of t.visibleRanges)
|
|
18347
18347
|
if (Q.to > V && Q.from < G)
|
|
18348
|
-
for (let pe = Math.max(Q.from, V),
|
|
18348
|
+
for (let pe = Math.max(Q.from, V), Se = Math.min(Q.to, G); ; ) {
|
|
18349
18349
|
let ge = t.state.doc.lineAt(pe);
|
|
18350
18350
|
for (let le of t.bidiSpans(ge)) {
|
|
18351
18351
|
let ne = le.from + ge.from, te = le.to + ge.from;
|
|
18352
|
-
if (ne >=
|
|
18352
|
+
if (ne >= Se)
|
|
18353
18353
|
break;
|
|
18354
|
-
te > pe && H(Math.max(ne, pe), b == null && ne <= V, Math.min(te,
|
|
18354
|
+
te > pe && H(Math.max(ne, pe), b == null && ne <= V, Math.min(te, Se), j == null && te >= G, le.dir);
|
|
18355
18355
|
}
|
|
18356
|
-
if (pe = ge.to + 1, pe >=
|
|
18356
|
+
if (pe = ge.to + 1, pe >= Se)
|
|
18357
18357
|
break;
|
|
18358
18358
|
}
|
|
18359
18359
|
return z.length == 0 && H(V, b == null, G, j == null, t.textDirection), { top: N, bottom: M, horizontal: z };
|
|
@@ -20962,7 +20962,7 @@ function CD(t) {
|
|
|
20962
20962
|
var e;
|
|
20963
20963
|
let { buffer: n, nodeSet: r, maxBufferLength: i = z3, reused: o = [], minRepeatType: s = r.types.length } = t, a = Array.isArray(n) ? new Ey(n, n.length) : n, l = r.types, u = 0, d = 0;
|
|
20964
20964
|
function f(b, j, O, N, M, z) {
|
|
20965
|
-
let { id: H, start: V, end: G, size: Q } = a, pe = d,
|
|
20965
|
+
let { id: H, start: V, end: G, size: Q } = a, pe = d, Se = u;
|
|
20966
20966
|
if (Q < 0)
|
|
20967
20967
|
if (a.next(), Q == -1) {
|
|
20968
20968
|
let R = o[H];
|
|
@@ -20978,21 +20978,21 @@ function CD(t) {
|
|
|
20978
20978
|
throw new RangeError(`Unrecognized record size: ${Q}`);
|
|
20979
20979
|
let ge = l[H], le, ne, te = V - b;
|
|
20980
20980
|
if (G - V <= i && (ne = v(a.pos - j, M))) {
|
|
20981
|
-
let R = new Uint16Array(ne.size - ne.skip),
|
|
20982
|
-
for (; a.pos >
|
|
20981
|
+
let R = new Uint16Array(ne.size - ne.skip), B = a.pos - ne.size, _ = R.length;
|
|
20982
|
+
for (; a.pos > B; )
|
|
20983
20983
|
_ = y(ne.start, R, _);
|
|
20984
20984
|
le = new bl(R, G - ne.start, r), te = ne.start - b;
|
|
20985
20985
|
} else {
|
|
20986
20986
|
let R = a.pos - Q;
|
|
20987
20987
|
a.next();
|
|
20988
|
-
let
|
|
20988
|
+
let B = [], _ = [], S = H >= s ? H : -1, C = 0, $ = G, U = pe;
|
|
20989
20989
|
for (; a.pos > R; )
|
|
20990
|
-
S >= 0 && a.id == S && a.size >= 0 ? (a.end <= $ - i && (m(
|
|
20991
|
-
if (S >= 0 && C > 0 && C <
|
|
20992
|
-
let J = p(ge,
|
|
20993
|
-
le = My(ge,
|
|
20990
|
+
S >= 0 && a.id == S && a.size >= 0 ? (a.end <= $ - i && (m(B, _, V, C, a.end, $, S, U, Se), C = B.length, $ = a.end, U = d), a.next()) : z > 2500 ? h(V, R, B, _) : (S >= 0 && a.size == -1 && o[a.id].type == r.types[S] && (C < B.length && m(B, _, V, C, a.end, $, S, U, Se), C = B.length + 1, $ = a.start, U = d), f(V, R, B, _, S, z + 1));
|
|
20991
|
+
if (S >= 0 && C > 0 && C < B.length && m(B, _, V, C, V, $, S, U, Se), B.reverse(), _.reverse(), S > -1 && C > 0) {
|
|
20992
|
+
let J = p(ge, Se);
|
|
20993
|
+
le = My(ge, B, _, 0, B.length, 0, G - V, J, J);
|
|
20994
20994
|
} else
|
|
20995
|
-
le = g(ge,
|
|
20995
|
+
le = g(ge, B, _, G - V, pe - G, Se);
|
|
20996
20996
|
}
|
|
20997
20997
|
O.push(le), N.push(te);
|
|
20998
20998
|
}
|
|
@@ -21054,17 +21054,17 @@ function CD(t) {
|
|
|
21054
21054
|
let pe = O.pos - Q;
|
|
21055
21055
|
if (Q < 0 || pe < G || O.start < H)
|
|
21056
21056
|
break;
|
|
21057
|
-
let
|
|
21057
|
+
let Se = O.id >= s ? 4 : 0, ge = O.start;
|
|
21058
21058
|
for (O.next(); O.pos > pe; ) {
|
|
21059
21059
|
if (O.size < 0)
|
|
21060
21060
|
if (O.size == -3 || O.size == -4)
|
|
21061
|
-
|
|
21061
|
+
Se += 4;
|
|
21062
21062
|
else
|
|
21063
21063
|
break e;
|
|
21064
|
-
else O.id >= s && (
|
|
21064
|
+
else O.id >= s && (Se += 4);
|
|
21065
21065
|
O.next();
|
|
21066
21066
|
}
|
|
21067
|
-
M = ge, N += Q, z +=
|
|
21067
|
+
M = ge, N += Q, z += Se;
|
|
21068
21068
|
}
|
|
21069
21069
|
return (j < 0 || N == b) && (V.size = N, V.start = M, V.skip = z), V.size > 4 ? V : void 0;
|
|
21070
21070
|
}
|
|
@@ -25056,6 +25056,8 @@ class K7 {
|
|
|
25056
25056
|
let n = this.trees.length - 1;
|
|
25057
25057
|
if (n < 0)
|
|
25058
25058
|
return this.nextFragment(), null;
|
|
25059
|
+
if (e < this.safeFrom)
|
|
25060
|
+
return null;
|
|
25059
25061
|
let r = this.trees[n], i = this.index[n];
|
|
25060
25062
|
if (i == r.children.length) {
|
|
25061
25063
|
this.trees.pop(), this.start.pop(), this.index.pop();
|
|
@@ -25068,11 +25070,8 @@ class K7 {
|
|
|
25068
25070
|
let a = s > this.lastRepeatPos && o.type.id >= this.minRepeat;
|
|
25069
25071
|
if (s == e || a) {
|
|
25070
25072
|
let l = s + o.length, u;
|
|
25071
|
-
if (s >= this.safeFrom && l <= this.safeTo && (!(u = o.prop(Sn.lookAhead)) || l + u < this.fragment.to))
|
|
25072
|
-
|
|
25073
|
-
return o;
|
|
25074
|
-
} else if (s == e)
|
|
25075
|
-
return null;
|
|
25073
|
+
if (s >= this.safeFrom && l <= this.safeTo && (!(u = o.prop(Sn.lookAhead)) || l + u < this.fragment.to) && (a && (this.lastRepeat = o, this.lastRepeatPos = s), s == e))
|
|
25074
|
+
return o;
|
|
25076
25075
|
}
|
|
25077
25076
|
this.index[n]++, s + o.length >= Math.max(this.safeFrom, e) && (this.trees.push(o), this.start.push(s), this.index.push(0));
|
|
25078
25077
|
} else
|
|
@@ -28068,7 +28067,7 @@ function wn(t, e, n) {
|
|
|
28068
28067
|
function bE(t, e) {
|
|
28069
28068
|
if (e.has(t)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
28070
28069
|
}
|
|
28071
|
-
function
|
|
28070
|
+
function Ce(t, e) {
|
|
28072
28071
|
return t.get(ur(t, e));
|
|
28073
28072
|
}
|
|
28074
28073
|
function Bn(t, e, n) {
|
|
@@ -28242,7 +28241,7 @@ var $u = /* @__PURE__ */ new WeakMap(), DB = /* @__PURE__ */ new WeakMap(), Xa =
|
|
|
28242
28241
|
class LB {
|
|
28243
28242
|
constructor(e, n, r, i) {
|
|
28244
28243
|
var o, s, a, l, u, d;
|
|
28245
|
-
vE(this, ls), Oo(this, "parent", void 0), Oo(this, "is_pending", !1), Oo(this, "transform_error", void 0), wn(this, $u, void 0), wn(this, DB, null), wn(this, Xa, void 0), wn(this, s1, void 0), wn(this, zo, void 0), wn(this, cl, null), wn(this, Hs, null), wn(this, _s, null), wn(this, Qd, null), wn(this, Kc, 0), wn(this, bu, 0), wn(this, yp, !1), wn(this, a1, /* @__PURE__ */ new Set()), wn(this, l1, /* @__PURE__ */ new Set()), wn(this, Ul, null), wn(this, N2, (a = () => (Bn(Ul, this, Ma(
|
|
28244
|
+
vE(this, ls), Oo(this, "parent", void 0), Oo(this, "is_pending", !1), Oo(this, "transform_error", void 0), wn(this, $u, void 0), wn(this, DB, null), wn(this, Xa, void 0), wn(this, s1, void 0), wn(this, zo, void 0), wn(this, cl, null), wn(this, Hs, null), wn(this, _s, null), wn(this, Qd, null), wn(this, Kc, 0), wn(this, bu, 0), wn(this, yp, !1), wn(this, a1, /* @__PURE__ */ new Set()), wn(this, l1, /* @__PURE__ */ new Set()), wn(this, Ul, null), wn(this, N2, (a = () => (Bn(Ul, this, Ma(Ce(Kc, this))), () => {
|
|
28246
28245
|
Bn(Ul, this, null);
|
|
28247
28246
|
}), u = 0, d = Ma(0), () => {
|
|
28248
28247
|
Xy() && (c(d), rd(() => (u === 0 && (l = se(() => a(() => Xd(d)))), u += 1, () => {
|
|
@@ -28259,26 +28258,26 @@ class LB {
|
|
|
28259
28258
|
}, 589824));
|
|
28260
28259
|
}
|
|
28261
28260
|
defer_effect(e) {
|
|
28262
|
-
RE(e,
|
|
28261
|
+
RE(e, Ce(a1, this), Ce(l1, this));
|
|
28263
28262
|
}
|
|
28264
28263
|
is_rendered() {
|
|
28265
28264
|
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
28266
28265
|
}
|
|
28267
28266
|
has_pending_snippet() {
|
|
28268
|
-
return !!
|
|
28267
|
+
return !!Ce(Xa, this).pending;
|
|
28269
28268
|
}
|
|
28270
28269
|
update_pending_count(e, n) {
|
|
28271
|
-
ur(ls, this, IE).call(this, e, n), Bn(Kc, this,
|
|
28272
|
-
Bn(yp, this, !1),
|
|
28270
|
+
ur(ls, this, IE).call(this, e, n), Bn(Kc, this, Ce(Kc, this) + e), Ce(Ul, this) && !Ce(yp, this) && (Bn(yp, this, !0), kl(() => {
|
|
28271
|
+
Bn(yp, this, !1), Ce(Ul, this) && Bu(Ce(Ul, this), Ce(Kc, this));
|
|
28273
28272
|
}));
|
|
28274
28273
|
}
|
|
28275
28274
|
get_effect_pending() {
|
|
28276
|
-
return
|
|
28275
|
+
return Ce(N2, this).call(this), c(Ce(Ul, this));
|
|
28277
28276
|
}
|
|
28278
28277
|
error(e) {
|
|
28279
28278
|
var n;
|
|
28280
|
-
if (!
|
|
28281
|
-
(n = Mn) !== null && n !== void 0 && n.is_fork ? (
|
|
28279
|
+
if (!Ce(Xa, this).onerror && !Ce(Xa, this).failed) throw e;
|
|
28280
|
+
(n = Mn) !== null && n !== void 0 && n.is_fork ? (Ce(cl, this) && Mn.skip_effect(Ce(cl, this)), Ce(Hs, this) && Mn.skip_effect(Ce(Hs, this)), Ce(_s, this) && Mn.skip_effect(Ce(_s, this)), Mn.oncommit(() => {
|
|
28282
28281
|
ur(ls, this, I2).call(this, e);
|
|
28283
28282
|
})) : ur(ls, this, I2).call(this, e);
|
|
28284
28283
|
}
|
|
@@ -28286,23 +28285,23 @@ class LB {
|
|
|
28286
28285
|
function NE() {
|
|
28287
28286
|
try {
|
|
28288
28287
|
if (this.is_pending = this.has_pending_snippet(), Bn(bu, this, 0), Bn(Kc, this, 0), Bn(cl, this, Ta(() => {
|
|
28289
|
-
|
|
28290
|
-
})),
|
|
28288
|
+
Ce(s1, this).call(this, Ce($u, this));
|
|
28289
|
+
})), Ce(bu, this) > 0) {
|
|
28291
28290
|
var t = Bn(Qd, this, document.createDocumentFragment());
|
|
28292
|
-
ex(
|
|
28293
|
-
var e =
|
|
28294
|
-
Bn(Hs, this, Ta(() => e(
|
|
28291
|
+
ex(Ce(cl, this), t);
|
|
28292
|
+
var e = Ce(Xa, this).pending;
|
|
28293
|
+
Bn(Hs, this, Ta(() => e(Ce($u, this))));
|
|
28295
28294
|
} else ur(ls, this, $E).call(this, Mn);
|
|
28296
28295
|
} catch (n) {
|
|
28297
28296
|
this.error(n);
|
|
28298
28297
|
}
|
|
28299
28298
|
}
|
|
28300
28299
|
function $E(t) {
|
|
28301
|
-
this.is_pending = !1, t.transfer_effects(
|
|
28300
|
+
this.is_pending = !1, t.transfer_effects(Ce(a1, this), Ce(l1, this));
|
|
28302
28301
|
}
|
|
28303
28302
|
function $2(t) {
|
|
28304
28303
|
var e = dn, n = Dn, r = qn;
|
|
28305
|
-
bo(
|
|
28304
|
+
bo(Ce(zo, this)), Zo(Ce(zo, this)), Ru(Ce(zo, this).ctx);
|
|
28306
28305
|
try {
|
|
28307
28306
|
return Rl.ensure(), t();
|
|
28308
28307
|
} catch (i) {
|
|
@@ -28313,16 +28312,16 @@ function $2(t) {
|
|
|
28313
28312
|
}
|
|
28314
28313
|
function IE(t, e) {
|
|
28315
28314
|
var n;
|
|
28316
|
-
this.has_pending_snippet() ? (Bn(bu, this,
|
|
28315
|
+
this.has_pending_snippet() ? (Bn(bu, this, Ce(bu, this) + t), Ce(bu, this) === 0 && (ur(ls, this, $E).call(this, e), Ce(Hs, this) && qu(Ce(Hs, this), () => {
|
|
28317
28316
|
Bn(Hs, this, null);
|
|
28318
|
-
}),
|
|
28317
|
+
}), Ce(Qd, this) && (Ce($u, this).before(Ce(Qd, this)), Bn(Qd, this, null)))) : this.parent && ur(ls, n = this.parent, IE).call(n, t, e);
|
|
28319
28318
|
}
|
|
28320
28319
|
function I2(t) {
|
|
28321
|
-
|
|
28322
|
-
var e =
|
|
28320
|
+
Ce(cl, this) && (Ii(Ce(cl, this)), Bn(cl, this, null)), Ce(Hs, this) && (Ii(Ce(Hs, this)), Bn(Hs, this, null)), Ce(_s, this) && (Ii(Ce(_s, this)), Bn(_s, this, null));
|
|
28321
|
+
var e = Ce(Xa, this).onerror, n = Ce(Xa, this).failed, r = !1, i = !1, o = () => {
|
|
28323
28322
|
r ? console.warn("https://svelte.dev/e/svelte_boundary_reset_noop") : (r = !0, i && (function() {
|
|
28324
28323
|
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
28325
|
-
})(),
|
|
28324
|
+
})(), Ce(_s, this) !== null && qu(Ce(_s, this), () => {
|
|
28326
28325
|
Bn(_s, this, null);
|
|
28327
28326
|
}), ur(ls, this, $2).call(this, () => {
|
|
28328
28327
|
ur(ls, this, NE).call(this);
|
|
@@ -28331,16 +28330,16 @@ function I2(t) {
|
|
|
28331
28330
|
try {
|
|
28332
28331
|
i = !0, e?.(a, o), i = !1;
|
|
28333
28332
|
} catch (l) {
|
|
28334
|
-
rl(l,
|
|
28333
|
+
rl(l, Ce(zo, this) && Ce(zo, this).parent);
|
|
28335
28334
|
}
|
|
28336
28335
|
n && Bn(_s, this, ur(ls, this, $2).call(this, () => {
|
|
28337
28336
|
try {
|
|
28338
28337
|
return Ta(() => {
|
|
28339
28338
|
var l = dn;
|
|
28340
|
-
l.b = this, l.f |= 128, n(
|
|
28339
|
+
l.b = this, l.f |= 128, n(Ce($u, this), () => a, () => o);
|
|
28341
28340
|
});
|
|
28342
28341
|
} catch (l) {
|
|
28343
|
-
return rl(l,
|
|
28342
|
+
return rl(l, Ce(zo, this).parent), null;
|
|
28344
28343
|
}
|
|
28345
28344
|
}));
|
|
28346
28345
|
};
|
|
@@ -28349,9 +28348,9 @@ function I2(t) {
|
|
|
28349
28348
|
try {
|
|
28350
28349
|
a = this.transform_error(t);
|
|
28351
28350
|
} catch (l) {
|
|
28352
|
-
return void rl(l,
|
|
28351
|
+
return void rl(l, Ce(zo, this) && Ce(zo, this).parent);
|
|
28353
28352
|
}
|
|
28354
|
-
a !== null && typeof a == "object" && typeof a.then == "function" ? a.then(s, (l) => rl(l,
|
|
28353
|
+
a !== null && typeof a == "object" && typeof a.then == "function" ? a.then(s, (l) => rl(l, Ce(zo, this) && Ce(zo, this).parent)) : s(a);
|
|
28355
28354
|
});
|
|
28356
28355
|
}
|
|
28357
28356
|
function DE(t, e, n, r) {
|
|
@@ -28481,15 +28480,15 @@ class Rl {
|
|
|
28481
28480
|
vE(this, Oi), Oo(this, "id", zB++), wn(this, d1, !1), Oo(this, "linked", !0), wn(this, Lu, null), wn(this, Ym, null), Oo(this, "async_deriveds", /* @__PURE__ */ new Map()), Oo(this, "current", /* @__PURE__ */ new Map()), Oo(this, "previous", /* @__PURE__ */ new Map()), wn(this, Xm, /* @__PURE__ */ new Set()), wn(this, wp, /* @__PURE__ */ new Set()), wn(this, Gc, 0), wn(this, Gl, /* @__PURE__ */ new Map()), wn(this, $d, null), wn(this, sa, []), wn(this, L2, []), wn(this, zu, /* @__PURE__ */ new Set()), wn(this, xa, /* @__PURE__ */ new Set()), wn(this, Za, /* @__PURE__ */ new Map()), wn(this, p0, /* @__PURE__ */ new Set()), Oo(this, "is_fork", !1), wn(this, jp, !1), Jc === null ? Jc = this : (Bn(Ym, Jc, this), Bn(Lu, this, Jc)), Jc = this;
|
|
28482
28481
|
}
|
|
28483
28482
|
skip_effect(e) {
|
|
28484
|
-
|
|
28483
|
+
Ce(Za, this).has(e) || Ce(Za, this).set(e, { d: [], m: [] }), Ce(p0, this).delete(e);
|
|
28485
28484
|
}
|
|
28486
28485
|
unskip_effect(e) {
|
|
28487
|
-
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : (o) => this.schedule(o), r =
|
|
28486
|
+
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : (o) => this.schedule(o), r = Ce(Za, this).get(e);
|
|
28488
28487
|
if (r) {
|
|
28489
|
-
for (var i of (
|
|
28488
|
+
for (var i of (Ce(Za, this).delete(e), r.d)) ci(i, Po), n(i);
|
|
28490
28489
|
for (i of r.m) ci(i, Ys), n(i);
|
|
28491
28490
|
}
|
|
28492
|
-
|
|
28491
|
+
Ce(p0, this).add(e);
|
|
28493
28492
|
}
|
|
28494
28493
|
capture(e, n) {
|
|
28495
28494
|
var r, i = arguments.length > 2 && arguments[2] !== void 0 && arguments[2];
|
|
@@ -28510,48 +28509,48 @@ class Rl {
|
|
|
28510
28509
|
}
|
|
28511
28510
|
discard() {
|
|
28512
28511
|
var e;
|
|
28513
|
-
for (var n of
|
|
28514
|
-
for (var r of (
|
|
28515
|
-
ur(Oi, this, eg).call(this), (e =
|
|
28512
|
+
for (var n of Ce(wp, this)) n(this);
|
|
28513
|
+
for (var r of (Ce(wp, this).clear(), this.async_deriveds.values())) r.reject(Nd);
|
|
28514
|
+
ur(Oi, this, eg).call(this), (e = Ce($d, this)) === null || e === void 0 || e.resolve();
|
|
28516
28515
|
}
|
|
28517
28516
|
register_created_effect(e) {
|
|
28518
|
-
|
|
28517
|
+
Ce(L2, this).push(e);
|
|
28519
28518
|
}
|
|
28520
28519
|
increment(e, n) {
|
|
28521
|
-
if (Bn(Gc, this,
|
|
28522
|
-
var r, i = (r =
|
|
28523
|
-
|
|
28520
|
+
if (Bn(Gc, this, Ce(Gc, this) + 1), e) {
|
|
28521
|
+
var r, i = (r = Ce(Gl, this).get(n)) !== null && r !== void 0 ? r : 0;
|
|
28522
|
+
Ce(Gl, this).set(n, i + 1);
|
|
28524
28523
|
}
|
|
28525
28524
|
}
|
|
28526
28525
|
decrement(e, n) {
|
|
28527
|
-
if (Bn(Gc, this,
|
|
28528
|
-
var r, i = (r =
|
|
28529
|
-
i === 1 ?
|
|
28526
|
+
if (Bn(Gc, this, Ce(Gc, this) - 1), e) {
|
|
28527
|
+
var r, i = (r = Ce(Gl, this).get(n)) !== null && r !== void 0 ? r : 0;
|
|
28528
|
+
i === 1 ? Ce(Gl, this).delete(n) : Ce(Gl, this).set(n, i - 1);
|
|
28530
28529
|
}
|
|
28531
|
-
|
|
28530
|
+
Ce(jp, this) || (Bn(jp, this, !0), kl(() => {
|
|
28532
28531
|
Bn(jp, this, !1), this.linked && this.flush();
|
|
28533
28532
|
}));
|
|
28534
28533
|
}
|
|
28535
28534
|
transfer_effects(e, n) {
|
|
28536
|
-
for (var r of e)
|
|
28537
|
-
for (var i of n)
|
|
28535
|
+
for (var r of e) Ce(zu, this).add(r);
|
|
28536
|
+
for (var i of n) Ce(xa, this).add(i);
|
|
28538
28537
|
e.clear(), n.clear();
|
|
28539
28538
|
}
|
|
28540
28539
|
oncommit(e) {
|
|
28541
|
-
|
|
28540
|
+
Ce(Xm, this).add(e);
|
|
28542
28541
|
}
|
|
28543
28542
|
ondiscard(e) {
|
|
28544
|
-
|
|
28543
|
+
Ce(wp, this).add(e);
|
|
28545
28544
|
}
|
|
28546
28545
|
settled() {
|
|
28547
28546
|
var e;
|
|
28548
|
-
return ((e =
|
|
28547
|
+
return ((e = Ce($d, this)) !== null && e !== void 0 ? e : Bn($d, this, jE())).promise;
|
|
28549
28548
|
}
|
|
28550
28549
|
static ensure() {
|
|
28551
28550
|
if (Mn === null) {
|
|
28552
28551
|
var e = Mn = new Rl();
|
|
28553
28552
|
h0 || Yd || kl(() => {
|
|
28554
|
-
|
|
28553
|
+
Ce(d1, e) || e.flush();
|
|
28555
28554
|
});
|
|
28556
28555
|
}
|
|
28557
28556
|
return Mn;
|
|
@@ -28571,15 +28570,15 @@ class Rl {
|
|
|
28571
28570
|
r.f ^= yi;
|
|
28572
28571
|
}
|
|
28573
28572
|
}
|
|
28574
|
-
|
|
28573
|
+
Ce(sa, this).push(r);
|
|
28575
28574
|
}
|
|
28576
28575
|
}
|
|
28577
28576
|
}
|
|
28578
28577
|
function z2() {
|
|
28579
28578
|
if (this.is_fork) return !0;
|
|
28580
|
-
for (var t of
|
|
28579
|
+
for (var t of Ce(Gl, this).keys()) {
|
|
28581
28580
|
for (var e = t, n = !1; e.parent !== null; ) {
|
|
28582
|
-
if (
|
|
28581
|
+
if (Ce(Za, this).has(e)) {
|
|
28583
28582
|
n = !0;
|
|
28584
28583
|
break;
|
|
28585
28584
|
}
|
|
@@ -28599,9 +28598,9 @@ function Zm() {
|
|
|
28599
28598
|
} catch (x) {
|
|
28600
28599
|
rl(x, u1);
|
|
28601
28600
|
}
|
|
28602
|
-
})()),
|
|
28603
|
-
for (var n of
|
|
28604
|
-
var r =
|
|
28601
|
+
})()), Ce(zu, this))) Ce(xa, this).delete(e), ci(e, Po), this.schedule(e);
|
|
28602
|
+
for (var n of Ce(xa, this)) ci(n, Ys), this.schedule(n);
|
|
28603
|
+
var r = Ce(sa, this);
|
|
28605
28604
|
Bn(sa, this, []), this.apply();
|
|
28606
28605
|
var i = Du = [], o = [], s = Qm = [];
|
|
28607
28606
|
for (var a of r) try {
|
|
@@ -28614,7 +28613,7 @@ function Zm() {
|
|
|
28614
28613
|
for (var u of s) l.schedule(u);
|
|
28615
28614
|
}
|
|
28616
28615
|
if (Du = null, Qm = null, ur(Oi, this, z2).call(this)) {
|
|
28617
|
-
for (var d of (ur(Oi, this, kp).call(this, o), ur(Oi, this, kp).call(this, i),
|
|
28616
|
+
for (var d of (ur(Oi, this, kp).call(this, o), ur(Oi, this, kp).call(this, i), Ce(Za, this))) {
|
|
28618
28617
|
var f = go(d, 2);
|
|
28619
28618
|
FE(f[0], f[1]);
|
|
28620
28619
|
}
|
|
@@ -28623,12 +28622,12 @@ function Zm() {
|
|
|
28623
28622
|
} else {
|
|
28624
28623
|
var p = ur(Oi, this, qB).call(this);
|
|
28625
28624
|
if (p) return ur(Oi, this, kp).call(this, o), ur(Oi, this, kp).call(this, i), void ur(Oi, p, FB).call(p, this);
|
|
28626
|
-
for (var m of (
|
|
28627
|
-
|
|
28625
|
+
for (var m of (Ce(zu, this).clear(), Ce(xa, this).clear(), Ce(Xm, this))) m(this);
|
|
28626
|
+
Ce(Xm, this).clear(), c1 = this, B2(o), B2(i), c1 = null, (t = Ce($d, this)) === null || t === void 0 || t.resolve();
|
|
28628
28627
|
var g, v = Mn;
|
|
28629
|
-
if (
|
|
28628
|
+
if (Ce(Gc, this) !== 0 || Ce(sa, this).length !== 0 && v === null || ur(Oi, this, eg).call(this), Ce(sa, this).length > 0) if (v !== null) {
|
|
28630
28629
|
var y = v;
|
|
28631
|
-
|
|
28630
|
+
Ce(sa, y).push(...Ce(sa, this).filter((x) => !Ce(sa, y).includes(x)));
|
|
28632
28631
|
} else v = this;
|
|
28633
28632
|
v !== null && ur(Oi, g = v, Zm).call(g);
|
|
28634
28633
|
}
|
|
@@ -28637,8 +28636,8 @@ function BB(t, e, n) {
|
|
|
28637
28636
|
t.f ^= yi;
|
|
28638
28637
|
for (var r = t.first; r !== null; ) {
|
|
28639
28638
|
var i = r.f, o = !!(96 & i);
|
|
28640
|
-
if (!(o && (i & yi) !== 0 || (i & Vs) !== 0 ||
|
|
28641
|
-
o ? r.f ^= yi : 4 & i ? e.push(r) : od(r) && ((i & Wf) !== 0 &&
|
|
28639
|
+
if (!(o && (i & yi) !== 0 || (i & Vs) !== 0 || Ce(Za, this).has(r)) && r.fn !== null) {
|
|
28640
|
+
o ? r.f ^= yi : 4 & i ? e.push(r) : od(r) && ((i & Wf) !== 0 && Ce(xa, this).add(r), jc(r));
|
|
28642
28641
|
var s = r.first;
|
|
28643
28642
|
if (s !== null) {
|
|
28644
28643
|
r = s;
|
|
@@ -28656,12 +28655,12 @@ function BB(t, e, n) {
|
|
|
28656
28655
|
}
|
|
28657
28656
|
}
|
|
28658
28657
|
function qB() {
|
|
28659
|
-
for (var t =
|
|
28658
|
+
for (var t = Ce(Lu, this); t !== null; ) {
|
|
28660
28659
|
if (!t.is_fork) for (var e of this.current) {
|
|
28661
28660
|
var n = go(e, 2), r = n[0], i = go(n[1], 2)[1];
|
|
28662
28661
|
if (t.current.has(r) && !i) return t;
|
|
28663
28662
|
}
|
|
28664
|
-
t =
|
|
28663
|
+
t = Ce(Lu, t);
|
|
28665
28664
|
}
|
|
28666
28665
|
return null;
|
|
28667
28666
|
}
|
|
@@ -28674,7 +28673,7 @@ function FB(t) {
|
|
|
28674
28673
|
var s = go(o, 2), a = s[0], l = s[1], u = this.async_deriveds.get(a);
|
|
28675
28674
|
u && l.promise.then(u.resolve).catch(u.reject);
|
|
28676
28675
|
}
|
|
28677
|
-
t.async_deriveds.clear(), this.transfer_effects(
|
|
28676
|
+
t.async_deriveds.clear(), this.transfer_effects(Ce(zu, t), Ce(xa, t));
|
|
28678
28677
|
var d = (h) => {
|
|
28679
28678
|
var p = h.reactions;
|
|
28680
28679
|
if (p !== null && (!(2 & h.f) || 6144 & h.f)) for (var m of p) {
|
|
@@ -28682,7 +28681,7 @@ function FB(t) {
|
|
|
28682
28681
|
if (2 & g) d(m);
|
|
28683
28682
|
else {
|
|
28684
28683
|
var v = m;
|
|
28685
|
-
4194320 & g && !this.async_deriveds.has(v) && (
|
|
28684
|
+
4194320 & g && !this.async_deriveds.has(v) && (Ce(xa, this).delete(v), ci(v, Po), this.schedule(v));
|
|
28686
28685
|
}
|
|
28687
28686
|
}
|
|
28688
28687
|
};
|
|
@@ -28690,11 +28689,11 @@ function FB(t) {
|
|
|
28690
28689
|
this.oncommit(() => t.discard()), ur(Oi, t, eg).call(t), Mn = this, ur(Oi, this, Zm).call(this);
|
|
28691
28690
|
}
|
|
28692
28691
|
function kp(t) {
|
|
28693
|
-
for (var e = 0; e < t.length; e += 1) RE(t[e],
|
|
28692
|
+
for (var e = 0; e < t.length; e += 1) RE(t[e], Ce(zu, this), Ce(xa, this));
|
|
28694
28693
|
}
|
|
28695
28694
|
function eg() {
|
|
28696
28695
|
if (this.linked) {
|
|
28697
|
-
var t =
|
|
28696
|
+
var t = Ce(Lu, this), e = Ce(Ym, this);
|
|
28698
28697
|
t === null || Bn(Ym, t, e), e === null ? Jc = t : Bn(Lu, e, t), this.linked = !1;
|
|
28699
28698
|
}
|
|
28700
28699
|
}
|
|
@@ -29500,45 +29499,45 @@ class Xg {
|
|
|
29500
29499
|
constructor(e) {
|
|
29501
29500
|
var n = this, r = !(arguments.length > 1 && arguments[1] !== void 0) || arguments[1];
|
|
29502
29501
|
Oo(this, "anchor", void 0), wn(this, ra, /* @__PURE__ */ new Map()), wn(this, Vl, /* @__PURE__ */ new Map()), wn(this, ia, /* @__PURE__ */ new Map()), wn(this, kd, /* @__PURE__ */ new Set()), wn(this, m0, !0), wn(this, K2, (i) => {
|
|
29503
|
-
if (
|
|
29504
|
-
var o =
|
|
29505
|
-
if (s) tg(s),
|
|
29502
|
+
if (Ce(ra, this).has(i)) {
|
|
29503
|
+
var o = Ce(ra, this).get(i), s = Ce(Vl, this).get(o);
|
|
29504
|
+
if (s) tg(s), Ce(kd, this).delete(o);
|
|
29506
29505
|
else {
|
|
29507
|
-
var a =
|
|
29508
|
-
a && (tg(a.effect),
|
|
29506
|
+
var a = Ce(ia, this).get(o);
|
|
29507
|
+
a && (tg(a.effect), Ce(Vl, this).set(o, a.effect), Ce(ia, this).delete(o), a.fragment.lastChild.remove(), this.anchor.before(a.fragment), s = a.effect);
|
|
29509
29508
|
}
|
|
29510
|
-
for (var l of
|
|
29509
|
+
for (var l of Ce(ra, this)) {
|
|
29511
29510
|
var u = go(l, 2), d = u[0], f = u[1];
|
|
29512
|
-
if (
|
|
29513
|
-
var h =
|
|
29514
|
-
h && (Ii(h.effect),
|
|
29511
|
+
if (Ce(ra, this).delete(d), d === i) break;
|
|
29512
|
+
var h = Ce(ia, this).get(f);
|
|
29513
|
+
h && (Ii(h.effect), Ce(ia, this).delete(f));
|
|
29515
29514
|
}
|
|
29516
29515
|
var p, m = function() {
|
|
29517
29516
|
var v = (p = go(g, 2))[0], y = p[1];
|
|
29518
|
-
if (v === o ||
|
|
29517
|
+
if (v === o || Ce(kd, n).has(v)) return 1;
|
|
29519
29518
|
var x = () => {
|
|
29520
|
-
if (Array.from(
|
|
29519
|
+
if (Array.from(Ce(ra, n).values()).includes(v)) {
|
|
29521
29520
|
var w = document.createDocumentFragment();
|
|
29522
|
-
ex(y, w), w.append(dc()),
|
|
29521
|
+
ex(y, w), w.append(dc()), Ce(ia, n).set(v, { effect: y, fragment: w });
|
|
29523
29522
|
} else Ii(y);
|
|
29524
|
-
|
|
29523
|
+
Ce(kd, n).delete(v), Ce(Vl, n).delete(v);
|
|
29525
29524
|
};
|
|
29526
|
-
|
|
29525
|
+
Ce(m0, n) || !s ? (Ce(kd, n).add(v), qu(y, x, !1)) : x();
|
|
29527
29526
|
};
|
|
29528
|
-
for (var g of
|
|
29527
|
+
for (var g of Ce(Vl, this)) m();
|
|
29529
29528
|
}
|
|
29530
29529
|
}), wn(this, QB, (i) => {
|
|
29531
|
-
|
|
29532
|
-
var o = Array.from(
|
|
29533
|
-
for (var s of
|
|
29530
|
+
Ce(ra, this).delete(i);
|
|
29531
|
+
var o = Array.from(Ce(ra, this).values());
|
|
29532
|
+
for (var s of Ce(ia, this)) {
|
|
29534
29533
|
var a = go(s, 2), l = a[0], u = a[1];
|
|
29535
|
-
o.includes(l) || (Ii(u.effect),
|
|
29534
|
+
o.includes(l) || (Ii(u.effect), Ce(ia, this).delete(l));
|
|
29536
29535
|
}
|
|
29537
29536
|
}), this.anchor = e, Bn(m0, this, r);
|
|
29538
29537
|
}
|
|
29539
29538
|
ensure(e, n) {
|
|
29540
29539
|
var r = Mn;
|
|
29541
|
-
!n ||
|
|
29540
|
+
!n || Ce(Vl, this).has(e) || Ce(ia, this).has(e) || Ce(Vl, this).set(e, Ta(() => n(this.anchor))), Ce(ra, this).set(r, e), Ce(K2, this).call(this, r);
|
|
29542
29541
|
}
|
|
29543
29542
|
}
|
|
29544
29543
|
function Di(t) {
|
|
@@ -29614,7 +29613,7 @@ function Dr(t, e, n, r, i) {
|
|
|
29614
29613
|
}), f = /* @__PURE__ */ new Map(), h = !0;
|
|
29615
29614
|
function p(v) {
|
|
29616
29615
|
(g.effect.f & jl) === 0 && (g.pending.delete(v), g.fallback = u, (function(y, x, w, k, b) {
|
|
29617
|
-
var j, O, N, M, z, H = !!(8 & k), V = x.length, G = y.items, Q = Sd(y.effect.first), pe = null,
|
|
29616
|
+
var j, O, N, M, z, H = !!(8 & k), V = x.length, G = y.items, Q = Sd(y.effect.first), pe = null, Se = [], ge = [];
|
|
29618
29617
|
if (H) for (z = 0; z < V; z += 1) {
|
|
29619
29618
|
var le;
|
|
29620
29619
|
N = b(x[z], z), ((M = G.get(N).e).f & Ts) === 0 && ((le = M.nodes) === null || le === void 0 || (le = le.a) === null || le === void 0 || le.measure(), (O ?? (O = /* @__PURE__ */ new Set())).add(M));
|
|
@@ -29625,27 +29624,27 @@ function Dr(t, e, n, r, i) {
|
|
|
29625
29624
|
if ((M.f & Vs) !== 0 && (tg(M), H && ((te = M.nodes) === null || te === void 0 || (te = te.a) === null || te === void 0 || te.unfix(), (O ?? (O = /* @__PURE__ */ new Set())).delete(M))), (M.f & Ts) !== 0) {
|
|
29626
29625
|
if (M.f ^= Ts, M !== Q) {
|
|
29627
29626
|
var R = pe ? pe.next : Q;
|
|
29628
|
-
M === y.effect.last && (y.effect.last = M.prev), M.prev && (M.prev.next = M.next), M.next && (M.next.prev = M.prev), Fa(y, pe, M), Fa(y, M, R), Cd(M, R, w),
|
|
29627
|
+
M === y.effect.last && (y.effect.last = M.prev), M.prev && (M.prev.next = M.next), M.next && (M.next.prev = M.prev), Fa(y, pe, M), Fa(y, M, R), Cd(M, R, w), Se = [], ge = [], Q = Sd((pe = M).next);
|
|
29629
29628
|
continue;
|
|
29630
29629
|
}
|
|
29631
29630
|
Cd(M, null, w);
|
|
29632
29631
|
}
|
|
29633
29632
|
if (M !== Q) {
|
|
29634
29633
|
if (j !== void 0 && j.has(M)) {
|
|
29635
|
-
if (
|
|
29636
|
-
var
|
|
29634
|
+
if (Se.length < ge.length) {
|
|
29635
|
+
var B, _ = ge[0];
|
|
29637
29636
|
pe = _.prev;
|
|
29638
|
-
var S =
|
|
29639
|
-
for (
|
|
29640
|
-
for (
|
|
29641
|
-
Fa(y, S.prev, C.next), Fa(y, pe, S), Fa(y, C, _), Q = _, pe = C, z -= 1,
|
|
29637
|
+
var S = Se[0], C = Se[Se.length - 1];
|
|
29638
|
+
for (B = 0; B < Se.length; B += 1) Cd(Se[B], _, w);
|
|
29639
|
+
for (B = 0; B < ge.length; B += 1) j.delete(ge[B]);
|
|
29640
|
+
Fa(y, S.prev, C.next), Fa(y, pe, S), Fa(y, C, _), Q = _, pe = C, z -= 1, Se = [], ge = [];
|
|
29642
29641
|
} else j.delete(M), Cd(M, Q, w), Fa(y, M.prev, M.next), Fa(y, M, pe === null ? y.effect.first : pe.next), Fa(y, pe, M), pe = M;
|
|
29643
29642
|
continue;
|
|
29644
29643
|
}
|
|
29645
|
-
for (
|
|
29644
|
+
for (Se = [], ge = []; Q !== null && Q !== M; ) (j ?? (j = /* @__PURE__ */ new Set())).add(Q), ge.push(Q), Q = Sd(Q.next);
|
|
29646
29645
|
if (Q === null) continue;
|
|
29647
29646
|
}
|
|
29648
|
-
(M.f & Ts) === 0 &&
|
|
29647
|
+
(M.f & Ts) === 0 && Se.push(M), pe = M, Q = Sd(M.next);
|
|
29649
29648
|
}
|
|
29650
29649
|
if (y.outrogroups !== null) {
|
|
29651
29650
|
for (var $ of y.outrogroups) {
|
|
@@ -29667,8 +29666,8 @@ function Dr(t, e, n, r, i) {
|
|
|
29667
29666
|
(D = J[z].nodes) === null || D === void 0 || (D = D.a) === null || D === void 0 || D.measure();
|
|
29668
29667
|
}
|
|
29669
29668
|
for (z = 0; z < de; z += 1) {
|
|
29670
|
-
var
|
|
29671
|
-
(
|
|
29669
|
+
var q;
|
|
29670
|
+
(q = J[z].nodes) === null || q === void 0 || (q = q.a) === null || q === void 0 || q.fix();
|
|
29672
29671
|
}
|
|
29673
29672
|
}
|
|
29674
29673
|
(function(P, Y, ie) {
|
|
@@ -29941,9 +29940,9 @@ function aq(t, e, n, r) {
|
|
|
29941
29940
|
} else if (b === "style") kn(t, b, j);
|
|
29942
29941
|
else if (b === "autofocus") (function(Q, pe) {
|
|
29943
29942
|
if (pe) {
|
|
29944
|
-
var
|
|
29943
|
+
var Se = document.body;
|
|
29945
29944
|
Q.autofocus = !0, kl(() => {
|
|
29946
|
-
document.activeElement ===
|
|
29945
|
+
document.activeElement === Se && Q.focus();
|
|
29947
29946
|
});
|
|
29948
29947
|
}
|
|
29949
29948
|
})(t, !!j);
|
|
@@ -30656,8 +30655,8 @@ function Rq(t, e) {
|
|
|
30656
30655
|
}), We((m) => Qo(h, m), [() => (c(i), T(n()), se(() => (function(m, g) {
|
|
30657
30656
|
var v = m.getBoundingClientRect(), y = (function() {
|
|
30658
30657
|
if (g.anchor) {
|
|
30659
|
-
var j = g.anchor, O = g.width, N = O === void 0 ? 0 : O, M = g.height, z = M === void 0 ? 0 : M, H = g.offsetTop, V = H === void 0 ? 0 : H, G = g.offsetLeft, Q = G === void 0 ? 0 : G, pe = g.position,
|
|
30660
|
-
return { left:
|
|
30658
|
+
var j = g.anchor, O = g.width, N = O === void 0 ? 0 : O, M = g.height, z = M === void 0 ? 0 : M, H = g.offsetTop, V = H === void 0 ? 0 : H, G = g.offsetLeft, Q = G === void 0 ? 0 : G, pe = g.position, Se = j.getBoundingClientRect(), ge = Se.left, le = Se.top, ne = Se.bottom, te = Se.right, R = pe === "top" || le + z > window.innerHeight && le > z, B = pe === "left" || ge + N > window.innerWidth && ge > N;
|
|
30659
|
+
return { left: B ? te - Q : ge + Q, top: R ? le - V : ne + V, positionAbove: R, positionLeft: B };
|
|
30661
30660
|
}
|
|
30662
30661
|
if (typeof g.left == "number" && typeof g.top == "number") {
|
|
30663
30662
|
var _ = g.left, S = g.top, C = g.width, $ = C === void 0 ? 0 : C, U = g.height, J = U === void 0 ? 0 : U;
|
|
@@ -30829,10 +30828,10 @@ function pn(t, e) {
|
|
|
30829
30828
|
return b === 1 ? k.length === 0 ? "" : k : (k === "" || k.endsWith(";") || (k += "; "), "".concat(k, "font-size: ").concat(b, "em"));
|
|
30830
30829
|
})()), E(y, c(s) ? "0 0 ".concat(c(s).width, " ").concat(c(s).height) : "0 0 ".concat(c(m), " ").concat(c(g)));
|
|
30831
30830
|
}), Ln(), Ut(), (function(k, b) {
|
|
30832
|
-
var j = Cp(b, ["children", "$$slots", "$$events", "$$legacy"]), O = Cp(j, ["class", "width", "height", "box", "spin", "inverse", "pulse", "flip", "style", "label"]), N = A(b, "class", 8, ""), M = A(b, "width", 8), z = A(b, "height", 8), H = A(b, "box", 8, "0 0 0 0"), V = A(b, "spin", 8, !1), G = A(b, "inverse", 8, !1), Q = A(b, "pulse", 8, !1), pe = A(b, "flip", 8, "none"),
|
|
30831
|
+
var j = Cp(b, ["children", "$$slots", "$$events", "$$legacy"]), O = Cp(j, ["class", "width", "height", "box", "spin", "inverse", "pulse", "flip", "style", "label"]), N = A(b, "class", 8, ""), M = A(b, "width", 8), z = A(b, "height", 8), H = A(b, "box", 8, "0 0 0 0"), V = A(b, "spin", 8, !1), G = A(b, "inverse", 8, !1), Q = A(b, "pulse", 8, !1), pe = A(b, "flip", 8, "none"), Se = A(b, "style", 8, ""), ge = A(b, "label", 8, ""), le = zq();
|
|
30833
30832
|
sm(le, () => {
|
|
30834
30833
|
var ne;
|
|
30835
|
-
return Ve(Ve({ version: "1.1", class: "fa-icon ".concat((ne = N()) !== null && ne !== void 0 ? ne : ""), width: M(), height: z(), "aria-label": ge(), role: ge() ? "img" : "presentation", viewBox: H(), style:
|
|
30834
|
+
return Ve(Ve({ version: "1.1", class: "fa-icon ".concat((ne = N()) !== null && ne !== void 0 ? ne : ""), width: M(), height: z(), "aria-label": ge(), role: ge() ? "img" : "presentation", viewBox: H(), style: Se() }, O), {}, { [Qc]: { "fa-spin": V(), "fa-pulse": Q(), "fa-inverse": G(), "fa-flip-horizontal": pe() === "horizontal", "fa-flip-vertical": pe() === "vertical" } });
|
|
30836
30835
|
}, void 0, void 0, void 0, "svelte-v67cny"), $r(ee(le), b, "default", {}, null), oe(k, le);
|
|
30837
30836
|
})(t, ul({ get label() {
|
|
30838
30837
|
return h();
|
|
@@ -31862,13 +31861,13 @@ function QA(t, e, n, r) {
|
|
|
31862
31861
|
var M = ga(O), z = hn(M), H = ot(j, z);
|
|
31863
31862
|
if (Ir(H)) {
|
|
31864
31863
|
var V = ga(O), G = V ? _i(rn(V)) : 0;
|
|
31865
|
-
return [...cg(O), ...N.map((R,
|
|
31864
|
+
return [...cg(O), ...N.map((R, B) => ({ op: "add", path: Et(z.concat(String(B + G))), value: R.value }))];
|
|
31866
31865
|
}
|
|
31867
31866
|
if (Vr(H)) {
|
|
31868
|
-
var Q = rn(O), pe = hn(Q),
|
|
31867
|
+
var Q = rn(O), pe = hn(Q), Se = rn(Q), ge = Object.keys(H), le = Se !== void 0 ? Zf(ge, Se, !1) : [], ne = new Set(O.map((R) => rn(R))), te = ge.filter((R) => !ne.has(R));
|
|
31869
31868
|
return [...cg(O), ...N.map((R) => {
|
|
31870
|
-
var
|
|
31871
|
-
return { op: "add", path: Et(pe.concat(
|
|
31869
|
+
var B = Xf(R.key, te);
|
|
31870
|
+
return { op: "add", path: Et(pe.concat(B)), value: R.value };
|
|
31872
31871
|
}), ...le.map((R) => El(pe, R))];
|
|
31873
31872
|
}
|
|
31874
31873
|
throw new Error("Cannot create replace operations: parent must be an Object or Array");
|
|
@@ -32770,14 +32769,14 @@ function PF(t, e, n, r) {
|
|
|
32770
32769
|
var y, x = g && h ? (function(j, O, N) {
|
|
32771
32770
|
var M, z = null, H = $a(j);
|
|
32772
32771
|
function V() {
|
|
32773
|
-
var
|
|
32774
|
-
clearTimeout(M), (
|
|
32775
|
-
}
|
|
32776
|
-
function G(
|
|
32777
|
-
|
|
32778
|
-
var le = j.getBoundingClientRect(), ne = le.left, te = le.top, R = le.width,
|
|
32779
|
-
if (
|
|
32780
|
-
var _ = { rootMargin: -Pp(te) + "px " + -Pp(H.clientWidth - (ne + R)) + "px " + -Pp(H.clientHeight - (te +
|
|
32772
|
+
var Se;
|
|
32773
|
+
clearTimeout(M), (Se = z) == null || Se.disconnect(), z = null;
|
|
32774
|
+
}
|
|
32775
|
+
function G(Se, ge) {
|
|
32776
|
+
Se === void 0 && (Se = !1), ge === void 0 && (ge = 1), V();
|
|
32777
|
+
var le = j.getBoundingClientRect(), ne = le.left, te = le.top, R = le.width, B = le.height;
|
|
32778
|
+
if (Se || O(), R && B) {
|
|
32779
|
+
var _ = { rootMargin: -Pp(te) + "px " + -Pp(H.clientWidth - (ne + R)) + "px " + -Pp(H.clientHeight - (te + B)) + "px " + -Pp(ne) + "px", threshold: pc(0, dg(1, ge)) || 1 }, S = !0;
|
|
32781
32780
|
try {
|
|
32782
32781
|
z = new IntersectionObserver(C, Ve(Ve({}, _), {}, { root: H.ownerDocument }));
|
|
32783
32782
|
} catch {
|
|
@@ -32846,7 +32845,7 @@ var RF = function(t) {
|
|
|
32846
32845
|
return [T1(C), $, T1($)];
|
|
32847
32846
|
})(a)), V = w !== "none";
|
|
32848
32847
|
!g && V && H.push(...jF(a, b, w, z));
|
|
32849
|
-
var G = [a, ...H], Q = yield l.detectOverflow(e, j), pe = [],
|
|
32848
|
+
var G = [a, ...H], Q = yield l.detectOverflow(e, j), pe = [], Se = ((r = o.flip) == null ? void 0 : r.overflows) || [];
|
|
32850
32849
|
if (h && pe.push(Q[O]), m) {
|
|
32851
32850
|
var ge = (function(C, $, U) {
|
|
32852
32851
|
U === void 0 && (U = !1);
|
|
@@ -32855,25 +32854,25 @@ var RF = function(t) {
|
|
|
32855
32854
|
})(i, s, z);
|
|
32856
32855
|
pe.push(Q[ge[0]], Q[ge[1]]);
|
|
32857
32856
|
}
|
|
32858
|
-
if (
|
|
32857
|
+
if (Se = [...Se, { placement: i, overflows: pe }], !pe.every((C) => C <= 0)) {
|
|
32859
32858
|
var le, ne, te = (((le = o.flip) == null ? void 0 : le.index) || 0) + 1, R = G[te];
|
|
32860
|
-
if (R && (!(m === "alignment" && N !== ol(R)) ||
|
|
32861
|
-
var
|
|
32862
|
-
if (!
|
|
32859
|
+
if (R && (!(m === "alignment" && N !== ol(R)) || Se.every((C) => ol(C.placement) !== N || C.overflows[0] > 0))) return { data: { index: te, overflows: Se }, reset: { placement: R } };
|
|
32860
|
+
var B = (ne = Se.filter((C) => C.overflows[0] <= 0).sort((C, $) => C.overflows[1] - $.overflows[1])[0]) == null ? void 0 : ne.placement;
|
|
32861
|
+
if (!B) switch (y) {
|
|
32863
32862
|
case "bestFit":
|
|
32864
|
-
var _, S = (_ =
|
|
32863
|
+
var _, S = (_ = Se.filter((C) => {
|
|
32865
32864
|
if (V) {
|
|
32866
32865
|
var $ = ol(C.placement);
|
|
32867
32866
|
return $ === N || $ === "y";
|
|
32868
32867
|
}
|
|
32869
32868
|
return !0;
|
|
32870
32869
|
}).map((C) => [C.placement, C.overflows.filter(($) => $ > 0).reduce(($, U) => $ + U, 0)]).sort((C, $) => C[1] - $[1])[0]) == null ? void 0 : _[0];
|
|
32871
|
-
S && (
|
|
32870
|
+
S && (B = S);
|
|
32872
32871
|
break;
|
|
32873
32872
|
case "initialPlacement":
|
|
32874
|
-
|
|
32873
|
+
B = a;
|
|
32875
32874
|
}
|
|
32876
|
-
if (i !==
|
|
32875
|
+
if (i !== B) return { reset: { placement: B } };
|
|
32877
32876
|
}
|
|
32878
32877
|
return {};
|
|
32879
32878
|
})() };
|
|
@@ -33375,7 +33374,7 @@ function Xl(t, e) {
|
|
|
33375
33374
|
return ae;
|
|
33376
33375
|
})(e);
|
|
33377
33376
|
St(e, !1);
|
|
33378
|
-
var r, i = Z(), o = Z(), s = Z(), a = Z(), l = Z(), u = Z(), d = Z(), f = Z(), h = Z(), p = YB(), m = A(e, "justValue", 12, null), g = A(e, "filter", 8, DF), v = A(e, "getItems", 8, LF), y = A(e, "id", 8, null), x = A(e, "name", 8, null), w = A(e, "container", 12, void 0), k = A(e, "input", 12, void 0), b = A(e, "multiple", 8, !1), j = A(e, "multiFullItemClearable", 8, !1), O = A(e, "disabled", 8, !1), N = A(e, "focused", 12, !1), M = A(e, "value", 12, null), z = A(e, "filterText", 12, ""), H = A(e, "placeholder", 8, "Please select"), V = A(e, "placeholderAlwaysShow", 8, !1), G = A(e, "items", 12, null), Q = A(e, "label", 8, "label"), pe = A(e, "itemFilter", 8, (L, ae, ye) => "".concat(L).toLowerCase().includes(ae.toLowerCase())),
|
|
33377
|
+
var r, i = Z(), o = Z(), s = Z(), a = Z(), l = Z(), u = Z(), d = Z(), f = Z(), h = Z(), p = YB(), m = A(e, "justValue", 12, null), g = A(e, "filter", 8, DF), v = A(e, "getItems", 8, LF), y = A(e, "id", 8, null), x = A(e, "name", 8, null), w = A(e, "container", 12, void 0), k = A(e, "input", 12, void 0), b = A(e, "multiple", 8, !1), j = A(e, "multiFullItemClearable", 8, !1), O = A(e, "disabled", 8, !1), N = A(e, "focused", 12, !1), M = A(e, "value", 12, null), z = A(e, "filterText", 12, ""), H = A(e, "placeholder", 8, "Please select"), V = A(e, "placeholderAlwaysShow", 8, !1), G = A(e, "items", 12, null), Q = A(e, "label", 8, "label"), pe = A(e, "itemFilter", 8, (L, ae, ye) => "".concat(L).toLowerCase().includes(ae.toLowerCase())), Se = A(e, "groupBy", 8, void 0), ge = A(e, "groupFilter", 8, (L) => L), le = A(e, "groupHeaderSelectable", 8, !1), ne = A(e, "itemId", 8, "value"), te = A(e, "loadOptions", 8, void 0), R = A(e, "containerStyles", 8, ""), B = A(e, "hasError", 8, !1), _ = A(e, "filterSelectedItems", 8, !0), S = A(e, "required", 8, !1), C = A(e, "closeListOnChange", 8, !0), $ = A(e, "clearFilterTextOnBlur", 8, !0), U = A(e, "createGroupHeaderItem", 8, (L, ae) => ({ value: L, [Q()]: L })), J = () => c(d), de = A(e, "searchable", 8, !0), Ne = A(e, "inputStyles", 8, ""), D = A(e, "clearable", 8, !0), q = A(e, "loading", 12, !1), P = A(e, "listOpen", 12, !1), Y = A(e, "debounce", 8, function(L) {
|
|
33379
33378
|
var ae = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
|
|
33380
33379
|
clearTimeout(r), r = setTimeout(L, ae);
|
|
33381
33380
|
}), ie = A(e, "debounceWait", 8, 300), Ae = A(e, "hideEmptyState", 8, !1), me = A(e, "inputAttributes", 24, () => ({})), re = A(e, "listAutoWidth", 8, !0), ke = A(e, "showChevron", 8, !1), tt = A(e, "listOffset", 8, 5), $e = A(e, "hoverItemIndex", 12, 0), it = A(e, "floatingConfig", 24, () => ({})), Ye = A(e, "class", 8, ""), Le = Z(), pt = Z(), I = Z(), K = Z(), X = Z();
|
|
@@ -33385,7 +33384,7 @@ function Xl(t, e) {
|
|
|
33385
33384
|
function xe(L) {
|
|
33386
33385
|
var ae = [], ye = {};
|
|
33387
33386
|
L.forEach((Xe) => {
|
|
33388
|
-
var et =
|
|
33387
|
+
var et = Se()(Xe);
|
|
33389
33388
|
ae.includes(et) || (ae.push(et), ye[et] = [], et && ye[et].push(Object.assign(U()(et, Xe), { id: et, groupHeader: !0, selectable: le() }))), ye[et].push(Object.assign({ groupItem: !!et }, Xe));
|
|
33390
33389
|
});
|
|
33391
33390
|
var Ge = [];
|
|
@@ -33395,7 +33394,7 @@ function Xl(t, e) {
|
|
|
33395
33394
|
}
|
|
33396
33395
|
function ve() {
|
|
33397
33396
|
var L = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, ae = arguments.length > 1 ? arguments[1] : void 0;
|
|
33398
|
-
$e(L < 0 ? 0 : L), !ae &&
|
|
33397
|
+
$e(L < 0 ? 0 : L), !ae && Se() && c(d)[$e()] && !c(d)[$e()].selectable && It(1);
|
|
33399
33398
|
}
|
|
33400
33399
|
function Ie() {
|
|
33401
33400
|
var L = !0;
|
|
@@ -33556,12 +33555,12 @@ function Xl(t, e) {
|
|
|
33556
33555
|
!N() && k() && tn();
|
|
33557
33556
|
}), he(() => (T(z()), c(I)), () => {
|
|
33558
33557
|
z() !== c(I) && (te() || z().length !== 0) && (te() ? Y()(Rt(function* () {
|
|
33559
|
-
|
|
33558
|
+
q(!0);
|
|
33560
33559
|
var L = yield v()({ dispatch: p, loadOptions: te(), convertStringItemsToObjects: ue, filterText: z() });
|
|
33561
|
-
L ? (
|
|
33560
|
+
L ? (q(L.loading), P(P() ? L.listOpen : z().length > 0), N(P() && L.focused), G(Se() ? xe(L.filteredItems) : L.filteredItems)) : (q(!1), N(!0), P(!0));
|
|
33562
33561
|
}), ie()) : (P(!0), b() && E(Le, void 0)));
|
|
33563
|
-
}), he(() => (T(g()), T(te()), T(z()), T(G()), T(b()), T(M()), T(ne()), T(
|
|
33564
|
-
E(d, g()({ loadOptions: te(), filterText: z(), items: G(), multiple: b(), value: M(), itemId: ne(), groupBy:
|
|
33562
|
+
}), he(() => (T(g()), T(te()), T(z()), T(G()), T(b()), T(M()), T(ne()), T(Se()), T(Q()), T(_()), T(pe())), () => {
|
|
33563
|
+
E(d, g()({ loadOptions: te(), filterText: z(), items: G(), multiple: b(), value: M(), itemId: ne(), groupBy: Se(), label: Q(), filterSelectedItems: _(), itemFilter: pe(), convertStringItemsToObjects: ue, filterGroupedItems: xe }));
|
|
33565
33564
|
}), he(() => (T(b()), T(P()), T(M()), c(d)), () => {
|
|
33566
33565
|
!b() && P() && M() && c(d) && ve(c(d).findIndex((L) => L[ne()] === M()[ne()]), !0);
|
|
33567
33566
|
}), he(() => (T(P()), T(b())), () => {
|
|
@@ -33575,8 +33574,8 @@ function Xl(t, e) {
|
|
|
33575
33574
|
E(i, b() ? M() && M().length > 0 : M());
|
|
33576
33575
|
}), he(() => (c(i), T(z())), () => {
|
|
33577
33576
|
E(o, c(i) && z().length > 0);
|
|
33578
|
-
}), he(() => (c(i), T(D()), T(O()), T(
|
|
33579
|
-
E(s, c(i) && D() && !O() && !
|
|
33577
|
+
}), he(() => (c(i), T(D()), T(O()), T(q())), () => {
|
|
33578
|
+
E(s, c(i) && D() && !O() && !q());
|
|
33580
33579
|
}), he(() => (T(V()), T(b()), T(H()), T(M())), () => {
|
|
33581
33580
|
var L;
|
|
33582
33581
|
E(a, V() && b() || b() && ((L = M()) === null || L === void 0 ? void 0 : L.length) === 0 ? H() : M() ? "" : H());
|
|
@@ -33758,7 +33757,7 @@ function Xl(t, e) {
|
|
|
33758
33757
|
}), oe(L, ae);
|
|
33759
33758
|
};
|
|
33760
33759
|
Ee(di, (L) => {
|
|
33761
|
-
|
|
33760
|
+
q() && L(ni);
|
|
33762
33761
|
});
|
|
33763
33762
|
var Br = ce(di, 2), ar = (L) => {
|
|
33764
33763
|
var ae = QF();
|
|
@@ -33803,7 +33802,7 @@ function Xl(t, e) {
|
|
|
33803
33802
|
T(S()), T(M()), se(() => S() && (!M() || M().length === 0)) && L(sn);
|
|
33804
33803
|
}), Mi(() => Be("pointerup", or, Ua(Nn))), gr(or, (L) => w(L), () => w()), Wi(or, (L) => er?.(L)), We(() => {
|
|
33805
33804
|
var L;
|
|
33806
|
-
Yn = Ft(or, 1, "svelte-select ".concat((L = Ye()) !== null && L !== void 0 ? L : ""), "svelte-1ul7oo4", Yn, { multi: b(), disabled: O(), focused: N(), "list-open": P(), "show-chevron": ke(), error:
|
|
33805
|
+
Yn = Ft(or, 1, "svelte-select ".concat((L = Ye()) !== null && L !== void 0 ? L : ""), "svelte-1ul7oo4", Yn, { multi: b(), disabled: O(), focused: N(), "list-open": P(), "show-chevron": ke(), error: B() }), Qo(or, R());
|
|
33807
33806
|
}), Be("keydown", yr, je), Be("blur", yr, Te), Be("focus", yr, Ke), ng(yr, z), oe(t, or), $t(e, "getFilteredItems", J), $t(e, "handleClear", ir), Ct(zr);
|
|
33808
33807
|
}
|
|
33809
33808
|
zt(`/* over all fonts, sizes, and colors */
|
|
@@ -33945,7 +33944,7 @@ function nU(t, e) {
|
|
|
33945
33944
|
}, set value(_) {
|
|
33946
33945
|
E(k, _);
|
|
33947
33946
|
}, $$legacy: !0 });
|
|
33948
|
-
var pe = ce(Q, 2),
|
|
33947
|
+
var pe = ce(Q, 2), Se = ce(z), ge = ce(ee(Se)), le = ee(ge), ne = ee(le);
|
|
33949
33948
|
Xl(ne, { class: "jse-sort-path", showChevron: !0, get items() {
|
|
33950
33949
|
return c(d);
|
|
33951
33950
|
}, get value() {
|
|
@@ -33959,8 +33958,8 @@ function nU(t, e) {
|
|
|
33959
33958
|
}, set value(_) {
|
|
33960
33959
|
E(O, _);
|
|
33961
33960
|
}, $$legacy: !0 });
|
|
33962
|
-
var te = ce(
|
|
33963
|
-
Xl(ee(
|
|
33961
|
+
var te = ce(Se), R = ce(ee(te)), B = ee(R);
|
|
33962
|
+
Xl(ee(B), { class: "jse-projection-paths", multiple: !0, showChevron: !0, get items() {
|
|
33964
33963
|
return c(f);
|
|
33965
33964
|
}, get value() {
|
|
33966
33965
|
return c(h);
|
|
@@ -34490,13 +34489,13 @@ function jx(t, e) {
|
|
|
34490
34489
|
pn(ee(H), { get data() {
|
|
34491
34490
|
return vc;
|
|
34492
34491
|
} });
|
|
34493
|
-
var V = ce(H), G = ee(V), Q = ce(V), pe = ee(Q),
|
|
34492
|
+
var V = ce(H), G = ee(V), Q = ce(V), pe = ee(Q), Se = ee(ce(Q)), ge = (le) => {
|
|
34494
34493
|
var ne = pU();
|
|
34495
34494
|
pn(ee(ne), { get data() {
|
|
34496
34495
|
return D5;
|
|
34497
34496
|
} }), Be("click", ne, ca(s)), oe(le, ne);
|
|
34498
34497
|
};
|
|
34499
|
-
Ee(
|
|
34498
|
+
Ee(Se, (le) => {
|
|
34500
34499
|
T(r()), se(() => M === 0 && r().length > 1) && le(ge);
|
|
34501
34500
|
}), We((le) => {
|
|
34502
34501
|
var ne;
|
|
@@ -35604,33 +35603,33 @@ var hr = Zg(() => IU), L0 = we('<div class="jse-separator svelte-1qi6rc1">:</div
|
|
|
35604
35603
|
function $1(t, e) {
|
|
35605
35604
|
St(e, !1);
|
|
35606
35605
|
var n = Z(void 0, !0), r = Z(void 0, !0), i = A(e, "pointer", 9), o = A(e, "value", 9), s = A(e, "state", 9), a = A(e, "validationErrors", 9), l = A(e, "searchResults", 9), u = A(e, "selection", 9), d = A(e, "context", 9), f = A(e, "onDragSelectionStart", 9), h = xi("jsoneditor:JSONNode"), p = Z(void 0, !0), m = void 0, g = Z(void 0, !0), v = Z(void 0, !0), y = Z(void 0, !0), x = Z(void 0, !0), w = Z(void 0, !0), k = Z(void 0, !0), b = Z(void 0, !0);
|
|
35607
|
-
function j(
|
|
35608
|
-
|
|
35609
|
-
var P = lx(
|
|
35606
|
+
function j(q) {
|
|
35607
|
+
q.stopPropagation();
|
|
35608
|
+
var P = lx(q);
|
|
35610
35609
|
d().onExpand(c(v), !c(y), P);
|
|
35611
35610
|
}
|
|
35612
35611
|
function O() {
|
|
35613
35612
|
d().onExpand(c(v), !0);
|
|
35614
35613
|
}
|
|
35615
|
-
function N(
|
|
35616
|
-
var Y = eh(c(v), Object.keys(o()),
|
|
35614
|
+
function N(q, P) {
|
|
35615
|
+
var Y = eh(c(v), Object.keys(o()), q, P);
|
|
35617
35616
|
return d().onPatch(Y), rn(po(Y[0].path));
|
|
35618
35617
|
}
|
|
35619
|
-
function M(
|
|
35620
|
-
d().onDrag(
|
|
35618
|
+
function M(q) {
|
|
35619
|
+
d().onDrag(q);
|
|
35621
35620
|
}
|
|
35622
|
-
function z(
|
|
35623
|
-
hr().selecting && (hr(hr().selecting = !1),
|
|
35621
|
+
function z(q) {
|
|
35622
|
+
hr().selecting && (hr(hr().selecting = !1), q.stopPropagation()), d().onDragEnd(), document.removeEventListener("mousemove", M, !0), document.removeEventListener("mouseup", z);
|
|
35624
35623
|
}
|
|
35625
35624
|
function H() {
|
|
35626
|
-
var
|
|
35627
|
-
return ((
|
|
35625
|
+
var q;
|
|
35626
|
+
return ((q = d().findElement([])) === null || q === void 0 || (q = q.getBoundingClientRect()) === null || q === void 0 ? void 0 : q.top) || 0;
|
|
35628
35627
|
}
|
|
35629
|
-
function V(
|
|
35630
|
-
var Y = H() -
|
|
35631
|
-
return P.clientY -
|
|
35628
|
+
function V(q, P) {
|
|
35629
|
+
var Y = H() - q.initialContentTop;
|
|
35630
|
+
return P.clientY - q.initialClientY - Y;
|
|
35632
35631
|
}
|
|
35633
|
-
function G(
|
|
35632
|
+
function G(q) {
|
|
35634
35633
|
if (!d().readOnly && u()) {
|
|
35635
35634
|
var P = hn(mt(u()));
|
|
35636
35635
|
if (en(c(v), P)) {
|
|
@@ -35654,44 +35653,44 @@ function $1(t, e) {
|
|
|
35654
35653
|
var ie = d().getJson();
|
|
35655
35654
|
if (ie !== void 0) {
|
|
35656
35655
|
var Ae = ma(ie, u()), me = Y.findIndex((ke) => en(ke.path, Ae)), re = D0({ json: ie, selection: d().getSelection(), deltaY: 0, items: Y }).offset;
|
|
35657
|
-
E(g, { initialTarget:
|
|
35656
|
+
E(g, { initialTarget: q.target, initialClientY: q.clientY, initialContentTop: H(), selectionStartIndex: me, selectionItemsCount: Ol(ie, u()).length, items: Y, offset: re, didMoveItems: !1 }), hr(hr().dragging = !0), document.addEventListener("mousemove", Q, !0), document.addEventListener("mouseup", pe);
|
|
35658
35657
|
}
|
|
35659
35658
|
} else h("Cannot drag the current selection (probably spread over multiple sections)");
|
|
35660
|
-
} else f()(
|
|
35659
|
+
} else f()(q);
|
|
35661
35660
|
}
|
|
35662
35661
|
}
|
|
35663
|
-
function Q(
|
|
35662
|
+
function Q(q) {
|
|
35664
35663
|
if (c(g)) {
|
|
35665
35664
|
var P = d().getJson();
|
|
35666
35665
|
if (P === void 0) return;
|
|
35667
|
-
var Y = V(c(g),
|
|
35666
|
+
var Y = V(c(g), q), ie = D0({ json: P, selection: d().getSelection(), deltaY: Y, items: c(g).items }).offset;
|
|
35668
35667
|
ie !== c(g).offset && (h("drag selection", ie, Y), E(g, Ve(Ve({}, c(g)), {}, { offset: ie, didMoveItems: !0 })));
|
|
35669
35668
|
}
|
|
35670
35669
|
}
|
|
35671
|
-
function pe(
|
|
35670
|
+
function pe(q) {
|
|
35672
35671
|
if (c(g)) {
|
|
35673
35672
|
var P = d().getJson();
|
|
35674
35673
|
if (P === void 0) return;
|
|
35675
|
-
var Y = V(c(g),
|
|
35674
|
+
var Y = V(c(g), q), ie = D0({ json: P, selection: d().getSelection(), deltaY: Y, items: c(g).items }), Ae = ie.operations, me = ie.updatedSelection;
|
|
35676
35675
|
if (Ae) d().onPatch(Ae, (tt, $e) => ({ state: $e, selection: me ?? u() }));
|
|
35677
|
-
else if (
|
|
35678
|
-
var re = S0(
|
|
35676
|
+
else if (q.target === c(g).initialTarget && !c(g).didMoveItems) {
|
|
35677
|
+
var re = S0(q.target), ke = IA(q.target);
|
|
35679
35678
|
ke && d().onSelect(jS(re, ke));
|
|
35680
35679
|
}
|
|
35681
35680
|
E(g, void 0), hr(hr().dragging = !1), document.removeEventListener("mousemove", Q, !0), document.removeEventListener("mouseup", pe);
|
|
35682
35681
|
}
|
|
35683
35682
|
}
|
|
35684
|
-
function
|
|
35685
|
-
|
|
35683
|
+
function Se(q) {
|
|
35684
|
+
q.shiftKey || (q.stopPropagation(), q.preventDefault(), d().onSelect(Na(c(v))));
|
|
35686
35685
|
}
|
|
35687
|
-
function ge(
|
|
35688
|
-
|
|
35686
|
+
function ge(q) {
|
|
35687
|
+
q.shiftKey || (q.stopPropagation(), q.preventDefault(), d().onSelect(ja(c(v))));
|
|
35689
35688
|
}
|
|
35690
|
-
function le(
|
|
35691
|
-
d().onSelect(Na(c(v))), cr(), d().onContextMenu(
|
|
35689
|
+
function le(q) {
|
|
35690
|
+
d().onSelect(Na(c(v))), cr(), d().onContextMenu(q);
|
|
35692
35691
|
}
|
|
35693
|
-
function ne(
|
|
35694
|
-
d().onSelect(ja(c(v))), cr(), d().onContextMenu(
|
|
35692
|
+
function ne(q) {
|
|
35693
|
+
d().onSelect(ja(c(v))), cr(), d().onContextMenu(q);
|
|
35695
35694
|
}
|
|
35696
35695
|
he(() => T(i()), () => {
|
|
35697
35696
|
E(v, po(i()));
|
|
@@ -35704,14 +35703,14 @@ function $1(t, e) {
|
|
|
35704
35703
|
}), he(() => T(s()), () => {
|
|
35705
35704
|
E(w, gi(s()) ? s().visibleSections : void 0);
|
|
35706
35705
|
}), he(() => T(a()), () => {
|
|
35707
|
-
var
|
|
35708
|
-
E(k, (
|
|
35706
|
+
var q;
|
|
35707
|
+
E(k, (q = a()) === null || q === void 0 ? void 0 : q.validationError);
|
|
35709
35708
|
}), he(() => (T(d()), T(u()), c(v)), () => {
|
|
35710
35709
|
E(b, Ef(d().getJson(), u(), c(v)));
|
|
35711
35710
|
}), he(() => c(v), () => {
|
|
35712
35711
|
E(r, c(v).length === 0);
|
|
35713
35712
|
}), Ln(), Ut(!0);
|
|
35714
|
-
var te, R,
|
|
35713
|
+
var te, R, B = YU(), _ = ee(B), S = (q) => {
|
|
35715
35714
|
var P = UU(), Y = Mt(P), ie = ee(Y), Ae = ee(ie), me = ee(Ae), re = (Te) => {
|
|
35716
35715
|
pn(Te, { get data() {
|
|
35717
35716
|
return Oa;
|
|
@@ -35777,7 +35776,7 @@ function $1(t, e) {
|
|
|
35777
35776
|
});
|
|
35778
35777
|
var qe = ce(ve, 2), Ze = (Te) => {
|
|
35779
35778
|
var Tt = qS();
|
|
35780
|
-
Be("click", Tt,
|
|
35779
|
+
Be("click", Tt, Se), oe(Te, Tt);
|
|
35781
35780
|
}, Qe = (Te) => {
|
|
35782
35781
|
var Tt = Ed();
|
|
35783
35782
|
Be("click", Tt, ge), oe(Te, Tt);
|
|
@@ -35852,8 +35851,8 @@ function $1(t, e) {
|
|
|
35852
35851
|
};
|
|
35853
35852
|
Ee(je, (Te) => {
|
|
35854
35853
|
c(y) && Te(Ke);
|
|
35855
|
-
}), Be("click", Ae, j), oe(
|
|
35856
|
-
}, C = Xt(() => (T(o()), se(() => Array.isArray(o())))), $ = (
|
|
35854
|
+
}), Be("click", Ae, j), oe(q, P);
|
|
35855
|
+
}, C = Xt(() => (T(o()), se(() => Array.isArray(o())))), $ = (q) => {
|
|
35857
35856
|
var P = JU(), Y = Mt(P), ie = ee(Y), Ae = ee(ie), me = ee(Ae), re = (Te) => {
|
|
35858
35857
|
pn(Te, { get data() {
|
|
35859
35858
|
return Oa;
|
|
@@ -35908,7 +35907,7 @@ function $1(t, e) {
|
|
|
35908
35907
|
});
|
|
35909
35908
|
var qe = ce(ve, 2), Ze = (Te) => {
|
|
35910
35909
|
var Tt = qS();
|
|
35911
|
-
Be("click", Tt,
|
|
35910
|
+
Be("click", Tt, Se), oe(Te, Tt);
|
|
35912
35911
|
}, Qe = (Te) => {
|
|
35913
35912
|
var Tt = Ed();
|
|
35914
35913
|
Be("click", Tt, ge), oe(Te, Tt);
|
|
@@ -36027,8 +36026,8 @@ function $1(t, e) {
|
|
|
36027
36026
|
};
|
|
36028
36027
|
Ee(je, (Te) => {
|
|
36029
36028
|
c(y) && Te(Ke);
|
|
36030
|
-
}), Be("click", Ae, j), oe(
|
|
36031
|
-
}, U = Xt(() => (T(Rn), T(o()), se(() => Rn(o())))), J = (
|
|
36029
|
+
}), Be("click", Ae, j), oe(q, P);
|
|
36030
|
+
}, U = Xt(() => (T(Rn), T(o()), se(() => Rn(o())))), J = (q) => {
|
|
36032
36031
|
var P = GU(), Y = ee(P), ie = ee(Y);
|
|
36033
36032
|
$r(ie, e, "identifier", {}, null);
|
|
36034
36033
|
var Ae = ce(ie, 2), me = (ue) => {
|
|
@@ -36076,49 +36075,49 @@ function $1(t, e) {
|
|
|
36076
36075
|
};
|
|
36077
36076
|
Ee(K, (ue) => {
|
|
36078
36077
|
c(r) || ue(X);
|
|
36079
|
-
}), oe(
|
|
36078
|
+
}), oe(q, P);
|
|
36080
36079
|
};
|
|
36081
|
-
Ee(_, (
|
|
36082
|
-
c(C) ?
|
|
36080
|
+
Ee(_, (q) => {
|
|
36081
|
+
c(C) ? q(S) : c(U) ? q($, 1) : q(J, -1);
|
|
36083
36082
|
});
|
|
36084
|
-
var de = ce(_, 2), Ne = (
|
|
36083
|
+
var de = ce(_, 2), Ne = (q) => {
|
|
36085
36084
|
var P, Y = QU(), ie = ee(Y), Ae = lt(() => (c(b), T(uo), T(u()), se(() => c(b) && uo(u()))));
|
|
36086
36085
|
Va(ie, { insert: !0, get selected() {
|
|
36087
36086
|
return c(Ae);
|
|
36088
36087
|
}, onContextMenu: ne }), We((me) => {
|
|
36089
36088
|
P = Ft(Y, 1, "jse-insert-area jse-after svelte-1qi6rc1", null, P, me), kn(Y, "title", O0);
|
|
36090
|
-
}, [() => ({ "jse-hovered": c(p) === Mp, "jse-selected": c(b) && uo(u()) })]), oe(
|
|
36089
|
+
}, [() => ({ "jse-hovered": c(p) === Mp, "jse-selected": c(b) && uo(u()) })]), oe(q, Y);
|
|
36091
36090
|
}, D = Xt(() => (T(d()), c(p), T(Mp), c(b), T(uo), T(u()), se(() => !d().readOnly && (c(p) === Mp || c(b) && uo(u())))));
|
|
36092
|
-
Ee(de, (
|
|
36093
|
-
c(D) &&
|
|
36094
|
-
}), We((
|
|
36095
|
-
te = Ft(
|
|
36096
|
-
}, [() => Cl((T(vs), c(y), T(d()), c(v), T(o()), se(() => vs("jse-json-node", { "jse-expanded": c(y) }, d().onClassName(c(v), o()))))), () => ({ "jse-root": c(r), "jse-selected": c(b) && Xn(u()), "jse-selected-value": c(b) && An(u()), "jse-readonly": d().readOnly, "jse-hovered": c(p) === sS })]), Be("mousedown",
|
|
36097
|
-
if ((
|
|
36091
|
+
Ee(de, (q) => {
|
|
36092
|
+
c(D) && q(Ne);
|
|
36093
|
+
}), We((q, P) => {
|
|
36094
|
+
te = Ft(B, 1, q, "svelte-1qi6rc1", te, P), kn(B, "data-path", c(n)), kn(B, "aria-selected", c(b)), R = Qo(B, "", R, { "--level": (c(v), se(() => c(v).length)) });
|
|
36095
|
+
}, [() => Cl((T(vs), c(y), T(d()), c(v), T(o()), se(() => vs("jse-json-node", { "jse-expanded": c(y) }, d().onClassName(c(v), o()))))), () => ({ "jse-root": c(r), "jse-selected": c(b) && Xn(u()), "jse-selected-value": c(b) && An(u()), "jse-readonly": d().readOnly, "jse-hovered": c(p) === sS })]), Be("mousedown", B, function(q) {
|
|
36096
|
+
if ((q.buttons === 1 || q.buttons === 2) && !((P = q.target).nodeName === "DIV" && P.contentEditable === "true" || q.buttons === 1 && NA(q.target, "BUTTON"))) {
|
|
36098
36097
|
var P;
|
|
36099
|
-
|
|
36100
|
-
var Y = S0(
|
|
36101
|
-
if (!u() || Y === Gn.after || Y === Gn.inside || u().type !== Y && u().type !== Gn.multi || !Ef(ie, u(), c(v))) if (hr(hr().selecting = !0), hr(hr().selectionAnchor = c(v)), hr(hr().selectionAnchorType = Y), hr(hr().selectionFocus = c(v)),
|
|
36098
|
+
q.stopPropagation(), q.preventDefault(), d().focus(), document.addEventListener("mousemove", M, !0), document.addEventListener("mouseup", z);
|
|
36099
|
+
var Y = S0(q.target), ie = d().getJson(), Ae = d().getDocumentState();
|
|
36100
|
+
if (!u() || Y === Gn.after || Y === Gn.inside || u().type !== Y && u().type !== Gn.multi || !Ef(ie, u(), c(v))) if (hr(hr().selecting = !0), hr(hr().selectionAnchor = c(v)), hr(hr().selectionAnchorType = Y), hr(hr().selectionFocus = c(v)), q.shiftKey) {
|
|
36102
36101
|
var me = d().getSelection();
|
|
36103
36102
|
me && d().onSelect(Fi(hc(me), c(v)));
|
|
36104
|
-
} else if (Y === Gn.multi) if (c(r) &&
|
|
36103
|
+
} else if (Y === Gn.multi) if (c(r) && q.target.hasAttribute("data-path")) {
|
|
36105
36104
|
var re = rn(FA(o(), Ae));
|
|
36106
36105
|
d().onSelect(E1(re));
|
|
36107
36106
|
} else d().onSelect(Fi(c(v), c(v)));
|
|
36108
36107
|
else ie !== void 0 && d().onSelect(jS(Y, c(v)));
|
|
36109
|
-
else
|
|
36108
|
+
else q.button === 0 && f()(q);
|
|
36110
36109
|
}
|
|
36111
|
-
}), Be("mousemove",
|
|
36110
|
+
}), Be("mousemove", B, function(q) {
|
|
36112
36111
|
if (hr().selecting) {
|
|
36113
|
-
|
|
36114
|
-
var P = S0(
|
|
36112
|
+
q.preventDefault(), q.stopPropagation(), hr().selectionFocus === void 0 && window.getSelection && window.getSelection().empty();
|
|
36113
|
+
var P = S0(q.target);
|
|
36115
36114
|
en(c(v), hr().selectionFocus) && P === hr().selectionAnchorType || (hr(hr().selectionFocus = c(v)), hr(hr().selectionAnchorType = P), d().onSelect(Fi(hr().selectionAnchor || hr().selectionFocus, hr().selectionFocus)));
|
|
36116
36115
|
}
|
|
36117
|
-
}), Be("mouseover",
|
|
36118
|
-
hr().selecting || hr().dragging || (
|
|
36119
|
-
}), Be("mouseout",
|
|
36120
|
-
|
|
36121
|
-
}), oe(t,
|
|
36116
|
+
}), Be("mouseover", B, function(q) {
|
|
36117
|
+
hr().selecting || hr().dragging || (q.stopPropagation(), il(q.target, "data-type", "selectable-value") ? E(p, sS) : il(q.target, "data-type", "selectable-key") ? E(p, void 0) : il(q.target, "data-type", "insert-selection-area-inside") ? E(p, Wl) : il(q.target, "data-type", "insert-selection-area-after") && E(p, Mp), clearTimeout(m));
|
|
36118
|
+
}), Be("mouseout", B, function(q) {
|
|
36119
|
+
q.stopPropagation(), m = window.setTimeout(() => E(p, void 0));
|
|
36120
|
+
}), oe(t, B), Ct();
|
|
36122
36121
|
}
|
|
36123
36122
|
var mM = { prefix: "fas", iconName: "jsoneditor-expand", icon: [512, 512, [], "", "M 0,448 V 512 h 512 v -64 z M 0,0 V 64 H 512 V 0 Z M 256,96 128,224 h 256 z M 256,416 384,288 H 128 Z"] }, gM = { prefix: "fas", iconName: "jsoneditor-collapse", icon: [512, 512, [], "", "m 0,224 v 64 h 512 v -64 z M 256,192 384,64 H 128 Z M 256,320 128,448 h 256 z"] }, US = { prefix: "fas", iconName: "jsoneditor-format", icon: [512, 512, [], "", "M 0,32 v 64 h 416 v -64 z M 160,160 v 64 h 352 v -64 z M 160,288 v 64 h 288 v -64 z M 0,416 v 64 h 320 v -64 z"] }, XU = { prefix: "fas", iconName: "jsoneditor-compact", icon: [512, 512, [], "", "M 0,32 v 64 h 512 v -64 z M 0,160 v 64 h 512 v -64 z M 0,288 v 64 h 352 v -64 z"] };
|
|
36124
36123
|
zt(`/* over all fonts, sizes, and colors */
|
|
@@ -36613,20 +36612,20 @@ function hV(t, e) {
|
|
|
36613
36612
|
}), Ln(), Ut(!0);
|
|
36614
36613
|
var y = fV(), x = ee(y), w = (H) => {
|
|
36615
36614
|
var V = dV(), G = Mt(V);
|
|
36616
|
-
Dr(G, 1, () => c(n), Kr, (
|
|
36617
|
-
VS(
|
|
36615
|
+
Dr(G, 1, () => c(n), Kr, (Se, ge, le) => {
|
|
36616
|
+
VS(Se, { getItems: h, get path() {
|
|
36618
36617
|
return c(n);
|
|
36619
36618
|
}, index: le, onSelect: m });
|
|
36620
36619
|
});
|
|
36621
|
-
var Q = ce(G, 2), pe = (
|
|
36622
|
-
VS(
|
|
36620
|
+
var Q = ce(G, 2), pe = (Se) => {
|
|
36621
|
+
VS(Se, { getItems: h, get path() {
|
|
36623
36622
|
return c(n);
|
|
36624
36623
|
}, get index() {
|
|
36625
36624
|
return c(n), se(() => c(n).length);
|
|
36626
36625
|
}, onSelect: m });
|
|
36627
36626
|
};
|
|
36628
|
-
Ee(Q, (
|
|
36629
|
-
c(r) &&
|
|
36627
|
+
Ee(Q, (Se) => {
|
|
36628
|
+
c(r) && Se(pe);
|
|
36630
36629
|
}), oe(H, V);
|
|
36631
36630
|
}, k = (H) => {
|
|
36632
36631
|
uV(H, { get path() {
|
|
@@ -36803,16 +36802,16 @@ function bM(t, e) {
|
|
|
36803
36802
|
if (o("handleReplace", { replaceText: c(w), activeItem: Y }), c(b) && Y && s() !== void 0) {
|
|
36804
36803
|
E(b, Ve(Ve({}, SS(c(b))), {}, { activeIndex: c(r) }));
|
|
36805
36804
|
var ie = iF(s(), a(), c(w), Y, l()), Ae = ie.operations, me = ie.newSelection;
|
|
36806
|
-
g()(Ae, (re, ke) => ({ state: ke, selection: me })), cr(), yield O.flush(), yield
|
|
36805
|
+
g()(Ae, (re, ke) => ({ state: ke, selection: me })), cr(), yield O.flush(), yield B();
|
|
36807
36806
|
}
|
|
36808
36807
|
}
|
|
36809
36808
|
})).apply(this, arguments);
|
|
36810
36809
|
}
|
|
36811
36810
|
function pe() {
|
|
36812
|
-
return
|
|
36811
|
+
return Se.apply(this, arguments);
|
|
36813
36812
|
}
|
|
36814
|
-
function
|
|
36815
|
-
return (
|
|
36813
|
+
function Se() {
|
|
36814
|
+
return (Se = Rt(function* () {
|
|
36816
36815
|
if (!f()) {
|
|
36817
36816
|
o("handleReplaceAll", { text: c(y), replaceText: c(w) });
|
|
36818
36817
|
var P = (function(Ae, me, re, ke, tt) {
|
|
@@ -36836,7 +36835,7 @@ function bM(t, e) {
|
|
|
36836
36835
|
}
|
|
36837
36836
|
}), { operations: K, newSelection: I };
|
|
36838
36837
|
})(s(), a(), c(y), c(w), l()), Y = P.operations, ie = P.newSelection;
|
|
36839
|
-
g()(Y, (Ae, me) => ({ state: me, selection: ie })), yield
|
|
36838
|
+
g()(Y, (Ae, me) => ({ state: me, selection: ie })), yield B();
|
|
36840
36839
|
}
|
|
36841
36840
|
})).apply(this, arguments);
|
|
36842
36841
|
}
|
|
@@ -36848,7 +36847,7 @@ function bM(t, e) {
|
|
|
36848
36847
|
}
|
|
36849
36848
|
function ne() {
|
|
36850
36849
|
return (ne = Rt(function* () {
|
|
36851
|
-
E(b, c(b) ? SS(c(b)) : void 0), yield
|
|
36850
|
+
E(b, c(b) ? SS(c(b)) : void 0), yield B();
|
|
36852
36851
|
})).apply(this, arguments);
|
|
36853
36852
|
}
|
|
36854
36853
|
function te() {
|
|
@@ -36859,10 +36858,10 @@ function bM(t, e) {
|
|
|
36859
36858
|
E(b, c(b) ? (function(P) {
|
|
36860
36859
|
var Y = P.activeIndex > 0 ? P.activeIndex - 1 : P.items.length - 1, ie = P.items[Y], Ae = P.items.map((me, re) => Ve(Ve({}, me), {}, { active: re === Y }));
|
|
36861
36860
|
return Ve(Ve({}, P), {}, { items: Ae, activeItem: ie, activeIndex: Y });
|
|
36862
|
-
})(c(b)) : void 0), yield
|
|
36861
|
+
})(c(b)) : void 0), yield B();
|
|
36863
36862
|
}), R.apply(this, arguments);
|
|
36864
36863
|
}
|
|
36865
|
-
function
|
|
36864
|
+
function B() {
|
|
36866
36865
|
return _.apply(this, arguments);
|
|
36867
36866
|
}
|
|
36868
36867
|
function _() {
|
|
@@ -36880,7 +36879,7 @@ function bM(t, e) {
|
|
|
36880
36879
|
}
|
|
36881
36880
|
function C() {
|
|
36882
36881
|
return C = Rt(function* (P) {
|
|
36883
|
-
yield U(u(), P, s()), yield
|
|
36882
|
+
yield U(u(), P, s()), yield B();
|
|
36884
36883
|
}), C.apply(this, arguments);
|
|
36885
36884
|
}
|
|
36886
36885
|
function $() {
|
|
@@ -36926,7 +36925,7 @@ function bM(t, e) {
|
|
|
36926
36925
|
}), he(() => T(s()), () => {
|
|
36927
36926
|
O(s());
|
|
36928
36927
|
}), Ln(), Ut(!0);
|
|
36929
|
-
var Ne = _r(), D = Mt(Ne),
|
|
36928
|
+
var Ne = _r(), D = Mt(Ne), q = (P) => {
|
|
36930
36929
|
var Y = gV(), ie = ee(Y), Ae = ee(ie), me = (qe) => {
|
|
36931
36930
|
var Ze = pV(), Qe = ee(Ze), je = lt(() => d() ? Oa : rf);
|
|
36932
36931
|
pn(Qe, { get data() {
|
|
@@ -36974,7 +36973,7 @@ function bM(t, e) {
|
|
|
36974
36973
|
}), Be("click", X, le), Be("click", ue, te), Be("click", xe, de), Be("keydown", ie, M), oe(P, Y);
|
|
36975
36974
|
};
|
|
36976
36975
|
Ee(D, (P) => {
|
|
36977
|
-
u() && P(
|
|
36976
|
+
u() && P(q);
|
|
36978
36977
|
}), oe(t, Ne), Ct();
|
|
36979
36978
|
}
|
|
36980
36979
|
var Tf = /* @__PURE__ */ Symbol("path");
|
|
@@ -37638,7 +37637,7 @@ function EM(t, e) {
|
|
|
37638
37637
|
}, get onRequestClose() {
|
|
37639
37638
|
return r();
|
|
37640
37639
|
} });
|
|
37641
|
-
},
|
|
37640
|
+
}, Se = Xt(() => (T(ua), c(V), se(() => ua(c(V))))), ge = (S) => {
|
|
37642
37641
|
q0(S, { get item() {
|
|
37643
37642
|
return c(V);
|
|
37644
37643
|
}, get onRequestClose() {
|
|
@@ -37653,7 +37652,7 @@ function EM(t, e) {
|
|
|
37653
37652
|
}, get onRequestClose() {
|
|
37654
37653
|
return r();
|
|
37655
37654
|
} });
|
|
37656
|
-
}, D = Xt(() => (T(ua), c(U), se(() => ua(c(U))))),
|
|
37655
|
+
}, D = Xt(() => (T(ua), c(U), se(() => ua(c(U))))), q = (ke) => {
|
|
37657
37656
|
q0(ke, { className: "left", get item() {
|
|
37658
37657
|
return c(U);
|
|
37659
37658
|
}, get onRequestClose() {
|
|
@@ -37669,17 +37668,17 @@ function EM(t, e) {
|
|
|
37669
37668
|
We(($e) => Ot(tt, $e), [() => (c(U), se(() => a(c(U))))]), oe(ke, tt);
|
|
37670
37669
|
};
|
|
37671
37670
|
Ee(de, (ke) => {
|
|
37672
|
-
c(D) ? ke(Ne) : c(P) ? ke(
|
|
37671
|
+
c(D) ? ke(Ne) : c(P) ? ke(q, 1) : c(ie) ? ke(Y, 2) : c(me) ? ke(Ae, 3) : ke(re, -1);
|
|
37673
37672
|
}), oe($, J);
|
|
37674
37673
|
}), oe(S, C);
|
|
37675
37674
|
}, te = Xt(() => (T(dS), c(V), se(() => dS(c(V))))), R = (S) => {
|
|
37676
37675
|
oe(S, F0());
|
|
37677
|
-
},
|
|
37676
|
+
}, B = Xt(() => (T(Ja), c(V), se(() => Ja(c(V))))), _ = (S) => {
|
|
37678
37677
|
var C = Si();
|
|
37679
37678
|
We(($) => Ot(C, $), [() => (c(V), se(() => a(c(V))))]), oe(S, C);
|
|
37680
37679
|
};
|
|
37681
37680
|
Ee(Q, (S) => {
|
|
37682
|
-
c(
|
|
37681
|
+
c(Se) ? S(pe) : c(le) ? S(ge, 1) : c(te) ? S(ne, 2) : c(B) ? S(R, 3) : S(_, -1);
|
|
37683
37682
|
}), oe(H, G);
|
|
37684
37683
|
}), oe(M, z);
|
|
37685
37684
|
}, b = Xt(() => (T(uS), c(p), se(() => uS(c(p))))), j = (M) => {
|
|
@@ -37906,7 +37905,7 @@ function q1(t, e) {
|
|
|
37906
37905
|
St(e, !1);
|
|
37907
37906
|
var n = Z(void 0, !0), r = xi("jsoneditor:TreeMode"), i = typeof window > "u";
|
|
37908
37907
|
r("isSSR:", i);
|
|
37909
|
-
var o = ku(), s = ku(), a = Pl("absolute-popup"), l = a.openAbsolutePopup, u = a.closeAbsolutePopup, d = Z(void 0, !0), f = Z(void 0, !0), h = Z(void 0, !0), p = !1, m = uM(), g = A(e, "readOnly", 9), v = A(e, "ariaLabel", 9, void 0), y = A(e, "externalContent", 9), x = A(e, "externalSelection", 9), w = A(e, "history", 9), k = A(e, "truncateTextSize", 9), b = A(e, "mainMenuBar", 9), j = A(e, "navigationBar", 9), O = A(e, "escapeControlCharacters", 9), N = A(e, "escapeUnicodeCharacters", 9), M = A(e, "parser", 9), z = A(e, "parseMemoizeOne", 9), H = A(e, "validator", 9), V = A(e, "validationParser", 9), G = A(e, "pathParser", 9), Q = A(e, "indentation", 9), pe = A(e, "onError", 9),
|
|
37908
|
+
var o = ku(), s = ku(), a = Pl("absolute-popup"), l = a.openAbsolutePopup, u = a.closeAbsolutePopup, d = Z(void 0, !0), f = Z(void 0, !0), h = Z(void 0, !0), p = !1, m = uM(), g = A(e, "readOnly", 9), v = A(e, "ariaLabel", 9, void 0), y = A(e, "externalContent", 9), x = A(e, "externalSelection", 9), w = A(e, "history", 9), k = A(e, "truncateTextSize", 9), b = A(e, "mainMenuBar", 9), j = A(e, "navigationBar", 9), O = A(e, "escapeControlCharacters", 9), N = A(e, "escapeUnicodeCharacters", 9), M = A(e, "parser", 9), z = A(e, "parseMemoizeOne", 9), H = A(e, "validator", 9), V = A(e, "validationParser", 9), G = A(e, "pathParser", 9), Q = A(e, "indentation", 9), pe = A(e, "onError", 9), Se = A(e, "onChange", 9), ge = A(e, "onChangeMode", 9), le = A(e, "onSelect", 9), ne = A(e, "onUndo", 9), te = A(e, "onRedo", 9), R = A(e, "onRenderValue", 9), B = A(e, "onRenderMenu", 9), _ = A(e, "onRenderContextMenu", 9), S = A(e, "onClassName", 9), C = A(e, "onFocus", 9), $ = A(e, "onBlur", 9), U = A(e, "onSortModal", 9), J = A(e, "onTransformModal", 9), de = A(e, "onJSONEditorModal", 9), Ne = !1, D = Z(!1, !0), q = Z(void 0, !0);
|
|
37910
37909
|
wx({ onMount: Di, onDestroy: es, getWindow: () => Yf(c(h)), hasFocus: () => Ne && document.hasFocus() || sx(c(h)), onFocus: () => {
|
|
37911
37910
|
p = !0, C() && C()();
|
|
37912
37911
|
}, onBlur: () => {
|
|
@@ -38088,10 +38087,10 @@ function q1(t, e) {
|
|
|
38088
38087
|
W !== void 0 && kM({ clipboardText: W, json: c(P), selection: c(re), readOnly: g(), parser: M(), onPatch: sn, onChangeText: ae, onPasteMultilineText: Vt, openRepairModal: tr });
|
|
38089
38088
|
}
|
|
38090
38089
|
function tr(W, fe) {
|
|
38091
|
-
E(
|
|
38090
|
+
E(q, { text: W, onParse: (De) => Qf(De, (ut) => Gf(ut, M())), onRepair: OA, onApply: fe, onClose: _t });
|
|
38092
38091
|
}
|
|
38093
38092
|
function Lr() {
|
|
38094
|
-
SM({ json: c(P), text: c(Y), selection: c(re), keepSelection: !1, readOnly: g(), onChange:
|
|
38093
|
+
SM({ json: c(P), text: c(Y), selection: c(re), keepSelection: !1, readOnly: g(), onChange: Se(), onPatch: sn });
|
|
38095
38094
|
}
|
|
38096
38095
|
function Hr() {
|
|
38097
38096
|
!g() && c(P) !== void 0 && c(re) && su && !jn(mt(c(re))) && (r("duplicate", { selection: c(re) }), sn(JA(c(P), Ol(c(P), c(re)))));
|
|
@@ -38253,10 +38252,10 @@ function q1(t, e) {
|
|
|
38253
38252
|
if (W.json !== void 0 || W?.text !== void 0) {
|
|
38254
38253
|
if (c(Y) !== void 0) {
|
|
38255
38254
|
var De, ut = { text: c(Y), json: void 0 };
|
|
38256
|
-
(De =
|
|
38255
|
+
(De = Se()) === null || De === void 0 || De(ut, W, { contentErrors: Tt(), patchResult: fe });
|
|
38257
38256
|
} else if (c(P) !== void 0) {
|
|
38258
38257
|
var Pe, Fe = { text: void 0, json: c(P) };
|
|
38259
|
-
(Pe =
|
|
38258
|
+
(Pe = Se()) === null || Pe === void 0 || Pe(Fe, W, { contentErrors: Tt(), patchResult: fe });
|
|
38260
38259
|
}
|
|
38261
38260
|
}
|
|
38262
38261
|
}
|
|
@@ -38459,7 +38458,7 @@ function q1(t, e) {
|
|
|
38459
38458
|
}, get history() {
|
|
38460
38459
|
return w();
|
|
38461
38460
|
}, onExpandAll: Ge, onCollapseAll: Xe, onUndo: Cr, onRedo: Qt, onSort: yr, onTransform: ni, onContextMenu: kt, onCopy: $n, get onRenderMenu() {
|
|
38462
|
-
return
|
|
38461
|
+
return B();
|
|
38463
38462
|
}, get showSearch() {
|
|
38464
38463
|
return c(pt);
|
|
38465
38464
|
}, set showSearch(fe) {
|
|
@@ -38616,13 +38615,13 @@ function q1(t, e) {
|
|
|
38616
38615
|
c(D) && W(Lt);
|
|
38617
38616
|
});
|
|
38618
38617
|
var yn = ce(vt, 2), Pr = (W) => {
|
|
38619
|
-
hM(W, ul(() => c(
|
|
38618
|
+
hM(W, ul(() => c(q), { onClose: () => {
|
|
38620
38619
|
var fe;
|
|
38621
|
-
(fe = c(
|
|
38620
|
+
(fe = c(q)) === null || fe === void 0 || fe.onClose(), E(q, void 0);
|
|
38622
38621
|
} }));
|
|
38623
38622
|
};
|
|
38624
38623
|
return Ee(yn, (W) => {
|
|
38625
|
-
c(
|
|
38624
|
+
c(q) && W(Pr);
|
|
38626
38625
|
}), We(() => {
|
|
38627
38626
|
kn(be, "aria-label", v()), F = Ft(be, 1, "jse-tree-mode svelte-10mlrw4", null, F, { "no-main-menu": !b() });
|
|
38628
38627
|
}), Be("keydown", be, function(W) {
|
|
@@ -38943,16 +38942,16 @@ var Ad = Zg(() => vF), Bc = Zg(() => bF), qV = we('<div class="query-error svelt
|
|
|
38943
38942
|
function HV(t, e) {
|
|
38944
38943
|
var n, r, i;
|
|
38945
38944
|
St(e, !1);
|
|
38946
|
-
var o = xi("jsoneditor:TransformModal"), s = A(e, "id", 25, () => "transform-modal-" + ou()), a = A(e, "json", 9), l = A(e, "rootPath", 25, () => []), u = A(e, "indentation", 9), d = A(e, "truncateTextSize", 9), f = A(e, "escapeControlCharacters", 9), h = A(e, "escapeUnicodeCharacters", 9), p = A(e, "parser", 9), m = A(e, "parseMemoizeOne", 9), g = A(e, "validationParser", 9), v = A(e, "pathParser", 9), y = A(e, "queryLanguages", 9), x = A(e, "queryLanguageId", 13), w = A(e, "onChangeQueryLanguage", 9), k = A(e, "onRenderValue", 9), b = A(e, "onRenderMenu", 9), j = A(e, "onRenderContextMenu", 9), O = A(e, "onClassName", 9), N = A(e, "onTransform", 9), M = A(e, "onClose", 9), z = Z(void 0, !0), H = Z(MM({ onChange: (ie) => E(H, ie) }).get(), !0), V = Z(void 0, !0), G = Z(void 0, !0), Q = Z(!1, !0), pe = "".concat(s(), ":").concat(Et(l())),
|
|
38945
|
+
var o = xi("jsoneditor:TransformModal"), s = A(e, "id", 25, () => "transform-modal-" + ou()), a = A(e, "json", 9), l = A(e, "rootPath", 25, () => []), u = A(e, "indentation", 9), d = A(e, "truncateTextSize", 9), f = A(e, "escapeControlCharacters", 9), h = A(e, "escapeUnicodeCharacters", 9), p = A(e, "parser", 9), m = A(e, "parseMemoizeOne", 9), g = A(e, "validationParser", 9), v = A(e, "pathParser", 9), y = A(e, "queryLanguages", 9), x = A(e, "queryLanguageId", 13), w = A(e, "onChangeQueryLanguage", 9), k = A(e, "onRenderValue", 9), b = A(e, "onRenderMenu", 9), j = A(e, "onRenderContextMenu", 9), O = A(e, "onClassName", 9), N = A(e, "onTransform", 9), M = A(e, "onClose", 9), z = Z(void 0, !0), H = Z(MM({ onChange: (ie) => E(H, ie) }).get(), !0), V = Z(void 0, !0), G = Z(void 0, !0), Q = Z(!1, !0), pe = "".concat(s(), ":").concat(Et(l())), Se = (n = Ad()[pe]) !== null && n !== void 0 ? n : {}, ge = Z(Bc().showWizard !== !1, !0), le = Z(Bc().showOriginal !== !1, !0), ne = Z((r = Se.queryOptions) !== null && r !== void 0 ? r : {}, !0), te = Z(x() === Se.queryLanguageId && Se.query ? Se.query : "", !0), R = Z((i = Se.isManual) !== null && i !== void 0 && i, !0), B = Z(void 0, !0), _ = Z(void 0, !0), S = Z({ text: "" }, !0);
|
|
38947
38946
|
function C(ie) {
|
|
38948
38947
|
var Ae;
|
|
38949
38948
|
return (Ae = y().find((me) => me.id === ie)) !== null && Ae !== void 0 ? Ae : y()[0];
|
|
38950
38949
|
}
|
|
38951
38950
|
function $(ie) {
|
|
38952
38951
|
try {
|
|
38953
|
-
E(ne, ie), E(te, C(x()).createQuery(c(V), ie)), E(
|
|
38952
|
+
E(ne, ie), E(te, C(x()).createQuery(c(V), ie)), E(B, void 0), E(R, !1), o("updateQueryByWizard", { queryOptions: c(ne), query: c(te), isManual: c(R) });
|
|
38954
38953
|
} catch (Ae) {
|
|
38955
|
-
E(
|
|
38954
|
+
E(B, String(Ae));
|
|
38956
38955
|
}
|
|
38957
38956
|
}
|
|
38958
38957
|
function U(ie) {
|
|
@@ -38989,7 +38988,7 @@ function HV(t, e) {
|
|
|
38989
38988
|
function D() {
|
|
38990
38989
|
E(le, !c(le)), Bc(Bc().showOriginal = c(le));
|
|
38991
38990
|
}
|
|
38992
|
-
function
|
|
38991
|
+
function q(ie) {
|
|
38993
38992
|
ie.focus();
|
|
38994
38993
|
}
|
|
38995
38994
|
function P(ie) {
|
|
@@ -39062,10 +39061,10 @@ function HV(t, e) {
|
|
|
39062
39061
|
}, onChange: $ });
|
|
39063
39062
|
var er = ce(Qn, 2), tr = (Lr) => {
|
|
39064
39063
|
var Hr = qV(), zr = ee(Hr);
|
|
39065
|
-
We(() => Ot(zr, c(
|
|
39064
|
+
We(() => Ot(zr, c(B))), oe(Lr, Hr);
|
|
39066
39065
|
};
|
|
39067
39066
|
Ee(er, (Lr) => {
|
|
39068
|
-
c(
|
|
39067
|
+
c(B) && Lr(tr);
|
|
39069
39068
|
}), oe(_n, br);
|
|
39070
39069
|
}, $n = Xt(() => (c(V), se(() => Array.isArray(c(V))))), Jt = (_n) => {
|
|
39071
39070
|
oe(_n, Si("(Only available for arrays, not for objects)"));
|
|
@@ -39195,7 +39194,7 @@ function HV(t, e) {
|
|
|
39195
39194
|
c(_) ? xt(jt, -1) : xt(bt);
|
|
39196
39195
|
});
|
|
39197
39196
|
var zn = ee(ce(it, 2));
|
|
39198
|
-
Mi(() => Be("click", zn, de)), Wi(zn, (xt) =>
|
|
39197
|
+
Mi(() => Be("click", zn, de)), Wi(zn, (xt) => q?.(xt)), We((xt) => {
|
|
39199
39198
|
kc(pt, xt), kc(qe, c(te)), Ze = Ft(je, 1, "jse-data-contents svelte-lta8xm", null, Ze, { "jse-hide-original-data": !c(le) }), Qe = Ft(Ke, 1, "jse-original-data svelte-lta8xm", null, Qe, { "jse-hide": !c(le) }), zn.disabled = !!c(_);
|
|
39200
39199
|
}, [() => (T(jn), T(l()), T(fo), se(() => jn(l()) ? "(document root)" : fo(l())))]), Be("click", X, Ne), Be("input", qe, U), Be("click", Nn, D), oe(re, tt);
|
|
39201
39200
|
}, $$slots: { default: !0 } }), Wi(me, (re, ke) => vg?.(re, ke), () => Y), oe(ie, me);
|
|
@@ -39587,9 +39586,9 @@ zt(`/* over all fonts, sizes, and colors */
|
|
|
39587
39586
|
var ZV = we('<div class="jse-fold-progress svelte-k2b9e6"><span class="jse-fold-tip svelte-k2b9e6">Collapsing</span> <div class="jse-fold-progress-track svelte-k2b9e6"><div class="jse-fold-progress-fill svelte-k2b9e6"></div></div> <button class="jse-fold-cancel-button svelte-k2b9e6" type="button" title="Cancel folding">Cancel</button></div>'), eW = we('<!> <div class="jse-contents jse-preview svelte-k2b9e6"> </div>', 1), tW = we("<!> <!> <!> <!>", 1), nW = we("<div></div> <!> <!>", 1), rW = we('<div class="jse-contents svelte-k2b9e6"><div class="jse-loading-space svelte-k2b9e6"></div> <div class="jse-loading svelte-k2b9e6">loading...</div></div>'), iW = we("<div><!> <!> <!></div>");
|
|
39588
39587
|
function oW(t, e) {
|
|
39589
39588
|
St(e, !1);
|
|
39590
|
-
var n = Z(void 0, !0), r = Z(void 0, !0), i = A(e, "readOnly", 9), o = A(e, "ariaLabel", 9, void 0), s = A(e, "mainMenuBar", 9), a = A(e, "statusBar", 9), l = A(e, "askToFormat", 9), u = A(e, "externalContent", 9), d = A(e, "externalSelection", 9), f = A(e, "history", 9), h = A(e, "indentation", 9), p = A(e, "tabSize", 9), m = A(e, "escapeUnicodeCharacters", 9), g = A(e, "maxDocumentSize", 9), v = A(e, "parser", 9), y = A(e, "validator", 9), x = A(e, "validationParser", 9), w = A(e, "onChange", 9), k = A(e, "onChangeMode", 9), b = A(e, "onSelect", 9), j = A(e, "onUndo", 9), O = A(e, "onRedo", 9), N = A(e, "onError", 9), M = A(e, "onFocus", 9), z = A(e, "onBlur", 9), H = A(e, "onRenderMenu", 9), V = A(e, "onSortModal", 9), G = A(e, "onTransformModal", 9), Q = xi("jsoneditor:TextMode"), pe = { key: "Mod-i", run: Qe, shift: je, preventDefault: !0 },
|
|
39591
|
-
Q("isSSR:",
|
|
39592
|
-
var ge, le = Z(void 0, !0), ne = Z(void 0, !0), te = Z(void 0, !0), R = Z(!1, !0),
|
|
39589
|
+
var n = Z(void 0, !0), r = Z(void 0, !0), i = A(e, "readOnly", 9), o = A(e, "ariaLabel", 9, void 0), s = A(e, "mainMenuBar", 9), a = A(e, "statusBar", 9), l = A(e, "askToFormat", 9), u = A(e, "externalContent", 9), d = A(e, "externalSelection", 9), f = A(e, "history", 9), h = A(e, "indentation", 9), p = A(e, "tabSize", 9), m = A(e, "escapeUnicodeCharacters", 9), g = A(e, "maxDocumentSize", 9), v = A(e, "parser", 9), y = A(e, "validator", 9), x = A(e, "validationParser", 9), w = A(e, "onChange", 9), k = A(e, "onChangeMode", 9), b = A(e, "onSelect", 9), j = A(e, "onUndo", 9), O = A(e, "onRedo", 9), N = A(e, "onError", 9), M = A(e, "onFocus", 9), z = A(e, "onBlur", 9), H = A(e, "onRenderMenu", 9), V = A(e, "onSortModal", 9), G = A(e, "onTransformModal", 9), Q = xi("jsoneditor:TextMode"), pe = { key: "Mod-i", run: Qe, shift: je, preventDefault: !0 }, Se = typeof window > "u";
|
|
39590
|
+
Q("isSSR:", Se);
|
|
39591
|
+
var ge, le = Z(void 0, !0), ne = Z(void 0, !0), te = Z(void 0, !0), R = Z(!1, !0), B = Z(l(), !0), _ = Z([], !0), S = Z(!1, !0), C = Z(0, !0), $ = Z(0, !0), U = null, J = new Ps(), de = new Ps(), Ne = new Ps(), D = new Ps(), q = new Ps(), P = new Ps(), Y = u(), ie = Z(w1(Y, h(), v()), !0), Ae = Tl.define(), me = null;
|
|
39593
39592
|
function re() {
|
|
39594
39593
|
if (!me || me.length === 0) return !1;
|
|
39595
39594
|
var L = me[0].startState, ae = me[me.length - 1].state, ye = me.map((Xe) => Xe.changes).reduce((Xe, et) => Xe.compose(et)), Ge = { type: "text", undo: { changes: ye.invert(L.doc).toJSON(), selection: wi(L.selection) }, redo: { changes: ye.toJSON(), selection: wi(ae.selection) } };
|
|
@@ -39597,7 +39596,7 @@ function oW(t, e) {
|
|
|
39597
39596
|
}
|
|
39598
39597
|
var ke = Z(m(), !0);
|
|
39599
39598
|
Di(Rt(function* () {
|
|
39600
|
-
if (!
|
|
39599
|
+
if (!Se) try {
|
|
39601
39600
|
ge = (function(L) {
|
|
39602
39601
|
var ae = L.target, ye = L.initialText, Ge = L.readOnly, Xe = L.indentation;
|
|
39603
39602
|
Q("Create CodeMirror editor", { readOnly: Ge, indentation: Xe });
|
|
@@ -39605,7 +39604,7 @@ function oW(t, e) {
|
|
|
39605
39604
|
return T0(Nt) ? Nt.ranges.every((yt) => yt.anchor < Vt.length && yt.head < Vt.length) : !1;
|
|
39606
39605
|
})(d(), ye) ? _n(d()) : void 0, ct = En.create({ doc: ye, selection: et, extensions: [_m.of([S7, pe]), J.of(xt()), F7(), gD(), yD(), RI(), sL(), Le(), wI(), EI(), En.allowMultipleSelections.of(!0), GD(), aO(uL, { fallback: !0 }), vL(), iB(), mB(), WI(), JI(), zI(), sz(), _m.of([...lB, ...k7, ...Az, { key: "Mod-z", run: tn, preventDefault: !0 }, { key: "Mod-y", mac: "Mod-Shift-z", run: Fn, preventDefault: !0 }, { key: "Ctrl-Shift-z", run: Fn, preventDefault: !0 }, ...nL, ...dE, ...T7]), QV, jB({ hideFirstIndent: !0 }), at.domEventHandlers({ dblclick: zn }), at.updateListener.of((Nt) => {
|
|
39607
39606
|
E(te, Nt.state), Nt.docChanged && (Nt.transactions.some((Vt) => !!Vt.annotation(Ae)) || (me = [...me ?? [], Nt]), zr()), Nt.selectionSet && Sr();
|
|
39608
|
-
}), tz(), mz({ top: !0 }), at.lineWrapping, de.of(En.readOnly.of(Ge)), D.of(En.tabSize.of(p())), Ne.of(Hr(Xe)),
|
|
39607
|
+
}), tz(), mz({ top: !0 }), at.lineWrapping, de.of(En.readOnly.of(Ge)), D.of(En.tabSize.of(p())), Ne.of(Hr(Xe)), q.of(at.theme({}, { dark: cn() })), P.of(tr(o()))] });
|
|
39609
39608
|
return ge = new at({ state: ct, parent: ae }), et && ge.dispatch(ge.state.update({ selection: et.main, scrollIntoView: !0 })), ge;
|
|
39610
39609
|
})({ target: c(le), initialText: Jr(c(ie), g(), c(R)) ? "" : c(n).escapeValue(c(ie)), readOnly: i(), indentation: h() });
|
|
39611
39610
|
} catch (L) {
|
|
@@ -39726,7 +39725,7 @@ function oW(t, e) {
|
|
|
39726
39725
|
if (Q("format"), i()) return !1;
|
|
39727
39726
|
try {
|
|
39728
39727
|
var L = v().parse(c(ie));
|
|
39729
|
-
return Jt({ text: v().stringify(L, null, h()) }, !0, !1), E(
|
|
39728
|
+
return Jt({ text: v().stringify(L, null, h()) }, !0, !1), E(B, l()), !0;
|
|
39730
39729
|
} catch (ae) {
|
|
39731
39730
|
N()(ae);
|
|
39732
39731
|
}
|
|
@@ -39736,7 +39735,7 @@ function oW(t, e) {
|
|
|
39736
39735
|
if (Q("compact"), i()) return !1;
|
|
39737
39736
|
try {
|
|
39738
39737
|
var L = v().parse(c(ie));
|
|
39739
|
-
return Jt({ text: v().stringify(L) }, !0, !1), E(
|
|
39738
|
+
return Jt({ text: v().stringify(L) }, !0, !1), E(B, !1), !0;
|
|
39740
39739
|
} catch (ae) {
|
|
39741
39740
|
N()(ae);
|
|
39742
39741
|
}
|
|
@@ -39875,7 +39874,7 @@ function oW(t, e) {
|
|
|
39875
39874
|
return (Lr = Rt(function* () {
|
|
39876
39875
|
if (cr(), ge) {
|
|
39877
39876
|
var L = cn();
|
|
39878
|
-
return Q("updateTheme", { dark: L }), ge.dispatch({ effects: [
|
|
39877
|
+
return Q("updateTheme", { dark: L }), ge.dispatch({ effects: [q.reconfigure(at.theme({}, { dark: L }))] }), new Promise((ae) => setTimeout(ae));
|
|
39879
39878
|
}
|
|
39880
39879
|
return Promise.resolve();
|
|
39881
39880
|
})).apply(this, arguments);
|
|
@@ -40094,11 +40093,11 @@ function oW(t, e) {
|
|
|
40094
40093
|
c(Zt) && ft(Wn);
|
|
40095
40094
|
});
|
|
40096
40095
|
var In = ce(nr, 2), dr = (ft) => {
|
|
40097
|
-
var bn = lt(() => [{ icon: US, text: "Format", title: "Format JSON: add proper indentation and new lines (Ctrl+I)", onClick: Qe }, { icon: Mg, text: "No thanks", title: "Close this message", onClick: () => E(
|
|
40096
|
+
var bn = lt(() => [{ icon: US, text: "Format", title: "Format JSON: add proper indentation and new lines (Ctrl+I)", onClick: Qe }, { icon: Mg, text: "No thanks", title: "Close this message", onClick: () => E(B, !1) }]);
|
|
40098
40097
|
_o(ft, { type: "success", message: "Do you want to format the JSON?", get actions() {
|
|
40099
40098
|
return c(bn);
|
|
40100
40099
|
}, onClose: it });
|
|
40101
|
-
}, fn = Xt(() => (c(Zt), c(
|
|
40100
|
+
}, fn = Xt(() => (c(Zt), c(B), T(oS), c(ie), se(() => !c(Zt) && c(B) && oS(c(ie)))));
|
|
40102
40101
|
Ee(In, (ft) => {
|
|
40103
40102
|
c(fn) && ft(dr);
|
|
40104
40103
|
}), jx(ce(In, 2), { get validationErrors() {
|
|
@@ -40112,7 +40111,7 @@ function oW(t, e) {
|
|
|
40112
40111
|
oe(L, rW());
|
|
40113
40112
|
};
|
|
40114
40113
|
return Ee(Yt, (L) => {
|
|
40115
|
-
|
|
40114
|
+
Se ? L(sn, -1) : L(Kn);
|
|
40116
40115
|
}), gr(ni, (L) => E(ne, L), () => c(ne)), We(() => di = Ft(ni, 1, "jse-text-mode svelte-k2b9e6", null, di, { "no-main-menu": !s() })), oe(t, ni), $t(e, "focus", it), $t(e, "collapse", Ye), $t(e, "expand", ue), $t(e, "patch", qe), $t(e, "handlePatch", Ze), $t(e, "openTransformModal", Tt), $t(e, "refresh", br), $t(e, "flush", Yn), $t(e, "validate", Qt), Ct(ti);
|
|
40117
40116
|
}
|
|
40118
40117
|
zt(`/* over all fonts, sizes, and colors */
|
|
@@ -40504,13 +40503,13 @@ function OW(t, e) {
|
|
|
40504
40503
|
St(e, !1);
|
|
40505
40504
|
var n = Z(void 0, !0), r = Z(void 0, !0), i = Z(void 0, !0), o = xi("jsoneditor:TableMode"), s = Pl("absolute-popup"), a = s.openAbsolutePopup, l = s.closeAbsolutePopup, u = uM(), d = ku(), f = ku(), h = typeof window > "u";
|
|
40506
40505
|
o("isSSR:", h);
|
|
40507
|
-
var p = A(e, "readOnly", 9), m = A(e, "ariaLabel", 9, void 0), g = A(e, "externalContent", 9), v = A(e, "externalSelection", 9), y = A(e, "history", 9), x = A(e, "truncateTextSize", 9), w = A(e, "mainMenuBar", 9), k = A(e, "escapeControlCharacters", 9), b = A(e, "escapeUnicodeCharacters", 9), j = A(e, "flattenColumns", 9), O = A(e, "parser", 9), N = A(e, "parseMemoizeOne", 9), M = A(e, "validator", 9), z = A(e, "validationParser", 9), H = A(e, "indentation", 9), V = A(e, "onChange", 9), G = A(e, "onChangeMode", 9), Q = A(e, "onSelect", 9), pe = A(e, "onUndo", 9),
|
|
40506
|
+
var p = A(e, "readOnly", 9), m = A(e, "ariaLabel", 9, void 0), g = A(e, "externalContent", 9), v = A(e, "externalSelection", 9), y = A(e, "history", 9), x = A(e, "truncateTextSize", 9), w = A(e, "mainMenuBar", 9), k = A(e, "escapeControlCharacters", 9), b = A(e, "escapeUnicodeCharacters", 9), j = A(e, "flattenColumns", 9), O = A(e, "parser", 9), N = A(e, "parseMemoizeOne", 9), M = A(e, "validator", 9), z = A(e, "validationParser", 9), H = A(e, "indentation", 9), V = A(e, "onChange", 9), G = A(e, "onChangeMode", 9), Q = A(e, "onSelect", 9), pe = A(e, "onUndo", 9), Se = A(e, "onRedo", 9), ge = A(e, "onRenderValue", 9), le = A(e, "onRenderMenu", 9), ne = A(e, "onRenderContextMenu", 9), te = A(e, "onFocus", 9), R = A(e, "onBlur", 9), B = A(e, "onSortModal", 9), _ = A(e, "onTransformModal", 9), S = A(e, "onJSONEditorModal", 9), C = Z(void 0, !0), $ = Z(void 0, !0), U = Z(void 0, !0), J = Z(void 0, !0), de = Z(void 0, !0);
|
|
40508
40507
|
wx({ onMount: Di, onDestroy: es, getWindow: () => Yf(c($)), hasFocus: () => I && document.hasFocus() || sx(c($)), onFocus: () => {
|
|
40509
40508
|
K = !0, te() && te()();
|
|
40510
40509
|
}, onBlur: () => {
|
|
40511
40510
|
K = !1, R() && R()();
|
|
40512
40511
|
} });
|
|
40513
|
-
var Ne, D = Z(void 0, !0),
|
|
40512
|
+
var Ne, D = Z(void 0, !0), q = Z(void 0, !0), P = Z(void 0, !0), Y = Z(void 0, !0), ie = Z(void 0, !0), Ae = Z(void 0, !0), me = Z(!1, !0), re = Z(!1, !0);
|
|
40514
40513
|
function ke(F) {
|
|
40515
40514
|
E(Ae, (Ne = F) ? ZA(c(D), Ne.items) : void 0);
|
|
40516
40515
|
}
|
|
@@ -40547,7 +40546,7 @@ function OW(t, e) {
|
|
|
40547
40546
|
function ir(F) {
|
|
40548
40547
|
if (F.json !== void 0 || F.text !== void 0) {
|
|
40549
40548
|
var be = c(D) !== void 0 && F.json !== void 0;
|
|
40550
|
-
y().add({ type: "tree", undo: { patch: be ? [{ op: "replace", path: "", value: F.json }] : void 0, json: F.json, text: F.text, documentState: F.documentState, textIsRepaired: F.textIsRepaired, selection: Ds(F.selection), sortedColumn: F.sortedColumn }, redo: { patch: be ? [{ op: "replace", path: "", value: c(D) }] : void 0, json: c(D), text: c(
|
|
40549
|
+
y().add({ type: "tree", undo: { patch: be ? [{ op: "replace", path: "", value: F.json }] : void 0, json: F.json, text: F.text, documentState: F.documentState, textIsRepaired: F.textIsRepaired, selection: Ds(F.selection), sortedColumn: F.sortedColumn }, redo: { patch: be ? [{ op: "replace", path: "", value: c(D) }] : void 0, json: c(D), text: c(q), documentState: c(Qe), textIsRepaired: c(Te), selection: Ds(c(je)), sortedColumn: c(Ke) } });
|
|
40551
40550
|
}
|
|
40552
40551
|
}
|
|
40553
40552
|
var tn = Z([], !0), Fn = of(dM);
|
|
@@ -40567,18 +40566,18 @@ function OW(t, e) {
|
|
|
40567
40566
|
}
|
|
40568
40567
|
function kr(F, be) {
|
|
40569
40568
|
if (o("patch", F, be), c(D) === void 0) throw new Error("Cannot apply patch: no JSON");
|
|
40570
|
-
var ze = c(D), He = { json: void 0, text: c(
|
|
40571
|
-
return E(D, Ue?.json !== void 0 ? Ue.json : st.json), E(Qe, Ue?.state !== void 0 ? Ue.state : st.documentState), E(je, Ue?.selection !== void 0 ? Ue.selection : c(je)), E(Ke, Ue?.sortedColumn !== void 0 ? Ue.sortedColumn : Dt), E(
|
|
40569
|
+
var ze = c(D), He = { json: void 0, text: c(q), documentState: c(Qe), selection: Ds(c(je)), sortedColumn: c(Ke), textIsRepaired: c(Te) }, Re = XA(c(D), F), st = BA(c(D), c(Qe), F), Dt = wV(c(Ke), F, c(Le)), Ue = typeof be == "function" ? be(st.json, st.documentState, c(je)) : void 0;
|
|
40570
|
+
return E(D, Ue?.json !== void 0 ? Ue.json : st.json), E(Qe, Ue?.state !== void 0 ? Ue.state : st.documentState), E(je, Ue?.selection !== void 0 ? Ue.selection : c(je)), E(Ke, Ue?.sortedColumn !== void 0 ? Ue.sortedColumn : Dt), E(q, void 0), E(Te, !1), E(Y, void 0), E(ie, void 0), E(P, void 0), y().add({ type: "tree", undo: Ve({ patch: Re }, He), redo: { patch: F, json: void 0, text: void 0, documentState: c(Qe), selection: Ds(c(je)), sortedColumn: c(Ke), textIsRepaired: c(Te) } }), { json: c(D), previousJson: ze, undo: Re, redo: F };
|
|
40572
40571
|
}
|
|
40573
40572
|
function bt(F, be) {
|
|
40574
40573
|
o("handlePatch", F, be);
|
|
40575
|
-
var ze = { json: c(D), text: c(
|
|
40574
|
+
var ze = { json: c(D), text: c(q) }, He = kr(F, be);
|
|
40576
40575
|
return jt(ze, He), He;
|
|
40577
40576
|
}
|
|
40578
40577
|
function jt(F, be) {
|
|
40579
40578
|
if ((F.json !== void 0 || F?.text !== void 0) && V()) {
|
|
40580
|
-
if (c(
|
|
40581
|
-
var ze = { text: c(
|
|
40579
|
+
if (c(q) !== void 0) {
|
|
40580
|
+
var ze = { text: c(q), json: void 0 };
|
|
40582
40581
|
V()(ze, F, { contentErrors: vr(), patchResult: be });
|
|
40583
40582
|
} else if (c(D) !== void 0) {
|
|
40584
40583
|
var He = { text: void 0, json: c(D) };
|
|
@@ -40609,10 +40608,10 @@ function OW(t, e) {
|
|
|
40609
40608
|
}
|
|
40610
40609
|
function Jt() {
|
|
40611
40610
|
if (c(Te) && c(D) !== void 0) {
|
|
40612
|
-
var F = { json: c(D), text: c(
|
|
40613
|
-
E(
|
|
40611
|
+
var F = { json: c(D), text: c(q) }, be = { json: c(D), documentState: c(Qe), selection: c(je), sortedColumn: c(Ke), text: c(q), textIsRepaired: c(Te) };
|
|
40612
|
+
E(q, void 0), E(Te, !1), Ze(c(D)), ir(be), jt(F, void 0);
|
|
40614
40613
|
}
|
|
40615
|
-
return { json: c(D), text: c(
|
|
40614
|
+
return { json: c(D), text: c(q) };
|
|
40616
40615
|
}
|
|
40617
40616
|
function _n(F) {
|
|
40618
40617
|
var be = (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}).scrollToWhenVisible, ze = be === void 0 || be, He = c(me) ? Dd : 0, Re = WS(F, c(Le), ue, Ie), st = Re - c(ve) + He + Ie, Dt = er(F);
|
|
@@ -40765,7 +40764,7 @@ function OW(t, e) {
|
|
|
40765
40764
|
}), ni.apply(this, arguments);
|
|
40766
40765
|
}
|
|
40767
40766
|
function Br() {
|
|
40768
|
-
SM({ json: c(D), text: c(
|
|
40767
|
+
SM({ json: c(D), text: c(q), selection: c(je), keepSelection: !0, readOnly: p(), onChange: V(), onPatch: bt });
|
|
40769
40768
|
}
|
|
40770
40769
|
function ar(F) {
|
|
40771
40770
|
p() || (o("extract", { path: F }), bt(GA(c(D), ln(F))));
|
|
@@ -40826,19 +40825,19 @@ function OW(t, e) {
|
|
|
40826
40825
|
F !== void 0 && kM({ clipboardText: F, json: c(D), selection: c(je), readOnly: p(), parser: O(), onPatch: bt, onChangeText: Ge, onPasteMultilineText: xt, openRepairModal: Nt });
|
|
40827
40826
|
}
|
|
40828
40827
|
function ye(F, be) {
|
|
40829
|
-
var ze = { json: c(D), text: c(
|
|
40830
|
-
E(D, st?.json !== void 0 ? st.json : F), E(Qe, st?.state !== void 0 ? st.state : Re), E(je, st?.selection !== void 0 ? st.selection : c(je)), E(Ke, void 0), E(
|
|
40828
|
+
var ze = { json: c(D), text: c(q) }, He = { json: c(D), documentState: c(Qe), selection: c(je), sortedColumn: c(Ke), text: c(q), textIsRepaired: c(Te) }, Re = Eo(F, c(Qe)), st = typeof be == "function" ? be(F, Re, c(je)) : void 0;
|
|
40829
|
+
E(D, st?.json !== void 0 ? st.json : F), E(Qe, st?.state !== void 0 ? st.state : Re), E(je, st?.selection !== void 0 ? st.selection : c(je)), E(Ke, void 0), E(q, void 0), E(Te, !1), E(P, void 0), Ze(c(D)), ir(He), jt(ze, void 0);
|
|
40831
40830
|
}
|
|
40832
40831
|
function Ge(F, be) {
|
|
40833
40832
|
o("handleChangeText");
|
|
40834
|
-
var ze = { json: c(D), text: c(
|
|
40833
|
+
var ze = { json: c(D), text: c(q) }, He = { json: c(D), documentState: c(Qe), selection: c(je), sortedColumn: c(Ke), text: c(q), textIsRepaired: c(Te) };
|
|
40835
40834
|
try {
|
|
40836
|
-
E(D, N()(F)), E(Qe, Eo(c(D), c(Qe))), E(
|
|
40835
|
+
E(D, N()(F)), E(Qe, Eo(c(D), c(Qe))), E(q, void 0), E(Te, !1), E(P, void 0);
|
|
40837
40836
|
} catch (st) {
|
|
40838
40837
|
try {
|
|
40839
|
-
E(D, N()(Fs(F))), E(Qe, Eo(c(D), c(Qe))), E(
|
|
40838
|
+
E(D, N()(Fs(F))), E(Qe, Eo(c(D), c(Qe))), E(q, F), E(Te, !0), E(P, void 0);
|
|
40840
40839
|
} catch {
|
|
40841
|
-
E(D, void 0), E(Qe, void 0), E(
|
|
40840
|
+
E(D, void 0), E(Qe, void 0), E(q, F), E(Te, !1), E(P, c(q) !== "" ? Fu(c(q), st.message || String(st)) : void 0);
|
|
40842
40841
|
}
|
|
40843
40842
|
}
|
|
40844
40843
|
if (typeof be == "function") {
|
|
@@ -40870,7 +40869,7 @@ function OW(t, e) {
|
|
|
40870
40869
|
}
|
|
40871
40870
|
function Vt() {
|
|
40872
40871
|
(function(F) {
|
|
40873
|
-
p() || c(D) === void 0 || (I = !0,
|
|
40872
|
+
p() || c(D) === void 0 || (I = !0, B()({ id: d, json: c(D), rootPath: F, onSort: (be) => {
|
|
40874
40873
|
var ze = be.operations, He = be.itemPath, Re = be.direction;
|
|
40875
40874
|
o("onSort", ze, F, He, Re), bt(ze, (st, Dt) => ({ state: Dt, sortedColumn: { path: He, sortDirection: Re === -1 ? Lo.desc : Lo.asc } }));
|
|
40876
40875
|
}, onClose: () => {
|
|
@@ -40888,8 +40887,8 @@ function OW(t, e) {
|
|
|
40888
40887
|
if (!p() && y().canUndo) {
|
|
40889
40888
|
var F = y().undo();
|
|
40890
40889
|
if (sg(F)) {
|
|
40891
|
-
var be = { json: c(D), text: c(
|
|
40892
|
-
E(D, F.undo.patch ? ps(c(D), F.undo.patch) : F.undo.json), E(Qe, F.undo.documentState), E(je, F.undo.selection), E(Ke, F.undo.sortedColumn), E(
|
|
40890
|
+
var be = { json: c(D), text: c(q) };
|
|
40891
|
+
E(D, F.undo.patch ? ps(c(D), F.undo.patch) : F.undo.json), E(Qe, F.undo.documentState), E(je, F.undo.selection), E(Ke, F.undo.sortedColumn), E(q, F.undo.text), E(Te, F.undo.textIsRepaired), E(P, void 0), o("undo", { item: F, json: c(D) }), jt(be, F.undo.patch && F.redo.patch ? { json: c(D), previousJson: be.json, redo: F.undo.patch, undo: F.redo.patch } : void 0), It(), c(je) && _n(mt(c(je)), { scrollToWhenVisible: !1 });
|
|
40893
40892
|
} else pe()(F);
|
|
40894
40893
|
}
|
|
40895
40894
|
}
|
|
@@ -40897,9 +40896,9 @@ function OW(t, e) {
|
|
|
40897
40896
|
if (!p() && y().canRedo) {
|
|
40898
40897
|
var F = y().redo();
|
|
40899
40898
|
if (sg(F)) {
|
|
40900
|
-
var be = { json: c(D), text: c(
|
|
40901
|
-
E(D, F.redo.patch ? ps(c(D), F.redo.patch) : F.redo.json), E(Qe, F.redo.documentState), E(je, F.redo.selection), E(Ke, F.redo.sortedColumn), E(
|
|
40902
|
-
} else
|
|
40899
|
+
var be = { json: c(D), text: c(q) };
|
|
40900
|
+
E(D, F.redo.patch ? ps(c(D), F.redo.patch) : F.redo.json), E(Qe, F.redo.documentState), E(je, F.redo.selection), E(Ke, F.redo.sortedColumn), E(q, F.redo.text), E(Te, F.redo.textIsRepaired), E(P, void 0), o("redo", { item: F, json: c(D) }), jt(be, F.undo.patch && F.redo.patch ? { json: c(D), previousJson: be.json, redo: F.redo.patch, undo: F.undo.patch } : void 0), It(), c(je) && _n(mt(c(je)), { scrollToWhenVisible: !1 });
|
|
40901
|
+
} else Se()(F);
|
|
40903
40902
|
}
|
|
40904
40903
|
}
|
|
40905
40904
|
function nr(F) {
|
|
@@ -40916,19 +40915,19 @@ function OW(t, e) {
|
|
|
40916
40915
|
})(c(me));
|
|
40917
40916
|
}), he(() => T(g()), () => {
|
|
40918
40917
|
(function(F) {
|
|
40919
|
-
var be = { json: c(D) }, ze = Uu(F) ? F.text !== c(
|
|
40918
|
+
var be = { json: c(D) }, ze = Uu(F) ? F.text !== c(q) : !en(be.json, F.json);
|
|
40920
40919
|
if (o("update external content", { isChanged: ze }), ze) {
|
|
40921
|
-
var He = { json: c(D), documentState: c(Qe), selection: c(je), sortedColumn: c(Ke), text: c(
|
|
40920
|
+
var He = { json: c(D), documentState: c(Qe), selection: c(je), sortedColumn: c(Ke), text: c(q), textIsRepaired: c(Te) };
|
|
40922
40921
|
if (Uu(F)) try {
|
|
40923
|
-
E(D, N()(F.text)), E(Qe, Eo(c(D), c(Qe))), E(
|
|
40922
|
+
E(D, N()(F.text)), E(Qe, Eo(c(D), c(Qe))), E(q, F.text), E(Te, !1), E(P, void 0);
|
|
40924
40923
|
} catch (Re) {
|
|
40925
40924
|
try {
|
|
40926
|
-
E(D, N()(Fs(F.text))), E(Qe, Eo(c(D), c(Qe))), E(
|
|
40925
|
+
E(D, N()(Fs(F.text))), E(Qe, Eo(c(D), c(Qe))), E(q, F.text), E(Te, !0), E(P, void 0);
|
|
40927
40926
|
} catch {
|
|
40928
|
-
E(D, void 0), E(Qe, void 0), E(
|
|
40927
|
+
E(D, void 0), E(Qe, void 0), E(q, F.text), E(Te, !1), E(P, c(q) !== "" ? Fu(c(q), Re.message || String(Re)) : void 0);
|
|
40929
40928
|
}
|
|
40930
40929
|
}
|
|
40931
|
-
else E(D, F.json), E(Qe, Eo(c(D), c(Qe))), E(
|
|
40930
|
+
else E(D, F.json), E(Qe, Eo(c(D), c(Qe))), E(q, void 0), E(Te, !1), E(P, void 0);
|
|
40932
40931
|
Ze(c(D)), E(Ke, void 0), ir(He);
|
|
40933
40932
|
}
|
|
40934
40933
|
})(g());
|
|
@@ -41253,7 +41252,7 @@ function OW(t, e) {
|
|
|
41253
41252
|
_o(Lt, { type: "error", message: "The loaded JSON document is invalid and could not be repaired automatically.", get actions() {
|
|
41254
41253
|
return c(yn);
|
|
41255
41254
|
} }), OM(ce(Lt, 2), { get text() {
|
|
41256
|
-
return c(
|
|
41255
|
+
return c(q);
|
|
41257
41256
|
}, get json() {
|
|
41258
41257
|
return c(D);
|
|
41259
41258
|
}, get indentation() {
|
|
@@ -41263,7 +41262,7 @@ function OW(t, e) {
|
|
|
41263
41262
|
} }), oe(ht, vt);
|
|
41264
41263
|
}, Ue = (ht) => {
|
|
41265
41264
|
hW(ht, { get text() {
|
|
41266
|
-
return c(
|
|
41265
|
+
return c(q);
|
|
41267
41266
|
}, get json() {
|
|
41268
41267
|
return c(D);
|
|
41269
41268
|
}, get readOnly() {
|
|
@@ -41277,7 +41276,7 @@ function OW(t, e) {
|
|
|
41277
41276
|
} });
|
|
41278
41277
|
};
|
|
41279
41278
|
Ee(Re, (ht) => {
|
|
41280
|
-
c(pt) ? ht(st) : c(P) && c(
|
|
41279
|
+
c(pt) ? ht(st) : c(P) && c(q) !== void 0 && c(q) !== "" ? ht(Dt, 1) : ht(Ue, -1);
|
|
41281
41280
|
}), Be("paste", He, L), oe(F, be);
|
|
41282
41281
|
}, Er = (F) => {
|
|
41283
41282
|
oe(F, SW());
|
|
@@ -41359,7 +41358,7 @@ function OW(t, e) {
|
|
|
41359
41358
|
}
|
|
41360
41359
|
function GS(t, e) {
|
|
41361
41360
|
St(e, !1);
|
|
41362
|
-
var n = A(e, "content", 8), r = A(e, "selection", 12), i = A(e, "readOnly", 8), o = A(e, "indentation", 8), s = A(e, "tabSize", 8), a = A(e, "truncateTextSize", 8), l = A(e, "externalMode", 8), u = A(e, "ariaLabel", 8, void 0), d = A(e, "mainMenuBar", 8), f = A(e, "navigationBar", 8), h = A(e, "statusBar", 8), p = A(e, "askToFormat", 8), m = A(e, "escapeControlCharacters", 8), g = A(e, "escapeUnicodeCharacters", 8), v = A(e, "maxDocumentSizeTextMode", 8), y = A(e, "flattenColumns", 8), x = A(e, "parser", 8), w = A(e, "parseMemoizeOne", 8), k = A(e, "validator", 8), b = A(e, "validationParser", 8), j = A(e, "pathParser", 8), O = A(e, "insideModal", 8), N = A(e, "onChange", 8), M = A(e, "onChangeMode", 8), z = A(e, "onSelect", 8), H = A(e, "onRenderValue", 8), V = A(e, "onClassName", 8), G = A(e, "onRenderMenu", 8), Q = A(e, "onRenderContextMenu", 8), pe = A(e, "onError", 8),
|
|
41361
|
+
var n = A(e, "content", 8), r = A(e, "selection", 12), i = A(e, "readOnly", 8), o = A(e, "indentation", 8), s = A(e, "tabSize", 8), a = A(e, "truncateTextSize", 8), l = A(e, "externalMode", 8), u = A(e, "ariaLabel", 8, void 0), d = A(e, "mainMenuBar", 8), f = A(e, "navigationBar", 8), h = A(e, "statusBar", 8), p = A(e, "askToFormat", 8), m = A(e, "escapeControlCharacters", 8), g = A(e, "escapeUnicodeCharacters", 8), v = A(e, "maxDocumentSizeTextMode", 8), y = A(e, "flattenColumns", 8), x = A(e, "parser", 8), w = A(e, "parseMemoizeOne", 8), k = A(e, "validator", 8), b = A(e, "validationParser", 8), j = A(e, "pathParser", 8), O = A(e, "insideModal", 8), N = A(e, "onChange", 8), M = A(e, "onChangeMode", 8), z = A(e, "onSelect", 8), H = A(e, "onRenderValue", 8), V = A(e, "onClassName", 8), G = A(e, "onRenderMenu", 8), Q = A(e, "onRenderContextMenu", 8), pe = A(e, "onError", 8), Se = A(e, "onFocus", 8), ge = A(e, "onBlur", 8), le = A(e, "onSortModal", 8), ne = A(e, "onTransformModal", 8), te = A(e, "onJSONEditorModal", 8), R = Z(), B = Z(), _ = Z(), S = xi("jsoneditor:JSONEditorRoot"), C = Z(MM({ onChange: (ve) => E(C, ve) }).get()), $ = Z(l());
|
|
41363
41362
|
function U(ve) {
|
|
41364
41363
|
if (pS(ve)) {
|
|
41365
41364
|
E($, ve.undo.mode);
|
|
@@ -41374,10 +41373,10 @@ function GS(t, e) {
|
|
|
41374
41373
|
S("handleRedo", { index: qe, item: ve, items: Ie, nextItem: Ze }), Ze && r(Ze.undo.selection), M()(c($));
|
|
41375
41374
|
}
|
|
41376
41375
|
}
|
|
41377
|
-
var de = Z(), Ne = { type: "separator" }, D = Z(),
|
|
41376
|
+
var de = Z(), Ne = { type: "separator" }, D = Z(), q = Z();
|
|
41378
41377
|
function P(ve) {
|
|
41379
41378
|
if (c(R)) return c(R).patch(ve);
|
|
41380
|
-
if (c(
|
|
41379
|
+
if (c(B)) return c(B).patch(ve);
|
|
41381
41380
|
if (c(_)) return c(_).patch(ve);
|
|
41382
41381
|
throw new Error('Method patch is not available in mode "'.concat(c($), '"'));
|
|
41383
41382
|
}
|
|
@@ -41395,14 +41394,14 @@ function GS(t, e) {
|
|
|
41395
41394
|
if (c(_)) c(_).openTransformModal(ve);
|
|
41396
41395
|
else if (c(R)) c(R).openTransformModal(ve);
|
|
41397
41396
|
else {
|
|
41398
|
-
if (!c(
|
|
41399
|
-
c(
|
|
41397
|
+
if (!c(B)) throw new Error('Method transform is not available in mode "'.concat(c($), '"'));
|
|
41398
|
+
c(B).openTransformModal(ve);
|
|
41400
41399
|
}
|
|
41401
41400
|
}
|
|
41402
41401
|
function me() {
|
|
41403
41402
|
if (c(_)) return c(_).validate();
|
|
41404
41403
|
if (c(R)) return c(R).validate();
|
|
41405
|
-
if (c(
|
|
41404
|
+
if (c(B)) return c(B).validate();
|
|
41406
41405
|
throw new Error('Method validate is not available in mode "'.concat(c($), '"'));
|
|
41407
41406
|
}
|
|
41408
41407
|
function re() {
|
|
@@ -41410,16 +41409,16 @@ function GS(t, e) {
|
|
|
41410
41409
|
}
|
|
41411
41410
|
function ke(ve) {
|
|
41412
41411
|
if (c(R)) return c(R).scrollTo(ve);
|
|
41413
|
-
if (c(
|
|
41412
|
+
if (c(B)) return c(B).scrollTo(ve);
|
|
41414
41413
|
throw new Error('Method scrollTo is not available in mode "'.concat(c($), '"'));
|
|
41415
41414
|
}
|
|
41416
41415
|
function tt(ve) {
|
|
41417
41416
|
if (c(R)) return c(R).findElement(ve);
|
|
41418
|
-
if (c(
|
|
41417
|
+
if (c(B)) return c(B).findElement(ve);
|
|
41419
41418
|
throw new Error('Method findElement is not available in mode "'.concat(c($), '"'));
|
|
41420
41419
|
}
|
|
41421
41420
|
function $e() {
|
|
41422
|
-
c(_) ? c(_).focus() : c(R) ? c(R).focus() : c(
|
|
41421
|
+
c(_) ? c(_).focus() : c(R) ? c(R).focus() : c(B) && c(B).focus();
|
|
41423
41422
|
}
|
|
41424
41423
|
function it() {
|
|
41425
41424
|
return Ye.apply(this, arguments);
|
|
@@ -41444,7 +41443,7 @@ function GS(t, e) {
|
|
|
41444
41443
|
return G()(Ie, { mode: c($), modal: O(), readOnly: i() }) || qe;
|
|
41445
41444
|
});
|
|
41446
41445
|
}), he(() => (T(Q()), c($), T(O()), T(i()), T(r())), () => {
|
|
41447
|
-
E(
|
|
41446
|
+
E(q, (ve) => {
|
|
41448
41447
|
var Ie, qe = eb(ve);
|
|
41449
41448
|
return (Ie = Q()(ve, { mode: c($), modal: O(), readOnly: i(), selection: r() })) !== null && Ie !== void 0 ? Ie : !i() && qe;
|
|
41450
41449
|
});
|
|
@@ -41491,7 +41490,7 @@ function GS(t, e) {
|
|
|
41491
41490
|
}, onUndo: U, onRedo: J, get onError() {
|
|
41492
41491
|
return pe();
|
|
41493
41492
|
}, get onFocus() {
|
|
41494
|
-
return
|
|
41493
|
+
return Se();
|
|
41495
41494
|
}, get onBlur() {
|
|
41496
41495
|
return ge();
|
|
41497
41496
|
}, get onRenderMenu() {
|
|
@@ -41541,20 +41540,20 @@ function GS(t, e) {
|
|
|
41541
41540
|
}, onUndo: U, onRedo: J, get onRenderValue() {
|
|
41542
41541
|
return H();
|
|
41543
41542
|
}, get onFocus() {
|
|
41544
|
-
return
|
|
41543
|
+
return Se();
|
|
41545
41544
|
}, get onBlur() {
|
|
41546
41545
|
return ge();
|
|
41547
41546
|
}, get onRenderMenu() {
|
|
41548
41547
|
return c(D);
|
|
41549
41548
|
}, get onRenderContextMenu() {
|
|
41550
|
-
return c(
|
|
41549
|
+
return c(q);
|
|
41551
41550
|
}, get onSortModal() {
|
|
41552
41551
|
return le();
|
|
41553
41552
|
}, get onTransformModal() {
|
|
41554
41553
|
return ne();
|
|
41555
41554
|
}, get onJSONEditorModal() {
|
|
41556
41555
|
return te();
|
|
41557
|
-
}, $$legacy: !0 }), (Ie) => E(
|
|
41556
|
+
}, $$legacy: !0 }), (Ie) => E(B, Ie), () => c(B));
|
|
41558
41557
|
}, xe = (ve) => {
|
|
41559
41558
|
gr(q1(ve, { get externalContent() {
|
|
41560
41559
|
return n();
|
|
@@ -41601,13 +41600,13 @@ function GS(t, e) {
|
|
|
41601
41600
|
}, get onClassName() {
|
|
41602
41601
|
return V();
|
|
41603
41602
|
}, get onFocus() {
|
|
41604
|
-
return
|
|
41603
|
+
return Se();
|
|
41605
41604
|
}, get onBlur() {
|
|
41606
41605
|
return ge();
|
|
41607
41606
|
}, get onRenderMenu() {
|
|
41608
41607
|
return c(D);
|
|
41609
41608
|
}, get onRenderContextMenu() {
|
|
41610
|
-
return c(
|
|
41609
|
+
return c(q);
|
|
41611
41610
|
}, get onSortModal() {
|
|
41612
41611
|
return le();
|
|
41613
41612
|
}, get onTransformModal() {
|
|
@@ -41874,7 +41873,7 @@ function LW(t, e) {
|
|
|
41874
41873
|
St(e, !1);
|
|
41875
41874
|
var n = Z(void 0, !0), r = xi("jsoneditor:JSONEditor"), i = { text: "" }, o = void 0, s = !1, a = Xr.tree, l = "JSON editor", u = !0, d = !0, f = !0, h = !0, p = !1, m = !1, g = 10485760, v = !0, y = JSON, x = void 0, w = JSON, k = { parse: mF, stringify: fo }, b = [Iq], j = b[0].id, O = Do, N = void 0, M = void 0, z = pF, H = Do, V = Do, G = Do, Q = Do, pe = (_e) => {
|
|
41876
41875
|
console.error(_e), alert(_e.toString());
|
|
41877
|
-
},
|
|
41876
|
+
}, Se = Do, ge = Do, le = A(e, "content", 13, i), ne = A(e, "selection", 13, o), te = A(e, "readOnly", 13, s), R = A(e, "indentation", 13, 2), B = A(e, "tabSize", 13, 4), _ = A(e, "truncateTextSize", 13, 1e3), S = A(e, "mode", 13, a), C = A(e, "ariaLabel", 13, l), $ = A(e, "mainMenuBar", 13, u), U = A(e, "navigationBar", 13, d), J = A(e, "statusBar", 13, f), de = A(e, "askToFormat", 13, h), Ne = A(e, "escapeControlCharacters", 13, p), D = A(e, "escapeUnicodeCharacters", 13, m), q = A(e, "maxDocumentSizeTextMode", 13, g), P = A(e, "flattenColumns", 13, v), Y = A(e, "parser", 13, y), ie = A(e, "validator", 13, x), Ae = A(e, "validationParser", 13, w), me = A(e, "pathParser", 13, k), re = A(e, "queryLanguages", 13, b), ke = A(e, "queryLanguageId", 13, j), tt = A(e, "onChangeQueryLanguage", 13, O), $e = A(e, "onChange", 13, N), it = A(e, "onSelect", 13, M), Ye = A(e, "onRenderValue", 13, z), Le = A(e, "onClassName", 13, H), pt = A(e, "onRenderMenu", 13, V), I = A(e, "onRenderContextMenu", 13, G), K = A(e, "onChangeMode", 13, Q), X = A(e, "onError", 13, pe), ue = A(e, "onFocus", 13, Se), xe = A(e, "onBlur", 13, ge), ve = Z(ou(), !0), Ie = Z(!1, !0), qe = Z(void 0, !0), Ze = Z(void 0, !0), Qe = Z(void 0, !0), je = Z(void 0, !0), Ke = Z(Y(), !0);
|
|
41878
41877
|
function Te() {
|
|
41879
41878
|
return le();
|
|
41880
41879
|
}
|
|
@@ -41953,7 +41952,7 @@ function LW(t, e) {
|
|
|
41953
41952
|
R((sr = _e[ft]) !== null && sr !== void 0 ? sr : 2);
|
|
41954
41953
|
break;
|
|
41955
41954
|
case "tabSize":
|
|
41956
|
-
|
|
41955
|
+
B((ui = _e[ft]) !== null && ui !== void 0 ? ui : 4);
|
|
41957
41956
|
break;
|
|
41958
41957
|
case "truncateTextSize":
|
|
41959
41958
|
_((yr = _e[ft]) !== null && yr !== void 0 ? yr : 1e3);
|
|
@@ -41983,7 +41982,7 @@ function LW(t, e) {
|
|
|
41983
41982
|
D((Yt = _e[ft]) !== null && Yt !== void 0 ? Yt : m);
|
|
41984
41983
|
break;
|
|
41985
41984
|
case "maxDocumentSizeTextMode":
|
|
41986
|
-
|
|
41985
|
+
q((Kn = _e[ft]) !== null && Kn !== void 0 ? Kn : g);
|
|
41987
41986
|
break;
|
|
41988
41987
|
case "flattenColumns":
|
|
41989
41988
|
P((sn = _e[ft]) !== null && sn !== void 0 ? sn : v);
|
|
@@ -42034,7 +42033,7 @@ function LW(t, e) {
|
|
|
42034
42033
|
X((Wn = _e[ft]) !== null && Wn !== void 0 ? Wn : pe);
|
|
42035
42034
|
break;
|
|
42036
42035
|
case "onFocus":
|
|
42037
|
-
ue((In = _e[ft]) !== null && In !== void 0 ? In :
|
|
42036
|
+
ue((In = _e[ft]) !== null && In !== void 0 ? In : Se);
|
|
42038
42037
|
break;
|
|
42039
42038
|
case "onBlur":
|
|
42040
42039
|
xe((dr = _e[ft]) !== null && dr !== void 0 ? dr : ge);
|
|
@@ -42087,7 +42086,7 @@ function LW(t, e) {
|
|
|
42087
42086
|
}
|
|
42088
42087
|
function Sr(_e) {
|
|
42089
42088
|
var Zt = _e.content, Cr = _e.path, Qt = _e.onPatch, sr = _e.onClose;
|
|
42090
|
-
r("onJSONEditorModal", { content: Zt, path: Cr }), E(Ze, { content: Zt, path: Cr, onPatch: Qt, readOnly: te(), indentation: R(), tabSize:
|
|
42089
|
+
r("onJSONEditorModal", { content: Zt, path: Cr }), E(Ze, { content: Zt, path: Cr, onPatch: Qt, readOnly: te(), indentation: R(), tabSize: B(), truncateTextSize: _(), mainMenuBar: $(), navigationBar: U(), statusBar: J(), askToFormat: de(), escapeControlCharacters: Ne(), escapeUnicodeCharacters: D(), maxDocumentSizeTextMode: q(), flattenColumns: P(), parser: Y(), validator: void 0, validationParser: Ae(), pathParser: me(), onRenderValue: Ye(), onClassName: Le(), onRenderMenu: pt(), onRenderContextMenu: I(), onSortModal: or, onTransformModal: Yn, onClose: sr });
|
|
42091
42090
|
}
|
|
42092
42091
|
function wi(_e) {
|
|
42093
42092
|
_e.stopPropagation();
|
|
@@ -42125,7 +42124,7 @@ function LW(t, e) {
|
|
|
42125
42124
|
}, get indentation() {
|
|
42126
42125
|
return R();
|
|
42127
42126
|
}, get tabSize() {
|
|
42128
|
-
return
|
|
42127
|
+
return B();
|
|
42129
42128
|
}, get truncateTextSize() {
|
|
42130
42129
|
return _();
|
|
42131
42130
|
}, get ariaLabel() {
|
|
@@ -42139,7 +42138,7 @@ function LW(t, e) {
|
|
|
42139
42138
|
}, get navigationBar() {
|
|
42140
42139
|
return U();
|
|
42141
42140
|
}, get maxDocumentSizeTextMode() {
|
|
42142
|
-
return
|
|
42141
|
+
return q();
|
|
42143
42142
|
}, get escapeControlCharacters() {
|
|
42144
42143
|
return Ne();
|
|
42145
42144
|
}, get escapeUnicodeCharacters() {
|