jaml-ui 0.32.1 → 0.32.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{searchPoolWorker-6mF4VfgO.js → searchPoolWorker-Ck5flXVS.js} +4 -4
- package/dist/assets/searchPoolWorker-Ck5flXVS.js.map +1 -0
- package/dist/chunks/motelyItemFormats-CNrFzcCI.js +1836 -0
- package/dist/chunks/motelyItemFormats-CNrFzcCI.js.map +1 -0
- package/dist/chunks/{searchPoolWorker-Dqhc9lfv.js → searchPoolWorker-gPdRA_pa.js} +2 -2
- package/dist/chunks/searchPoolWorker-gPdRA_pa.js.map +1 -0
- package/dist/chunks/{ui-UqEG1EZ9.js → ui-CgjJDJdZ.js} +749 -950
- package/dist/chunks/ui-CgjJDJdZ.js.map +1 -0
- package/dist/components/SeedFinderApp.d.ts +7 -0
- package/dist/index.js +3469 -3230
- package/dist/index.js.map +1 -1
- package/dist/motely.js +54 -1880
- package/dist/motely.js.map +1 -1
- package/dist/r3f.js +15 -15
- package/dist/ui/jimbo.css +1 -1
- package/dist/ui/panel.d.ts +14 -1
- package/dist/ui.d.ts +0 -1
- package/dist/ui.js +2 -2
- package/package.json +14 -13
- package/dist/assets/searchPoolWorker-6mF4VfgO.js.map +0 -1
- package/dist/chunks/runtime-Bklr4A-D.js +0 -10
- package/dist/chunks/runtime-Bklr4A-D.js.map +0 -1
- package/dist/chunks/searchPoolWorker-Dqhc9lfv.js.map +0 -1
- package/dist/chunks/ui-UqEG1EZ9.js.map +0 -1
- package/dist/ui/JimboButton.d.ts +0 -62
|
@@ -3,20 +3,16 @@ import { n } from "./assets-Bb6wV80_.js";
|
|
|
3
3
|
import { n as r, p as i, r as a, t as o } from "./spriteMapper-CajFGgUU.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
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { RoundedBox as T, Text as E } from "@react-three/drei";
|
|
9
|
-
import * as D from "three";
|
|
10
|
-
import { FiCheck as O, FiCopy as k } from "react-icons/fi";
|
|
11
|
-
import { createPortal as te } from "react-dom";
|
|
6
|
+
import { FiCheck as S, FiCopy as C } from "react-icons/fi";
|
|
7
|
+
import { createPortal as w } from "react-dom";
|
|
12
8
|
//#region src/ui/hooks.ts
|
|
13
|
-
function
|
|
9
|
+
function T(e) {
|
|
14
10
|
return new Promise((t) => {
|
|
15
11
|
let n = new window.Image();
|
|
16
12
|
n.addEventListener("load", () => t(n)), n.addEventListener("error", () => t(null)), n.src = e;
|
|
17
13
|
});
|
|
18
14
|
}
|
|
19
|
-
function
|
|
15
|
+
function E(e, t, n, r, i) {
|
|
20
16
|
if (!n || !r || !r?.pos) return 0;
|
|
21
17
|
let a = n.width / r.columns, o = n.height / r.rows, s = e.style;
|
|
22
18
|
if (r.order === 0 && (e.width = a, e.height = o, s.width = `${a}px`, s.height = `${o}px`), s.imageRendering = "pixelated", t.imageSmoothingEnabled = !0, t.save(), r.animated && i) {
|
|
@@ -25,7 +21,7 @@ function j(e, t, n, r, i) {
|
|
|
25
21
|
}
|
|
26
22
|
return t.drawImage(n, r.pos.x * a, r.pos.y * o, a, o, 0, 0, e.width, e.height), t.restore(), a / o;
|
|
27
23
|
}
|
|
28
|
-
function
|
|
24
|
+
function D(e) {
|
|
29
25
|
let n = _(null);
|
|
30
26
|
return m(() => {
|
|
31
27
|
if (!e || !n.current) return;
|
|
@@ -38,7 +34,7 @@ function ne(e) {
|
|
|
38
34
|
};
|
|
39
35
|
}, [e]), n;
|
|
40
36
|
}
|
|
41
|
-
var
|
|
37
|
+
var O = {
|
|
42
38
|
primary: [
|
|
43
39
|
1,
|
|
44
40
|
.2,
|
|
@@ -62,7 +58,7 @@ var M = {
|
|
|
62
58
|
lighting: .5,
|
|
63
59
|
transitionMs: 800
|
|
64
60
|
};
|
|
65
|
-
function
|
|
61
|
+
function k(e, t) {
|
|
66
62
|
if (!e) return t;
|
|
67
63
|
if (Array.isArray(e)) return [
|
|
68
64
|
e[0],
|
|
@@ -78,7 +74,7 @@ function N(e, t) {
|
|
|
78
74
|
(r & 255) / 255
|
|
79
75
|
];
|
|
80
76
|
}
|
|
81
|
-
function
|
|
77
|
+
function A(e = {}) {
|
|
82
78
|
let t = _(null), n = _(e);
|
|
83
79
|
return h(() => {
|
|
84
80
|
n.current = e;
|
|
@@ -117,38 +113,38 @@ function re(e = {}) {
|
|
|
117
113
|
let l = r.getAttribLocation(s, "position");
|
|
118
114
|
r.enableVertexAttribArray(l), r.vertexAttribPointer(l, 2, r.FLOAT, !1, 0, 0);
|
|
119
115
|
let u = r.getUniformLocation(s, "u_time"), d = r.getUniformLocation(s, "u_resolution"), f = r.getUniformLocation(s, "u_color1"), p = r.getUniformLocation(s, "u_color2"), m = r.getUniformLocation(s, "u_color3"), h = r.getUniformLocation(s, "u_spinRotation"), g = r.getUniformLocation(s, "u_spinSpeed"), _ = r.getUniformLocation(s, "u_spinAmount"), v = r.getUniformLocation(s, "u_pixelFilter"), y = r.getUniformLocation(s, "u_contrast"), b = r.getUniformLocation(s, "u_lighting"), x = (e) => ({
|
|
120
|
-
spinRotation: e.spinRotation ??
|
|
121
|
-
spinSpeed: 4.5 * (e.speed ??
|
|
122
|
-
spinAmount: e.spinAmount ??
|
|
123
|
-
pixelFilter: e.pixelFilter ??
|
|
124
|
-
contrast: e.contrast ??
|
|
125
|
-
lighting: e.lighting ??
|
|
116
|
+
spinRotation: e.spinRotation ?? O.spinRotation,
|
|
117
|
+
spinSpeed: 4.5 * (e.speed ?? O.speed),
|
|
118
|
+
spinAmount: e.spinAmount ?? O.spinAmount,
|
|
119
|
+
pixelFilter: e.pixelFilter ?? O.pixelFilter,
|
|
120
|
+
contrast: e.contrast ?? O.contrast,
|
|
121
|
+
lighting: e.lighting ?? O.lighting
|
|
126
122
|
}), S = n.current, C = [
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
], w = x(S),
|
|
131
|
-
let t = performance.now(), i = Math.max(0, t -
|
|
132
|
-
|
|
123
|
+
k(S.primary, O.primary),
|
|
124
|
+
k(S.secondary, O.secondary),
|
|
125
|
+
k(S.dark, O.dark)
|
|
126
|
+
], w = x(S), T = performance.now(), E = T, D = 0, A = () => {
|
|
127
|
+
let t = performance.now(), i = Math.max(0, t - E);
|
|
128
|
+
E = t;
|
|
133
129
|
let a = n.current, o = [
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
], s = x(a), c = Math.max(1, a.transitionMs ??
|
|
130
|
+
k(a.primary, O.primary),
|
|
131
|
+
k(a.secondary, O.secondary),
|
|
132
|
+
k(a.dark, O.dark)
|
|
133
|
+
], s = x(a), c = Math.max(1, a.transitionMs ?? O.transitionMs), l = 1 - Math.exp(-i / c);
|
|
138
134
|
for (let e = 0; e < 3; e++) for (let t = 0; t < 3; t++) C[e][t] += (o[e][t] - C[e][t]) * l;
|
|
139
135
|
let S = (e) => {
|
|
140
136
|
w[e] += (s[e] - w[e]) * l;
|
|
141
137
|
};
|
|
142
138
|
S("spinRotation"), S("spinSpeed"), S("spinAmount"), S("pixelFilter"), S("contrast"), S("lighting");
|
|
143
|
-
let
|
|
144
|
-
(e.width !==
|
|
139
|
+
let j = e.clientWidth, M = e.clientHeight;
|
|
140
|
+
(e.width !== j || e.height !== M) && (e.width = j, e.height = M, r.viewport(0, 0, r.drawingBufferWidth, r.drawingBufferHeight)), r.uniform1f(u, (t - T) / 1e3), r.uniform2f(d, e.width, e.height), r.uniform3f(f, C[0][0], C[0][1], C[0][2]), r.uniform3f(p, C[1][0], C[1][1], C[1][2]), r.uniform3f(m, C[2][0], C[2][1], C[2][2]), r.uniform1f(h, w.spinRotation), r.uniform1f(g, w.spinSpeed), r.uniform1f(_, w.spinAmount), r.uniform1f(v, w.pixelFilter), r.uniform1f(y, w.contrast), r.uniform1f(b, w.lighting), r.drawArrays(r.TRIANGLES, 0, 6), D = requestAnimationFrame(A);
|
|
145
141
|
};
|
|
146
|
-
return
|
|
147
|
-
cancelAnimationFrame(
|
|
142
|
+
return D = requestAnimationFrame(A), () => {
|
|
143
|
+
cancelAnimationFrame(D), r.deleteProgram(s), r.deleteShader(a), r.deleteShader(o), r.deleteBuffer(c);
|
|
148
144
|
};
|
|
149
145
|
}, []), t;
|
|
150
146
|
}
|
|
151
|
-
function
|
|
147
|
+
function j({ mode: e = "snap", placement: t = "auto", delay: n = 80, disabled: r = !1 }) {
|
|
152
148
|
let [i, a] = v(!1), [o, s] = v(null), c = _(null), l = _(null), u = _(null), d = f(() => {
|
|
153
149
|
r || (u.current && clearTimeout(u.current), u.current = setTimeout(() => a(!0), n));
|
|
154
150
|
}, [r, n]), p = f(() => {
|
|
@@ -191,7 +187,7 @@ function ie({ mode: e = "snap", placement: t = "auto", delay: n = 80, disabled:
|
|
|
191
187
|
}, [e])
|
|
192
188
|
};
|
|
193
189
|
}
|
|
194
|
-
function
|
|
190
|
+
function M({ layers: e, invert: t = !1, hoverTilt: n = !1 }) {
|
|
195
191
|
let r = _(null), a = _(null), o = _(/* @__PURE__ */ new Map()), [s, c] = v(3 / 4), [, l] = v(0), u = _(null), d = _({
|
|
196
192
|
rx: 0,
|
|
197
193
|
ry: 0,
|
|
@@ -204,7 +200,7 @@ function ae({ layers: e, invert: t = !1, hoverTilt: n = !1 }) {
|
|
|
204
200
|
m(() => {
|
|
205
201
|
let e = !1, t = o.current;
|
|
206
202
|
return (async () => {
|
|
207
|
-
let n = Array.from(new Set(Object.values(i).map((e) => e.src))), r = await Promise.all(n.map((e) =>
|
|
203
|
+
let n = Array.from(new Set(Object.values(i).map((e) => e.src))), r = await Promise.all(n.map((e) => T(e)));
|
|
208
204
|
e || (r.forEach((e, r) => {
|
|
209
205
|
e && t.set(n[r], e);
|
|
210
206
|
}), l((e) => e + 1));
|
|
@@ -220,14 +216,14 @@ function ae({ layers: e, invert: t = !1, hoverTilt: n = !1 }) {
|
|
|
220
216
|
i.clearRect(0, 0, n.width, n.height), [...e].sort((e, t) => e.order - t.order).forEach((e) => {
|
|
221
217
|
let t = o.current.get(e.source);
|
|
222
218
|
if (t) {
|
|
223
|
-
let a =
|
|
219
|
+
let a = E(n, i, t, e, h ? r : void 0);
|
|
224
220
|
e.order === 0 && c(a);
|
|
225
221
|
return;
|
|
226
222
|
}
|
|
227
|
-
|
|
223
|
+
T(e.source).then((t) => {
|
|
228
224
|
if (!(a || !t)) {
|
|
229
225
|
if (o.current.set(e.source, t), !h) {
|
|
230
|
-
let r =
|
|
226
|
+
let r = E(n, i, t, e);
|
|
231
227
|
e.order === 0 && c(r);
|
|
232
228
|
}
|
|
233
229
|
l((e) => e + 1);
|
|
@@ -300,7 +296,7 @@ function ae({ layers: e, invert: t = !1, hoverTilt: n = !1 }) {
|
|
|
300
296
|
}
|
|
301
297
|
};
|
|
302
298
|
}
|
|
303
|
-
function
|
|
299
|
+
function ee(e, t, n) {
|
|
304
300
|
let [r, i] = v(null), [a, o] = v(null), [s, c] = v(null), l = f((e, t, n) => {
|
|
305
301
|
let r = "touches" in e ? e.touches[0] : e, i = e.currentTarget.getBoundingClientRect();
|
|
306
302
|
o({
|
|
@@ -369,7 +365,7 @@ function oe(e, t, n) {
|
|
|
369
365
|
}
|
|
370
366
|
//#endregion
|
|
371
367
|
//#region src/ui/sprites.tsx
|
|
372
|
-
function
|
|
368
|
+
function te({ name: e, sheet: t, width: i = 40, height: s, style: c }) {
|
|
373
369
|
let l = a(e), u = t ?? l?.type ?? "Jokers", d = o[u], f = r(u), p = l?.pos ?? f.pos, m = i;
|
|
374
370
|
[
|
|
375
371
|
"Jokers",
|
|
@@ -395,7 +391,7 @@ function se({ name: e, sheet: t, width: i = 40, height: s, style: c }) {
|
|
|
395
391
|
...c
|
|
396
392
|
} });
|
|
397
393
|
}
|
|
398
|
-
var
|
|
394
|
+
var ne = [
|
|
399
395
|
"White",
|
|
400
396
|
"Red",
|
|
401
397
|
"Green",
|
|
@@ -405,8 +401,8 @@ var ce = [
|
|
|
405
401
|
"Orange",
|
|
406
402
|
"Gold"
|
|
407
403
|
];
|
|
408
|
-
function
|
|
409
|
-
let a =
|
|
404
|
+
function re({ stake: e, width: t = 29, height: r, style: i }) {
|
|
405
|
+
let a = ne.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;
|
|
410
406
|
return /* @__PURE__ */ b("div", { style: {
|
|
411
407
|
width: t,
|
|
412
408
|
height: l,
|
|
@@ -419,7 +415,7 @@ function le({ stake: e, width: t = 29, height: r, style: i }) {
|
|
|
419
415
|
...i
|
|
420
416
|
} });
|
|
421
417
|
}
|
|
422
|
-
var
|
|
418
|
+
var ie = {
|
|
423
419
|
Red: {
|
|
424
420
|
x: 0,
|
|
425
421
|
y: 0
|
|
@@ -445,8 +441,8 @@ var ue = {
|
|
|
445
441
|
y: 2
|
|
446
442
|
}
|
|
447
443
|
};
|
|
448
|
-
function
|
|
449
|
-
let o =
|
|
444
|
+
function ae({ deck: e, width: t = 71, height: r, style: a }) {
|
|
445
|
+
let o = ie[e.replace(" Deck", "")] ?? ie.Red, s = r ?? t * 95 / 71, c = i.enhancers;
|
|
450
446
|
return /* @__PURE__ */ b("div", { style: {
|
|
451
447
|
width: t,
|
|
452
448
|
height: s,
|
|
@@ -461,7 +457,7 @@ function de({ deck: e, width: t = 71, height: r, style: a }) {
|
|
|
461
457
|
}
|
|
462
458
|
//#endregion
|
|
463
459
|
//#region src/ui/jimboText.tsx
|
|
464
|
-
function
|
|
460
|
+
function N({ tone: e = "default", size: t = "md", shadow: n = !0, dance: r = !1, letterSpacing: i, as: a = "span", className: o = "", style: s, children: c, ...l }) {
|
|
465
461
|
let u = `j-text--${t}`, d = `j-text--${e}`, f = n ? "" : "j-text--no-shadow", p = r ? "j-text--dance-container" : "", m = {};
|
|
466
462
|
i != null && (m.letterSpacing = i), s && Object.assign(m, s);
|
|
467
463
|
let h = c;
|
|
@@ -478,7 +474,7 @@ function P({ tone: e = "default", size: t = "md", shadow: n = !0, dance: r = !1,
|
|
|
478
474
|
}
|
|
479
475
|
//#endregion
|
|
480
476
|
//#region src/ui/JimboTextInput.tsx
|
|
481
|
-
var
|
|
477
|
+
var oe = s.forwardRef(function({ className: e = "", invalid: t = !1, "aria-invalid": n, ...r }, i) {
|
|
482
478
|
return /* @__PURE__ */ b("input", {
|
|
483
479
|
ref: i,
|
|
484
480
|
className: `j-text-input ${e}`.trim(),
|
|
@@ -486,236 +482,8 @@ var fe = s.forwardRef(function({ className: e = "", invalid: t = !1, "aria-inval
|
|
|
486
482
|
"data-invalid": t,
|
|
487
483
|
...r
|
|
488
484
|
});
|
|
489
|
-
}),
|
|
490
|
-
|
|
491
|
-
red: "#fe5148",
|
|
492
|
-
blue: "#0093ff",
|
|
493
|
-
green: "#429f79",
|
|
494
|
-
grey: "#a8bcbf",
|
|
495
|
-
tarot: "#9e74ce",
|
|
496
|
-
planet: "#00a7ca",
|
|
497
|
-
spectral: "#2e76fd"
|
|
498
|
-
}, me = {
|
|
499
|
-
orange: "#a05b00",
|
|
500
|
-
red: "#a02721",
|
|
501
|
-
blue: "#0057a1",
|
|
502
|
-
green: "#215f46",
|
|
503
|
-
grey: "#404c4e",
|
|
504
|
-
tarot: "#5e437e",
|
|
505
|
-
planet: "#00657c",
|
|
506
|
-
spectral: "#14449e"
|
|
507
|
-
}, F = {
|
|
508
|
-
MAX_TILT_X: .18,
|
|
509
|
-
MAX_TILT_Y: .22,
|
|
510
|
-
MAX_SHIFT: .02,
|
|
511
|
-
TWIST_Z: .05,
|
|
512
|
-
LERP_IN: 22,
|
|
513
|
-
LERP_OUT: 12
|
|
514
|
-
}, he = {
|
|
515
|
-
xs: {
|
|
516
|
-
w: 1.4,
|
|
517
|
-
h: .42,
|
|
518
|
-
depth: .12,
|
|
519
|
-
fontSize: .22
|
|
520
|
-
},
|
|
521
|
-
sm: {
|
|
522
|
-
w: 1.8,
|
|
523
|
-
h: .52,
|
|
524
|
-
depth: .14,
|
|
525
|
-
fontSize: .26
|
|
526
|
-
},
|
|
527
|
-
md: {
|
|
528
|
-
w: 2.4,
|
|
529
|
-
h: .66,
|
|
530
|
-
depth: .16,
|
|
531
|
-
fontSize: .3
|
|
532
|
-
},
|
|
533
|
-
lg: {
|
|
534
|
-
w: 3,
|
|
535
|
-
h: .82,
|
|
536
|
-
depth: .18,
|
|
537
|
-
fontSize: .36
|
|
538
|
-
}
|
|
539
|
-
}, I = d(function({ tone: e = "orange", size: t = "md", disabled: n = !1, fullWidth: r = !1, onClick: i, children: a, canvasWidth: o, canvasHeight: s, style: c, className: l = "" }) {
|
|
540
|
-
let u = he[t], d = r ? void 0 : o ?? Math.round(u.w * 60 + 40), f = s ?? Math.round(u.h * 60 + 40);
|
|
541
|
-
return /* @__PURE__ */ b("div", {
|
|
542
|
-
className: l,
|
|
543
|
-
style: {
|
|
544
|
-
...r ? {
|
|
545
|
-
width: "100%",
|
|
546
|
-
height: f
|
|
547
|
-
} : {
|
|
548
|
-
width: d,
|
|
549
|
-
height: f
|
|
550
|
-
},
|
|
551
|
-
...c
|
|
552
|
-
},
|
|
553
|
-
children: /* @__PURE__ */ x(S, {
|
|
554
|
-
orthographic: !0,
|
|
555
|
-
camera: {
|
|
556
|
-
position: [
|
|
557
|
-
0,
|
|
558
|
-
0,
|
|
559
|
-
5
|
|
560
|
-
],
|
|
561
|
-
zoom: 60
|
|
562
|
-
},
|
|
563
|
-
gl: {
|
|
564
|
-
alpha: !0,
|
|
565
|
-
antialias: !0
|
|
566
|
-
},
|
|
567
|
-
dpr: [1, 2],
|
|
568
|
-
children: [
|
|
569
|
-
/* @__PURE__ */ b("ambientLight", { intensity: .9 }),
|
|
570
|
-
/* @__PURE__ */ b("directionalLight", {
|
|
571
|
-
position: [
|
|
572
|
-
2,
|
|
573
|
-
3,
|
|
574
|
-
4
|
|
575
|
-
],
|
|
576
|
-
intensity: .7
|
|
577
|
-
}),
|
|
578
|
-
/* @__PURE__ */ b(ge, {
|
|
579
|
-
tone: e,
|
|
580
|
-
size: t,
|
|
581
|
-
disabled: n,
|
|
582
|
-
onClick: i,
|
|
583
|
-
children: typeof a == "string" ? a : String(a ?? "")
|
|
584
|
-
})
|
|
585
|
-
]
|
|
586
|
-
})
|
|
587
|
-
});
|
|
588
|
-
});
|
|
589
|
-
function ge({ tone: e, size: t, disabled: r, onClick: i, children: a }) {
|
|
590
|
-
let o = _(null), s = _({
|
|
591
|
-
rx: 0,
|
|
592
|
-
ry: 0,
|
|
593
|
-
rz: 0,
|
|
594
|
-
ox: 0,
|
|
595
|
-
oy: 0
|
|
596
|
-
}), [c, l] = v(!1), [u, d] = v(!1), f = he[t], p = g(() => new D.Color(r ? "#5a6669" : pe[e]), [e, r]), m = g(() => new D.Color(r ? "#2a3033" : me[e]), [e, r]), { posY: h, scale: y } = ee({
|
|
597
|
-
posY: u ? -.04 : c ? .06 : 0,
|
|
598
|
-
scale: u ? .96 : c ? 1.05 : 1,
|
|
599
|
-
config: {
|
|
600
|
-
tension: 380,
|
|
601
|
-
friction: 18
|
|
602
|
-
}
|
|
603
|
-
});
|
|
604
|
-
C((e, t) => {
|
|
605
|
-
let n = o.current;
|
|
606
|
-
if (!n) return;
|
|
607
|
-
let r = s.current, i = e.clock.elapsedTime, a = c ? 0 : Math.sin(i * .9) * .006, l = c ? 0 : Math.sin(i * .73 + 1.3) * .012, u = c ? 0 : Math.cos(i * .61 + .5) * .01, d = c ? F.LERP_IN : F.LERP_OUT, f = 1 - Math.exp(-d * t);
|
|
608
|
-
n.rotation.x = D.MathUtils.lerp(n.rotation.x, r.rx + l, f), n.rotation.y = D.MathUtils.lerp(n.rotation.y, r.ry + u, f), n.rotation.z = D.MathUtils.lerp(n.rotation.z, r.rz, f), n.position.x = D.MathUtils.lerp(n.position.x, r.ox, f), n.position.y = D.MathUtils.lerp(n.position.y, r.oy + a, f);
|
|
609
|
-
});
|
|
610
|
-
let S = (e) => {
|
|
611
|
-
e.stopPropagation();
|
|
612
|
-
let t = e.uv;
|
|
613
|
-
if (!t) return;
|
|
614
|
-
let n = D.MathUtils.clamp((t.x - .5) * 2, -1, 1), r = D.MathUtils.clamp((t.y - .5) * 2, -1, 1);
|
|
615
|
-
s.current.ry = -n * F.MAX_TILT_Y, s.current.rx = r * F.MAX_TILT_X, s.current.rz = -n * r * F.TWIST_Z, s.current.ox = n * F.MAX_SHIFT, s.current.oy = -r * F.MAX_SHIFT * .65;
|
|
616
|
-
}, O = () => {
|
|
617
|
-
s.current = {
|
|
618
|
-
rx: 0,
|
|
619
|
-
ry: 0,
|
|
620
|
-
rz: 0,
|
|
621
|
-
ox: 0,
|
|
622
|
-
oy: 0
|
|
623
|
-
};
|
|
624
|
-
};
|
|
625
|
-
return /* @__PURE__ */ x(w.group, {
|
|
626
|
-
"position-y": h,
|
|
627
|
-
scale: y,
|
|
628
|
-
children: [/* @__PURE__ */ x("mesh", {
|
|
629
|
-
visible: !1,
|
|
630
|
-
onClick: (e) => {
|
|
631
|
-
e.stopPropagation(), r || i?.();
|
|
632
|
-
},
|
|
633
|
-
onPointerDown: (e) => {
|
|
634
|
-
e.stopPropagation(), r || d(!0);
|
|
635
|
-
},
|
|
636
|
-
onPointerUp: (e) => {
|
|
637
|
-
e.stopPropagation(), d(!1);
|
|
638
|
-
},
|
|
639
|
-
onPointerMove: S,
|
|
640
|
-
onPointerEnter: (e) => {
|
|
641
|
-
e.stopPropagation(), l(!0), r || (document.body.style.cursor = "pointer");
|
|
642
|
-
},
|
|
643
|
-
onPointerLeave: (e) => {
|
|
644
|
-
e.stopPropagation(), l(!1), d(!1), O(), document.body.style.cursor = "auto";
|
|
645
|
-
},
|
|
646
|
-
children: [/* @__PURE__ */ b("boxGeometry", { args: [
|
|
647
|
-
f.w,
|
|
648
|
-
f.h,
|
|
649
|
-
f.depth * 2
|
|
650
|
-
] }), /* @__PURE__ */ b("meshBasicMaterial", {})]
|
|
651
|
-
}), /* @__PURE__ */ x("group", {
|
|
652
|
-
ref: o,
|
|
653
|
-
children: [
|
|
654
|
-
/* @__PURE__ */ b(T, {
|
|
655
|
-
args: [
|
|
656
|
-
f.w,
|
|
657
|
-
f.h,
|
|
658
|
-
f.depth * .4
|
|
659
|
-
],
|
|
660
|
-
radius: .12,
|
|
661
|
-
smoothness: 4,
|
|
662
|
-
position: [
|
|
663
|
-
0,
|
|
664
|
-
-.08,
|
|
665
|
-
-f.depth * .3
|
|
666
|
-
],
|
|
667
|
-
children: /* @__PURE__ */ b("meshStandardMaterial", {
|
|
668
|
-
color: m,
|
|
669
|
-
roughness: .9,
|
|
670
|
-
metalness: 0
|
|
671
|
-
})
|
|
672
|
-
}),
|
|
673
|
-
/* @__PURE__ */ b(T, {
|
|
674
|
-
args: [
|
|
675
|
-
f.w,
|
|
676
|
-
f.h,
|
|
677
|
-
f.depth
|
|
678
|
-
],
|
|
679
|
-
radius: .12,
|
|
680
|
-
smoothness: 4,
|
|
681
|
-
children: /* @__PURE__ */ b("meshStandardMaterial", {
|
|
682
|
-
color: p,
|
|
683
|
-
roughness: .7,
|
|
684
|
-
metalness: .05
|
|
685
|
-
})
|
|
686
|
-
}),
|
|
687
|
-
/* @__PURE__ */ b(E, {
|
|
688
|
-
position: [
|
|
689
|
-
0,
|
|
690
|
-
0,
|
|
691
|
-
f.depth / 2 + .001
|
|
692
|
-
],
|
|
693
|
-
fontSize: f.fontSize,
|
|
694
|
-
font: n("font"),
|
|
695
|
-
color: "#ffffff",
|
|
696
|
-
anchorX: "center",
|
|
697
|
-
anchorY: "middle",
|
|
698
|
-
maxWidth: f.w * .9,
|
|
699
|
-
textAlign: "center",
|
|
700
|
-
children: a
|
|
701
|
-
})
|
|
702
|
-
]
|
|
703
|
-
})]
|
|
704
|
-
});
|
|
705
|
-
}
|
|
706
|
-
function _e({ onClick: e, size: t = "sm" }) {
|
|
707
|
-
return /* @__PURE__ */ b(I, {
|
|
708
|
-
tone: "orange",
|
|
709
|
-
size: t,
|
|
710
|
-
fullWidth: !0,
|
|
711
|
-
onClick: e,
|
|
712
|
-
children: "Back"
|
|
713
|
-
});
|
|
714
|
-
}
|
|
715
|
-
//#endregion
|
|
716
|
-
//#region src/ui/panel.tsx
|
|
717
|
-
var ve = d(({ children: e, className: t = "", sway: n = !1, onBack: r, hideBack: i = !1, style: a, ...o }) => /* @__PURE__ */ x("div", {
|
|
718
|
-
ref: ne(n),
|
|
485
|
+
}), se = d(({ children: e, className: t = "", sway: n = !1, onBack: r, hideBack: i = !1, style: a, ...o }) => /* @__PURE__ */ x("div", {
|
|
486
|
+
ref: D(n),
|
|
719
487
|
className: `j-panel ${t}`,
|
|
720
488
|
style: a,
|
|
721
489
|
...o,
|
|
@@ -724,27 +492,58 @@ var ve = d(({ children: e, className: t = "", sway: n = !1, onBack: r, hideBack:
|
|
|
724
492
|
children: e
|
|
725
493
|
}), r && !i && /* @__PURE__ */ b("div", {
|
|
726
494
|
className: "j-panel__back",
|
|
727
|
-
children: /* @__PURE__ */ b(
|
|
495
|
+
children: /* @__PURE__ */ b(le, { onClick: r })
|
|
728
496
|
})]
|
|
729
497
|
}));
|
|
730
|
-
|
|
731
|
-
var
|
|
498
|
+
se.displayName = "JimboPanel";
|
|
499
|
+
var ce = d(({ children: e, className: t = "", style: n, ...r }) => /* @__PURE__ */ b("div", {
|
|
732
500
|
className: `j-inner-panel ${t}`,
|
|
733
501
|
style: n,
|
|
734
502
|
...r,
|
|
735
503
|
children: e
|
|
736
504
|
}));
|
|
737
|
-
|
|
738
|
-
function
|
|
505
|
+
ce.displayName = "JimboInnerPanel";
|
|
506
|
+
function P({ tone: e = "orange", size: t = "md", fullWidth: n = !1, disabled: r = !1, onClick: i, style: a, className: o = "", children: s, ...c }) {
|
|
507
|
+
let l = t === "xs" ? "xs" : t === "sm" ? "sm" : t === "lg" ? "lg" : "md";
|
|
508
|
+
return /* @__PURE__ */ b("button", {
|
|
509
|
+
type: "button",
|
|
510
|
+
className: `j-btn j-btn--${e} j-btn--${t} ${n ? "j-btn--full" : ""} ${r ? "j-btn--disabled" : ""} ${o}`,
|
|
511
|
+
disabled: r,
|
|
512
|
+
onClick: i,
|
|
513
|
+
style: a,
|
|
514
|
+
...c,
|
|
515
|
+
children: /* @__PURE__ */ b("div", {
|
|
516
|
+
className: "j-btn__face",
|
|
517
|
+
children: /* @__PURE__ */ b(N, {
|
|
518
|
+
size: l,
|
|
519
|
+
children: s
|
|
520
|
+
})
|
|
521
|
+
})
|
|
522
|
+
});
|
|
523
|
+
}
|
|
524
|
+
function le({ onClick: e, size: t = "sm" }) {
|
|
525
|
+
return /* @__PURE__ */ b("div", {
|
|
526
|
+
className: "j-back-btn-wrap j-flex j-justify-center j-w-full",
|
|
527
|
+
children: /* @__PURE__ */ b(P, {
|
|
528
|
+
tone: "orange",
|
|
529
|
+
size: t,
|
|
530
|
+
fullWidth: !0,
|
|
531
|
+
onClick: e,
|
|
532
|
+
className: "j-back-btn",
|
|
533
|
+
children: "Back"
|
|
534
|
+
})
|
|
535
|
+
});
|
|
536
|
+
}
|
|
537
|
+
function ue({ children: e, open: t, onClose: n, title: r, className: i, showBack: a = !0 }) {
|
|
739
538
|
return t ? /* @__PURE__ */ b("div", {
|
|
740
539
|
className: "j-modal-overlay",
|
|
741
|
-
children: /* @__PURE__ */ x(
|
|
540
|
+
children: /* @__PURE__ */ x(se, {
|
|
742
541
|
onBack: a ? n : void 0,
|
|
743
542
|
className: `j-modal ${i ?? ""}`,
|
|
744
543
|
children: [r && /* @__PURE__ */ b("div", {
|
|
745
544
|
className: "j-modal__title-wrap",
|
|
746
545
|
"aria-hidden": !1,
|
|
747
|
-
children: /* @__PURE__ */ b(
|
|
546
|
+
children: /* @__PURE__ */ b(N, {
|
|
748
547
|
as: "h2",
|
|
749
548
|
size: "lg",
|
|
750
549
|
className: "j-modal__title",
|
|
@@ -756,7 +555,7 @@ function be({ children: e, open: t, onClose: n, title: r, className: i, showBack
|
|
|
756
555
|
}
|
|
757
556
|
//#endregion
|
|
758
557
|
//#region src/ui/jimboTabs.tsx
|
|
759
|
-
function
|
|
558
|
+
function de({ tabs: e, activeTab: t, onTabChange: n, className: r = "", style: i }) {
|
|
760
559
|
return /* @__PURE__ */ b("div", {
|
|
761
560
|
className: `j-tabs ${r}`,
|
|
762
561
|
style: i,
|
|
@@ -775,7 +574,7 @@ function xe({ tabs: e, activeTab: t, onTabChange: n, className: r = "", style: i
|
|
|
775
574
|
viewBox: "0 0 14 10",
|
|
776
575
|
children: /* @__PURE__ */ b("polygon", { points: "7,10 0,0 14,0" })
|
|
777
576
|
})
|
|
778
|
-
}), /* @__PURE__ */ b(
|
|
577
|
+
}), /* @__PURE__ */ b(P, {
|
|
779
578
|
tone: "red",
|
|
780
579
|
size: "sm",
|
|
781
580
|
onClick: () => n(e.id),
|
|
@@ -787,24 +586,24 @@ function xe({ tabs: e, activeTab: t, onTabChange: n, className: r = "", style: i
|
|
|
787
586
|
}
|
|
788
587
|
//#endregion
|
|
789
588
|
//#region src/ui/JimboIconButton.tsx
|
|
790
|
-
var
|
|
589
|
+
var F = e, fe = {
|
|
791
590
|
xs: 22,
|
|
792
591
|
sm: 26,
|
|
793
592
|
md: 30
|
|
794
|
-
},
|
|
593
|
+
}, pe = {
|
|
795
594
|
default: {
|
|
796
|
-
rest:
|
|
797
|
-
hover:
|
|
798
|
-
border:
|
|
595
|
+
rest: F.DARKEST,
|
|
596
|
+
hover: F.DARK_GREY,
|
|
597
|
+
border: F.PANEL_EDGE
|
|
799
598
|
},
|
|
800
599
|
destructive: {
|
|
801
|
-
rest:
|
|
802
|
-
hover:
|
|
803
|
-
border:
|
|
600
|
+
rest: F.RED,
|
|
601
|
+
hover: F.ORANGE,
|
|
602
|
+
border: F.BLACK
|
|
804
603
|
}
|
|
805
604
|
};
|
|
806
|
-
function
|
|
807
|
-
let [l, u] = v(!1), d =
|
|
605
|
+
function me({ onClick: e, onMouseDown: t, onTouchStart: n, title: r, "aria-label": i, disabled: a = !1, size: o = "md", tone: s = "default", children: c }) {
|
|
606
|
+
let [l, u] = v(!1), d = fe[o], f = pe[s], p = s === "destructive" ? 2 : 1, m = s === "destructive" ? `inset 0 1px 0 rgba(255,255,255,.2), 0 2px 0 ${F.BLACK}` : void 0;
|
|
808
607
|
return /* @__PURE__ */ b("button", {
|
|
809
608
|
"aria-label": i ?? r,
|
|
810
609
|
disabled: a,
|
|
@@ -820,7 +619,7 @@ function we({ onClick: e, onMouseDown: t, onTouchStart: n, title: r, "aria-label
|
|
|
820
619
|
alignItems: "center",
|
|
821
620
|
justifyContent: "center",
|
|
822
621
|
background: l && !a ? f.hover : f.rest,
|
|
823
|
-
color:
|
|
622
|
+
color: F.WHITE,
|
|
824
623
|
border: `${p}px solid ${f.border}`,
|
|
825
624
|
borderRadius: 4,
|
|
826
625
|
boxShadow: m,
|
|
@@ -838,7 +637,7 @@ function we({ onClick: e, onMouseDown: t, onTouchStart: n, title: r, "aria-label
|
|
|
838
637
|
}
|
|
839
638
|
//#endregion
|
|
840
639
|
//#region src/ui/JimboInlineEdit.tsx
|
|
841
|
-
var
|
|
640
|
+
var he = s.forwardRef(function({ size: e = "md", tone: t = "white", dim: n = !1, className: r = "", ...i }, a) {
|
|
842
641
|
return /* @__PURE__ */ b("input", {
|
|
843
642
|
ref: a,
|
|
844
643
|
type: "text",
|
|
@@ -854,7 +653,7 @@ var Te = s.forwardRef(function({ size: e = "md", tone: t = "white", dim: n = !1,
|
|
|
854
653
|
});
|
|
855
654
|
//#endregion
|
|
856
655
|
//#region src/ui/JimboBadge.tsx
|
|
857
|
-
function
|
|
656
|
+
function ge({ size: e = "sm", tone: t = "dark", className: n, children: r, ...i }) {
|
|
858
657
|
return /* @__PURE__ */ b("span", {
|
|
859
658
|
className: `j-badge j-badge--${e} j-badge--${t} ${n ?? ""}`,
|
|
860
659
|
...i,
|
|
@@ -863,12 +662,12 @@ function Ee({ size: e = "sm", tone: t = "dark", className: n, children: r, ...i
|
|
|
863
662
|
}
|
|
864
663
|
//#endregion
|
|
865
664
|
//#region src/ui/jimboFlankNav.tsx
|
|
866
|
-
function
|
|
665
|
+
function _e({ onPrev: e, onNext: t, canPrev: n = !0, canNext: r = !0, prevLabel: i = "Previous", nextLabel: a = "Next", children: o, className: s = "", style: c }) {
|
|
867
666
|
return /* @__PURE__ */ x("div", {
|
|
868
667
|
className: `j-flank ${s}`,
|
|
869
668
|
style: c,
|
|
870
669
|
children: [
|
|
871
|
-
/* @__PURE__ */ b(
|
|
670
|
+
/* @__PURE__ */ b(ve, {
|
|
872
671
|
direction: "left",
|
|
873
672
|
onClick: e,
|
|
874
673
|
disabled: !n,
|
|
@@ -878,7 +677,7 @@ function De({ onPrev: e, onNext: t, canPrev: n = !0, canNext: r = !0, prevLabel:
|
|
|
878
677
|
className: "j-flank__content",
|
|
879
678
|
children: o
|
|
880
679
|
}),
|
|
881
|
-
/* @__PURE__ */ b(
|
|
680
|
+
/* @__PURE__ */ b(ve, {
|
|
882
681
|
direction: "right",
|
|
883
682
|
onClick: t,
|
|
884
683
|
disabled: !r,
|
|
@@ -887,7 +686,7 @@ function De({ onPrev: e, onNext: t, canPrev: n = !0, canNext: r = !0, prevLabel:
|
|
|
887
686
|
]
|
|
888
687
|
});
|
|
889
688
|
}
|
|
890
|
-
function
|
|
689
|
+
function ve({ direction: e, onClick: t, disabled: n, "aria-label": r }) {
|
|
891
690
|
let [i, a] = s.useState(!1);
|
|
892
691
|
return /* @__PURE__ */ b("button", {
|
|
893
692
|
type: "button",
|
|
@@ -902,10 +701,10 @@ function Oe({ direction: e, onClick: t, disabled: n, "aria-label": r }) {
|
|
|
902
701
|
onMouseLeave: () => a(!1),
|
|
903
702
|
onTouchStart: () => !n && a(!0),
|
|
904
703
|
onTouchEnd: () => a(!1),
|
|
905
|
-
children: /* @__PURE__ */ b(
|
|
704
|
+
children: /* @__PURE__ */ b(ye, { direction: e })
|
|
906
705
|
});
|
|
907
706
|
}
|
|
908
|
-
function
|
|
707
|
+
function ye({ direction: e }) {
|
|
909
708
|
return /* @__PURE__ */ b("svg", {
|
|
910
709
|
width: 28,
|
|
911
710
|
height: 28,
|
|
@@ -921,7 +720,7 @@ function ke({ direction: e }) {
|
|
|
921
720
|
}
|
|
922
721
|
//#endregion
|
|
923
722
|
//#region src/ui/JimboSeedCopyChip.tsx
|
|
924
|
-
function
|
|
723
|
+
function be({ value: e, placeholder: t = "--------", disabled: n = !1, copiedLabel: r = "Copied!", copiedDurationMs: i = 2e3, onCopy: a, className: o = "", style: s }) {
|
|
925
724
|
let [c, l] = v(!1), u = e.trim(), d = !n && u.length > 0;
|
|
926
725
|
return /* @__PURE__ */ x("button", {
|
|
927
726
|
type: "button",
|
|
@@ -941,7 +740,7 @@ function Ae({ value: e, placeholder: t = "--------", disabled: n = !1, copiedLab
|
|
|
941
740
|
children: [/* @__PURE__ */ b("span", {
|
|
942
741
|
className: "j-seed-copy__icon",
|
|
943
742
|
"aria-hidden": !0,
|
|
944
|
-
children: b(c ?
|
|
743
|
+
children: b(c ? S : C, { size: 18 })
|
|
945
744
|
}), /* @__PURE__ */ b("span", {
|
|
946
745
|
className: "j-seed-copy__text",
|
|
947
746
|
children: c ? r : u || t
|
|
@@ -949,22 +748,65 @@ function Ae({ value: e, placeholder: t = "--------", disabled: n = !1, copiedLab
|
|
|
949
748
|
});
|
|
950
749
|
}
|
|
951
750
|
//#endregion
|
|
751
|
+
//#region src/ui/JimboSpinner.tsx
|
|
752
|
+
function xe({ value: e, label: t, onPrev: n, onNext: r, canPrev: i = !0, canNext: a = !0, className: o = "" }) {
|
|
753
|
+
return /* @__PURE__ */ x("div", {
|
|
754
|
+
className: `j-spinner-wrap ${o}`,
|
|
755
|
+
children: [t && /* @__PURE__ */ b("div", {
|
|
756
|
+
className: "j-spinner__label",
|
|
757
|
+
children: /* @__PURE__ */ b(N, {
|
|
758
|
+
size: "sm",
|
|
759
|
+
tone: "white",
|
|
760
|
+
children: t
|
|
761
|
+
})
|
|
762
|
+
}), /* @__PURE__ */ x("div", {
|
|
763
|
+
className: "j-spinner",
|
|
764
|
+
children: [
|
|
765
|
+
/* @__PURE__ */ b(P, {
|
|
766
|
+
tone: "red",
|
|
767
|
+
size: "sm",
|
|
768
|
+
onClick: n,
|
|
769
|
+
disabled: !i,
|
|
770
|
+
"aria-label": `Previous ${t ?? "value"}`,
|
|
771
|
+
children: "<"
|
|
772
|
+
}),
|
|
773
|
+
/* @__PURE__ */ b("div", {
|
|
774
|
+
className: "j-spinner__value",
|
|
775
|
+
children: /* @__PURE__ */ b(N, {
|
|
776
|
+
size: "sm",
|
|
777
|
+
tone: "white",
|
|
778
|
+
children: e
|
|
779
|
+
})
|
|
780
|
+
}),
|
|
781
|
+
/* @__PURE__ */ b(P, {
|
|
782
|
+
tone: "red",
|
|
783
|
+
size: "sm",
|
|
784
|
+
onClick: r,
|
|
785
|
+
disabled: !a,
|
|
786
|
+
"aria-label": `Next ${t ?? "value"}`,
|
|
787
|
+
children: ">"
|
|
788
|
+
})
|
|
789
|
+
]
|
|
790
|
+
})]
|
|
791
|
+
});
|
|
792
|
+
}
|
|
793
|
+
//#endregion
|
|
952
794
|
//#region src/ui/jimboApp.tsx
|
|
953
|
-
function
|
|
795
|
+
function Se({ children: e, fluid: t, className: n = "", ...r }) {
|
|
954
796
|
return /* @__PURE__ */ b("div", {
|
|
955
797
|
className: `j-app${t ? " j-app--fluid" : ""} ${n}`.trim(),
|
|
956
798
|
...r,
|
|
957
799
|
children: e
|
|
958
800
|
});
|
|
959
801
|
}
|
|
960
|
-
function
|
|
802
|
+
function Ce({ children: e, className: t = "", ...n }) {
|
|
961
803
|
return /* @__PURE__ */ b("div", {
|
|
962
804
|
className: `j-app__scroll ${t}`,
|
|
963
805
|
...n,
|
|
964
806
|
children: e
|
|
965
807
|
});
|
|
966
808
|
}
|
|
967
|
-
function
|
|
809
|
+
function we({ children: e, className: t = "", ...n }) {
|
|
968
810
|
return /* @__PURE__ */ b("div", {
|
|
969
811
|
className: `j-app__footer ${t}`,
|
|
970
812
|
...n,
|
|
@@ -973,8 +815,8 @@ function Ne({ children: e, className: t = "", ...n }) {
|
|
|
973
815
|
}
|
|
974
816
|
//#endregion
|
|
975
817
|
//#region src/ui/JimboToggleList.tsx
|
|
976
|
-
function
|
|
977
|
-
return /* @__PURE__ */ b(
|
|
818
|
+
function Te({ items: e, onToggle: t, title: n, variant: r = "row" }) {
|
|
819
|
+
return /* @__PURE__ */ b(se, { children: /* @__PURE__ */ x("div", {
|
|
978
820
|
className: `j-toggle-list j-toggle-list--${r}`,
|
|
979
821
|
children: [n && /* @__PURE__ */ b("div", {
|
|
980
822
|
className: "j-toggle-list__title",
|
|
@@ -997,7 +839,7 @@ function Pe({ items: e, onToggle: t, title: n, variant: r = "row" }) {
|
|
|
997
839
|
}
|
|
998
840
|
//#endregion
|
|
999
841
|
//#region src/ui/jimboFilterBar.tsx
|
|
1000
|
-
function
|
|
842
|
+
function Ee({ search: e, onSearchChange: t, searchPlaceholder: n = "Search...", searchLabel: r = "Search", sort: i, onSortChange: a, sortLabel: o = "Sort By", sortOptions: s, className: c = "", style: l }) {
|
|
1001
843
|
return /* @__PURE__ */ x("div", {
|
|
1002
844
|
className: `j-filter-bar ${c}`,
|
|
1003
845
|
style: l,
|
|
@@ -1005,7 +847,7 @@ function Fe({ search: e, onSearchChange: t, searchPlaceholder: n = "Search...",
|
|
|
1005
847
|
className: "j-filter-bar__field",
|
|
1006
848
|
children: [/* @__PURE__ */ b("div", {
|
|
1007
849
|
className: "j-filter-bar__pill",
|
|
1008
|
-
children: /* @__PURE__ */ b(
|
|
850
|
+
children: /* @__PURE__ */ b(N, {
|
|
1009
851
|
size: "xs",
|
|
1010
852
|
children: r
|
|
1011
853
|
})
|
|
@@ -1013,7 +855,7 @@ function Fe({ search: e, onSearchChange: t, searchPlaceholder: n = "Search...",
|
|
|
1013
855
|
className: "j-relative",
|
|
1014
856
|
children: [/* @__PURE__ */ b("div", {
|
|
1015
857
|
className: "j-filter-bar__search-icon",
|
|
1016
|
-
children: /* @__PURE__ */ b(
|
|
858
|
+
children: /* @__PURE__ */ b(De, {})
|
|
1017
859
|
}), /* @__PURE__ */ b("input", {
|
|
1018
860
|
type: "text",
|
|
1019
861
|
value: e ?? "",
|
|
@@ -1026,7 +868,7 @@ function Fe({ search: e, onSearchChange: t, searchPlaceholder: n = "Search...",
|
|
|
1026
868
|
className: "j-filter-bar__field",
|
|
1027
869
|
children: [/* @__PURE__ */ b("div", {
|
|
1028
870
|
className: "j-filter-bar__pill",
|
|
1029
|
-
children: /* @__PURE__ */ b(
|
|
871
|
+
children: /* @__PURE__ */ b(N, {
|
|
1030
872
|
size: "xs",
|
|
1031
873
|
children: o
|
|
1032
874
|
})
|
|
@@ -1042,13 +884,13 @@ function Fe({ search: e, onSearchChange: t, searchPlaceholder: n = "Search...",
|
|
|
1042
884
|
}, e.value))
|
|
1043
885
|
}), /* @__PURE__ */ b("div", {
|
|
1044
886
|
className: "j-filter-bar__sort-icon",
|
|
1045
|
-
children: /* @__PURE__ */ b(
|
|
887
|
+
children: /* @__PURE__ */ b(Oe, {})
|
|
1046
888
|
})]
|
|
1047
889
|
})]
|
|
1048
890
|
}) : null]
|
|
1049
891
|
});
|
|
1050
892
|
}
|
|
1051
|
-
function
|
|
893
|
+
function De() {
|
|
1052
894
|
return /* @__PURE__ */ x("svg", {
|
|
1053
895
|
width: 24,
|
|
1054
896
|
height: 24,
|
|
@@ -1071,7 +913,7 @@ function Ie() {
|
|
|
1071
913
|
})]
|
|
1072
914
|
});
|
|
1073
915
|
}
|
|
1074
|
-
function
|
|
916
|
+
function Oe() {
|
|
1075
917
|
return /* @__PURE__ */ x("svg", {
|
|
1076
918
|
width: 20,
|
|
1077
919
|
height: 20,
|
|
@@ -1092,7 +934,7 @@ function Le() {
|
|
|
1092
934
|
}
|
|
1093
935
|
//#endregion
|
|
1094
936
|
//#region src/ui/jimboLink.tsx
|
|
1095
|
-
function
|
|
937
|
+
function ke({ external: e = !0, className: t = "", children: n, ...r }) {
|
|
1096
938
|
let i = e ? {
|
|
1097
939
|
target: "_blank",
|
|
1098
940
|
rel: "noopener noreferrer"
|
|
@@ -1106,7 +948,7 @@ function Re({ external: e = !0, className: t = "", children: n, ...r }) {
|
|
|
1106
948
|
}
|
|
1107
949
|
//#endregion
|
|
1108
950
|
//#region src/ui/JimboBalatroFooter.tsx
|
|
1109
|
-
function
|
|
951
|
+
function Ae({ hidden: e = !1, className: t = "", children: n }) {
|
|
1110
952
|
return e ? null : /* @__PURE__ */ b("div", {
|
|
1111
953
|
className: ["j-footer", t].filter(Boolean).join(" "),
|
|
1112
954
|
children: /* @__PURE__ */ b("div", {
|
|
@@ -1122,7 +964,7 @@ function ze({ hidden: e = !1, className: t = "", children: n }) {
|
|
|
1122
964
|
className: "j-footer__chunk j-footer__chunk--credit",
|
|
1123
965
|
children: [
|
|
1124
966
|
"Made for the ",
|
|
1125
|
-
/* @__PURE__ */ b(
|
|
967
|
+
/* @__PURE__ */ b(ke, {
|
|
1126
968
|
href: "https://playbalatro.com",
|
|
1127
969
|
children: "Balatro"
|
|
1128
970
|
}),
|
|
@@ -1140,9 +982,9 @@ function ze({ hidden: e = !1, className: t = "", children: n }) {
|
|
|
1140
982
|
}
|
|
1141
983
|
//#endregion
|
|
1142
984
|
//#region src/ui/jimboBackground.tsx
|
|
1143
|
-
function
|
|
985
|
+
function je({ hideFooter: e = !1, ...t }) {
|
|
1144
986
|
return /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b("canvas", {
|
|
1145
|
-
ref:
|
|
987
|
+
ref: A(t),
|
|
1146
988
|
"aria-hidden": !0,
|
|
1147
989
|
style: {
|
|
1148
990
|
position: "fixed",
|
|
@@ -1152,21 +994,21 @@ function Be({ hideFooter: e = !1, ...t }) {
|
|
|
1152
994
|
zIndex: -10,
|
|
1153
995
|
pointerEvents: "none"
|
|
1154
996
|
}
|
|
1155
|
-
}), !e && /* @__PURE__ */ b(
|
|
997
|
+
}), !e && /* @__PURE__ */ b(Ae, {})] });
|
|
1156
998
|
}
|
|
1157
999
|
//#endregion
|
|
1158
1000
|
//#region src/ui/jimboTooltip.tsx
|
|
1159
|
-
function
|
|
1001
|
+
function Me(e, t) {
|
|
1160
1002
|
typeof e == "function" ? e(t) : e && typeof e == "object" && (e.current = t);
|
|
1161
1003
|
}
|
|
1162
|
-
function
|
|
1163
|
-
let { visible: u, pos: d, targetRef: p, tooltipRef: m, show: h, hide: g, handleMouseMove: _ } =
|
|
1004
|
+
function Ne({ content: e, badge: t, variant: n = "dark", children: r, mode: i = "snap", placement: a = "auto", delay: o = 80, maxWidth: c = 280, disabled: l = !1 }) {
|
|
1005
|
+
let { visible: u, pos: d, targetRef: p, tooltipRef: m, show: h, hide: g, handleMouseMove: _ } = j({
|
|
1164
1006
|
mode: i,
|
|
1165
1007
|
placement: a,
|
|
1166
1008
|
delay: o,
|
|
1167
1009
|
disabled: l
|
|
1168
1010
|
}), v = s.Children.only(r), S = v.ref, C = f((e) => {
|
|
1169
|
-
p.current = e,
|
|
1011
|
+
p.current = e, Me(S, e);
|
|
1170
1012
|
}, [S, p]);
|
|
1171
1013
|
return /* @__PURE__ */ x(y, { children: [s.cloneElement(v, {
|
|
1172
1014
|
ref: C,
|
|
@@ -1206,14 +1048,14 @@ function He({ content: e, badge: t, variant: n = "dark", children: r, mode: i =
|
|
|
1206
1048
|
}
|
|
1207
1049
|
//#endregion
|
|
1208
1050
|
//#region src/ui/JimboCopyButton.tsx
|
|
1209
|
-
function
|
|
1051
|
+
function Pe({ value: e, label: t = "Copy", copiedLabel: n = "Copied", tone: r = "blue", size: i = "sm", copiedDurationMs: a = 1500, onCopy: o, className: s }) {
|
|
1210
1052
|
let [c, l] = v(!1);
|
|
1211
1053
|
function u() {
|
|
1212
1054
|
navigator.clipboard.writeText(e).then(() => {
|
|
1213
1055
|
l(!0), o?.(), window.setTimeout(() => l(!1), a);
|
|
1214
1056
|
});
|
|
1215
1057
|
}
|
|
1216
|
-
return /* @__PURE__ */ b(
|
|
1058
|
+
return /* @__PURE__ */ b(P, {
|
|
1217
1059
|
tone: r,
|
|
1218
1060
|
size: i,
|
|
1219
1061
|
onClick: u,
|
|
@@ -1223,7 +1065,7 @@ function Ue({ value: e, label: t = "Copy", copiedLabel: n = "Copied", tone: r =
|
|
|
1223
1065
|
}
|
|
1224
1066
|
//#endregion
|
|
1225
1067
|
//#region src/ui/codeBlock.tsx
|
|
1226
|
-
function
|
|
1068
|
+
function Fe({ code: e, language: t, filename: n, className: r = "" }) {
|
|
1227
1069
|
let i = n?.toLowerCase().endsWith(".jaml") ? "JAML" : t?.toLowerCase() === "yaml" ? void 0 : t;
|
|
1228
1070
|
return /* @__PURE__ */ x("div", {
|
|
1229
1071
|
className: `j-code-block ${r}`,
|
|
@@ -1231,20 +1073,20 @@ function We({ code: e, language: t, filename: n, className: r = "" }) {
|
|
|
1231
1073
|
className: "j-code-block__header",
|
|
1232
1074
|
children: [/* @__PURE__ */ x("div", {
|
|
1233
1075
|
className: "j-code-block__meta",
|
|
1234
|
-
children: [n && /* @__PURE__ */ b(
|
|
1076
|
+
children: [n && /* @__PURE__ */ b(N, {
|
|
1235
1077
|
size: "xs",
|
|
1236
1078
|
tone: "grey",
|
|
1237
1079
|
className: "j-code-block__filename",
|
|
1238
1080
|
children: n
|
|
1239
1081
|
}), i && /* @__PURE__ */ b("span", {
|
|
1240
1082
|
className: "j-code-block__lang",
|
|
1241
|
-
children: /* @__PURE__ */ b(
|
|
1083
|
+
children: /* @__PURE__ */ b(N, {
|
|
1242
1084
|
size: "micro",
|
|
1243
1085
|
tone: "blue",
|
|
1244
1086
|
children: i
|
|
1245
1087
|
})
|
|
1246
1088
|
})]
|
|
1247
|
-
}), /* @__PURE__ */ b(
|
|
1089
|
+
}), /* @__PURE__ */ b(Pe, { value: e })]
|
|
1248
1090
|
}), /* @__PURE__ */ b("pre", {
|
|
1249
1091
|
className: "j-code-block__pre",
|
|
1250
1092
|
children: /* @__PURE__ */ b("code", { children: e })
|
|
@@ -1253,7 +1095,7 @@ function We({ code: e, language: t, filename: n, className: r = "" }) {
|
|
|
1253
1095
|
}
|
|
1254
1096
|
//#endregion
|
|
1255
1097
|
//#region src/ui/jimboSectionHeader.tsx
|
|
1256
|
-
function
|
|
1098
|
+
function Ie({ label: e, tone: t = "blue", className: n = "" }) {
|
|
1257
1099
|
return /* @__PURE__ */ x("div", {
|
|
1258
1100
|
className: `j-section-header ${n}`,
|
|
1259
1101
|
children: [/* @__PURE__ */ b("div", {
|
|
@@ -1264,7 +1106,7 @@ function Ge({ label: e, tone: t = "blue", className: n = "" }) {
|
|
|
1264
1106
|
}
|
|
1265
1107
|
//#endregion
|
|
1266
1108
|
//#region src/ui/jimboInfoCard.tsx
|
|
1267
|
-
function
|
|
1109
|
+
function Le({ tone: e, children: t, className: n = "", ...r }) {
|
|
1268
1110
|
return /* @__PURE__ */ b("div", {
|
|
1269
1111
|
className: `j-info-card ${e ? `j-border--${e}` : ""} ${n}`,
|
|
1270
1112
|
style: e ? { borderColor: void 0 } : void 0,
|
|
@@ -1272,25 +1114,25 @@ function Ke({ tone: e, children: t, className: n = "", ...r }) {
|
|
|
1272
1114
|
children: t
|
|
1273
1115
|
});
|
|
1274
1116
|
}
|
|
1275
|
-
function
|
|
1117
|
+
function Re({ children: e, className: t = "" }) {
|
|
1276
1118
|
return /* @__PURE__ */ b("div", {
|
|
1277
1119
|
className: `j-info-card__body ${t}`,
|
|
1278
1120
|
children: e
|
|
1279
1121
|
});
|
|
1280
1122
|
}
|
|
1281
|
-
function
|
|
1123
|
+
function ze({ children: e, className: t = "" }) {
|
|
1282
1124
|
return /* @__PURE__ */ b("div", {
|
|
1283
1125
|
className: `j-info-card__title ${t}`,
|
|
1284
1126
|
children: e
|
|
1285
1127
|
});
|
|
1286
1128
|
}
|
|
1287
|
-
function
|
|
1129
|
+
function Be({ children: e, className: t = "" }) {
|
|
1288
1130
|
return /* @__PURE__ */ b("div", {
|
|
1289
1131
|
className: `j-info-card__sub ${t}`,
|
|
1290
1132
|
children: e
|
|
1291
1133
|
});
|
|
1292
1134
|
}
|
|
1293
|
-
function
|
|
1135
|
+
function Ve({ children: e, className: t = "" }) {
|
|
1294
1136
|
return /* @__PURE__ */ b("div", {
|
|
1295
1137
|
className: `j-info-card__aside ${t}`,
|
|
1296
1138
|
children: e
|
|
@@ -1298,8 +1140,8 @@ function Xe({ children: e, className: t = "" }) {
|
|
|
1298
1140
|
}
|
|
1299
1141
|
//#endregion
|
|
1300
1142
|
//#region src/ui/showcase.tsx
|
|
1301
|
-
function
|
|
1302
|
-
return /* @__PURE__ */ x(
|
|
1143
|
+
function He({ title: e = "Balatro", subtitle: t = "Seed Curator", hotFilters: n = [], recentFinds: r = [], mcpInfo: i, onNewSearch: a, onBrowseFilters: o, onFilterClick: s }) {
|
|
1144
|
+
return /* @__PURE__ */ x(Se, { children: [/* @__PURE__ */ x("div", {
|
|
1303
1145
|
style: {
|
|
1304
1146
|
padding: "12px 12px 8px",
|
|
1305
1147
|
display: "flex",
|
|
@@ -1309,11 +1151,11 @@ function Ze({ title: e = "Balatro", subtitle: t = "Seed Curator", hotFilters: n
|
|
|
1309
1151
|
children: [
|
|
1310
1152
|
/* @__PURE__ */ x("div", {
|
|
1311
1153
|
className: "j-text-center",
|
|
1312
|
-
children: [/* @__PURE__ */ b(
|
|
1154
|
+
children: [/* @__PURE__ */ b(N, {
|
|
1313
1155
|
size: "display",
|
|
1314
1156
|
tone: "gold",
|
|
1315
1157
|
children: e
|
|
1316
|
-
}), /* @__PURE__ */ b(
|
|
1158
|
+
}), /* @__PURE__ */ b(N, {
|
|
1317
1159
|
size: "micro",
|
|
1318
1160
|
tone: "grey",
|
|
1319
1161
|
style: { letterSpacing: 1 },
|
|
@@ -1328,23 +1170,23 @@ function Ze({ title: e = "Balatro", subtitle: t = "Seed Curator", hotFilters: n
|
|
|
1328
1170
|
borderRadius: 4,
|
|
1329
1171
|
border: "1px solid var(--j-panel-edge)"
|
|
1330
1172
|
},
|
|
1331
|
-
children: [/* @__PURE__ */ b(
|
|
1173
|
+
children: [/* @__PURE__ */ b(N, {
|
|
1332
1174
|
size: "micro",
|
|
1333
1175
|
tone: "purple",
|
|
1334
1176
|
children: i.engine
|
|
1335
|
-
}), /* @__PURE__ */ b(
|
|
1177
|
+
}), /* @__PURE__ */ b(N, {
|
|
1336
1178
|
size: "micro",
|
|
1337
1179
|
tone: "white",
|
|
1338
1180
|
children: i.features
|
|
1339
1181
|
})]
|
|
1340
1182
|
}),
|
|
1341
|
-
n.length > 0 && /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(
|
|
1183
|
+
n.length > 0 && /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(Ie, {
|
|
1342
1184
|
label: "Filters",
|
|
1343
1185
|
tone: "blue"
|
|
1344
1186
|
}), /* @__PURE__ */ b("div", {
|
|
1345
1187
|
className: "j-flex-col",
|
|
1346
1188
|
style: { gap: 4 },
|
|
1347
|
-
children: n.slice(0, 4).map((e, t) => /* @__PURE__ */ x(
|
|
1189
|
+
children: n.slice(0, 4).map((e, t) => /* @__PURE__ */ x(Le, {
|
|
1348
1190
|
tone: e.tone,
|
|
1349
1191
|
onClick: () => s?.(e, t),
|
|
1350
1192
|
style: { cursor: s ? "pointer" : void 0 },
|
|
@@ -1359,14 +1201,14 @@ function Ze({ title: e = "Balatro", subtitle: t = "Seed Curator", hotFilters: n
|
|
|
1359
1201
|
alignItems: "center",
|
|
1360
1202
|
justifyContent: "center"
|
|
1361
1203
|
},
|
|
1362
|
-
children: /* @__PURE__ */ b(
|
|
1204
|
+
children: /* @__PURE__ */ b(te, {
|
|
1363
1205
|
name: e,
|
|
1364
1206
|
width: 20
|
|
1365
1207
|
})
|
|
1366
1208
|
}, t))
|
|
1367
1209
|
}),
|
|
1368
|
-
/* @__PURE__ */ x(
|
|
1369
|
-
/* @__PURE__ */ b(
|
|
1210
|
+
/* @__PURE__ */ x(Re, { children: [/* @__PURE__ */ b(ze, { children: e.name }), /* @__PURE__ */ x(Be, { children: ["by ", e.author] })] }),
|
|
1211
|
+
/* @__PURE__ */ b(Ve, { children: /* @__PURE__ */ b(N, {
|
|
1370
1212
|
size: "xs",
|
|
1371
1213
|
tone: e.tone === "gold" ? "gold" : e.tone,
|
|
1372
1214
|
children: e.hits
|
|
@@ -1374,7 +1216,7 @@ function Ze({ title: e = "Balatro", subtitle: t = "Seed Curator", hotFilters: n
|
|
|
1374
1216
|
]
|
|
1375
1217
|
}, t))
|
|
1376
1218
|
})] }),
|
|
1377
|
-
r.length > 0 && /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(
|
|
1219
|
+
r.length > 0 && /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(Ie, {
|
|
1378
1220
|
label: "Recent",
|
|
1379
1221
|
tone: "green"
|
|
1380
1222
|
}), /* @__PURE__ */ b("div", {
|
|
@@ -1392,17 +1234,17 @@ function Ze({ title: e = "Balatro", subtitle: t = "Seed Curator", hotFilters: n
|
|
|
1392
1234
|
padding: "1px 4px"
|
|
1393
1235
|
},
|
|
1394
1236
|
children: [
|
|
1395
|
-
/* @__PURE__ */ b(
|
|
1237
|
+
/* @__PURE__ */ b(N, {
|
|
1396
1238
|
size: "micro",
|
|
1397
1239
|
tone: "gold",
|
|
1398
1240
|
children: e.seed
|
|
1399
1241
|
}),
|
|
1400
|
-
/* @__PURE__ */ b(
|
|
1242
|
+
/* @__PURE__ */ b(N, {
|
|
1401
1243
|
size: "micro",
|
|
1402
1244
|
tone: "grey",
|
|
1403
1245
|
children: e.filterName
|
|
1404
1246
|
}),
|
|
1405
|
-
e.score > 0 && /* @__PURE__ */ x(
|
|
1247
|
+
e.score > 0 && /* @__PURE__ */ x(N, {
|
|
1406
1248
|
size: "micro",
|
|
1407
1249
|
tone: "green",
|
|
1408
1250
|
children: ["+", e.score]
|
|
@@ -1411,13 +1253,13 @@ function Ze({ title: e = "Balatro", subtitle: t = "Seed Curator", hotFilters: n
|
|
|
1411
1253
|
}, t))
|
|
1412
1254
|
})] })
|
|
1413
1255
|
]
|
|
1414
|
-
}), /* @__PURE__ */ x(
|
|
1256
|
+
}), /* @__PURE__ */ x(we, { children: [/* @__PURE__ */ b(P, {
|
|
1415
1257
|
tone: "red",
|
|
1416
1258
|
fullWidth: !0,
|
|
1417
1259
|
size: "lg",
|
|
1418
1260
|
onClick: a,
|
|
1419
1261
|
children: "New Search"
|
|
1420
|
-
}), /* @__PURE__ */ b(
|
|
1262
|
+
}), /* @__PURE__ */ b(P, {
|
|
1421
1263
|
tone: "blue",
|
|
1422
1264
|
fullWidth: !0,
|
|
1423
1265
|
size: "lg",
|
|
@@ -1427,20 +1269,20 @@ function Ze({ title: e = "Balatro", subtitle: t = "Seed Curator", hotFilters: n
|
|
|
1427
1269
|
}
|
|
1428
1270
|
//#endregion
|
|
1429
1271
|
//#region src/ui/jimboCopyRow.tsx
|
|
1430
|
-
function
|
|
1272
|
+
function Ue({ value: e, label: t }) {
|
|
1431
1273
|
return /* @__PURE__ */ x("div", {
|
|
1432
1274
|
className: "j-copy-row",
|
|
1433
|
-
children: [t ? /* @__PURE__ */ b(
|
|
1275
|
+
children: [t ? /* @__PURE__ */ b(N, {
|
|
1434
1276
|
size: "xs",
|
|
1435
1277
|
tone: "grey",
|
|
1436
1278
|
className: "j-copy-row__label",
|
|
1437
1279
|
children: t
|
|
1438
|
-
}) : null, /* @__PURE__ */ b(
|
|
1280
|
+
}) : null, /* @__PURE__ */ b(be, { value: e })]
|
|
1439
1281
|
});
|
|
1440
1282
|
}
|
|
1441
1283
|
//#endregion
|
|
1442
1284
|
//#region src/ui/jimboWordmark.tsx
|
|
1443
|
-
function
|
|
1285
|
+
function We({ title: e, subtitle: t, className: n = "" }) {
|
|
1444
1286
|
return /* @__PURE__ */ x("div", {
|
|
1445
1287
|
className: `j-wordmark ${n}`,
|
|
1446
1288
|
children: [/* @__PURE__ */ b("div", {
|
|
@@ -1454,7 +1296,7 @@ function $e({ title: e, subtitle: t, className: n = "" }) {
|
|
|
1454
1296
|
}
|
|
1455
1297
|
//#endregion
|
|
1456
1298
|
//#region src/ui/jimboStatGrid.tsx
|
|
1457
|
-
function
|
|
1299
|
+
function Ge({ items: e, className: t = "", ...n }) {
|
|
1458
1300
|
return /* @__PURE__ */ b("div", {
|
|
1459
1301
|
className: `j-stat-grid ${t}`,
|
|
1460
1302
|
...n,
|
|
@@ -1469,7 +1311,7 @@ function et({ items: e, className: t = "", ...n }) {
|
|
|
1469
1311
|
}
|
|
1470
1312
|
//#endregion
|
|
1471
1313
|
//#region src/ui/jimboLayout.tsx
|
|
1472
|
-
function
|
|
1314
|
+
function Ke({ gap: e, align: t, justify: n, className: r = "", ...i }) {
|
|
1473
1315
|
return /* @__PURE__ */ b("div", {
|
|
1474
1316
|
className: [
|
|
1475
1317
|
"j-stack",
|
|
@@ -1481,7 +1323,7 @@ function tt({ gap: e, align: t, justify: n, className: r = "", ...i }) {
|
|
|
1481
1323
|
...i
|
|
1482
1324
|
});
|
|
1483
1325
|
}
|
|
1484
|
-
function
|
|
1326
|
+
function qe({ gap: e, align: t, justify: n, wrap: r = !1, className: i = "", ...a }) {
|
|
1485
1327
|
return /* @__PURE__ */ b("div", {
|
|
1486
1328
|
className: [
|
|
1487
1329
|
"j-row",
|
|
@@ -1496,7 +1338,7 @@ function nt({ gap: e, align: t, justify: n, wrap: r = !1, className: i = "", ...
|
|
|
1496
1338
|
}
|
|
1497
1339
|
//#endregion
|
|
1498
1340
|
//#region src/ui/jimboInset.tsx
|
|
1499
|
-
function
|
|
1341
|
+
function Je({ children: e, className: t = "", ...n }) {
|
|
1500
1342
|
return /* @__PURE__ */ b("div", {
|
|
1501
1343
|
className: `j-inset ${t}`.trim(),
|
|
1502
1344
|
...n,
|
|
@@ -1505,13 +1347,13 @@ function rt({ children: e, className: t = "", ...n }) {
|
|
|
1505
1347
|
}
|
|
1506
1348
|
//#endregion
|
|
1507
1349
|
//#region src/ui/JimboPanelSpinner.tsx
|
|
1508
|
-
function
|
|
1350
|
+
function Ye({ label: e, title: t, description: n, media: r, meta: i, className: a = "", style: o, onPrev: s, onNext: c, prevDisabled: l = !1, nextDisabled: u = !1 }) {
|
|
1509
1351
|
return /* @__PURE__ */ x("div", {
|
|
1510
1352
|
className: `j-panel-spinner ${a}`.trim(),
|
|
1511
1353
|
style: o,
|
|
1512
1354
|
children: [e ? /* @__PURE__ */ b("div", {
|
|
1513
1355
|
className: "j-panel-spinner__label",
|
|
1514
|
-
children: /* @__PURE__ */ b(
|
|
1356
|
+
children: /* @__PURE__ */ b(N, {
|
|
1515
1357
|
size: "xs",
|
|
1516
1358
|
tone: "grey",
|
|
1517
1359
|
children: e
|
|
@@ -1519,7 +1361,7 @@ function it({ label: e, title: t, description: n, media: r, meta: i, className:
|
|
|
1519
1361
|
}) : null, /* @__PURE__ */ x("div", {
|
|
1520
1362
|
className: "j-panel-spinner__row",
|
|
1521
1363
|
children: [
|
|
1522
|
-
/* @__PURE__ */ b(
|
|
1364
|
+
/* @__PURE__ */ b(P, {
|
|
1523
1365
|
tone: "red",
|
|
1524
1366
|
size: "lg",
|
|
1525
1367
|
className: "j-panel-spinner__arrow j-panel-spinner__arrow--left",
|
|
@@ -1537,7 +1379,7 @@ function it({ label: e, title: t, description: n, media: r, meta: i, className:
|
|
|
1537
1379
|
}) : null,
|
|
1538
1380
|
/* @__PURE__ */ b("div", {
|
|
1539
1381
|
className: "j-panel-spinner__title",
|
|
1540
|
-
children: /* @__PURE__ */ b(
|
|
1382
|
+
children: /* @__PURE__ */ b(N, {
|
|
1541
1383
|
size: "md",
|
|
1542
1384
|
tone: "white",
|
|
1543
1385
|
children: t
|
|
@@ -1549,7 +1391,7 @@ function it({ label: e, title: t, description: n, media: r, meta: i, className:
|
|
|
1549
1391
|
}) : null,
|
|
1550
1392
|
n ? /* @__PURE__ */ b("div", {
|
|
1551
1393
|
className: "j-panel-spinner__description",
|
|
1552
|
-
children: /* @__PURE__ */ b(
|
|
1394
|
+
children: /* @__PURE__ */ b(N, {
|
|
1553
1395
|
size: "micro",
|
|
1554
1396
|
tone: "grey",
|
|
1555
1397
|
children: n
|
|
@@ -1557,7 +1399,7 @@ function it({ label: e, title: t, description: n, media: r, meta: i, className:
|
|
|
1557
1399
|
}) : null
|
|
1558
1400
|
]
|
|
1559
1401
|
}),
|
|
1560
|
-
/* @__PURE__ */ b(
|
|
1402
|
+
/* @__PURE__ */ b(P, {
|
|
1561
1403
|
tone: "red",
|
|
1562
1404
|
size: "lg",
|
|
1563
1405
|
className: "j-panel-spinner__arrow j-panel-spinner__arrow--right",
|
|
@@ -1572,106 +1414,106 @@ function it({ label: e, title: t, description: n, media: r, meta: i, className:
|
|
|
1572
1414
|
}
|
|
1573
1415
|
//#endregion
|
|
1574
1416
|
//#region src/ui/JimboDeckAndStakeSelectorModal.tsx
|
|
1575
|
-
function
|
|
1417
|
+
function Xe(e, t, n) {
|
|
1576
1418
|
let r = e.indexOf(t);
|
|
1577
1419
|
return r < 0 ? e[0] ?? t : e[(r + n + e.length) % e.length] ?? t;
|
|
1578
1420
|
}
|
|
1579
|
-
function
|
|
1580
|
-
return /* @__PURE__ */ b(
|
|
1421
|
+
function Ze({ open: e, onClose: t, decks: n, stakes: r, deck: i, stake: a, onDeckChange: o, onStakeChange: s, title: c = "Search seeds for", deckDescription: l, stakeDescription: u }) {
|
|
1422
|
+
return /* @__PURE__ */ b(ue, {
|
|
1581
1423
|
open: e,
|
|
1582
1424
|
onClose: t,
|
|
1583
1425
|
title: c,
|
|
1584
|
-
children: /* @__PURE__ */ x(
|
|
1426
|
+
children: /* @__PURE__ */ x(Ke, {
|
|
1585
1427
|
gap: "md",
|
|
1586
1428
|
align: "stretch",
|
|
1587
|
-
children: [/* @__PURE__ */ b(
|
|
1429
|
+
children: [/* @__PURE__ */ b(Ye, {
|
|
1588
1430
|
label: "Deck",
|
|
1589
1431
|
title: `${i} Deck`,
|
|
1590
1432
|
description: l ? l(i) : " ",
|
|
1591
|
-
media: /* @__PURE__ */ b(
|
|
1433
|
+
media: /* @__PURE__ */ b(ae, {
|
|
1592
1434
|
deck: i,
|
|
1593
1435
|
width: 64
|
|
1594
1436
|
}),
|
|
1595
|
-
onPrev: () => o(
|
|
1596
|
-
onNext: () => o(
|
|
1597
|
-
}), /* @__PURE__ */ b(
|
|
1437
|
+
onPrev: () => o(Xe(n, i, -1)),
|
|
1438
|
+
onNext: () => o(Xe(n, i, 1))
|
|
1439
|
+
}), /* @__PURE__ */ b(Ye, {
|
|
1598
1440
|
label: "Stake",
|
|
1599
1441
|
title: `${a} Stake`,
|
|
1600
1442
|
description: u ? u(a) : " ",
|
|
1601
|
-
media: /* @__PURE__ */ b(
|
|
1443
|
+
media: /* @__PURE__ */ b(re, {
|
|
1602
1444
|
stake: a,
|
|
1603
1445
|
width: 48
|
|
1604
1446
|
}),
|
|
1605
|
-
onPrev: () => s(
|
|
1606
|
-
onNext: () => s(
|
|
1447
|
+
onPrev: () => s(Xe(r, a, -1)),
|
|
1448
|
+
onNext: () => s(Xe(r, a, 1))
|
|
1607
1449
|
})]
|
|
1608
1450
|
})
|
|
1609
1451
|
});
|
|
1610
1452
|
}
|
|
1611
1453
|
//#endregion
|
|
1612
1454
|
//#region node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/dist/js-yaml.mjs
|
|
1613
|
-
function
|
|
1455
|
+
function Qe(e) {
|
|
1614
1456
|
return e == null;
|
|
1615
1457
|
}
|
|
1616
|
-
function
|
|
1458
|
+
function $e(e) {
|
|
1617
1459
|
return typeof e == "object" && !!e;
|
|
1618
1460
|
}
|
|
1619
|
-
function
|
|
1620
|
-
return Array.isArray(e) ? e :
|
|
1461
|
+
function et(e) {
|
|
1462
|
+
return Array.isArray(e) ? e : Qe(e) ? [] : [e];
|
|
1621
1463
|
}
|
|
1622
|
-
function
|
|
1464
|
+
function tt(e, t) {
|
|
1623
1465
|
var n, r, i, a;
|
|
1624
1466
|
if (t) for (a = Object.keys(t), n = 0, r = a.length; n < r; n += 1) i = a[n], e[i] = t[i];
|
|
1625
1467
|
return e;
|
|
1626
1468
|
}
|
|
1627
|
-
function
|
|
1469
|
+
function nt(e, t) {
|
|
1628
1470
|
var n = "", r;
|
|
1629
1471
|
for (r = 0; r < t; r += 1) n += e;
|
|
1630
1472
|
return n;
|
|
1631
1473
|
}
|
|
1632
|
-
function
|
|
1474
|
+
function rt(e) {
|
|
1633
1475
|
return e === 0 && 1 / e == -Infinity;
|
|
1634
1476
|
}
|
|
1635
|
-
var
|
|
1636
|
-
isNothing:
|
|
1637
|
-
isObject:
|
|
1638
|
-
toArray:
|
|
1639
|
-
repeat:
|
|
1640
|
-
isNegativeZero:
|
|
1641
|
-
extend:
|
|
1477
|
+
var I = {
|
|
1478
|
+
isNothing: Qe,
|
|
1479
|
+
isObject: $e,
|
|
1480
|
+
toArray: et,
|
|
1481
|
+
repeat: nt,
|
|
1482
|
+
isNegativeZero: rt,
|
|
1483
|
+
extend: tt
|
|
1642
1484
|
};
|
|
1643
|
-
function
|
|
1485
|
+
function it(e, t) {
|
|
1644
1486
|
var n = "", r = e.reason || "(unknown reason)";
|
|
1645
1487
|
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;
|
|
1646
1488
|
}
|
|
1647
|
-
function
|
|
1648
|
-
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message =
|
|
1489
|
+
function at(e, t) {
|
|
1490
|
+
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = it(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = (/* @__PURE__ */ Error()).stack || "";
|
|
1649
1491
|
}
|
|
1650
|
-
|
|
1651
|
-
return this.name + ": " +
|
|
1492
|
+
at.prototype = Object.create(Error.prototype), at.prototype.constructor = at, at.prototype.toString = function(e) {
|
|
1493
|
+
return this.name + ": " + it(this, e);
|
|
1652
1494
|
};
|
|
1653
|
-
var
|
|
1654
|
-
function
|
|
1495
|
+
var L = at;
|
|
1496
|
+
function ot(e, t, n, r, i) {
|
|
1655
1497
|
var a = "", o = "", s = Math.floor(i / 2) - 1;
|
|
1656
1498
|
return r - t > s && (a = " ... ", t = r - s + a.length), n - r > s && (o = " ...", n = r + s - o.length), {
|
|
1657
1499
|
str: a + e.slice(t, n).replace(/\t/g, "→") + o,
|
|
1658
1500
|
pos: r - t + a.length
|
|
1659
1501
|
};
|
|
1660
1502
|
}
|
|
1661
|
-
function
|
|
1662
|
-
return
|
|
1503
|
+
function st(e, t) {
|
|
1504
|
+
return I.repeat(" ", t - e.length) + e;
|
|
1663
1505
|
}
|
|
1664
|
-
function
|
|
1506
|
+
function ct(e, t) {
|
|
1665
1507
|
if (t = Object.create(t || null), !e.buffer) return null;
|
|
1666
1508
|
t.maxLength ||= 79, typeof t.indent != "number" && (t.indent = 1), typeof t.linesBefore != "number" && (t.linesBefore = 3), typeof t.linesAfter != "number" && (t.linesAfter = 2);
|
|
1667
1509
|
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);
|
|
1668
1510
|
o < 0 && (o = r.length - 1);
|
|
1669
1511
|
var s = "", c, l, u = Math.min(e.line + t.linesAfter, i.length).toString().length, d = t.maxLength - (t.indent + u + 3);
|
|
1670
|
-
for (c = 1; c <= t.linesBefore && !(o - c < 0); c++) l =
|
|
1671
|
-
for (l =
|
|
1512
|
+
for (c = 1; c <= t.linesBefore && !(o - c < 0); c++) l = ot(e.buffer, r[o - c], i[o - c], e.position - (r[o] - r[o - c]), d), s = I.repeat(" ", t.indent) + st((e.line - c + 1).toString(), u) + " | " + l.str + "\n" + s;
|
|
1513
|
+
for (l = ot(e.buffer, r[o], i[o], e.position, d), s += I.repeat(" ", t.indent) + st((e.line + 1).toString(), u) + " | " + l.str + "\n", s += I.repeat("-", t.indent + u + 3 + l.pos) + "^\n", c = 1; c <= t.linesAfter && !(o + c >= i.length); c++) l = ot(e.buffer, r[o + c], i[o + c], e.position - (r[o] - r[o + c]), d), s += I.repeat(" ", t.indent) + st((e.line + c + 1).toString(), u) + " | " + l.str + "\n";
|
|
1672
1514
|
return s.replace(/\n$/, "");
|
|
1673
1515
|
}
|
|
1674
|
-
var
|
|
1516
|
+
var lt = ct, ut = [
|
|
1675
1517
|
"kind",
|
|
1676
1518
|
"multi",
|
|
1677
1519
|
"resolve",
|
|
@@ -1682,12 +1524,12 @@ var vt = _t, yt = [
|
|
|
1682
1524
|
"representName",
|
|
1683
1525
|
"defaultStyle",
|
|
1684
1526
|
"styleAliases"
|
|
1685
|
-
],
|
|
1527
|
+
], dt = [
|
|
1686
1528
|
"scalar",
|
|
1687
1529
|
"sequence",
|
|
1688
1530
|
"mapping"
|
|
1689
1531
|
];
|
|
1690
|
-
function
|
|
1532
|
+
function ft(e) {
|
|
1691
1533
|
var t = {};
|
|
1692
1534
|
return e !== null && Object.keys(e).forEach(function(n) {
|
|
1693
1535
|
e[n].forEach(function(e) {
|
|
@@ -1695,17 +1537,17 @@ function xt(e) {
|
|
|
1695
1537
|
});
|
|
1696
1538
|
}), t;
|
|
1697
1539
|
}
|
|
1698
|
-
function
|
|
1540
|
+
function pt(e, t) {
|
|
1699
1541
|
if (t ||= {}, Object.keys(t).forEach(function(t) {
|
|
1700
|
-
if (
|
|
1542
|
+
if (ut.indexOf(t) === -1) throw new L("Unknown option \"" + t + "\" is met in definition of \"" + e + "\" YAML type.");
|
|
1701
1543
|
}), this.options = t, this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function() {
|
|
1702
1544
|
return !0;
|
|
1703
1545
|
}, this.construct = t.construct || function(e) {
|
|
1704
1546
|
return e;
|
|
1705
|
-
}, 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 =
|
|
1547
|
+
}, 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 = ft(t.styleAliases || null), dt.indexOf(this.kind) === -1) throw new L("Unknown kind \"" + this.kind + "\" is specified for \"" + e + "\" YAML type.");
|
|
1706
1548
|
}
|
|
1707
|
-
var
|
|
1708
|
-
function
|
|
1549
|
+
var R = pt;
|
|
1550
|
+
function mt(e, t) {
|
|
1709
1551
|
var n = [];
|
|
1710
1552
|
return e[t].forEach(function(e) {
|
|
1711
1553
|
var t = n.length;
|
|
@@ -1714,7 +1556,7 @@ function Ct(e, t) {
|
|
|
1714
1556
|
}), n[t] = e;
|
|
1715
1557
|
}), n;
|
|
1716
1558
|
}
|
|
1717
|
-
function
|
|
1559
|
+
function ht() {
|
|
1718
1560
|
var e = {
|
|
1719
1561
|
scalar: {},
|
|
1720
1562
|
sequence: {},
|
|
@@ -1733,61 +1575,61 @@ function wt() {
|
|
|
1733
1575
|
for (t = 0, n = arguments.length; t < n; t += 1) arguments[t].forEach(r);
|
|
1734
1576
|
return e;
|
|
1735
1577
|
}
|
|
1736
|
-
function
|
|
1578
|
+
function gt(e) {
|
|
1737
1579
|
return this.extend(e);
|
|
1738
1580
|
}
|
|
1739
|
-
|
|
1581
|
+
gt.prototype.extend = function(e) {
|
|
1740
1582
|
var t = [], n = [];
|
|
1741
|
-
if (e instanceof
|
|
1583
|
+
if (e instanceof R) n.push(e);
|
|
1742
1584
|
else if (Array.isArray(e)) n = n.concat(e);
|
|
1743
1585
|
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));
|
|
1744
|
-
else throw new
|
|
1586
|
+
else throw new L("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
1745
1587
|
t.forEach(function(e) {
|
|
1746
|
-
if (!(e instanceof
|
|
1747
|
-
if (e.loadKind && e.loadKind !== "scalar") throw new
|
|
1748
|
-
if (e.multi) throw new
|
|
1588
|
+
if (!(e instanceof R)) throw new L("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1589
|
+
if (e.loadKind && e.loadKind !== "scalar") throw new L("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
1590
|
+
if (e.multi) throw new L("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
1749
1591
|
}), n.forEach(function(e) {
|
|
1750
|
-
if (!(e instanceof
|
|
1592
|
+
if (!(e instanceof R)) throw new L("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1751
1593
|
});
|
|
1752
|
-
var r = Object.create(
|
|
1753
|
-
return r.implicit = (this.implicit || []).concat(t), r.explicit = (this.explicit || []).concat(n), r.compiledImplicit =
|
|
1594
|
+
var r = Object.create(gt.prototype);
|
|
1595
|
+
return r.implicit = (this.implicit || []).concat(t), r.explicit = (this.explicit || []).concat(n), r.compiledImplicit = mt(r, "implicit"), r.compiledExplicit = mt(r, "explicit"), r.compiledTypeMap = ht(r.compiledImplicit, r.compiledExplicit), r;
|
|
1754
1596
|
};
|
|
1755
|
-
var
|
|
1597
|
+
var _t = gt, vt = new R("tag:yaml.org,2002:str", {
|
|
1756
1598
|
kind: "scalar",
|
|
1757
1599
|
construct: function(e) {
|
|
1758
1600
|
return e === null ? "" : e;
|
|
1759
1601
|
}
|
|
1760
|
-
}),
|
|
1602
|
+
}), yt = new R("tag:yaml.org,2002:seq", {
|
|
1761
1603
|
kind: "sequence",
|
|
1762
1604
|
construct: function(e) {
|
|
1763
1605
|
return e === null ? [] : e;
|
|
1764
1606
|
}
|
|
1765
|
-
}),
|
|
1607
|
+
}), bt = new R("tag:yaml.org,2002:map", {
|
|
1766
1608
|
kind: "mapping",
|
|
1767
1609
|
construct: function(e) {
|
|
1768
1610
|
return e === null ? {} : e;
|
|
1769
1611
|
}
|
|
1770
|
-
}),
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1612
|
+
}), xt = new _t({ explicit: [
|
|
1613
|
+
vt,
|
|
1614
|
+
yt,
|
|
1615
|
+
bt
|
|
1774
1616
|
] });
|
|
1775
|
-
function
|
|
1617
|
+
function St(e) {
|
|
1776
1618
|
if (e === null) return !0;
|
|
1777
1619
|
var t = e.length;
|
|
1778
1620
|
return t === 1 && e === "~" || t === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
1779
1621
|
}
|
|
1780
|
-
function
|
|
1622
|
+
function Ct() {
|
|
1781
1623
|
return null;
|
|
1782
1624
|
}
|
|
1783
|
-
function
|
|
1625
|
+
function wt(e) {
|
|
1784
1626
|
return e === null;
|
|
1785
1627
|
}
|
|
1786
|
-
var
|
|
1628
|
+
var Tt = new R("tag:yaml.org,2002:null", {
|
|
1787
1629
|
kind: "scalar",
|
|
1788
|
-
resolve:
|
|
1789
|
-
construct:
|
|
1790
|
-
predicate:
|
|
1630
|
+
resolve: St,
|
|
1631
|
+
construct: Ct,
|
|
1632
|
+
predicate: wt,
|
|
1791
1633
|
represent: {
|
|
1792
1634
|
canonical: function() {
|
|
1793
1635
|
return "~";
|
|
@@ -1807,22 +1649,22 @@ var Pt = new B("tag:yaml.org,2002:null", {
|
|
|
1807
1649
|
},
|
|
1808
1650
|
defaultStyle: "lowercase"
|
|
1809
1651
|
});
|
|
1810
|
-
function
|
|
1652
|
+
function Et(e) {
|
|
1811
1653
|
if (e === null) return !1;
|
|
1812
1654
|
var t = e.length;
|
|
1813
1655
|
return t === 4 && (e === "true" || e === "True" || e === "TRUE") || t === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
1814
1656
|
}
|
|
1815
|
-
function
|
|
1657
|
+
function Dt(e) {
|
|
1816
1658
|
return e === "true" || e === "True" || e === "TRUE";
|
|
1817
1659
|
}
|
|
1818
|
-
function
|
|
1660
|
+
function Ot(e) {
|
|
1819
1661
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
1820
1662
|
}
|
|
1821
|
-
var
|
|
1663
|
+
var kt = new R("tag:yaml.org,2002:bool", {
|
|
1822
1664
|
kind: "scalar",
|
|
1823
|
-
resolve:
|
|
1824
|
-
construct:
|
|
1825
|
-
predicate:
|
|
1665
|
+
resolve: Et,
|
|
1666
|
+
construct: Dt,
|
|
1667
|
+
predicate: Ot,
|
|
1826
1668
|
represent: {
|
|
1827
1669
|
lowercase: function(e) {
|
|
1828
1670
|
return e ? "true" : "false";
|
|
@@ -1836,16 +1678,16 @@ var Rt = new B("tag:yaml.org,2002:bool", {
|
|
|
1836
1678
|
},
|
|
1837
1679
|
defaultStyle: "lowercase"
|
|
1838
1680
|
});
|
|
1839
|
-
function
|
|
1681
|
+
function At(e) {
|
|
1840
1682
|
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
1841
1683
|
}
|
|
1842
|
-
function
|
|
1684
|
+
function jt(e) {
|
|
1843
1685
|
return 48 <= e && e <= 55;
|
|
1844
1686
|
}
|
|
1845
|
-
function
|
|
1687
|
+
function Mt(e) {
|
|
1846
1688
|
return 48 <= e && e <= 57;
|
|
1847
1689
|
}
|
|
1848
|
-
function
|
|
1690
|
+
function Nt(e) {
|
|
1849
1691
|
if (e === null) return !1;
|
|
1850
1692
|
var t = e.length, n = 0, r = !1, i;
|
|
1851
1693
|
if (!t) return !1;
|
|
@@ -1860,14 +1702,14 @@ function Ht(e) {
|
|
|
1860
1702
|
}
|
|
1861
1703
|
if (i === "x") {
|
|
1862
1704
|
for (n++; n < t; n++) if (i = e[n], i !== "_") {
|
|
1863
|
-
if (!
|
|
1705
|
+
if (!At(e.charCodeAt(n))) return !1;
|
|
1864
1706
|
r = !0;
|
|
1865
1707
|
}
|
|
1866
1708
|
return r && i !== "_";
|
|
1867
1709
|
}
|
|
1868
1710
|
if (i === "o") {
|
|
1869
1711
|
for (n++; n < t; n++) if (i = e[n], i !== "_") {
|
|
1870
|
-
if (!
|
|
1712
|
+
if (!jt(e.charCodeAt(n))) return !1;
|
|
1871
1713
|
r = !0;
|
|
1872
1714
|
}
|
|
1873
1715
|
return r && i !== "_";
|
|
@@ -1875,12 +1717,12 @@ function Ht(e) {
|
|
|
1875
1717
|
}
|
|
1876
1718
|
if (i === "_") return !1;
|
|
1877
1719
|
for (; n < t; n++) if (i = e[n], i !== "_") {
|
|
1878
|
-
if (!
|
|
1720
|
+
if (!Mt(e.charCodeAt(n))) return !1;
|
|
1879
1721
|
r = !0;
|
|
1880
1722
|
}
|
|
1881
1723
|
return !(!r || i === "_");
|
|
1882
1724
|
}
|
|
1883
|
-
function
|
|
1725
|
+
function Pt(e) {
|
|
1884
1726
|
var t = e, n = 1, r;
|
|
1885
1727
|
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;
|
|
1886
1728
|
if (r === "0") {
|
|
@@ -1890,14 +1732,14 @@ function Ut(e) {
|
|
|
1890
1732
|
}
|
|
1891
1733
|
return n * parseInt(t, 10);
|
|
1892
1734
|
}
|
|
1893
|
-
function
|
|
1894
|
-
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 == 0 && !
|
|
1735
|
+
function Ft(e) {
|
|
1736
|
+
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 == 0 && !I.isNegativeZero(e);
|
|
1895
1737
|
}
|
|
1896
|
-
var
|
|
1738
|
+
var It = new R("tag:yaml.org,2002:int", {
|
|
1897
1739
|
kind: "scalar",
|
|
1898
|
-
resolve:
|
|
1899
|
-
construct:
|
|
1900
|
-
predicate:
|
|
1740
|
+
resolve: Nt,
|
|
1741
|
+
construct: Pt,
|
|
1742
|
+
predicate: Ft,
|
|
1901
1743
|
represent: {
|
|
1902
1744
|
binary: function(e) {
|
|
1903
1745
|
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
@@ -1919,16 +1761,16 @@ var Gt = new B("tag:yaml.org,2002:int", {
|
|
|
1919
1761
|
decimal: [10, "dec"],
|
|
1920
1762
|
hexadecimal: [16, "hex"]
|
|
1921
1763
|
}
|
|
1922
|
-
}),
|
|
1923
|
-
function
|
|
1924
|
-
return !(e === null || !
|
|
1764
|
+
}), Lt = /* @__PURE__ */ RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
1765
|
+
function Rt(e) {
|
|
1766
|
+
return !(e === null || !Lt.test(e) || e[e.length - 1] === "_");
|
|
1925
1767
|
}
|
|
1926
|
-
function
|
|
1768
|
+
function zt(e) {
|
|
1927
1769
|
var t = e.replace(/_/g, "").toLowerCase(), n = t[0] === "-" ? -1 : 1;
|
|
1928
1770
|
return "+-".indexOf(t[0]) >= 0 && (t = t.slice(1)), t === ".inf" ? n === 1 ? Infinity : -Infinity : t === ".nan" ? NaN : n * parseFloat(t, 10);
|
|
1929
1771
|
}
|
|
1930
|
-
var
|
|
1931
|
-
function
|
|
1772
|
+
var Bt = /^[-+]?[0-9]+e/;
|
|
1773
|
+
function Vt(e, t) {
|
|
1932
1774
|
var n;
|
|
1933
1775
|
if (isNaN(e)) switch (t) {
|
|
1934
1776
|
case "lowercase": return ".nan";
|
|
@@ -1945,31 +1787,31 @@ function Xt(e, t) {
|
|
|
1945
1787
|
case "uppercase": return "-.INF";
|
|
1946
1788
|
case "camelcase": return "-.Inf";
|
|
1947
1789
|
}
|
|
1948
|
-
else if (
|
|
1949
|
-
return n = e.toString(10),
|
|
1790
|
+
else if (I.isNegativeZero(e)) return "-0.0";
|
|
1791
|
+
return n = e.toString(10), Bt.test(n) ? n.replace("e", ".e") : n;
|
|
1950
1792
|
}
|
|
1951
|
-
function
|
|
1952
|
-
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 != 0 ||
|
|
1793
|
+
function Ht(e) {
|
|
1794
|
+
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 != 0 || I.isNegativeZero(e));
|
|
1953
1795
|
}
|
|
1954
|
-
var
|
|
1796
|
+
var Ut = new R("tag:yaml.org,2002:float", {
|
|
1955
1797
|
kind: "scalar",
|
|
1956
|
-
resolve:
|
|
1957
|
-
construct:
|
|
1958
|
-
predicate:
|
|
1959
|
-
represent:
|
|
1798
|
+
resolve: Rt,
|
|
1799
|
+
construct: zt,
|
|
1800
|
+
predicate: Ht,
|
|
1801
|
+
represent: Vt,
|
|
1960
1802
|
defaultStyle: "lowercase"
|
|
1961
|
-
}),
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
] }),
|
|
1967
|
-
function
|
|
1968
|
-
return e === null ? !1 :
|
|
1803
|
+
}), Wt = xt.extend({ implicit: [
|
|
1804
|
+
Tt,
|
|
1805
|
+
kt,
|
|
1806
|
+
It,
|
|
1807
|
+
Ut
|
|
1808
|
+
] }), Gt = Wt, Kt = /* @__PURE__ */ RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"), qt = /* @__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]))?))?$");
|
|
1809
|
+
function Jt(e) {
|
|
1810
|
+
return e === null ? !1 : Kt.exec(e) !== null || qt.exec(e) !== null;
|
|
1969
1811
|
}
|
|
1970
|
-
function
|
|
1812
|
+
function Yt(e) {
|
|
1971
1813
|
var t, n, r, i, a, o, s, c = 0, l = null, u, d, f;
|
|
1972
|
-
if (t =
|
|
1814
|
+
if (t = Kt.exec(e), t === null && (t = qt.exec(e)), t === null) throw Error("Date resolve error");
|
|
1973
1815
|
if (n = +t[1], r = t[2] - 1, i = +t[3], !t[4]) return new Date(Date.UTC(n, r, i));
|
|
1974
1816
|
if (a = +t[4], o = +t[5], s = +t[6], t[7]) {
|
|
1975
1817
|
for (c = t[7].slice(0, 3); c.length < 3;) c += "0";
|
|
@@ -1977,58 +1819,58 @@ function an(e) {
|
|
|
1977
1819
|
}
|
|
1978
1820
|
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;
|
|
1979
1821
|
}
|
|
1980
|
-
function
|
|
1822
|
+
function Xt(e) {
|
|
1981
1823
|
return e.toISOString();
|
|
1982
1824
|
}
|
|
1983
|
-
var
|
|
1825
|
+
var Zt = new R("tag:yaml.org,2002:timestamp", {
|
|
1984
1826
|
kind: "scalar",
|
|
1985
|
-
resolve:
|
|
1986
|
-
construct:
|
|
1827
|
+
resolve: Jt,
|
|
1828
|
+
construct: Yt,
|
|
1987
1829
|
instanceOf: Date,
|
|
1988
|
-
represent:
|
|
1830
|
+
represent: Xt
|
|
1989
1831
|
});
|
|
1990
|
-
function
|
|
1832
|
+
function Qt(e) {
|
|
1991
1833
|
return e === "<<" || e === null;
|
|
1992
1834
|
}
|
|
1993
|
-
var
|
|
1835
|
+
var $t = new R("tag:yaml.org,2002:merge", {
|
|
1994
1836
|
kind: "scalar",
|
|
1995
|
-
resolve:
|
|
1996
|
-
}),
|
|
1997
|
-
function
|
|
1837
|
+
resolve: Qt
|
|
1838
|
+
}), en = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
|
|
1839
|
+
function tn(e) {
|
|
1998
1840
|
if (e === null) return !1;
|
|
1999
|
-
var t, n, r = 0, i = e.length, a =
|
|
1841
|
+
var t, n, r = 0, i = e.length, a = en;
|
|
2000
1842
|
for (n = 0; n < i; n++) if (t = a.indexOf(e.charAt(n)), !(t > 64)) {
|
|
2001
1843
|
if (t < 0) return !1;
|
|
2002
1844
|
r += 6;
|
|
2003
1845
|
}
|
|
2004
1846
|
return r % 8 == 0;
|
|
2005
1847
|
}
|
|
2006
|
-
function
|
|
2007
|
-
var t, n, r = e.replace(/[\r\n=]/g, ""), i = r.length, a =
|
|
1848
|
+
function nn(e) {
|
|
1849
|
+
var t, n, r = e.replace(/[\r\n=]/g, ""), i = r.length, a = en, o = 0, s = [];
|
|
2008
1850
|
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));
|
|
2009
1851
|
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);
|
|
2010
1852
|
}
|
|
2011
|
-
function
|
|
2012
|
-
var t = "", n = 0, r, i, a = e.length, o =
|
|
1853
|
+
function rn(e) {
|
|
1854
|
+
var t = "", n = 0, r, i, a = e.length, o = en;
|
|
2013
1855
|
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];
|
|
2014
1856
|
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;
|
|
2015
1857
|
}
|
|
2016
|
-
function
|
|
1858
|
+
function an(e) {
|
|
2017
1859
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
2018
1860
|
}
|
|
2019
|
-
var
|
|
1861
|
+
var on = new R("tag:yaml.org,2002:binary", {
|
|
2020
1862
|
kind: "scalar",
|
|
2021
|
-
resolve:
|
|
2022
|
-
construct:
|
|
2023
|
-
predicate:
|
|
2024
|
-
represent:
|
|
2025
|
-
}),
|
|
2026
|
-
function
|
|
1863
|
+
resolve: tn,
|
|
1864
|
+
construct: nn,
|
|
1865
|
+
predicate: an,
|
|
1866
|
+
represent: rn
|
|
1867
|
+
}), sn = Object.prototype.hasOwnProperty, cn = Object.prototype.toString;
|
|
1868
|
+
function ln(e) {
|
|
2027
1869
|
if (e === null) return !0;
|
|
2028
1870
|
var t = [], n, r, i, a, o, s = e;
|
|
2029
1871
|
for (n = 0, r = s.length; n < r; n += 1) {
|
|
2030
|
-
if (i = s[n], o = !1,
|
|
2031
|
-
for (a in i) if (
|
|
1872
|
+
if (i = s[n], o = !1, cn.call(i) !== "[object Object]") return !1;
|
|
1873
|
+
for (a in i) if (sn.call(i, a)) if (!o) o = !0;
|
|
2032
1874
|
else return !1;
|
|
2033
1875
|
if (!o) return !1;
|
|
2034
1876
|
if (t.indexOf(a) === -1) t.push(a);
|
|
@@ -2036,88 +1878,88 @@ function vn(e) {
|
|
|
2036
1878
|
}
|
|
2037
1879
|
return !0;
|
|
2038
1880
|
}
|
|
2039
|
-
function
|
|
1881
|
+
function un(e) {
|
|
2040
1882
|
return e === null ? [] : e;
|
|
2041
1883
|
}
|
|
2042
|
-
var
|
|
1884
|
+
var dn = new R("tag:yaml.org,2002:omap", {
|
|
2043
1885
|
kind: "sequence",
|
|
2044
|
-
resolve:
|
|
2045
|
-
construct:
|
|
2046
|
-
}),
|
|
2047
|
-
function
|
|
1886
|
+
resolve: ln,
|
|
1887
|
+
construct: un
|
|
1888
|
+
}), fn = Object.prototype.toString;
|
|
1889
|
+
function pn(e) {
|
|
2048
1890
|
if (e === null) return !0;
|
|
2049
1891
|
var t, n, r, i, a, o = e;
|
|
2050
1892
|
for (a = Array(o.length), t = 0, n = o.length; t < n; t += 1) {
|
|
2051
|
-
if (r = o[t],
|
|
1893
|
+
if (r = o[t], fn.call(r) !== "[object Object]" || (i = Object.keys(r), i.length !== 1)) return !1;
|
|
2052
1894
|
a[t] = [i[0], r[i[0]]];
|
|
2053
1895
|
}
|
|
2054
1896
|
return !0;
|
|
2055
1897
|
}
|
|
2056
|
-
function
|
|
1898
|
+
function mn(e) {
|
|
2057
1899
|
if (e === null) return [];
|
|
2058
1900
|
var t, n, r, i, a, o = e;
|
|
2059
1901
|
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]]];
|
|
2060
1902
|
return a;
|
|
2061
1903
|
}
|
|
2062
|
-
var
|
|
1904
|
+
var hn = new R("tag:yaml.org,2002:pairs", {
|
|
2063
1905
|
kind: "sequence",
|
|
2064
|
-
resolve:
|
|
2065
|
-
construct:
|
|
2066
|
-
}),
|
|
2067
|
-
function
|
|
1906
|
+
resolve: pn,
|
|
1907
|
+
construct: mn
|
|
1908
|
+
}), gn = Object.prototype.hasOwnProperty;
|
|
1909
|
+
function _n(e) {
|
|
2068
1910
|
if (e === null) return !0;
|
|
2069
1911
|
var t, n = e;
|
|
2070
|
-
for (t in n) if (
|
|
1912
|
+
for (t in n) if (gn.call(n, t) && n[t] !== null) return !1;
|
|
2071
1913
|
return !0;
|
|
2072
1914
|
}
|
|
2073
|
-
function
|
|
1915
|
+
function vn(e) {
|
|
2074
1916
|
return e === null ? {} : e;
|
|
2075
1917
|
}
|
|
2076
|
-
var
|
|
1918
|
+
var yn = new R("tag:yaml.org,2002:set", {
|
|
2077
1919
|
kind: "mapping",
|
|
2078
|
-
resolve:
|
|
2079
|
-
construct:
|
|
2080
|
-
}),
|
|
2081
|
-
implicit: [
|
|
1920
|
+
resolve: _n,
|
|
1921
|
+
construct: vn
|
|
1922
|
+
}), bn = Gt.extend({
|
|
1923
|
+
implicit: [Zt, $t],
|
|
2082
1924
|
explicit: [
|
|
1925
|
+
on,
|
|
1926
|
+
dn,
|
|
2083
1927
|
hn,
|
|
2084
|
-
|
|
2085
|
-
wn,
|
|
2086
|
-
On
|
|
1928
|
+
yn
|
|
2087
1929
|
]
|
|
2088
|
-
}),
|
|
2089
|
-
function
|
|
1930
|
+
}), z = Object.prototype.hasOwnProperty, xn = 1, Sn = 2, Cn = 3, wn = 4, Tn = 1, En = 2, Dn = 3, On = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, kn = /[\x85\u2028\u2029]/, An = /[,\[\]\{\}]/, jn = /^(?:!|!!|![a-z\-]+!)$/i, Mn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
1931
|
+
function Nn(e) {
|
|
2090
1932
|
return Object.prototype.toString.call(e);
|
|
2091
1933
|
}
|
|
2092
|
-
function
|
|
1934
|
+
function B(e) {
|
|
2093
1935
|
return e === 10 || e === 13;
|
|
2094
1936
|
}
|
|
2095
|
-
function
|
|
1937
|
+
function V(e) {
|
|
2096
1938
|
return e === 9 || e === 32;
|
|
2097
1939
|
}
|
|
2098
|
-
function
|
|
1940
|
+
function H(e) {
|
|
2099
1941
|
return e === 9 || e === 32 || e === 10 || e === 13;
|
|
2100
1942
|
}
|
|
2101
|
-
function
|
|
1943
|
+
function U(e) {
|
|
2102
1944
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
2103
1945
|
}
|
|
2104
|
-
function
|
|
1946
|
+
function Pn(e) {
|
|
2105
1947
|
var t;
|
|
2106
1948
|
return 48 <= e && e <= 57 ? e - 48 : (t = e | 32, 97 <= t && t <= 102 ? t - 97 + 10 : -1);
|
|
2107
1949
|
}
|
|
2108
|
-
function
|
|
1950
|
+
function Fn(e) {
|
|
2109
1951
|
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
2110
1952
|
}
|
|
2111
|
-
function
|
|
1953
|
+
function In(e) {
|
|
2112
1954
|
return 48 <= e && e <= 57 ? e - 48 : -1;
|
|
2113
1955
|
}
|
|
2114
|
-
function
|
|
1956
|
+
function Ln(e) {
|
|
2115
1957
|
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" : "";
|
|
2116
1958
|
}
|
|
2117
|
-
function
|
|
1959
|
+
function Rn(e) {
|
|
2118
1960
|
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode((e - 65536 >> 10) + 55296, (e - 65536 & 1023) + 56320);
|
|
2119
1961
|
}
|
|
2120
|
-
function
|
|
1962
|
+
function zn(e, t, n) {
|
|
2121
1963
|
t === "__proto__" ? Object.defineProperty(e, t, {
|
|
2122
1964
|
configurable: !0,
|
|
2123
1965
|
enumerable: !0,
|
|
@@ -2125,11 +1967,11 @@ function Jn(e, t, n) {
|
|
|
2125
1967
|
value: n
|
|
2126
1968
|
}) : e[t] = n;
|
|
2127
1969
|
}
|
|
2128
|
-
for (var
|
|
2129
|
-
function
|
|
2130
|
-
this.input = e, this.filename = t.filename || null, this.schema = t.schema ||
|
|
1970
|
+
for (var Bn = Array(256), Vn = Array(256), W = 0; W < 256; W++) Bn[W] = +!!Ln(W), Vn[W] = Ln(W);
|
|
1971
|
+
function Hn(e, t) {
|
|
1972
|
+
this.input = e, this.filename = t.filename || null, this.schema = t.schema || bn, 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 = [];
|
|
2131
1973
|
}
|
|
2132
|
-
function
|
|
1974
|
+
function Un(e, t) {
|
|
2133
1975
|
var n = {
|
|
2134
1976
|
name: e.filename,
|
|
2135
1977
|
buffer: e.input.slice(0, -1),
|
|
@@ -2137,292 +1979,292 @@ function Qn(e, t) {
|
|
|
2137
1979
|
line: e.line,
|
|
2138
1980
|
column: e.position - e.lineStart
|
|
2139
1981
|
};
|
|
2140
|
-
return n.snippet =
|
|
1982
|
+
return n.snippet = lt(n), new L(t, n);
|
|
2141
1983
|
}
|
|
2142
|
-
function
|
|
2143
|
-
throw
|
|
1984
|
+
function G(e, t) {
|
|
1985
|
+
throw Un(e, t);
|
|
2144
1986
|
}
|
|
2145
|
-
function
|
|
2146
|
-
e.onWarning && e.onWarning.call(null,
|
|
1987
|
+
function Wn(e, t) {
|
|
1988
|
+
e.onWarning && e.onWarning.call(null, Un(e, t));
|
|
2147
1989
|
}
|
|
2148
|
-
var
|
|
1990
|
+
var Gn = {
|
|
2149
1991
|
YAML: function(e, t, n) {
|
|
2150
1992
|
var r, i, a;
|
|
2151
|
-
e.version !== null &&
|
|
1993
|
+
e.version !== null && G(e, "duplication of %YAML directive"), n.length !== 1 && G(e, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(n[0]), r === null && G(e, "ill-formed argument of the YAML directive"), i = parseInt(r[1], 10), a = parseInt(r[2], 10), i !== 1 && G(e, "unacceptable YAML version of the document"), e.version = n[0], e.checkLineBreaks = a < 2, a !== 1 && a !== 2 && Wn(e, "unsupported YAML version of the document");
|
|
2152
1994
|
},
|
|
2153
1995
|
TAG: function(e, t, n) {
|
|
2154
1996
|
var r, i;
|
|
2155
|
-
n.length !== 2 &&
|
|
1997
|
+
n.length !== 2 && G(e, "TAG directive accepts exactly two arguments"), r = n[0], i = n[1], jn.test(r) || G(e, "ill-formed tag handle (first argument) of the TAG directive"), z.call(e.tagMap, r) && G(e, "there is a previously declared suffix for \"" + r + "\" tag handle"), Mn.test(i) || G(e, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
2156
1998
|
try {
|
|
2157
1999
|
i = decodeURIComponent(i);
|
|
2158
2000
|
} catch {
|
|
2159
|
-
|
|
2001
|
+
G(e, "tag prefix is malformed: " + i);
|
|
2160
2002
|
}
|
|
2161
2003
|
e.tagMap[r] = i;
|
|
2162
2004
|
}
|
|
2163
2005
|
};
|
|
2164
|
-
function
|
|
2006
|
+
function K(e, t, n, r) {
|
|
2165
2007
|
var i, a, o, s;
|
|
2166
2008
|
if (t < n) {
|
|
2167
|
-
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 ||
|
|
2168
|
-
else
|
|
2009
|
+
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 || G(e, "expected valid JSON character");
|
|
2010
|
+
else On.test(s) && G(e, "the stream contains non-printable characters");
|
|
2169
2011
|
e.result += s;
|
|
2170
2012
|
}
|
|
2171
2013
|
}
|
|
2172
|
-
function
|
|
2014
|
+
function Kn(e, t, n, r) {
|
|
2173
2015
|
var i, a, o, s;
|
|
2174
|
-
for (
|
|
2016
|
+
for (I.isObject(n) || G(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], z.call(t, a) || (zn(t, a, n[a]), r[a] = !0);
|
|
2175
2017
|
}
|
|
2176
|
-
function
|
|
2018
|
+
function q(e, t, n, r, i, a, o, s, c) {
|
|
2177
2019
|
var l, u;
|
|
2178
|
-
if (Array.isArray(i)) for (i = Array.prototype.slice.call(i), l = 0, u = i.length; l < u; l += 1) Array.isArray(i[l]) &&
|
|
2179
|
-
if (typeof i == "object" &&
|
|
2180
|
-
else
|
|
2181
|
-
else !e.json && !
|
|
2020
|
+
if (Array.isArray(i)) for (i = Array.prototype.slice.call(i), l = 0, u = i.length; l < u; l += 1) Array.isArray(i[l]) && G(e, "nested arrays are not supported inside keys"), typeof i == "object" && Nn(i[l]) === "[object Object]" && (i[l] = "[object Object]");
|
|
2021
|
+
if (typeof i == "object" && Nn(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) Kn(e, t, a[l], n);
|
|
2022
|
+
else Kn(e, t, a, n);
|
|
2023
|
+
else !e.json && !z.call(n, i) && z.call(t, i) && (e.line = o || e.line, e.lineStart = s || e.lineStart, e.position = c || e.position, G(e, "duplicated mapping key")), zn(t, i, a), delete n[i];
|
|
2182
2024
|
return t;
|
|
2183
2025
|
}
|
|
2184
|
-
function
|
|
2026
|
+
function qn(e) {
|
|
2185
2027
|
var t = e.input.charCodeAt(e.position);
|
|
2186
|
-
t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) :
|
|
2028
|
+
t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : G(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
|
|
2187
2029
|
}
|
|
2188
|
-
function
|
|
2030
|
+
function J(e, t, n) {
|
|
2189
2031
|
for (var r = 0, i = e.input.charCodeAt(e.position); i !== 0;) {
|
|
2190
|
-
for (;
|
|
2032
|
+
for (; V(i);) i === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), i = e.input.charCodeAt(++e.position);
|
|
2191
2033
|
if (t && i === 35) do
|
|
2192
2034
|
i = e.input.charCodeAt(++e.position);
|
|
2193
2035
|
while (i !== 10 && i !== 13 && i !== 0);
|
|
2194
|
-
if (
|
|
2036
|
+
if (B(i)) for (qn(e), i = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; i === 32;) e.lineIndent++, i = e.input.charCodeAt(++e.position);
|
|
2195
2037
|
else break;
|
|
2196
2038
|
}
|
|
2197
|
-
return n !== -1 && r !== 0 && e.lineIndent < n &&
|
|
2039
|
+
return n !== -1 && r !== 0 && e.lineIndent < n && Wn(e, "deficient indentation"), r;
|
|
2198
2040
|
}
|
|
2199
|
-
function
|
|
2041
|
+
function Jn(e) {
|
|
2200
2042
|
var t = e.position, n = e.input.charCodeAt(t);
|
|
2201
|
-
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 ||
|
|
2043
|
+
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 || H(n)));
|
|
2202
2044
|
}
|
|
2203
|
-
function
|
|
2204
|
-
t === 1 ? e.result += " " : t > 1 && (e.result +=
|
|
2045
|
+
function Yn(e, t) {
|
|
2046
|
+
t === 1 ? e.result += " " : t > 1 && (e.result += I.repeat("\n", t - 1));
|
|
2205
2047
|
}
|
|
2206
|
-
function
|
|
2048
|
+
function Xn(e, t, n) {
|
|
2207
2049
|
var r, i, a, o, s, c, l, u, d = e.kind, f = e.result, p = e.input.charCodeAt(e.position);
|
|
2208
|
-
if (
|
|
2050
|
+
if (H(p) || U(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), H(i) || n && U(i))) return !1;
|
|
2209
2051
|
for (e.kind = "scalar", e.result = "", a = o = e.position, s = !1; p !== 0;) {
|
|
2210
2052
|
if (p === 58) {
|
|
2211
|
-
if (i = e.input.charCodeAt(e.position + 1),
|
|
2053
|
+
if (i = e.input.charCodeAt(e.position + 1), H(i) || n && U(i)) break;
|
|
2212
2054
|
} else if (p === 35) {
|
|
2213
|
-
if (r = e.input.charCodeAt(e.position - 1),
|
|
2214
|
-
} else if (e.position === e.lineStart &&
|
|
2215
|
-
else if (
|
|
2055
|
+
if (r = e.input.charCodeAt(e.position - 1), H(r)) break;
|
|
2056
|
+
} else if (e.position === e.lineStart && Jn(e) || n && U(p)) break;
|
|
2057
|
+
else if (B(p)) if (c = e.line, l = e.lineStart, u = e.lineIndent, J(e, !1, -1), e.lineIndent >= t) {
|
|
2216
2058
|
s = !0, p = e.input.charCodeAt(e.position);
|
|
2217
2059
|
continue;
|
|
2218
2060
|
} else {
|
|
2219
2061
|
e.position = o, e.line = c, e.lineStart = l, e.lineIndent = u;
|
|
2220
2062
|
break;
|
|
2221
2063
|
}
|
|
2222
|
-
s &&= (
|
|
2064
|
+
s &&= (K(e, a, o, !1), Yn(e, e.line - c), a = o = e.position, !1), V(p) || (o = e.position + 1), p = e.input.charCodeAt(++e.position);
|
|
2223
2065
|
}
|
|
2224
|
-
return
|
|
2066
|
+
return K(e, a, o, !1), e.result ? !0 : (e.kind = d, e.result = f, !1);
|
|
2225
2067
|
}
|
|
2226
|
-
function
|
|
2068
|
+
function Zn(e, t) {
|
|
2227
2069
|
var n = e.input.charCodeAt(e.position), r, i;
|
|
2228
2070
|
if (n !== 39) return !1;
|
|
2229
|
-
for (e.kind = "scalar", e.result = "", e.position++, r = i = e.position; (n = e.input.charCodeAt(e.position)) !== 0;) if (n === 39) if (
|
|
2071
|
+
for (e.kind = "scalar", e.result = "", e.position++, r = i = e.position; (n = e.input.charCodeAt(e.position)) !== 0;) if (n === 39) if (K(e, r, e.position, !0), n = e.input.charCodeAt(++e.position), n === 39) r = e.position, e.position++, i = e.position;
|
|
2230
2072
|
else return !0;
|
|
2231
|
-
else
|
|
2232
|
-
|
|
2073
|
+
else B(n) ? (K(e, r, i, !0), Yn(e, J(e, !1, t)), r = i = e.position) : e.position === e.lineStart && Jn(e) ? G(e, "unexpected end of the document within a single quoted scalar") : (e.position++, i = e.position);
|
|
2074
|
+
G(e, "unexpected end of the stream within a single quoted scalar");
|
|
2233
2075
|
}
|
|
2234
|
-
function
|
|
2076
|
+
function Qn(e, t) {
|
|
2235
2077
|
var n, r, i, a, o, s = e.input.charCodeAt(e.position);
|
|
2236
2078
|
if (s !== 34) return !1;
|
|
2237
|
-
for (e.kind = "scalar", e.result = "", e.position++, n = r = e.position; (s = e.input.charCodeAt(e.position)) !== 0;) if (s === 34) return
|
|
2079
|
+
for (e.kind = "scalar", e.result = "", e.position++, n = r = e.position; (s = e.input.charCodeAt(e.position)) !== 0;) if (s === 34) return K(e, n, e.position, !0), e.position++, !0;
|
|
2238
2080
|
else if (s === 92) {
|
|
2239
|
-
if (
|
|
2240
|
-
else if (s < 256 &&
|
|
2241
|
-
else if ((o =
|
|
2242
|
-
for (i = o, a = 0; i > 0; i--) s = e.input.charCodeAt(++e.position), (o =
|
|
2243
|
-
e.result +=
|
|
2244
|
-
} else
|
|
2081
|
+
if (K(e, n, e.position, !0), s = e.input.charCodeAt(++e.position), B(s)) J(e, !1, t);
|
|
2082
|
+
else if (s < 256 && Bn[s]) e.result += Vn[s], e.position++;
|
|
2083
|
+
else if ((o = Fn(s)) > 0) {
|
|
2084
|
+
for (i = o, a = 0; i > 0; i--) s = e.input.charCodeAt(++e.position), (o = Pn(s)) >= 0 ? a = (a << 4) + o : G(e, "expected hexadecimal character");
|
|
2085
|
+
e.result += Rn(a), e.position++;
|
|
2086
|
+
} else G(e, "unknown escape sequence");
|
|
2245
2087
|
n = r = e.position;
|
|
2246
|
-
} else
|
|
2247
|
-
|
|
2088
|
+
} else B(s) ? (K(e, n, r, !0), Yn(e, J(e, !1, t)), n = r = e.position) : e.position === e.lineStart && Jn(e) ? G(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
|
|
2089
|
+
G(e, "unexpected end of the stream within a double quoted scalar");
|
|
2248
2090
|
}
|
|
2249
|
-
function
|
|
2091
|
+
function $n(e, t) {
|
|
2250
2092
|
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);
|
|
2251
2093
|
if (v === 91) u = 93, p = !1, s = [];
|
|
2252
2094
|
else if (v === 123) u = 125, p = !0, s = {};
|
|
2253
2095
|
else return !1;
|
|
2254
2096
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = s), v = e.input.charCodeAt(++e.position); v !== 0;) {
|
|
2255
|
-
if (
|
|
2256
|
-
n ? v === 44 &&
|
|
2097
|
+
if (J(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;
|
|
2098
|
+
n ? v === 44 && G(e, "expected the node content, but found ','") : G(e, "missed comma between flow collection entries"), g = h = _ = null, d = f = !1, v === 63 && (l = e.input.charCodeAt(e.position + 1), H(l) && (d = f = !0, e.position++, J(e, !0, t))), r = e.line, i = e.lineStart, a = e.position, Y(e, t, xn, !1, !0), g = e.tag, h = e.result, J(e, !0, t), v = e.input.charCodeAt(e.position), (f || e.line === r) && v === 58 && (d = !0, v = e.input.charCodeAt(++e.position), J(e, !0, t), Y(e, t, xn, !1, !0), _ = e.result), p ? q(e, s, m, g, h, _, r, i, a) : d ? s.push(q(e, null, m, g, h, _, r, i, a)) : s.push(h), J(e, !0, t), v = e.input.charCodeAt(e.position), v === 44 ? (n = !0, v = e.input.charCodeAt(++e.position)) : n = !1;
|
|
2257
2099
|
}
|
|
2258
|
-
|
|
2100
|
+
G(e, "unexpected end of the stream within a flow collection");
|
|
2259
2101
|
}
|
|
2260
|
-
function
|
|
2261
|
-
var n, r, i =
|
|
2102
|
+
function er(e, t) {
|
|
2103
|
+
var n, r, i = Tn, a = !1, o = !1, s = t, c = 0, l = !1, u, d = e.input.charCodeAt(e.position);
|
|
2262
2104
|
if (d === 124) r = !1;
|
|
2263
2105
|
else if (d === 62) r = !0;
|
|
2264
2106
|
else return !1;
|
|
2265
|
-
for (e.kind = "scalar", e.result = ""; d !== 0;) if (d = e.input.charCodeAt(++e.position), d === 43 || d === 45)
|
|
2266
|
-
else if ((u =
|
|
2107
|
+
for (e.kind = "scalar", e.result = ""; d !== 0;) if (d = e.input.charCodeAt(++e.position), d === 43 || d === 45) Tn === i ? i = d === 43 ? Dn : En : G(e, "repeat of a chomping mode identifier");
|
|
2108
|
+
else if ((u = In(d)) >= 0) u === 0 ? G(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? G(e, "repeat of an indentation width identifier") : (s = t + u - 1, o = !0);
|
|
2267
2109
|
else break;
|
|
2268
|
-
if (
|
|
2110
|
+
if (V(d)) {
|
|
2269
2111
|
do
|
|
2270
2112
|
d = e.input.charCodeAt(++e.position);
|
|
2271
|
-
while (
|
|
2113
|
+
while (V(d));
|
|
2272
2114
|
if (d === 35) do
|
|
2273
2115
|
d = e.input.charCodeAt(++e.position);
|
|
2274
|
-
while (!
|
|
2116
|
+
while (!B(d) && d !== 0);
|
|
2275
2117
|
}
|
|
2276
2118
|
for (; d !== 0;) {
|
|
2277
|
-
for (
|
|
2278
|
-
if (!o && e.lineIndent > s && (s = e.lineIndent),
|
|
2119
|
+
for (qn(e), e.lineIndent = 0, d = e.input.charCodeAt(e.position); (!o || e.lineIndent < s) && d === 32;) e.lineIndent++, d = e.input.charCodeAt(++e.position);
|
|
2120
|
+
if (!o && e.lineIndent > s && (s = e.lineIndent), B(d)) {
|
|
2279
2121
|
c++;
|
|
2280
2122
|
continue;
|
|
2281
2123
|
}
|
|
2282
2124
|
if (e.lineIndent < s) {
|
|
2283
|
-
i ===
|
|
2125
|
+
i === Dn ? e.result += I.repeat("\n", a ? 1 + c : c) : i === Tn && a && (e.result += "\n");
|
|
2284
2126
|
break;
|
|
2285
2127
|
}
|
|
2286
|
-
for (r ?
|
|
2287
|
-
|
|
2128
|
+
for (r ? V(d) ? (l = !0, e.result += I.repeat("\n", a ? 1 + c : c)) : l ? (l = !1, e.result += I.repeat("\n", c + 1)) : c === 0 ? a && (e.result += " ") : e.result += I.repeat("\n", c) : e.result += I.repeat("\n", a ? 1 + c : c), a = !0, o = !0, c = 0, n = e.position; !B(d) && d !== 0;) d = e.input.charCodeAt(++e.position);
|
|
2129
|
+
K(e, n, e.position, !1);
|
|
2288
2130
|
}
|
|
2289
2131
|
return !0;
|
|
2290
2132
|
}
|
|
2291
|
-
function
|
|
2133
|
+
function tr(e, t) {
|
|
2292
2134
|
var n, r = e.tag, i = e.anchor, a = [], o, s = !1, c;
|
|
2293
2135
|
if (e.firstTabInLine !== -1) return !1;
|
|
2294
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = a), c = e.input.charCodeAt(e.position); c !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine,
|
|
2295
|
-
if (s = !0, e.position++,
|
|
2136
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = a), c = e.input.charCodeAt(e.position); c !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, G(e, "tab characters must not be used in indentation")), !(c !== 45 || (o = e.input.charCodeAt(e.position + 1), !H(o))));) {
|
|
2137
|
+
if (s = !0, e.position++, J(e, !0, -1) && e.lineIndent <= t) {
|
|
2296
2138
|
a.push(null), c = e.input.charCodeAt(e.position);
|
|
2297
2139
|
continue;
|
|
2298
2140
|
}
|
|
2299
|
-
if (n = e.line,
|
|
2141
|
+
if (n = e.line, Y(e, t, Cn, !1, !0), a.push(e.result), J(e, !0, -1), c = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && c !== 0) G(e, "bad indentation of a sequence entry");
|
|
2300
2142
|
else if (e.lineIndent < t) break;
|
|
2301
2143
|
}
|
|
2302
2144
|
return s ? (e.tag = r, e.anchor = i, e.kind = "sequence", e.result = a, !0) : !1;
|
|
2303
2145
|
}
|
|
2304
|
-
function
|
|
2146
|
+
function nr(e, t, n) {
|
|
2305
2147
|
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;
|
|
2306
2148
|
if (e.firstTabInLine !== -1) return !1;
|
|
2307
2149
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = d), v = e.input.charCodeAt(e.position); v !== 0;) {
|
|
2308
|
-
if (!g && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine,
|
|
2150
|
+
if (!g && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, G(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), a = e.line, (v === 63 || v === 58) && H(r)) v === 63 ? (g && (q(e, d, f, p, m, null, o, s, c), p = m = h = null), _ = !0, g = !0, i = !0) : g ? (g = !1, i = !0) : G(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, v = r;
|
|
2309
2151
|
else {
|
|
2310
|
-
if (o = e.line, s = e.lineStart, c = e.position, !
|
|
2152
|
+
if (o = e.line, s = e.lineStart, c = e.position, !Y(e, n, Sn, !1, !0)) break;
|
|
2311
2153
|
if (e.line === a) {
|
|
2312
|
-
for (v = e.input.charCodeAt(e.position);
|
|
2313
|
-
if (v === 58) v = e.input.charCodeAt(++e.position),
|
|
2314
|
-
else if (_)
|
|
2154
|
+
for (v = e.input.charCodeAt(e.position); V(v);) v = e.input.charCodeAt(++e.position);
|
|
2155
|
+
if (v === 58) v = e.input.charCodeAt(++e.position), H(v) || G(e, "a whitespace character is expected after the key-value separator within a block mapping"), g && (q(e, d, f, p, m, null, o, s, c), p = m = h = null), _ = !0, g = !1, i = !1, p = e.tag, m = e.result;
|
|
2156
|
+
else if (_) G(e, "can not read an implicit mapping pair; a colon is missed");
|
|
2315
2157
|
else return e.tag = l, e.anchor = u, !0;
|
|
2316
|
-
} else if (_)
|
|
2158
|
+
} else if (_) G(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
2317
2159
|
else return e.tag = l, e.anchor = u, !0;
|
|
2318
2160
|
}
|
|
2319
|
-
if ((e.line === a || e.lineIndent > t) && (g && (o = e.line, s = e.lineStart, c = e.position),
|
|
2161
|
+
if ((e.line === a || e.lineIndent > t) && (g && (o = e.line, s = e.lineStart, c = e.position), Y(e, t, wn, !0, i) && (g ? m = e.result : h = e.result), g || (q(e, d, f, p, m, h, o, s, c), p = m = h = null), J(e, !0, -1), v = e.input.charCodeAt(e.position)), (e.line === a || e.lineIndent > t) && v !== 0) G(e, "bad indentation of a mapping entry");
|
|
2320
2162
|
else if (e.lineIndent < t) break;
|
|
2321
2163
|
}
|
|
2322
|
-
return g &&
|
|
2164
|
+
return g && q(e, d, f, p, m, null, o, s, c), _ && (e.tag = l, e.anchor = u, e.kind = "mapping", e.result = d), _;
|
|
2323
2165
|
}
|
|
2324
|
-
function
|
|
2166
|
+
function rr(e) {
|
|
2325
2167
|
var t, n = !1, r = !1, i, a, o = e.input.charCodeAt(e.position);
|
|
2326
2168
|
if (o !== 33) return !1;
|
|
2327
|
-
if (e.tag !== null &&
|
|
2169
|
+
if (e.tag !== null && G(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) {
|
|
2328
2170
|
do
|
|
2329
2171
|
o = e.input.charCodeAt(++e.position);
|
|
2330
2172
|
while (o !== 0 && o !== 62);
|
|
2331
|
-
e.position < e.length ? (a = e.input.slice(t, e.position), o = e.input.charCodeAt(++e.position)) :
|
|
2173
|
+
e.position < e.length ? (a = e.input.slice(t, e.position), o = e.input.charCodeAt(++e.position)) : G(e, "unexpected end of the stream within a verbatim tag");
|
|
2332
2174
|
} else {
|
|
2333
|
-
for (; o !== 0 && !
|
|
2334
|
-
a = e.input.slice(t, e.position),
|
|
2175
|
+
for (; o !== 0 && !H(o);) o === 33 && (r ? G(e, "tag suffix cannot contain exclamation marks") : (i = e.input.slice(t - 1, e.position + 1), jn.test(i) || G(e, "named tag handle cannot contain such characters"), r = !0, t = e.position + 1)), o = e.input.charCodeAt(++e.position);
|
|
2176
|
+
a = e.input.slice(t, e.position), An.test(a) && G(e, "tag suffix cannot contain flow indicator characters");
|
|
2335
2177
|
}
|
|
2336
|
-
a && !
|
|
2178
|
+
a && !Mn.test(a) && G(e, "tag name cannot contain such characters: " + a);
|
|
2337
2179
|
try {
|
|
2338
2180
|
a = decodeURIComponent(a);
|
|
2339
2181
|
} catch {
|
|
2340
|
-
|
|
2182
|
+
G(e, "tag name is malformed: " + a);
|
|
2341
2183
|
}
|
|
2342
|
-
return n ? e.tag = a :
|
|
2184
|
+
return n ? e.tag = a : z.call(e.tagMap, i) ? e.tag = e.tagMap[i] + a : i === "!" ? e.tag = "!" + a : i === "!!" ? e.tag = "tag:yaml.org,2002:" + a : G(e, "undeclared tag handle \"" + i + "\""), !0;
|
|
2343
2185
|
}
|
|
2344
|
-
function
|
|
2186
|
+
function ir(e) {
|
|
2345
2187
|
var t, n = e.input.charCodeAt(e.position);
|
|
2346
2188
|
if (n !== 38) return !1;
|
|
2347
|
-
for (e.anchor !== null &&
|
|
2348
|
-
return e.position === t &&
|
|
2189
|
+
for (e.anchor !== null && G(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !H(n) && !U(n);) n = e.input.charCodeAt(++e.position);
|
|
2190
|
+
return e.position === t && G(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
|
|
2349
2191
|
}
|
|
2350
|
-
function
|
|
2192
|
+
function ar(e) {
|
|
2351
2193
|
var t, n, r = e.input.charCodeAt(e.position);
|
|
2352
2194
|
if (r !== 42) return !1;
|
|
2353
|
-
for (r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !
|
|
2354
|
-
return e.position === t &&
|
|
2195
|
+
for (r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !H(r) && !U(r);) r = e.input.charCodeAt(++e.position);
|
|
2196
|
+
return e.position === t && G(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), z.call(e.anchorMap, n) || G(e, "unidentified alias \"" + n + "\""), e.result = e.anchorMap[n], J(e, !0, -1), !0;
|
|
2355
2197
|
}
|
|
2356
|
-
function
|
|
2198
|
+
function Y(e, t, n, r, i) {
|
|
2357
2199
|
var a, o, s, c = 1, l = !1, u = !1, d, f, p, m, h, g;
|
|
2358
|
-
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = s =
|
|
2359
|
-
if (s &&= l || i, (c === 1 ||
|
|
2200
|
+
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = s = wn === n || Cn === n, r && J(e, !0, -1) && (l = !0, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)), c === 1) for (; rr(e) || ir(e);) J(e, !0, -1) ? (l = !0, s = a, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)) : s = !1;
|
|
2201
|
+
if (s &&= l || i, (c === 1 || wn === n) && (h = xn === n || Sn === n ? t : t + 1, g = e.position - e.lineStart, c === 1 ? s && (tr(e, g) || nr(e, g, h)) || $n(e, h) ? u = !0 : (o && er(e, h) || Zn(e, h) || Qn(e, h) ? u = !0 : ar(e) ? (u = !0, (e.tag !== null || e.anchor !== null) && G(e, "alias node should not have any properties")) : Xn(e, h, xn === n) && (u = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : c === 0 && (u = s && tr(e, g))), e.tag === null) e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2360
2202
|
else if (e.tag === "?") {
|
|
2361
|
-
for (e.result !== null && e.kind !== "scalar" &&
|
|
2203
|
+
for (e.result !== null && e.kind !== "scalar" && G(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)) {
|
|
2362
2204
|
e.result = m.construct(e.result), e.tag = m.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2363
2205
|
break;
|
|
2364
2206
|
}
|
|
2365
2207
|
} else if (e.tag !== "!") {
|
|
2366
|
-
if (
|
|
2208
|
+
if (z.call(e.typeMap[e.kind || "fallback"], e.tag)) m = e.typeMap[e.kind || "fallback"][e.tag];
|
|
2367
2209
|
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) {
|
|
2368
2210
|
m = p[d];
|
|
2369
2211
|
break;
|
|
2370
2212
|
}
|
|
2371
|
-
m ||
|
|
2213
|
+
m || G(e, "unknown tag !<" + e.tag + ">"), e.result !== null && m.kind !== e.kind && G(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)) : G(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
|
|
2372
2214
|
}
|
|
2373
2215
|
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || u;
|
|
2374
2216
|
}
|
|
2375
|
-
function
|
|
2217
|
+
function or(e) {
|
|
2376
2218
|
var t = e.position, n, r, i, a = !1, o;
|
|
2377
|
-
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 && (
|
|
2378
|
-
for (a = !0, o = e.input.charCodeAt(++e.position), n = e.position; o !== 0 && !
|
|
2379
|
-
for (r = e.input.slice(n, e.position), i = [], r.length < 1 &&
|
|
2380
|
-
for (;
|
|
2219
|
+
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 && (J(e, !0, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37));) {
|
|
2220
|
+
for (a = !0, o = e.input.charCodeAt(++e.position), n = e.position; o !== 0 && !H(o);) o = e.input.charCodeAt(++e.position);
|
|
2221
|
+
for (r = e.input.slice(n, e.position), i = [], r.length < 1 && G(e, "directive name must not be less than one character in length"); o !== 0;) {
|
|
2222
|
+
for (; V(o);) o = e.input.charCodeAt(++e.position);
|
|
2381
2223
|
if (o === 35) {
|
|
2382
2224
|
do
|
|
2383
2225
|
o = e.input.charCodeAt(++e.position);
|
|
2384
|
-
while (o !== 0 && !
|
|
2226
|
+
while (o !== 0 && !B(o));
|
|
2385
2227
|
break;
|
|
2386
2228
|
}
|
|
2387
|
-
if (
|
|
2388
|
-
for (n = e.position; o !== 0 && !
|
|
2229
|
+
if (B(o)) break;
|
|
2230
|
+
for (n = e.position; o !== 0 && !H(o);) o = e.input.charCodeAt(++e.position);
|
|
2389
2231
|
i.push(e.input.slice(n, e.position));
|
|
2390
2232
|
}
|
|
2391
|
-
o !== 0 &&
|
|
2233
|
+
o !== 0 && qn(e), z.call(Gn, r) ? Gn[r](e, r, i) : Wn(e, "unknown document directive \"" + r + "\"");
|
|
2392
2234
|
}
|
|
2393
|
-
if (
|
|
2394
|
-
e.input.charCodeAt(e.position) === 46 && (e.position += 3,
|
|
2235
|
+
if (J(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, J(e, !0, -1)) : a && G(e, "directives end mark is expected"), Y(e, e.lineIndent - 1, wn, !1, !0), J(e, !0, -1), e.checkLineBreaks && kn.test(e.input.slice(t, e.position)) && Wn(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && Jn(e)) {
|
|
2236
|
+
e.input.charCodeAt(e.position) === 46 && (e.position += 3, J(e, !0, -1));
|
|
2395
2237
|
return;
|
|
2396
2238
|
}
|
|
2397
|
-
if (e.position < e.length - 1)
|
|
2239
|
+
if (e.position < e.length - 1) G(e, "end of the stream or a document separator is expected");
|
|
2398
2240
|
else return;
|
|
2399
2241
|
}
|
|
2400
|
-
function
|
|
2242
|
+
function sr(e, t) {
|
|
2401
2243
|
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)));
|
|
2402
|
-
var n = new
|
|
2403
|
-
for (r !== -1 && (n.position = r,
|
|
2404
|
-
for (; n.position < n.length - 1;)
|
|
2244
|
+
var n = new Hn(e, t), r = e.indexOf("\0");
|
|
2245
|
+
for (r !== -1 && (n.position = r, G(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32;) n.lineIndent += 1, n.position += 1;
|
|
2246
|
+
for (; n.position < n.length - 1;) or(n);
|
|
2405
2247
|
return n.documents;
|
|
2406
2248
|
}
|
|
2407
|
-
function
|
|
2249
|
+
function cr(e, t, n) {
|
|
2408
2250
|
typeof t == "object" && t && n === void 0 && (n = t, t = null);
|
|
2409
|
-
var r =
|
|
2251
|
+
var r = sr(e, n);
|
|
2410
2252
|
if (typeof t != "function") return r;
|
|
2411
2253
|
for (var i = 0, a = r.length; i < a; i += 1) t(r[i]);
|
|
2412
2254
|
}
|
|
2413
|
-
function
|
|
2414
|
-
var n =
|
|
2255
|
+
function lr(e, t) {
|
|
2256
|
+
var n = sr(e, t);
|
|
2415
2257
|
if (n.length !== 0) {
|
|
2416
2258
|
if (n.length === 1) return n[0];
|
|
2417
|
-
throw new
|
|
2259
|
+
throw new L("expected a single document in the stream, but found more");
|
|
2418
2260
|
}
|
|
2419
2261
|
}
|
|
2420
|
-
var
|
|
2421
|
-
loadAll:
|
|
2422
|
-
load:
|
|
2423
|
-
},
|
|
2262
|
+
var ur = {
|
|
2263
|
+
loadAll: cr,
|
|
2264
|
+
load: lr
|
|
2265
|
+
}, dr = Object.prototype.toString, fr = Object.prototype.hasOwnProperty, pr = 65279, mr = 9, hr = 10, gr = 13, _r = 32, vr = 33, yr = 34, br = 35, xr = 37, Sr = 38, Cr = 39, wr = 42, Tr = 44, Er = 45, Dr = 58, Or = 61, kr = 62, Ar = 63, jr = 64, Mr = 91, Nr = 93, Pr = 96, Fr = 123, Ir = 124, Lr = 125, X = {};
|
|
2424
2266
|
X[0] = "\\0", X[7] = "\\a", X[8] = "\\b", X[9] = "\\t", X[10] = "\\n", X[11] = "\\v", X[12] = "\\f", X[13] = "\\r", X[27] = "\\e", X[34] = "\\\"", X[92] = "\\\\", X[133] = "\\N", X[160] = "\\_", X[8232] = "\\L", X[8233] = "\\P";
|
|
2425
|
-
var
|
|
2267
|
+
var Rr = [
|
|
2426
2268
|
"y",
|
|
2427
2269
|
"Y",
|
|
2428
2270
|
"yes",
|
|
@@ -2439,154 +2281,154 @@ var Yr = [
|
|
|
2439
2281
|
"off",
|
|
2440
2282
|
"Off",
|
|
2441
2283
|
"OFF"
|
|
2442
|
-
],
|
|
2443
|
-
function
|
|
2284
|
+
], zr = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
2285
|
+
function Br(e, t) {
|
|
2444
2286
|
var n, r, i, a, o, s, c;
|
|
2445
2287
|
if (t === null) return {};
|
|
2446
|
-
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 &&
|
|
2288
|
+
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 && fr.call(c.styleAliases, s) && (s = c.styleAliases[s]), n[o] = s;
|
|
2447
2289
|
return n;
|
|
2448
2290
|
}
|
|
2449
|
-
function
|
|
2291
|
+
function Vr(e) {
|
|
2450
2292
|
var t = e.toString(16).toUpperCase(), n, r;
|
|
2451
2293
|
if (e <= 255) n = "x", r = 2;
|
|
2452
2294
|
else if (e <= 65535) n = "u", r = 4;
|
|
2453
2295
|
else if (e <= 4294967295) n = "U", r = 8;
|
|
2454
|
-
else throw new
|
|
2455
|
-
return "\\" + n +
|
|
2296
|
+
else throw new L("code point within a string may not be greater than 0xFFFFFFFF");
|
|
2297
|
+
return "\\" + n + I.repeat("0", r - t.length) + t;
|
|
2456
2298
|
}
|
|
2457
|
-
var
|
|
2458
|
-
function
|
|
2459
|
-
this.schema = e.schema ||
|
|
2299
|
+
var Hr = 1, Ur = 2;
|
|
2300
|
+
function Wr(e) {
|
|
2301
|
+
this.schema = e.schema || bn, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = I.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = Br(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 === "\"" ? Ur : Hr, 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;
|
|
2460
2302
|
}
|
|
2461
|
-
function
|
|
2462
|
-
for (var n =
|
|
2303
|
+
function Gr(e, t) {
|
|
2304
|
+
for (var n = I.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;
|
|
2463
2305
|
return a;
|
|
2464
2306
|
}
|
|
2465
|
-
function
|
|
2466
|
-
return "\n" +
|
|
2307
|
+
function Kr(e, t) {
|
|
2308
|
+
return "\n" + I.repeat(" ", e.indent * t);
|
|
2467
2309
|
}
|
|
2468
|
-
function
|
|
2310
|
+
function qr(e, t) {
|
|
2469
2311
|
var n, r, i;
|
|
2470
2312
|
for (n = 0, r = e.implicitTypes.length; n < r; n += 1) if (i = e.implicitTypes[n], i.resolve(t)) return !0;
|
|
2471
2313
|
return !1;
|
|
2472
2314
|
}
|
|
2473
|
-
function
|
|
2474
|
-
return e ===
|
|
2315
|
+
function Jr(e) {
|
|
2316
|
+
return e === _r || e === mr;
|
|
2475
2317
|
}
|
|
2476
|
-
function
|
|
2477
|
-
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !==
|
|
2318
|
+
function Yr(e) {
|
|
2319
|
+
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== pr || 65536 <= e && e <= 1114111;
|
|
2478
2320
|
}
|
|
2479
|
-
function
|
|
2480
|
-
return
|
|
2321
|
+
function Xr(e) {
|
|
2322
|
+
return Yr(e) && e !== pr && e !== gr && e !== hr;
|
|
2481
2323
|
}
|
|
2482
|
-
function
|
|
2483
|
-
var r =
|
|
2484
|
-
return (n ? r : r && e !==
|
|
2324
|
+
function Zr(e, t, n) {
|
|
2325
|
+
var r = Xr(e), i = r && !Jr(e);
|
|
2326
|
+
return (n ? r : r && e !== Tr && e !== Mr && e !== Nr && e !== Fr && e !== Lr) && e !== br && !(t === Dr && !i) || Xr(t) && !Jr(t) && e === br || t === Dr && i;
|
|
2485
2327
|
}
|
|
2486
|
-
function
|
|
2487
|
-
return
|
|
2328
|
+
function Qr(e) {
|
|
2329
|
+
return Yr(e) && e !== pr && !Jr(e) && e !== Er && e !== Ar && e !== Dr && e !== Tr && e !== Mr && e !== Nr && e !== Fr && e !== Lr && e !== br && e !== Sr && e !== wr && e !== vr && e !== Ir && e !== Or && e !== kr && e !== Cr && e !== yr && e !== xr && e !== jr && e !== Pr;
|
|
2488
2330
|
}
|
|
2489
|
-
function
|
|
2490
|
-
return !
|
|
2331
|
+
function $r(e) {
|
|
2332
|
+
return !Jr(e) && e !== Dr;
|
|
2491
2333
|
}
|
|
2492
|
-
function
|
|
2334
|
+
function ei(e, t) {
|
|
2493
2335
|
var n = e.charCodeAt(t), r;
|
|
2494
2336
|
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;
|
|
2495
2337
|
}
|
|
2496
|
-
function
|
|
2338
|
+
function ti(e) {
|
|
2497
2339
|
return /^\n* /.test(e);
|
|
2498
2340
|
}
|
|
2499
|
-
var
|
|
2500
|
-
function
|
|
2501
|
-
var c, l = 0, u = null, d = !1, f = !1, p = r !== -1, m = -1, h =
|
|
2341
|
+
var ni = 1, ri = 2, ii = 3, ai = 4, Z = 5;
|
|
2342
|
+
function oi(e, t, n, r, i, a, o, s) {
|
|
2343
|
+
var c, l = 0, u = null, d = !1, f = !1, p = r !== -1, m = -1, h = Qr(ei(e, 0)) && $r(ei(e, e.length - 1));
|
|
2502
2344
|
if (t || o) for (c = 0; c < e.length; l >= 65536 ? c += 2 : c++) {
|
|
2503
|
-
if (l =
|
|
2504
|
-
h &&=
|
|
2345
|
+
if (l = ei(e, c), !Yr(l)) return Z;
|
|
2346
|
+
h &&= Zr(l, u, s), u = l;
|
|
2505
2347
|
}
|
|
2506
2348
|
else {
|
|
2507
2349
|
for (c = 0; c < e.length; l >= 65536 ? c += 2 : c++) {
|
|
2508
|
-
if (l =
|
|
2509
|
-
else if (!
|
|
2510
|
-
h &&=
|
|
2350
|
+
if (l = ei(e, c), l === hr) d = !0, p && (f ||= c - m - 1 > r && e[m + 1] !== " ", m = c);
|
|
2351
|
+
else if (!Yr(l)) return Z;
|
|
2352
|
+
h &&= Zr(l, u, s), u = l;
|
|
2511
2353
|
}
|
|
2512
2354
|
f ||= p && c - m - 1 > r && e[m + 1] !== " ";
|
|
2513
2355
|
}
|
|
2514
|
-
return !d && !f ? h && !o && !i(e) ?
|
|
2356
|
+
return !d && !f ? h && !o && !i(e) ? ni : a === Ur ? Z : ri : n > 9 && ti(e) ? Z : o ? a === Ur ? Z : ri : f ? ai : ii;
|
|
2515
2357
|
}
|
|
2516
|
-
function
|
|
2358
|
+
function si(e, t, n, r, i) {
|
|
2517
2359
|
e.dump = function() {
|
|
2518
|
-
if (t.length === 0) return e.quotingType ===
|
|
2519
|
-
if (!e.noCompatMode && (
|
|
2360
|
+
if (t.length === 0) return e.quotingType === Ur ? "\"\"" : "''";
|
|
2361
|
+
if (!e.noCompatMode && (Rr.indexOf(t) !== -1 || zr.test(t))) return e.quotingType === Ur ? "\"" + t + "\"" : "'" + t + "'";
|
|
2520
2362
|
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;
|
|
2521
2363
|
function c(t) {
|
|
2522
|
-
return
|
|
2364
|
+
return qr(e, t);
|
|
2523
2365
|
}
|
|
2524
|
-
switch (
|
|
2525
|
-
case
|
|
2526
|
-
case
|
|
2527
|
-
case
|
|
2528
|
-
case
|
|
2529
|
-
case Z: return "\"" +
|
|
2530
|
-
default: throw new
|
|
2366
|
+
switch (oi(t, s, e.indent, o, c, e.quotingType, e.forceQuotes && !r, i)) {
|
|
2367
|
+
case ni: return t;
|
|
2368
|
+
case ri: return "'" + t.replace(/'/g, "''") + "'";
|
|
2369
|
+
case ii: return "|" + ci(t, e.indent) + li(Gr(t, a));
|
|
2370
|
+
case ai: return ">" + ci(t, e.indent) + li(Gr(ui(t, o), a));
|
|
2371
|
+
case Z: return "\"" + fi(t) + "\"";
|
|
2372
|
+
default: throw new L("impossible error: invalid scalar style");
|
|
2531
2373
|
}
|
|
2532
2374
|
}();
|
|
2533
2375
|
}
|
|
2534
|
-
function
|
|
2535
|
-
var n =
|
|
2376
|
+
function ci(e, t) {
|
|
2377
|
+
var n = ti(e) ? String(t) : "", r = e[e.length - 1] === "\n";
|
|
2536
2378
|
return n + (r && (e[e.length - 2] === "\n" || e === "\n") ? "+" : r ? "" : "-") + "\n";
|
|
2537
2379
|
}
|
|
2538
|
-
function
|
|
2380
|
+
function li(e) {
|
|
2539
2381
|
return e[e.length - 1] === "\n" ? e.slice(0, -1) : e;
|
|
2540
2382
|
}
|
|
2541
|
-
function
|
|
2383
|
+
function ui(e, t) {
|
|
2542
2384
|
for (var n = /(\n+)([^\n]*)/g, r = function() {
|
|
2543
2385
|
var r = e.indexOf("\n");
|
|
2544
|
-
return r = r === -1 ? e.length : r, n.lastIndex = r,
|
|
2386
|
+
return r = r === -1 ? e.length : r, n.lastIndex = r, di(e.slice(0, r), t);
|
|
2545
2387
|
}(), i = e[0] === "\n" || e[0] === " ", a, o; o = n.exec(e);) {
|
|
2546
2388
|
var s = o[1], c = o[2];
|
|
2547
|
-
a = c[0] === " ", r += s + (!i && !a && c !== "" ? "\n" : "") +
|
|
2389
|
+
a = c[0] === " ", r += s + (!i && !a && c !== "" ? "\n" : "") + di(c, t), i = a;
|
|
2548
2390
|
}
|
|
2549
2391
|
return r;
|
|
2550
2392
|
}
|
|
2551
|
-
function
|
|
2393
|
+
function di(e, t) {
|
|
2552
2394
|
if (e === "" || e[0] === " ") return e;
|
|
2553
2395
|
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;
|
|
2554
2396
|
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);
|
|
2555
2397
|
}
|
|
2556
|
-
function
|
|
2557
|
-
for (var t = "", n = 0, r, i = 0; i < e.length; n >= 65536 ? i += 2 : i++) n =
|
|
2398
|
+
function fi(e) {
|
|
2399
|
+
for (var t = "", n = 0, r, i = 0; i < e.length; n >= 65536 ? i += 2 : i++) n = ei(e, i), r = X[n], !r && Yr(n) ? (t += e[i], n >= 65536 && (t += e[i + 1])) : t += r || Vr(n);
|
|
2558
2400
|
return t;
|
|
2559
2401
|
}
|
|
2560
|
-
function
|
|
2402
|
+
function pi(e, t, n) {
|
|
2561
2403
|
var r = "", i = e.tag, a, o, s;
|
|
2562
2404
|
for (a = 0, o = n.length; a < o; a += 1) s = n[a], e.replacer && (s = e.replacer.call(n, String(a), s)), (Q(e, t, s, !1, !1) || s === void 0 && Q(e, t, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
|
|
2563
2405
|
e.tag = i, e.dump = "[" + r + "]";
|
|
2564
2406
|
}
|
|
2565
|
-
function
|
|
2407
|
+
function mi(e, t, n, r) {
|
|
2566
2408
|
var i = "", a = e.tag, o, s, c;
|
|
2567
|
-
for (o = 0, s = n.length; o < s; o += 1) c = n[o], e.replacer && (c = e.replacer.call(n, String(o), c)), (Q(e, t + 1, c, !0, !0, !1, !0) || c === void 0 && Q(e, t + 1, null, !0, !0, !1, !0)) && ((!r || i !== "") && (i +=
|
|
2409
|
+
for (o = 0, s = n.length; o < s; o += 1) c = n[o], e.replacer && (c = e.replacer.call(n, String(o), c)), (Q(e, t + 1, c, !0, !0, !1, !0) || c === void 0 && Q(e, t + 1, null, !0, !0, !1, !0)) && ((!r || i !== "") && (i += Kr(e, t)), e.dump && hr === e.dump.charCodeAt(0) ? i += "-" : i += "- ", i += e.dump);
|
|
2568
2410
|
e.tag = a, e.dump = i || "[]";
|
|
2569
2411
|
}
|
|
2570
|
-
function
|
|
2412
|
+
function hi(e, t, n) {
|
|
2571
2413
|
var r = "", i = e.tag, a = Object.keys(n), o, s, c, l, u;
|
|
2572
2414
|
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)), Q(e, t, c, !1, !1) && (e.dump.length > 1024 && (u += "? "), u += e.dump + (e.condenseFlow ? "\"" : "") + ":" + (e.condenseFlow ? "" : " "), Q(e, t, l, !1, !1) && (u += e.dump, r += u));
|
|
2573
2415
|
e.tag = i, e.dump = "{" + r + "}";
|
|
2574
2416
|
}
|
|
2575
|
-
function
|
|
2417
|
+
function gi(e, t, n, r) {
|
|
2576
2418
|
var i = "", a = e.tag, o = Object.keys(n), s, c, l, u, d, f;
|
|
2577
2419
|
if (e.sortKeys === !0) o.sort();
|
|
2578
2420
|
else if (typeof e.sortKeys == "function") o.sort(e.sortKeys);
|
|
2579
|
-
else if (e.sortKeys) throw new
|
|
2580
|
-
for (s = 0, c = o.length; s < c; s += 1) f = "", (!r || i !== "") && (f +=
|
|
2421
|
+
else if (e.sortKeys) throw new L("sortKeys must be a boolean or a function");
|
|
2422
|
+
for (s = 0, c = o.length; s < c; s += 1) f = "", (!r || i !== "") && (f += Kr(e, t)), l = o[s], u = n[l], e.replacer && (u = e.replacer.call(n, l, u)), Q(e, t + 1, l, !0, !0, !0) && (d = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, d && (e.dump && hr === e.dump.charCodeAt(0) ? f += "?" : f += "? "), f += e.dump, d && (f += Kr(e, t)), Q(e, t + 1, u, !0, d) && (e.dump && hr === e.dump.charCodeAt(0) ? f += ":" : f += ": ", f += e.dump, i += f));
|
|
2581
2423
|
e.tag = a, e.dump = i || "{}";
|
|
2582
2424
|
}
|
|
2583
|
-
function
|
|
2425
|
+
function _i(e, t, n) {
|
|
2584
2426
|
var r, i = n ? e.explicitTypes : e.implicitTypes, a, o, s, c;
|
|
2585
2427
|
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))) {
|
|
2586
2428
|
if (n ? s.multi && s.representName ? e.tag = s.representName(t) : e.tag = s.tag : e.tag = "?", s.represent) {
|
|
2587
|
-
if (c = e.styleMap[s.tag] || s.defaultStyle,
|
|
2588
|
-
else if (
|
|
2589
|
-
else throw new
|
|
2429
|
+
if (c = e.styleMap[s.tag] || s.defaultStyle, dr.call(s.represent) === "[object Function]") r = s.represent(t, c);
|
|
2430
|
+
else if (fr.call(s.represent, c)) r = s.represent[c](t, c);
|
|
2431
|
+
else throw new L("!<" + s.tag + "> tag resolver accepts not \"" + c + "\" style");
|
|
2590
2432
|
e.dump = r;
|
|
2591
2433
|
}
|
|
2592
2434
|
return !0;
|
|
@@ -2594,81 +2436,81 @@ function Oi(e, t, n) {
|
|
|
2594
2436
|
return !1;
|
|
2595
2437
|
}
|
|
2596
2438
|
function Q(e, t, n, r, i, a, o) {
|
|
2597
|
-
e.tag = null, e.dump = n,
|
|
2598
|
-
var s =
|
|
2439
|
+
e.tag = null, e.dump = n, _i(e, n, !1) || _i(e, n, !0);
|
|
2440
|
+
var s = dr.call(e.dump), c = r, l;
|
|
2599
2441
|
r &&= e.flowLevel < 0 || e.flowLevel > t;
|
|
2600
2442
|
var u = s === "[object Object]" || s === "[object Array]", d, f;
|
|
2601
2443
|
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;
|
|
2602
2444
|
else {
|
|
2603
|
-
if (u && f && !e.usedDuplicates[d] && (e.usedDuplicates[d] = !0), s === "[object Object]") r && Object.keys(e.dump).length !== 0 ? (
|
|
2604
|
-
else if (s === "[object Array]") r && e.dump.length !== 0 ? (e.noArrayIndent && !o && t > 0 ?
|
|
2605
|
-
else if (s === "[object String]") e.tag !== "?" &&
|
|
2445
|
+
if (u && f && !e.usedDuplicates[d] && (e.usedDuplicates[d] = !0), s === "[object Object]") r && Object.keys(e.dump).length !== 0 ? (gi(e, t, e.dump, i), f && (e.dump = "&ref_" + d + e.dump)) : (hi(e, t, e.dump), f && (e.dump = "&ref_" + d + " " + e.dump));
|
|
2446
|
+
else if (s === "[object Array]") r && e.dump.length !== 0 ? (e.noArrayIndent && !o && t > 0 ? mi(e, t - 1, e.dump, i) : mi(e, t, e.dump, i), f && (e.dump = "&ref_" + d + e.dump)) : (pi(e, t, e.dump), f && (e.dump = "&ref_" + d + " " + e.dump));
|
|
2447
|
+
else if (s === "[object String]") e.tag !== "?" && si(e, e.dump, t, a, c);
|
|
2606
2448
|
else if (s === "[object Undefined]") return !1;
|
|
2607
2449
|
else {
|
|
2608
2450
|
if (e.skipInvalid) return !1;
|
|
2609
|
-
throw new
|
|
2451
|
+
throw new L("unacceptable kind of an object to dump " + s);
|
|
2610
2452
|
}
|
|
2611
2453
|
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);
|
|
2612
2454
|
}
|
|
2613
2455
|
return !0;
|
|
2614
2456
|
}
|
|
2615
|
-
function
|
|
2457
|
+
function vi(e, t) {
|
|
2616
2458
|
var n = [], r = [], i, a;
|
|
2617
|
-
for (
|
|
2459
|
+
for (yi(e, n, r), i = 0, a = r.length; i < a; i += 1) t.duplicates.push(n[r[i]]);
|
|
2618
2460
|
t.usedDuplicates = Array(a);
|
|
2619
2461
|
}
|
|
2620
|
-
function
|
|
2462
|
+
function yi(e, t, n) {
|
|
2621
2463
|
var r, i, a;
|
|
2622
2464
|
if (typeof e == "object" && e) if (i = t.indexOf(e), i !== -1) n.indexOf(i) === -1 && n.push(i);
|
|
2623
|
-
else if (t.push(e), Array.isArray(e)) for (i = 0, a = e.length; i < a; i += 1)
|
|
2624
|
-
else for (r = Object.keys(e), i = 0, a = r.length; i < a; i += 1)
|
|
2465
|
+
else if (t.push(e), Array.isArray(e)) for (i = 0, a = e.length; i < a; i += 1) yi(e[i], t, n);
|
|
2466
|
+
else for (r = Object.keys(e), i = 0, a = r.length; i < a; i += 1) yi(e[r[i]], t, n);
|
|
2625
2467
|
}
|
|
2626
|
-
function
|
|
2468
|
+
function bi(e, t) {
|
|
2627
2469
|
t ||= {};
|
|
2628
|
-
var n = new
|
|
2629
|
-
n.noRefs ||
|
|
2470
|
+
var n = new Wr(t);
|
|
2471
|
+
n.noRefs || vi(e, n);
|
|
2630
2472
|
var r = e;
|
|
2631
2473
|
return n.replacer && (r = n.replacer.call({ "": r }, "", r)), Q(n, 0, r, !0, !0) ? n.dump + "\n" : "";
|
|
2632
2474
|
}
|
|
2633
|
-
var
|
|
2634
|
-
function
|
|
2475
|
+
var xi = { dump: bi };
|
|
2476
|
+
function Si(e, t) {
|
|
2635
2477
|
return function() {
|
|
2636
2478
|
throw Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
|
|
2637
2479
|
};
|
|
2638
2480
|
}
|
|
2639
|
-
var
|
|
2640
|
-
Type:
|
|
2641
|
-
Schema:
|
|
2642
|
-
FAILSAFE_SCHEMA:
|
|
2643
|
-
JSON_SCHEMA:
|
|
2644
|
-
CORE_SCHEMA:
|
|
2645
|
-
DEFAULT_SCHEMA:
|
|
2646
|
-
load:
|
|
2647
|
-
loadAll:
|
|
2648
|
-
dump:
|
|
2649
|
-
YAMLException:
|
|
2481
|
+
var Ci = {
|
|
2482
|
+
Type: R,
|
|
2483
|
+
Schema: _t,
|
|
2484
|
+
FAILSAFE_SCHEMA: xt,
|
|
2485
|
+
JSON_SCHEMA: Wt,
|
|
2486
|
+
CORE_SCHEMA: Gt,
|
|
2487
|
+
DEFAULT_SCHEMA: bn,
|
|
2488
|
+
load: ur.load,
|
|
2489
|
+
loadAll: ur.loadAll,
|
|
2490
|
+
dump: xi.dump,
|
|
2491
|
+
YAMLException: L,
|
|
2650
2492
|
types: {
|
|
2651
|
-
binary:
|
|
2652
|
-
float:
|
|
2653
|
-
map:
|
|
2654
|
-
null:
|
|
2655
|
-
pairs:
|
|
2656
|
-
set:
|
|
2657
|
-
timestamp:
|
|
2658
|
-
bool:
|
|
2659
|
-
int:
|
|
2660
|
-
merge:
|
|
2661
|
-
omap:
|
|
2662
|
-
seq:
|
|
2663
|
-
str:
|
|
2493
|
+
binary: on,
|
|
2494
|
+
float: Ut,
|
|
2495
|
+
map: bt,
|
|
2496
|
+
null: Tt,
|
|
2497
|
+
pairs: hn,
|
|
2498
|
+
set: yn,
|
|
2499
|
+
timestamp: Zt,
|
|
2500
|
+
bool: kt,
|
|
2501
|
+
int: It,
|
|
2502
|
+
merge: $t,
|
|
2503
|
+
omap: dn,
|
|
2504
|
+
seq: yt,
|
|
2505
|
+
str: vt
|
|
2664
2506
|
},
|
|
2665
|
-
safeLoad:
|
|
2666
|
-
safeLoadAll:
|
|
2667
|
-
safeDump:
|
|
2668
|
-
},
|
|
2669
|
-
let t =
|
|
2507
|
+
safeLoad: Si("safeLoad", "load"),
|
|
2508
|
+
safeLoadAll: Si("safeLoadAll", "loadAll"),
|
|
2509
|
+
safeDump: Si("safeDump", "dump")
|
|
2510
|
+
}, wi = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), Ti = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Ei = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), Di = (e) => {
|
|
2511
|
+
let t = Ei(e);
|
|
2670
2512
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
2671
|
-
},
|
|
2513
|
+
}, Oi = {
|
|
2672
2514
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2673
2515
|
width: 24,
|
|
2674
2516
|
height: 24,
|
|
@@ -2678,58 +2520,58 @@ var Pi = {
|
|
|
2678
2520
|
strokeWidth: 2,
|
|
2679
2521
|
strokeLinecap: "round",
|
|
2680
2522
|
strokeLinejoin: "round"
|
|
2681
|
-
},
|
|
2523
|
+
}, ki = (e) => {
|
|
2682
2524
|
for (let t in e) if (t.startsWith("aria-") || t === "role" || t === "title") return !0;
|
|
2683
2525
|
return !1;
|
|
2684
|
-
},
|
|
2685
|
-
let { size: u = 24, strokeWidth: d = 2, absoluteStrokeWidth: f = !1, color: p = "currentColor", className: m = "" } =
|
|
2526
|
+
}, Ai = c({}), ji = () => p(Ai), Mi = u(({ color: e, size: t, strokeWidth: n, absoluteStrokeWidth: r, className: i = "", children: a, iconNode: o, ...s }, c) => {
|
|
2527
|
+
let { size: u = 24, strokeWidth: d = 2, absoluteStrokeWidth: f = !1, color: p = "currentColor", className: m = "" } = ji() ?? {}, h = r ?? f ? Number(n ?? d) * 24 / Number(t ?? u) : n ?? d;
|
|
2686
2528
|
return l("svg", {
|
|
2687
2529
|
ref: c,
|
|
2688
|
-
...
|
|
2689
|
-
width: t ?? u ??
|
|
2690
|
-
height: t ?? u ??
|
|
2530
|
+
...Oi,
|
|
2531
|
+
width: t ?? u ?? Oi.width,
|
|
2532
|
+
height: t ?? u ?? Oi.height,
|
|
2691
2533
|
stroke: e ?? p,
|
|
2692
2534
|
strokeWidth: h,
|
|
2693
|
-
className:
|
|
2694
|
-
...!a && !
|
|
2535
|
+
className: wi("lucide", m, i),
|
|
2536
|
+
...!a && !ki(s) && { "aria-hidden": "true" },
|
|
2695
2537
|
...s
|
|
2696
2538
|
}, [...o.map(([e, t]) => l(e, t)), ...Array.isArray(a) ? a : [a]]);
|
|
2697
|
-
}),
|
|
2698
|
-
let n = u(({ className: n, ...r }, i) => l(
|
|
2539
|
+
}), Ni = (e, t) => {
|
|
2540
|
+
let n = u(({ className: n, ...r }, i) => l(Mi, {
|
|
2699
2541
|
ref: i,
|
|
2700
2542
|
iconNode: t,
|
|
2701
|
-
className:
|
|
2543
|
+
className: wi(`lucide-${Ti(Di(e))}`, `lucide-${e}`, n),
|
|
2702
2544
|
...r
|
|
2703
2545
|
}));
|
|
2704
|
-
return n.displayName =
|
|
2705
|
-
},
|
|
2546
|
+
return n.displayName = Di(e), n;
|
|
2547
|
+
}, Pi = Ni("check", [["path", {
|
|
2706
2548
|
d: "M20 6 9 17l-5-5",
|
|
2707
2549
|
key: "1gmf2c"
|
|
2708
|
-
}]]),
|
|
2550
|
+
}]]), Fi = Ni("minus", [["path", {
|
|
2709
2551
|
d: "M5 12h14",
|
|
2710
2552
|
key: "1ays0h"
|
|
2711
|
-
}]]),
|
|
2553
|
+
}]]), Ii = Ni("plus", [["path", {
|
|
2712
2554
|
d: "M5 12h14",
|
|
2713
2555
|
key: "1ays0h"
|
|
2714
2556
|
}], ["path", {
|
|
2715
2557
|
d: "M12 5v14",
|
|
2716
2558
|
key: "s699le"
|
|
2717
|
-
}]]),
|
|
2559
|
+
}]]), Li = [.../* @__PURE__ */ "joker.jokers.commonJoker.commonJokers.uncommonJoker.uncommonJokers.rareJoker.rareJokers.legendaryJoker.legendaryJokers.voucher.vouchers.tarotCard.tarotCards.spectralCard.spectralCards.planetCard.boss.tag.smallBlindTag.bigBlindTag.standardCard.standardCards.erraticRank.erraticSuit.erraticCard.startingDraw.event.luckyMoney.luckyMult.misprintMult.wheelOfFortune.cavendishExtinct.grosMichelExtinct.spaceLevelup.businessPayout.bloodstoneTrigger.parkingPayout.glassDestroy.wheelStaysFlipped.and.or.clauses".split(".")], Ri = [
|
|
2718
2560
|
"antes",
|
|
2719
2561
|
"tags",
|
|
2720
2562
|
"labels"
|
|
2721
|
-
],
|
|
2563
|
+
], zi = [
|
|
2722
2564
|
"must",
|
|
2723
2565
|
"should",
|
|
2724
2566
|
"mustNot",
|
|
2725
2567
|
"any",
|
|
2726
2568
|
"Any",
|
|
2727
|
-
...
|
|
2728
|
-
...
|
|
2729
|
-
],
|
|
2569
|
+
...Li,
|
|
2570
|
+
...Ri
|
|
2571
|
+
], Bi = class {
|
|
2730
2572
|
static getCompletions(e) {
|
|
2731
2573
|
let t = e.toLowerCase();
|
|
2732
|
-
return
|
|
2574
|
+
return zi.filter((e) => e.toLowerCase().includes(t)).map((e) => ({
|
|
2733
2575
|
text: e,
|
|
2734
2576
|
displayText: e,
|
|
2735
2577
|
type: "keyword"
|
|
@@ -2747,14 +2589,14 @@ var Pi = {
|
|
|
2747
2589
|
gold: "#efb82d",
|
|
2748
2590
|
editorBg: "#0f1416",
|
|
2749
2591
|
editorBgAlt: "#1c2629"
|
|
2750
|
-
},
|
|
2592
|
+
}, Vi = "# 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", Hi = [
|
|
2751
2593
|
"name",
|
|
2752
2594
|
"author",
|
|
2753
2595
|
"description",
|
|
2754
2596
|
"deck",
|
|
2755
2597
|
"stake",
|
|
2756
2598
|
"label"
|
|
2757
|
-
],
|
|
2599
|
+
], Ui = [
|
|
2758
2600
|
"joker",
|
|
2759
2601
|
"soulJoker",
|
|
2760
2602
|
"voucher",
|
|
@@ -2766,7 +2608,7 @@ var Pi = {
|
|
|
2766
2608
|
"boss",
|
|
2767
2609
|
"event"
|
|
2768
2610
|
];
|
|
2769
|
-
function
|
|
2611
|
+
function Wi({ suggestions: e, selectedIndex: t, onSelect: n, onHover: r }) {
|
|
2770
2612
|
return e.length === 0 ? /* @__PURE__ */ b("div", {
|
|
2771
2613
|
className: "p-2 text-xs text-white/40 italic",
|
|
2772
2614
|
children: "No suggestions..."
|
|
@@ -2790,7 +2632,7 @@ function ta({ suggestions: e, selectedIndex: t, onSelect: n, onHover: r }) {
|
|
|
2790
2632
|
})
|
|
2791
2633
|
});
|
|
2792
2634
|
}
|
|
2793
|
-
function
|
|
2635
|
+
function Gi({ values: e, onToggle: t, color: n }) {
|
|
2794
2636
|
let [r, i] = v(!1), a = new Set(e.map((e) => parseInt(e, 10)).filter((e) => !isNaN(e)));
|
|
2795
2637
|
return r ? /* @__PURE__ */ x("div", {
|
|
2796
2638
|
className: "flex flex-row items-center",
|
|
@@ -2813,7 +2655,7 @@ function na({ values: e, onToggle: t, color: n }) {
|
|
|
2813
2655
|
}), /* @__PURE__ */ b("div", {
|
|
2814
2656
|
onClick: () => i(!1),
|
|
2815
2657
|
className: "jaml-block jaml-antes-confirm",
|
|
2816
|
-
children: /* @__PURE__ */ b(
|
|
2658
|
+
children: /* @__PURE__ */ b(Pi, {
|
|
2817
2659
|
size: 16,
|
|
2818
2660
|
strokeWidth: 3
|
|
2819
2661
|
})
|
|
@@ -2837,7 +2679,7 @@ function na({ values: e, onToggle: t, color: n }) {
|
|
|
2837
2679
|
})()
|
|
2838
2680
|
});
|
|
2839
2681
|
}
|
|
2840
|
-
function
|
|
2682
|
+
function Ki(e, t) {
|
|
2841
2683
|
let [n, r] = v(null);
|
|
2842
2684
|
return m(() => {
|
|
2843
2685
|
if (!t || !e.current) {
|
|
@@ -2858,7 +2700,7 @@ function ra(e, t) {
|
|
|
2858
2700
|
};
|
|
2859
2701
|
}, [t, e]), n;
|
|
2860
2702
|
}
|
|
2861
|
-
function
|
|
2703
|
+
function qi({ initialJaml: e, onJamlChange: t, className: n }) {
|
|
2862
2704
|
let [r, i] = v([]), [a, o] = v(null), [s, c] = v(null), [l, u] = v(null), d = _(null), p = f((e) => {
|
|
2863
2705
|
let t = e.split("\n"), n;
|
|
2864
2706
|
return t.map((e, t) => {
|
|
@@ -2867,9 +2709,9 @@ function ia({ initialJaml: e, onJamlChange: t, className: n }) {
|
|
|
2867
2709
|
let e = i.indexOf(":"), t = i.slice(o ? 2 : 0, e).trim(), n = i.slice(e + 1).trim();
|
|
2868
2710
|
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));
|
|
2869
2711
|
}
|
|
2870
|
-
r === 0 && !o && (n = void 0), o && s &&
|
|
2712
|
+
r === 0 && !o && (n = void 0), o && s && Ui.includes(s) && (n = s);
|
|
2871
2713
|
let d = "complete", f = !1;
|
|
2872
|
-
return s && (
|
|
2714
|
+
return s && (Hi.includes(s) ? d = "metadata" : Ui.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")), {
|
|
2873
2715
|
id: `line-${t}`,
|
|
2874
2716
|
raw: e,
|
|
2875
2717
|
indent: r,
|
|
@@ -2888,7 +2730,7 @@ function ia({ initialJaml: e, onJamlChange: t, className: n }) {
|
|
|
2888
2730
|
}, []), m = f((e) => e.map((e) => e.raw).join("\n"), []), [h, y] = v(e);
|
|
2889
2731
|
if (e !== h) {
|
|
2890
2732
|
y(e);
|
|
2891
|
-
let t = e ||
|
|
2733
|
+
let t = e || Vi;
|
|
2892
2734
|
(r.length === 0 || m(r) !== t) && i(p(t));
|
|
2893
2735
|
}
|
|
2894
2736
|
let S = f((e, n, a) => {
|
|
@@ -2908,7 +2750,7 @@ function ia({ initialJaml: e, onJamlChange: t, className: n }) {
|
|
|
2908
2750
|
i(o);
|
|
2909
2751
|
let s = m(o);
|
|
2910
2752
|
if (t) try {
|
|
2911
|
-
t(s,
|
|
2753
|
+
t(s, Ci.load(s), !0);
|
|
2912
2754
|
} catch {
|
|
2913
2755
|
t(s, null, !1);
|
|
2914
2756
|
}
|
|
@@ -2932,7 +2774,7 @@ function ia({ initialJaml: e, onJamlChange: t, className: n }) {
|
|
|
2932
2774
|
i(o);
|
|
2933
2775
|
let s = m(o);
|
|
2934
2776
|
if (t) try {
|
|
2935
|
-
t(s,
|
|
2777
|
+
t(s, Ci.load(s), !0);
|
|
2936
2778
|
} catch {
|
|
2937
2779
|
t(s, null, !1);
|
|
2938
2780
|
}
|
|
@@ -2955,7 +2797,7 @@ function ia({ initialJaml: e, onJamlChange: t, className: n }) {
|
|
|
2955
2797
|
i(a);
|
|
2956
2798
|
let o = m(a);
|
|
2957
2799
|
if (t) try {
|
|
2958
|
-
t(o,
|
|
2800
|
+
t(o, Ci.load(o), !0);
|
|
2959
2801
|
} catch {
|
|
2960
2802
|
t(o, null, !1);
|
|
2961
2803
|
}
|
|
@@ -2963,7 +2805,7 @@ function ia({ initialJaml: e, onJamlChange: t, className: n }) {
|
|
|
2963
2805
|
r,
|
|
2964
2806
|
m,
|
|
2965
2807
|
t
|
|
2966
|
-
]),
|
|
2808
|
+
]), T = f((e, n) => {
|
|
2967
2809
|
let a = r.map((t) => {
|
|
2968
2810
|
if (t.id !== e || !t.arrayValues) return t;
|
|
2969
2811
|
let r = t.arrayValues.filter((e, t) => t !== n), i = r.length > 0 ? `[${r.join(", ")}]` : "", a = `${" ".repeat(t.indent)}${t.isArrayItem ? "- " : ""}${t.key}: ${i}`;
|
|
@@ -2978,7 +2820,7 @@ function ia({ initialJaml: e, onJamlChange: t, className: n }) {
|
|
|
2978
2820
|
i(a);
|
|
2979
2821
|
let o = m(a);
|
|
2980
2822
|
if (t) try {
|
|
2981
|
-
t(o,
|
|
2823
|
+
t(o, Ci.load(o), !0);
|
|
2982
2824
|
} catch {
|
|
2983
2825
|
t(o, null, !1);
|
|
2984
2826
|
}
|
|
@@ -2986,7 +2828,7 @@ function ia({ initialJaml: e, onJamlChange: t, className: n }) {
|
|
|
2986
2828
|
r,
|
|
2987
2829
|
m,
|
|
2988
2830
|
t
|
|
2989
|
-
]),
|
|
2831
|
+
]), E = f((e) => {
|
|
2990
2832
|
let n = r.filter((t) => t.id !== e).map((e, t) => ({
|
|
2991
2833
|
...e,
|
|
2992
2834
|
lineNumber: t,
|
|
@@ -2995,7 +2837,7 @@ function ia({ initialJaml: e, onJamlChange: t, className: n }) {
|
|
|
2995
2837
|
i(n);
|
|
2996
2838
|
let a = m(n);
|
|
2997
2839
|
if (t) try {
|
|
2998
|
-
t(a,
|
|
2840
|
+
t(a, Ci.load(a), !0);
|
|
2999
2841
|
} catch {
|
|
3000
2842
|
t(a, null, !1);
|
|
3001
2843
|
}
|
|
@@ -3003,7 +2845,7 @@ function ia({ initialJaml: e, onJamlChange: t, className: n }) {
|
|
|
3003
2845
|
r,
|
|
3004
2846
|
m,
|
|
3005
2847
|
t
|
|
3006
|
-
]),
|
|
2848
|
+
]), D = g(() => {
|
|
3007
2849
|
let e = {};
|
|
3008
2850
|
for (let t of r) t.key && (e[t.indent] = Math.min(Math.max(e[t.indent] || 0, t.key.length), 12));
|
|
3009
2851
|
return e;
|
|
@@ -3014,9 +2856,9 @@ function ia({ initialJaml: e, onJamlChange: t, className: n }) {
|
|
|
3014
2856
|
tabIndex: 0,
|
|
3015
2857
|
children: [/* @__PURE__ */ b("div", {
|
|
3016
2858
|
className: "flex flex-col gap-0.5",
|
|
3017
|
-
children: r.map((e) => /* @__PURE__ */ b(
|
|
2859
|
+
children: r.map((e) => /* @__PURE__ */ b(Ji, {
|
|
3018
2860
|
line: e,
|
|
3019
|
-
keyWidth:
|
|
2861
|
+
keyWidth: D[e.indent] || 8,
|
|
3020
2862
|
isEditing: a === e.id,
|
|
3021
2863
|
editingPart: a === e.id ? s : null,
|
|
3022
2864
|
editingArrayIndex: a === e.id ? l : null,
|
|
@@ -3029,8 +2871,8 @@ function ia({ initialJaml: e, onJamlChange: t, className: n }) {
|
|
|
3029
2871
|
onChange: (t, n) => S(e.id, t, n),
|
|
3030
2872
|
onArrayItemChange: (t, n) => C(e.id, t, n),
|
|
3031
2873
|
onArrayItemAdd: (t) => w(e.id, t),
|
|
3032
|
-
onArrayItemRemove: (t) =>
|
|
3033
|
-
onDelete: () =>
|
|
2874
|
+
onArrayItemRemove: (t) => T(e.id, t),
|
|
2875
|
+
onDelete: () => E(e.id)
|
|
3034
2876
|
}, e.id))
|
|
3035
2877
|
}), /* @__PURE__ */ x("div", {
|
|
3036
2878
|
className: "mt-4 p-2 bg-black/40 rounded border border-white/5 flex flex-wrap gap-4 text-[12px] text-white/50 font-mono",
|
|
@@ -3059,28 +2901,28 @@ function ia({ initialJaml: e, onJamlChange: t, className: n }) {
|
|
|
3059
2901
|
})]
|
|
3060
2902
|
});
|
|
3061
2903
|
}
|
|
3062
|
-
function
|
|
3063
|
-
let [f, p] = v(0), [h, y] = v(""), [S, C] = v(""), [
|
|
2904
|
+
function Ji({ line: e, keyWidth: t, isEditing: n, editingPart: r, editingArrayIndex: i, onStartEdit: a, onEndEdit: o, onChange: s, onArrayItemChange: c, onArrayItemAdd: l, onArrayItemRemove: u, onDelete: d }) {
|
|
2905
|
+
let [f, p] = v(0), [h, y] = v(""), [S, C] = v(""), [T, E] = v({
|
|
3064
2906
|
isEditing: n,
|
|
3065
2907
|
editingPart: r,
|
|
3066
2908
|
editingArrayIndex: i,
|
|
3067
2909
|
lineRaw: e.raw
|
|
3068
2910
|
});
|
|
3069
|
-
(n !==
|
|
2911
|
+
(n !== T.isEditing || r !== T.editingPart || i !== T.editingArrayIndex || e.raw !== T.lineRaw) && (E({
|
|
3070
2912
|
isEditing: n,
|
|
3071
2913
|
editingPart: r,
|
|
3072
2914
|
editingArrayIndex: i,
|
|
3073
2915
|
lineRaw: e.raw
|
|
3074
2916
|
}), n && y(r === "key" ? e.key || "" : r === "value" ? (e.value || "").replace(/^~|~$/g, "") : r === "arrayItem" && i !== null && e.arrayValues?.[i] || ""));
|
|
3075
|
-
let
|
|
2917
|
+
let D = g(() => !n || !r ? "" : r === "value" && e.key ? `${e.key}: ${h}` : r === "key" ? h : e.raw, [
|
|
3076
2918
|
n,
|
|
3077
2919
|
r,
|
|
3078
2920
|
h,
|
|
3079
2921
|
e.raw,
|
|
3080
2922
|
e.key
|
|
3081
|
-
]),
|
|
3082
|
-
|
|
3083
|
-
let
|
|
2923
|
+
]), O = g(() => D ? Bi.getCompletions(D).slice(0, 10) : [], [D]);
|
|
2924
|
+
D !== S && (C(D), p(0));
|
|
2925
|
+
let k = _(null), A = _(null), j = Ki(A, n && O.length > 0), M = () => {
|
|
3084
2926
|
switch (e.validationState) {
|
|
3085
2927
|
case "required-incomplete": return $.red;
|
|
3086
2928
|
case "optional-incomplete": return $.blue;
|
|
@@ -3089,7 +2931,7 @@ function aa({ line: e, keyWidth: t, isEditing: n, editingPart: r, editingArrayIn
|
|
|
3089
2931
|
case "metadata": return $.purple;
|
|
3090
2932
|
default: return "#888";
|
|
3091
2933
|
}
|
|
3092
|
-
},
|
|
2934
|
+
}, ee = () => {
|
|
3093
2935
|
switch (e.validationState) {
|
|
3094
2936
|
case "required-incomplete": return $.red;
|
|
3095
2937
|
case "optional-incomplete": return $.blue;
|
|
@@ -3100,14 +2942,14 @@ function aa({ line: e, keyWidth: t, isEditing: n, editingPart: r, editingArrayIn
|
|
|
3100
2942
|
}
|
|
3101
2943
|
};
|
|
3102
2944
|
m(() => {
|
|
3103
|
-
n &&
|
|
2945
|
+
n && k.current && k.current.focus();
|
|
3104
2946
|
}, [n]);
|
|
3105
|
-
let
|
|
2947
|
+
let te = (t) => {
|
|
3106
2948
|
if (t.key === "Enter") {
|
|
3107
2949
|
t.preventDefault();
|
|
3108
|
-
let n =
|
|
2950
|
+
let n = O.length > 0 && f >= 0 ? O[f].text : h;
|
|
3109
2951
|
r === "key" ? s("key", n) : r === "value" ? s("value", n) : r === "arrayItem" && (i >= (e.arrayValues?.length || 0) ? l(n) : c(i, n)), o();
|
|
3110
|
-
} else t.key === "ArrowDown" ? (t.preventDefault(), p(Math.min(f + 1,
|
|
2952
|
+
} else t.key === "ArrowDown" ? (t.preventDefault(), p(Math.min(f + 1, O.length - 1))) : t.key === "ArrowUp" ? (t.preventDefault(), p(Math.max(f - 1, 0))) : t.key === "Escape" ? o() : t.key === "Backspace" && h === "" && r === "arrayItem" && (u(i), o());
|
|
3111
2953
|
};
|
|
3112
2954
|
if (e.isComment) return /* @__PURE__ */ b("div", {
|
|
3113
2955
|
className: "pl-8 text-stone-400 italic text-xs py-0.5",
|
|
@@ -3119,10 +2961,10 @@ function aa({ line: e, keyWidth: t, isEditing: n, editingPart: r, editingArrayIn
|
|
|
3119
2961
|
style: { "--jaml-color": e.key === "must" ? $.red : $.blue },
|
|
3120
2962
|
children: e.raw
|
|
3121
2963
|
});
|
|
3122
|
-
let
|
|
3123
|
-
"--popover-top": `${
|
|
3124
|
-
"--popover-left": `${
|
|
3125
|
-
"--popover-transform":
|
|
2964
|
+
let ne = " ".repeat(e.indent), re = e.isArrayItem ? "- " : "", ie = j ? {
|
|
2965
|
+
"--popover-top": `${j.top}px`,
|
|
2966
|
+
"--popover-left": `${j.left}px`,
|
|
2967
|
+
"--popover-transform": j.position === "top" ? "translateY(-100%)" : "none"
|
|
3126
2968
|
} : {};
|
|
3127
2969
|
return /* @__PURE__ */ x("div", {
|
|
3128
2970
|
className: "relative flex items-center py-0.5 group",
|
|
@@ -3132,43 +2974,43 @@ function aa({ line: e, keyWidth: t, isEditing: n, editingPart: r, editingArrayIn
|
|
|
3132
2974
|
onClick: (e) => {
|
|
3133
2975
|
e.stopPropagation(), d();
|
|
3134
2976
|
},
|
|
3135
|
-
children: /* @__PURE__ */ b(
|
|
2977
|
+
children: /* @__PURE__ */ b(Fi, {
|
|
3136
2978
|
size: 12,
|
|
3137
2979
|
className: "text-orange-500 hover:bg-orange-100 rounded"
|
|
3138
2980
|
})
|
|
3139
2981
|
}),
|
|
3140
2982
|
/* @__PURE__ */ x("span", {
|
|
3141
2983
|
className: "whitespace-pre text-stone-400",
|
|
3142
|
-
children: [
|
|
2984
|
+
children: [ne, re]
|
|
3143
2985
|
}),
|
|
3144
2986
|
e.key && /* @__PURE__ */ x("div", {
|
|
3145
2987
|
className: "relative",
|
|
3146
2988
|
children: [/* @__PURE__ */ b("div", {
|
|
3147
|
-
ref: r === "key" ?
|
|
2989
|
+
ref: r === "key" ? A : null,
|
|
3148
2990
|
onClick: (e) => {
|
|
3149
2991
|
e.stopPropagation(), a("key");
|
|
3150
2992
|
},
|
|
3151
2993
|
className: "jaml-block jaml-block--start",
|
|
3152
2994
|
style: {
|
|
3153
2995
|
"--jaml-min-w": `${t}ch`,
|
|
3154
|
-
"--jaml-color": n && r === "key" ?
|
|
3155
|
-
"--jaml-bg": n && r === "key" ? `${
|
|
2996
|
+
"--jaml-color": n && r === "key" ? ee() : M(),
|
|
2997
|
+
"--jaml-bg": n && r === "key" ? `${ee()}15` : "transparent"
|
|
3156
2998
|
},
|
|
3157
2999
|
children: n && r === "key" ? /* @__PURE__ */ b("input", {
|
|
3158
|
-
ref:
|
|
3000
|
+
ref: k,
|
|
3159
3001
|
title: "Edit key",
|
|
3160
3002
|
value: h,
|
|
3161
3003
|
onChange: (e) => y(e.target.value),
|
|
3162
|
-
onKeyDown:
|
|
3004
|
+
onKeyDown: te,
|
|
3163
3005
|
onBlur: () => setTimeout(o, 200),
|
|
3164
3006
|
className: "jaml-inline-input",
|
|
3165
|
-
style: { "--jaml-color":
|
|
3007
|
+
style: { "--jaml-color": ee() }
|
|
3166
3008
|
}) : e.key
|
|
3167
|
-
}), n && r === "key" &&
|
|
3009
|
+
}), n && r === "key" && O.length > 0 && j && w(/* @__PURE__ */ b("div", {
|
|
3168
3010
|
className: "jaml-suggestion-popover",
|
|
3169
|
-
style:
|
|
3170
|
-
children: /* @__PURE__ */ b(
|
|
3171
|
-
suggestions:
|
|
3011
|
+
style: ie,
|
|
3012
|
+
children: /* @__PURE__ */ b(Wi, {
|
|
3013
|
+
suggestions: O,
|
|
3172
3014
|
selectedIndex: f,
|
|
3173
3015
|
onHover: p,
|
|
3174
3016
|
onSelect: (e) => {
|
|
@@ -3181,13 +3023,13 @@ function aa({ line: e, keyWidth: t, isEditing: n, editingPart: r, editingArrayIn
|
|
|
3181
3023
|
className: "text-stone-400 mr-1",
|
|
3182
3024
|
children: ":"
|
|
3183
3025
|
}),
|
|
3184
|
-
e.key && (e.isArrayValue && e.arrayValues ? e.key === "antes" ? /* @__PURE__ */ b(
|
|
3026
|
+
e.key && (e.isArrayValue && e.arrayValues ? e.key === "antes" ? /* @__PURE__ */ b(Gi, {
|
|
3185
3027
|
values: e.arrayValues,
|
|
3186
3028
|
onToggle: (t) => {
|
|
3187
3029
|
let n = e.arrayValues.indexOf(t);
|
|
3188
3030
|
n >= 0 ? u(n) : l(t);
|
|
3189
3031
|
},
|
|
3190
|
-
color:
|
|
3032
|
+
color: ee()
|
|
3191
3033
|
}) : /* @__PURE__ */ x("div", {
|
|
3192
3034
|
className: "flex gap-0.5 items-center",
|
|
3193
3035
|
children: [e.arrayValues.map((e, t) => /* @__PURE__ */ b("div", {
|
|
@@ -3197,16 +3039,16 @@ function aa({ line: e, keyWidth: t, isEditing: n, editingPart: r, editingArrayIn
|
|
|
3197
3039
|
className: "jaml-block",
|
|
3198
3040
|
style: {
|
|
3199
3041
|
"--jaml-min-w": "24px",
|
|
3200
|
-
"--jaml-bg": `${
|
|
3201
|
-
"--jaml-border": `1px solid ${
|
|
3202
|
-
"--jaml-color":
|
|
3042
|
+
"--jaml-bg": `${M()}15`,
|
|
3043
|
+
"--jaml-border": `1px solid ${M()}40`,
|
|
3044
|
+
"--jaml-color": M()
|
|
3203
3045
|
},
|
|
3204
3046
|
children: n && r === "arrayItem" && i === t ? /* @__PURE__ */ b("input", {
|
|
3205
|
-
ref:
|
|
3047
|
+
ref: k,
|
|
3206
3048
|
title: "Edit array item",
|
|
3207
3049
|
value: h,
|
|
3208
3050
|
onChange: (e) => y(e.target.value),
|
|
3209
|
-
onKeyDown:
|
|
3051
|
+
onKeyDown: te,
|
|
3210
3052
|
onBlur: () => setTimeout(o, 200),
|
|
3211
3053
|
className: "bg-transparent w-[3ch] text-center outline-none"
|
|
3212
3054
|
}) : e
|
|
@@ -3221,41 +3063,41 @@ function aa({ line: e, keyWidth: t, isEditing: n, editingPart: r, editingArrayIn
|
|
|
3221
3063
|
"--jaml-border": `1px solid ${$.green}40`,
|
|
3222
3064
|
"--jaml-color": $.green
|
|
3223
3065
|
},
|
|
3224
|
-
children: /* @__PURE__ */ b(
|
|
3066
|
+
children: /* @__PURE__ */ b(Ii, { size: 12 })
|
|
3225
3067
|
})]
|
|
3226
3068
|
}) : /* @__PURE__ */ x("div", {
|
|
3227
3069
|
className: "relative",
|
|
3228
3070
|
children: [/* @__PURE__ */ b("div", {
|
|
3229
|
-
ref: r === "value" ?
|
|
3071
|
+
ref: r === "value" ? A : null,
|
|
3230
3072
|
onClick: (e) => {
|
|
3231
3073
|
e.stopPropagation(), a("value");
|
|
3232
3074
|
},
|
|
3233
3075
|
className: "jaml-block",
|
|
3234
3076
|
style: {
|
|
3235
3077
|
"--jaml-min-w": e.value ? void 0 : "60px",
|
|
3236
|
-
"--jaml-color": e.isInvalidValue ? $.red : e.value ?
|
|
3237
|
-
"--jaml-bg": e.isInvalidValue ? `${$.red}15` : e.value ? `${
|
|
3238
|
-
"--jaml-border": `1px solid ${e.isInvalidValue ? `${$.red}60` : e.value ? `${
|
|
3078
|
+
"--jaml-color": e.isInvalidValue ? $.red : e.value ? M() : $.red,
|
|
3079
|
+
"--jaml-bg": e.isInvalidValue ? `${$.red}15` : e.value ? `${M()}10` : `${$.red}08`,
|
|
3080
|
+
"--jaml-border": `1px solid ${e.isInvalidValue ? `${$.red}60` : e.value ? `${M()}40` : `${$.red}40`}`,
|
|
3239
3081
|
"--jaml-text-decoration": e.isInvalidValue ? "line-through" : "none"
|
|
3240
3082
|
},
|
|
3241
3083
|
children: n && r === "value" ? /* @__PURE__ */ b("input", {
|
|
3242
|
-
ref:
|
|
3084
|
+
ref: k,
|
|
3243
3085
|
title: "Edit value",
|
|
3244
3086
|
value: h,
|
|
3245
3087
|
onChange: (e) => y(e.target.value),
|
|
3246
|
-
onKeyDown:
|
|
3088
|
+
onKeyDown: te,
|
|
3247
3089
|
onBlur: () => setTimeout(o, 200),
|
|
3248
3090
|
className: "jaml-inline-input jaml-inline-input--sized",
|
|
3249
3091
|
style: {
|
|
3250
|
-
"--jaml-color":
|
|
3092
|
+
"--jaml-color": M(),
|
|
3251
3093
|
"--jaml-input-w": `${Math.max(h.length, 4)}ch`
|
|
3252
3094
|
}
|
|
3253
3095
|
}) : e.isInvalidValue ? e.value?.replace(/~/g, "") : e.value || "???"
|
|
3254
|
-
}), n && r === "value" &&
|
|
3096
|
+
}), n && r === "value" && O.length > 0 && j && w(/* @__PURE__ */ b("div", {
|
|
3255
3097
|
className: "jaml-suggestion-popover",
|
|
3256
|
-
style:
|
|
3257
|
-
children: /* @__PURE__ */ b(
|
|
3258
|
-
suggestions:
|
|
3098
|
+
style: ie,
|
|
3099
|
+
children: /* @__PURE__ */ b(Wi, {
|
|
3100
|
+
suggestions: O,
|
|
3259
3101
|
selectedIndex: f,
|
|
3260
3102
|
onHover: p,
|
|
3261
3103
|
onSelect: (e) => {
|
|
@@ -3269,7 +3111,7 @@ function aa({ line: e, keyWidth: t, isEditing: n, editingPart: r, editingArrayIn
|
|
|
3269
3111
|
}
|
|
3270
3112
|
//#endregion
|
|
3271
3113
|
//#region src/ui/JimboInputModal.tsx
|
|
3272
|
-
function
|
|
3114
|
+
function Yi({ open: e, title: t, message: n, placeholder: r, initialValue: i = "", confirmLabel: a = "Confirm", cancelLabel: o = "Cancel", validate: s, onConfirm: c, onCancel: l }) {
|
|
3273
3115
|
let [u, d] = v(i), [f, p] = v(null), h = _(null), [g, y] = v(e);
|
|
3274
3116
|
e !== g && (y(e), e && (d(i), p(null))), m(() => {
|
|
3275
3117
|
if (e) {
|
|
@@ -3285,18 +3127,18 @@ function oa({ open: e, title: t, message: n, placeholder: r, initialValue: i = "
|
|
|
3285
3127
|
}
|
|
3286
3128
|
c(u);
|
|
3287
3129
|
}
|
|
3288
|
-
return /* @__PURE__ */ x(
|
|
3130
|
+
return /* @__PURE__ */ x(ue, {
|
|
3289
3131
|
onClose: l,
|
|
3290
3132
|
open: e,
|
|
3291
3133
|
title: t,
|
|
3292
3134
|
children: [
|
|
3293
|
-
n && /* @__PURE__ */ b(
|
|
3135
|
+
n && /* @__PURE__ */ b(N, {
|
|
3294
3136
|
size: "sm",
|
|
3295
3137
|
className: "j-input-modal__message",
|
|
3296
3138
|
tone: "grey",
|
|
3297
3139
|
children: n
|
|
3298
3140
|
}),
|
|
3299
|
-
/* @__PURE__ */ b(
|
|
3141
|
+
/* @__PURE__ */ b(oe, {
|
|
3300
3142
|
invalid: !!f,
|
|
3301
3143
|
onChange: (e) => {
|
|
3302
3144
|
d(e.target.value), f && p(null);
|
|
@@ -3309,7 +3151,7 @@ function oa({ open: e, title: t, message: n, placeholder: r, initialValue: i = "
|
|
|
3309
3151
|
type: "text",
|
|
3310
3152
|
value: u
|
|
3311
3153
|
}),
|
|
3312
|
-
f && /* @__PURE__ */ b(
|
|
3154
|
+
f && /* @__PURE__ */ b(N, {
|
|
3313
3155
|
size: "sm",
|
|
3314
3156
|
className: "j-input-modal__error",
|
|
3315
3157
|
tone: "red",
|
|
@@ -3317,12 +3159,12 @@ function oa({ open: e, title: t, message: n, placeholder: r, initialValue: i = "
|
|
|
3317
3159
|
}),
|
|
3318
3160
|
/* @__PURE__ */ x("div", {
|
|
3319
3161
|
className: "j-input-modal__actions",
|
|
3320
|
-
children: [/* @__PURE__ */ b(
|
|
3162
|
+
children: [/* @__PURE__ */ b(P, {
|
|
3321
3163
|
onClick: l,
|
|
3322
3164
|
size: "sm",
|
|
3323
3165
|
tone: "red",
|
|
3324
3166
|
children: o
|
|
3325
|
-
}), /* @__PURE__ */ b(
|
|
3167
|
+
}), /* @__PURE__ */ b(P, {
|
|
3326
3168
|
onClick: S,
|
|
3327
3169
|
size: "sm",
|
|
3328
3170
|
tone: "blue",
|
|
@@ -3334,7 +3176,7 @@ function oa({ open: e, title: t, message: n, placeholder: r, initialValue: i = "
|
|
|
3334
3176
|
}
|
|
3335
3177
|
//#endregion
|
|
3336
3178
|
//#region src/ui/JimboListItem.tsx
|
|
3337
|
-
var
|
|
3179
|
+
var Xi = s.forwardRef(function({ active: e = !1, className: t = "", children: n, ...r }, i) {
|
|
3338
3180
|
return /* @__PURE__ */ b("button", {
|
|
3339
3181
|
ref: i,
|
|
3340
3182
|
type: "button",
|
|
@@ -3345,51 +3187,8 @@ var sa = s.forwardRef(function({ active: e = !1, className: t = "", children: n,
|
|
|
3345
3187
|
});
|
|
3346
3188
|
});
|
|
3347
3189
|
//#endregion
|
|
3348
|
-
//#region src/ui/JimboSpinner.tsx
|
|
3349
|
-
function ca({ value: e, label: t, onPrev: n, onNext: r, canPrev: i = !0, canNext: a = !0, className: o = "" }) {
|
|
3350
|
-
return /* @__PURE__ */ x("div", {
|
|
3351
|
-
className: `j-spinner-wrap ${o}`,
|
|
3352
|
-
children: [t && /* @__PURE__ */ b("div", {
|
|
3353
|
-
className: "j-spinner__label",
|
|
3354
|
-
children: /* @__PURE__ */ b(P, {
|
|
3355
|
-
size: "sm",
|
|
3356
|
-
tone: "white",
|
|
3357
|
-
children: t
|
|
3358
|
-
})
|
|
3359
|
-
}), /* @__PURE__ */ x("div", {
|
|
3360
|
-
className: "j-spinner",
|
|
3361
|
-
children: [
|
|
3362
|
-
/* @__PURE__ */ b(I, {
|
|
3363
|
-
tone: "red",
|
|
3364
|
-
size: "sm",
|
|
3365
|
-
onClick: n,
|
|
3366
|
-
disabled: !i,
|
|
3367
|
-
"aria-label": `Previous ${t ?? "value"}`,
|
|
3368
|
-
children: "<"
|
|
3369
|
-
}),
|
|
3370
|
-
/* @__PURE__ */ b("div", {
|
|
3371
|
-
className: "j-spinner__value",
|
|
3372
|
-
children: /* @__PURE__ */ b(P, {
|
|
3373
|
-
size: "sm",
|
|
3374
|
-
tone: "white",
|
|
3375
|
-
children: e
|
|
3376
|
-
})
|
|
3377
|
-
}),
|
|
3378
|
-
/* @__PURE__ */ b(I, {
|
|
3379
|
-
tone: "red",
|
|
3380
|
-
size: "sm",
|
|
3381
|
-
onClick: r,
|
|
3382
|
-
disabled: !a,
|
|
3383
|
-
"aria-label": `Next ${t ?? "value"}`,
|
|
3384
|
-
children: ">"
|
|
3385
|
-
})
|
|
3386
|
-
]
|
|
3387
|
-
})]
|
|
3388
|
-
});
|
|
3389
|
-
}
|
|
3390
|
-
//#endregion
|
|
3391
3190
|
//#region src/ui/JimboSelect.tsx
|
|
3392
|
-
function
|
|
3191
|
+
function Zi({ value: e, options: t, onChange: n, disabled: r = !1, label: i, "aria-label": a, style: o }) {
|
|
3393
3192
|
let s = (t.length === 0 ? [] : typeof t[0] == "string" ? t.map((e) => ({ value: e })) : t).filter((e) => !e.disabled), c = Math.max(0, s.findIndex((t) => t.value === e)), l = s[c] ?? s[0];
|
|
3394
3193
|
if (!l) return null;
|
|
3395
3194
|
function u(e) {
|
|
@@ -3398,7 +3197,7 @@ function la({ value: e, options: t, onChange: n, disabled: r = !1, label: i, "ar
|
|
|
3398
3197
|
return /* @__PURE__ */ b("div", {
|
|
3399
3198
|
style: o,
|
|
3400
3199
|
"aria-label": a,
|
|
3401
|
-
children: /* @__PURE__ */ b(
|
|
3200
|
+
children: /* @__PURE__ */ b(xe, {
|
|
3402
3201
|
label: i,
|
|
3403
3202
|
value: l.label ?? l.value,
|
|
3404
3203
|
onPrev: () => u(-1),
|
|
@@ -3410,7 +3209,7 @@ function la({ value: e, options: t, onChange: n, disabled: r = !1, label: i, "ar
|
|
|
3410
3209
|
}
|
|
3411
3210
|
//#endregion
|
|
3412
3211
|
//#region src/ui/JimboStepper.tsx
|
|
3413
|
-
function
|
|
3212
|
+
function Qi({ count: e, index: t, onIndexChange: n, ariaLabel: r = "Page indicator", className: i = "", style: a }) {
|
|
3414
3213
|
if (e <= 1) return null;
|
|
3415
3214
|
let o = !!n;
|
|
3416
3215
|
return /* @__PURE__ */ b("div", {
|
|
@@ -3442,7 +3241,7 @@ function ua({ count: e, index: t, onIndexChange: n, ariaLabel: r = "Page indicat
|
|
|
3442
3241
|
}
|
|
3443
3242
|
//#endregion
|
|
3444
3243
|
//#region src/ui/JimboValueBadge.tsx
|
|
3445
|
-
function
|
|
3244
|
+
function $i({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, unit: a, readOnly: o = !1, className: s = "", style: c }) {
|
|
3446
3245
|
let [l, u] = v(!1), [d, f] = v(String(e)), p = _(null);
|
|
3447
3246
|
m(() => {
|
|
3448
3247
|
l && (p.current?.focus(), p.current?.select());
|
|
@@ -3486,7 +3285,7 @@ function da({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, unit
|
|
|
3486
3285
|
onClick: x ? h : void 0,
|
|
3487
3286
|
disabled: !x,
|
|
3488
3287
|
tabIndex: x ? 0 : -1,
|
|
3489
|
-
children: /* @__PURE__ */ b(
|
|
3288
|
+
children: /* @__PURE__ */ b(N, {
|
|
3490
3289
|
size: "xs",
|
|
3491
3290
|
tone: "white",
|
|
3492
3291
|
children: S
|
|
@@ -3495,14 +3294,14 @@ function da({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, unit
|
|
|
3495
3294
|
}
|
|
3496
3295
|
//#endregion
|
|
3497
3296
|
//#region src/ui/JimboSlider.tsx
|
|
3498
|
-
function
|
|
3297
|
+
function ea({ value: e, min: t = 0, max: n = 100, step: r = 1, label: i, onChange: a, className: o = "", id: c }) {
|
|
3499
3298
|
let l = n === t ? 0 : (e - t) / (n - t) * 100, u = s.useId(), d = c ?? u;
|
|
3500
3299
|
return /* @__PURE__ */ x("div", {
|
|
3501
3300
|
className: `j-slider-wrap ${o}`,
|
|
3502
3301
|
children: [i && /* @__PURE__ */ b("label", {
|
|
3503
3302
|
htmlFor: d,
|
|
3504
3303
|
className: "j-slider__label",
|
|
3505
|
-
children: /* @__PURE__ */ b(
|
|
3304
|
+
children: /* @__PURE__ */ b(N, {
|
|
3506
3305
|
size: "sm",
|
|
3507
3306
|
tone: "white",
|
|
3508
3307
|
children: i
|
|
@@ -3531,7 +3330,7 @@ function fa({ value: e, min: t = 0, max: n = 100, step: r = 1, label: i, onChang
|
|
|
3531
3330
|
/* @__PURE__ */ b("div", {
|
|
3532
3331
|
className: "j-slider__thumb",
|
|
3533
3332
|
style: { left: `${l}%` },
|
|
3534
|
-
children: /* @__PURE__ */ b(
|
|
3333
|
+
children: /* @__PURE__ */ b($i, {
|
|
3535
3334
|
value: e,
|
|
3536
3335
|
min: t,
|
|
3537
3336
|
max: n,
|
|
@@ -3545,19 +3344,19 @@ function fa({ value: e, min: t = 0, max: n = 100, step: r = 1, label: i, onChang
|
|
|
3545
3344
|
}
|
|
3546
3345
|
//#endregion
|
|
3547
3346
|
//#region src/ui/JimboDualChip.tsx
|
|
3548
|
-
function
|
|
3347
|
+
function ta({ left: e, right: t, className: n = "" }) {
|
|
3549
3348
|
return /* @__PURE__ */ x("div", {
|
|
3550
3349
|
className: `j-dual-chip ${n}`,
|
|
3551
3350
|
children: [/* @__PURE__ */ b("div", {
|
|
3552
3351
|
className: `j-dual-chip__half j-dual-chip__half--left j-dual-chip__half--${e.tone}`,
|
|
3553
|
-
children: /* @__PURE__ */ b(
|
|
3352
|
+
children: /* @__PURE__ */ b(N, {
|
|
3554
3353
|
size: "md",
|
|
3555
3354
|
tone: e.tone === "gold" ? "default" : "white",
|
|
3556
3355
|
children: e.value
|
|
3557
3356
|
})
|
|
3558
3357
|
}), /* @__PURE__ */ b("div", {
|
|
3559
3358
|
className: `j-dual-chip__half j-dual-chip__half--${t.tone}`,
|
|
3560
|
-
children: /* @__PURE__ */ b(
|
|
3359
|
+
children: /* @__PURE__ */ b(N, {
|
|
3561
3360
|
size: "md",
|
|
3562
3361
|
tone: t.tone === "gold" ? "default" : "white",
|
|
3563
3362
|
children: t.value
|
|
@@ -3567,7 +3366,7 @@ function pa({ left: e, right: t, className: n = "" }) {
|
|
|
3567
3366
|
}
|
|
3568
3367
|
//#endregion
|
|
3569
3368
|
//#region src/ui/JimboPanelSplitter.tsx
|
|
3570
|
-
function
|
|
3369
|
+
function na({ orientation: e = "vertical", onDrag: t, onKeyAdjust: n, className: r = "", "aria-label": i }) {
|
|
3571
3370
|
let a = _(!1), o = _(0), s = _(t);
|
|
3572
3371
|
h(() => {
|
|
3573
3372
|
s.current = t;
|
|
@@ -3601,6 +3400,6 @@ function ma({ orientation: e = "vertical", onDrag: t, onKeyAdjust: n, className:
|
|
|
3601
3400
|
});
|
|
3602
3401
|
}
|
|
3603
3402
|
//#endregion
|
|
3604
|
-
export {
|
|
3403
|
+
export { M as $, ke as A, he as B, ze as C, Ne as D, Pe as E, Ce as F, ce as G, de as H, xe as I, oe as J, ue as K, be as L, Te as M, Se as N, je as O, we as P, re as Q, _e as R, Be as S, Fe as T, le as U, me as V, P as W, ae as X, N as Y, te as Z, Ue as _, Qi as a, Ve as b, Yi as c, Ye as d, ee as et, Je as f, We as g, Ge as h, $i as i, Ee as j, Ae as k, qi as l, Ke as m, ta as n, Zi as o, qe as p, se as q, ea as r, Xi as s, na as t, Ze as u, He as v, Ie as w, Re as x, Le as y, ge as z };
|
|
3605
3404
|
|
|
3606
|
-
//# sourceMappingURL=ui-
|
|
3405
|
+
//# sourceMappingURL=ui-CgjJDJdZ.js.map
|