jaml-ui 0.28.1 → 0.30.0
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/README.md +2 -11
- package/dist/assets/{searchPoolWorker-BtlROziN.js → searchPoolWorker-C4xj1WA_.js} +2 -2
- package/dist/assets/searchPoolWorker-C4xj1WA_.js.map +1 -0
- package/dist/chunks/{Layer-BBPJFHfs.js → Layer-Ckd_T6Fw.js} +1 -1
- package/dist/chunks/{Layer-BBPJFHfs.js.map → Layer-Ckd_T6Fw.js.map} +1 -1
- package/dist/chunks/{assets-RWUiFSTc.js → assets-D80i9sMq.js} +1 -1
- package/dist/chunks/{assets-RWUiFSTc.js.map → assets-D80i9sMq.js.map} +1 -1
- package/dist/chunks/runtime-C-It0krH.js +10 -0
- package/dist/chunks/runtime-C-It0krH.js.map +1 -0
- package/dist/chunks/{searchPoolWorker-D1xR43D2.js → searchPoolWorker-hVVM49SD.js} +2 -2
- package/dist/chunks/searchPoolWorker-hVVM49SD.js.map +1 -0
- package/dist/chunks/{spriteMapper-CFjN0_TV.js → spriteMapper-C4_5G1Z6.js} +10 -6
- package/dist/chunks/{spriteMapper-CFjN0_TV.js.map → spriteMapper-C4_5G1Z6.js.map} +1 -1
- package/dist/chunks/{tokens-B65Fzble.js → tokens-Qrhlekc4.js} +1 -1
- package/dist/chunks/{tokens-B65Fzble.js.map → tokens-Qrhlekc4.js.map} +1 -1
- package/dist/chunks/{ui-BEtq_JNg.js → ui-D_9HO9OO.js} +684 -786
- package/dist/chunks/ui-D_9HO9OO.js.map +1 -0
- package/dist/components/PaginatedFilterBrowser.d.ts +3 -0
- package/dist/config.d.ts +2 -0
- package/dist/core.js +8 -8
- package/dist/hooks/useAnalyzer.d.ts +0 -11
- package/dist/hooks/useMotelyRuntime.d.ts +2 -2
- package/dist/index.d.ts +0 -6
- package/dist/index.js +3226 -4027
- package/dist/index.js.map +1 -1
- package/dist/lib/motely/runtime.d.ts +3 -0
- package/dist/motely.d.ts +2 -1
- package/dist/motely.js +2104 -25
- package/dist/motely.js.map +1 -1
- package/dist/providers/MotelyProvider.d.ts +11 -0
- package/dist/r3f.js +4 -4
- package/dist/ui/JimboBadge.d.ts +2 -3
- package/dist/ui/JimboTextInput.d.ts +5 -0
- package/dist/ui/PanelSplitter.d.ts +2 -1
- package/dist/ui/hooks.d.ts +0 -1
- package/dist/ui/jimbo.css +1 -1
- package/dist/ui/panel.d.ts +2 -4
- package/dist/ui.d.ts +1 -0
- package/dist/ui.js +3 -3
- package/jaml.schema.json +1218 -1218
- package/package.json +3 -5
- package/dist/assets/searchPoolWorker-BtlROziN.js.map +0 -1
- package/dist/chunks/motelyItemDecoder-BvFrQpaI.js +0 -2061
- package/dist/chunks/motelyItemDecoder-BvFrQpaI.js.map +0 -1
- package/dist/chunks/searchPoolWorker-D1xR43D2.js.map +0 -1
- package/dist/chunks/ui-BEtq_JNg.js.map +0 -1
- package/dist/components/AnalyzerExplorer.d.ts +0 -47
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as e } from "./
|
|
2
|
-
import { n
|
|
3
|
-
import { n as r, p as i, r as a, t as o } from "./spriteMapper-
|
|
1
|
+
import { n as e, t } from "./tokens-Qrhlekc4.js";
|
|
2
|
+
import { n } from "./assets-D80i9sMq.js";
|
|
3
|
+
import { n as r, p as i, r as a, t as o } from "./spriteMapper-C4_5G1Z6.js";
|
|
4
4
|
import s, { createContext as c, createElement as l, forwardRef as u, memo as d, useCallback as f, useContext as p, useEffect as m, useLayoutEffect as h, useMemo as g, useRef as _, useState as v } from "react";
|
|
5
5
|
import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
6
6
|
import { createPortal as S } from "react-dom";
|
|
@@ -21,17 +21,17 @@ function te(e, t, n, r, i) {
|
|
|
21
21
|
return t.drawImage(n, r.pos.x * a, r.pos.y * o, a, o, 0, 0, e.width, e.height), t.restore(), a / o;
|
|
22
22
|
}
|
|
23
23
|
function C(e) {
|
|
24
|
-
let
|
|
24
|
+
let n = _(null);
|
|
25
25
|
return m(() => {
|
|
26
|
-
if (!e || !
|
|
27
|
-
let r, i = Date.now(), a =
|
|
28
|
-
let e = (Date.now() - i) %
|
|
29
|
-
a.style.transform = `translate(${Math.sin(e) *
|
|
26
|
+
if (!e || !n.current) return;
|
|
27
|
+
let r, i = Date.now(), a = n.current, o = () => {
|
|
28
|
+
let e = (Date.now() - i) % t.SWAY_DURATION / t.SWAY_DURATION * Math.PI * 2;
|
|
29
|
+
a.style.transform = `translate(${Math.sin(e) * t.SWAY_AMOUNT * .3}px, ${Math.sin(e * .8) * t.SWAY_AMOUNT}px)`, r = requestAnimationFrame(o);
|
|
30
30
|
};
|
|
31
31
|
return r = requestAnimationFrame(o), () => {
|
|
32
32
|
cancelAnimationFrame(r), a && (a.style.transform = "");
|
|
33
33
|
};
|
|
34
|
-
}, [e]),
|
|
34
|
+
}, [e]), n;
|
|
35
35
|
}
|
|
36
36
|
function ne() {
|
|
37
37
|
let e = _(null);
|
|
@@ -232,42 +232,7 @@ function T({ layers: e, invert: t = !1, hoverTilt: n = !1 }) {
|
|
|
232
232
|
}
|
|
233
233
|
};
|
|
234
234
|
}
|
|
235
|
-
function E(e, t
|
|
236
|
-
let [n, r] = v(e[0]?.ante ?? 0), [i, a] = v(e[0]?.ante), o = _(null), s = _(/* @__PURE__ */ new Map());
|
|
237
|
-
return e[0]?.ante !== i && (a(e[0]?.ante), e.length > 0 && r(e[0].ante)), m(() => {
|
|
238
|
-
let n = o.current;
|
|
239
|
-
if (!n || e.length === 0) return;
|
|
240
|
-
let i = new IntersectionObserver((e) => {
|
|
241
|
-
let t = e.filter((e) => e.isIntersecting).sort((e, t) => t.intersectionRatio - e.intersectionRatio)[0];
|
|
242
|
-
if (t) {
|
|
243
|
-
let e = Number(t.target.dataset.ante);
|
|
244
|
-
Number.isNaN(e) || r(e);
|
|
245
|
-
}
|
|
246
|
-
}, {
|
|
247
|
-
root: n,
|
|
248
|
-
threshold: t.threshold ?? [
|
|
249
|
-
.4,
|
|
250
|
-
.6,
|
|
251
|
-
.8
|
|
252
|
-
]
|
|
253
|
-
});
|
|
254
|
-
return s.current.forEach((e) => i.observe(e)), () => i.disconnect();
|
|
255
|
-
}, [e, t.threshold]), {
|
|
256
|
-
currentAnte: n,
|
|
257
|
-
scrollRef: o,
|
|
258
|
-
scrollToAnte: f((e) => {
|
|
259
|
-
let t = s.current.get(e);
|
|
260
|
-
t && t.scrollIntoView({
|
|
261
|
-
behavior: "smooth",
|
|
262
|
-
block: "start"
|
|
263
|
-
});
|
|
264
|
-
}, []),
|
|
265
|
-
registerAnteRef: f((e, t) => {
|
|
266
|
-
t ? s.current.set(e, t) : s.current.delete(e);
|
|
267
|
-
}, [])
|
|
268
|
-
};
|
|
269
|
-
}
|
|
270
|
-
function re(e, t, n) {
|
|
235
|
+
function E(e, t, n) {
|
|
271
236
|
let [r, i] = v(null), [a, o] = v(null), [s, c] = v(null), l = f((e, t, n) => {
|
|
272
237
|
let r = "touches" in e ? e.touches[0] : e, i = e.currentTarget.getBoundingClientRect();
|
|
273
238
|
o({
|
|
@@ -336,8 +301,8 @@ function re(e, t, n) {
|
|
|
336
301
|
}
|
|
337
302
|
//#endregion
|
|
338
303
|
//#region src/ui/sprites.tsx
|
|
339
|
-
function D({ name:
|
|
340
|
-
let l = a(
|
|
304
|
+
function D({ name: e, sheet: t, width: i = 40, height: s, style: c }) {
|
|
305
|
+
let l = a(e), u = t ?? l?.type ?? "Jokers", d = o[u], f = r(u), p = l?.pos ?? f.pos, m = i;
|
|
341
306
|
[
|
|
342
307
|
"Jokers",
|
|
343
308
|
"Tarots",
|
|
@@ -354,7 +319,7 @@ function D({ name: t, sheet: n, width: i = 40, height: s, style: c }) {
|
|
|
354
319
|
width: i,
|
|
355
320
|
height: h,
|
|
356
321
|
flexShrink: 0,
|
|
357
|
-
backgroundImage: `url(${
|
|
322
|
+
backgroundImage: `url(${n(d.assetKey)})`,
|
|
358
323
|
backgroundSize: `${g}px ${_}px`,
|
|
359
324
|
backgroundPosition: `${v}px ${y}px`,
|
|
360
325
|
backgroundRepeat: "no-repeat",
|
|
@@ -372,21 +337,21 @@ var O = [
|
|
|
372
337
|
"Orange",
|
|
373
338
|
"Gold"
|
|
374
339
|
];
|
|
375
|
-
function
|
|
376
|
-
let a = O.indexOf(
|
|
340
|
+
function k({ stake: e, width: t = 29, height: r, style: i }) {
|
|
341
|
+
let a = O.indexOf(e.replace(" Stake", "")), o = a >= 0 ? a : 0, s = o % 5, c = Math.floor(o / 5), l = r ?? t, u = t * 5, d = l * 2;
|
|
377
342
|
return /* @__PURE__ */ b("div", { style: {
|
|
378
|
-
width:
|
|
343
|
+
width: t,
|
|
379
344
|
height: l,
|
|
380
345
|
flexShrink: 0,
|
|
381
|
-
backgroundImage: `url(${
|
|
346
|
+
backgroundImage: `url(${n("stakes")})`,
|
|
382
347
|
backgroundSize: `${u}px ${d}px`,
|
|
383
|
-
backgroundPosition: `-${s *
|
|
348
|
+
backgroundPosition: `-${s * t}px -${c * l}px`,
|
|
384
349
|
backgroundRepeat: "no-repeat",
|
|
385
350
|
imageRendering: "pixelated",
|
|
386
351
|
...i
|
|
387
352
|
} });
|
|
388
353
|
}
|
|
389
|
-
var
|
|
354
|
+
var A = {
|
|
390
355
|
Red: 0,
|
|
391
356
|
Blue: 1,
|
|
392
357
|
Yellow: 2,
|
|
@@ -396,15 +361,15 @@ var ae = {
|
|
|
396
361
|
Nebula: 2,
|
|
397
362
|
Ghost: 3
|
|
398
363
|
};
|
|
399
|
-
function
|
|
400
|
-
let a =
|
|
364
|
+
function re({ deck: e, width: t = 71, height: r, style: i }) {
|
|
365
|
+
let a = A[e.replace(" Deck", "")] ?? 0, o = r ?? t * 95 / 71, s = t * 13, c = o * 4;
|
|
401
366
|
return /* @__PURE__ */ b("div", { style: {
|
|
402
|
-
width:
|
|
367
|
+
width: t,
|
|
403
368
|
height: o,
|
|
404
369
|
flexShrink: 0,
|
|
405
|
-
backgroundImage: `url(${
|
|
370
|
+
backgroundImage: `url(${n("deck")})`,
|
|
406
371
|
backgroundSize: `${s}px ${c}px`,
|
|
407
|
-
backgroundPosition: `-${12 *
|
|
372
|
+
backgroundPosition: `-${12 * t}px -${a * o}px`,
|
|
408
373
|
backgroundRepeat: "no-repeat",
|
|
409
374
|
imageRendering: "pixelated",
|
|
410
375
|
...i
|
|
@@ -412,7 +377,7 @@ function oe({ deck: t, width: n = 71, height: r, style: i }) {
|
|
|
412
377
|
}
|
|
413
378
|
//#endregion
|
|
414
379
|
//#region src/ui/jimboText.tsx
|
|
415
|
-
function
|
|
380
|
+
function j({ tone: e = "default", size: t = "md", shadow: n = !0, dance: r = !1, letterSpacing: i, as: a = "span", className: o = "", style: s, children: c, ...l }) {
|
|
416
381
|
let u = `j-text--${t}`, d = `j-text--${e}`, f = n ? "" : "j-text--no-shadow", p = r ? "j-text--dance-container" : "", m = {};
|
|
417
382
|
i != null && (m.letterSpacing = i), s && Object.assign(m, s);
|
|
418
383
|
let h = c;
|
|
@@ -429,7 +394,7 @@ function k({ tone: e = "default", size: t = "md", shadow: n = !0, dance: r = !1,
|
|
|
429
394
|
}
|
|
430
395
|
//#endregion
|
|
431
396
|
//#region src/ui/panel.tsx
|
|
432
|
-
var
|
|
397
|
+
var ie = d(({ children: e, className: t = "", sway: n = !1, onBack: r, hideBack: i = !1, style: a, ...o }) => /* @__PURE__ */ x("div", {
|
|
433
398
|
ref: C(n),
|
|
434
399
|
className: `j-panel ${t}`,
|
|
435
400
|
style: a,
|
|
@@ -439,40 +404,41 @@ var A = d(({ children: e, className: t = "", sway: n = !1, onBack: r, hideBack:
|
|
|
439
404
|
children: e
|
|
440
405
|
}), r && !i && /* @__PURE__ */ b("div", {
|
|
441
406
|
className: "j-panel__back",
|
|
442
|
-
children: /* @__PURE__ */ b(
|
|
407
|
+
children: /* @__PURE__ */ b(oe, { onClick: r })
|
|
443
408
|
})]
|
|
444
409
|
}));
|
|
445
|
-
|
|
446
|
-
var
|
|
410
|
+
ie.displayName = "JimboPanel";
|
|
411
|
+
var ae = d(({ children: e, className: t = "", style: n, ...r }) => /* @__PURE__ */ b("div", {
|
|
447
412
|
className: `j-inner-panel ${t}`,
|
|
448
413
|
style: n,
|
|
449
414
|
...r,
|
|
450
415
|
children: e
|
|
451
416
|
}));
|
|
452
|
-
|
|
453
|
-
function
|
|
454
|
-
let
|
|
417
|
+
ae.displayName = "JimboInnerPanel";
|
|
418
|
+
function M({ tone: e = "orange", size: t = "md", fullWidth: n = !1, disabled: r = !1, onClick: i, style: a, className: o = "", children: s, ...c }) {
|
|
419
|
+
let l = t === "xs" ? "xs" : t === "sm" ? "sm" : t === "lg" ? "lg" : "md";
|
|
455
420
|
return /* @__PURE__ */ b("button", {
|
|
456
421
|
type: "button",
|
|
457
422
|
className: `j-btn j-btn--${e} j-btn--${t} ${n ? "j-btn--full" : ""} ${r ? "j-btn--disabled" : ""} ${o}`,
|
|
458
423
|
disabled: r,
|
|
459
424
|
onClick: i,
|
|
460
425
|
style: a,
|
|
426
|
+
...c,
|
|
461
427
|
children: /* @__PURE__ */ b("div", {
|
|
462
428
|
className: "j-btn__face",
|
|
463
|
-
children: /* @__PURE__ */ b(
|
|
464
|
-
size:
|
|
429
|
+
children: /* @__PURE__ */ b(j, {
|
|
430
|
+
size: l,
|
|
465
431
|
children: s
|
|
466
432
|
})
|
|
467
433
|
})
|
|
468
434
|
});
|
|
469
435
|
}
|
|
470
|
-
function
|
|
436
|
+
function oe({ onClick: e }) {
|
|
471
437
|
return /* @__PURE__ */ b("div", {
|
|
472
438
|
className: "j-back-btn-wrap j-flex j-justify-center j-w-full",
|
|
473
|
-
children: /* @__PURE__ */ b(
|
|
439
|
+
children: /* @__PURE__ */ b(M, {
|
|
474
440
|
tone: "orange",
|
|
475
|
-
size: "
|
|
441
|
+
size: "sm",
|
|
476
442
|
fullWidth: !0,
|
|
477
443
|
onClick: e,
|
|
478
444
|
className: "j-back-btn",
|
|
@@ -480,13 +446,13 @@ function ce({ onClick: e }) {
|
|
|
480
446
|
})
|
|
481
447
|
});
|
|
482
448
|
}
|
|
483
|
-
function
|
|
449
|
+
function se({ children: e, open: t, onClose: n, title: r, className: i, showBack: a = !0 }) {
|
|
484
450
|
return t ? /* @__PURE__ */ b("div", {
|
|
485
451
|
className: "j-modal-overlay",
|
|
486
|
-
children: /* @__PURE__ */ x(
|
|
452
|
+
children: /* @__PURE__ */ x(ie, {
|
|
487
453
|
onBack: a ? n : void 0,
|
|
488
454
|
className: `j-modal ${i ?? ""}`,
|
|
489
|
-
children: [r && /* @__PURE__ */ b(
|
|
455
|
+
children: [r && /* @__PURE__ */ b(j, {
|
|
490
456
|
as: "h2",
|
|
491
457
|
size: "lg",
|
|
492
458
|
className: "j-modal__title",
|
|
@@ -497,18 +463,18 @@ function le({ children: e, open: t, onClose: n, title: r, className: i, showBack
|
|
|
497
463
|
}
|
|
498
464
|
//#endregion
|
|
499
465
|
//#region src/ui/jimboTabs.tsx
|
|
500
|
-
function
|
|
466
|
+
function ce({ tabs: e, activeTab: t, onTabChange: n, className: r = "", style: i }) {
|
|
501
467
|
return /* @__PURE__ */ b("div", {
|
|
502
468
|
className: `j-tabs ${r}`,
|
|
503
469
|
style: i,
|
|
504
|
-
children: e.map((e) => /* @__PURE__ */ b(
|
|
470
|
+
children: e.map((e) => /* @__PURE__ */ b(le, {
|
|
505
471
|
label: e.label,
|
|
506
472
|
active: t === e.id,
|
|
507
473
|
onClick: () => n(e.id)
|
|
508
474
|
}, e.id))
|
|
509
475
|
});
|
|
510
476
|
}
|
|
511
|
-
function
|
|
477
|
+
function le({ label: e, active: t, onClick: n }) {
|
|
512
478
|
return /* @__PURE__ */ x("div", {
|
|
513
479
|
className: "j-tab",
|
|
514
480
|
"data-active": t,
|
|
@@ -527,7 +493,7 @@ function de({ label: e, active: t, onClick: n }) {
|
|
|
527
493
|
className: "j-tab__btn",
|
|
528
494
|
"data-active": t,
|
|
529
495
|
onClick: n,
|
|
530
|
-
children: /* @__PURE__ */ b(
|
|
496
|
+
children: /* @__PURE__ */ b(j, {
|
|
531
497
|
size: "sm",
|
|
532
498
|
tone: "default",
|
|
533
499
|
children: e
|
|
@@ -535,7 +501,7 @@ function de({ label: e, active: t, onClick: n }) {
|
|
|
535
501
|
})]
|
|
536
502
|
});
|
|
537
503
|
}
|
|
538
|
-
function
|
|
504
|
+
function ue({ tabs: e, activeTab: t, onTabChange: n, className: r = "", style: i }) {
|
|
539
505
|
return /* @__PURE__ */ b("div", {
|
|
540
506
|
className: `j-vtabs ${r}`,
|
|
541
507
|
style: i,
|
|
@@ -546,7 +512,7 @@ function fe({ tabs: e, activeTab: t, onTabChange: n, className: r = "", style: i
|
|
|
546
512
|
className: "j-vtab",
|
|
547
513
|
"data-active": r,
|
|
548
514
|
onClick: () => n(e.id),
|
|
549
|
-
children: /* @__PURE__ */ b(
|
|
515
|
+
children: /* @__PURE__ */ b(j, {
|
|
550
516
|
size: "sm",
|
|
551
517
|
tone: r ? "default" : "grey",
|
|
552
518
|
children: e.label
|
|
@@ -557,20 +523,21 @@ function fe({ tabs: e, activeTab: t, onTabChange: n, className: r = "", style: i
|
|
|
557
523
|
}
|
|
558
524
|
//#endregion
|
|
559
525
|
//#region src/ui/JimboBadge.tsx
|
|
560
|
-
function
|
|
526
|
+
function de({ size: e = "sm", tone: t = "dark", className: n, children: r, ...i }) {
|
|
561
527
|
return /* @__PURE__ */ b("span", {
|
|
562
528
|
className: `j-badge j-badge--${e} j-badge--${t} ${n ?? ""}`,
|
|
529
|
+
...i,
|
|
563
530
|
children: r
|
|
564
531
|
});
|
|
565
532
|
}
|
|
566
533
|
//#endregion
|
|
567
534
|
//#region src/ui/jimboFlankNav.tsx
|
|
568
|
-
function
|
|
535
|
+
function fe({ onPrev: e, onNext: t, canPrev: n = !0, canNext: r = !0, prevLabel: i = "Previous", nextLabel: a = "Next", children: o, className: s = "", style: c }) {
|
|
569
536
|
return /* @__PURE__ */ x("div", {
|
|
570
537
|
className: `j-flank ${s}`,
|
|
571
538
|
style: c,
|
|
572
539
|
children: [
|
|
573
|
-
/* @__PURE__ */ b(
|
|
540
|
+
/* @__PURE__ */ b(pe, {
|
|
574
541
|
direction: "left",
|
|
575
542
|
onClick: e,
|
|
576
543
|
disabled: !n,
|
|
@@ -580,7 +547,7 @@ function me({ onPrev: e, onNext: t, canPrev: n = !0, canNext: r = !0, prevLabel:
|
|
|
580
547
|
className: "j-flank__content",
|
|
581
548
|
children: o
|
|
582
549
|
}),
|
|
583
|
-
/* @__PURE__ */ b(
|
|
550
|
+
/* @__PURE__ */ b(pe, {
|
|
584
551
|
direction: "right",
|
|
585
552
|
onClick: t,
|
|
586
553
|
disabled: !r,
|
|
@@ -589,7 +556,7 @@ function me({ onPrev: e, onNext: t, canPrev: n = !0, canNext: r = !0, prevLabel:
|
|
|
589
556
|
]
|
|
590
557
|
});
|
|
591
558
|
}
|
|
592
|
-
function
|
|
559
|
+
function pe({ direction: e, onClick: t, disabled: n, "aria-label": r }) {
|
|
593
560
|
let [i, a] = s.useState(!1);
|
|
594
561
|
return /* @__PURE__ */ b("button", {
|
|
595
562
|
type: "button",
|
|
@@ -604,10 +571,10 @@ function he({ direction: e, onClick: t, disabled: n, "aria-label": r }) {
|
|
|
604
571
|
onMouseLeave: () => a(!1),
|
|
605
572
|
onTouchStart: () => !n && a(!0),
|
|
606
573
|
onTouchEnd: () => a(!1),
|
|
607
|
-
children: /* @__PURE__ */ b(
|
|
574
|
+
children: /* @__PURE__ */ b(me, { direction: e })
|
|
608
575
|
});
|
|
609
576
|
}
|
|
610
|
-
function
|
|
577
|
+
function me({ direction: e }) {
|
|
611
578
|
return /* @__PURE__ */ b("svg", {
|
|
612
579
|
width: 28,
|
|
613
580
|
height: 28,
|
|
@@ -623,7 +590,7 @@ function ge({ direction: e }) {
|
|
|
623
590
|
}
|
|
624
591
|
//#endregion
|
|
625
592
|
//#region src/ui/JimboFloating.tsx
|
|
626
|
-
function
|
|
593
|
+
function he({ anchor: e = "top-right", offset: t = 12, zIndex: n = 20, children: r }) {
|
|
627
594
|
let i = {
|
|
628
595
|
position: "absolute",
|
|
629
596
|
zIndex: n
|
|
@@ -635,8 +602,8 @@ function _e({ anchor: e = "top-right", offset: t = 12, zIndex: n = 20, children:
|
|
|
635
602
|
}
|
|
636
603
|
//#endregion
|
|
637
604
|
//#region src/ui/JimboToggleList.tsx
|
|
638
|
-
function
|
|
639
|
-
return /* @__PURE__ */ b(
|
|
605
|
+
function ge({ items: e, onToggle: t, title: n }) {
|
|
606
|
+
return /* @__PURE__ */ b(ie, { children: /* @__PURE__ */ x("div", {
|
|
640
607
|
className: "j-toggle-list",
|
|
641
608
|
children: [n && /* @__PURE__ */ b("div", {
|
|
642
609
|
className: "j-toggle-list__title",
|
|
@@ -654,7 +621,7 @@ function ve({ items: e, onToggle: t, title: n }) {
|
|
|
654
621
|
}
|
|
655
622
|
//#endregion
|
|
656
623
|
//#region src/ui/jimboFilterBar.tsx
|
|
657
|
-
function
|
|
624
|
+
function _e({ search: e, onSearchChange: t, searchPlaceholder: n = "Search...", searchLabel: r = "Search", sort: i, onSortChange: a, sortLabel: o = "Sort By", sortOptions: s, className: c = "", style: l }) {
|
|
658
625
|
return /* @__PURE__ */ x("div", {
|
|
659
626
|
className: `j-filter-bar ${c}`,
|
|
660
627
|
style: l,
|
|
@@ -662,7 +629,7 @@ function ye({ search: e, onSearchChange: t, searchPlaceholder: n = "Search...",
|
|
|
662
629
|
className: "j-filter-bar__field",
|
|
663
630
|
children: [/* @__PURE__ */ b("div", {
|
|
664
631
|
className: "j-filter-bar__pill",
|
|
665
|
-
children: /* @__PURE__ */ b(
|
|
632
|
+
children: /* @__PURE__ */ b(j, {
|
|
666
633
|
size: "xs",
|
|
667
634
|
children: r
|
|
668
635
|
})
|
|
@@ -670,7 +637,7 @@ function ye({ search: e, onSearchChange: t, searchPlaceholder: n = "Search...",
|
|
|
670
637
|
className: "j-relative",
|
|
671
638
|
children: [/* @__PURE__ */ b("div", {
|
|
672
639
|
className: "j-filter-bar__search-icon",
|
|
673
|
-
children: /* @__PURE__ */ b(
|
|
640
|
+
children: /* @__PURE__ */ b(ve, {})
|
|
674
641
|
}), /* @__PURE__ */ b("input", {
|
|
675
642
|
type: "text",
|
|
676
643
|
value: e ?? "",
|
|
@@ -683,7 +650,7 @@ function ye({ search: e, onSearchChange: t, searchPlaceholder: n = "Search...",
|
|
|
683
650
|
className: "j-filter-bar__field",
|
|
684
651
|
children: [/* @__PURE__ */ b("div", {
|
|
685
652
|
className: "j-filter-bar__pill",
|
|
686
|
-
children: /* @__PURE__ */ b(
|
|
653
|
+
children: /* @__PURE__ */ b(j, {
|
|
687
654
|
size: "xs",
|
|
688
655
|
children: o
|
|
689
656
|
})
|
|
@@ -699,13 +666,13 @@ function ye({ search: e, onSearchChange: t, searchPlaceholder: n = "Search...",
|
|
|
699
666
|
}, e.value))
|
|
700
667
|
}), /* @__PURE__ */ b("div", {
|
|
701
668
|
className: "j-filter-bar__sort-icon",
|
|
702
|
-
children: /* @__PURE__ */ b(
|
|
669
|
+
children: /* @__PURE__ */ b(ye, {})
|
|
703
670
|
})]
|
|
704
671
|
})]
|
|
705
672
|
}) : null]
|
|
706
673
|
});
|
|
707
674
|
}
|
|
708
|
-
function
|
|
675
|
+
function ve() {
|
|
709
676
|
return /* @__PURE__ */ x("svg", {
|
|
710
677
|
width: 24,
|
|
711
678
|
height: 24,
|
|
@@ -728,7 +695,7 @@ function be() {
|
|
|
728
695
|
})]
|
|
729
696
|
});
|
|
730
697
|
}
|
|
731
|
-
function
|
|
698
|
+
function ye() {
|
|
732
699
|
return /* @__PURE__ */ x("svg", {
|
|
733
700
|
width: 20,
|
|
734
701
|
height: 20,
|
|
@@ -749,89 +716,44 @@ function xe() {
|
|
|
749
716
|
}
|
|
750
717
|
//#endregion
|
|
751
718
|
//#region src/ui/footer.tsx
|
|
752
|
-
|
|
753
|
-
{
|
|
754
|
-
char: "♥️",
|
|
755
|
-
keyframe: "bff-heart"
|
|
756
|
-
},
|
|
757
|
-
{
|
|
758
|
-
char: "♠️",
|
|
759
|
-
keyframe: "bff-spade"
|
|
760
|
-
},
|
|
761
|
-
{
|
|
762
|
-
char: "♦️",
|
|
763
|
-
keyframe: "bff-diamond"
|
|
764
|
-
},
|
|
765
|
-
{
|
|
766
|
-
char: "♣️",
|
|
767
|
-
keyframe: "bff-club"
|
|
768
|
-
}
|
|
769
|
-
], Ce = "5s", we = {
|
|
770
|
-
fontFamily: "var(--font-game, var(--j-font, ui-sans-serif, system-ui, sans-serif))",
|
|
771
|
-
fontSize: "10px"
|
|
772
|
-
}, Te = "#FFD85C";
|
|
773
|
-
function Ee({ hidden: e = !1, className: t = "", children: n }) {
|
|
774
|
-
return e ? null : /* @__PURE__ */ x("div", {
|
|
719
|
+
function be({ hidden: e = !1, className: t = "", children: n }) {
|
|
720
|
+
return e ? null : /* @__PURE__ */ b("div", {
|
|
775
721
|
className: ["j-footer", t].filter(Boolean).join(" "),
|
|
776
|
-
children:
|
|
722
|
+
children: /* @__PURE__ */ b("div", {
|
|
777
723
|
className: "j-footer__bar",
|
|
778
724
|
children: /* @__PURE__ */ x("p", {
|
|
779
725
|
className: "j-footer__line j-footer__line--wrap",
|
|
780
|
-
style: we,
|
|
781
726
|
children: [
|
|
782
|
-
/* @__PURE__ */ b("span", { children: "Not affiliated with LocalThunk or PlayStack" }),
|
|
783
727
|
/* @__PURE__ */ b("span", {
|
|
784
|
-
className: "j-
|
|
785
|
-
children: "
|
|
728
|
+
className: "j-footer__chunk",
|
|
729
|
+
children: "Not affiliated with LocalThunk or PlayStack"
|
|
786
730
|
}),
|
|
787
|
-
/* @__PURE__ */
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
display: "inline-flex",
|
|
801
|
-
alignItems: "center",
|
|
802
|
-
justifyContent: "center",
|
|
803
|
-
opacity: 0,
|
|
804
|
-
animationName: t,
|
|
805
|
-
animationDuration: Ce,
|
|
806
|
-
animationDelay: "0s",
|
|
807
|
-
animationIterationCount: "infinite",
|
|
808
|
-
animationTimingFunction: "ease-out"
|
|
809
|
-
},
|
|
810
|
-
children: e
|
|
811
|
-
}, e))
|
|
812
|
-
}),
|
|
813
|
-
/* @__PURE__ */ b("span", { children: "for the" }),
|
|
814
|
-
/* @__PURE__ */ b("a", {
|
|
815
|
-
className: "j-footer__link",
|
|
816
|
-
href: "https://playbalatro.com",
|
|
817
|
-
target: "_blank",
|
|
818
|
-
rel: "noopener noreferrer",
|
|
819
|
-
style: { color: Te },
|
|
820
|
-
children: "Balatro"
|
|
731
|
+
/* @__PURE__ */ x("span", {
|
|
732
|
+
className: "j-footer__chunk j-footer__chunk--credit",
|
|
733
|
+
children: [
|
|
734
|
+
"Made for the ",
|
|
735
|
+
/* @__PURE__ */ b("a", {
|
|
736
|
+
className: "j-footer__link",
|
|
737
|
+
href: "https://playbalatro.com",
|
|
738
|
+
target: "_blank",
|
|
739
|
+
rel: "noopener noreferrer",
|
|
740
|
+
children: "Balatro"
|
|
741
|
+
}),
|
|
742
|
+
" community"
|
|
743
|
+
]
|
|
821
744
|
}),
|
|
822
|
-
/* @__PURE__ */ b("span", { children: "community" }),
|
|
823
745
|
n ? /* @__PURE__ */ b("span", {
|
|
824
746
|
className: "j-footer__extra",
|
|
825
747
|
children: n
|
|
826
748
|
}) : null
|
|
827
749
|
]
|
|
828
750
|
})
|
|
829
|
-
})
|
|
751
|
+
})
|
|
830
752
|
});
|
|
831
753
|
}
|
|
832
754
|
//#endregion
|
|
833
755
|
//#region src/ui/jimboBackground.tsx
|
|
834
|
-
function
|
|
756
|
+
function xe() {
|
|
835
757
|
return /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b("canvas", {
|
|
836
758
|
ref: ne(),
|
|
837
759
|
"aria-hidden": !0,
|
|
@@ -843,21 +765,21 @@ function De() {
|
|
|
843
765
|
zIndex: -10,
|
|
844
766
|
pointerEvents: "none"
|
|
845
767
|
}
|
|
846
|
-
}), /* @__PURE__ */ b(
|
|
768
|
+
}), /* @__PURE__ */ b(be, {})] });
|
|
847
769
|
}
|
|
848
770
|
//#endregion
|
|
849
771
|
//#region src/ui/jimboTooltip.tsx
|
|
850
|
-
function
|
|
772
|
+
function Se(e, t) {
|
|
851
773
|
typeof e == "function" ? e(t) : e && typeof e == "object" && (e.current = t);
|
|
852
774
|
}
|
|
853
|
-
function
|
|
775
|
+
function Ce({ content: e, children: t, mode: n = "snap", placement: r = "auto", delay: i = 80, maxWidth: a = 280, disabled: o = !1 }) {
|
|
854
776
|
let { visible: c, pos: l, targetRef: u, tooltipRef: d, show: p, hide: m, handleMouseMove: h } = w({
|
|
855
777
|
mode: n,
|
|
856
778
|
placement: r,
|
|
857
779
|
delay: i,
|
|
858
780
|
disabled: o
|
|
859
781
|
}), g = s.Children.only(t), _ = g.ref, v = f((e) => {
|
|
860
|
-
u.current = e,
|
|
782
|
+
u.current = e, Se(_, e);
|
|
861
783
|
}, [_, u]);
|
|
862
784
|
return /* @__PURE__ */ x(y, { children: [s.cloneElement(g, {
|
|
863
785
|
ref: v,
|
|
@@ -891,8 +813,8 @@ function ke({ content: e, children: t, mode: n = "snap", placement: r = "auto",
|
|
|
891
813
|
}
|
|
892
814
|
//#endregion
|
|
893
815
|
//#region src/ui/codeBlock.tsx
|
|
894
|
-
function
|
|
895
|
-
let [i, a] = v(!1);
|
|
816
|
+
function we({ code: e, language: t, filename: n, className: r = "" }) {
|
|
817
|
+
let [i, a] = v(!1), o = n?.toLowerCase().endsWith(".jaml") ? "JAML" : t?.toLowerCase() === "yaml" ? void 0 : t;
|
|
896
818
|
return /* @__PURE__ */ x("div", {
|
|
897
819
|
className: `j-code-block ${r}`,
|
|
898
820
|
children: [/* @__PURE__ */ x("div", {
|
|
@@ -902,9 +824,9 @@ function Ae({ code: e, language: t, filename: n, className: r = "" }) {
|
|
|
902
824
|
children: [n && /* @__PURE__ */ b("span", {
|
|
903
825
|
className: "j-code-block__filename",
|
|
904
826
|
children: n
|
|
905
|
-
}),
|
|
827
|
+
}), o && /* @__PURE__ */ b("span", {
|
|
906
828
|
className: "j-code-block__lang",
|
|
907
|
-
children:
|
|
829
|
+
children: o
|
|
908
830
|
})]
|
|
909
831
|
}), /* @__PURE__ */ b("button", {
|
|
910
832
|
onClick: () => {
|
|
@@ -949,21 +871,21 @@ function Ae({ code: e, language: t, filename: n, className: r = "" }) {
|
|
|
949
871
|
}
|
|
950
872
|
//#endregion
|
|
951
873
|
//#region src/ui/jimboApp.tsx
|
|
952
|
-
function
|
|
874
|
+
function Te({ children: e, fluid: t, className: n = "", ...r }) {
|
|
953
875
|
return /* @__PURE__ */ b("div", {
|
|
954
876
|
className: `j-app${t ? " j-app--fluid" : ""} ${n}`.trim(),
|
|
955
877
|
...r,
|
|
956
878
|
children: e
|
|
957
879
|
});
|
|
958
880
|
}
|
|
959
|
-
function
|
|
881
|
+
function Ee({ children: e, className: t = "", ...n }) {
|
|
960
882
|
return /* @__PURE__ */ b("div", {
|
|
961
883
|
className: `j-app__scroll ${t}`,
|
|
962
884
|
...n,
|
|
963
885
|
children: e
|
|
964
886
|
});
|
|
965
887
|
}
|
|
966
|
-
function
|
|
888
|
+
function De({ children: e, className: t = "", ...n }) {
|
|
967
889
|
return /* @__PURE__ */ b("div", {
|
|
968
890
|
className: `j-app__footer ${t}`,
|
|
969
891
|
...n,
|
|
@@ -972,7 +894,7 @@ function Ne({ children: e, className: t = "", ...n }) {
|
|
|
972
894
|
}
|
|
973
895
|
//#endregion
|
|
974
896
|
//#region src/ui/jimboSectionHeader.tsx
|
|
975
|
-
function
|
|
897
|
+
function Oe({ label: e, tone: t = "blue", className: n = "" }) {
|
|
976
898
|
return /* @__PURE__ */ x("div", {
|
|
977
899
|
className: `j-section-header ${n}`,
|
|
978
900
|
children: [/* @__PURE__ */ b("div", {
|
|
@@ -983,7 +905,7 @@ function Pe({ label: e, tone: t = "blue", className: n = "" }) {
|
|
|
983
905
|
}
|
|
984
906
|
//#endregion
|
|
985
907
|
//#region src/ui/jimboInfoCard.tsx
|
|
986
|
-
function
|
|
908
|
+
function ke({ tone: e, children: t, className: n = "", ...r }) {
|
|
987
909
|
return /* @__PURE__ */ b("div", {
|
|
988
910
|
className: `j-info-card ${e ? `j-border--${e}` : ""} ${n}`,
|
|
989
911
|
style: e ? { borderColor: void 0 } : void 0,
|
|
@@ -991,25 +913,25 @@ function Fe({ tone: e, children: t, className: n = "", ...r }) {
|
|
|
991
913
|
children: t
|
|
992
914
|
});
|
|
993
915
|
}
|
|
994
|
-
function
|
|
916
|
+
function Ae({ children: e, className: t = "" }) {
|
|
995
917
|
return /* @__PURE__ */ b("div", {
|
|
996
918
|
className: `j-info-card__body ${t}`,
|
|
997
919
|
children: e
|
|
998
920
|
});
|
|
999
921
|
}
|
|
1000
|
-
function
|
|
922
|
+
function je({ children: e, className: t = "" }) {
|
|
1001
923
|
return /* @__PURE__ */ b("div", {
|
|
1002
924
|
className: `j-info-card__title ${t}`,
|
|
1003
925
|
children: e
|
|
1004
926
|
});
|
|
1005
927
|
}
|
|
1006
|
-
function
|
|
928
|
+
function Me({ children: e, className: t = "" }) {
|
|
1007
929
|
return /* @__PURE__ */ b("div", {
|
|
1008
930
|
className: `j-info-card__sub ${t}`,
|
|
1009
931
|
children: e
|
|
1010
932
|
});
|
|
1011
933
|
}
|
|
1012
|
-
function
|
|
934
|
+
function Ne({ children: e, className: t = "" }) {
|
|
1013
935
|
return /* @__PURE__ */ b("div", {
|
|
1014
936
|
className: `j-info-card__aside ${t}`,
|
|
1015
937
|
children: e
|
|
@@ -1017,8 +939,8 @@ function ze({ children: e, className: t = "" }) {
|
|
|
1017
939
|
}
|
|
1018
940
|
//#endregion
|
|
1019
941
|
//#region src/ui/showcase.tsx
|
|
1020
|
-
function
|
|
1021
|
-
return /* @__PURE__ */ x(
|
|
942
|
+
function Pe({ title: e = "Balatro", subtitle: t = "Seed Curator", hotFilters: n = [], recentFinds: r = [], mcpInfo: i, onNewSearch: a, onBrowseFilters: o, onFilterClick: s }) {
|
|
943
|
+
return /* @__PURE__ */ x(Te, { children: [
|
|
1022
944
|
/* @__PURE__ */ x("div", {
|
|
1023
945
|
style: {
|
|
1024
946
|
padding: "12px 12px 8px",
|
|
@@ -1029,11 +951,11 @@ function Be({ title: e = "Balatro", subtitle: t = "Seed Curator", hotFilters: n
|
|
|
1029
951
|
children: [
|
|
1030
952
|
/* @__PURE__ */ x("div", {
|
|
1031
953
|
className: "j-text-center",
|
|
1032
|
-
children: [/* @__PURE__ */ b(
|
|
954
|
+
children: [/* @__PURE__ */ b(j, {
|
|
1033
955
|
size: "lg",
|
|
1034
956
|
tone: "gold",
|
|
1035
957
|
children: e
|
|
1036
|
-
}), /* @__PURE__ */ b(
|
|
958
|
+
}), /* @__PURE__ */ b(j, {
|
|
1037
959
|
size: "micro",
|
|
1038
960
|
tone: "grey",
|
|
1039
961
|
style: { letterSpacing: 3 },
|
|
@@ -1048,23 +970,23 @@ function Be({ title: e = "Balatro", subtitle: t = "Seed Curator", hotFilters: n
|
|
|
1048
970
|
borderRadius: 4,
|
|
1049
971
|
border: "1px solid var(--j-panel-edge)"
|
|
1050
972
|
},
|
|
1051
|
-
children: [/* @__PURE__ */ b(
|
|
973
|
+
children: [/* @__PURE__ */ b(j, {
|
|
1052
974
|
size: "micro",
|
|
1053
975
|
tone: "purple",
|
|
1054
976
|
children: i.engine
|
|
1055
|
-
}), /* @__PURE__ */ b(
|
|
977
|
+
}), /* @__PURE__ */ b(j, {
|
|
1056
978
|
size: "micro",
|
|
1057
979
|
tone: "grey",
|
|
1058
980
|
children: i.features
|
|
1059
981
|
})]
|
|
1060
982
|
}),
|
|
1061
|
-
n.length > 0 && /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(
|
|
983
|
+
n.length > 0 && /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(Oe, {
|
|
1062
984
|
label: "Filters",
|
|
1063
985
|
tone: "blue"
|
|
1064
986
|
}), /* @__PURE__ */ b("div", {
|
|
1065
987
|
className: "j-flex-col",
|
|
1066
988
|
style: { gap: 4 },
|
|
1067
|
-
children: n.slice(0, 4).map((e, t) => /* @__PURE__ */ x(
|
|
989
|
+
children: n.slice(0, 4).map((e, t) => /* @__PURE__ */ x(ke, {
|
|
1068
990
|
tone: e.tone,
|
|
1069
991
|
onClick: () => s?.(e, t),
|
|
1070
992
|
style: { cursor: s ? "pointer" : void 0 },
|
|
@@ -1085,8 +1007,8 @@ function Be({ title: e = "Balatro", subtitle: t = "Seed Curator", hotFilters: n
|
|
|
1085
1007
|
})
|
|
1086
1008
|
}, t))
|
|
1087
1009
|
}),
|
|
1088
|
-
/* @__PURE__ */ x(
|
|
1089
|
-
/* @__PURE__ */ b(
|
|
1010
|
+
/* @__PURE__ */ x(Ae, { children: [/* @__PURE__ */ b(je, { children: e.name }), /* @__PURE__ */ x(Me, { children: ["by ", e.author] })] }),
|
|
1011
|
+
/* @__PURE__ */ b(Ne, { children: /* @__PURE__ */ b(j, {
|
|
1090
1012
|
size: "xs",
|
|
1091
1013
|
tone: e.tone === "gold" ? "gold" : e.tone,
|
|
1092
1014
|
children: e.hits
|
|
@@ -1094,7 +1016,7 @@ function Be({ title: e = "Balatro", subtitle: t = "Seed Curator", hotFilters: n
|
|
|
1094
1016
|
]
|
|
1095
1017
|
}, t))
|
|
1096
1018
|
})] }),
|
|
1097
|
-
r.length > 0 && /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(
|
|
1019
|
+
r.length > 0 && /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(Oe, {
|
|
1098
1020
|
label: "Recent",
|
|
1099
1021
|
tone: "green"
|
|
1100
1022
|
}), /* @__PURE__ */ b("div", {
|
|
@@ -1102,17 +1024,17 @@ function Be({ title: e = "Balatro", subtitle: t = "Seed Curator", hotFilters: n
|
|
|
1102
1024
|
children: r.slice(0, 3).map((e, t) => /* @__PURE__ */ x("div", {
|
|
1103
1025
|
className: "j-flex j-gap-sm",
|
|
1104
1026
|
children: [
|
|
1105
|
-
/* @__PURE__ */ b(
|
|
1027
|
+
/* @__PURE__ */ b(j, {
|
|
1106
1028
|
size: "micro",
|
|
1107
1029
|
tone: "gold",
|
|
1108
1030
|
children: e.seed
|
|
1109
1031
|
}),
|
|
1110
|
-
/* @__PURE__ */ b(
|
|
1032
|
+
/* @__PURE__ */ b(j, {
|
|
1111
1033
|
size: "micro",
|
|
1112
1034
|
tone: "grey",
|
|
1113
1035
|
children: e.filterName
|
|
1114
1036
|
}),
|
|
1115
|
-
e.score > 0 && /* @__PURE__ */ x(
|
|
1037
|
+
e.score > 0 && /* @__PURE__ */ x(j, {
|
|
1116
1038
|
size: "micro",
|
|
1117
1039
|
tone: "green",
|
|
1118
1040
|
children: ["+", e.score]
|
|
@@ -1122,25 +1044,25 @@ function Be({ title: e = "Balatro", subtitle: t = "Seed Curator", hotFilters: n
|
|
|
1122
1044
|
})] })
|
|
1123
1045
|
]
|
|
1124
1046
|
}),
|
|
1125
|
-
/* @__PURE__ */ x(
|
|
1047
|
+
/* @__PURE__ */ x(De, { children: [/* @__PURE__ */ b(M, {
|
|
1126
1048
|
tone: "green",
|
|
1127
1049
|
fullWidth: !0,
|
|
1128
1050
|
size: "lg",
|
|
1129
1051
|
onClick: a,
|
|
1130
1052
|
children: "New Search"
|
|
1131
|
-
}), /* @__PURE__ */ b(
|
|
1053
|
+
}), /* @__PURE__ */ b(M, {
|
|
1132
1054
|
tone: "blue",
|
|
1133
1055
|
fullWidth: !0,
|
|
1134
1056
|
size: "lg",
|
|
1135
1057
|
onClick: o,
|
|
1136
1058
|
children: "Browse Filters"
|
|
1137
1059
|
})] }),
|
|
1138
|
-
/* @__PURE__ */ b(
|
|
1060
|
+
/* @__PURE__ */ b(be, {})
|
|
1139
1061
|
] });
|
|
1140
1062
|
}
|
|
1141
1063
|
//#endregion
|
|
1142
1064
|
//#region src/ui/jimboCopyRow.tsx
|
|
1143
|
-
function
|
|
1065
|
+
function Fe({ value: e, label: t }) {
|
|
1144
1066
|
let [n, r] = v(!1);
|
|
1145
1067
|
function i() {
|
|
1146
1068
|
navigator.clipboard.writeText(e).then(() => {
|
|
@@ -1149,7 +1071,7 @@ function Ve({ value: e, label: t }) {
|
|
|
1149
1071
|
}
|
|
1150
1072
|
return /* @__PURE__ */ x("div", {
|
|
1151
1073
|
className: "j-copy-row",
|
|
1152
|
-
children: [t && /* @__PURE__ */ b(
|
|
1074
|
+
children: [t && /* @__PURE__ */ b(j, {
|
|
1153
1075
|
size: "xs",
|
|
1154
1076
|
tone: "grey",
|
|
1155
1077
|
className: "j-copy-row__label",
|
|
@@ -1158,7 +1080,7 @@ function Ve({ value: e, label: t }) {
|
|
|
1158
1080
|
className: "j-copy-row__field",
|
|
1159
1081
|
children: [/* @__PURE__ */ b("div", {
|
|
1160
1082
|
className: "j-copy-row__value",
|
|
1161
|
-
children: /* @__PURE__ */ b(
|
|
1083
|
+
children: /* @__PURE__ */ b(j, {
|
|
1162
1084
|
size: "sm",
|
|
1163
1085
|
children: e
|
|
1164
1086
|
})
|
|
@@ -1174,7 +1096,7 @@ function Ve({ value: e, label: t }) {
|
|
|
1174
1096
|
}
|
|
1175
1097
|
//#endregion
|
|
1176
1098
|
//#region src/ui/jimboWordmark.tsx
|
|
1177
|
-
function
|
|
1099
|
+
function Ie({ title: e, subtitle: t, className: n = "" }) {
|
|
1178
1100
|
return /* @__PURE__ */ x("div", {
|
|
1179
1101
|
className: `j-wordmark ${n}`,
|
|
1180
1102
|
children: [/* @__PURE__ */ b("div", {
|
|
@@ -1188,7 +1110,7 @@ function He({ title: e, subtitle: t, className: n = "" }) {
|
|
|
1188
1110
|
}
|
|
1189
1111
|
//#endregion
|
|
1190
1112
|
//#region src/ui/jimboStatGrid.tsx
|
|
1191
|
-
function
|
|
1113
|
+
function Le({ items: e, className: t = "", ...n }) {
|
|
1192
1114
|
return /* @__PURE__ */ b("div", {
|
|
1193
1115
|
className: `j-stat-grid ${t}`,
|
|
1194
1116
|
...n,
|
|
@@ -1203,7 +1125,7 @@ function Ue({ items: e, className: t = "", ...n }) {
|
|
|
1203
1125
|
}
|
|
1204
1126
|
//#endregion
|
|
1205
1127
|
//#region src/ui/jimboInset.tsx
|
|
1206
|
-
function
|
|
1128
|
+
function Re({ children: e, className: t = "", ...n }) {
|
|
1207
1129
|
return /* @__PURE__ */ b("div", {
|
|
1208
1130
|
className: `j-inset ${t}`,
|
|
1209
1131
|
...n,
|
|
@@ -1212,68 +1134,68 @@ function We({ children: e, className: t = "", ...n }) {
|
|
|
1212
1134
|
}
|
|
1213
1135
|
//#endregion
|
|
1214
1136
|
//#region node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/dist/js-yaml.mjs
|
|
1215
|
-
function
|
|
1137
|
+
function ze(e) {
|
|
1216
1138
|
return e == null;
|
|
1217
1139
|
}
|
|
1218
|
-
function
|
|
1140
|
+
function Be(e) {
|
|
1219
1141
|
return typeof e == "object" && !!e;
|
|
1220
1142
|
}
|
|
1221
|
-
function
|
|
1222
|
-
return Array.isArray(e) ? e :
|
|
1143
|
+
function Ve(e) {
|
|
1144
|
+
return Array.isArray(e) ? e : ze(e) ? [] : [e];
|
|
1223
1145
|
}
|
|
1224
|
-
function
|
|
1146
|
+
function He(e, t) {
|
|
1225
1147
|
var n, r, i, a;
|
|
1226
1148
|
if (t) for (a = Object.keys(t), n = 0, r = a.length; n < r; n += 1) i = a[n], e[i] = t[i];
|
|
1227
1149
|
return e;
|
|
1228
1150
|
}
|
|
1229
|
-
function
|
|
1151
|
+
function Ue(e, t) {
|
|
1230
1152
|
var n = "", r;
|
|
1231
1153
|
for (r = 0; r < t; r += 1) n += e;
|
|
1232
1154
|
return n;
|
|
1233
1155
|
}
|
|
1234
|
-
function
|
|
1156
|
+
function We(e) {
|
|
1235
1157
|
return e === 0 && 1 / e == -Infinity;
|
|
1236
1158
|
}
|
|
1237
|
-
var
|
|
1238
|
-
isNothing:
|
|
1239
|
-
isObject:
|
|
1240
|
-
toArray:
|
|
1241
|
-
repeat:
|
|
1242
|
-
isNegativeZero:
|
|
1243
|
-
extend:
|
|
1159
|
+
var N = {
|
|
1160
|
+
isNothing: ze,
|
|
1161
|
+
isObject: Be,
|
|
1162
|
+
toArray: Ve,
|
|
1163
|
+
repeat: Ue,
|
|
1164
|
+
isNegativeZero: We,
|
|
1165
|
+
extend: He
|
|
1244
1166
|
};
|
|
1245
|
-
function
|
|
1167
|
+
function Ge(e, t) {
|
|
1246
1168
|
var n = "", r = e.reason || "(unknown reason)";
|
|
1247
1169
|
return e.mark ? (e.mark.name && (n += "in \"" + e.mark.name + "\" "), n += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !t && e.mark.snippet && (n += "\n\n" + e.mark.snippet), r + " " + n) : r;
|
|
1248
1170
|
}
|
|
1249
|
-
function
|
|
1250
|
-
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message =
|
|
1171
|
+
function P(e, t) {
|
|
1172
|
+
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = Ge(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = (/* @__PURE__ */ Error()).stack || "";
|
|
1251
1173
|
}
|
|
1252
|
-
|
|
1253
|
-
return this.name + ": " +
|
|
1174
|
+
P.prototype = Object.create(Error.prototype), P.prototype.constructor = P, P.prototype.toString = function(e) {
|
|
1175
|
+
return this.name + ": " + Ge(this, e);
|
|
1254
1176
|
};
|
|
1255
|
-
var
|
|
1256
|
-
function
|
|
1177
|
+
var F = P;
|
|
1178
|
+
function Ke(e, t, n, r, i) {
|
|
1257
1179
|
var a = "", o = "", s = Math.floor(i / 2) - 1;
|
|
1258
1180
|
return r - t > s && (a = " ... ", t = r - s + a.length), n - r > s && (o = " ...", n = r + s - o.length), {
|
|
1259
1181
|
str: a + e.slice(t, n).replace(/\t/g, "→") + o,
|
|
1260
1182
|
pos: r - t + a.length
|
|
1261
1183
|
};
|
|
1262
1184
|
}
|
|
1263
|
-
function
|
|
1264
|
-
return
|
|
1185
|
+
function qe(e, t) {
|
|
1186
|
+
return N.repeat(" ", t - e.length) + e;
|
|
1265
1187
|
}
|
|
1266
|
-
function
|
|
1188
|
+
function Je(e, t) {
|
|
1267
1189
|
if (t = Object.create(t || null), !e.buffer) return null;
|
|
1268
1190
|
t.maxLength ||= 79, typeof t.indent != "number" && (t.indent = 1), typeof t.linesBefore != "number" && (t.linesBefore = 3), typeof t.linesAfter != "number" && (t.linesAfter = 2);
|
|
1269
1191
|
for (var n = /\r?\n|\r|\0/g, r = [0], i = [], a, o = -1; a = n.exec(e.buffer);) i.push(a.index), r.push(a.index + a[0].length), e.position <= a.index && o < 0 && (o = r.length - 2);
|
|
1270
1192
|
o < 0 && (o = r.length - 1);
|
|
1271
1193
|
var s = "", c, l, u = Math.min(e.line + t.linesAfter, i.length).toString().length, d = t.maxLength - (t.indent + u + 3);
|
|
1272
|
-
for (c = 1; c <= t.linesBefore && !(o - c < 0); c++) l =
|
|
1273
|
-
for (l =
|
|
1194
|
+
for (c = 1; c <= t.linesBefore && !(o - c < 0); c++) l = Ke(e.buffer, r[o - c], i[o - c], e.position - (r[o] - r[o - c]), d), s = N.repeat(" ", t.indent) + qe((e.line - c + 1).toString(), u) + " | " + l.str + "\n" + s;
|
|
1195
|
+
for (l = Ke(e.buffer, r[o], i[o], e.position, d), s += N.repeat(" ", t.indent) + qe((e.line + 1).toString(), u) + " | " + l.str + "\n", s += N.repeat("-", t.indent + u + 3 + l.pos) + "^\n", c = 1; c <= t.linesAfter && !(o + c >= i.length); c++) l = Ke(e.buffer, r[o + c], i[o + c], e.position - (r[o] - r[o + c]), d), s += N.repeat(" ", t.indent) + qe((e.line + c + 1).toString(), u) + " | " + l.str + "\n";
|
|
1274
1196
|
return s.replace(/\n$/, "");
|
|
1275
1197
|
}
|
|
1276
|
-
var
|
|
1198
|
+
var Ye = Je, Xe = [
|
|
1277
1199
|
"kind",
|
|
1278
1200
|
"multi",
|
|
1279
1201
|
"resolve",
|
|
@@ -1284,12 +1206,12 @@ var nt = tt, rt = [
|
|
|
1284
1206
|
"representName",
|
|
1285
1207
|
"defaultStyle",
|
|
1286
1208
|
"styleAliases"
|
|
1287
|
-
],
|
|
1209
|
+
], Ze = [
|
|
1288
1210
|
"scalar",
|
|
1289
1211
|
"sequence",
|
|
1290
1212
|
"mapping"
|
|
1291
1213
|
];
|
|
1292
|
-
function
|
|
1214
|
+
function Qe(e) {
|
|
1293
1215
|
var t = {};
|
|
1294
1216
|
return e !== null && Object.keys(e).forEach(function(n) {
|
|
1295
1217
|
e[n].forEach(function(e) {
|
|
@@ -1297,17 +1219,17 @@ function at(e) {
|
|
|
1297
1219
|
});
|
|
1298
1220
|
}), t;
|
|
1299
1221
|
}
|
|
1300
|
-
function
|
|
1222
|
+
function $e(e, t) {
|
|
1301
1223
|
if (t ||= {}, Object.keys(t).forEach(function(t) {
|
|
1302
|
-
if (
|
|
1224
|
+
if (Xe.indexOf(t) === -1) throw new F("Unknown option \"" + t + "\" is met in definition of \"" + e + "\" YAML type.");
|
|
1303
1225
|
}), this.options = t, this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function() {
|
|
1304
1226
|
return !0;
|
|
1305
1227
|
}, this.construct = t.construct || function(e) {
|
|
1306
1228
|
return e;
|
|
1307
|
-
}, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases =
|
|
1229
|
+
}, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases = Qe(t.styleAliases || null), Ze.indexOf(this.kind) === -1) throw new F("Unknown kind \"" + this.kind + "\" is specified for \"" + e + "\" YAML type.");
|
|
1308
1230
|
}
|
|
1309
|
-
var
|
|
1310
|
-
function
|
|
1231
|
+
var I = $e;
|
|
1232
|
+
function et(e, t) {
|
|
1311
1233
|
var n = [];
|
|
1312
1234
|
return e[t].forEach(function(e) {
|
|
1313
1235
|
var t = n.length;
|
|
@@ -1316,7 +1238,7 @@ function st(e, t) {
|
|
|
1316
1238
|
}), n[t] = e;
|
|
1317
1239
|
}), n;
|
|
1318
1240
|
}
|
|
1319
|
-
function
|
|
1241
|
+
function tt() {
|
|
1320
1242
|
var e = {
|
|
1321
1243
|
scalar: {},
|
|
1322
1244
|
sequence: {},
|
|
@@ -1335,61 +1257,61 @@ function ct() {
|
|
|
1335
1257
|
for (t = 0, n = arguments.length; t < n; t += 1) arguments[t].forEach(r);
|
|
1336
1258
|
return e;
|
|
1337
1259
|
}
|
|
1338
|
-
function
|
|
1260
|
+
function nt(e) {
|
|
1339
1261
|
return this.extend(e);
|
|
1340
1262
|
}
|
|
1341
|
-
|
|
1263
|
+
nt.prototype.extend = function(e) {
|
|
1342
1264
|
var t = [], n = [];
|
|
1343
|
-
if (e instanceof
|
|
1265
|
+
if (e instanceof I) n.push(e);
|
|
1344
1266
|
else if (Array.isArray(e)) n = n.concat(e);
|
|
1345
1267
|
else if (e && (Array.isArray(e.implicit) || Array.isArray(e.explicit))) e.implicit && (t = t.concat(e.implicit)), e.explicit && (n = n.concat(e.explicit));
|
|
1346
|
-
else throw new
|
|
1268
|
+
else throw new F("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
1347
1269
|
t.forEach(function(e) {
|
|
1348
|
-
if (!(e instanceof
|
|
1349
|
-
if (e.loadKind && e.loadKind !== "scalar") throw new
|
|
1350
|
-
if (e.multi) throw new
|
|
1270
|
+
if (!(e instanceof I)) throw new F("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1271
|
+
if (e.loadKind && e.loadKind !== "scalar") throw new F("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
1272
|
+
if (e.multi) throw new F("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
1351
1273
|
}), n.forEach(function(e) {
|
|
1352
|
-
if (!(e instanceof
|
|
1274
|
+
if (!(e instanceof I)) throw new F("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1353
1275
|
});
|
|
1354
|
-
var r = Object.create(
|
|
1355
|
-
return r.implicit = (this.implicit || []).concat(t), r.explicit = (this.explicit || []).concat(n), r.compiledImplicit =
|
|
1276
|
+
var r = Object.create(nt.prototype);
|
|
1277
|
+
return r.implicit = (this.implicit || []).concat(t), r.explicit = (this.explicit || []).concat(n), r.compiledImplicit = et(r, "implicit"), r.compiledExplicit = et(r, "explicit"), r.compiledTypeMap = tt(r.compiledImplicit, r.compiledExplicit), r;
|
|
1356
1278
|
};
|
|
1357
|
-
var
|
|
1279
|
+
var rt = nt, it = new I("tag:yaml.org,2002:str", {
|
|
1358
1280
|
kind: "scalar",
|
|
1359
1281
|
construct: function(e) {
|
|
1360
1282
|
return e === null ? "" : e;
|
|
1361
1283
|
}
|
|
1362
|
-
}),
|
|
1284
|
+
}), at = new I("tag:yaml.org,2002:seq", {
|
|
1363
1285
|
kind: "sequence",
|
|
1364
1286
|
construct: function(e) {
|
|
1365
1287
|
return e === null ? [] : e;
|
|
1366
1288
|
}
|
|
1367
|
-
}),
|
|
1289
|
+
}), ot = new I("tag:yaml.org,2002:map", {
|
|
1368
1290
|
kind: "mapping",
|
|
1369
1291
|
construct: function(e) {
|
|
1370
1292
|
return e === null ? {} : e;
|
|
1371
1293
|
}
|
|
1372
|
-
}),
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1294
|
+
}), st = new rt({ explicit: [
|
|
1295
|
+
it,
|
|
1296
|
+
at,
|
|
1297
|
+
ot
|
|
1376
1298
|
] });
|
|
1377
|
-
function
|
|
1299
|
+
function ct(e) {
|
|
1378
1300
|
if (e === null) return !0;
|
|
1379
1301
|
var t = e.length;
|
|
1380
1302
|
return t === 1 && e === "~" || t === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
1381
1303
|
}
|
|
1382
|
-
function
|
|
1304
|
+
function lt() {
|
|
1383
1305
|
return null;
|
|
1384
1306
|
}
|
|
1385
|
-
function
|
|
1307
|
+
function ut(e) {
|
|
1386
1308
|
return e === null;
|
|
1387
1309
|
}
|
|
1388
|
-
var
|
|
1310
|
+
var dt = new I("tag:yaml.org,2002:null", {
|
|
1389
1311
|
kind: "scalar",
|
|
1390
|
-
resolve:
|
|
1391
|
-
construct:
|
|
1392
|
-
predicate:
|
|
1312
|
+
resolve: ct,
|
|
1313
|
+
construct: lt,
|
|
1314
|
+
predicate: ut,
|
|
1393
1315
|
represent: {
|
|
1394
1316
|
canonical: function() {
|
|
1395
1317
|
return "~";
|
|
@@ -1409,22 +1331,22 @@ var vt = new P("tag:yaml.org,2002:null", {
|
|
|
1409
1331
|
},
|
|
1410
1332
|
defaultStyle: "lowercase"
|
|
1411
1333
|
});
|
|
1412
|
-
function
|
|
1334
|
+
function ft(e) {
|
|
1413
1335
|
if (e === null) return !1;
|
|
1414
1336
|
var t = e.length;
|
|
1415
1337
|
return t === 4 && (e === "true" || e === "True" || e === "TRUE") || t === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
1416
1338
|
}
|
|
1417
|
-
function
|
|
1339
|
+
function pt(e) {
|
|
1418
1340
|
return e === "true" || e === "True" || e === "TRUE";
|
|
1419
1341
|
}
|
|
1420
|
-
function
|
|
1342
|
+
function mt(e) {
|
|
1421
1343
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
1422
1344
|
}
|
|
1423
|
-
var
|
|
1345
|
+
var ht = new I("tag:yaml.org,2002:bool", {
|
|
1424
1346
|
kind: "scalar",
|
|
1425
|
-
resolve:
|
|
1426
|
-
construct:
|
|
1427
|
-
predicate:
|
|
1347
|
+
resolve: ft,
|
|
1348
|
+
construct: pt,
|
|
1349
|
+
predicate: mt,
|
|
1428
1350
|
represent: {
|
|
1429
1351
|
lowercase: function(e) {
|
|
1430
1352
|
return e ? "true" : "false";
|
|
@@ -1438,16 +1360,16 @@ var St = new P("tag:yaml.org,2002:bool", {
|
|
|
1438
1360
|
},
|
|
1439
1361
|
defaultStyle: "lowercase"
|
|
1440
1362
|
});
|
|
1441
|
-
function
|
|
1363
|
+
function gt(e) {
|
|
1442
1364
|
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
1443
1365
|
}
|
|
1444
|
-
function
|
|
1366
|
+
function _t(e) {
|
|
1445
1367
|
return 48 <= e && e <= 55;
|
|
1446
1368
|
}
|
|
1447
|
-
function
|
|
1369
|
+
function vt(e) {
|
|
1448
1370
|
return 48 <= e && e <= 57;
|
|
1449
1371
|
}
|
|
1450
|
-
function
|
|
1372
|
+
function yt(e) {
|
|
1451
1373
|
if (e === null) return !1;
|
|
1452
1374
|
var t = e.length, n = 0, r = !1, i;
|
|
1453
1375
|
if (!t) return !1;
|
|
@@ -1462,14 +1384,14 @@ function Et(e) {
|
|
|
1462
1384
|
}
|
|
1463
1385
|
if (i === "x") {
|
|
1464
1386
|
for (n++; n < t; n++) if (i = e[n], i !== "_") {
|
|
1465
|
-
if (!
|
|
1387
|
+
if (!gt(e.charCodeAt(n))) return !1;
|
|
1466
1388
|
r = !0;
|
|
1467
1389
|
}
|
|
1468
1390
|
return r && i !== "_";
|
|
1469
1391
|
}
|
|
1470
1392
|
if (i === "o") {
|
|
1471
1393
|
for (n++; n < t; n++) if (i = e[n], i !== "_") {
|
|
1472
|
-
if (!
|
|
1394
|
+
if (!_t(e.charCodeAt(n))) return !1;
|
|
1473
1395
|
r = !0;
|
|
1474
1396
|
}
|
|
1475
1397
|
return r && i !== "_";
|
|
@@ -1477,12 +1399,12 @@ function Et(e) {
|
|
|
1477
1399
|
}
|
|
1478
1400
|
if (i === "_") return !1;
|
|
1479
1401
|
for (; n < t; n++) if (i = e[n], i !== "_") {
|
|
1480
|
-
if (!
|
|
1402
|
+
if (!vt(e.charCodeAt(n))) return !1;
|
|
1481
1403
|
r = !0;
|
|
1482
1404
|
}
|
|
1483
1405
|
return !(!r || i === "_");
|
|
1484
1406
|
}
|
|
1485
|
-
function
|
|
1407
|
+
function bt(e) {
|
|
1486
1408
|
var t = e, n = 1, r;
|
|
1487
1409
|
if (t.indexOf("_") !== -1 && (t = t.replace(/_/g, "")), r = t[0], (r === "-" || r === "+") && (r === "-" && (n = -1), t = t.slice(1), r = t[0]), t === "0") return 0;
|
|
1488
1410
|
if (r === "0") {
|
|
@@ -1492,14 +1414,14 @@ function Dt(e) {
|
|
|
1492
1414
|
}
|
|
1493
1415
|
return n * parseInt(t, 10);
|
|
1494
1416
|
}
|
|
1495
|
-
function
|
|
1496
|
-
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 == 0 && !
|
|
1417
|
+
function xt(e) {
|
|
1418
|
+
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 == 0 && !N.isNegativeZero(e);
|
|
1497
1419
|
}
|
|
1498
|
-
var
|
|
1420
|
+
var St = new I("tag:yaml.org,2002:int", {
|
|
1499
1421
|
kind: "scalar",
|
|
1500
|
-
resolve:
|
|
1501
|
-
construct:
|
|
1502
|
-
predicate:
|
|
1422
|
+
resolve: yt,
|
|
1423
|
+
construct: bt,
|
|
1424
|
+
predicate: xt,
|
|
1503
1425
|
represent: {
|
|
1504
1426
|
binary: function(e) {
|
|
1505
1427
|
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
@@ -1521,16 +1443,16 @@ var kt = new P("tag:yaml.org,2002:int", {
|
|
|
1521
1443
|
decimal: [10, "dec"],
|
|
1522
1444
|
hexadecimal: [16, "hex"]
|
|
1523
1445
|
}
|
|
1524
|
-
}),
|
|
1525
|
-
function
|
|
1526
|
-
return !(e === null || !
|
|
1446
|
+
}), Ct = /* @__PURE__ */ RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
1447
|
+
function wt(e) {
|
|
1448
|
+
return !(e === null || !Ct.test(e) || e[e.length - 1] === "_");
|
|
1527
1449
|
}
|
|
1528
|
-
function
|
|
1450
|
+
function Tt(e) {
|
|
1529
1451
|
var t = e.replace(/_/g, "").toLowerCase(), n = t[0] === "-" ? -1 : 1;
|
|
1530
1452
|
return "+-".indexOf(t[0]) >= 0 && (t = t.slice(1)), t === ".inf" ? n === 1 ? Infinity : -Infinity : t === ".nan" ? NaN : n * parseFloat(t, 10);
|
|
1531
1453
|
}
|
|
1532
|
-
var
|
|
1533
|
-
function
|
|
1454
|
+
var Et = /^[-+]?[0-9]+e/;
|
|
1455
|
+
function Dt(e, t) {
|
|
1534
1456
|
var n;
|
|
1535
1457
|
if (isNaN(e)) switch (t) {
|
|
1536
1458
|
case "lowercase": return ".nan";
|
|
@@ -1547,31 +1469,31 @@ function Pt(e, t) {
|
|
|
1547
1469
|
case "uppercase": return "-.INF";
|
|
1548
1470
|
case "camelcase": return "-.Inf";
|
|
1549
1471
|
}
|
|
1550
|
-
else if (
|
|
1551
|
-
return n = e.toString(10),
|
|
1472
|
+
else if (N.isNegativeZero(e)) return "-0.0";
|
|
1473
|
+
return n = e.toString(10), Et.test(n) ? n.replace("e", ".e") : n;
|
|
1552
1474
|
}
|
|
1553
|
-
function
|
|
1554
|
-
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 != 0 ||
|
|
1475
|
+
function Ot(e) {
|
|
1476
|
+
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 != 0 || N.isNegativeZero(e));
|
|
1555
1477
|
}
|
|
1556
|
-
var
|
|
1478
|
+
var kt = new I("tag:yaml.org,2002:float", {
|
|
1557
1479
|
kind: "scalar",
|
|
1558
|
-
resolve:
|
|
1559
|
-
construct:
|
|
1560
|
-
predicate:
|
|
1561
|
-
represent:
|
|
1480
|
+
resolve: wt,
|
|
1481
|
+
construct: Tt,
|
|
1482
|
+
predicate: Ot,
|
|
1483
|
+
represent: Dt,
|
|
1562
1484
|
defaultStyle: "lowercase"
|
|
1563
|
-
}),
|
|
1564
|
-
|
|
1485
|
+
}), At = st.extend({ implicit: [
|
|
1486
|
+
dt,
|
|
1487
|
+
ht,
|
|
1565
1488
|
St,
|
|
1566
|
-
kt
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
return e === null ? !1 : zt.exec(e) !== null || Bt.exec(e) !== null;
|
|
1489
|
+
kt
|
|
1490
|
+
] }), jt = At, Mt = /* @__PURE__ */ RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"), Nt = /* @__PURE__ */ RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
|
|
1491
|
+
function Pt(e) {
|
|
1492
|
+
return e === null ? !1 : Mt.exec(e) !== null || Nt.exec(e) !== null;
|
|
1571
1493
|
}
|
|
1572
|
-
function
|
|
1494
|
+
function Ft(e) {
|
|
1573
1495
|
var t, n, r, i, a, o, s, c = 0, l = null, u, d, f;
|
|
1574
|
-
if (t =
|
|
1496
|
+
if (t = Mt.exec(e), t === null && (t = Nt.exec(e)), t === null) throw Error("Date resolve error");
|
|
1575
1497
|
if (n = +t[1], r = t[2] - 1, i = +t[3], !t[4]) return new Date(Date.UTC(n, r, i));
|
|
1576
1498
|
if (a = +t[4], o = +t[5], s = +t[6], t[7]) {
|
|
1577
1499
|
for (c = t[7].slice(0, 3); c.length < 3;) c += "0";
|
|
@@ -1579,58 +1501,58 @@ function Ht(e) {
|
|
|
1579
1501
|
}
|
|
1580
1502
|
return t[9] && (u = +t[10], d = +(t[11] || 0), l = (u * 60 + d) * 6e4, t[9] === "-" && (l = -l)), f = new Date(Date.UTC(n, r, i, a, o, s, c)), l && f.setTime(f.getTime() - l), f;
|
|
1581
1503
|
}
|
|
1582
|
-
function
|
|
1504
|
+
function It(e) {
|
|
1583
1505
|
return e.toISOString();
|
|
1584
1506
|
}
|
|
1585
|
-
var
|
|
1507
|
+
var Lt = new I("tag:yaml.org,2002:timestamp", {
|
|
1586
1508
|
kind: "scalar",
|
|
1587
|
-
resolve:
|
|
1588
|
-
construct:
|
|
1509
|
+
resolve: Pt,
|
|
1510
|
+
construct: Ft,
|
|
1589
1511
|
instanceOf: Date,
|
|
1590
|
-
represent:
|
|
1512
|
+
represent: It
|
|
1591
1513
|
});
|
|
1592
|
-
function
|
|
1514
|
+
function Rt(e) {
|
|
1593
1515
|
return e === "<<" || e === null;
|
|
1594
1516
|
}
|
|
1595
|
-
var
|
|
1517
|
+
var zt = new I("tag:yaml.org,2002:merge", {
|
|
1596
1518
|
kind: "scalar",
|
|
1597
|
-
resolve:
|
|
1598
|
-
}),
|
|
1599
|
-
function
|
|
1519
|
+
resolve: Rt
|
|
1520
|
+
}), Bt = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
|
|
1521
|
+
function Vt(e) {
|
|
1600
1522
|
if (e === null) return !1;
|
|
1601
|
-
var t, n, r = 0, i = e.length, a =
|
|
1523
|
+
var t, n, r = 0, i = e.length, a = Bt;
|
|
1602
1524
|
for (n = 0; n < i; n++) if (t = a.indexOf(e.charAt(n)), !(t > 64)) {
|
|
1603
1525
|
if (t < 0) return !1;
|
|
1604
1526
|
r += 6;
|
|
1605
1527
|
}
|
|
1606
1528
|
return r % 8 == 0;
|
|
1607
1529
|
}
|
|
1608
|
-
function
|
|
1609
|
-
var t, n, r = e.replace(/[\r\n=]/g, ""), i = r.length, a =
|
|
1530
|
+
function Ht(e) {
|
|
1531
|
+
var t, n, r = e.replace(/[\r\n=]/g, ""), i = r.length, a = Bt, o = 0, s = [];
|
|
1610
1532
|
for (t = 0; t < i; t++) t % 4 == 0 && t && (s.push(o >> 16 & 255), s.push(o >> 8 & 255), s.push(o & 255)), o = o << 6 | a.indexOf(r.charAt(t));
|
|
1611
1533
|
return n = i % 4 * 6, n === 0 ? (s.push(o >> 16 & 255), s.push(o >> 8 & 255), s.push(o & 255)) : n === 18 ? (s.push(o >> 10 & 255), s.push(o >> 2 & 255)) : n === 12 && s.push(o >> 4 & 255), new Uint8Array(s);
|
|
1612
1534
|
}
|
|
1613
|
-
function
|
|
1614
|
-
var t = "", n = 0, r, i, a = e.length, o =
|
|
1535
|
+
function Ut(e) {
|
|
1536
|
+
var t = "", n = 0, r, i, a = e.length, o = Bt;
|
|
1615
1537
|
for (r = 0; r < a; r++) r % 3 == 0 && r && (t += o[n >> 18 & 63], t += o[n >> 12 & 63], t += o[n >> 6 & 63], t += o[n & 63]), n = (n << 8) + e[r];
|
|
1616
1538
|
return i = a % 3, i === 0 ? (t += o[n >> 18 & 63], t += o[n >> 12 & 63], t += o[n >> 6 & 63], t += o[n & 63]) : i === 2 ? (t += o[n >> 10 & 63], t += o[n >> 4 & 63], t += o[n << 2 & 63], t += o[64]) : i === 1 && (t += o[n >> 2 & 63], t += o[n << 4 & 63], t += o[64], t += o[64]), t;
|
|
1617
1539
|
}
|
|
1618
|
-
function
|
|
1540
|
+
function Wt(e) {
|
|
1619
1541
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
1620
1542
|
}
|
|
1621
|
-
var
|
|
1543
|
+
var Gt = new I("tag:yaml.org,2002:binary", {
|
|
1622
1544
|
kind: "scalar",
|
|
1623
|
-
resolve:
|
|
1624
|
-
construct:
|
|
1625
|
-
predicate:
|
|
1626
|
-
represent:
|
|
1627
|
-
}),
|
|
1628
|
-
function
|
|
1545
|
+
resolve: Vt,
|
|
1546
|
+
construct: Ht,
|
|
1547
|
+
predicate: Wt,
|
|
1548
|
+
represent: Ut
|
|
1549
|
+
}), Kt = Object.prototype.hasOwnProperty, qt = Object.prototype.toString;
|
|
1550
|
+
function Jt(e) {
|
|
1629
1551
|
if (e === null) return !0;
|
|
1630
1552
|
var t = [], n, r, i, a, o, s = e;
|
|
1631
1553
|
for (n = 0, r = s.length; n < r; n += 1) {
|
|
1632
|
-
if (i = s[n], o = !1,
|
|
1633
|
-
for (a in i) if (
|
|
1554
|
+
if (i = s[n], o = !1, qt.call(i) !== "[object Object]") return !1;
|
|
1555
|
+
for (a in i) if (Kt.call(i, a)) if (!o) o = !0;
|
|
1634
1556
|
else return !1;
|
|
1635
1557
|
if (!o) return !1;
|
|
1636
1558
|
if (t.indexOf(a) === -1) t.push(a);
|
|
@@ -1638,88 +1560,88 @@ function tn(e) {
|
|
|
1638
1560
|
}
|
|
1639
1561
|
return !0;
|
|
1640
1562
|
}
|
|
1641
|
-
function
|
|
1563
|
+
function Yt(e) {
|
|
1642
1564
|
return e === null ? [] : e;
|
|
1643
1565
|
}
|
|
1644
|
-
var
|
|
1566
|
+
var Xt = new I("tag:yaml.org,2002:omap", {
|
|
1645
1567
|
kind: "sequence",
|
|
1646
|
-
resolve:
|
|
1647
|
-
construct:
|
|
1648
|
-
}),
|
|
1649
|
-
function
|
|
1568
|
+
resolve: Jt,
|
|
1569
|
+
construct: Yt
|
|
1570
|
+
}), Zt = Object.prototype.toString;
|
|
1571
|
+
function Qt(e) {
|
|
1650
1572
|
if (e === null) return !0;
|
|
1651
1573
|
var t, n, r, i, a, o = e;
|
|
1652
1574
|
for (a = Array(o.length), t = 0, n = o.length; t < n; t += 1) {
|
|
1653
|
-
if (r = o[t],
|
|
1575
|
+
if (r = o[t], Zt.call(r) !== "[object Object]" || (i = Object.keys(r), i.length !== 1)) return !1;
|
|
1654
1576
|
a[t] = [i[0], r[i[0]]];
|
|
1655
1577
|
}
|
|
1656
1578
|
return !0;
|
|
1657
1579
|
}
|
|
1658
|
-
function
|
|
1580
|
+
function $t(e) {
|
|
1659
1581
|
if (e === null) return [];
|
|
1660
1582
|
var t, n, r, i, a, o = e;
|
|
1661
1583
|
for (a = Array(o.length), t = 0, n = o.length; t < n; t += 1) r = o[t], i = Object.keys(r), a[t] = [i[0], r[i[0]]];
|
|
1662
1584
|
return a;
|
|
1663
1585
|
}
|
|
1664
|
-
var
|
|
1586
|
+
var en = new I("tag:yaml.org,2002:pairs", {
|
|
1665
1587
|
kind: "sequence",
|
|
1666
|
-
resolve:
|
|
1667
|
-
construct:
|
|
1668
|
-
}),
|
|
1669
|
-
function
|
|
1588
|
+
resolve: Qt,
|
|
1589
|
+
construct: $t
|
|
1590
|
+
}), tn = Object.prototype.hasOwnProperty;
|
|
1591
|
+
function nn(e) {
|
|
1670
1592
|
if (e === null) return !0;
|
|
1671
1593
|
var t, n = e;
|
|
1672
|
-
for (t in n) if (
|
|
1594
|
+
for (t in n) if (tn.call(n, t) && n[t] !== null) return !1;
|
|
1673
1595
|
return !0;
|
|
1674
1596
|
}
|
|
1675
|
-
function
|
|
1597
|
+
function rn(e) {
|
|
1676
1598
|
return e === null ? {} : e;
|
|
1677
1599
|
}
|
|
1678
|
-
var
|
|
1600
|
+
var an = new I("tag:yaml.org,2002:set", {
|
|
1679
1601
|
kind: "mapping",
|
|
1680
|
-
resolve:
|
|
1681
|
-
construct:
|
|
1682
|
-
}),
|
|
1683
|
-
implicit: [
|
|
1602
|
+
resolve: nn,
|
|
1603
|
+
construct: rn
|
|
1604
|
+
}), on = jt.extend({
|
|
1605
|
+
implicit: [Lt, zt],
|
|
1684
1606
|
explicit: [
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1607
|
+
Gt,
|
|
1608
|
+
Xt,
|
|
1609
|
+
en,
|
|
1610
|
+
an
|
|
1689
1611
|
]
|
|
1690
|
-
}),
|
|
1691
|
-
function
|
|
1612
|
+
}), L = Object.prototype.hasOwnProperty, sn = 1, cn = 2, ln = 3, un = 4, dn = 1, fn = 2, pn = 3, mn = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, hn = /[\x85\u2028\u2029]/, gn = /[,\[\]\{\}]/, _n = /^(?:!|!!|![a-z\-]+!)$/i, vn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
1613
|
+
function yn(e) {
|
|
1692
1614
|
return Object.prototype.toString.call(e);
|
|
1693
1615
|
}
|
|
1694
|
-
function
|
|
1616
|
+
function R(e) {
|
|
1695
1617
|
return e === 10 || e === 13;
|
|
1696
1618
|
}
|
|
1697
|
-
function
|
|
1619
|
+
function z(e) {
|
|
1698
1620
|
return e === 9 || e === 32;
|
|
1699
1621
|
}
|
|
1700
|
-
function
|
|
1622
|
+
function B(e) {
|
|
1701
1623
|
return e === 9 || e === 32 || e === 10 || e === 13;
|
|
1702
1624
|
}
|
|
1703
|
-
function
|
|
1625
|
+
function V(e) {
|
|
1704
1626
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
1705
1627
|
}
|
|
1706
|
-
function
|
|
1628
|
+
function bn(e) {
|
|
1707
1629
|
var t;
|
|
1708
1630
|
return 48 <= e && e <= 57 ? e - 48 : (t = e | 32, 97 <= t && t <= 102 ? t - 97 + 10 : -1);
|
|
1709
1631
|
}
|
|
1710
|
-
function
|
|
1632
|
+
function xn(e) {
|
|
1711
1633
|
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
1712
1634
|
}
|
|
1713
|
-
function
|
|
1635
|
+
function Sn(e) {
|
|
1714
1636
|
return 48 <= e && e <= 57 ? e - 48 : -1;
|
|
1715
1637
|
}
|
|
1716
|
-
function
|
|
1638
|
+
function Cn(e) {
|
|
1717
1639
|
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? "\n" : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? "\"" : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "
" : e === 95 ? "\xA0" : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
|
|
1718
1640
|
}
|
|
1719
|
-
function
|
|
1641
|
+
function wn(e) {
|
|
1720
1642
|
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode((e - 65536 >> 10) + 55296, (e - 65536 & 1023) + 56320);
|
|
1721
1643
|
}
|
|
1722
|
-
function
|
|
1644
|
+
function Tn(e, t, n) {
|
|
1723
1645
|
t === "__proto__" ? Object.defineProperty(e, t, {
|
|
1724
1646
|
configurable: !0,
|
|
1725
1647
|
enumerable: !0,
|
|
@@ -1727,11 +1649,11 @@ function Mn(e, t, n) {
|
|
|
1727
1649
|
value: n
|
|
1728
1650
|
}) : e[t] = n;
|
|
1729
1651
|
}
|
|
1730
|
-
for (var
|
|
1731
|
-
function
|
|
1732
|
-
this.input = e, this.filename = t.filename || null, this.schema = t.schema ||
|
|
1652
|
+
for (var En = Array(256), Dn = Array(256), H = 0; H < 256; H++) En[H] = +!!Cn(H), Dn[H] = Cn(H);
|
|
1653
|
+
function On(e, t) {
|
|
1654
|
+
this.input = e, this.filename = t.filename || null, this.schema = t.schema || on, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
|
|
1733
1655
|
}
|
|
1734
|
-
function
|
|
1656
|
+
function kn(e, t) {
|
|
1735
1657
|
var n = {
|
|
1736
1658
|
name: e.filename,
|
|
1737
1659
|
buffer: e.input.slice(0, -1),
|
|
@@ -1739,292 +1661,292 @@ function In(e, t) {
|
|
|
1739
1661
|
line: e.line,
|
|
1740
1662
|
column: e.position - e.lineStart
|
|
1741
1663
|
};
|
|
1742
|
-
return n.snippet =
|
|
1664
|
+
return n.snippet = Ye(n), new F(t, n);
|
|
1743
1665
|
}
|
|
1744
|
-
function
|
|
1745
|
-
throw
|
|
1666
|
+
function U(e, t) {
|
|
1667
|
+
throw kn(e, t);
|
|
1746
1668
|
}
|
|
1747
|
-
function
|
|
1748
|
-
e.onWarning && e.onWarning.call(null,
|
|
1669
|
+
function An(e, t) {
|
|
1670
|
+
e.onWarning && e.onWarning.call(null, kn(e, t));
|
|
1749
1671
|
}
|
|
1750
|
-
var
|
|
1672
|
+
var jn = {
|
|
1751
1673
|
YAML: function(e, t, n) {
|
|
1752
1674
|
var r, i, a;
|
|
1753
|
-
e.version !== null &&
|
|
1675
|
+
e.version !== null && U(e, "duplication of %YAML directive"), n.length !== 1 && U(e, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(n[0]), r === null && U(e, "ill-formed argument of the YAML directive"), i = parseInt(r[1], 10), a = parseInt(r[2], 10), i !== 1 && U(e, "unacceptable YAML version of the document"), e.version = n[0], e.checkLineBreaks = a < 2, a !== 1 && a !== 2 && An(e, "unsupported YAML version of the document");
|
|
1754
1676
|
},
|
|
1755
1677
|
TAG: function(e, t, n) {
|
|
1756
1678
|
var r, i;
|
|
1757
|
-
n.length !== 2 &&
|
|
1679
|
+
n.length !== 2 && U(e, "TAG directive accepts exactly two arguments"), r = n[0], i = n[1], _n.test(r) || U(e, "ill-formed tag handle (first argument) of the TAG directive"), L.call(e.tagMap, r) && U(e, "there is a previously declared suffix for \"" + r + "\" tag handle"), vn.test(i) || U(e, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
1758
1680
|
try {
|
|
1759
1681
|
i = decodeURIComponent(i);
|
|
1760
1682
|
} catch {
|
|
1761
|
-
|
|
1683
|
+
U(e, "tag prefix is malformed: " + i);
|
|
1762
1684
|
}
|
|
1763
1685
|
e.tagMap[r] = i;
|
|
1764
1686
|
}
|
|
1765
1687
|
};
|
|
1766
|
-
function
|
|
1688
|
+
function W(e, t, n, r) {
|
|
1767
1689
|
var i, a, o, s;
|
|
1768
1690
|
if (t < n) {
|
|
1769
|
-
if (s = e.input.slice(t, n), r) for (i = 0, a = s.length; i < a; i += 1) o = s.charCodeAt(i), o === 9 || 32 <= o && o <= 1114111 ||
|
|
1770
|
-
else
|
|
1691
|
+
if (s = e.input.slice(t, n), r) for (i = 0, a = s.length; i < a; i += 1) o = s.charCodeAt(i), o === 9 || 32 <= o && o <= 1114111 || U(e, "expected valid JSON character");
|
|
1692
|
+
else mn.test(s) && U(e, "the stream contains non-printable characters");
|
|
1771
1693
|
e.result += s;
|
|
1772
1694
|
}
|
|
1773
1695
|
}
|
|
1774
|
-
function
|
|
1696
|
+
function Mn(e, t, n, r) {
|
|
1775
1697
|
var i, a, o, s;
|
|
1776
|
-
for (
|
|
1698
|
+
for (N.isObject(n) || U(e, "cannot merge mappings; the provided source object is unacceptable"), i = Object.keys(n), o = 0, s = i.length; o < s; o += 1) a = i[o], L.call(t, a) || (Tn(t, a, n[a]), r[a] = !0);
|
|
1777
1699
|
}
|
|
1778
|
-
function
|
|
1700
|
+
function G(e, t, n, r, i, a, o, s, c) {
|
|
1779
1701
|
var l, u;
|
|
1780
|
-
if (Array.isArray(i)) for (i = Array.prototype.slice.call(i), l = 0, u = i.length; l < u; l += 1) Array.isArray(i[l]) &&
|
|
1781
|
-
if (typeof i == "object" &&
|
|
1782
|
-
else
|
|
1783
|
-
else !e.json && !
|
|
1702
|
+
if (Array.isArray(i)) for (i = Array.prototype.slice.call(i), l = 0, u = i.length; l < u; l += 1) Array.isArray(i[l]) && U(e, "nested arrays are not supported inside keys"), typeof i == "object" && yn(i[l]) === "[object Object]" && (i[l] = "[object Object]");
|
|
1703
|
+
if (typeof i == "object" && yn(i) === "[object Object]" && (i = "[object Object]"), i = String(i), t === null && (t = {}), r === "tag:yaml.org,2002:merge") if (Array.isArray(a)) for (l = 0, u = a.length; l < u; l += 1) Mn(e, t, a[l], n);
|
|
1704
|
+
else Mn(e, t, a, n);
|
|
1705
|
+
else !e.json && !L.call(n, i) && L.call(t, i) && (e.line = o || e.line, e.lineStart = s || e.lineStart, e.position = c || e.position, U(e, "duplicated mapping key")), Tn(t, i, a), delete n[i];
|
|
1784
1706
|
return t;
|
|
1785
1707
|
}
|
|
1786
|
-
function
|
|
1708
|
+
function Nn(e) {
|
|
1787
1709
|
var t = e.input.charCodeAt(e.position);
|
|
1788
|
-
t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) :
|
|
1710
|
+
t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : U(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
|
|
1789
1711
|
}
|
|
1790
|
-
function
|
|
1712
|
+
function K(e, t, n) {
|
|
1791
1713
|
for (var r = 0, i = e.input.charCodeAt(e.position); i !== 0;) {
|
|
1792
|
-
for (;
|
|
1714
|
+
for (; z(i);) i === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), i = e.input.charCodeAt(++e.position);
|
|
1793
1715
|
if (t && i === 35) do
|
|
1794
1716
|
i = e.input.charCodeAt(++e.position);
|
|
1795
1717
|
while (i !== 10 && i !== 13 && i !== 0);
|
|
1796
|
-
if (
|
|
1718
|
+
if (R(i)) for (Nn(e), i = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; i === 32;) e.lineIndent++, i = e.input.charCodeAt(++e.position);
|
|
1797
1719
|
else break;
|
|
1798
1720
|
}
|
|
1799
|
-
return n !== -1 && r !== 0 && e.lineIndent < n &&
|
|
1721
|
+
return n !== -1 && r !== 0 && e.lineIndent < n && An(e, "deficient indentation"), r;
|
|
1800
1722
|
}
|
|
1801
|
-
function
|
|
1723
|
+
function Pn(e) {
|
|
1802
1724
|
var t = e.position, n = e.input.charCodeAt(t);
|
|
1803
|
-
return !!((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2) && (t += 3, n = e.input.charCodeAt(t), n === 0 ||
|
|
1725
|
+
return !!((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2) && (t += 3, n = e.input.charCodeAt(t), n === 0 || B(n)));
|
|
1804
1726
|
}
|
|
1805
|
-
function
|
|
1806
|
-
t === 1 ? e.result += " " : t > 1 && (e.result +=
|
|
1727
|
+
function Fn(e, t) {
|
|
1728
|
+
t === 1 ? e.result += " " : t > 1 && (e.result += N.repeat("\n", t - 1));
|
|
1807
1729
|
}
|
|
1808
|
-
function
|
|
1730
|
+
function In(e, t, n) {
|
|
1809
1731
|
var r, i, a, o, s, c, l, u, d = e.kind, f = e.result, p = e.input.charCodeAt(e.position);
|
|
1810
|
-
if (
|
|
1732
|
+
if (B(p) || V(p) || p === 35 || p === 38 || p === 42 || p === 33 || p === 124 || p === 62 || p === 39 || p === 34 || p === 37 || p === 64 || p === 96 || (p === 63 || p === 45) && (i = e.input.charCodeAt(e.position + 1), B(i) || n && V(i))) return !1;
|
|
1811
1733
|
for (e.kind = "scalar", e.result = "", a = o = e.position, s = !1; p !== 0;) {
|
|
1812
1734
|
if (p === 58) {
|
|
1813
|
-
if (i = e.input.charCodeAt(e.position + 1),
|
|
1735
|
+
if (i = e.input.charCodeAt(e.position + 1), B(i) || n && V(i)) break;
|
|
1814
1736
|
} else if (p === 35) {
|
|
1815
|
-
if (r = e.input.charCodeAt(e.position - 1),
|
|
1816
|
-
} else if (e.position === e.lineStart &&
|
|
1817
|
-
else if (
|
|
1737
|
+
if (r = e.input.charCodeAt(e.position - 1), B(r)) break;
|
|
1738
|
+
} else if (e.position === e.lineStart && Pn(e) || n && V(p)) break;
|
|
1739
|
+
else if (R(p)) if (c = e.line, l = e.lineStart, u = e.lineIndent, K(e, !1, -1), e.lineIndent >= t) {
|
|
1818
1740
|
s = !0, p = e.input.charCodeAt(e.position);
|
|
1819
1741
|
continue;
|
|
1820
1742
|
} else {
|
|
1821
1743
|
e.position = o, e.line = c, e.lineStart = l, e.lineIndent = u;
|
|
1822
1744
|
break;
|
|
1823
1745
|
}
|
|
1824
|
-
s &&= (
|
|
1746
|
+
s &&= (W(e, a, o, !1), Fn(e, e.line - c), a = o = e.position, !1), z(p) || (o = e.position + 1), p = e.input.charCodeAt(++e.position);
|
|
1825
1747
|
}
|
|
1826
|
-
return
|
|
1748
|
+
return W(e, a, o, !1), e.result ? !0 : (e.kind = d, e.result = f, !1);
|
|
1827
1749
|
}
|
|
1828
|
-
function
|
|
1750
|
+
function Ln(e, t) {
|
|
1829
1751
|
var n = e.input.charCodeAt(e.position), r, i;
|
|
1830
1752
|
if (n !== 39) return !1;
|
|
1831
|
-
for (e.kind = "scalar", e.result = "", e.position++, r = i = e.position; (n = e.input.charCodeAt(e.position)) !== 0;) if (n === 39) if (
|
|
1753
|
+
for (e.kind = "scalar", e.result = "", e.position++, r = i = e.position; (n = e.input.charCodeAt(e.position)) !== 0;) if (n === 39) if (W(e, r, e.position, !0), n = e.input.charCodeAt(++e.position), n === 39) r = e.position, e.position++, i = e.position;
|
|
1832
1754
|
else return !0;
|
|
1833
|
-
else
|
|
1834
|
-
|
|
1755
|
+
else R(n) ? (W(e, r, i, !0), Fn(e, K(e, !1, t)), r = i = e.position) : e.position === e.lineStart && Pn(e) ? U(e, "unexpected end of the document within a single quoted scalar") : (e.position++, i = e.position);
|
|
1756
|
+
U(e, "unexpected end of the stream within a single quoted scalar");
|
|
1835
1757
|
}
|
|
1836
|
-
function
|
|
1758
|
+
function Rn(e, t) {
|
|
1837
1759
|
var n, r, i, a, o, s = e.input.charCodeAt(e.position);
|
|
1838
1760
|
if (s !== 34) return !1;
|
|
1839
|
-
for (e.kind = "scalar", e.result = "", e.position++, n = r = e.position; (s = e.input.charCodeAt(e.position)) !== 0;) if (s === 34) return
|
|
1761
|
+
for (e.kind = "scalar", e.result = "", e.position++, n = r = e.position; (s = e.input.charCodeAt(e.position)) !== 0;) if (s === 34) return W(e, n, e.position, !0), e.position++, !0;
|
|
1840
1762
|
else if (s === 92) {
|
|
1841
|
-
if (
|
|
1842
|
-
else if (s < 256 &&
|
|
1843
|
-
else if ((o =
|
|
1844
|
-
for (i = o, a = 0; i > 0; i--) s = e.input.charCodeAt(++e.position), (o =
|
|
1845
|
-
e.result +=
|
|
1846
|
-
} else
|
|
1763
|
+
if (W(e, n, e.position, !0), s = e.input.charCodeAt(++e.position), R(s)) K(e, !1, t);
|
|
1764
|
+
else if (s < 256 && En[s]) e.result += Dn[s], e.position++;
|
|
1765
|
+
else if ((o = xn(s)) > 0) {
|
|
1766
|
+
for (i = o, a = 0; i > 0; i--) s = e.input.charCodeAt(++e.position), (o = bn(s)) >= 0 ? a = (a << 4) + o : U(e, "expected hexadecimal character");
|
|
1767
|
+
e.result += wn(a), e.position++;
|
|
1768
|
+
} else U(e, "unknown escape sequence");
|
|
1847
1769
|
n = r = e.position;
|
|
1848
|
-
} else
|
|
1849
|
-
|
|
1770
|
+
} else R(s) ? (W(e, n, r, !0), Fn(e, K(e, !1, t)), n = r = e.position) : e.position === e.lineStart && Pn(e) ? U(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
|
|
1771
|
+
U(e, "unexpected end of the stream within a double quoted scalar");
|
|
1850
1772
|
}
|
|
1851
|
-
function
|
|
1773
|
+
function zn(e, t) {
|
|
1852
1774
|
var n = !0, r, i, a, o = e.tag, s, c = e.anchor, l, u, d, f, p, m = Object.create(null), h, g, _, v = e.input.charCodeAt(e.position);
|
|
1853
1775
|
if (v === 91) u = 93, p = !1, s = [];
|
|
1854
1776
|
else if (v === 123) u = 125, p = !0, s = {};
|
|
1855
1777
|
else return !1;
|
|
1856
1778
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = s), v = e.input.charCodeAt(++e.position); v !== 0;) {
|
|
1857
|
-
if (
|
|
1858
|
-
n ? v === 44 &&
|
|
1779
|
+
if (K(e, !0, t), v = e.input.charCodeAt(e.position), v === u) return e.position++, e.tag = o, e.anchor = c, e.kind = p ? "mapping" : "sequence", e.result = s, !0;
|
|
1780
|
+
n ? v === 44 && U(e, "expected the node content, but found ','") : U(e, "missed comma between flow collection entries"), g = h = _ = null, d = f = !1, v === 63 && (l = e.input.charCodeAt(e.position + 1), B(l) && (d = f = !0, e.position++, K(e, !0, t))), r = e.line, i = e.lineStart, a = e.position, q(e, t, sn, !1, !0), g = e.tag, h = e.result, K(e, !0, t), v = e.input.charCodeAt(e.position), (f || e.line === r) && v === 58 && (d = !0, v = e.input.charCodeAt(++e.position), K(e, !0, t), q(e, t, sn, !1, !0), _ = e.result), p ? G(e, s, m, g, h, _, r, i, a) : d ? s.push(G(e, null, m, g, h, _, r, i, a)) : s.push(h), K(e, !0, t), v = e.input.charCodeAt(e.position), v === 44 ? (n = !0, v = e.input.charCodeAt(++e.position)) : n = !1;
|
|
1859
1781
|
}
|
|
1860
|
-
|
|
1782
|
+
U(e, "unexpected end of the stream within a flow collection");
|
|
1861
1783
|
}
|
|
1862
|
-
function
|
|
1863
|
-
var n, r, i =
|
|
1784
|
+
function Bn(e, t) {
|
|
1785
|
+
var n, r, i = dn, a = !1, o = !1, s = t, c = 0, l = !1, u, d = e.input.charCodeAt(e.position);
|
|
1864
1786
|
if (d === 124) r = !1;
|
|
1865
1787
|
else if (d === 62) r = !0;
|
|
1866
1788
|
else return !1;
|
|
1867
|
-
for (e.kind = "scalar", e.result = ""; d !== 0;) if (d = e.input.charCodeAt(++e.position), d === 43 || d === 45)
|
|
1868
|
-
else if ((u =
|
|
1789
|
+
for (e.kind = "scalar", e.result = ""; d !== 0;) if (d = e.input.charCodeAt(++e.position), d === 43 || d === 45) dn === i ? i = d === 43 ? pn : fn : U(e, "repeat of a chomping mode identifier");
|
|
1790
|
+
else if ((u = Sn(d)) >= 0) u === 0 ? U(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? U(e, "repeat of an indentation width identifier") : (s = t + u - 1, o = !0);
|
|
1869
1791
|
else break;
|
|
1870
|
-
if (
|
|
1792
|
+
if (z(d)) {
|
|
1871
1793
|
do
|
|
1872
1794
|
d = e.input.charCodeAt(++e.position);
|
|
1873
|
-
while (
|
|
1795
|
+
while (z(d));
|
|
1874
1796
|
if (d === 35) do
|
|
1875
1797
|
d = e.input.charCodeAt(++e.position);
|
|
1876
|
-
while (!
|
|
1798
|
+
while (!R(d) && d !== 0);
|
|
1877
1799
|
}
|
|
1878
1800
|
for (; d !== 0;) {
|
|
1879
|
-
for (
|
|
1880
|
-
if (!o && e.lineIndent > s && (s = e.lineIndent),
|
|
1801
|
+
for (Nn(e), e.lineIndent = 0, d = e.input.charCodeAt(e.position); (!o || e.lineIndent < s) && d === 32;) e.lineIndent++, d = e.input.charCodeAt(++e.position);
|
|
1802
|
+
if (!o && e.lineIndent > s && (s = e.lineIndent), R(d)) {
|
|
1881
1803
|
c++;
|
|
1882
1804
|
continue;
|
|
1883
1805
|
}
|
|
1884
1806
|
if (e.lineIndent < s) {
|
|
1885
|
-
i ===
|
|
1807
|
+
i === pn ? e.result += N.repeat("\n", a ? 1 + c : c) : i === dn && a && (e.result += "\n");
|
|
1886
1808
|
break;
|
|
1887
1809
|
}
|
|
1888
|
-
for (r ?
|
|
1889
|
-
|
|
1810
|
+
for (r ? z(d) ? (l = !0, e.result += N.repeat("\n", a ? 1 + c : c)) : l ? (l = !1, e.result += N.repeat("\n", c + 1)) : c === 0 ? a && (e.result += " ") : e.result += N.repeat("\n", c) : e.result += N.repeat("\n", a ? 1 + c : c), a = !0, o = !0, c = 0, n = e.position; !R(d) && d !== 0;) d = e.input.charCodeAt(++e.position);
|
|
1811
|
+
W(e, n, e.position, !1);
|
|
1890
1812
|
}
|
|
1891
1813
|
return !0;
|
|
1892
1814
|
}
|
|
1893
|
-
function
|
|
1815
|
+
function Vn(e, t) {
|
|
1894
1816
|
var n, r = e.tag, i = e.anchor, a = [], o, s = !1, c;
|
|
1895
1817
|
if (e.firstTabInLine !== -1) return !1;
|
|
1896
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = a), c = e.input.charCodeAt(e.position); c !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine,
|
|
1897
|
-
if (s = !0, e.position++,
|
|
1818
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = a), c = e.input.charCodeAt(e.position); c !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, U(e, "tab characters must not be used in indentation")), !(c !== 45 || (o = e.input.charCodeAt(e.position + 1), !B(o))));) {
|
|
1819
|
+
if (s = !0, e.position++, K(e, !0, -1) && e.lineIndent <= t) {
|
|
1898
1820
|
a.push(null), c = e.input.charCodeAt(e.position);
|
|
1899
1821
|
continue;
|
|
1900
1822
|
}
|
|
1901
|
-
if (n = e.line,
|
|
1823
|
+
if (n = e.line, q(e, t, ln, !1, !0), a.push(e.result), K(e, !0, -1), c = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && c !== 0) U(e, "bad indentation of a sequence entry");
|
|
1902
1824
|
else if (e.lineIndent < t) break;
|
|
1903
1825
|
}
|
|
1904
1826
|
return s ? (e.tag = r, e.anchor = i, e.kind = "sequence", e.result = a, !0) : !1;
|
|
1905
1827
|
}
|
|
1906
|
-
function
|
|
1828
|
+
function Hn(e, t, n) {
|
|
1907
1829
|
var r, i, a, o, s, c, l = e.tag, u = e.anchor, d = {}, f = Object.create(null), p = null, m = null, h = null, g = !1, _ = !1, v;
|
|
1908
1830
|
if (e.firstTabInLine !== -1) return !1;
|
|
1909
1831
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = d), v = e.input.charCodeAt(e.position); v !== 0;) {
|
|
1910
|
-
if (!g && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine,
|
|
1832
|
+
if (!g && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, U(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), a = e.line, (v === 63 || v === 58) && B(r)) v === 63 ? (g && (G(e, d, f, p, m, null, o, s, c), p = m = h = null), _ = !0, g = !0, i = !0) : g ? (g = !1, i = !0) : U(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, v = r;
|
|
1911
1833
|
else {
|
|
1912
|
-
if (o = e.line, s = e.lineStart, c = e.position, !
|
|
1834
|
+
if (o = e.line, s = e.lineStart, c = e.position, !q(e, n, cn, !1, !0)) break;
|
|
1913
1835
|
if (e.line === a) {
|
|
1914
|
-
for (v = e.input.charCodeAt(e.position);
|
|
1915
|
-
if (v === 58) v = e.input.charCodeAt(++e.position),
|
|
1916
|
-
else if (_)
|
|
1836
|
+
for (v = e.input.charCodeAt(e.position); z(v);) v = e.input.charCodeAt(++e.position);
|
|
1837
|
+
if (v === 58) v = e.input.charCodeAt(++e.position), B(v) || U(e, "a whitespace character is expected after the key-value separator within a block mapping"), g && (G(e, d, f, p, m, null, o, s, c), p = m = h = null), _ = !0, g = !1, i = !1, p = e.tag, m = e.result;
|
|
1838
|
+
else if (_) U(e, "can not read an implicit mapping pair; a colon is missed");
|
|
1917
1839
|
else return e.tag = l, e.anchor = u, !0;
|
|
1918
|
-
} else if (_)
|
|
1840
|
+
} else if (_) U(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
1919
1841
|
else return e.tag = l, e.anchor = u, !0;
|
|
1920
1842
|
}
|
|
1921
|
-
if ((e.line === a || e.lineIndent > t) && (g && (o = e.line, s = e.lineStart, c = e.position),
|
|
1843
|
+
if ((e.line === a || e.lineIndent > t) && (g && (o = e.line, s = e.lineStart, c = e.position), q(e, t, un, !0, i) && (g ? m = e.result : h = e.result), g || (G(e, d, f, p, m, h, o, s, c), p = m = h = null), K(e, !0, -1), v = e.input.charCodeAt(e.position)), (e.line === a || e.lineIndent > t) && v !== 0) U(e, "bad indentation of a mapping entry");
|
|
1922
1844
|
else if (e.lineIndent < t) break;
|
|
1923
1845
|
}
|
|
1924
|
-
return g &&
|
|
1846
|
+
return g && G(e, d, f, p, m, null, o, s, c), _ && (e.tag = l, e.anchor = u, e.kind = "mapping", e.result = d), _;
|
|
1925
1847
|
}
|
|
1926
|
-
function
|
|
1848
|
+
function Un(e) {
|
|
1927
1849
|
var t, n = !1, r = !1, i, a, o = e.input.charCodeAt(e.position);
|
|
1928
1850
|
if (o !== 33) return !1;
|
|
1929
|
-
if (e.tag !== null &&
|
|
1851
|
+
if (e.tag !== null && U(e, "duplication of a tag property"), o = e.input.charCodeAt(++e.position), o === 60 ? (n = !0, o = e.input.charCodeAt(++e.position)) : o === 33 ? (r = !0, i = "!!", o = e.input.charCodeAt(++e.position)) : i = "!", t = e.position, n) {
|
|
1930
1852
|
do
|
|
1931
1853
|
o = e.input.charCodeAt(++e.position);
|
|
1932
1854
|
while (o !== 0 && o !== 62);
|
|
1933
|
-
e.position < e.length ? (a = e.input.slice(t, e.position), o = e.input.charCodeAt(++e.position)) :
|
|
1855
|
+
e.position < e.length ? (a = e.input.slice(t, e.position), o = e.input.charCodeAt(++e.position)) : U(e, "unexpected end of the stream within a verbatim tag");
|
|
1934
1856
|
} else {
|
|
1935
|
-
for (; o !== 0 && !
|
|
1936
|
-
a = e.input.slice(t, e.position),
|
|
1857
|
+
for (; o !== 0 && !B(o);) o === 33 && (r ? U(e, "tag suffix cannot contain exclamation marks") : (i = e.input.slice(t - 1, e.position + 1), _n.test(i) || U(e, "named tag handle cannot contain such characters"), r = !0, t = e.position + 1)), o = e.input.charCodeAt(++e.position);
|
|
1858
|
+
a = e.input.slice(t, e.position), gn.test(a) && U(e, "tag suffix cannot contain flow indicator characters");
|
|
1937
1859
|
}
|
|
1938
|
-
a && !
|
|
1860
|
+
a && !vn.test(a) && U(e, "tag name cannot contain such characters: " + a);
|
|
1939
1861
|
try {
|
|
1940
1862
|
a = decodeURIComponent(a);
|
|
1941
1863
|
} catch {
|
|
1942
|
-
|
|
1864
|
+
U(e, "tag name is malformed: " + a);
|
|
1943
1865
|
}
|
|
1944
|
-
return n ? e.tag = a :
|
|
1866
|
+
return n ? e.tag = a : L.call(e.tagMap, i) ? e.tag = e.tagMap[i] + a : i === "!" ? e.tag = "!" + a : i === "!!" ? e.tag = "tag:yaml.org,2002:" + a : U(e, "undeclared tag handle \"" + i + "\""), !0;
|
|
1945
1867
|
}
|
|
1946
|
-
function
|
|
1868
|
+
function Wn(e) {
|
|
1947
1869
|
var t, n = e.input.charCodeAt(e.position);
|
|
1948
1870
|
if (n !== 38) return !1;
|
|
1949
|
-
for (e.anchor !== null &&
|
|
1950
|
-
return e.position === t &&
|
|
1871
|
+
for (e.anchor !== null && U(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !B(n) && !V(n);) n = e.input.charCodeAt(++e.position);
|
|
1872
|
+
return e.position === t && U(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
|
|
1951
1873
|
}
|
|
1952
|
-
function
|
|
1874
|
+
function Gn(e) {
|
|
1953
1875
|
var t, n, r = e.input.charCodeAt(e.position);
|
|
1954
1876
|
if (r !== 42) return !1;
|
|
1955
|
-
for (r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !
|
|
1956
|
-
return e.position === t &&
|
|
1877
|
+
for (r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !B(r) && !V(r);) r = e.input.charCodeAt(++e.position);
|
|
1878
|
+
return e.position === t && U(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), L.call(e.anchorMap, n) || U(e, "unidentified alias \"" + n + "\""), e.result = e.anchorMap[n], K(e, !0, -1), !0;
|
|
1957
1879
|
}
|
|
1958
|
-
function
|
|
1880
|
+
function q(e, t, n, r, i) {
|
|
1959
1881
|
var a, o, s, c = 1, l = !1, u = !1, d, f, p, m, h, g;
|
|
1960
|
-
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = s =
|
|
1961
|
-
if (s &&= l || i, (c === 1 ||
|
|
1882
|
+
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = s = un === n || ln === n, r && K(e, !0, -1) && (l = !0, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)), c === 1) for (; Un(e) || Wn(e);) K(e, !0, -1) ? (l = !0, s = a, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)) : s = !1;
|
|
1883
|
+
if (s &&= l || i, (c === 1 || un === n) && (h = sn === n || cn === n ? t : t + 1, g = e.position - e.lineStart, c === 1 ? s && (Vn(e, g) || Hn(e, g, h)) || zn(e, h) ? u = !0 : (o && Bn(e, h) || Ln(e, h) || Rn(e, h) ? u = !0 : Gn(e) ? (u = !0, (e.tag !== null || e.anchor !== null) && U(e, "alias node should not have any properties")) : In(e, h, sn === n) && (u = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : c === 0 && (u = s && Vn(e, g))), e.tag === null) e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
1962
1884
|
else if (e.tag === "?") {
|
|
1963
|
-
for (e.result !== null && e.kind !== "scalar" &&
|
|
1885
|
+
for (e.result !== null && e.kind !== "scalar" && U(e, "unacceptable node kind for !<?> tag; it should be \"scalar\", not \"" + e.kind + "\""), d = 0, f = e.implicitTypes.length; d < f; d += 1) if (m = e.implicitTypes[d], m.resolve(e.result)) {
|
|
1964
1886
|
e.result = m.construct(e.result), e.tag = m.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
1965
1887
|
break;
|
|
1966
1888
|
}
|
|
1967
1889
|
} else if (e.tag !== "!") {
|
|
1968
|
-
if (
|
|
1890
|
+
if (L.call(e.typeMap[e.kind || "fallback"], e.tag)) m = e.typeMap[e.kind || "fallback"][e.tag];
|
|
1969
1891
|
else for (m = null, p = e.typeMap.multi[e.kind || "fallback"], d = 0, f = p.length; d < f; d += 1) if (e.tag.slice(0, p[d].tag.length) === p[d].tag) {
|
|
1970
1892
|
m = p[d];
|
|
1971
1893
|
break;
|
|
1972
1894
|
}
|
|
1973
|
-
m ||
|
|
1895
|
+
m || U(e, "unknown tag !<" + e.tag + ">"), e.result !== null && m.kind !== e.kind && U(e, "unacceptable node kind for !<" + e.tag + "> tag; it should be \"" + m.kind + "\", not \"" + e.kind + "\""), m.resolve(e.result, e.tag) ? (e.result = m.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : U(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
|
|
1974
1896
|
}
|
|
1975
1897
|
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || u;
|
|
1976
1898
|
}
|
|
1977
|
-
function
|
|
1899
|
+
function Kn(e) {
|
|
1978
1900
|
var t = e.position, n, r, i, a = !1, o;
|
|
1979
|
-
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = Object.create(null), e.anchorMap = Object.create(null); (o = e.input.charCodeAt(e.position)) !== 0 && (
|
|
1980
|
-
for (a = !0, o = e.input.charCodeAt(++e.position), n = e.position; o !== 0 && !
|
|
1981
|
-
for (r = e.input.slice(n, e.position), i = [], r.length < 1 &&
|
|
1982
|
-
for (;
|
|
1901
|
+
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = Object.create(null), e.anchorMap = Object.create(null); (o = e.input.charCodeAt(e.position)) !== 0 && (K(e, !0, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37));) {
|
|
1902
|
+
for (a = !0, o = e.input.charCodeAt(++e.position), n = e.position; o !== 0 && !B(o);) o = e.input.charCodeAt(++e.position);
|
|
1903
|
+
for (r = e.input.slice(n, e.position), i = [], r.length < 1 && U(e, "directive name must not be less than one character in length"); o !== 0;) {
|
|
1904
|
+
for (; z(o);) o = e.input.charCodeAt(++e.position);
|
|
1983
1905
|
if (o === 35) {
|
|
1984
1906
|
do
|
|
1985
1907
|
o = e.input.charCodeAt(++e.position);
|
|
1986
|
-
while (o !== 0 && !
|
|
1908
|
+
while (o !== 0 && !R(o));
|
|
1987
1909
|
break;
|
|
1988
1910
|
}
|
|
1989
|
-
if (
|
|
1990
|
-
for (n = e.position; o !== 0 && !
|
|
1911
|
+
if (R(o)) break;
|
|
1912
|
+
for (n = e.position; o !== 0 && !B(o);) o = e.input.charCodeAt(++e.position);
|
|
1991
1913
|
i.push(e.input.slice(n, e.position));
|
|
1992
1914
|
}
|
|
1993
|
-
o !== 0 &&
|
|
1915
|
+
o !== 0 && Nn(e), L.call(jn, r) ? jn[r](e, r, i) : An(e, "unknown document directive \"" + r + "\"");
|
|
1994
1916
|
}
|
|
1995
|
-
if (
|
|
1996
|
-
e.input.charCodeAt(e.position) === 46 && (e.position += 3,
|
|
1917
|
+
if (K(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, K(e, !0, -1)) : a && U(e, "directives end mark is expected"), q(e, e.lineIndent - 1, un, !1, !0), K(e, !0, -1), e.checkLineBreaks && hn.test(e.input.slice(t, e.position)) && An(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && Pn(e)) {
|
|
1918
|
+
e.input.charCodeAt(e.position) === 46 && (e.position += 3, K(e, !0, -1));
|
|
1997
1919
|
return;
|
|
1998
1920
|
}
|
|
1999
|
-
if (e.position < e.length - 1)
|
|
1921
|
+
if (e.position < e.length - 1) U(e, "end of the stream or a document separator is expected");
|
|
2000
1922
|
else return;
|
|
2001
1923
|
}
|
|
2002
|
-
function
|
|
1924
|
+
function qn(e, t) {
|
|
2003
1925
|
e = String(e), t ||= {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += "\n"), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
2004
|
-
var n = new
|
|
2005
|
-
for (r !== -1 && (n.position = r,
|
|
2006
|
-
for (; n.position < n.length - 1;)
|
|
1926
|
+
var n = new On(e, t), r = e.indexOf("\0");
|
|
1927
|
+
for (r !== -1 && (n.position = r, U(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32;) n.lineIndent += 1, n.position += 1;
|
|
1928
|
+
for (; n.position < n.length - 1;) Kn(n);
|
|
2007
1929
|
return n.documents;
|
|
2008
1930
|
}
|
|
2009
|
-
function
|
|
1931
|
+
function Jn(e, t, n) {
|
|
2010
1932
|
typeof t == "object" && t && n === void 0 && (n = t, t = null);
|
|
2011
|
-
var r =
|
|
1933
|
+
var r = qn(e, n);
|
|
2012
1934
|
if (typeof t != "function") return r;
|
|
2013
1935
|
for (var i = 0, a = r.length; i < a; i += 1) t(r[i]);
|
|
2014
1936
|
}
|
|
2015
|
-
function
|
|
2016
|
-
var n =
|
|
1937
|
+
function Yn(e, t) {
|
|
1938
|
+
var n = qn(e, t);
|
|
2017
1939
|
if (n.length !== 0) {
|
|
2018
1940
|
if (n.length === 1) return n[0];
|
|
2019
|
-
throw new
|
|
1941
|
+
throw new F("expected a single document in the stream, but found more");
|
|
2020
1942
|
}
|
|
2021
1943
|
}
|
|
2022
|
-
var
|
|
2023
|
-
loadAll:
|
|
2024
|
-
load:
|
|
2025
|
-
},
|
|
2026
|
-
|
|
2027
|
-
var
|
|
1944
|
+
var Xn = {
|
|
1945
|
+
loadAll: Jn,
|
|
1946
|
+
load: Yn
|
|
1947
|
+
}, Zn = Object.prototype.toString, Qn = Object.prototype.hasOwnProperty, $n = 65279, er = 9, J = 10, tr = 13, nr = 32, rr = 33, ir = 34, ar = 35, or = 37, sr = 38, cr = 39, lr = 42, ur = 44, dr = 45, fr = 58, pr = 61, mr = 62, hr = 63, gr = 64, _r = 91, vr = 93, yr = 96, br = 123, xr = 124, Sr = 125, Y = {};
|
|
1948
|
+
Y[0] = "\\0", Y[7] = "\\a", Y[8] = "\\b", Y[9] = "\\t", Y[10] = "\\n", Y[11] = "\\v", Y[12] = "\\f", Y[13] = "\\r", Y[27] = "\\e", Y[34] = "\\\"", Y[92] = "\\\\", Y[133] = "\\N", Y[160] = "\\_", Y[8232] = "\\L", Y[8233] = "\\P";
|
|
1949
|
+
var Cr = [
|
|
2028
1950
|
"y",
|
|
2029
1951
|
"Y",
|
|
2030
1952
|
"yes",
|
|
@@ -2041,154 +1963,154 @@ var Ar = [
|
|
|
2041
1963
|
"off",
|
|
2042
1964
|
"Off",
|
|
2043
1965
|
"OFF"
|
|
2044
|
-
],
|
|
2045
|
-
function
|
|
1966
|
+
], wr = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
1967
|
+
function Tr(e, t) {
|
|
2046
1968
|
var n, r, i, a, o, s, c;
|
|
2047
1969
|
if (t === null) return {};
|
|
2048
|
-
for (n = {}, r = Object.keys(t), i = 0, a = r.length; i < a; i += 1) o = r[i], s = String(t[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), c = e.compiledTypeMap.fallback[o], c &&
|
|
1970
|
+
for (n = {}, r = Object.keys(t), i = 0, a = r.length; i < a; i += 1) o = r[i], s = String(t[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), c = e.compiledTypeMap.fallback[o], c && Qn.call(c.styleAliases, s) && (s = c.styleAliases[s]), n[o] = s;
|
|
2049
1971
|
return n;
|
|
2050
1972
|
}
|
|
2051
|
-
function
|
|
1973
|
+
function Er(e) {
|
|
2052
1974
|
var t = e.toString(16).toUpperCase(), n, r;
|
|
2053
1975
|
if (e <= 255) n = "x", r = 2;
|
|
2054
1976
|
else if (e <= 65535) n = "u", r = 4;
|
|
2055
1977
|
else if (e <= 4294967295) n = "U", r = 8;
|
|
2056
|
-
else throw new
|
|
2057
|
-
return "\\" + n +
|
|
1978
|
+
else throw new F("code point within a string may not be greater than 0xFFFFFFFF");
|
|
1979
|
+
return "\\" + n + N.repeat("0", r - t.length) + t;
|
|
2058
1980
|
}
|
|
2059
|
-
var
|
|
2060
|
-
function
|
|
2061
|
-
this.schema = e.schema ||
|
|
1981
|
+
var Dr = 1, Or = 2;
|
|
1982
|
+
function kr(e) {
|
|
1983
|
+
this.schema = e.schema || on, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = N.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = Tr(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === "\"" ? Or : Dr, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
|
|
2062
1984
|
}
|
|
2063
|
-
function
|
|
2064
|
-
for (var n =
|
|
1985
|
+
function Ar(e, t) {
|
|
1986
|
+
for (var n = N.repeat(" ", t), r = 0, i = -1, a = "", o, s = e.length; r < s;) i = e.indexOf("\n", r), i === -1 ? (o = e.slice(r), r = s) : (o = e.slice(r, i + 1), r = i + 1), o.length && o !== "\n" && (a += n), a += o;
|
|
2065
1987
|
return a;
|
|
2066
1988
|
}
|
|
2067
|
-
function
|
|
2068
|
-
return "\n" +
|
|
1989
|
+
function jr(e, t) {
|
|
1990
|
+
return "\n" + N.repeat(" ", e.indent * t);
|
|
2069
1991
|
}
|
|
2070
|
-
function
|
|
1992
|
+
function Mr(e, t) {
|
|
2071
1993
|
var n, r, i;
|
|
2072
1994
|
for (n = 0, r = e.implicitTypes.length; n < r; n += 1) if (i = e.implicitTypes[n], i.resolve(t)) return !0;
|
|
2073
1995
|
return !1;
|
|
2074
1996
|
}
|
|
2075
|
-
function
|
|
2076
|
-
return e ===
|
|
1997
|
+
function Nr(e) {
|
|
1998
|
+
return e === nr || e === er;
|
|
2077
1999
|
}
|
|
2078
|
-
function
|
|
2079
|
-
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !==
|
|
2000
|
+
function Pr(e) {
|
|
2001
|
+
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== $n || 65536 <= e && e <= 1114111;
|
|
2080
2002
|
}
|
|
2081
|
-
function
|
|
2082
|
-
return
|
|
2003
|
+
function Fr(e) {
|
|
2004
|
+
return Pr(e) && e !== $n && e !== tr && e !== J;
|
|
2083
2005
|
}
|
|
2084
|
-
function
|
|
2085
|
-
var r =
|
|
2086
|
-
return (n ? r : r && e !==
|
|
2006
|
+
function Ir(e, t, n) {
|
|
2007
|
+
var r = Fr(e), i = r && !Nr(e);
|
|
2008
|
+
return (n ? r : r && e !== ur && e !== _r && e !== vr && e !== br && e !== Sr) && e !== ar && !(t === fr && !i) || Fr(t) && !Nr(t) && e === ar || t === fr && i;
|
|
2087
2009
|
}
|
|
2088
|
-
function
|
|
2089
|
-
return
|
|
2010
|
+
function Lr(e) {
|
|
2011
|
+
return Pr(e) && e !== $n && !Nr(e) && e !== dr && e !== hr && e !== fr && e !== ur && e !== _r && e !== vr && e !== br && e !== Sr && e !== ar && e !== sr && e !== lr && e !== rr && e !== xr && e !== pr && e !== mr && e !== cr && e !== ir && e !== or && e !== gr && e !== yr;
|
|
2090
2012
|
}
|
|
2091
|
-
function
|
|
2092
|
-
return !
|
|
2013
|
+
function Rr(e) {
|
|
2014
|
+
return !Nr(e) && e !== fr;
|
|
2093
2015
|
}
|
|
2094
|
-
function
|
|
2016
|
+
function zr(e, t) {
|
|
2095
2017
|
var n = e.charCodeAt(t), r;
|
|
2096
2018
|
return n >= 55296 && n <= 56319 && t + 1 < e.length && (r = e.charCodeAt(t + 1), r >= 56320 && r <= 57343) ? (n - 55296) * 1024 + r - 56320 + 65536 : n;
|
|
2097
2019
|
}
|
|
2098
|
-
function
|
|
2020
|
+
function Br(e) {
|
|
2099
2021
|
return /^\n* /.test(e);
|
|
2100
2022
|
}
|
|
2101
|
-
var
|
|
2102
|
-
function
|
|
2103
|
-
var c, l = 0, u = null, d = !1, f = !1, p = r !== -1, m = -1, h =
|
|
2023
|
+
var Vr = 1, Hr = 2, Ur = 3, Wr = 4, X = 5;
|
|
2024
|
+
function Gr(e, t, n, r, i, a, o, s) {
|
|
2025
|
+
var c, l = 0, u = null, d = !1, f = !1, p = r !== -1, m = -1, h = Lr(zr(e, 0)) && Rr(zr(e, e.length - 1));
|
|
2104
2026
|
if (t || o) for (c = 0; c < e.length; l >= 65536 ? c += 2 : c++) {
|
|
2105
|
-
if (l =
|
|
2106
|
-
h &&=
|
|
2027
|
+
if (l = zr(e, c), !Pr(l)) return X;
|
|
2028
|
+
h &&= Ir(l, u, s), u = l;
|
|
2107
2029
|
}
|
|
2108
2030
|
else {
|
|
2109
2031
|
for (c = 0; c < e.length; l >= 65536 ? c += 2 : c++) {
|
|
2110
|
-
if (l =
|
|
2111
|
-
else if (!
|
|
2112
|
-
h &&=
|
|
2032
|
+
if (l = zr(e, c), l === J) d = !0, p && (f ||= c - m - 1 > r && e[m + 1] !== " ", m = c);
|
|
2033
|
+
else if (!Pr(l)) return X;
|
|
2034
|
+
h &&= Ir(l, u, s), u = l;
|
|
2113
2035
|
}
|
|
2114
2036
|
f ||= p && c - m - 1 > r && e[m + 1] !== " ";
|
|
2115
2037
|
}
|
|
2116
|
-
return !d && !f ? h && !o && !i(e) ?
|
|
2038
|
+
return !d && !f ? h && !o && !i(e) ? Vr : a === Or ? X : Hr : n > 9 && Br(e) ? X : o ? a === Or ? X : Hr : f ? Wr : Ur;
|
|
2117
2039
|
}
|
|
2118
|
-
function
|
|
2040
|
+
function Kr(e, t, n, r, i) {
|
|
2119
2041
|
e.dump = function() {
|
|
2120
|
-
if (t.length === 0) return e.quotingType ===
|
|
2121
|
-
if (!e.noCompatMode && (
|
|
2042
|
+
if (t.length === 0) return e.quotingType === Or ? "\"\"" : "''";
|
|
2043
|
+
if (!e.noCompatMode && (Cr.indexOf(t) !== -1 || wr.test(t))) return e.quotingType === Or ? "\"" + t + "\"" : "'" + t + "'";
|
|
2122
2044
|
var a = e.indent * Math.max(1, n), o = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - a), s = r || e.flowLevel > -1 && n >= e.flowLevel;
|
|
2123
2045
|
function c(t) {
|
|
2124
|
-
return
|
|
2046
|
+
return Mr(e, t);
|
|
2125
2047
|
}
|
|
2126
|
-
switch (
|
|
2127
|
-
case
|
|
2128
|
-
case
|
|
2129
|
-
case
|
|
2130
|
-
case
|
|
2131
|
-
case X: return "\"" +
|
|
2132
|
-
default: throw new
|
|
2048
|
+
switch (Gr(t, s, e.indent, o, c, e.quotingType, e.forceQuotes && !r, i)) {
|
|
2049
|
+
case Vr: return t;
|
|
2050
|
+
case Hr: return "'" + t.replace(/'/g, "''") + "'";
|
|
2051
|
+
case Ur: return "|" + qr(t, e.indent) + Jr(Ar(t, a));
|
|
2052
|
+
case Wr: return ">" + qr(t, e.indent) + Jr(Ar(Yr(t, o), a));
|
|
2053
|
+
case X: return "\"" + Zr(t) + "\"";
|
|
2054
|
+
default: throw new F("impossible error: invalid scalar style");
|
|
2133
2055
|
}
|
|
2134
2056
|
}();
|
|
2135
2057
|
}
|
|
2136
|
-
function
|
|
2137
|
-
var n =
|
|
2058
|
+
function qr(e, t) {
|
|
2059
|
+
var n = Br(e) ? String(t) : "", r = e[e.length - 1] === "\n";
|
|
2138
2060
|
return n + (r && (e[e.length - 2] === "\n" || e === "\n") ? "+" : r ? "" : "-") + "\n";
|
|
2139
2061
|
}
|
|
2140
|
-
function
|
|
2062
|
+
function Jr(e) {
|
|
2141
2063
|
return e[e.length - 1] === "\n" ? e.slice(0, -1) : e;
|
|
2142
2064
|
}
|
|
2143
|
-
function
|
|
2065
|
+
function Yr(e, t) {
|
|
2144
2066
|
for (var n = /(\n+)([^\n]*)/g, r = function() {
|
|
2145
2067
|
var r = e.indexOf("\n");
|
|
2146
|
-
return r = r === -1 ? e.length : r, n.lastIndex = r,
|
|
2068
|
+
return r = r === -1 ? e.length : r, n.lastIndex = r, Xr(e.slice(0, r), t);
|
|
2147
2069
|
}(), i = e[0] === "\n" || e[0] === " ", a, o; o = n.exec(e);) {
|
|
2148
2070
|
var s = o[1], c = o[2];
|
|
2149
|
-
a = c[0] === " ", r += s + (!i && !a && c !== "" ? "\n" : "") +
|
|
2071
|
+
a = c[0] === " ", r += s + (!i && !a && c !== "" ? "\n" : "") + Xr(c, t), i = a;
|
|
2150
2072
|
}
|
|
2151
2073
|
return r;
|
|
2152
2074
|
}
|
|
2153
|
-
function
|
|
2075
|
+
function Xr(e, t) {
|
|
2154
2076
|
if (e === "" || e[0] === " ") return e;
|
|
2155
2077
|
for (var n = / [^ ]/g, r, i = 0, a, o = 0, s = 0, c = ""; r = n.exec(e);) s = r.index, s - i > t && (a = o > i ? o : s, c += "\n" + e.slice(i, a), i = a + 1), o = s;
|
|
2156
2078
|
return c += "\n", e.length - i > t && o > i ? c += e.slice(i, o) + "\n" + e.slice(o + 1) : c += e.slice(i), c.slice(1);
|
|
2157
2079
|
}
|
|
2158
|
-
function
|
|
2159
|
-
for (var t = "", n = 0, r, i = 0; i < e.length; n >= 65536 ? i += 2 : i++) n =
|
|
2080
|
+
function Zr(e) {
|
|
2081
|
+
for (var t = "", n = 0, r, i = 0; i < e.length; n >= 65536 ? i += 2 : i++) n = zr(e, i), r = Y[n], !r && Pr(n) ? (t += e[i], n >= 65536 && (t += e[i + 1])) : t += r || Er(n);
|
|
2160
2082
|
return t;
|
|
2161
2083
|
}
|
|
2162
|
-
function
|
|
2084
|
+
function Qr(e, t, n) {
|
|
2163
2085
|
var r = "", i = e.tag, a, o, s;
|
|
2164
2086
|
for (a = 0, o = n.length; a < o; a += 1) s = n[a], e.replacer && (s = e.replacer.call(n, String(a), s)), (Z(e, t, s, !1, !1) || s === void 0 && Z(e, t, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
|
|
2165
2087
|
e.tag = i, e.dump = "[" + r + "]";
|
|
2166
2088
|
}
|
|
2167
|
-
function
|
|
2089
|
+
function $r(e, t, n, r) {
|
|
2168
2090
|
var i = "", a = e.tag, o, s, c;
|
|
2169
|
-
for (o = 0, s = n.length; o < s; o += 1) c = n[o], e.replacer && (c = e.replacer.call(n, String(o), c)), (Z(e, t + 1, c, !0, !0, !1, !0) || c === void 0 && Z(e, t + 1, null, !0, !0, !1, !0)) && ((!r || i !== "") && (i +=
|
|
2091
|
+
for (o = 0, s = n.length; o < s; o += 1) c = n[o], e.replacer && (c = e.replacer.call(n, String(o), c)), (Z(e, t + 1, c, !0, !0, !1, !0) || c === void 0 && Z(e, t + 1, null, !0, !0, !1, !0)) && ((!r || i !== "") && (i += jr(e, t)), e.dump && J === e.dump.charCodeAt(0) ? i += "-" : i += "- ", i += e.dump);
|
|
2170
2092
|
e.tag = a, e.dump = i || "[]";
|
|
2171
2093
|
}
|
|
2172
|
-
function
|
|
2094
|
+
function ei(e, t, n) {
|
|
2173
2095
|
var r = "", i = e.tag, a = Object.keys(n), o, s, c, l, u;
|
|
2174
2096
|
for (o = 0, s = a.length; o < s; o += 1) u = "", r !== "" && (u += ", "), e.condenseFlow && (u += "\""), c = a[o], l = n[c], e.replacer && (l = e.replacer.call(n, c, l)), Z(e, t, c, !1, !1) && (e.dump.length > 1024 && (u += "? "), u += e.dump + (e.condenseFlow ? "\"" : "") + ":" + (e.condenseFlow ? "" : " "), Z(e, t, l, !1, !1) && (u += e.dump, r += u));
|
|
2175
2097
|
e.tag = i, e.dump = "{" + r + "}";
|
|
2176
2098
|
}
|
|
2177
|
-
function
|
|
2099
|
+
function ti(e, t, n, r) {
|
|
2178
2100
|
var i = "", a = e.tag, o = Object.keys(n), s, c, l, u, d, f;
|
|
2179
2101
|
if (e.sortKeys === !0) o.sort();
|
|
2180
2102
|
else if (typeof e.sortKeys == "function") o.sort(e.sortKeys);
|
|
2181
|
-
else if (e.sortKeys) throw new
|
|
2182
|
-
for (s = 0, c = o.length; s < c; s += 1) f = "", (!r || i !== "") && (f +=
|
|
2103
|
+
else if (e.sortKeys) throw new F("sortKeys must be a boolean or a function");
|
|
2104
|
+
for (s = 0, c = o.length; s < c; s += 1) f = "", (!r || i !== "") && (f += jr(e, t)), l = o[s], u = n[l], e.replacer && (u = e.replacer.call(n, l, u)), Z(e, t + 1, l, !0, !0, !0) && (d = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, d && (e.dump && J === e.dump.charCodeAt(0) ? f += "?" : f += "? "), f += e.dump, d && (f += jr(e, t)), Z(e, t + 1, u, !0, d) && (e.dump && J === e.dump.charCodeAt(0) ? f += ":" : f += ": ", f += e.dump, i += f));
|
|
2183
2105
|
e.tag = a, e.dump = i || "{}";
|
|
2184
2106
|
}
|
|
2185
|
-
function
|
|
2107
|
+
function ni(e, t, n) {
|
|
2186
2108
|
var r, i = n ? e.explicitTypes : e.implicitTypes, a, o, s, c;
|
|
2187
2109
|
for (a = 0, o = i.length; a < o; a += 1) if (s = i[a], (s.instanceOf || s.predicate) && (!s.instanceOf || typeof t == "object" && t instanceof s.instanceOf) && (!s.predicate || s.predicate(t))) {
|
|
2188
2110
|
if (n ? s.multi && s.representName ? e.tag = s.representName(t) : e.tag = s.tag : e.tag = "?", s.represent) {
|
|
2189
|
-
if (c = e.styleMap[s.tag] || s.defaultStyle,
|
|
2190
|
-
else if (
|
|
2191
|
-
else throw new
|
|
2111
|
+
if (c = e.styleMap[s.tag] || s.defaultStyle, Zn.call(s.represent) === "[object Function]") r = s.represent(t, c);
|
|
2112
|
+
else if (Qn.call(s.represent, c)) r = s.represent[c](t, c);
|
|
2113
|
+
else throw new F("!<" + s.tag + "> tag resolver accepts not \"" + c + "\" style");
|
|
2192
2114
|
e.dump = r;
|
|
2193
2115
|
}
|
|
2194
2116
|
return !0;
|
|
@@ -2196,81 +2118,81 @@ function si(e, t, n) {
|
|
|
2196
2118
|
return !1;
|
|
2197
2119
|
}
|
|
2198
2120
|
function Z(e, t, n, r, i, a, o) {
|
|
2199
|
-
e.tag = null, e.dump = n,
|
|
2200
|
-
var s =
|
|
2121
|
+
e.tag = null, e.dump = n, ni(e, n, !1) || ni(e, n, !0);
|
|
2122
|
+
var s = Zn.call(e.dump), c = r, l;
|
|
2201
2123
|
r &&= e.flowLevel < 0 || e.flowLevel > t;
|
|
2202
2124
|
var u = s === "[object Object]" || s === "[object Array]", d, f;
|
|
2203
2125
|
if (u && (d = e.duplicates.indexOf(n), f = d !== -1), (e.tag !== null && e.tag !== "?" || f || e.indent !== 2 && t > 0) && (i = !1), f && e.usedDuplicates[d]) e.dump = "*ref_" + d;
|
|
2204
2126
|
else {
|
|
2205
|
-
if (u && f && !e.usedDuplicates[d] && (e.usedDuplicates[d] = !0), s === "[object Object]") r && Object.keys(e.dump).length !== 0 ? (
|
|
2206
|
-
else if (s === "[object Array]") r && e.dump.length !== 0 ? (e.noArrayIndent && !o && t > 0 ?
|
|
2207
|
-
else if (s === "[object String]") e.tag !== "?" &&
|
|
2127
|
+
if (u && f && !e.usedDuplicates[d] && (e.usedDuplicates[d] = !0), s === "[object Object]") r && Object.keys(e.dump).length !== 0 ? (ti(e, t, e.dump, i), f && (e.dump = "&ref_" + d + e.dump)) : (ei(e, t, e.dump), f && (e.dump = "&ref_" + d + " " + e.dump));
|
|
2128
|
+
else if (s === "[object Array]") r && e.dump.length !== 0 ? (e.noArrayIndent && !o && t > 0 ? $r(e, t - 1, e.dump, i) : $r(e, t, e.dump, i), f && (e.dump = "&ref_" + d + e.dump)) : (Qr(e, t, e.dump), f && (e.dump = "&ref_" + d + " " + e.dump));
|
|
2129
|
+
else if (s === "[object String]") e.tag !== "?" && Kr(e, e.dump, t, a, c);
|
|
2208
2130
|
else if (s === "[object Undefined]") return !1;
|
|
2209
2131
|
else {
|
|
2210
2132
|
if (e.skipInvalid) return !1;
|
|
2211
|
-
throw new
|
|
2133
|
+
throw new F("unacceptable kind of an object to dump " + s);
|
|
2212
2134
|
}
|
|
2213
2135
|
e.tag !== null && e.tag !== "?" && (l = encodeURI(e.tag[0] === "!" ? e.tag.slice(1) : e.tag).replace(/!/g, "%21"), l = e.tag[0] === "!" ? "!" + l : l.slice(0, 18) === "tag:yaml.org,2002:" ? "!!" + l.slice(18) : "!<" + l + ">", e.dump = l + " " + e.dump);
|
|
2214
2136
|
}
|
|
2215
2137
|
return !0;
|
|
2216
2138
|
}
|
|
2217
|
-
function
|
|
2139
|
+
function ri(e, t) {
|
|
2218
2140
|
var n = [], r = [], i, a;
|
|
2219
|
-
for (
|
|
2141
|
+
for (ii(e, n, r), i = 0, a = r.length; i < a; i += 1) t.duplicates.push(n[r[i]]);
|
|
2220
2142
|
t.usedDuplicates = Array(a);
|
|
2221
2143
|
}
|
|
2222
|
-
function
|
|
2144
|
+
function ii(e, t, n) {
|
|
2223
2145
|
var r, i, a;
|
|
2224
2146
|
if (typeof e == "object" && e) if (i = t.indexOf(e), i !== -1) n.indexOf(i) === -1 && n.push(i);
|
|
2225
|
-
else if (t.push(e), Array.isArray(e)) for (i = 0, a = e.length; i < a; i += 1)
|
|
2226
|
-
else for (r = Object.keys(e), i = 0, a = r.length; i < a; i += 1)
|
|
2147
|
+
else if (t.push(e), Array.isArray(e)) for (i = 0, a = e.length; i < a; i += 1) ii(e[i], t, n);
|
|
2148
|
+
else for (r = Object.keys(e), i = 0, a = r.length; i < a; i += 1) ii(e[r[i]], t, n);
|
|
2227
2149
|
}
|
|
2228
|
-
function
|
|
2150
|
+
function ai(e, t) {
|
|
2229
2151
|
t ||= {};
|
|
2230
|
-
var n = new
|
|
2231
|
-
n.noRefs ||
|
|
2152
|
+
var n = new kr(t);
|
|
2153
|
+
n.noRefs || ri(e, n);
|
|
2232
2154
|
var r = e;
|
|
2233
2155
|
return n.replacer && (r = n.replacer.call({ "": r }, "", r)), Z(n, 0, r, !0, !0) ? n.dump + "\n" : "";
|
|
2234
2156
|
}
|
|
2235
|
-
var
|
|
2236
|
-
function
|
|
2157
|
+
var oi = { dump: ai };
|
|
2158
|
+
function si(e, t) {
|
|
2237
2159
|
return function() {
|
|
2238
2160
|
throw Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
|
|
2239
2161
|
};
|
|
2240
2162
|
}
|
|
2241
|
-
var
|
|
2242
|
-
Type:
|
|
2243
|
-
Schema:
|
|
2244
|
-
FAILSAFE_SCHEMA:
|
|
2245
|
-
JSON_SCHEMA:
|
|
2246
|
-
CORE_SCHEMA:
|
|
2247
|
-
DEFAULT_SCHEMA:
|
|
2248
|
-
load:
|
|
2249
|
-
loadAll:
|
|
2250
|
-
dump:
|
|
2251
|
-
YAMLException:
|
|
2163
|
+
var ci = {
|
|
2164
|
+
Type: I,
|
|
2165
|
+
Schema: rt,
|
|
2166
|
+
FAILSAFE_SCHEMA: st,
|
|
2167
|
+
JSON_SCHEMA: At,
|
|
2168
|
+
CORE_SCHEMA: jt,
|
|
2169
|
+
DEFAULT_SCHEMA: on,
|
|
2170
|
+
load: Xn.load,
|
|
2171
|
+
loadAll: Xn.loadAll,
|
|
2172
|
+
dump: oi.dump,
|
|
2173
|
+
YAMLException: F,
|
|
2252
2174
|
types: {
|
|
2253
|
-
binary:
|
|
2254
|
-
float:
|
|
2255
|
-
map:
|
|
2256
|
-
null:
|
|
2257
|
-
pairs:
|
|
2258
|
-
set:
|
|
2259
|
-
timestamp:
|
|
2260
|
-
bool:
|
|
2261
|
-
int:
|
|
2262
|
-
merge:
|
|
2263
|
-
omap:
|
|
2264
|
-
seq:
|
|
2265
|
-
str:
|
|
2175
|
+
binary: Gt,
|
|
2176
|
+
float: kt,
|
|
2177
|
+
map: ot,
|
|
2178
|
+
null: dt,
|
|
2179
|
+
pairs: en,
|
|
2180
|
+
set: an,
|
|
2181
|
+
timestamp: Lt,
|
|
2182
|
+
bool: ht,
|
|
2183
|
+
int: St,
|
|
2184
|
+
merge: zt,
|
|
2185
|
+
omap: Xt,
|
|
2186
|
+
seq: at,
|
|
2187
|
+
str: it
|
|
2266
2188
|
},
|
|
2267
|
-
safeLoad:
|
|
2268
|
-
safeLoadAll:
|
|
2269
|
-
safeDump:
|
|
2270
|
-
},
|
|
2271
|
-
let t =
|
|
2189
|
+
safeLoad: si("safeLoad", "load"),
|
|
2190
|
+
safeLoadAll: si("safeLoadAll", "loadAll"),
|
|
2191
|
+
safeDump: si("safeDump", "dump")
|
|
2192
|
+
}, li = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), ui = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), di = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), fi = (e) => {
|
|
2193
|
+
let t = di(e);
|
|
2272
2194
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
2273
|
-
},
|
|
2195
|
+
}, pi = {
|
|
2274
2196
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2275
2197
|
width: 24,
|
|
2276
2198
|
height: 24,
|
|
@@ -2280,43 +2202,43 @@ var pi = {
|
|
|
2280
2202
|
strokeWidth: 2,
|
|
2281
2203
|
strokeLinecap: "round",
|
|
2282
2204
|
strokeLinejoin: "round"
|
|
2283
|
-
},
|
|
2205
|
+
}, mi = (e) => {
|
|
2284
2206
|
for (let t in e) if (t.startsWith("aria-") || t === "role" || t === "title") return !0;
|
|
2285
2207
|
return !1;
|
|
2286
|
-
},
|
|
2287
|
-
let { size: u = 24, strokeWidth: d = 2, absoluteStrokeWidth: f = !1, color: p = "currentColor", className: m = "" } =
|
|
2208
|
+
}, hi = c({}), gi = () => p(hi), _i = u(({ color: e, size: t, strokeWidth: n, absoluteStrokeWidth: r, className: i = "", children: a, iconNode: o, ...s }, c) => {
|
|
2209
|
+
let { size: u = 24, strokeWidth: d = 2, absoluteStrokeWidth: f = !1, color: p = "currentColor", className: m = "" } = gi() ?? {}, h = r ?? f ? Number(n ?? d) * 24 / Number(t ?? u) : n ?? d;
|
|
2288
2210
|
return l("svg", {
|
|
2289
2211
|
ref: c,
|
|
2290
|
-
...
|
|
2291
|
-
width: t ?? u ??
|
|
2292
|
-
height: t ?? u ??
|
|
2212
|
+
...pi,
|
|
2213
|
+
width: t ?? u ?? pi.width,
|
|
2214
|
+
height: t ?? u ?? pi.height,
|
|
2293
2215
|
stroke: e ?? p,
|
|
2294
2216
|
strokeWidth: h,
|
|
2295
|
-
className:
|
|
2296
|
-
...!a && !
|
|
2217
|
+
className: li("lucide", m, i),
|
|
2218
|
+
...!a && !mi(s) && { "aria-hidden": "true" },
|
|
2297
2219
|
...s
|
|
2298
2220
|
}, [...o.map(([e, t]) => l(e, t)), ...Array.isArray(a) ? a : [a]]);
|
|
2299
|
-
}),
|
|
2300
|
-
let n = u(({ className: n, ...r }, i) => l(
|
|
2221
|
+
}), vi = (e, t) => {
|
|
2222
|
+
let n = u(({ className: n, ...r }, i) => l(_i, {
|
|
2301
2223
|
ref: i,
|
|
2302
2224
|
iconNode: t,
|
|
2303
|
-
className:
|
|
2225
|
+
className: li(`lucide-${ui(fi(e))}`, `lucide-${e}`, n),
|
|
2304
2226
|
...r
|
|
2305
2227
|
}));
|
|
2306
|
-
return n.displayName =
|
|
2307
|
-
},
|
|
2228
|
+
return n.displayName = fi(e), n;
|
|
2229
|
+
}, yi = vi("check", [["path", {
|
|
2308
2230
|
d: "M20 6 9 17l-5-5",
|
|
2309
2231
|
key: "1gmf2c"
|
|
2310
|
-
}]]),
|
|
2232
|
+
}]]), bi = vi("minus", [["path", {
|
|
2311
2233
|
d: "M5 12h14",
|
|
2312
2234
|
key: "1ays0h"
|
|
2313
|
-
}]]),
|
|
2235
|
+
}]]), xi = vi("plus", [["path", {
|
|
2314
2236
|
d: "M5 12h14",
|
|
2315
2237
|
key: "1ays0h"
|
|
2316
2238
|
}], ["path", {
|
|
2317
2239
|
d: "M12 5v14",
|
|
2318
2240
|
key: "s699le"
|
|
2319
|
-
}]]),
|
|
2241
|
+
}]]), Si = {
|
|
2320
2242
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
2321
2243
|
$id: "https://seedfinder.app/jaml.schema.json",
|
|
2322
2244
|
title: "JAML — Jimbo's Ante Markup Language",
|
|
@@ -2355,9 +2277,9 @@ var pi = {
|
|
|
2355
2277
|
}
|
|
2356
2278
|
},
|
|
2357
2279
|
$defs: /* @__PURE__ */ JSON.parse("{\"JamlDefaults\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"antes\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"boosterPacks\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"shopItems\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"score\":{\"type\":\"integer\"}}},\"JamlClauseUnion\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"joker\":{\"oneOf\":[{\"const\":\"any\"},{\"$ref\":\"#/$defs/MotelyJoker\"}]},\"jokers\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/$defs/MotelyJoker\"}},\"commonJoker\":{\"oneOf\":[{\"const\":\"any\"},{\"$ref\":\"#/$defs/MotelyJokerCommon\"}]},\"commonJokers\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/$defs/MotelyJokerCommon\"}},\"uncommonJoker\":{\"oneOf\":[{\"const\":\"any\"},{\"$ref\":\"#/$defs/MotelyJokerUncommon\"}]},\"uncommonJokers\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/$defs/MotelyJokerUncommon\"}},\"rareJoker\":{\"oneOf\":[{\"const\":\"any\"},{\"$ref\":\"#/$defs/MotelyJokerRare\"}]},\"rareJokers\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/$defs/MotelyJokerRare\"}},\"legendaryJoker\":{\"oneOf\":[{\"const\":\"any\"},{\"$ref\":\"#/$defs/MotelyJokerLegendary\"}]},\"legendaryJokers\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/$defs/MotelyJokerLegendary\"}},\"voucher\":{\"$ref\":\"#/$defs/MotelyVoucher\"},\"vouchers\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/$defs/MotelyVoucher\"}},\"tarotCard\":{\"$ref\":\"#/$defs/MotelyTarotCard\"},\"tarotCards\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/$defs/MotelyTarotCard\"}},\"spectralCard\":{\"$ref\":\"#/$defs/MotelySpectralCard\"},\"spectralCards\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/$defs/MotelySpectralCard\"}},\"planetCard\":{\"$ref\":\"#/$defs/MotelyPlanetCard\"},\"boss\":{\"$ref\":\"#/$defs/MotelyBossBlind\"},\"tag\":{\"$ref\":\"#/$defs/MotelyTag\"},\"smallBlindTag\":{\"$ref\":\"#/$defs/MotelyTag\"},\"bigBlindTag\":{\"$ref\":\"#/$defs/MotelyTag\"},\"standardCard\":{\"oneOf\":[{\"type\":\"string\"},{\"$ref\":\"#/$defs/StandardCardConfig\"}]},\"standardCards\":{\"type\":\"array\",\"items\":{\"oneOf\":[{\"type\":\"string\"},{\"$ref\":\"#/$defs/StandardCardConfig\"}]}},\"erraticRank\":{\"type\":\"string\"},\"erraticSuit\":{\"type\":\"string\"},\"erraticCard\":{\"type\":\"string\"},\"startingDraw\":{\"type\":\"string\"},\"event\":{\"$ref\":\"#/$defs/MotelyEventType\"},\"luckyMoney\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"luckyMult\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"misprintMult\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"wheelOfFortune\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"cavendishExtinct\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"grosMichelExtinct\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"spaceLevelup\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"businessPayout\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"bloodstoneTrigger\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"parkingPayout\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"glassDestroy\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"wheelStaysFlipped\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"antes\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"score\":{\"type\":\"integer\"},\"min\":{\"type\":\"integer\"},\"max\":{\"type\":\"integer\"},\"label\":{\"type\":\"string\"},\"edition\":{\"$ref\":\"#/$defs/MotelyItemEdition\"},\"stickers\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/$defs/MotelyJokerSticker\"}},\"seal\":{\"$ref\":\"#/$defs/MotelyItemSeal\"},\"enhancement\":{\"$ref\":\"#/$defs/MotelyItemEnhancement\"},\"rank\":{\"type\":\"string\"},\"suit\":{\"type\":\"string\"},\"rolls\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"soulEditionRolls\":{\"type\":\"integer\"},\"soulCardOnly\":{\"type\":\"boolean\"},\"and\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/$defs/JamlClauseUnion\"}},\"or\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/$defs/JamlClauseUnion\"}},\"clauses\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/$defs/JamlClauseUnion\"}},\"mode\":{\"type\":\"string\"},\"judgement\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"wraith\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"rareTag\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"uncommonTag\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"shopItems\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"boosterPacks\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"minShopItem\":{\"type\":\"integer\"},\"maxShopItem\":{\"type\":\"integer\"},\"sources\":{\"$ref\":\"#/$defs/JamlSources\"}}},\"MotelyJoker\":{\"type\":\"string\",\"enum\":[\"Joker\",\"GreedyJoker\",\"LustyJoker\",\"WrathfulJoker\",\"GluttonousJoker\",\"JollyJoker\",\"ZanyJoker\",\"MadJoker\",\"CrazyJoker\",\"DrollJoker\",\"SlyJoker\",\"WilyJoker\",\"CleverJoker\",\"DeviousJoker\",\"CraftyJoker\",\"HalfJoker\",\"CreditCard\",\"Banner\",\"MysticSummit\",\"EightBall\",\"Misprint\",\"RaisedFist\",\"ChaostheClown\",\"ScaryFace\",\"AbstractJoker\",\"DelayedGratification\",\"GrosMichel\",\"EvenSteven\",\"OddTodd\",\"Scholar\",\"BusinessCard\",\"Supernova\",\"RideTheBus\",\"Egg\",\"Runner\",\"IceCream\",\"Splash\",\"BlueJoker\",\"FacelessJoker\",\"GreenJoker\",\"Superposition\",\"ToDoList\",\"Cavendish\",\"RedCard\",\"SquareJoker\",\"RiffRaff\",\"Photograph\",\"ReservedParking\",\"MailInRebate\",\"Hallucination\",\"FortuneTeller\",\"Juggler\",\"Drunkard\",\"GoldenJoker\",\"Popcorn\",\"WalkieTalkie\",\"SmileyFace\",\"GoldenTicket\",\"Swashbuckler\",\"HangingChad\",\"ShootTheMoon\",\"JokerStencil\",\"FourFingers\",\"Mime\",\"CeremonialDagger\",\"MarbleJoker\",\"LoyaltyCard\",\"Dusk\",\"Fibonacci\",\"SteelJoker\",\"Hack\",\"Pareidolia\",\"SpaceJoker\",\"Burglar\",\"Blackboard\",\"SixthSense\",\"Constellation\",\"Hiker\",\"CardSharp\",\"Madness\",\"Seance\",\"Vampire\",\"Shortcut\",\"Hologram\",\"Cloud9\",\"Rocket\",\"MidasMask\",\"Luchador\",\"GiftCard\",\"TurtleBean\",\"Erosion\",\"ToTheMoon\",\"StoneJoker\",\"LuckyCat\",\"Bull\",\"DietCola\",\"TradingCard\",\"FlashCard\",\"SpareTrousers\",\"Ramen\",\"Seltzer\",\"Castle\",\"MrBones\",\"Acrobat\",\"SockAndBuskin\",\"Troubadour\",\"Certificate\",\"SmearedJoker\",\"Throwback\",\"RoughGem\",\"Bloodstone\",\"Arrowhead\",\"OnyxAgate\",\"GlassJoker\",\"Showman\",\"FlowerPot\",\"MerryAndy\",\"OopsAll6s\",\"TheIdol\",\"SeeingDouble\",\"Matador\",\"Satellite\",\"Cartomancer\",\"Astronomer\",\"Bootstraps\",\"DNA\",\"Vagabond\",\"Baron\",\"Obelisk\",\"BaseballCard\",\"AncientJoker\",\"Campfire\",\"Blueprint\",\"WeeJoker\",\"HitTheRoad\",\"TheDuo\",\"TheTrio\",\"TheFamily\",\"TheOrder\",\"TheTribe\",\"Stuntman\",\"InvisibleJoker\",\"Brainstorm\",\"DriversLicense\",\"BurntJoker\",\"Canio\",\"Triboulet\",\"Yorick\",\"Chicot\",\"Perkeo\"]},\"MotelyJokerCommon\":{\"type\":\"string\",\"enum\":[\"Joker\",\"GreedyJoker\",\"LustyJoker\",\"WrathfulJoker\",\"GluttonousJoker\",\"JollyJoker\",\"ZanyJoker\",\"MadJoker\",\"CrazyJoker\",\"DrollJoker\",\"SlyJoker\",\"WilyJoker\",\"CleverJoker\",\"DeviousJoker\",\"CraftyJoker\",\"HalfJoker\",\"CreditCard\",\"Banner\",\"MysticSummit\",\"EightBall\",\"Misprint\",\"RaisedFist\",\"ChaostheClown\",\"ScaryFace\",\"AbstractJoker\",\"DelayedGratification\",\"GrosMichel\",\"EvenSteven\",\"OddTodd\",\"Scholar\",\"BusinessCard\",\"Supernova\",\"RideTheBus\",\"Egg\",\"Runner\",\"IceCream\",\"Splash\",\"BlueJoker\",\"FacelessJoker\",\"GreenJoker\",\"Superposition\",\"ToDoList\",\"Cavendish\",\"RedCard\",\"SquareJoker\",\"RiffRaff\",\"Photograph\",\"ReservedParking\",\"MailInRebate\",\"Hallucination\",\"FortuneTeller\",\"Juggler\",\"Drunkard\",\"GoldenJoker\",\"Popcorn\",\"WalkieTalkie\",\"SmileyFace\",\"GoldenTicket\",\"Swashbuckler\",\"HangingChad\",\"ShootTheMoon\"]},\"MotelyJokerUncommon\":{\"type\":\"string\",\"enum\":[\"JokerStencil\",\"FourFingers\",\"Mime\",\"CeremonialDagger\",\"MarbleJoker\",\"LoyaltyCard\",\"Dusk\",\"Fibonacci\",\"SteelJoker\",\"Hack\",\"Pareidolia\",\"SpaceJoker\",\"Burglar\",\"Blackboard\",\"SixthSense\",\"Constellation\",\"Hiker\",\"CardSharp\",\"Madness\",\"Seance\",\"Vampire\",\"Shortcut\",\"Hologram\",\"Cloud9\",\"Rocket\",\"MidasMask\",\"Luchador\",\"GiftCard\",\"TurtleBean\",\"Erosion\",\"ToTheMoon\",\"StoneJoker\",\"LuckyCat\",\"Bull\",\"DietCola\",\"TradingCard\",\"FlashCard\",\"SpareTrousers\",\"Ramen\",\"Seltzer\",\"Castle\",\"MrBones\",\"Acrobat\",\"SockAndBuskin\",\"Troubadour\",\"Certificate\",\"SmearedJoker\",\"Throwback\",\"RoughGem\",\"Bloodstone\",\"Arrowhead\",\"OnyxAgate\",\"GlassJoker\",\"Showman\",\"FlowerPot\",\"MerryAndy\",\"OopsAll6s\",\"TheIdol\",\"SeeingDouble\",\"Matador\",\"Satellite\",\"Cartomancer\",\"Astronomer\",\"Bootstraps\"]},\"MotelyJokerRare\":{\"type\":\"string\",\"enum\":[\"DNA\",\"Vagabond\",\"Baron\",\"Obelisk\",\"BaseballCard\",\"AncientJoker\",\"Campfire\",\"Blueprint\",\"WeeJoker\",\"HitTheRoad\",\"TheDuo\",\"TheTrio\",\"TheFamily\",\"TheOrder\",\"TheTribe\",\"Stuntman\",\"InvisibleJoker\",\"Brainstorm\",\"DriversLicense\",\"BurntJoker\"]},\"MotelyJokerLegendary\":{\"type\":\"string\",\"enum\":[\"Canio\",\"Triboulet\",\"Yorick\",\"Chicot\",\"Perkeo\"]},\"MotelyVoucher\":{\"type\":\"string\",\"enum\":[\"Overstock\",\"OverstockPlus\",\"ClearanceSale\",\"Liquidation\",\"Hone\",\"GlowUp\",\"RerollSurplus\",\"RerollGlut\",\"CrystalBall\",\"OmenGlobe\",\"Telescope\",\"Observatory\",\"Grabber\",\"NachoTong\",\"Wasteful\",\"Recyclomancy\",\"TarotMerchant\",\"TarotTycoon\",\"PlanetMerchant\",\"PlanetTycoon\",\"SeedMoney\",\"MoneyTree\",\"Blank\",\"Antimatter\",\"MagicTrick\",\"Illusion\",\"Hieroglyph\",\"Petroglyph\",\"DirectorsCut\",\"Retcon\",\"PaintBrush\",\"Palette\"]},\"MotelyTarotCard\":{\"type\":\"string\",\"enum\":[\"TheFool\",\"TheMagician\",\"TheHighPriestess\",\"TheEmpress\",\"TheEmperor\",\"TheHierophant\",\"TheLovers\",\"TheChariot\",\"Justice\",\"TheHermit\",\"TheWheelOfFortune\",\"Strength\",\"TheHangedMan\",\"Death\",\"Temperance\",\"TheDevil\",\"TheTower\",\"TheStar\",\"TheMoon\",\"TheSun\",\"Judgement\",\"TheWorld\"]},\"MotelySpectralCard\":{\"type\":\"string\",\"enum\":[\"Familiar\",\"Grim\",\"Incantation\",\"Talisman\",\"Aura\",\"Wraith\",\"Sigil\",\"Ouija\",\"Ectoplasm\",\"Immolate\",\"Ankh\",\"DejaVu\",\"Hex\",\"Trance\",\"Medium\",\"Cryptid\",\"TheSoul\",\"BlackHole\"]},\"MotelyPlanetCard\":{\"type\":\"string\",\"enum\":[\"Mercury\",\"Venus\",\"Earth\",\"Mars\",\"Jupiter\",\"Saturn\",\"Uranus\",\"Neptune\",\"Pluto\",\"PlanetX\",\"Ceres\",\"Eris\"]},\"MotelyBossBlind\":{\"type\":\"string\",\"enum\":[\"TheClub\",\"TheGoad\",\"TheHead\",\"TheHook\",\"TheManacle\",\"ThePillar\",\"ThePsychic\",\"TheWindow\",\"TheArm\",\"TheFish\",\"TheFlint\",\"TheHouse\",\"TheMark\",\"TheMouth\",\"TheNeedle\",\"TheWall\",\"TheWater\",\"TheWheel\",\"TheEye\",\"TheTooth\",\"ThePlant\",\"TheSerpent\",\"TheOx\",\"AmberAcorn\",\"CeruleanBell\",\"CrimsonHeart\",\"VerdantLeaf\",\"VioletVessel\"]},\"MotelyTag\":{\"type\":\"string\",\"enum\":[\"UncommonTag\",\"RareTag\",\"NegativeTag\",\"FoilTag\",\"HolographicTag\",\"PolychromeTag\",\"InvestmentTag\",\"VoucherTag\",\"BossTag\",\"StandardTag\",\"CharmTag\",\"MeteorTag\",\"BuffoonTag\",\"HandyTag\",\"GarbageTag\",\"EtherealTag\",\"CouponTag\",\"DoubleTag\",\"JuggleTag\",\"D6Tag\",\"TopupTag\",\"SpeedTag\",\"OrbitalTag\",\"EconomyTag\"]},\"StandardCardConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"rank\":{\"type\":\"string\"},\"suit\":{\"type\":\"string\"},\"seal\":{\"$ref\":\"#/$defs/MotelyItemSeal\"},\"enhancement\":{\"$ref\":\"#/$defs/MotelyItemEnhancement\"},\"edition\":{\"$ref\":\"#/$defs/MotelyItemEdition\"},\"sources\":{\"$ref\":\"#/$defs/JamlSources\"}}},\"MotelyItemSeal\":{\"type\":\"string\",\"enum\":[\"None\",\"Gold\",\"Red\",\"Blue\",\"Purple\"]},\"MotelyItemEnhancement\":{\"type\":\"string\",\"enum\":[\"None\",\"Bonus\",\"Mult\",\"Wild\",\"Glass\",\"Steel\",\"Stone\",\"Gold\",\"Lucky\"]},\"MotelyItemEdition\":{\"type\":\"string\",\"enum\":[\"None\",\"Foil\",\"Holographic\",\"Polychrome\",\"Negative\"]},\"JamlSources\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"shopItems\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"boosterPacks\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"minShopItem\":{\"type\":\"integer\"},\"maxShopItem\":{\"type\":\"integer\"},\"tags\":{\"type\":\"boolean\"},\"requireMega\":{\"type\":\"boolean\"},\"charmTag\":{\"type\":\"boolean\"},\"etherealTag\":{\"type\":\"boolean\"},\"judgement\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"rareTag\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"uncommonTag\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"wraith\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"soulCard\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"arcanaPacks\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"spectralPacks\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"riffRaff\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"purpleSealOrEightBall\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"emperor\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"sixthSense\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"seance\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"certificate\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"incantation\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"familiar\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"grim\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"deckDraw\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"uncommonShopJokers\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"rareShopJokers\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"commonShopJokers\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"allShopJokers\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}}}},\"MotelyEventType\":{\"type\":\"string\",\"enum\":[\"LuckyMoney\",\"LuckyMult\",\"MisprintMult\",\"WheelOfFortune\",\"CavendishExtinct\",\"GrosMichelExtinct\",\"SpaceLevelup\",\"BusinessPayout\",\"BloodstoneTrigger\",\"ParkingPayout\",\"GlassDestroy\",\"WheelStaysFlipped\"]},\"MotelyJokerSticker\":{\"type\":\"string\",\"enum\":[\"None\",\"Eternal\",\"Perishable\",\"Rental\"]},\"MotelyDeck\":{\"type\":\"string\",\"enum\":[\"Red\",\"Blue\",\"Yellow\",\"Green\",\"Black\",\"Magic\",\"Nebula\",\"Ghost\",\"Abandoned\",\"Checkered\",\"Zodiac\",\"Painted\",\"Anaglyph\",\"Plasma\",\"Erratic\"]},\"MotelyStake\":{\"type\":\"string\",\"enum\":[\"White\",\"Red\",\"Green\",\"Black\",\"Blue\",\"Purple\",\"Orange\",\"Gold\"]}}")
|
|
2358
|
-
},
|
|
2359
|
-
|
|
2360
|
-
var
|
|
2280
|
+
}, Ci = Si.definitions?.clause?.properties ?? {};
|
|
2281
|
+
Si.version;
|
|
2282
|
+
var wi = [
|
|
2361
2283
|
"id",
|
|
2362
2284
|
"name",
|
|
2363
2285
|
"description",
|
|
@@ -2369,46 +2291,46 @@ var ki = [
|
|
|
2369
2291
|
"hashtags",
|
|
2370
2292
|
"aesthetics",
|
|
2371
2293
|
"defaults"
|
|
2372
|
-
],
|
|
2294
|
+
], Ti = [
|
|
2373
2295
|
"must",
|
|
2374
2296
|
"should",
|
|
2375
2297
|
"mustNot"
|
|
2376
|
-
],
|
|
2377
|
-
let e =
|
|
2298
|
+
], Ei = Ci.type?.enum ?? [], Di = Object.keys(Ci), Oi = (() => {
|
|
2299
|
+
let e = Ci.sources?.properties;
|
|
2378
2300
|
return e ? Object.keys(e) : ["shopItems", "boosterPacks"];
|
|
2379
2301
|
})();
|
|
2380
2302
|
function Q(e) {
|
|
2381
|
-
let t =
|
|
2303
|
+
let t = Si.properties?.[e];
|
|
2382
2304
|
if (t?.enum) return t.enum;
|
|
2383
2305
|
if (t?.items?.enum) return t.items.enum;
|
|
2384
|
-
let n =
|
|
2306
|
+
let n = Ci[e];
|
|
2385
2307
|
return n?.enum ? n.enum : n?.items?.enum ? n.items.enum : null;
|
|
2386
2308
|
}
|
|
2387
2309
|
Q("deck"), Q("stake"), Q("edition"), Q("seal"), Q("enhancement"), Q("rank"), Q("suit"), Q("stickers"), [
|
|
2388
|
-
...
|
|
2389
|
-
...
|
|
2390
|
-
...
|
|
2391
|
-
...
|
|
2392
|
-
...
|
|
2310
|
+
...Ti,
|
|
2311
|
+
...wi,
|
|
2312
|
+
...Ei,
|
|
2313
|
+
...Di,
|
|
2314
|
+
...Oi
|
|
2393
2315
|
];
|
|
2394
2316
|
//#endregion
|
|
2395
2317
|
//#region src/lib/jaml/jamlData.ts
|
|
2396
|
-
var
|
|
2318
|
+
var ki = [...Ei], Ai = [
|
|
2397
2319
|
"antes",
|
|
2398
2320
|
"tags",
|
|
2399
2321
|
"labels"
|
|
2400
|
-
],
|
|
2322
|
+
], ji = [
|
|
2401
2323
|
"must",
|
|
2402
2324
|
"should",
|
|
2403
2325
|
"mustNot",
|
|
2404
2326
|
"any",
|
|
2405
2327
|
"Any",
|
|
2406
|
-
...
|
|
2407
|
-
...
|
|
2408
|
-
],
|
|
2328
|
+
...ki,
|
|
2329
|
+
...Ai
|
|
2330
|
+
], Mi = class {
|
|
2409
2331
|
static getCompletions(e) {
|
|
2410
2332
|
let t = e.toLowerCase();
|
|
2411
|
-
return
|
|
2333
|
+
return ji.filter((e) => e.toLowerCase().includes(t)).map((e) => ({
|
|
2412
2334
|
text: e,
|
|
2413
2335
|
displayText: e,
|
|
2414
2336
|
type: "keyword"
|
|
@@ -2426,14 +2348,14 @@ var Pi = [...ji], Fi = [
|
|
|
2426
2348
|
gold: "#efb82d",
|
|
2427
2349
|
editorBg: "#0f1416",
|
|
2428
2350
|
editorBgAlt: "#1c2629"
|
|
2429
|
-
},
|
|
2351
|
+
}, Ni = "# My JAML Filter\nname: My Filter\ndeck: Red\nstake: White\n\nmust:\n - joker: Blueprint\n edition: Negative\n antes: [1, 2, 3]\n\nshould:\n - soulJoker: Any\n score: 5\n", Pi = [
|
|
2430
2352
|
"name",
|
|
2431
2353
|
"author",
|
|
2432
2354
|
"description",
|
|
2433
2355
|
"deck",
|
|
2434
2356
|
"stake",
|
|
2435
2357
|
"label"
|
|
2436
|
-
],
|
|
2358
|
+
], Fi = [
|
|
2437
2359
|
"joker",
|
|
2438
2360
|
"soulJoker",
|
|
2439
2361
|
"voucher",
|
|
@@ -2445,7 +2367,7 @@ var Pi = [...ji], Fi = [
|
|
|
2445
2367
|
"boss",
|
|
2446
2368
|
"event"
|
|
2447
2369
|
];
|
|
2448
|
-
function
|
|
2370
|
+
function Ii({ suggestions: e, selectedIndex: t, onSelect: n, onHover: r }) {
|
|
2449
2371
|
return e.length === 0 ? /* @__PURE__ */ b("div", {
|
|
2450
2372
|
className: "p-2 text-xs text-white/40 italic",
|
|
2451
2373
|
children: "No suggestions..."
|
|
@@ -2469,7 +2391,7 @@ function Vi({ suggestions: e, selectedIndex: t, onSelect: n, onHover: r }) {
|
|
|
2469
2391
|
})
|
|
2470
2392
|
});
|
|
2471
2393
|
}
|
|
2472
|
-
function
|
|
2394
|
+
function Li({ values: e, onToggle: t, color: n }) {
|
|
2473
2395
|
let [r, i] = v(!1), a = new Set(e.map((e) => parseInt(e, 10)).filter((e) => !isNaN(e)));
|
|
2474
2396
|
return r ? /* @__PURE__ */ x("div", {
|
|
2475
2397
|
className: "flex flex-row items-center",
|
|
@@ -2492,7 +2414,7 @@ function Hi({ values: e, onToggle: t, color: n }) {
|
|
|
2492
2414
|
}), /* @__PURE__ */ b("div", {
|
|
2493
2415
|
onClick: () => i(!1),
|
|
2494
2416
|
className: "jaml-block jaml-antes-confirm",
|
|
2495
|
-
children: /* @__PURE__ */ b(
|
|
2417
|
+
children: /* @__PURE__ */ b(yi, {
|
|
2496
2418
|
size: 16,
|
|
2497
2419
|
strokeWidth: 3
|
|
2498
2420
|
})
|
|
@@ -2516,7 +2438,7 @@ function Hi({ values: e, onToggle: t, color: n }) {
|
|
|
2516
2438
|
})()
|
|
2517
2439
|
});
|
|
2518
2440
|
}
|
|
2519
|
-
function
|
|
2441
|
+
function Ri(e, t) {
|
|
2520
2442
|
let [n, r] = v(null);
|
|
2521
2443
|
return m(() => {
|
|
2522
2444
|
if (!t || !e.current) {
|
|
@@ -2537,7 +2459,7 @@ function Ui(e, t) {
|
|
|
2537
2459
|
};
|
|
2538
2460
|
}, [t, e]), n;
|
|
2539
2461
|
}
|
|
2540
|
-
function
|
|
2462
|
+
function zi({ initialJaml: e, onJamlChange: t, className: n }) {
|
|
2541
2463
|
let [r, i] = v([]), [a, o] = v(null), [s, c] = v(null), [l, u] = v(null), d = _(null), p = f((e) => {
|
|
2542
2464
|
let t = e.split("\n"), n;
|
|
2543
2465
|
return t.map((e, t) => {
|
|
@@ -2546,9 +2468,9 @@ function Wi({ initialJaml: e, onJamlChange: t, className: n }) {
|
|
|
2546
2468
|
let e = i.indexOf(":"), t = i.slice(o ? 2 : 0, e).trim(), n = i.slice(e + 1).trim();
|
|
2547
2469
|
s = t, c = n || void 0, c && c.startsWith("[") && c.endsWith("]") && (l = !0, u = c.slice(1, -1).split(",").map((e) => e.trim()).filter((e) => e));
|
|
2548
2470
|
}
|
|
2549
|
-
r === 0 && !o && (n = void 0), o && s &&
|
|
2471
|
+
r === 0 && !o && (n = void 0), o && s && Fi.includes(s) && (n = s);
|
|
2550
2472
|
let d = "complete", f = !1;
|
|
2551
|
-
return s && (
|
|
2473
|
+
return s && (Pi.includes(s) ? d = "metadata" : Fi.includes(s) ? d = c ? "complete" : "required-incomplete" : !c && s !== "must" && s !== "should" && s !== "mustNot" && (d = "optional-incomplete"), c && c.startsWith("~") && c.endsWith("~") && (f = !0, d = "invalid")), {
|
|
2552
2474
|
id: `line-${t}`,
|
|
2553
2475
|
raw: e,
|
|
2554
2476
|
indent: r,
|
|
@@ -2567,7 +2489,7 @@ function Wi({ initialJaml: e, onJamlChange: t, className: n }) {
|
|
|
2567
2489
|
}, []), m = f((e) => e.map((e) => e.raw).join("\n"), []), [h, y] = v(e);
|
|
2568
2490
|
if (e !== h) {
|
|
2569
2491
|
y(e);
|
|
2570
|
-
let t = e ||
|
|
2492
|
+
let t = e || Ni;
|
|
2571
2493
|
(r.length === 0 || m(r) !== t) && i(p(t));
|
|
2572
2494
|
}
|
|
2573
2495
|
let S = f((e, n, a) => {
|
|
@@ -2587,7 +2509,7 @@ function Wi({ initialJaml: e, onJamlChange: t, className: n }) {
|
|
|
2587
2509
|
i(o);
|
|
2588
2510
|
let s = m(o);
|
|
2589
2511
|
if (t) try {
|
|
2590
|
-
t(s,
|
|
2512
|
+
t(s, ci.load(s), !0);
|
|
2591
2513
|
} catch {
|
|
2592
2514
|
t(s, null, !1);
|
|
2593
2515
|
}
|
|
@@ -2611,7 +2533,7 @@ function Wi({ initialJaml: e, onJamlChange: t, className: n }) {
|
|
|
2611
2533
|
i(o);
|
|
2612
2534
|
let s = m(o);
|
|
2613
2535
|
if (t) try {
|
|
2614
|
-
t(s,
|
|
2536
|
+
t(s, ci.load(s), !0);
|
|
2615
2537
|
} catch {
|
|
2616
2538
|
t(s, null, !1);
|
|
2617
2539
|
}
|
|
@@ -2634,7 +2556,7 @@ function Wi({ initialJaml: e, onJamlChange: t, className: n }) {
|
|
|
2634
2556
|
i(a);
|
|
2635
2557
|
let o = m(a);
|
|
2636
2558
|
if (t) try {
|
|
2637
|
-
t(o,
|
|
2559
|
+
t(o, ci.load(o), !0);
|
|
2638
2560
|
} catch {
|
|
2639
2561
|
t(o, null, !1);
|
|
2640
2562
|
}
|
|
@@ -2657,7 +2579,7 @@ function Wi({ initialJaml: e, onJamlChange: t, className: n }) {
|
|
|
2657
2579
|
i(a);
|
|
2658
2580
|
let o = m(a);
|
|
2659
2581
|
if (t) try {
|
|
2660
|
-
t(o,
|
|
2582
|
+
t(o, ci.load(o), !0);
|
|
2661
2583
|
} catch {
|
|
2662
2584
|
t(o, null, !1);
|
|
2663
2585
|
}
|
|
@@ -2674,7 +2596,7 @@ function Wi({ initialJaml: e, onJamlChange: t, className: n }) {
|
|
|
2674
2596
|
i(n);
|
|
2675
2597
|
let a = m(n);
|
|
2676
2598
|
if (t) try {
|
|
2677
|
-
t(a,
|
|
2599
|
+
t(a, ci.load(a), !0);
|
|
2678
2600
|
} catch {
|
|
2679
2601
|
t(a, null, !1);
|
|
2680
2602
|
}
|
|
@@ -2693,7 +2615,7 @@ function Wi({ initialJaml: e, onJamlChange: t, className: n }) {
|
|
|
2693
2615
|
tabIndex: 0,
|
|
2694
2616
|
children: [/* @__PURE__ */ b("div", {
|
|
2695
2617
|
className: "flex flex-col gap-0.5",
|
|
2696
|
-
children: r.map((e) => /* @__PURE__ */ b(
|
|
2618
|
+
children: r.map((e) => /* @__PURE__ */ b(Bi, {
|
|
2697
2619
|
line: e,
|
|
2698
2620
|
keyWidth: w[e.indent] || 8,
|
|
2699
2621
|
isEditing: a === e.id,
|
|
@@ -2738,7 +2660,7 @@ function Wi({ initialJaml: e, onJamlChange: t, className: n }) {
|
|
|
2738
2660
|
})]
|
|
2739
2661
|
});
|
|
2740
2662
|
}
|
|
2741
|
-
function
|
|
2663
|
+
function Bi({ line: e, keyWidth: t, isEditing: n, editingPart: r, editingArrayIndex: i, onStartEdit: a, onEndEdit: o, onChange: s, onArrayItemChange: c, onArrayItemAdd: l, onArrayItemRemove: u, onDelete: d }) {
|
|
2742
2664
|
let [f, p] = v(0), [h, y] = v(""), [ee, te] = v(""), [C, ne] = v({
|
|
2743
2665
|
isEditing: n,
|
|
2744
2666
|
editingPart: r,
|
|
@@ -2757,9 +2679,9 @@ function Gi({ line: e, keyWidth: t, isEditing: n, editingPart: r, editingArrayIn
|
|
|
2757
2679
|
h,
|
|
2758
2680
|
e.raw,
|
|
2759
2681
|
e.key
|
|
2760
|
-
]), T = g(() => w ?
|
|
2682
|
+
]), T = g(() => w ? Mi.getCompletions(w).slice(0, 10) : [], [w]);
|
|
2761
2683
|
w !== ee && (te(w), p(0));
|
|
2762
|
-
let E = _(null),
|
|
2684
|
+
let E = _(null), D = _(null), O = Ri(D, n && T.length > 0), k = () => {
|
|
2763
2685
|
switch (e.validationState) {
|
|
2764
2686
|
case "required-incomplete": return $.red;
|
|
2765
2687
|
case "optional-incomplete": return $.blue;
|
|
@@ -2768,7 +2690,7 @@ function Gi({ line: e, keyWidth: t, isEditing: n, editingPart: r, editingArrayIn
|
|
|
2768
2690
|
case "metadata": return $.purple;
|
|
2769
2691
|
default: return "#888";
|
|
2770
2692
|
}
|
|
2771
|
-
},
|
|
2693
|
+
}, A = () => {
|
|
2772
2694
|
switch (e.validationState) {
|
|
2773
2695
|
case "required-incomplete": return $.red;
|
|
2774
2696
|
case "optional-incomplete": return $.blue;
|
|
@@ -2781,7 +2703,7 @@ function Gi({ line: e, keyWidth: t, isEditing: n, editingPart: r, editingArrayIn
|
|
|
2781
2703
|
m(() => {
|
|
2782
2704
|
n && E.current && E.current.focus();
|
|
2783
2705
|
}, [n]);
|
|
2784
|
-
let
|
|
2706
|
+
let re = (t) => {
|
|
2785
2707
|
if (t.key === "Enter") {
|
|
2786
2708
|
t.preventDefault();
|
|
2787
2709
|
let n = T.length > 0 && f >= 0 ? T[f].text : h;
|
|
@@ -2798,10 +2720,10 @@ function Gi({ line: e, keyWidth: t, isEditing: n, editingPart: r, editingArrayIn
|
|
|
2798
2720
|
style: { "--jaml-color": e.key === "must" ? $.red : $.blue },
|
|
2799
2721
|
children: e.raw
|
|
2800
2722
|
});
|
|
2801
|
-
let
|
|
2802
|
-
"--popover-top": `${
|
|
2803
|
-
"--popover-left": `${
|
|
2804
|
-
"--popover-transform":
|
|
2723
|
+
let j = " ".repeat(e.indent), ie = e.isArrayItem ? "- " : "", ae = O ? {
|
|
2724
|
+
"--popover-top": `${O.top}px`,
|
|
2725
|
+
"--popover-left": `${O.left}px`,
|
|
2726
|
+
"--popover-transform": O.position === "top" ? "translateY(-100%)" : "none"
|
|
2805
2727
|
} : {};
|
|
2806
2728
|
return /* @__PURE__ */ x("div", {
|
|
2807
2729
|
className: "relative flex items-center py-0.5 group",
|
|
@@ -2811,42 +2733,42 @@ function Gi({ line: e, keyWidth: t, isEditing: n, editingPart: r, editingArrayIn
|
|
|
2811
2733
|
onClick: (e) => {
|
|
2812
2734
|
e.stopPropagation(), d();
|
|
2813
2735
|
},
|
|
2814
|
-
children: /* @__PURE__ */ b(
|
|
2736
|
+
children: /* @__PURE__ */ b(bi, {
|
|
2815
2737
|
size: 12,
|
|
2816
2738
|
className: "text-orange-500 hover:bg-orange-100 rounded"
|
|
2817
2739
|
})
|
|
2818
2740
|
}),
|
|
2819
2741
|
/* @__PURE__ */ x("span", {
|
|
2820
2742
|
className: "whitespace-pre text-stone-400",
|
|
2821
|
-
children: [
|
|
2743
|
+
children: [j, ie]
|
|
2822
2744
|
}),
|
|
2823
2745
|
e.key && /* @__PURE__ */ x("div", {
|
|
2824
2746
|
className: "relative",
|
|
2825
2747
|
children: [/* @__PURE__ */ b("div", {
|
|
2826
|
-
ref: r === "key" ?
|
|
2748
|
+
ref: r === "key" ? D : null,
|
|
2827
2749
|
onClick: (e) => {
|
|
2828
2750
|
e.stopPropagation(), a("key");
|
|
2829
2751
|
},
|
|
2830
2752
|
className: "jaml-block jaml-block--start",
|
|
2831
2753
|
style: {
|
|
2832
2754
|
"--jaml-min-w": `${t}ch`,
|
|
2833
|
-
"--jaml-color": n && r === "key" ?
|
|
2834
|
-
"--jaml-bg": n && r === "key" ? `${
|
|
2755
|
+
"--jaml-color": n && r === "key" ? A() : k(),
|
|
2756
|
+
"--jaml-bg": n && r === "key" ? `${A()}15` : "transparent"
|
|
2835
2757
|
},
|
|
2836
2758
|
children: n && r === "key" ? /* @__PURE__ */ b("input", {
|
|
2837
2759
|
ref: E,
|
|
2838
2760
|
title: "Edit key",
|
|
2839
2761
|
value: h,
|
|
2840
2762
|
onChange: (e) => y(e.target.value),
|
|
2841
|
-
onKeyDown:
|
|
2763
|
+
onKeyDown: re,
|
|
2842
2764
|
onBlur: () => setTimeout(o, 200),
|
|
2843
2765
|
className: "jaml-inline-input",
|
|
2844
|
-
style: { "--jaml-color":
|
|
2766
|
+
style: { "--jaml-color": A() }
|
|
2845
2767
|
}) : e.key
|
|
2846
|
-
}), n && r === "key" && T.length > 0 &&
|
|
2768
|
+
}), n && r === "key" && T.length > 0 && O && S(/* @__PURE__ */ b("div", {
|
|
2847
2769
|
className: "jaml-suggestion-popover",
|
|
2848
|
-
style:
|
|
2849
|
-
children: /* @__PURE__ */ b(
|
|
2770
|
+
style: ae,
|
|
2771
|
+
children: /* @__PURE__ */ b(Ii, {
|
|
2850
2772
|
suggestions: T,
|
|
2851
2773
|
selectedIndex: f,
|
|
2852
2774
|
onHover: p,
|
|
@@ -2860,13 +2782,13 @@ function Gi({ line: e, keyWidth: t, isEditing: n, editingPart: r, editingArrayIn
|
|
|
2860
2782
|
className: "text-stone-400 mr-1",
|
|
2861
2783
|
children: ":"
|
|
2862
2784
|
}),
|
|
2863
|
-
e.key && (e.isArrayValue && e.arrayValues ? e.key === "antes" ? /* @__PURE__ */ b(
|
|
2785
|
+
e.key && (e.isArrayValue && e.arrayValues ? e.key === "antes" ? /* @__PURE__ */ b(Li, {
|
|
2864
2786
|
values: e.arrayValues,
|
|
2865
2787
|
onToggle: (t) => {
|
|
2866
2788
|
let n = e.arrayValues.indexOf(t);
|
|
2867
2789
|
n >= 0 ? u(n) : l(t);
|
|
2868
2790
|
},
|
|
2869
|
-
color:
|
|
2791
|
+
color: A()
|
|
2870
2792
|
}) : /* @__PURE__ */ x("div", {
|
|
2871
2793
|
className: "flex gap-0.5 items-center",
|
|
2872
2794
|
children: [e.arrayValues.map((e, t) => /* @__PURE__ */ b("div", {
|
|
@@ -2876,16 +2798,16 @@ function Gi({ line: e, keyWidth: t, isEditing: n, editingPart: r, editingArrayIn
|
|
|
2876
2798
|
className: "jaml-block",
|
|
2877
2799
|
style: {
|
|
2878
2800
|
"--jaml-min-w": "24px",
|
|
2879
|
-
"--jaml-bg": `${
|
|
2880
|
-
"--jaml-border": `1px solid ${
|
|
2881
|
-
"--jaml-color":
|
|
2801
|
+
"--jaml-bg": `${k()}15`,
|
|
2802
|
+
"--jaml-border": `1px solid ${k()}40`,
|
|
2803
|
+
"--jaml-color": k()
|
|
2882
2804
|
},
|
|
2883
2805
|
children: n && r === "arrayItem" && i === t ? /* @__PURE__ */ b("input", {
|
|
2884
2806
|
ref: E,
|
|
2885
2807
|
title: "Edit array item",
|
|
2886
2808
|
value: h,
|
|
2887
2809
|
onChange: (e) => y(e.target.value),
|
|
2888
|
-
onKeyDown:
|
|
2810
|
+
onKeyDown: re,
|
|
2889
2811
|
onBlur: () => setTimeout(o, 200),
|
|
2890
2812
|
className: "bg-transparent w-[3ch] text-center outline-none"
|
|
2891
2813
|
}) : e
|
|
@@ -2900,21 +2822,21 @@ function Gi({ line: e, keyWidth: t, isEditing: n, editingPart: r, editingArrayIn
|
|
|
2900
2822
|
"--jaml-border": `1px solid ${$.green}40`,
|
|
2901
2823
|
"--jaml-color": $.green
|
|
2902
2824
|
},
|
|
2903
|
-
children: /* @__PURE__ */ b(
|
|
2825
|
+
children: /* @__PURE__ */ b(xi, { size: 12 })
|
|
2904
2826
|
})]
|
|
2905
2827
|
}) : /* @__PURE__ */ x("div", {
|
|
2906
2828
|
className: "relative",
|
|
2907
2829
|
children: [/* @__PURE__ */ b("div", {
|
|
2908
|
-
ref: r === "value" ?
|
|
2830
|
+
ref: r === "value" ? D : null,
|
|
2909
2831
|
onClick: (e) => {
|
|
2910
2832
|
e.stopPropagation(), a("value");
|
|
2911
2833
|
},
|
|
2912
2834
|
className: "jaml-block",
|
|
2913
2835
|
style: {
|
|
2914
2836
|
"--jaml-min-w": e.value ? void 0 : "60px",
|
|
2915
|
-
"--jaml-color": e.isInvalidValue ? $.red : e.value ?
|
|
2916
|
-
"--jaml-bg": e.isInvalidValue ? `${$.red}15` : e.value ? `${
|
|
2917
|
-
"--jaml-border": `1px solid ${e.isInvalidValue ? `${$.red}60` : e.value ? `${
|
|
2837
|
+
"--jaml-color": e.isInvalidValue ? $.red : e.value ? k() : $.red,
|
|
2838
|
+
"--jaml-bg": e.isInvalidValue ? `${$.red}15` : e.value ? `${k()}10` : `${$.red}08`,
|
|
2839
|
+
"--jaml-border": `1px solid ${e.isInvalidValue ? `${$.red}60` : e.value ? `${k()}40` : `${$.red}40`}`,
|
|
2918
2840
|
"--jaml-text-decoration": e.isInvalidValue ? "line-through" : "none"
|
|
2919
2841
|
},
|
|
2920
2842
|
children: n && r === "value" ? /* @__PURE__ */ b("input", {
|
|
@@ -2922,18 +2844,18 @@ function Gi({ line: e, keyWidth: t, isEditing: n, editingPart: r, editingArrayIn
|
|
|
2922
2844
|
title: "Edit value",
|
|
2923
2845
|
value: h,
|
|
2924
2846
|
onChange: (e) => y(e.target.value),
|
|
2925
|
-
onKeyDown:
|
|
2847
|
+
onKeyDown: re,
|
|
2926
2848
|
onBlur: () => setTimeout(o, 200),
|
|
2927
2849
|
className: "jaml-inline-input jaml-inline-input--sized",
|
|
2928
2850
|
style: {
|
|
2929
|
-
"--jaml-color":
|
|
2851
|
+
"--jaml-color": k(),
|
|
2930
2852
|
"--jaml-input-w": `${Math.max(h.length, 4)}ch`
|
|
2931
2853
|
}
|
|
2932
2854
|
}) : e.isInvalidValue ? e.value?.replace(/~/g, "") : e.value || "???"
|
|
2933
|
-
}), n && r === "value" && T.length > 0 &&
|
|
2855
|
+
}), n && r === "value" && T.length > 0 && O && S(/* @__PURE__ */ b("div", {
|
|
2934
2856
|
className: "jaml-suggestion-popover",
|
|
2935
|
-
style:
|
|
2936
|
-
children: /* @__PURE__ */ b(
|
|
2857
|
+
style: ae,
|
|
2858
|
+
children: /* @__PURE__ */ b(Ii, {
|
|
2937
2859
|
suggestions: T,
|
|
2938
2860
|
selectedIndex: f,
|
|
2939
2861
|
onHover: p,
|
|
@@ -2948,8 +2870,8 @@ function Gi({ line: e, keyWidth: t, isEditing: n, editingPart: r, editingArrayIn
|
|
|
2948
2870
|
}
|
|
2949
2871
|
//#endregion
|
|
2950
2872
|
//#region src/ui/JimboIconButton.tsx
|
|
2951
|
-
var
|
|
2952
|
-
function
|
|
2873
|
+
var Vi = e;
|
|
2874
|
+
function Hi({ onClick: e, title: t, "aria-label": n, disabled: r = !1, size: i = "md", children: a }) {
|
|
2953
2875
|
let [o, s] = v(!1), c = i === "sm" ? 26 : 30;
|
|
2954
2876
|
return /* @__PURE__ */ b("button", {
|
|
2955
2877
|
"aria-label": n ?? t,
|
|
@@ -2963,9 +2885,9 @@ function qi({ onClick: e, title: t, "aria-label": n, disabled: r = !1, size: i =
|
|
|
2963
2885
|
display: "inline-flex",
|
|
2964
2886
|
alignItems: "center",
|
|
2965
2887
|
justifyContent: "center",
|
|
2966
|
-
background: o && !r ?
|
|
2967
|
-
color:
|
|
2968
|
-
border: `1px solid ${
|
|
2888
|
+
background: o && !r ? Vi.DARK_GREY : Vi.DARKEST,
|
|
2889
|
+
color: Vi.WHITE,
|
|
2890
|
+
border: `1px solid ${Vi.PANEL_EDGE}`,
|
|
2969
2891
|
borderRadius: 4,
|
|
2970
2892
|
cursor: r ? "not-allowed" : "pointer",
|
|
2971
2893
|
opacity: r ? .55 : 1,
|
|
@@ -2980,9 +2902,19 @@ function qi({ onClick: e, title: t, "aria-label": n, disabled: r = !1, size: i =
|
|
|
2980
2902
|
});
|
|
2981
2903
|
}
|
|
2982
2904
|
//#endregion
|
|
2905
|
+
//#region src/ui/JimboTextInput.tsx
|
|
2906
|
+
var Ui = s.forwardRef(function({ className: e = "", invalid: t = !1, "aria-invalid": n, ...r }, i) {
|
|
2907
|
+
return /* @__PURE__ */ b("input", {
|
|
2908
|
+
ref: i,
|
|
2909
|
+
className: `j-text-input ${e}`.trim(),
|
|
2910
|
+
"aria-invalid": n ?? t,
|
|
2911
|
+
"data-invalid": t,
|
|
2912
|
+
...r
|
|
2913
|
+
});
|
|
2914
|
+
});
|
|
2915
|
+
//#endregion
|
|
2983
2916
|
//#region src/ui/JimboInputModal.tsx
|
|
2984
|
-
|
|
2985
|
-
function Yi({ open: e, title: t, message: n, placeholder: r, initialValue: i = "", confirmLabel: a = "Confirm", cancelLabel: o = "Cancel", validate: s, onConfirm: c, onCancel: l }) {
|
|
2917
|
+
function Wi({ open: e, title: t, message: n, placeholder: r, initialValue: i = "", confirmLabel: a = "Confirm", cancelLabel: o = "Cancel", validate: s, onConfirm: c, onCancel: l }) {
|
|
2986
2918
|
let [u, d] = v(i), [f, p] = v(null), h = _(null), [g, y] = v(e);
|
|
2987
2919
|
e !== g && (y(e), e && (d(i), p(null))), m(() => {
|
|
2988
2920
|
if (e) {
|
|
@@ -2998,22 +2930,19 @@ function Yi({ open: e, title: t, message: n, placeholder: r, initialValue: i = "
|
|
|
2998
2930
|
}
|
|
2999
2931
|
c(u);
|
|
3000
2932
|
}
|
|
3001
|
-
return /* @__PURE__ */ x(
|
|
2933
|
+
return /* @__PURE__ */ x(se, {
|
|
3002
2934
|
onClose: l,
|
|
3003
2935
|
open: e,
|
|
3004
2936
|
title: t,
|
|
3005
2937
|
children: [
|
|
3006
|
-
n && /* @__PURE__ */ b(
|
|
2938
|
+
n && /* @__PURE__ */ b(j, {
|
|
3007
2939
|
size: "sm",
|
|
3008
|
-
|
|
3009
|
-
display: "block",
|
|
3010
|
-
marginBottom: 8
|
|
3011
|
-
},
|
|
2940
|
+
className: "j-input-modal__message",
|
|
3012
2941
|
tone: "grey",
|
|
3013
2942
|
children: n
|
|
3014
2943
|
}),
|
|
3015
|
-
/* @__PURE__ */ b(
|
|
3016
|
-
|
|
2944
|
+
/* @__PURE__ */ b(Ui, {
|
|
2945
|
+
invalid: !!f,
|
|
3017
2946
|
onChange: (e) => {
|
|
3018
2947
|
d(e.target.value), f && p(null);
|
|
3019
2948
|
},
|
|
@@ -3022,44 +2951,23 @@ function Yi({ open: e, title: t, message: n, placeholder: r, initialValue: i = "
|
|
|
3022
2951
|
},
|
|
3023
2952
|
placeholder: r,
|
|
3024
2953
|
ref: h,
|
|
3025
|
-
style: {
|
|
3026
|
-
width: "100%",
|
|
3027
|
-
padding: "8px 10px",
|
|
3028
|
-
background: Ji.DARKEST,
|
|
3029
|
-
color: Ji.WHITE,
|
|
3030
|
-
border: `1px solid ${f ? Ji.RED : Ji.PANEL_EDGE}`,
|
|
3031
|
-
borderRadius: 4,
|
|
3032
|
-
fontSize: 13,
|
|
3033
|
-
fontFamily: "m6x11plus, monospace",
|
|
3034
|
-
letterSpacing: 1,
|
|
3035
|
-
outline: "none",
|
|
3036
|
-
boxSizing: "border-box"
|
|
3037
|
-
},
|
|
3038
2954
|
type: "text",
|
|
3039
2955
|
value: u
|
|
3040
2956
|
}),
|
|
3041
|
-
f && /* @__PURE__ */ b(
|
|
2957
|
+
f && /* @__PURE__ */ b(j, {
|
|
3042
2958
|
size: "sm",
|
|
3043
|
-
|
|
3044
|
-
display: "block",
|
|
3045
|
-
marginTop: 6
|
|
3046
|
-
},
|
|
2959
|
+
className: "j-input-modal__error",
|
|
3047
2960
|
tone: "red",
|
|
3048
2961
|
children: f
|
|
3049
2962
|
}),
|
|
3050
2963
|
/* @__PURE__ */ x("div", {
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
justifyContent: "flex-end",
|
|
3054
|
-
gap: 8,
|
|
3055
|
-
marginTop: 14
|
|
3056
|
-
},
|
|
3057
|
-
children: [/* @__PURE__ */ b(j, {
|
|
2964
|
+
className: "j-input-modal__actions",
|
|
2965
|
+
children: [/* @__PURE__ */ b(M, {
|
|
3058
2966
|
onClick: l,
|
|
3059
2967
|
size: "sm",
|
|
3060
2968
|
tone: "red",
|
|
3061
2969
|
children: o
|
|
3062
|
-
}), /* @__PURE__ */ b(
|
|
2970
|
+
}), /* @__PURE__ */ b(M, {
|
|
3063
2971
|
onClick: S,
|
|
3064
2972
|
size: "sm",
|
|
3065
2973
|
tone: "blue",
|
|
@@ -3071,13 +2979,13 @@ function Yi({ open: e, title: t, message: n, placeholder: r, initialValue: i = "
|
|
|
3071
2979
|
}
|
|
3072
2980
|
//#endregion
|
|
3073
2981
|
//#region src/ui/JimboPanelSpinner.tsx
|
|
3074
|
-
function
|
|
2982
|
+
function Gi({ label: e, title: t, description: n, media: r, meta: i, className: a = "", style: o, onPrev: s, onNext: c, prevDisabled: l = !1, nextDisabled: u = !1 }) {
|
|
3075
2983
|
return /* @__PURE__ */ x("div", {
|
|
3076
2984
|
className: `j-panel-spinner ${a}`.trim(),
|
|
3077
2985
|
style: o,
|
|
3078
2986
|
children: [e ? /* @__PURE__ */ b("div", {
|
|
3079
2987
|
className: "j-panel-spinner__label",
|
|
3080
|
-
children: /* @__PURE__ */ b(
|
|
2988
|
+
children: /* @__PURE__ */ b(j, {
|
|
3081
2989
|
size: "xs",
|
|
3082
2990
|
tone: "grey",
|
|
3083
2991
|
children: e
|
|
@@ -3085,11 +2993,13 @@ function Xi({ label: e, title: t, description: n, media: r, meta: i, className:
|
|
|
3085
2993
|
}) : null, /* @__PURE__ */ x("div", {
|
|
3086
2994
|
className: "j-panel-spinner__row",
|
|
3087
2995
|
children: [
|
|
3088
|
-
/* @__PURE__ */ b(
|
|
2996
|
+
/* @__PURE__ */ b(M, {
|
|
3089
2997
|
tone: "red",
|
|
3090
|
-
size: "
|
|
2998
|
+
size: "lg",
|
|
2999
|
+
className: "j-panel-spinner__arrow j-panel-spinner__arrow--left",
|
|
3091
3000
|
onClick: s,
|
|
3092
3001
|
disabled: l,
|
|
3002
|
+
"aria-label": "Previous",
|
|
3093
3003
|
children: "<"
|
|
3094
3004
|
}),
|
|
3095
3005
|
/* @__PURE__ */ x("div", {
|
|
@@ -3101,7 +3011,7 @@ function Xi({ label: e, title: t, description: n, media: r, meta: i, className:
|
|
|
3101
3011
|
}) : null,
|
|
3102
3012
|
/* @__PURE__ */ b("div", {
|
|
3103
3013
|
className: "j-panel-spinner__title",
|
|
3104
|
-
children: /* @__PURE__ */ b(
|
|
3014
|
+
children: /* @__PURE__ */ b(j, {
|
|
3105
3015
|
size: "md",
|
|
3106
3016
|
tone: "white",
|
|
3107
3017
|
children: t
|
|
@@ -3113,7 +3023,7 @@ function Xi({ label: e, title: t, description: n, media: r, meta: i, className:
|
|
|
3113
3023
|
}) : null,
|
|
3114
3024
|
n ? /* @__PURE__ */ b("div", {
|
|
3115
3025
|
className: "j-panel-spinner__description",
|
|
3116
|
-
children: /* @__PURE__ */ b(
|
|
3026
|
+
children: /* @__PURE__ */ b(j, {
|
|
3117
3027
|
size: "micro",
|
|
3118
3028
|
tone: "grey",
|
|
3119
3029
|
children: n
|
|
@@ -3121,11 +3031,13 @@ function Xi({ label: e, title: t, description: n, media: r, meta: i, className:
|
|
|
3121
3031
|
}) : null
|
|
3122
3032
|
]
|
|
3123
3033
|
}),
|
|
3124
|
-
/* @__PURE__ */ b(
|
|
3034
|
+
/* @__PURE__ */ b(M, {
|
|
3125
3035
|
tone: "red",
|
|
3126
|
-
size: "
|
|
3036
|
+
size: "lg",
|
|
3037
|
+
className: "j-panel-spinner__arrow j-panel-spinner__arrow--right",
|
|
3127
3038
|
onClick: c,
|
|
3128
3039
|
disabled: u,
|
|
3040
|
+
"aria-label": "Next",
|
|
3129
3041
|
children: ">"
|
|
3130
3042
|
})
|
|
3131
3043
|
]
|
|
@@ -3134,8 +3046,8 @@ function Xi({ label: e, title: t, description: n, media: r, meta: i, className:
|
|
|
3134
3046
|
}
|
|
3135
3047
|
//#endregion
|
|
3136
3048
|
//#region src/ui/JimboSelect.tsx
|
|
3137
|
-
var
|
|
3138
|
-
function
|
|
3049
|
+
var Ki = e;
|
|
3050
|
+
function qi({ value: e, options: t, onChange: n, placeholder: r, disabled: i = !1, fullWidth: a = !0, size: o = "md", style: s, "aria-label": c }) {
|
|
3139
3051
|
let l;
|
|
3140
3052
|
l = t.length === 0 ? [] : typeof t[0] == "string" ? t.map((e) => ({ value: e })) : t;
|
|
3141
3053
|
let u = o === "sm" ? "4px 8px" : "6px 10px", d = o === "sm" ? 11 : 12;
|
|
@@ -3146,16 +3058,16 @@ function Qi({ value: e, options: t, onChange: n, placeholder: r, disabled: i = !
|
|
|
3146
3058
|
style: {
|
|
3147
3059
|
width: a ? "100%" : void 0,
|
|
3148
3060
|
padding: u,
|
|
3149
|
-
background:
|
|
3150
|
-
color:
|
|
3151
|
-
border: `1px solid ${
|
|
3061
|
+
background: Ki.DARKEST,
|
|
3062
|
+
color: Ki.WHITE,
|
|
3063
|
+
border: `1px solid ${Ki.PANEL_EDGE}`,
|
|
3152
3064
|
borderRadius: 4,
|
|
3153
3065
|
fontSize: d,
|
|
3154
3066
|
fontFamily: "m6x11plus, monospace",
|
|
3155
3067
|
cursor: i ? "not-allowed" : "pointer",
|
|
3156
3068
|
opacity: i ? .55 : 1,
|
|
3157
3069
|
appearance: "none",
|
|
3158
|
-
backgroundImage: "linear-gradient(45deg, transparent 50%, " +
|
|
3070
|
+
backgroundImage: "linear-gradient(45deg, transparent 50%, " + Ki.GOLD_TEXT + " 50%), linear-gradient(135deg, " + Ki.GOLD_TEXT + " 50%, transparent 50%)",
|
|
3159
3071
|
backgroundPosition: "calc(100% - 12px) 50%, calc(100% - 7px) 50%",
|
|
3160
3072
|
backgroundSize: "5px 5px, 5px 5px",
|
|
3161
3073
|
backgroundRepeat: "no-repeat",
|
|
@@ -3176,54 +3088,40 @@ function Qi({ value: e, options: t, onChange: n, placeholder: r, disabled: i = !
|
|
|
3176
3088
|
}
|
|
3177
3089
|
//#endregion
|
|
3178
3090
|
//#region src/ui/PanelSplitter.tsx
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
let i = _(!1), a = _(0), o = _(t);
|
|
3091
|
+
function Ji({ orientation: e = "vertical", onDrag: t, onKeyAdjust: n, className: r = "", "aria-label": i }) {
|
|
3092
|
+
let a = _(!1), o = _(0), s = _(t);
|
|
3182
3093
|
h(() => {
|
|
3183
|
-
|
|
3094
|
+
s.current = t;
|
|
3184
3095
|
});
|
|
3185
|
-
let
|
|
3186
|
-
t.preventDefault(), t.target.setPointerCapture(t.pointerId),
|
|
3096
|
+
let c = f((t) => {
|
|
3097
|
+
t.preventDefault(), t.target.setPointerCapture(t.pointerId), a.current = !0, o.current = e === "vertical" ? t.clientX : t.clientY;
|
|
3187
3098
|
}, [e]);
|
|
3188
3099
|
m(() => {
|
|
3189
3100
|
function t(t) {
|
|
3190
|
-
if (!
|
|
3191
|
-
let n = e === "vertical" ? t.clientX : t.clientY, r = n -
|
|
3192
|
-
r !== 0 && (
|
|
3101
|
+
if (!a.current) return;
|
|
3102
|
+
let n = e === "vertical" ? t.clientX : t.clientY, r = n - o.current;
|
|
3103
|
+
r !== 0 && (o.current = n, s.current(r));
|
|
3193
3104
|
}
|
|
3194
3105
|
function n() {
|
|
3195
|
-
|
|
3106
|
+
a.current = !1;
|
|
3196
3107
|
}
|
|
3197
3108
|
return window.addEventListener("pointermove", t), window.addEventListener("pointerup", n), window.addEventListener("pointercancel", n), () => {
|
|
3198
3109
|
window.removeEventListener("pointermove", t), window.removeEventListener("pointerup", n), window.removeEventListener("pointercancel", n);
|
|
3199
3110
|
};
|
|
3200
3111
|
}, [e]);
|
|
3201
|
-
let
|
|
3112
|
+
let l = e === "vertical";
|
|
3202
3113
|
return /* @__PURE__ */ b("button", {
|
|
3203
|
-
"aria-label":
|
|
3114
|
+
"aria-label": i ?? "Resize panel",
|
|
3204
3115
|
onKeyDown: (e) => {
|
|
3205
|
-
n && (
|
|
3206
|
-
},
|
|
3207
|
-
onPointerDown: s,
|
|
3208
|
-
style: {
|
|
3209
|
-
all: "unset",
|
|
3210
|
-
display: "block",
|
|
3211
|
-
flex: "0 0 auto",
|
|
3212
|
-
width: c ? 6 : void 0,
|
|
3213
|
-
height: c ? void 0 : 6,
|
|
3214
|
-
cursor: c ? "col-resize" : "row-resize",
|
|
3215
|
-
background: $i.PANEL_EDGE,
|
|
3216
|
-
borderLeft: c ? `1px solid ${$i.BLACK}` : void 0,
|
|
3217
|
-
borderRight: c ? `1px solid ${$i.BLACK}` : void 0,
|
|
3218
|
-
borderTop: c ? void 0 : `1px solid ${$i.BLACK}`,
|
|
3219
|
-
borderBottom: c ? void 0 : `1px solid ${$i.BLACK}`,
|
|
3220
|
-
touchAction: "none",
|
|
3221
|
-
userSelect: "none"
|
|
3116
|
+
n && (l && e.key === "ArrowLeft" && n(-16), l && e.key === "ArrowRight" && n(16), !l && e.key === "ArrowUp" && n(-16), !l && e.key === "ArrowDown" && n(16));
|
|
3222
3117
|
},
|
|
3118
|
+
onPointerDown: c,
|
|
3119
|
+
className: `j-panel-splitter ${r}`.trim(),
|
|
3120
|
+
"data-orientation": e,
|
|
3223
3121
|
type: "button"
|
|
3224
3122
|
});
|
|
3225
3123
|
}
|
|
3226
3124
|
//#endregion
|
|
3227
|
-
export {
|
|
3125
|
+
export { de as A, D as B, Ce as C, ge as D, _e as E, ae as F, T as H, se as I, ie as L, ue as M, oe as N, he as O, M as P, j as R, we as S, be as T, E as U, k as V, je as _, Ui as a, De as b, Re as c, Fe as d, Pe as f, Me as g, Ae as h, Wi as i, ce as j, fe as k, Le as l, Ne as m, qi as n, Hi as o, ke as p, Gi as r, zi as s, Ji as t, Ie as u, Oe as v, xe as w, Ee as x, Te as y, re as z };
|
|
3228
3126
|
|
|
3229
|
-
//# sourceMappingURL=ui-
|
|
3127
|
+
//# sourceMappingURL=ui-D_9HO9OO.js.map
|