jaml-ui 0.31.0 → 0.32.1

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.
Files changed (97) hide show
  1. package/README.md +193 -61
  2. package/assets/fonts/README.md +14 -0
  3. package/assets/fonts/m6x11.ttf +0 -0
  4. package/assets/fonts/m6x11plus.ttf +0 -0
  5. package/dist/.gitkeep +0 -0
  6. package/dist/assets/searchPoolWorker-6mF4VfgO.js +40 -0
  7. package/dist/assets/searchPoolWorker-6mF4VfgO.js.map +1 -0
  8. package/dist/assets.d.ts +1 -1
  9. package/dist/chunks/{assets-D80i9sMq.js → assets-Bb6wV80_.js} +3 -3
  10. package/dist/chunks/assets-Bb6wV80_.js.map +1 -0
  11. package/dist/chunks/jamlSeeds-3ILzc_rj.js +66 -0
  12. package/dist/chunks/jamlSeeds-3ILzc_rj.js.map +1 -0
  13. package/dist/chunks/{runtime-C-It0krH.js → runtime-Bklr4A-D.js} +2 -2
  14. package/dist/chunks/{runtime-C-It0krH.js.map → runtime-Bklr4A-D.js.map} +1 -1
  15. package/dist/chunks/{searchPoolWorker-DUope_8B.js → searchPoolWorker-Dqhc9lfv.js} +2 -2
  16. package/dist/chunks/searchPoolWorker-Dqhc9lfv.js.map +1 -0
  17. package/dist/chunks/{spriteMapper-C4_5G1Z6.js → spriteMapper-CajFGgUU.js} +2 -2
  18. package/dist/chunks/spriteMapper-CajFGgUU.js.map +1 -0
  19. package/dist/chunks/tokens-Qrhlekc4.js.map +1 -1
  20. package/dist/chunks/{ui-DRov81qO.js → ui-UqEG1EZ9.js} +1530 -1178
  21. package/dist/chunks/ui-UqEG1EZ9.js.map +1 -0
  22. package/dist/components/CardFan.d.ts +0 -9
  23. package/dist/components/JamlAestheticSelector.d.ts +3 -3
  24. package/dist/components/JamlIde.d.ts +1 -4
  25. package/dist/components/JamlSeedSpinner.d.ts +3 -1
  26. package/dist/components/Jamlyzer.d.ts +5 -8
  27. package/dist/components/MotelyHello.d.ts +5 -0
  28. package/dist/components/StandardCard.d.ts +14 -0
  29. package/dist/components/cardEnums.d.ts +48 -0
  30. package/dist/components/jamlMap/JokerPicker.d.ts +2 -1
  31. package/dist/components/jamlMap/MysterySlot.d.ts +2 -1
  32. package/dist/core.d.ts +1 -0
  33. package/dist/core.js +7 -7
  34. package/dist/core.js.map +1 -1
  35. package/dist/hooks/useAnalyzer.d.ts +1 -1
  36. package/dist/hooks/useSearchPool.d.ts +1 -1
  37. package/dist/index.d.ts +6 -4
  38. package/dist/index.js +3245 -3205
  39. package/dist/index.js.map +1 -1
  40. package/dist/lib/data/constants.d.ts +3 -3
  41. package/dist/lib/jaml/jamlData.d.ts +1 -0
  42. package/dist/lib/jaml/jamlSchema.d.ts +10 -60
  43. package/dist/lib/jaml/jamlSeeds.d.ts +7 -0
  44. package/dist/lib/types.d.ts +3 -2
  45. package/dist/motely.d.ts +1 -2
  46. package/dist/motely.js +380 -428
  47. package/dist/motely.js.map +1 -1
  48. package/dist/r3f.js +16 -16
  49. package/dist/r3f.js.map +1 -1
  50. package/dist/ui/JimboBadge.d.ts +1 -1
  51. package/dist/ui/{footer.d.ts → JimboBalatroFooter.d.ts} +4 -2
  52. package/dist/ui/JimboButton.d.ts +62 -0
  53. package/dist/ui/JimboCopyButton.d.ts +27 -0
  54. package/dist/ui/JimboDeckAndStakeSelectorModal.d.ts +30 -0
  55. package/dist/ui/JimboIconButton.d.ts +8 -3
  56. package/dist/ui/JimboInlineEdit.d.ts +16 -0
  57. package/dist/ui/JimboListItem.d.ts +11 -0
  58. package/dist/ui/JimboPanelSplitter.d.ts +8 -0
  59. package/dist/ui/JimboSeedCopyChip.d.ts +16 -0
  60. package/dist/ui/JimboSelect.d.ts +15 -3
  61. package/dist/ui/JimboSpinner.d.ts +18 -0
  62. package/dist/ui/JimboStepper.d.ts +19 -7
  63. package/dist/ui/JimboValueBadge.d.ts +19 -0
  64. package/dist/ui/codeBlock.d.ts +4 -0
  65. package/dist/ui/hooks.d.ts +30 -3
  66. package/dist/ui/jimbo.css +1 -1
  67. package/dist/ui/jimboApp.d.ts +2 -2
  68. package/dist/ui/jimboBackground.d.ts +12 -5
  69. package/dist/ui/jimboCopyRow.d.ts +2 -2
  70. package/dist/ui/jimboInset.d.ts +3 -3
  71. package/dist/ui/jimboLayout.d.ts +25 -0
  72. package/dist/ui/jimboLink.d.ts +12 -0
  73. package/dist/ui/jimboTabs.d.ts +6 -6
  74. package/dist/ui/jimboText.d.ts +2 -3
  75. package/dist/ui/panel.d.ts +1 -14
  76. package/dist/ui.d.ts +13 -4
  77. package/dist/ui.js +3 -3
  78. package/fonts.css +20 -5
  79. package/package.json +14 -14
  80. package/assets/fonts/m6x11plusplus.otf +0 -0
  81. package/dist/assets/searchPoolWorker-BPJ3Mf0o.js +0 -40
  82. package/dist/assets/searchPoolWorker-BPJ3Mf0o.js.map +0 -1
  83. package/dist/chunks/Layer-Ckd_T6Fw.js +0 -17
  84. package/dist/chunks/Layer-Ckd_T6Fw.js.map +0 -1
  85. package/dist/chunks/assets-D80i9sMq.js.map +0 -1
  86. package/dist/chunks/searchPoolWorker-DUope_8B.js.map +0 -1
  87. package/dist/chunks/spriteMapper-C4_5G1Z6.js.map +0 -1
  88. package/dist/chunks/ui-DRov81qO.js.map +0 -1
  89. package/dist/components/CardList.d.ts +0 -8
  90. package/dist/components/Standardcard.d.ts +0 -18
  91. package/dist/config.d.ts +0 -10
  92. package/dist/fonts/m6x11plus.otf +0 -0
  93. package/dist/hooks/useMotelyRuntime.d.ts +0 -11
  94. package/dist/providers/MotelyProvider.d.ts +0 -11
  95. package/dist/ui/JimboFloating.d.ts +0 -8
  96. package/dist/ui/PanelSplitter.d.ts +0 -8
  97. package/jaml.schema.json +0 -1219
@@ -1,17 +1,22 @@
1
1
  import { n as e, t } from "./tokens-Qrhlekc4.js";
2
- import { n } from "./assets-D80i9sMq.js";
3
- import { n as r, p as i, r as a, t as o } from "./spriteMapper-C4_5G1Z6.js";
2
+ import { n } from "./assets-Bb6wV80_.js";
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 { createPortal as S } from "react-dom";
6
+ import { Canvas as S, useFrame as C } from "@react-three/fiber";
7
+ import { animated as w, useSpring as ee } from "@react-spring/three";
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";
7
12
  //#region src/ui/hooks.ts
8
- function C(e) {
13
+ function A(e) {
9
14
  return new Promise((t) => {
10
15
  let n = new window.Image();
11
16
  n.addEventListener("load", () => t(n)), n.addEventListener("error", () => t(null)), n.src = e;
12
17
  });
13
18
  }
14
- function ee(e, t, n, r, i) {
19
+ function j(e, t, n, r, i) {
15
20
  if (!n || !r || !r?.pos) return 0;
16
21
  let a = n.width / r.columns, o = n.height / r.rows, s = e.style;
17
22
  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) {
@@ -20,7 +25,7 @@ function ee(e, t, n, r, i) {
20
25
  }
21
26
  return t.drawImage(n, r.pos.x * a, r.pos.y * o, a, o, 0, 0, e.width, e.height), t.restore(), a / o;
22
27
  }
23
- function w(e) {
28
+ function ne(e) {
24
29
  let n = _(null);
25
30
  return m(() => {
26
31
  if (!e || !n.current) return;
@@ -33,27 +38,69 @@ function w(e) {
33
38
  };
34
39
  }, [e]), n;
35
40
  }
36
- function te() {
37
- let e = _(null);
38
- return m(() => {
39
- let t = e.current;
40
- if (!t) return;
41
- let n = t.getContext("webgl");
42
- if (!n) return;
43
- let r = (e, t) => {
44
- let r = n.createShader(e);
45
- return r ? (n.shaderSource(r, t), n.compileShader(r), n.getShaderParameter(r, n.COMPILE_STATUS) ? r : (console.error("[JimboBackground] shader compile error:", n.getShaderInfoLog(r)), n.deleteShader(r), null)) : null;
46
- }, i = r(n.VERTEX_SHADER, "\n attribute vec2 position;\n void main() {\n gl_Position = vec4(position, 0.0, 1.0);\n }\n "), a = r(n.FRAGMENT_SHADER, "\n precision mediump float;\n\n uniform float u_time;\n uniform vec2 u_resolution;\n\n const float SPIN_ROTATION = -2.0;\n const float SPIN_SPEED = 4.5;\n const vec4 COLOUR_1 = vec4(1.0, 0.2, 0.2, 1.0);\n const vec4 COLOUR_2 = vec4(0.0, 0.5, 1.0, 1.0);\n const vec4 COLOUR_3 = vec4(0.05, 0.08, 0.1, 1.0);\n const float CONTRAST = 4.5;\n const float LIGTHING = 0.5;\n const float SPIN_AMOUNT = 0.35;\n const float PIXEL_FILTER = 740.0 * 0.33;\n const float PI = 3.14159265359;\n\n void main() {\n vec2 screenSize = u_resolution;\n float pixel_size = length(screenSize.xy) / PIXEL_FILTER;\n vec2 uv = (floor(gl_FragCoord.xy*(1.0/pixel_size))*pixel_size - 0.5*screenSize.xy)/length(screenSize.xy);\n float uv_len = length(uv);\n\n float speed = (SPIN_ROTATION * 0.2) + 302.2;\n float new_pixel_angle = atan(uv.y, uv.x) + speed - 20.0*(1.0*SPIN_AMOUNT*uv_len + (1.0 - 1.0*SPIN_AMOUNT));\n\n vec2 mid = (screenSize.xy/length(screenSize.xy))/2.0;\n uv = (vec2((uv_len * cos(new_pixel_angle) + mid.x), (uv_len * sin(new_pixel_angle) + mid.y)) - mid);\n\n uv *= 30.0;\n speed = u_time * SPIN_SPEED;\n vec2 uv2 = vec2(uv.x, uv.y);\n\n for(int i=0; i < 5; i++) {\n uv2 += sin(max(uv.x, uv.y)) + uv;\n uv += 0.5*vec2(cos(5.1123314 + 0.353*uv2.y + speed*0.131121), sin(uv2.x - 0.113*speed));\n uv -= 1.0*cos(uv.x + uv.y) - 1.0*sin(uv.x*0.711 - uv.y);\n }\n\n float contrast_mod = (0.25*CONTRAST + 0.5*SPIN_AMOUNT + 1.2);\n float paint_res = min(2.0, max(0.0, length(uv)*(0.035)*contrast_mod));\n float c1p = max(0.0, 1.0 - contrast_mod*abs(1.0 - paint_res));\n float c2p = max(0.0, 1.0 - contrast_mod*abs(paint_res));\n float c3p = 1.0 - min(1.0, c1p + c2p);\n float light = (LIGTHING - 0.2)*max(c1p*5.0 - 4.0, 0.0) + LIGTHING*max(c2p*5.0 - 4.0, 0.0);\n\n vec4 finalCol = (0.3/CONTRAST)*COLOUR_1 + (1.0 - 0.3/CONTRAST)*(COLOUR_1*c1p + COLOUR_2*c2p + vec4(c3p*COLOUR_3.rgb, c3p*COLOUR_1.a)) + light;\n\n gl_FragColor = finalCol;\n }\n ");
47
- if (!i || !a) return;
48
- let o = n.createProgram();
49
- if (!o) return;
50
- if (n.attachShader(o, i), n.attachShader(o, a), n.linkProgram(o), !n.getProgramParameter(o, n.LINK_STATUS)) {
51
- console.error("[JimboBackground] program link error:", n.getProgramInfoLog(o));
41
+ var M = {
42
+ primary: [
43
+ 1,
44
+ .2,
45
+ .2
46
+ ],
47
+ secondary: [
48
+ 0,
49
+ .5,
50
+ 1
51
+ ],
52
+ dark: [
53
+ .05,
54
+ .08,
55
+ .1
56
+ ],
57
+ speed: 1,
58
+ spinRotation: -2,
59
+ spinAmount: .35,
60
+ pixelFilter: 740 * .33,
61
+ contrast: 4.5,
62
+ lighting: .5,
63
+ transitionMs: 800
64
+ };
65
+ function N(e, t) {
66
+ if (!e) return t;
67
+ if (Array.isArray(e)) return [
68
+ e[0],
69
+ e[1],
70
+ e[2]
71
+ ];
72
+ let n = e.trim().replace(/^#/, "");
73
+ if (n.length === 3 && (n = n.split("").map((e) => e + e).join("")), n.length !== 6) return t;
74
+ let r = parseInt(n, 16);
75
+ return Number.isNaN(r) ? t : [
76
+ (r >> 16 & 255) / 255,
77
+ (r >> 8 & 255) / 255,
78
+ (r & 255) / 255
79
+ ];
80
+ }
81
+ function re(e = {}) {
82
+ let t = _(null), n = _(e);
83
+ return h(() => {
84
+ n.current = e;
85
+ }), m(() => {
86
+ let e = t.current;
87
+ if (!e) return;
88
+ let r = e.getContext("webgl");
89
+ if (!r) return;
90
+ let i = (e, t) => {
91
+ let n = r.createShader(e);
92
+ return n ? (r.shaderSource(n, t), r.compileShader(n), r.getShaderParameter(n, r.COMPILE_STATUS) ? n : (console.error("[JimboBackground] shader compile error:", r.getShaderInfoLog(n)), r.deleteShader(n), null)) : null;
93
+ }, a = i(r.VERTEX_SHADER, "\n attribute vec2 position;\n void main() {\n gl_Position = vec4(position, 0.0, 1.0);\n }\n "), o = i(r.FRAGMENT_SHADER, "\n precision mediump float;\n\n uniform float u_time;\n uniform vec2 u_resolution;\n uniform vec3 u_color1;\n uniform vec3 u_color2;\n uniform vec3 u_color3;\n uniform float u_spinRotation;\n uniform float u_spinSpeed;\n uniform float u_spinAmount;\n uniform float u_pixelFilter;\n uniform float u_contrast;\n uniform float u_lighting;\n\n void main() {\n vec2 screenSize = u_resolution;\n float pixel_size = length(screenSize.xy) / max(1.0, u_pixelFilter);\n vec2 uv = (floor(gl_FragCoord.xy*(1.0/pixel_size))*pixel_size - 0.5*screenSize.xy)/length(screenSize.xy);\n float uv_len = length(uv);\n\n float speed = (u_spinRotation * 0.2) + 302.2;\n float new_pixel_angle = atan(uv.y, uv.x) + speed - 20.0*(u_spinAmount*uv_len + (1.0 - u_spinAmount));\n\n vec2 mid = (screenSize.xy/length(screenSize.xy))/2.0;\n uv = (vec2((uv_len * cos(new_pixel_angle) + mid.x), (uv_len * sin(new_pixel_angle) + mid.y)) - mid);\n\n uv *= 30.0;\n speed = u_time * u_spinSpeed;\n vec2 uv2 = vec2(uv.x, uv.y);\n\n for(int i=0; i < 5; i++) {\n uv2 += sin(max(uv.x, uv.y)) + uv;\n uv += 0.5*vec2(cos(5.1123314 + 0.353*uv2.y + speed*0.131121), sin(uv2.x - 0.113*speed));\n uv -= 1.0*cos(uv.x + uv.y) - 1.0*sin(uv.x*0.711 - uv.y);\n }\n\n float contrast_mod = (0.25*u_contrast + 0.5*u_spinAmount + 1.2);\n float paint_res = min(2.0, max(0.0, length(uv)*(0.035)*contrast_mod));\n float c1p = max(0.0, 1.0 - contrast_mod*abs(1.0 - paint_res));\n float c2p = max(0.0, 1.0 - contrast_mod*abs(paint_res));\n float c3p = 1.0 - min(1.0, c1p + c2p);\n float light = (u_lighting - 0.2)*max(c1p*5.0 - 4.0, 0.0) + u_lighting*max(c2p*5.0 - 4.0, 0.0);\n\n vec3 base = (0.3/u_contrast)*u_color1 + (1.0 - 0.3/u_contrast)*(u_color1*c1p + u_color2*c2p + c3p*u_color3) + vec3(light);\n gl_FragColor = vec4(base, 1.0);\n }\n ");
94
+ if (!a || !o) return;
95
+ let s = r.createProgram();
96
+ if (!s) return;
97
+ if (r.attachShader(s, a), r.attachShader(s, o), r.linkProgram(s), !r.getProgramParameter(s, r.LINK_STATUS)) {
98
+ console.error("[JimboBackground] program link error:", r.getProgramInfoLog(s));
52
99
  return;
53
100
  }
54
- n.useProgram(o);
55
- let s = n.createBuffer();
56
- n.bindBuffer(n.ARRAY_BUFFER, s), n.bufferData(n.ARRAY_BUFFER, new Float32Array([
101
+ r.useProgram(s);
102
+ let c = r.createBuffer();
103
+ r.bindBuffer(r.ARRAY_BUFFER, c), r.bufferData(r.ARRAY_BUFFER, new Float32Array([
57
104
  -1,
58
105
  -1,
59
106
  1,
@@ -66,21 +113,42 @@ function te() {
66
113
  -1,
67
114
  1,
68
115
  1
69
- ]), n.STATIC_DRAW);
70
- let c = n.getAttribLocation(o, "position");
71
- n.enableVertexAttribArray(c), n.vertexAttribPointer(c, 2, n.FLOAT, !1, 0, 0);
72
- let l = n.getUniformLocation(o, "u_time"), u = n.getUniformLocation(o, "u_resolution"), d = Date.now(), f, p = () => {
73
- let e = t.clientWidth, r = t.clientHeight;
74
- (t.width !== e || t.height !== r) && (t.width = e, t.height = r, n.viewport(0, 0, n.drawingBufferWidth, n.drawingBufferHeight));
75
- let i = (Date.now() - d) / 1e3;
76
- n.uniform1f(l, i), n.uniform2f(u, t.width, t.height), n.drawArrays(n.TRIANGLES, 0, 6), f = requestAnimationFrame(p);
116
+ ]), r.STATIC_DRAW);
117
+ let l = r.getAttribLocation(s, "position");
118
+ r.enableVertexAttribArray(l), r.vertexAttribPointer(l, 2, r.FLOAT, !1, 0, 0);
119
+ 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 ?? M.spinRotation,
121
+ spinSpeed: 4.5 * (e.speed ?? M.speed),
122
+ spinAmount: e.spinAmount ?? M.spinAmount,
123
+ pixelFilter: e.pixelFilter ?? M.pixelFilter,
124
+ contrast: e.contrast ?? M.contrast,
125
+ lighting: e.lighting ?? M.lighting
126
+ }), S = n.current, C = [
127
+ N(S.primary, M.primary),
128
+ N(S.secondary, M.secondary),
129
+ N(S.dark, M.dark)
130
+ ], w = x(S), ee = performance.now(), T = ee, E = 0, D = () => {
131
+ let t = performance.now(), i = Math.max(0, t - T);
132
+ T = t;
133
+ let a = n.current, o = [
134
+ N(a.primary, M.primary),
135
+ N(a.secondary, M.secondary),
136
+ N(a.dark, M.dark)
137
+ ], s = x(a), c = Math.max(1, a.transitionMs ?? M.transitionMs), l = 1 - Math.exp(-i / c);
138
+ 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
+ let S = (e) => {
140
+ w[e] += (s[e] - w[e]) * l;
141
+ };
142
+ S("spinRotation"), S("spinSpeed"), S("spinAmount"), S("pixelFilter"), S("contrast"), S("lighting");
143
+ let O = e.clientWidth, k = e.clientHeight;
144
+ (e.width !== O || e.height !== k) && (e.width = O, e.height = k, r.viewport(0, 0, r.drawingBufferWidth, r.drawingBufferHeight)), r.uniform1f(u, (t - ee) / 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), E = requestAnimationFrame(D);
77
145
  };
78
- return p(), () => {
79
- cancelAnimationFrame(f), n.deleteProgram(o), n.deleteShader(i), n.deleteShader(a), n.deleteBuffer(s);
146
+ return E = requestAnimationFrame(D), () => {
147
+ cancelAnimationFrame(E), r.deleteProgram(s), r.deleteShader(a), r.deleteShader(o), r.deleteBuffer(c);
80
148
  };
81
- }, []), e;
149
+ }, []), t;
82
150
  }
83
- function T({ mode: e = "snap", placement: t = "auto", delay: n = 80, disabled: r = !1 }) {
151
+ function ie({ mode: e = "snap", placement: t = "auto", delay: n = 80, disabled: r = !1 }) {
84
152
  let [i, a] = v(!1), [o, s] = v(null), c = _(null), l = _(null), u = _(null), d = f(() => {
85
153
  r || (u.current && clearTimeout(u.current), u.current = setTimeout(() => a(!0), n));
86
154
  }, [r, n]), p = f(() => {
@@ -123,7 +191,7 @@ function T({ mode: e = "snap", placement: t = "auto", delay: n = 80, disabled: r
123
191
  }, [e])
124
192
  };
125
193
  }
126
- function E({ layers: e, invert: t = !1, hoverTilt: n = !1 }) {
194
+ function ae({ layers: e, invert: t = !1, hoverTilt: n = !1 }) {
127
195
  let r = _(null), a = _(null), o = _(/* @__PURE__ */ new Map()), [s, c] = v(3 / 4), [, l] = v(0), u = _(null), d = _({
128
196
  rx: 0,
129
197
  ry: 0,
@@ -136,7 +204,7 @@ function E({ layers: e, invert: t = !1, hoverTilt: n = !1 }) {
136
204
  m(() => {
137
205
  let e = !1, t = o.current;
138
206
  return (async () => {
139
- let n = Array.from(new Set(Object.values(i).map((e) => e.src))), r = await Promise.all(n.map((e) => C(e)));
207
+ let n = Array.from(new Set(Object.values(i).map((e) => e.src))), r = await Promise.all(n.map((e) => A(e)));
140
208
  e || (r.forEach((e, r) => {
141
209
  e && t.set(n[r], e);
142
210
  }), l((e) => e + 1));
@@ -152,14 +220,14 @@ function E({ layers: e, invert: t = !1, hoverTilt: n = !1 }) {
152
220
  i.clearRect(0, 0, n.width, n.height), [...e].sort((e, t) => e.order - t.order).forEach((e) => {
153
221
  let t = o.current.get(e.source);
154
222
  if (t) {
155
- let a = ee(n, i, t, e, h ? r : void 0);
223
+ let a = j(n, i, t, e, h ? r : void 0);
156
224
  e.order === 0 && c(a);
157
225
  return;
158
226
  }
159
- C(e.source).then((t) => {
227
+ A(e.source).then((t) => {
160
228
  if (!(a || !t)) {
161
229
  if (o.current.set(e.source, t), !h) {
162
- let r = ee(n, i, t, e);
230
+ let r = j(n, i, t, e);
163
231
  e.order === 0 && c(r);
164
232
  }
165
233
  l((e) => e + 1);
@@ -232,7 +300,7 @@ function E({ layers: e, invert: t = !1, hoverTilt: n = !1 }) {
232
300
  }
233
301
  };
234
302
  }
235
- function D(e, t, n) {
303
+ function oe(e, t, n) {
236
304
  let [r, i] = v(null), [a, o] = v(null), [s, c] = v(null), l = f((e, t, n) => {
237
305
  let r = "touches" in e ? e.touches[0] : e, i = e.currentTarget.getBoundingClientRect();
238
306
  o({
@@ -301,7 +369,7 @@ function D(e, t, n) {
301
369
  }
302
370
  //#endregion
303
371
  //#region src/ui/sprites.tsx
304
- function O({ name: e, sheet: t, width: i = 40, height: s, style: c }) {
372
+ function se({ name: e, sheet: t, width: i = 40, height: s, style: c }) {
305
373
  let l = a(e), u = t ?? l?.type ?? "Jokers", d = o[u], f = r(u), p = l?.pos ?? f.pos, m = i;
306
374
  [
307
375
  "Jokers",
@@ -327,7 +395,7 @@ function O({ name: e, sheet: t, width: i = 40, height: s, style: c }) {
327
395
  ...c
328
396
  } });
329
397
  }
330
- var k = [
398
+ var ce = [
331
399
  "White",
332
400
  "Red",
333
401
  "Green",
@@ -337,8 +405,8 @@ var k = [
337
405
  "Orange",
338
406
  "Gold"
339
407
  ];
340
- function A({ stake: e, width: t = 29, height: r, style: i }) {
341
- let a = k.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;
408
+ function le({ stake: e, width: t = 29, height: r, style: i }) {
409
+ let a = ce.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;
342
410
  return /* @__PURE__ */ b("div", { style: {
343
411
  width: t,
344
412
  height: l,
@@ -351,33 +419,49 @@ function A({ stake: e, width: t = 29, height: r, style: i }) {
351
419
  ...i
352
420
  } });
353
421
  }
354
- var ne = {
355
- Red: 0,
356
- Blue: 1,
357
- Yellow: 2,
358
- Green: 3,
359
- Black: 0,
360
- Magic: 1,
361
- Nebula: 2,
362
- Ghost: 3
422
+ var ue = {
423
+ Red: {
424
+ x: 0,
425
+ y: 0
426
+ },
427
+ Blue: {
428
+ x: 0,
429
+ y: 2
430
+ },
431
+ Yellow: {
432
+ x: 1,
433
+ y: 2
434
+ },
435
+ Green: {
436
+ x: 2,
437
+ y: 2
438
+ },
439
+ Black: {
440
+ x: 3,
441
+ y: 2
442
+ },
443
+ Magic: {
444
+ x: 4,
445
+ y: 2
446
+ }
363
447
  };
364
- function re({ deck: e, width: t = 71, height: r, style: i }) {
365
- let a = ne[e.replace(" Deck", "")] ?? 0, o = r ?? t * 95 / 71, s = t * 13, c = o * 4;
448
+ function de({ deck: e, width: t = 71, height: r, style: a }) {
449
+ let o = ue[e.replace(" Deck", "")] ?? ue.Red, s = r ?? t * 95 / 71, c = i.enhancers;
366
450
  return /* @__PURE__ */ b("div", { style: {
367
451
  width: t,
368
- height: o,
452
+ height: s,
369
453
  flexShrink: 0,
370
- backgroundImage: `url(${n("deck")})`,
371
- backgroundSize: `${s}px ${c}px`,
372
- backgroundPosition: `-${12 * t}px -${a * o}px`,
454
+ backgroundImage: `url(${n(c.asset)})`,
455
+ backgroundSize: `${t * c.columns}px ${s * c.rows}px`,
456
+ backgroundPosition: `${-o.x * t}px ${-o.y * s}px`,
373
457
  backgroundRepeat: "no-repeat",
374
458
  imageRendering: "pixelated",
375
- ...i
459
+ ...a
376
460
  } });
377
461
  }
378
462
  //#endregion
379
463
  //#region src/ui/jimboText.tsx
380
- function j({ tone: e = "default", size: t = "md", shadow: n = !0, dance: r = !1, letterSpacing: i, as: a = "span", className: o = "", style: s, children: c, ...l }) {
464
+ function P({ tone: e = "default", size: t = "md", shadow: n = !0, dance: r = !1, letterSpacing: i, as: a = "span", className: o = "", style: s, children: c, ...l }) {
381
465
  let u = `j-text--${t}`, d = `j-text--${e}`, f = n ? "" : "j-text--no-shadow", p = r ? "j-text--dance-container" : "", m = {};
382
466
  i != null && (m.letterSpacing = i), s && Object.assign(m, s);
383
467
  let h = c;
@@ -393,9 +477,245 @@ function j({ tone: e = "default", size: t = "md", shadow: n = !0, dance: r = !1,
393
477
  });
394
478
  }
395
479
  //#endregion
480
+ //#region src/ui/JimboTextInput.tsx
481
+ var fe = s.forwardRef(function({ className: e = "", invalid: t = !1, "aria-invalid": n, ...r }, i) {
482
+ return /* @__PURE__ */ b("input", {
483
+ ref: i,
484
+ className: `j-text-input ${e}`.trim(),
485
+ "aria-invalid": n ?? t,
486
+ "data-invalid": t,
487
+ ...r
488
+ });
489
+ }), pe = {
490
+ orange: "#ff9800",
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
396
716
  //#region src/ui/panel.tsx
397
- var M = d(({ children: e, className: t = "", sway: n = !1, onBack: r, hideBack: i = !1, style: a, ...o }) => /* @__PURE__ */ x("div", {
398
- ref: w(n),
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),
399
719
  className: `j-panel ${t}`,
400
720
  style: a,
401
721
  ...o,
@@ -404,58 +724,27 @@ var M = d(({ children: e, className: t = "", sway: n = !1, onBack: r, hideBack:
404
724
  children: e
405
725
  }), r && !i && /* @__PURE__ */ b("div", {
406
726
  className: "j-panel__back",
407
- children: /* @__PURE__ */ b(ae, { onClick: r })
727
+ children: /* @__PURE__ */ b(_e, { onClick: r })
408
728
  })]
409
729
  }));
410
- M.displayName = "JimboPanel";
411
- var ie = d(({ children: e, className: t = "", style: n, ...r }) => /* @__PURE__ */ b("div", {
730
+ ve.displayName = "JimboPanel";
731
+ var ye = d(({ children: e, className: t = "", style: n, ...r }) => /* @__PURE__ */ b("div", {
412
732
  className: `j-inner-panel ${t}`,
413
733
  style: n,
414
734
  ...r,
415
735
  children: e
416
736
  }));
417
- ie.displayName = "JimboInnerPanel";
418
- function N({ tone: e = "orange", size: t = "md", fullWidth: n = !1, disabled: r = !1, onClick: i, style: a, className: o = "", children: s, ...c }) {
419
- let l = t === "xs" ? "xs" : t === "sm" ? "sm" : t === "lg" ? "lg" : "md";
420
- return /* @__PURE__ */ b("button", {
421
- type: "button",
422
- className: `j-btn j-btn--${e} j-btn--${t} ${n ? "j-btn--full" : ""} ${r ? "j-btn--disabled" : ""} ${o}`,
423
- disabled: r,
424
- onClick: i,
425
- style: a,
426
- ...c,
427
- children: /* @__PURE__ */ b("div", {
428
- className: "j-btn__face",
429
- children: /* @__PURE__ */ b(j, {
430
- size: l,
431
- children: s
432
- })
433
- })
434
- });
435
- }
436
- function ae({ onClick: e, size: t = "md" }) {
437
- return /* @__PURE__ */ b("div", {
438
- className: "j-back-btn-wrap j-flex j-justify-center j-w-full",
439
- children: /* @__PURE__ */ b(N, {
440
- tone: "orange",
441
- size: t,
442
- fullWidth: !0,
443
- onClick: e,
444
- className: "j-back-btn",
445
- children: "Back"
446
- })
447
- });
448
- }
449
- function oe({ children: e, open: t, onClose: n, title: r, className: i, showBack: a = !0 }) {
737
+ ye.displayName = "JimboInnerPanel";
738
+ function be({ children: e, open: t, onClose: n, title: r, className: i, showBack: a = !0 }) {
450
739
  return t ? /* @__PURE__ */ b("div", {
451
740
  className: "j-modal-overlay",
452
- children: /* @__PURE__ */ x(M, {
741
+ children: /* @__PURE__ */ x(ve, {
453
742
  onBack: a ? n : void 0,
454
743
  className: `j-modal ${i ?? ""}`,
455
744
  children: [r && /* @__PURE__ */ b("div", {
456
745
  className: "j-modal__title-wrap",
457
746
  "aria-hidden": !1,
458
- children: /* @__PURE__ */ b(j, {
747
+ children: /* @__PURE__ */ b(P, {
459
748
  as: "h2",
460
749
  size: "lg",
461
750
  className: "j-modal__title",
@@ -467,67 +756,105 @@ function oe({ children: e, open: t, onClose: n, title: r, className: i, showBack
467
756
  }
468
757
  //#endregion
469
758
  //#region src/ui/jimboTabs.tsx
470
- function se({ tabs: e, activeTab: t, onTabChange: n, className: r = "", style: i }) {
759
+ function xe({ tabs: e, activeTab: t, onTabChange: n, className: r = "", style: i }) {
471
760
  return /* @__PURE__ */ b("div", {
472
761
  className: `j-tabs ${r}`,
473
762
  style: i,
474
- children: e.map((e) => /* @__PURE__ */ b(ce, {
475
- label: e.label,
476
- active: t === e.id,
477
- onClick: () => n(e.id)
478
- }, e.id))
479
- });
480
- }
481
- function ce({ label: e, active: t, onClick: n }) {
482
- return /* @__PURE__ */ x("div", {
483
- className: "j-tab",
484
- "data-active": t,
485
- children: [/* @__PURE__ */ b("div", {
486
- className: "j-tab__indicator",
487
- "data-active": t,
488
- "aria-hidden": !0,
489
- children: /* @__PURE__ */ b("svg", {
490
- width: 14,
491
- height: 10,
492
- viewBox: "0 0 14 10",
493
- children: /* @__PURE__ */ b("polygon", { points: "7,10 0,0 14,0" })
494
- })
495
- }), /* @__PURE__ */ b("button", {
496
- type: "button",
497
- className: "j-tab__btn",
498
- "data-active": t,
499
- onClick: n,
500
- children: /* @__PURE__ */ b(j, {
501
- size: "sm",
502
- tone: "default",
503
- children: e
504
- })
505
- })]
506
- });
507
- }
508
- function le({ tabs: e, activeTab: t, onTabChange: n, className: r = "", style: i }) {
509
- return /* @__PURE__ */ b("div", {
510
- className: `j-vtabs ${r}`,
511
- style: i,
512
763
  children: e.map((e) => {
513
764
  let r = t === e.id;
514
- return /* @__PURE__ */ b("button", {
515
- type: "button",
516
- className: "j-vtab",
765
+ return /* @__PURE__ */ x("div", {
766
+ className: "j-tab",
517
767
  "data-active": r,
518
- onClick: () => n(e.id),
519
- children: /* @__PURE__ */ b(j, {
768
+ children: [/* @__PURE__ */ b("div", {
769
+ className: "j-tab__indicator",
770
+ "data-active": r,
771
+ "aria-hidden": !0,
772
+ children: /* @__PURE__ */ b("svg", {
773
+ width: 14,
774
+ height: 10,
775
+ viewBox: "0 0 14 10",
776
+ children: /* @__PURE__ */ b("polygon", { points: "7,10 0,0 14,0" })
777
+ })
778
+ }), /* @__PURE__ */ b(I, {
779
+ tone: "red",
520
780
  size: "sm",
521
- tone: r ? "default" : "grey",
781
+ onClick: () => n(e.id),
522
782
  children: e.label
523
- })
783
+ })]
524
784
  }, e.id);
525
785
  })
526
786
  });
527
787
  }
528
788
  //#endregion
789
+ //#region src/ui/JimboIconButton.tsx
790
+ var L = e, Se = {
791
+ xs: 22,
792
+ sm: 26,
793
+ md: 30
794
+ }, Ce = {
795
+ default: {
796
+ rest: L.DARKEST,
797
+ hover: L.DARK_GREY,
798
+ border: L.PANEL_EDGE
799
+ },
800
+ destructive: {
801
+ rest: L.RED,
802
+ hover: L.ORANGE,
803
+ border: L.BLACK
804
+ }
805
+ };
806
+ function we({ onClick: e, onMouseDown: t, onTouchStart: n, title: r, "aria-label": i, disabled: a = !1, size: o = "md", tone: s = "default", children: c }) {
807
+ let [l, u] = v(!1), d = Se[o], f = Ce[s], p = s === "destructive" ? 2 : 1, m = s === "destructive" ? `inset 0 1px 0 rgba(255,255,255,.2), 0 2px 0 ${L.BLACK}` : void 0;
808
+ return /* @__PURE__ */ b("button", {
809
+ "aria-label": i ?? r,
810
+ disabled: a,
811
+ onClick: (t) => !a && e?.(t),
812
+ onMouseDown: t,
813
+ onTouchStart: n,
814
+ onMouseEnter: () => u(!0),
815
+ onMouseLeave: () => u(!1),
816
+ style: {
817
+ width: d,
818
+ height: d,
819
+ display: "inline-flex",
820
+ alignItems: "center",
821
+ justifyContent: "center",
822
+ background: l && !a ? f.hover : f.rest,
823
+ color: L.WHITE,
824
+ border: `${p}px solid ${f.border}`,
825
+ borderRadius: 4,
826
+ boxShadow: m,
827
+ cursor: a ? "not-allowed" : "pointer",
828
+ opacity: a ? .55 : 1,
829
+ padding: 0,
830
+ fontSize: 14,
831
+ lineHeight: 1,
832
+ transition: "background 80ms ease"
833
+ },
834
+ title: r,
835
+ type: "button",
836
+ children: c
837
+ });
838
+ }
839
+ //#endregion
840
+ //#region src/ui/JimboInlineEdit.tsx
841
+ var Te = s.forwardRef(function({ size: e = "md", tone: t = "white", dim: n = !1, className: r = "", ...i }, a) {
842
+ return /* @__PURE__ */ b("input", {
843
+ ref: a,
844
+ type: "text",
845
+ className: [
846
+ "j-inline-edit",
847
+ `j-inline-edit--${e}`,
848
+ `j-inline-edit--${t}`,
849
+ n ? "j-inline-edit--dim" : null,
850
+ r || null
851
+ ].filter(Boolean).join(" "),
852
+ ...i
853
+ });
854
+ });
855
+ //#endregion
529
856
  //#region src/ui/JimboBadge.tsx
530
- function ue({ size: e = "sm", tone: t = "dark", className: n, children: r, ...i }) {
857
+ function Ee({ size: e = "sm", tone: t = "dark", className: n, children: r, ...i }) {
531
858
  return /* @__PURE__ */ b("span", {
532
859
  className: `j-badge j-badge--${e} j-badge--${t} ${n ?? ""}`,
533
860
  ...i,
@@ -536,12 +863,12 @@ function ue({ size: e = "sm", tone: t = "dark", className: n, children: r, ...i
536
863
  }
537
864
  //#endregion
538
865
  //#region src/ui/jimboFlankNav.tsx
539
- function de({ onPrev: e, onNext: t, canPrev: n = !0, canNext: r = !0, prevLabel: i = "Previous", nextLabel: a = "Next", children: o, className: s = "", style: c }) {
866
+ function De({ onPrev: e, onNext: t, canPrev: n = !0, canNext: r = !0, prevLabel: i = "Previous", nextLabel: a = "Next", children: o, className: s = "", style: c }) {
540
867
  return /* @__PURE__ */ x("div", {
541
868
  className: `j-flank ${s}`,
542
869
  style: c,
543
870
  children: [
544
- /* @__PURE__ */ b(fe, {
871
+ /* @__PURE__ */ b(Oe, {
545
872
  direction: "left",
546
873
  onClick: e,
547
874
  disabled: !n,
@@ -551,7 +878,7 @@ function de({ onPrev: e, onNext: t, canPrev: n = !0, canNext: r = !0, prevLabel:
551
878
  className: "j-flank__content",
552
879
  children: o
553
880
  }),
554
- /* @__PURE__ */ b(fe, {
881
+ /* @__PURE__ */ b(Oe, {
555
882
  direction: "right",
556
883
  onClick: t,
557
884
  disabled: !r,
@@ -560,7 +887,7 @@ function de({ onPrev: e, onNext: t, canPrev: n = !0, canNext: r = !0, prevLabel:
560
887
  ]
561
888
  });
562
889
  }
563
- function fe({ direction: e, onClick: t, disabled: n, "aria-label": r }) {
890
+ function Oe({ direction: e, onClick: t, disabled: n, "aria-label": r }) {
564
891
  let [i, a] = s.useState(!1);
565
892
  return /* @__PURE__ */ b("button", {
566
893
  type: "button",
@@ -575,10 +902,10 @@ function fe({ direction: e, onClick: t, disabled: n, "aria-label": r }) {
575
902
  onMouseLeave: () => a(!1),
576
903
  onTouchStart: () => !n && a(!0),
577
904
  onTouchEnd: () => a(!1),
578
- children: /* @__PURE__ */ b(pe, { direction: e })
905
+ children: /* @__PURE__ */ b(ke, { direction: e })
579
906
  });
580
907
  }
581
- function pe({ direction: e }) {
908
+ function ke({ direction: e }) {
582
909
  return /* @__PURE__ */ b("svg", {
583
910
  width: 28,
584
911
  height: 28,
@@ -593,21 +920,61 @@ function pe({ direction: e }) {
593
920
  });
594
921
  }
595
922
  //#endregion
596
- //#region src/ui/JimboFloating.tsx
597
- function me({ anchor: e = "top-right", offset: t = 12, zIndex: n = 20, children: r }) {
598
- let i = {
599
- position: "absolute",
600
- zIndex: n
601
- };
602
- return e.includes("top") && (i.top = t), e.includes("bottom") && (i.bottom = t), e.includes("left") && (i.left = t), e.includes("right") && (i.right = t), e.includes("center") && (i.left = "50%", i.transform = "translateX(-50%)"), /* @__PURE__ */ b("div", {
603
- style: i,
604
- children: r
923
+ //#region src/ui/JimboSeedCopyChip.tsx
924
+ function Ae({ value: e, placeholder: t = "--------", disabled: n = !1, copiedLabel: r = "Copied!", copiedDurationMs: i = 2e3, onCopy: a, className: o = "", style: s }) {
925
+ let [c, l] = v(!1), u = e.trim(), d = !n && u.length > 0;
926
+ return /* @__PURE__ */ x("button", {
927
+ type: "button",
928
+ className: ["j-seed-copy", o].filter(Boolean).join(" "),
929
+ style: s,
930
+ onClick: async () => {
931
+ if (d) {
932
+ try {
933
+ typeof navigator < "u" && navigator.clipboard?.writeText && await navigator.clipboard.writeText(u);
934
+ } catch {}
935
+ l(!0), a?.(u), window.setTimeout(() => l(!1), i);
936
+ }
937
+ },
938
+ disabled: !d,
939
+ "data-copied": c,
940
+ "aria-label": d ? `Copy seed ${u}` : "Seed unavailable",
941
+ children: [/* @__PURE__ */ b("span", {
942
+ className: "j-seed-copy__icon",
943
+ "aria-hidden": !0,
944
+ children: b(c ? O : k, { size: 18 })
945
+ }), /* @__PURE__ */ b("span", {
946
+ className: "j-seed-copy__text",
947
+ children: c ? r : u || t
948
+ })]
949
+ });
950
+ }
951
+ //#endregion
952
+ //#region src/ui/jimboApp.tsx
953
+ function je({ children: e, fluid: t, className: n = "", ...r }) {
954
+ return /* @__PURE__ */ b("div", {
955
+ className: `j-app${t ? " j-app--fluid" : ""} ${n}`.trim(),
956
+ ...r,
957
+ children: e
958
+ });
959
+ }
960
+ function Me({ children: e, className: t = "", ...n }) {
961
+ return /* @__PURE__ */ b("div", {
962
+ className: `j-app__scroll ${t}`,
963
+ ...n,
964
+ children: e
965
+ });
966
+ }
967
+ function Ne({ children: e, className: t = "", ...n }) {
968
+ return /* @__PURE__ */ b("div", {
969
+ className: `j-app__footer ${t}`,
970
+ ...n,
971
+ children: e
605
972
  });
606
973
  }
607
974
  //#endregion
608
975
  //#region src/ui/JimboToggleList.tsx
609
- function he({ items: e, onToggle: t, title: n, variant: r = "row" }) {
610
- return /* @__PURE__ */ b(M, { children: /* @__PURE__ */ x("div", {
976
+ function Pe({ items: e, onToggle: t, title: n, variant: r = "row" }) {
977
+ return /* @__PURE__ */ b(ve, { children: /* @__PURE__ */ x("div", {
611
978
  className: `j-toggle-list j-toggle-list--${r}`,
612
979
  children: [n && /* @__PURE__ */ b("div", {
613
980
  className: "j-toggle-list__title",
@@ -630,7 +997,7 @@ function he({ items: e, onToggle: t, title: n, variant: r = "row" }) {
630
997
  }
631
998
  //#endregion
632
999
  //#region src/ui/jimboFilterBar.tsx
633
- function ge({ search: e, onSearchChange: t, searchPlaceholder: n = "Search...", searchLabel: r = "Search", sort: i, onSortChange: a, sortLabel: o = "Sort By", sortOptions: s, className: c = "", style: l }) {
1000
+ function Fe({ search: e, onSearchChange: t, searchPlaceholder: n = "Search...", searchLabel: r = "Search", sort: i, onSortChange: a, sortLabel: o = "Sort By", sortOptions: s, className: c = "", style: l }) {
634
1001
  return /* @__PURE__ */ x("div", {
635
1002
  className: `j-filter-bar ${c}`,
636
1003
  style: l,
@@ -638,7 +1005,7 @@ function ge({ search: e, onSearchChange: t, searchPlaceholder: n = "Search...",
638
1005
  className: "j-filter-bar__field",
639
1006
  children: [/* @__PURE__ */ b("div", {
640
1007
  className: "j-filter-bar__pill",
641
- children: /* @__PURE__ */ b(j, {
1008
+ children: /* @__PURE__ */ b(P, {
642
1009
  size: "xs",
643
1010
  children: r
644
1011
  })
@@ -646,7 +1013,7 @@ function ge({ search: e, onSearchChange: t, searchPlaceholder: n = "Search...",
646
1013
  className: "j-relative",
647
1014
  children: [/* @__PURE__ */ b("div", {
648
1015
  className: "j-filter-bar__search-icon",
649
- children: /* @__PURE__ */ b(_e, {})
1016
+ children: /* @__PURE__ */ b(Ie, {})
650
1017
  }), /* @__PURE__ */ b("input", {
651
1018
  type: "text",
652
1019
  value: e ?? "",
@@ -659,7 +1026,7 @@ function ge({ search: e, onSearchChange: t, searchPlaceholder: n = "Search...",
659
1026
  className: "j-filter-bar__field",
660
1027
  children: [/* @__PURE__ */ b("div", {
661
1028
  className: "j-filter-bar__pill",
662
- children: /* @__PURE__ */ b(j, {
1029
+ children: /* @__PURE__ */ b(P, {
663
1030
  size: "xs",
664
1031
  children: o
665
1032
  })
@@ -675,13 +1042,13 @@ function ge({ search: e, onSearchChange: t, searchPlaceholder: n = "Search...",
675
1042
  }, e.value))
676
1043
  }), /* @__PURE__ */ b("div", {
677
1044
  className: "j-filter-bar__sort-icon",
678
- children: /* @__PURE__ */ b(ve, {})
1045
+ children: /* @__PURE__ */ b(Le, {})
679
1046
  })]
680
1047
  })]
681
1048
  }) : null]
682
1049
  });
683
1050
  }
684
- function _e() {
1051
+ function Ie() {
685
1052
  return /* @__PURE__ */ x("svg", {
686
1053
  width: 24,
687
1054
  height: 24,
@@ -704,7 +1071,7 @@ function _e() {
704
1071
  })]
705
1072
  });
706
1073
  }
707
- function ve() {
1074
+ function Le() {
708
1075
  return /* @__PURE__ */ x("svg", {
709
1076
  width: 20,
710
1077
  height: 20,
@@ -724,8 +1091,22 @@ function ve() {
724
1091
  });
725
1092
  }
726
1093
  //#endregion
727
- //#region src/ui/footer.tsx
728
- function ye({ hidden: e = !1, className: t = "", children: n }) {
1094
+ //#region src/ui/jimboLink.tsx
1095
+ function Re({ external: e = !0, className: t = "", children: n, ...r }) {
1096
+ let i = e ? {
1097
+ target: "_blank",
1098
+ rel: "noopener noreferrer"
1099
+ } : {};
1100
+ return /* @__PURE__ */ b("a", {
1101
+ className: `j-link ${t}`.trim(),
1102
+ ...i,
1103
+ ...r,
1104
+ children: n
1105
+ });
1106
+ }
1107
+ //#endregion
1108
+ //#region src/ui/JimboBalatroFooter.tsx
1109
+ function ze({ hidden: e = !1, className: t = "", children: n }) {
729
1110
  return e ? null : /* @__PURE__ */ b("div", {
730
1111
  className: ["j-footer", t].filter(Boolean).join(" "),
731
1112
  children: /* @__PURE__ */ b("div", {
@@ -741,11 +1122,8 @@ function ye({ hidden: e = !1, className: t = "", children: n }) {
741
1122
  className: "j-footer__chunk j-footer__chunk--credit",
742
1123
  children: [
743
1124
  "Made for the ",
744
- /* @__PURE__ */ b("a", {
745
- className: "j-footer__link",
1125
+ /* @__PURE__ */ b(Re, {
746
1126
  href: "https://playbalatro.com",
747
- target: "_blank",
748
- rel: "noopener noreferrer",
749
1127
  children: "Balatro"
750
1128
  }),
751
1129
  " community"
@@ -762,9 +1140,9 @@ function ye({ hidden: e = !1, className: t = "", children: n }) {
762
1140
  }
763
1141
  //#endregion
764
1142
  //#region src/ui/jimboBackground.tsx
765
- function be() {
1143
+ function Be({ hideFooter: e = !1, ...t }) {
766
1144
  return /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b("canvas", {
767
- ref: te(),
1145
+ ref: re(t),
768
1146
  "aria-hidden": !0,
769
1147
  style: {
770
1148
  position: "fixed",
@@ -774,21 +1152,21 @@ function be() {
774
1152
  zIndex: -10,
775
1153
  pointerEvents: "none"
776
1154
  }
777
- }), /* @__PURE__ */ b(ye, {})] });
1155
+ }), !e && /* @__PURE__ */ b(ze, {})] });
778
1156
  }
779
1157
  //#endregion
780
1158
  //#region src/ui/jimboTooltip.tsx
781
- function xe(e, t) {
1159
+ function Ve(e, t) {
782
1160
  typeof e == "function" ? e(t) : e && typeof e == "object" && (e.current = t);
783
1161
  }
784
- function Se({ content: e, badge: t, variant: n = "dark", children: r, mode: i = "snap", placement: a = "auto", delay: o = 80, maxWidth: c = 280, disabled: l = !1 }) {
785
- let { visible: u, pos: d, targetRef: p, tooltipRef: m, show: h, hide: g, handleMouseMove: _ } = T({
1162
+ function He({ content: e, badge: t, variant: n = "dark", children: r, mode: i = "snap", placement: a = "auto", delay: o = 80, maxWidth: c = 280, disabled: l = !1 }) {
1163
+ let { visible: u, pos: d, targetRef: p, tooltipRef: m, show: h, hide: g, handleMouseMove: _ } = ie({
786
1164
  mode: i,
787
1165
  placement: a,
788
1166
  delay: o,
789
1167
  disabled: l
790
1168
  }), v = s.Children.only(r), S = v.ref, C = f((e) => {
791
- p.current = e, xe(S, e);
1169
+ p.current = e, Ve(S, e);
792
1170
  }, [S, p]);
793
1171
  return /* @__PURE__ */ x(y, { children: [s.cloneElement(v, {
794
1172
  ref: C,
@@ -827,57 +1205,46 @@ function Se({ content: e, badge: t, variant: n = "dark", children: r, mode: i =
827
1205
  }) : null] });
828
1206
  }
829
1207
  //#endregion
1208
+ //#region src/ui/JimboCopyButton.tsx
1209
+ function Ue({ value: e, label: t = "Copy", copiedLabel: n = "Copied", tone: r = "blue", size: i = "sm", copiedDurationMs: a = 1500, onCopy: o, className: s }) {
1210
+ let [c, l] = v(!1);
1211
+ function u() {
1212
+ navigator.clipboard.writeText(e).then(() => {
1213
+ l(!0), o?.(), window.setTimeout(() => l(!1), a);
1214
+ });
1215
+ }
1216
+ return /* @__PURE__ */ b(I, {
1217
+ tone: r,
1218
+ size: i,
1219
+ onClick: u,
1220
+ className: s,
1221
+ children: c ? n : t
1222
+ });
1223
+ }
1224
+ //#endregion
830
1225
  //#region src/ui/codeBlock.tsx
831
- function Ce({ code: e, language: t, filename: n, className: r = "" }) {
832
- let [i, a] = v(!1), o = n?.toLowerCase().endsWith(".jaml") ? "JAML" : t?.toLowerCase() === "yaml" ? void 0 : t;
1226
+ function We({ code: e, language: t, filename: n, className: r = "" }) {
1227
+ let i = n?.toLowerCase().endsWith(".jaml") ? "JAML" : t?.toLowerCase() === "yaml" ? void 0 : t;
833
1228
  return /* @__PURE__ */ x("div", {
834
1229
  className: `j-code-block ${r}`,
835
1230
  children: [/* @__PURE__ */ x("div", {
836
1231
  className: "j-code-block__header",
837
1232
  children: [/* @__PURE__ */ x("div", {
838
1233
  className: "j-code-block__meta",
839
- children: [n && /* @__PURE__ */ b("span", {
1234
+ children: [n && /* @__PURE__ */ b(P, {
1235
+ size: "xs",
1236
+ tone: "grey",
840
1237
  className: "j-code-block__filename",
841
1238
  children: n
842
- }), o && /* @__PURE__ */ b("span", {
1239
+ }), i && /* @__PURE__ */ b("span", {
843
1240
  className: "j-code-block__lang",
844
- children: o
1241
+ children: /* @__PURE__ */ b(P, {
1242
+ size: "micro",
1243
+ tone: "blue",
1244
+ children: i
1245
+ })
845
1246
  })]
846
- }), /* @__PURE__ */ b("button", {
847
- onClick: () => {
848
- navigator.clipboard.writeText(e), a(!0), setTimeout(() => a(!1), 2e3);
849
- },
850
- title: "Copy",
851
- className: "j-code-block__copy",
852
- "data-copied": i,
853
- children: i ? /* @__PURE__ */ b("svg", {
854
- width: "14",
855
- height: "14",
856
- viewBox: "0 0 24 24",
857
- fill: "none",
858
- stroke: "currentColor",
859
- strokeWidth: "2.5",
860
- strokeLinecap: "round",
861
- strokeLinejoin: "round",
862
- children: /* @__PURE__ */ b("polyline", { points: "20 6 9 17 4 12" })
863
- }) : /* @__PURE__ */ x("svg", {
864
- width: "14",
865
- height: "14",
866
- viewBox: "0 0 24 24",
867
- fill: "none",
868
- stroke: "currentColor",
869
- strokeWidth: "2",
870
- strokeLinecap: "round",
871
- strokeLinejoin: "round",
872
- children: [/* @__PURE__ */ b("rect", {
873
- x: "9",
874
- y: "9",
875
- width: "13",
876
- height: "13",
877
- rx: "2"
878
- }), /* @__PURE__ */ b("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })]
879
- })
880
- })]
1247
+ }), /* @__PURE__ */ b(Ue, { value: e })]
881
1248
  }), /* @__PURE__ */ b("pre", {
882
1249
  className: "j-code-block__pre",
883
1250
  children: /* @__PURE__ */ b("code", { children: e })
@@ -885,31 +1252,8 @@ function Ce({ code: e, language: t, filename: n, className: r = "" }) {
885
1252
  });
886
1253
  }
887
1254
  //#endregion
888
- //#region src/ui/jimboApp.tsx
889
- function we({ children: e, fluid: t, className: n = "", ...r }) {
890
- return /* @__PURE__ */ b("div", {
891
- className: `j-app${t ? " j-app--fluid" : ""} ${n}`.trim(),
892
- ...r,
893
- children: e
894
- });
895
- }
896
- function Te({ children: e, className: t = "", ...n }) {
897
- return /* @__PURE__ */ b("div", {
898
- className: `j-app__scroll ${t}`,
899
- ...n,
900
- children: e
901
- });
902
- }
903
- function Ee({ children: e, className: t = "", ...n }) {
904
- return /* @__PURE__ */ b("div", {
905
- className: `j-app__footer ${t}`,
906
- ...n,
907
- children: e
908
- });
909
- }
910
- //#endregion
911
1255
  //#region src/ui/jimboSectionHeader.tsx
912
- function De({ label: e, tone: t = "blue", className: n = "" }) {
1256
+ function Ge({ label: e, tone: t = "blue", className: n = "" }) {
913
1257
  return /* @__PURE__ */ x("div", {
914
1258
  className: `j-section-header ${n}`,
915
1259
  children: [/* @__PURE__ */ b("div", {
@@ -920,7 +1264,7 @@ function De({ label: e, tone: t = "blue", className: n = "" }) {
920
1264
  }
921
1265
  //#endregion
922
1266
  //#region src/ui/jimboInfoCard.tsx
923
- function Oe({ tone: e, children: t, className: n = "", ...r }) {
1267
+ function Ke({ tone: e, children: t, className: n = "", ...r }) {
924
1268
  return /* @__PURE__ */ b("div", {
925
1269
  className: `j-info-card ${e ? `j-border--${e}` : ""} ${n}`,
926
1270
  style: e ? { borderColor: void 0 } : void 0,
@@ -928,25 +1272,25 @@ function Oe({ tone: e, children: t, className: n = "", ...r }) {
928
1272
  children: t
929
1273
  });
930
1274
  }
931
- function ke({ children: e, className: t = "" }) {
1275
+ function qe({ children: e, className: t = "" }) {
932
1276
  return /* @__PURE__ */ b("div", {
933
1277
  className: `j-info-card__body ${t}`,
934
1278
  children: e
935
1279
  });
936
1280
  }
937
- function Ae({ children: e, className: t = "" }) {
1281
+ function Je({ children: e, className: t = "" }) {
938
1282
  return /* @__PURE__ */ b("div", {
939
1283
  className: `j-info-card__title ${t}`,
940
1284
  children: e
941
1285
  });
942
1286
  }
943
- function je({ children: e, className: t = "" }) {
1287
+ function Ye({ children: e, className: t = "" }) {
944
1288
  return /* @__PURE__ */ b("div", {
945
1289
  className: `j-info-card__sub ${t}`,
946
1290
  children: e
947
1291
  });
948
1292
  }
949
- function Me({ children: e, className: t = "" }) {
1293
+ function Xe({ children: e, className: t = "" }) {
950
1294
  return /* @__PURE__ */ b("div", {
951
1295
  className: `j-info-card__aside ${t}`,
952
1296
  children: e
@@ -954,263 +1298,380 @@ function Me({ children: e, className: t = "" }) {
954
1298
  }
955
1299
  //#endregion
956
1300
  //#region src/ui/showcase.tsx
957
- function Ne({ title: e = "Balatro", subtitle: t = "Seed Curator", hotFilters: n = [], recentFinds: r = [], mcpInfo: i, onNewSearch: a, onBrowseFilters: o, onFilterClick: s }) {
958
- return /* @__PURE__ */ x(we, { children: [
959
- /* @__PURE__ */ x("div", {
960
- style: {
961
- padding: "12px 12px 8px",
962
- display: "flex",
963
- flexDirection: "column",
964
- gap: 6
965
- },
966
- children: [
967
- /* @__PURE__ */ x("div", {
968
- className: "j-text-center",
969
- children: [/* @__PURE__ */ b(j, {
970
- size: "display",
971
- tone: "gold",
972
- children: e
973
- }), /* @__PURE__ */ b(j, {
974
- size: "micro",
975
- tone: "grey",
976
- style: { letterSpacing: 1 },
977
- children: t
978
- })]
979
- }),
980
- i && /* @__PURE__ */ x("div", {
981
- className: "j-flex j-justify-between",
1301
+ function Ze({ title: e = "Balatro", subtitle: t = "Seed Curator", hotFilters: n = [], recentFinds: r = [], mcpInfo: i, onNewSearch: a, onBrowseFilters: o, onFilterClick: s }) {
1302
+ return /* @__PURE__ */ x(je, { children: [/* @__PURE__ */ x("div", {
1303
+ style: {
1304
+ padding: "12px 12px 8px",
1305
+ display: "flex",
1306
+ flexDirection: "column",
1307
+ gap: 6
1308
+ },
1309
+ children: [
1310
+ /* @__PURE__ */ x("div", {
1311
+ className: "j-text-center",
1312
+ children: [/* @__PURE__ */ b(P, {
1313
+ size: "display",
1314
+ tone: "gold",
1315
+ children: e
1316
+ }), /* @__PURE__ */ b(P, {
1317
+ size: "micro",
1318
+ tone: "grey",
1319
+ style: { letterSpacing: 1 },
1320
+ children: t
1321
+ })]
1322
+ }),
1323
+ i && /* @__PURE__ */ x("div", {
1324
+ className: "j-flex j-justify-between",
1325
+ style: {
1326
+ padding: "3px 8px",
1327
+ background: "var(--j-surface-inset)",
1328
+ borderRadius: 4,
1329
+ border: "1px solid var(--j-panel-edge)"
1330
+ },
1331
+ children: [/* @__PURE__ */ b(P, {
1332
+ size: "micro",
1333
+ tone: "purple",
1334
+ children: i.engine
1335
+ }), /* @__PURE__ */ b(P, {
1336
+ size: "micro",
1337
+ tone: "white",
1338
+ children: i.features
1339
+ })]
1340
+ }),
1341
+ n.length > 0 && /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(Ge, {
1342
+ label: "Filters",
1343
+ tone: "blue"
1344
+ }), /* @__PURE__ */ b("div", {
1345
+ className: "j-flex-col",
1346
+ style: { gap: 4 },
1347
+ children: n.slice(0, 4).map((e, t) => /* @__PURE__ */ x(Ke, {
1348
+ tone: e.tone,
1349
+ onClick: () => s?.(e, t),
1350
+ style: { cursor: s ? "pointer" : void 0 },
1351
+ children: [
1352
+ /* @__PURE__ */ b("div", {
1353
+ className: "j-flex j-gap-xs",
1354
+ children: e.sample.slice(0, 2).map((e, t) => /* @__PURE__ */ b("div", {
1355
+ style: {
1356
+ width: 22,
1357
+ height: 28,
1358
+ display: "flex",
1359
+ alignItems: "center",
1360
+ justifyContent: "center"
1361
+ },
1362
+ children: /* @__PURE__ */ b(se, {
1363
+ name: e,
1364
+ width: 20
1365
+ })
1366
+ }, t))
1367
+ }),
1368
+ /* @__PURE__ */ x(qe, { children: [/* @__PURE__ */ b(Je, { children: e.name }), /* @__PURE__ */ x(Ye, { children: ["by ", e.author] })] }),
1369
+ /* @__PURE__ */ b(Xe, { children: /* @__PURE__ */ b(P, {
1370
+ size: "xs",
1371
+ tone: e.tone === "gold" ? "gold" : e.tone,
1372
+ children: e.hits
1373
+ }) })
1374
+ ]
1375
+ }, t))
1376
+ })] }),
1377
+ r.length > 0 && /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(Ge, {
1378
+ label: "Recent",
1379
+ tone: "green"
1380
+ }), /* @__PURE__ */ b("div", {
1381
+ style: {
1382
+ background: "var(--j-surface-inset)",
1383
+ borderRadius: "var(--j-radius-md)",
1384
+ padding: "6px 8px",
1385
+ lineHeight: 1.5
1386
+ },
1387
+ children: r.slice(0, 3).map((e, t) => /* @__PURE__ */ x("div", {
1388
+ className: "j-flex j-gap-sm",
982
1389
  style: {
983
- padding: "3px 8px",
984
- background: "var(--j-dark-grey)",
985
- borderRadius: 4,
986
- border: "1px solid var(--j-panel-edge)"
1390
+ background: t % 2 == 1 ? "var(--j-surface-inset-alt)" : "transparent",
1391
+ borderRadius: "var(--j-radius-sm)",
1392
+ padding: "1px 4px"
987
1393
  },
988
- children: [/* @__PURE__ */ b(j, {
989
- size: "micro",
990
- tone: "purple",
991
- children: i.engine
992
- }), /* @__PURE__ */ b(j, {
993
- size: "micro",
994
- tone: "white",
995
- children: i.features
996
- })]
997
- }),
998
- n.length > 0 && /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(De, {
999
- label: "Filters",
1000
- tone: "blue"
1001
- }), /* @__PURE__ */ b("div", {
1002
- className: "j-flex-col",
1003
- style: { gap: 4 },
1004
- children: n.slice(0, 4).map((e, t) => /* @__PURE__ */ x(Oe, {
1005
- tone: e.tone,
1006
- onClick: () => s?.(e, t),
1007
- style: { cursor: s ? "pointer" : void 0 },
1008
- children: [
1009
- /* @__PURE__ */ b("div", {
1010
- className: "j-flex j-gap-xs",
1011
- children: e.sample.slice(0, 2).map((e, t) => /* @__PURE__ */ b("div", {
1012
- style: {
1013
- width: 22,
1014
- height: 28,
1015
- display: "flex",
1016
- alignItems: "center",
1017
- justifyContent: "center"
1018
- },
1019
- children: /* @__PURE__ */ b(O, {
1020
- name: e,
1021
- width: 20
1022
- })
1023
- }, t))
1024
- }),
1025
- /* @__PURE__ */ x(ke, { children: [/* @__PURE__ */ b(Ae, { children: e.name }), /* @__PURE__ */ x(je, { children: ["by ", e.author] })] }),
1026
- /* @__PURE__ */ b(Me, { children: /* @__PURE__ */ b(j, {
1027
- size: "xs",
1028
- tone: e.tone === "gold" ? "gold" : e.tone,
1029
- children: e.hits
1030
- }) })
1031
- ]
1032
- }, t))
1033
- })] }),
1034
- r.length > 0 && /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(De, {
1035
- label: "Recent",
1036
- tone: "green"
1037
- }), /* @__PURE__ */ b("div", {
1038
- style: { lineHeight: 1.5 },
1039
- children: r.slice(0, 3).map((e, t) => /* @__PURE__ */ x("div", {
1040
- className: "j-flex j-gap-sm",
1041
- children: [
1042
- /* @__PURE__ */ b(j, {
1043
- size: "micro",
1044
- tone: "gold",
1045
- children: e.seed
1046
- }),
1047
- /* @__PURE__ */ b(j, {
1048
- size: "micro",
1049
- tone: "grey",
1050
- children: e.filterName
1051
- }),
1052
- e.score > 0 && /* @__PURE__ */ x(j, {
1053
- size: "micro",
1054
- tone: "green",
1055
- children: ["+", e.score]
1056
- })
1057
- ]
1058
- }, t))
1059
- })] })
1060
- ]
1061
- }),
1062
- /* @__PURE__ */ x(Ee, { children: [/* @__PURE__ */ b(N, {
1063
- tone: "red",
1064
- fullWidth: !0,
1065
- size: "lg",
1066
- onClick: a,
1067
- children: "New Search"
1068
- }), /* @__PURE__ */ b(N, {
1069
- tone: "blue",
1070
- fullWidth: !0,
1071
- size: "lg",
1072
- onClick: o,
1073
- children: "Browse Filters"
1074
- })] }),
1075
- /* @__PURE__ */ b(ye, {})
1076
- ] });
1394
+ children: [
1395
+ /* @__PURE__ */ b(P, {
1396
+ size: "micro",
1397
+ tone: "gold",
1398
+ children: e.seed
1399
+ }),
1400
+ /* @__PURE__ */ b(P, {
1401
+ size: "micro",
1402
+ tone: "grey",
1403
+ children: e.filterName
1404
+ }),
1405
+ e.score > 0 && /* @__PURE__ */ x(P, {
1406
+ size: "micro",
1407
+ tone: "green",
1408
+ children: ["+", e.score]
1409
+ })
1410
+ ]
1411
+ }, t))
1412
+ })] })
1413
+ ]
1414
+ }), /* @__PURE__ */ x(Ne, { children: [/* @__PURE__ */ b(I, {
1415
+ tone: "red",
1416
+ fullWidth: !0,
1417
+ size: "lg",
1418
+ onClick: a,
1419
+ children: "New Search"
1420
+ }), /* @__PURE__ */ b(I, {
1421
+ tone: "blue",
1422
+ fullWidth: !0,
1423
+ size: "lg",
1424
+ onClick: o,
1425
+ children: "Browse Filters"
1426
+ })] })] });
1077
1427
  }
1078
1428
  //#endregion
1079
1429
  //#region src/ui/jimboCopyRow.tsx
1080
- function Pe({ value: e, label: t }) {
1081
- let [n, r] = v(!1);
1082
- function i() {
1083
- navigator.clipboard.writeText(e).then(() => {
1084
- r(!0), setTimeout(() => r(!1), 1500);
1085
- });
1086
- }
1430
+ function Qe({ value: e, label: t }) {
1087
1431
  return /* @__PURE__ */ x("div", {
1088
1432
  className: "j-copy-row",
1089
- children: [t && /* @__PURE__ */ b(j, {
1433
+ children: [t ? /* @__PURE__ */ b(P, {
1090
1434
  size: "xs",
1091
1435
  tone: "grey",
1092
1436
  className: "j-copy-row__label",
1093
1437
  children: t
1094
- }), /* @__PURE__ */ x("div", {
1095
- className: "j-copy-row__field",
1096
- children: [/* @__PURE__ */ b("div", {
1097
- className: "j-copy-row__value",
1098
- children: /* @__PURE__ */ b(j, {
1099
- size: "sm",
1100
- children: e
1438
+ }) : null, /* @__PURE__ */ b(Ae, { value: e })]
1439
+ });
1440
+ }
1441
+ //#endregion
1442
+ //#region src/ui/jimboWordmark.tsx
1443
+ function $e({ title: e, subtitle: t, className: n = "" }) {
1444
+ return /* @__PURE__ */ x("div", {
1445
+ className: `j-wordmark ${n}`,
1446
+ children: [/* @__PURE__ */ b("div", {
1447
+ className: "j-wordmark__title",
1448
+ children: e
1449
+ }), t && /* @__PURE__ */ b("div", {
1450
+ className: "j-wordmark__sub",
1451
+ children: t
1452
+ })]
1453
+ });
1454
+ }
1455
+ //#endregion
1456
+ //#region src/ui/jimboStatGrid.tsx
1457
+ function et({ items: e, className: t = "", ...n }) {
1458
+ return /* @__PURE__ */ b("div", {
1459
+ className: `j-stat-grid ${t}`,
1460
+ ...n,
1461
+ children: e.map((e) => /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("div", {
1462
+ className: "j-stat-grid__value",
1463
+ children: e.value
1464
+ }), /* @__PURE__ */ b("div", {
1465
+ className: "j-stat-grid__label",
1466
+ children: e.label
1467
+ })] }, e.label))
1468
+ });
1469
+ }
1470
+ //#endregion
1471
+ //#region src/ui/jimboLayout.tsx
1472
+ function tt({ gap: e, align: t, justify: n, className: r = "", ...i }) {
1473
+ return /* @__PURE__ */ b("div", {
1474
+ className: [
1475
+ "j-stack",
1476
+ e && `j-stack--gap-${e}`,
1477
+ t && `j-stack--align-${t}`,
1478
+ n && `j-stack--justify-${n}`,
1479
+ r
1480
+ ].filter(Boolean).join(" "),
1481
+ ...i
1482
+ });
1483
+ }
1484
+ function nt({ gap: e, align: t, justify: n, wrap: r = !1, className: i = "", ...a }) {
1485
+ return /* @__PURE__ */ b("div", {
1486
+ className: [
1487
+ "j-row",
1488
+ e && `j-row--gap-${e}`,
1489
+ t && `j-row--align-${t}`,
1490
+ n && `j-row--justify-${n}`,
1491
+ r && "j-row--wrap",
1492
+ i
1493
+ ].filter(Boolean).join(" "),
1494
+ ...a
1495
+ });
1496
+ }
1497
+ //#endregion
1498
+ //#region src/ui/jimboInset.tsx
1499
+ function rt({ children: e, className: t = "", ...n }) {
1500
+ return /* @__PURE__ */ b("div", {
1501
+ className: `j-inset ${t}`.trim(),
1502
+ ...n,
1503
+ children: e
1504
+ });
1505
+ }
1506
+ //#endregion
1507
+ //#region src/ui/JimboPanelSpinner.tsx
1508
+ function it({ 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
+ return /* @__PURE__ */ x("div", {
1510
+ className: `j-panel-spinner ${a}`.trim(),
1511
+ style: o,
1512
+ children: [e ? /* @__PURE__ */ b("div", {
1513
+ className: "j-panel-spinner__label",
1514
+ children: /* @__PURE__ */ b(P, {
1515
+ size: "xs",
1516
+ tone: "grey",
1517
+ children: e
1518
+ })
1519
+ }) : null, /* @__PURE__ */ x("div", {
1520
+ className: "j-panel-spinner__row",
1521
+ children: [
1522
+ /* @__PURE__ */ b(I, {
1523
+ tone: "red",
1524
+ size: "lg",
1525
+ className: "j-panel-spinner__arrow j-panel-spinner__arrow--left",
1526
+ onClick: s,
1527
+ disabled: l,
1528
+ "aria-label": "Previous",
1529
+ children: "<"
1530
+ }),
1531
+ /* @__PURE__ */ x("div", {
1532
+ className: "j-panel-spinner__panel",
1533
+ children: [
1534
+ r ? /* @__PURE__ */ b("div", {
1535
+ className: "j-panel-spinner__media",
1536
+ children: r
1537
+ }) : null,
1538
+ /* @__PURE__ */ b("div", {
1539
+ className: "j-panel-spinner__title",
1540
+ children: /* @__PURE__ */ b(P, {
1541
+ size: "md",
1542
+ tone: "white",
1543
+ children: t
1544
+ })
1545
+ }),
1546
+ i ? /* @__PURE__ */ b("div", {
1547
+ className: "j-panel-spinner__meta",
1548
+ children: i
1549
+ }) : null,
1550
+ n ? /* @__PURE__ */ b("div", {
1551
+ className: "j-panel-spinner__description",
1552
+ children: /* @__PURE__ */ b(P, {
1553
+ size: "micro",
1554
+ tone: "grey",
1555
+ children: n
1556
+ })
1557
+ }) : null
1558
+ ]
1559
+ }),
1560
+ /* @__PURE__ */ b(I, {
1561
+ tone: "red",
1562
+ size: "lg",
1563
+ className: "j-panel-spinner__arrow j-panel-spinner__arrow--right",
1564
+ onClick: c,
1565
+ disabled: u,
1566
+ "aria-label": "Next",
1567
+ children: ">"
1101
1568
  })
1102
- }), /* @__PURE__ */ b("button", {
1103
- type: "button",
1104
- className: "j-copy-row__btn",
1105
- "data-copied": n,
1106
- onClick: i,
1107
- children: n ? "Copied" : "Copy"
1108
- })]
1109
- })]
1110
- });
1111
- }
1112
- //#endregion
1113
- //#region src/ui/jimboWordmark.tsx
1114
- function Fe({ title: e, subtitle: t, className: n = "" }) {
1115
- return /* @__PURE__ */ x("div", {
1116
- className: `j-wordmark ${n}`,
1117
- children: [/* @__PURE__ */ b("div", {
1118
- className: "j-wordmark__title",
1119
- children: e
1120
- }), t && /* @__PURE__ */ b("div", {
1121
- className: "j-wordmark__sub",
1122
- children: t
1569
+ ]
1123
1570
  })]
1124
1571
  });
1125
1572
  }
1126
1573
  //#endregion
1127
- //#region src/ui/jimboStatGrid.tsx
1128
- function Ie({ items: e, className: t = "", ...n }) {
1129
- return /* @__PURE__ */ b("div", {
1130
- className: `j-stat-grid ${t}`,
1131
- ...n,
1132
- children: e.map((e) => /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("div", {
1133
- className: "j-stat-grid__value",
1134
- children: e.value
1135
- }), /* @__PURE__ */ b("div", {
1136
- className: "j-stat-grid__label",
1137
- children: e.label
1138
- })] }, e.label))
1139
- });
1574
+ //#region src/ui/JimboDeckAndStakeSelectorModal.tsx
1575
+ function at(e, t, n) {
1576
+ let r = e.indexOf(t);
1577
+ return r < 0 ? e[0] ?? t : e[(r + n + e.length) % e.length] ?? t;
1140
1578
  }
1141
- //#endregion
1142
- //#region src/ui/jimboInset.tsx
1143
- function Le({ children: e, className: t = "", ...n }) {
1144
- return /* @__PURE__ */ b("div", {
1145
- className: `j-inset ${t}`,
1146
- ...n,
1147
- children: e
1579
+ function ot({ 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 }) {
1580
+ return /* @__PURE__ */ b(be, {
1581
+ open: e,
1582
+ onClose: t,
1583
+ title: c,
1584
+ children: /* @__PURE__ */ x(tt, {
1585
+ gap: "md",
1586
+ align: "stretch",
1587
+ children: [/* @__PURE__ */ b(it, {
1588
+ label: "Deck",
1589
+ title: `${i} Deck`,
1590
+ description: l ? l(i) : " ",
1591
+ media: /* @__PURE__ */ b(de, {
1592
+ deck: i,
1593
+ width: 64
1594
+ }),
1595
+ onPrev: () => o(at(n, i, -1)),
1596
+ onNext: () => o(at(n, i, 1))
1597
+ }), /* @__PURE__ */ b(it, {
1598
+ label: "Stake",
1599
+ title: `${a} Stake`,
1600
+ description: u ? u(a) : " ",
1601
+ media: /* @__PURE__ */ b(le, {
1602
+ stake: a,
1603
+ width: 48
1604
+ }),
1605
+ onPrev: () => s(at(r, a, -1)),
1606
+ onNext: () => s(at(r, a, 1))
1607
+ })]
1608
+ })
1148
1609
  });
1149
1610
  }
1150
1611
  //#endregion
1151
1612
  //#region node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/dist/js-yaml.mjs
1152
- function Re(e) {
1613
+ function st(e) {
1153
1614
  return e == null;
1154
1615
  }
1155
- function ze(e) {
1616
+ function ct(e) {
1156
1617
  return typeof e == "object" && !!e;
1157
1618
  }
1158
- function Be(e) {
1159
- return Array.isArray(e) ? e : Re(e) ? [] : [e];
1619
+ function lt(e) {
1620
+ return Array.isArray(e) ? e : st(e) ? [] : [e];
1160
1621
  }
1161
- function Ve(e, t) {
1622
+ function ut(e, t) {
1162
1623
  var n, r, i, a;
1163
1624
  if (t) for (a = Object.keys(t), n = 0, r = a.length; n < r; n += 1) i = a[n], e[i] = t[i];
1164
1625
  return e;
1165
1626
  }
1166
- function He(e, t) {
1627
+ function dt(e, t) {
1167
1628
  var n = "", r;
1168
1629
  for (r = 0; r < t; r += 1) n += e;
1169
1630
  return n;
1170
1631
  }
1171
- function Ue(e) {
1632
+ function ft(e) {
1172
1633
  return e === 0 && 1 / e == -Infinity;
1173
1634
  }
1174
- var P = {
1175
- isNothing: Re,
1176
- isObject: ze,
1177
- toArray: Be,
1178
- repeat: He,
1179
- isNegativeZero: Ue,
1180
- extend: Ve
1635
+ var R = {
1636
+ isNothing: st,
1637
+ isObject: ct,
1638
+ toArray: lt,
1639
+ repeat: dt,
1640
+ isNegativeZero: ft,
1641
+ extend: ut
1181
1642
  };
1182
- function We(e, t) {
1643
+ function pt(e, t) {
1183
1644
  var n = "", r = e.reason || "(unknown reason)";
1184
1645
  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;
1185
1646
  }
1186
- function F(e, t) {
1187
- Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = We(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = (/* @__PURE__ */ Error()).stack || "";
1647
+ function mt(e, t) {
1648
+ Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = pt(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = (/* @__PURE__ */ Error()).stack || "";
1188
1649
  }
1189
- F.prototype = Object.create(Error.prototype), F.prototype.constructor = F, F.prototype.toString = function(e) {
1190
- return this.name + ": " + We(this, e);
1650
+ mt.prototype = Object.create(Error.prototype), mt.prototype.constructor = mt, mt.prototype.toString = function(e) {
1651
+ return this.name + ": " + pt(this, e);
1191
1652
  };
1192
- var I = F;
1193
- function Ge(e, t, n, r, i) {
1653
+ var z = mt;
1654
+ function ht(e, t, n, r, i) {
1194
1655
  var a = "", o = "", s = Math.floor(i / 2) - 1;
1195
1656
  return r - t > s && (a = " ... ", t = r - s + a.length), n - r > s && (o = " ...", n = r + s - o.length), {
1196
1657
  str: a + e.slice(t, n).replace(/\t/g, "→") + o,
1197
1658
  pos: r - t + a.length
1198
1659
  };
1199
1660
  }
1200
- function Ke(e, t) {
1201
- return P.repeat(" ", t - e.length) + e;
1661
+ function gt(e, t) {
1662
+ return R.repeat(" ", t - e.length) + e;
1202
1663
  }
1203
- function qe(e, t) {
1664
+ function _t(e, t) {
1204
1665
  if (t = Object.create(t || null), !e.buffer) return null;
1205
1666
  t.maxLength ||= 79, typeof t.indent != "number" && (t.indent = 1), typeof t.linesBefore != "number" && (t.linesBefore = 3), typeof t.linesAfter != "number" && (t.linesAfter = 2);
1206
1667
  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);
1207
1668
  o < 0 && (o = r.length - 1);
1208
1669
  var s = "", c, l, u = Math.min(e.line + t.linesAfter, i.length).toString().length, d = t.maxLength - (t.indent + u + 3);
1209
- for (c = 1; c <= t.linesBefore && !(o - c < 0); c++) l = Ge(e.buffer, r[o - c], i[o - c], e.position - (r[o] - r[o - c]), d), s = P.repeat(" ", t.indent) + Ke((e.line - c + 1).toString(), u) + " | " + l.str + "\n" + s;
1210
- for (l = Ge(e.buffer, r[o], i[o], e.position, d), s += P.repeat(" ", t.indent) + Ke((e.line + 1).toString(), u) + " | " + l.str + "\n", s += P.repeat("-", t.indent + u + 3 + l.pos) + "^\n", c = 1; c <= t.linesAfter && !(o + c >= i.length); c++) l = Ge(e.buffer, r[o + c], i[o + c], e.position - (r[o] - r[o + c]), d), s += P.repeat(" ", t.indent) + Ke((e.line + c + 1).toString(), u) + " | " + l.str + "\n";
1670
+ for (c = 1; c <= t.linesBefore && !(o - c < 0); c++) l = ht(e.buffer, r[o - c], i[o - c], e.position - (r[o] - r[o - c]), d), s = R.repeat(" ", t.indent) + gt((e.line - c + 1).toString(), u) + " | " + l.str + "\n" + s;
1671
+ for (l = ht(e.buffer, r[o], i[o], e.position, d), s += R.repeat(" ", t.indent) + gt((e.line + 1).toString(), u) + " | " + l.str + "\n", s += R.repeat("-", t.indent + u + 3 + l.pos) + "^\n", c = 1; c <= t.linesAfter && !(o + c >= i.length); c++) l = ht(e.buffer, r[o + c], i[o + c], e.position - (r[o] - r[o + c]), d), s += R.repeat(" ", t.indent) + gt((e.line + c + 1).toString(), u) + " | " + l.str + "\n";
1211
1672
  return s.replace(/\n$/, "");
1212
1673
  }
1213
- var Je = qe, Ye = [
1674
+ var vt = _t, yt = [
1214
1675
  "kind",
1215
1676
  "multi",
1216
1677
  "resolve",
@@ -1221,12 +1682,12 @@ var Je = qe, Ye = [
1221
1682
  "representName",
1222
1683
  "defaultStyle",
1223
1684
  "styleAliases"
1224
- ], Xe = [
1685
+ ], bt = [
1225
1686
  "scalar",
1226
1687
  "sequence",
1227
1688
  "mapping"
1228
1689
  ];
1229
- function Ze(e) {
1690
+ function xt(e) {
1230
1691
  var t = {};
1231
1692
  return e !== null && Object.keys(e).forEach(function(n) {
1232
1693
  e[n].forEach(function(e) {
@@ -1234,17 +1695,17 @@ function Ze(e) {
1234
1695
  });
1235
1696
  }), t;
1236
1697
  }
1237
- function Qe(e, t) {
1698
+ function St(e, t) {
1238
1699
  if (t ||= {}, Object.keys(t).forEach(function(t) {
1239
- if (Ye.indexOf(t) === -1) throw new I("Unknown option \"" + t + "\" is met in definition of \"" + e + "\" YAML type.");
1700
+ if (yt.indexOf(t) === -1) throw new z("Unknown option \"" + t + "\" is met in definition of \"" + e + "\" YAML type.");
1240
1701
  }), this.options = t, this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function() {
1241
1702
  return !0;
1242
1703
  }, this.construct = t.construct || function(e) {
1243
1704
  return e;
1244
- }, 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 = Ze(t.styleAliases || null), Xe.indexOf(this.kind) === -1) throw new I("Unknown kind \"" + this.kind + "\" is specified for \"" + e + "\" YAML type.");
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 = xt(t.styleAliases || null), bt.indexOf(this.kind) === -1) throw new z("Unknown kind \"" + this.kind + "\" is specified for \"" + e + "\" YAML type.");
1245
1706
  }
1246
- var L = Qe;
1247
- function $e(e, t) {
1707
+ var B = St;
1708
+ function Ct(e, t) {
1248
1709
  var n = [];
1249
1710
  return e[t].forEach(function(e) {
1250
1711
  var t = n.length;
@@ -1253,7 +1714,7 @@ function $e(e, t) {
1253
1714
  }), n[t] = e;
1254
1715
  }), n;
1255
1716
  }
1256
- function et() {
1717
+ function wt() {
1257
1718
  var e = {
1258
1719
  scalar: {},
1259
1720
  sequence: {},
@@ -1272,61 +1733,61 @@ function et() {
1272
1733
  for (t = 0, n = arguments.length; t < n; t += 1) arguments[t].forEach(r);
1273
1734
  return e;
1274
1735
  }
1275
- function tt(e) {
1736
+ function Tt(e) {
1276
1737
  return this.extend(e);
1277
1738
  }
1278
- tt.prototype.extend = function(e) {
1739
+ Tt.prototype.extend = function(e) {
1279
1740
  var t = [], n = [];
1280
- if (e instanceof L) n.push(e);
1741
+ if (e instanceof B) n.push(e);
1281
1742
  else if (Array.isArray(e)) n = n.concat(e);
1282
1743
  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));
1283
- else throw new I("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
1744
+ else throw new z("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
1284
1745
  t.forEach(function(e) {
1285
- if (!(e instanceof L)) throw new I("Specified list of YAML types (or a single Type object) contains a non-Type object.");
1286
- if (e.loadKind && e.loadKind !== "scalar") throw new I("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
1287
- if (e.multi) throw new I("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
1746
+ if (!(e instanceof B)) throw new z("Specified list of YAML types (or a single Type object) contains a non-Type object.");
1747
+ if (e.loadKind && e.loadKind !== "scalar") throw new z("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
1748
+ if (e.multi) throw new z("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
1288
1749
  }), n.forEach(function(e) {
1289
- if (!(e instanceof L)) throw new I("Specified list of YAML types (or a single Type object) contains a non-Type object.");
1750
+ if (!(e instanceof B)) throw new z("Specified list of YAML types (or a single Type object) contains a non-Type object.");
1290
1751
  });
1291
- var r = Object.create(tt.prototype);
1292
- return r.implicit = (this.implicit || []).concat(t), r.explicit = (this.explicit || []).concat(n), r.compiledImplicit = $e(r, "implicit"), r.compiledExplicit = $e(r, "explicit"), r.compiledTypeMap = et(r.compiledImplicit, r.compiledExplicit), r;
1752
+ var r = Object.create(Tt.prototype);
1753
+ return r.implicit = (this.implicit || []).concat(t), r.explicit = (this.explicit || []).concat(n), r.compiledImplicit = Ct(r, "implicit"), r.compiledExplicit = Ct(r, "explicit"), r.compiledTypeMap = wt(r.compiledImplicit, r.compiledExplicit), r;
1293
1754
  };
1294
- var nt = tt, rt = new L("tag:yaml.org,2002:str", {
1755
+ var Et = Tt, Dt = new B("tag:yaml.org,2002:str", {
1295
1756
  kind: "scalar",
1296
1757
  construct: function(e) {
1297
1758
  return e === null ? "" : e;
1298
1759
  }
1299
- }), it = new L("tag:yaml.org,2002:seq", {
1760
+ }), Ot = new B("tag:yaml.org,2002:seq", {
1300
1761
  kind: "sequence",
1301
1762
  construct: function(e) {
1302
1763
  return e === null ? [] : e;
1303
1764
  }
1304
- }), at = new L("tag:yaml.org,2002:map", {
1765
+ }), kt = new B("tag:yaml.org,2002:map", {
1305
1766
  kind: "mapping",
1306
1767
  construct: function(e) {
1307
1768
  return e === null ? {} : e;
1308
1769
  }
1309
- }), ot = new nt({ explicit: [
1310
- rt,
1311
- it,
1312
- at
1770
+ }), At = new Et({ explicit: [
1771
+ Dt,
1772
+ Ot,
1773
+ kt
1313
1774
  ] });
1314
- function st(e) {
1775
+ function jt(e) {
1315
1776
  if (e === null) return !0;
1316
1777
  var t = e.length;
1317
1778
  return t === 1 && e === "~" || t === 4 && (e === "null" || e === "Null" || e === "NULL");
1318
1779
  }
1319
- function ct() {
1780
+ function Mt() {
1320
1781
  return null;
1321
1782
  }
1322
- function lt(e) {
1783
+ function Nt(e) {
1323
1784
  return e === null;
1324
1785
  }
1325
- var ut = new L("tag:yaml.org,2002:null", {
1786
+ var Pt = new B("tag:yaml.org,2002:null", {
1326
1787
  kind: "scalar",
1327
- resolve: st,
1328
- construct: ct,
1329
- predicate: lt,
1788
+ resolve: jt,
1789
+ construct: Mt,
1790
+ predicate: Nt,
1330
1791
  represent: {
1331
1792
  canonical: function() {
1332
1793
  return "~";
@@ -1346,22 +1807,22 @@ var ut = new L("tag:yaml.org,2002:null", {
1346
1807
  },
1347
1808
  defaultStyle: "lowercase"
1348
1809
  });
1349
- function dt(e) {
1810
+ function Ft(e) {
1350
1811
  if (e === null) return !1;
1351
1812
  var t = e.length;
1352
1813
  return t === 4 && (e === "true" || e === "True" || e === "TRUE") || t === 5 && (e === "false" || e === "False" || e === "FALSE");
1353
1814
  }
1354
- function ft(e) {
1815
+ function It(e) {
1355
1816
  return e === "true" || e === "True" || e === "TRUE";
1356
1817
  }
1357
- function pt(e) {
1818
+ function Lt(e) {
1358
1819
  return Object.prototype.toString.call(e) === "[object Boolean]";
1359
1820
  }
1360
- var mt = new L("tag:yaml.org,2002:bool", {
1821
+ var Rt = new B("tag:yaml.org,2002:bool", {
1361
1822
  kind: "scalar",
1362
- resolve: dt,
1363
- construct: ft,
1364
- predicate: pt,
1823
+ resolve: Ft,
1824
+ construct: It,
1825
+ predicate: Lt,
1365
1826
  represent: {
1366
1827
  lowercase: function(e) {
1367
1828
  return e ? "true" : "false";
@@ -1375,16 +1836,16 @@ var mt = new L("tag:yaml.org,2002:bool", {
1375
1836
  },
1376
1837
  defaultStyle: "lowercase"
1377
1838
  });
1378
- function ht(e) {
1839
+ function zt(e) {
1379
1840
  return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
1380
1841
  }
1381
- function gt(e) {
1842
+ function Bt(e) {
1382
1843
  return 48 <= e && e <= 55;
1383
1844
  }
1384
- function _t(e) {
1845
+ function Vt(e) {
1385
1846
  return 48 <= e && e <= 57;
1386
1847
  }
1387
- function vt(e) {
1848
+ function Ht(e) {
1388
1849
  if (e === null) return !1;
1389
1850
  var t = e.length, n = 0, r = !1, i;
1390
1851
  if (!t) return !1;
@@ -1399,14 +1860,14 @@ function vt(e) {
1399
1860
  }
1400
1861
  if (i === "x") {
1401
1862
  for (n++; n < t; n++) if (i = e[n], i !== "_") {
1402
- if (!ht(e.charCodeAt(n))) return !1;
1863
+ if (!zt(e.charCodeAt(n))) return !1;
1403
1864
  r = !0;
1404
1865
  }
1405
1866
  return r && i !== "_";
1406
1867
  }
1407
1868
  if (i === "o") {
1408
1869
  for (n++; n < t; n++) if (i = e[n], i !== "_") {
1409
- if (!gt(e.charCodeAt(n))) return !1;
1870
+ if (!Bt(e.charCodeAt(n))) return !1;
1410
1871
  r = !0;
1411
1872
  }
1412
1873
  return r && i !== "_";
@@ -1414,12 +1875,12 @@ function vt(e) {
1414
1875
  }
1415
1876
  if (i === "_") return !1;
1416
1877
  for (; n < t; n++) if (i = e[n], i !== "_") {
1417
- if (!_t(e.charCodeAt(n))) return !1;
1878
+ if (!Vt(e.charCodeAt(n))) return !1;
1418
1879
  r = !0;
1419
1880
  }
1420
1881
  return !(!r || i === "_");
1421
1882
  }
1422
- function yt(e) {
1883
+ function Ut(e) {
1423
1884
  var t = e, n = 1, r;
1424
1885
  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;
1425
1886
  if (r === "0") {
@@ -1429,14 +1890,14 @@ function yt(e) {
1429
1890
  }
1430
1891
  return n * parseInt(t, 10);
1431
1892
  }
1432
- function bt(e) {
1433
- return Object.prototype.toString.call(e) === "[object Number]" && e % 1 == 0 && !P.isNegativeZero(e);
1893
+ function Wt(e) {
1894
+ return Object.prototype.toString.call(e) === "[object Number]" && e % 1 == 0 && !R.isNegativeZero(e);
1434
1895
  }
1435
- var xt = new L("tag:yaml.org,2002:int", {
1896
+ var Gt = new B("tag:yaml.org,2002:int", {
1436
1897
  kind: "scalar",
1437
- resolve: vt,
1438
- construct: yt,
1439
- predicate: bt,
1898
+ resolve: Ht,
1899
+ construct: Ut,
1900
+ predicate: Wt,
1440
1901
  represent: {
1441
1902
  binary: function(e) {
1442
1903
  return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
@@ -1458,16 +1919,16 @@ var xt = new L("tag:yaml.org,2002:int", {
1458
1919
  decimal: [10, "dec"],
1459
1920
  hexadecimal: [16, "hex"]
1460
1921
  }
1461
- }), St = /* @__PURE__ */ RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
1462
- function Ct(e) {
1463
- return !(e === null || !St.test(e) || e[e.length - 1] === "_");
1922
+ }), Kt = /* @__PURE__ */ RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
1923
+ function qt(e) {
1924
+ return !(e === null || !Kt.test(e) || e[e.length - 1] === "_");
1464
1925
  }
1465
- function wt(e) {
1926
+ function Jt(e) {
1466
1927
  var t = e.replace(/_/g, "").toLowerCase(), n = t[0] === "-" ? -1 : 1;
1467
1928
  return "+-".indexOf(t[0]) >= 0 && (t = t.slice(1)), t === ".inf" ? n === 1 ? Infinity : -Infinity : t === ".nan" ? NaN : n * parseFloat(t, 10);
1468
1929
  }
1469
- var Tt = /^[-+]?[0-9]+e/;
1470
- function Et(e, t) {
1930
+ var Yt = /^[-+]?[0-9]+e/;
1931
+ function Xt(e, t) {
1471
1932
  var n;
1472
1933
  if (isNaN(e)) switch (t) {
1473
1934
  case "lowercase": return ".nan";
@@ -1484,31 +1945,31 @@ function Et(e, t) {
1484
1945
  case "uppercase": return "-.INF";
1485
1946
  case "camelcase": return "-.Inf";
1486
1947
  }
1487
- else if (P.isNegativeZero(e)) return "-0.0";
1488
- return n = e.toString(10), Tt.test(n) ? n.replace("e", ".e") : n;
1948
+ else if (R.isNegativeZero(e)) return "-0.0";
1949
+ return n = e.toString(10), Yt.test(n) ? n.replace("e", ".e") : n;
1489
1950
  }
1490
- function Dt(e) {
1491
- return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 != 0 || P.isNegativeZero(e));
1951
+ function Zt(e) {
1952
+ return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 != 0 || R.isNegativeZero(e));
1492
1953
  }
1493
- var Ot = new L("tag:yaml.org,2002:float", {
1954
+ var Qt = new B("tag:yaml.org,2002:float", {
1494
1955
  kind: "scalar",
1495
- resolve: Ct,
1496
- construct: wt,
1497
- predicate: Dt,
1498
- represent: Et,
1956
+ resolve: qt,
1957
+ construct: Jt,
1958
+ predicate: Zt,
1959
+ represent: Xt,
1499
1960
  defaultStyle: "lowercase"
1500
- }), kt = ot.extend({ implicit: [
1501
- ut,
1502
- mt,
1503
- xt,
1504
- Ot
1505
- ] }), At = kt, jt = /* @__PURE__ */ RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"), Mt = /* @__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]))?))?$");
1506
- function Nt(e) {
1507
- return e === null ? !1 : jt.exec(e) !== null || Mt.exec(e) !== null;
1508
- }
1509
- function Pt(e) {
1961
+ }), $t = At.extend({ implicit: [
1962
+ Pt,
1963
+ Rt,
1964
+ Gt,
1965
+ Qt
1966
+ ] }), en = $t, tn = /* @__PURE__ */ RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"), nn = /* @__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]))?))?$");
1967
+ function rn(e) {
1968
+ return e === null ? !1 : tn.exec(e) !== null || nn.exec(e) !== null;
1969
+ }
1970
+ function an(e) {
1510
1971
  var t, n, r, i, a, o, s, c = 0, l = null, u, d, f;
1511
- if (t = jt.exec(e), t === null && (t = Mt.exec(e)), t === null) throw Error("Date resolve error");
1972
+ if (t = tn.exec(e), t === null && (t = nn.exec(e)), t === null) throw Error("Date resolve error");
1512
1973
  if (n = +t[1], r = t[2] - 1, i = +t[3], !t[4]) return new Date(Date.UTC(n, r, i));
1513
1974
  if (a = +t[4], o = +t[5], s = +t[6], t[7]) {
1514
1975
  for (c = t[7].slice(0, 3); c.length < 3;) c += "0";
@@ -1516,58 +1977,58 @@ function Pt(e) {
1516
1977
  }
1517
1978
  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;
1518
1979
  }
1519
- function Ft(e) {
1980
+ function on(e) {
1520
1981
  return e.toISOString();
1521
1982
  }
1522
- var It = new L("tag:yaml.org,2002:timestamp", {
1983
+ var sn = new B("tag:yaml.org,2002:timestamp", {
1523
1984
  kind: "scalar",
1524
- resolve: Nt,
1525
- construct: Pt,
1985
+ resolve: rn,
1986
+ construct: an,
1526
1987
  instanceOf: Date,
1527
- represent: Ft
1988
+ represent: on
1528
1989
  });
1529
- function Lt(e) {
1990
+ function cn(e) {
1530
1991
  return e === "<<" || e === null;
1531
1992
  }
1532
- var Rt = new L("tag:yaml.org,2002:merge", {
1993
+ var ln = new B("tag:yaml.org,2002:merge", {
1533
1994
  kind: "scalar",
1534
- resolve: Lt
1535
- }), zt = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
1536
- function Bt(e) {
1995
+ resolve: cn
1996
+ }), un = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
1997
+ function dn(e) {
1537
1998
  if (e === null) return !1;
1538
- var t, n, r = 0, i = e.length, a = zt;
1999
+ var t, n, r = 0, i = e.length, a = un;
1539
2000
  for (n = 0; n < i; n++) if (t = a.indexOf(e.charAt(n)), !(t > 64)) {
1540
2001
  if (t < 0) return !1;
1541
2002
  r += 6;
1542
2003
  }
1543
2004
  return r % 8 == 0;
1544
2005
  }
1545
- function Vt(e) {
1546
- var t, n, r = e.replace(/[\r\n=]/g, ""), i = r.length, a = zt, o = 0, s = [];
2006
+ function fn(e) {
2007
+ var t, n, r = e.replace(/[\r\n=]/g, ""), i = r.length, a = un, o = 0, s = [];
1547
2008
  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));
1548
2009
  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);
1549
2010
  }
1550
- function Ht(e) {
1551
- var t = "", n = 0, r, i, a = e.length, o = zt;
2011
+ function pn(e) {
2012
+ var t = "", n = 0, r, i, a = e.length, o = un;
1552
2013
  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];
1553
2014
  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;
1554
2015
  }
1555
- function Ut(e) {
2016
+ function mn(e) {
1556
2017
  return Object.prototype.toString.call(e) === "[object Uint8Array]";
1557
2018
  }
1558
- var Wt = new L("tag:yaml.org,2002:binary", {
2019
+ var hn = new B("tag:yaml.org,2002:binary", {
1559
2020
  kind: "scalar",
1560
- resolve: Bt,
1561
- construct: Vt,
1562
- predicate: Ut,
1563
- represent: Ht
1564
- }), Gt = Object.prototype.hasOwnProperty, Kt = Object.prototype.toString;
1565
- function qt(e) {
2021
+ resolve: dn,
2022
+ construct: fn,
2023
+ predicate: mn,
2024
+ represent: pn
2025
+ }), gn = Object.prototype.hasOwnProperty, _n = Object.prototype.toString;
2026
+ function vn(e) {
1566
2027
  if (e === null) return !0;
1567
2028
  var t = [], n, r, i, a, o, s = e;
1568
2029
  for (n = 0, r = s.length; n < r; n += 1) {
1569
- if (i = s[n], o = !1, Kt.call(i) !== "[object Object]") return !1;
1570
- for (a in i) if (Gt.call(i, a)) if (!o) o = !0;
2030
+ if (i = s[n], o = !1, _n.call(i) !== "[object Object]") return !1;
2031
+ for (a in i) if (gn.call(i, a)) if (!o) o = !0;
1571
2032
  else return !1;
1572
2033
  if (!o) return !1;
1573
2034
  if (t.indexOf(a) === -1) t.push(a);
@@ -1575,88 +2036,88 @@ function qt(e) {
1575
2036
  }
1576
2037
  return !0;
1577
2038
  }
1578
- function Jt(e) {
2039
+ function yn(e) {
1579
2040
  return e === null ? [] : e;
1580
2041
  }
1581
- var Yt = new L("tag:yaml.org,2002:omap", {
2042
+ var bn = new B("tag:yaml.org,2002:omap", {
1582
2043
  kind: "sequence",
1583
- resolve: qt,
1584
- construct: Jt
1585
- }), Xt = Object.prototype.toString;
1586
- function Zt(e) {
2044
+ resolve: vn,
2045
+ construct: yn
2046
+ }), xn = Object.prototype.toString;
2047
+ function Sn(e) {
1587
2048
  if (e === null) return !0;
1588
2049
  var t, n, r, i, a, o = e;
1589
2050
  for (a = Array(o.length), t = 0, n = o.length; t < n; t += 1) {
1590
- if (r = o[t], Xt.call(r) !== "[object Object]" || (i = Object.keys(r), i.length !== 1)) return !1;
2051
+ if (r = o[t], xn.call(r) !== "[object Object]" || (i = Object.keys(r), i.length !== 1)) return !1;
1591
2052
  a[t] = [i[0], r[i[0]]];
1592
2053
  }
1593
2054
  return !0;
1594
2055
  }
1595
- function Qt(e) {
2056
+ function Cn(e) {
1596
2057
  if (e === null) return [];
1597
2058
  var t, n, r, i, a, o = e;
1598
2059
  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]]];
1599
2060
  return a;
1600
2061
  }
1601
- var $t = new L("tag:yaml.org,2002:pairs", {
2062
+ var wn = new B("tag:yaml.org,2002:pairs", {
1602
2063
  kind: "sequence",
1603
- resolve: Zt,
1604
- construct: Qt
1605
- }), en = Object.prototype.hasOwnProperty;
1606
- function tn(e) {
2064
+ resolve: Sn,
2065
+ construct: Cn
2066
+ }), Tn = Object.prototype.hasOwnProperty;
2067
+ function En(e) {
1607
2068
  if (e === null) return !0;
1608
2069
  var t, n = e;
1609
- for (t in n) if (en.call(n, t) && n[t] !== null) return !1;
2070
+ for (t in n) if (Tn.call(n, t) && n[t] !== null) return !1;
1610
2071
  return !0;
1611
2072
  }
1612
- function nn(e) {
2073
+ function Dn(e) {
1613
2074
  return e === null ? {} : e;
1614
2075
  }
1615
- var rn = new L("tag:yaml.org,2002:set", {
2076
+ var On = new B("tag:yaml.org,2002:set", {
1616
2077
  kind: "mapping",
1617
- resolve: tn,
1618
- construct: nn
1619
- }), an = At.extend({
1620
- implicit: [It, Rt],
2078
+ resolve: En,
2079
+ construct: Dn
2080
+ }), kn = en.extend({
2081
+ implicit: [sn, ln],
1621
2082
  explicit: [
1622
- Wt,
1623
- Yt,
1624
- $t,
1625
- rn
2083
+ hn,
2084
+ bn,
2085
+ wn,
2086
+ On
1626
2087
  ]
1627
- }), R = Object.prototype.hasOwnProperty, on = 1, sn = 2, cn = 3, ln = 4, un = 1, dn = 2, fn = 3, pn = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, mn = /[\x85\u2028\u2029]/, hn = /[,\[\]\{\}]/, gn = /^(?:!|!!|![a-z\-]+!)$/i, _n = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1628
- function vn(e) {
2088
+ }), V = Object.prototype.hasOwnProperty, An = 1, jn = 2, Mn = 3, Nn = 4, Pn = 1, Fn = 2, In = 3, Ln = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Rn = /[\x85\u2028\u2029]/, zn = /[,\[\]\{\}]/, Bn = /^(?:!|!!|![a-z\-]+!)$/i, Vn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
2089
+ function Hn(e) {
1629
2090
  return Object.prototype.toString.call(e);
1630
2091
  }
1631
- function z(e) {
2092
+ function H(e) {
1632
2093
  return e === 10 || e === 13;
1633
2094
  }
1634
- function B(e) {
2095
+ function U(e) {
1635
2096
  return e === 9 || e === 32;
1636
2097
  }
1637
- function V(e) {
2098
+ function W(e) {
1638
2099
  return e === 9 || e === 32 || e === 10 || e === 13;
1639
2100
  }
1640
- function H(e) {
2101
+ function G(e) {
1641
2102
  return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
1642
2103
  }
1643
- function yn(e) {
2104
+ function Un(e) {
1644
2105
  var t;
1645
2106
  return 48 <= e && e <= 57 ? e - 48 : (t = e | 32, 97 <= t && t <= 102 ? t - 97 + 10 : -1);
1646
2107
  }
1647
- function bn(e) {
2108
+ function Wn(e) {
1648
2109
  return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
1649
2110
  }
1650
- function xn(e) {
2111
+ function Gn(e) {
1651
2112
  return 48 <= e && e <= 57 ? e - 48 : -1;
1652
2113
  }
1653
- function Sn(e) {
2114
+ function Kn(e) {
1654
2115
  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" : "";
1655
2116
  }
1656
- function Cn(e) {
2117
+ function qn(e) {
1657
2118
  return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode((e - 65536 >> 10) + 55296, (e - 65536 & 1023) + 56320);
1658
2119
  }
1659
- function wn(e, t, n) {
2120
+ function Jn(e, t, n) {
1660
2121
  t === "__proto__" ? Object.defineProperty(e, t, {
1661
2122
  configurable: !0,
1662
2123
  enumerable: !0,
@@ -1664,11 +2125,11 @@ function wn(e, t, n) {
1664
2125
  value: n
1665
2126
  }) : e[t] = n;
1666
2127
  }
1667
- for (var Tn = Array(256), En = Array(256), U = 0; U < 256; U++) Tn[U] = +!!Sn(U), En[U] = Sn(U);
1668
- function Dn(e, t) {
1669
- this.input = e, this.filename = t.filename || null, this.schema = t.schema || an, 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 = [];
2128
+ for (var Yn = Array(256), Xn = Array(256), K = 0; K < 256; K++) Yn[K] = +!!Kn(K), Xn[K] = Kn(K);
2129
+ function Zn(e, t) {
2130
+ this.input = e, this.filename = t.filename || null, this.schema = t.schema || kn, 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 = [];
1670
2131
  }
1671
- function On(e, t) {
2132
+ function Qn(e, t) {
1672
2133
  var n = {
1673
2134
  name: e.filename,
1674
2135
  buffer: e.input.slice(0, -1),
@@ -1676,292 +2137,292 @@ function On(e, t) {
1676
2137
  line: e.line,
1677
2138
  column: e.position - e.lineStart
1678
2139
  };
1679
- return n.snippet = Je(n), new I(t, n);
2140
+ return n.snippet = vt(n), new z(t, n);
1680
2141
  }
1681
- function W(e, t) {
1682
- throw On(e, t);
2142
+ function q(e, t) {
2143
+ throw Qn(e, t);
1683
2144
  }
1684
- function kn(e, t) {
1685
- e.onWarning && e.onWarning.call(null, On(e, t));
2145
+ function $n(e, t) {
2146
+ e.onWarning && e.onWarning.call(null, Qn(e, t));
1686
2147
  }
1687
- var An = {
2148
+ var er = {
1688
2149
  YAML: function(e, t, n) {
1689
2150
  var r, i, a;
1690
- e.version !== null && W(e, "duplication of %YAML directive"), n.length !== 1 && W(e, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(n[0]), r === null && W(e, "ill-formed argument of the YAML directive"), i = parseInt(r[1], 10), a = parseInt(r[2], 10), i !== 1 && W(e, "unacceptable YAML version of the document"), e.version = n[0], e.checkLineBreaks = a < 2, a !== 1 && a !== 2 && kn(e, "unsupported YAML version of the document");
2151
+ e.version !== null && q(e, "duplication of %YAML directive"), n.length !== 1 && q(e, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(n[0]), r === null && q(e, "ill-formed argument of the YAML directive"), i = parseInt(r[1], 10), a = parseInt(r[2], 10), i !== 1 && q(e, "unacceptable YAML version of the document"), e.version = n[0], e.checkLineBreaks = a < 2, a !== 1 && a !== 2 && $n(e, "unsupported YAML version of the document");
1691
2152
  },
1692
2153
  TAG: function(e, t, n) {
1693
2154
  var r, i;
1694
- n.length !== 2 && W(e, "TAG directive accepts exactly two arguments"), r = n[0], i = n[1], gn.test(r) || W(e, "ill-formed tag handle (first argument) of the TAG directive"), R.call(e.tagMap, r) && W(e, "there is a previously declared suffix for \"" + r + "\" tag handle"), _n.test(i) || W(e, "ill-formed tag prefix (second argument) of the TAG directive");
2155
+ n.length !== 2 && q(e, "TAG directive accepts exactly two arguments"), r = n[0], i = n[1], Bn.test(r) || q(e, "ill-formed tag handle (first argument) of the TAG directive"), V.call(e.tagMap, r) && q(e, "there is a previously declared suffix for \"" + r + "\" tag handle"), Vn.test(i) || q(e, "ill-formed tag prefix (second argument) of the TAG directive");
1695
2156
  try {
1696
2157
  i = decodeURIComponent(i);
1697
2158
  } catch {
1698
- W(e, "tag prefix is malformed: " + i);
2159
+ q(e, "tag prefix is malformed: " + i);
1699
2160
  }
1700
2161
  e.tagMap[r] = i;
1701
2162
  }
1702
2163
  };
1703
- function G(e, t, n, r) {
2164
+ function J(e, t, n, r) {
1704
2165
  var i, a, o, s;
1705
2166
  if (t < n) {
1706
- 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 || W(e, "expected valid JSON character");
1707
- else pn.test(s) && W(e, "the stream contains non-printable characters");
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 || q(e, "expected valid JSON character");
2168
+ else Ln.test(s) && q(e, "the stream contains non-printable characters");
1708
2169
  e.result += s;
1709
2170
  }
1710
2171
  }
1711
- function jn(e, t, n, r) {
2172
+ function tr(e, t, n, r) {
1712
2173
  var i, a, o, s;
1713
- for (P.isObject(n) || W(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], R.call(t, a) || (wn(t, a, n[a]), r[a] = !0);
2174
+ for (R.isObject(n) || q(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], V.call(t, a) || (Jn(t, a, n[a]), r[a] = !0);
1714
2175
  }
1715
- function K(e, t, n, r, i, a, o, s, c) {
2176
+ function nr(e, t, n, r, i, a, o, s, c) {
1716
2177
  var l, u;
1717
- if (Array.isArray(i)) for (i = Array.prototype.slice.call(i), l = 0, u = i.length; l < u; l += 1) Array.isArray(i[l]) && W(e, "nested arrays are not supported inside keys"), typeof i == "object" && vn(i[l]) === "[object Object]" && (i[l] = "[object Object]");
1718
- if (typeof i == "object" && vn(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) jn(e, t, a[l], n);
1719
- else jn(e, t, a, n);
1720
- else !e.json && !R.call(n, i) && R.call(t, i) && (e.line = o || e.line, e.lineStart = s || e.lineStart, e.position = c || e.position, W(e, "duplicated mapping key")), wn(t, i, a), delete n[i];
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]) && q(e, "nested arrays are not supported inside keys"), typeof i == "object" && Hn(i[l]) === "[object Object]" && (i[l] = "[object Object]");
2179
+ if (typeof i == "object" && Hn(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) tr(e, t, a[l], n);
2180
+ else tr(e, t, a, n);
2181
+ else !e.json && !V.call(n, i) && V.call(t, i) && (e.line = o || e.line, e.lineStart = s || e.lineStart, e.position = c || e.position, q(e, "duplicated mapping key")), Jn(t, i, a), delete n[i];
1721
2182
  return t;
1722
2183
  }
1723
- function Mn(e) {
2184
+ function rr(e) {
1724
2185
  var t = e.input.charCodeAt(e.position);
1725
- t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : W(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
2186
+ t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : q(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
1726
2187
  }
1727
- function q(e, t, n) {
2188
+ function Y(e, t, n) {
1728
2189
  for (var r = 0, i = e.input.charCodeAt(e.position); i !== 0;) {
1729
- for (; B(i);) i === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), i = e.input.charCodeAt(++e.position);
2190
+ for (; U(i);) i === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), i = e.input.charCodeAt(++e.position);
1730
2191
  if (t && i === 35) do
1731
2192
  i = e.input.charCodeAt(++e.position);
1732
2193
  while (i !== 10 && i !== 13 && i !== 0);
1733
- if (z(i)) for (Mn(e), i = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; i === 32;) e.lineIndent++, i = e.input.charCodeAt(++e.position);
2194
+ if (H(i)) for (rr(e), i = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; i === 32;) e.lineIndent++, i = e.input.charCodeAt(++e.position);
1734
2195
  else break;
1735
2196
  }
1736
- return n !== -1 && r !== 0 && e.lineIndent < n && kn(e, "deficient indentation"), r;
2197
+ return n !== -1 && r !== 0 && e.lineIndent < n && $n(e, "deficient indentation"), r;
1737
2198
  }
1738
- function Nn(e) {
2199
+ function ir(e) {
1739
2200
  var t = e.position, n = e.input.charCodeAt(t);
1740
- 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 || V(n)));
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 || W(n)));
1741
2202
  }
1742
- function Pn(e, t) {
1743
- t === 1 ? e.result += " " : t > 1 && (e.result += P.repeat("\n", t - 1));
2203
+ function ar(e, t) {
2204
+ t === 1 ? e.result += " " : t > 1 && (e.result += R.repeat("\n", t - 1));
1744
2205
  }
1745
- function Fn(e, t, n) {
2206
+ function or(e, t, n) {
1746
2207
  var r, i, a, o, s, c, l, u, d = e.kind, f = e.result, p = e.input.charCodeAt(e.position);
1747
- if (V(p) || H(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), V(i) || n && H(i))) return !1;
2208
+ if (W(p) || G(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), W(i) || n && G(i))) return !1;
1748
2209
  for (e.kind = "scalar", e.result = "", a = o = e.position, s = !1; p !== 0;) {
1749
2210
  if (p === 58) {
1750
- if (i = e.input.charCodeAt(e.position + 1), V(i) || n && H(i)) break;
2211
+ if (i = e.input.charCodeAt(e.position + 1), W(i) || n && G(i)) break;
1751
2212
  } else if (p === 35) {
1752
- if (r = e.input.charCodeAt(e.position - 1), V(r)) break;
1753
- } else if (e.position === e.lineStart && Nn(e) || n && H(p)) break;
1754
- else if (z(p)) if (c = e.line, l = e.lineStart, u = e.lineIndent, q(e, !1, -1), e.lineIndent >= t) {
2213
+ if (r = e.input.charCodeAt(e.position - 1), W(r)) break;
2214
+ } else if (e.position === e.lineStart && ir(e) || n && G(p)) break;
2215
+ else if (H(p)) if (c = e.line, l = e.lineStart, u = e.lineIndent, Y(e, !1, -1), e.lineIndent >= t) {
1755
2216
  s = !0, p = e.input.charCodeAt(e.position);
1756
2217
  continue;
1757
2218
  } else {
1758
2219
  e.position = o, e.line = c, e.lineStart = l, e.lineIndent = u;
1759
2220
  break;
1760
2221
  }
1761
- s &&= (G(e, a, o, !1), Pn(e, e.line - c), a = o = e.position, !1), B(p) || (o = e.position + 1), p = e.input.charCodeAt(++e.position);
2222
+ s &&= (J(e, a, o, !1), ar(e, e.line - c), a = o = e.position, !1), U(p) || (o = e.position + 1), p = e.input.charCodeAt(++e.position);
1762
2223
  }
1763
- return G(e, a, o, !1), e.result ? !0 : (e.kind = d, e.result = f, !1);
2224
+ return J(e, a, o, !1), e.result ? !0 : (e.kind = d, e.result = f, !1);
1764
2225
  }
1765
- function In(e, t) {
2226
+ function sr(e, t) {
1766
2227
  var n = e.input.charCodeAt(e.position), r, i;
1767
2228
  if (n !== 39) return !1;
1768
- for (e.kind = "scalar", e.result = "", e.position++, r = i = e.position; (n = e.input.charCodeAt(e.position)) !== 0;) if (n === 39) if (G(e, r, e.position, !0), n = e.input.charCodeAt(++e.position), n === 39) r = e.position, e.position++, i = e.position;
2229
+ for (e.kind = "scalar", e.result = "", e.position++, r = i = e.position; (n = e.input.charCodeAt(e.position)) !== 0;) if (n === 39) if (J(e, r, e.position, !0), n = e.input.charCodeAt(++e.position), n === 39) r = e.position, e.position++, i = e.position;
1769
2230
  else return !0;
1770
- else z(n) ? (G(e, r, i, !0), Pn(e, q(e, !1, t)), r = i = e.position) : e.position === e.lineStart && Nn(e) ? W(e, "unexpected end of the document within a single quoted scalar") : (e.position++, i = e.position);
1771
- W(e, "unexpected end of the stream within a single quoted scalar");
2231
+ else H(n) ? (J(e, r, i, !0), ar(e, Y(e, !1, t)), r = i = e.position) : e.position === e.lineStart && ir(e) ? q(e, "unexpected end of the document within a single quoted scalar") : (e.position++, i = e.position);
2232
+ q(e, "unexpected end of the stream within a single quoted scalar");
1772
2233
  }
1773
- function Ln(e, t) {
2234
+ function cr(e, t) {
1774
2235
  var n, r, i, a, o, s = e.input.charCodeAt(e.position);
1775
2236
  if (s !== 34) return !1;
1776
- for (e.kind = "scalar", e.result = "", e.position++, n = r = e.position; (s = e.input.charCodeAt(e.position)) !== 0;) if (s === 34) return G(e, n, e.position, !0), e.position++, !0;
2237
+ for (e.kind = "scalar", e.result = "", e.position++, n = r = e.position; (s = e.input.charCodeAt(e.position)) !== 0;) if (s === 34) return J(e, n, e.position, !0), e.position++, !0;
1777
2238
  else if (s === 92) {
1778
- if (G(e, n, e.position, !0), s = e.input.charCodeAt(++e.position), z(s)) q(e, !1, t);
1779
- else if (s < 256 && Tn[s]) e.result += En[s], e.position++;
1780
- else if ((o = bn(s)) > 0) {
1781
- for (i = o, a = 0; i > 0; i--) s = e.input.charCodeAt(++e.position), (o = yn(s)) >= 0 ? a = (a << 4) + o : W(e, "expected hexadecimal character");
1782
- e.result += Cn(a), e.position++;
1783
- } else W(e, "unknown escape sequence");
2239
+ if (J(e, n, e.position, !0), s = e.input.charCodeAt(++e.position), H(s)) Y(e, !1, t);
2240
+ else if (s < 256 && Yn[s]) e.result += Xn[s], e.position++;
2241
+ else if ((o = Wn(s)) > 0) {
2242
+ for (i = o, a = 0; i > 0; i--) s = e.input.charCodeAt(++e.position), (o = Un(s)) >= 0 ? a = (a << 4) + o : q(e, "expected hexadecimal character");
2243
+ e.result += qn(a), e.position++;
2244
+ } else q(e, "unknown escape sequence");
1784
2245
  n = r = e.position;
1785
- } else z(s) ? (G(e, n, r, !0), Pn(e, q(e, !1, t)), n = r = e.position) : e.position === e.lineStart && Nn(e) ? W(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
1786
- W(e, "unexpected end of the stream within a double quoted scalar");
2246
+ } else H(s) ? (J(e, n, r, !0), ar(e, Y(e, !1, t)), n = r = e.position) : e.position === e.lineStart && ir(e) ? q(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
2247
+ q(e, "unexpected end of the stream within a double quoted scalar");
1787
2248
  }
1788
- function Rn(e, t) {
2249
+ function lr(e, t) {
1789
2250
  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);
1790
2251
  if (v === 91) u = 93, p = !1, s = [];
1791
2252
  else if (v === 123) u = 125, p = !0, s = {};
1792
2253
  else return !1;
1793
2254
  for (e.anchor !== null && (e.anchorMap[e.anchor] = s), v = e.input.charCodeAt(++e.position); v !== 0;) {
1794
- if (q(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;
1795
- n ? v === 44 && W(e, "expected the node content, but found ','") : W(e, "missed comma between flow collection entries"), g = h = _ = null, d = f = !1, v === 63 && (l = e.input.charCodeAt(e.position + 1), V(l) && (d = f = !0, e.position++, q(e, !0, t))), r = e.line, i = e.lineStart, a = e.position, J(e, t, on, !1, !0), g = e.tag, h = e.result, q(e, !0, t), v = e.input.charCodeAt(e.position), (f || e.line === r) && v === 58 && (d = !0, v = e.input.charCodeAt(++e.position), q(e, !0, t), J(e, t, on, !1, !0), _ = e.result), p ? K(e, s, m, g, h, _, r, i, a) : d ? s.push(K(e, null, m, g, h, _, r, i, a)) : s.push(h), q(e, !0, t), v = e.input.charCodeAt(e.position), v === 44 ? (n = !0, v = e.input.charCodeAt(++e.position)) : n = !1;
2255
+ if (Y(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;
2256
+ n ? v === 44 && q(e, "expected the node content, but found ','") : q(e, "missed comma between flow collection entries"), g = h = _ = null, d = f = !1, v === 63 && (l = e.input.charCodeAt(e.position + 1), W(l) && (d = f = !0, e.position++, Y(e, !0, t))), r = e.line, i = e.lineStart, a = e.position, gr(e, t, An, !1, !0), g = e.tag, h = e.result, Y(e, !0, t), v = e.input.charCodeAt(e.position), (f || e.line === r) && v === 58 && (d = !0, v = e.input.charCodeAt(++e.position), Y(e, !0, t), gr(e, t, An, !1, !0), _ = e.result), p ? nr(e, s, m, g, h, _, r, i, a) : d ? s.push(nr(e, null, m, g, h, _, r, i, a)) : s.push(h), Y(e, !0, t), v = e.input.charCodeAt(e.position), v === 44 ? (n = !0, v = e.input.charCodeAt(++e.position)) : n = !1;
1796
2257
  }
1797
- W(e, "unexpected end of the stream within a flow collection");
2258
+ q(e, "unexpected end of the stream within a flow collection");
1798
2259
  }
1799
- function zn(e, t) {
1800
- var n, r, i = un, a = !1, o = !1, s = t, c = 0, l = !1, u, d = e.input.charCodeAt(e.position);
2260
+ function ur(e, t) {
2261
+ var n, r, i = Pn, a = !1, o = !1, s = t, c = 0, l = !1, u, d = e.input.charCodeAt(e.position);
1801
2262
  if (d === 124) r = !1;
1802
2263
  else if (d === 62) r = !0;
1803
2264
  else return !1;
1804
- for (e.kind = "scalar", e.result = ""; d !== 0;) if (d = e.input.charCodeAt(++e.position), d === 43 || d === 45) un === i ? i = d === 43 ? fn : dn : W(e, "repeat of a chomping mode identifier");
1805
- else if ((u = xn(d)) >= 0) u === 0 ? W(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? W(e, "repeat of an indentation width identifier") : (s = t + u - 1, o = !0);
2265
+ for (e.kind = "scalar", e.result = ""; d !== 0;) if (d = e.input.charCodeAt(++e.position), d === 43 || d === 45) Pn === i ? i = d === 43 ? In : Fn : q(e, "repeat of a chomping mode identifier");
2266
+ else if ((u = Gn(d)) >= 0) u === 0 ? q(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? q(e, "repeat of an indentation width identifier") : (s = t + u - 1, o = !0);
1806
2267
  else break;
1807
- if (B(d)) {
2268
+ if (U(d)) {
1808
2269
  do
1809
2270
  d = e.input.charCodeAt(++e.position);
1810
- while (B(d));
2271
+ while (U(d));
1811
2272
  if (d === 35) do
1812
2273
  d = e.input.charCodeAt(++e.position);
1813
- while (!z(d) && d !== 0);
2274
+ while (!H(d) && d !== 0);
1814
2275
  }
1815
2276
  for (; d !== 0;) {
1816
- for (Mn(e), e.lineIndent = 0, d = e.input.charCodeAt(e.position); (!o || e.lineIndent < s) && d === 32;) e.lineIndent++, d = e.input.charCodeAt(++e.position);
1817
- if (!o && e.lineIndent > s && (s = e.lineIndent), z(d)) {
2277
+ for (rr(e), e.lineIndent = 0, d = e.input.charCodeAt(e.position); (!o || e.lineIndent < s) && d === 32;) e.lineIndent++, d = e.input.charCodeAt(++e.position);
2278
+ if (!o && e.lineIndent > s && (s = e.lineIndent), H(d)) {
1818
2279
  c++;
1819
2280
  continue;
1820
2281
  }
1821
2282
  if (e.lineIndent < s) {
1822
- i === fn ? e.result += P.repeat("\n", a ? 1 + c : c) : i === un && a && (e.result += "\n");
2283
+ i === In ? e.result += R.repeat("\n", a ? 1 + c : c) : i === Pn && a && (e.result += "\n");
1823
2284
  break;
1824
2285
  }
1825
- for (r ? B(d) ? (l = !0, e.result += P.repeat("\n", a ? 1 + c : c)) : l ? (l = !1, e.result += P.repeat("\n", c + 1)) : c === 0 ? a && (e.result += " ") : e.result += P.repeat("\n", c) : e.result += P.repeat("\n", a ? 1 + c : c), a = !0, o = !0, c = 0, n = e.position; !z(d) && d !== 0;) d = e.input.charCodeAt(++e.position);
1826
- G(e, n, e.position, !1);
2286
+ for (r ? U(d) ? (l = !0, e.result += R.repeat("\n", a ? 1 + c : c)) : l ? (l = !1, e.result += R.repeat("\n", c + 1)) : c === 0 ? a && (e.result += " ") : e.result += R.repeat("\n", c) : e.result += R.repeat("\n", a ? 1 + c : c), a = !0, o = !0, c = 0, n = e.position; !H(d) && d !== 0;) d = e.input.charCodeAt(++e.position);
2287
+ J(e, n, e.position, !1);
1827
2288
  }
1828
2289
  return !0;
1829
2290
  }
1830
- function Bn(e, t) {
2291
+ function dr(e, t) {
1831
2292
  var n, r = e.tag, i = e.anchor, a = [], o, s = !1, c;
1832
2293
  if (e.firstTabInLine !== -1) return !1;
1833
- for (e.anchor !== null && (e.anchorMap[e.anchor] = a), c = e.input.charCodeAt(e.position); c !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, W(e, "tab characters must not be used in indentation")), !(c !== 45 || (o = e.input.charCodeAt(e.position + 1), !V(o))));) {
1834
- if (s = !0, e.position++, q(e, !0, -1) && e.lineIndent <= t) {
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, q(e, "tab characters must not be used in indentation")), !(c !== 45 || (o = e.input.charCodeAt(e.position + 1), !W(o))));) {
2295
+ if (s = !0, e.position++, Y(e, !0, -1) && e.lineIndent <= t) {
1835
2296
  a.push(null), c = e.input.charCodeAt(e.position);
1836
2297
  continue;
1837
2298
  }
1838
- if (n = e.line, J(e, t, cn, !1, !0), a.push(e.result), q(e, !0, -1), c = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && c !== 0) W(e, "bad indentation of a sequence entry");
2299
+ if (n = e.line, gr(e, t, Mn, !1, !0), a.push(e.result), Y(e, !0, -1), c = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && c !== 0) q(e, "bad indentation of a sequence entry");
1839
2300
  else if (e.lineIndent < t) break;
1840
2301
  }
1841
2302
  return s ? (e.tag = r, e.anchor = i, e.kind = "sequence", e.result = a, !0) : !1;
1842
2303
  }
1843
- function Vn(e, t, n) {
2304
+ function fr(e, t, n) {
1844
2305
  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;
1845
2306
  if (e.firstTabInLine !== -1) return !1;
1846
2307
  for (e.anchor !== null && (e.anchorMap[e.anchor] = d), v = e.input.charCodeAt(e.position); v !== 0;) {
1847
- if (!g && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, W(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), a = e.line, (v === 63 || v === 58) && V(r)) v === 63 ? (g && (K(e, d, f, p, m, null, o, s, c), p = m = h = null), _ = !0, g = !0, i = !0) : g ? (g = !1, i = !0) : W(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, v = r;
2308
+ if (!g && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, q(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), a = e.line, (v === 63 || v === 58) && W(r)) v === 63 ? (g && (nr(e, d, f, p, m, null, o, s, c), p = m = h = null), _ = !0, g = !0, i = !0) : g ? (g = !1, i = !0) : q(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, v = r;
1848
2309
  else {
1849
- if (o = e.line, s = e.lineStart, c = e.position, !J(e, n, sn, !1, !0)) break;
2310
+ if (o = e.line, s = e.lineStart, c = e.position, !gr(e, n, jn, !1, !0)) break;
1850
2311
  if (e.line === a) {
1851
- for (v = e.input.charCodeAt(e.position); B(v);) v = e.input.charCodeAt(++e.position);
1852
- if (v === 58) v = e.input.charCodeAt(++e.position), V(v) || W(e, "a whitespace character is expected after the key-value separator within a block mapping"), g && (K(e, d, f, p, m, null, o, s, c), p = m = h = null), _ = !0, g = !1, i = !1, p = e.tag, m = e.result;
1853
- else if (_) W(e, "can not read an implicit mapping pair; a colon is missed");
2312
+ for (v = e.input.charCodeAt(e.position); U(v);) v = e.input.charCodeAt(++e.position);
2313
+ if (v === 58) v = e.input.charCodeAt(++e.position), W(v) || q(e, "a whitespace character is expected after the key-value separator within a block mapping"), g && (nr(e, d, f, p, m, null, o, s, c), p = m = h = null), _ = !0, g = !1, i = !1, p = e.tag, m = e.result;
2314
+ else if (_) q(e, "can not read an implicit mapping pair; a colon is missed");
1854
2315
  else return e.tag = l, e.anchor = u, !0;
1855
- } else if (_) W(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
2316
+ } else if (_) q(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
1856
2317
  else return e.tag = l, e.anchor = u, !0;
1857
2318
  }
1858
- if ((e.line === a || e.lineIndent > t) && (g && (o = e.line, s = e.lineStart, c = e.position), J(e, t, ln, !0, i) && (g ? m = e.result : h = e.result), g || (K(e, d, f, p, m, h, o, s, c), p = m = h = null), q(e, !0, -1), v = e.input.charCodeAt(e.position)), (e.line === a || e.lineIndent > t) && v !== 0) W(e, "bad indentation of a mapping entry");
2319
+ if ((e.line === a || e.lineIndent > t) && (g && (o = e.line, s = e.lineStart, c = e.position), gr(e, t, Nn, !0, i) && (g ? m = e.result : h = e.result), g || (nr(e, d, f, p, m, h, o, s, c), p = m = h = null), Y(e, !0, -1), v = e.input.charCodeAt(e.position)), (e.line === a || e.lineIndent > t) && v !== 0) q(e, "bad indentation of a mapping entry");
1859
2320
  else if (e.lineIndent < t) break;
1860
2321
  }
1861
- return g && K(e, d, f, p, m, null, o, s, c), _ && (e.tag = l, e.anchor = u, e.kind = "mapping", e.result = d), _;
2322
+ return g && nr(e, d, f, p, m, null, o, s, c), _ && (e.tag = l, e.anchor = u, e.kind = "mapping", e.result = d), _;
1862
2323
  }
1863
- function Hn(e) {
2324
+ function pr(e) {
1864
2325
  var t, n = !1, r = !1, i, a, o = e.input.charCodeAt(e.position);
1865
2326
  if (o !== 33) return !1;
1866
- if (e.tag !== null && W(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) {
2327
+ if (e.tag !== null && q(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) {
1867
2328
  do
1868
2329
  o = e.input.charCodeAt(++e.position);
1869
2330
  while (o !== 0 && o !== 62);
1870
- e.position < e.length ? (a = e.input.slice(t, e.position), o = e.input.charCodeAt(++e.position)) : W(e, "unexpected end of the stream within a verbatim tag");
2331
+ e.position < e.length ? (a = e.input.slice(t, e.position), o = e.input.charCodeAt(++e.position)) : q(e, "unexpected end of the stream within a verbatim tag");
1871
2332
  } else {
1872
- for (; o !== 0 && !V(o);) o === 33 && (r ? W(e, "tag suffix cannot contain exclamation marks") : (i = e.input.slice(t - 1, e.position + 1), gn.test(i) || W(e, "named tag handle cannot contain such characters"), r = !0, t = e.position + 1)), o = e.input.charCodeAt(++e.position);
1873
- a = e.input.slice(t, e.position), hn.test(a) && W(e, "tag suffix cannot contain flow indicator characters");
2333
+ for (; o !== 0 && !W(o);) o === 33 && (r ? q(e, "tag suffix cannot contain exclamation marks") : (i = e.input.slice(t - 1, e.position + 1), Bn.test(i) || q(e, "named tag handle cannot contain such characters"), r = !0, t = e.position + 1)), o = e.input.charCodeAt(++e.position);
2334
+ a = e.input.slice(t, e.position), zn.test(a) && q(e, "tag suffix cannot contain flow indicator characters");
1874
2335
  }
1875
- a && !_n.test(a) && W(e, "tag name cannot contain such characters: " + a);
2336
+ a && !Vn.test(a) && q(e, "tag name cannot contain such characters: " + a);
1876
2337
  try {
1877
2338
  a = decodeURIComponent(a);
1878
2339
  } catch {
1879
- W(e, "tag name is malformed: " + a);
2340
+ q(e, "tag name is malformed: " + a);
1880
2341
  }
1881
- return n ? e.tag = a : R.call(e.tagMap, i) ? e.tag = e.tagMap[i] + a : i === "!" ? e.tag = "!" + a : i === "!!" ? e.tag = "tag:yaml.org,2002:" + a : W(e, "undeclared tag handle \"" + i + "\""), !0;
2342
+ return n ? e.tag = a : V.call(e.tagMap, i) ? e.tag = e.tagMap[i] + a : i === "!" ? e.tag = "!" + a : i === "!!" ? e.tag = "tag:yaml.org,2002:" + a : q(e, "undeclared tag handle \"" + i + "\""), !0;
1882
2343
  }
1883
- function Un(e) {
2344
+ function mr(e) {
1884
2345
  var t, n = e.input.charCodeAt(e.position);
1885
2346
  if (n !== 38) return !1;
1886
- for (e.anchor !== null && W(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !V(n) && !H(n);) n = e.input.charCodeAt(++e.position);
1887
- return e.position === t && W(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
2347
+ for (e.anchor !== null && q(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !W(n) && !G(n);) n = e.input.charCodeAt(++e.position);
2348
+ return e.position === t && q(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
1888
2349
  }
1889
- function Wn(e) {
2350
+ function hr(e) {
1890
2351
  var t, n, r = e.input.charCodeAt(e.position);
1891
2352
  if (r !== 42) return !1;
1892
- for (r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !V(r) && !H(r);) r = e.input.charCodeAt(++e.position);
1893
- return e.position === t && W(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), R.call(e.anchorMap, n) || W(e, "unidentified alias \"" + n + "\""), e.result = e.anchorMap[n], q(e, !0, -1), !0;
2353
+ for (r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !W(r) && !G(r);) r = e.input.charCodeAt(++e.position);
2354
+ return e.position === t && q(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), V.call(e.anchorMap, n) || q(e, "unidentified alias \"" + n + "\""), e.result = e.anchorMap[n], Y(e, !0, -1), !0;
1894
2355
  }
1895
- function J(e, t, n, r, i) {
2356
+ function gr(e, t, n, r, i) {
1896
2357
  var a, o, s, c = 1, l = !1, u = !1, d, f, p, m, h, g;
1897
- if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = s = ln === n || cn === n, r && q(e, !0, -1) && (l = !0, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)), c === 1) for (; Hn(e) || Un(e);) q(e, !0, -1) ? (l = !0, s = a, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)) : s = !1;
1898
- if (s &&= l || i, (c === 1 || ln === n) && (h = on === n || sn === n ? t : t + 1, g = e.position - e.lineStart, c === 1 ? s && (Bn(e, g) || Vn(e, g, h)) || Rn(e, h) ? u = !0 : (o && zn(e, h) || In(e, h) || Ln(e, h) ? u = !0 : Wn(e) ? (u = !0, (e.tag !== null || e.anchor !== null) && W(e, "alias node should not have any properties")) : Fn(e, h, on === n) && (u = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : c === 0 && (u = s && Bn(e, g))), e.tag === null) e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2358
+ if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = s = Nn === n || Mn === n, r && Y(e, !0, -1) && (l = !0, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)), c === 1) for (; pr(e) || mr(e);) Y(e, !0, -1) ? (l = !0, s = a, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)) : s = !1;
2359
+ if (s &&= l || i, (c === 1 || Nn === n) && (h = An === n || jn === n ? t : t + 1, g = e.position - e.lineStart, c === 1 ? s && (dr(e, g) || fr(e, g, h)) || lr(e, h) ? u = !0 : (o && ur(e, h) || sr(e, h) || cr(e, h) ? u = !0 : hr(e) ? (u = !0, (e.tag !== null || e.anchor !== null) && q(e, "alias node should not have any properties")) : or(e, h, An === n) && (u = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : c === 0 && (u = s && dr(e, g))), e.tag === null) e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
1899
2360
  else if (e.tag === "?") {
1900
- for (e.result !== null && e.kind !== "scalar" && W(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)) {
2361
+ for (e.result !== null && e.kind !== "scalar" && q(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)) {
1901
2362
  e.result = m.construct(e.result), e.tag = m.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
1902
2363
  break;
1903
2364
  }
1904
2365
  } else if (e.tag !== "!") {
1905
- if (R.call(e.typeMap[e.kind || "fallback"], e.tag)) m = e.typeMap[e.kind || "fallback"][e.tag];
2366
+ if (V.call(e.typeMap[e.kind || "fallback"], e.tag)) m = e.typeMap[e.kind || "fallback"][e.tag];
1906
2367
  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) {
1907
2368
  m = p[d];
1908
2369
  break;
1909
2370
  }
1910
- m || W(e, "unknown tag !<" + e.tag + ">"), e.result !== null && m.kind !== e.kind && W(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)) : W(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
2371
+ m || q(e, "unknown tag !<" + e.tag + ">"), e.result !== null && m.kind !== e.kind && q(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)) : q(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
1911
2372
  }
1912
2373
  return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || u;
1913
2374
  }
1914
- function Gn(e) {
2375
+ function _r(e) {
1915
2376
  var t = e.position, n, r, i, a = !1, o;
1916
- 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 && (q(e, !0, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37));) {
1917
- for (a = !0, o = e.input.charCodeAt(++e.position), n = e.position; o !== 0 && !V(o);) o = e.input.charCodeAt(++e.position);
1918
- for (r = e.input.slice(n, e.position), i = [], r.length < 1 && W(e, "directive name must not be less than one character in length"); o !== 0;) {
1919
- for (; B(o);) o = e.input.charCodeAt(++e.position);
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 && (Y(e, !0, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37));) {
2378
+ for (a = !0, o = e.input.charCodeAt(++e.position), n = e.position; o !== 0 && !W(o);) o = e.input.charCodeAt(++e.position);
2379
+ for (r = e.input.slice(n, e.position), i = [], r.length < 1 && q(e, "directive name must not be less than one character in length"); o !== 0;) {
2380
+ for (; U(o);) o = e.input.charCodeAt(++e.position);
1920
2381
  if (o === 35) {
1921
2382
  do
1922
2383
  o = e.input.charCodeAt(++e.position);
1923
- while (o !== 0 && !z(o));
2384
+ while (o !== 0 && !H(o));
1924
2385
  break;
1925
2386
  }
1926
- if (z(o)) break;
1927
- for (n = e.position; o !== 0 && !V(o);) o = e.input.charCodeAt(++e.position);
2387
+ if (H(o)) break;
2388
+ for (n = e.position; o !== 0 && !W(o);) o = e.input.charCodeAt(++e.position);
1928
2389
  i.push(e.input.slice(n, e.position));
1929
2390
  }
1930
- o !== 0 && Mn(e), R.call(An, r) ? An[r](e, r, i) : kn(e, "unknown document directive \"" + r + "\"");
2391
+ o !== 0 && rr(e), V.call(er, r) ? er[r](e, r, i) : $n(e, "unknown document directive \"" + r + "\"");
1931
2392
  }
1932
- if (q(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, q(e, !0, -1)) : a && W(e, "directives end mark is expected"), J(e, e.lineIndent - 1, ln, !1, !0), q(e, !0, -1), e.checkLineBreaks && mn.test(e.input.slice(t, e.position)) && kn(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && Nn(e)) {
1933
- e.input.charCodeAt(e.position) === 46 && (e.position += 3, q(e, !0, -1));
2393
+ if (Y(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, Y(e, !0, -1)) : a && q(e, "directives end mark is expected"), gr(e, e.lineIndent - 1, Nn, !1, !0), Y(e, !0, -1), e.checkLineBreaks && Rn.test(e.input.slice(t, e.position)) && $n(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && ir(e)) {
2394
+ e.input.charCodeAt(e.position) === 46 && (e.position += 3, Y(e, !0, -1));
1934
2395
  return;
1935
2396
  }
1936
- if (e.position < e.length - 1) W(e, "end of the stream or a document separator is expected");
2397
+ if (e.position < e.length - 1) q(e, "end of the stream or a document separator is expected");
1937
2398
  else return;
1938
2399
  }
1939
- function Kn(e, t) {
2400
+ function vr(e, t) {
1940
2401
  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)));
1941
- var n = new Dn(e, t), r = e.indexOf("\0");
1942
- for (r !== -1 && (n.position = r, W(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32;) n.lineIndent += 1, n.position += 1;
1943
- for (; n.position < n.length - 1;) Gn(n);
2402
+ var n = new Zn(e, t), r = e.indexOf("\0");
2403
+ for (r !== -1 && (n.position = r, q(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32;) n.lineIndent += 1, n.position += 1;
2404
+ for (; n.position < n.length - 1;) _r(n);
1944
2405
  return n.documents;
1945
2406
  }
1946
- function qn(e, t, n) {
2407
+ function yr(e, t, n) {
1947
2408
  typeof t == "object" && t && n === void 0 && (n = t, t = null);
1948
- var r = Kn(e, n);
2409
+ var r = vr(e, n);
1949
2410
  if (typeof t != "function") return r;
1950
2411
  for (var i = 0, a = r.length; i < a; i += 1) t(r[i]);
1951
2412
  }
1952
- function Jn(e, t) {
1953
- var n = Kn(e, t);
2413
+ function br(e, t) {
2414
+ var n = vr(e, t);
1954
2415
  if (n.length !== 0) {
1955
2416
  if (n.length === 1) return n[0];
1956
- throw new I("expected a single document in the stream, but found more");
2417
+ throw new z("expected a single document in the stream, but found more");
1957
2418
  }
1958
2419
  }
1959
- var Yn = {
1960
- loadAll: qn,
1961
- load: Jn
1962
- }, Xn = Object.prototype.toString, Zn = Object.prototype.hasOwnProperty, Qn = 65279, $n = 9, er = 10, tr = 13, nr = 32, rr = 33, ir = 34, ar = 35, or = 37, sr = 38, cr = 39, lr = 42, ur = 44, dr = 45, fr = 58, pr = 61, mr = 62, hr = 63, gr = 64, _r = 91, vr = 93, yr = 96, br = 123, xr = 124, Sr = 125, Y = {};
1963
- Y[0] = "\\0", Y[7] = "\\a", Y[8] = "\\b", Y[9] = "\\t", Y[10] = "\\n", Y[11] = "\\v", Y[12] = "\\f", Y[13] = "\\r", Y[27] = "\\e", Y[34] = "\\\"", Y[92] = "\\\\", Y[133] = "\\N", Y[160] = "\\_", Y[8232] = "\\L", Y[8233] = "\\P";
1964
- var Cr = [
2420
+ var xr = {
2421
+ loadAll: yr,
2422
+ load: br
2423
+ }, Sr = Object.prototype.toString, Cr = Object.prototype.hasOwnProperty, wr = 65279, Tr = 9, Er = 10, Dr = 13, Or = 32, kr = 33, Ar = 34, jr = 35, Mr = 37, Nr = 38, Pr = 39, Fr = 42, Ir = 44, Lr = 45, Rr = 58, zr = 61, Br = 62, Vr = 63, Hr = 64, Ur = 91, Wr = 93, Gr = 96, Kr = 123, qr = 124, Jr = 125, X = {};
2424
+ 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 Yr = [
1965
2426
  "y",
1966
2427
  "Y",
1967
2428
  "yes",
@@ -1978,236 +2439,236 @@ var Cr = [
1978
2439
  "off",
1979
2440
  "Off",
1980
2441
  "OFF"
1981
- ], wr = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
1982
- function Tr(e, t) {
2442
+ ], Xr = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
2443
+ function Zr(e, t) {
1983
2444
  var n, r, i, a, o, s, c;
1984
2445
  if (t === null) return {};
1985
- 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 && Zn.call(c.styleAliases, s) && (s = c.styleAliases[s]), n[o] = s;
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 && Cr.call(c.styleAliases, s) && (s = c.styleAliases[s]), n[o] = s;
1986
2447
  return n;
1987
2448
  }
1988
- function Er(e) {
2449
+ function Qr(e) {
1989
2450
  var t = e.toString(16).toUpperCase(), n, r;
1990
2451
  if (e <= 255) n = "x", r = 2;
1991
2452
  else if (e <= 65535) n = "u", r = 4;
1992
2453
  else if (e <= 4294967295) n = "U", r = 8;
1993
- else throw new I("code point within a string may not be greater than 0xFFFFFFFF");
1994
- return "\\" + n + P.repeat("0", r - t.length) + t;
2454
+ else throw new z("code point within a string may not be greater than 0xFFFFFFFF");
2455
+ return "\\" + n + R.repeat("0", r - t.length) + t;
1995
2456
  }
1996
- var Dr = 1, Or = 2;
1997
- function kr(e) {
1998
- this.schema = e.schema || an, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = P.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = Tr(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === "\"" ? Or : Dr, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
2457
+ var $r = 1, ei = 2;
2458
+ function ti(e) {
2459
+ this.schema = e.schema || kn, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = R.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = Zr(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 === "\"" ? ei : $r, 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;
1999
2460
  }
2000
- function Ar(e, t) {
2001
- for (var n = P.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;
2461
+ function ni(e, t) {
2462
+ for (var n = R.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;
2002
2463
  return a;
2003
2464
  }
2004
- function jr(e, t) {
2005
- return "\n" + P.repeat(" ", e.indent * t);
2465
+ function ri(e, t) {
2466
+ return "\n" + R.repeat(" ", e.indent * t);
2006
2467
  }
2007
- function Mr(e, t) {
2468
+ function ii(e, t) {
2008
2469
  var n, r, i;
2009
2470
  for (n = 0, r = e.implicitTypes.length; n < r; n += 1) if (i = e.implicitTypes[n], i.resolve(t)) return !0;
2010
2471
  return !1;
2011
2472
  }
2012
- function Nr(e) {
2013
- return e === nr || e === $n;
2473
+ function ai(e) {
2474
+ return e === Or || e === Tr;
2014
2475
  }
2015
- function Pr(e) {
2016
- return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== Qn || 65536 <= e && e <= 1114111;
2476
+ function oi(e) {
2477
+ return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== wr || 65536 <= e && e <= 1114111;
2017
2478
  }
2018
- function Fr(e) {
2019
- return Pr(e) && e !== Qn && e !== tr && e !== er;
2479
+ function si(e) {
2480
+ return oi(e) && e !== wr && e !== Dr && e !== Er;
2020
2481
  }
2021
- function Ir(e, t, n) {
2022
- var r = Fr(e), i = r && !Nr(e);
2023
- return (n ? r : r && e !== ur && e !== _r && e !== vr && e !== br && e !== Sr) && e !== ar && !(t === fr && !i) || Fr(t) && !Nr(t) && e === ar || t === fr && i;
2482
+ function ci(e, t, n) {
2483
+ var r = si(e), i = r && !ai(e);
2484
+ return (n ? r : r && e !== Ir && e !== Ur && e !== Wr && e !== Kr && e !== Jr) && e !== jr && !(t === Rr && !i) || si(t) && !ai(t) && e === jr || t === Rr && i;
2024
2485
  }
2025
- function Lr(e) {
2026
- return Pr(e) && e !== Qn && !Nr(e) && e !== dr && e !== hr && e !== fr && e !== ur && e !== _r && e !== vr && e !== br && e !== Sr && e !== ar && e !== sr && e !== lr && e !== rr && e !== xr && e !== pr && e !== mr && e !== cr && e !== ir && e !== or && e !== gr && e !== yr;
2486
+ function li(e) {
2487
+ return oi(e) && e !== wr && !ai(e) && e !== Lr && e !== Vr && e !== Rr && e !== Ir && e !== Ur && e !== Wr && e !== Kr && e !== Jr && e !== jr && e !== Nr && e !== Fr && e !== kr && e !== qr && e !== zr && e !== Br && e !== Pr && e !== Ar && e !== Mr && e !== Hr && e !== Gr;
2027
2488
  }
2028
- function Rr(e) {
2029
- return !Nr(e) && e !== fr;
2489
+ function ui(e) {
2490
+ return !ai(e) && e !== Rr;
2030
2491
  }
2031
- function zr(e, t) {
2492
+ function di(e, t) {
2032
2493
  var n = e.charCodeAt(t), r;
2033
2494
  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;
2034
2495
  }
2035
- function Br(e) {
2496
+ function fi(e) {
2036
2497
  return /^\n* /.test(e);
2037
2498
  }
2038
- var Vr = 1, Hr = 2, Ur = 3, Wr = 4, X = 5;
2039
- function Gr(e, t, n, r, i, a, o, s) {
2040
- var c, l = 0, u = null, d = !1, f = !1, p = r !== -1, m = -1, h = Lr(zr(e, 0)) && Rr(zr(e, e.length - 1));
2499
+ var pi = 1, mi = 2, hi = 3, gi = 4, Z = 5;
2500
+ function _i(e, t, n, r, i, a, o, s) {
2501
+ var c, l = 0, u = null, d = !1, f = !1, p = r !== -1, m = -1, h = li(di(e, 0)) && ui(di(e, e.length - 1));
2041
2502
  if (t || o) for (c = 0; c < e.length; l >= 65536 ? c += 2 : c++) {
2042
- if (l = zr(e, c), !Pr(l)) return X;
2043
- h &&= Ir(l, u, s), u = l;
2503
+ if (l = di(e, c), !oi(l)) return Z;
2504
+ h &&= ci(l, u, s), u = l;
2044
2505
  }
2045
2506
  else {
2046
2507
  for (c = 0; c < e.length; l >= 65536 ? c += 2 : c++) {
2047
- if (l = zr(e, c), l === er) d = !0, p && (f ||= c - m - 1 > r && e[m + 1] !== " ", m = c);
2048
- else if (!Pr(l)) return X;
2049
- h &&= Ir(l, u, s), u = l;
2508
+ if (l = di(e, c), l === Er) d = !0, p && (f ||= c - m - 1 > r && e[m + 1] !== " ", m = c);
2509
+ else if (!oi(l)) return Z;
2510
+ h &&= ci(l, u, s), u = l;
2050
2511
  }
2051
2512
  f ||= p && c - m - 1 > r && e[m + 1] !== " ";
2052
2513
  }
2053
- return !d && !f ? h && !o && !i(e) ? Vr : a === Or ? X : Hr : n > 9 && Br(e) ? X : o ? a === Or ? X : Hr : f ? Wr : Ur;
2514
+ return !d && !f ? h && !o && !i(e) ? pi : a === ei ? Z : mi : n > 9 && fi(e) ? Z : o ? a === ei ? Z : mi : f ? gi : hi;
2054
2515
  }
2055
- function Kr(e, t, n, r, i) {
2516
+ function vi(e, t, n, r, i) {
2056
2517
  e.dump = function() {
2057
- if (t.length === 0) return e.quotingType === Or ? "\"\"" : "''";
2058
- if (!e.noCompatMode && (Cr.indexOf(t) !== -1 || wr.test(t))) return e.quotingType === Or ? "\"" + t + "\"" : "'" + t + "'";
2518
+ if (t.length === 0) return e.quotingType === ei ? "\"\"" : "''";
2519
+ if (!e.noCompatMode && (Yr.indexOf(t) !== -1 || Xr.test(t))) return e.quotingType === ei ? "\"" + t + "\"" : "'" + t + "'";
2059
2520
  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;
2060
2521
  function c(t) {
2061
- return Mr(e, t);
2522
+ return ii(e, t);
2062
2523
  }
2063
- switch (Gr(t, s, e.indent, o, c, e.quotingType, e.forceQuotes && !r, i)) {
2064
- case Vr: return t;
2065
- case Hr: return "'" + t.replace(/'/g, "''") + "'";
2066
- case Ur: return "|" + qr(t, e.indent) + Jr(Ar(t, a));
2067
- case Wr: return ">" + qr(t, e.indent) + Jr(Ar(Yr(t, o), a));
2068
- case X: return "\"" + Zr(t) + "\"";
2069
- default: throw new I("impossible error: invalid scalar style");
2524
+ switch (_i(t, s, e.indent, o, c, e.quotingType, e.forceQuotes && !r, i)) {
2525
+ case pi: return t;
2526
+ case mi: return "'" + t.replace(/'/g, "''") + "'";
2527
+ case hi: return "|" + yi(t, e.indent) + bi(ni(t, a));
2528
+ case gi: return ">" + yi(t, e.indent) + bi(ni(xi(t, o), a));
2529
+ case Z: return "\"" + Ci(t) + "\"";
2530
+ default: throw new z("impossible error: invalid scalar style");
2070
2531
  }
2071
2532
  }();
2072
2533
  }
2073
- function qr(e, t) {
2074
- var n = Br(e) ? String(t) : "", r = e[e.length - 1] === "\n";
2534
+ function yi(e, t) {
2535
+ var n = fi(e) ? String(t) : "", r = e[e.length - 1] === "\n";
2075
2536
  return n + (r && (e[e.length - 2] === "\n" || e === "\n") ? "+" : r ? "" : "-") + "\n";
2076
2537
  }
2077
- function Jr(e) {
2538
+ function bi(e) {
2078
2539
  return e[e.length - 1] === "\n" ? e.slice(0, -1) : e;
2079
2540
  }
2080
- function Yr(e, t) {
2541
+ function xi(e, t) {
2081
2542
  for (var n = /(\n+)([^\n]*)/g, r = function() {
2082
2543
  var r = e.indexOf("\n");
2083
- return r = r === -1 ? e.length : r, n.lastIndex = r, Xr(e.slice(0, r), t);
2544
+ return r = r === -1 ? e.length : r, n.lastIndex = r, Si(e.slice(0, r), t);
2084
2545
  }(), i = e[0] === "\n" || e[0] === " ", a, o; o = n.exec(e);) {
2085
2546
  var s = o[1], c = o[2];
2086
- a = c[0] === " ", r += s + (!i && !a && c !== "" ? "\n" : "") + Xr(c, t), i = a;
2547
+ a = c[0] === " ", r += s + (!i && !a && c !== "" ? "\n" : "") + Si(c, t), i = a;
2087
2548
  }
2088
2549
  return r;
2089
2550
  }
2090
- function Xr(e, t) {
2551
+ function Si(e, t) {
2091
2552
  if (e === "" || e[0] === " ") return e;
2092
2553
  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;
2093
2554
  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);
2094
2555
  }
2095
- function Zr(e) {
2096
- for (var t = "", n = 0, r, i = 0; i < e.length; n >= 65536 ? i += 2 : i++) n = zr(e, i), r = Y[n], !r && Pr(n) ? (t += e[i], n >= 65536 && (t += e[i + 1])) : t += r || Er(n);
2556
+ function Ci(e) {
2557
+ for (var t = "", n = 0, r, i = 0; i < e.length; n >= 65536 ? i += 2 : i++) n = di(e, i), r = X[n], !r && oi(n) ? (t += e[i], n >= 65536 && (t += e[i + 1])) : t += r || Qr(n);
2097
2558
  return t;
2098
2559
  }
2099
- function Qr(e, t, n) {
2560
+ function wi(e, t, n) {
2100
2561
  var r = "", i = e.tag, a, o, s;
2101
- for (a = 0, o = n.length; a < o; a += 1) s = n[a], e.replacer && (s = e.replacer.call(n, String(a), s)), (Z(e, t, s, !1, !1) || s === void 0 && Z(e, t, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
2562
+ 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);
2102
2563
  e.tag = i, e.dump = "[" + r + "]";
2103
2564
  }
2104
- function $r(e, t, n, r) {
2565
+ function Ti(e, t, n, r) {
2105
2566
  var i = "", a = e.tag, o, s, c;
2106
- for (o = 0, s = n.length; o < s; o += 1) c = n[o], e.replacer && (c = e.replacer.call(n, String(o), c)), (Z(e, t + 1, c, !0, !0, !1, !0) || c === void 0 && Z(e, t + 1, null, !0, !0, !1, !0)) && ((!r || i !== "") && (i += jr(e, t)), e.dump && er === e.dump.charCodeAt(0) ? i += "-" : i += "- ", i += e.dump);
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 += ri(e, t)), e.dump && Er === e.dump.charCodeAt(0) ? i += "-" : i += "- ", i += e.dump);
2107
2568
  e.tag = a, e.dump = i || "[]";
2108
2569
  }
2109
- function ei(e, t, n) {
2570
+ function Ei(e, t, n) {
2110
2571
  var r = "", i = e.tag, a = Object.keys(n), o, s, c, l, u;
2111
- for (o = 0, s = a.length; o < s; o += 1) u = "", r !== "" && (u += ", "), e.condenseFlow && (u += "\""), c = a[o], l = n[c], e.replacer && (l = e.replacer.call(n, c, l)), Z(e, t, c, !1, !1) && (e.dump.length > 1024 && (u += "? "), u += e.dump + (e.condenseFlow ? "\"" : "") + ":" + (e.condenseFlow ? "" : " "), Z(e, t, l, !1, !1) && (u += e.dump, r += u));
2572
+ 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));
2112
2573
  e.tag = i, e.dump = "{" + r + "}";
2113
2574
  }
2114
- function ti(e, t, n, r) {
2575
+ function Di(e, t, n, r) {
2115
2576
  var i = "", a = e.tag, o = Object.keys(n), s, c, l, u, d, f;
2116
2577
  if (e.sortKeys === !0) o.sort();
2117
2578
  else if (typeof e.sortKeys == "function") o.sort(e.sortKeys);
2118
- else if (e.sortKeys) throw new I("sortKeys must be a boolean or a function");
2119
- for (s = 0, c = o.length; s < c; s += 1) f = "", (!r || i !== "") && (f += jr(e, t)), l = o[s], u = n[l], e.replacer && (u = e.replacer.call(n, l, u)), Z(e, t + 1, l, !0, !0, !0) && (d = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, d && (e.dump && er === e.dump.charCodeAt(0) ? f += "?" : f += "? "), f += e.dump, d && (f += jr(e, t)), Z(e, t + 1, u, !0, d) && (e.dump && er === e.dump.charCodeAt(0) ? f += ":" : f += ": ", f += e.dump, i += f));
2579
+ else if (e.sortKeys) throw new z("sortKeys must be a boolean or a function");
2580
+ for (s = 0, c = o.length; s < c; s += 1) f = "", (!r || i !== "") && (f += ri(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 && Er === e.dump.charCodeAt(0) ? f += "?" : f += "? "), f += e.dump, d && (f += ri(e, t)), Q(e, t + 1, u, !0, d) && (e.dump && Er === e.dump.charCodeAt(0) ? f += ":" : f += ": ", f += e.dump, i += f));
2120
2581
  e.tag = a, e.dump = i || "{}";
2121
2582
  }
2122
- function ni(e, t, n) {
2583
+ function Oi(e, t, n) {
2123
2584
  var r, i = n ? e.explicitTypes : e.implicitTypes, a, o, s, c;
2124
2585
  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))) {
2125
2586
  if (n ? s.multi && s.representName ? e.tag = s.representName(t) : e.tag = s.tag : e.tag = "?", s.represent) {
2126
- if (c = e.styleMap[s.tag] || s.defaultStyle, Xn.call(s.represent) === "[object Function]") r = s.represent(t, c);
2127
- else if (Zn.call(s.represent, c)) r = s.represent[c](t, c);
2128
- else throw new I("!<" + s.tag + "> tag resolver accepts not \"" + c + "\" style");
2587
+ if (c = e.styleMap[s.tag] || s.defaultStyle, Sr.call(s.represent) === "[object Function]") r = s.represent(t, c);
2588
+ else if (Cr.call(s.represent, c)) r = s.represent[c](t, c);
2589
+ else throw new z("!<" + s.tag + "> tag resolver accepts not \"" + c + "\" style");
2129
2590
  e.dump = r;
2130
2591
  }
2131
2592
  return !0;
2132
2593
  }
2133
2594
  return !1;
2134
2595
  }
2135
- function Z(e, t, n, r, i, a, o) {
2136
- e.tag = null, e.dump = n, ni(e, n, !1) || ni(e, n, !0);
2137
- var s = Xn.call(e.dump), c = r, l;
2596
+ function Q(e, t, n, r, i, a, o) {
2597
+ e.tag = null, e.dump = n, Oi(e, n, !1) || Oi(e, n, !0);
2598
+ var s = Sr.call(e.dump), c = r, l;
2138
2599
  r &&= e.flowLevel < 0 || e.flowLevel > t;
2139
2600
  var u = s === "[object Object]" || s === "[object Array]", d, f;
2140
2601
  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;
2141
2602
  else {
2142
- if (u && f && !e.usedDuplicates[d] && (e.usedDuplicates[d] = !0), s === "[object Object]") r && Object.keys(e.dump).length !== 0 ? (ti(e, t, e.dump, i), f && (e.dump = "&ref_" + d + e.dump)) : (ei(e, t, e.dump), f && (e.dump = "&ref_" + d + " " + e.dump));
2143
- else if (s === "[object Array]") r && e.dump.length !== 0 ? (e.noArrayIndent && !o && t > 0 ? $r(e, t - 1, e.dump, i) : $r(e, t, e.dump, i), f && (e.dump = "&ref_" + d + e.dump)) : (Qr(e, t, e.dump), f && (e.dump = "&ref_" + d + " " + e.dump));
2144
- else if (s === "[object String]") e.tag !== "?" && Kr(e, e.dump, t, a, c);
2603
+ if (u && f && !e.usedDuplicates[d] && (e.usedDuplicates[d] = !0), s === "[object Object]") r && Object.keys(e.dump).length !== 0 ? (Di(e, t, e.dump, i), f && (e.dump = "&ref_" + d + e.dump)) : (Ei(e, t, e.dump), f && (e.dump = "&ref_" + d + " " + e.dump));
2604
+ else if (s === "[object Array]") r && e.dump.length !== 0 ? (e.noArrayIndent && !o && t > 0 ? Ti(e, t - 1, e.dump, i) : Ti(e, t, e.dump, i), f && (e.dump = "&ref_" + d + e.dump)) : (wi(e, t, e.dump), f && (e.dump = "&ref_" + d + " " + e.dump));
2605
+ else if (s === "[object String]") e.tag !== "?" && vi(e, e.dump, t, a, c);
2145
2606
  else if (s === "[object Undefined]") return !1;
2146
2607
  else {
2147
2608
  if (e.skipInvalid) return !1;
2148
- throw new I("unacceptable kind of an object to dump " + s);
2609
+ throw new z("unacceptable kind of an object to dump " + s);
2149
2610
  }
2150
2611
  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);
2151
2612
  }
2152
2613
  return !0;
2153
2614
  }
2154
- function ri(e, t) {
2615
+ function ki(e, t) {
2155
2616
  var n = [], r = [], i, a;
2156
- for (ii(e, n, r), i = 0, a = r.length; i < a; i += 1) t.duplicates.push(n[r[i]]);
2617
+ for (Ai(e, n, r), i = 0, a = r.length; i < a; i += 1) t.duplicates.push(n[r[i]]);
2157
2618
  t.usedDuplicates = Array(a);
2158
2619
  }
2159
- function ii(e, t, n) {
2620
+ function Ai(e, t, n) {
2160
2621
  var r, i, a;
2161
2622
  if (typeof e == "object" && e) if (i = t.indexOf(e), i !== -1) n.indexOf(i) === -1 && n.push(i);
2162
- else if (t.push(e), Array.isArray(e)) for (i = 0, a = e.length; i < a; i += 1) ii(e[i], t, n);
2163
- else for (r = Object.keys(e), i = 0, a = r.length; i < a; i += 1) ii(e[r[i]], t, n);
2623
+ else if (t.push(e), Array.isArray(e)) for (i = 0, a = e.length; i < a; i += 1) Ai(e[i], t, n);
2624
+ else for (r = Object.keys(e), i = 0, a = r.length; i < a; i += 1) Ai(e[r[i]], t, n);
2164
2625
  }
2165
- function ai(e, t) {
2626
+ function ji(e, t) {
2166
2627
  t ||= {};
2167
- var n = new kr(t);
2168
- n.noRefs || ri(e, n);
2628
+ var n = new ti(t);
2629
+ n.noRefs || ki(e, n);
2169
2630
  var r = e;
2170
- return n.replacer && (r = n.replacer.call({ "": r }, "", r)), Z(n, 0, r, !0, !0) ? n.dump + "\n" : "";
2631
+ return n.replacer && (r = n.replacer.call({ "": r }, "", r)), Q(n, 0, r, !0, !0) ? n.dump + "\n" : "";
2171
2632
  }
2172
- var oi = { dump: ai };
2173
- function si(e, t) {
2633
+ var Mi = { dump: ji };
2634
+ function Ni(e, t) {
2174
2635
  return function() {
2175
2636
  throw Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
2176
2637
  };
2177
2638
  }
2178
- var ci = {
2179
- Type: L,
2180
- Schema: nt,
2181
- FAILSAFE_SCHEMA: ot,
2182
- JSON_SCHEMA: kt,
2183
- CORE_SCHEMA: At,
2184
- DEFAULT_SCHEMA: an,
2185
- load: Yn.load,
2186
- loadAll: Yn.loadAll,
2187
- dump: oi.dump,
2188
- YAMLException: I,
2639
+ var Pi = {
2640
+ Type: B,
2641
+ Schema: Et,
2642
+ FAILSAFE_SCHEMA: At,
2643
+ JSON_SCHEMA: $t,
2644
+ CORE_SCHEMA: en,
2645
+ DEFAULT_SCHEMA: kn,
2646
+ load: xr.load,
2647
+ loadAll: xr.loadAll,
2648
+ dump: Mi.dump,
2649
+ YAMLException: z,
2189
2650
  types: {
2190
- binary: Wt,
2191
- float: Ot,
2192
- map: at,
2193
- null: ut,
2194
- pairs: $t,
2195
- set: rn,
2196
- timestamp: It,
2197
- bool: mt,
2198
- int: xt,
2199
- merge: Rt,
2200
- omap: Yt,
2201
- seq: it,
2202
- str: rt
2651
+ binary: hn,
2652
+ float: Qt,
2653
+ map: kt,
2654
+ null: Pt,
2655
+ pairs: wn,
2656
+ set: On,
2657
+ timestamp: sn,
2658
+ bool: Rt,
2659
+ int: Gt,
2660
+ merge: ln,
2661
+ omap: bn,
2662
+ seq: Ot,
2663
+ str: Dt
2203
2664
  },
2204
- safeLoad: si("safeLoad", "load"),
2205
- safeLoadAll: si("safeLoadAll", "loadAll"),
2206
- safeDump: si("safeDump", "dump")
2207
- }, li = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), ui = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), di = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), fi = (e) => {
2208
- let t = di(e);
2665
+ safeLoad: Ni("safeLoad", "load"),
2666
+ safeLoadAll: Ni("safeLoadAll", "loadAll"),
2667
+ safeDump: Ni("safeDump", "dump")
2668
+ }, Fi = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), Ii = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Li = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), Ri = (e) => {
2669
+ let t = Li(e);
2209
2670
  return t.charAt(0).toUpperCase() + t.slice(1);
2210
- }, pi = {
2671
+ }, zi = {
2211
2672
  xmlns: "http://www.w3.org/2000/svg",
2212
2673
  width: 24,
2213
2674
  height: 24,
@@ -2217,135 +2678,58 @@ var ci = {
2217
2678
  strokeWidth: 2,
2218
2679
  strokeLinecap: "round",
2219
2680
  strokeLinejoin: "round"
2220
- }, mi = (e) => {
2681
+ }, Bi = (e) => {
2221
2682
  for (let t in e) if (t.startsWith("aria-") || t === "role" || t === "title") return !0;
2222
2683
  return !1;
2223
- }, hi = c({}), gi = () => p(hi), _i = u(({ color: e, size: t, strokeWidth: n, absoluteStrokeWidth: r, className: i = "", children: a, iconNode: o, ...s }, c) => {
2224
- let { size: u = 24, strokeWidth: d = 2, absoluteStrokeWidth: f = !1, color: p = "currentColor", className: m = "" } = gi() ?? {}, h = r ?? f ? Number(n ?? d) * 24 / Number(t ?? u) : n ?? d;
2684
+ }, Vi = c({}), Hi = () => p(Vi), Ui = u(({ color: e, size: t, strokeWidth: n, absoluteStrokeWidth: r, className: i = "", children: a, iconNode: o, ...s }, c) => {
2685
+ let { size: u = 24, strokeWidth: d = 2, absoluteStrokeWidth: f = !1, color: p = "currentColor", className: m = "" } = Hi() ?? {}, h = r ?? f ? Number(n ?? d) * 24 / Number(t ?? u) : n ?? d;
2225
2686
  return l("svg", {
2226
2687
  ref: c,
2227
- ...pi,
2228
- width: t ?? u ?? pi.width,
2229
- height: t ?? u ?? pi.height,
2688
+ ...zi,
2689
+ width: t ?? u ?? zi.width,
2690
+ height: t ?? u ?? zi.height,
2230
2691
  stroke: e ?? p,
2231
2692
  strokeWidth: h,
2232
- className: li("lucide", m, i),
2233
- ...!a && !mi(s) && { "aria-hidden": "true" },
2693
+ className: Fi("lucide", m, i),
2694
+ ...!a && !Bi(s) && { "aria-hidden": "true" },
2234
2695
  ...s
2235
2696
  }, [...o.map(([e, t]) => l(e, t)), ...Array.isArray(a) ? a : [a]]);
2236
- }), vi = (e, t) => {
2237
- let n = u(({ className: n, ...r }, i) => l(_i, {
2697
+ }), Wi = (e, t) => {
2698
+ let n = u(({ className: n, ...r }, i) => l(Ui, {
2238
2699
  ref: i,
2239
2700
  iconNode: t,
2240
- className: li(`lucide-${ui(fi(e))}`, `lucide-${e}`, n),
2701
+ className: Fi(`lucide-${Ii(Ri(e))}`, `lucide-${e}`, n),
2241
2702
  ...r
2242
2703
  }));
2243
- return n.displayName = fi(e), n;
2244
- }, yi = vi("check", [["path", {
2704
+ return n.displayName = Ri(e), n;
2705
+ }, Gi = Wi("check", [["path", {
2245
2706
  d: "M20 6 9 17l-5-5",
2246
2707
  key: "1gmf2c"
2247
- }]]), bi = vi("minus", [["path", {
2708
+ }]]), Ki = Wi("minus", [["path", {
2248
2709
  d: "M5 12h14",
2249
2710
  key: "1ays0h"
2250
- }]]), xi = vi("plus", [["path", {
2711
+ }]]), qi = Wi("plus", [["path", {
2251
2712
  d: "M5 12h14",
2252
2713
  key: "1ays0h"
2253
2714
  }], ["path", {
2254
2715
  d: "M12 5v14",
2255
2716
  key: "s699le"
2256
- }]]), Si = {
2257
- $schema: "https://json-schema.org/draft/2020-12/schema",
2258
- $id: "https://seedfinder.app/jaml.schema.json",
2259
- title: "JAML — Jimbo's Ante Markup Language",
2260
- description: "Declarative filter language for Balatro seed searches. A JAML document specifies the criteria a seed must satisfy; the Motely engine compiles and runs it.",
2261
- version: "17.4.5",
2262
- type: "object",
2263
- additionalProperties: !1,
2264
- properties: {
2265
- id: { type: "string" },
2266
- name: { type: "string" },
2267
- author: { type: "string" },
2268
- dateCreated: { type: "string" },
2269
- description: { type: "string" },
2270
- deck: { $ref: "#/$defs/MotelyDeck" },
2271
- stake: { $ref: "#/$defs/MotelyStake" },
2272
- defaults: { $ref: "#/$defs/JamlDefaults" },
2273
- must: {
2274
- type: "array",
2275
- items: { $ref: "#/$defs/JamlClauseUnion" }
2276
- },
2277
- should: {
2278
- type: "array",
2279
- items: { $ref: "#/$defs/JamlClauseUnion" }
2280
- },
2281
- mustNot: {
2282
- type: "array",
2283
- items: { $ref: "#/$defs/JamlClauseUnion" }
2284
- },
2285
- hashtags: {
2286
- type: "array",
2287
- items: { type: "string" }
2288
- },
2289
- seeds: {
2290
- type: "array",
2291
- items: { type: "string" }
2292
- }
2293
- },
2294
- $defs: /* @__PURE__ */ JSON.parse("{\"JamlDefaults\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"antes\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"boosterPacks\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"shopItems\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"score\":{\"type\":\"integer\"}}},\"JamlClauseUnion\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"joker\":{\"oneOf\":[{\"const\":\"any\"},{\"$ref\":\"#/$defs/MotelyJoker\"}]},\"jokers\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/$defs/MotelyJoker\"}},\"commonJoker\":{\"oneOf\":[{\"const\":\"any\"},{\"$ref\":\"#/$defs/MotelyJokerCommon\"}]},\"commonJokers\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/$defs/MotelyJokerCommon\"}},\"uncommonJoker\":{\"oneOf\":[{\"const\":\"any\"},{\"$ref\":\"#/$defs/MotelyJokerUncommon\"}]},\"uncommonJokers\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/$defs/MotelyJokerUncommon\"}},\"rareJoker\":{\"oneOf\":[{\"const\":\"any\"},{\"$ref\":\"#/$defs/MotelyJokerRare\"}]},\"rareJokers\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/$defs/MotelyJokerRare\"}},\"legendaryJoker\":{\"oneOf\":[{\"const\":\"any\"},{\"$ref\":\"#/$defs/MotelyJokerLegendary\"}]},\"legendaryJokers\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/$defs/MotelyJokerLegendary\"}},\"voucher\":{\"$ref\":\"#/$defs/MotelyVoucher\"},\"vouchers\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/$defs/MotelyVoucher\"}},\"tarotCard\":{\"$ref\":\"#/$defs/MotelyTarotCard\"},\"tarotCards\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/$defs/MotelyTarotCard\"}},\"spectralCard\":{\"$ref\":\"#/$defs/MotelySpectralCard\"},\"spectralCards\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/$defs/MotelySpectralCard\"}},\"planetCard\":{\"$ref\":\"#/$defs/MotelyPlanetCard\"},\"boss\":{\"$ref\":\"#/$defs/MotelyBossBlind\"},\"tag\":{\"$ref\":\"#/$defs/MotelyTag\"},\"smallBlindTag\":{\"$ref\":\"#/$defs/MotelyTag\"},\"bigBlindTag\":{\"$ref\":\"#/$defs/MotelyTag\"},\"standardCard\":{\"oneOf\":[{\"type\":\"string\"},{\"$ref\":\"#/$defs/StandardCardConfig\"}]},\"standardCards\":{\"type\":\"array\",\"items\":{\"oneOf\":[{\"type\":\"string\"},{\"$ref\":\"#/$defs/StandardCardConfig\"}]}},\"erraticRank\":{\"type\":\"string\"},\"erraticSuit\":{\"type\":\"string\"},\"erraticCard\":{\"type\":\"string\"},\"startingDraw\":{\"type\":\"string\"},\"event\":{\"$ref\":\"#/$defs/MotelyEventType\"},\"luckyMoney\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"luckyMult\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"misprintMult\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"wheelOfFortune\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"cavendishExtinct\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"grosMichelExtinct\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"spaceLevelup\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"businessPayout\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"bloodstoneTrigger\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"parkingPayout\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"glassDestroy\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"wheelStaysFlipped\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"antes\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"score\":{\"type\":\"integer\"},\"min\":{\"type\":\"integer\"},\"max\":{\"type\":\"integer\"},\"label\":{\"type\":\"string\"},\"edition\":{\"$ref\":\"#/$defs/MotelyItemEdition\"},\"stickers\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/$defs/MotelyJokerSticker\"}},\"seal\":{\"$ref\":\"#/$defs/MotelyItemSeal\"},\"enhancement\":{\"$ref\":\"#/$defs/MotelyItemEnhancement\"},\"rank\":{\"type\":\"string\"},\"suit\":{\"type\":\"string\"},\"rolls\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"soulEditionRolls\":{\"type\":\"integer\"},\"soulCardOnly\":{\"type\":\"boolean\"},\"and\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/$defs/JamlClauseUnion\"}},\"or\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/$defs/JamlClauseUnion\"}},\"clauses\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/$defs/JamlClauseUnion\"}},\"mode\":{\"type\":\"string\"},\"judgement\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"wraith\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"rareTag\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"uncommonTag\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"shopItems\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"boosterPacks\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"minShopItem\":{\"type\":\"integer\"},\"maxShopItem\":{\"type\":\"integer\"},\"sources\":{\"$ref\":\"#/$defs/JamlSources\"}}},\"MotelyJoker\":{\"type\":\"string\",\"enum\":[\"Joker\",\"GreedyJoker\",\"LustyJoker\",\"WrathfulJoker\",\"GluttonousJoker\",\"JollyJoker\",\"ZanyJoker\",\"MadJoker\",\"CrazyJoker\",\"DrollJoker\",\"SlyJoker\",\"WilyJoker\",\"CleverJoker\",\"DeviousJoker\",\"CraftyJoker\",\"HalfJoker\",\"CreditCard\",\"Banner\",\"MysticSummit\",\"EightBall\",\"Misprint\",\"RaisedFist\",\"ChaostheClown\",\"ScaryFace\",\"AbstractJoker\",\"DelayedGratification\",\"GrosMichel\",\"EvenSteven\",\"OddTodd\",\"Scholar\",\"BusinessCard\",\"Supernova\",\"RideTheBus\",\"Egg\",\"Runner\",\"IceCream\",\"Splash\",\"BlueJoker\",\"FacelessJoker\",\"GreenJoker\",\"Superposition\",\"ToDoList\",\"Cavendish\",\"RedCard\",\"SquareJoker\",\"RiffRaff\",\"Photograph\",\"ReservedParking\",\"MailInRebate\",\"Hallucination\",\"FortuneTeller\",\"Juggler\",\"Drunkard\",\"GoldenJoker\",\"Popcorn\",\"WalkieTalkie\",\"SmileyFace\",\"GoldenTicket\",\"Swashbuckler\",\"HangingChad\",\"ShootTheMoon\",\"JokerStencil\",\"FourFingers\",\"Mime\",\"CeremonialDagger\",\"MarbleJoker\",\"LoyaltyCard\",\"Dusk\",\"Fibonacci\",\"SteelJoker\",\"Hack\",\"Pareidolia\",\"SpaceJoker\",\"Burglar\",\"Blackboard\",\"SixthSense\",\"Constellation\",\"Hiker\",\"CardSharp\",\"Madness\",\"Seance\",\"Vampire\",\"Shortcut\",\"Hologram\",\"Cloud9\",\"Rocket\",\"MidasMask\",\"Luchador\",\"GiftCard\",\"TurtleBean\",\"Erosion\",\"ToTheMoon\",\"StoneJoker\",\"LuckyCat\",\"Bull\",\"DietCola\",\"TradingCard\",\"FlashCard\",\"SpareTrousers\",\"Ramen\",\"Seltzer\",\"Castle\",\"MrBones\",\"Acrobat\",\"SockAndBuskin\",\"Troubadour\",\"Certificate\",\"SmearedJoker\",\"Throwback\",\"RoughGem\",\"Bloodstone\",\"Arrowhead\",\"OnyxAgate\",\"GlassJoker\",\"Showman\",\"FlowerPot\",\"MerryAndy\",\"OopsAll6s\",\"TheIdol\",\"SeeingDouble\",\"Matador\",\"Satellite\",\"Cartomancer\",\"Astronomer\",\"Bootstraps\",\"DNA\",\"Vagabond\",\"Baron\",\"Obelisk\",\"BaseballCard\",\"AncientJoker\",\"Campfire\",\"Blueprint\",\"WeeJoker\",\"HitTheRoad\",\"TheDuo\",\"TheTrio\",\"TheFamily\",\"TheOrder\",\"TheTribe\",\"Stuntman\",\"InvisibleJoker\",\"Brainstorm\",\"DriversLicense\",\"BurntJoker\",\"Canio\",\"Triboulet\",\"Yorick\",\"Chicot\",\"Perkeo\"]},\"MotelyJokerCommon\":{\"type\":\"string\",\"enum\":[\"Joker\",\"GreedyJoker\",\"LustyJoker\",\"WrathfulJoker\",\"GluttonousJoker\",\"JollyJoker\",\"ZanyJoker\",\"MadJoker\",\"CrazyJoker\",\"DrollJoker\",\"SlyJoker\",\"WilyJoker\",\"CleverJoker\",\"DeviousJoker\",\"CraftyJoker\",\"HalfJoker\",\"CreditCard\",\"Banner\",\"MysticSummit\",\"EightBall\",\"Misprint\",\"RaisedFist\",\"ChaostheClown\",\"ScaryFace\",\"AbstractJoker\",\"DelayedGratification\",\"GrosMichel\",\"EvenSteven\",\"OddTodd\",\"Scholar\",\"BusinessCard\",\"Supernova\",\"RideTheBus\",\"Egg\",\"Runner\",\"IceCream\",\"Splash\",\"BlueJoker\",\"FacelessJoker\",\"GreenJoker\",\"Superposition\",\"ToDoList\",\"Cavendish\",\"RedCard\",\"SquareJoker\",\"RiffRaff\",\"Photograph\",\"ReservedParking\",\"MailInRebate\",\"Hallucination\",\"FortuneTeller\",\"Juggler\",\"Drunkard\",\"GoldenJoker\",\"Popcorn\",\"WalkieTalkie\",\"SmileyFace\",\"GoldenTicket\",\"Swashbuckler\",\"HangingChad\",\"ShootTheMoon\"]},\"MotelyJokerUncommon\":{\"type\":\"string\",\"enum\":[\"JokerStencil\",\"FourFingers\",\"Mime\",\"CeremonialDagger\",\"MarbleJoker\",\"LoyaltyCard\",\"Dusk\",\"Fibonacci\",\"SteelJoker\",\"Hack\",\"Pareidolia\",\"SpaceJoker\",\"Burglar\",\"Blackboard\",\"SixthSense\",\"Constellation\",\"Hiker\",\"CardSharp\",\"Madness\",\"Seance\",\"Vampire\",\"Shortcut\",\"Hologram\",\"Cloud9\",\"Rocket\",\"MidasMask\",\"Luchador\",\"GiftCard\",\"TurtleBean\",\"Erosion\",\"ToTheMoon\",\"StoneJoker\",\"LuckyCat\",\"Bull\",\"DietCola\",\"TradingCard\",\"FlashCard\",\"SpareTrousers\",\"Ramen\",\"Seltzer\",\"Castle\",\"MrBones\",\"Acrobat\",\"SockAndBuskin\",\"Troubadour\",\"Certificate\",\"SmearedJoker\",\"Throwback\",\"RoughGem\",\"Bloodstone\",\"Arrowhead\",\"OnyxAgate\",\"GlassJoker\",\"Showman\",\"FlowerPot\",\"MerryAndy\",\"OopsAll6s\",\"TheIdol\",\"SeeingDouble\",\"Matador\",\"Satellite\",\"Cartomancer\",\"Astronomer\",\"Bootstraps\"]},\"MotelyJokerRare\":{\"type\":\"string\",\"enum\":[\"DNA\",\"Vagabond\",\"Baron\",\"Obelisk\",\"BaseballCard\",\"AncientJoker\",\"Campfire\",\"Blueprint\",\"WeeJoker\",\"HitTheRoad\",\"TheDuo\",\"TheTrio\",\"TheFamily\",\"TheOrder\",\"TheTribe\",\"Stuntman\",\"InvisibleJoker\",\"Brainstorm\",\"DriversLicense\",\"BurntJoker\"]},\"MotelyJokerLegendary\":{\"type\":\"string\",\"enum\":[\"Canio\",\"Triboulet\",\"Yorick\",\"Chicot\",\"Perkeo\"]},\"MotelyVoucher\":{\"type\":\"string\",\"enum\":[\"Overstock\",\"OverstockPlus\",\"ClearanceSale\",\"Liquidation\",\"Hone\",\"GlowUp\",\"RerollSurplus\",\"RerollGlut\",\"CrystalBall\",\"OmenGlobe\",\"Telescope\",\"Observatory\",\"Grabber\",\"NachoTong\",\"Wasteful\",\"Recyclomancy\",\"TarotMerchant\",\"TarotTycoon\",\"PlanetMerchant\",\"PlanetTycoon\",\"SeedMoney\",\"MoneyTree\",\"Blank\",\"Antimatter\",\"MagicTrick\",\"Illusion\",\"Hieroglyph\",\"Petroglyph\",\"DirectorsCut\",\"Retcon\",\"PaintBrush\",\"Palette\"]},\"MotelyTarotCard\":{\"type\":\"string\",\"enum\":[\"TheFool\",\"TheMagician\",\"TheHighPriestess\",\"TheEmpress\",\"TheEmperor\",\"TheHierophant\",\"TheLovers\",\"TheChariot\",\"Justice\",\"TheHermit\",\"TheWheelOfFortune\",\"Strength\",\"TheHangedMan\",\"Death\",\"Temperance\",\"TheDevil\",\"TheTower\",\"TheStar\",\"TheMoon\",\"TheSun\",\"Judgement\",\"TheWorld\"]},\"MotelySpectralCard\":{\"type\":\"string\",\"enum\":[\"Familiar\",\"Grim\",\"Incantation\",\"Talisman\",\"Aura\",\"Wraith\",\"Sigil\",\"Ouija\",\"Ectoplasm\",\"Immolate\",\"Ankh\",\"DejaVu\",\"Hex\",\"Trance\",\"Medium\",\"Cryptid\",\"TheSoul\",\"BlackHole\"]},\"MotelyPlanetCard\":{\"type\":\"string\",\"enum\":[\"Mercury\",\"Venus\",\"Earth\",\"Mars\",\"Jupiter\",\"Saturn\",\"Uranus\",\"Neptune\",\"Pluto\",\"PlanetX\",\"Ceres\",\"Eris\"]},\"MotelyBossBlind\":{\"type\":\"string\",\"enum\":[\"TheClub\",\"TheGoad\",\"TheHead\",\"TheHook\",\"TheManacle\",\"ThePillar\",\"ThePsychic\",\"TheWindow\",\"TheArm\",\"TheFish\",\"TheFlint\",\"TheHouse\",\"TheMark\",\"TheMouth\",\"TheNeedle\",\"TheWall\",\"TheWater\",\"TheWheel\",\"TheEye\",\"TheTooth\",\"ThePlant\",\"TheSerpent\",\"TheOx\",\"AmberAcorn\",\"CeruleanBell\",\"CrimsonHeart\",\"VerdantLeaf\",\"VioletVessel\"]},\"MotelyTag\":{\"type\":\"string\",\"enum\":[\"UncommonTag\",\"RareTag\",\"NegativeTag\",\"FoilTag\",\"HolographicTag\",\"PolychromeTag\",\"InvestmentTag\",\"VoucherTag\",\"BossTag\",\"StandardTag\",\"CharmTag\",\"MeteorTag\",\"BuffoonTag\",\"HandyTag\",\"GarbageTag\",\"EtherealTag\",\"CouponTag\",\"DoubleTag\",\"JuggleTag\",\"D6Tag\",\"TopupTag\",\"SpeedTag\",\"OrbitalTag\",\"EconomyTag\"]},\"StandardCardConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"rank\":{\"type\":\"string\"},\"suit\":{\"type\":\"string\"},\"seal\":{\"$ref\":\"#/$defs/MotelyItemSeal\"},\"enhancement\":{\"$ref\":\"#/$defs/MotelyItemEnhancement\"},\"edition\":{\"$ref\":\"#/$defs/MotelyItemEdition\"},\"sources\":{\"$ref\":\"#/$defs/JamlSources\"}}},\"MotelyItemSeal\":{\"type\":\"string\",\"enum\":[\"None\",\"Gold\",\"Red\",\"Blue\",\"Purple\"]},\"MotelyItemEnhancement\":{\"type\":\"string\",\"enum\":[\"None\",\"Bonus\",\"Mult\",\"Wild\",\"Glass\",\"Steel\",\"Stone\",\"Gold\",\"Lucky\"]},\"MotelyItemEdition\":{\"type\":\"string\",\"enum\":[\"None\",\"Foil\",\"Holographic\",\"Polychrome\",\"Negative\"]},\"JamlSources\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"shopItems\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"boosterPacks\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"minShopItem\":{\"type\":\"integer\"},\"maxShopItem\":{\"type\":\"integer\"},\"tags\":{\"type\":\"boolean\"},\"requireMega\":{\"type\":\"boolean\"},\"charmTag\":{\"type\":\"boolean\"},\"etherealTag\":{\"type\":\"boolean\"},\"judgement\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"rareTag\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"uncommonTag\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"wraith\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"soulCard\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"arcanaPacks\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"spectralPacks\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"riffRaff\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"purpleSealOrEightBall\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"emperor\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"sixthSense\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"seance\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"certificate\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"incantation\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"familiar\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"grim\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"deckDraw\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"uncommonShopJokers\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"rareShopJokers\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"commonShopJokers\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}},\"allShopJokers\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"}}}},\"MotelyEventType\":{\"type\":\"string\",\"enum\":[\"LuckyMoney\",\"LuckyMult\",\"MisprintMult\",\"WheelOfFortune\",\"CavendishExtinct\",\"GrosMichelExtinct\",\"SpaceLevelup\",\"BusinessPayout\",\"BloodstoneTrigger\",\"ParkingPayout\",\"GlassDestroy\",\"WheelStaysFlipped\"]},\"MotelyJokerSticker\":{\"type\":\"string\",\"enum\":[\"None\",\"Eternal\",\"Perishable\",\"Rental\"]},\"MotelyDeck\":{\"type\":\"string\",\"enum\":[\"Red\",\"Blue\",\"Yellow\",\"Green\",\"Black\",\"Magic\",\"Nebula\",\"Ghost\",\"Abandoned\",\"Checkered\",\"Zodiac\",\"Painted\",\"Anaglyph\",\"Plasma\",\"Erratic\"]},\"MotelyStake\":{\"type\":\"string\",\"enum\":[\"White\",\"Red\",\"Green\",\"Black\",\"Blue\",\"Purple\",\"Orange\",\"Gold\"]}}")
2295
- }, Ci = Si.definitions?.clause?.properties ?? {};
2296
- Si.version;
2297
- var wi = [
2298
- "id",
2299
- "name",
2300
- "description",
2301
- "author",
2302
- "dateCreated",
2303
- "deck",
2304
- "stake",
2305
- "seeds",
2306
- "hashtags",
2307
- "aesthetics",
2308
- "defaults"
2309
- ], Ti = [
2310
- "must",
2311
- "should",
2312
- "mustNot"
2313
- ], Ei = Ci.type?.enum ?? [], Di = Object.keys(Ci), Oi = (() => {
2314
- let e = Ci.sources?.properties;
2315
- return e ? Object.keys(e) : ["shopItems", "boosterPacks"];
2316
- })();
2317
- function Q(e) {
2318
- let t = Si.properties?.[e];
2319
- if (t?.enum) return t.enum;
2320
- if (t?.items?.enum) return t.items.enum;
2321
- let n = Ci[e];
2322
- return n?.enum ? n.enum : n?.items?.enum ? n.items.enum : null;
2323
- }
2324
- Q("deck"), Q("stake"), Q("edition"), Q("seal"), Q("enhancement"), Q("rank"), Q("suit"), Q("stickers"), [
2325
- ...Ti,
2326
- ...wi,
2327
- ...Ei,
2328
- ...Di,
2329
- ...Oi
2330
- ];
2331
- //#endregion
2332
- //#region src/lib/jaml/jamlData.ts
2333
- var ki = [...Ei], Ai = [
2717
+ }]]), Ji = [.../* @__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(".")], Yi = [
2334
2718
  "antes",
2335
2719
  "tags",
2336
2720
  "labels"
2337
- ], ji = [
2721
+ ], Xi = [
2338
2722
  "must",
2339
2723
  "should",
2340
2724
  "mustNot",
2341
2725
  "any",
2342
2726
  "Any",
2343
- ...ki,
2344
- ...Ai
2345
- ], Mi = class {
2727
+ ...Ji,
2728
+ ...Yi
2729
+ ], Zi = class {
2346
2730
  static getCompletions(e) {
2347
2731
  let t = e.toLowerCase();
2348
- return ji.filter((e) => e.toLowerCase().includes(t)).map((e) => ({
2732
+ return Xi.filter((e) => e.toLowerCase().includes(t)).map((e) => ({
2349
2733
  text: e,
2350
2734
  displayText: e,
2351
2735
  type: "keyword"
@@ -2363,14 +2747,14 @@ var ki = [...Ei], Ai = [
2363
2747
  gold: "#efb82d",
2364
2748
  editorBg: "#0f1416",
2365
2749
  editorBgAlt: "#1c2629"
2366
- }, Ni = "# My JAML Filter\nname: My Filter\ndeck: Red\nstake: White\n\nmust:\n - joker: Blueprint\n edition: Negative\n antes: [1, 2, 3]\n\nshould:\n - soulJoker: Any\n score: 5\n", Pi = [
2750
+ }, Qi = "# 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", $i = [
2367
2751
  "name",
2368
2752
  "author",
2369
2753
  "description",
2370
2754
  "deck",
2371
2755
  "stake",
2372
2756
  "label"
2373
- ], Fi = [
2757
+ ], ea = [
2374
2758
  "joker",
2375
2759
  "soulJoker",
2376
2760
  "voucher",
@@ -2382,7 +2766,7 @@ var ki = [...Ei], Ai = [
2382
2766
  "boss",
2383
2767
  "event"
2384
2768
  ];
2385
- function Ii({ suggestions: e, selectedIndex: t, onSelect: n, onHover: r }) {
2769
+ function ta({ suggestions: e, selectedIndex: t, onSelect: n, onHover: r }) {
2386
2770
  return e.length === 0 ? /* @__PURE__ */ b("div", {
2387
2771
  className: "p-2 text-xs text-white/40 italic",
2388
2772
  children: "No suggestions..."
@@ -2406,7 +2790,7 @@ function Ii({ suggestions: e, selectedIndex: t, onSelect: n, onHover: r }) {
2406
2790
  })
2407
2791
  });
2408
2792
  }
2409
- function Li({ values: e, onToggle: t, color: n }) {
2793
+ function na({ values: e, onToggle: t, color: n }) {
2410
2794
  let [r, i] = v(!1), a = new Set(e.map((e) => parseInt(e, 10)).filter((e) => !isNaN(e)));
2411
2795
  return r ? /* @__PURE__ */ x("div", {
2412
2796
  className: "flex flex-row items-center",
@@ -2429,7 +2813,7 @@ function Li({ values: e, onToggle: t, color: n }) {
2429
2813
  }), /* @__PURE__ */ b("div", {
2430
2814
  onClick: () => i(!1),
2431
2815
  className: "jaml-block jaml-antes-confirm",
2432
- children: /* @__PURE__ */ b(yi, {
2816
+ children: /* @__PURE__ */ b(Gi, {
2433
2817
  size: 16,
2434
2818
  strokeWidth: 3
2435
2819
  })
@@ -2453,7 +2837,7 @@ function Li({ values: e, onToggle: t, color: n }) {
2453
2837
  })()
2454
2838
  });
2455
2839
  }
2456
- function Ri(e, t) {
2840
+ function ra(e, t) {
2457
2841
  let [n, r] = v(null);
2458
2842
  return m(() => {
2459
2843
  if (!t || !e.current) {
@@ -2474,7 +2858,7 @@ function Ri(e, t) {
2474
2858
  };
2475
2859
  }, [t, e]), n;
2476
2860
  }
2477
- function zi({ initialJaml: e, onJamlChange: t, className: n }) {
2861
+ function ia({ initialJaml: e, onJamlChange: t, className: n }) {
2478
2862
  let [r, i] = v([]), [a, o] = v(null), [s, c] = v(null), [l, u] = v(null), d = _(null), p = f((e) => {
2479
2863
  let t = e.split("\n"), n;
2480
2864
  return t.map((e, t) => {
@@ -2483,9 +2867,9 @@ function zi({ initialJaml: e, onJamlChange: t, className: n }) {
2483
2867
  let e = i.indexOf(":"), t = i.slice(o ? 2 : 0, e).trim(), n = i.slice(e + 1).trim();
2484
2868
  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));
2485
2869
  }
2486
- r === 0 && !o && (n = void 0), o && s && Fi.includes(s) && (n = s);
2870
+ r === 0 && !o && (n = void 0), o && s && ea.includes(s) && (n = s);
2487
2871
  let d = "complete", f = !1;
2488
- return s && (Pi.includes(s) ? d = "metadata" : Fi.includes(s) ? d = c ? "complete" : "required-incomplete" : !c && s !== "must" && s !== "should" && s !== "mustNot" && (d = "optional-incomplete"), c && c.startsWith("~") && c.endsWith("~") && (f = !0, d = "invalid")), {
2872
+ return s && ($i.includes(s) ? d = "metadata" : ea.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")), {
2489
2873
  id: `line-${t}`,
2490
2874
  raw: e,
2491
2875
  indent: r,
@@ -2504,7 +2888,7 @@ function zi({ initialJaml: e, onJamlChange: t, className: n }) {
2504
2888
  }, []), m = f((e) => e.map((e) => e.raw).join("\n"), []), [h, y] = v(e);
2505
2889
  if (e !== h) {
2506
2890
  y(e);
2507
- let t = e || Ni;
2891
+ let t = e || Qi;
2508
2892
  (r.length === 0 || m(r) !== t) && i(p(t));
2509
2893
  }
2510
2894
  let S = f((e, n, a) => {
@@ -2524,7 +2908,7 @@ function zi({ initialJaml: e, onJamlChange: t, className: n }) {
2524
2908
  i(o);
2525
2909
  let s = m(o);
2526
2910
  if (t) try {
2527
- t(s, ci.load(s), !0);
2911
+ t(s, Pi.load(s), !0);
2528
2912
  } catch {
2529
2913
  t(s, null, !1);
2530
2914
  }
@@ -2548,7 +2932,7 @@ function zi({ initialJaml: e, onJamlChange: t, className: n }) {
2548
2932
  i(o);
2549
2933
  let s = m(o);
2550
2934
  if (t) try {
2551
- t(s, ci.load(s), !0);
2935
+ t(s, Pi.load(s), !0);
2552
2936
  } catch {
2553
2937
  t(s, null, !1);
2554
2938
  }
@@ -2556,7 +2940,7 @@ function zi({ initialJaml: e, onJamlChange: t, className: n }) {
2556
2940
  r,
2557
2941
  m,
2558
2942
  t
2559
- ]), ee = f((e, n) => {
2943
+ ]), w = f((e, n) => {
2560
2944
  let a = r.map((t) => {
2561
2945
  if (t.id !== e) return t;
2562
2946
  let r = [...t.arrayValues || [], n], i = `[${r.join(", ")}]`, a = `${" ".repeat(t.indent)}${t.isArrayItem ? "- " : ""}${t.key}: ${i}`;
@@ -2571,7 +2955,7 @@ function zi({ initialJaml: e, onJamlChange: t, className: n }) {
2571
2955
  i(a);
2572
2956
  let o = m(a);
2573
2957
  if (t) try {
2574
- t(o, ci.load(o), !0);
2958
+ t(o, Pi.load(o), !0);
2575
2959
  } catch {
2576
2960
  t(o, null, !1);
2577
2961
  }
@@ -2579,7 +2963,7 @@ function zi({ initialJaml: e, onJamlChange: t, className: n }) {
2579
2963
  r,
2580
2964
  m,
2581
2965
  t
2582
- ]), w = f((e, n) => {
2966
+ ]), ee = f((e, n) => {
2583
2967
  let a = r.map((t) => {
2584
2968
  if (t.id !== e || !t.arrayValues) return t;
2585
2969
  let r = t.arrayValues.filter((e, t) => t !== n), i = r.length > 0 ? `[${r.join(", ")}]` : "", a = `${" ".repeat(t.indent)}${t.isArrayItem ? "- " : ""}${t.key}: ${i}`;
@@ -2594,7 +2978,7 @@ function zi({ initialJaml: e, onJamlChange: t, className: n }) {
2594
2978
  i(a);
2595
2979
  let o = m(a);
2596
2980
  if (t) try {
2597
- t(o, ci.load(o), !0);
2981
+ t(o, Pi.load(o), !0);
2598
2982
  } catch {
2599
2983
  t(o, null, !1);
2600
2984
  }
@@ -2602,7 +2986,7 @@ function zi({ initialJaml: e, onJamlChange: t, className: n }) {
2602
2986
  r,
2603
2987
  m,
2604
2988
  t
2605
- ]), te = f((e) => {
2989
+ ]), T = f((e) => {
2606
2990
  let n = r.filter((t) => t.id !== e).map((e, t) => ({
2607
2991
  ...e,
2608
2992
  lineNumber: t,
@@ -2611,7 +2995,7 @@ function zi({ initialJaml: e, onJamlChange: t, className: n }) {
2611
2995
  i(n);
2612
2996
  let a = m(n);
2613
2997
  if (t) try {
2614
- t(a, ci.load(a), !0);
2998
+ t(a, Pi.load(a), !0);
2615
2999
  } catch {
2616
3000
  t(a, null, !1);
2617
3001
  }
@@ -2619,7 +3003,7 @@ function zi({ initialJaml: e, onJamlChange: t, className: n }) {
2619
3003
  r,
2620
3004
  m,
2621
3005
  t
2622
- ]), T = g(() => {
3006
+ ]), E = g(() => {
2623
3007
  let e = {};
2624
3008
  for (let t of r) t.key && (e[t.indent] = Math.min(Math.max(e[t.indent] || 0, t.key.length), 12));
2625
3009
  return e;
@@ -2630,9 +3014,9 @@ function zi({ initialJaml: e, onJamlChange: t, className: n }) {
2630
3014
  tabIndex: 0,
2631
3015
  children: [/* @__PURE__ */ b("div", {
2632
3016
  className: "flex flex-col gap-0.5",
2633
- children: r.map((e) => /* @__PURE__ */ b(Bi, {
3017
+ children: r.map((e) => /* @__PURE__ */ b(aa, {
2634
3018
  line: e,
2635
- keyWidth: T[e.indent] || 8,
3019
+ keyWidth: E[e.indent] || 8,
2636
3020
  isEditing: a === e.id,
2637
3021
  editingPart: a === e.id ? s : null,
2638
3022
  editingArrayIndex: a === e.id ? l : null,
@@ -2644,9 +3028,9 @@ function zi({ initialJaml: e, onJamlChange: t, className: n }) {
2644
3028
  },
2645
3029
  onChange: (t, n) => S(e.id, t, n),
2646
3030
  onArrayItemChange: (t, n) => C(e.id, t, n),
2647
- onArrayItemAdd: (t) => ee(e.id, t),
2648
- onArrayItemRemove: (t) => w(e.id, t),
2649
- onDelete: () => te(e.id)
3031
+ onArrayItemAdd: (t) => w(e.id, t),
3032
+ onArrayItemRemove: (t) => ee(e.id, t),
3033
+ onDelete: () => T(e.id)
2650
3034
  }, e.id))
2651
3035
  }), /* @__PURE__ */ x("div", {
2652
3036
  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",
@@ -2675,14 +3059,14 @@ function zi({ initialJaml: e, onJamlChange: t, className: n }) {
2675
3059
  })]
2676
3060
  });
2677
3061
  }
2678
- function Bi({ line: e, keyWidth: t, isEditing: n, editingPart: r, editingArrayIndex: i, onStartEdit: a, onEndEdit: o, onChange: s, onArrayItemChange: c, onArrayItemAdd: l, onArrayItemRemove: u, onDelete: d }) {
2679
- let [f, p] = v(0), [h, y] = v(""), [C, ee] = v(""), [w, te] = v({
3062
+ function aa({ line: e, keyWidth: t, isEditing: n, editingPart: r, editingArrayIndex: i, onStartEdit: a, onEndEdit: o, onChange: s, onArrayItemChange: c, onArrayItemAdd: l, onArrayItemRemove: u, onDelete: d }) {
3063
+ let [f, p] = v(0), [h, y] = v(""), [S, C] = v(""), [w, ee] = v({
2680
3064
  isEditing: n,
2681
3065
  editingPart: r,
2682
3066
  editingArrayIndex: i,
2683
3067
  lineRaw: e.raw
2684
3068
  });
2685
- (n !== w.isEditing || r !== w.editingPart || i !== w.editingArrayIndex || e.raw !== w.lineRaw) && (te({
3069
+ (n !== w.isEditing || r !== w.editingPart || i !== w.editingArrayIndex || e.raw !== w.lineRaw) && (ee({
2686
3070
  isEditing: n,
2687
3071
  editingPart: r,
2688
3072
  editingArrayIndex: i,
@@ -2694,9 +3078,9 @@ function Bi({ line: e, keyWidth: t, isEditing: n, editingPart: r, editingArrayIn
2694
3078
  h,
2695
3079
  e.raw,
2696
3080
  e.key
2697
- ]), E = g(() => T ? Mi.getCompletions(T).slice(0, 10) : [], [T]);
2698
- T !== C && (ee(T), p(0));
2699
- let D = _(null), O = _(null), k = Ri(O, n && E.length > 0), A = () => {
3081
+ ]), E = g(() => T ? Zi.getCompletions(T).slice(0, 10) : [], [T]);
3082
+ T !== S && (C(T), p(0));
3083
+ let D = _(null), O = _(null), k = ra(O, n && E.length > 0), A = () => {
2700
3084
  switch (e.validationState) {
2701
3085
  case "required-incomplete": return $.red;
2702
3086
  case "optional-incomplete": return $.blue;
@@ -2705,7 +3089,7 @@ function Bi({ line: e, keyWidth: t, isEditing: n, editingPart: r, editingArrayIn
2705
3089
  case "metadata": return $.purple;
2706
3090
  default: return "#888";
2707
3091
  }
2708
- }, ne = () => {
3092
+ }, j = () => {
2709
3093
  switch (e.validationState) {
2710
3094
  case "required-incomplete": return $.red;
2711
3095
  case "optional-incomplete": return $.blue;
@@ -2718,7 +3102,7 @@ function Bi({ line: e, keyWidth: t, isEditing: n, editingPart: r, editingArrayIn
2718
3102
  m(() => {
2719
3103
  n && D.current && D.current.focus();
2720
3104
  }, [n]);
2721
- let re = (t) => {
3105
+ let ne = (t) => {
2722
3106
  if (t.key === "Enter") {
2723
3107
  t.preventDefault();
2724
3108
  let n = E.length > 0 && f >= 0 ? E[f].text : h;
@@ -2735,7 +3119,7 @@ function Bi({ line: e, keyWidth: t, isEditing: n, editingPart: r, editingArrayIn
2735
3119
  style: { "--jaml-color": e.key === "must" ? $.red : $.blue },
2736
3120
  children: e.raw
2737
3121
  });
2738
- let j = " ".repeat(e.indent), M = e.isArrayItem ? "- " : "", ie = k ? {
3122
+ let M = " ".repeat(e.indent), N = e.isArrayItem ? "- " : "", re = k ? {
2739
3123
  "--popover-top": `${k.top}px`,
2740
3124
  "--popover-left": `${k.left}px`,
2741
3125
  "--popover-transform": k.position === "top" ? "translateY(-100%)" : "none"
@@ -2748,14 +3132,14 @@ function Bi({ line: e, keyWidth: t, isEditing: n, editingPart: r, editingArrayIn
2748
3132
  onClick: (e) => {
2749
3133
  e.stopPropagation(), d();
2750
3134
  },
2751
- children: /* @__PURE__ */ b(bi, {
3135
+ children: /* @__PURE__ */ b(Ki, {
2752
3136
  size: 12,
2753
3137
  className: "text-orange-500 hover:bg-orange-100 rounded"
2754
3138
  })
2755
3139
  }),
2756
3140
  /* @__PURE__ */ x("span", {
2757
3141
  className: "whitespace-pre text-stone-400",
2758
- children: [j, M]
3142
+ children: [M, N]
2759
3143
  }),
2760
3144
  e.key && /* @__PURE__ */ x("div", {
2761
3145
  className: "relative",
@@ -2767,23 +3151,23 @@ function Bi({ line: e, keyWidth: t, isEditing: n, editingPart: r, editingArrayIn
2767
3151
  className: "jaml-block jaml-block--start",
2768
3152
  style: {
2769
3153
  "--jaml-min-w": `${t}ch`,
2770
- "--jaml-color": n && r === "key" ? ne() : A(),
2771
- "--jaml-bg": n && r === "key" ? `${ne()}15` : "transparent"
3154
+ "--jaml-color": n && r === "key" ? j() : A(),
3155
+ "--jaml-bg": n && r === "key" ? `${j()}15` : "transparent"
2772
3156
  },
2773
3157
  children: n && r === "key" ? /* @__PURE__ */ b("input", {
2774
3158
  ref: D,
2775
3159
  title: "Edit key",
2776
3160
  value: h,
2777
3161
  onChange: (e) => y(e.target.value),
2778
- onKeyDown: re,
3162
+ onKeyDown: ne,
2779
3163
  onBlur: () => setTimeout(o, 200),
2780
3164
  className: "jaml-inline-input",
2781
- style: { "--jaml-color": ne() }
3165
+ style: { "--jaml-color": j() }
2782
3166
  }) : e.key
2783
- }), n && r === "key" && E.length > 0 && k && S(/* @__PURE__ */ b("div", {
3167
+ }), n && r === "key" && E.length > 0 && k && te(/* @__PURE__ */ b("div", {
2784
3168
  className: "jaml-suggestion-popover",
2785
- style: ie,
2786
- children: /* @__PURE__ */ b(Ii, {
3169
+ style: re,
3170
+ children: /* @__PURE__ */ b(ta, {
2787
3171
  suggestions: E,
2788
3172
  selectedIndex: f,
2789
3173
  onHover: p,
@@ -2797,13 +3181,13 @@ function Bi({ line: e, keyWidth: t, isEditing: n, editingPart: r, editingArrayIn
2797
3181
  className: "text-stone-400 mr-1",
2798
3182
  children: ":"
2799
3183
  }),
2800
- e.key && (e.isArrayValue && e.arrayValues ? e.key === "antes" ? /* @__PURE__ */ b(Li, {
3184
+ e.key && (e.isArrayValue && e.arrayValues ? e.key === "antes" ? /* @__PURE__ */ b(na, {
2801
3185
  values: e.arrayValues,
2802
3186
  onToggle: (t) => {
2803
3187
  let n = e.arrayValues.indexOf(t);
2804
3188
  n >= 0 ? u(n) : l(t);
2805
3189
  },
2806
- color: ne()
3190
+ color: j()
2807
3191
  }) : /* @__PURE__ */ x("div", {
2808
3192
  className: "flex gap-0.5 items-center",
2809
3193
  children: [e.arrayValues.map((e, t) => /* @__PURE__ */ b("div", {
@@ -2822,7 +3206,7 @@ function Bi({ line: e, keyWidth: t, isEditing: n, editingPart: r, editingArrayIn
2822
3206
  title: "Edit array item",
2823
3207
  value: h,
2824
3208
  onChange: (e) => y(e.target.value),
2825
- onKeyDown: re,
3209
+ onKeyDown: ne,
2826
3210
  onBlur: () => setTimeout(o, 200),
2827
3211
  className: "bg-transparent w-[3ch] text-center outline-none"
2828
3212
  }) : e
@@ -2837,7 +3221,7 @@ function Bi({ line: e, keyWidth: t, isEditing: n, editingPart: r, editingArrayIn
2837
3221
  "--jaml-border": `1px solid ${$.green}40`,
2838
3222
  "--jaml-color": $.green
2839
3223
  },
2840
- children: /* @__PURE__ */ b(xi, { size: 12 })
3224
+ children: /* @__PURE__ */ b(qi, { size: 12 })
2841
3225
  })]
2842
3226
  }) : /* @__PURE__ */ x("div", {
2843
3227
  className: "relative",
@@ -2859,7 +3243,7 @@ function Bi({ line: e, keyWidth: t, isEditing: n, editingPart: r, editingArrayIn
2859
3243
  title: "Edit value",
2860
3244
  value: h,
2861
3245
  onChange: (e) => y(e.target.value),
2862
- onKeyDown: re,
3246
+ onKeyDown: ne,
2863
3247
  onBlur: () => setTimeout(o, 200),
2864
3248
  className: "jaml-inline-input jaml-inline-input--sized",
2865
3249
  style: {
@@ -2867,10 +3251,10 @@ function Bi({ line: e, keyWidth: t, isEditing: n, editingPart: r, editingArrayIn
2867
3251
  "--jaml-input-w": `${Math.max(h.length, 4)}ch`
2868
3252
  }
2869
3253
  }) : e.isInvalidValue ? e.value?.replace(/~/g, "") : e.value || "???"
2870
- }), n && r === "value" && E.length > 0 && k && S(/* @__PURE__ */ b("div", {
3254
+ }), n && r === "value" && E.length > 0 && k && te(/* @__PURE__ */ b("div", {
2871
3255
  className: "jaml-suggestion-popover",
2872
- style: ie,
2873
- children: /* @__PURE__ */ b(Ii, {
3256
+ style: re,
3257
+ children: /* @__PURE__ */ b(ta, {
2874
3258
  suggestions: E,
2875
3259
  selectedIndex: f,
2876
3260
  onHover: p,
@@ -2884,52 +3268,8 @@ function Bi({ line: e, keyWidth: t, isEditing: n, editingPart: r, editingArrayIn
2884
3268
  });
2885
3269
  }
2886
3270
  //#endregion
2887
- //#region src/ui/JimboIconButton.tsx
2888
- var Vi = e;
2889
- function Hi({ onClick: e, title: t, "aria-label": n, disabled: r = !1, size: i = "md", children: a }) {
2890
- let [o, s] = v(!1), c = i === "sm" ? 26 : 30;
2891
- return /* @__PURE__ */ b("button", {
2892
- "aria-label": n ?? t,
2893
- disabled: r,
2894
- onClick: () => !r && e?.(),
2895
- onMouseEnter: () => s(!0),
2896
- onMouseLeave: () => s(!1),
2897
- style: {
2898
- width: c,
2899
- height: c,
2900
- display: "inline-flex",
2901
- alignItems: "center",
2902
- justifyContent: "center",
2903
- background: o && !r ? Vi.DARK_GREY : Vi.DARKEST,
2904
- color: Vi.WHITE,
2905
- border: `1px solid ${Vi.PANEL_EDGE}`,
2906
- borderRadius: 4,
2907
- cursor: r ? "not-allowed" : "pointer",
2908
- opacity: r ? .55 : 1,
2909
- padding: 0,
2910
- fontSize: 14,
2911
- lineHeight: 1,
2912
- transition: "background 80ms ease"
2913
- },
2914
- title: t,
2915
- type: "button",
2916
- children: a
2917
- });
2918
- }
2919
- //#endregion
2920
- //#region src/ui/JimboTextInput.tsx
2921
- var Ui = s.forwardRef(function({ className: e = "", invalid: t = !1, "aria-invalid": n, ...r }, i) {
2922
- return /* @__PURE__ */ b("input", {
2923
- ref: i,
2924
- className: `j-text-input ${e}`.trim(),
2925
- "aria-invalid": n ?? t,
2926
- "data-invalid": t,
2927
- ...r
2928
- });
2929
- });
2930
- //#endregion
2931
3271
  //#region src/ui/JimboInputModal.tsx
2932
- function Wi({ open: e, title: t, message: n, placeholder: r, initialValue: i = "", confirmLabel: a = "Confirm", cancelLabel: o = "Cancel", validate: s, onConfirm: c, onCancel: l }) {
3272
+ function oa({ open: e, title: t, message: n, placeholder: r, initialValue: i = "", confirmLabel: a = "Confirm", cancelLabel: o = "Cancel", validate: s, onConfirm: c, onCancel: l }) {
2933
3273
  let [u, d] = v(i), [f, p] = v(null), h = _(null), [g, y] = v(e);
2934
3274
  e !== g && (y(e), e && (d(i), p(null))), m(() => {
2935
3275
  if (e) {
@@ -2945,18 +3285,18 @@ function Wi({ open: e, title: t, message: n, placeholder: r, initialValue: i = "
2945
3285
  }
2946
3286
  c(u);
2947
3287
  }
2948
- return /* @__PURE__ */ x(oe, {
3288
+ return /* @__PURE__ */ x(be, {
2949
3289
  onClose: l,
2950
3290
  open: e,
2951
3291
  title: t,
2952
3292
  children: [
2953
- n && /* @__PURE__ */ b(j, {
3293
+ n && /* @__PURE__ */ b(P, {
2954
3294
  size: "sm",
2955
3295
  className: "j-input-modal__message",
2956
3296
  tone: "grey",
2957
3297
  children: n
2958
3298
  }),
2959
- /* @__PURE__ */ b(Ui, {
3299
+ /* @__PURE__ */ b(fe, {
2960
3300
  invalid: !!f,
2961
3301
  onChange: (e) => {
2962
3302
  d(e.target.value), f && p(null);
@@ -2969,7 +3309,7 @@ function Wi({ open: e, title: t, message: n, placeholder: r, initialValue: i = "
2969
3309
  type: "text",
2970
3310
  value: u
2971
3311
  }),
2972
- f && /* @__PURE__ */ b(j, {
3312
+ f && /* @__PURE__ */ b(P, {
2973
3313
  size: "sm",
2974
3314
  className: "j-input-modal__error",
2975
3315
  tone: "red",
@@ -2977,12 +3317,12 @@ function Wi({ open: e, title: t, message: n, placeholder: r, initialValue: i = "
2977
3317
  }),
2978
3318
  /* @__PURE__ */ x("div", {
2979
3319
  className: "j-input-modal__actions",
2980
- children: [/* @__PURE__ */ b(N, {
3320
+ children: [/* @__PURE__ */ b(I, {
2981
3321
  onClick: l,
2982
3322
  size: "sm",
2983
3323
  tone: "red",
2984
3324
  children: o
2985
- }), /* @__PURE__ */ b(N, {
3325
+ }), /* @__PURE__ */ b(I, {
2986
3326
  onClick: S,
2987
3327
  size: "sm",
2988
3328
  tone: "blue",
@@ -2993,130 +3333,33 @@ function Wi({ open: e, title: t, message: n, placeholder: r, initialValue: i = "
2993
3333
  });
2994
3334
  }
2995
3335
  //#endregion
2996
- //#region src/ui/JimboPanelSpinner.tsx
2997
- function Gi({ label: e, title: t, description: n, media: r, meta: i, className: a = "", style: o, onPrev: s, onNext: c, prevDisabled: l = !1, nextDisabled: u = !1 }) {
2998
- return /* @__PURE__ */ x("div", {
2999
- className: `j-panel-spinner ${a}`.trim(),
3000
- style: o,
3001
- children: [e ? /* @__PURE__ */ b("div", {
3002
- className: "j-panel-spinner__label",
3003
- children: /* @__PURE__ */ b(j, {
3004
- size: "xs",
3005
- tone: "grey",
3006
- children: e
3007
- })
3008
- }) : null, /* @__PURE__ */ x("div", {
3009
- className: "j-panel-spinner__row",
3010
- children: [
3011
- /* @__PURE__ */ b(N, {
3012
- tone: "red",
3013
- size: "lg",
3014
- className: "j-panel-spinner__arrow j-panel-spinner__arrow--left",
3015
- onClick: s,
3016
- disabled: l,
3017
- "aria-label": "Previous",
3018
- children: "<"
3019
- }),
3020
- /* @__PURE__ */ x("div", {
3021
- className: "j-panel-spinner__panel",
3022
- children: [
3023
- r ? /* @__PURE__ */ b("div", {
3024
- className: "j-panel-spinner__media",
3025
- children: r
3026
- }) : null,
3027
- /* @__PURE__ */ b("div", {
3028
- className: "j-panel-spinner__title",
3029
- children: /* @__PURE__ */ b(j, {
3030
- size: "md",
3031
- tone: "white",
3032
- children: t
3033
- })
3034
- }),
3035
- i ? /* @__PURE__ */ b("div", {
3036
- className: "j-panel-spinner__meta",
3037
- children: i
3038
- }) : null,
3039
- n ? /* @__PURE__ */ b("div", {
3040
- className: "j-panel-spinner__description",
3041
- children: /* @__PURE__ */ b(j, {
3042
- size: "micro",
3043
- tone: "grey",
3044
- children: n
3045
- })
3046
- }) : null
3047
- ]
3048
- }),
3049
- /* @__PURE__ */ b(N, {
3050
- tone: "red",
3051
- size: "lg",
3052
- className: "j-panel-spinner__arrow j-panel-spinner__arrow--right",
3053
- onClick: c,
3054
- disabled: u,
3055
- "aria-label": "Next",
3056
- children: ">"
3057
- })
3058
- ]
3059
- })]
3060
- });
3061
- }
3062
- //#endregion
3063
- //#region src/ui/JimboSelect.tsx
3064
- var Ki = e;
3065
- function qi({ value: e, options: t, onChange: n, placeholder: r, disabled: i = !1, fullWidth: a = !0, size: o = "md", style: s, "aria-label": c }) {
3066
- let l;
3067
- l = t.length === 0 ? [] : typeof t[0] == "string" ? t.map((e) => ({ value: e })) : t;
3068
- let u = o === "sm" ? "4px 8px" : "6px 10px", d = o === "sm" ? 11 : 12;
3069
- return /* @__PURE__ */ x("select", {
3070
- "aria-label": c,
3071
- disabled: i,
3072
- onChange: (e) => n(e.target.value),
3073
- style: {
3074
- width: a ? "100%" : void 0,
3075
- padding: u,
3076
- background: Ki.DARKEST,
3077
- color: Ki.WHITE,
3078
- border: `1px solid ${Ki.PANEL_EDGE}`,
3079
- borderRadius: 4,
3080
- fontSize: d,
3081
- fontFamily: "m6x11plus, monospace",
3082
- cursor: i ? "not-allowed" : "pointer",
3083
- opacity: i ? .55 : 1,
3084
- appearance: "none",
3085
- backgroundImage: "linear-gradient(45deg, transparent 50%, " + Ki.GOLD_TEXT + " 50%), linear-gradient(135deg, " + Ki.GOLD_TEXT + " 50%, transparent 50%)",
3086
- backgroundPosition: "calc(100% - 12px) 50%, calc(100% - 7px) 50%",
3087
- backgroundSize: "5px 5px, 5px 5px",
3088
- backgroundRepeat: "no-repeat",
3089
- paddingRight: 22,
3090
- ...s
3091
- },
3092
- value: e,
3093
- children: [r !== void 0 && /* @__PURE__ */ b("option", {
3094
- disabled: !0,
3095
- value: "",
3096
- children: r
3097
- }), l.map((e) => /* @__PURE__ */ b("option", {
3098
- disabled: e.disabled,
3099
- value: e.value,
3100
- children: e.label ?? e.value
3101
- }, e.value))]
3336
+ //#region src/ui/JimboListItem.tsx
3337
+ var sa = s.forwardRef(function({ active: e = !1, className: t = "", children: n, ...r }, i) {
3338
+ return /* @__PURE__ */ b("button", {
3339
+ ref: i,
3340
+ type: "button",
3341
+ className: `j-list-item ${t}`.trim(),
3342
+ "data-active": e,
3343
+ ...r,
3344
+ children: n
3102
3345
  });
3103
- }
3346
+ });
3104
3347
  //#endregion
3105
- //#region src/ui/JimboStepper.tsx
3106
- function Ji({ value: e, label: t, onPrev: n, onNext: r, canPrev: i = !0, canNext: a = !0, className: o = "" }) {
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 = "" }) {
3107
3350
  return /* @__PURE__ */ x("div", {
3108
- className: `j-stepper-wrap ${o}`,
3351
+ className: `j-spinner-wrap ${o}`,
3109
3352
  children: [t && /* @__PURE__ */ b("div", {
3110
- className: "j-stepper__label",
3111
- children: /* @__PURE__ */ b(j, {
3353
+ className: "j-spinner__label",
3354
+ children: /* @__PURE__ */ b(P, {
3112
3355
  size: "sm",
3113
3356
  tone: "white",
3114
3357
  children: t
3115
3358
  })
3116
3359
  }), /* @__PURE__ */ x("div", {
3117
- className: "j-stepper",
3360
+ className: "j-spinner",
3118
3361
  children: [
3119
- /* @__PURE__ */ b(N, {
3362
+ /* @__PURE__ */ b(I, {
3120
3363
  tone: "red",
3121
3364
  size: "sm",
3122
3365
  onClick: n,
@@ -3125,14 +3368,14 @@ function Ji({ value: e, label: t, onPrev: n, onNext: r, canPrev: i = !0, canNext
3125
3368
  children: "<"
3126
3369
  }),
3127
3370
  /* @__PURE__ */ b("div", {
3128
- className: "j-stepper__value",
3129
- children: /* @__PURE__ */ b(j, {
3371
+ className: "j-spinner__value",
3372
+ children: /* @__PURE__ */ b(P, {
3130
3373
  size: "sm",
3131
3374
  tone: "white",
3132
3375
  children: e
3133
3376
  })
3134
3377
  }),
3135
- /* @__PURE__ */ b(N, {
3378
+ /* @__PURE__ */ b(I, {
3136
3379
  tone: "red",
3137
3380
  size: "sm",
3138
3381
  onClick: r,
@@ -3145,15 +3388,121 @@ function Ji({ value: e, label: t, onPrev: n, onNext: r, canPrev: i = !0, canNext
3145
3388
  });
3146
3389
  }
3147
3390
  //#endregion
3391
+ //#region src/ui/JimboSelect.tsx
3392
+ function la({ value: e, options: t, onChange: n, disabled: r = !1, label: i, "aria-label": a, style: o }) {
3393
+ 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
+ if (!l) return null;
3395
+ function u(e) {
3396
+ r || s.length === 0 || n(s[(c + e + s.length) % s.length].value);
3397
+ }
3398
+ return /* @__PURE__ */ b("div", {
3399
+ style: o,
3400
+ "aria-label": a,
3401
+ children: /* @__PURE__ */ b(ca, {
3402
+ label: i,
3403
+ value: l.label ?? l.value,
3404
+ onPrev: () => u(-1),
3405
+ onNext: () => u(1),
3406
+ canPrev: !r && s.length > 1,
3407
+ canNext: !r && s.length > 1
3408
+ })
3409
+ });
3410
+ }
3411
+ //#endregion
3412
+ //#region src/ui/JimboStepper.tsx
3413
+ function ua({ count: e, index: t, onIndexChange: n, ariaLabel: r = "Page indicator", className: i = "", style: a }) {
3414
+ if (e <= 1) return null;
3415
+ let o = !!n;
3416
+ return /* @__PURE__ */ b("div", {
3417
+ className: `j-stepper ${i}`,
3418
+ role: "tablist",
3419
+ "aria-label": r,
3420
+ style: a,
3421
+ children: Array.from({ length: e }).map((r, i) => {
3422
+ let a = i === t, s = /* @__PURE__ */ b("span", {
3423
+ className: "j-stepper__dot",
3424
+ "data-active": a,
3425
+ "aria-hidden": !0
3426
+ });
3427
+ return o ? /* @__PURE__ */ b("button", {
3428
+ type: "button",
3429
+ className: "j-stepper__hit",
3430
+ role: "tab",
3431
+ "aria-selected": a,
3432
+ "aria-label": `Page ${i + 1} of ${e}`,
3433
+ onClick: () => n?.(i),
3434
+ children: s
3435
+ }, i) : /* @__PURE__ */ b("span", {
3436
+ role: "tab",
3437
+ "aria-selected": a,
3438
+ children: s
3439
+ }, i);
3440
+ })
3441
+ });
3442
+ }
3443
+ //#endregion
3444
+ //#region src/ui/JimboValueBadge.tsx
3445
+ function da({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, unit: a, readOnly: o = !1, className: s = "", style: c }) {
3446
+ let [l, u] = v(!1), [d, f] = v(String(e)), p = _(null);
3447
+ m(() => {
3448
+ l && (p.current?.focus(), p.current?.select());
3449
+ }, [l]);
3450
+ function h() {
3451
+ f(String(e)), u(!0);
3452
+ }
3453
+ function g() {
3454
+ let e = Number(d);
3455
+ if (Number.isFinite(e)) {
3456
+ let a = Math.min(r, Math.max(n, e)), o = i > 0 ? Math.round(a / i) * i : a;
3457
+ t?.(o);
3458
+ }
3459
+ u(!1);
3460
+ }
3461
+ function y() {
3462
+ f(String(e)), u(!1);
3463
+ }
3464
+ let x = !o && !!t, S = a ? `${Math.round(e)}${a}` : String(Math.round(e));
3465
+ return l ? /* @__PURE__ */ b("div", {
3466
+ className: `j-value-badge j-value-badge--editing ${s}`,
3467
+ style: c,
3468
+ children: /* @__PURE__ */ b("input", {
3469
+ ref: p,
3470
+ className: "j-value-badge__input",
3471
+ type: "number",
3472
+ min: n,
3473
+ max: r,
3474
+ step: i,
3475
+ value: d,
3476
+ onChange: (e) => f(e.currentTarget.value),
3477
+ onBlur: g,
3478
+ onKeyDown: (e) => {
3479
+ e.key === "Enter" ? g() : e.key === "Escape" && y();
3480
+ }
3481
+ })
3482
+ }) : /* @__PURE__ */ b("button", {
3483
+ type: "button",
3484
+ className: `j-value-badge ${x ? "" : "j-value-badge--static"} ${s}`,
3485
+ style: c,
3486
+ onClick: x ? h : void 0,
3487
+ disabled: !x,
3488
+ tabIndex: x ? 0 : -1,
3489
+ children: /* @__PURE__ */ b(P, {
3490
+ size: "xs",
3491
+ tone: "white",
3492
+ children: S
3493
+ })
3494
+ });
3495
+ }
3496
+ //#endregion
3148
3497
  //#region src/ui/JimboSlider.tsx
3149
- function Yi({ value: e, min: t = 0, max: n = 100, step: r = 1, label: i, onChange: a, className: o = "", id: c }) {
3498
+ function fa({ value: e, min: t = 0, max: n = 100, step: r = 1, label: i, onChange: a, className: o = "", id: c }) {
3150
3499
  let l = n === t ? 0 : (e - t) / (n - t) * 100, u = s.useId(), d = c ?? u;
3151
3500
  return /* @__PURE__ */ x("div", {
3152
3501
  className: `j-slider-wrap ${o}`,
3153
3502
  children: [i && /* @__PURE__ */ b("label", {
3154
3503
  htmlFor: d,
3155
3504
  className: "j-slider__label",
3156
- children: /* @__PURE__ */ b(j, {
3505
+ children: /* @__PURE__ */ b(P, {
3157
3506
  size: "sm",
3158
3507
  tone: "white",
3159
3508
  children: i
@@ -3180,11 +3529,14 @@ function Yi({ value: e, min: t = 0, max: n = 100, step: r = 1, label: i, onChang
3180
3529
  onChange: (e) => a?.(Number(e.currentTarget.value))
3181
3530
  }),
3182
3531
  /* @__PURE__ */ b("div", {
3183
- className: "j-slider__value",
3184
- children: /* @__PURE__ */ b(j, {
3185
- size: "xs",
3186
- tone: "white",
3187
- children: Math.round(e)
3532
+ className: "j-slider__thumb",
3533
+ style: { left: `${l}%` },
3534
+ children: /* @__PURE__ */ b(da, {
3535
+ value: e,
3536
+ min: t,
3537
+ max: n,
3538
+ step: r,
3539
+ onChange: a
3188
3540
  })
3189
3541
  })
3190
3542
  ]
@@ -3193,19 +3545,19 @@ function Yi({ value: e, min: t = 0, max: n = 100, step: r = 1, label: i, onChang
3193
3545
  }
3194
3546
  //#endregion
3195
3547
  //#region src/ui/JimboDualChip.tsx
3196
- function Xi({ left: e, right: t, className: n = "" }) {
3548
+ function pa({ left: e, right: t, className: n = "" }) {
3197
3549
  return /* @__PURE__ */ x("div", {
3198
3550
  className: `j-dual-chip ${n}`,
3199
3551
  children: [/* @__PURE__ */ b("div", {
3200
3552
  className: `j-dual-chip__half j-dual-chip__half--left j-dual-chip__half--${e.tone}`,
3201
- children: /* @__PURE__ */ b(j, {
3553
+ children: /* @__PURE__ */ b(P, {
3202
3554
  size: "md",
3203
3555
  tone: e.tone === "gold" ? "default" : "white",
3204
3556
  children: e.value
3205
3557
  })
3206
3558
  }), /* @__PURE__ */ b("div", {
3207
3559
  className: `j-dual-chip__half j-dual-chip__half--${t.tone}`,
3208
- children: /* @__PURE__ */ b(j, {
3560
+ children: /* @__PURE__ */ b(P, {
3209
3561
  size: "md",
3210
3562
  tone: t.tone === "gold" ? "default" : "white",
3211
3563
  children: t.value
@@ -3214,8 +3566,8 @@ function Xi({ left: e, right: t, className: n = "" }) {
3214
3566
  });
3215
3567
  }
3216
3568
  //#endregion
3217
- //#region src/ui/PanelSplitter.tsx
3218
- function Zi({ orientation: e = "vertical", onDrag: t, onKeyAdjust: n, className: r = "", "aria-label": i }) {
3569
+ //#region src/ui/JimboPanelSplitter.tsx
3570
+ function ma({ orientation: e = "vertical", onDrag: t, onKeyAdjust: n, className: r = "", "aria-label": i }) {
3219
3571
  let a = _(!1), o = _(0), s = _(t);
3220
3572
  h(() => {
3221
3573
  s.current = t;
@@ -3249,6 +3601,6 @@ function Zi({ orientation: e = "vertical", onDrag: t, onKeyAdjust: n, className:
3249
3601
  });
3250
3602
  }
3251
3603
  //#endregion
3252
- export { he as A, M as B, Ee as C, be as D, Se as E, le as F, E as G, re as H, ae as I, D as K, N as L, de as M, ue as N, ye as O, se as P, ie as R, we as S, Ce as T, O as U, j as V, A as W, Me as _, qi as a, Ae as b, Ui as c, Le as d, Ie as f, Oe as g, Ne as h, Ji as i, me as j, ge as k, Hi as l, Pe as m, Xi as n, Gi as o, Fe as p, Yi as r, Wi as s, Zi as t, zi as u, ke as v, Te as w, De as x, je as y, oe as z };
3604
+ export { ae as $, ze as A, Te as B, Ye as C, Ue as D, We as E, Ne as F, ve as G, xe as H, Me as I, fe as J, _e as K, Ae as L, Fe as M, Pe as N, He as O, je as P, le as Q, De as R, qe as S, Ge as T, ye as U, we as V, be as W, de as X, P as Y, se as Z, $e as _, ua as a, Ke as b, sa as c, ot as d, oe as et, it as f, et as g, tt as h, da as i, Re as j, Be as k, oa as l, nt as m, pa as n, la as o, rt as p, I as q, fa as r, ca as s, ma as t, ia as u, Qe as v, Je as w, Xe as x, Ze as y, Ee as z };
3253
3605
 
3254
- //# sourceMappingURL=ui-DRov81qO.js.map
3606
+ //# sourceMappingURL=ui-UqEG1EZ9.js.map