@arach/arc-iso 0.4.5 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,89 +1,89 @@
1
- import un, { useState as we, useEffect as pn } from "react";
2
- const yr = 30 * (Math.PI / 180), dn = Math.cos(yr), hn = Math.sin(yr);
3
- function b(e, r, n = 0) {
1
+ import Or, { useId as Qe, useMemo as jr, useState as Le, useEffect as Fr } from "react";
2
+ const In = 30 * (Math.PI / 180), Lr = Math.cos(In), Ir = Math.sin(In);
3
+ function w(e, n, r = 0) {
4
4
  return {
5
- screenX: (e - r) * dn,
6
- screenY: -(e + r) * hn - n
5
+ screenX: (e - n) * Lr,
6
+ screenY: -(e + n) * Ir - r
7
7
  // Negated so +X,+Y go UP on screen
8
8
  };
9
9
  }
10
- function me(e, r, n, o = 0, i = 0, l = 0) {
11
- const t = {
10
+ function he(e, n, r, t = 0, i = 0, l = 0) {
11
+ const o = {
12
12
  // Bottom face
13
- frontBottom: b(e, 0, 0),
14
- rightBottom: b(e, r, 0),
15
- backBottom: b(0, r, 0),
16
- leftBottom: b(0, 0, 0),
13
+ frontBottom: w(e, 0, 0),
14
+ rightBottom: w(e, n, 0),
15
+ backBottom: w(0, n, 0),
16
+ leftBottom: w(0, 0, 0),
17
17
  // Top face
18
- frontTop: b(e, 0, n),
19
- rightTop: b(e, r, n),
20
- backTop: b(0, r, n),
21
- leftTop: b(0, 0, n)
22
- }, a = ($) => ({
23
- x: $.screenX + o,
24
- y: $.screenY + i
18
+ frontTop: w(e, 0, r),
19
+ rightTop: w(e, n, r),
20
+ backTop: w(0, n, r),
21
+ leftTop: w(0, 0, r)
22
+ }, a = (E) => ({
23
+ x: E.screenX + t,
24
+ y: E.screenY + i
25
25
  }), c = Object.fromEntries(
26
- Object.entries(t).map(([$, F]) => [$, a(F)])
27
- ), s = ($, F, j, T) => {
28
- if (T <= 0) {
29
- const k = b(0, 0, j), C = b($, 0, j), S = b($, F, j), P = b(0, F, j);
30
- return `M ${k.screenX + o},${k.screenY + i} L ${C.screenX + o},${C.screenY + i} L ${S.screenX + o},${S.screenY + i} L ${P.screenX + o},${P.screenY + i} Z`;
26
+ Object.entries(o).map(([E, j]) => [E, a(j)])
27
+ ), s = (E, j, R, $) => {
28
+ if ($ <= 0) {
29
+ const J = w(0, 0, R), q = w(E, 0, R), T = w(E, j, R), W = w(0, j, R);
30
+ return `M ${J.screenX + t},${J.screenY + i} L ${q.screenX + t},${q.screenY + i} L ${T.screenX + t},${T.screenY + i} L ${W.screenX + t},${W.screenY + i} Z`;
31
31
  }
32
- const H = Math.min($, F) / 2, M = Math.min(T, H), O = 8, R = [], V = (k, C, S, P) => {
33
- for (let Y = 0; Y <= O; Y++) {
34
- const Z = S + (P - S) * (Y / O), te = k + M * Math.cos(Z), p = C + M * Math.sin(Z), _ = b(te, p, j);
35
- R.push(`${_.screenX + o},${_.screenY + i}`);
32
+ const B = Math.min(E, j) / 2, N = Math.min($, B), I = 8, M = [], ne = (J, q, T, W) => {
33
+ for (let Q = 0; Q <= I; Q++) {
34
+ const O = T + (W - T) * (Q / I), S = J + N * Math.cos(O), h = q + N * Math.sin(O), k = w(S, h, R);
35
+ M.push(`${k.screenX + t},${k.screenY + i}`);
36
36
  }
37
37
  };
38
- return V(M, M, Math.PI, Math.PI * 1.5), V($ - M, M, Math.PI * 1.5, Math.PI * 2), V($ - M, F - M, 0, Math.PI * 0.5), V(M, F - M, Math.PI * 0.5, Math.PI), `M ${R[0]} L ${R.slice(1).join(" L ")} Z`;
39
- }, h = ($) => `M ${$.map((F) => `${F.x},${F.y}`).join(" L ")} Z`, d = ($, F, j, T, H, M) => {
40
- const R = [];
41
- for (let S = 0; S < 6; S++) {
42
- const P = H + (M - H) * (S / 6), Y = H + (M - H) * ((S + 1) / 6), Z = (P + Y) / 2, te = Math.cos(Z), p = Math.sin(Z), I = te * -0.577 + p * -0.577 + 0 * 0.577, le = 0.3 + Math.max(0, I + 0.4) * 0.5, Q = b($ + j * Math.cos(P), F + j * Math.sin(P), 0), L = b($ + j * Math.cos(Y), F + j * Math.sin(Y), 0), E = b($ + j * Math.cos(P), F + j * Math.sin(P), T), W = b($ + j * Math.cos(Y), F + j * Math.sin(Y), T), se = `M ${Q.screenX + o},${Q.screenY + i} L ${L.screenX + o},${L.screenY + i} L ${W.screenX + o},${W.screenY + i} L ${E.screenX + o},${E.screenY + i} Z`;
43
- R.push({ path: se, intensity: le });
38
+ return ne(N, N, Math.PI, Math.PI * 1.5), ne(E - N, N, Math.PI * 1.5, Math.PI * 2), ne(E - N, j - N, 0, Math.PI * 0.5), ne(N, j - N, Math.PI * 0.5, Math.PI), `M ${M[0]} L ${M.slice(1).join(" L ")} Z`;
39
+ }, u = (E) => `M ${E.map((j) => `${j.x},${j.y}`).join(" L ")} Z`, x = (E, j, R, $, B, N) => {
40
+ const M = [];
41
+ for (let T = 0; T < 6; T++) {
42
+ const W = B + (N - B) * (T / 6), Q = B + (N - B) * ((T + 1) / 6), O = (W + Q) / 2, S = Math.cos(O), h = Math.sin(O), F = S * -0.577 + h * -0.577 + 0 * 0.577, ce = 0.3 + Math.max(0, F + 0.4) * 0.5, se = w(E + R * Math.cos(W), j + R * Math.sin(W), 0), P = w(E + R * Math.cos(Q), j + R * Math.sin(Q), 0), ie = w(E + R * Math.cos(W), j + R * Math.sin(W), $), le = w(E + R * Math.cos(Q), j + R * Math.sin(Q), $), ke = `M ${se.screenX + t},${se.screenY + i} L ${P.screenX + t},${P.screenY + i} L ${le.screenX + t},${le.screenY + i} L ${ie.screenX + t},${ie.screenY + i} Z`;
43
+ M.push({ path: ke, intensity: ce });
44
44
  }
45
- return R;
46
- }, u = Math.min(l, Math.min(e, r) / 2), f = s(e, r, n, u);
47
- let m, x, v, A, w, X;
48
- if (u > 0) {
49
- const $ = [
50
- { x: b(0, u, 0).screenX + o, y: b(0, u, 0).screenY + i },
51
- { x: b(0, r - u, 0).screenX + o, y: b(0, r - u, 0).screenY + i },
52
- { x: b(0, r - u, n).screenX + o, y: b(0, r - u, n).screenY + i },
53
- { x: b(0, u, n).screenX + o, y: b(0, u, n).screenY + i }
45
+ return M;
46
+ }, p = Math.min(l, Math.min(e, n) / 2), f = s(e, n, r, p);
47
+ let m, y, A, v, b, D;
48
+ if (p > 0) {
49
+ const E = [
50
+ { x: w(0, p, 0).screenX + t, y: w(0, p, 0).screenY + i },
51
+ { x: w(0, n - p, 0).screenX + t, y: w(0, n - p, 0).screenY + i },
52
+ { x: w(0, n - p, r).screenX + t, y: w(0, n - p, r).screenY + i },
53
+ { x: w(0, p, r).screenX + t, y: w(0, p, r).screenY + i }
54
54
  ];
55
- m = h($);
56
- const F = [
57
- { x: b(u, 0, 0).screenX + o, y: b(u, 0, 0).screenY + i },
58
- { x: b(e - u, 0, 0).screenX + o, y: b(e - u, 0, 0).screenY + i },
59
- { x: b(e - u, 0, n).screenX + o, y: b(e - u, 0, n).screenY + i },
60
- { x: b(u, 0, n).screenX + o, y: b(u, 0, n).screenY + i }
55
+ m = u(E);
56
+ const j = [
57
+ { x: w(p, 0, 0).screenX + t, y: w(p, 0, 0).screenY + i },
58
+ { x: w(e - p, 0, 0).screenX + t, y: w(e - p, 0, 0).screenY + i },
59
+ { x: w(e - p, 0, r).screenX + t, y: w(e - p, 0, r).screenY + i },
60
+ { x: w(p, 0, r).screenX + t, y: w(p, 0, r).screenY + i }
61
61
  ];
62
- x = h(F), v = d(u, u, u, n, Math.PI, Math.PI * 1.5), A = d(e - u, u, u, n, Math.PI * 1.5, Math.PI * 2), w = d(u, r - u, u, n, Math.PI * 0.5, Math.PI), X = d(e - u, r - u, u, n, 0, Math.PI * 0.5);
62
+ y = u(j), A = x(p, p, p, r, Math.PI, Math.PI * 1.5), v = x(e - p, p, p, r, Math.PI * 1.5, Math.PI * 2), b = x(p, n - p, p, r, Math.PI * 0.5, Math.PI), D = x(e - p, n - p, p, r, 0, Math.PI * 0.5);
63
63
  } else {
64
- const $ = [c.leftBottom, c.backBottom, c.backTop, c.leftTop], F = [c.leftBottom, c.frontBottom, c.frontTop, c.leftTop];
65
- m = h($), x = h(F), v = [], A = [], w = [], X = [];
64
+ const E = [c.leftBottom, c.backBottom, c.backTop, c.leftTop], j = [c.leftBottom, c.frontBottom, c.frontTop, c.leftTop];
65
+ m = u(E), y = u(j), A = [], v = [], b = [], D = [];
66
66
  }
67
- const oe = `M ${c.leftBottom.x},${c.leftBottom.y} L ${c.frontBottom.x},${c.frontBottom.y} L ${c.rightBottom.x},${c.rightBottom.y} L ${c.backBottom.x},${c.backBottom.y} Z`;
67
+ const L = `M ${c.leftBottom.x},${c.leftBottom.y} L ${c.frontBottom.x},${c.frontBottom.y} L ${c.rightBottom.x},${c.rightBottom.y} L ${c.backBottom.x},${c.backBottom.y} Z`;
68
68
  return {
69
69
  top: f,
70
70
  left: m,
71
- right: x,
72
- cornerFrontLeft: v,
73
- cornerFrontRight: A,
74
- cornerBackLeft: w,
75
- cornerBackRight: X,
76
- outline: oe
71
+ right: y,
72
+ cornerFrontLeft: A,
73
+ cornerFrontRight: v,
74
+ cornerBackLeft: b,
75
+ cornerBackRight: D,
76
+ outline: L
77
77
  };
78
78
  }
79
- function mn(e, r = 60, n = 50) {
79
+ function Rr(e, n = 60, r = 50) {
80
80
  return {
81
- top: `hsl(${e}, ${r}%, ${Math.min(n + 15, 95)}%)`,
82
- right: `hsl(${e}, ${r}%, ${n}%)`,
83
- left: `hsl(${e}, ${r}%, ${Math.max(n - 15, 15)}%)`
81
+ top: `hsl(${e}, ${n}%, ${Math.min(r + 15, 95)}%)`,
82
+ right: `hsl(${e}, ${n}%, ${r}%)`,
83
+ left: `hsl(${e}, ${n}%, ${Math.max(r - 15, 15)}%)`
84
84
  };
85
85
  }
86
- const Ze = {
86
+ const un = {
87
87
  violet: { hue: 270, saturation: 60, lightness: 55 },
88
88
  blue: { hue: 220, saturation: 70, lightness: 50 },
89
89
  cyan: { hue: 190, saturation: 80, lightness: 45 },
@@ -93,271 +93,842 @@ const Ze = {
93
93
  slate: { hue: 220, saturation: 15, lightness: 50 },
94
94
  zinc: { hue: 240, saturation: 5, lightness: 50 }
95
95
  };
96
- function Qo(e) {
97
- const r = Ze[e] || Ze.slate;
98
- return mn(r.hue, r.saturation, r.lightness);
99
- }
100
- var Ee = { exports: {} }, ge = {};
101
- var Qe;
102
- function xn() {
103
- if (Qe) return ge;
104
- Qe = 1;
105
- var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), r = /* @__PURE__ */ Symbol.for("react.fragment");
106
- function n(o, i, l) {
107
- var t = null;
108
- if (l !== void 0 && (t = "" + l), i.key !== void 0 && (t = "" + i.key), "key" in i) {
96
+ function Mo(e) {
97
+ const n = un[e] || un.slate;
98
+ return Rr(n.hue, n.saturation, n.lightness);
99
+ }
100
+ var Ie = { exports: {} }, Se = {};
101
+ var pn;
102
+ function Mr() {
103
+ if (pn) return Se;
104
+ pn = 1;
105
+ var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), n = /* @__PURE__ */ Symbol.for("react.fragment");
106
+ function r(t, i, l) {
107
+ var o = null;
108
+ if (l !== void 0 && (o = "" + l), i.key !== void 0 && (o = "" + i.key), "key" in i) {
109
109
  l = {};
110
110
  for (var a in i)
111
111
  a !== "key" && (l[a] = i[a]);
112
112
  } else l = i;
113
113
  return i = l.ref, {
114
114
  $$typeof: e,
115
- type: o,
116
- key: t,
115
+ type: t,
116
+ key: o,
117
117
  ref: i !== void 0 ? i : null,
118
118
  props: l
119
119
  };
120
120
  }
121
- return ge.Fragment = r, ge.jsx = n, ge.jsxs = n, ge;
122
- }
123
- var ye = {};
124
- var Je;
125
- function gn() {
126
- return Je || (Je = 1, process.env.NODE_ENV !== "production" && (function() {
127
- function e(p) {
128
- if (p == null) return null;
129
- if (typeof p == "function")
130
- return p.$$typeof === O ? null : p.displayName || p.name || null;
131
- if (typeof p == "string") return p;
132
- switch (p) {
133
- case v:
121
+ return Se.Fragment = n, Se.jsx = r, Se.jsxs = r, Se;
122
+ }
123
+ var we = {};
124
+ var dn;
125
+ function Nr() {
126
+ return dn || (dn = 1, process.env.NODE_ENV !== "production" && (function() {
127
+ function e(h) {
128
+ if (h == null) return null;
129
+ if (typeof h == "function")
130
+ return h.$$typeof === I ? null : h.displayName || h.name || null;
131
+ if (typeof h == "string") return h;
132
+ switch (h) {
133
+ case A:
134
134
  return "Fragment";
135
- case w:
135
+ case b:
136
136
  return "Profiler";
137
- case A:
137
+ case v:
138
138
  return "StrictMode";
139
- case F:
140
- return "Suspense";
141
139
  case j:
140
+ return "Suspense";
141
+ case R:
142
142
  return "SuspenseList";
143
- case M:
143
+ case N:
144
144
  return "Activity";
145
145
  }
146
- if (typeof p == "object")
147
- switch (typeof p.tag == "number" && console.error(
146
+ if (typeof h == "object")
147
+ switch (typeof h.tag == "number" && console.error(
148
148
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
149
- ), p.$$typeof) {
150
- case x:
149
+ ), h.$$typeof) {
150
+ case y:
151
151
  return "Portal";
152
- case oe:
153
- return p.displayName || "Context";
154
- case X:
155
- return (p._context.displayName || "Context") + ".Consumer";
152
+ case L:
153
+ return h.displayName || "Context";
154
+ case D:
155
+ return (h._context.displayName || "Context") + ".Consumer";
156
+ case E:
157
+ var k = h.render;
158
+ return h = h.displayName, h || (h = k.displayName || k.name || "", h = h !== "" ? "ForwardRef(" + h + ")" : "ForwardRef"), h;
156
159
  case $:
157
- var _ = p.render;
158
- return p = p.displayName, p || (p = _.displayName || _.name || "", p = p !== "" ? "ForwardRef(" + p + ")" : "ForwardRef"), p;
159
- case T:
160
- return _ = p.displayName || null, _ !== null ? _ : e(p.type) || "Memo";
161
- case H:
162
- _ = p._payload, p = p._init;
160
+ return k = h.displayName || null, k !== null ? k : e(h.type) || "Memo";
161
+ case B:
162
+ k = h._payload, h = h._init;
163
163
  try {
164
- return e(p(_));
164
+ return e(h(k));
165
165
  } catch {
166
166
  }
167
167
  }
168
168
  return null;
169
169
  }
170
- function r(p) {
171
- return "" + p;
170
+ function n(h) {
171
+ return "" + h;
172
172
  }
173
- function n(p) {
173
+ function r(h) {
174
174
  try {
175
- r(p);
176
- var _ = !1;
175
+ n(h);
176
+ var k = !1;
177
177
  } catch {
178
- _ = !0;
178
+ k = !0;
179
179
  }
180
- if (_) {
181
- _ = console;
182
- var I = _.error, N = typeof Symbol == "function" && Symbol.toStringTag && p[Symbol.toStringTag] || p.constructor.name || "Object";
183
- return I.call(
184
- _,
180
+ if (k) {
181
+ k = console;
182
+ var F = k.error, Y = typeof Symbol == "function" && Symbol.toStringTag && h[Symbol.toStringTag] || h.constructor.name || "Object";
183
+ return F.call(
184
+ k,
185
185
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
186
- N
187
- ), r(p);
186
+ Y
187
+ ), n(h);
188
188
  }
189
189
  }
190
- function o(p) {
191
- if (p === v) return "<>";
192
- if (typeof p == "object" && p !== null && p.$$typeof === H)
190
+ function t(h) {
191
+ if (h === A) return "<>";
192
+ if (typeof h == "object" && h !== null && h.$$typeof === B)
193
193
  return "<...>";
194
194
  try {
195
- var _ = e(p);
196
- return _ ? "<" + _ + ">" : "<...>";
195
+ var k = e(h);
196
+ return k ? "<" + k + ">" : "<...>";
197
197
  } catch {
198
198
  return "<...>";
199
199
  }
200
200
  }
201
201
  function i() {
202
- var p = R.A;
203
- return p === null ? null : p.getOwner();
202
+ var h = M.A;
203
+ return h === null ? null : h.getOwner();
204
204
  }
205
205
  function l() {
206
206
  return Error("react-stack-top-frame");
207
207
  }
208
- function t(p) {
209
- if (V.call(p, "key")) {
210
- var _ = Object.getOwnPropertyDescriptor(p, "key").get;
211
- if (_ && _.isReactWarning) return !1;
208
+ function o(h) {
209
+ if (ne.call(h, "key")) {
210
+ var k = Object.getOwnPropertyDescriptor(h, "key").get;
211
+ if (k && k.isReactWarning) return !1;
212
212
  }
213
- return p.key !== void 0;
213
+ return h.key !== void 0;
214
214
  }
215
- function a(p, _) {
216
- function I() {
217
- S || (S = !0, console.error(
215
+ function a(h, k) {
216
+ function F() {
217
+ T || (T = !0, console.error(
218
218
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
219
- _
219
+ k
220
220
  ));
221
221
  }
222
- I.isReactWarning = !0, Object.defineProperty(p, "key", {
223
- get: I,
222
+ F.isReactWarning = !0, Object.defineProperty(h, "key", {
223
+ get: F,
224
224
  configurable: !0
225
225
  });
226
226
  }
227
227
  function c() {
228
- var p = e(this.type);
229
- return P[p] || (P[p] = !0, console.error(
228
+ var h = e(this.type);
229
+ return W[h] || (W[h] = !0, console.error(
230
230
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
231
- )), p = this.props.ref, p !== void 0 ? p : null;
231
+ )), h = this.props.ref, h !== void 0 ? h : null;
232
232
  }
233
- function s(p, _, I, N, le, Q) {
234
- var L = I.ref;
235
- return p = {
233
+ function s(h, k, F, Y, ce, se) {
234
+ var P = F.ref;
235
+ return h = {
236
236
  $$typeof: m,
237
- type: p,
238
- key: _,
239
- props: I,
240
- _owner: N
241
- }, (L !== void 0 ? L : null) !== null ? Object.defineProperty(p, "ref", {
237
+ type: h,
238
+ key: k,
239
+ props: F,
240
+ _owner: Y
241
+ }, (P !== void 0 ? P : null) !== null ? Object.defineProperty(h, "ref", {
242
242
  enumerable: !1,
243
243
  get: c
244
- }) : Object.defineProperty(p, "ref", { enumerable: !1, value: null }), p._store = {}, Object.defineProperty(p._store, "validated", {
244
+ }) : Object.defineProperty(h, "ref", { enumerable: !1, value: null }), h._store = {}, Object.defineProperty(h._store, "validated", {
245
245
  configurable: !1,
246
246
  enumerable: !1,
247
247
  writable: !0,
248
248
  value: 0
249
- }), Object.defineProperty(p, "_debugInfo", {
249
+ }), Object.defineProperty(h, "_debugInfo", {
250
250
  configurable: !1,
251
251
  enumerable: !1,
252
252
  writable: !0,
253
253
  value: null
254
- }), Object.defineProperty(p, "_debugStack", {
254
+ }), Object.defineProperty(h, "_debugStack", {
255
255
  configurable: !1,
256
256
  enumerable: !1,
257
257
  writable: !0,
258
- value: le
259
- }), Object.defineProperty(p, "_debugTask", {
258
+ value: ce
259
+ }), Object.defineProperty(h, "_debugTask", {
260
260
  configurable: !1,
261
261
  enumerable: !1,
262
262
  writable: !0,
263
- value: Q
264
- }), Object.freeze && (Object.freeze(p.props), Object.freeze(p)), p;
263
+ value: se
264
+ }), Object.freeze && (Object.freeze(h.props), Object.freeze(h)), h;
265
265
  }
266
- function h(p, _, I, N, le, Q) {
267
- var L = _.children;
268
- if (L !== void 0)
269
- if (N)
270
- if (k(L)) {
271
- for (N = 0; N < L.length; N++)
272
- d(L[N]);
273
- Object.freeze && Object.freeze(L);
266
+ function u(h, k, F, Y, ce, se) {
267
+ var P = k.children;
268
+ if (P !== void 0)
269
+ if (Y)
270
+ if (J(P)) {
271
+ for (Y = 0; Y < P.length; Y++)
272
+ x(P[Y]);
273
+ Object.freeze && Object.freeze(P);
274
274
  } else
275
275
  console.error(
276
276
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
277
277
  );
278
- else d(L);
279
- if (V.call(_, "key")) {
280
- L = e(p);
281
- var E = Object.keys(_).filter(function(se) {
282
- return se !== "key";
278
+ else x(P);
279
+ if (ne.call(k, "key")) {
280
+ P = e(h);
281
+ var ie = Object.keys(k).filter(function(ke) {
282
+ return ke !== "key";
283
283
  });
284
- N = 0 < E.length ? "{key: someKey, " + E.join(": ..., ") + ": ...}" : "{key: someKey}", te[L + N] || (E = 0 < E.length ? "{" + E.join(": ..., ") + ": ...}" : "{}", console.error(
284
+ Y = 0 < ie.length ? "{key: someKey, " + ie.join(": ..., ") + ": ...}" : "{key: someKey}", S[P + Y] || (ie = 0 < ie.length ? "{" + ie.join(": ..., ") + ": ...}" : "{}", console.error(
285
285
  `A props object containing a "key" prop is being spread into JSX:
286
286
  let props = %s;
287
287
  <%s {...props} />
288
288
  React keys must be passed directly to JSX without using spread:
289
289
  let props = %s;
290
290
  <%s key={someKey} {...props} />`,
291
- N,
292
- L,
293
- E,
294
- L
295
- ), te[L + N] = !0);
291
+ Y,
292
+ P,
293
+ ie,
294
+ P
295
+ ), S[P + Y] = !0);
296
296
  }
297
- if (L = null, I !== void 0 && (n(I), L = "" + I), t(_) && (n(_.key), L = "" + _.key), "key" in _) {
298
- I = {};
299
- for (var W in _)
300
- W !== "key" && (I[W] = _[W]);
301
- } else I = _;
302
- return L && a(
303
- I,
304
- typeof p == "function" ? p.displayName || p.name || "Unknown" : p
297
+ if (P = null, F !== void 0 && (r(F), P = "" + F), o(k) && (r(k.key), P = "" + k.key), "key" in k) {
298
+ F = {};
299
+ for (var le in k)
300
+ le !== "key" && (F[le] = k[le]);
301
+ } else F = k;
302
+ return P && a(
303
+ F,
304
+ typeof h == "function" ? h.displayName || h.name || "Unknown" : h
305
305
  ), s(
306
- p,
307
- L,
308
- I,
306
+ h,
307
+ P,
308
+ F,
309
309
  i(),
310
- le,
311
- Q
310
+ ce,
311
+ se
312
312
  );
313
313
  }
314
- function d(p) {
315
- u(p) ? p._store && (p._store.validated = 1) : typeof p == "object" && p !== null && p.$$typeof === H && (p._payload.status === "fulfilled" ? u(p._payload.value) && p._payload.value._store && (p._payload.value._store.validated = 1) : p._store && (p._store.validated = 1));
314
+ function x(h) {
315
+ p(h) ? h._store && (h._store.validated = 1) : typeof h == "object" && h !== null && h.$$typeof === B && (h._payload.status === "fulfilled" ? p(h._payload.value) && h._payload.value._store && (h._payload.value._store.validated = 1) : h._store && (h._store.validated = 1));
316
316
  }
317
- function u(p) {
318
- return typeof p == "object" && p !== null && p.$$typeof === m;
317
+ function p(h) {
318
+ return typeof h == "object" && h !== null && h.$$typeof === m;
319
319
  }
320
- var f = un, m = /* @__PURE__ */ Symbol.for("react.transitional.element"), x = /* @__PURE__ */ Symbol.for("react.portal"), v = /* @__PURE__ */ Symbol.for("react.fragment"), A = /* @__PURE__ */ Symbol.for("react.strict_mode"), w = /* @__PURE__ */ Symbol.for("react.profiler"), X = /* @__PURE__ */ Symbol.for("react.consumer"), oe = /* @__PURE__ */ Symbol.for("react.context"), $ = /* @__PURE__ */ Symbol.for("react.forward_ref"), F = /* @__PURE__ */ Symbol.for("react.suspense"), j = /* @__PURE__ */ Symbol.for("react.suspense_list"), T = /* @__PURE__ */ Symbol.for("react.memo"), H = /* @__PURE__ */ Symbol.for("react.lazy"), M = /* @__PURE__ */ Symbol.for("react.activity"), O = /* @__PURE__ */ Symbol.for("react.client.reference"), R = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, V = Object.prototype.hasOwnProperty, k = Array.isArray, C = console.createTask ? console.createTask : function() {
320
+ var f = Or, m = /* @__PURE__ */ Symbol.for("react.transitional.element"), y = /* @__PURE__ */ Symbol.for("react.portal"), A = /* @__PURE__ */ Symbol.for("react.fragment"), v = /* @__PURE__ */ Symbol.for("react.strict_mode"), b = /* @__PURE__ */ Symbol.for("react.profiler"), D = /* @__PURE__ */ Symbol.for("react.consumer"), L = /* @__PURE__ */ Symbol.for("react.context"), E = /* @__PURE__ */ Symbol.for("react.forward_ref"), j = /* @__PURE__ */ Symbol.for("react.suspense"), R = /* @__PURE__ */ Symbol.for("react.suspense_list"), $ = /* @__PURE__ */ Symbol.for("react.memo"), B = /* @__PURE__ */ Symbol.for("react.lazy"), N = /* @__PURE__ */ Symbol.for("react.activity"), I = /* @__PURE__ */ Symbol.for("react.client.reference"), M = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ne = Object.prototype.hasOwnProperty, J = Array.isArray, q = console.createTask ? console.createTask : function() {
321
321
  return null;
322
322
  };
323
323
  f = {
324
- react_stack_bottom_frame: function(p) {
325
- return p();
324
+ react_stack_bottom_frame: function(h) {
325
+ return h();
326
326
  }
327
327
  };
328
- var S, P = {}, Y = f.react_stack_bottom_frame.bind(
328
+ var T, W = {}, Q = f.react_stack_bottom_frame.bind(
329
329
  f,
330
330
  l
331
- )(), Z = C(o(l)), te = {};
332
- ye.Fragment = v, ye.jsx = function(p, _, I) {
333
- var N = 1e4 > R.recentlyCreatedOwnerStacks++;
334
- return h(
335
- p,
336
- _,
337
- I,
331
+ )(), O = q(t(l)), S = {};
332
+ we.Fragment = A, we.jsx = function(h, k, F) {
333
+ var Y = 1e4 > M.recentlyCreatedOwnerStacks++;
334
+ return u(
335
+ h,
336
+ k,
337
+ F,
338
338
  !1,
339
- N ? Error("react-stack-top-frame") : Y,
340
- N ? C(o(p)) : Z
339
+ Y ? Error("react-stack-top-frame") : Q,
340
+ Y ? q(t(h)) : O
341
341
  );
342
- }, ye.jsxs = function(p, _, I) {
343
- var N = 1e4 > R.recentlyCreatedOwnerStacks++;
344
- return h(
345
- p,
346
- _,
347
- I,
342
+ }, we.jsxs = function(h, k, F) {
343
+ var Y = 1e4 > M.recentlyCreatedOwnerStacks++;
344
+ return u(
345
+ h,
346
+ k,
347
+ F,
348
348
  !0,
349
- N ? Error("react-stack-top-frame") : Y,
350
- N ? C(o(p)) : Z
349
+ Y ? Error("react-stack-top-frame") : Q,
350
+ Y ? q(t(h)) : O
351
351
  );
352
352
  };
353
- })()), ye;
353
+ })()), we;
354
+ }
355
+ var hn;
356
+ function Pr() {
357
+ return hn || (hn = 1, process.env.NODE_ENV === "production" ? Ie.exports = Mr() : Ie.exports = Nr()), Ie.exports;
358
+ }
359
+ var d = Pr();
360
+ const en = '"JetBrains Mono", "IBM Plex Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace', Dr = 0.78, g = (e) => Math.round(e * Dr * 10) / 10, Rn = {
361
+ id: "solid",
362
+ name: "Solid",
363
+ description: "Shaded isometric boxes",
364
+ technical: !1,
365
+ paper: { from: "transparent", to: "transparent", edge: "transparent", grid: "transparent", grain: 0 },
366
+ ink: {
367
+ line: "rgba(0,0,0,0.3)",
368
+ hidden: "rgba(0,0,0,0.2)",
369
+ hatch: "transparent",
370
+ text: "#ffffff",
371
+ muted: "rgba(255,255,255,0.6)",
372
+ accent: "#3b82f6"
373
+ },
374
+ face: { top: "transparent", right: "transparent", left: "transparent" },
375
+ hatchOpacity: { top: 0, right: 0, left: 0 },
376
+ font: en,
377
+ strokeWidth: 0.5
378
+ }, Yr = {
379
+ id: "blueprint",
380
+ name: "Blueprint",
381
+ description: "Sepia engineering plate on parchment",
382
+ technical: !0,
383
+ paper: { from: "#f0e6d0", to: "#ddceac", edge: "#b09a74", grid: "#c6b48f", grain: 0.055 },
384
+ ink: {
385
+ line: "#4a3826",
386
+ hidden: "#96805f",
387
+ hatch: "#6d563c",
388
+ text: "#3b2c1d",
389
+ muted: "#8a7455",
390
+ accent: "#a8412a"
391
+ },
392
+ face: { top: "#f4ebd7", right: "#e6dabb", left: "#d6c6a2" },
393
+ hatchOpacity: { top: 0.3, right: 0.55, left: 0.85 },
394
+ font: en,
395
+ strokeWidth: 1
396
+ }, Br = {
397
+ id: "cyanotype",
398
+ name: "Cyanotype",
399
+ description: "White linework on classic blueprint blue",
400
+ technical: !0,
401
+ paper: { from: "#123256", to: "#0b1f3a", edge: "#3f6d9f", grid: "#27507f", grain: 0.07 },
402
+ ink: {
403
+ line: "#e6f0fb",
404
+ hidden: "#78a2cc",
405
+ hatch: "#a6c6e5",
406
+ text: "#f2f8ff",
407
+ muted: "#8fb2d6",
408
+ accent: "#ffc857"
409
+ },
410
+ face: { top: "#1b4675", right: "#153a61", left: "#0f2b49" },
411
+ hatchOpacity: { top: 0.28, right: 0.5, left: 0.78 },
412
+ font: en,
413
+ strokeWidth: 1
414
+ }, Wr = { solid: Rn, blueprint: Yr, cyanotype: Br };
415
+ function Hr(e) {
416
+ return Wr[e] || Rn;
417
+ }
418
+ const Ur = {
419
+ violet: "cross",
420
+ blue: "lines",
421
+ sky: "lines",
422
+ cyan: "dashes",
423
+ emerald: "dots",
424
+ amber: "dense",
425
+ orange: "dense",
426
+ rose: "cross",
427
+ zinc: "plain",
428
+ slate: "plain"
429
+ };
430
+ function Mn(e) {
431
+ return Ur[e || "zinc"] || "lines";
432
+ }
433
+ const Xr = {
434
+ plain: "PLAIN",
435
+ lines: "HATCH-A",
436
+ cross: "HATCH-X",
437
+ dense: "HATCH-D",
438
+ dots: "STIPPLE",
439
+ dashes: "BROKEN"
440
+ };
441
+ function xn(e, n, r, t = 0, i = 0) {
442
+ const l = (v, b, D) => {
443
+ const L = w(v, b, D);
444
+ return { x: L.screenX + t, y: L.screenY + i };
445
+ }, o = l(0, 0, 0), a = l(e, 0, 0), c = l(e, n, 0), s = l(0, n, 0), u = l(0, 0, r), x = l(e, 0, r), p = l(e, n, r), f = l(0, n, r), m = (v) => `M ${v.map((b) => `${b.x},${b.y}`).join(" L ")} Z`, y = (v, b) => `M ${v.x},${v.y} L ${b.x},${b.y}`, A = [o, a, c, s, u, x, p, f];
446
+ return {
447
+ top: m([u, x, p, f]),
448
+ right: m([o, a, x, u]),
449
+ left: m([o, s, f, u]),
450
+ visible: [
451
+ // silhouette
452
+ m([o, a, x, p, f, s]),
453
+ // interior creases radiating from the near top corner
454
+ y(u, x),
455
+ y(u, f),
456
+ y(u, o)
457
+ ].join(" "),
458
+ hidden: [y(c, a), y(c, s), y(c, p)].join(" "),
459
+ topCenter: { x: (u.x + p.x) / 2, y: (u.y + p.y) / 2 },
460
+ topApex: { x: p.x, y: p.y },
461
+ minX: Math.min(...A.map((v) => v.x)),
462
+ minY: Math.min(...A.map((v) => v.y)),
463
+ maxX: Math.max(...A.map((v) => v.x)),
464
+ maxY: Math.max(...A.map((v) => v.y))
465
+ };
466
+ }
467
+ function Pe(e) {
468
+ return String(e).padStart(2, "0");
469
+ }
470
+ const Gr = {
471
+ top: ["n30", "p30"],
472
+ right: ["n30", "v"],
473
+ left: ["p30", "v"]
474
+ }, zr = { n30: -30, p30: 30, v: 90 }, qr = [
475
+ { key: "line", spacing: 6.2, strokeWidth: 0.55 },
476
+ { key: "dense", spacing: 3.1, strokeWidth: 0.45 },
477
+ { key: "dash", spacing: 6.2, strokeWidth: 0.55, dash: "2.6 2.6" }
478
+ ], Ee = 22;
479
+ function Nn(e, n, r) {
480
+ const [t, i] = Gr[r];
481
+ switch (n) {
482
+ case "plain":
483
+ return [];
484
+ case "lines":
485
+ return [`${e}-line-${t}`];
486
+ case "cross":
487
+ return [`${e}-line-${t}`, `${e}-line-${i}`];
488
+ case "dense":
489
+ return [`${e}-dense-${t}`];
490
+ case "dashes":
491
+ return [`${e}-dash-${t}`];
492
+ case "dots":
493
+ return [`${e}-dot`];
494
+ default:
495
+ return [`${e}-line-${t}`];
496
+ }
497
+ }
498
+ const Pn = (e) => `${e}-paper`, Dn = (e) => `${e}-grain`, Kr = (e, n = "line") => `${e}-arrow-${n}`, Vr = (e) => [`${e}-grid-n30`, `${e}-grid-p30`];
499
+ function nn({
500
+ uid: e,
501
+ style: n,
502
+ /** Extra transform applied to the graph-paper grid, so it can be pinned to
503
+ * panned/zoomed content while the paper itself fills the viewport. */
504
+ gridTransform: r = ""
505
+ }) {
506
+ return /* @__PURE__ */ d.jsxs("defs", { children: [
507
+ qr.flatMap(
508
+ (t) => Object.entries(zr).map(([i, l]) => /* @__PURE__ */ d.jsx(
509
+ "pattern",
510
+ {
511
+ id: `${e}-${t.key}-${i}`,
512
+ width: t.spacing,
513
+ height: t.spacing,
514
+ patternUnits: "userSpaceOnUse",
515
+ patternTransform: `rotate(${l})`,
516
+ children: /* @__PURE__ */ d.jsx(
517
+ "line",
518
+ {
519
+ x1: -1,
520
+ y1: t.spacing / 2,
521
+ x2: t.spacing + 1,
522
+ y2: t.spacing / 2,
523
+ stroke: n.ink.hatch,
524
+ strokeWidth: t.strokeWidth,
525
+ strokeDasharray: t.dash
526
+ }
527
+ )
528
+ },
529
+ `${t.key}-${i}`
530
+ ))
531
+ ),
532
+ /* @__PURE__ */ d.jsx("pattern", { id: `${e}-dot`, width: 4.5, height: 4.5, patternUnits: "userSpaceOnUse", children: /* @__PURE__ */ d.jsx("circle", { cx: 2.25, cy: 2.25, r: 0.55, fill: n.ink.hatch }) }),
533
+ [
534
+ { id: `${e}-grid-n30`, angle: -30 },
535
+ { id: `${e}-grid-p30`, angle: 30 }
536
+ ].map(({ id: t, angle: i }) => /* @__PURE__ */ d.jsx(
537
+ "pattern",
538
+ {
539
+ id: t,
540
+ width: Ee,
541
+ height: Ee,
542
+ patternUnits: "userSpaceOnUse",
543
+ patternTransform: `${r} rotate(${i})`.trim(),
544
+ children: /* @__PURE__ */ d.jsx(
545
+ "line",
546
+ {
547
+ x1: -1,
548
+ y1: Ee / 2,
549
+ x2: Ee + 1,
550
+ y2: Ee / 2,
551
+ stroke: n.paper.grid,
552
+ strokeWidth: 0.5
553
+ }
554
+ )
555
+ },
556
+ t
557
+ )),
558
+ /* @__PURE__ */ d.jsxs("linearGradient", { id: Pn(e), x1: "0", y1: "0", x2: "0.35", y2: "1", children: [
559
+ /* @__PURE__ */ d.jsx("stop", { offset: "0%", stopColor: n.paper.from }),
560
+ /* @__PURE__ */ d.jsx("stop", { offset: "100%", stopColor: n.paper.to })
561
+ ] }),
562
+ /* @__PURE__ */ d.jsxs("filter", { id: Dn(e), x: "0%", y: "0%", width: "100%", height: "100%", children: [
563
+ /* @__PURE__ */ d.jsx("feTurbulence", { type: "fractalNoise", baseFrequency: "0.85", numOctaves: 3, stitchTiles: "stitch" }),
564
+ /* @__PURE__ */ d.jsx("feColorMatrix", { type: "saturate", values: "0" })
565
+ ] }),
566
+ ["line", "accent"].map((t) => /* @__PURE__ */ d.jsx(
567
+ "marker",
568
+ {
569
+ id: Kr(e, t),
570
+ markerWidth: "10",
571
+ markerHeight: "10",
572
+ refX: "8",
573
+ refY: "4",
574
+ orient: "auto",
575
+ markerUnits: "userSpaceOnUse",
576
+ children: /* @__PURE__ */ d.jsx(
577
+ "path",
578
+ {
579
+ d: "M 1 1 L 8 4 L 1 7",
580
+ fill: "none",
581
+ stroke: t === "accent" ? n.ink.accent : n.ink.line,
582
+ strokeWidth: 1,
583
+ strokeLinecap: "round",
584
+ strokeLinejoin: "round"
585
+ }
586
+ )
587
+ },
588
+ t
589
+ ))
590
+ ] });
354
591
  }
355
- var er;
356
- function yn() {
357
- return er || (er = 1, process.env.NODE_ENV === "production" ? Ee.exports = xn() : Ee.exports = gn()), Ee.exports;
592
+ function Zr({
593
+ style: e,
594
+ rect: n,
595
+ pan: r,
596
+ zoom: t = 1,
597
+ className: i = "absolute inset-0 w-full h-full pointer-events-none"
598
+ }) {
599
+ const l = Qe().replace(/:/g, ""), o = r ? `translate(${r.x} ${r.y}) scale(${t})` : t !== 1 ? `scale(${t})` : "", a = n ? { x: n.x, y: n.y, width: n.width, height: n.height } : { x: 0, y: 0, width: "100%", height: "100%" };
600
+ return /* @__PURE__ */ d.jsxs("svg", { className: i, "aria-hidden": "true", children: [
601
+ /* @__PURE__ */ d.jsx(nn, { uid: l, style: e, gridTransform: o }),
602
+ /* @__PURE__ */ d.jsx("rect", { ...a, fill: `url(#${Pn(l)})` }),
603
+ Vr(l).map((c) => /* @__PURE__ */ d.jsx("rect", { ...a, fill: `url(#${c})`, opacity: 0.6 }, c)),
604
+ e.paper.grain > 0 && /* @__PURE__ */ d.jsx("rect", { ...a, filter: `url(#${Dn(l)})`, opacity: e.paper.grain })
605
+ ] });
358
606
  }
359
- var y = yn();
360
- const vr = '"JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace', vn = {
607
+ const Re = g(10), Jr = 9, mn = (e, n) => e.length > n ? `${e.slice(0, n - 1)}…` : e;
608
+ function Qr({
609
+ style: e,
610
+ plate: n,
611
+ rows: r,
612
+ title: t,
613
+ tally: i,
614
+ className: l = "absolute inset-0 w-full h-full pointer-events-none"
615
+ }) {
616
+ const o = Qe().replace(/:/g, ""), a = r.slice(0, Jr), c = r.length - a.length, s = {
617
+ x: n.minX + Re,
618
+ y: n.minY + Re,
619
+ width: n.maxX - n.minX - Re * 2,
620
+ height: n.maxY - n.minY - Re * 2
621
+ }, u = {
622
+ fontFamily: e.font,
623
+ letterSpacing: "0.08em"
624
+ }, x = g(236), p = g(13), f = g(16), m = f + Math.max(a.length, 1) * p + (c > 0 ? p : 0), y = s.x + g(14), A = s.y + g(14), v = g(264), b = g(74), D = g(126), L = s.x + s.width - v - g(14), E = s.y + s.height - b - g(14);
625
+ return /* @__PURE__ */ d.jsxs("svg", { className: l, style: { overflow: "visible" }, "aria-hidden": "true", children: [
626
+ /* @__PURE__ */ d.jsx(nn, { uid: o, style: e }),
627
+ /* @__PURE__ */ d.jsx(
628
+ "rect",
629
+ {
630
+ x: n.minX,
631
+ y: n.minY,
632
+ width: n.maxX - n.minX,
633
+ height: n.maxY - n.minY,
634
+ fill: "none",
635
+ stroke: e.paper.edge,
636
+ strokeWidth: 1.4
637
+ }
638
+ ),
639
+ /* @__PURE__ */ d.jsx(
640
+ "rect",
641
+ {
642
+ x: s.x,
643
+ y: s.y,
644
+ width: s.width,
645
+ height: s.height,
646
+ fill: "none",
647
+ stroke: e.paper.edge,
648
+ strokeWidth: 0.6,
649
+ opacity: 0.75
650
+ }
651
+ ),
652
+ [
653
+ [s.x, s.y, 1, 1],
654
+ [s.x + s.width, s.y, -1, 1],
655
+ [s.x, s.y + s.height, 1, -1],
656
+ [s.x + s.width, s.y + s.height, -1, -1]
657
+ ].map(([j, R, $, B], N) => /* @__PURE__ */ d.jsx(
658
+ "path",
659
+ {
660
+ d: `M ${j + $ * g(16)} ${R} L ${j} ${R} L ${j} ${R + B * g(16)}`,
661
+ fill: "none",
662
+ stroke: e.ink.line,
663
+ strokeWidth: 1.2
664
+ },
665
+ N
666
+ )),
667
+ a.length > 0 && /* @__PURE__ */ d.jsxs("g", { children: [
668
+ /* @__PURE__ */ d.jsx(
669
+ "rect",
670
+ {
671
+ x: y,
672
+ y: A,
673
+ width: x,
674
+ height: m,
675
+ fill: e.paper.from,
676
+ fillOpacity: 0.55,
677
+ stroke: e.ink.line,
678
+ strokeWidth: 0.8
679
+ }
680
+ ),
681
+ /* @__PURE__ */ d.jsx(
682
+ "line",
683
+ {
684
+ x1: y,
685
+ y1: A + f,
686
+ x2: y + x,
687
+ y2: A + f,
688
+ stroke: e.ink.line,
689
+ strokeWidth: 0.8
690
+ }
691
+ ),
692
+ /* @__PURE__ */ d.jsx("text", { x: y + g(8), y: A + g(11), fill: e.ink.text, fontSize: g(8), fontWeight: 600, style: u, children: "COMPONENT INDEX" }),
693
+ /* @__PURE__ */ d.jsxs(
694
+ "text",
695
+ {
696
+ x: y + x - g(8),
697
+ y: A + g(11),
698
+ textAnchor: "end",
699
+ fill: e.ink.muted,
700
+ fontSize: g(8),
701
+ style: u,
702
+ children: [
703
+ Pe(r.length),
704
+ " ITEMS"
705
+ ]
706
+ }
707
+ ),
708
+ a.map((j, R) => {
709
+ const $ = A + f + R * p, B = Mn(j.color), N = Nn(o, B, "top");
710
+ return /* @__PURE__ */ d.jsxs("g", { children: [
711
+ /* @__PURE__ */ d.jsx("text", { x: y + g(8), y: $ + g(9.5), fill: e.ink.muted, fontSize: g(7.5), style: u, children: Pe(j.n) }),
712
+ /* @__PURE__ */ d.jsx(
713
+ "rect",
714
+ {
715
+ x: y + g(28),
716
+ y: $ + g(3),
717
+ width: g(14),
718
+ height: g(7),
719
+ fill: e.face.right,
720
+ stroke: e.ink.line,
721
+ strokeWidth: 0.4
722
+ }
723
+ ),
724
+ N.map((I) => /* @__PURE__ */ d.jsx(
725
+ "rect",
726
+ {
727
+ x: y + g(28),
728
+ y: $ + g(3),
729
+ width: g(14),
730
+ height: g(7),
731
+ fill: `url(#${I})`,
732
+ opacity: 0.85
733
+ },
734
+ I
735
+ )),
736
+ /* @__PURE__ */ d.jsx("text", { x: y + g(50), y: $ + g(9.5), fill: e.ink.text, fontSize: g(7.5), style: u, children: mn((j.name || "").toUpperCase(), 18) }),
737
+ /* @__PURE__ */ d.jsx(
738
+ "text",
739
+ {
740
+ x: y + x - g(8),
741
+ y: $ + g(9.5),
742
+ textAnchor: "end",
743
+ fill: e.ink.muted,
744
+ fontSize: g(7),
745
+ style: u,
746
+ children: Xr[B]
747
+ }
748
+ )
749
+ ] }, j.n);
750
+ }),
751
+ c > 0 && /* @__PURE__ */ d.jsx(
752
+ "text",
753
+ {
754
+ x: y + g(8),
755
+ y: A + f + a.length * p + g(9.5),
756
+ fill: e.ink.muted,
757
+ fontSize: g(7.5),
758
+ style: u,
759
+ children: `+ ${c} NOT LISTED`
760
+ }
761
+ )
762
+ ] }),
763
+ /* @__PURE__ */ d.jsxs("g", { children: [
764
+ /* @__PURE__ */ d.jsx(
765
+ "rect",
766
+ {
767
+ x: L,
768
+ y: E,
769
+ width: v,
770
+ height: b,
771
+ fill: e.paper.from,
772
+ fillOpacity: 0.55,
773
+ stroke: e.ink.line,
774
+ strokeWidth: 0.8
775
+ }
776
+ ),
777
+ /* @__PURE__ */ d.jsx("line", { x1: L, y1: E + g(30), x2: L + v, y2: E + g(30), stroke: e.ink.line, strokeWidth: 0.8 }),
778
+ /* @__PURE__ */ d.jsx("line", { x1: L, y1: E + g(52), x2: L + v, y2: E + g(52), stroke: e.ink.line, strokeWidth: 0.5 }),
779
+ /* @__PURE__ */ d.jsx("line", { x1: L + D, y1: E + g(30), x2: L + D, y2: E + b, stroke: e.ink.line, strokeWidth: 0.5 }),
780
+ /* @__PURE__ */ d.jsx("text", { x: L + g(9), y: E + g(12), fill: e.ink.muted, fontSize: g(6.5), style: u, children: "DRAWING TITLE" }),
781
+ /* @__PURE__ */ d.jsx("text", { x: L + g(9), y: E + g(24), fill: e.ink.text, fontSize: g(10), fontWeight: 600, style: u, children: mn((t || "UNTITLED ASSEMBLY").toUpperCase(), 26) }),
782
+ /* @__PURE__ */ d.jsx("text", { x: L + g(9), y: E + g(43), fill: e.ink.muted, fontSize: g(6.5), style: u, children: "PROJECTION" }),
783
+ /* @__PURE__ */ d.jsx("text", { x: L + D - g(9), y: E + g(43), textAnchor: "end", fill: e.ink.text, fontSize: g(7), style: u, children: "ISOMETRIC 30°" }),
784
+ /* @__PURE__ */ d.jsx("text", { x: L + g(9), y: E + g(65), fill: e.ink.muted, fontSize: g(6.5), style: u, children: "SCALE" }),
785
+ /* @__PURE__ */ d.jsx("text", { x: L + D - g(9), y: E + g(65), textAnchor: "end", fill: e.ink.text, fontSize: g(7), style: u, children: "1:1" }),
786
+ /* @__PURE__ */ d.jsx("text", { x: L + D + g(9), y: E + g(43), fill: e.ink.muted, fontSize: g(6.5), style: u, children: "QTY" }),
787
+ /* @__PURE__ */ d.jsx("text", { x: L + v - g(9), y: E + g(43), textAnchor: "end", fill: e.ink.text, fontSize: g(7), style: u, children: i || `${Pe(r.length)} CMP` }),
788
+ /* @__PURE__ */ d.jsx("text", { x: L + D + g(9), y: E + g(65), fill: e.ink.muted, fontSize: g(6.5), style: u, children: "SHEET" }),
789
+ /* @__PURE__ */ d.jsx("text", { x: L + v - g(9), y: E + g(65), textAnchor: "end", fill: e.ink.text, fontSize: g(7), style: u, children: "1 OF 1" })
790
+ ] })
791
+ ] });
792
+ }
793
+ function ei({
794
+ uid: e,
795
+ style: n,
796
+ box: r,
797
+ color: t,
798
+ tag: i,
799
+ selected: l = !1,
800
+ opacity: o,
801
+ onClick: a,
802
+ onPointerDown: c
803
+ }) {
804
+ const s = Mn(t), u = l ? n.ink.accent : n.ink.line, x = l ? n.ink.accent : n.ink.text, p = [
805
+ { face: "left", path: r.left },
806
+ { face: "right", path: r.right },
807
+ { face: "top", path: r.top }
808
+ ];
809
+ return /* @__PURE__ */ d.jsxs(
810
+ "g",
811
+ {
812
+ className: a || c ? "cursor-pointer" : void 0,
813
+ opacity: o,
814
+ onClick: a,
815
+ onPointerDown: c,
816
+ children: [
817
+ p.map(({ face: f, path: m }) => /* @__PURE__ */ d.jsxs("g", { children: [
818
+ /* @__PURE__ */ d.jsx("path", { d: m, fill: n.face[f] }),
819
+ Nn(e, s, f).map((y) => /* @__PURE__ */ d.jsx("path", { d: m, fill: `url(#${y})`, opacity: n.hatchOpacity[f] }, y))
820
+ ] }, f)),
821
+ /* @__PURE__ */ d.jsx(
822
+ "path",
823
+ {
824
+ d: r.hidden,
825
+ fill: "none",
826
+ stroke: n.ink.hidden,
827
+ strokeWidth: n.strokeWidth * 0.55,
828
+ strokeDasharray: "3.5 3",
829
+ opacity: 0.85
830
+ }
831
+ ),
832
+ /* @__PURE__ */ d.jsx(
833
+ "path",
834
+ {
835
+ d: r.visible,
836
+ fill: "none",
837
+ stroke: u,
838
+ strokeWidth: l ? n.strokeWidth * 1.7 : n.strokeWidth,
839
+ strokeLinejoin: "round",
840
+ strokeLinecap: "round"
841
+ }
842
+ ),
843
+ i != null && /* @__PURE__ */ d.jsx(
844
+ "text",
845
+ {
846
+ x: r.topCenter.x,
847
+ y: r.topCenter.y + g(3),
848
+ textAnchor: "middle",
849
+ fill: x,
850
+ fontSize: g(8),
851
+ fontWeight: 600,
852
+ fontFamily: n.font,
853
+ style: { letterSpacing: "0.1em" },
854
+ pointerEvents: "none",
855
+ children: Pe(i)
856
+ }
857
+ )
858
+ ]
859
+ }
860
+ );
861
+ }
862
+ function ni({
863
+ style: e,
864
+ box: n,
865
+ name: r,
866
+ subtitle: t,
867
+ selected: i = !1,
868
+ opacity: l
869
+ }) {
870
+ const o = i ? e.ink.accent : e.ink.line, a = i ? e.ink.accent : e.ink.text, c = (r || "").toUpperCase(), s = (t || "").toUpperCase(), u = n.minY - g(11), x = u - g(4), p = s ? u - g(15) : u - g(4), f = Math.max(c.length * g(5.6), s.length * g(4.4), g(24));
871
+ return /* @__PURE__ */ d.jsxs("g", { pointerEvents: "none", opacity: l, children: [
872
+ /* @__PURE__ */ d.jsx(
873
+ "line",
874
+ {
875
+ x1: n.topCenter.x,
876
+ y1: n.topCenter.y - g(6),
877
+ x2: n.topCenter.x,
878
+ y2: u,
879
+ stroke: o,
880
+ strokeWidth: e.strokeWidth * 0.6
881
+ }
882
+ ),
883
+ /* @__PURE__ */ d.jsx(
884
+ "line",
885
+ {
886
+ x1: n.topCenter.x - f / 2,
887
+ y1: u,
888
+ x2: n.topCenter.x + f / 2,
889
+ y2: u,
890
+ stroke: o,
891
+ strokeWidth: e.strokeWidth * 0.6
892
+ }
893
+ ),
894
+ /* @__PURE__ */ d.jsx(
895
+ "text",
896
+ {
897
+ x: n.topCenter.x,
898
+ y: p,
899
+ textAnchor: "middle",
900
+ fill: a,
901
+ fontSize: g(9.5),
902
+ fontWeight: 600,
903
+ fontFamily: e.font,
904
+ stroke: e.paper.from,
905
+ strokeWidth: g(3),
906
+ paintOrder: "stroke",
907
+ strokeLinejoin: "round",
908
+ style: { letterSpacing: "0.12em" },
909
+ children: c
910
+ }
911
+ ),
912
+ s && /* @__PURE__ */ d.jsx(
913
+ "text",
914
+ {
915
+ x: n.topCenter.x,
916
+ y: x,
917
+ textAnchor: "middle",
918
+ fill: e.ink.muted,
919
+ fontSize: g(7.5),
920
+ fontFamily: e.font,
921
+ stroke: e.paper.from,
922
+ strokeWidth: g(2.5),
923
+ paintOrder: "stroke",
924
+ strokeLinejoin: "round",
925
+ style: { letterSpacing: "0.1em" },
926
+ children: s
927
+ }
928
+ )
929
+ ] });
930
+ }
931
+ const Yn = '"JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace', ri = {
361
932
  blue: { top: "#3b82f6", side: "#2563eb", front: "#1d4ed8" },
362
933
  violet: { top: "#8b5cf6", side: "#7c3aed", front: "#6d28d9" },
363
934
  cyan: { top: "#06b6d4", side: "#0891b2", front: "#0e7490" },
@@ -365,7 +936,7 @@ const vr = '"JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace', vn =
365
936
  amber: { top: "#f59e0b", side: "#d97706", front: "#b45309" },
366
937
  rose: { top: "#f43f5e", side: "#e11d48", front: "#be123c" },
367
938
  slate: { top: "#475569", side: "#334155", front: "#1e293b" }
368
- }, bn = {
939
+ }, ii = {
369
940
  blue: { top: "#93c5fd", side: "#60a5fa", front: "#3b82f6" },
370
941
  violet: { top: "#c4b5fd", side: "#a78bfa", front: "#8b5cf6" },
371
942
  cyan: { top: "#67e8f9", side: "#22d3ee", front: "#06b6d4" },
@@ -374,20 +945,20 @@ const vr = '"JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace', vn =
374
945
  rose: { top: "#fda4af", side: "#fb7185", front: "#f43f5e" },
375
946
  slate: { top: "#e2e8f0", side: "#cbd5e1", front: "#94a3b8" }
376
947
  };
377
- function Se(e, r, n) {
378
- const o = (s) => {
379
- const h = s.replace("#", "");
948
+ function Me(e, n, r) {
949
+ const t = (s) => {
950
+ const u = s.replace("#", "");
380
951
  return {
381
- r: parseInt(h.substring(0, 2), 16),
382
- g: parseInt(h.substring(2, 4), 16),
383
- b: parseInt(h.substring(4, 6), 16)
952
+ r: parseInt(u.substring(0, 2), 16),
953
+ g: parseInt(u.substring(2, 4), 16),
954
+ b: parseInt(u.substring(4, 6), 16)
384
955
  };
385
- }, i = o(e), l = o(r), t = Math.round(i.r + (l.r - i.r) * n), a = Math.round(i.g + (l.g - i.g) * n), c = Math.round(i.b + (l.b - i.b) * n);
386
- return `rgb(${t},${a},${c})`;
956
+ }, i = t(e), l = t(n), o = Math.round(i.r + (l.r - i.r) * r), a = Math.round(i.g + (l.g - i.g) * r), c = Math.round(i.b + (l.b - i.b) * r);
957
+ return `rgb(${o},${a},${c})`;
387
958
  }
388
- function An({ x: e, y: r, z: n, children: o, fontSize: i = 8, color: l = "#1e293b", shadow: t }) {
389
- const a = b(e, r, n);
390
- return /* @__PURE__ */ y.jsx("g", { transform: `translate(${a.screenX}, ${a.screenY})`, filter: t, children: /* @__PURE__ */ y.jsx("g", { transform: "matrix(0.866, -0.5, 0.866, 0.5, 0, 0)", children: /* @__PURE__ */ y.jsx(
959
+ function ti({ x: e, y: n, z: r, children: t, fontSize: i = 8, color: l = "#1e293b", shadow: o }) {
960
+ const a = w(e, n, r);
961
+ return /* @__PURE__ */ d.jsx("g", { transform: `translate(${a.screenX}, ${a.screenY})`, filter: o, children: /* @__PURE__ */ d.jsx("g", { transform: "matrix(0.866, -0.5, 0.866, 0.5, 0, 0)", children: /* @__PURE__ */ d.jsx(
391
962
  "text",
392
963
  {
393
964
  x: 0,
@@ -396,227 +967,318 @@ function An({ x: e, y: r, z: n, children: o, fontSize: i = 8, color: l = "#1e293
396
967
  fill: l,
397
968
  fontSize: i,
398
969
  fontWeight: 600,
399
- fontFamily: vr,
970
+ fontFamily: Yn,
400
971
  style: { textTransform: "uppercase", letterSpacing: "0.06em" },
401
- children: o
972
+ children: t
402
973
  }
403
974
  ) }) });
404
975
  }
405
- function _n({ width: e, depth: r, elevation: n, color: o, opacity: i, borderColor: l, theme: t, isGround: a }) {
406
- const s = me(e, r, a ? 8 : 2, 0, 0), h = b(0, 0, n);
407
- return /* @__PURE__ */ y.jsxs("g", { transform: `translate(${h.screenX}, ${h.screenY})`, children: [
408
- a && /* @__PURE__ */ y.jsx("g", { transform: "translate(4, 4)", opacity: 0.2, children: /* @__PURE__ */ y.jsx("path", { d: s.top, fill: "#000" }) }),
409
- /* @__PURE__ */ y.jsx("path", { d: s.top, fill: o, opacity: i }),
410
- a && /* @__PURE__ */ y.jsxs(y.Fragment, { children: [
411
- /* @__PURE__ */ y.jsx("path", { d: s.left, fill: t === "dark" ? "#0f172a" : "#cbd5e1", opacity: 0.8 }),
412
- /* @__PURE__ */ y.jsx("path", { d: s.right, fill: t === "dark" ? "#1e293b" : "#94a3b8", opacity: 0.8 })
976
+ function oi({ width: e, depth: n, elevation: r, color: t, opacity: i, borderColor: l, theme: o, isGround: a }) {
977
+ const s = he(e, n, a ? 8 : 2, 0, 0), u = w(0, 0, r);
978
+ return /* @__PURE__ */ d.jsxs("g", { transform: `translate(${u.screenX}, ${u.screenY})`, children: [
979
+ a && /* @__PURE__ */ d.jsx("g", { transform: "translate(4, 4)", opacity: 0.2, children: /* @__PURE__ */ d.jsx("path", { d: s.top, fill: "#000" }) }),
980
+ /* @__PURE__ */ d.jsx("path", { d: s.top, fill: t, opacity: i }),
981
+ a && /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
982
+ /* @__PURE__ */ d.jsx("path", { d: s.left, fill: o === "dark" ? "#0f172a" : "#cbd5e1", opacity: 0.8 }),
983
+ /* @__PURE__ */ d.jsx("path", { d: s.right, fill: o === "dark" ? "#1e293b" : "#94a3b8", opacity: 0.8 })
413
984
  ] }),
414
- /* @__PURE__ */ y.jsx(
985
+ /* @__PURE__ */ d.jsx(
415
986
  "path",
416
987
  {
417
988
  d: s.top,
418
989
  fill: "none",
419
- stroke: l || (t === "dark" ? "#475569" : "#94a3b8"),
990
+ stroke: l || (o === "dark" ? "#475569" : "#94a3b8"),
420
991
  strokeWidth: a ? 1.5 : 0.75,
421
992
  opacity: a ? 1 : 0.6
422
993
  }
423
994
  )
424
995
  ] });
425
996
  }
426
- function Jo({ config: e, options: r = {}, className: n, style: o, onNodeClick: i, onLayerClick: l }) {
427
- const { interactive: t = !0, animate: a = !0, showLabels: c = !0, expandOnHover: s = !0 } = r, { theme: h, canvas: d, origin: u, tiers: f, floorSize: m, nodes: x, cornerRadius: v = 0 } = e, A = h === "dark" ? vn : bn, w = h === "dark" ? "#0f172a" : "#fafafa", X = h === "dark" ? "#e2e8f0" : "#1e293b", oe = h === "dark" ? "#64748b" : "#94a3b8", [$, F] = we(/* @__PURE__ */ new Set());
428
- pn(() => {
429
- a ? (F(/* @__PURE__ */ new Set()), f.forEach((k, C) => {
997
+ function No({ config: e, options: n = {}, className: r, style: t, onNodeClick: i, onLayerClick: l }) {
998
+ const { interactive: o = !0, animate: a = !0, showLabels: c = !0, expandOnHover: s = !0 } = n, { theme: u, canvas: x, origin: p, tiers: f, floorSize: m, nodes: y, cornerRadius: A = 0 } = e, v = Hr(e.style), b = v.technical, D = Qe().replace(/:/g, ""), L = u === "dark" ? ri : ii, E = b ? v.paper.to : u === "dark" ? "#0f172a" : "#fafafa", j = b ? v.ink.text : u === "dark" ? "#e2e8f0" : "#1e293b", R = b ? v.ink.muted : u === "dark" ? "#64748b" : "#94a3b8", $ = jr(() => {
999
+ const O = y.map((h, k) => ({ node: h, i: k })).sort((h, k) => h.node.tier - k.node.tier || h.node.y - k.node.y || h.node.x - k.node.x), S = /* @__PURE__ */ new Map();
1000
+ return O.forEach(({ i: h }, k) => S.set(h, k + 1)), S;
1001
+ }, [y]), B = { minX: 16, minY: 16, maxX: x.width - 16, maxY: x.height - 16 }, [N, I] = Le(/* @__PURE__ */ new Set());
1002
+ Fr(() => {
1003
+ a ? (I(/* @__PURE__ */ new Set()), f.forEach((O, S) => {
430
1004
  setTimeout(() => {
431
- F((S) => /* @__PURE__ */ new Set([...S, C]));
432
- }, C * 150 + 100);
433
- })) : F(new Set(f.map((k, C) => C)));
1005
+ I((h) => /* @__PURE__ */ new Set([...h, S]));
1006
+ }, S * 150 + 100);
1007
+ })) : I(new Set(f.map((O, S) => S)));
434
1008
  }, [e.id, a, f.length]);
435
- const [j, T] = we(null), [H, M] = we(null), [O, R] = we(null), V = [...x].sort((k, C) => {
436
- const S = f[k.tier]?.elevation || 0, P = f[C.tier]?.elevation || 0;
437
- if (S !== P) return S - P;
438
- const Y = k.x + k.width + (k.y + k.depth);
439
- return C.x + C.width + (C.y + C.depth) - Y;
1009
+ const [M, ne] = Le(null), [J, q] = Le(null), [T, W] = Le(null), Q = [...y].sort((O, S) => {
1010
+ const h = f[O.tier]?.elevation || 0, k = f[S.tier]?.elevation || 0;
1011
+ if (h !== k) return h - k;
1012
+ const F = O.x + O.width + (O.y + O.depth);
1013
+ return S.x + S.width + (S.y + S.depth) - F;
440
1014
  });
441
- return /* @__PURE__ */ y.jsx("div", { className: n, style: { display: "inline-block", ...o }, children: /* @__PURE__ */ y.jsxs(
1015
+ return /* @__PURE__ */ d.jsx("div", { className: r, style: { display: "inline-block", ...t }, children: /* @__PURE__ */ d.jsxs(
442
1016
  "svg",
443
1017
  {
444
- width: d.width,
445
- height: d.height,
446
- style: { backgroundColor: w },
1018
+ width: x.width,
1019
+ height: x.height,
1020
+ style: { backgroundColor: E },
447
1021
  onClick: () => {
448
- t && (R(null), M(null));
1022
+ o && (W(null), q(null));
449
1023
  },
450
1024
  children: [
451
- /* @__PURE__ */ y.jsxs("defs", { children: [
452
- /* @__PURE__ */ y.jsx("pattern", { id: `grid-${e.id}`, width: "24", height: "24", patternUnits: "userSpaceOnUse", children: /* @__PURE__ */ y.jsx("circle", { cx: "12", cy: "12", r: "0.5", fill: h === "dark" ? "#1e293b" : "#e2e8f0" }) }),
453
- /* @__PURE__ */ y.jsx("filter", { id: `glow-${e.id}`, x: "-20%", y: "-20%", width: "140%", height: "140%", children: /* @__PURE__ */ y.jsx(
1025
+ /* @__PURE__ */ d.jsxs("defs", { children: [
1026
+ /* @__PURE__ */ d.jsx("pattern", { id: `grid-${e.id}`, width: "24", height: "24", patternUnits: "userSpaceOnUse", children: /* @__PURE__ */ d.jsx("circle", { cx: "12", cy: "12", r: "0.5", fill: u === "dark" ? "#1e293b" : "#e2e8f0" }) }),
1027
+ /* @__PURE__ */ d.jsx("filter", { id: `glow-${e.id}`, x: "-20%", y: "-20%", width: "140%", height: "140%", children: /* @__PURE__ */ d.jsx(
454
1028
  "feDropShadow",
455
1029
  {
456
1030
  dx: "0",
457
1031
  dy: "4",
458
1032
  stdDeviation: "8",
459
- floodColor: h === "dark" ? "#60a5fa" : "#3b82f6",
1033
+ floodColor: u === "dark" ? "#60a5fa" : "#3b82f6",
460
1034
  floodOpacity: "0.3"
461
1035
  }
462
1036
  ) }),
463
- /* @__PURE__ */ y.jsxs("radialGradient", { id: `bg-${e.id}`, cx: "48%", cy: "34%", r: "82%", children: [
464
- /* @__PURE__ */ y.jsx("stop", { offset: "0%", stopColor: h === "dark" ? "#16203a" : "#ffffff" }),
465
- /* @__PURE__ */ y.jsx("stop", { offset: "55%", stopColor: h === "dark" ? "#0e1526" : "#f2f5f9" }),
466
- /* @__PURE__ */ y.jsx("stop", { offset: "100%", stopColor: h === "dark" ? "#080d18" : "#e7ecf2" })
1037
+ /* @__PURE__ */ d.jsxs("radialGradient", { id: `bg-${e.id}`, cx: "48%", cy: "34%", r: "82%", children: [
1038
+ /* @__PURE__ */ d.jsx("stop", { offset: "0%", stopColor: u === "dark" ? "#16203a" : "#ffffff" }),
1039
+ /* @__PURE__ */ d.jsx("stop", { offset: "55%", stopColor: u === "dark" ? "#0e1526" : "#f2f5f9" }),
1040
+ /* @__PURE__ */ d.jsx("stop", { offset: "100%", stopColor: u === "dark" ? "#080d18" : "#e7ecf2" })
467
1041
  ] }),
468
- /* @__PURE__ */ y.jsx("filter", { id: `contact-${e.id}`, x: "-60%", y: "-60%", width: "220%", height: "220%", children: /* @__PURE__ */ y.jsx("feGaussianBlur", { stdDeviation: "5" }) }),
469
- /* @__PURE__ */ y.jsxs("linearGradient", { id: `sheen-${e.id}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
470
- /* @__PURE__ */ y.jsx("stop", { offset: "0%", stopColor: "#ffffff", stopOpacity: "0.18" }),
471
- /* @__PURE__ */ y.jsx("stop", { offset: "55%", stopColor: "#ffffff", stopOpacity: "0.04" }),
472
- /* @__PURE__ */ y.jsx("stop", { offset: "100%", stopColor: "#ffffff", stopOpacity: "0" })
1042
+ /* @__PURE__ */ d.jsx("filter", { id: `contact-${e.id}`, x: "-60%", y: "-60%", width: "220%", height: "220%", children: /* @__PURE__ */ d.jsx("feGaussianBlur", { stdDeviation: "5" }) }),
1043
+ /* @__PURE__ */ d.jsxs("linearGradient", { id: `sheen-${e.id}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
1044
+ /* @__PURE__ */ d.jsx("stop", { offset: "0%", stopColor: "#ffffff", stopOpacity: "0.18" }),
1045
+ /* @__PURE__ */ d.jsx("stop", { offset: "55%", stopColor: "#ffffff", stopOpacity: "0.04" }),
1046
+ /* @__PURE__ */ d.jsx("stop", { offset: "100%", stopColor: "#ffffff", stopOpacity: "0" })
473
1047
  ] }),
474
- /* @__PURE__ */ y.jsxs("linearGradient", { id: `shade-${e.id}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
475
- /* @__PURE__ */ y.jsx("stop", { offset: "0%", stopColor: "#000000", stopOpacity: "0" }),
476
- /* @__PURE__ */ y.jsx("stop", { offset: "100%", stopColor: "#000000", stopOpacity: "0.24" })
1048
+ /* @__PURE__ */ d.jsxs("linearGradient", { id: `shade-${e.id}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
1049
+ /* @__PURE__ */ d.jsx("stop", { offset: "0%", stopColor: "#000000", stopOpacity: "0" }),
1050
+ /* @__PURE__ */ d.jsx("stop", { offset: "100%", stopColor: "#000000", stopOpacity: "0.24" })
477
1051
  ] }),
478
- /* @__PURE__ */ y.jsx("filter", { id: `label-${e.id}`, x: "-40%", y: "-40%", width: "180%", height: "180%", children: /* @__PURE__ */ y.jsx("feDropShadow", { dx: "0", dy: "0.5", stdDeviation: "0.7", floodColor: "#000000", floodOpacity: "0.7" }) })
1052
+ /* @__PURE__ */ d.jsx("filter", { id: `label-${e.id}`, x: "-40%", y: "-40%", width: "180%", height: "180%", children: /* @__PURE__ */ d.jsx("feDropShadow", { dx: "0", dy: "0.5", stdDeviation: "0.7", floodColor: "#000000", floodOpacity: "0.7" }) })
479
1053
  ] }),
480
- /* @__PURE__ */ y.jsx("rect", { width: "100%", height: "100%", fill: `url(#bg-${e.id})` }),
481
- /* @__PURE__ */ y.jsx("rect", { width: "100%", height: "100%", fill: `url(#grid-${e.id})`, opacity: "0.5" }),
482
- /* @__PURE__ */ y.jsx("g", { transform: `translate(${u.x}, ${u.y})`, children: f.map((k, C) => {
483
- const S = V.filter((E) => E.tier === C), P = $.has(C), Y = t && (H === C || H === null && O === null && j === C), Z = t && (H !== null || j !== null || O !== null), te = O?.tier === C, p = Z && !Y && !te, _ = P ? 0 : 60, I = P ? 1 : 0, N = Y && s ? { x: 10, y: -34 } : { x: 0, y: 0 }, le = Y ? 1.03 : 1, Q = b(m.width / 2, m.depth / 2, k.elevation), L = k.offset || { x: 0, y: 0 };
484
- return /* @__PURE__ */ y.jsxs(
1054
+ b ? /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
1055
+ /* @__PURE__ */ d.jsx(nn, { uid: D, style: v }),
1056
+ /* @__PURE__ */ d.jsx(
1057
+ Zr,
1058
+ {
1059
+ style: v,
1060
+ rect: { x: 0, y: 0, width: x.width, height: x.height },
1061
+ className: ""
1062
+ }
1063
+ )
1064
+ ] }) : /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
1065
+ /* @__PURE__ */ d.jsx("rect", { width: "100%", height: "100%", fill: `url(#bg-${e.id})` }),
1066
+ /* @__PURE__ */ d.jsx("rect", { width: "100%", height: "100%", fill: `url(#grid-${e.id})`, opacity: "0.5" })
1067
+ ] }),
1068
+ /* @__PURE__ */ d.jsx("g", { transform: `translate(${p.x}, ${p.y})`, children: f.map((O, S) => {
1069
+ const h = Q.filter((_) => _.tier === S), k = N.has(S), F = o && (J === S || J === null && T === null && M === S), Y = o && (J !== null || M !== null || T !== null), ce = T?.tier === S, se = Y && !F && !ce, P = k ? 0 : 60, ie = k ? 1 : 0, le = F && s ? { x: 10, y: -34 } : { x: 0, y: 0 }, ke = F ? 1.03 : 1, Fe = w(m.width / 2, m.depth / 2, O.elevation), sn = O.offset || { x: 0, y: 0 };
1070
+ return /* @__PURE__ */ d.jsxs(
485
1071
  "g",
486
1072
  {
487
- "data-tier": C,
488
- onMouseEnter: () => t && T(C),
489
- onMouseLeave: () => t && T(null),
490
- onClick: (E) => {
491
- t && (E.stopPropagation(), R(null), M((W) => W === C ? null : C), l?.(C));
1073
+ "data-tier": S,
1074
+ onMouseEnter: () => o && ne(S),
1075
+ onMouseLeave: () => o && ne(null),
1076
+ onClick: (_) => {
1077
+ o && (_.stopPropagation(), W(null), q((X) => X === S ? null : S), l?.(S));
492
1078
  },
493
1079
  style: {
494
- transform: `translate(${L.x + N.x}px, ${L.y + N.y}px) translate(${Q.screenX}px, ${Q.screenY + _}px) scale(${le}) translate(${-Q.screenX}px, ${-Q.screenY}px)`,
1080
+ transform: `translate(${sn.x + le.x}px, ${sn.y + le.y}px) translate(${Fe.screenX}px, ${Fe.screenY + P}px) scale(${ke}) translate(${-Fe.screenX}px, ${-Fe.screenY}px)`,
495
1081
  transition: "transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease-out",
496
- opacity: I * (p ? 0.35 : 1),
497
- filter: Y ? `url(#glow-${e.id})` : "none",
498
- cursor: t ? "pointer" : "default"
1082
+ opacity: ie * (se ? 0.35 : 1),
1083
+ filter: F ? `url(#glow-${e.id})` : "none",
1084
+ cursor: o ? "pointer" : "default"
499
1085
  },
500
1086
  children: [
501
- /* @__PURE__ */ y.jsx(
502
- _n,
1087
+ b ? /* @__PURE__ */ d.jsx(
1088
+ li,
1089
+ {
1090
+ width: m.width,
1091
+ depth: m.depth,
1092
+ elevation: S === 0 ? -2 : O.elevation,
1093
+ ink: S === 0 ? v.ink.line : v.ink.hidden,
1094
+ isGround: S === 0
1095
+ }
1096
+ ) : /* @__PURE__ */ d.jsx(
1097
+ oi,
503
1098
  {
504
1099
  width: m.width,
505
1100
  depth: m.depth,
506
- elevation: C === 0 ? -2 : k.elevation,
507
- color: k.floorColor || (h === "dark" ? "#0f172a" : "#f8fafc"),
508
- opacity: k.floorOpacity || (C === 0 ? 0.95 : 0.5),
509
- borderColor: k.borderColor,
510
- theme: h,
511
- isGround: C === 0
1101
+ elevation: S === 0 ? -2 : O.elevation,
1102
+ color: O.floorColor || (u === "dark" ? "#0f172a" : "#f8fafc"),
1103
+ opacity: O.floorOpacity || (S === 0 ? 0.95 : 0.5),
1104
+ borderColor: O.borderColor,
1105
+ theme: u,
1106
+ isGround: S === 0
512
1107
  }
513
1108
  ),
514
- S.map((E, W) => {
515
- const se = k.elevation + 5, ze = b(E.x, E.y, se), J = me(E.width, E.depth, E.height, ze.screenX, ze.screenY, v), ee = A[E.color] || A.slate, Le = O?.tier === C && O?.index === W, fn = t && O !== null && !Le, Ve = b(E.x - 3, E.y - 3, k.elevation), sn = me(E.width + 6, E.depth + 6, 0, Ve.screenX, Ve.screenY, v).top;
516
- return /* @__PURE__ */ y.jsxs(
1109
+ b && h.map((_, X) => {
1110
+ const me = O.elevation + 5, fe = w(_.x, _.y, me), V = xn(_.width, _.depth, _.height, fe.screenX, fe.screenY), G = T?.tier === S && T?.index === X, de = o && T !== null && !G;
1111
+ return /* @__PURE__ */ d.jsx(
1112
+ ei,
1113
+ {
1114
+ uid: D,
1115
+ style: v,
1116
+ box: V,
1117
+ color: _.color,
1118
+ tag: $.get(y.indexOf(_)),
1119
+ selected: G,
1120
+ opacity: (_.opacity ?? 1) * (de ? 0.3 : 1),
1121
+ onClick: o ? () => {
1122
+ if (q(null), W((Ce) => Ce && Ce.tier === S && Ce.index === X ? null : { tier: S, index: X }), i?.(_, { tier: S, index: X }), _.link)
1123
+ try {
1124
+ window.open(_.link, "_blank");
1125
+ } catch {
1126
+ }
1127
+ } : void 0
1128
+ },
1129
+ `tech-${X}`
1130
+ );
1131
+ }),
1132
+ b && c && h.map((_, X) => {
1133
+ const me = O.elevation + 5, fe = w(_.x, _.y, me), V = xn(_.width, _.depth, _.height, fe.screenX, fe.screenY), G = T?.tier === S && T?.index === X, de = o && T !== null && !G;
1134
+ return /* @__PURE__ */ d.jsx(
1135
+ ni,
1136
+ {
1137
+ style: v,
1138
+ box: V,
1139
+ name: _.label,
1140
+ selected: G,
1141
+ opacity: de ? 0.3 : 1
1142
+ },
1143
+ `tech-label-${X}`
1144
+ );
1145
+ }),
1146
+ !b && h.map((_, X) => {
1147
+ const me = O.elevation + 5, fe = w(_.x, _.y, me), V = he(_.width, _.depth, _.height, fe.screenX, fe.screenY, A), G = L[_.color] || L.slate, de = T?.tier === S && T?.index === X, Ce = o && T !== null && !de, fn = w(_.x - 3, _.y - 3, O.elevation), $r = he(_.width + 6, _.depth + 6, 0, fn.screenX, fn.screenY, A).top;
1148
+ return /* @__PURE__ */ d.jsxs(
517
1149
  "g",
518
1150
  {
519
- "data-node": `${C}-${W}`,
520
- opacity: (E.opacity ?? 1) * (fn ? 0.3 : 1),
521
- onClick: t ? (z) => {
522
- if (z.stopPropagation(), M(null), R((re) => re && re.tier === C && re.index === W ? null : { tier: C, index: W }), i?.(E, { tier: C, index: W }), E.link)
1151
+ "data-node": `${S}-${X}`,
1152
+ opacity: (_.opacity ?? 1) * (Ce ? 0.3 : 1),
1153
+ onClick: o ? (re) => {
1154
+ if (re.stopPropagation(), q(null), W((te) => te && te.tier === S && te.index === X ? null : { tier: S, index: X }), i?.(_, { tier: S, index: X }), _.link)
523
1155
  try {
524
- window.open(E.link, "_blank");
1156
+ window.open(_.link, "_blank");
525
1157
  } catch {
526
1158
  }
527
1159
  } : void 0,
528
- style: { cursor: t ? "pointer" : "default", transition: "opacity 0.3s ease-out" },
1160
+ style: { cursor: o ? "pointer" : "default", transition: "opacity 0.3s ease-out" },
529
1161
  children: [
530
- /* @__PURE__ */ y.jsx("path", { d: sn, fill: "#000000", opacity: 0.3, filter: `url(#contact-${e.id})` }),
531
- J.cornerBackRight?.map((z, re) => /* @__PURE__ */ y.jsx(
1162
+ /* @__PURE__ */ d.jsx("path", { d: $r, fill: "#000000", opacity: 0.3, filter: `url(#contact-${e.id})` }),
1163
+ V.cornerBackRight?.map((re, te) => /* @__PURE__ */ d.jsx(
532
1164
  "path",
533
1165
  {
534
- d: z.path,
535
- fill: Se(ee.front, ee.side, z.intensity)
1166
+ d: re.path,
1167
+ fill: Me(G.front, G.side, re.intensity)
536
1168
  },
537
- `cbr-${re}`
1169
+ `cbr-${te}`
538
1170
  )),
539
- J.cornerBackLeft?.map((z, re) => /* @__PURE__ */ y.jsx(
1171
+ V.cornerBackLeft?.map((re, te) => /* @__PURE__ */ d.jsx(
540
1172
  "path",
541
1173
  {
542
- d: z.path,
543
- fill: Se(ee.side, ee.front, z.intensity)
1174
+ d: re.path,
1175
+ fill: Me(G.side, G.front, re.intensity)
544
1176
  },
545
- `cbl-${re}`
1177
+ `cbl-${te}`
546
1178
  )),
547
- /* @__PURE__ */ y.jsx("path", { d: J.left, fill: ee.side }),
548
- /* @__PURE__ */ y.jsx("path", { d: J.left, fill: `url(#shade-${e.id})` }),
549
- /* @__PURE__ */ y.jsx("path", { d: J.right, fill: ee.front }),
550
- /* @__PURE__ */ y.jsx("path", { d: J.right, fill: `url(#shade-${e.id})` }),
551
- J.cornerFrontRight?.map((z, re) => /* @__PURE__ */ y.jsx(
1179
+ /* @__PURE__ */ d.jsx("path", { d: V.left, fill: G.side }),
1180
+ /* @__PURE__ */ d.jsx("path", { d: V.left, fill: `url(#shade-${e.id})` }),
1181
+ /* @__PURE__ */ d.jsx("path", { d: V.right, fill: G.front }),
1182
+ /* @__PURE__ */ d.jsx("path", { d: V.right, fill: `url(#shade-${e.id})` }),
1183
+ V.cornerFrontRight?.map((re, te) => /* @__PURE__ */ d.jsx(
552
1184
  "path",
553
1185
  {
554
- d: z.path,
555
- fill: Se(ee.front, ee.side, z.intensity)
1186
+ d: re.path,
1187
+ fill: Me(G.front, G.side, re.intensity)
556
1188
  },
557
- `cfr-${re}`
1189
+ `cfr-${te}`
558
1190
  )),
559
- J.cornerFrontLeft?.map((z, re) => /* @__PURE__ */ y.jsx(
1191
+ V.cornerFrontLeft?.map((re, te) => /* @__PURE__ */ d.jsx(
560
1192
  "path",
561
1193
  {
562
- d: z.path,
563
- fill: Se(ee.front, ee.side, z.intensity)
1194
+ d: re.path,
1195
+ fill: Me(G.front, G.side, re.intensity)
564
1196
  },
565
- `cfl-${re}`
1197
+ `cfl-${te}`
566
1198
  )),
567
- /* @__PURE__ */ y.jsx("path", { d: J.top, fill: ee.top }),
568
- /* @__PURE__ */ y.jsx("path", { d: J.top, fill: `url(#sheen-${e.id})` }),
569
- /* @__PURE__ */ y.jsx(
1199
+ /* @__PURE__ */ d.jsx("path", { d: V.top, fill: G.top }),
1200
+ /* @__PURE__ */ d.jsx("path", { d: V.top, fill: `url(#sheen-${e.id})` }),
1201
+ /* @__PURE__ */ d.jsx(
570
1202
  "path",
571
1203
  {
572
- d: J.top,
1204
+ d: V.top,
573
1205
  fill: "none",
574
- stroke: Le ? "#ffffff" : "rgba(255,255,255,0.28)",
575
- strokeWidth: Le ? 1.4 : 0.75,
1206
+ stroke: de ? "#ffffff" : "rgba(255,255,255,0.28)",
1207
+ strokeWidth: de ? 1.4 : 0.75,
576
1208
  strokeLinejoin: "round"
577
1209
  }
578
1210
  ),
579
- c && E.label && /* @__PURE__ */ y.jsx(
580
- An,
1211
+ c && _.label && /* @__PURE__ */ d.jsx(
1212
+ ti,
581
1213
  {
582
- x: E.x + E.width / 2,
583
- y: E.y + E.depth / 2,
584
- z: se + E.height + 2,
585
- fontSize: E.width > 70 ? 9 : 8,
586
- color: X,
1214
+ x: _.x + _.width / 2,
1215
+ y: _.y + _.depth / 2,
1216
+ z: me + _.height + 2,
1217
+ fontSize: _.width > 70 ? 9 : 8,
1218
+ color: j,
587
1219
  shadow: `url(#label-${e.id})`,
588
- children: E.label
1220
+ children: _.label
589
1221
  }
590
1222
  )
591
1223
  ]
592
1224
  },
593
- W
1225
+ X
594
1226
  );
595
1227
  }),
596
- c && /* @__PURE__ */ y.jsx(
1228
+ c && /* @__PURE__ */ d.jsx(
597
1229
  "text",
598
1230
  {
599
- x: b(-25, m.depth / 2, k.elevation + 15).screenX - 35,
600
- y: b(-25, m.depth / 2, k.elevation + 15).screenY,
601
- fill: oe,
1231
+ x: w(-25, m.depth / 2, O.elevation + 15).screenX - 35,
1232
+ y: w(-25, m.depth / 2, O.elevation + 15).screenY,
1233
+ fill: R,
602
1234
  fontSize: 9,
603
1235
  fontWeight: 500,
604
- fontFamily: vr,
605
- opacity: 0.6,
606
- style: { letterSpacing: "0.05em" },
607
- children: k.name
1236
+ fontFamily: Yn,
1237
+ opacity: b ? 0.9 : 0.6,
1238
+ style: { letterSpacing: "0.05em", textTransform: b ? "uppercase" : "none" },
1239
+ children: O.name
608
1240
  }
609
1241
  )
610
1242
  ]
611
1243
  },
612
- C
1244
+ S
613
1245
  );
614
- }) })
1246
+ }) }),
1247
+ b && /* @__PURE__ */ d.jsx(
1248
+ Qr,
1249
+ {
1250
+ style: v,
1251
+ plate: B,
1252
+ rows: y.map((O, S) => ({
1253
+ n: $.get(S) || S + 1,
1254
+ name: O.label,
1255
+ subtitle: f[O.tier]?.name,
1256
+ color: O.color
1257
+ })).sort((O, S) => O.n - S.n),
1258
+ title: e.title,
1259
+ tally: `${String(y.length).padStart(2, "0")} CMP / ${String(f.length).padStart(2, "0")} TIER`,
1260
+ className: ""
1261
+ }
1262
+ )
615
1263
  ]
616
1264
  }
617
1265
  ) });
618
1266
  }
619
- const rr = '"JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace', Cn = {
1267
+ function li({ width: e, depth: n, elevation: r, ink: t, isGround: i }) {
1268
+ const l = w(0, 0, r), o = he(e, n, 0, l.screenX, l.screenY).top;
1269
+ return /* @__PURE__ */ d.jsx(
1270
+ "path",
1271
+ {
1272
+ d: o,
1273
+ fill: "none",
1274
+ stroke: t,
1275
+ strokeWidth: i ? 1 : 0.7,
1276
+ strokeDasharray: i ? void 0 : "5 4",
1277
+ opacity: i ? 0.9 : 0.7
1278
+ }
1279
+ );
1280
+ }
1281
+ const gn = '"JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace', ai = {
620
1282
  blue: { top: "#3b82f6", side: "#2563eb", front: "#1d4ed8" },
621
1283
  violet: { top: "#8b5cf6", side: "#7c3aed", front: "#6d28d9" },
622
1284
  cyan: { top: "#06b6d4", side: "#0891b2", front: "#0e7490" },
@@ -624,7 +1286,7 @@ const rr = '"JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace', Cn =
624
1286
  amber: { top: "#f59e0b", side: "#d97706", front: "#b45309" },
625
1287
  rose: { top: "#f43f5e", side: "#e11d48", front: "#be123c" },
626
1288
  slate: { top: "#475569", side: "#334155", front: "#1e293b" }
627
- }, wn = {
1289
+ }, ci = {
628
1290
  blue: { top: "#93c5fd", side: "#60a5fa", front: "#3b82f6" },
629
1291
  violet: { top: "#c4b5fd", side: "#a78bfa", front: "#8b5cf6" },
630
1292
  cyan: { top: "#67e8f9", side: "#22d3ee", front: "#06b6d4" },
@@ -633,161 +1295,161 @@ const rr = '"JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace', Cn =
633
1295
  rose: { top: "#fda4af", side: "#fb7185", front: "#f43f5e" },
634
1296
  slate: { top: "#e2e8f0", side: "#cbd5e1", front: "#94a3b8" }
635
1297
  };
636
- function Te(e, r, n) {
637
- const o = (s) => {
638
- const h = s.replace("#", "");
1298
+ function Ne(e, n, r) {
1299
+ const t = (s) => {
1300
+ const u = s.replace("#", "");
639
1301
  return {
640
- r: parseInt(h.substring(0, 2), 16),
641
- g: parseInt(h.substring(2, 4), 16),
642
- b: parseInt(h.substring(4, 6), 16)
1302
+ r: parseInt(u.substring(0, 2), 16),
1303
+ g: parseInt(u.substring(2, 4), 16),
1304
+ b: parseInt(u.substring(4, 6), 16)
643
1305
  };
644
- }, i = o(e), l = o(r), t = Math.round(i.r + (l.r - i.r) * n), a = Math.round(i.g + (l.g - i.g) * n), c = Math.round(i.b + (l.b - i.b) * n);
645
- return `rgb(${t},${a},${c})`;
1306
+ }, i = t(e), l = t(n), o = Math.round(i.r + (l.r - i.r) * r), a = Math.round(i.g + (l.g - i.g) * r), c = Math.round(i.b + (l.b - i.b) * r);
1307
+ return `rgb(${o},${a},${c})`;
646
1308
  }
647
- function En(e) {
648
- const { theme: r, canvas: n, origin: o, tiers: i, floorSize: l, nodes: t, cornerRadius: a = 0 } = e, c = r === "dark" ? Cn : wn, s = r === "dark" ? "#0f172a" : "#fafafa", h = r === "dark" ? "#e2e8f0" : "#1e293b", d = r === "dark" ? "#64748b" : "#94a3b8", u = [...t].sort((m, x) => {
649
- const v = i[m.tier]?.elevation || 0, A = i[x.tier]?.elevation || 0;
650
- return v !== A ? v - A : x.x + x.width + (x.y + x.depth) - (m.x + m.width + (m.y + m.depth));
1309
+ function si(e) {
1310
+ const { theme: n, canvas: r, origin: t, tiers: i, floorSize: l, nodes: o, cornerRadius: a = 0 } = e, c = n === "dark" ? ai : ci, s = n === "dark" ? "#0f172a" : "#fafafa", u = n === "dark" ? "#e2e8f0" : "#1e293b", x = n === "dark" ? "#64748b" : "#94a3b8", p = [...o].sort((m, y) => {
1311
+ const A = i[m.tier]?.elevation || 0, v = i[y.tier]?.elevation || 0;
1312
+ return A !== v ? A - v : y.x + y.width + (y.y + y.depth) - (m.x + m.width + (m.y + m.depth));
651
1313
  });
652
- let f = `<svg xmlns="http://www.w3.org/2000/svg" width="${n.width}" height="${n.height}" style="background:${s}">`;
1314
+ let f = `<svg xmlns="http://www.w3.org/2000/svg" width="${r.width}" height="${r.height}" style="background:${s}">`;
653
1315
  f += `<defs>
654
1316
  <pattern id="grid" width="24" height="24" patternUnits="userSpaceOnUse">
655
- <circle cx="12" cy="12" r="0.5" fill="${r === "dark" ? "#1e293b" : "#e2e8f0"}"/>
1317
+ <circle cx="12" cy="12" r="0.5" fill="${n === "dark" ? "#1e293b" : "#e2e8f0"}"/>
656
1318
  </pattern>
657
1319
  <radialGradient id="bg" cx="48%" cy="34%" r="82%">
658
- <stop offset="0%" stop-color="${r === "dark" ? "#16203a" : "#ffffff"}"/>
659
- <stop offset="55%" stop-color="${r === "dark" ? "#0e1526" : "#f2f5f9"}"/>
660
- <stop offset="100%" stop-color="${r === "dark" ? "#080d18" : "#e7ecf2"}"/>
1320
+ <stop offset="0%" stop-color="${n === "dark" ? "#16203a" : "#ffffff"}"/>
1321
+ <stop offset="55%" stop-color="${n === "dark" ? "#0e1526" : "#f2f5f9"}"/>
1322
+ <stop offset="100%" stop-color="${n === "dark" ? "#080d18" : "#e7ecf2"}"/>
661
1323
  </radialGradient>
662
1324
  <filter id="contact" x="-60%" y="-60%" width="220%" height="220%"><feGaussianBlur stdDeviation="5"/></filter>
663
1325
  <linearGradient id="sheen" x1="0" y1="0" x2="0" y2="1"><stop offset="0%" stop-color="#ffffff" stop-opacity="0.18"/><stop offset="55%" stop-color="#ffffff" stop-opacity="0.04"/><stop offset="100%" stop-color="#ffffff" stop-opacity="0"/></linearGradient>
664
1326
  <linearGradient id="shade" x1="0" y1="0" x2="0" y2="1"><stop offset="0%" stop-color="#000000" stop-opacity="0"/><stop offset="100%" stop-color="#000000" stop-opacity="0.24"/></linearGradient>
665
1327
  <filter id="labelshadow" x="-40%" y="-40%" width="180%" height="180%"><feDropShadow dx="0" dy="0.5" stdDeviation="0.7" flood-color="#000000" flood-opacity="0.7"/></filter>
666
- </defs>`, f += '<rect width="100%" height="100%" fill="url(#bg)"/>', f += '<rect width="100%" height="100%" fill="url(#grid)" opacity="0.5"/>', f += `<g transform="translate(${o.x},${o.y})">`;
1328
+ </defs>`, f += '<rect width="100%" height="100%" fill="url(#bg)"/>', f += '<rect width="100%" height="100%" fill="url(#grid)" opacity="0.5"/>', f += `<g transform="translate(${t.x},${t.y})">`;
667
1329
  for (let m = 0; m < i.length; m++) {
668
- const x = i[m], v = u.filter((T) => T.tier === m), A = x.offset || { x: 0, y: 0 };
669
- f += `<g transform="translate(${A.x},${A.y})">`;
670
- const w = m === 0 ? 8 : 2, X = me(l.width, l.depth, w, 0, 0), oe = b(0, 0, m === 0 ? -2 : x.elevation), $ = x.floorColor || (r === "dark" ? "#0f172a" : "#f8fafc"), F = x.floorOpacity || (m === 0 ? 0.95 : 0.5);
671
- f += `<g transform="translate(${oe.screenX},${oe.screenY})">`, m === 0 && (f += `<g transform="translate(4,4)" opacity="0.2"><path d="${X.top}" fill="#000"/></g>`), f += `<path d="${X.top}" fill="${$}" opacity="${F}"/>`, m === 0 && (f += `<path d="${X.left}" fill="${r === "dark" ? "#0f172a" : "#cbd5e1"}" opacity="0.8"/>`, f += `<path d="${X.right}" fill="${r === "dark" ? "#1e293b" : "#94a3b8"}" opacity="0.8"/>`), f += `<path d="${X.top}" fill="none" stroke="${x.borderColor || (r === "dark" ? "#475569" : "#94a3b8")}" stroke-width="${m === 0 ? 1.5 : 0.75}" opacity="${m === 0 ? 1 : 0.6}"/>`, f += "</g>";
672
- for (const T of v) {
673
- const H = x.elevation + 5, M = b(T.x, T.y, H), O = me(T.width, T.depth, T.height, M.screenX, M.screenY, a), R = c[T.color] || c.slate, V = T.opacity ?? 1;
674
- f += `<g opacity="${V}">`;
675
- const k = b(T.x - 3, T.y - 3, x.elevation), C = me(T.width + 6, T.depth + 6, 0, k.screenX, k.screenY, a).top;
676
- if (f += `<path d="${C}" fill="#000000" opacity="0.3" filter="url(#contact)"/>`, O.cornerBackRight)
677
- for (const S of O.cornerBackRight)
678
- f += `<path d="${S.path}" fill="${Te(R.front, R.side, S.intensity)}"/>`;
679
- if (O.cornerBackLeft)
680
- for (const S of O.cornerBackLeft)
681
- f += `<path d="${S.path}" fill="${Te(R.side, R.front, S.intensity)}"/>`;
682
- if (f += `<path d="${O.left}" fill="${R.side}"/>`, f += `<path d="${O.left}" fill="url(#shade)"/>`, f += `<path d="${O.right}" fill="${R.front}"/>`, f += `<path d="${O.right}" fill="url(#shade)"/>`, O.cornerFrontRight)
683
- for (const S of O.cornerFrontRight)
684
- f += `<path d="${S.path}" fill="${Te(R.front, R.side, S.intensity)}"/>`;
685
- if (O.cornerFrontLeft)
686
- for (const S of O.cornerFrontLeft)
687
- f += `<path d="${S.path}" fill="${Te(R.front, R.side, S.intensity)}"/>`;
688
- if (f += `<path d="${O.top}" fill="${R.top}"/>`, f += `<path d="${O.top}" fill="url(#sheen)"/>`, f += `<path d="${O.top}" fill="none" stroke="rgba(255,255,255,0.28)" stroke-width="0.75" stroke-linejoin="round"/>`, T.label) {
689
- const S = b(T.x + T.width / 2, T.y + T.depth / 2, H + T.height + 2), P = T.width > 70 ? 9 : 8;
690
- f += `<g transform="translate(${S.screenX},${S.screenY})" filter="url(#labelshadow)">`, f += '<g transform="matrix(0.866,-0.5,0.866,0.5,0,0)">', f += `<text x="0" y="0" text-anchor="middle" fill="${h}" font-size="${P}" font-weight="600" font-family='${rr}' style="text-transform:uppercase;letter-spacing:0.06em">${T.label}</text>`, f += "</g></g>";
1330
+ const y = i[m], A = p.filter(($) => $.tier === m), v = y.offset || { x: 0, y: 0 };
1331
+ f += `<g transform="translate(${v.x},${v.y})">`;
1332
+ const b = m === 0 ? 8 : 2, D = he(l.width, l.depth, b, 0, 0), L = w(0, 0, m === 0 ? -2 : y.elevation), E = y.floorColor || (n === "dark" ? "#0f172a" : "#f8fafc"), j = y.floorOpacity || (m === 0 ? 0.95 : 0.5);
1333
+ f += `<g transform="translate(${L.screenX},${L.screenY})">`, m === 0 && (f += `<g transform="translate(4,4)" opacity="0.2"><path d="${D.top}" fill="#000"/></g>`), f += `<path d="${D.top}" fill="${E}" opacity="${j}"/>`, m === 0 && (f += `<path d="${D.left}" fill="${n === "dark" ? "#0f172a" : "#cbd5e1"}" opacity="0.8"/>`, f += `<path d="${D.right}" fill="${n === "dark" ? "#1e293b" : "#94a3b8"}" opacity="0.8"/>`), f += `<path d="${D.top}" fill="none" stroke="${y.borderColor || (n === "dark" ? "#475569" : "#94a3b8")}" stroke-width="${m === 0 ? 1.5 : 0.75}" opacity="${m === 0 ? 1 : 0.6}"/>`, f += "</g>";
1334
+ for (const $ of A) {
1335
+ const B = y.elevation + 5, N = w($.x, $.y, B), I = he($.width, $.depth, $.height, N.screenX, N.screenY, a), M = c[$.color] || c.slate, ne = $.opacity ?? 1;
1336
+ f += `<g opacity="${ne}">`;
1337
+ const J = w($.x - 3, $.y - 3, y.elevation), q = he($.width + 6, $.depth + 6, 0, J.screenX, J.screenY, a).top;
1338
+ if (f += `<path d="${q}" fill="#000000" opacity="0.3" filter="url(#contact)"/>`, I.cornerBackRight)
1339
+ for (const T of I.cornerBackRight)
1340
+ f += `<path d="${T.path}" fill="${Ne(M.front, M.side, T.intensity)}"/>`;
1341
+ if (I.cornerBackLeft)
1342
+ for (const T of I.cornerBackLeft)
1343
+ f += `<path d="${T.path}" fill="${Ne(M.side, M.front, T.intensity)}"/>`;
1344
+ if (f += `<path d="${I.left}" fill="${M.side}"/>`, f += `<path d="${I.left}" fill="url(#shade)"/>`, f += `<path d="${I.right}" fill="${M.front}"/>`, f += `<path d="${I.right}" fill="url(#shade)"/>`, I.cornerFrontRight)
1345
+ for (const T of I.cornerFrontRight)
1346
+ f += `<path d="${T.path}" fill="${Ne(M.front, M.side, T.intensity)}"/>`;
1347
+ if (I.cornerFrontLeft)
1348
+ for (const T of I.cornerFrontLeft)
1349
+ f += `<path d="${T.path}" fill="${Ne(M.front, M.side, T.intensity)}"/>`;
1350
+ if (f += `<path d="${I.top}" fill="${M.top}"/>`, f += `<path d="${I.top}" fill="url(#sheen)"/>`, f += `<path d="${I.top}" fill="none" stroke="rgba(255,255,255,0.28)" stroke-width="0.75" stroke-linejoin="round"/>`, $.label) {
1351
+ const T = w($.x + $.width / 2, $.y + $.depth / 2, B + $.height + 2), W = $.width > 70 ? 9 : 8;
1352
+ f += `<g transform="translate(${T.screenX},${T.screenY})" filter="url(#labelshadow)">`, f += '<g transform="matrix(0.866,-0.5,0.866,0.5,0,0)">', f += `<text x="0" y="0" text-anchor="middle" fill="${u}" font-size="${W}" font-weight="600" font-family='${gn}' style="text-transform:uppercase;letter-spacing:0.06em">${$.label}</text>`, f += "</g></g>";
691
1353
  }
692
1354
  f += "</g>";
693
1355
  }
694
- const j = b(-25, l.depth / 2, x.elevation + 15);
695
- f += `<text x="${j.screenX - 35}" y="${j.screenY}" fill="${d}" font-size="9" font-weight="500" font-family='${rr}' opacity="0.6" style="letter-spacing:0.05em">${x.name}</text>`, f += "</g>";
1356
+ const R = w(-25, l.depth / 2, y.elevation + 15);
1357
+ f += `<text x="${R.screenX - 35}" y="${R.screenY}" fill="${x}" font-size="9" font-weight="500" font-family='${gn}' opacity="0.6" style="letter-spacing:0.05em">${y.name}</text>`, f += "</g>";
696
1358
  }
697
1359
  return f += "</g></svg>", f;
698
1360
  }
699
- function et(e, r) {
700
- e.innerHTML = En(r);
1361
+ function Po(e, n) {
1362
+ e.innerHTML = si(n);
701
1363
  }
702
- function br(e) {
1364
+ function Bn(e) {
703
1365
  return typeof e > "u" || e === null;
704
1366
  }
705
- function Sn(e) {
1367
+ function fi(e) {
706
1368
  return typeof e == "object" && e !== null;
707
1369
  }
708
- function Tn(e) {
709
- return Array.isArray(e) ? e : br(e) ? [] : [e];
1370
+ function ui(e) {
1371
+ return Array.isArray(e) ? e : Bn(e) ? [] : [e];
710
1372
  }
711
- function kn(e, r) {
712
- var n, o, i, l;
713
- if (r)
714
- for (l = Object.keys(r), n = 0, o = l.length; n < o; n += 1)
715
- i = l[n], e[i] = r[i];
1373
+ function pi(e, n) {
1374
+ var r, t, i, l;
1375
+ if (n)
1376
+ for (l = Object.keys(n), r = 0, t = l.length; r < t; r += 1)
1377
+ i = l[r], e[i] = n[i];
716
1378
  return e;
717
1379
  }
718
- function On(e, r) {
719
- var n = "", o;
720
- for (o = 0; o < r; o += 1)
721
- n += e;
722
- return n;
1380
+ function di(e, n) {
1381
+ var r = "", t;
1382
+ for (t = 0; t < n; t += 1)
1383
+ r += e;
1384
+ return r;
723
1385
  }
724
- function $n(e) {
1386
+ function hi(e) {
725
1387
  return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
726
1388
  }
727
- var Fn = br, Rn = Sn, In = Tn, Ln = On, Nn = $n, jn = kn, B = {
728
- isNothing: Fn,
729
- isObject: Rn,
730
- toArray: In,
731
- repeat: Ln,
732
- isNegativeZero: Nn,
733
- extend: jn
1389
+ var xi = Bn, mi = fi, gi = ui, yi = di, vi = hi, bi = pi, U = {
1390
+ isNothing: xi,
1391
+ isObject: mi,
1392
+ toArray: gi,
1393
+ repeat: yi,
1394
+ isNegativeZero: vi,
1395
+ extend: bi
734
1396
  };
735
- function Ar(e, r) {
736
- var n = "", o = e.reason || "(unknown reason)";
737
- return e.mark ? (e.mark.name && (n += 'in "' + e.mark.name + '" '), n += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !r && e.mark.snippet && (n += `
1397
+ function Wn(e, n) {
1398
+ var r = "", t = e.reason || "(unknown reason)";
1399
+ return e.mark ? (e.mark.name && (r += 'in "' + e.mark.name + '" '), r += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !n && e.mark.snippet && (r += `
738
1400
 
739
- ` + e.mark.snippet), o + " " + n) : o;
1401
+ ` + e.mark.snippet), t + " " + r) : t;
740
1402
  }
741
- function be(e, r) {
742
- Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = r, this.message = Ar(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
1403
+ function Te(e, n) {
1404
+ Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = n, this.message = Wn(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
743
1405
  }
744
- be.prototype = Object.create(Error.prototype);
745
- be.prototype.constructor = be;
746
- be.prototype.toString = function(r) {
747
- return this.name + ": " + Ar(this, r);
1406
+ Te.prototype = Object.create(Error.prototype);
1407
+ Te.prototype.constructor = Te;
1408
+ Te.prototype.toString = function(n) {
1409
+ return this.name + ": " + Wn(this, n);
748
1410
  };
749
- var q = be;
750
- function Ne(e, r, n, o, i) {
751
- var l = "", t = "", a = Math.floor(i / 2) - 1;
752
- return o - r > a && (l = " ... ", r = o - a + l.length), n - o > a && (t = " ...", n = o + a - t.length), {
753
- str: l + e.slice(r, n).replace(/\t/g, "→") + t,
754
- pos: o - r + l.length
1411
+ var Z = Te;
1412
+ function Xe(e, n, r, t, i) {
1413
+ var l = "", o = "", a = Math.floor(i / 2) - 1;
1414
+ return t - n > a && (l = " ... ", n = t - a + l.length), r - t > a && (o = " ...", r = t + a - o.length), {
1415
+ str: l + e.slice(n, r).replace(/\t/g, "→") + o,
1416
+ pos: t - n + l.length
755
1417
  // relative position
756
1418
  };
757
1419
  }
758
- function je(e, r) {
759
- return B.repeat(" ", r - e.length) + e;
760
- }
761
- function Mn(e, r) {
762
- if (r = Object.create(r || null), !e.buffer) return null;
763
- r.maxLength || (r.maxLength = 79), typeof r.indent != "number" && (r.indent = 1), typeof r.linesBefore != "number" && (r.linesBefore = 3), typeof r.linesAfter != "number" && (r.linesAfter = 2);
764
- for (var n = /\r?\n|\r|\0/g, o = [0], i = [], l, t = -1; l = n.exec(e.buffer); )
765
- i.push(l.index), o.push(l.index + l[0].length), e.position <= l.index && t < 0 && (t = o.length - 2);
766
- t < 0 && (t = o.length - 1);
767
- var a = "", c, s, h = Math.min(e.line + r.linesAfter, i.length).toString().length, d = r.maxLength - (r.indent + h + 3);
768
- for (c = 1; c <= r.linesBefore && !(t - c < 0); c++)
769
- s = Ne(
1420
+ function Ge(e, n) {
1421
+ return U.repeat(" ", n - e.length) + e;
1422
+ }
1423
+ function Ai(e, n) {
1424
+ if (n = Object.create(n || null), !e.buffer) return null;
1425
+ n.maxLength || (n.maxLength = 79), typeof n.indent != "number" && (n.indent = 1), typeof n.linesBefore != "number" && (n.linesBefore = 3), typeof n.linesAfter != "number" && (n.linesAfter = 2);
1426
+ for (var r = /\r?\n|\r|\0/g, t = [0], i = [], l, o = -1; l = r.exec(e.buffer); )
1427
+ i.push(l.index), t.push(l.index + l[0].length), e.position <= l.index && o < 0 && (o = t.length - 2);
1428
+ o < 0 && (o = t.length - 1);
1429
+ var a = "", c, s, u = Math.min(e.line + n.linesAfter, i.length).toString().length, x = n.maxLength - (n.indent + u + 3);
1430
+ for (c = 1; c <= n.linesBefore && !(o - c < 0); c++)
1431
+ s = Xe(
770
1432
  e.buffer,
771
- o[t - c],
772
- i[t - c],
773
- e.position - (o[t] - o[t - c]),
774
- d
775
- ), a = B.repeat(" ", r.indent) + je((e.line - c + 1).toString(), h) + " | " + s.str + `
1433
+ t[o - c],
1434
+ i[o - c],
1435
+ e.position - (t[o] - t[o - c]),
1436
+ x
1437
+ ), a = U.repeat(" ", n.indent) + Ge((e.line - c + 1).toString(), u) + " | " + s.str + `
776
1438
  ` + a;
777
- for (s = Ne(e.buffer, o[t], i[t], e.position, d), a += B.repeat(" ", r.indent) + je((e.line + 1).toString(), h) + " | " + s.str + `
778
- `, a += B.repeat("-", r.indent + h + 3 + s.pos) + `^
779
- `, c = 1; c <= r.linesAfter && !(t + c >= i.length); c++)
780
- s = Ne(
1439
+ for (s = Xe(e.buffer, t[o], i[o], e.position, x), a += U.repeat(" ", n.indent) + Ge((e.line + 1).toString(), u) + " | " + s.str + `
1440
+ `, a += U.repeat("-", n.indent + u + 3 + s.pos) + `^
1441
+ `, c = 1; c <= n.linesAfter && !(o + c >= i.length); c++)
1442
+ s = Xe(
781
1443
  e.buffer,
782
- o[t + c],
783
- i[t + c],
784
- e.position - (o[t] - o[t + c]),
785
- d
786
- ), a += B.repeat(" ", r.indent) + je((e.line + c + 1).toString(), h) + " | " + s.str + `
1444
+ t[o + c],
1445
+ i[o + c],
1446
+ e.position - (t[o] - t[o + c]),
1447
+ x
1448
+ ), a += U.repeat(" ", n.indent) + Ge((e.line + c + 1).toString(), u) + " | " + s.str + `
787
1449
  `;
788
1450
  return a.replace(/\n$/, "");
789
1451
  }
790
- var Pn = Mn, Dn = [
1452
+ var ki = Ai, Ci = [
791
1453
  "kind",
792
1454
  "multi",
793
1455
  "resolve",
@@ -798,41 +1460,41 @@ var Pn = Mn, Dn = [
798
1460
  "representName",
799
1461
  "defaultStyle",
800
1462
  "styleAliases"
801
- ], Yn = [
1463
+ ], Si = [
802
1464
  "scalar",
803
1465
  "sequence",
804
1466
  "mapping"
805
1467
  ];
806
- function Bn(e) {
807
- var r = {};
808
- return e !== null && Object.keys(e).forEach(function(n) {
809
- e[n].forEach(function(o) {
810
- r[String(o)] = n;
1468
+ function wi(e) {
1469
+ var n = {};
1470
+ return e !== null && Object.keys(e).forEach(function(r) {
1471
+ e[r].forEach(function(t) {
1472
+ n[String(t)] = r;
811
1473
  });
812
- }), r;
1474
+ }), n;
813
1475
  }
814
- function Hn(e, r) {
815
- if (r = r || {}, Object.keys(r).forEach(function(n) {
816
- if (Dn.indexOf(n) === -1)
817
- throw new q('Unknown option "' + n + '" is met in definition of "' + e + '" YAML type.');
818
- }), this.options = r, this.tag = e, this.kind = r.kind || null, this.resolve = r.resolve || function() {
1476
+ function Ei(e, n) {
1477
+ if (n = n || {}, Object.keys(n).forEach(function(r) {
1478
+ if (Ci.indexOf(r) === -1)
1479
+ throw new Z('Unknown option "' + r + '" is met in definition of "' + e + '" YAML type.');
1480
+ }), this.options = n, this.tag = e, this.kind = n.kind || null, this.resolve = n.resolve || function() {
819
1481
  return !0;
820
- }, this.construct = r.construct || function(n) {
821
- return n;
822
- }, this.instanceOf = r.instanceOf || null, this.predicate = r.predicate || null, this.represent = r.represent || null, this.representName = r.representName || null, this.defaultStyle = r.defaultStyle || null, this.multi = r.multi || !1, this.styleAliases = Bn(r.styleAliases || null), Yn.indexOf(this.kind) === -1)
823
- throw new q('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
824
- }
825
- var U = Hn;
826
- function nr(e, r) {
827
- var n = [];
828
- return e[r].forEach(function(o) {
829
- var i = n.length;
830
- n.forEach(function(l, t) {
831
- l.tag === o.tag && l.kind === o.kind && l.multi === o.multi && (i = t);
832
- }), n[i] = o;
833
- }), n;
1482
+ }, this.construct = n.construct || function(r) {
1483
+ return r;
1484
+ }, this.instanceOf = n.instanceOf || null, this.predicate = n.predicate || null, this.represent = n.represent || null, this.representName = n.representName || null, this.defaultStyle = n.defaultStyle || null, this.multi = n.multi || !1, this.styleAliases = wi(n.styleAliases || null), Si.indexOf(this.kind) === -1)
1485
+ throw new Z('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
1486
+ }
1487
+ var z = Ei;
1488
+ function yn(e, n) {
1489
+ var r = [];
1490
+ return e[n].forEach(function(t) {
1491
+ var i = r.length;
1492
+ r.forEach(function(l, o) {
1493
+ l.tag === t.tag && l.kind === t.kind && l.multi === t.multi && (i = o);
1494
+ }), r[i] = t;
1495
+ }), r;
834
1496
  }
835
- function Un() {
1497
+ function _i() {
836
1498
  var e = {
837
1499
  scalar: {},
838
1500
  sequence: {},
@@ -844,79 +1506,79 @@ function Un() {
844
1506
  mapping: [],
845
1507
  fallback: []
846
1508
  }
847
- }, r, n;
848
- function o(i) {
1509
+ }, n, r;
1510
+ function t(i) {
849
1511
  i.multi ? (e.multi[i.kind].push(i), e.multi.fallback.push(i)) : e[i.kind][i.tag] = e.fallback[i.tag] = i;
850
1512
  }
851
- for (r = 0, n = arguments.length; r < n; r += 1)
852
- arguments[r].forEach(o);
1513
+ for (n = 0, r = arguments.length; n < r; n += 1)
1514
+ arguments[n].forEach(t);
853
1515
  return e;
854
1516
  }
855
- function Pe(e) {
1517
+ function qe(e) {
856
1518
  return this.extend(e);
857
1519
  }
858
- Pe.prototype.extend = function(r) {
859
- var n = [], o = [];
860
- if (r instanceof U)
861
- o.push(r);
862
- else if (Array.isArray(r))
863
- o = o.concat(r);
864
- else if (r && (Array.isArray(r.implicit) || Array.isArray(r.explicit)))
865
- r.implicit && (n = n.concat(r.implicit)), r.explicit && (o = o.concat(r.explicit));
1520
+ qe.prototype.extend = function(n) {
1521
+ var r = [], t = [];
1522
+ if (n instanceof z)
1523
+ t.push(n);
1524
+ else if (Array.isArray(n))
1525
+ t = t.concat(n);
1526
+ else if (n && (Array.isArray(n.implicit) || Array.isArray(n.explicit)))
1527
+ n.implicit && (r = r.concat(n.implicit)), n.explicit && (t = t.concat(n.explicit));
866
1528
  else
867
- throw new q("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
868
- n.forEach(function(l) {
869
- if (!(l instanceof U))
870
- throw new q("Specified list of YAML types (or a single Type object) contains a non-Type object.");
1529
+ throw new Z("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
1530
+ r.forEach(function(l) {
1531
+ if (!(l instanceof z))
1532
+ throw new Z("Specified list of YAML types (or a single Type object) contains a non-Type object.");
871
1533
  if (l.loadKind && l.loadKind !== "scalar")
872
- throw new q("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
1534
+ throw new Z("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
873
1535
  if (l.multi)
874
- throw new q("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
875
- }), o.forEach(function(l) {
876
- if (!(l instanceof U))
877
- throw new q("Specified list of YAML types (or a single Type object) contains a non-Type object.");
1536
+ throw new Z("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
1537
+ }), t.forEach(function(l) {
1538
+ if (!(l instanceof z))
1539
+ throw new Z("Specified list of YAML types (or a single Type object) contains a non-Type object.");
878
1540
  });
879
- var i = Object.create(Pe.prototype);
880
- return i.implicit = (this.implicit || []).concat(n), i.explicit = (this.explicit || []).concat(o), i.compiledImplicit = nr(i, "implicit"), i.compiledExplicit = nr(i, "explicit"), i.compiledTypeMap = Un(i.compiledImplicit, i.compiledExplicit), i;
1541
+ var i = Object.create(qe.prototype);
1542
+ return i.implicit = (this.implicit || []).concat(r), i.explicit = (this.explicit || []).concat(t), i.compiledImplicit = yn(i, "implicit"), i.compiledExplicit = yn(i, "explicit"), i.compiledTypeMap = _i(i.compiledImplicit, i.compiledExplicit), i;
881
1543
  };
882
- var _r = Pe, Cr = new U("tag:yaml.org,2002:str", {
1544
+ var Hn = qe, Un = new z("tag:yaml.org,2002:str", {
883
1545
  kind: "scalar",
884
1546
  construct: function(e) {
885
1547
  return e !== null ? e : "";
886
1548
  }
887
- }), wr = new U("tag:yaml.org,2002:seq", {
1549
+ }), Xn = new z("tag:yaml.org,2002:seq", {
888
1550
  kind: "sequence",
889
1551
  construct: function(e) {
890
1552
  return e !== null ? e : [];
891
1553
  }
892
- }), Er = new U("tag:yaml.org,2002:map", {
1554
+ }), Gn = new z("tag:yaml.org,2002:map", {
893
1555
  kind: "mapping",
894
1556
  construct: function(e) {
895
1557
  return e !== null ? e : {};
896
1558
  }
897
- }), Sr = new _r({
1559
+ }), zn = new Hn({
898
1560
  explicit: [
899
- Cr,
900
- wr,
901
- Er
1561
+ Un,
1562
+ Xn,
1563
+ Gn
902
1564
  ]
903
1565
  });
904
- function Gn(e) {
1566
+ function Ti(e) {
905
1567
  if (e === null) return !0;
906
- var r = e.length;
907
- return r === 1 && e === "~" || r === 4 && (e === "null" || e === "Null" || e === "NULL");
1568
+ var n = e.length;
1569
+ return n === 1 && e === "~" || n === 4 && (e === "null" || e === "Null" || e === "NULL");
908
1570
  }
909
- function Wn() {
1571
+ function $i() {
910
1572
  return null;
911
1573
  }
912
- function qn(e) {
1574
+ function Oi(e) {
913
1575
  return e === null;
914
1576
  }
915
- var Tr = new U("tag:yaml.org,2002:null", {
1577
+ var qn = new z("tag:yaml.org,2002:null", {
916
1578
  kind: "scalar",
917
- resolve: Gn,
918
- construct: Wn,
919
- predicate: qn,
1579
+ resolve: Ti,
1580
+ construct: $i,
1581
+ predicate: Oi,
920
1582
  represent: {
921
1583
  canonical: function() {
922
1584
  return "~";
@@ -936,22 +1598,22 @@ var Tr = new U("tag:yaml.org,2002:null", {
936
1598
  },
937
1599
  defaultStyle: "lowercase"
938
1600
  });
939
- function Kn(e) {
1601
+ function ji(e) {
940
1602
  if (e === null) return !1;
941
- var r = e.length;
942
- return r === 4 && (e === "true" || e === "True" || e === "TRUE") || r === 5 && (e === "false" || e === "False" || e === "FALSE");
1603
+ var n = e.length;
1604
+ return n === 4 && (e === "true" || e === "True" || e === "TRUE") || n === 5 && (e === "false" || e === "False" || e === "FALSE");
943
1605
  }
944
- function Xn(e) {
1606
+ function Fi(e) {
945
1607
  return e === "true" || e === "True" || e === "TRUE";
946
1608
  }
947
- function zn(e) {
1609
+ function Li(e) {
948
1610
  return Object.prototype.toString.call(e) === "[object Boolean]";
949
1611
  }
950
- var kr = new U("tag:yaml.org,2002:bool", {
1612
+ var Kn = new z("tag:yaml.org,2002:bool", {
951
1613
  kind: "scalar",
952
- resolve: Kn,
953
- construct: Xn,
954
- predicate: zn,
1614
+ resolve: ji,
1615
+ construct: Fi,
1616
+ predicate: Li,
955
1617
  represent: {
956
1618
  lowercase: function(e) {
957
1619
  return e ? "true" : "false";
@@ -965,73 +1627,73 @@ var kr = new U("tag:yaml.org,2002:bool", {
965
1627
  },
966
1628
  defaultStyle: "lowercase"
967
1629
  });
968
- function Vn(e) {
1630
+ function Ii(e) {
969
1631
  return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
970
1632
  }
971
- function Zn(e) {
1633
+ function Ri(e) {
972
1634
  return 48 <= e && e <= 55;
973
1635
  }
974
- function Qn(e) {
1636
+ function Mi(e) {
975
1637
  return 48 <= e && e <= 57;
976
1638
  }
977
- function Jn(e) {
1639
+ function Ni(e) {
978
1640
  if (e === null) return !1;
979
- var r = e.length, n = 0, o = !1, i;
980
- if (!r) return !1;
981
- if (i = e[n], (i === "-" || i === "+") && (i = e[++n]), i === "0") {
982
- if (n + 1 === r) return !0;
983
- if (i = e[++n], i === "b") {
984
- for (n++; n < r; n++)
985
- if (i = e[n], i !== "_") {
1641
+ var n = e.length, r = 0, t = !1, i;
1642
+ if (!n) return !1;
1643
+ if (i = e[r], (i === "-" || i === "+") && (i = e[++r]), i === "0") {
1644
+ if (r + 1 === n) return !0;
1645
+ if (i = e[++r], i === "b") {
1646
+ for (r++; r < n; r++)
1647
+ if (i = e[r], i !== "_") {
986
1648
  if (i !== "0" && i !== "1") return !1;
987
- o = !0;
1649
+ t = !0;
988
1650
  }
989
- return o && i !== "_";
1651
+ return t && i !== "_";
990
1652
  }
991
1653
  if (i === "x") {
992
- for (n++; n < r; n++)
993
- if (i = e[n], i !== "_") {
994
- if (!Vn(e.charCodeAt(n))) return !1;
995
- o = !0;
1654
+ for (r++; r < n; r++)
1655
+ if (i = e[r], i !== "_") {
1656
+ if (!Ii(e.charCodeAt(r))) return !1;
1657
+ t = !0;
996
1658
  }
997
- return o && i !== "_";
1659
+ return t && i !== "_";
998
1660
  }
999
1661
  if (i === "o") {
1000
- for (n++; n < r; n++)
1001
- if (i = e[n], i !== "_") {
1002
- if (!Zn(e.charCodeAt(n))) return !1;
1003
- o = !0;
1662
+ for (r++; r < n; r++)
1663
+ if (i = e[r], i !== "_") {
1664
+ if (!Ri(e.charCodeAt(r))) return !1;
1665
+ t = !0;
1004
1666
  }
1005
- return o && i !== "_";
1667
+ return t && i !== "_";
1006
1668
  }
1007
1669
  }
1008
1670
  if (i === "_") return !1;
1009
- for (; n < r; n++)
1010
- if (i = e[n], i !== "_") {
1011
- if (!Qn(e.charCodeAt(n)))
1671
+ for (; r < n; r++)
1672
+ if (i = e[r], i !== "_") {
1673
+ if (!Mi(e.charCodeAt(r)))
1012
1674
  return !1;
1013
- o = !0;
1675
+ t = !0;
1014
1676
  }
1015
- return !(!o || i === "_");
1016
- }
1017
- function ei(e) {
1018
- var r = e, n = 1, o;
1019
- if (r.indexOf("_") !== -1 && (r = r.replace(/_/g, "")), o = r[0], (o === "-" || o === "+") && (o === "-" && (n = -1), r = r.slice(1), o = r[0]), r === "0") return 0;
1020
- if (o === "0") {
1021
- if (r[1] === "b") return n * parseInt(r.slice(2), 2);
1022
- if (r[1] === "x") return n * parseInt(r.slice(2), 16);
1023
- if (r[1] === "o") return n * parseInt(r.slice(2), 8);
1677
+ return !(!t || i === "_");
1678
+ }
1679
+ function Pi(e) {
1680
+ var n = e, r = 1, t;
1681
+ if (n.indexOf("_") !== -1 && (n = n.replace(/_/g, "")), t = n[0], (t === "-" || t === "+") && (t === "-" && (r = -1), n = n.slice(1), t = n[0]), n === "0") return 0;
1682
+ if (t === "0") {
1683
+ if (n[1] === "b") return r * parseInt(n.slice(2), 2);
1684
+ if (n[1] === "x") return r * parseInt(n.slice(2), 16);
1685
+ if (n[1] === "o") return r * parseInt(n.slice(2), 8);
1024
1686
  }
1025
- return n * parseInt(r, 10);
1687
+ return r * parseInt(n, 10);
1026
1688
  }
1027
- function ri(e) {
1028
- return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !B.isNegativeZero(e);
1689
+ function Di(e) {
1690
+ return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !U.isNegativeZero(e);
1029
1691
  }
1030
- var Or = new U("tag:yaml.org,2002:int", {
1692
+ var Vn = new z("tag:yaml.org,2002:int", {
1031
1693
  kind: "scalar",
1032
- resolve: Jn,
1033
- construct: ei,
1034
- predicate: ri,
1694
+ resolve: Ni,
1695
+ construct: Pi,
1696
+ predicate: Di,
1035
1697
  represent: {
1036
1698
  binary: function(e) {
1037
1699
  return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
@@ -1054,24 +1716,24 @@ var Or = new U("tag:yaml.org,2002:int", {
1054
1716
  decimal: [10, "dec"],
1055
1717
  hexadecimal: [16, "hex"]
1056
1718
  }
1057
- }), ni = new RegExp(
1719
+ }), Yi = new RegExp(
1058
1720
  // 2.5e4, 2.5 and integers
1059
1721
  "^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
1060
1722
  );
1061
- function ii(e) {
1062
- return !(e === null || !ni.test(e) || // Quick hack to not allow integers end with `_`
1723
+ function Bi(e) {
1724
+ return !(e === null || !Yi.test(e) || // Quick hack to not allow integers end with `_`
1063
1725
  // Probably should update regexp & check speed
1064
1726
  e[e.length - 1] === "_");
1065
1727
  }
1066
- function oi(e) {
1067
- var r, n;
1068
- return r = e.replace(/_/g, "").toLowerCase(), n = r[0] === "-" ? -1 : 1, "+-".indexOf(r[0]) >= 0 && (r = r.slice(1)), r === ".inf" ? n === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : r === ".nan" ? NaN : n * parseFloat(r, 10);
1728
+ function Wi(e) {
1729
+ var n, r;
1730
+ return n = e.replace(/_/g, "").toLowerCase(), r = n[0] === "-" ? -1 : 1, "+-".indexOf(n[0]) >= 0 && (n = n.slice(1)), n === ".inf" ? r === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : n === ".nan" ? NaN : r * parseFloat(n, 10);
1069
1731
  }
1070
- var ti = /^[-+]?[0-9]+e/;
1071
- function li(e, r) {
1072
- var n;
1732
+ var Hi = /^[-+]?[0-9]+e/;
1733
+ function Ui(e, n) {
1734
+ var r;
1073
1735
  if (isNaN(e))
1074
- switch (r) {
1736
+ switch (n) {
1075
1737
  case "lowercase":
1076
1738
  return ".nan";
1077
1739
  case "uppercase":
@@ -1080,7 +1742,7 @@ function li(e, r) {
1080
1742
  return ".NaN";
1081
1743
  }
1082
1744
  else if (Number.POSITIVE_INFINITY === e)
1083
- switch (r) {
1745
+ switch (n) {
1084
1746
  case "lowercase":
1085
1747
  return ".inf";
1086
1748
  case "uppercase":
@@ -1089,7 +1751,7 @@ function li(e, r) {
1089
1751
  return ".Inf";
1090
1752
  }
1091
1753
  else if (Number.NEGATIVE_INFINITY === e)
1092
- switch (r) {
1754
+ switch (n) {
1093
1755
  case "lowercase":
1094
1756
  return "-.inf";
1095
1757
  case "uppercase":
@@ -1097,219 +1759,219 @@ function li(e, r) {
1097
1759
  case "camelcase":
1098
1760
  return "-.Inf";
1099
1761
  }
1100
- else if (B.isNegativeZero(e))
1762
+ else if (U.isNegativeZero(e))
1101
1763
  return "-0.0";
1102
- return n = e.toString(10), ti.test(n) ? n.replace("e", ".e") : n;
1764
+ return r = e.toString(10), Hi.test(r) ? r.replace("e", ".e") : r;
1103
1765
  }
1104
- function ai(e) {
1105
- return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || B.isNegativeZero(e));
1766
+ function Xi(e) {
1767
+ return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || U.isNegativeZero(e));
1106
1768
  }
1107
- var $r = new U("tag:yaml.org,2002:float", {
1769
+ var Zn = new z("tag:yaml.org,2002:float", {
1108
1770
  kind: "scalar",
1109
- resolve: ii,
1110
- construct: oi,
1111
- predicate: ai,
1112
- represent: li,
1771
+ resolve: Bi,
1772
+ construct: Wi,
1773
+ predicate: Xi,
1774
+ represent: Ui,
1113
1775
  defaultStyle: "lowercase"
1114
- }), Fr = Sr.extend({
1776
+ }), Jn = zn.extend({
1115
1777
  implicit: [
1116
- Tr,
1117
- kr,
1118
- Or,
1119
- $r
1778
+ qn,
1779
+ Kn,
1780
+ Vn,
1781
+ Zn
1120
1782
  ]
1121
- }), Rr = Fr, Ir = new RegExp(
1783
+ }), Qn = Jn, er = new RegExp(
1122
1784
  "^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
1123
- ), Lr = new RegExp(
1785
+ ), nr = new RegExp(
1124
1786
  "^([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]))?))?$"
1125
1787
  );
1126
- function ci(e) {
1127
- return e === null ? !1 : Ir.exec(e) !== null || Lr.exec(e) !== null;
1128
- }
1129
- function fi(e) {
1130
- var r, n, o, i, l, t, a, c = 0, s = null, h, d, u;
1131
- if (r = Ir.exec(e), r === null && (r = Lr.exec(e)), r === null) throw new Error("Date resolve error");
1132
- if (n = +r[1], o = +r[2] - 1, i = +r[3], !r[4])
1133
- return new Date(Date.UTC(n, o, i));
1134
- if (l = +r[4], t = +r[5], a = +r[6], r[7]) {
1135
- for (c = r[7].slice(0, 3); c.length < 3; )
1788
+ function Gi(e) {
1789
+ return e === null ? !1 : er.exec(e) !== null || nr.exec(e) !== null;
1790
+ }
1791
+ function zi(e) {
1792
+ var n, r, t, i, l, o, a, c = 0, s = null, u, x, p;
1793
+ if (n = er.exec(e), n === null && (n = nr.exec(e)), n === null) throw new Error("Date resolve error");
1794
+ if (r = +n[1], t = +n[2] - 1, i = +n[3], !n[4])
1795
+ return new Date(Date.UTC(r, t, i));
1796
+ if (l = +n[4], o = +n[5], a = +n[6], n[7]) {
1797
+ for (c = n[7].slice(0, 3); c.length < 3; )
1136
1798
  c += "0";
1137
1799
  c = +c;
1138
1800
  }
1139
- return r[9] && (h = +r[10], d = +(r[11] || 0), s = (h * 60 + d) * 6e4, r[9] === "-" && (s = -s)), u = new Date(Date.UTC(n, o, i, l, t, a, c)), s && u.setTime(u.getTime() - s), u;
1801
+ return n[9] && (u = +n[10], x = +(n[11] || 0), s = (u * 60 + x) * 6e4, n[9] === "-" && (s = -s)), p = new Date(Date.UTC(r, t, i, l, o, a, c)), s && p.setTime(p.getTime() - s), p;
1140
1802
  }
1141
- function si(e) {
1803
+ function qi(e) {
1142
1804
  return e.toISOString();
1143
1805
  }
1144
- var Nr = new U("tag:yaml.org,2002:timestamp", {
1806
+ var rr = new z("tag:yaml.org,2002:timestamp", {
1145
1807
  kind: "scalar",
1146
- resolve: ci,
1147
- construct: fi,
1808
+ resolve: Gi,
1809
+ construct: zi,
1148
1810
  instanceOf: Date,
1149
- represent: si
1811
+ represent: qi
1150
1812
  });
1151
- function ui(e) {
1813
+ function Ki(e) {
1152
1814
  return e === "<<" || e === null;
1153
1815
  }
1154
- var jr = new U("tag:yaml.org,2002:merge", {
1816
+ var ir = new z("tag:yaml.org,2002:merge", {
1155
1817
  kind: "scalar",
1156
- resolve: ui
1157
- }), Ue = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
1818
+ resolve: Ki
1819
+ }), rn = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
1158
1820
  \r`;
1159
- function pi(e) {
1821
+ function Vi(e) {
1160
1822
  if (e === null) return !1;
1161
- var r, n, o = 0, i = e.length, l = Ue;
1162
- for (n = 0; n < i; n++)
1163
- if (r = l.indexOf(e.charAt(n)), !(r > 64)) {
1164
- if (r < 0) return !1;
1165
- o += 6;
1823
+ var n, r, t = 0, i = e.length, l = rn;
1824
+ for (r = 0; r < i; r++)
1825
+ if (n = l.indexOf(e.charAt(r)), !(n > 64)) {
1826
+ if (n < 0) return !1;
1827
+ t += 6;
1166
1828
  }
1167
- return o % 8 === 0;
1829
+ return t % 8 === 0;
1168
1830
  }
1169
- function di(e) {
1170
- var r, n, o = e.replace(/[\r\n=]/g, ""), i = o.length, l = Ue, t = 0, a = [];
1171
- for (r = 0; r < i; r++)
1172
- r % 4 === 0 && r && (a.push(t >> 16 & 255), a.push(t >> 8 & 255), a.push(t & 255)), t = t << 6 | l.indexOf(o.charAt(r));
1173
- return n = i % 4 * 6, n === 0 ? (a.push(t >> 16 & 255), a.push(t >> 8 & 255), a.push(t & 255)) : n === 18 ? (a.push(t >> 10 & 255), a.push(t >> 2 & 255)) : n === 12 && a.push(t >> 4 & 255), new Uint8Array(a);
1831
+ function Zi(e) {
1832
+ var n, r, t = e.replace(/[\r\n=]/g, ""), i = t.length, l = rn, o = 0, a = [];
1833
+ for (n = 0; n < i; n++)
1834
+ n % 4 === 0 && n && (a.push(o >> 16 & 255), a.push(o >> 8 & 255), a.push(o & 255)), o = o << 6 | l.indexOf(t.charAt(n));
1835
+ return r = i % 4 * 6, r === 0 ? (a.push(o >> 16 & 255), a.push(o >> 8 & 255), a.push(o & 255)) : r === 18 ? (a.push(o >> 10 & 255), a.push(o >> 2 & 255)) : r === 12 && a.push(o >> 4 & 255), new Uint8Array(a);
1174
1836
  }
1175
- function hi(e) {
1176
- var r = "", n = 0, o, i, l = e.length, t = Ue;
1177
- for (o = 0; o < l; o++)
1178
- o % 3 === 0 && o && (r += t[n >> 18 & 63], r += t[n >> 12 & 63], r += t[n >> 6 & 63], r += t[n & 63]), n = (n << 8) + e[o];
1179
- return i = l % 3, i === 0 ? (r += t[n >> 18 & 63], r += t[n >> 12 & 63], r += t[n >> 6 & 63], r += t[n & 63]) : i === 2 ? (r += t[n >> 10 & 63], r += t[n >> 4 & 63], r += t[n << 2 & 63], r += t[64]) : i === 1 && (r += t[n >> 2 & 63], r += t[n << 4 & 63], r += t[64], r += t[64]), r;
1837
+ function Ji(e) {
1838
+ var n = "", r = 0, t, i, l = e.length, o = rn;
1839
+ for (t = 0; t < l; t++)
1840
+ t % 3 === 0 && t && (n += o[r >> 18 & 63], n += o[r >> 12 & 63], n += o[r >> 6 & 63], n += o[r & 63]), r = (r << 8) + e[t];
1841
+ return i = l % 3, i === 0 ? (n += o[r >> 18 & 63], n += o[r >> 12 & 63], n += o[r >> 6 & 63], n += o[r & 63]) : i === 2 ? (n += o[r >> 10 & 63], n += o[r >> 4 & 63], n += o[r << 2 & 63], n += o[64]) : i === 1 && (n += o[r >> 2 & 63], n += o[r << 4 & 63], n += o[64], n += o[64]), n;
1180
1842
  }
1181
- function mi(e) {
1843
+ function Qi(e) {
1182
1844
  return Object.prototype.toString.call(e) === "[object Uint8Array]";
1183
1845
  }
1184
- var Mr = new U("tag:yaml.org,2002:binary", {
1846
+ var tr = new z("tag:yaml.org,2002:binary", {
1185
1847
  kind: "scalar",
1186
- resolve: pi,
1187
- construct: di,
1188
- predicate: mi,
1189
- represent: hi
1190
- }), xi = Object.prototype.hasOwnProperty, gi = Object.prototype.toString;
1191
- function yi(e) {
1848
+ resolve: Vi,
1849
+ construct: Zi,
1850
+ predicate: Qi,
1851
+ represent: Ji
1852
+ }), et = Object.prototype.hasOwnProperty, nt = Object.prototype.toString;
1853
+ function rt(e) {
1192
1854
  if (e === null) return !0;
1193
- var r = [], n, o, i, l, t, a = e;
1194
- for (n = 0, o = a.length; n < o; n += 1) {
1195
- if (i = a[n], t = !1, gi.call(i) !== "[object Object]") return !1;
1855
+ var n = [], r, t, i, l, o, a = e;
1856
+ for (r = 0, t = a.length; r < t; r += 1) {
1857
+ if (i = a[r], o = !1, nt.call(i) !== "[object Object]") return !1;
1196
1858
  for (l in i)
1197
- if (xi.call(i, l))
1198
- if (!t) t = !0;
1859
+ if (et.call(i, l))
1860
+ if (!o) o = !0;
1199
1861
  else return !1;
1200
- if (!t) return !1;
1201
- if (r.indexOf(l) === -1) r.push(l);
1862
+ if (!o) return !1;
1863
+ if (n.indexOf(l) === -1) n.push(l);
1202
1864
  else return !1;
1203
1865
  }
1204
1866
  return !0;
1205
1867
  }
1206
- function vi(e) {
1868
+ function it(e) {
1207
1869
  return e !== null ? e : [];
1208
1870
  }
1209
- var Pr = new U("tag:yaml.org,2002:omap", {
1871
+ var or = new z("tag:yaml.org,2002:omap", {
1210
1872
  kind: "sequence",
1211
- resolve: yi,
1212
- construct: vi
1213
- }), bi = Object.prototype.toString;
1214
- function Ai(e) {
1873
+ resolve: rt,
1874
+ construct: it
1875
+ }), tt = Object.prototype.toString;
1876
+ function ot(e) {
1215
1877
  if (e === null) return !0;
1216
- var r, n, o, i, l, t = e;
1217
- for (l = new Array(t.length), r = 0, n = t.length; r < n; r += 1) {
1218
- if (o = t[r], bi.call(o) !== "[object Object]" || (i = Object.keys(o), i.length !== 1)) return !1;
1219
- l[r] = [i[0], o[i[0]]];
1878
+ var n, r, t, i, l, o = e;
1879
+ for (l = new Array(o.length), n = 0, r = o.length; n < r; n += 1) {
1880
+ if (t = o[n], tt.call(t) !== "[object Object]" || (i = Object.keys(t), i.length !== 1)) return !1;
1881
+ l[n] = [i[0], t[i[0]]];
1220
1882
  }
1221
1883
  return !0;
1222
1884
  }
1223
- function _i(e) {
1885
+ function lt(e) {
1224
1886
  if (e === null) return [];
1225
- var r, n, o, i, l, t = e;
1226
- for (l = new Array(t.length), r = 0, n = t.length; r < n; r += 1)
1227
- o = t[r], i = Object.keys(o), l[r] = [i[0], o[i[0]]];
1887
+ var n, r, t, i, l, o = e;
1888
+ for (l = new Array(o.length), n = 0, r = o.length; n < r; n += 1)
1889
+ t = o[n], i = Object.keys(t), l[n] = [i[0], t[i[0]]];
1228
1890
  return l;
1229
1891
  }
1230
- var Dr = new U("tag:yaml.org,2002:pairs", {
1892
+ var lr = new z("tag:yaml.org,2002:pairs", {
1231
1893
  kind: "sequence",
1232
- resolve: Ai,
1233
- construct: _i
1234
- }), Ci = Object.prototype.hasOwnProperty;
1235
- function wi(e) {
1894
+ resolve: ot,
1895
+ construct: lt
1896
+ }), at = Object.prototype.hasOwnProperty;
1897
+ function ct(e) {
1236
1898
  if (e === null) return !0;
1237
- var r, n = e;
1238
- for (r in n)
1239
- if (Ci.call(n, r) && n[r] !== null)
1899
+ var n, r = e;
1900
+ for (n in r)
1901
+ if (at.call(r, n) && r[n] !== null)
1240
1902
  return !1;
1241
1903
  return !0;
1242
1904
  }
1243
- function Ei(e) {
1905
+ function st(e) {
1244
1906
  return e !== null ? e : {};
1245
1907
  }
1246
- var Yr = new U("tag:yaml.org,2002:set", {
1908
+ var ar = new z("tag:yaml.org,2002:set", {
1247
1909
  kind: "mapping",
1248
- resolve: wi,
1249
- construct: Ei
1250
- }), Ge = Rr.extend({
1910
+ resolve: ct,
1911
+ construct: st
1912
+ }), tn = Qn.extend({
1251
1913
  implicit: [
1252
- Nr,
1253
- jr
1914
+ rr,
1915
+ ir
1254
1916
  ],
1255
1917
  explicit: [
1256
- Mr,
1257
- Pr,
1258
- Dr,
1259
- Yr
1918
+ tr,
1919
+ or,
1920
+ lr,
1921
+ ar
1260
1922
  ]
1261
- }), ce = Object.prototype.hasOwnProperty, ke = 1, Br = 2, Hr = 3, Oe = 4, Me = 1, Si = 2, ir = 3, Ti = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, ki = /[\x85\u2028\u2029]/, Oi = /[,\[\]\{\}]/, Ur = /^(?:!|!!|![a-z\-]+!)$/i, Gr = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1262
- function or(e) {
1923
+ }), pe = Object.prototype.hasOwnProperty, De = 1, cr = 2, sr = 3, Ye = 4, ze = 1, ft = 2, vn = 3, ut = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, pt = /[\x85\u2028\u2029]/, dt = /[,\[\]\{\}]/, fr = /^(?:!|!!|![a-z\-]+!)$/i, ur = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1924
+ function bn(e) {
1263
1925
  return Object.prototype.toString.call(e);
1264
1926
  }
1265
- function ne(e) {
1927
+ function oe(e) {
1266
1928
  return e === 10 || e === 13;
1267
1929
  }
1268
- function fe(e) {
1930
+ function xe(e) {
1269
1931
  return e === 9 || e === 32;
1270
1932
  }
1271
- function K(e) {
1933
+ function ee(e) {
1272
1934
  return e === 9 || e === 32 || e === 10 || e === 13;
1273
1935
  }
1274
- function de(e) {
1936
+ function ve(e) {
1275
1937
  return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
1276
1938
  }
1277
- function $i(e) {
1278
- var r;
1279
- return 48 <= e && e <= 57 ? e - 48 : (r = e | 32, 97 <= r && r <= 102 ? r - 97 + 10 : -1);
1939
+ function ht(e) {
1940
+ var n;
1941
+ return 48 <= e && e <= 57 ? e - 48 : (n = e | 32, 97 <= n && n <= 102 ? n - 97 + 10 : -1);
1280
1942
  }
1281
- function Fi(e) {
1943
+ function xt(e) {
1282
1944
  return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
1283
1945
  }
1284
- function Ri(e) {
1946
+ function mt(e) {
1285
1947
  return 48 <= e && e <= 57 ? e - 48 : -1;
1286
1948
  }
1287
- function tr(e) {
1949
+ function An(e) {
1288
1950
  return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
1289
1951
  ` : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? '"' : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "…" : e === 95 ? " " : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
1290
1952
  }
1291
- function Ii(e) {
1953
+ function gt(e) {
1292
1954
  return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode(
1293
1955
  (e - 65536 >> 10) + 55296,
1294
1956
  (e - 65536 & 1023) + 56320
1295
1957
  );
1296
1958
  }
1297
- function Wr(e, r, n) {
1298
- r === "__proto__" ? Object.defineProperty(e, r, {
1959
+ function pr(e, n, r) {
1960
+ n === "__proto__" ? Object.defineProperty(e, n, {
1299
1961
  configurable: !0,
1300
1962
  enumerable: !0,
1301
1963
  writable: !0,
1302
- value: n
1303
- }) : e[r] = n;
1964
+ value: r
1965
+ }) : e[n] = r;
1304
1966
  }
1305
- var qr = new Array(256), Kr = new Array(256);
1306
- for (var ue = 0; ue < 256; ue++)
1307
- qr[ue] = tr(ue) ? 1 : 0, Kr[ue] = tr(ue);
1308
- function Li(e, r) {
1309
- this.input = e, this.filename = r.filename || null, this.schema = r.schema || Ge, this.onWarning = r.onWarning || null, this.legacy = r.legacy || !1, this.json = r.json || !1, this.listener = r.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 = [];
1967
+ var dr = new Array(256), hr = new Array(256);
1968
+ for (var ge = 0; ge < 256; ge++)
1969
+ dr[ge] = An(ge) ? 1 : 0, hr[ge] = An(ge);
1970
+ function yt(e, n) {
1971
+ this.input = e, this.filename = n.filename || null, this.schema = n.schema || tn, this.onWarning = n.onWarning || null, this.legacy = n.legacy || !1, this.json = n.json || !1, this.listener = n.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 = [];
1310
1972
  }
1311
- function Xr(e, r) {
1312
- var n = {
1973
+ function xr(e, n) {
1974
+ var r = {
1313
1975
  name: e.filename,
1314
1976
  buffer: e.input.slice(0, -1),
1315
1977
  // omit trailing \0
@@ -1317,395 +1979,395 @@ function Xr(e, r) {
1317
1979
  line: e.line,
1318
1980
  column: e.position - e.lineStart
1319
1981
  };
1320
- return n.snippet = Pn(n), new q(r, n);
1982
+ return r.snippet = ki(r), new Z(n, r);
1321
1983
  }
1322
- function g(e, r) {
1323
- throw Xr(e, r);
1984
+ function C(e, n) {
1985
+ throw xr(e, n);
1324
1986
  }
1325
- function $e(e, r) {
1326
- e.onWarning && e.onWarning.call(null, Xr(e, r));
1987
+ function Be(e, n) {
1988
+ e.onWarning && e.onWarning.call(null, xr(e, n));
1327
1989
  }
1328
- var lr = {
1329
- YAML: function(r, n, o) {
1330
- var i, l, t;
1331
- r.version !== null && g(r, "duplication of %YAML directive"), o.length !== 1 && g(r, "YAML directive accepts exactly one argument"), i = /^([0-9]+)\.([0-9]+)$/.exec(o[0]), i === null && g(r, "ill-formed argument of the YAML directive"), l = parseInt(i[1], 10), t = parseInt(i[2], 10), l !== 1 && g(r, "unacceptable YAML version of the document"), r.version = o[0], r.checkLineBreaks = t < 2, t !== 1 && t !== 2 && $e(r, "unsupported YAML version of the document");
1990
+ var kn = {
1991
+ YAML: function(n, r, t) {
1992
+ var i, l, o;
1993
+ n.version !== null && C(n, "duplication of %YAML directive"), t.length !== 1 && C(n, "YAML directive accepts exactly one argument"), i = /^([0-9]+)\.([0-9]+)$/.exec(t[0]), i === null && C(n, "ill-formed argument of the YAML directive"), l = parseInt(i[1], 10), o = parseInt(i[2], 10), l !== 1 && C(n, "unacceptable YAML version of the document"), n.version = t[0], n.checkLineBreaks = o < 2, o !== 1 && o !== 2 && Be(n, "unsupported YAML version of the document");
1332
1994
  },
1333
- TAG: function(r, n, o) {
1995
+ TAG: function(n, r, t) {
1334
1996
  var i, l;
1335
- o.length !== 2 && g(r, "TAG directive accepts exactly two arguments"), i = o[0], l = o[1], Ur.test(i) || g(r, "ill-formed tag handle (first argument) of the TAG directive"), ce.call(r.tagMap, i) && g(r, 'there is a previously declared suffix for "' + i + '" tag handle'), Gr.test(l) || g(r, "ill-formed tag prefix (second argument) of the TAG directive");
1997
+ t.length !== 2 && C(n, "TAG directive accepts exactly two arguments"), i = t[0], l = t[1], fr.test(i) || C(n, "ill-formed tag handle (first argument) of the TAG directive"), pe.call(n.tagMap, i) && C(n, 'there is a previously declared suffix for "' + i + '" tag handle'), ur.test(l) || C(n, "ill-formed tag prefix (second argument) of the TAG directive");
1336
1998
  try {
1337
1999
  l = decodeURIComponent(l);
1338
2000
  } catch {
1339
- g(r, "tag prefix is malformed: " + l);
2001
+ C(n, "tag prefix is malformed: " + l);
1340
2002
  }
1341
- r.tagMap[i] = l;
2003
+ n.tagMap[i] = l;
1342
2004
  }
1343
2005
  };
1344
- function ae(e, r, n, o) {
1345
- var i, l, t, a;
1346
- if (r < n) {
1347
- if (a = e.input.slice(r, n), o)
2006
+ function ue(e, n, r, t) {
2007
+ var i, l, o, a;
2008
+ if (n < r) {
2009
+ if (a = e.input.slice(n, r), t)
1348
2010
  for (i = 0, l = a.length; i < l; i += 1)
1349
- t = a.charCodeAt(i), t === 9 || 32 <= t && t <= 1114111 || g(e, "expected valid JSON character");
1350
- else Ti.test(a) && g(e, "the stream contains non-printable characters");
2011
+ o = a.charCodeAt(i), o === 9 || 32 <= o && o <= 1114111 || C(e, "expected valid JSON character");
2012
+ else ut.test(a) && C(e, "the stream contains non-printable characters");
1351
2013
  e.result += a;
1352
2014
  }
1353
2015
  }
1354
- function ar(e, r, n, o) {
1355
- var i, l, t, a;
1356
- for (B.isObject(n) || g(e, "cannot merge mappings; the provided source object is unacceptable"), i = Object.keys(n), t = 0, a = i.length; t < a; t += 1)
1357
- l = i[t], ce.call(r, l) || (Wr(r, l, n[l]), o[l] = !0);
2016
+ function Cn(e, n, r, t) {
2017
+ var i, l, o, a;
2018
+ for (U.isObject(r) || C(e, "cannot merge mappings; the provided source object is unacceptable"), i = Object.keys(r), o = 0, a = i.length; o < a; o += 1)
2019
+ l = i[o], pe.call(n, l) || (pr(n, l, r[l]), t[l] = !0);
1358
2020
  }
1359
- function he(e, r, n, o, i, l, t, a, c) {
1360
- var s, h;
2021
+ function be(e, n, r, t, i, l, o, a, c) {
2022
+ var s, u;
1361
2023
  if (Array.isArray(i))
1362
- for (i = Array.prototype.slice.call(i), s = 0, h = i.length; s < h; s += 1)
1363
- Array.isArray(i[s]) && g(e, "nested arrays are not supported inside keys"), typeof i == "object" && or(i[s]) === "[object Object]" && (i[s] = "[object Object]");
1364
- if (typeof i == "object" && or(i) === "[object Object]" && (i = "[object Object]"), i = String(i), r === null && (r = {}), o === "tag:yaml.org,2002:merge")
2024
+ for (i = Array.prototype.slice.call(i), s = 0, u = i.length; s < u; s += 1)
2025
+ Array.isArray(i[s]) && C(e, "nested arrays are not supported inside keys"), typeof i == "object" && bn(i[s]) === "[object Object]" && (i[s] = "[object Object]");
2026
+ if (typeof i == "object" && bn(i) === "[object Object]" && (i = "[object Object]"), i = String(i), n === null && (n = {}), t === "tag:yaml.org,2002:merge")
1365
2027
  if (Array.isArray(l))
1366
- for (s = 0, h = l.length; s < h; s += 1)
1367
- ar(e, r, l[s], n);
2028
+ for (s = 0, u = l.length; s < u; s += 1)
2029
+ Cn(e, n, l[s], r);
1368
2030
  else
1369
- ar(e, r, l, n);
2031
+ Cn(e, n, l, r);
1370
2032
  else
1371
- !e.json && !ce.call(n, i) && ce.call(r, i) && (e.line = t || e.line, e.lineStart = a || e.lineStart, e.position = c || e.position, g(e, "duplicated mapping key")), Wr(r, i, l), delete n[i];
1372
- return r;
2033
+ !e.json && !pe.call(r, i) && pe.call(n, i) && (e.line = o || e.line, e.lineStart = a || e.lineStart, e.position = c || e.position, C(e, "duplicated mapping key")), pr(n, i, l), delete r[i];
2034
+ return n;
1373
2035
  }
1374
- function We(e) {
1375
- var r;
1376
- r = e.input.charCodeAt(e.position), r === 10 ? e.position++ : r === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : g(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
2036
+ function on(e) {
2037
+ var n;
2038
+ n = e.input.charCodeAt(e.position), n === 10 ? e.position++ : n === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : C(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
1377
2039
  }
1378
- function D(e, r, n) {
1379
- for (var o = 0, i = e.input.charCodeAt(e.position); i !== 0; ) {
1380
- for (; fe(i); )
2040
+ function H(e, n, r) {
2041
+ for (var t = 0, i = e.input.charCodeAt(e.position); i !== 0; ) {
2042
+ for (; xe(i); )
1381
2043
  i === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), i = e.input.charCodeAt(++e.position);
1382
- if (r && i === 35)
2044
+ if (n && i === 35)
1383
2045
  do
1384
2046
  i = e.input.charCodeAt(++e.position);
1385
2047
  while (i !== 10 && i !== 13 && i !== 0);
1386
- if (ne(i))
1387
- for (We(e), i = e.input.charCodeAt(e.position), o++, e.lineIndent = 0; i === 32; )
2048
+ if (oe(i))
2049
+ for (on(e), i = e.input.charCodeAt(e.position), t++, e.lineIndent = 0; i === 32; )
1388
2050
  e.lineIndent++, i = e.input.charCodeAt(++e.position);
1389
2051
  else
1390
2052
  break;
1391
2053
  }
1392
- return n !== -1 && o !== 0 && e.lineIndent < n && $e(e, "deficient indentation"), o;
2054
+ return r !== -1 && t !== 0 && e.lineIndent < r && Be(e, "deficient indentation"), t;
1393
2055
  }
1394
- function Ie(e) {
1395
- var r = e.position, n;
1396
- return n = e.input.charCodeAt(r), !!((n === 45 || n === 46) && n === e.input.charCodeAt(r + 1) && n === e.input.charCodeAt(r + 2) && (r += 3, n = e.input.charCodeAt(r), n === 0 || K(n)));
2056
+ function Ue(e) {
2057
+ var n = e.position, r;
2058
+ return r = e.input.charCodeAt(n), !!((r === 45 || r === 46) && r === e.input.charCodeAt(n + 1) && r === e.input.charCodeAt(n + 2) && (n += 3, r = e.input.charCodeAt(n), r === 0 || ee(r)));
1397
2059
  }
1398
- function qe(e, r) {
1399
- r === 1 ? e.result += " " : r > 1 && (e.result += B.repeat(`
1400
- `, r - 1));
2060
+ function ln(e, n) {
2061
+ n === 1 ? e.result += " " : n > 1 && (e.result += U.repeat(`
2062
+ `, n - 1));
1401
2063
  }
1402
- function Ni(e, r, n) {
1403
- var o, i, l, t, a, c, s, h, d = e.kind, u = e.result, f;
1404
- if (f = e.input.charCodeAt(e.position), K(f) || de(f) || f === 35 || f === 38 || f === 42 || f === 33 || f === 124 || f === 62 || f === 39 || f === 34 || f === 37 || f === 64 || f === 96 || (f === 63 || f === 45) && (i = e.input.charCodeAt(e.position + 1), K(i) || n && de(i)))
2064
+ function vt(e, n, r) {
2065
+ var t, i, l, o, a, c, s, u, x = e.kind, p = e.result, f;
2066
+ if (f = e.input.charCodeAt(e.position), ee(f) || ve(f) || f === 35 || f === 38 || f === 42 || f === 33 || f === 124 || f === 62 || f === 39 || f === 34 || f === 37 || f === 64 || f === 96 || (f === 63 || f === 45) && (i = e.input.charCodeAt(e.position + 1), ee(i) || r && ve(i)))
1405
2067
  return !1;
1406
- for (e.kind = "scalar", e.result = "", l = t = e.position, a = !1; f !== 0; ) {
2068
+ for (e.kind = "scalar", e.result = "", l = o = e.position, a = !1; f !== 0; ) {
1407
2069
  if (f === 58) {
1408
- if (i = e.input.charCodeAt(e.position + 1), K(i) || n && de(i))
2070
+ if (i = e.input.charCodeAt(e.position + 1), ee(i) || r && ve(i))
1409
2071
  break;
1410
2072
  } else if (f === 35) {
1411
- if (o = e.input.charCodeAt(e.position - 1), K(o))
2073
+ if (t = e.input.charCodeAt(e.position - 1), ee(t))
1412
2074
  break;
1413
2075
  } else {
1414
- if (e.position === e.lineStart && Ie(e) || n && de(f))
2076
+ if (e.position === e.lineStart && Ue(e) || r && ve(f))
1415
2077
  break;
1416
- if (ne(f))
1417
- if (c = e.line, s = e.lineStart, h = e.lineIndent, D(e, !1, -1), e.lineIndent >= r) {
2078
+ if (oe(f))
2079
+ if (c = e.line, s = e.lineStart, u = e.lineIndent, H(e, !1, -1), e.lineIndent >= n) {
1418
2080
  a = !0, f = e.input.charCodeAt(e.position);
1419
2081
  continue;
1420
2082
  } else {
1421
- e.position = t, e.line = c, e.lineStart = s, e.lineIndent = h;
2083
+ e.position = o, e.line = c, e.lineStart = s, e.lineIndent = u;
1422
2084
  break;
1423
2085
  }
1424
2086
  }
1425
- a && (ae(e, l, t, !1), qe(e, e.line - c), l = t = e.position, a = !1), fe(f) || (t = e.position + 1), f = e.input.charCodeAt(++e.position);
2087
+ a && (ue(e, l, o, !1), ln(e, e.line - c), l = o = e.position, a = !1), xe(f) || (o = e.position + 1), f = e.input.charCodeAt(++e.position);
1426
2088
  }
1427
- return ae(e, l, t, !1), e.result ? !0 : (e.kind = d, e.result = u, !1);
2089
+ return ue(e, l, o, !1), e.result ? !0 : (e.kind = x, e.result = p, !1);
1428
2090
  }
1429
- function ji(e, r) {
1430
- var n, o, i;
1431
- if (n = e.input.charCodeAt(e.position), n !== 39)
2091
+ function bt(e, n) {
2092
+ var r, t, i;
2093
+ if (r = e.input.charCodeAt(e.position), r !== 39)
1432
2094
  return !1;
1433
- for (e.kind = "scalar", e.result = "", e.position++, o = i = e.position; (n = e.input.charCodeAt(e.position)) !== 0; )
1434
- if (n === 39)
1435
- if (ae(e, o, e.position, !0), n = e.input.charCodeAt(++e.position), n === 39)
1436
- o = e.position, e.position++, i = e.position;
2095
+ for (e.kind = "scalar", e.result = "", e.position++, t = i = e.position; (r = e.input.charCodeAt(e.position)) !== 0; )
2096
+ if (r === 39)
2097
+ if (ue(e, t, e.position, !0), r = e.input.charCodeAt(++e.position), r === 39)
2098
+ t = e.position, e.position++, i = e.position;
1437
2099
  else
1438
2100
  return !0;
1439
- else ne(n) ? (ae(e, o, i, !0), qe(e, D(e, !1, r)), o = i = e.position) : e.position === e.lineStart && Ie(e) ? g(e, "unexpected end of the document within a single quoted scalar") : (e.position++, i = e.position);
1440
- g(e, "unexpected end of the stream within a single quoted scalar");
2101
+ else oe(r) ? (ue(e, t, i, !0), ln(e, H(e, !1, n)), t = i = e.position) : e.position === e.lineStart && Ue(e) ? C(e, "unexpected end of the document within a single quoted scalar") : (e.position++, i = e.position);
2102
+ C(e, "unexpected end of the stream within a single quoted scalar");
1441
2103
  }
1442
- function Mi(e, r) {
1443
- var n, o, i, l, t, a;
2104
+ function At(e, n) {
2105
+ var r, t, i, l, o, a;
1444
2106
  if (a = e.input.charCodeAt(e.position), a !== 34)
1445
2107
  return !1;
1446
- for (e.kind = "scalar", e.result = "", e.position++, n = o = e.position; (a = e.input.charCodeAt(e.position)) !== 0; ) {
2108
+ for (e.kind = "scalar", e.result = "", e.position++, r = t = e.position; (a = e.input.charCodeAt(e.position)) !== 0; ) {
1447
2109
  if (a === 34)
1448
- return ae(e, n, e.position, !0), e.position++, !0;
2110
+ return ue(e, r, e.position, !0), e.position++, !0;
1449
2111
  if (a === 92) {
1450
- if (ae(e, n, e.position, !0), a = e.input.charCodeAt(++e.position), ne(a))
1451
- D(e, !1, r);
1452
- else if (a < 256 && qr[a])
1453
- e.result += Kr[a], e.position++;
1454
- else if ((t = Fi(a)) > 0) {
1455
- for (i = t, l = 0; i > 0; i--)
1456
- a = e.input.charCodeAt(++e.position), (t = $i(a)) >= 0 ? l = (l << 4) + t : g(e, "expected hexadecimal character");
1457
- e.result += Ii(l), e.position++;
2112
+ if (ue(e, r, e.position, !0), a = e.input.charCodeAt(++e.position), oe(a))
2113
+ H(e, !1, n);
2114
+ else if (a < 256 && dr[a])
2115
+ e.result += hr[a], e.position++;
2116
+ else if ((o = xt(a)) > 0) {
2117
+ for (i = o, l = 0; i > 0; i--)
2118
+ a = e.input.charCodeAt(++e.position), (o = ht(a)) >= 0 ? l = (l << 4) + o : C(e, "expected hexadecimal character");
2119
+ e.result += gt(l), e.position++;
1458
2120
  } else
1459
- g(e, "unknown escape sequence");
1460
- n = o = e.position;
1461
- } else ne(a) ? (ae(e, n, o, !0), qe(e, D(e, !1, r)), n = o = e.position) : e.position === e.lineStart && Ie(e) ? g(e, "unexpected end of the document within a double quoted scalar") : (e.position++, o = e.position);
2121
+ C(e, "unknown escape sequence");
2122
+ r = t = e.position;
2123
+ } else oe(a) ? (ue(e, r, t, !0), ln(e, H(e, !1, n)), r = t = e.position) : e.position === e.lineStart && Ue(e) ? C(e, "unexpected end of the document within a double quoted scalar") : (e.position++, t = e.position);
1462
2124
  }
1463
- g(e, "unexpected end of the stream within a double quoted scalar");
1464
- }
1465
- function Pi(e, r) {
1466
- var n = !0, o, i, l, t = e.tag, a, c = e.anchor, s, h, d, u, f, m = /* @__PURE__ */ Object.create(null), x, v, A, w;
1467
- if (w = e.input.charCodeAt(e.position), w === 91)
1468
- h = 93, f = !1, a = [];
1469
- else if (w === 123)
1470
- h = 125, f = !0, a = {};
2125
+ C(e, "unexpected end of the stream within a double quoted scalar");
2126
+ }
2127
+ function kt(e, n) {
2128
+ var r = !0, t, i, l, o = e.tag, a, c = e.anchor, s, u, x, p, f, m = /* @__PURE__ */ Object.create(null), y, A, v, b;
2129
+ if (b = e.input.charCodeAt(e.position), b === 91)
2130
+ u = 93, f = !1, a = [];
2131
+ else if (b === 123)
2132
+ u = 125, f = !0, a = {};
1471
2133
  else
1472
2134
  return !1;
1473
- for (e.anchor !== null && (e.anchorMap[e.anchor] = a), w = e.input.charCodeAt(++e.position); w !== 0; ) {
1474
- if (D(e, !0, r), w = e.input.charCodeAt(e.position), w === h)
1475
- return e.position++, e.tag = t, e.anchor = c, e.kind = f ? "mapping" : "sequence", e.result = a, !0;
1476
- n ? w === 44 && g(e, "expected the node content, but found ','") : g(e, "missed comma between flow collection entries"), v = x = A = null, d = u = !1, w === 63 && (s = e.input.charCodeAt(e.position + 1), K(s) && (d = u = !0, e.position++, D(e, !0, r))), o = e.line, i = e.lineStart, l = e.position, xe(e, r, ke, !1, !0), v = e.tag, x = e.result, D(e, !0, r), w = e.input.charCodeAt(e.position), (u || e.line === o) && w === 58 && (d = !0, w = e.input.charCodeAt(++e.position), D(e, !0, r), xe(e, r, ke, !1, !0), A = e.result), f ? he(e, a, m, v, x, A, o, i, l) : d ? a.push(he(e, null, m, v, x, A, o, i, l)) : a.push(x), D(e, !0, r), w = e.input.charCodeAt(e.position), w === 44 ? (n = !0, w = e.input.charCodeAt(++e.position)) : n = !1;
2135
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = a), b = e.input.charCodeAt(++e.position); b !== 0; ) {
2136
+ if (H(e, !0, n), b = e.input.charCodeAt(e.position), b === u)
2137
+ return e.position++, e.tag = o, e.anchor = c, e.kind = f ? "mapping" : "sequence", e.result = a, !0;
2138
+ r ? b === 44 && C(e, "expected the node content, but found ','") : C(e, "missed comma between flow collection entries"), A = y = v = null, x = p = !1, b === 63 && (s = e.input.charCodeAt(e.position + 1), ee(s) && (x = p = !0, e.position++, H(e, !0, n))), t = e.line, i = e.lineStart, l = e.position, Ae(e, n, De, !1, !0), A = e.tag, y = e.result, H(e, !0, n), b = e.input.charCodeAt(e.position), (p || e.line === t) && b === 58 && (x = !0, b = e.input.charCodeAt(++e.position), H(e, !0, n), Ae(e, n, De, !1, !0), v = e.result), f ? be(e, a, m, A, y, v, t, i, l) : x ? a.push(be(e, null, m, A, y, v, t, i, l)) : a.push(y), H(e, !0, n), b = e.input.charCodeAt(e.position), b === 44 ? (r = !0, b = e.input.charCodeAt(++e.position)) : r = !1;
1477
2139
  }
1478
- g(e, "unexpected end of the stream within a flow collection");
1479
- }
1480
- function Di(e, r) {
1481
- var n, o, i = Me, l = !1, t = !1, a = r, c = 0, s = !1, h, d;
1482
- if (d = e.input.charCodeAt(e.position), d === 124)
1483
- o = !1;
1484
- else if (d === 62)
1485
- o = !0;
2140
+ C(e, "unexpected end of the stream within a flow collection");
2141
+ }
2142
+ function Ct(e, n) {
2143
+ var r, t, i = ze, l = !1, o = !1, a = n, c = 0, s = !1, u, x;
2144
+ if (x = e.input.charCodeAt(e.position), x === 124)
2145
+ t = !1;
2146
+ else if (x === 62)
2147
+ t = !0;
1486
2148
  else
1487
2149
  return !1;
1488
- for (e.kind = "scalar", e.result = ""; d !== 0; )
1489
- if (d = e.input.charCodeAt(++e.position), d === 43 || d === 45)
1490
- Me === i ? i = d === 43 ? ir : Si : g(e, "repeat of a chomping mode identifier");
1491
- else if ((h = Ri(d)) >= 0)
1492
- h === 0 ? g(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : t ? g(e, "repeat of an indentation width identifier") : (a = r + h - 1, t = !0);
2150
+ for (e.kind = "scalar", e.result = ""; x !== 0; )
2151
+ if (x = e.input.charCodeAt(++e.position), x === 43 || x === 45)
2152
+ ze === i ? i = x === 43 ? vn : ft : C(e, "repeat of a chomping mode identifier");
2153
+ else if ((u = mt(x)) >= 0)
2154
+ u === 0 ? C(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? C(e, "repeat of an indentation width identifier") : (a = n + u - 1, o = !0);
1493
2155
  else
1494
2156
  break;
1495
- if (fe(d)) {
2157
+ if (xe(x)) {
1496
2158
  do
1497
- d = e.input.charCodeAt(++e.position);
1498
- while (fe(d));
1499
- if (d === 35)
2159
+ x = e.input.charCodeAt(++e.position);
2160
+ while (xe(x));
2161
+ if (x === 35)
1500
2162
  do
1501
- d = e.input.charCodeAt(++e.position);
1502
- while (!ne(d) && d !== 0);
2163
+ x = e.input.charCodeAt(++e.position);
2164
+ while (!oe(x) && x !== 0);
1503
2165
  }
1504
- for (; d !== 0; ) {
1505
- for (We(e), e.lineIndent = 0, d = e.input.charCodeAt(e.position); (!t || e.lineIndent < a) && d === 32; )
1506
- e.lineIndent++, d = e.input.charCodeAt(++e.position);
1507
- if (!t && e.lineIndent > a && (a = e.lineIndent), ne(d)) {
2166
+ for (; x !== 0; ) {
2167
+ for (on(e), e.lineIndent = 0, x = e.input.charCodeAt(e.position); (!o || e.lineIndent < a) && x === 32; )
2168
+ e.lineIndent++, x = e.input.charCodeAt(++e.position);
2169
+ if (!o && e.lineIndent > a && (a = e.lineIndent), oe(x)) {
1508
2170
  c++;
1509
2171
  continue;
1510
2172
  }
1511
2173
  if (e.lineIndent < a) {
1512
- i === ir ? e.result += B.repeat(`
1513
- `, l ? 1 + c : c) : i === Me && l && (e.result += `
2174
+ i === vn ? e.result += U.repeat(`
2175
+ `, l ? 1 + c : c) : i === ze && l && (e.result += `
1514
2176
  `);
1515
2177
  break;
1516
2178
  }
1517
- for (o ? fe(d) ? (s = !0, e.result += B.repeat(`
1518
- `, l ? 1 + c : c)) : s ? (s = !1, e.result += B.repeat(`
1519
- `, c + 1)) : c === 0 ? l && (e.result += " ") : e.result += B.repeat(`
1520
- `, c) : e.result += B.repeat(`
1521
- `, l ? 1 + c : c), l = !0, t = !0, c = 0, n = e.position; !ne(d) && d !== 0; )
1522
- d = e.input.charCodeAt(++e.position);
1523
- ae(e, n, e.position, !1);
2179
+ for (t ? xe(x) ? (s = !0, e.result += U.repeat(`
2180
+ `, l ? 1 + c : c)) : s ? (s = !1, e.result += U.repeat(`
2181
+ `, c + 1)) : c === 0 ? l && (e.result += " ") : e.result += U.repeat(`
2182
+ `, c) : e.result += U.repeat(`
2183
+ `, l ? 1 + c : c), l = !0, o = !0, c = 0, r = e.position; !oe(x) && x !== 0; )
2184
+ x = e.input.charCodeAt(++e.position);
2185
+ ue(e, r, e.position, !1);
1524
2186
  }
1525
2187
  return !0;
1526
2188
  }
1527
- function cr(e, r) {
1528
- var n, o = e.tag, i = e.anchor, l = [], t, a = !1, c;
2189
+ function Sn(e, n) {
2190
+ var r, t = e.tag, i = e.anchor, l = [], o, a = !1, c;
1529
2191
  if (e.firstTabInLine !== -1) return !1;
1530
- for (e.anchor !== null && (e.anchorMap[e.anchor] = l), c = e.input.charCodeAt(e.position); c !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, g(e, "tab characters must not be used in indentation")), !(c !== 45 || (t = e.input.charCodeAt(e.position + 1), !K(t)))); ) {
1531
- if (a = !0, e.position++, D(e, !0, -1) && e.lineIndent <= r) {
2192
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = l), c = e.input.charCodeAt(e.position); c !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, C(e, "tab characters must not be used in indentation")), !(c !== 45 || (o = e.input.charCodeAt(e.position + 1), !ee(o)))); ) {
2193
+ if (a = !0, e.position++, H(e, !0, -1) && e.lineIndent <= n) {
1532
2194
  l.push(null), c = e.input.charCodeAt(e.position);
1533
2195
  continue;
1534
2196
  }
1535
- if (n = e.line, xe(e, r, Hr, !1, !0), l.push(e.result), D(e, !0, -1), c = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > r) && c !== 0)
1536
- g(e, "bad indentation of a sequence entry");
1537
- else if (e.lineIndent < r)
2197
+ if (r = e.line, Ae(e, n, sr, !1, !0), l.push(e.result), H(e, !0, -1), c = e.input.charCodeAt(e.position), (e.line === r || e.lineIndent > n) && c !== 0)
2198
+ C(e, "bad indentation of a sequence entry");
2199
+ else if (e.lineIndent < n)
1538
2200
  break;
1539
2201
  }
1540
- return a ? (e.tag = o, e.anchor = i, e.kind = "sequence", e.result = l, !0) : !1;
2202
+ return a ? (e.tag = t, e.anchor = i, e.kind = "sequence", e.result = l, !0) : !1;
1541
2203
  }
1542
- function Yi(e, r, n) {
1543
- var o, i, l, t, a, c, s = e.tag, h = e.anchor, d = {}, u = /* @__PURE__ */ Object.create(null), f = null, m = null, x = null, v = !1, A = !1, w;
2204
+ function St(e, n, r) {
2205
+ var t, i, l, o, a, c, s = e.tag, u = e.anchor, x = {}, p = /* @__PURE__ */ Object.create(null), f = null, m = null, y = null, A = !1, v = !1, b;
1544
2206
  if (e.firstTabInLine !== -1) return !1;
1545
- for (e.anchor !== null && (e.anchorMap[e.anchor] = d), w = e.input.charCodeAt(e.position); w !== 0; ) {
1546
- if (!v && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, g(e, "tab characters must not be used in indentation")), o = e.input.charCodeAt(e.position + 1), l = e.line, (w === 63 || w === 58) && K(o))
1547
- w === 63 ? (v && (he(e, d, u, f, m, null, t, a, c), f = m = x = null), A = !0, v = !0, i = !0) : v ? (v = !1, i = !0) : g(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, w = o;
2207
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = x), b = e.input.charCodeAt(e.position); b !== 0; ) {
2208
+ if (!A && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, C(e, "tab characters must not be used in indentation")), t = e.input.charCodeAt(e.position + 1), l = e.line, (b === 63 || b === 58) && ee(t))
2209
+ b === 63 ? (A && (be(e, x, p, f, m, null, o, a, c), f = m = y = null), v = !0, A = !0, i = !0) : A ? (A = !1, i = !0) : C(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, b = t;
1548
2210
  else {
1549
- if (t = e.line, a = e.lineStart, c = e.position, !xe(e, n, Br, !1, !0))
2211
+ if (o = e.line, a = e.lineStart, c = e.position, !Ae(e, r, cr, !1, !0))
1550
2212
  break;
1551
2213
  if (e.line === l) {
1552
- for (w = e.input.charCodeAt(e.position); fe(w); )
1553
- w = e.input.charCodeAt(++e.position);
1554
- if (w === 58)
1555
- w = e.input.charCodeAt(++e.position), K(w) || g(e, "a whitespace character is expected after the key-value separator within a block mapping"), v && (he(e, d, u, f, m, null, t, a, c), f = m = x = null), A = !0, v = !1, i = !1, f = e.tag, m = e.result;
1556
- else if (A)
1557
- g(e, "can not read an implicit mapping pair; a colon is missed");
2214
+ for (b = e.input.charCodeAt(e.position); xe(b); )
2215
+ b = e.input.charCodeAt(++e.position);
2216
+ if (b === 58)
2217
+ b = e.input.charCodeAt(++e.position), ee(b) || C(e, "a whitespace character is expected after the key-value separator within a block mapping"), A && (be(e, x, p, f, m, null, o, a, c), f = m = y = null), v = !0, A = !1, i = !1, f = e.tag, m = e.result;
2218
+ else if (v)
2219
+ C(e, "can not read an implicit mapping pair; a colon is missed");
1558
2220
  else
1559
- return e.tag = s, e.anchor = h, !0;
1560
- } else if (A)
1561
- g(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
2221
+ return e.tag = s, e.anchor = u, !0;
2222
+ } else if (v)
2223
+ C(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
1562
2224
  else
1563
- return e.tag = s, e.anchor = h, !0;
2225
+ return e.tag = s, e.anchor = u, !0;
1564
2226
  }
1565
- if ((e.line === l || e.lineIndent > r) && (v && (t = e.line, a = e.lineStart, c = e.position), xe(e, r, Oe, !0, i) && (v ? m = e.result : x = e.result), v || (he(e, d, u, f, m, x, t, a, c), f = m = x = null), D(e, !0, -1), w = e.input.charCodeAt(e.position)), (e.line === l || e.lineIndent > r) && w !== 0)
1566
- g(e, "bad indentation of a mapping entry");
1567
- else if (e.lineIndent < r)
2227
+ if ((e.line === l || e.lineIndent > n) && (A && (o = e.line, a = e.lineStart, c = e.position), Ae(e, n, Ye, !0, i) && (A ? m = e.result : y = e.result), A || (be(e, x, p, f, m, y, o, a, c), f = m = y = null), H(e, !0, -1), b = e.input.charCodeAt(e.position)), (e.line === l || e.lineIndent > n) && b !== 0)
2228
+ C(e, "bad indentation of a mapping entry");
2229
+ else if (e.lineIndent < n)
1568
2230
  break;
1569
2231
  }
1570
- return v && he(e, d, u, f, m, null, t, a, c), A && (e.tag = s, e.anchor = h, e.kind = "mapping", e.result = d), A;
2232
+ return A && be(e, x, p, f, m, null, o, a, c), v && (e.tag = s, e.anchor = u, e.kind = "mapping", e.result = x), v;
1571
2233
  }
1572
- function Bi(e) {
1573
- var r, n = !1, o = !1, i, l, t;
1574
- if (t = e.input.charCodeAt(e.position), t !== 33) return !1;
1575
- if (e.tag !== null && g(e, "duplication of a tag property"), t = e.input.charCodeAt(++e.position), t === 60 ? (n = !0, t = e.input.charCodeAt(++e.position)) : t === 33 ? (o = !0, i = "!!", t = e.input.charCodeAt(++e.position)) : i = "!", r = e.position, n) {
2234
+ function wt(e) {
2235
+ var n, r = !1, t = !1, i, l, o;
2236
+ if (o = e.input.charCodeAt(e.position), o !== 33) return !1;
2237
+ if (e.tag !== null && C(e, "duplication of a tag property"), o = e.input.charCodeAt(++e.position), o === 60 ? (r = !0, o = e.input.charCodeAt(++e.position)) : o === 33 ? (t = !0, i = "!!", o = e.input.charCodeAt(++e.position)) : i = "!", n = e.position, r) {
1576
2238
  do
1577
- t = e.input.charCodeAt(++e.position);
1578
- while (t !== 0 && t !== 62);
1579
- e.position < e.length ? (l = e.input.slice(r, e.position), t = e.input.charCodeAt(++e.position)) : g(e, "unexpected end of the stream within a verbatim tag");
2239
+ o = e.input.charCodeAt(++e.position);
2240
+ while (o !== 0 && o !== 62);
2241
+ e.position < e.length ? (l = e.input.slice(n, e.position), o = e.input.charCodeAt(++e.position)) : C(e, "unexpected end of the stream within a verbatim tag");
1580
2242
  } else {
1581
- for (; t !== 0 && !K(t); )
1582
- t === 33 && (o ? g(e, "tag suffix cannot contain exclamation marks") : (i = e.input.slice(r - 1, e.position + 1), Ur.test(i) || g(e, "named tag handle cannot contain such characters"), o = !0, r = e.position + 1)), t = e.input.charCodeAt(++e.position);
1583
- l = e.input.slice(r, e.position), Oi.test(l) && g(e, "tag suffix cannot contain flow indicator characters");
2243
+ for (; o !== 0 && !ee(o); )
2244
+ o === 33 && (t ? C(e, "tag suffix cannot contain exclamation marks") : (i = e.input.slice(n - 1, e.position + 1), fr.test(i) || C(e, "named tag handle cannot contain such characters"), t = !0, n = e.position + 1)), o = e.input.charCodeAt(++e.position);
2245
+ l = e.input.slice(n, e.position), dt.test(l) && C(e, "tag suffix cannot contain flow indicator characters");
1584
2246
  }
1585
- l && !Gr.test(l) && g(e, "tag name cannot contain such characters: " + l);
2247
+ l && !ur.test(l) && C(e, "tag name cannot contain such characters: " + l);
1586
2248
  try {
1587
2249
  l = decodeURIComponent(l);
1588
2250
  } catch {
1589
- g(e, "tag name is malformed: " + l);
2251
+ C(e, "tag name is malformed: " + l);
1590
2252
  }
1591
- return n ? e.tag = l : ce.call(e.tagMap, i) ? e.tag = e.tagMap[i] + l : i === "!" ? e.tag = "!" + l : i === "!!" ? e.tag = "tag:yaml.org,2002:" + l : g(e, 'undeclared tag handle "' + i + '"'), !0;
1592
- }
1593
- function Hi(e) {
1594
- var r, n;
1595
- if (n = e.input.charCodeAt(e.position), n !== 38) return !1;
1596
- for (e.anchor !== null && g(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), r = e.position; n !== 0 && !K(n) && !de(n); )
1597
- n = e.input.charCodeAt(++e.position);
1598
- return e.position === r && g(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(r, e.position), !0;
1599
- }
1600
- function Ui(e) {
1601
- var r, n, o;
1602
- if (o = e.input.charCodeAt(e.position), o !== 42) return !1;
1603
- for (o = e.input.charCodeAt(++e.position), r = e.position; o !== 0 && !K(o) && !de(o); )
1604
- o = e.input.charCodeAt(++e.position);
1605
- return e.position === r && g(e, "name of an alias node must contain at least one character"), n = e.input.slice(r, e.position), ce.call(e.anchorMap, n) || g(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], D(e, !0, -1), !0;
1606
- }
1607
- function xe(e, r, n, o, i) {
1608
- var l, t, a, c = 1, s = !1, h = !1, d, u, f, m, x, v;
1609
- if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, l = t = a = Oe === n || Hr === n, o && D(e, !0, -1) && (s = !0, e.lineIndent > r ? c = 1 : e.lineIndent === r ? c = 0 : e.lineIndent < r && (c = -1)), c === 1)
1610
- for (; Bi(e) || Hi(e); )
1611
- D(e, !0, -1) ? (s = !0, a = l, e.lineIndent > r ? c = 1 : e.lineIndent === r ? c = 0 : e.lineIndent < r && (c = -1)) : a = !1;
1612
- if (a && (a = s || i), (c === 1 || Oe === n) && (ke === n || Br === n ? x = r : x = r + 1, v = e.position - e.lineStart, c === 1 ? a && (cr(e, v) || Yi(e, v, x)) || Pi(e, x) ? h = !0 : (t && Di(e, x) || ji(e, x) || Mi(e, x) ? h = !0 : Ui(e) ? (h = !0, (e.tag !== null || e.anchor !== null) && g(e, "alias node should not have any properties")) : Ni(e, x, ke === n) && (h = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : c === 0 && (h = a && cr(e, v))), e.tag === null)
2253
+ return r ? e.tag = l : pe.call(e.tagMap, i) ? e.tag = e.tagMap[i] + l : i === "!" ? e.tag = "!" + l : i === "!!" ? e.tag = "tag:yaml.org,2002:" + l : C(e, 'undeclared tag handle "' + i + '"'), !0;
2254
+ }
2255
+ function Et(e) {
2256
+ var n, r;
2257
+ if (r = e.input.charCodeAt(e.position), r !== 38) return !1;
2258
+ for (e.anchor !== null && C(e, "duplication of an anchor property"), r = e.input.charCodeAt(++e.position), n = e.position; r !== 0 && !ee(r) && !ve(r); )
2259
+ r = e.input.charCodeAt(++e.position);
2260
+ return e.position === n && C(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(n, e.position), !0;
2261
+ }
2262
+ function _t(e) {
2263
+ var n, r, t;
2264
+ if (t = e.input.charCodeAt(e.position), t !== 42) return !1;
2265
+ for (t = e.input.charCodeAt(++e.position), n = e.position; t !== 0 && !ee(t) && !ve(t); )
2266
+ t = e.input.charCodeAt(++e.position);
2267
+ return e.position === n && C(e, "name of an alias node must contain at least one character"), r = e.input.slice(n, e.position), pe.call(e.anchorMap, r) || C(e, 'unidentified alias "' + r + '"'), e.result = e.anchorMap[r], H(e, !0, -1), !0;
2268
+ }
2269
+ function Ae(e, n, r, t, i) {
2270
+ var l, o, a, c = 1, s = !1, u = !1, x, p, f, m, y, A;
2271
+ if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, l = o = a = Ye === r || sr === r, t && H(e, !0, -1) && (s = !0, e.lineIndent > n ? c = 1 : e.lineIndent === n ? c = 0 : e.lineIndent < n && (c = -1)), c === 1)
2272
+ for (; wt(e) || Et(e); )
2273
+ H(e, !0, -1) ? (s = !0, a = l, e.lineIndent > n ? c = 1 : e.lineIndent === n ? c = 0 : e.lineIndent < n && (c = -1)) : a = !1;
2274
+ if (a && (a = s || i), (c === 1 || Ye === r) && (De === r || cr === r ? y = n : y = n + 1, A = e.position - e.lineStart, c === 1 ? a && (Sn(e, A) || St(e, A, y)) || kt(e, y) ? u = !0 : (o && Ct(e, y) || bt(e, y) || At(e, y) ? u = !0 : _t(e) ? (u = !0, (e.tag !== null || e.anchor !== null) && C(e, "alias node should not have any properties")) : vt(e, y, De === r) && (u = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : c === 0 && (u = a && Sn(e, A))), e.tag === null)
1613
2275
  e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
1614
2276
  else if (e.tag === "?") {
1615
- for (e.result !== null && e.kind !== "scalar" && g(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), d = 0, u = e.implicitTypes.length; d < u; d += 1)
1616
- if (m = e.implicitTypes[d], m.resolve(e.result)) {
2277
+ for (e.result !== null && e.kind !== "scalar" && C(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), x = 0, p = e.implicitTypes.length; x < p; x += 1)
2278
+ if (m = e.implicitTypes[x], m.resolve(e.result)) {
1617
2279
  e.result = m.construct(e.result), e.tag = m.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
1618
2280
  break;
1619
2281
  }
1620
2282
  } else if (e.tag !== "!") {
1621
- if (ce.call(e.typeMap[e.kind || "fallback"], e.tag))
2283
+ if (pe.call(e.typeMap[e.kind || "fallback"], e.tag))
1622
2284
  m = e.typeMap[e.kind || "fallback"][e.tag];
1623
2285
  else
1624
- for (m = null, f = e.typeMap.multi[e.kind || "fallback"], d = 0, u = f.length; d < u; d += 1)
1625
- if (e.tag.slice(0, f[d].tag.length) === f[d].tag) {
1626
- m = f[d];
2286
+ for (m = null, f = e.typeMap.multi[e.kind || "fallback"], x = 0, p = f.length; x < p; x += 1)
2287
+ if (e.tag.slice(0, f[x].tag.length) === f[x].tag) {
2288
+ m = f[x];
1627
2289
  break;
1628
2290
  }
1629
- m || g(e, "unknown tag !<" + e.tag + ">"), e.result !== null && m.kind !== e.kind && g(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + m.kind + '", not "' + e.kind + '"'), m.resolve(e.result, e.tag) ? (e.result = m.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : g(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
2291
+ m || C(e, "unknown tag !<" + e.tag + ">"), e.result !== null && m.kind !== e.kind && C(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)) : C(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
1630
2292
  }
1631
- return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || h;
1632
- }
1633
- function Gi(e) {
1634
- var r = e.position, n, o, i, l = !1, t;
1635
- for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (t = e.input.charCodeAt(e.position)) !== 0 && (D(e, !0, -1), t = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || t !== 37)); ) {
1636
- for (l = !0, t = e.input.charCodeAt(++e.position), n = e.position; t !== 0 && !K(t); )
1637
- t = e.input.charCodeAt(++e.position);
1638
- for (o = e.input.slice(n, e.position), i = [], o.length < 1 && g(e, "directive name must not be less than one character in length"); t !== 0; ) {
1639
- for (; fe(t); )
1640
- t = e.input.charCodeAt(++e.position);
1641
- if (t === 35) {
2293
+ return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || u;
2294
+ }
2295
+ function Tt(e) {
2296
+ var n = e.position, r, t, i, l = !1, o;
2297
+ for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (o = e.input.charCodeAt(e.position)) !== 0 && (H(e, !0, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37)); ) {
2298
+ for (l = !0, o = e.input.charCodeAt(++e.position), r = e.position; o !== 0 && !ee(o); )
2299
+ o = e.input.charCodeAt(++e.position);
2300
+ for (t = e.input.slice(r, e.position), i = [], t.length < 1 && C(e, "directive name must not be less than one character in length"); o !== 0; ) {
2301
+ for (; xe(o); )
2302
+ o = e.input.charCodeAt(++e.position);
2303
+ if (o === 35) {
1642
2304
  do
1643
- t = e.input.charCodeAt(++e.position);
1644
- while (t !== 0 && !ne(t));
2305
+ o = e.input.charCodeAt(++e.position);
2306
+ while (o !== 0 && !oe(o));
1645
2307
  break;
1646
2308
  }
1647
- if (ne(t)) break;
1648
- for (n = e.position; t !== 0 && !K(t); )
1649
- t = e.input.charCodeAt(++e.position);
1650
- i.push(e.input.slice(n, e.position));
2309
+ if (oe(o)) break;
2310
+ for (r = e.position; o !== 0 && !ee(o); )
2311
+ o = e.input.charCodeAt(++e.position);
2312
+ i.push(e.input.slice(r, e.position));
1651
2313
  }
1652
- t !== 0 && We(e), ce.call(lr, o) ? lr[o](e, o, i) : $e(e, 'unknown document directive "' + o + '"');
2314
+ o !== 0 && on(e), pe.call(kn, t) ? kn[t](e, t, i) : Be(e, 'unknown document directive "' + t + '"');
1653
2315
  }
1654
- if (D(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, D(e, !0, -1)) : l && g(e, "directives end mark is expected"), xe(e, e.lineIndent - 1, Oe, !1, !0), D(e, !0, -1), e.checkLineBreaks && ki.test(e.input.slice(r, e.position)) && $e(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && Ie(e)) {
1655
- e.input.charCodeAt(e.position) === 46 && (e.position += 3, D(e, !0, -1));
2316
+ if (H(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, H(e, !0, -1)) : l && C(e, "directives end mark is expected"), Ae(e, e.lineIndent - 1, Ye, !1, !0), H(e, !0, -1), e.checkLineBreaks && pt.test(e.input.slice(n, e.position)) && Be(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && Ue(e)) {
2317
+ e.input.charCodeAt(e.position) === 46 && (e.position += 3, H(e, !0, -1));
1656
2318
  return;
1657
2319
  }
1658
2320
  if (e.position < e.length - 1)
1659
- g(e, "end of the stream or a document separator is expected");
2321
+ C(e, "end of the stream or a document separator is expected");
1660
2322
  else
1661
2323
  return;
1662
2324
  }
1663
- function zr(e, r) {
1664
- e = String(e), r = r || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
2325
+ function mr(e, n) {
2326
+ e = String(e), n = n || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
1665
2327
  `), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
1666
- var n = new Li(e, r), o = e.indexOf("\0");
1667
- for (o !== -1 && (n.position = o, g(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32; )
1668
- n.lineIndent += 1, n.position += 1;
1669
- for (; n.position < n.length - 1; )
1670
- Gi(n);
1671
- return n.documents;
1672
- }
1673
- function Wi(e, r, n) {
1674
- r !== null && typeof r == "object" && typeof n > "u" && (n = r, r = null);
1675
- var o = zr(e, n);
1676
- if (typeof r != "function")
1677
- return o;
1678
- for (var i = 0, l = o.length; i < l; i += 1)
1679
- r(o[i]);
1680
- }
1681
- function qi(e, r) {
1682
- var n = zr(e, r);
1683
- if (n.length !== 0) {
1684
- if (n.length === 1)
1685
- return n[0];
1686
- throw new q("expected a single document in the stream, but found more");
2328
+ var r = new yt(e, n), t = e.indexOf("\0");
2329
+ for (t !== -1 && (r.position = t, C(r, "null byte is not allowed in input")), r.input += "\0"; r.input.charCodeAt(r.position) === 32; )
2330
+ r.lineIndent += 1, r.position += 1;
2331
+ for (; r.position < r.length - 1; )
2332
+ Tt(r);
2333
+ return r.documents;
2334
+ }
2335
+ function $t(e, n, r) {
2336
+ n !== null && typeof n == "object" && typeof r > "u" && (r = n, n = null);
2337
+ var t = mr(e, r);
2338
+ if (typeof n != "function")
2339
+ return t;
2340
+ for (var i = 0, l = t.length; i < l; i += 1)
2341
+ n(t[i]);
2342
+ }
2343
+ function Ot(e, n) {
2344
+ var r = mr(e, n);
2345
+ if (r.length !== 0) {
2346
+ if (r.length === 1)
2347
+ return r[0];
2348
+ throw new Z("expected a single document in the stream, but found more");
1687
2349
  }
1688
2350
  }
1689
- var Ki = Wi, Xi = qi, Vr = {
1690
- loadAll: Ki,
1691
- load: Xi
1692
- }, Zr = Object.prototype.toString, Qr = Object.prototype.hasOwnProperty, Ke = 65279, zi = 9, Ae = 10, Vi = 13, Zi = 32, Qi = 33, Ji = 34, De = 35, eo = 37, ro = 38, no = 39, io = 42, Jr = 44, oo = 45, Fe = 58, to = 61, lo = 62, ao = 63, co = 64, en = 91, rn = 93, fo = 96, nn = 123, so = 124, on = 125, G = {};
1693
- G[0] = "\\0";
1694
- G[7] = "\\a";
1695
- G[8] = "\\b";
1696
- G[9] = "\\t";
1697
- G[10] = "\\n";
1698
- G[11] = "\\v";
1699
- G[12] = "\\f";
1700
- G[13] = "\\r";
1701
- G[27] = "\\e";
1702
- G[34] = '\\"';
1703
- G[92] = "\\\\";
1704
- G[133] = "\\N";
1705
- G[160] = "\\_";
1706
- G[8232] = "\\L";
1707
- G[8233] = "\\P";
1708
- var uo = [
2351
+ var jt = $t, Ft = Ot, gr = {
2352
+ loadAll: jt,
2353
+ load: Ft
2354
+ }, yr = Object.prototype.toString, vr = Object.prototype.hasOwnProperty, an = 65279, Lt = 9, $e = 10, It = 13, Rt = 32, Mt = 33, Nt = 34, Ke = 35, Pt = 37, Dt = 38, Yt = 39, Bt = 42, br = 44, Wt = 45, We = 58, Ht = 61, Ut = 62, Xt = 63, Gt = 64, Ar = 91, kr = 93, zt = 96, Cr = 123, qt = 124, Sr = 125, K = {};
2355
+ K[0] = "\\0";
2356
+ K[7] = "\\a";
2357
+ K[8] = "\\b";
2358
+ K[9] = "\\t";
2359
+ K[10] = "\\n";
2360
+ K[11] = "\\v";
2361
+ K[12] = "\\f";
2362
+ K[13] = "\\r";
2363
+ K[27] = "\\e";
2364
+ K[34] = '\\"';
2365
+ K[92] = "\\\\";
2366
+ K[133] = "\\N";
2367
+ K[160] = "\\_";
2368
+ K[8232] = "\\L";
2369
+ K[8233] = "\\P";
2370
+ var Kt = [
1709
2371
  "y",
1710
2372
  "Y",
1711
2373
  "yes",
@@ -1722,243 +2384,243 @@ var uo = [
1722
2384
  "off",
1723
2385
  "Off",
1724
2386
  "OFF"
1725
- ], po = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
1726
- function ho(e, r) {
1727
- var n, o, i, l, t, a, c;
1728
- if (r === null) return {};
1729
- for (n = {}, o = Object.keys(r), i = 0, l = o.length; i < l; i += 1)
1730
- t = o[i], a = String(r[t]), t.slice(0, 2) === "!!" && (t = "tag:yaml.org,2002:" + t.slice(2)), c = e.compiledTypeMap.fallback[t], c && Qr.call(c.styleAliases, a) && (a = c.styleAliases[a]), n[t] = a;
1731
- return n;
2387
+ ], Vt = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
2388
+ function Zt(e, n) {
2389
+ var r, t, i, l, o, a, c;
2390
+ if (n === null) return {};
2391
+ for (r = {}, t = Object.keys(n), i = 0, l = t.length; i < l; i += 1)
2392
+ o = t[i], a = String(n[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), c = e.compiledTypeMap.fallback[o], c && vr.call(c.styleAliases, a) && (a = c.styleAliases[a]), r[o] = a;
2393
+ return r;
1732
2394
  }
1733
- function mo(e) {
1734
- var r, n, o;
1735
- if (r = e.toString(16).toUpperCase(), e <= 255)
1736
- n = "x", o = 2;
2395
+ function Jt(e) {
2396
+ var n, r, t;
2397
+ if (n = e.toString(16).toUpperCase(), e <= 255)
2398
+ r = "x", t = 2;
1737
2399
  else if (e <= 65535)
1738
- n = "u", o = 4;
2400
+ r = "u", t = 4;
1739
2401
  else if (e <= 4294967295)
1740
- n = "U", o = 8;
2402
+ r = "U", t = 8;
1741
2403
  else
1742
- throw new q("code point within a string may not be greater than 0xFFFFFFFF");
1743
- return "\\" + n + B.repeat("0", o - r.length) + r;
2404
+ throw new Z("code point within a string may not be greater than 0xFFFFFFFF");
2405
+ return "\\" + r + U.repeat("0", t - n.length) + n;
1744
2406
  }
1745
- var xo = 1, _e = 2;
1746
- function go(e) {
1747
- this.schema = e.schema || Ge, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = B.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = ho(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 === '"' ? _e : xo, 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;
2407
+ var Qt = 1, Oe = 2;
2408
+ function eo(e) {
2409
+ this.schema = e.schema || tn, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = U.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = Zt(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 === '"' ? Oe : Qt, 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;
1748
2410
  }
1749
- function fr(e, r) {
1750
- for (var n = B.repeat(" ", r), o = 0, i = -1, l = "", t, a = e.length; o < a; )
2411
+ function wn(e, n) {
2412
+ for (var r = U.repeat(" ", n), t = 0, i = -1, l = "", o, a = e.length; t < a; )
1751
2413
  i = e.indexOf(`
1752
- `, o), i === -1 ? (t = e.slice(o), o = a) : (t = e.slice(o, i + 1), o = i + 1), t.length && t !== `
1753
- ` && (l += n), l += t;
2414
+ `, t), i === -1 ? (o = e.slice(t), t = a) : (o = e.slice(t, i + 1), t = i + 1), o.length && o !== `
2415
+ ` && (l += r), l += o;
1754
2416
  return l;
1755
2417
  }
1756
- function Ye(e, r) {
2418
+ function Ve(e, n) {
1757
2419
  return `
1758
- ` + B.repeat(" ", e.indent * r);
2420
+ ` + U.repeat(" ", e.indent * n);
1759
2421
  }
1760
- function yo(e, r) {
1761
- var n, o, i;
1762
- for (n = 0, o = e.implicitTypes.length; n < o; n += 1)
1763
- if (i = e.implicitTypes[n], i.resolve(r))
2422
+ function no(e, n) {
2423
+ var r, t, i;
2424
+ for (r = 0, t = e.implicitTypes.length; r < t; r += 1)
2425
+ if (i = e.implicitTypes[r], i.resolve(n))
1764
2426
  return !0;
1765
2427
  return !1;
1766
2428
  }
1767
- function Re(e) {
1768
- return e === Zi || e === zi;
2429
+ function He(e) {
2430
+ return e === Rt || e === Lt;
1769
2431
  }
1770
- function Ce(e) {
1771
- return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== Ke || 65536 <= e && e <= 1114111;
2432
+ function je(e) {
2433
+ return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== an || 65536 <= e && e <= 1114111;
1772
2434
  }
1773
- function sr(e) {
1774
- return Ce(e) && e !== Ke && e !== Vi && e !== Ae;
2435
+ function En(e) {
2436
+ return je(e) && e !== an && e !== It && e !== $e;
1775
2437
  }
1776
- function ur(e, r, n) {
1777
- var o = sr(e), i = o && !Re(e);
2438
+ function _n(e, n, r) {
2439
+ var t = En(e), i = t && !He(e);
1778
2440
  return (
1779
2441
  // ns-plain-safe
1780
- (n ? (
2442
+ (r ? (
1781
2443
  // c = flow-in
1782
- o
1783
- ) : o && e !== Jr && e !== en && e !== rn && e !== nn && e !== on) && e !== De && !(r === Fe && !i) || sr(r) && !Re(r) && e === De || r === Fe && i
2444
+ t
2445
+ ) : t && e !== br && e !== Ar && e !== kr && e !== Cr && e !== Sr) && e !== Ke && !(n === We && !i) || En(n) && !He(n) && e === Ke || n === We && i
1784
2446
  );
1785
2447
  }
1786
- function vo(e) {
1787
- return Ce(e) && e !== Ke && !Re(e) && e !== oo && e !== ao && e !== Fe && e !== Jr && e !== en && e !== rn && e !== nn && e !== on && e !== De && e !== ro && e !== io && e !== Qi && e !== so && e !== to && e !== lo && e !== no && e !== Ji && e !== eo && e !== co && e !== fo;
2448
+ function ro(e) {
2449
+ return je(e) && e !== an && !He(e) && e !== Wt && e !== Xt && e !== We && e !== br && e !== Ar && e !== kr && e !== Cr && e !== Sr && e !== Ke && e !== Dt && e !== Bt && e !== Mt && e !== qt && e !== Ht && e !== Ut && e !== Yt && e !== Nt && e !== Pt && e !== Gt && e !== zt;
1788
2450
  }
1789
- function bo(e) {
1790
- return !Re(e) && e !== Fe;
2451
+ function io(e) {
2452
+ return !He(e) && e !== We;
1791
2453
  }
1792
- function ve(e, r) {
1793
- var n = e.charCodeAt(r), o;
1794
- return n >= 55296 && n <= 56319 && r + 1 < e.length && (o = e.charCodeAt(r + 1), o >= 56320 && o <= 57343) ? (n - 55296) * 1024 + o - 56320 + 65536 : n;
2454
+ function _e(e, n) {
2455
+ var r = e.charCodeAt(n), t;
2456
+ return r >= 55296 && r <= 56319 && n + 1 < e.length && (t = e.charCodeAt(n + 1), t >= 56320 && t <= 57343) ? (r - 55296) * 1024 + t - 56320 + 65536 : r;
1795
2457
  }
1796
- function tn(e) {
1797
- var r = /^\n* /;
1798
- return r.test(e);
2458
+ function wr(e) {
2459
+ var n = /^\n* /;
2460
+ return n.test(e);
1799
2461
  }
1800
- var ln = 1, Be = 2, an = 3, cn = 4, pe = 5;
1801
- function Ao(e, r, n, o, i, l, t, a) {
1802
- var c, s = 0, h = null, d = !1, u = !1, f = o !== -1, m = -1, x = vo(ve(e, 0)) && bo(ve(e, e.length - 1));
1803
- if (r || t)
2462
+ var Er = 1, Ze = 2, _r = 3, Tr = 4, ye = 5;
2463
+ function to(e, n, r, t, i, l, o, a) {
2464
+ var c, s = 0, u = null, x = !1, p = !1, f = t !== -1, m = -1, y = ro(_e(e, 0)) && io(_e(e, e.length - 1));
2465
+ if (n || o)
1804
2466
  for (c = 0; c < e.length; s >= 65536 ? c += 2 : c++) {
1805
- if (s = ve(e, c), !Ce(s))
1806
- return pe;
1807
- x = x && ur(s, h, a), h = s;
2467
+ if (s = _e(e, c), !je(s))
2468
+ return ye;
2469
+ y = y && _n(s, u, a), u = s;
1808
2470
  }
1809
2471
  else {
1810
2472
  for (c = 0; c < e.length; s >= 65536 ? c += 2 : c++) {
1811
- if (s = ve(e, c), s === Ae)
1812
- d = !0, f && (u = u || // Foldable line = too long, and not more-indented.
1813
- c - m - 1 > o && e[m + 1] !== " ", m = c);
1814
- else if (!Ce(s))
1815
- return pe;
1816
- x = x && ur(s, h, a), h = s;
2473
+ if (s = _e(e, c), s === $e)
2474
+ x = !0, f && (p = p || // Foldable line = too long, and not more-indented.
2475
+ c - m - 1 > t && e[m + 1] !== " ", m = c);
2476
+ else if (!je(s))
2477
+ return ye;
2478
+ y = y && _n(s, u, a), u = s;
1817
2479
  }
1818
- u = u || f && c - m - 1 > o && e[m + 1] !== " ";
2480
+ p = p || f && c - m - 1 > t && e[m + 1] !== " ";
1819
2481
  }
1820
- return !d && !u ? x && !t && !i(e) ? ln : l === _e ? pe : Be : n > 9 && tn(e) ? pe : t ? l === _e ? pe : Be : u ? cn : an;
2482
+ return !x && !p ? y && !o && !i(e) ? Er : l === Oe ? ye : Ze : r > 9 && wr(e) ? ye : o ? l === Oe ? ye : Ze : p ? Tr : _r;
1821
2483
  }
1822
- function _o(e, r, n, o, i) {
2484
+ function oo(e, n, r, t, i) {
1823
2485
  e.dump = (function() {
1824
- if (r.length === 0)
1825
- return e.quotingType === _e ? '""' : "''";
1826
- if (!e.noCompatMode && (uo.indexOf(r) !== -1 || po.test(r)))
1827
- return e.quotingType === _e ? '"' + r + '"' : "'" + r + "'";
1828
- var l = e.indent * Math.max(1, n), t = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - l), a = o || e.flowLevel > -1 && n >= e.flowLevel;
2486
+ if (n.length === 0)
2487
+ return e.quotingType === Oe ? '""' : "''";
2488
+ if (!e.noCompatMode && (Kt.indexOf(n) !== -1 || Vt.test(n)))
2489
+ return e.quotingType === Oe ? '"' + n + '"' : "'" + n + "'";
2490
+ var l = e.indent * Math.max(1, r), o = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - l), a = t || e.flowLevel > -1 && r >= e.flowLevel;
1829
2491
  function c(s) {
1830
- return yo(e, s);
2492
+ return no(e, s);
1831
2493
  }
1832
- switch (Ao(
1833
- r,
2494
+ switch (to(
2495
+ n,
1834
2496
  a,
1835
2497
  e.indent,
1836
- t,
2498
+ o,
1837
2499
  c,
1838
2500
  e.quotingType,
1839
- e.forceQuotes && !o,
2501
+ e.forceQuotes && !t,
1840
2502
  i
1841
2503
  )) {
1842
- case ln:
1843
- return r;
1844
- case Be:
1845
- return "'" + r.replace(/'/g, "''") + "'";
1846
- case an:
1847
- return "|" + pr(r, e.indent) + dr(fr(r, l));
1848
- case cn:
1849
- return ">" + pr(r, e.indent) + dr(fr(Co(r, t), l));
1850
- case pe:
1851
- return '"' + wo(r) + '"';
2504
+ case Er:
2505
+ return n;
2506
+ case Ze:
2507
+ return "'" + n.replace(/'/g, "''") + "'";
2508
+ case _r:
2509
+ return "|" + Tn(n, e.indent) + $n(wn(n, l));
2510
+ case Tr:
2511
+ return ">" + Tn(n, e.indent) + $n(wn(lo(n, o), l));
2512
+ case ye:
2513
+ return '"' + ao(n) + '"';
1852
2514
  default:
1853
- throw new q("impossible error: invalid scalar style");
2515
+ throw new Z("impossible error: invalid scalar style");
1854
2516
  }
1855
2517
  })();
1856
2518
  }
1857
- function pr(e, r) {
1858
- var n = tn(e) ? String(r) : "", o = e[e.length - 1] === `
1859
- `, i = o && (e[e.length - 2] === `
2519
+ function Tn(e, n) {
2520
+ var r = wr(e) ? String(n) : "", t = e[e.length - 1] === `
2521
+ `, i = t && (e[e.length - 2] === `
1860
2522
  ` || e === `
1861
- `), l = i ? "+" : o ? "" : "-";
1862
- return n + l + `
2523
+ `), l = i ? "+" : t ? "" : "-";
2524
+ return r + l + `
1863
2525
  `;
1864
2526
  }
1865
- function dr(e) {
2527
+ function $n(e) {
1866
2528
  return e[e.length - 1] === `
1867
2529
  ` ? e.slice(0, -1) : e;
1868
2530
  }
1869
- function Co(e, r) {
1870
- for (var n = /(\n+)([^\n]*)/g, o = (function() {
2531
+ function lo(e, n) {
2532
+ for (var r = /(\n+)([^\n]*)/g, t = (function() {
1871
2533
  var s = e.indexOf(`
1872
2534
  `);
1873
- return s = s !== -1 ? s : e.length, n.lastIndex = s, hr(e.slice(0, s), r);
2535
+ return s = s !== -1 ? s : e.length, r.lastIndex = s, On(e.slice(0, s), n);
1874
2536
  })(), i = e[0] === `
1875
- ` || e[0] === " ", l, t; t = n.exec(e); ) {
1876
- var a = t[1], c = t[2];
1877
- l = c[0] === " ", o += a + (!i && !l && c !== "" ? `
1878
- ` : "") + hr(c, r), i = l;
2537
+ ` || e[0] === " ", l, o; o = r.exec(e); ) {
2538
+ var a = o[1], c = o[2];
2539
+ l = c[0] === " ", t += a + (!i && !l && c !== "" ? `
2540
+ ` : "") + On(c, n), i = l;
1879
2541
  }
1880
- return o;
2542
+ return t;
1881
2543
  }
1882
- function hr(e, r) {
2544
+ function On(e, n) {
1883
2545
  if (e === "" || e[0] === " ") return e;
1884
- for (var n = / [^ ]/g, o, i = 0, l, t = 0, a = 0, c = ""; o = n.exec(e); )
1885
- a = o.index, a - i > r && (l = t > i ? t : a, c += `
1886
- ` + e.slice(i, l), i = l + 1), t = a;
2546
+ for (var r = / [^ ]/g, t, i = 0, l, o = 0, a = 0, c = ""; t = r.exec(e); )
2547
+ a = t.index, a - i > n && (l = o > i ? o : a, c += `
2548
+ ` + e.slice(i, l), i = l + 1), o = a;
1887
2549
  return c += `
1888
- `, e.length - i > r && t > i ? c += e.slice(i, t) + `
1889
- ` + e.slice(t + 1) : c += e.slice(i), c.slice(1);
2550
+ `, e.length - i > n && o > i ? c += e.slice(i, o) + `
2551
+ ` + e.slice(o + 1) : c += e.slice(i), c.slice(1);
1890
2552
  }
1891
- function wo(e) {
1892
- for (var r = "", n = 0, o, i = 0; i < e.length; n >= 65536 ? i += 2 : i++)
1893
- n = ve(e, i), o = G[n], !o && Ce(n) ? (r += e[i], n >= 65536 && (r += e[i + 1])) : r += o || mo(n);
1894
- return r;
2553
+ function ao(e) {
2554
+ for (var n = "", r = 0, t, i = 0; i < e.length; r >= 65536 ? i += 2 : i++)
2555
+ r = _e(e, i), t = K[r], !t && je(r) ? (n += e[i], r >= 65536 && (n += e[i + 1])) : n += t || Jt(r);
2556
+ return n;
1895
2557
  }
1896
- function Eo(e, r, n) {
1897
- var o = "", i = e.tag, l, t, a;
1898
- for (l = 0, t = n.length; l < t; l += 1)
1899
- a = n[l], e.replacer && (a = e.replacer.call(n, String(l), a)), (ie(e, r, a, !1, !1) || typeof a > "u" && ie(e, r, null, !1, !1)) && (o !== "" && (o += "," + (e.condenseFlow ? "" : " ")), o += e.dump);
1900
- e.tag = i, e.dump = "[" + o + "]";
2558
+ function co(e, n, r) {
2559
+ var t = "", i = e.tag, l, o, a;
2560
+ for (l = 0, o = r.length; l < o; l += 1)
2561
+ a = r[l], e.replacer && (a = e.replacer.call(r, String(l), a)), (ae(e, n, a, !1, !1) || typeof a > "u" && ae(e, n, null, !1, !1)) && (t !== "" && (t += "," + (e.condenseFlow ? "" : " ")), t += e.dump);
2562
+ e.tag = i, e.dump = "[" + t + "]";
1901
2563
  }
1902
- function mr(e, r, n, o) {
1903
- var i = "", l = e.tag, t, a, c;
1904
- for (t = 0, a = n.length; t < a; t += 1)
1905
- c = n[t], e.replacer && (c = e.replacer.call(n, String(t), c)), (ie(e, r + 1, c, !0, !0, !1, !0) || typeof c > "u" && ie(e, r + 1, null, !0, !0, !1, !0)) && ((!o || i !== "") && (i += Ye(e, r)), e.dump && Ae === e.dump.charCodeAt(0) ? i += "-" : i += "- ", i += e.dump);
2564
+ function jn(e, n, r, t) {
2565
+ var i = "", l = e.tag, o, a, c;
2566
+ for (o = 0, a = r.length; o < a; o += 1)
2567
+ c = r[o], e.replacer && (c = e.replacer.call(r, String(o), c)), (ae(e, n + 1, c, !0, !0, !1, !0) || typeof c > "u" && ae(e, n + 1, null, !0, !0, !1, !0)) && ((!t || i !== "") && (i += Ve(e, n)), e.dump && $e === e.dump.charCodeAt(0) ? i += "-" : i += "- ", i += e.dump);
1906
2568
  e.tag = l, e.dump = i || "[]";
1907
2569
  }
1908
- function So(e, r, n) {
1909
- var o = "", i = e.tag, l = Object.keys(n), t, a, c, s, h;
1910
- for (t = 0, a = l.length; t < a; t += 1)
1911
- h = "", o !== "" && (h += ", "), e.condenseFlow && (h += '"'), c = l[t], s = n[c], e.replacer && (s = e.replacer.call(n, c, s)), ie(e, r, c, !1, !1) && (e.dump.length > 1024 && (h += "? "), h += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), ie(e, r, s, !1, !1) && (h += e.dump, o += h));
1912
- e.tag = i, e.dump = "{" + o + "}";
2570
+ function so(e, n, r) {
2571
+ var t = "", i = e.tag, l = Object.keys(r), o, a, c, s, u;
2572
+ for (o = 0, a = l.length; o < a; o += 1)
2573
+ u = "", t !== "" && (u += ", "), e.condenseFlow && (u += '"'), c = l[o], s = r[c], e.replacer && (s = e.replacer.call(r, c, s)), ae(e, n, c, !1, !1) && (e.dump.length > 1024 && (u += "? "), u += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), ae(e, n, s, !1, !1) && (u += e.dump, t += u));
2574
+ e.tag = i, e.dump = "{" + t + "}";
1913
2575
  }
1914
- function To(e, r, n, o) {
1915
- var i = "", l = e.tag, t = Object.keys(n), a, c, s, h, d, u;
2576
+ function fo(e, n, r, t) {
2577
+ var i = "", l = e.tag, o = Object.keys(r), a, c, s, u, x, p;
1916
2578
  if (e.sortKeys === !0)
1917
- t.sort();
2579
+ o.sort();
1918
2580
  else if (typeof e.sortKeys == "function")
1919
- t.sort(e.sortKeys);
2581
+ o.sort(e.sortKeys);
1920
2582
  else if (e.sortKeys)
1921
- throw new q("sortKeys must be a boolean or a function");
1922
- for (a = 0, c = t.length; a < c; a += 1)
1923
- u = "", (!o || i !== "") && (u += Ye(e, r)), s = t[a], h = n[s], e.replacer && (h = e.replacer.call(n, s, h)), ie(e, r + 1, s, !0, !0, !0) && (d = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, d && (e.dump && Ae === e.dump.charCodeAt(0) ? u += "?" : u += "? "), u += e.dump, d && (u += Ye(e, r)), ie(e, r + 1, h, !0, d) && (e.dump && Ae === e.dump.charCodeAt(0) ? u += ":" : u += ": ", u += e.dump, i += u));
2583
+ throw new Z("sortKeys must be a boolean or a function");
2584
+ for (a = 0, c = o.length; a < c; a += 1)
2585
+ p = "", (!t || i !== "") && (p += Ve(e, n)), s = o[a], u = r[s], e.replacer && (u = e.replacer.call(r, s, u)), ae(e, n + 1, s, !0, !0, !0) && (x = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, x && (e.dump && $e === e.dump.charCodeAt(0) ? p += "?" : p += "? "), p += e.dump, x && (p += Ve(e, n)), ae(e, n + 1, u, !0, x) && (e.dump && $e === e.dump.charCodeAt(0) ? p += ":" : p += ": ", p += e.dump, i += p));
1924
2586
  e.tag = l, e.dump = i || "{}";
1925
2587
  }
1926
- function xr(e, r, n) {
1927
- var o, i, l, t, a, c;
1928
- for (i = n ? e.explicitTypes : e.implicitTypes, l = 0, t = i.length; l < t; l += 1)
1929
- if (a = i[l], (a.instanceOf || a.predicate) && (!a.instanceOf || typeof r == "object" && r instanceof a.instanceOf) && (!a.predicate || a.predicate(r))) {
1930
- if (n ? a.multi && a.representName ? e.tag = a.representName(r) : e.tag = a.tag : e.tag = "?", a.represent) {
1931
- if (c = e.styleMap[a.tag] || a.defaultStyle, Zr.call(a.represent) === "[object Function]")
1932
- o = a.represent(r, c);
1933
- else if (Qr.call(a.represent, c))
1934
- o = a.represent[c](r, c);
2588
+ function Fn(e, n, r) {
2589
+ var t, i, l, o, a, c;
2590
+ for (i = r ? e.explicitTypes : e.implicitTypes, l = 0, o = i.length; l < o; l += 1)
2591
+ if (a = i[l], (a.instanceOf || a.predicate) && (!a.instanceOf || typeof n == "object" && n instanceof a.instanceOf) && (!a.predicate || a.predicate(n))) {
2592
+ if (r ? a.multi && a.representName ? e.tag = a.representName(n) : e.tag = a.tag : e.tag = "?", a.represent) {
2593
+ if (c = e.styleMap[a.tag] || a.defaultStyle, yr.call(a.represent) === "[object Function]")
2594
+ t = a.represent(n, c);
2595
+ else if (vr.call(a.represent, c))
2596
+ t = a.represent[c](n, c);
1935
2597
  else
1936
- throw new q("!<" + a.tag + '> tag resolver accepts not "' + c + '" style');
1937
- e.dump = o;
2598
+ throw new Z("!<" + a.tag + '> tag resolver accepts not "' + c + '" style');
2599
+ e.dump = t;
1938
2600
  }
1939
2601
  return !0;
1940
2602
  }
1941
2603
  return !1;
1942
2604
  }
1943
- function ie(e, r, n, o, i, l, t) {
1944
- e.tag = null, e.dump = n, xr(e, n, !1) || xr(e, n, !0);
1945
- var a = Zr.call(e.dump), c = o, s;
1946
- o && (o = e.flowLevel < 0 || e.flowLevel > r);
1947
- var h = a === "[object Object]" || a === "[object Array]", d, u;
1948
- if (h && (d = e.duplicates.indexOf(n), u = d !== -1), (e.tag !== null && e.tag !== "?" || u || e.indent !== 2 && r > 0) && (i = !1), u && e.usedDuplicates[d])
1949
- e.dump = "*ref_" + d;
2605
+ function ae(e, n, r, t, i, l, o) {
2606
+ e.tag = null, e.dump = r, Fn(e, r, !1) || Fn(e, r, !0);
2607
+ var a = yr.call(e.dump), c = t, s;
2608
+ t && (t = e.flowLevel < 0 || e.flowLevel > n);
2609
+ var u = a === "[object Object]" || a === "[object Array]", x, p;
2610
+ if (u && (x = e.duplicates.indexOf(r), p = x !== -1), (e.tag !== null && e.tag !== "?" || p || e.indent !== 2 && n > 0) && (i = !1), p && e.usedDuplicates[x])
2611
+ e.dump = "*ref_" + x;
1950
2612
  else {
1951
- if (h && u && !e.usedDuplicates[d] && (e.usedDuplicates[d] = !0), a === "[object Object]")
1952
- o && Object.keys(e.dump).length !== 0 ? (To(e, r, e.dump, i), u && (e.dump = "&ref_" + d + e.dump)) : (So(e, r, e.dump), u && (e.dump = "&ref_" + d + " " + e.dump));
2613
+ if (u && p && !e.usedDuplicates[x] && (e.usedDuplicates[x] = !0), a === "[object Object]")
2614
+ t && Object.keys(e.dump).length !== 0 ? (fo(e, n, e.dump, i), p && (e.dump = "&ref_" + x + e.dump)) : (so(e, n, e.dump), p && (e.dump = "&ref_" + x + " " + e.dump));
1953
2615
  else if (a === "[object Array]")
1954
- o && e.dump.length !== 0 ? (e.noArrayIndent && !t && r > 0 ? mr(e, r - 1, e.dump, i) : mr(e, r, e.dump, i), u && (e.dump = "&ref_" + d + e.dump)) : (Eo(e, r, e.dump), u && (e.dump = "&ref_" + d + " " + e.dump));
2616
+ t && e.dump.length !== 0 ? (e.noArrayIndent && !o && n > 0 ? jn(e, n - 1, e.dump, i) : jn(e, n, e.dump, i), p && (e.dump = "&ref_" + x + e.dump)) : (co(e, n, e.dump), p && (e.dump = "&ref_" + x + " " + e.dump));
1955
2617
  else if (a === "[object String]")
1956
- e.tag !== "?" && _o(e, e.dump, r, l, c);
2618
+ e.tag !== "?" && oo(e, e.dump, n, l, c);
1957
2619
  else {
1958
2620
  if (a === "[object Undefined]")
1959
2621
  return !1;
1960
2622
  if (e.skipInvalid) return !1;
1961
- throw new q("unacceptable kind of an object to dump " + a);
2623
+ throw new Z("unacceptable kind of an object to dump " + a);
1962
2624
  }
1963
2625
  e.tag !== null && e.tag !== "?" && (s = encodeURI(
1964
2626
  e.tag[0] === "!" ? e.tag.slice(1) : e.tag
@@ -1966,168 +2628,168 @@ function ie(e, r, n, o, i, l, t) {
1966
2628
  }
1967
2629
  return !0;
1968
2630
  }
1969
- function ko(e, r) {
1970
- var n = [], o = [], i, l;
1971
- for (He(e, n, o), i = 0, l = o.length; i < l; i += 1)
1972
- r.duplicates.push(n[o[i]]);
1973
- r.usedDuplicates = new Array(l);
2631
+ function uo(e, n) {
2632
+ var r = [], t = [], i, l;
2633
+ for (Je(e, r, t), i = 0, l = t.length; i < l; i += 1)
2634
+ n.duplicates.push(r[t[i]]);
2635
+ n.usedDuplicates = new Array(l);
1974
2636
  }
1975
- function He(e, r, n) {
1976
- var o, i, l;
2637
+ function Je(e, n, r) {
2638
+ var t, i, l;
1977
2639
  if (e !== null && typeof e == "object")
1978
- if (i = r.indexOf(e), i !== -1)
1979
- n.indexOf(i) === -1 && n.push(i);
1980
- else if (r.push(e), Array.isArray(e))
2640
+ if (i = n.indexOf(e), i !== -1)
2641
+ r.indexOf(i) === -1 && r.push(i);
2642
+ else if (n.push(e), Array.isArray(e))
1981
2643
  for (i = 0, l = e.length; i < l; i += 1)
1982
- He(e[i], r, n);
2644
+ Je(e[i], n, r);
1983
2645
  else
1984
- for (o = Object.keys(e), i = 0, l = o.length; i < l; i += 1)
1985
- He(e[o[i]], r, n);
1986
- }
1987
- function Oo(e, r) {
1988
- r = r || {};
1989
- var n = new go(r);
1990
- n.noRefs || ko(e, n);
1991
- var o = e;
1992
- return n.replacer && (o = n.replacer.call({ "": o }, "", o)), ie(n, 0, o, !0, !0) ? n.dump + `
2646
+ for (t = Object.keys(e), i = 0, l = t.length; i < l; i += 1)
2647
+ Je(e[t[i]], n, r);
2648
+ }
2649
+ function po(e, n) {
2650
+ n = n || {};
2651
+ var r = new eo(n);
2652
+ r.noRefs || uo(e, r);
2653
+ var t = e;
2654
+ return r.replacer && (t = r.replacer.call({ "": t }, "", t)), ae(r, 0, t, !0, !0) ? r.dump + `
1993
2655
  ` : "";
1994
2656
  }
1995
- var $o = Oo, Fo = {
1996
- dump: $o
2657
+ var ho = po, xo = {
2658
+ dump: ho
1997
2659
  };
1998
- function Xe(e, r) {
2660
+ function cn(e, n) {
1999
2661
  return function() {
2000
- throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + r + " instead, which is now safe by default.");
2662
+ throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + n + " instead, which is now safe by default.");
2001
2663
  };
2002
2664
  }
2003
- var Ro = U, Io = _r, Lo = Sr, No = Fr, jo = Rr, Mo = Ge, Po = Vr.load, Do = Vr.loadAll, Yo = Fo.dump, Bo = q, Ho = {
2004
- binary: Mr,
2005
- float: $r,
2006
- map: Er,
2007
- null: Tr,
2008
- pairs: Dr,
2009
- set: Yr,
2010
- timestamp: Nr,
2011
- bool: kr,
2012
- int: Or,
2013
- merge: jr,
2014
- omap: Pr,
2015
- seq: wr,
2016
- str: Cr
2017
- }, Uo = Xe("safeLoad", "load"), Go = Xe("safeLoadAll", "loadAll"), Wo = Xe("safeDump", "dump"), qo = {
2018
- Type: Ro,
2019
- Schema: Io,
2020
- FAILSAFE_SCHEMA: Lo,
2021
- JSON_SCHEMA: No,
2022
- CORE_SCHEMA: jo,
2023
- DEFAULT_SCHEMA: Mo,
2024
- load: Po,
2025
- loadAll: Do,
2026
- dump: Yo,
2027
- YAMLException: Bo,
2028
- types: Ho,
2029
- safeLoad: Uo,
2030
- safeLoadAll: Go,
2031
- safeDump: Wo
2665
+ var mo = z, go = Hn, yo = zn, vo = Jn, bo = Qn, Ao = tn, ko = gr.load, Co = gr.loadAll, So = xo.dump, wo = Z, Eo = {
2666
+ binary: tr,
2667
+ float: Zn,
2668
+ map: Gn,
2669
+ null: qn,
2670
+ pairs: lr,
2671
+ set: ar,
2672
+ timestamp: rr,
2673
+ bool: Kn,
2674
+ int: Vn,
2675
+ merge: ir,
2676
+ omap: or,
2677
+ seq: Xn,
2678
+ str: Un
2679
+ }, _o = cn("safeLoad", "load"), To = cn("safeLoadAll", "loadAll"), $o = cn("safeDump", "dump"), Oo = {
2680
+ Type: mo,
2681
+ Schema: go,
2682
+ FAILSAFE_SCHEMA: yo,
2683
+ JSON_SCHEMA: vo,
2684
+ CORE_SCHEMA: bo,
2685
+ DEFAULT_SCHEMA: Ao,
2686
+ load: ko,
2687
+ loadAll: Co,
2688
+ dump: So,
2689
+ YAMLException: wo,
2690
+ types: Eo,
2691
+ safeLoad: _o,
2692
+ safeLoadAll: To,
2693
+ safeDump: $o
2032
2694
  };
2033
- function Ko(e) {
2034
- const r = e.match(/^(\d+)x(\d+)x(\d+)$/);
2035
- return r ? {
2036
- width: parseInt(r[1], 10),
2037
- depth: parseInt(r[2], 10),
2038
- height: parseInt(r[3], 10)
2695
+ function jo(e) {
2696
+ const n = e.match(/^(\d+)x(\d+)x(\d+)$/);
2697
+ return n ? {
2698
+ width: parseInt(n[1], 10),
2699
+ depth: parseInt(n[2], 10),
2700
+ height: parseInt(n[3], 10)
2039
2701
  } : null;
2040
2702
  }
2041
- function gr(e) {
2042
- const r = e.match(/^(\d+)x(\d+)$/);
2043
- return r ? {
2044
- width: parseInt(r[1], 10),
2045
- height: parseInt(r[2], 10)
2703
+ function Ln(e) {
2704
+ const n = e.match(/^(\d+)x(\d+)$/);
2705
+ return n ? {
2706
+ width: parseInt(n[1], 10),
2707
+ height: parseInt(n[2], 10)
2046
2708
  } : null;
2047
2709
  }
2048
- function Xo(e) {
2049
- const r = e.match(/^(-?\d+),(-?\d+)$/);
2050
- return r ? {
2051
- x: parseInt(r[1], 10),
2052
- y: parseInt(r[2], 10)
2710
+ function Fo(e) {
2711
+ const n = e.match(/^(-?\d+),(-?\d+)$/);
2712
+ return n ? {
2713
+ x: parseInt(n[1], 10),
2714
+ y: parseInt(n[2], 10)
2053
2715
  } : null;
2054
2716
  }
2055
- function zo(e) {
2056
- const r = e.match(/^(.+?)\s*@\s*(\d+)$/);
2057
- return r ? {
2058
- name: r[1].trim(),
2059
- elevation: parseInt(r[2], 10)
2717
+ function Lo(e) {
2718
+ const n = e.match(/^(.+?)\s*@\s*(\d+)$/);
2719
+ return n ? {
2720
+ name: n[1].trim(),
2721
+ elevation: parseInt(n[2], 10)
2060
2722
  } : null;
2061
2723
  }
2062
- function Vo(e, r, n) {
2063
- let o = {};
2724
+ function Io(e, n, r) {
2725
+ let t = {};
2064
2726
  const i = e.match(/\{([^}]+)\}\s*$/);
2065
2727
  if (i) {
2066
2728
  const f = i[1].split(/\s+/);
2067
2729
  for (const m of f) {
2068
- const [x, v] = m.split("=");
2069
- if (x && v) {
2070
- const A = parseFloat(v);
2071
- o[x] = isNaN(A) ? v : A;
2730
+ const [y, A] = m.split("=");
2731
+ if (y && A) {
2732
+ const v = parseFloat(A);
2733
+ t[y] = isNaN(v) ? A : v;
2072
2734
  }
2073
2735
  }
2074
2736
  e = e.replace(/\{[^}]+\}\s*$/, "").trim();
2075
2737
  }
2076
2738
  const l = e.trim().split(/\s+/);
2077
2739
  if (l.length < 4) return null;
2078
- const t = l[0], a = l[1], c = l[2], s = l[3], h = Xo(c), d = Ko(s);
2079
- if (!h || !d) return null;
2080
- const u = n[a] || a;
2740
+ const o = l[0], a = l[1], c = l[2], s = l[3], u = Fo(c), x = jo(s);
2741
+ if (!u || !x) return null;
2742
+ const p = r[a] || a;
2081
2743
  return {
2082
- tier: r,
2083
- label: t,
2084
- color: u,
2085
- x: h.x,
2086
- y: h.y,
2087
- width: d.width,
2088
- depth: d.depth,
2089
- height: d.height,
2090
- ...o
2744
+ tier: n,
2745
+ label: o,
2746
+ color: p,
2747
+ x: u.x,
2748
+ y: u.y,
2749
+ width: x.width,
2750
+ depth: x.depth,
2751
+ height: x.height,
2752
+ ...t
2091
2753
  };
2092
2754
  }
2093
- function rt(e) {
2094
- const r = qo.load(e);
2095
- let n = { width: 1100, height: 700 };
2096
- if (typeof r.canvas == "string") {
2097
- const u = gr(r.canvas);
2098
- u && (n = u);
2099
- } else r.canvas && typeof r.canvas == "object" && (n = r.canvas);
2100
- let o = { width: 400, depth: 280 };
2101
- if (typeof r.floor == "string") {
2102
- const u = gr(r.floor);
2103
- u && (o = { width: u.width, depth: u.height });
2104
- } else r.floor && typeof r.floor == "object" && (o = r.floor);
2105
- let i = { x: n.width / 2, y: n.height - 80 };
2106
- r.origin && typeof r.origin == "object" && (i = r.origin);
2755
+ function Do(e) {
2756
+ const n = Oo.load(e);
2757
+ let r = { width: 1100, height: 700 };
2758
+ if (typeof n.canvas == "string") {
2759
+ const p = Ln(n.canvas);
2760
+ p && (r = p);
2761
+ } else n.canvas && typeof n.canvas == "object" && (r = n.canvas);
2762
+ let t = { width: 400, depth: 280 };
2763
+ if (typeof n.floor == "string") {
2764
+ const p = Ln(n.floor);
2765
+ p && (t = { width: p.width, depth: p.height });
2766
+ } else n.floor && typeof n.floor == "object" && (t = n.floor);
2767
+ let i = { x: r.width / 2, y: r.height - 80 };
2768
+ n.origin && typeof n.origin == "object" && (i = n.origin);
2107
2769
  const l = {};
2108
- if (r.colors && typeof r.colors == "object")
2109
- for (const [u, f] of Object.entries(r.colors))
2110
- l[u] = f;
2111
- const t = [], a = {
2770
+ if (n.colors && typeof n.colors == "object")
2771
+ for (const [p, f] of Object.entries(n.colors))
2772
+ l[p] = f;
2773
+ const o = [], a = {
2112
2774
  dark: ["#0f172a", "#1e293b", "#334155", "#475569"],
2113
2775
  light: ["#f1f5f9", "#e0f2fe", "#dbeafe", "#ede9fe"]
2114
2776
  }, c = {
2115
2777
  dark: ["#334155", "#475569", "#64748b", "#94a3b8"],
2116
2778
  light: ["#94a3b8", "#7dd3fc", "#93c5fd", "#c4b5fd"]
2117
- }, s = r.theme || "dark";
2118
- Array.isArray(r.tiers) && r.tiers.forEach((u, f) => {
2119
- if (typeof u == "string") {
2120
- const m = zo(u);
2121
- m && t.push({
2779
+ }, s = n.theme || "dark";
2780
+ Array.isArray(n.tiers) && n.tiers.forEach((p, f) => {
2781
+ if (typeof p == "string") {
2782
+ const m = Lo(p);
2783
+ m && o.push({
2122
2784
  name: m.name,
2123
2785
  elevation: m.elevation,
2124
2786
  floorColor: a[s][f] || a[s][0],
2125
2787
  floorOpacity: f === 0 ? 0.95 : 0.7 - f * 0.1,
2126
2788
  borderColor: c[s][f] || c[s][0]
2127
2789
  });
2128
- } else if (u && typeof u == "object") {
2129
- const m = u;
2130
- t.push({
2790
+ } else if (p && typeof p == "object") {
2791
+ const m = p;
2792
+ o.push({
2131
2793
  name: m.name || `Tier ${f}`,
2132
2794
  elevation: m.elevation || f * 150,
2133
2795
  floorColor: m.floorColor || a[s][f],
@@ -2136,49 +2798,49 @@ function rt(e) {
2136
2798
  });
2137
2799
  }
2138
2800
  });
2139
- const h = [];
2140
- if (r.nodes && typeof r.nodes == "object" && !Array.isArray(r.nodes)) {
2141
- const u = r.nodes;
2142
- for (const [f, m] of Object.entries(u)) {
2143
- const x = parseInt(f, 10);
2144
- if (!(isNaN(x) || !Array.isArray(m))) {
2145
- for (const v of m)
2146
- if (typeof v == "string") {
2147
- const A = Vo(v, x, l);
2148
- A && h.push(A);
2149
- } else if (v && typeof v == "object") {
2150
- const A = v;
2151
- h.push({
2152
- tier: x,
2153
- label: A.label || "",
2154
- color: l[A.color] || A.color || "slate",
2155
- x: A.x || 0,
2156
- y: A.y || 0,
2157
- width: A.width || 100,
2158
- depth: A.depth || 80,
2159
- height: A.height || 40,
2160
- opacity: A.opacity,
2161
- blur: A.blur,
2162
- translucent: A.translucent
2801
+ const u = [];
2802
+ if (n.nodes && typeof n.nodes == "object" && !Array.isArray(n.nodes)) {
2803
+ const p = n.nodes;
2804
+ for (const [f, m] of Object.entries(p)) {
2805
+ const y = parseInt(f, 10);
2806
+ if (!(isNaN(y) || !Array.isArray(m))) {
2807
+ for (const A of m)
2808
+ if (typeof A == "string") {
2809
+ const v = Io(A, y, l);
2810
+ v && u.push(v);
2811
+ } else if (A && typeof A == "object") {
2812
+ const v = A;
2813
+ u.push({
2814
+ tier: y,
2815
+ label: v.label || "",
2816
+ color: l[v.color] || v.color || "slate",
2817
+ x: v.x || 0,
2818
+ y: v.y || 0,
2819
+ width: v.width || 100,
2820
+ depth: v.depth || 80,
2821
+ height: v.height || 40,
2822
+ opacity: v.opacity,
2823
+ blur: v.blur,
2824
+ translucent: v.translucent
2163
2825
  });
2164
2826
  }
2165
2827
  }
2166
2828
  }
2167
2829
  }
2168
- const d = [];
2169
- if (Array.isArray(r.pillars)) {
2170
- for (const u of r.pillars)
2171
- if (typeof u == "string") {
2172
- const f = u.match(/^(-?\d+),(-?\d+)\s+(\d+)->(\d+)$/);
2173
- f && d.push({
2830
+ const x = [];
2831
+ if (Array.isArray(n.pillars)) {
2832
+ for (const p of n.pillars)
2833
+ if (typeof p == "string") {
2834
+ const f = p.match(/^(-?\d+),(-?\d+)\s+(\d+)->(\d+)$/);
2835
+ f && x.push({
2174
2836
  x: parseInt(f[1], 10),
2175
2837
  y: parseInt(f[2], 10),
2176
2838
  fromTier: parseInt(f[3], 10),
2177
2839
  toTier: parseInt(f[4], 10)
2178
2840
  });
2179
- } else if (u && typeof u == "object") {
2180
- const f = u;
2181
- d.push({
2841
+ } else if (p && typeof p == "object") {
2842
+ const f = p;
2843
+ x.push({
2182
2844
  x: f.x || 0,
2183
2845
  y: f.y || 0,
2184
2846
  fromTier: f.fromTier || 0,
@@ -2187,53 +2849,54 @@ function rt(e) {
2187
2849
  }
2188
2850
  }
2189
2851
  return {
2190
- title: r.title || "Untitled",
2191
- description: r.description || "",
2852
+ title: n.title || "Untitled",
2853
+ style: n.style || void 0,
2854
+ description: n.description || "",
2192
2855
  theme: s,
2193
- canvas: n,
2856
+ canvas: r,
2194
2857
  origin: i,
2195
- cornerRadius: r.corner ?? r.cornerRadius ?? 14,
2196
- tiers: t,
2197
- floorSize: o,
2198
- nodes: h,
2199
- pillars: d.length > 0 ? d : void 0
2858
+ cornerRadius: n.corner ?? n.cornerRadius ?? 14,
2859
+ tiers: o,
2860
+ floorSize: t,
2861
+ nodes: u,
2862
+ pillars: x.length > 0 ? x : void 0
2200
2863
  };
2201
2864
  }
2202
- function nt(e) {
2203
- const r = [];
2204
- r.push(`title: ${e.title}`), e.description && r.push(`description: ${e.description}`), r.push(`theme: ${e.theme}`), r.push(`canvas: ${e.canvas.width}x${e.canvas.height}`), r.push(`floor: ${e.floorSize.width}x${e.floorSize.depth}`), e.cornerRadius && r.push(`corner: ${e.cornerRadius}`), r.push("");
2205
- const n = {};
2865
+ function Yo(e) {
2866
+ const n = [];
2867
+ n.push(`title: ${e.title}`), e.description && n.push(`description: ${e.description}`), n.push(`theme: ${e.theme}`), e.style && e.style !== "solid" && n.push(`style: ${e.style}`), n.push(`canvas: ${e.canvas.width}x${e.canvas.height}`), n.push(`floor: ${e.floorSize.width}x${e.floorSize.depth}`), e.cornerRadius && n.push(`corner: ${e.cornerRadius}`), n.push("");
2868
+ const r = {};
2206
2869
  e.nodes.forEach((i) => {
2207
- n[i.color] = (n[i.color] || 0) + 1;
2870
+ r[i.color] = (r[i.color] || 0) + 1;
2208
2871
  });
2209
- const o = Object.entries(n).filter(([, i]) => i >= 2).map(([i]) => i);
2210
- return o.length > 0 && (r.push("colors:"), o.forEach((i) => {
2872
+ const t = Object.entries(r).filter(([, i]) => i >= 2).map(([i]) => i);
2873
+ return t.length > 0 && (n.push("colors:"), t.forEach((i) => {
2211
2874
  const l = i.slice(0, 3);
2212
- r.push(` ${l}: &${l} ${i}`);
2213
- }), r.push("")), r.push("tiers:"), e.tiers.forEach((i) => {
2214
- r.push(` - ${i.name} @ ${i.elevation}`);
2215
- }), r.push(""), r.push("nodes:"), e.tiers.forEach((i, l) => {
2216
- const t = e.nodes.filter((a) => a.tier === l);
2217
- t.length !== 0 && (r.push(` ${l}: # ${i.name}`), t.forEach((a) => {
2875
+ n.push(` ${l}: &${l} ${i}`);
2876
+ }), n.push("")), n.push("tiers:"), e.tiers.forEach((i) => {
2877
+ n.push(` - ${i.name} @ ${i.elevation}`);
2878
+ }), n.push(""), n.push("nodes:"), e.tiers.forEach((i, l) => {
2879
+ const o = e.nodes.filter((a) => a.tier === l);
2880
+ o.length !== 0 && (n.push(` ${l}: # ${i.name}`), o.forEach((a) => {
2218
2881
  let c = a.color;
2219
- o.includes(a.color) && (c = `*${a.color.slice(0, 3)}`);
2882
+ t.includes(a.color) && (c = `*${a.color.slice(0, 3)}`);
2220
2883
  const s = [];
2221
2884
  a.opacity !== void 0 && s.push(`opacity=${a.opacity}`), a.blur !== void 0 && s.push(`blur=${a.blur}`), a.translucent && s.push("translucent=true");
2222
- const h = s.length > 0 ? ` { ${s.join(" ")} }` : "", d = `${a.width}x${a.depth}x${a.height}`, u = `${a.x},${a.y}`, f = a.label.padEnd(12), m = c.padEnd(8);
2223
- r.push(` - ${f} ${m} ${u.padEnd(8)} ${d}${h}`);
2885
+ const u = s.length > 0 ? ` { ${s.join(" ")} }` : "", x = `${a.width}x${a.depth}x${a.height}`, p = `${a.x},${a.y}`, f = a.label.padEnd(12), m = c.padEnd(8);
2886
+ n.push(` - ${f} ${m} ${p.padEnd(8)} ${x}${u}`);
2224
2887
  }));
2225
- }), e.pillars && e.pillars.length > 0 && (r.push(""), r.push("pillars:"), e.pillars.forEach((i) => {
2226
- r.push(` - ${i.x},${i.y} ${i.fromTier}->${i.toTier}`);
2227
- })), r.join(`
2888
+ }), e.pillars && e.pillars.length > 0 && (n.push(""), n.push("pillars:"), e.pillars.forEach((i) => {
2889
+ n.push(` - ${i.x},${i.y} ${i.fromTier}->${i.toTier}`);
2890
+ })), n.join(`
2228
2891
  `);
2229
2892
  }
2230
2893
  export {
2231
- Jo as ArcDiagram,
2232
- nt as configToYaml,
2233
- Qo as getColorShading,
2234
- me as isoBox,
2235
- b as isoToScreen,
2236
- rt as parseYamlConfig,
2237
- et as renderToElement,
2238
- En as renderToString
2894
+ No as ArcDiagram,
2895
+ Yo as configToYaml,
2896
+ Mo as getColorShading,
2897
+ he as isoBox,
2898
+ w as isoToScreen,
2899
+ Do as parseYamlConfig,
2900
+ Po as renderToElement,
2901
+ si as renderToString
2239
2902
  };