@arach/arc-iso 0.7.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/arc-iso-slim.es.js +1213 -738
- package/dist/arc-iso-slim.umd.js +3 -3
- package/dist/arc-iso.es.js +1890 -1415
- package/dist/arc-iso.umd.js +27 -27
- package/dist/index.d.ts +13 -0
- package/package.json +1 -1
package/dist/arc-iso.es.js
CHANGED
|
@@ -1,89 +1,95 @@
|
|
|
1
|
-
import
|
|
2
|
-
const
|
|
3
|
-
function
|
|
1
|
+
import Yr, { useId as nn, forwardRef as Rn, createElement as Ke, useMemo as Br, useState as Le, useEffect as Hr } from "react";
|
|
2
|
+
const Pn = 30 * (Math.PI / 180), Wr = Math.cos(Pn), Ur = Math.sin(Pn);
|
|
3
|
+
function w(e, n, r = 0) {
|
|
4
4
|
return {
|
|
5
|
-
screenX: (e - n) *
|
|
6
|
-
screenY: -(e + n) *
|
|
5
|
+
screenX: (e - n) * Wr,
|
|
6
|
+
screenY: -(e + n) * Ur - r
|
|
7
7
|
// Negated so +X,+Y go UP on screen
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function zr(e = "x") {
|
|
11
|
+
let n = 1, r = 0, i = 0, t = -1;
|
|
12
|
+
e === "y" ? (n = 0, r = 1, i = 1, t = 0) : e === "x-" ? (n = -1, r = 0, i = 0, t = 1) : e === "y-" && (n = 0, r = -1, i = -1, t = 0);
|
|
13
|
+
const l = w(n, r, 0), o = w(i, t, 0);
|
|
14
|
+
return `${l.screenX},${l.screenY},${o.screenX},${o.screenY},0,0`;
|
|
15
|
+
}
|
|
16
|
+
function xe(e, n, r, i = 0, t = 0, l = 0) {
|
|
11
17
|
const o = {
|
|
12
18
|
// Bottom face
|
|
13
|
-
frontBottom:
|
|
14
|
-
rightBottom:
|
|
15
|
-
backBottom:
|
|
16
|
-
leftBottom:
|
|
19
|
+
frontBottom: w(e, 0, 0),
|
|
20
|
+
rightBottom: w(e, n, 0),
|
|
21
|
+
backBottom: w(0, n, 0),
|
|
22
|
+
leftBottom: w(0, 0, 0),
|
|
17
23
|
// Top face
|
|
18
|
-
frontTop:
|
|
19
|
-
rightTop:
|
|
20
|
-
backTop:
|
|
21
|
-
leftTop:
|
|
22
|
-
}, a = (
|
|
23
|
-
x:
|
|
24
|
-
y:
|
|
24
|
+
frontTop: w(e, 0, r),
|
|
25
|
+
rightTop: w(e, n, r),
|
|
26
|
+
backTop: w(0, n, r),
|
|
27
|
+
leftTop: w(0, 0, r)
|
|
28
|
+
}, a = (C) => ({
|
|
29
|
+
x: C.screenX + i,
|
|
30
|
+
y: C.screenY + t
|
|
25
31
|
}), c = Object.fromEntries(
|
|
26
|
-
Object.entries(o).map(([
|
|
27
|
-
),
|
|
28
|
-
if (
|
|
29
|
-
const
|
|
30
|
-
return `M ${
|
|
31
|
-
}
|
|
32
|
-
const
|
|
33
|
-
for (let
|
|
34
|
-
const
|
|
35
|
-
|
|
32
|
+
Object.entries(o).map(([C, N]) => [C, a(N)])
|
|
33
|
+
), f = (C, N, I, B) => {
|
|
34
|
+
if (B <= 0) {
|
|
35
|
+
const re = w(0, 0, I), K = w(C, 0, I), H = w(C, N, I), T = w(0, N, I);
|
|
36
|
+
return `M ${re.screenX + i},${re.screenY + t} L ${K.screenX + i},${K.screenY + t} L ${H.screenX + i},${H.screenY + t} L ${T.screenX + i},${T.screenY + t} Z`;
|
|
37
|
+
}
|
|
38
|
+
const j = Math.min(C, N) / 2, R = Math.min(B, j), ee = 8, L = [], D = (re, K, H, T) => {
|
|
39
|
+
for (let U = 0; U <= ee; U++) {
|
|
40
|
+
const oe = H + (T - H) * (U / ee), M = re + R * Math.cos(oe), s = K + R * Math.sin(oe), A = w(M, s, I);
|
|
41
|
+
L.push(`${A.screenX + i},${A.screenY + t}`);
|
|
36
42
|
}
|
|
37
43
|
};
|
|
38
|
-
return
|
|
39
|
-
}, u = (
|
|
40
|
-
const
|
|
41
|
-
for (let
|
|
42
|
-
const
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
return
|
|
46
|
-
}, p = Math.min(l, Math.min(e, n) / 2),
|
|
47
|
-
let m, y,
|
|
44
|
+
return D(R, R, Math.PI, Math.PI * 1.5), D(C - R, R, Math.PI * 1.5, Math.PI * 2), D(C - R, N - R, 0, Math.PI * 0.5), D(R, N - R, Math.PI * 0.5, Math.PI), `M ${L[0]} L ${L.slice(1).join(" L ")} Z`;
|
|
45
|
+
}, u = (C) => `M ${C.map((N) => `${N.x},${N.y}`).join(" L ")} Z`, d = (C, N, I, B, j, R) => {
|
|
46
|
+
const L = [];
|
|
47
|
+
for (let H = 0; H < 6; H++) {
|
|
48
|
+
const T = j + (R - j) * (H / 6), U = j + (R - j) * ((H + 1) / 6), oe = (T + U) / 2, M = Math.cos(oe), s = Math.sin(oe), O = M * -0.577 + s * -0.577 + 0 * 0.577, ae = 0.3 + Math.max(0, O + 0.4) * 0.5, se = w(C + I * Math.cos(T), N + I * Math.sin(T), 0), P = w(C + I * Math.cos(U), N + I * Math.sin(U), 0), te = w(C + I * Math.cos(T), N + I * Math.sin(T), B), fe = w(C + I * Math.cos(U), N + I * Math.sin(U), B), ye = `M ${se.screenX + i},${se.screenY + t} L ${P.screenX + i},${P.screenY + t} L ${fe.screenX + i},${fe.screenY + t} L ${te.screenX + i},${te.screenY + t} Z`;
|
|
49
|
+
L.push({ path: ye, intensity: ae });
|
|
50
|
+
}
|
|
51
|
+
return L;
|
|
52
|
+
}, p = Math.min(l, Math.min(e, n) / 2), x = f(e, n, r, p);
|
|
53
|
+
let m, y, v, k, b, Y;
|
|
48
54
|
if (p > 0) {
|
|
49
|
-
const
|
|
50
|
-
{ x:
|
|
51
|
-
{ x:
|
|
52
|
-
{ x:
|
|
53
|
-
{ x:
|
|
55
|
+
const C = [
|
|
56
|
+
{ x: w(0, p, 0).screenX + i, y: w(0, p, 0).screenY + t },
|
|
57
|
+
{ x: w(0, n - p, 0).screenX + i, y: w(0, n - p, 0).screenY + t },
|
|
58
|
+
{ x: w(0, n - p, r).screenX + i, y: w(0, n - p, r).screenY + t },
|
|
59
|
+
{ x: w(0, p, r).screenX + i, y: w(0, p, r).screenY + t }
|
|
54
60
|
];
|
|
55
|
-
m = u(
|
|
56
|
-
const
|
|
57
|
-
{ x:
|
|
58
|
-
{ x:
|
|
59
|
-
{ x:
|
|
60
|
-
{ x:
|
|
61
|
+
m = u(C);
|
|
62
|
+
const N = [
|
|
63
|
+
{ x: w(p, 0, 0).screenX + i, y: w(p, 0, 0).screenY + t },
|
|
64
|
+
{ x: w(e - p, 0, 0).screenX + i, y: w(e - p, 0, 0).screenY + t },
|
|
65
|
+
{ x: w(e - p, 0, r).screenX + i, y: w(e - p, 0, r).screenY + t },
|
|
66
|
+
{ x: w(p, 0, r).screenX + i, y: w(p, 0, r).screenY + t }
|
|
61
67
|
];
|
|
62
|
-
y = u(
|
|
68
|
+
y = u(N), v = d(p, p, p, r, Math.PI, Math.PI * 1.5), k = d(e - p, p, p, r, Math.PI * 1.5, Math.PI * 2), b = d(p, n - p, p, r, Math.PI * 0.5, Math.PI), Y = d(e - p, n - p, p, r, 0, Math.PI * 0.5);
|
|
63
69
|
} else {
|
|
64
|
-
const
|
|
65
|
-
m = u(
|
|
70
|
+
const C = [c.leftBottom, c.backBottom, c.backTop, c.leftTop], N = [c.leftBottom, c.frontBottom, c.frontTop, c.leftTop];
|
|
71
|
+
m = u(C), y = u(N), v = [], k = [], b = [], Y = [];
|
|
66
72
|
}
|
|
67
|
-
const
|
|
73
|
+
const E = `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
74
|
return {
|
|
69
|
-
top:
|
|
75
|
+
top: x,
|
|
70
76
|
left: m,
|
|
71
77
|
right: y,
|
|
72
|
-
cornerFrontLeft:
|
|
73
|
-
cornerFrontRight:
|
|
78
|
+
cornerFrontLeft: v,
|
|
79
|
+
cornerFrontRight: k,
|
|
74
80
|
cornerBackLeft: b,
|
|
75
|
-
cornerBackRight:
|
|
76
|
-
outline:
|
|
81
|
+
cornerBackRight: Y,
|
|
82
|
+
outline: E
|
|
77
83
|
};
|
|
78
84
|
}
|
|
79
|
-
function
|
|
85
|
+
function qr(e, n = 60, r = 50) {
|
|
80
86
|
return {
|
|
81
87
|
top: `hsl(${e}, ${n}%, ${Math.min(r + 15, 95)}%)`,
|
|
82
88
|
right: `hsl(${e}, ${n}%, ${r}%)`,
|
|
83
89
|
left: `hsl(${e}, ${n}%, ${Math.max(r - 15, 15)}%)`
|
|
84
90
|
};
|
|
85
91
|
}
|
|
86
|
-
const
|
|
92
|
+
const hn = {
|
|
87
93
|
violet: { hue: 270, saturation: 60, lightness: 55 },
|
|
88
94
|
blue: { hue: 220, saturation: 70, lightness: 50 },
|
|
89
95
|
cyan: { hue: 190, saturation: 80, lightness: 45 },
|
|
@@ -93,271 +99,283 @@ const un = {
|
|
|
93
99
|
slate: { hue: 220, saturation: 15, lightness: 50 },
|
|
94
100
|
zinc: { hue: 240, saturation: 5, lightness: 50 }
|
|
95
101
|
};
|
|
96
|
-
function
|
|
97
|
-
const n =
|
|
98
|
-
return
|
|
99
|
-
}
|
|
100
|
-
var
|
|
101
|
-
var
|
|
102
|
-
function
|
|
103
|
-
if (
|
|
104
|
-
|
|
102
|
+
function Ya(e) {
|
|
103
|
+
const n = hn[e] || hn.slate;
|
|
104
|
+
return qr(n.hue, n.saturation, n.lightness);
|
|
105
|
+
}
|
|
106
|
+
var Fe = { exports: {} }, Ce = {};
|
|
107
|
+
var dn;
|
|
108
|
+
function Xr() {
|
|
109
|
+
if (dn) return Ce;
|
|
110
|
+
dn = 1;
|
|
105
111
|
var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), n = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
106
|
-
function r(
|
|
112
|
+
function r(i, t, l) {
|
|
107
113
|
var o = null;
|
|
108
|
-
if (l !== void 0 && (o = "" + l),
|
|
114
|
+
if (l !== void 0 && (o = "" + l), t.key !== void 0 && (o = "" + t.key), "key" in t) {
|
|
109
115
|
l = {};
|
|
110
|
-
for (var a in
|
|
111
|
-
a !== "key" && (l[a] =
|
|
112
|
-
} else l =
|
|
113
|
-
return
|
|
116
|
+
for (var a in t)
|
|
117
|
+
a !== "key" && (l[a] = t[a]);
|
|
118
|
+
} else l = t;
|
|
119
|
+
return t = l.ref, {
|
|
114
120
|
$$typeof: e,
|
|
115
|
-
type:
|
|
121
|
+
type: i,
|
|
116
122
|
key: o,
|
|
117
|
-
ref:
|
|
123
|
+
ref: t !== void 0 ? t : null,
|
|
118
124
|
props: l
|
|
119
125
|
};
|
|
120
126
|
}
|
|
121
|
-
return
|
|
122
|
-
}
|
|
123
|
-
var
|
|
124
|
-
var
|
|
125
|
-
function
|
|
126
|
-
return
|
|
127
|
-
function e(
|
|
128
|
-
if (
|
|
129
|
-
if (typeof
|
|
130
|
-
return
|
|
131
|
-
if (typeof
|
|
132
|
-
switch (
|
|
133
|
-
case
|
|
127
|
+
return Ce.Fragment = n, Ce.jsx = r, Ce.jsxs = r, Ce;
|
|
128
|
+
}
|
|
129
|
+
var $e = {};
|
|
130
|
+
var xn;
|
|
131
|
+
function Gr() {
|
|
132
|
+
return xn || (xn = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
133
|
+
function e(s) {
|
|
134
|
+
if (s == null) return null;
|
|
135
|
+
if (typeof s == "function")
|
|
136
|
+
return s.$$typeof === ee ? null : s.displayName || s.name || null;
|
|
137
|
+
if (typeof s == "string") return s;
|
|
138
|
+
switch (s) {
|
|
139
|
+
case v:
|
|
134
140
|
return "Fragment";
|
|
135
141
|
case b:
|
|
136
142
|
return "Profiler";
|
|
137
|
-
case
|
|
143
|
+
case k:
|
|
138
144
|
return "StrictMode";
|
|
139
|
-
case
|
|
145
|
+
case N:
|
|
140
146
|
return "Suspense";
|
|
141
147
|
case I:
|
|
142
148
|
return "SuspenseList";
|
|
143
|
-
case
|
|
149
|
+
case R:
|
|
144
150
|
return "Activity";
|
|
145
151
|
}
|
|
146
|
-
if (typeof
|
|
147
|
-
switch (typeof
|
|
152
|
+
if (typeof s == "object")
|
|
153
|
+
switch (typeof s.tag == "number" && console.error(
|
|
148
154
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
149
|
-
),
|
|
155
|
+
), s.$$typeof) {
|
|
150
156
|
case y:
|
|
151
157
|
return "Portal";
|
|
152
|
-
case
|
|
153
|
-
return
|
|
154
|
-
case
|
|
155
|
-
return (
|
|
156
|
-
case
|
|
157
|
-
var
|
|
158
|
-
return
|
|
159
|
-
case $:
|
|
160
|
-
return k = h.displayName || null, k !== null ? k : e(h.type) || "Memo";
|
|
158
|
+
case E:
|
|
159
|
+
return s.displayName || "Context";
|
|
160
|
+
case Y:
|
|
161
|
+
return (s._context.displayName || "Context") + ".Consumer";
|
|
162
|
+
case C:
|
|
163
|
+
var A = s.render;
|
|
164
|
+
return s = s.displayName, s || (s = A.displayName || A.name || "", s = s !== "" ? "ForwardRef(" + s + ")" : "ForwardRef"), s;
|
|
161
165
|
case B:
|
|
162
|
-
|
|
166
|
+
return A = s.displayName || null, A !== null ? A : e(s.type) || "Memo";
|
|
167
|
+
case j:
|
|
168
|
+
A = s._payload, s = s._init;
|
|
163
169
|
try {
|
|
164
|
-
return e(
|
|
170
|
+
return e(s(A));
|
|
165
171
|
} catch {
|
|
166
172
|
}
|
|
167
173
|
}
|
|
168
174
|
return null;
|
|
169
175
|
}
|
|
170
|
-
function n(
|
|
171
|
-
return "" +
|
|
176
|
+
function n(s) {
|
|
177
|
+
return "" + s;
|
|
172
178
|
}
|
|
173
|
-
function r(
|
|
179
|
+
function r(s) {
|
|
174
180
|
try {
|
|
175
|
-
n(
|
|
176
|
-
var
|
|
181
|
+
n(s);
|
|
182
|
+
var A = !1;
|
|
177
183
|
} catch {
|
|
178
|
-
|
|
184
|
+
A = !0;
|
|
179
185
|
}
|
|
180
|
-
if (
|
|
181
|
-
|
|
182
|
-
var
|
|
183
|
-
return
|
|
184
|
-
|
|
186
|
+
if (A) {
|
|
187
|
+
A = console;
|
|
188
|
+
var O = A.error, F = typeof Symbol == "function" && Symbol.toStringTag && s[Symbol.toStringTag] || s.constructor.name || "Object";
|
|
189
|
+
return O.call(
|
|
190
|
+
A,
|
|
185
191
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
186
|
-
|
|
187
|
-
), n(
|
|
192
|
+
F
|
|
193
|
+
), n(s);
|
|
188
194
|
}
|
|
189
195
|
}
|
|
190
|
-
function
|
|
191
|
-
if (
|
|
192
|
-
if (typeof
|
|
196
|
+
function i(s) {
|
|
197
|
+
if (s === v) return "<>";
|
|
198
|
+
if (typeof s == "object" && s !== null && s.$$typeof === j)
|
|
193
199
|
return "<...>";
|
|
194
200
|
try {
|
|
195
|
-
var
|
|
196
|
-
return
|
|
201
|
+
var A = e(s);
|
|
202
|
+
return A ? "<" + A + ">" : "<...>";
|
|
197
203
|
} catch {
|
|
198
204
|
return "<...>";
|
|
199
205
|
}
|
|
200
206
|
}
|
|
201
|
-
function
|
|
202
|
-
var
|
|
203
|
-
return
|
|
207
|
+
function t() {
|
|
208
|
+
var s = L.A;
|
|
209
|
+
return s === null ? null : s.getOwner();
|
|
204
210
|
}
|
|
205
211
|
function l() {
|
|
206
212
|
return Error("react-stack-top-frame");
|
|
207
213
|
}
|
|
208
|
-
function o(
|
|
209
|
-
if (
|
|
210
|
-
var
|
|
211
|
-
if (
|
|
214
|
+
function o(s) {
|
|
215
|
+
if (D.call(s, "key")) {
|
|
216
|
+
var A = Object.getOwnPropertyDescriptor(s, "key").get;
|
|
217
|
+
if (A && A.isReactWarning) return !1;
|
|
212
218
|
}
|
|
213
|
-
return
|
|
219
|
+
return s.key !== void 0;
|
|
214
220
|
}
|
|
215
|
-
function a(
|
|
216
|
-
function
|
|
217
|
-
|
|
221
|
+
function a(s, A) {
|
|
222
|
+
function O() {
|
|
223
|
+
H || (H = !0, console.error(
|
|
218
224
|
"%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
|
-
|
|
225
|
+
A
|
|
220
226
|
));
|
|
221
227
|
}
|
|
222
|
-
|
|
223
|
-
get:
|
|
228
|
+
O.isReactWarning = !0, Object.defineProperty(s, "key", {
|
|
229
|
+
get: O,
|
|
224
230
|
configurable: !0
|
|
225
231
|
});
|
|
226
232
|
}
|
|
227
233
|
function c() {
|
|
228
|
-
var
|
|
229
|
-
return
|
|
234
|
+
var s = e(this.type);
|
|
235
|
+
return T[s] || (T[s] = !0, console.error(
|
|
230
236
|
"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
|
-
)),
|
|
237
|
+
)), s = this.props.ref, s !== void 0 ? s : null;
|
|
232
238
|
}
|
|
233
|
-
function s
|
|
234
|
-
var P =
|
|
235
|
-
return
|
|
239
|
+
function f(s, A, O, F, ae, se) {
|
|
240
|
+
var P = O.ref;
|
|
241
|
+
return s = {
|
|
236
242
|
$$typeof: m,
|
|
237
|
-
type:
|
|
238
|
-
key:
|
|
239
|
-
props:
|
|
240
|
-
_owner:
|
|
241
|
-
}, (P !== void 0 ? P : null) !== null ? Object.defineProperty(
|
|
243
|
+
type: s,
|
|
244
|
+
key: A,
|
|
245
|
+
props: O,
|
|
246
|
+
_owner: F
|
|
247
|
+
}, (P !== void 0 ? P : null) !== null ? Object.defineProperty(s, "ref", {
|
|
242
248
|
enumerable: !1,
|
|
243
249
|
get: c
|
|
244
|
-
}) : Object.defineProperty(
|
|
250
|
+
}) : Object.defineProperty(s, "ref", { enumerable: !1, value: null }), s._store = {}, Object.defineProperty(s._store, "validated", {
|
|
245
251
|
configurable: !1,
|
|
246
252
|
enumerable: !1,
|
|
247
253
|
writable: !0,
|
|
248
254
|
value: 0
|
|
249
|
-
}), Object.defineProperty(
|
|
255
|
+
}), Object.defineProperty(s, "_debugInfo", {
|
|
250
256
|
configurable: !1,
|
|
251
257
|
enumerable: !1,
|
|
252
258
|
writable: !0,
|
|
253
259
|
value: null
|
|
254
|
-
}), Object.defineProperty(
|
|
260
|
+
}), Object.defineProperty(s, "_debugStack", {
|
|
255
261
|
configurable: !1,
|
|
256
262
|
enumerable: !1,
|
|
257
263
|
writable: !0,
|
|
258
|
-
value:
|
|
259
|
-
}), Object.defineProperty(
|
|
264
|
+
value: ae
|
|
265
|
+
}), Object.defineProperty(s, "_debugTask", {
|
|
260
266
|
configurable: !1,
|
|
261
267
|
enumerable: !1,
|
|
262
268
|
writable: !0,
|
|
263
269
|
value: se
|
|
264
|
-
}), Object.freeze && (Object.freeze(
|
|
270
|
+
}), Object.freeze && (Object.freeze(s.props), Object.freeze(s)), s;
|
|
265
271
|
}
|
|
266
|
-
function u(
|
|
267
|
-
var P =
|
|
272
|
+
function u(s, A, O, F, ae, se) {
|
|
273
|
+
var P = A.children;
|
|
268
274
|
if (P !== void 0)
|
|
269
|
-
if (
|
|
270
|
-
if (
|
|
271
|
-
for (
|
|
272
|
-
|
|
275
|
+
if (F)
|
|
276
|
+
if (re(P)) {
|
|
277
|
+
for (F = 0; F < P.length; F++)
|
|
278
|
+
d(P[F]);
|
|
273
279
|
Object.freeze && Object.freeze(P);
|
|
274
280
|
} else
|
|
275
281
|
console.error(
|
|
276
282
|
"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
283
|
);
|
|
278
|
-
else
|
|
279
|
-
if (
|
|
280
|
-
P = e(
|
|
281
|
-
var
|
|
282
|
-
return
|
|
284
|
+
else d(P);
|
|
285
|
+
if (D.call(A, "key")) {
|
|
286
|
+
P = e(s);
|
|
287
|
+
var te = Object.keys(A).filter(function(ye) {
|
|
288
|
+
return ye !== "key";
|
|
283
289
|
});
|
|
284
|
-
|
|
290
|
+
F = 0 < te.length ? "{key: someKey, " + te.join(": ..., ") + ": ...}" : "{key: someKey}", M[P + F] || (te = 0 < te.length ? "{" + te.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
285
291
|
`A props object containing a "key" prop is being spread into JSX:
|
|
286
292
|
let props = %s;
|
|
287
293
|
<%s {...props} />
|
|
288
294
|
React keys must be passed directly to JSX without using spread:
|
|
289
295
|
let props = %s;
|
|
290
296
|
<%s key={someKey} {...props} />`,
|
|
291
|
-
|
|
297
|
+
F,
|
|
292
298
|
P,
|
|
293
|
-
|
|
299
|
+
te,
|
|
294
300
|
P
|
|
295
|
-
),
|
|
301
|
+
), M[P + F] = !0);
|
|
296
302
|
}
|
|
297
|
-
if (P = null,
|
|
298
|
-
|
|
299
|
-
for (var
|
|
300
|
-
|
|
301
|
-
} else
|
|
303
|
+
if (P = null, O !== void 0 && (r(O), P = "" + O), o(A) && (r(A.key), P = "" + A.key), "key" in A) {
|
|
304
|
+
O = {};
|
|
305
|
+
for (var fe in A)
|
|
306
|
+
fe !== "key" && (O[fe] = A[fe]);
|
|
307
|
+
} else O = A;
|
|
302
308
|
return P && a(
|
|
303
|
-
|
|
304
|
-
typeof
|
|
305
|
-
),
|
|
306
|
-
|
|
309
|
+
O,
|
|
310
|
+
typeof s == "function" ? s.displayName || s.name || "Unknown" : s
|
|
311
|
+
), f(
|
|
312
|
+
s,
|
|
307
313
|
P,
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
314
|
+
O,
|
|
315
|
+
t(),
|
|
316
|
+
ae,
|
|
311
317
|
se
|
|
312
318
|
);
|
|
313
319
|
}
|
|
314
|
-
function
|
|
315
|
-
p(
|
|
320
|
+
function d(s) {
|
|
321
|
+
p(s) ? s._store && (s._store.validated = 1) : typeof s == "object" && s !== null && s.$$typeof === j && (s._payload.status === "fulfilled" ? p(s._payload.value) && s._payload.value._store && (s._payload.value._store.validated = 1) : s._store && (s._store.validated = 1));
|
|
316
322
|
}
|
|
317
|
-
function p(
|
|
318
|
-
return typeof
|
|
323
|
+
function p(s) {
|
|
324
|
+
return typeof s == "object" && s !== null && s.$$typeof === m;
|
|
319
325
|
}
|
|
320
|
-
var
|
|
326
|
+
var x = Yr, m = /* @__PURE__ */ Symbol.for("react.transitional.element"), y = /* @__PURE__ */ Symbol.for("react.portal"), v = /* @__PURE__ */ Symbol.for("react.fragment"), k = /* @__PURE__ */ Symbol.for("react.strict_mode"), b = /* @__PURE__ */ Symbol.for("react.profiler"), Y = /* @__PURE__ */ Symbol.for("react.consumer"), E = /* @__PURE__ */ Symbol.for("react.context"), C = /* @__PURE__ */ Symbol.for("react.forward_ref"), N = /* @__PURE__ */ Symbol.for("react.suspense"), I = /* @__PURE__ */ Symbol.for("react.suspense_list"), B = /* @__PURE__ */ Symbol.for("react.memo"), j = /* @__PURE__ */ Symbol.for("react.lazy"), R = /* @__PURE__ */ Symbol.for("react.activity"), ee = /* @__PURE__ */ Symbol.for("react.client.reference"), L = x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, D = Object.prototype.hasOwnProperty, re = Array.isArray, K = console.createTask ? console.createTask : function() {
|
|
321
327
|
return null;
|
|
322
328
|
};
|
|
323
|
-
|
|
324
|
-
react_stack_bottom_frame: function(
|
|
325
|
-
return
|
|
329
|
+
x = {
|
|
330
|
+
react_stack_bottom_frame: function(s) {
|
|
331
|
+
return s();
|
|
326
332
|
}
|
|
327
333
|
};
|
|
328
|
-
var
|
|
329
|
-
|
|
334
|
+
var H, T = {}, U = x.react_stack_bottom_frame.bind(
|
|
335
|
+
x,
|
|
330
336
|
l
|
|
331
|
-
)(),
|
|
332
|
-
|
|
333
|
-
var
|
|
337
|
+
)(), oe = K(i(l)), M = {};
|
|
338
|
+
$e.Fragment = v, $e.jsx = function(s, A, O) {
|
|
339
|
+
var F = 1e4 > L.recentlyCreatedOwnerStacks++;
|
|
334
340
|
return u(
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
341
|
+
s,
|
|
342
|
+
A,
|
|
343
|
+
O,
|
|
338
344
|
!1,
|
|
339
|
-
|
|
340
|
-
|
|
345
|
+
F ? Error("react-stack-top-frame") : U,
|
|
346
|
+
F ? K(i(s)) : oe
|
|
341
347
|
);
|
|
342
|
-
},
|
|
343
|
-
var
|
|
348
|
+
}, $e.jsxs = function(s, A, O) {
|
|
349
|
+
var F = 1e4 > L.recentlyCreatedOwnerStacks++;
|
|
344
350
|
return u(
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
351
|
+
s,
|
|
352
|
+
A,
|
|
353
|
+
O,
|
|
348
354
|
!0,
|
|
349
|
-
|
|
350
|
-
|
|
355
|
+
F ? Error("react-stack-top-frame") : U,
|
|
356
|
+
F ? K(i(s)) : oe
|
|
351
357
|
);
|
|
352
358
|
};
|
|
353
|
-
})()),
|
|
354
|
-
}
|
|
355
|
-
var
|
|
356
|
-
function
|
|
357
|
-
return
|
|
358
|
-
}
|
|
359
|
-
var
|
|
360
|
-
const
|
|
359
|
+
})()), $e;
|
|
360
|
+
}
|
|
361
|
+
var mn;
|
|
362
|
+
function Kr() {
|
|
363
|
+
return mn || (mn = 1, process.env.NODE_ENV === "production" ? Fe.exports = Xr() : Fe.exports = Gr()), Fe.exports;
|
|
364
|
+
}
|
|
365
|
+
var h = Kr();
|
|
366
|
+
const Dn = {
|
|
367
|
+
rose: { top: "#c58a70", side: "#a86c55", front: "#b57860" },
|
|
368
|
+
slate: { top: "#9aaab6", side: "#718693", front: "#8196a2" },
|
|
369
|
+
cyan: { top: "#679c99", side: "#467f7d", front: "#568e8a" },
|
|
370
|
+
emerald: { top: "#a2b08b", side: "#7d9168", front: "#8e9f78" },
|
|
371
|
+
blue: { top: "#829eae", side: "#5b798b", front: "#6b8999" },
|
|
372
|
+
violet: { top: "#a698ac", side: "#807187", front: "#918297" },
|
|
373
|
+
amber: { top: "#c6ac71", side: "#a08950", front: "#b09a61" }
|
|
374
|
+
}, Yn = Array.from({ length: 180 }, (e, n) => ({
|
|
375
|
+
x: (n * 73.37 + 11.7) % 64,
|
|
376
|
+
y: (n * n * 13.19 + 5.3) % 64,
|
|
377
|
+
r: n % 3 === 0 ? 0.48 : 0.28
|
|
378
|
+
})), Vr = ["solid", "blueprint", "cyanotype"], rn = '"JetBrains Mono", "IBM Plex Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace', Zr = 0.78, g = (e) => Math.round(e * Zr * 10) / 10, Bn = {
|
|
361
379
|
id: "solid",
|
|
362
380
|
name: "Solid",
|
|
363
381
|
description: "Shaded isometric boxes",
|
|
@@ -373,9 +391,9 @@ const Yr = ["solid", "blueprint", "cyanotype"], en = '"JetBrains Mono", "IBM Ple
|
|
|
373
391
|
},
|
|
374
392
|
face: { top: "transparent", right: "transparent", left: "transparent" },
|
|
375
393
|
hatchOpacity: { top: 0, right: 0, left: 0 },
|
|
376
|
-
font:
|
|
394
|
+
font: rn,
|
|
377
395
|
strokeWidth: 0.5
|
|
378
|
-
},
|
|
396
|
+
}, Jr = {
|
|
379
397
|
id: "blueprint",
|
|
380
398
|
name: "Blueprint",
|
|
381
399
|
description: "Sepia engineering plate on parchment",
|
|
@@ -390,10 +408,10 @@ const Yr = ["solid", "blueprint", "cyanotype"], en = '"JetBrains Mono", "IBM Ple
|
|
|
390
408
|
accent: "#a8412a"
|
|
391
409
|
},
|
|
392
410
|
face: { top: "#f4ebd7", right: "#e6dabb", left: "#d6c6a2" },
|
|
393
|
-
hatchOpacity: { top: 0.
|
|
394
|
-
font:
|
|
411
|
+
hatchOpacity: { top: 0.48, right: 0.68, left: 0.92 },
|
|
412
|
+
font: rn,
|
|
395
413
|
strokeWidth: 1
|
|
396
|
-
},
|
|
414
|
+
}, Qr = {
|
|
397
415
|
id: "cyanotype",
|
|
398
416
|
name: "Cyanotype",
|
|
399
417
|
description: "White linework on classic blueprint blue",
|
|
@@ -408,19 +426,19 @@ const Yr = ["solid", "blueprint", "cyanotype"], en = '"JetBrains Mono", "IBM Ple
|
|
|
408
426
|
accent: "#ffc857"
|
|
409
427
|
},
|
|
410
428
|
face: { top: "#1b4675", right: "#153a61", left: "#0f2b49" },
|
|
411
|
-
hatchOpacity: { top: 0.
|
|
412
|
-
font:
|
|
429
|
+
hatchOpacity: { top: 0.46, right: 0.64, left: 0.88 },
|
|
430
|
+
font: rn,
|
|
413
431
|
strokeWidth: 1
|
|
414
|
-
},
|
|
415
|
-
function
|
|
416
|
-
return
|
|
432
|
+
}, Hn = { solid: Bn, blueprint: Jr, cyanotype: Qr };
|
|
433
|
+
function et(e) {
|
|
434
|
+
return Hn[e] || Bn;
|
|
417
435
|
}
|
|
418
|
-
const
|
|
419
|
-
|
|
420
|
-
const
|
|
436
|
+
const nt = Vr.filter((e) => Hn[e].technical);
|
|
437
|
+
nt[0];
|
|
438
|
+
const rt = {
|
|
421
439
|
violet: "cross",
|
|
422
440
|
blue: "lines",
|
|
423
|
-
sky: "
|
|
441
|
+
sky: "dashes",
|
|
424
442
|
cyan: "dashes",
|
|
425
443
|
emerald: "dots",
|
|
426
444
|
amber: "dense",
|
|
@@ -429,10 +447,10 @@ const Gr = {
|
|
|
429
447
|
zinc: "plain",
|
|
430
448
|
slate: "plain"
|
|
431
449
|
};
|
|
432
|
-
function
|
|
433
|
-
return
|
|
450
|
+
function Wn(e) {
|
|
451
|
+
return rt[e || "zinc"] || "lines";
|
|
434
452
|
}
|
|
435
|
-
const
|
|
453
|
+
const tt = {
|
|
436
454
|
plain: "PLAIN",
|
|
437
455
|
lines: "HATCH-A",
|
|
438
456
|
cross: "HATCH-X",
|
|
@@ -440,182 +458,182 @@ const zr = {
|
|
|
440
458
|
dots: "STIPPLE",
|
|
441
459
|
dashes: "BROKEN"
|
|
442
460
|
};
|
|
443
|
-
function
|
|
444
|
-
const l = (
|
|
445
|
-
const
|
|
446
|
-
return { x:
|
|
447
|
-
}, o = l(0, 0, 0), a = l(e, 0, 0), c = l(e, n, 0),
|
|
461
|
+
function yn(e, n, r, i = 0, t = 0) {
|
|
462
|
+
const l = (k, b, Y) => {
|
|
463
|
+
const E = w(k, b, Y);
|
|
464
|
+
return { x: E.screenX + i, y: E.screenY + t };
|
|
465
|
+
}, o = l(0, 0, 0), a = l(e, 0, 0), c = l(e, n, 0), f = l(0, n, 0), u = l(0, 0, r), d = l(e, 0, r), p = l(e, n, r), x = l(0, n, r), m = (k) => `M ${k.map((b) => `${b.x},${b.y}`).join(" L ")} Z`, y = (k, b) => `M ${k.x},${k.y} L ${b.x},${b.y}`, v = [o, a, c, f, u, d, p, x];
|
|
448
466
|
return {
|
|
449
|
-
top: m([u,
|
|
450
|
-
right: m([o, a,
|
|
451
|
-
left: m([o,
|
|
467
|
+
top: m([u, d, p, x]),
|
|
468
|
+
right: m([o, a, d, u]),
|
|
469
|
+
left: m([o, f, x, u]),
|
|
452
470
|
visible: [
|
|
453
471
|
// silhouette
|
|
454
|
-
m([o, a,
|
|
472
|
+
m([o, a, d, p, x, f]),
|
|
455
473
|
// interior creases radiating from the near top corner
|
|
474
|
+
y(u, d),
|
|
456
475
|
y(u, x),
|
|
457
|
-
y(u, f),
|
|
458
476
|
y(u, o)
|
|
459
477
|
].join(" "),
|
|
460
|
-
hidden: [y(c, a), y(c,
|
|
478
|
+
hidden: [y(c, a), y(c, f), y(c, p)].join(" "),
|
|
461
479
|
topCenter: { x: (u.x + p.x) / 2, y: (u.y + p.y) / 2 },
|
|
462
480
|
topApex: { x: p.x, y: p.y },
|
|
463
|
-
minX: Math.min(...
|
|
464
|
-
minY: Math.min(...
|
|
465
|
-
maxX: Math.max(...
|
|
466
|
-
maxY: Math.max(...
|
|
481
|
+
minX: Math.min(...v.map((k) => k.x)),
|
|
482
|
+
minY: Math.min(...v.map((k) => k.y)),
|
|
483
|
+
maxX: Math.max(...v.map((k) => k.x)),
|
|
484
|
+
maxY: Math.max(...v.map((k) => k.y))
|
|
467
485
|
};
|
|
468
486
|
}
|
|
469
|
-
function
|
|
487
|
+
function De(e) {
|
|
470
488
|
return String(e).padStart(2, "0");
|
|
471
489
|
}
|
|
472
|
-
const
|
|
490
|
+
const it = {
|
|
473
491
|
top: ["n30", "p30"],
|
|
474
492
|
right: ["n30", "v"],
|
|
475
493
|
left: ["p30", "v"]
|
|
476
|
-
},
|
|
494
|
+
}, ot = { n30: -30, p30: 30, v: 90 }, lt = [
|
|
477
495
|
{ key: "line", spacing: 6.2, strokeWidth: 0.55 },
|
|
478
496
|
{ key: "dense", spacing: 3.1, strokeWidth: 0.45 },
|
|
479
497
|
{ key: "dash", spacing: 6.2, strokeWidth: 0.55, dash: "2.6 2.6" }
|
|
480
|
-
],
|
|
481
|
-
function
|
|
482
|
-
const [
|
|
498
|
+
], Se = 22;
|
|
499
|
+
function Un(e, n, r) {
|
|
500
|
+
const [i, t] = it[r];
|
|
483
501
|
switch (n) {
|
|
484
502
|
case "plain":
|
|
485
503
|
return [];
|
|
486
504
|
case "lines":
|
|
487
|
-
return [`${e}-line-${
|
|
505
|
+
return [`${e}-line-${i}`];
|
|
488
506
|
case "cross":
|
|
489
|
-
return [`${e}-line-${
|
|
507
|
+
return [`${e}-line-${i}`, `${e}-line-${t}`];
|
|
490
508
|
case "dense":
|
|
491
|
-
return [`${e}-dense-${
|
|
509
|
+
return [`${e}-dense-${i}`];
|
|
492
510
|
case "dashes":
|
|
493
|
-
return [`${e}-dash-${
|
|
511
|
+
return [`${e}-dash-${i}`];
|
|
494
512
|
case "dots":
|
|
495
513
|
return [`${e}-dot`];
|
|
496
514
|
default:
|
|
497
|
-
return [`${e}-line-${
|
|
515
|
+
return [`${e}-line-${i}`];
|
|
498
516
|
}
|
|
499
517
|
}
|
|
500
|
-
const
|
|
501
|
-
function
|
|
518
|
+
const zn = (e) => `${e}-paper`, qn = (e) => `${e}-grain`, at = (e, n = "line") => `${e}-arrow-${n}`, ct = (e) => [`${e}-grid-n30`, `${e}-grid-p30`];
|
|
519
|
+
function tn({
|
|
502
520
|
uid: e,
|
|
503
521
|
style: n,
|
|
504
522
|
/** Extra transform applied to the graph-paper grid, so it can be pinned to
|
|
505
523
|
* panned/zoomed content while the paper itself fills the viewport. */
|
|
506
524
|
gridTransform: r = ""
|
|
507
525
|
}) {
|
|
508
|
-
return /* @__PURE__ */
|
|
509
|
-
|
|
510
|
-
(
|
|
526
|
+
return /* @__PURE__ */ h.jsxs("defs", { children: [
|
|
527
|
+
lt.flatMap(
|
|
528
|
+
(i) => Object.entries(ot).map(([t, l]) => /* @__PURE__ */ h.jsx(
|
|
511
529
|
"pattern",
|
|
512
530
|
{
|
|
513
|
-
id: `${e}-${
|
|
514
|
-
width:
|
|
515
|
-
height:
|
|
531
|
+
id: `${e}-${i.key}-${t}`,
|
|
532
|
+
width: i.spacing,
|
|
533
|
+
height: i.spacing,
|
|
516
534
|
patternUnits: "userSpaceOnUse",
|
|
517
535
|
patternTransform: `rotate(${l})`,
|
|
518
|
-
children: /* @__PURE__ */
|
|
536
|
+
children: /* @__PURE__ */ h.jsx(
|
|
519
537
|
"line",
|
|
520
538
|
{
|
|
521
539
|
x1: -1,
|
|
522
|
-
y1:
|
|
523
|
-
x2:
|
|
524
|
-
y2:
|
|
540
|
+
y1: i.spacing / 2,
|
|
541
|
+
x2: i.spacing + 1,
|
|
542
|
+
y2: i.spacing / 2,
|
|
525
543
|
stroke: n.ink.hatch,
|
|
526
|
-
strokeWidth:
|
|
527
|
-
strokeDasharray:
|
|
544
|
+
strokeWidth: i.strokeWidth,
|
|
545
|
+
strokeDasharray: i.dash
|
|
528
546
|
}
|
|
529
547
|
)
|
|
530
548
|
},
|
|
531
|
-
`${
|
|
549
|
+
`${i.key}-${t}`
|
|
532
550
|
))
|
|
533
551
|
),
|
|
534
|
-
/* @__PURE__ */
|
|
552
|
+
/* @__PURE__ */ h.jsx("pattern", { id: `${e}-dot`, width: 4.5, height: 4.5, patternUnits: "userSpaceOnUse", children: /* @__PURE__ */ h.jsx("circle", { cx: 2.25, cy: 2.25, r: 0.55, fill: n.ink.hatch }) }),
|
|
535
553
|
[
|
|
536
554
|
{ id: `${e}-grid-n30`, angle: -30 },
|
|
537
555
|
{ id: `${e}-grid-p30`, angle: 30 }
|
|
538
|
-
].map(({ id:
|
|
556
|
+
].map(({ id: i, angle: t }) => /* @__PURE__ */ h.jsx(
|
|
539
557
|
"pattern",
|
|
540
558
|
{
|
|
541
|
-
id:
|
|
542
|
-
width:
|
|
543
|
-
height:
|
|
559
|
+
id: i,
|
|
560
|
+
width: Se,
|
|
561
|
+
height: Se,
|
|
544
562
|
patternUnits: "userSpaceOnUse",
|
|
545
|
-
patternTransform: `${r} rotate(${
|
|
546
|
-
children: /* @__PURE__ */
|
|
563
|
+
patternTransform: `${r} rotate(${t})`.trim(),
|
|
564
|
+
children: /* @__PURE__ */ h.jsx(
|
|
547
565
|
"line",
|
|
548
566
|
{
|
|
549
567
|
x1: -1,
|
|
550
|
-
y1:
|
|
551
|
-
x2:
|
|
552
|
-
y2:
|
|
568
|
+
y1: Se / 2,
|
|
569
|
+
x2: Se + 1,
|
|
570
|
+
y2: Se / 2,
|
|
553
571
|
stroke: n.paper.grid,
|
|
554
572
|
strokeWidth: 0.5
|
|
555
573
|
}
|
|
556
574
|
)
|
|
557
575
|
},
|
|
558
|
-
|
|
576
|
+
i
|
|
559
577
|
)),
|
|
560
|
-
/* @__PURE__ */
|
|
561
|
-
/* @__PURE__ */
|
|
562
|
-
/* @__PURE__ */
|
|
578
|
+
/* @__PURE__ */ h.jsxs("linearGradient", { id: zn(e), x1: "0", y1: "0", x2: "0.35", y2: "1", children: [
|
|
579
|
+
/* @__PURE__ */ h.jsx("stop", { offset: "0%", stopColor: n.paper.from }),
|
|
580
|
+
/* @__PURE__ */ h.jsx("stop", { offset: "100%", stopColor: n.paper.to })
|
|
563
581
|
] }),
|
|
564
|
-
/* @__PURE__ */
|
|
565
|
-
/* @__PURE__ */
|
|
566
|
-
/* @__PURE__ */
|
|
582
|
+
/* @__PURE__ */ h.jsxs("filter", { id: qn(e), x: "0%", y: "0%", width: "100%", height: "100%", children: [
|
|
583
|
+
/* @__PURE__ */ h.jsx("feTurbulence", { type: "fractalNoise", baseFrequency: "0.85", numOctaves: 3, stitchTiles: "stitch" }),
|
|
584
|
+
/* @__PURE__ */ h.jsx("feColorMatrix", { type: "saturate", values: "0" })
|
|
567
585
|
] }),
|
|
568
|
-
["line", "accent"].map((
|
|
586
|
+
["line", "accent"].map((i) => /* @__PURE__ */ h.jsx(
|
|
569
587
|
"marker",
|
|
570
588
|
{
|
|
571
|
-
id:
|
|
589
|
+
id: at(e, i),
|
|
572
590
|
markerWidth: "10",
|
|
573
591
|
markerHeight: "10",
|
|
574
592
|
refX: "8",
|
|
575
593
|
refY: "4",
|
|
576
594
|
orient: "auto",
|
|
577
595
|
markerUnits: "userSpaceOnUse",
|
|
578
|
-
children: /* @__PURE__ */
|
|
596
|
+
children: /* @__PURE__ */ h.jsx(
|
|
579
597
|
"path",
|
|
580
598
|
{
|
|
581
599
|
d: "M 1 1 L 8 4 L 1 7",
|
|
582
600
|
fill: "none",
|
|
583
|
-
stroke:
|
|
601
|
+
stroke: i === "accent" ? n.ink.accent : n.ink.line,
|
|
584
602
|
strokeWidth: 1,
|
|
585
603
|
strokeLinecap: "round",
|
|
586
604
|
strokeLinejoin: "round"
|
|
587
605
|
}
|
|
588
606
|
)
|
|
589
607
|
},
|
|
590
|
-
|
|
608
|
+
i
|
|
591
609
|
))
|
|
592
610
|
] });
|
|
593
611
|
}
|
|
594
|
-
function
|
|
612
|
+
function st({
|
|
595
613
|
style: e,
|
|
596
614
|
rect: n,
|
|
597
615
|
pan: r,
|
|
598
|
-
zoom:
|
|
599
|
-
className:
|
|
616
|
+
zoom: i = 1,
|
|
617
|
+
className: t = "absolute inset-0 w-full h-full pointer-events-none"
|
|
600
618
|
}) {
|
|
601
|
-
const l =
|
|
602
|
-
return /* @__PURE__ */
|
|
603
|
-
/* @__PURE__ */
|
|
604
|
-
/* @__PURE__ */
|
|
605
|
-
|
|
606
|
-
e.paper.grain > 0 && /* @__PURE__ */
|
|
619
|
+
const l = nn().replace(/:/g, ""), o = r ? `translate(${r.x} ${r.y}) scale(${i})` : i !== 1 ? `scale(${i})` : "", a = n ? { x: n.x, y: n.y, width: n.width, height: n.height } : { x: 0, y: 0, width: "100%", height: "100%" };
|
|
620
|
+
return /* @__PURE__ */ h.jsxs("svg", { className: t, "aria-hidden": "true", children: [
|
|
621
|
+
/* @__PURE__ */ h.jsx(tn, { uid: l, style: e, gridTransform: o }),
|
|
622
|
+
/* @__PURE__ */ h.jsx("rect", { ...a, fill: `url(#${zn(l)})` }),
|
|
623
|
+
ct(l).map((c) => /* @__PURE__ */ h.jsx("rect", { ...a, fill: `url(#${c})`, opacity: 0.6 }, c)),
|
|
624
|
+
e.paper.grain > 0 && /* @__PURE__ */ h.jsx("rect", { ...a, filter: `url(#${qn(l)})`, opacity: e.paper.grain })
|
|
607
625
|
] });
|
|
608
626
|
}
|
|
609
|
-
const Ie = g(10),
|
|
610
|
-
function
|
|
627
|
+
const Ie = g(10), ft = 9, gn = (e, n) => e.length > n ? `${e.slice(0, n - 1)}…` : e;
|
|
628
|
+
function ut({
|
|
611
629
|
style: e,
|
|
612
630
|
plate: n,
|
|
613
631
|
rows: r,
|
|
614
|
-
title:
|
|
615
|
-
tally:
|
|
632
|
+
title: i,
|
|
633
|
+
tally: t,
|
|
616
634
|
className: l = "absolute inset-0 w-full h-full pointer-events-none"
|
|
617
635
|
}) {
|
|
618
|
-
const o =
|
|
636
|
+
const o = nn().replace(/:/g, ""), a = r.slice(0, ft), c = r.length - a.length, f = {
|
|
619
637
|
x: n.minX + Ie,
|
|
620
638
|
y: n.minY + Ie,
|
|
621
639
|
width: n.maxX - n.minX - Ie * 2,
|
|
@@ -623,10 +641,10 @@ function ni({
|
|
|
623
641
|
}, u = {
|
|
624
642
|
fontFamily: e.font,
|
|
625
643
|
letterSpacing: "0.08em"
|
|
626
|
-
},
|
|
627
|
-
return /* @__PURE__ */
|
|
628
|
-
/* @__PURE__ */
|
|
629
|
-
/* @__PURE__ */
|
|
644
|
+
}, d = g(236), p = g(13), x = g(16), m = x + Math.max(a.length, 1) * p + (c > 0 ? p : 0), y = f.x + g(14), v = f.y + g(14), k = g(264), b = g(74), Y = g(126), E = f.x + f.width - k - g(14), C = f.y + f.height - b - g(14);
|
|
645
|
+
return /* @__PURE__ */ h.jsxs("svg", { className: l, style: { overflow: "visible" }, "aria-hidden": "true", children: [
|
|
646
|
+
/* @__PURE__ */ h.jsx(tn, { uid: o, style: e }),
|
|
647
|
+
/* @__PURE__ */ h.jsx(
|
|
630
648
|
"rect",
|
|
631
649
|
{
|
|
632
650
|
x: n.minX,
|
|
@@ -638,13 +656,13 @@ function ni({
|
|
|
638
656
|
strokeWidth: 1.4
|
|
639
657
|
}
|
|
640
658
|
),
|
|
641
|
-
/* @__PURE__ */
|
|
659
|
+
/* @__PURE__ */ h.jsx(
|
|
642
660
|
"rect",
|
|
643
661
|
{
|
|
644
|
-
x:
|
|
645
|
-
y:
|
|
646
|
-
width:
|
|
647
|
-
height:
|
|
662
|
+
x: f.x,
|
|
663
|
+
y: f.y,
|
|
664
|
+
width: f.width,
|
|
665
|
+
height: f.height,
|
|
648
666
|
fill: "none",
|
|
649
667
|
stroke: e.paper.edge,
|
|
650
668
|
strokeWidth: 0.6,
|
|
@@ -652,27 +670,27 @@ function ni({
|
|
|
652
670
|
}
|
|
653
671
|
),
|
|
654
672
|
[
|
|
655
|
-
[
|
|
656
|
-
[
|
|
657
|
-
[
|
|
658
|
-
[
|
|
659
|
-
].map(([
|
|
673
|
+
[f.x, f.y, 1, 1],
|
|
674
|
+
[f.x + f.width, f.y, -1, 1],
|
|
675
|
+
[f.x, f.y + f.height, 1, -1],
|
|
676
|
+
[f.x + f.width, f.y + f.height, -1, -1]
|
|
677
|
+
].map(([N, I, B, j], R) => /* @__PURE__ */ h.jsx(
|
|
660
678
|
"path",
|
|
661
679
|
{
|
|
662
|
-
d: `M ${
|
|
680
|
+
d: `M ${N + B * g(16)} ${I} L ${N} ${I} L ${N} ${I + j * g(16)}`,
|
|
663
681
|
fill: "none",
|
|
664
682
|
stroke: e.ink.line,
|
|
665
683
|
strokeWidth: 1.2
|
|
666
684
|
},
|
|
667
|
-
|
|
685
|
+
R
|
|
668
686
|
)),
|
|
669
|
-
a.length > 0 && /* @__PURE__ */
|
|
670
|
-
/* @__PURE__ */
|
|
687
|
+
a.length > 0 && /* @__PURE__ */ h.jsxs("g", { children: [
|
|
688
|
+
/* @__PURE__ */ h.jsx(
|
|
671
689
|
"rect",
|
|
672
690
|
{
|
|
673
691
|
x: y,
|
|
674
|
-
y:
|
|
675
|
-
width:
|
|
692
|
+
y: v,
|
|
693
|
+
width: d,
|
|
676
694
|
height: m,
|
|
677
695
|
fill: e.paper.from,
|
|
678
696
|
fillOpacity: 0.55,
|
|
@@ -680,42 +698,42 @@ function ni({
|
|
|
680
698
|
strokeWidth: 0.8
|
|
681
699
|
}
|
|
682
700
|
),
|
|
683
|
-
/* @__PURE__ */
|
|
701
|
+
/* @__PURE__ */ h.jsx(
|
|
684
702
|
"line",
|
|
685
703
|
{
|
|
686
704
|
x1: y,
|
|
687
|
-
y1:
|
|
688
|
-
x2: y +
|
|
689
|
-
y2:
|
|
705
|
+
y1: v + x,
|
|
706
|
+
x2: y + d,
|
|
707
|
+
y2: v + x,
|
|
690
708
|
stroke: e.ink.line,
|
|
691
709
|
strokeWidth: 0.8
|
|
692
710
|
}
|
|
693
711
|
),
|
|
694
|
-
/* @__PURE__ */
|
|
695
|
-
/* @__PURE__ */
|
|
712
|
+
/* @__PURE__ */ h.jsx("text", { x: y + g(8), y: v + g(11), fill: e.ink.text, fontSize: g(8), fontWeight: 600, style: u, children: "COMPONENT INDEX" }),
|
|
713
|
+
/* @__PURE__ */ h.jsxs(
|
|
696
714
|
"text",
|
|
697
715
|
{
|
|
698
|
-
x: y +
|
|
699
|
-
y:
|
|
716
|
+
x: y + d - g(8),
|
|
717
|
+
y: v + g(11),
|
|
700
718
|
textAnchor: "end",
|
|
701
719
|
fill: e.ink.muted,
|
|
702
720
|
fontSize: g(8),
|
|
703
721
|
style: u,
|
|
704
722
|
children: [
|
|
705
|
-
|
|
723
|
+
De(r.length),
|
|
706
724
|
" ITEMS"
|
|
707
725
|
]
|
|
708
726
|
}
|
|
709
727
|
),
|
|
710
|
-
a.map((
|
|
711
|
-
const
|
|
712
|
-
return /* @__PURE__ */
|
|
713
|
-
/* @__PURE__ */
|
|
714
|
-
/* @__PURE__ */
|
|
728
|
+
a.map((N, I) => {
|
|
729
|
+
const B = v + x + I * p, j = Wn(N.color), R = Un(o, j, "top");
|
|
730
|
+
return /* @__PURE__ */ h.jsxs("g", { children: [
|
|
731
|
+
/* @__PURE__ */ h.jsx("text", { x: y + g(8), y: B + g(9.5), fill: e.ink.muted, fontSize: g(7.5), style: u, children: De(N.n) }),
|
|
732
|
+
/* @__PURE__ */ h.jsx(
|
|
715
733
|
"rect",
|
|
716
734
|
{
|
|
717
735
|
x: y + g(28),
|
|
718
|
-
y:
|
|
736
|
+
y: B + g(3),
|
|
719
737
|
width: g(14),
|
|
720
738
|
height: g(7),
|
|
721
739
|
fill: e.face.right,
|
|
@@ -723,38 +741,38 @@ function ni({
|
|
|
723
741
|
strokeWidth: 0.4
|
|
724
742
|
}
|
|
725
743
|
),
|
|
726
|
-
|
|
744
|
+
R.map((ee) => /* @__PURE__ */ h.jsx(
|
|
727
745
|
"rect",
|
|
728
746
|
{
|
|
729
747
|
x: y + g(28),
|
|
730
|
-
y:
|
|
748
|
+
y: B + g(3),
|
|
731
749
|
width: g(14),
|
|
732
750
|
height: g(7),
|
|
733
|
-
fill: `url(#${
|
|
751
|
+
fill: `url(#${ee})`,
|
|
734
752
|
opacity: 0.85
|
|
735
753
|
},
|
|
736
|
-
|
|
754
|
+
ee
|
|
737
755
|
)),
|
|
738
|
-
/* @__PURE__ */
|
|
739
|
-
/* @__PURE__ */
|
|
756
|
+
/* @__PURE__ */ h.jsx("text", { x: y + g(50), y: B + g(9.5), fill: e.ink.text, fontSize: g(7.5), style: u, children: gn((N.name || "").toUpperCase(), 18) }),
|
|
757
|
+
/* @__PURE__ */ h.jsx(
|
|
740
758
|
"text",
|
|
741
759
|
{
|
|
742
|
-
x: y +
|
|
743
|
-
y:
|
|
760
|
+
x: y + d - g(8),
|
|
761
|
+
y: B + g(9.5),
|
|
744
762
|
textAnchor: "end",
|
|
745
763
|
fill: e.ink.muted,
|
|
746
764
|
fontSize: g(7),
|
|
747
765
|
style: u,
|
|
748
|
-
children:
|
|
766
|
+
children: tt[j]
|
|
749
767
|
}
|
|
750
768
|
)
|
|
751
|
-
] },
|
|
769
|
+
] }, N.n);
|
|
752
770
|
}),
|
|
753
|
-
c > 0 && /* @__PURE__ */
|
|
771
|
+
c > 0 && /* @__PURE__ */ h.jsx(
|
|
754
772
|
"text",
|
|
755
773
|
{
|
|
756
774
|
x: y + g(8),
|
|
757
|
-
y:
|
|
775
|
+
y: v + x + a.length * p + g(9.5),
|
|
758
776
|
fill: e.ink.muted,
|
|
759
777
|
fontSize: g(7.5),
|
|
760
778
|
style: u,
|
|
@@ -762,13 +780,13 @@ function ni({
|
|
|
762
780
|
}
|
|
763
781
|
)
|
|
764
782
|
] }),
|
|
765
|
-
/* @__PURE__ */
|
|
766
|
-
/* @__PURE__ */
|
|
783
|
+
/* @__PURE__ */ h.jsxs("g", { children: [
|
|
784
|
+
/* @__PURE__ */ h.jsx(
|
|
767
785
|
"rect",
|
|
768
786
|
{
|
|
769
|
-
x:
|
|
770
|
-
y:
|
|
771
|
-
width:
|
|
787
|
+
x: E,
|
|
788
|
+
y: C,
|
|
789
|
+
width: k,
|
|
772
790
|
height: b,
|
|
773
791
|
fill: e.paper.from,
|
|
774
792
|
fillOpacity: 0.55,
|
|
@@ -776,39 +794,493 @@ function ni({
|
|
|
776
794
|
strokeWidth: 0.8
|
|
777
795
|
}
|
|
778
796
|
),
|
|
779
|
-
/* @__PURE__ */
|
|
780
|
-
/* @__PURE__ */
|
|
781
|
-
/* @__PURE__ */
|
|
782
|
-
/* @__PURE__ */
|
|
783
|
-
/* @__PURE__ */
|
|
784
|
-
/* @__PURE__ */
|
|
785
|
-
/* @__PURE__ */
|
|
786
|
-
/* @__PURE__ */
|
|
787
|
-
/* @__PURE__ */
|
|
788
|
-
/* @__PURE__ */
|
|
789
|
-
/* @__PURE__ */
|
|
790
|
-
/* @__PURE__ */
|
|
791
|
-
/* @__PURE__ */
|
|
797
|
+
/* @__PURE__ */ h.jsx("line", { x1: E, y1: C + g(30), x2: E + k, y2: C + g(30), stroke: e.ink.line, strokeWidth: 0.8 }),
|
|
798
|
+
/* @__PURE__ */ h.jsx("line", { x1: E, y1: C + g(52), x2: E + k, y2: C + g(52), stroke: e.ink.line, strokeWidth: 0.5 }),
|
|
799
|
+
/* @__PURE__ */ h.jsx("line", { x1: E + Y, y1: C + g(30), x2: E + Y, y2: C + b, stroke: e.ink.line, strokeWidth: 0.5 }),
|
|
800
|
+
/* @__PURE__ */ h.jsx("text", { x: E + g(9), y: C + g(12), fill: e.ink.muted, fontSize: g(6.5), style: u, children: "DRAWING TITLE" }),
|
|
801
|
+
/* @__PURE__ */ h.jsx("text", { x: E + g(9), y: C + g(24), fill: e.ink.text, fontSize: g(10), fontWeight: 600, style: u, children: gn((i || "UNTITLED ASSEMBLY").toUpperCase(), 26) }),
|
|
802
|
+
/* @__PURE__ */ h.jsx("text", { x: E + g(9), y: C + g(43), fill: e.ink.muted, fontSize: g(6.5), style: u, children: "PROJECTION" }),
|
|
803
|
+
/* @__PURE__ */ h.jsx("text", { x: E + Y - g(9), y: C + g(43), textAnchor: "end", fill: e.ink.text, fontSize: g(7), style: u, children: "ISOMETRIC 30°" }),
|
|
804
|
+
/* @__PURE__ */ h.jsx("text", { x: E + g(9), y: C + g(65), fill: e.ink.muted, fontSize: g(6.5), style: u, children: "SCALE" }),
|
|
805
|
+
/* @__PURE__ */ h.jsx("text", { x: E + Y - g(9), y: C + g(65), textAnchor: "end", fill: e.ink.text, fontSize: g(7), style: u, children: "1:1" }),
|
|
806
|
+
/* @__PURE__ */ h.jsx("text", { x: E + Y + g(9), y: C + g(43), fill: e.ink.muted, fontSize: g(6.5), style: u, children: "QTY" }),
|
|
807
|
+
/* @__PURE__ */ h.jsx("text", { x: E + k - g(9), y: C + g(43), textAnchor: "end", fill: e.ink.text, fontSize: g(7), style: u, children: t || `${De(r.length)} CMP` }),
|
|
808
|
+
/* @__PURE__ */ h.jsx("text", { x: E + Y + g(9), y: C + g(65), fill: e.ink.muted, fontSize: g(6.5), style: u, children: "SHEET" }),
|
|
809
|
+
/* @__PURE__ */ h.jsx("text", { x: E + k - g(9), y: C + g(65), textAnchor: "end", fill: e.ink.text, fontSize: g(7), style: u, children: "1 OF 1" })
|
|
792
810
|
] })
|
|
793
811
|
] });
|
|
794
812
|
}
|
|
795
|
-
|
|
813
|
+
const pt = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), ht = (e) => e.replace(
|
|
814
|
+
/^([A-Z])|[\s-_]+(\w)/g,
|
|
815
|
+
(n, r, i) => i ? i.toUpperCase() : r.toLowerCase()
|
|
816
|
+
), kn = (e) => {
|
|
817
|
+
const n = ht(e);
|
|
818
|
+
return n.charAt(0).toUpperCase() + n.slice(1);
|
|
819
|
+
}, Xn = (...e) => e.filter((n, r, i) => !!n && n.trim() !== "" && i.indexOf(n) === r).join(" ").trim(), dt = (e) => {
|
|
820
|
+
for (const n in e)
|
|
821
|
+
if (n.startsWith("aria-") || n === "role" || n === "title")
|
|
822
|
+
return !0;
|
|
823
|
+
};
|
|
824
|
+
var xt = {
|
|
825
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
826
|
+
width: 24,
|
|
827
|
+
height: 24,
|
|
828
|
+
viewBox: "0 0 24 24",
|
|
829
|
+
fill: "none",
|
|
830
|
+
stroke: "currentColor",
|
|
831
|
+
strokeWidth: 2,
|
|
832
|
+
strokeLinecap: "round",
|
|
833
|
+
strokeLinejoin: "round"
|
|
834
|
+
};
|
|
835
|
+
const mt = Rn(
|
|
836
|
+
({
|
|
837
|
+
color: e = "currentColor",
|
|
838
|
+
size: n = 24,
|
|
839
|
+
strokeWidth: r = 2,
|
|
840
|
+
absoluteStrokeWidth: i,
|
|
841
|
+
className: t = "",
|
|
842
|
+
children: l,
|
|
843
|
+
iconNode: o,
|
|
844
|
+
...a
|
|
845
|
+
}, c) => Ke(
|
|
846
|
+
"svg",
|
|
847
|
+
{
|
|
848
|
+
ref: c,
|
|
849
|
+
...xt,
|
|
850
|
+
width: n,
|
|
851
|
+
height: n,
|
|
852
|
+
stroke: e,
|
|
853
|
+
strokeWidth: i ? Number(r) * 24 / Number(n) : r,
|
|
854
|
+
className: Xn("lucide", t),
|
|
855
|
+
...!l && !dt(a) && { "aria-hidden": "true" },
|
|
856
|
+
...a
|
|
857
|
+
},
|
|
858
|
+
[
|
|
859
|
+
...o.map(([f, u]) => Ke(f, u)),
|
|
860
|
+
...Array.isArray(l) ? l : [l]
|
|
861
|
+
]
|
|
862
|
+
)
|
|
863
|
+
);
|
|
864
|
+
const $ = (e, n) => {
|
|
865
|
+
const r = Rn(
|
|
866
|
+
({ className: i, ...t }, l) => Ke(mt, {
|
|
867
|
+
ref: l,
|
|
868
|
+
iconNode: n,
|
|
869
|
+
className: Xn(
|
|
870
|
+
`lucide-${pt(kn(e))}`,
|
|
871
|
+
`lucide-${e}`,
|
|
872
|
+
i
|
|
873
|
+
),
|
|
874
|
+
...t
|
|
875
|
+
})
|
|
876
|
+
);
|
|
877
|
+
return r.displayName = kn(e), r;
|
|
878
|
+
};
|
|
879
|
+
const yt = [
|
|
880
|
+
[
|
|
881
|
+
"path",
|
|
882
|
+
{
|
|
883
|
+
d: "M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",
|
|
884
|
+
key: "169zse"
|
|
885
|
+
}
|
|
886
|
+
]
|
|
887
|
+
], gt = $("activity", yt);
|
|
888
|
+
const kt = [
|
|
889
|
+
["path", { d: "M12 5v14", key: "s699le" }],
|
|
890
|
+
["path", { d: "m19 12-7 7-7-7", key: "1idqje" }]
|
|
891
|
+
], vt = $("arrow-down", kt);
|
|
892
|
+
const bt = [
|
|
893
|
+
["path", { d: "M5 12h14", key: "1ays0h" }],
|
|
894
|
+
["path", { d: "m12 5 7 7-7 7", key: "xquz4c" }]
|
|
895
|
+
], At = $("arrow-right", bt);
|
|
896
|
+
const _t = [
|
|
897
|
+
["path", { d: "M10.268 21a2 2 0 0 0 3.464 0", key: "vwvbt9" }],
|
|
898
|
+
[
|
|
899
|
+
"path",
|
|
900
|
+
{
|
|
901
|
+
d: "M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",
|
|
902
|
+
key: "11g9vi"
|
|
903
|
+
}
|
|
904
|
+
]
|
|
905
|
+
], wt = $("bell", _t);
|
|
906
|
+
const Ct = [
|
|
907
|
+
[
|
|
908
|
+
"path",
|
|
909
|
+
{
|
|
910
|
+
d: "M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",
|
|
911
|
+
key: "hh9hay"
|
|
912
|
+
}
|
|
913
|
+
],
|
|
914
|
+
["path", { d: "m3.3 7 8.7 5 8.7-5", key: "g66t2b" }],
|
|
915
|
+
["path", { d: "M12 22V12", key: "d0xqtd" }]
|
|
916
|
+
], Gn = $("box", Ct);
|
|
917
|
+
const $t = [
|
|
918
|
+
[
|
|
919
|
+
"path",
|
|
920
|
+
{
|
|
921
|
+
d: "M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",
|
|
922
|
+
key: "18u6gg"
|
|
923
|
+
}
|
|
924
|
+
],
|
|
925
|
+
["circle", { cx: "12", cy: "13", r: "3", key: "1vg3eu" }]
|
|
926
|
+
], St = $("camera", $t);
|
|
927
|
+
const Et = [
|
|
928
|
+
["path", { d: "M5 21v-6", key: "1hz6c0" }],
|
|
929
|
+
["path", { d: "M12 21V9", key: "uvy0l4" }],
|
|
930
|
+
["path", { d: "M19 21V3", key: "11j9sm" }]
|
|
931
|
+
], Tt = $("chart-no-axes-column-increasing", Et);
|
|
932
|
+
const Mt = [
|
|
933
|
+
[
|
|
934
|
+
"path",
|
|
935
|
+
{
|
|
936
|
+
d: "M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",
|
|
937
|
+
key: "pzmjnu"
|
|
938
|
+
}
|
|
939
|
+
],
|
|
940
|
+
["path", { d: "M21.21 15.89A10 10 0 1 1 8 2.83", key: "k2fpak" }]
|
|
941
|
+
], jt = $("chart-pie", Mt);
|
|
942
|
+
const Ot = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]], Nt = $("circle", Ot);
|
|
943
|
+
const Lt = [
|
|
944
|
+
["path", { d: "M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z", key: "p7xjir" }]
|
|
945
|
+
], Ft = $("cloud", Lt);
|
|
946
|
+
const It = [
|
|
947
|
+
["path", { d: "m16 18 6-6-6-6", key: "eg8j8" }],
|
|
948
|
+
["path", { d: "m8 6-6 6 6 6", key: "ppft3o" }]
|
|
949
|
+
], Rt = $("code", It);
|
|
950
|
+
const Pt = [
|
|
951
|
+
["path", { d: "M12 20v2", key: "1lh1kg" }],
|
|
952
|
+
["path", { d: "M12 2v2", key: "tus03m" }],
|
|
953
|
+
["path", { d: "M17 20v2", key: "1rnc9c" }],
|
|
954
|
+
["path", { d: "M17 2v2", key: "11trls" }],
|
|
955
|
+
["path", { d: "M2 12h2", key: "1t8f8n" }],
|
|
956
|
+
["path", { d: "M2 17h2", key: "7oei6x" }],
|
|
957
|
+
["path", { d: "M2 7h2", key: "asdhe0" }],
|
|
958
|
+
["path", { d: "M20 12h2", key: "1q8mjw" }],
|
|
959
|
+
["path", { d: "M20 17h2", key: "1fpfkl" }],
|
|
960
|
+
["path", { d: "M20 7h2", key: "1o8tra" }],
|
|
961
|
+
["path", { d: "M7 20v2", key: "4gnj0m" }],
|
|
962
|
+
["path", { d: "M7 2v2", key: "1i4yhu" }],
|
|
963
|
+
["rect", { x: "4", y: "4", width: "16", height: "16", rx: "2", key: "1vbyd7" }],
|
|
964
|
+
["rect", { x: "8", y: "8", width: "8", height: "8", rx: "1", key: "z9xiuo" }]
|
|
965
|
+
], Dt = $("cpu", Pt);
|
|
966
|
+
const Yt = [
|
|
967
|
+
["ellipse", { cx: "12", cy: "5", rx: "9", ry: "3", key: "msslwz" }],
|
|
968
|
+
["path", { d: "M3 5V19A9 3 0 0 0 21 19V5", key: "1wlel7" }],
|
|
969
|
+
["path", { d: "M3 12A9 3 0 0 0 21 12", key: "mv7ke4" }]
|
|
970
|
+
], Bt = $("database", Yt);
|
|
971
|
+
const Ht = [
|
|
972
|
+
["path", { d: "M12 15V3", key: "m9g1x1" }],
|
|
973
|
+
["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }],
|
|
974
|
+
["path", { d: "m7 10 5 5 5-5", key: "brsn70" }]
|
|
975
|
+
], Wt = $("download", Ht);
|
|
976
|
+
const Ut = [
|
|
977
|
+
[
|
|
978
|
+
"path",
|
|
979
|
+
{
|
|
980
|
+
d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",
|
|
981
|
+
key: "1oefj6"
|
|
982
|
+
}
|
|
983
|
+
],
|
|
984
|
+
["path", { d: "M14 2v5a1 1 0 0 0 1 1h5", key: "wfsgrz" }],
|
|
985
|
+
["path", { d: "M10 12.5 8 15l2 2.5", key: "1tg20x" }],
|
|
986
|
+
["path", { d: "m14 12.5 2 2.5-2 2.5", key: "yinavb" }]
|
|
987
|
+
], zt = $("file-code", Ut);
|
|
988
|
+
const qt = [
|
|
989
|
+
[
|
|
990
|
+
"path",
|
|
991
|
+
{
|
|
992
|
+
d: "M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",
|
|
993
|
+
key: "1kt360"
|
|
994
|
+
}
|
|
995
|
+
]
|
|
996
|
+
], Xt = $("folder", qt);
|
|
997
|
+
const Gt = [
|
|
998
|
+
[
|
|
999
|
+
"path",
|
|
1000
|
+
{
|
|
1001
|
+
d: "M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",
|
|
1002
|
+
key: "sc7q7i"
|
|
1003
|
+
}
|
|
1004
|
+
]
|
|
1005
|
+
], Kt = $("funnel", Gt);
|
|
1006
|
+
const Vt = [
|
|
1007
|
+
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
1008
|
+
["path", { d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20", key: "13o1zl" }],
|
|
1009
|
+
["path", { d: "M2 12h20", key: "9i4pu4" }]
|
|
1010
|
+
], Zt = $("globe", Vt);
|
|
1011
|
+
const Jt = [
|
|
1012
|
+
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
1013
|
+
["path", { d: "M3 9h18", key: "1pudct" }],
|
|
1014
|
+
["path", { d: "M3 15h18", key: "5xshup" }],
|
|
1015
|
+
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
1016
|
+
["path", { d: "M15 3v18", key: "14nvp0" }]
|
|
1017
|
+
], Qt = $("grid-3x3", Jt);
|
|
1018
|
+
const ei = [
|
|
1019
|
+
["line", { x1: "22", x2: "2", y1: "12", y2: "12", key: "1y58io" }],
|
|
1020
|
+
[
|
|
1021
|
+
"path",
|
|
1022
|
+
{
|
|
1023
|
+
d: "M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",
|
|
1024
|
+
key: "oot6mr"
|
|
1025
|
+
}
|
|
1026
|
+
],
|
|
1027
|
+
["line", { x1: "6", x2: "6.01", y1: "16", y2: "16", key: "sgf278" }],
|
|
1028
|
+
["line", { x1: "10", x2: "10.01", y1: "16", y2: "16", key: "1l4acy" }]
|
|
1029
|
+
], ni = $("hard-drive", ei);
|
|
1030
|
+
const ri = [
|
|
1031
|
+
[
|
|
1032
|
+
"path",
|
|
1033
|
+
{
|
|
1034
|
+
d: "M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",
|
|
1035
|
+
key: "1xhozi"
|
|
1036
|
+
}
|
|
1037
|
+
]
|
|
1038
|
+
], ti = $("headphones", ri);
|
|
1039
|
+
const ii = [
|
|
1040
|
+
["path", { d: "m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4", key: "g0fldk" }],
|
|
1041
|
+
["path", { d: "m21 2-9.6 9.6", key: "1j0ho8" }],
|
|
1042
|
+
["circle", { cx: "7.5", cy: "15.5", r: "5.5", key: "yqb3hr" }]
|
|
1043
|
+
], oi = $("key", ii);
|
|
1044
|
+
const li = [
|
|
1045
|
+
[
|
|
1046
|
+
"path",
|
|
1047
|
+
{
|
|
1048
|
+
d: "M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",
|
|
1049
|
+
key: "zw3jo"
|
|
1050
|
+
}
|
|
1051
|
+
],
|
|
1052
|
+
[
|
|
1053
|
+
"path",
|
|
1054
|
+
{
|
|
1055
|
+
d: "M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",
|
|
1056
|
+
key: "1wduqc"
|
|
1057
|
+
}
|
|
1058
|
+
],
|
|
1059
|
+
[
|
|
1060
|
+
"path",
|
|
1061
|
+
{
|
|
1062
|
+
d: "M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",
|
|
1063
|
+
key: "kqbvx6"
|
|
1064
|
+
}
|
|
1065
|
+
]
|
|
1066
|
+
], ai = $("layers", li);
|
|
1067
|
+
const ci = [
|
|
1068
|
+
["rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2", key: "1w4ew1" }],
|
|
1069
|
+
["path", { d: "M7 11V7a5 5 0 0 1 10 0v4", key: "fwvmzm" }]
|
|
1070
|
+
], si = $("lock", ci);
|
|
1071
|
+
const fi = [
|
|
1072
|
+
["path", { d: "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7", key: "132q7q" }],
|
|
1073
|
+
["rect", { x: "2", y: "4", width: "20", height: "16", rx: "2", key: "izxlao" }]
|
|
1074
|
+
], ui = $("mail", fi);
|
|
1075
|
+
const pi = [
|
|
1076
|
+
[
|
|
1077
|
+
"path",
|
|
1078
|
+
{
|
|
1079
|
+
d: "M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",
|
|
1080
|
+
key: "18887p"
|
|
1081
|
+
}
|
|
1082
|
+
]
|
|
1083
|
+
], hi = $("message-square", pi);
|
|
1084
|
+
const di = [
|
|
1085
|
+
["path", { d: "M12 19v3", key: "npa21l" }],
|
|
1086
|
+
["path", { d: "M19 10v2a7 7 0 0 1-14 0v-2", key: "1vc78b" }],
|
|
1087
|
+
["rect", { x: "9", y: "2", width: "6", height: "13", rx: "3", key: "s6n7sd" }]
|
|
1088
|
+
], xi = $("mic", di);
|
|
1089
|
+
const mi = [
|
|
1090
|
+
["rect", { width: "20", height: "14", x: "2", y: "3", rx: "2", key: "48i651" }],
|
|
1091
|
+
["line", { x1: "8", x2: "16", y1: "21", y2: "21", key: "1svkeh" }],
|
|
1092
|
+
["line", { x1: "12", x2: "12", y1: "17", y2: "21", key: "vw1qmm" }]
|
|
1093
|
+
], yi = $("monitor", mi);
|
|
1094
|
+
const gi = [
|
|
1095
|
+
[
|
|
1096
|
+
"path",
|
|
1097
|
+
{
|
|
1098
|
+
d: "M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",
|
|
1099
|
+
key: "1a0edw"
|
|
1100
|
+
}
|
|
1101
|
+
],
|
|
1102
|
+
["path", { d: "M12 22V12", key: "d0xqtd" }],
|
|
1103
|
+
["polyline", { points: "3.29 7 12 12 20.71 7", key: "ousv84" }],
|
|
1104
|
+
["path", { d: "m7.5 4.27 9 5.15", key: "1c824w" }]
|
|
1105
|
+
], ki = $("package", gi);
|
|
1106
|
+
const vi = [
|
|
1107
|
+
["rect", { x: "14", y: "3", width: "5", height: "18", rx: "1", key: "kaeet6" }],
|
|
1108
|
+
["rect", { x: "5", y: "3", width: "5", height: "18", rx: "1", key: "1wsw3u" }]
|
|
1109
|
+
], bi = $("pause", vi);
|
|
1110
|
+
const Ai = [
|
|
1111
|
+
[
|
|
1112
|
+
"path",
|
|
1113
|
+
{
|
|
1114
|
+
d: "M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",
|
|
1115
|
+
key: "10ikf1"
|
|
1116
|
+
}
|
|
1117
|
+
]
|
|
1118
|
+
], _i = $("play", Ai);
|
|
1119
|
+
const wi = [
|
|
1120
|
+
["path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8", key: "v9h5vc" }],
|
|
1121
|
+
["path", { d: "M21 3v5h-5", key: "1q7to0" }],
|
|
1122
|
+
["path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }],
|
|
1123
|
+
["path", { d: "M8 16H3v5", key: "1cv678" }]
|
|
1124
|
+
], Ci = $("refresh-cw", wi);
|
|
1125
|
+
const $i = [
|
|
1126
|
+
["path", { d: "m17 2 4 4-4 4", key: "nntrym" }],
|
|
1127
|
+
["path", { d: "M3 11v-1a4 4 0 0 1 4-4h14", key: "84bu3i" }],
|
|
1128
|
+
["path", { d: "m7 22-4-4 4-4", key: "1wqhfi" }],
|
|
1129
|
+
["path", { d: "M21 13v1a4 4 0 0 1-4 4H3", key: "1rx37r" }]
|
|
1130
|
+
], Si = $("repeat", $i);
|
|
1131
|
+
const Ei = [
|
|
1132
|
+
["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
|
|
1133
|
+
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
|
|
1134
|
+
], Ti = $("search", Ei);
|
|
1135
|
+
const Mi = [
|
|
1136
|
+
["rect", { width: "20", height: "8", x: "2", y: "2", rx: "2", ry: "2", key: "ngkwjq" }],
|
|
1137
|
+
["rect", { width: "20", height: "8", x: "2", y: "14", rx: "2", ry: "2", key: "iecqi9" }],
|
|
1138
|
+
["line", { x1: "6", x2: "6.01", y1: "6", y2: "6", key: "16zg32" }],
|
|
1139
|
+
["line", { x1: "6", x2: "6.01", y1: "18", y2: "18", key: "nzw8ys" }]
|
|
1140
|
+
], ji = $("server", Mi);
|
|
1141
|
+
const Oi = [
|
|
1142
|
+
[
|
|
1143
|
+
"path",
|
|
1144
|
+
{
|
|
1145
|
+
d: "M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",
|
|
1146
|
+
key: "1i5ecw"
|
|
1147
|
+
}
|
|
1148
|
+
],
|
|
1149
|
+
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
1150
|
+
], Ni = $("settings", Oi);
|
|
1151
|
+
const Li = [
|
|
1152
|
+
[
|
|
1153
|
+
"path",
|
|
1154
|
+
{
|
|
1155
|
+
d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",
|
|
1156
|
+
key: "oel41y"
|
|
1157
|
+
}
|
|
1158
|
+
]
|
|
1159
|
+
], Fi = $("shield", Li);
|
|
1160
|
+
const Ii = [
|
|
1161
|
+
["rect", { width: "14", height: "20", x: "5", y: "2", rx: "2", ry: "2", key: "1yt0o3" }],
|
|
1162
|
+
["path", { d: "M12 18h.01", key: "mhygvu" }]
|
|
1163
|
+
], Ri = $("smartphone", Ii);
|
|
1164
|
+
const Pi = [
|
|
1165
|
+
["rect", { width: "16", height: "20", x: "4", y: "2", rx: "2", key: "1nb95v" }],
|
|
1166
|
+
["path", { d: "M12 6h.01", key: "1vi96p" }],
|
|
1167
|
+
["circle", { cx: "12", cy: "14", r: "4", key: "1jruaj" }],
|
|
1168
|
+
["path", { d: "M12 14h.01", key: "1etili" }]
|
|
1169
|
+
], Di = $("speaker", Pi);
|
|
1170
|
+
const Yi = [
|
|
1171
|
+
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }]
|
|
1172
|
+
], Bi = $("square", Yi);
|
|
1173
|
+
const Hi = [
|
|
1174
|
+
["path", { d: "M12 19h8", key: "baeox8" }],
|
|
1175
|
+
["path", { d: "m4 17 6-6-6-6", key: "1yngyt" }]
|
|
1176
|
+
], Wi = $("terminal", Hi);
|
|
1177
|
+
const Ui = [
|
|
1178
|
+
["path", { d: "M12 3v12", key: "1x0j5s" }],
|
|
1179
|
+
["path", { d: "m17 8-5-5-5 5", key: "7q97r8" }],
|
|
1180
|
+
["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }]
|
|
1181
|
+
], zi = $("upload", Ui);
|
|
1182
|
+
const qi = [
|
|
1183
|
+
["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
|
|
1184
|
+
["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
|
|
1185
|
+
], Xi = $("user", qi);
|
|
1186
|
+
const Gi = [
|
|
1187
|
+
["path", { d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2", key: "1yyitq" }],
|
|
1188
|
+
["path", { d: "M16 3.128a4 4 0 0 1 0 7.744", key: "16gr8j" }],
|
|
1189
|
+
["path", { d: "M22 21v-2a4 4 0 0 0-3-3.87", key: "kshegd" }],
|
|
1190
|
+
["circle", { cx: "9", cy: "7", r: "4", key: "nufk8" }]
|
|
1191
|
+
], Ki = $("users", Gi);
|
|
1192
|
+
const Vi = [
|
|
1193
|
+
["path", { d: "M12 10v2.2l1.6 1", key: "n3r21l" }],
|
|
1194
|
+
[
|
|
1195
|
+
"path",
|
|
1196
|
+
{ d: "m16.13 7.66-.81-4.05a2 2 0 0 0-2-1.61h-2.68a2 2 0 0 0-2 1.61l-.78 4.05", key: "18k57s" }
|
|
1197
|
+
],
|
|
1198
|
+
["path", { d: "m7.88 16.36.8 4a2 2 0 0 0 2 1.61h2.72a2 2 0 0 0 2-1.61l.81-4.05", key: "16ny36" }],
|
|
1199
|
+
["circle", { cx: "12", cy: "12", r: "6", key: "1vlfrh" }]
|
|
1200
|
+
], Zi = $("watch", Vi);
|
|
1201
|
+
const Ji = [
|
|
1202
|
+
["path", { d: "M12 20h.01", key: "zekei9" }],
|
|
1203
|
+
["path", { d: "M2 8.82a15 15 0 0 1 20 0", key: "dnpr2z" }],
|
|
1204
|
+
["path", { d: "M5 12.859a10 10 0 0 1 14 0", key: "1x1e6c" }],
|
|
1205
|
+
["path", { d: "M8.5 16.429a5 5 0 0 1 7 0", key: "1bycff" }]
|
|
1206
|
+
], Qi = $("wifi", Ji);
|
|
1207
|
+
const eo = [
|
|
1208
|
+
[
|
|
1209
|
+
"path",
|
|
1210
|
+
{
|
|
1211
|
+
d: "M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",
|
|
1212
|
+
key: "1xq2db"
|
|
1213
|
+
}
|
|
1214
|
+
]
|
|
1215
|
+
], no = $("zap", eo), ro = {
|
|
1216
|
+
Monitor: yi,
|
|
1217
|
+
Server: ji,
|
|
1218
|
+
Smartphone: Ri,
|
|
1219
|
+
Watch: Zi,
|
|
1220
|
+
Cloud: Ft,
|
|
1221
|
+
Cpu: Dt,
|
|
1222
|
+
Database: Bt,
|
|
1223
|
+
HardDrive: ni,
|
|
1224
|
+
Wifi: Qi,
|
|
1225
|
+
Globe: Zt,
|
|
1226
|
+
User: Xi,
|
|
1227
|
+
Users: Ki,
|
|
1228
|
+
Lock: si,
|
|
1229
|
+
Key: oi,
|
|
1230
|
+
Shield: Fi,
|
|
1231
|
+
Mic: xi,
|
|
1232
|
+
Camera: St,
|
|
1233
|
+
Speaker: Di,
|
|
1234
|
+
Headphones: ti,
|
|
1235
|
+
Code: Rt,
|
|
1236
|
+
Terminal: Wi,
|
|
1237
|
+
FileCode: zt,
|
|
1238
|
+
Folder: Xt,
|
|
1239
|
+
Zap: no,
|
|
1240
|
+
Activity: gt,
|
|
1241
|
+
BarChart: Tt,
|
|
1242
|
+
PieChart: jt,
|
|
1243
|
+
ArrowRight: At,
|
|
1244
|
+
ArrowDown: vt,
|
|
1245
|
+
RefreshCw: Ci,
|
|
1246
|
+
Repeat: Si,
|
|
1247
|
+
Box: Gn,
|
|
1248
|
+
Package: ki,
|
|
1249
|
+
Layers: ai,
|
|
1250
|
+
Grid: Qt,
|
|
1251
|
+
Settings: Ni,
|
|
1252
|
+
Bell: wt,
|
|
1253
|
+
Mail: ui,
|
|
1254
|
+
MessageSquare: hi,
|
|
1255
|
+
Search: Ti,
|
|
1256
|
+
Filter: Kt,
|
|
1257
|
+
Download: Wt,
|
|
1258
|
+
Upload: zi,
|
|
1259
|
+
Play: _i,
|
|
1260
|
+
Pause: bi,
|
|
1261
|
+
Square: Bi,
|
|
1262
|
+
Circle: Nt
|
|
1263
|
+
};
|
|
1264
|
+
function to(e) {
|
|
1265
|
+
return ro[e] || Gn;
|
|
1266
|
+
}
|
|
1267
|
+
function io({
|
|
796
1268
|
uid: e,
|
|
797
1269
|
style: n,
|
|
798
1270
|
box: r,
|
|
799
|
-
color:
|
|
800
|
-
tag:
|
|
1271
|
+
color: i,
|
|
1272
|
+
tag: t,
|
|
801
1273
|
selected: l = !1,
|
|
802
1274
|
opacity: o,
|
|
803
1275
|
onClick: a,
|
|
804
1276
|
onPointerDown: c
|
|
805
1277
|
}) {
|
|
806
|
-
const
|
|
1278
|
+
const f = Wn(i), u = l ? n.ink.accent : n.ink.line, d = l ? n.ink.accent : n.ink.text, p = [
|
|
807
1279
|
{ face: "left", path: r.left },
|
|
808
1280
|
{ face: "right", path: r.right },
|
|
809
1281
|
{ face: "top", path: r.top }
|
|
810
1282
|
];
|
|
811
|
-
return /* @__PURE__ */
|
|
1283
|
+
return /* @__PURE__ */ h.jsxs(
|
|
812
1284
|
"g",
|
|
813
1285
|
{
|
|
814
1286
|
className: a || c ? "cursor-pointer" : void 0,
|
|
@@ -816,11 +1288,11 @@ function ri({
|
|
|
816
1288
|
onClick: a,
|
|
817
1289
|
onPointerDown: c,
|
|
818
1290
|
children: [
|
|
819
|
-
p.map(({ face:
|
|
820
|
-
/* @__PURE__ */
|
|
821
|
-
|
|
822
|
-
] },
|
|
823
|
-
/* @__PURE__ */
|
|
1291
|
+
p.map(({ face: x, path: m }) => /* @__PURE__ */ h.jsxs("g", { children: [
|
|
1292
|
+
/* @__PURE__ */ h.jsx("path", { d: m, fill: n.face[x] }),
|
|
1293
|
+
Un(e, f, x).map((y) => /* @__PURE__ */ h.jsx("path", { d: m, fill: `url(#${y})`, opacity: n.hatchOpacity[x] }, y))
|
|
1294
|
+
] }, x)),
|
|
1295
|
+
/* @__PURE__ */ h.jsx(
|
|
824
1296
|
"path",
|
|
825
1297
|
{
|
|
826
1298
|
d: r.hidden,
|
|
@@ -831,7 +1303,7 @@ function ri({
|
|
|
831
1303
|
opacity: 0.85
|
|
832
1304
|
}
|
|
833
1305
|
),
|
|
834
|
-
/* @__PURE__ */
|
|
1306
|
+
/* @__PURE__ */ h.jsx(
|
|
835
1307
|
"path",
|
|
836
1308
|
{
|
|
837
1309
|
d: r.visible,
|
|
@@ -842,64 +1314,66 @@ function ri({
|
|
|
842
1314
|
strokeLinecap: "round"
|
|
843
1315
|
}
|
|
844
1316
|
),
|
|
845
|
-
|
|
1317
|
+
t != null && /* @__PURE__ */ h.jsx(
|
|
846
1318
|
"text",
|
|
847
1319
|
{
|
|
848
1320
|
x: r.topCenter.x,
|
|
849
1321
|
y: r.topCenter.y + g(3),
|
|
850
1322
|
textAnchor: "middle",
|
|
851
|
-
fill:
|
|
1323
|
+
fill: d,
|
|
852
1324
|
fontSize: g(8),
|
|
853
1325
|
fontWeight: 600,
|
|
854
1326
|
fontFamily: n.font,
|
|
855
1327
|
style: { letterSpacing: "0.1em" },
|
|
856
1328
|
pointerEvents: "none",
|
|
857
|
-
children:
|
|
1329
|
+
children: De(t)
|
|
858
1330
|
}
|
|
859
1331
|
)
|
|
860
1332
|
]
|
|
861
1333
|
}
|
|
862
1334
|
);
|
|
863
1335
|
}
|
|
864
|
-
function
|
|
1336
|
+
function oo({
|
|
865
1337
|
style: e,
|
|
866
1338
|
box: n,
|
|
867
1339
|
name: r,
|
|
868
|
-
subtitle:
|
|
869
|
-
|
|
870
|
-
|
|
1340
|
+
subtitle: i,
|
|
1341
|
+
icon: t,
|
|
1342
|
+
selected: l = !1,
|
|
1343
|
+
opacity: o
|
|
871
1344
|
}) {
|
|
872
|
-
const
|
|
873
|
-
return /* @__PURE__ */
|
|
874
|
-
/* @__PURE__ */
|
|
1345
|
+
const a = l ? e.ink.accent : e.ink.line, c = l ? e.ink.accent : e.ink.text, f = t ? to(t) : null, u = (r || "").toUpperCase(), d = (i || "").toUpperCase(), p = n.minY - g(11), x = p - g(4), m = d ? p - g(15) : p - g(4), y = g(9), v = g(3), k = f ? y + v : 0, b = Math.max(u.length * g(5.6) + k, d.length * g(4.4), g(24)), Y = n.topCenter.x + k / 2, E = Y - u.length * g(5.6) / 2 - v - y, C = m - y + g(1);
|
|
1346
|
+
return /* @__PURE__ */ h.jsxs("g", { pointerEvents: "none", opacity: o, children: [
|
|
1347
|
+
/* @__PURE__ */ h.jsx(
|
|
875
1348
|
"line",
|
|
876
1349
|
{
|
|
877
1350
|
x1: n.topCenter.x,
|
|
878
1351
|
y1: n.topCenter.y - g(6),
|
|
879
1352
|
x2: n.topCenter.x,
|
|
880
|
-
y2:
|
|
881
|
-
stroke:
|
|
1353
|
+
y2: p,
|
|
1354
|
+
stroke: a,
|
|
882
1355
|
strokeWidth: e.strokeWidth * 0.6
|
|
883
1356
|
}
|
|
884
1357
|
),
|
|
885
|
-
/* @__PURE__ */
|
|
1358
|
+
/* @__PURE__ */ h.jsx(
|
|
886
1359
|
"line",
|
|
887
1360
|
{
|
|
888
|
-
x1: n.topCenter.x -
|
|
889
|
-
y1:
|
|
890
|
-
x2: n.topCenter.x +
|
|
891
|
-
y2:
|
|
892
|
-
stroke:
|
|
1361
|
+
x1: n.topCenter.x - b / 2,
|
|
1362
|
+
y1: p,
|
|
1363
|
+
x2: n.topCenter.x + b / 2,
|
|
1364
|
+
y2: p,
|
|
1365
|
+
stroke: a,
|
|
893
1366
|
strokeWidth: e.strokeWidth * 0.6
|
|
894
1367
|
}
|
|
895
1368
|
),
|
|
896
|
-
/* @__PURE__ */
|
|
1369
|
+
f && /* @__PURE__ */ h.jsx("g", { transform: `translate(${E}, ${C})`, color: c, children: /* @__PURE__ */ h.jsx(f, { width: y, height: y, strokeWidth: 1.75 }) }),
|
|
1370
|
+
/* @__PURE__ */ h.jsx(
|
|
897
1371
|
"text",
|
|
898
1372
|
{
|
|
899
|
-
x:
|
|
900
|
-
y:
|
|
1373
|
+
x: Y,
|
|
1374
|
+
y: m,
|
|
901
1375
|
textAnchor: "middle",
|
|
902
|
-
fill:
|
|
1376
|
+
fill: c,
|
|
903
1377
|
fontSize: g(9.5),
|
|
904
1378
|
fontWeight: 600,
|
|
905
1379
|
fontFamily: e.font,
|
|
@@ -908,10 +1382,10 @@ function ii({
|
|
|
908
1382
|
paintOrder: "stroke",
|
|
909
1383
|
strokeLinejoin: "round",
|
|
910
1384
|
style: { letterSpacing: "0.12em" },
|
|
911
|
-
children:
|
|
1385
|
+
children: u
|
|
912
1386
|
}
|
|
913
1387
|
),
|
|
914
|
-
|
|
1388
|
+
d && /* @__PURE__ */ h.jsx(
|
|
915
1389
|
"text",
|
|
916
1390
|
{
|
|
917
1391
|
x: n.topCenter.x,
|
|
@@ -925,12 +1399,12 @@ function ii({
|
|
|
925
1399
|
paintOrder: "stroke",
|
|
926
1400
|
strokeLinejoin: "round",
|
|
927
1401
|
style: { letterSpacing: "0.1em" },
|
|
928
|
-
children:
|
|
1402
|
+
children: d
|
|
929
1403
|
}
|
|
930
1404
|
)
|
|
931
1405
|
] });
|
|
932
1406
|
}
|
|
933
|
-
const
|
|
1407
|
+
const Kn = '"JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace', lo = {
|
|
934
1408
|
blue: { top: "#3b82f6", side: "#2563eb", front: "#1d4ed8" },
|
|
935
1409
|
violet: { top: "#8b5cf6", side: "#7c3aed", front: "#6d28d9" },
|
|
936
1410
|
cyan: { top: "#06b6d4", side: "#0891b2", front: "#0e7490" },
|
|
@@ -938,7 +1412,7 @@ const Bn = '"JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace', ti =
|
|
|
938
1412
|
amber: { top: "#f59e0b", side: "#d97706", front: "#b45309" },
|
|
939
1413
|
rose: { top: "#f43f5e", side: "#e11d48", front: "#be123c" },
|
|
940
1414
|
slate: { top: "#475569", side: "#334155", front: "#1e293b" }
|
|
941
|
-
},
|
|
1415
|
+
}, ao = {
|
|
942
1416
|
blue: { top: "#93c5fd", side: "#60a5fa", front: "#3b82f6" },
|
|
943
1417
|
violet: { top: "#c4b5fd", side: "#a78bfa", front: "#8b5cf6" },
|
|
944
1418
|
cyan: { top: "#67e8f9", side: "#22d3ee", front: "#06b6d4" },
|
|
@@ -947,47 +1421,47 @@ const Bn = '"JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace', ti =
|
|
|
947
1421
|
rose: { top: "#fda4af", side: "#fb7185", front: "#f43f5e" },
|
|
948
1422
|
slate: { top: "#e2e8f0", side: "#cbd5e1", front: "#94a3b8" }
|
|
949
1423
|
};
|
|
950
|
-
function
|
|
951
|
-
const
|
|
952
|
-
const u =
|
|
1424
|
+
function Re(e, n, r) {
|
|
1425
|
+
const i = (f) => {
|
|
1426
|
+
const u = f.replace("#", "");
|
|
953
1427
|
return {
|
|
954
1428
|
r: parseInt(u.substring(0, 2), 16),
|
|
955
1429
|
g: parseInt(u.substring(2, 4), 16),
|
|
956
1430
|
b: parseInt(u.substring(4, 6), 16)
|
|
957
1431
|
};
|
|
958
|
-
},
|
|
1432
|
+
}, t = i(e), l = i(n), o = Math.round(t.r + (l.r - t.r) * r), a = Math.round(t.g + (l.g - t.g) * r), c = Math.round(t.b + (l.b - t.b) * r);
|
|
959
1433
|
return `rgb(${o},${a},${c})`;
|
|
960
1434
|
}
|
|
961
|
-
function
|
|
962
|
-
const a =
|
|
963
|
-
return /* @__PURE__ */
|
|
1435
|
+
function co({ x: e, y: n, z: r, children: i, fontSize: t = 8, color: l = "#1e293b", shadow: o }) {
|
|
1436
|
+
const a = w(e, n, r);
|
|
1437
|
+
return /* @__PURE__ */ h.jsx("g", { transform: `translate(${a.screenX}, ${a.screenY})`, filter: o, children: /* @__PURE__ */ h.jsx("g", { transform: `matrix(${zr()})`, children: /* @__PURE__ */ h.jsx(
|
|
964
1438
|
"text",
|
|
965
1439
|
{
|
|
966
1440
|
x: 0,
|
|
967
1441
|
y: 0,
|
|
968
1442
|
textAnchor: "middle",
|
|
969
1443
|
fill: l,
|
|
970
|
-
fontSize:
|
|
1444
|
+
fontSize: t,
|
|
971
1445
|
fontWeight: 600,
|
|
972
|
-
fontFamily:
|
|
1446
|
+
fontFamily: Kn,
|
|
973
1447
|
style: { textTransform: "uppercase", letterSpacing: "0.06em" },
|
|
974
|
-
children:
|
|
1448
|
+
children: i
|
|
975
1449
|
}
|
|
976
1450
|
) }) });
|
|
977
1451
|
}
|
|
978
|
-
function
|
|
979
|
-
const
|
|
980
|
-
return /* @__PURE__ */
|
|
981
|
-
a && /* @__PURE__ */
|
|
982
|
-
/* @__PURE__ */
|
|
983
|
-
a && /* @__PURE__ */
|
|
984
|
-
/* @__PURE__ */
|
|
985
|
-
/* @__PURE__ */
|
|
1452
|
+
function so({ width: e, depth: n, elevation: r, color: i, opacity: t, borderColor: l, theme: o, isGround: a }) {
|
|
1453
|
+
const f = xe(e, n, a ? 8 : 2, 0, 0), u = w(0, 0, r);
|
|
1454
|
+
return /* @__PURE__ */ h.jsxs("g", { transform: `translate(${u.screenX}, ${u.screenY})`, children: [
|
|
1455
|
+
a && /* @__PURE__ */ h.jsx("g", { transform: "translate(4, 4)", opacity: 0.2, children: /* @__PURE__ */ h.jsx("path", { d: f.top, fill: "#000" }) }),
|
|
1456
|
+
/* @__PURE__ */ h.jsx("path", { d: f.top, fill: i, opacity: t }),
|
|
1457
|
+
a && /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
|
|
1458
|
+
/* @__PURE__ */ h.jsx("path", { d: f.left, fill: o === "dark" ? "#0f172a" : "#cbd5e1", opacity: 0.8 }),
|
|
1459
|
+
/* @__PURE__ */ h.jsx("path", { d: f.right, fill: o === "dark" ? "#1e293b" : "#94a3b8", opacity: 0.8 })
|
|
986
1460
|
] }),
|
|
987
|
-
/* @__PURE__ */
|
|
1461
|
+
/* @__PURE__ */ h.jsx(
|
|
988
1462
|
"path",
|
|
989
1463
|
{
|
|
990
|
-
d:
|
|
1464
|
+
d: f.top,
|
|
991
1465
|
fill: "none",
|
|
992
1466
|
stroke: l || (o === "dark" ? "#475569" : "#94a3b8"),
|
|
993
1467
|
strokeWidth: a ? 1.5 : 0.75,
|
|
@@ -996,37 +1470,38 @@ function ai({ width: e, depth: n, elevation: r, color: t, opacity: i, borderColo
|
|
|
996
1470
|
)
|
|
997
1471
|
] });
|
|
998
1472
|
}
|
|
999
|
-
function
|
|
1000
|
-
const { interactive: o = !0, animate: a = !0, showLabels: c = !0, expandOnHover:
|
|
1001
|
-
const
|
|
1002
|
-
return
|
|
1003
|
-
}, [y]),
|
|
1004
|
-
|
|
1005
|
-
a ? (
|
|
1473
|
+
function Ba({ config: e, options: n = {}, className: r, style: i, onNodeClick: t, onLayerClick: l }) {
|
|
1474
|
+
const { interactive: o = !0, animate: a = !0, showLabels: c = !0, expandOnHover: f = !0 } = n, { theme: u, canvas: d, origin: p, tiers: x, floorSize: m, nodes: y, cornerRadius: v = 0 } = e, k = et(e.style), b = k.technical, Y = nn().replace(/:/g, ""), E = !b && e.material === "retro-print", C = E ? Dn : u === "dark" ? lo : ao, N = b ? k.paper.to : E ? u === "dark" ? "#202624" : "#f4efe6" : u === "dark" ? "#0f172a" : "#fafafa", I = b ? k.ink.text : E ? "#202a29" : u === "dark" ? "#e2e8f0" : "#1e293b", B = b ? k.ink.muted : E ? u === "dark" ? "#c5c4b7" : "#505b56" : u === "dark" ? "#64748b" : "#94a3b8", j = Br(() => {
|
|
1475
|
+
const M = y.map((A, O) => ({ node: A, i: O })).sort((A, O) => A.node.tier - O.node.tier || A.node.y - O.node.y || A.node.x - O.node.x), s = /* @__PURE__ */ new Map();
|
|
1476
|
+
return M.forEach(({ i: A }, O) => s.set(A, O + 1)), s;
|
|
1477
|
+
}, [y]), R = { minX: 16, minY: 16, maxX: d.width - 16, maxY: d.height - 16 }, [ee, L] = Le(/* @__PURE__ */ new Set());
|
|
1478
|
+
Hr(() => {
|
|
1479
|
+
a ? (L(/* @__PURE__ */ new Set()), x.forEach((M, s) => {
|
|
1006
1480
|
setTimeout(() => {
|
|
1007
|
-
|
|
1008
|
-
},
|
|
1009
|
-
})) :
|
|
1010
|
-
}, [e.id, a,
|
|
1011
|
-
const [
|
|
1012
|
-
const
|
|
1013
|
-
if (
|
|
1014
|
-
const F =
|
|
1015
|
-
return
|
|
1481
|
+
L((A) => /* @__PURE__ */ new Set([...A, s]));
|
|
1482
|
+
}, s * 150 + 100);
|
|
1483
|
+
})) : L(new Set(x.map((M, s) => s)));
|
|
1484
|
+
}, [e.id, a, x.length]);
|
|
1485
|
+
const [D, re] = Le(null), [K, H] = Le(null), [T, U] = Le(null), oe = [...y].sort((M, s) => {
|
|
1486
|
+
const A = x[M.tier]?.elevation || 0, O = x[s.tier]?.elevation || 0;
|
|
1487
|
+
if (A !== O) return A - O;
|
|
1488
|
+
const F = M.x + M.width + (M.y + M.depth);
|
|
1489
|
+
return s.x + s.width + (s.y + s.depth) - F;
|
|
1016
1490
|
});
|
|
1017
|
-
return /* @__PURE__ */
|
|
1491
|
+
return /* @__PURE__ */ h.jsx("div", { className: r, style: { display: "inline-block", ...i }, children: /* @__PURE__ */ h.jsxs(
|
|
1018
1492
|
"svg",
|
|
1019
1493
|
{
|
|
1020
|
-
width:
|
|
1021
|
-
height:
|
|
1022
|
-
style: { backgroundColor:
|
|
1494
|
+
width: d.width,
|
|
1495
|
+
height: d.height,
|
|
1496
|
+
style: { backgroundColor: N },
|
|
1023
1497
|
onClick: () => {
|
|
1024
|
-
o && (
|
|
1498
|
+
o && (U(null), H(null));
|
|
1025
1499
|
},
|
|
1026
1500
|
children: [
|
|
1027
|
-
/* @__PURE__ */
|
|
1028
|
-
/* @__PURE__ */
|
|
1029
|
-
/* @__PURE__ */
|
|
1501
|
+
/* @__PURE__ */ h.jsxs("defs", { children: [
|
|
1502
|
+
E && /* @__PURE__ */ h.jsx("pattern", { id: `print-${e.id}`, width: "64", height: "64", patternUnits: "userSpaceOnUse", children: Yn.map((M, s) => /* @__PURE__ */ h.jsx("circle", { cx: M.x, cy: M.y, r: M.r, fill: "#26362e", opacity: 0.32 }, s)) }),
|
|
1503
|
+
/* @__PURE__ */ h.jsx("pattern", { id: `grid-${e.id}`, width: "24", height: "24", patternUnits: "userSpaceOnUse", children: /* @__PURE__ */ h.jsx("circle", { cx: "12", cy: "12", r: "0.5", fill: u === "dark" ? "#1e293b" : "#e2e8f0" }) }),
|
|
1504
|
+
/* @__PURE__ */ h.jsx("filter", { id: `glow-${e.id}`, x: "-20%", y: "-20%", width: "140%", height: "140%", children: /* @__PURE__ */ h.jsx(
|
|
1030
1505
|
"feDropShadow",
|
|
1031
1506
|
{
|
|
1032
1507
|
dx: "0",
|
|
@@ -1036,229 +1511,229 @@ function Do({ config: e, options: n = {}, className: r, style: t, onNodeClick: i
|
|
|
1036
1511
|
floodOpacity: "0.3"
|
|
1037
1512
|
}
|
|
1038
1513
|
) }),
|
|
1039
|
-
/* @__PURE__ */
|
|
1040
|
-
/* @__PURE__ */
|
|
1041
|
-
/* @__PURE__ */
|
|
1042
|
-
/* @__PURE__ */
|
|
1514
|
+
/* @__PURE__ */ h.jsxs("radialGradient", { id: `bg-${e.id}`, cx: "48%", cy: "34%", r: "82%", children: [
|
|
1515
|
+
/* @__PURE__ */ h.jsx("stop", { offset: "0%", stopColor: u === "dark" ? "#16203a" : "#ffffff" }),
|
|
1516
|
+
/* @__PURE__ */ h.jsx("stop", { offset: "55%", stopColor: u === "dark" ? "#0e1526" : "#f2f5f9" }),
|
|
1517
|
+
/* @__PURE__ */ h.jsx("stop", { offset: "100%", stopColor: u === "dark" ? "#080d18" : "#e7ecf2" })
|
|
1043
1518
|
] }),
|
|
1044
|
-
/* @__PURE__ */
|
|
1045
|
-
/* @__PURE__ */
|
|
1046
|
-
/* @__PURE__ */
|
|
1047
|
-
/* @__PURE__ */
|
|
1048
|
-
/* @__PURE__ */
|
|
1519
|
+
/* @__PURE__ */ h.jsx("filter", { id: `contact-${e.id}`, x: "-60%", y: "-60%", width: "220%", height: "220%", children: /* @__PURE__ */ h.jsx("feGaussianBlur", { stdDeviation: "5" }) }),
|
|
1520
|
+
/* @__PURE__ */ h.jsxs("linearGradient", { id: `sheen-${e.id}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
1521
|
+
/* @__PURE__ */ h.jsx("stop", { offset: "0%", stopColor: "#ffffff", stopOpacity: "0.18" }),
|
|
1522
|
+
/* @__PURE__ */ h.jsx("stop", { offset: "55%", stopColor: "#ffffff", stopOpacity: "0.04" }),
|
|
1523
|
+
/* @__PURE__ */ h.jsx("stop", { offset: "100%", stopColor: "#ffffff", stopOpacity: "0" })
|
|
1049
1524
|
] }),
|
|
1050
|
-
/* @__PURE__ */
|
|
1051
|
-
/* @__PURE__ */
|
|
1052
|
-
/* @__PURE__ */
|
|
1525
|
+
/* @__PURE__ */ h.jsxs("linearGradient", { id: `shade-${e.id}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
1526
|
+
/* @__PURE__ */ h.jsx("stop", { offset: "0%", stopColor: "#000000", stopOpacity: "0" }),
|
|
1527
|
+
/* @__PURE__ */ h.jsx("stop", { offset: "100%", stopColor: "#000000", stopOpacity: "0.24" })
|
|
1053
1528
|
] }),
|
|
1054
|
-
/* @__PURE__ */
|
|
1529
|
+
/* @__PURE__ */ h.jsx("filter", { id: `label-${e.id}`, x: "-40%", y: "-40%", width: "180%", height: "180%", children: /* @__PURE__ */ h.jsx("feDropShadow", { dx: "0", dy: "0.5", stdDeviation: "0.7", floodColor: "#000000", floodOpacity: "0.7" }) })
|
|
1055
1530
|
] }),
|
|
1056
|
-
b ? /* @__PURE__ */
|
|
1057
|
-
/* @__PURE__ */
|
|
1058
|
-
/* @__PURE__ */
|
|
1059
|
-
|
|
1531
|
+
b ? /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
|
|
1532
|
+
/* @__PURE__ */ h.jsx(tn, { uid: Y, style: k }),
|
|
1533
|
+
/* @__PURE__ */ h.jsx(
|
|
1534
|
+
st,
|
|
1060
1535
|
{
|
|
1061
|
-
style:
|
|
1062
|
-
rect: { x: 0, y: 0, width:
|
|
1536
|
+
style: k,
|
|
1537
|
+
rect: { x: 0, y: 0, width: d.width, height: d.height },
|
|
1063
1538
|
className: ""
|
|
1064
1539
|
}
|
|
1065
1540
|
)
|
|
1066
|
-
] }) : /* @__PURE__ */
|
|
1067
|
-
/* @__PURE__ */
|
|
1068
|
-
/* @__PURE__ */
|
|
1541
|
+
] }) : /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
|
|
1542
|
+
/* @__PURE__ */ h.jsx("rect", { width: "100%", height: "100%", fill: E ? N : `url(#bg-${e.id})` }),
|
|
1543
|
+
/* @__PURE__ */ h.jsx("rect", { width: "100%", height: "100%", fill: `url(#grid-${e.id})`, opacity: "0.5" })
|
|
1069
1544
|
] }),
|
|
1070
|
-
/* @__PURE__ */
|
|
1071
|
-
const
|
|
1072
|
-
return /* @__PURE__ */
|
|
1545
|
+
/* @__PURE__ */ h.jsx("g", { transform: `translate(${p.x}, ${p.y})`, children: x.map((M, s) => {
|
|
1546
|
+
const A = oe.filter((S) => S.tier === s), O = ee.has(s), F = o && (K === s || K === null && T === null && D === s), ae = o && (K !== null || D !== null || T !== null), se = T?.tier === s, P = ae && !F && !se, te = O ? 0 : 60, fe = O ? 1 : 0, ye = F && f ? { x: 10, y: -34 } : { x: 0, y: 0 }, Pr = F ? 1.03 : 1, Ne = w(m.width / 2, m.depth / 2, M.elevation), un = M.offset || { x: 0, y: 0 };
|
|
1547
|
+
return /* @__PURE__ */ h.jsxs(
|
|
1073
1548
|
"g",
|
|
1074
1549
|
{
|
|
1075
|
-
"data-tier":
|
|
1076
|
-
onMouseEnter: () => o &&
|
|
1077
|
-
onMouseLeave: () => o &&
|
|
1078
|
-
onClick: (
|
|
1079
|
-
o && (
|
|
1550
|
+
"data-tier": s,
|
|
1551
|
+
onMouseEnter: () => o && re(s),
|
|
1552
|
+
onMouseLeave: () => o && re(null),
|
|
1553
|
+
onClick: (S) => {
|
|
1554
|
+
o && (S.stopPropagation(), U(null), H((q) => q === s ? null : s), l?.(s));
|
|
1080
1555
|
},
|
|
1081
1556
|
style: {
|
|
1082
|
-
transform: `translate(${
|
|
1557
|
+
transform: `translate(${un.x + ye.x}px, ${un.y + ye.y}px) translate(${Ne.screenX}px, ${Ne.screenY + te}px) scale(${Pr}) translate(${-Ne.screenX}px, ${-Ne.screenY}px)`,
|
|
1083
1558
|
transition: "transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease-out",
|
|
1084
|
-
opacity:
|
|
1559
|
+
opacity: fe * (P ? 0.35 : 1),
|
|
1085
1560
|
filter: F ? `url(#glow-${e.id})` : "none",
|
|
1086
1561
|
cursor: o ? "pointer" : "default"
|
|
1087
1562
|
},
|
|
1088
1563
|
children: [
|
|
1089
|
-
b ? /* @__PURE__ */
|
|
1090
|
-
|
|
1564
|
+
b ? /* @__PURE__ */ h.jsx(
|
|
1565
|
+
fo,
|
|
1091
1566
|
{
|
|
1092
1567
|
width: m.width,
|
|
1093
1568
|
depth: m.depth,
|
|
1094
|
-
elevation:
|
|
1095
|
-
ink:
|
|
1096
|
-
isGround:
|
|
1569
|
+
elevation: s === 0 ? -2 : M.elevation,
|
|
1570
|
+
ink: s === 0 ? k.ink.line : k.ink.hidden,
|
|
1571
|
+
isGround: s === 0
|
|
1097
1572
|
}
|
|
1098
|
-
) : /* @__PURE__ */
|
|
1099
|
-
|
|
1573
|
+
) : /* @__PURE__ */ h.jsx(
|
|
1574
|
+
so,
|
|
1100
1575
|
{
|
|
1101
1576
|
width: m.width,
|
|
1102
1577
|
depth: m.depth,
|
|
1103
|
-
elevation:
|
|
1104
|
-
color:
|
|
1105
|
-
opacity:
|
|
1106
|
-
borderColor:
|
|
1578
|
+
elevation: s === 0 ? -2 : M.elevation,
|
|
1579
|
+
color: M.floorColor || (u === "dark" ? "#0f172a" : "#f8fafc"),
|
|
1580
|
+
opacity: M.floorOpacity || (s === 0 ? 0.95 : 0.5),
|
|
1581
|
+
borderColor: M.borderColor,
|
|
1107
1582
|
theme: u,
|
|
1108
|
-
isGround:
|
|
1583
|
+
isGround: s === 0
|
|
1109
1584
|
}
|
|
1110
1585
|
),
|
|
1111
|
-
b &&
|
|
1112
|
-
const
|
|
1113
|
-
return /* @__PURE__ */
|
|
1114
|
-
|
|
1586
|
+
b && A.map((S, q) => {
|
|
1587
|
+
const ge = M.elevation + 5, ue = w(S.x, S.y, ge), Z = yn(S.width, S.depth, S.height, ue.screenX, ue.screenY), X = T?.tier === s && T?.index === q, de = o && T !== null && !X;
|
|
1588
|
+
return /* @__PURE__ */ h.jsx(
|
|
1589
|
+
io,
|
|
1115
1590
|
{
|
|
1116
|
-
uid:
|
|
1117
|
-
style:
|
|
1118
|
-
box:
|
|
1119
|
-
color:
|
|
1120
|
-
tag:
|
|
1121
|
-
selected:
|
|
1122
|
-
opacity: (
|
|
1591
|
+
uid: Y,
|
|
1592
|
+
style: k,
|
|
1593
|
+
box: Z,
|
|
1594
|
+
color: S.color,
|
|
1595
|
+
tag: j.get(y.indexOf(S)),
|
|
1596
|
+
selected: X,
|
|
1597
|
+
opacity: (S.opacity ?? 1) * (de ? 0.3 : 1),
|
|
1123
1598
|
onClick: o ? () => {
|
|
1124
|
-
if (
|
|
1599
|
+
if (H(null), U((we) => we && we.tier === s && we.index === q ? null : { tier: s, index: q }), t?.(S, { tier: s, index: q }), S.link)
|
|
1125
1600
|
try {
|
|
1126
|
-
window.open(
|
|
1601
|
+
window.open(S.link, "_blank");
|
|
1127
1602
|
} catch {
|
|
1128
1603
|
}
|
|
1129
1604
|
} : void 0
|
|
1130
1605
|
},
|
|
1131
|
-
`tech-${
|
|
1606
|
+
`tech-${q}`
|
|
1132
1607
|
);
|
|
1133
1608
|
}),
|
|
1134
|
-
b && c &&
|
|
1135
|
-
const
|
|
1136
|
-
return /* @__PURE__ */
|
|
1137
|
-
|
|
1609
|
+
b && c && A.map((S, q) => {
|
|
1610
|
+
const ge = M.elevation + 5, ue = w(S.x, S.y, ge), Z = yn(S.width, S.depth, S.height, ue.screenX, ue.screenY), X = T?.tier === s && T?.index === q, de = o && T !== null && !X;
|
|
1611
|
+
return /* @__PURE__ */ h.jsx(
|
|
1612
|
+
oo,
|
|
1138
1613
|
{
|
|
1139
|
-
style:
|
|
1140
|
-
box:
|
|
1141
|
-
name:
|
|
1142
|
-
selected:
|
|
1614
|
+
style: k,
|
|
1615
|
+
box: Z,
|
|
1616
|
+
name: S.label,
|
|
1617
|
+
selected: X,
|
|
1143
1618
|
opacity: de ? 0.3 : 1
|
|
1144
1619
|
},
|
|
1145
|
-
`tech-label-${
|
|
1620
|
+
`tech-label-${q}`
|
|
1146
1621
|
);
|
|
1147
1622
|
}),
|
|
1148
|
-
!b &&
|
|
1149
|
-
const
|
|
1150
|
-
return /* @__PURE__ */
|
|
1623
|
+
!b && A.map((S, q) => {
|
|
1624
|
+
const ge = M.elevation + 5, ue = w(S.x, S.y, ge), Z = xe(S.width, S.depth, S.height, ue.screenX, ue.screenY, v), X = C[S.color] || C.slate, de = T?.tier === s && T?.index === q, we = o && T !== null && !de, pn = w(S.x - 3, S.y - 3, M.elevation), Dr = xe(S.width + 6, S.depth + 6, 0, pn.screenX, pn.screenY, v).top;
|
|
1625
|
+
return /* @__PURE__ */ h.jsxs(
|
|
1151
1626
|
"g",
|
|
1152
1627
|
{
|
|
1153
|
-
"data-node": `${
|
|
1154
|
-
opacity: (
|
|
1155
|
-
onClick: o ? (
|
|
1156
|
-
if (
|
|
1628
|
+
"data-node": `${s}-${q}`,
|
|
1629
|
+
opacity: (S.opacity ?? 1) * (we ? 0.3 : 1),
|
|
1630
|
+
onClick: o ? (ne) => {
|
|
1631
|
+
if (ne.stopPropagation(), H(null), U((ie) => ie && ie.tier === s && ie.index === q ? null : { tier: s, index: q }), t?.(S, { tier: s, index: q }), S.link)
|
|
1157
1632
|
try {
|
|
1158
|
-
window.open(
|
|
1633
|
+
window.open(S.link, "_blank");
|
|
1159
1634
|
} catch {
|
|
1160
1635
|
}
|
|
1161
1636
|
} : void 0,
|
|
1162
1637
|
style: { cursor: o ? "pointer" : "default", transition: "opacity 0.3s ease-out" },
|
|
1163
1638
|
children: [
|
|
1164
|
-
/* @__PURE__ */
|
|
1165
|
-
|
|
1639
|
+
/* @__PURE__ */ h.jsx("path", { d: Dr, fill: "#000000", opacity: 0.3, filter: `url(#contact-${e.id})` }),
|
|
1640
|
+
Z.cornerBackRight?.map((ne, ie) => /* @__PURE__ */ h.jsx(
|
|
1166
1641
|
"path",
|
|
1167
1642
|
{
|
|
1168
|
-
d:
|
|
1169
|
-
fill:
|
|
1643
|
+
d: ne.path,
|
|
1644
|
+
fill: Re(X.front, X.side, ne.intensity)
|
|
1170
1645
|
},
|
|
1171
|
-
`cbr-${
|
|
1646
|
+
`cbr-${ie}`
|
|
1172
1647
|
)),
|
|
1173
|
-
|
|
1648
|
+
Z.cornerBackLeft?.map((ne, ie) => /* @__PURE__ */ h.jsx(
|
|
1174
1649
|
"path",
|
|
1175
1650
|
{
|
|
1176
|
-
d:
|
|
1177
|
-
fill:
|
|
1651
|
+
d: ne.path,
|
|
1652
|
+
fill: Re(X.side, X.front, ne.intensity)
|
|
1178
1653
|
},
|
|
1179
|
-
`cbl-${
|
|
1654
|
+
`cbl-${ie}`
|
|
1180
1655
|
)),
|
|
1181
|
-
/* @__PURE__ */
|
|
1182
|
-
/* @__PURE__ */
|
|
1183
|
-
/* @__PURE__ */
|
|
1184
|
-
/* @__PURE__ */
|
|
1185
|
-
|
|
1656
|
+
/* @__PURE__ */ h.jsx("path", { d: Z.left, fill: X.side }),
|
|
1657
|
+
/* @__PURE__ */ h.jsx("path", { d: Z.left, fill: `url(#${E ? "print" : "shade"}-${e.id})` }),
|
|
1658
|
+
/* @__PURE__ */ h.jsx("path", { d: Z.right, fill: X.front }),
|
|
1659
|
+
/* @__PURE__ */ h.jsx("path", { d: Z.right, fill: `url(#${E ? "print" : "shade"}-${e.id})` }),
|
|
1660
|
+
Z.cornerFrontRight?.map((ne, ie) => /* @__PURE__ */ h.jsx(
|
|
1186
1661
|
"path",
|
|
1187
1662
|
{
|
|
1188
|
-
d:
|
|
1189
|
-
fill:
|
|
1663
|
+
d: ne.path,
|
|
1664
|
+
fill: Re(X.front, X.side, ne.intensity)
|
|
1190
1665
|
},
|
|
1191
|
-
`cfr-${
|
|
1666
|
+
`cfr-${ie}`
|
|
1192
1667
|
)),
|
|
1193
|
-
|
|
1668
|
+
Z.cornerFrontLeft?.map((ne, ie) => /* @__PURE__ */ h.jsx(
|
|
1194
1669
|
"path",
|
|
1195
1670
|
{
|
|
1196
|
-
d:
|
|
1197
|
-
fill:
|
|
1671
|
+
d: ne.path,
|
|
1672
|
+
fill: Re(X.front, X.side, ne.intensity)
|
|
1198
1673
|
},
|
|
1199
|
-
`cfl-${
|
|
1674
|
+
`cfl-${ie}`
|
|
1200
1675
|
)),
|
|
1201
|
-
/* @__PURE__ */
|
|
1202
|
-
/* @__PURE__ */
|
|
1203
|
-
/* @__PURE__ */
|
|
1676
|
+
/* @__PURE__ */ h.jsx("path", { d: Z.top, fill: X.top }),
|
|
1677
|
+
/* @__PURE__ */ h.jsx("path", { d: Z.top, fill: `url(#${E ? "print" : "sheen"}-${e.id})` }),
|
|
1678
|
+
/* @__PURE__ */ h.jsx(
|
|
1204
1679
|
"path",
|
|
1205
1680
|
{
|
|
1206
|
-
d:
|
|
1681
|
+
d: Z.top,
|
|
1207
1682
|
fill: "none",
|
|
1208
1683
|
stroke: de ? "#ffffff" : "rgba(255,255,255,0.28)",
|
|
1209
1684
|
strokeWidth: de ? 1.4 : 0.75,
|
|
1210
1685
|
strokeLinejoin: "round"
|
|
1211
1686
|
}
|
|
1212
1687
|
),
|
|
1213
|
-
c &&
|
|
1214
|
-
|
|
1688
|
+
c && S.label && /* @__PURE__ */ h.jsx(
|
|
1689
|
+
co,
|
|
1215
1690
|
{
|
|
1216
|
-
x:
|
|
1217
|
-
y:
|
|
1218
|
-
z:
|
|
1219
|
-
fontSize:
|
|
1220
|
-
color:
|
|
1221
|
-
shadow: `url(#label-${e.id})`,
|
|
1222
|
-
children:
|
|
1691
|
+
x: S.x + S.width / 2,
|
|
1692
|
+
y: S.y + S.depth / 2,
|
|
1693
|
+
z: ge + S.height + 2,
|
|
1694
|
+
fontSize: S.width > 70 ? 9 : 8,
|
|
1695
|
+
color: I,
|
|
1696
|
+
shadow: E ? void 0 : `url(#label-${e.id})`,
|
|
1697
|
+
children: S.label
|
|
1223
1698
|
}
|
|
1224
1699
|
)
|
|
1225
1700
|
]
|
|
1226
1701
|
},
|
|
1227
|
-
|
|
1702
|
+
q
|
|
1228
1703
|
);
|
|
1229
1704
|
}),
|
|
1230
|
-
c && /* @__PURE__ */
|
|
1705
|
+
c && /* @__PURE__ */ h.jsx(
|
|
1231
1706
|
"text",
|
|
1232
1707
|
{
|
|
1233
|
-
x:
|
|
1234
|
-
y:
|
|
1235
|
-
fill:
|
|
1708
|
+
x: w(-25, m.depth / 2, M.elevation + 15).screenX - 35,
|
|
1709
|
+
y: w(-25, m.depth / 2, M.elevation + 15).screenY,
|
|
1710
|
+
fill: B,
|
|
1236
1711
|
fontSize: 9,
|
|
1237
1712
|
fontWeight: 500,
|
|
1238
|
-
fontFamily:
|
|
1713
|
+
fontFamily: Kn,
|
|
1239
1714
|
opacity: b ? 0.9 : 0.6,
|
|
1240
1715
|
style: { letterSpacing: "0.05em", textTransform: b ? "uppercase" : "none" },
|
|
1241
|
-
children:
|
|
1716
|
+
children: M.name
|
|
1242
1717
|
}
|
|
1243
1718
|
)
|
|
1244
1719
|
]
|
|
1245
1720
|
},
|
|
1246
|
-
|
|
1721
|
+
s
|
|
1247
1722
|
);
|
|
1248
1723
|
}) }),
|
|
1249
|
-
b && /* @__PURE__ */
|
|
1250
|
-
|
|
1724
|
+
b && /* @__PURE__ */ h.jsx(
|
|
1725
|
+
ut,
|
|
1251
1726
|
{
|
|
1252
|
-
style:
|
|
1253
|
-
plate:
|
|
1254
|
-
rows: y.map((
|
|
1255
|
-
n:
|
|
1256
|
-
name:
|
|
1257
|
-
subtitle:
|
|
1258
|
-
color:
|
|
1259
|
-
})).sort((
|
|
1727
|
+
style: k,
|
|
1728
|
+
plate: R,
|
|
1729
|
+
rows: y.map((M, s) => ({
|
|
1730
|
+
n: j.get(s) || s + 1,
|
|
1731
|
+
name: M.label,
|
|
1732
|
+
subtitle: x[M.tier]?.name,
|
|
1733
|
+
color: M.color
|
|
1734
|
+
})).sort((M, s) => M.n - s.n),
|
|
1260
1735
|
title: e.title,
|
|
1261
|
-
tally: `${String(y.length).padStart(2, "0")} CMP / ${String(
|
|
1736
|
+
tally: `${String(y.length).padStart(2, "0")} CMP / ${String(x.length).padStart(2, "0")} TIER`,
|
|
1262
1737
|
className: ""
|
|
1263
1738
|
}
|
|
1264
1739
|
)
|
|
@@ -1266,21 +1741,21 @@ function Do({ config: e, options: n = {}, className: r, style: t, onNodeClick: i
|
|
|
1266
1741
|
}
|
|
1267
1742
|
) });
|
|
1268
1743
|
}
|
|
1269
|
-
function
|
|
1270
|
-
const l =
|
|
1271
|
-
return /* @__PURE__ */
|
|
1744
|
+
function fo({ width: e, depth: n, elevation: r, ink: i, isGround: t }) {
|
|
1745
|
+
const l = w(0, 0, r), o = xe(e, n, 0, l.screenX, l.screenY).top;
|
|
1746
|
+
return /* @__PURE__ */ h.jsx(
|
|
1272
1747
|
"path",
|
|
1273
1748
|
{
|
|
1274
1749
|
d: o,
|
|
1275
1750
|
fill: "none",
|
|
1276
|
-
stroke:
|
|
1277
|
-
strokeWidth:
|
|
1278
|
-
strokeDasharray:
|
|
1279
|
-
opacity:
|
|
1751
|
+
stroke: i,
|
|
1752
|
+
strokeWidth: t ? 1 : 0.7,
|
|
1753
|
+
strokeDasharray: t ? void 0 : "5 4",
|
|
1754
|
+
opacity: t ? 0.9 : 0.7
|
|
1280
1755
|
}
|
|
1281
1756
|
);
|
|
1282
1757
|
}
|
|
1283
|
-
const
|
|
1758
|
+
const vn = '"JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace', uo = {
|
|
1284
1759
|
blue: { top: "#3b82f6", side: "#2563eb", front: "#1d4ed8" },
|
|
1285
1760
|
violet: { top: "#8b5cf6", side: "#7c3aed", front: "#6d28d9" },
|
|
1286
1761
|
cyan: { top: "#06b6d4", side: "#0891b2", front: "#0e7490" },
|
|
@@ -1288,7 +1763,7 @@ const gn = '"JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace', si =
|
|
|
1288
1763
|
amber: { top: "#f59e0b", side: "#d97706", front: "#b45309" },
|
|
1289
1764
|
rose: { top: "#f43f5e", side: "#e11d48", front: "#be123c" },
|
|
1290
1765
|
slate: { top: "#475569", side: "#334155", front: "#1e293b" }
|
|
1291
|
-
},
|
|
1766
|
+
}, po = {
|
|
1292
1767
|
blue: { top: "#93c5fd", side: "#60a5fa", front: "#3b82f6" },
|
|
1293
1768
|
violet: { top: "#c4b5fd", side: "#a78bfa", front: "#8b5cf6" },
|
|
1294
1769
|
cyan: { top: "#67e8f9", side: "#22d3ee", front: "#06b6d4" },
|
|
@@ -1297,24 +1772,24 @@ const gn = '"JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace', si =
|
|
|
1297
1772
|
rose: { top: "#fda4af", side: "#fb7185", front: "#f43f5e" },
|
|
1298
1773
|
slate: { top: "#e2e8f0", side: "#cbd5e1", front: "#94a3b8" }
|
|
1299
1774
|
};
|
|
1300
|
-
function
|
|
1301
|
-
const
|
|
1302
|
-
const u =
|
|
1775
|
+
function Pe(e, n, r) {
|
|
1776
|
+
const i = (f) => {
|
|
1777
|
+
const u = f.replace("#", "");
|
|
1303
1778
|
return {
|
|
1304
1779
|
r: parseInt(u.substring(0, 2), 16),
|
|
1305
1780
|
g: parseInt(u.substring(2, 4), 16),
|
|
1306
1781
|
b: parseInt(u.substring(4, 6), 16)
|
|
1307
1782
|
};
|
|
1308
|
-
},
|
|
1783
|
+
}, t = i(e), l = i(n), o = Math.round(t.r + (l.r - t.r) * r), a = Math.round(t.g + (l.g - t.g) * r), c = Math.round(t.b + (l.b - t.b) * r);
|
|
1309
1784
|
return `rgb(${o},${a},${c})`;
|
|
1310
1785
|
}
|
|
1311
|
-
function
|
|
1312
|
-
const { theme: n, canvas: r, origin:
|
|
1313
|
-
const
|
|
1314
|
-
return
|
|
1786
|
+
function ho(e) {
|
|
1787
|
+
const { theme: n, canvas: r, origin: i, tiers: t, floorSize: l, nodes: o, cornerRadius: a = 0 } = e, c = e.material === "retro-print", f = c ? Dn : n === "dark" ? uo : po, u = c ? n === "dark" ? "#202624" : "#f4efe6" : n === "dark" ? "#0f172a" : "#fafafa", d = c ? "#202a29" : n === "dark" ? "#e2e8f0" : "#1e293b", p = c ? n === "dark" ? "#c5c4b7" : "#505b56" : n === "dark" ? "#64748b" : "#94a3b8", x = [...o].sort((y, v) => {
|
|
1788
|
+
const k = t[y.tier]?.elevation || 0, b = t[v.tier]?.elevation || 0;
|
|
1789
|
+
return k !== b ? k - b : v.x + v.width + (v.y + v.depth) - (y.x + y.width + (y.y + y.depth));
|
|
1315
1790
|
});
|
|
1316
|
-
let
|
|
1317
|
-
|
|
1791
|
+
let m = `<svg xmlns="http://www.w3.org/2000/svg" width="${r.width}" height="${r.height}" style="background:${u}">`;
|
|
1792
|
+
m += `<defs>${c ? `<pattern id="print" width="64" height="64" patternUnits="userSpaceOnUse">${Yn.map((y) => `<circle cx="${y.x}" cy="${y.y}" r="${y.r}" fill="#26362e" opacity="0.32"/>`).join("")}</pattern>` : ""}
|
|
1318
1793
|
<pattern id="grid" width="24" height="24" patternUnits="userSpaceOnUse">
|
|
1319
1794
|
<circle cx="12" cy="12" r="0.5" fill="${n === "dark" ? "#1e293b" : "#e2e8f0"}"/>
|
|
1320
1795
|
</pattern>
|
|
@@ -1327,131 +1802,131 @@ function ui(e) {
|
|
|
1327
1802
|
<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>
|
|
1328
1803
|
<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>
|
|
1329
1804
|
<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>
|
|
1330
|
-
</defs>`,
|
|
1331
|
-
for (let
|
|
1332
|
-
const
|
|
1333
|
-
|
|
1334
|
-
const
|
|
1335
|
-
|
|
1336
|
-
for (const
|
|
1337
|
-
const
|
|
1338
|
-
|
|
1339
|
-
const
|
|
1340
|
-
if (
|
|
1341
|
-
for (const T of
|
|
1342
|
-
|
|
1343
|
-
if (
|
|
1344
|
-
for (const T of
|
|
1345
|
-
|
|
1346
|
-
if (
|
|
1347
|
-
for (const T of
|
|
1348
|
-
|
|
1349
|
-
if (
|
|
1350
|
-
for (const T of
|
|
1351
|
-
|
|
1352
|
-
if (
|
|
1353
|
-
const T =
|
|
1354
|
-
|
|
1805
|
+
</defs>`, m += `<rect width="100%" height="100%" fill="${c ? u : "url(#bg)"}"/>`, m += '<rect width="100%" height="100%" fill="url(#grid)" opacity="0.5"/>', m += `<g transform="translate(${i.x},${i.y})">`;
|
|
1806
|
+
for (let y = 0; y < t.length; y++) {
|
|
1807
|
+
const v = t[y], k = x.filter((j) => j.tier === y), b = v.offset || { x: 0, y: 0 };
|
|
1808
|
+
m += `<g transform="translate(${b.x},${b.y})">`;
|
|
1809
|
+
const Y = y === 0 ? 8 : 2, E = xe(l.width, l.depth, Y, 0, 0), C = w(0, 0, y === 0 ? -2 : v.elevation), N = v.floorColor || (n === "dark" ? "#0f172a" : "#f8fafc"), I = v.floorOpacity || (y === 0 ? 0.95 : 0.5);
|
|
1810
|
+
m += `<g transform="translate(${C.screenX},${C.screenY})">`, y === 0 && (m += `<g transform="translate(4,4)" opacity="0.2"><path d="${E.top}" fill="#000"/></g>`), m += `<path d="${E.top}" fill="${N}" opacity="${I}"/>`, y === 0 && (m += `<path d="${E.left}" fill="${n === "dark" ? "#0f172a" : "#cbd5e1"}" opacity="0.8"/>`, m += `<path d="${E.right}" fill="${n === "dark" ? "#1e293b" : "#94a3b8"}" opacity="0.8"/>`), m += `<path d="${E.top}" fill="none" stroke="${v.borderColor || (n === "dark" ? "#475569" : "#94a3b8")}" stroke-width="${y === 0 ? 1.5 : 0.75}" opacity="${y === 0 ? 1 : 0.6}"/>`, m += "</g>";
|
|
1811
|
+
for (const j of k) {
|
|
1812
|
+
const R = v.elevation + 5, ee = w(j.x, j.y, R), L = xe(j.width, j.depth, j.height, ee.screenX, ee.screenY, a), D = f[j.color] || f.slate, re = j.opacity ?? 1;
|
|
1813
|
+
m += `<g opacity="${re}">`;
|
|
1814
|
+
const K = w(j.x - 3, j.y - 3, v.elevation), H = xe(j.width + 6, j.depth + 6, 0, K.screenX, K.screenY, a).top;
|
|
1815
|
+
if (m += `<path d="${H}" fill="#000000" opacity="0.3" filter="url(#contact)"/>`, L.cornerBackRight)
|
|
1816
|
+
for (const T of L.cornerBackRight)
|
|
1817
|
+
m += `<path d="${T.path}" fill="${Pe(D.front, D.side, T.intensity)}"/>`;
|
|
1818
|
+
if (L.cornerBackLeft)
|
|
1819
|
+
for (const T of L.cornerBackLeft)
|
|
1820
|
+
m += `<path d="${T.path}" fill="${Pe(D.side, D.front, T.intensity)}"/>`;
|
|
1821
|
+
if (m += `<path d="${L.left}" fill="${D.side}"/>`, m += `<path d="${L.left}" fill="url(#${c ? "print" : "shade"})"/>`, m += `<path d="${L.right}" fill="${D.front}"/>`, m += `<path d="${L.right}" fill="url(#${c ? "print" : "shade"})"/>`, L.cornerFrontRight)
|
|
1822
|
+
for (const T of L.cornerFrontRight)
|
|
1823
|
+
m += `<path d="${T.path}" fill="${Pe(D.front, D.side, T.intensity)}"/>`;
|
|
1824
|
+
if (L.cornerFrontLeft)
|
|
1825
|
+
for (const T of L.cornerFrontLeft)
|
|
1826
|
+
m += `<path d="${T.path}" fill="${Pe(D.front, D.side, T.intensity)}"/>`;
|
|
1827
|
+
if (m += `<path d="${L.top}" fill="${D.top}"/>`, m += `<path d="${L.top}" fill="url(#${c ? "print" : "sheen"})"/>`, m += `<path d="${L.top}" fill="none" stroke="rgba(255,255,255,0.28)" stroke-width="0.75" stroke-linejoin="round"/>`, j.label) {
|
|
1828
|
+
const T = w(j.x + j.width / 2, j.y + j.depth / 2, R + j.height + 2), U = j.width > 70 ? 9 : 8;
|
|
1829
|
+
m += `<g transform="translate(${T.screenX},${T.screenY})" filter="${c ? "none" : "url(#labelshadow)"}">`, m += '<g transform="matrix(0.866,-0.5,0.866,0.5,0,0)">', m += `<text x="0" y="0" text-anchor="middle" fill="${d}" font-size="${U}" font-weight="600" font-family='${vn}' style="text-transform:uppercase;letter-spacing:0.06em">${j.label}</text>`, m += "</g></g>";
|
|
1355
1830
|
}
|
|
1356
|
-
|
|
1831
|
+
m += "</g>";
|
|
1357
1832
|
}
|
|
1358
|
-
const
|
|
1359
|
-
|
|
1833
|
+
const B = w(-25, l.depth / 2, v.elevation + 15);
|
|
1834
|
+
m += `<text x="${B.screenX - 35}" y="${B.screenY}" fill="${p}" font-size="9" font-weight="500" font-family='${vn}' opacity="0.6" style="letter-spacing:0.05em">${v.name}</text>`, m += "</g>";
|
|
1360
1835
|
}
|
|
1361
|
-
return
|
|
1836
|
+
return m += "</g></svg>", m;
|
|
1362
1837
|
}
|
|
1363
|
-
function
|
|
1364
|
-
e.innerHTML =
|
|
1838
|
+
function Ha(e, n) {
|
|
1839
|
+
e.innerHTML = ho(n);
|
|
1365
1840
|
}
|
|
1366
|
-
function
|
|
1841
|
+
function Vn(e) {
|
|
1367
1842
|
return typeof e > "u" || e === null;
|
|
1368
1843
|
}
|
|
1369
|
-
function
|
|
1844
|
+
function xo(e) {
|
|
1370
1845
|
return typeof e == "object" && e !== null;
|
|
1371
1846
|
}
|
|
1372
|
-
function
|
|
1373
|
-
return Array.isArray(e) ? e :
|
|
1847
|
+
function mo(e) {
|
|
1848
|
+
return Array.isArray(e) ? e : Vn(e) ? [] : [e];
|
|
1374
1849
|
}
|
|
1375
|
-
function
|
|
1376
|
-
var r,
|
|
1850
|
+
function yo(e, n) {
|
|
1851
|
+
var r, i, t, l;
|
|
1377
1852
|
if (n)
|
|
1378
|
-
for (l = Object.keys(n), r = 0,
|
|
1379
|
-
|
|
1853
|
+
for (l = Object.keys(n), r = 0, i = l.length; r < i; r += 1)
|
|
1854
|
+
t = l[r], e[t] = n[t];
|
|
1380
1855
|
return e;
|
|
1381
1856
|
}
|
|
1382
|
-
function
|
|
1383
|
-
var r = "",
|
|
1384
|
-
for (
|
|
1857
|
+
function go(e, n) {
|
|
1858
|
+
var r = "", i;
|
|
1859
|
+
for (i = 0; i < n; i += 1)
|
|
1385
1860
|
r += e;
|
|
1386
1861
|
return r;
|
|
1387
1862
|
}
|
|
1388
|
-
function
|
|
1863
|
+
function ko(e) {
|
|
1389
1864
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
1390
1865
|
}
|
|
1391
|
-
var
|
|
1392
|
-
isNothing:
|
|
1393
|
-
isObject:
|
|
1394
|
-
toArray:
|
|
1395
|
-
repeat:
|
|
1396
|
-
isNegativeZero:
|
|
1397
|
-
extend:
|
|
1866
|
+
var vo = Vn, bo = xo, Ao = mo, _o = go, wo = ko, Co = yo, z = {
|
|
1867
|
+
isNothing: vo,
|
|
1868
|
+
isObject: bo,
|
|
1869
|
+
toArray: Ao,
|
|
1870
|
+
repeat: _o,
|
|
1871
|
+
isNegativeZero: wo,
|
|
1872
|
+
extend: Co
|
|
1398
1873
|
};
|
|
1399
|
-
function
|
|
1400
|
-
var r = "",
|
|
1874
|
+
function Zn(e, n) {
|
|
1875
|
+
var r = "", i = e.reason || "(unknown reason)";
|
|
1401
1876
|
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 += `
|
|
1402
1877
|
|
|
1403
|
-
` + e.mark.snippet),
|
|
1878
|
+
` + e.mark.snippet), i + " " + r) : i;
|
|
1404
1879
|
}
|
|
1405
1880
|
function Te(e, n) {
|
|
1406
|
-
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = n, this.message =
|
|
1881
|
+
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = n, this.message = Zn(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
|
|
1407
1882
|
}
|
|
1408
1883
|
Te.prototype = Object.create(Error.prototype);
|
|
1409
1884
|
Te.prototype.constructor = Te;
|
|
1410
1885
|
Te.prototype.toString = function(n) {
|
|
1411
|
-
return this.name + ": " +
|
|
1886
|
+
return this.name + ": " + Zn(this, n);
|
|
1412
1887
|
};
|
|
1413
|
-
var
|
|
1414
|
-
function
|
|
1415
|
-
var l = "", o = "", a = Math.floor(
|
|
1416
|
-
return
|
|
1888
|
+
var J = Te;
|
|
1889
|
+
function qe(e, n, r, i, t) {
|
|
1890
|
+
var l = "", o = "", a = Math.floor(t / 2) - 1;
|
|
1891
|
+
return i - n > a && (l = " ... ", n = i - a + l.length), r - i > a && (o = " ...", r = i + a - o.length), {
|
|
1417
1892
|
str: l + e.slice(n, r).replace(/\t/g, "→") + o,
|
|
1418
|
-
pos:
|
|
1893
|
+
pos: i - n + l.length
|
|
1419
1894
|
// relative position
|
|
1420
1895
|
};
|
|
1421
1896
|
}
|
|
1422
|
-
function
|
|
1423
|
-
return
|
|
1897
|
+
function Xe(e, n) {
|
|
1898
|
+
return z.repeat(" ", n - e.length) + e;
|
|
1424
1899
|
}
|
|
1425
|
-
function
|
|
1900
|
+
function $o(e, n) {
|
|
1426
1901
|
if (n = Object.create(n || null), !e.buffer) return null;
|
|
1427
1902
|
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);
|
|
1428
|
-
for (var r = /\r?\n|\r|\0/g,
|
|
1429
|
-
|
|
1430
|
-
o < 0 && (o =
|
|
1431
|
-
var a = "", c,
|
|
1903
|
+
for (var r = /\r?\n|\r|\0/g, i = [0], t = [], l, o = -1; l = r.exec(e.buffer); )
|
|
1904
|
+
t.push(l.index), i.push(l.index + l[0].length), e.position <= l.index && o < 0 && (o = i.length - 2);
|
|
1905
|
+
o < 0 && (o = i.length - 1);
|
|
1906
|
+
var a = "", c, f, u = Math.min(e.line + n.linesAfter, t.length).toString().length, d = n.maxLength - (n.indent + u + 3);
|
|
1432
1907
|
for (c = 1; c <= n.linesBefore && !(o - c < 0); c++)
|
|
1433
|
-
|
|
1908
|
+
f = qe(
|
|
1434
1909
|
e.buffer,
|
|
1435
|
-
t[o - c],
|
|
1436
1910
|
i[o - c],
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1911
|
+
t[o - c],
|
|
1912
|
+
e.position - (i[o] - i[o - c]),
|
|
1913
|
+
d
|
|
1914
|
+
), a = z.repeat(" ", n.indent) + Xe((e.line - c + 1).toString(), u) + " | " + f.str + `
|
|
1440
1915
|
` + a;
|
|
1441
|
-
for (
|
|
1442
|
-
`, a +=
|
|
1443
|
-
`, c = 1; c <= n.linesAfter && !(o + c >=
|
|
1444
|
-
|
|
1916
|
+
for (f = qe(e.buffer, i[o], t[o], e.position, d), a += z.repeat(" ", n.indent) + Xe((e.line + 1).toString(), u) + " | " + f.str + `
|
|
1917
|
+
`, a += z.repeat("-", n.indent + u + 3 + f.pos) + `^
|
|
1918
|
+
`, c = 1; c <= n.linesAfter && !(o + c >= t.length); c++)
|
|
1919
|
+
f = qe(
|
|
1445
1920
|
e.buffer,
|
|
1446
|
-
t[o + c],
|
|
1447
1921
|
i[o + c],
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1922
|
+
t[o + c],
|
|
1923
|
+
e.position - (i[o] - i[o + c]),
|
|
1924
|
+
d
|
|
1925
|
+
), a += z.repeat(" ", n.indent) + Xe((e.line + c + 1).toString(), u) + " | " + f.str + `
|
|
1451
1926
|
`;
|
|
1452
1927
|
return a.replace(/\n$/, "");
|
|
1453
1928
|
}
|
|
1454
|
-
var
|
|
1929
|
+
var So = $o, Eo = [
|
|
1455
1930
|
"kind",
|
|
1456
1931
|
"multi",
|
|
1457
1932
|
"resolve",
|
|
@@ -1462,41 +1937,41 @@ var Si = Ci, Ei = [
|
|
|
1462
1937
|
"representName",
|
|
1463
1938
|
"defaultStyle",
|
|
1464
1939
|
"styleAliases"
|
|
1465
|
-
],
|
|
1940
|
+
], To = [
|
|
1466
1941
|
"scalar",
|
|
1467
1942
|
"sequence",
|
|
1468
1943
|
"mapping"
|
|
1469
1944
|
];
|
|
1470
|
-
function
|
|
1945
|
+
function Mo(e) {
|
|
1471
1946
|
var n = {};
|
|
1472
1947
|
return e !== null && Object.keys(e).forEach(function(r) {
|
|
1473
|
-
e[r].forEach(function(
|
|
1474
|
-
n[String(
|
|
1948
|
+
e[r].forEach(function(i) {
|
|
1949
|
+
n[String(i)] = r;
|
|
1475
1950
|
});
|
|
1476
1951
|
}), n;
|
|
1477
1952
|
}
|
|
1478
|
-
function
|
|
1953
|
+
function jo(e, n) {
|
|
1479
1954
|
if (n = n || {}, Object.keys(n).forEach(function(r) {
|
|
1480
|
-
if (
|
|
1481
|
-
throw new
|
|
1955
|
+
if (Eo.indexOf(r) === -1)
|
|
1956
|
+
throw new J('Unknown option "' + r + '" is met in definition of "' + e + '" YAML type.');
|
|
1482
1957
|
}), this.options = n, this.tag = e, this.kind = n.kind || null, this.resolve = n.resolve || function() {
|
|
1483
1958
|
return !0;
|
|
1484
1959
|
}, this.construct = n.construct || function(r) {
|
|
1485
1960
|
return r;
|
|
1486
|
-
}, 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 =
|
|
1487
|
-
throw new
|
|
1961
|
+
}, 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 = Mo(n.styleAliases || null), To.indexOf(this.kind) === -1)
|
|
1962
|
+
throw new J('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
1488
1963
|
}
|
|
1489
|
-
var
|
|
1490
|
-
function
|
|
1964
|
+
var G = jo;
|
|
1965
|
+
function bn(e, n) {
|
|
1491
1966
|
var r = [];
|
|
1492
|
-
return e[n].forEach(function(
|
|
1493
|
-
var
|
|
1967
|
+
return e[n].forEach(function(i) {
|
|
1968
|
+
var t = r.length;
|
|
1494
1969
|
r.forEach(function(l, o) {
|
|
1495
|
-
l.tag ===
|
|
1496
|
-
}), r[
|
|
1970
|
+
l.tag === i.tag && l.kind === i.kind && l.multi === i.multi && (t = o);
|
|
1971
|
+
}), r[t] = i;
|
|
1497
1972
|
}), r;
|
|
1498
1973
|
}
|
|
1499
|
-
function
|
|
1974
|
+
function Oo() {
|
|
1500
1975
|
var e = {
|
|
1501
1976
|
scalar: {},
|
|
1502
1977
|
sequence: {},
|
|
@@ -1509,78 +1984,78 @@ function $i() {
|
|
|
1509
1984
|
fallback: []
|
|
1510
1985
|
}
|
|
1511
1986
|
}, n, r;
|
|
1512
|
-
function t
|
|
1513
|
-
|
|
1987
|
+
function i(t) {
|
|
1988
|
+
t.multi ? (e.multi[t.kind].push(t), e.multi.fallback.push(t)) : e[t.kind][t.tag] = e.fallback[t.tag] = t;
|
|
1514
1989
|
}
|
|
1515
1990
|
for (n = 0, r = arguments.length; n < r; n += 1)
|
|
1516
|
-
arguments[n].forEach(
|
|
1991
|
+
arguments[n].forEach(i);
|
|
1517
1992
|
return e;
|
|
1518
1993
|
}
|
|
1519
|
-
function
|
|
1994
|
+
function Ve(e) {
|
|
1520
1995
|
return this.extend(e);
|
|
1521
1996
|
}
|
|
1522
|
-
|
|
1523
|
-
var r = [],
|
|
1524
|
-
if (n instanceof
|
|
1525
|
-
|
|
1997
|
+
Ve.prototype.extend = function(n) {
|
|
1998
|
+
var r = [], i = [];
|
|
1999
|
+
if (n instanceof G)
|
|
2000
|
+
i.push(n);
|
|
1526
2001
|
else if (Array.isArray(n))
|
|
1527
|
-
|
|
2002
|
+
i = i.concat(n);
|
|
1528
2003
|
else if (n && (Array.isArray(n.implicit) || Array.isArray(n.explicit)))
|
|
1529
|
-
n.implicit && (r = r.concat(n.implicit)), n.explicit && (
|
|
2004
|
+
n.implicit && (r = r.concat(n.implicit)), n.explicit && (i = i.concat(n.explicit));
|
|
1530
2005
|
else
|
|
1531
|
-
throw new
|
|
2006
|
+
throw new J("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
1532
2007
|
r.forEach(function(l) {
|
|
1533
|
-
if (!(l instanceof
|
|
1534
|
-
throw new
|
|
2008
|
+
if (!(l instanceof G))
|
|
2009
|
+
throw new J("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1535
2010
|
if (l.loadKind && l.loadKind !== "scalar")
|
|
1536
|
-
throw new
|
|
2011
|
+
throw new J("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
1537
2012
|
if (l.multi)
|
|
1538
|
-
throw new
|
|
1539
|
-
}),
|
|
1540
|
-
if (!(l instanceof
|
|
1541
|
-
throw new
|
|
2013
|
+
throw new J("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
2014
|
+
}), i.forEach(function(l) {
|
|
2015
|
+
if (!(l instanceof G))
|
|
2016
|
+
throw new J("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1542
2017
|
});
|
|
1543
|
-
var
|
|
1544
|
-
return
|
|
2018
|
+
var t = Object.create(Ve.prototype);
|
|
2019
|
+
return t.implicit = (this.implicit || []).concat(r), t.explicit = (this.explicit || []).concat(i), t.compiledImplicit = bn(t, "implicit"), t.compiledExplicit = bn(t, "explicit"), t.compiledTypeMap = Oo(t.compiledImplicit, t.compiledExplicit), t;
|
|
1545
2020
|
};
|
|
1546
|
-
var
|
|
2021
|
+
var Jn = Ve, Qn = new G("tag:yaml.org,2002:str", {
|
|
1547
2022
|
kind: "scalar",
|
|
1548
2023
|
construct: function(e) {
|
|
1549
2024
|
return e !== null ? e : "";
|
|
1550
2025
|
}
|
|
1551
|
-
}),
|
|
2026
|
+
}), er = new G("tag:yaml.org,2002:seq", {
|
|
1552
2027
|
kind: "sequence",
|
|
1553
2028
|
construct: function(e) {
|
|
1554
2029
|
return e !== null ? e : [];
|
|
1555
2030
|
}
|
|
1556
|
-
}),
|
|
2031
|
+
}), nr = new G("tag:yaml.org,2002:map", {
|
|
1557
2032
|
kind: "mapping",
|
|
1558
2033
|
construct: function(e) {
|
|
1559
2034
|
return e !== null ? e : {};
|
|
1560
2035
|
}
|
|
1561
|
-
}),
|
|
2036
|
+
}), rr = new Jn({
|
|
1562
2037
|
explicit: [
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
2038
|
+
Qn,
|
|
2039
|
+
er,
|
|
2040
|
+
nr
|
|
1566
2041
|
]
|
|
1567
2042
|
});
|
|
1568
|
-
function
|
|
2043
|
+
function No(e) {
|
|
1569
2044
|
if (e === null) return !0;
|
|
1570
2045
|
var n = e.length;
|
|
1571
2046
|
return n === 1 && e === "~" || n === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
1572
2047
|
}
|
|
1573
|
-
function
|
|
2048
|
+
function Lo() {
|
|
1574
2049
|
return null;
|
|
1575
2050
|
}
|
|
1576
|
-
function
|
|
2051
|
+
function Fo(e) {
|
|
1577
2052
|
return e === null;
|
|
1578
2053
|
}
|
|
1579
|
-
var
|
|
2054
|
+
var tr = new G("tag:yaml.org,2002:null", {
|
|
1580
2055
|
kind: "scalar",
|
|
1581
|
-
resolve:
|
|
1582
|
-
construct:
|
|
1583
|
-
predicate:
|
|
2056
|
+
resolve: No,
|
|
2057
|
+
construct: Lo,
|
|
2058
|
+
predicate: Fo,
|
|
1584
2059
|
represent: {
|
|
1585
2060
|
canonical: function() {
|
|
1586
2061
|
return "~";
|
|
@@ -1600,22 +2075,22 @@ var Kn = new z("tag:yaml.org,2002:null", {
|
|
|
1600
2075
|
},
|
|
1601
2076
|
defaultStyle: "lowercase"
|
|
1602
2077
|
});
|
|
1603
|
-
function
|
|
2078
|
+
function Io(e) {
|
|
1604
2079
|
if (e === null) return !1;
|
|
1605
2080
|
var n = e.length;
|
|
1606
2081
|
return n === 4 && (e === "true" || e === "True" || e === "TRUE") || n === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
1607
2082
|
}
|
|
1608
|
-
function
|
|
2083
|
+
function Ro(e) {
|
|
1609
2084
|
return e === "true" || e === "True" || e === "TRUE";
|
|
1610
2085
|
}
|
|
1611
|
-
function
|
|
2086
|
+
function Po(e) {
|
|
1612
2087
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
1613
2088
|
}
|
|
1614
|
-
var
|
|
2089
|
+
var ir = new G("tag:yaml.org,2002:bool", {
|
|
1615
2090
|
kind: "scalar",
|
|
1616
|
-
resolve:
|
|
1617
|
-
construct:
|
|
1618
|
-
predicate:
|
|
2091
|
+
resolve: Io,
|
|
2092
|
+
construct: Ro,
|
|
2093
|
+
predicate: Po,
|
|
1619
2094
|
represent: {
|
|
1620
2095
|
lowercase: function(e) {
|
|
1621
2096
|
return e ? "true" : "false";
|
|
@@ -1629,73 +2104,73 @@ var Vn = new z("tag:yaml.org,2002:bool", {
|
|
|
1629
2104
|
},
|
|
1630
2105
|
defaultStyle: "lowercase"
|
|
1631
2106
|
});
|
|
1632
|
-
function
|
|
2107
|
+
function Do(e) {
|
|
1633
2108
|
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
1634
2109
|
}
|
|
1635
|
-
function
|
|
2110
|
+
function Yo(e) {
|
|
1636
2111
|
return 48 <= e && e <= 55;
|
|
1637
2112
|
}
|
|
1638
|
-
function
|
|
2113
|
+
function Bo(e) {
|
|
1639
2114
|
return 48 <= e && e <= 57;
|
|
1640
2115
|
}
|
|
1641
|
-
function
|
|
2116
|
+
function Ho(e) {
|
|
1642
2117
|
if (e === null) return !1;
|
|
1643
|
-
var n = e.length, r = 0,
|
|
2118
|
+
var n = e.length, r = 0, i = !1, t;
|
|
1644
2119
|
if (!n) return !1;
|
|
1645
|
-
if (
|
|
2120
|
+
if (t = e[r], (t === "-" || t === "+") && (t = e[++r]), t === "0") {
|
|
1646
2121
|
if (r + 1 === n) return !0;
|
|
1647
|
-
if (
|
|
2122
|
+
if (t = e[++r], t === "b") {
|
|
1648
2123
|
for (r++; r < n; r++)
|
|
1649
|
-
if (
|
|
1650
|
-
if (
|
|
1651
|
-
|
|
2124
|
+
if (t = e[r], t !== "_") {
|
|
2125
|
+
if (t !== "0" && t !== "1") return !1;
|
|
2126
|
+
i = !0;
|
|
1652
2127
|
}
|
|
1653
|
-
return
|
|
2128
|
+
return i && t !== "_";
|
|
1654
2129
|
}
|
|
1655
|
-
if (
|
|
2130
|
+
if (t === "x") {
|
|
1656
2131
|
for (r++; r < n; r++)
|
|
1657
|
-
if (
|
|
1658
|
-
if (!
|
|
1659
|
-
|
|
2132
|
+
if (t = e[r], t !== "_") {
|
|
2133
|
+
if (!Do(e.charCodeAt(r))) return !1;
|
|
2134
|
+
i = !0;
|
|
1660
2135
|
}
|
|
1661
|
-
return
|
|
2136
|
+
return i && t !== "_";
|
|
1662
2137
|
}
|
|
1663
|
-
if (
|
|
2138
|
+
if (t === "o") {
|
|
1664
2139
|
for (r++; r < n; r++)
|
|
1665
|
-
if (
|
|
1666
|
-
if (!
|
|
1667
|
-
|
|
2140
|
+
if (t = e[r], t !== "_") {
|
|
2141
|
+
if (!Yo(e.charCodeAt(r))) return !1;
|
|
2142
|
+
i = !0;
|
|
1668
2143
|
}
|
|
1669
|
-
return
|
|
2144
|
+
return i && t !== "_";
|
|
1670
2145
|
}
|
|
1671
2146
|
}
|
|
1672
|
-
if (
|
|
2147
|
+
if (t === "_") return !1;
|
|
1673
2148
|
for (; r < n; r++)
|
|
1674
|
-
if (
|
|
1675
|
-
if (!
|
|
2149
|
+
if (t = e[r], t !== "_") {
|
|
2150
|
+
if (!Bo(e.charCodeAt(r)))
|
|
1676
2151
|
return !1;
|
|
1677
|
-
|
|
2152
|
+
i = !0;
|
|
1678
2153
|
}
|
|
1679
|
-
return !(!
|
|
2154
|
+
return !(!i || t === "_");
|
|
1680
2155
|
}
|
|
1681
|
-
function
|
|
1682
|
-
var n = e, r = 1,
|
|
1683
|
-
if (n.indexOf("_") !== -1 && (n = n.replace(/_/g, "")),
|
|
1684
|
-
if (
|
|
2156
|
+
function Wo(e) {
|
|
2157
|
+
var n = e, r = 1, i;
|
|
2158
|
+
if (n.indexOf("_") !== -1 && (n = n.replace(/_/g, "")), i = n[0], (i === "-" || i === "+") && (i === "-" && (r = -1), n = n.slice(1), i = n[0]), n === "0") return 0;
|
|
2159
|
+
if (i === "0") {
|
|
1685
2160
|
if (n[1] === "b") return r * parseInt(n.slice(2), 2);
|
|
1686
2161
|
if (n[1] === "x") return r * parseInt(n.slice(2), 16);
|
|
1687
2162
|
if (n[1] === "o") return r * parseInt(n.slice(2), 8);
|
|
1688
2163
|
}
|
|
1689
2164
|
return r * parseInt(n, 10);
|
|
1690
2165
|
}
|
|
1691
|
-
function
|
|
1692
|
-
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !
|
|
2166
|
+
function Uo(e) {
|
|
2167
|
+
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !z.isNegativeZero(e);
|
|
1693
2168
|
}
|
|
1694
|
-
var
|
|
2169
|
+
var or = new G("tag:yaml.org,2002:int", {
|
|
1695
2170
|
kind: "scalar",
|
|
1696
|
-
resolve:
|
|
1697
|
-
construct:
|
|
1698
|
-
predicate:
|
|
2171
|
+
resolve: Ho,
|
|
2172
|
+
construct: Wo,
|
|
2173
|
+
predicate: Uo,
|
|
1699
2174
|
represent: {
|
|
1700
2175
|
binary: function(e) {
|
|
1701
2176
|
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
@@ -1718,21 +2193,21 @@ var Zn = new z("tag:yaml.org,2002:int", {
|
|
|
1718
2193
|
decimal: [10, "dec"],
|
|
1719
2194
|
hexadecimal: [16, "hex"]
|
|
1720
2195
|
}
|
|
1721
|
-
}),
|
|
2196
|
+
}), zo = new RegExp(
|
|
1722
2197
|
// 2.5e4, 2.5 and integers
|
|
1723
2198
|
"^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
|
|
1724
2199
|
);
|
|
1725
|
-
function
|
|
1726
|
-
return !(e === null || !
|
|
2200
|
+
function qo(e) {
|
|
2201
|
+
return !(e === null || !zo.test(e) || // Quick hack to not allow integers end with `_`
|
|
1727
2202
|
// Probably should update regexp & check speed
|
|
1728
2203
|
e[e.length - 1] === "_");
|
|
1729
2204
|
}
|
|
1730
|
-
function
|
|
2205
|
+
function Xo(e) {
|
|
1731
2206
|
var n, r;
|
|
1732
2207
|
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);
|
|
1733
2208
|
}
|
|
1734
|
-
var
|
|
1735
|
-
function
|
|
2209
|
+
var Go = /^[-+]?[0-9]+e/;
|
|
2210
|
+
function Ko(e, n) {
|
|
1736
2211
|
var r;
|
|
1737
2212
|
if (isNaN(e))
|
|
1738
2213
|
switch (n) {
|
|
@@ -1761,104 +2236,104 @@ function Gi(e, n) {
|
|
|
1761
2236
|
case "camelcase":
|
|
1762
2237
|
return "-.Inf";
|
|
1763
2238
|
}
|
|
1764
|
-
else if (
|
|
2239
|
+
else if (z.isNegativeZero(e))
|
|
1765
2240
|
return "-0.0";
|
|
1766
|
-
return r = e.toString(10),
|
|
2241
|
+
return r = e.toString(10), Go.test(r) ? r.replace("e", ".e") : r;
|
|
1767
2242
|
}
|
|
1768
|
-
function
|
|
1769
|
-
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 ||
|
|
2243
|
+
function Vo(e) {
|
|
2244
|
+
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || z.isNegativeZero(e));
|
|
1770
2245
|
}
|
|
1771
|
-
var
|
|
2246
|
+
var lr = new G("tag:yaml.org,2002:float", {
|
|
1772
2247
|
kind: "scalar",
|
|
1773
|
-
resolve:
|
|
1774
|
-
construct:
|
|
1775
|
-
predicate:
|
|
1776
|
-
represent:
|
|
2248
|
+
resolve: qo,
|
|
2249
|
+
construct: Xo,
|
|
2250
|
+
predicate: Vo,
|
|
2251
|
+
represent: Ko,
|
|
1777
2252
|
defaultStyle: "lowercase"
|
|
1778
|
-
}),
|
|
2253
|
+
}), ar = rr.extend({
|
|
1779
2254
|
implicit: [
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
2255
|
+
tr,
|
|
2256
|
+
ir,
|
|
2257
|
+
or,
|
|
2258
|
+
lr
|
|
1784
2259
|
]
|
|
1785
|
-
}),
|
|
2260
|
+
}), cr = ar, sr = new RegExp(
|
|
1786
2261
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
|
|
1787
|
-
),
|
|
2262
|
+
), fr = new RegExp(
|
|
1788
2263
|
"^([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]))?))?$"
|
|
1789
2264
|
);
|
|
1790
|
-
function
|
|
1791
|
-
return e === null ? !1 :
|
|
1792
|
-
}
|
|
1793
|
-
function
|
|
1794
|
-
var n, r,
|
|
1795
|
-
if (n =
|
|
1796
|
-
if (r = +n[1],
|
|
1797
|
-
return new Date(Date.UTC(r,
|
|
2265
|
+
function Zo(e) {
|
|
2266
|
+
return e === null ? !1 : sr.exec(e) !== null || fr.exec(e) !== null;
|
|
2267
|
+
}
|
|
2268
|
+
function Jo(e) {
|
|
2269
|
+
var n, r, i, t, l, o, a, c = 0, f = null, u, d, p;
|
|
2270
|
+
if (n = sr.exec(e), n === null && (n = fr.exec(e)), n === null) throw new Error("Date resolve error");
|
|
2271
|
+
if (r = +n[1], i = +n[2] - 1, t = +n[3], !n[4])
|
|
2272
|
+
return new Date(Date.UTC(r, i, t));
|
|
1798
2273
|
if (l = +n[4], o = +n[5], a = +n[6], n[7]) {
|
|
1799
2274
|
for (c = n[7].slice(0, 3); c.length < 3; )
|
|
1800
2275
|
c += "0";
|
|
1801
2276
|
c = +c;
|
|
1802
2277
|
}
|
|
1803
|
-
return n[9] && (u = +n[10],
|
|
2278
|
+
return n[9] && (u = +n[10], d = +(n[11] || 0), f = (u * 60 + d) * 6e4, n[9] === "-" && (f = -f)), p = new Date(Date.UTC(r, i, t, l, o, a, c)), f && p.setTime(p.getTime() - f), p;
|
|
1804
2279
|
}
|
|
1805
|
-
function
|
|
2280
|
+
function Qo(e) {
|
|
1806
2281
|
return e.toISOString();
|
|
1807
2282
|
}
|
|
1808
|
-
var
|
|
2283
|
+
var ur = new G("tag:yaml.org,2002:timestamp", {
|
|
1809
2284
|
kind: "scalar",
|
|
1810
|
-
resolve:
|
|
1811
|
-
construct:
|
|
2285
|
+
resolve: Zo,
|
|
2286
|
+
construct: Jo,
|
|
1812
2287
|
instanceOf: Date,
|
|
1813
|
-
represent:
|
|
2288
|
+
represent: Qo
|
|
1814
2289
|
});
|
|
1815
|
-
function
|
|
2290
|
+
function el(e) {
|
|
1816
2291
|
return e === "<<" || e === null;
|
|
1817
2292
|
}
|
|
1818
|
-
var
|
|
2293
|
+
var pr = new G("tag:yaml.org,2002:merge", {
|
|
1819
2294
|
kind: "scalar",
|
|
1820
|
-
resolve:
|
|
1821
|
-
}),
|
|
2295
|
+
resolve: el
|
|
2296
|
+
}), on = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
1822
2297
|
\r`;
|
|
1823
|
-
function
|
|
2298
|
+
function nl(e) {
|
|
1824
2299
|
if (e === null) return !1;
|
|
1825
|
-
var n, r,
|
|
1826
|
-
for (r = 0; r <
|
|
2300
|
+
var n, r, i = 0, t = e.length, l = on;
|
|
2301
|
+
for (r = 0; r < t; r++)
|
|
1827
2302
|
if (n = l.indexOf(e.charAt(r)), !(n > 64)) {
|
|
1828
2303
|
if (n < 0) return !1;
|
|
1829
|
-
|
|
2304
|
+
i += 6;
|
|
1830
2305
|
}
|
|
1831
|
-
return
|
|
2306
|
+
return i % 8 === 0;
|
|
1832
2307
|
}
|
|
1833
|
-
function
|
|
1834
|
-
var n, r,
|
|
1835
|
-
for (n = 0; n <
|
|
1836
|
-
n % 4 === 0 && n && (a.push(o >> 16 & 255), a.push(o >> 8 & 255), a.push(o & 255)), o = o << 6 | l.indexOf(
|
|
1837
|
-
return r =
|
|
2308
|
+
function rl(e) {
|
|
2309
|
+
var n, r, i = e.replace(/[\r\n=]/g, ""), t = i.length, l = on, o = 0, a = [];
|
|
2310
|
+
for (n = 0; n < t; n++)
|
|
2311
|
+
n % 4 === 0 && n && (a.push(o >> 16 & 255), a.push(o >> 8 & 255), a.push(o & 255)), o = o << 6 | l.indexOf(i.charAt(n));
|
|
2312
|
+
return r = t % 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);
|
|
1838
2313
|
}
|
|
1839
|
-
function
|
|
1840
|
-
var n = "", r = 0,
|
|
1841
|
-
for (
|
|
1842
|
-
|
|
1843
|
-
return
|
|
2314
|
+
function tl(e) {
|
|
2315
|
+
var n = "", r = 0, i, t, l = e.length, o = on;
|
|
2316
|
+
for (i = 0; i < l; i++)
|
|
2317
|
+
i % 3 === 0 && i && (n += o[r >> 18 & 63], n += o[r >> 12 & 63], n += o[r >> 6 & 63], n += o[r & 63]), r = (r << 8) + e[i];
|
|
2318
|
+
return t = l % 3, t === 0 ? (n += o[r >> 18 & 63], n += o[r >> 12 & 63], n += o[r >> 6 & 63], n += o[r & 63]) : t === 2 ? (n += o[r >> 10 & 63], n += o[r >> 4 & 63], n += o[r << 2 & 63], n += o[64]) : t === 1 && (n += o[r >> 2 & 63], n += o[r << 4 & 63], n += o[64], n += o[64]), n;
|
|
1844
2319
|
}
|
|
1845
|
-
function
|
|
2320
|
+
function il(e) {
|
|
1846
2321
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
1847
2322
|
}
|
|
1848
|
-
var
|
|
2323
|
+
var hr = new G("tag:yaml.org,2002:binary", {
|
|
1849
2324
|
kind: "scalar",
|
|
1850
|
-
resolve:
|
|
1851
|
-
construct:
|
|
1852
|
-
predicate:
|
|
1853
|
-
represent:
|
|
1854
|
-
}),
|
|
1855
|
-
function
|
|
2325
|
+
resolve: nl,
|
|
2326
|
+
construct: rl,
|
|
2327
|
+
predicate: il,
|
|
2328
|
+
represent: tl
|
|
2329
|
+
}), ol = Object.prototype.hasOwnProperty, ll = Object.prototype.toString;
|
|
2330
|
+
function al(e) {
|
|
1856
2331
|
if (e === null) return !0;
|
|
1857
|
-
var n = [], r,
|
|
1858
|
-
for (r = 0,
|
|
1859
|
-
if (
|
|
1860
|
-
for (l in
|
|
1861
|
-
if (
|
|
2332
|
+
var n = [], r, i, t, l, o, a = e;
|
|
2333
|
+
for (r = 0, i = a.length; r < i; r += 1) {
|
|
2334
|
+
if (t = a[r], o = !1, ll.call(t) !== "[object Object]") return !1;
|
|
2335
|
+
for (l in t)
|
|
2336
|
+
if (ol.call(t, l))
|
|
1862
2337
|
if (!o) o = !0;
|
|
1863
2338
|
else return !1;
|
|
1864
2339
|
if (!o) return !1;
|
|
@@ -1867,98 +2342,98 @@ function tt(e) {
|
|
|
1867
2342
|
}
|
|
1868
2343
|
return !0;
|
|
1869
2344
|
}
|
|
1870
|
-
function
|
|
2345
|
+
function cl(e) {
|
|
1871
2346
|
return e !== null ? e : [];
|
|
1872
2347
|
}
|
|
1873
|
-
var
|
|
2348
|
+
var dr = new G("tag:yaml.org,2002:omap", {
|
|
1874
2349
|
kind: "sequence",
|
|
1875
|
-
resolve:
|
|
1876
|
-
construct:
|
|
1877
|
-
}),
|
|
1878
|
-
function
|
|
2350
|
+
resolve: al,
|
|
2351
|
+
construct: cl
|
|
2352
|
+
}), sl = Object.prototype.toString;
|
|
2353
|
+
function fl(e) {
|
|
1879
2354
|
if (e === null) return !0;
|
|
1880
|
-
var n, r,
|
|
2355
|
+
var n, r, i, t, l, o = e;
|
|
1881
2356
|
for (l = new Array(o.length), n = 0, r = o.length; n < r; n += 1) {
|
|
1882
|
-
if (
|
|
1883
|
-
l[n] = [
|
|
2357
|
+
if (i = o[n], sl.call(i) !== "[object Object]" || (t = Object.keys(i), t.length !== 1)) return !1;
|
|
2358
|
+
l[n] = [t[0], i[t[0]]];
|
|
1884
2359
|
}
|
|
1885
2360
|
return !0;
|
|
1886
2361
|
}
|
|
1887
|
-
function
|
|
2362
|
+
function ul(e) {
|
|
1888
2363
|
if (e === null) return [];
|
|
1889
|
-
var n, r,
|
|
2364
|
+
var n, r, i, t, l, o = e;
|
|
1890
2365
|
for (l = new Array(o.length), n = 0, r = o.length; n < r; n += 1)
|
|
1891
|
-
|
|
2366
|
+
i = o[n], t = Object.keys(i), l[n] = [t[0], i[t[0]]];
|
|
1892
2367
|
return l;
|
|
1893
2368
|
}
|
|
1894
|
-
var
|
|
2369
|
+
var xr = new G("tag:yaml.org,2002:pairs", {
|
|
1895
2370
|
kind: "sequence",
|
|
1896
|
-
resolve:
|
|
1897
|
-
construct:
|
|
1898
|
-
}),
|
|
1899
|
-
function
|
|
2371
|
+
resolve: fl,
|
|
2372
|
+
construct: ul
|
|
2373
|
+
}), pl = Object.prototype.hasOwnProperty;
|
|
2374
|
+
function hl(e) {
|
|
1900
2375
|
if (e === null) return !0;
|
|
1901
2376
|
var n, r = e;
|
|
1902
2377
|
for (n in r)
|
|
1903
|
-
if (
|
|
2378
|
+
if (pl.call(r, n) && r[n] !== null)
|
|
1904
2379
|
return !1;
|
|
1905
2380
|
return !0;
|
|
1906
2381
|
}
|
|
1907
|
-
function
|
|
2382
|
+
function dl(e) {
|
|
1908
2383
|
return e !== null ? e : {};
|
|
1909
2384
|
}
|
|
1910
|
-
var
|
|
2385
|
+
var mr = new G("tag:yaml.org,2002:set", {
|
|
1911
2386
|
kind: "mapping",
|
|
1912
|
-
resolve:
|
|
1913
|
-
construct:
|
|
1914
|
-
}),
|
|
2387
|
+
resolve: hl,
|
|
2388
|
+
construct: dl
|
|
2389
|
+
}), ln = cr.extend({
|
|
1915
2390
|
implicit: [
|
|
1916
|
-
|
|
1917
|
-
|
|
2391
|
+
ur,
|
|
2392
|
+
pr
|
|
1918
2393
|
],
|
|
1919
2394
|
explicit: [
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
2395
|
+
hr,
|
|
2396
|
+
dr,
|
|
2397
|
+
xr,
|
|
2398
|
+
mr
|
|
1924
2399
|
]
|
|
1925
|
-
}),
|
|
1926
|
-
function
|
|
2400
|
+
}), he = Object.prototype.hasOwnProperty, Ye = 1, yr = 2, gr = 3, Be = 4, Ge = 1, xl = 2, An = 3, ml = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, yl = /[\x85\u2028\u2029]/, gl = /[,\[\]\{\}]/, kr = /^(?:!|!!|![a-z\-]+!)$/i, vr = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
2401
|
+
function _n(e) {
|
|
1927
2402
|
return Object.prototype.toString.call(e);
|
|
1928
2403
|
}
|
|
1929
|
-
function
|
|
2404
|
+
function le(e) {
|
|
1930
2405
|
return e === 10 || e === 13;
|
|
1931
2406
|
}
|
|
1932
|
-
function
|
|
2407
|
+
function me(e) {
|
|
1933
2408
|
return e === 9 || e === 32;
|
|
1934
2409
|
}
|
|
1935
|
-
function
|
|
2410
|
+
function Q(e) {
|
|
1936
2411
|
return e === 9 || e === 32 || e === 10 || e === 13;
|
|
1937
2412
|
}
|
|
1938
|
-
function
|
|
2413
|
+
function be(e) {
|
|
1939
2414
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
1940
2415
|
}
|
|
1941
|
-
function
|
|
2416
|
+
function kl(e) {
|
|
1942
2417
|
var n;
|
|
1943
2418
|
return 48 <= e && e <= 57 ? e - 48 : (n = e | 32, 97 <= n && n <= 102 ? n - 97 + 10 : -1);
|
|
1944
2419
|
}
|
|
1945
|
-
function
|
|
2420
|
+
function vl(e) {
|
|
1946
2421
|
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
1947
2422
|
}
|
|
1948
|
-
function
|
|
2423
|
+
function bl(e) {
|
|
1949
2424
|
return 48 <= e && e <= 57 ? e - 48 : -1;
|
|
1950
2425
|
}
|
|
1951
|
-
function
|
|
2426
|
+
function wn(e) {
|
|
1952
2427
|
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
|
|
1953
2428
|
` : 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" : "";
|
|
1954
2429
|
}
|
|
1955
|
-
function
|
|
2430
|
+
function Al(e) {
|
|
1956
2431
|
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode(
|
|
1957
2432
|
(e - 65536 >> 10) + 55296,
|
|
1958
2433
|
(e - 65536 & 1023) + 56320
|
|
1959
2434
|
);
|
|
1960
2435
|
}
|
|
1961
|
-
function
|
|
2436
|
+
function br(e, n, r) {
|
|
1962
2437
|
n === "__proto__" ? Object.defineProperty(e, n, {
|
|
1963
2438
|
configurable: !0,
|
|
1964
2439
|
enumerable: !0,
|
|
@@ -1966,13 +2441,13 @@ function dr(e, n, r) {
|
|
|
1966
2441
|
value: r
|
|
1967
2442
|
}) : e[n] = r;
|
|
1968
2443
|
}
|
|
1969
|
-
var
|
|
1970
|
-
for (var
|
|
1971
|
-
|
|
1972
|
-
function
|
|
1973
|
-
this.input = e, this.filename = n.filename || null, this.schema = n.schema ||
|
|
2444
|
+
var Ar = new Array(256), _r = new Array(256);
|
|
2445
|
+
for (var ke = 0; ke < 256; ke++)
|
|
2446
|
+
Ar[ke] = wn(ke) ? 1 : 0, _r[ke] = wn(ke);
|
|
2447
|
+
function _l(e, n) {
|
|
2448
|
+
this.input = e, this.filename = n.filename || null, this.schema = n.schema || ln, 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 = [];
|
|
1974
2449
|
}
|
|
1975
|
-
function
|
|
2450
|
+
function wr(e, n) {
|
|
1976
2451
|
var r = {
|
|
1977
2452
|
name: e.filename,
|
|
1978
2453
|
buffer: e.input.slice(0, -1),
|
|
@@ -1981,395 +2456,395 @@ function mr(e, n) {
|
|
|
1981
2456
|
line: e.line,
|
|
1982
2457
|
column: e.position - e.lineStart
|
|
1983
2458
|
};
|
|
1984
|
-
return r.snippet =
|
|
2459
|
+
return r.snippet = So(r), new J(n, r);
|
|
1985
2460
|
}
|
|
1986
|
-
function
|
|
1987
|
-
throw
|
|
2461
|
+
function _(e, n) {
|
|
2462
|
+
throw wr(e, n);
|
|
1988
2463
|
}
|
|
1989
|
-
function
|
|
1990
|
-
e.onWarning && e.onWarning.call(null,
|
|
2464
|
+
function He(e, n) {
|
|
2465
|
+
e.onWarning && e.onWarning.call(null, wr(e, n));
|
|
1991
2466
|
}
|
|
1992
|
-
var
|
|
1993
|
-
YAML: function(n, r,
|
|
1994
|
-
var
|
|
1995
|
-
n.version !== null &&
|
|
2467
|
+
var Cn = {
|
|
2468
|
+
YAML: function(n, r, i) {
|
|
2469
|
+
var t, l, o;
|
|
2470
|
+
n.version !== null && _(n, "duplication of %YAML directive"), i.length !== 1 && _(n, "YAML directive accepts exactly one argument"), t = /^([0-9]+)\.([0-9]+)$/.exec(i[0]), t === null && _(n, "ill-formed argument of the YAML directive"), l = parseInt(t[1], 10), o = parseInt(t[2], 10), l !== 1 && _(n, "unacceptable YAML version of the document"), n.version = i[0], n.checkLineBreaks = o < 2, o !== 1 && o !== 2 && He(n, "unsupported YAML version of the document");
|
|
1996
2471
|
},
|
|
1997
|
-
TAG: function(n, r,
|
|
1998
|
-
var
|
|
1999
|
-
|
|
2472
|
+
TAG: function(n, r, i) {
|
|
2473
|
+
var t, l;
|
|
2474
|
+
i.length !== 2 && _(n, "TAG directive accepts exactly two arguments"), t = i[0], l = i[1], kr.test(t) || _(n, "ill-formed tag handle (first argument) of the TAG directive"), he.call(n.tagMap, t) && _(n, 'there is a previously declared suffix for "' + t + '" tag handle'), vr.test(l) || _(n, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
2000
2475
|
try {
|
|
2001
2476
|
l = decodeURIComponent(l);
|
|
2002
2477
|
} catch {
|
|
2003
|
-
|
|
2478
|
+
_(n, "tag prefix is malformed: " + l);
|
|
2004
2479
|
}
|
|
2005
|
-
n.tagMap[
|
|
2480
|
+
n.tagMap[t] = l;
|
|
2006
2481
|
}
|
|
2007
2482
|
};
|
|
2008
|
-
function
|
|
2009
|
-
var
|
|
2483
|
+
function pe(e, n, r, i) {
|
|
2484
|
+
var t, l, o, a;
|
|
2010
2485
|
if (n < r) {
|
|
2011
|
-
if (a = e.input.slice(n, r),
|
|
2012
|
-
for (
|
|
2013
|
-
o = a.charCodeAt(
|
|
2014
|
-
else
|
|
2486
|
+
if (a = e.input.slice(n, r), i)
|
|
2487
|
+
for (t = 0, l = a.length; t < l; t += 1)
|
|
2488
|
+
o = a.charCodeAt(t), o === 9 || 32 <= o && o <= 1114111 || _(e, "expected valid JSON character");
|
|
2489
|
+
else ml.test(a) && _(e, "the stream contains non-printable characters");
|
|
2015
2490
|
e.result += a;
|
|
2016
2491
|
}
|
|
2017
2492
|
}
|
|
2018
|
-
function
|
|
2019
|
-
var
|
|
2020
|
-
for (
|
|
2021
|
-
l =
|
|
2022
|
-
}
|
|
2023
|
-
function
|
|
2024
|
-
var
|
|
2025
|
-
if (Array.isArray(
|
|
2026
|
-
for (
|
|
2027
|
-
Array.isArray(
|
|
2028
|
-
if (typeof
|
|
2493
|
+
function $n(e, n, r, i) {
|
|
2494
|
+
var t, l, o, a;
|
|
2495
|
+
for (z.isObject(r) || _(e, "cannot merge mappings; the provided source object is unacceptable"), t = Object.keys(r), o = 0, a = t.length; o < a; o += 1)
|
|
2496
|
+
l = t[o], he.call(n, l) || (br(n, l, r[l]), i[l] = !0);
|
|
2497
|
+
}
|
|
2498
|
+
function Ae(e, n, r, i, t, l, o, a, c) {
|
|
2499
|
+
var f, u;
|
|
2500
|
+
if (Array.isArray(t))
|
|
2501
|
+
for (t = Array.prototype.slice.call(t), f = 0, u = t.length; f < u; f += 1)
|
|
2502
|
+
Array.isArray(t[f]) && _(e, "nested arrays are not supported inside keys"), typeof t == "object" && _n(t[f]) === "[object Object]" && (t[f] = "[object Object]");
|
|
2503
|
+
if (typeof t == "object" && _n(t) === "[object Object]" && (t = "[object Object]"), t = String(t), n === null && (n = {}), i === "tag:yaml.org,2002:merge")
|
|
2029
2504
|
if (Array.isArray(l))
|
|
2030
|
-
for (
|
|
2031
|
-
|
|
2505
|
+
for (f = 0, u = l.length; f < u; f += 1)
|
|
2506
|
+
$n(e, n, l[f], r);
|
|
2032
2507
|
else
|
|
2033
|
-
|
|
2508
|
+
$n(e, n, l, r);
|
|
2034
2509
|
else
|
|
2035
|
-
!e.json && !
|
|
2510
|
+
!e.json && !he.call(r, t) && he.call(n, t) && (e.line = o || e.line, e.lineStart = a || e.lineStart, e.position = c || e.position, _(e, "duplicated mapping key")), br(n, t, l), delete r[t];
|
|
2036
2511
|
return n;
|
|
2037
2512
|
}
|
|
2038
|
-
function
|
|
2513
|
+
function an(e) {
|
|
2039
2514
|
var n;
|
|
2040
|
-
n = e.input.charCodeAt(e.position), n === 10 ? e.position++ : n === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) :
|
|
2515
|
+
n = e.input.charCodeAt(e.position), n === 10 ? e.position++ : n === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : _(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
|
|
2041
2516
|
}
|
|
2042
|
-
function
|
|
2043
|
-
for (var
|
|
2044
|
-
for (;
|
|
2045
|
-
|
|
2046
|
-
if (n &&
|
|
2517
|
+
function W(e, n, r) {
|
|
2518
|
+
for (var i = 0, t = e.input.charCodeAt(e.position); t !== 0; ) {
|
|
2519
|
+
for (; me(t); )
|
|
2520
|
+
t === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), t = e.input.charCodeAt(++e.position);
|
|
2521
|
+
if (n && t === 35)
|
|
2047
2522
|
do
|
|
2048
|
-
|
|
2049
|
-
while (
|
|
2050
|
-
if (
|
|
2051
|
-
for (
|
|
2052
|
-
e.lineIndent++,
|
|
2523
|
+
t = e.input.charCodeAt(++e.position);
|
|
2524
|
+
while (t !== 10 && t !== 13 && t !== 0);
|
|
2525
|
+
if (le(t))
|
|
2526
|
+
for (an(e), t = e.input.charCodeAt(e.position), i++, e.lineIndent = 0; t === 32; )
|
|
2527
|
+
e.lineIndent++, t = e.input.charCodeAt(++e.position);
|
|
2053
2528
|
else
|
|
2054
2529
|
break;
|
|
2055
2530
|
}
|
|
2056
|
-
return r !== -1 &&
|
|
2531
|
+
return r !== -1 && i !== 0 && e.lineIndent < r && He(e, "deficient indentation"), i;
|
|
2057
2532
|
}
|
|
2058
|
-
function
|
|
2533
|
+
function ze(e) {
|
|
2059
2534
|
var n = e.position, r;
|
|
2060
|
-
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 ||
|
|
2535
|
+
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 || Q(r)));
|
|
2061
2536
|
}
|
|
2062
|
-
function
|
|
2063
|
-
n === 1 ? e.result += " " : n > 1 && (e.result +=
|
|
2537
|
+
function cn(e, n) {
|
|
2538
|
+
n === 1 ? e.result += " " : n > 1 && (e.result += z.repeat(`
|
|
2064
2539
|
`, n - 1));
|
|
2065
2540
|
}
|
|
2066
|
-
function
|
|
2067
|
-
var
|
|
2068
|
-
if (
|
|
2541
|
+
function wl(e, n, r) {
|
|
2542
|
+
var i, t, l, o, a, c, f, u, d = e.kind, p = e.result, x;
|
|
2543
|
+
if (x = e.input.charCodeAt(e.position), Q(x) || be(x) || x === 35 || x === 38 || x === 42 || x === 33 || x === 124 || x === 62 || x === 39 || x === 34 || x === 37 || x === 64 || x === 96 || (x === 63 || x === 45) && (t = e.input.charCodeAt(e.position + 1), Q(t) || r && be(t)))
|
|
2069
2544
|
return !1;
|
|
2070
|
-
for (e.kind = "scalar", e.result = "", l = o = e.position, a = !1;
|
|
2071
|
-
if (
|
|
2072
|
-
if (
|
|
2545
|
+
for (e.kind = "scalar", e.result = "", l = o = e.position, a = !1; x !== 0; ) {
|
|
2546
|
+
if (x === 58) {
|
|
2547
|
+
if (t = e.input.charCodeAt(e.position + 1), Q(t) || r && be(t))
|
|
2073
2548
|
break;
|
|
2074
|
-
} else if (
|
|
2075
|
-
if (
|
|
2549
|
+
} else if (x === 35) {
|
|
2550
|
+
if (i = e.input.charCodeAt(e.position - 1), Q(i))
|
|
2076
2551
|
break;
|
|
2077
2552
|
} else {
|
|
2078
|
-
if (e.position === e.lineStart &&
|
|
2553
|
+
if (e.position === e.lineStart && ze(e) || r && be(x))
|
|
2079
2554
|
break;
|
|
2080
|
-
if (
|
|
2081
|
-
if (c = e.line,
|
|
2082
|
-
a = !0,
|
|
2555
|
+
if (le(x))
|
|
2556
|
+
if (c = e.line, f = e.lineStart, u = e.lineIndent, W(e, !1, -1), e.lineIndent >= n) {
|
|
2557
|
+
a = !0, x = e.input.charCodeAt(e.position);
|
|
2083
2558
|
continue;
|
|
2084
2559
|
} else {
|
|
2085
|
-
e.position = o, e.line = c, e.lineStart =
|
|
2560
|
+
e.position = o, e.line = c, e.lineStart = f, e.lineIndent = u;
|
|
2086
2561
|
break;
|
|
2087
2562
|
}
|
|
2088
2563
|
}
|
|
2089
|
-
a && (
|
|
2564
|
+
a && (pe(e, l, o, !1), cn(e, e.line - c), l = o = e.position, a = !1), me(x) || (o = e.position + 1), x = e.input.charCodeAt(++e.position);
|
|
2090
2565
|
}
|
|
2091
|
-
return
|
|
2566
|
+
return pe(e, l, o, !1), e.result ? !0 : (e.kind = d, e.result = p, !1);
|
|
2092
2567
|
}
|
|
2093
|
-
function
|
|
2094
|
-
var r,
|
|
2568
|
+
function Cl(e, n) {
|
|
2569
|
+
var r, i, t;
|
|
2095
2570
|
if (r = e.input.charCodeAt(e.position), r !== 39)
|
|
2096
2571
|
return !1;
|
|
2097
|
-
for (e.kind = "scalar", e.result = "", e.position++,
|
|
2572
|
+
for (e.kind = "scalar", e.result = "", e.position++, i = t = e.position; (r = e.input.charCodeAt(e.position)) !== 0; )
|
|
2098
2573
|
if (r === 39)
|
|
2099
|
-
if (
|
|
2100
|
-
|
|
2574
|
+
if (pe(e, i, e.position, !0), r = e.input.charCodeAt(++e.position), r === 39)
|
|
2575
|
+
i = e.position, e.position++, t = e.position;
|
|
2101
2576
|
else
|
|
2102
2577
|
return !0;
|
|
2103
|
-
else
|
|
2104
|
-
|
|
2578
|
+
else le(r) ? (pe(e, i, t, !0), cn(e, W(e, !1, n)), i = t = e.position) : e.position === e.lineStart && ze(e) ? _(e, "unexpected end of the document within a single quoted scalar") : (e.position++, t = e.position);
|
|
2579
|
+
_(e, "unexpected end of the stream within a single quoted scalar");
|
|
2105
2580
|
}
|
|
2106
|
-
function
|
|
2107
|
-
var r,
|
|
2581
|
+
function $l(e, n) {
|
|
2582
|
+
var r, i, t, l, o, a;
|
|
2108
2583
|
if (a = e.input.charCodeAt(e.position), a !== 34)
|
|
2109
2584
|
return !1;
|
|
2110
|
-
for (e.kind = "scalar", e.result = "", e.position++, r =
|
|
2585
|
+
for (e.kind = "scalar", e.result = "", e.position++, r = i = e.position; (a = e.input.charCodeAt(e.position)) !== 0; ) {
|
|
2111
2586
|
if (a === 34)
|
|
2112
|
-
return
|
|
2587
|
+
return pe(e, r, e.position, !0), e.position++, !0;
|
|
2113
2588
|
if (a === 92) {
|
|
2114
|
-
if (
|
|
2115
|
-
|
|
2116
|
-
else if (a < 256 &&
|
|
2117
|
-
e.result +=
|
|
2118
|
-
else if ((o =
|
|
2119
|
-
for (
|
|
2120
|
-
a = e.input.charCodeAt(++e.position), (o =
|
|
2121
|
-
e.result +=
|
|
2589
|
+
if (pe(e, r, e.position, !0), a = e.input.charCodeAt(++e.position), le(a))
|
|
2590
|
+
W(e, !1, n);
|
|
2591
|
+
else if (a < 256 && Ar[a])
|
|
2592
|
+
e.result += _r[a], e.position++;
|
|
2593
|
+
else if ((o = vl(a)) > 0) {
|
|
2594
|
+
for (t = o, l = 0; t > 0; t--)
|
|
2595
|
+
a = e.input.charCodeAt(++e.position), (o = kl(a)) >= 0 ? l = (l << 4) + o : _(e, "expected hexadecimal character");
|
|
2596
|
+
e.result += Al(l), e.position++;
|
|
2122
2597
|
} else
|
|
2123
|
-
|
|
2124
|
-
r =
|
|
2125
|
-
} else
|
|
2598
|
+
_(e, "unknown escape sequence");
|
|
2599
|
+
r = i = e.position;
|
|
2600
|
+
} else le(a) ? (pe(e, r, i, !0), cn(e, W(e, !1, n)), r = i = e.position) : e.position === e.lineStart && ze(e) ? _(e, "unexpected end of the document within a double quoted scalar") : (e.position++, i = e.position);
|
|
2126
2601
|
}
|
|
2127
|
-
|
|
2602
|
+
_(e, "unexpected end of the stream within a double quoted scalar");
|
|
2128
2603
|
}
|
|
2129
|
-
function
|
|
2130
|
-
var r = !0,
|
|
2604
|
+
function Sl(e, n) {
|
|
2605
|
+
var r = !0, i, t, l, o = e.tag, a, c = e.anchor, f, u, d, p, x, m = /* @__PURE__ */ Object.create(null), y, v, k, b;
|
|
2131
2606
|
if (b = e.input.charCodeAt(e.position), b === 91)
|
|
2132
|
-
u = 93,
|
|
2607
|
+
u = 93, x = !1, a = [];
|
|
2133
2608
|
else if (b === 123)
|
|
2134
|
-
u = 125,
|
|
2609
|
+
u = 125, x = !0, a = {};
|
|
2135
2610
|
else
|
|
2136
2611
|
return !1;
|
|
2137
2612
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = a), b = e.input.charCodeAt(++e.position); b !== 0; ) {
|
|
2138
|
-
if (
|
|
2139
|
-
return e.position++, e.tag = o, e.anchor = c, e.kind =
|
|
2140
|
-
r ? b === 44 &&
|
|
2613
|
+
if (W(e, !0, n), b = e.input.charCodeAt(e.position), b === u)
|
|
2614
|
+
return e.position++, e.tag = o, e.anchor = c, e.kind = x ? "mapping" : "sequence", e.result = a, !0;
|
|
2615
|
+
r ? b === 44 && _(e, "expected the node content, but found ','") : _(e, "missed comma between flow collection entries"), v = y = k = null, d = p = !1, b === 63 && (f = e.input.charCodeAt(e.position + 1), Q(f) && (d = p = !0, e.position++, W(e, !0, n))), i = e.line, t = e.lineStart, l = e.position, _e(e, n, Ye, !1, !0), v = e.tag, y = e.result, W(e, !0, n), b = e.input.charCodeAt(e.position), (p || e.line === i) && b === 58 && (d = !0, b = e.input.charCodeAt(++e.position), W(e, !0, n), _e(e, n, Ye, !1, !0), k = e.result), x ? Ae(e, a, m, v, y, k, i, t, l) : d ? a.push(Ae(e, null, m, v, y, k, i, t, l)) : a.push(y), W(e, !0, n), b = e.input.charCodeAt(e.position), b === 44 ? (r = !0, b = e.input.charCodeAt(++e.position)) : r = !1;
|
|
2141
2616
|
}
|
|
2142
|
-
|
|
2143
|
-
}
|
|
2144
|
-
function
|
|
2145
|
-
var r,
|
|
2146
|
-
if (
|
|
2147
|
-
|
|
2148
|
-
else if (
|
|
2149
|
-
|
|
2617
|
+
_(e, "unexpected end of the stream within a flow collection");
|
|
2618
|
+
}
|
|
2619
|
+
function El(e, n) {
|
|
2620
|
+
var r, i, t = Ge, l = !1, o = !1, a = n, c = 0, f = !1, u, d;
|
|
2621
|
+
if (d = e.input.charCodeAt(e.position), d === 124)
|
|
2622
|
+
i = !1;
|
|
2623
|
+
else if (d === 62)
|
|
2624
|
+
i = !0;
|
|
2150
2625
|
else
|
|
2151
2626
|
return !1;
|
|
2152
|
-
for (e.kind = "scalar", e.result = "";
|
|
2153
|
-
if (
|
|
2154
|
-
|
|
2155
|
-
else if ((u =
|
|
2156
|
-
u === 0 ?
|
|
2627
|
+
for (e.kind = "scalar", e.result = ""; d !== 0; )
|
|
2628
|
+
if (d = e.input.charCodeAt(++e.position), d === 43 || d === 45)
|
|
2629
|
+
Ge === t ? t = d === 43 ? An : xl : _(e, "repeat of a chomping mode identifier");
|
|
2630
|
+
else if ((u = bl(d)) >= 0)
|
|
2631
|
+
u === 0 ? _(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? _(e, "repeat of an indentation width identifier") : (a = n + u - 1, o = !0);
|
|
2157
2632
|
else
|
|
2158
2633
|
break;
|
|
2159
|
-
if (
|
|
2634
|
+
if (me(d)) {
|
|
2160
2635
|
do
|
|
2161
|
-
|
|
2162
|
-
while (
|
|
2163
|
-
if (
|
|
2636
|
+
d = e.input.charCodeAt(++e.position);
|
|
2637
|
+
while (me(d));
|
|
2638
|
+
if (d === 35)
|
|
2164
2639
|
do
|
|
2165
|
-
|
|
2166
|
-
while (!
|
|
2640
|
+
d = e.input.charCodeAt(++e.position);
|
|
2641
|
+
while (!le(d) && d !== 0);
|
|
2167
2642
|
}
|
|
2168
|
-
for (;
|
|
2169
|
-
for (
|
|
2170
|
-
e.lineIndent++,
|
|
2171
|
-
if (!o && e.lineIndent > a && (a = e.lineIndent),
|
|
2643
|
+
for (; d !== 0; ) {
|
|
2644
|
+
for (an(e), e.lineIndent = 0, d = e.input.charCodeAt(e.position); (!o || e.lineIndent < a) && d === 32; )
|
|
2645
|
+
e.lineIndent++, d = e.input.charCodeAt(++e.position);
|
|
2646
|
+
if (!o && e.lineIndent > a && (a = e.lineIndent), le(d)) {
|
|
2172
2647
|
c++;
|
|
2173
2648
|
continue;
|
|
2174
2649
|
}
|
|
2175
2650
|
if (e.lineIndent < a) {
|
|
2176
|
-
|
|
2177
|
-
`, l ? 1 + c : c) :
|
|
2651
|
+
t === An ? e.result += z.repeat(`
|
|
2652
|
+
`, l ? 1 + c : c) : t === Ge && l && (e.result += `
|
|
2178
2653
|
`);
|
|
2179
2654
|
break;
|
|
2180
2655
|
}
|
|
2181
|
-
for (
|
|
2182
|
-
`, l ? 1 + c : c)) :
|
|
2183
|
-
`, c + 1)) : c === 0 ? l && (e.result += " ") : e.result +=
|
|
2184
|
-
`, c) : e.result +=
|
|
2185
|
-
`, l ? 1 + c : c), l = !0, o = !0, c = 0, r = e.position; !
|
|
2186
|
-
|
|
2187
|
-
|
|
2656
|
+
for (i ? me(d) ? (f = !0, e.result += z.repeat(`
|
|
2657
|
+
`, l ? 1 + c : c)) : f ? (f = !1, e.result += z.repeat(`
|
|
2658
|
+
`, c + 1)) : c === 0 ? l && (e.result += " ") : e.result += z.repeat(`
|
|
2659
|
+
`, c) : e.result += z.repeat(`
|
|
2660
|
+
`, l ? 1 + c : c), l = !0, o = !0, c = 0, r = e.position; !le(d) && d !== 0; )
|
|
2661
|
+
d = e.input.charCodeAt(++e.position);
|
|
2662
|
+
pe(e, r, e.position, !1);
|
|
2188
2663
|
}
|
|
2189
2664
|
return !0;
|
|
2190
2665
|
}
|
|
2191
2666
|
function Sn(e, n) {
|
|
2192
|
-
var r,
|
|
2667
|
+
var r, i = e.tag, t = e.anchor, l = [], o, a = !1, c;
|
|
2193
2668
|
if (e.firstTabInLine !== -1) return !1;
|
|
2194
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = l), c = e.input.charCodeAt(e.position); c !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine,
|
|
2195
|
-
if (a = !0, e.position++,
|
|
2669
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = l), c = e.input.charCodeAt(e.position); c !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, _(e, "tab characters must not be used in indentation")), !(c !== 45 || (o = e.input.charCodeAt(e.position + 1), !Q(o)))); ) {
|
|
2670
|
+
if (a = !0, e.position++, W(e, !0, -1) && e.lineIndent <= n) {
|
|
2196
2671
|
l.push(null), c = e.input.charCodeAt(e.position);
|
|
2197
2672
|
continue;
|
|
2198
2673
|
}
|
|
2199
|
-
if (r = e.line,
|
|
2200
|
-
|
|
2674
|
+
if (r = e.line, _e(e, n, gr, !1, !0), l.push(e.result), W(e, !0, -1), c = e.input.charCodeAt(e.position), (e.line === r || e.lineIndent > n) && c !== 0)
|
|
2675
|
+
_(e, "bad indentation of a sequence entry");
|
|
2201
2676
|
else if (e.lineIndent < n)
|
|
2202
2677
|
break;
|
|
2203
2678
|
}
|
|
2204
|
-
return a ? (e.tag =
|
|
2679
|
+
return a ? (e.tag = i, e.anchor = t, e.kind = "sequence", e.result = l, !0) : !1;
|
|
2205
2680
|
}
|
|
2206
|
-
function
|
|
2207
|
-
var
|
|
2681
|
+
function Tl(e, n, r) {
|
|
2682
|
+
var i, t, l, o, a, c, f = e.tag, u = e.anchor, d = {}, p = /* @__PURE__ */ Object.create(null), x = null, m = null, y = null, v = !1, k = !1, b;
|
|
2208
2683
|
if (e.firstTabInLine !== -1) return !1;
|
|
2209
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] =
|
|
2210
|
-
if (!
|
|
2211
|
-
b === 63 ? (
|
|
2684
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = d), b = e.input.charCodeAt(e.position); b !== 0; ) {
|
|
2685
|
+
if (!v && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, _(e, "tab characters must not be used in indentation")), i = e.input.charCodeAt(e.position + 1), l = e.line, (b === 63 || b === 58) && Q(i))
|
|
2686
|
+
b === 63 ? (v && (Ae(e, d, p, x, m, null, o, a, c), x = m = y = null), k = !0, v = !0, t = !0) : v ? (v = !1, t = !0) : _(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, b = i;
|
|
2212
2687
|
else {
|
|
2213
|
-
if (o = e.line, a = e.lineStart, c = e.position, !
|
|
2688
|
+
if (o = e.line, a = e.lineStart, c = e.position, !_e(e, r, yr, !1, !0))
|
|
2214
2689
|
break;
|
|
2215
2690
|
if (e.line === l) {
|
|
2216
|
-
for (b = e.input.charCodeAt(e.position);
|
|
2691
|
+
for (b = e.input.charCodeAt(e.position); me(b); )
|
|
2217
2692
|
b = e.input.charCodeAt(++e.position);
|
|
2218
2693
|
if (b === 58)
|
|
2219
|
-
b = e.input.charCodeAt(++e.position),
|
|
2220
|
-
else if (
|
|
2221
|
-
|
|
2694
|
+
b = e.input.charCodeAt(++e.position), Q(b) || _(e, "a whitespace character is expected after the key-value separator within a block mapping"), v && (Ae(e, d, p, x, m, null, o, a, c), x = m = y = null), k = !0, v = !1, t = !1, x = e.tag, m = e.result;
|
|
2695
|
+
else if (k)
|
|
2696
|
+
_(e, "can not read an implicit mapping pair; a colon is missed");
|
|
2222
2697
|
else
|
|
2223
|
-
return e.tag =
|
|
2224
|
-
} else if (
|
|
2225
|
-
|
|
2698
|
+
return e.tag = f, e.anchor = u, !0;
|
|
2699
|
+
} else if (k)
|
|
2700
|
+
_(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
2226
2701
|
else
|
|
2227
|
-
return e.tag =
|
|
2702
|
+
return e.tag = f, e.anchor = u, !0;
|
|
2228
2703
|
}
|
|
2229
|
-
if ((e.line === l || e.lineIndent > n) && (
|
|
2230
|
-
|
|
2704
|
+
if ((e.line === l || e.lineIndent > n) && (v && (o = e.line, a = e.lineStart, c = e.position), _e(e, n, Be, !0, t) && (v ? m = e.result : y = e.result), v || (Ae(e, d, p, x, m, y, o, a, c), x = m = y = null), W(e, !0, -1), b = e.input.charCodeAt(e.position)), (e.line === l || e.lineIndent > n) && b !== 0)
|
|
2705
|
+
_(e, "bad indentation of a mapping entry");
|
|
2231
2706
|
else if (e.lineIndent < n)
|
|
2232
2707
|
break;
|
|
2233
2708
|
}
|
|
2234
|
-
return
|
|
2709
|
+
return v && Ae(e, d, p, x, m, null, o, a, c), k && (e.tag = f, e.anchor = u, e.kind = "mapping", e.result = d), k;
|
|
2235
2710
|
}
|
|
2236
|
-
function
|
|
2237
|
-
var n, r = !1,
|
|
2711
|
+
function Ml(e) {
|
|
2712
|
+
var n, r = !1, i = !1, t, l, o;
|
|
2238
2713
|
if (o = e.input.charCodeAt(e.position), o !== 33) return !1;
|
|
2239
|
-
if (e.tag !== null &&
|
|
2714
|
+
if (e.tag !== null && _(e, "duplication of a tag property"), o = e.input.charCodeAt(++e.position), o === 60 ? (r = !0, o = e.input.charCodeAt(++e.position)) : o === 33 ? (i = !0, t = "!!", o = e.input.charCodeAt(++e.position)) : t = "!", n = e.position, r) {
|
|
2240
2715
|
do
|
|
2241
2716
|
o = e.input.charCodeAt(++e.position);
|
|
2242
2717
|
while (o !== 0 && o !== 62);
|
|
2243
|
-
e.position < e.length ? (l = e.input.slice(n, e.position), o = e.input.charCodeAt(++e.position)) :
|
|
2718
|
+
e.position < e.length ? (l = e.input.slice(n, e.position), o = e.input.charCodeAt(++e.position)) : _(e, "unexpected end of the stream within a verbatim tag");
|
|
2244
2719
|
} else {
|
|
2245
|
-
for (; o !== 0 && !
|
|
2246
|
-
o === 33 && (
|
|
2247
|
-
l = e.input.slice(n, e.position),
|
|
2720
|
+
for (; o !== 0 && !Q(o); )
|
|
2721
|
+
o === 33 && (i ? _(e, "tag suffix cannot contain exclamation marks") : (t = e.input.slice(n - 1, e.position + 1), kr.test(t) || _(e, "named tag handle cannot contain such characters"), i = !0, n = e.position + 1)), o = e.input.charCodeAt(++e.position);
|
|
2722
|
+
l = e.input.slice(n, e.position), gl.test(l) && _(e, "tag suffix cannot contain flow indicator characters");
|
|
2248
2723
|
}
|
|
2249
|
-
l && !
|
|
2724
|
+
l && !vr.test(l) && _(e, "tag name cannot contain such characters: " + l);
|
|
2250
2725
|
try {
|
|
2251
2726
|
l = decodeURIComponent(l);
|
|
2252
2727
|
} catch {
|
|
2253
|
-
|
|
2728
|
+
_(e, "tag name is malformed: " + l);
|
|
2254
2729
|
}
|
|
2255
|
-
return r ? e.tag = l :
|
|
2730
|
+
return r ? e.tag = l : he.call(e.tagMap, t) ? e.tag = e.tagMap[t] + l : t === "!" ? e.tag = "!" + l : t === "!!" ? e.tag = "tag:yaml.org,2002:" + l : _(e, 'undeclared tag handle "' + t + '"'), !0;
|
|
2256
2731
|
}
|
|
2257
|
-
function
|
|
2732
|
+
function jl(e) {
|
|
2258
2733
|
var n, r;
|
|
2259
2734
|
if (r = e.input.charCodeAt(e.position), r !== 38) return !1;
|
|
2260
|
-
for (e.anchor !== null &&
|
|
2735
|
+
for (e.anchor !== null && _(e, "duplication of an anchor property"), r = e.input.charCodeAt(++e.position), n = e.position; r !== 0 && !Q(r) && !be(r); )
|
|
2261
2736
|
r = e.input.charCodeAt(++e.position);
|
|
2262
|
-
return e.position === n &&
|
|
2263
|
-
}
|
|
2264
|
-
function
|
|
2265
|
-
var n, r,
|
|
2266
|
-
if (
|
|
2267
|
-
for (
|
|
2268
|
-
|
|
2269
|
-
return e.position === n &&
|
|
2270
|
-
}
|
|
2271
|
-
function
|
|
2272
|
-
var l, o, a, c = 1,
|
|
2273
|
-
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, l = o = a =
|
|
2274
|
-
for (;
|
|
2275
|
-
|
|
2276
|
-
if (a && (a =
|
|
2737
|
+
return e.position === n && _(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(n, e.position), !0;
|
|
2738
|
+
}
|
|
2739
|
+
function Ol(e) {
|
|
2740
|
+
var n, r, i;
|
|
2741
|
+
if (i = e.input.charCodeAt(e.position), i !== 42) return !1;
|
|
2742
|
+
for (i = e.input.charCodeAt(++e.position), n = e.position; i !== 0 && !Q(i) && !be(i); )
|
|
2743
|
+
i = e.input.charCodeAt(++e.position);
|
|
2744
|
+
return e.position === n && _(e, "name of an alias node must contain at least one character"), r = e.input.slice(n, e.position), he.call(e.anchorMap, r) || _(e, 'unidentified alias "' + r + '"'), e.result = e.anchorMap[r], W(e, !0, -1), !0;
|
|
2745
|
+
}
|
|
2746
|
+
function _e(e, n, r, i, t) {
|
|
2747
|
+
var l, o, a, c = 1, f = !1, u = !1, d, p, x, m, y, v;
|
|
2748
|
+
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, l = o = a = Be === r || gr === r, i && W(e, !0, -1) && (f = !0, e.lineIndent > n ? c = 1 : e.lineIndent === n ? c = 0 : e.lineIndent < n && (c = -1)), c === 1)
|
|
2749
|
+
for (; Ml(e) || jl(e); )
|
|
2750
|
+
W(e, !0, -1) ? (f = !0, a = l, e.lineIndent > n ? c = 1 : e.lineIndent === n ? c = 0 : e.lineIndent < n && (c = -1)) : a = !1;
|
|
2751
|
+
if (a && (a = f || t), (c === 1 || Be === r) && (Ye === r || yr === r ? y = n : y = n + 1, v = e.position - e.lineStart, c === 1 ? a && (Sn(e, v) || Tl(e, v, y)) || Sl(e, y) ? u = !0 : (o && El(e, y) || Cl(e, y) || $l(e, y) ? u = !0 : Ol(e) ? (u = !0, (e.tag !== null || e.anchor !== null) && _(e, "alias node should not have any properties")) : wl(e, y, Ye === r) && (u = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : c === 0 && (u = a && Sn(e, v))), e.tag === null)
|
|
2277
2752
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2278
2753
|
else if (e.tag === "?") {
|
|
2279
|
-
for (e.result !== null && e.kind !== "scalar" &&
|
|
2280
|
-
if (m = e.implicitTypes[
|
|
2754
|
+
for (e.result !== null && e.kind !== "scalar" && _(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), d = 0, p = e.implicitTypes.length; d < p; d += 1)
|
|
2755
|
+
if (m = e.implicitTypes[d], m.resolve(e.result)) {
|
|
2281
2756
|
e.result = m.construct(e.result), e.tag = m.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2282
2757
|
break;
|
|
2283
2758
|
}
|
|
2284
2759
|
} else if (e.tag !== "!") {
|
|
2285
|
-
if (
|
|
2760
|
+
if (he.call(e.typeMap[e.kind || "fallback"], e.tag))
|
|
2286
2761
|
m = e.typeMap[e.kind || "fallback"][e.tag];
|
|
2287
2762
|
else
|
|
2288
|
-
for (m = null,
|
|
2289
|
-
if (e.tag.slice(0,
|
|
2290
|
-
m =
|
|
2763
|
+
for (m = null, x = e.typeMap.multi[e.kind || "fallback"], d = 0, p = x.length; d < p; d += 1)
|
|
2764
|
+
if (e.tag.slice(0, x[d].tag.length) === x[d].tag) {
|
|
2765
|
+
m = x[d];
|
|
2291
2766
|
break;
|
|
2292
2767
|
}
|
|
2293
|
-
m ||
|
|
2768
|
+
m || _(e, "unknown tag !<" + e.tag + ">"), e.result !== null && m.kind !== e.kind && _(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)) : _(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
|
|
2294
2769
|
}
|
|
2295
2770
|
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || u;
|
|
2296
2771
|
}
|
|
2297
|
-
function
|
|
2298
|
-
var n = e.position, r,
|
|
2299
|
-
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 && (
|
|
2300
|
-
for (l = !0, o = e.input.charCodeAt(++e.position), r = e.position; o !== 0 && !
|
|
2772
|
+
function Nl(e) {
|
|
2773
|
+
var n = e.position, r, i, t, l = !1, o;
|
|
2774
|
+
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 && (W(e, !0, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37)); ) {
|
|
2775
|
+
for (l = !0, o = e.input.charCodeAt(++e.position), r = e.position; o !== 0 && !Q(o); )
|
|
2301
2776
|
o = e.input.charCodeAt(++e.position);
|
|
2302
|
-
for (
|
|
2303
|
-
for (;
|
|
2777
|
+
for (i = e.input.slice(r, e.position), t = [], i.length < 1 && _(e, "directive name must not be less than one character in length"); o !== 0; ) {
|
|
2778
|
+
for (; me(o); )
|
|
2304
2779
|
o = e.input.charCodeAt(++e.position);
|
|
2305
2780
|
if (o === 35) {
|
|
2306
2781
|
do
|
|
2307
2782
|
o = e.input.charCodeAt(++e.position);
|
|
2308
|
-
while (o !== 0 && !
|
|
2783
|
+
while (o !== 0 && !le(o));
|
|
2309
2784
|
break;
|
|
2310
2785
|
}
|
|
2311
|
-
if (
|
|
2312
|
-
for (r = e.position; o !== 0 && !
|
|
2786
|
+
if (le(o)) break;
|
|
2787
|
+
for (r = e.position; o !== 0 && !Q(o); )
|
|
2313
2788
|
o = e.input.charCodeAt(++e.position);
|
|
2314
|
-
|
|
2789
|
+
t.push(e.input.slice(r, e.position));
|
|
2315
2790
|
}
|
|
2316
|
-
o !== 0 &&
|
|
2791
|
+
o !== 0 && an(e), he.call(Cn, i) ? Cn[i](e, i, t) : He(e, 'unknown document directive "' + i + '"');
|
|
2317
2792
|
}
|
|
2318
|
-
if (
|
|
2319
|
-
e.input.charCodeAt(e.position) === 46 && (e.position += 3,
|
|
2793
|
+
if (W(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, W(e, !0, -1)) : l && _(e, "directives end mark is expected"), _e(e, e.lineIndent - 1, Be, !1, !0), W(e, !0, -1), e.checkLineBreaks && yl.test(e.input.slice(n, e.position)) && He(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && ze(e)) {
|
|
2794
|
+
e.input.charCodeAt(e.position) === 46 && (e.position += 3, W(e, !0, -1));
|
|
2320
2795
|
return;
|
|
2321
2796
|
}
|
|
2322
2797
|
if (e.position < e.length - 1)
|
|
2323
|
-
|
|
2798
|
+
_(e, "end of the stream or a document separator is expected");
|
|
2324
2799
|
else
|
|
2325
2800
|
return;
|
|
2326
2801
|
}
|
|
2327
|
-
function
|
|
2802
|
+
function Cr(e, n) {
|
|
2328
2803
|
e = String(e), n = n || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
2329
2804
|
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
2330
|
-
var r = new
|
|
2331
|
-
for (
|
|
2805
|
+
var r = new _l(e, n), i = e.indexOf("\0");
|
|
2806
|
+
for (i !== -1 && (r.position = i, _(r, "null byte is not allowed in input")), r.input += "\0"; r.input.charCodeAt(r.position) === 32; )
|
|
2332
2807
|
r.lineIndent += 1, r.position += 1;
|
|
2333
2808
|
for (; r.position < r.length - 1; )
|
|
2334
|
-
|
|
2809
|
+
Nl(r);
|
|
2335
2810
|
return r.documents;
|
|
2336
2811
|
}
|
|
2337
|
-
function
|
|
2812
|
+
function Ll(e, n, r) {
|
|
2338
2813
|
n !== null && typeof n == "object" && typeof r > "u" && (r = n, n = null);
|
|
2339
|
-
var
|
|
2814
|
+
var i = Cr(e, r);
|
|
2340
2815
|
if (typeof n != "function")
|
|
2341
|
-
return
|
|
2342
|
-
for (var
|
|
2343
|
-
n(t
|
|
2816
|
+
return i;
|
|
2817
|
+
for (var t = 0, l = i.length; t < l; t += 1)
|
|
2818
|
+
n(i[t]);
|
|
2344
2819
|
}
|
|
2345
|
-
function
|
|
2346
|
-
var r =
|
|
2820
|
+
function Fl(e, n) {
|
|
2821
|
+
var r = Cr(e, n);
|
|
2347
2822
|
if (r.length !== 0) {
|
|
2348
2823
|
if (r.length === 1)
|
|
2349
2824
|
return r[0];
|
|
2350
|
-
throw new
|
|
2825
|
+
throw new J("expected a single document in the stream, but found more");
|
|
2351
2826
|
}
|
|
2352
2827
|
}
|
|
2353
|
-
var
|
|
2354
|
-
loadAll:
|
|
2355
|
-
load:
|
|
2356
|
-
},
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
var
|
|
2828
|
+
var Il = Ll, Rl = Fl, $r = {
|
|
2829
|
+
loadAll: Il,
|
|
2830
|
+
load: Rl
|
|
2831
|
+
}, Sr = Object.prototype.toString, Er = Object.prototype.hasOwnProperty, sn = 65279, Pl = 9, Me = 10, Dl = 13, Yl = 32, Bl = 33, Hl = 34, Ze = 35, Wl = 37, Ul = 38, zl = 39, ql = 42, Tr = 44, Xl = 45, We = 58, Gl = 61, Kl = 62, Vl = 63, Zl = 64, Mr = 91, jr = 93, Jl = 96, Or = 123, Ql = 124, Nr = 125, V = {};
|
|
2832
|
+
V[0] = "\\0";
|
|
2833
|
+
V[7] = "\\a";
|
|
2834
|
+
V[8] = "\\b";
|
|
2835
|
+
V[9] = "\\t";
|
|
2836
|
+
V[10] = "\\n";
|
|
2837
|
+
V[11] = "\\v";
|
|
2838
|
+
V[12] = "\\f";
|
|
2839
|
+
V[13] = "\\r";
|
|
2840
|
+
V[27] = "\\e";
|
|
2841
|
+
V[34] = '\\"';
|
|
2842
|
+
V[92] = "\\\\";
|
|
2843
|
+
V[133] = "\\N";
|
|
2844
|
+
V[160] = "\\_";
|
|
2845
|
+
V[8232] = "\\L";
|
|
2846
|
+
V[8233] = "\\P";
|
|
2847
|
+
var ea = [
|
|
2373
2848
|
"y",
|
|
2374
2849
|
"Y",
|
|
2375
2850
|
"yes",
|
|
@@ -2386,315 +2861,315 @@ var Zt = [
|
|
|
2386
2861
|
"off",
|
|
2387
2862
|
"Off",
|
|
2388
2863
|
"OFF"
|
|
2389
|
-
],
|
|
2390
|
-
function
|
|
2391
|
-
var r,
|
|
2864
|
+
], na = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
2865
|
+
function ra(e, n) {
|
|
2866
|
+
var r, i, t, l, o, a, c;
|
|
2392
2867
|
if (n === null) return {};
|
|
2393
|
-
for (r = {},
|
|
2394
|
-
o = t
|
|
2868
|
+
for (r = {}, i = Object.keys(n), t = 0, l = i.length; t < l; t += 1)
|
|
2869
|
+
o = i[t], a = String(n[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), c = e.compiledTypeMap.fallback[o], c && Er.call(c.styleAliases, a) && (a = c.styleAliases[a]), r[o] = a;
|
|
2395
2870
|
return r;
|
|
2396
2871
|
}
|
|
2397
|
-
function
|
|
2398
|
-
var n, r,
|
|
2872
|
+
function ta(e) {
|
|
2873
|
+
var n, r, i;
|
|
2399
2874
|
if (n = e.toString(16).toUpperCase(), e <= 255)
|
|
2400
|
-
r = "x",
|
|
2875
|
+
r = "x", i = 2;
|
|
2401
2876
|
else if (e <= 65535)
|
|
2402
|
-
r = "u",
|
|
2877
|
+
r = "u", i = 4;
|
|
2403
2878
|
else if (e <= 4294967295)
|
|
2404
|
-
r = "U",
|
|
2879
|
+
r = "U", i = 8;
|
|
2405
2880
|
else
|
|
2406
|
-
throw new
|
|
2407
|
-
return "\\" + r +
|
|
2881
|
+
throw new J("code point within a string may not be greater than 0xFFFFFFFF");
|
|
2882
|
+
return "\\" + r + z.repeat("0", i - n.length) + n;
|
|
2408
2883
|
}
|
|
2409
|
-
var
|
|
2410
|
-
function
|
|
2411
|
-
this.schema = e.schema ||
|
|
2884
|
+
var ia = 1, je = 2;
|
|
2885
|
+
function oa(e) {
|
|
2886
|
+
this.schema = e.schema || ln, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = z.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = ra(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 === '"' ? je : ia, 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;
|
|
2412
2887
|
}
|
|
2413
2888
|
function En(e, n) {
|
|
2414
|
-
for (var r =
|
|
2415
|
-
|
|
2416
|
-
`,
|
|
2889
|
+
for (var r = z.repeat(" ", n), i = 0, t = -1, l = "", o, a = e.length; i < a; )
|
|
2890
|
+
t = e.indexOf(`
|
|
2891
|
+
`, i), t === -1 ? (o = e.slice(i), i = a) : (o = e.slice(i, t + 1), i = t + 1), o.length && o !== `
|
|
2417
2892
|
` && (l += r), l += o;
|
|
2418
2893
|
return l;
|
|
2419
2894
|
}
|
|
2420
|
-
function
|
|
2895
|
+
function Je(e, n) {
|
|
2421
2896
|
return `
|
|
2422
|
-
` +
|
|
2897
|
+
` + z.repeat(" ", e.indent * n);
|
|
2423
2898
|
}
|
|
2424
|
-
function
|
|
2425
|
-
var r,
|
|
2426
|
-
for (r = 0,
|
|
2427
|
-
if (
|
|
2899
|
+
function la(e, n) {
|
|
2900
|
+
var r, i, t;
|
|
2901
|
+
for (r = 0, i = e.implicitTypes.length; r < i; r += 1)
|
|
2902
|
+
if (t = e.implicitTypes[r], t.resolve(n))
|
|
2428
2903
|
return !0;
|
|
2429
2904
|
return !1;
|
|
2430
2905
|
}
|
|
2431
|
-
function
|
|
2432
|
-
return e ===
|
|
2906
|
+
function Ue(e) {
|
|
2907
|
+
return e === Yl || e === Pl;
|
|
2433
2908
|
}
|
|
2434
|
-
function
|
|
2435
|
-
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !==
|
|
2909
|
+
function Oe(e) {
|
|
2910
|
+
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== sn || 65536 <= e && e <= 1114111;
|
|
2436
2911
|
}
|
|
2437
|
-
function
|
|
2438
|
-
return
|
|
2912
|
+
function Tn(e) {
|
|
2913
|
+
return Oe(e) && e !== sn && e !== Dl && e !== Me;
|
|
2439
2914
|
}
|
|
2440
|
-
function
|
|
2441
|
-
var
|
|
2915
|
+
function Mn(e, n, r) {
|
|
2916
|
+
var i = Tn(e), t = i && !Ue(e);
|
|
2442
2917
|
return (
|
|
2443
2918
|
// ns-plain-safe
|
|
2444
2919
|
(r ? (
|
|
2445
2920
|
// c = flow-in
|
|
2446
|
-
|
|
2447
|
-
) :
|
|
2921
|
+
i
|
|
2922
|
+
) : i && e !== Tr && e !== Mr && e !== jr && e !== Or && e !== Nr) && e !== Ze && !(n === We && !t) || Tn(n) && !Ue(n) && e === Ze || n === We && t
|
|
2448
2923
|
);
|
|
2449
2924
|
}
|
|
2450
|
-
function
|
|
2451
|
-
return
|
|
2925
|
+
function aa(e) {
|
|
2926
|
+
return Oe(e) && e !== sn && !Ue(e) && e !== Xl && e !== Vl && e !== We && e !== Tr && e !== Mr && e !== jr && e !== Or && e !== Nr && e !== Ze && e !== Ul && e !== ql && e !== Bl && e !== Ql && e !== Gl && e !== Kl && e !== zl && e !== Hl && e !== Wl && e !== Zl && e !== Jl;
|
|
2452
2927
|
}
|
|
2453
|
-
function
|
|
2454
|
-
return !
|
|
2928
|
+
function ca(e) {
|
|
2929
|
+
return !Ue(e) && e !== We;
|
|
2455
2930
|
}
|
|
2456
|
-
function
|
|
2457
|
-
var r = e.charCodeAt(n),
|
|
2458
|
-
return r >= 55296 && r <= 56319 && n + 1 < e.length && (
|
|
2931
|
+
function Ee(e, n) {
|
|
2932
|
+
var r = e.charCodeAt(n), i;
|
|
2933
|
+
return r >= 55296 && r <= 56319 && n + 1 < e.length && (i = e.charCodeAt(n + 1), i >= 56320 && i <= 57343) ? (r - 55296) * 1024 + i - 56320 + 65536 : r;
|
|
2459
2934
|
}
|
|
2460
|
-
function
|
|
2935
|
+
function Lr(e) {
|
|
2461
2936
|
var n = /^\n* /;
|
|
2462
2937
|
return n.test(e);
|
|
2463
2938
|
}
|
|
2464
|
-
var
|
|
2465
|
-
function
|
|
2466
|
-
var c,
|
|
2939
|
+
var Fr = 1, Qe = 2, Ir = 3, Rr = 4, ve = 5;
|
|
2940
|
+
function sa(e, n, r, i, t, l, o, a) {
|
|
2941
|
+
var c, f = 0, u = null, d = !1, p = !1, x = i !== -1, m = -1, y = aa(Ee(e, 0)) && ca(Ee(e, e.length - 1));
|
|
2467
2942
|
if (n || o)
|
|
2468
|
-
for (c = 0; c < e.length;
|
|
2469
|
-
if (
|
|
2470
|
-
return
|
|
2471
|
-
y = y &&
|
|
2943
|
+
for (c = 0; c < e.length; f >= 65536 ? c += 2 : c++) {
|
|
2944
|
+
if (f = Ee(e, c), !Oe(f))
|
|
2945
|
+
return ve;
|
|
2946
|
+
y = y && Mn(f, u, a), u = f;
|
|
2472
2947
|
}
|
|
2473
2948
|
else {
|
|
2474
|
-
for (c = 0; c < e.length;
|
|
2475
|
-
if (
|
|
2476
|
-
|
|
2477
|
-
c - m - 1 >
|
|
2478
|
-
else if (!
|
|
2479
|
-
return
|
|
2480
|
-
y = y &&
|
|
2481
|
-
}
|
|
2482
|
-
p = p ||
|
|
2949
|
+
for (c = 0; c < e.length; f >= 65536 ? c += 2 : c++) {
|
|
2950
|
+
if (f = Ee(e, c), f === Me)
|
|
2951
|
+
d = !0, x && (p = p || // Foldable line = too long, and not more-indented.
|
|
2952
|
+
c - m - 1 > i && e[m + 1] !== " ", m = c);
|
|
2953
|
+
else if (!Oe(f))
|
|
2954
|
+
return ve;
|
|
2955
|
+
y = y && Mn(f, u, a), u = f;
|
|
2956
|
+
}
|
|
2957
|
+
p = p || x && c - m - 1 > i && e[m + 1] !== " ";
|
|
2483
2958
|
}
|
|
2484
|
-
return !
|
|
2959
|
+
return !d && !p ? y && !o && !t(e) ? Fr : l === je ? ve : Qe : r > 9 && Lr(e) ? ve : o ? l === je ? ve : Qe : p ? Rr : Ir;
|
|
2485
2960
|
}
|
|
2486
|
-
function
|
|
2961
|
+
function fa(e, n, r, i, t) {
|
|
2487
2962
|
e.dump = (function() {
|
|
2488
2963
|
if (n.length === 0)
|
|
2489
|
-
return e.quotingType ===
|
|
2490
|
-
if (!e.noCompatMode && (
|
|
2491
|
-
return e.quotingType ===
|
|
2492
|
-
var l = e.indent * Math.max(1, r), o = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - l), a =
|
|
2493
|
-
function c(
|
|
2494
|
-
return
|
|
2495
|
-
}
|
|
2496
|
-
switch (
|
|
2964
|
+
return e.quotingType === je ? '""' : "''";
|
|
2965
|
+
if (!e.noCompatMode && (ea.indexOf(n) !== -1 || na.test(n)))
|
|
2966
|
+
return e.quotingType === je ? '"' + n + '"' : "'" + n + "'";
|
|
2967
|
+
var l = e.indent * Math.max(1, r), o = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - l), a = i || e.flowLevel > -1 && r >= e.flowLevel;
|
|
2968
|
+
function c(f) {
|
|
2969
|
+
return la(e, f);
|
|
2970
|
+
}
|
|
2971
|
+
switch (sa(
|
|
2497
2972
|
n,
|
|
2498
2973
|
a,
|
|
2499
2974
|
e.indent,
|
|
2500
2975
|
o,
|
|
2501
2976
|
c,
|
|
2502
2977
|
e.quotingType,
|
|
2503
|
-
e.forceQuotes && !
|
|
2504
|
-
|
|
2978
|
+
e.forceQuotes && !i,
|
|
2979
|
+
t
|
|
2505
2980
|
)) {
|
|
2506
|
-
case
|
|
2981
|
+
case Fr:
|
|
2507
2982
|
return n;
|
|
2508
|
-
case
|
|
2983
|
+
case Qe:
|
|
2509
2984
|
return "'" + n.replace(/'/g, "''") + "'";
|
|
2510
|
-
case
|
|
2511
|
-
return "|" +
|
|
2512
|
-
case
|
|
2513
|
-
return ">" +
|
|
2514
|
-
case
|
|
2515
|
-
return '"' +
|
|
2985
|
+
case Ir:
|
|
2986
|
+
return "|" + jn(n, e.indent) + On(En(n, l));
|
|
2987
|
+
case Rr:
|
|
2988
|
+
return ">" + jn(n, e.indent) + On(En(ua(n, o), l));
|
|
2989
|
+
case ve:
|
|
2990
|
+
return '"' + pa(n) + '"';
|
|
2516
2991
|
default:
|
|
2517
|
-
throw new
|
|
2992
|
+
throw new J("impossible error: invalid scalar style");
|
|
2518
2993
|
}
|
|
2519
2994
|
})();
|
|
2520
2995
|
}
|
|
2521
|
-
function
|
|
2522
|
-
var r =
|
|
2523
|
-
`,
|
|
2996
|
+
function jn(e, n) {
|
|
2997
|
+
var r = Lr(e) ? String(n) : "", i = e[e.length - 1] === `
|
|
2998
|
+
`, t = i && (e[e.length - 2] === `
|
|
2524
2999
|
` || e === `
|
|
2525
|
-
`), l =
|
|
3000
|
+
`), l = t ? "+" : i ? "" : "-";
|
|
2526
3001
|
return r + l + `
|
|
2527
3002
|
`;
|
|
2528
3003
|
}
|
|
2529
|
-
function
|
|
3004
|
+
function On(e) {
|
|
2530
3005
|
return e[e.length - 1] === `
|
|
2531
3006
|
` ? e.slice(0, -1) : e;
|
|
2532
3007
|
}
|
|
2533
|
-
function
|
|
2534
|
-
for (var r = /(\n+)([^\n]*)/g,
|
|
2535
|
-
var
|
|
3008
|
+
function ua(e, n) {
|
|
3009
|
+
for (var r = /(\n+)([^\n]*)/g, i = (function() {
|
|
3010
|
+
var f = e.indexOf(`
|
|
2536
3011
|
`);
|
|
2537
|
-
return
|
|
2538
|
-
})(),
|
|
3012
|
+
return f = f !== -1 ? f : e.length, r.lastIndex = f, Nn(e.slice(0, f), n);
|
|
3013
|
+
})(), t = e[0] === `
|
|
2539
3014
|
` || e[0] === " ", l, o; o = r.exec(e); ) {
|
|
2540
3015
|
var a = o[1], c = o[2];
|
|
2541
|
-
l = c[0] === " ",
|
|
2542
|
-
` : "") +
|
|
3016
|
+
l = c[0] === " ", i += a + (!t && !l && c !== "" ? `
|
|
3017
|
+
` : "") + Nn(c, n), t = l;
|
|
2543
3018
|
}
|
|
2544
|
-
return
|
|
3019
|
+
return i;
|
|
2545
3020
|
}
|
|
2546
|
-
function
|
|
3021
|
+
function Nn(e, n) {
|
|
2547
3022
|
if (e === "" || e[0] === " ") return e;
|
|
2548
|
-
for (var r = / [^ ]/g,
|
|
2549
|
-
a =
|
|
2550
|
-
` + e.slice(
|
|
3023
|
+
for (var r = / [^ ]/g, i, t = 0, l, o = 0, a = 0, c = ""; i = r.exec(e); )
|
|
3024
|
+
a = i.index, a - t > n && (l = o > t ? o : a, c += `
|
|
3025
|
+
` + e.slice(t, l), t = l + 1), o = a;
|
|
2551
3026
|
return c += `
|
|
2552
|
-
`, e.length -
|
|
2553
|
-
` + e.slice(o + 1) : c += e.slice(
|
|
3027
|
+
`, e.length - t > n && o > t ? c += e.slice(t, o) + `
|
|
3028
|
+
` + e.slice(o + 1) : c += e.slice(t), c.slice(1);
|
|
2554
3029
|
}
|
|
2555
|
-
function
|
|
2556
|
-
for (var n = "", r = 0,
|
|
2557
|
-
r =
|
|
3030
|
+
function pa(e) {
|
|
3031
|
+
for (var n = "", r = 0, i, t = 0; t < e.length; r >= 65536 ? t += 2 : t++)
|
|
3032
|
+
r = Ee(e, t), i = V[r], !i && Oe(r) ? (n += e[t], r >= 65536 && (n += e[t + 1])) : n += i || ta(r);
|
|
2558
3033
|
return n;
|
|
2559
3034
|
}
|
|
2560
|
-
function
|
|
2561
|
-
var
|
|
3035
|
+
function ha(e, n, r) {
|
|
3036
|
+
var i = "", t = e.tag, l, o, a;
|
|
2562
3037
|
for (l = 0, o = r.length; l < o; l += 1)
|
|
2563
|
-
a = r[l], e.replacer && (a = e.replacer.call(r, String(l), a)), (
|
|
2564
|
-
e.tag =
|
|
3038
|
+
a = r[l], e.replacer && (a = e.replacer.call(r, String(l), a)), (ce(e, n, a, !1, !1) || typeof a > "u" && ce(e, n, null, !1, !1)) && (i !== "" && (i += "," + (e.condenseFlow ? "" : " ")), i += e.dump);
|
|
3039
|
+
e.tag = t, e.dump = "[" + i + "]";
|
|
2565
3040
|
}
|
|
2566
|
-
function
|
|
2567
|
-
var
|
|
3041
|
+
function Ln(e, n, r, i) {
|
|
3042
|
+
var t = "", l = e.tag, o, a, c;
|
|
2568
3043
|
for (o = 0, a = r.length; o < a; o += 1)
|
|
2569
|
-
c = r[o], e.replacer && (c = e.replacer.call(r, String(o), c)), (
|
|
2570
|
-
e.tag = l, e.dump =
|
|
3044
|
+
c = r[o], e.replacer && (c = e.replacer.call(r, String(o), c)), (ce(e, n + 1, c, !0, !0, !1, !0) || typeof c > "u" && ce(e, n + 1, null, !0, !0, !1, !0)) && ((!i || t !== "") && (t += Je(e, n)), e.dump && Me === e.dump.charCodeAt(0) ? t += "-" : t += "- ", t += e.dump);
|
|
3045
|
+
e.tag = l, e.dump = t || "[]";
|
|
2571
3046
|
}
|
|
2572
|
-
function
|
|
2573
|
-
var
|
|
3047
|
+
function da(e, n, r) {
|
|
3048
|
+
var i = "", t = e.tag, l = Object.keys(r), o, a, c, f, u;
|
|
2574
3049
|
for (o = 0, a = l.length; o < a; o += 1)
|
|
2575
|
-
u = "",
|
|
2576
|
-
e.tag =
|
|
3050
|
+
u = "", i !== "" && (u += ", "), e.condenseFlow && (u += '"'), c = l[o], f = r[c], e.replacer && (f = e.replacer.call(r, c, f)), ce(e, n, c, !1, !1) && (e.dump.length > 1024 && (u += "? "), u += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), ce(e, n, f, !1, !1) && (u += e.dump, i += u));
|
|
3051
|
+
e.tag = t, e.dump = "{" + i + "}";
|
|
2577
3052
|
}
|
|
2578
|
-
function
|
|
2579
|
-
var
|
|
3053
|
+
function xa(e, n, r, i) {
|
|
3054
|
+
var t = "", l = e.tag, o = Object.keys(r), a, c, f, u, d, p;
|
|
2580
3055
|
if (e.sortKeys === !0)
|
|
2581
3056
|
o.sort();
|
|
2582
3057
|
else if (typeof e.sortKeys == "function")
|
|
2583
3058
|
o.sort(e.sortKeys);
|
|
2584
3059
|
else if (e.sortKeys)
|
|
2585
|
-
throw new
|
|
3060
|
+
throw new J("sortKeys must be a boolean or a function");
|
|
2586
3061
|
for (a = 0, c = o.length; a < c; a += 1)
|
|
2587
|
-
p = "", (!
|
|
2588
|
-
e.tag = l, e.dump =
|
|
3062
|
+
p = "", (!i || t !== "") && (p += Je(e, n)), f = o[a], u = r[f], e.replacer && (u = e.replacer.call(r, f, u)), ce(e, n + 1, f, !0, !0, !0) && (d = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, d && (e.dump && Me === e.dump.charCodeAt(0) ? p += "?" : p += "? "), p += e.dump, d && (p += Je(e, n)), ce(e, n + 1, u, !0, d) && (e.dump && Me === e.dump.charCodeAt(0) ? p += ":" : p += ": ", p += e.dump, t += p));
|
|
3063
|
+
e.tag = l, e.dump = t || "{}";
|
|
2589
3064
|
}
|
|
2590
3065
|
function Fn(e, n, r) {
|
|
2591
|
-
var
|
|
2592
|
-
for (
|
|
2593
|
-
if (a =
|
|
3066
|
+
var i, t, l, o, a, c;
|
|
3067
|
+
for (t = r ? e.explicitTypes : e.implicitTypes, l = 0, o = t.length; l < o; l += 1)
|
|
3068
|
+
if (a = t[l], (a.instanceOf || a.predicate) && (!a.instanceOf || typeof n == "object" && n instanceof a.instanceOf) && (!a.predicate || a.predicate(n))) {
|
|
2594
3069
|
if (r ? a.multi && a.representName ? e.tag = a.representName(n) : e.tag = a.tag : e.tag = "?", a.represent) {
|
|
2595
|
-
if (c = e.styleMap[a.tag] || a.defaultStyle,
|
|
2596
|
-
|
|
2597
|
-
else if (
|
|
2598
|
-
|
|
3070
|
+
if (c = e.styleMap[a.tag] || a.defaultStyle, Sr.call(a.represent) === "[object Function]")
|
|
3071
|
+
i = a.represent(n, c);
|
|
3072
|
+
else if (Er.call(a.represent, c))
|
|
3073
|
+
i = a.represent[c](n, c);
|
|
2599
3074
|
else
|
|
2600
|
-
throw new
|
|
2601
|
-
e.dump =
|
|
3075
|
+
throw new J("!<" + a.tag + '> tag resolver accepts not "' + c + '" style');
|
|
3076
|
+
e.dump = i;
|
|
2602
3077
|
}
|
|
2603
3078
|
return !0;
|
|
2604
3079
|
}
|
|
2605
3080
|
return !1;
|
|
2606
3081
|
}
|
|
2607
|
-
function
|
|
3082
|
+
function ce(e, n, r, i, t, l, o) {
|
|
2608
3083
|
e.tag = null, e.dump = r, Fn(e, r, !1) || Fn(e, r, !0);
|
|
2609
|
-
var a =
|
|
2610
|
-
|
|
2611
|
-
var u = a === "[object Object]" || a === "[object Array]",
|
|
2612
|
-
if (u && (
|
|
2613
|
-
e.dump = "*ref_" +
|
|
3084
|
+
var a = Sr.call(e.dump), c = i, f;
|
|
3085
|
+
i && (i = e.flowLevel < 0 || e.flowLevel > n);
|
|
3086
|
+
var u = a === "[object Object]" || a === "[object Array]", d, p;
|
|
3087
|
+
if (u && (d = e.duplicates.indexOf(r), p = d !== -1), (e.tag !== null && e.tag !== "?" || p || e.indent !== 2 && n > 0) && (t = !1), p && e.usedDuplicates[d])
|
|
3088
|
+
e.dump = "*ref_" + d;
|
|
2614
3089
|
else {
|
|
2615
|
-
if (u && p && !e.usedDuplicates[
|
|
2616
|
-
|
|
3090
|
+
if (u && p && !e.usedDuplicates[d] && (e.usedDuplicates[d] = !0), a === "[object Object]")
|
|
3091
|
+
i && Object.keys(e.dump).length !== 0 ? (xa(e, n, e.dump, t), p && (e.dump = "&ref_" + d + e.dump)) : (da(e, n, e.dump), p && (e.dump = "&ref_" + d + " " + e.dump));
|
|
2617
3092
|
else if (a === "[object Array]")
|
|
2618
|
-
|
|
3093
|
+
i && e.dump.length !== 0 ? (e.noArrayIndent && !o && n > 0 ? Ln(e, n - 1, e.dump, t) : Ln(e, n, e.dump, t), p && (e.dump = "&ref_" + d + e.dump)) : (ha(e, n, e.dump), p && (e.dump = "&ref_" + d + " " + e.dump));
|
|
2619
3094
|
else if (a === "[object String]")
|
|
2620
|
-
e.tag !== "?" &&
|
|
3095
|
+
e.tag !== "?" && fa(e, e.dump, n, l, c);
|
|
2621
3096
|
else {
|
|
2622
3097
|
if (a === "[object Undefined]")
|
|
2623
3098
|
return !1;
|
|
2624
3099
|
if (e.skipInvalid) return !1;
|
|
2625
|
-
throw new
|
|
3100
|
+
throw new J("unacceptable kind of an object to dump " + a);
|
|
2626
3101
|
}
|
|
2627
|
-
e.tag !== null && e.tag !== "?" && (
|
|
3102
|
+
e.tag !== null && e.tag !== "?" && (f = encodeURI(
|
|
2628
3103
|
e.tag[0] === "!" ? e.tag.slice(1) : e.tag
|
|
2629
|
-
).replace(/!/g, "%21"), e.tag[0] === "!" ?
|
|
3104
|
+
).replace(/!/g, "%21"), e.tag[0] === "!" ? f = "!" + f : f.slice(0, 18) === "tag:yaml.org,2002:" ? f = "!!" + f.slice(18) : f = "!<" + f + ">", e.dump = f + " " + e.dump);
|
|
2630
3105
|
}
|
|
2631
3106
|
return !0;
|
|
2632
3107
|
}
|
|
2633
|
-
function
|
|
2634
|
-
var r = [],
|
|
2635
|
-
for (
|
|
2636
|
-
n.duplicates.push(r[t
|
|
3108
|
+
function ma(e, n) {
|
|
3109
|
+
var r = [], i = [], t, l;
|
|
3110
|
+
for (en(e, r, i), t = 0, l = i.length; t < l; t += 1)
|
|
3111
|
+
n.duplicates.push(r[i[t]]);
|
|
2637
3112
|
n.usedDuplicates = new Array(l);
|
|
2638
3113
|
}
|
|
2639
|
-
function
|
|
2640
|
-
var
|
|
3114
|
+
function en(e, n, r) {
|
|
3115
|
+
var i, t, l;
|
|
2641
3116
|
if (e !== null && typeof e == "object")
|
|
2642
|
-
if (
|
|
2643
|
-
r.indexOf(
|
|
3117
|
+
if (t = n.indexOf(e), t !== -1)
|
|
3118
|
+
r.indexOf(t) === -1 && r.push(t);
|
|
2644
3119
|
else if (n.push(e), Array.isArray(e))
|
|
2645
|
-
for (
|
|
2646
|
-
|
|
3120
|
+
for (t = 0, l = e.length; t < l; t += 1)
|
|
3121
|
+
en(e[t], n, r);
|
|
2647
3122
|
else
|
|
2648
|
-
for (
|
|
2649
|
-
|
|
3123
|
+
for (i = Object.keys(e), t = 0, l = i.length; t < l; t += 1)
|
|
3124
|
+
en(e[i[t]], n, r);
|
|
2650
3125
|
}
|
|
2651
|
-
function
|
|
3126
|
+
function ya(e, n) {
|
|
2652
3127
|
n = n || {};
|
|
2653
|
-
var r = new
|
|
2654
|
-
r.noRefs ||
|
|
2655
|
-
var
|
|
2656
|
-
return r.replacer && (
|
|
3128
|
+
var r = new oa(n);
|
|
3129
|
+
r.noRefs || ma(e, r);
|
|
3130
|
+
var i = e;
|
|
3131
|
+
return r.replacer && (i = r.replacer.call({ "": i }, "", i)), ce(r, 0, i, !0, !0) ? r.dump + `
|
|
2657
3132
|
` : "";
|
|
2658
3133
|
}
|
|
2659
|
-
var
|
|
2660
|
-
dump:
|
|
3134
|
+
var ga = ya, ka = {
|
|
3135
|
+
dump: ga
|
|
2661
3136
|
};
|
|
2662
|
-
function
|
|
3137
|
+
function fn(e, n) {
|
|
2663
3138
|
return function() {
|
|
2664
3139
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + n + " instead, which is now safe by default.");
|
|
2665
3140
|
};
|
|
2666
3141
|
}
|
|
2667
|
-
var
|
|
2668
|
-
binary:
|
|
2669
|
-
float:
|
|
2670
|
-
map:
|
|
2671
|
-
null:
|
|
2672
|
-
pairs:
|
|
2673
|
-
set:
|
|
2674
|
-
timestamp:
|
|
2675
|
-
bool:
|
|
2676
|
-
int:
|
|
2677
|
-
merge:
|
|
2678
|
-
omap:
|
|
2679
|
-
seq:
|
|
2680
|
-
str:
|
|
2681
|
-
},
|
|
2682
|
-
Type:
|
|
2683
|
-
Schema:
|
|
2684
|
-
FAILSAFE_SCHEMA:
|
|
2685
|
-
JSON_SCHEMA:
|
|
2686
|
-
CORE_SCHEMA:
|
|
2687
|
-
DEFAULT_SCHEMA:
|
|
2688
|
-
load:
|
|
2689
|
-
loadAll:
|
|
2690
|
-
dump:
|
|
2691
|
-
YAMLException:
|
|
2692
|
-
types:
|
|
2693
|
-
safeLoad:
|
|
2694
|
-
safeLoadAll:
|
|
2695
|
-
safeDump:
|
|
3142
|
+
var va = G, ba = Jn, Aa = rr, _a = ar, wa = cr, Ca = ln, $a = $r.load, Sa = $r.loadAll, Ea = ka.dump, Ta = J, Ma = {
|
|
3143
|
+
binary: hr,
|
|
3144
|
+
float: lr,
|
|
3145
|
+
map: nr,
|
|
3146
|
+
null: tr,
|
|
3147
|
+
pairs: xr,
|
|
3148
|
+
set: mr,
|
|
3149
|
+
timestamp: ur,
|
|
3150
|
+
bool: ir,
|
|
3151
|
+
int: or,
|
|
3152
|
+
merge: pr,
|
|
3153
|
+
omap: dr,
|
|
3154
|
+
seq: er,
|
|
3155
|
+
str: Qn
|
|
3156
|
+
}, ja = fn("safeLoad", "load"), Oa = fn("safeLoadAll", "loadAll"), Na = fn("safeDump", "dump"), La = {
|
|
3157
|
+
Type: va,
|
|
3158
|
+
Schema: ba,
|
|
3159
|
+
FAILSAFE_SCHEMA: Aa,
|
|
3160
|
+
JSON_SCHEMA: _a,
|
|
3161
|
+
CORE_SCHEMA: wa,
|
|
3162
|
+
DEFAULT_SCHEMA: Ca,
|
|
3163
|
+
load: $a,
|
|
3164
|
+
loadAll: Sa,
|
|
3165
|
+
dump: Ea,
|
|
3166
|
+
YAMLException: Ta,
|
|
3167
|
+
types: Ma,
|
|
3168
|
+
safeLoad: ja,
|
|
3169
|
+
safeLoadAll: Oa,
|
|
3170
|
+
safeDump: Na
|
|
2696
3171
|
};
|
|
2697
|
-
function
|
|
3172
|
+
function Fa(e) {
|
|
2698
3173
|
const n = e.match(/^(\d+)x(\d+)x(\d+)$/);
|
|
2699
3174
|
return n ? {
|
|
2700
3175
|
width: parseInt(n[1], 10),
|
|
@@ -2702,44 +3177,44 @@ function Lo(e) {
|
|
|
2702
3177
|
height: parseInt(n[3], 10)
|
|
2703
3178
|
} : null;
|
|
2704
3179
|
}
|
|
2705
|
-
function
|
|
3180
|
+
function In(e) {
|
|
2706
3181
|
const n = e.match(/^(\d+)x(\d+)$/);
|
|
2707
3182
|
return n ? {
|
|
2708
3183
|
width: parseInt(n[1], 10),
|
|
2709
3184
|
height: parseInt(n[2], 10)
|
|
2710
3185
|
} : null;
|
|
2711
3186
|
}
|
|
2712
|
-
function
|
|
3187
|
+
function Ia(e) {
|
|
2713
3188
|
const n = e.match(/^(-?\d+),(-?\d+)$/);
|
|
2714
3189
|
return n ? {
|
|
2715
3190
|
x: parseInt(n[1], 10),
|
|
2716
3191
|
y: parseInt(n[2], 10)
|
|
2717
3192
|
} : null;
|
|
2718
3193
|
}
|
|
2719
|
-
function
|
|
3194
|
+
function Ra(e) {
|
|
2720
3195
|
const n = e.match(/^(.+?)\s*@\s*(\d+)$/);
|
|
2721
3196
|
return n ? {
|
|
2722
3197
|
name: n[1].trim(),
|
|
2723
3198
|
elevation: parseInt(n[2], 10)
|
|
2724
3199
|
} : null;
|
|
2725
3200
|
}
|
|
2726
|
-
function
|
|
2727
|
-
const
|
|
2728
|
-
if (
|
|
2729
|
-
const
|
|
2730
|
-
for (const m of
|
|
2731
|
-
const [y,
|
|
2732
|
-
if (y &&
|
|
2733
|
-
const
|
|
2734
|
-
|
|
3201
|
+
function Pa(e, n, r) {
|
|
3202
|
+
const i = {}, t = e.match(/\{([^}]+)\}\s*$/);
|
|
3203
|
+
if (t) {
|
|
3204
|
+
const x = t[1].split(/\s+/);
|
|
3205
|
+
for (const m of x) {
|
|
3206
|
+
const [y, v] = m.split("=");
|
|
3207
|
+
if (y && v) {
|
|
3208
|
+
const k = parseFloat(v);
|
|
3209
|
+
i[y] = isNaN(k) ? v : k;
|
|
2735
3210
|
}
|
|
2736
3211
|
}
|
|
2737
3212
|
e = e.replace(/\{[^}]+\}\s*$/, "").trim();
|
|
2738
3213
|
}
|
|
2739
3214
|
const l = e.trim().split(/\s+/);
|
|
2740
3215
|
if (l.length < 4) return null;
|
|
2741
|
-
const o = l[0], a = l[1], c = l[2],
|
|
2742
|
-
if (!u || !
|
|
3216
|
+
const o = l[0], a = l[1], c = l[2], f = l[3], u = Ia(c), d = Fa(f);
|
|
3217
|
+
if (!u || !d) return null;
|
|
2743
3218
|
const p = r[a] || a;
|
|
2744
3219
|
return {
|
|
2745
3220
|
tier: n,
|
|
@@ -2747,105 +3222,105 @@ function Mo(e, n, r) {
|
|
|
2747
3222
|
color: p,
|
|
2748
3223
|
x: u.x,
|
|
2749
3224
|
y: u.y,
|
|
2750
|
-
width:
|
|
2751
|
-
depth:
|
|
2752
|
-
height:
|
|
2753
|
-
...
|
|
3225
|
+
width: d.width,
|
|
3226
|
+
depth: d.depth,
|
|
3227
|
+
height: d.height,
|
|
3228
|
+
...i
|
|
2754
3229
|
};
|
|
2755
3230
|
}
|
|
2756
|
-
function
|
|
2757
|
-
const n =
|
|
3231
|
+
function Wa(e) {
|
|
3232
|
+
const n = La.load(e);
|
|
2758
3233
|
let r = { width: 1100, height: 700 };
|
|
2759
3234
|
if (typeof n.canvas == "string") {
|
|
2760
|
-
const p =
|
|
3235
|
+
const p = In(n.canvas);
|
|
2761
3236
|
p && (r = p);
|
|
2762
3237
|
} else n.canvas && typeof n.canvas == "object" && (r = n.canvas);
|
|
2763
|
-
let
|
|
3238
|
+
let i = { width: 400, depth: 280 };
|
|
2764
3239
|
if (typeof n.floor == "string") {
|
|
2765
|
-
const p =
|
|
2766
|
-
p && (
|
|
2767
|
-
} else n.floor && typeof n.floor == "object" && (
|
|
2768
|
-
let
|
|
2769
|
-
n.origin && typeof n.origin == "object" && (
|
|
3240
|
+
const p = In(n.floor);
|
|
3241
|
+
p && (i = { width: p.width, depth: p.height });
|
|
3242
|
+
} else n.floor && typeof n.floor == "object" && (i = n.floor);
|
|
3243
|
+
let t = { x: r.width / 2, y: r.height - 80 };
|
|
3244
|
+
n.origin && typeof n.origin == "object" && (t = n.origin);
|
|
2770
3245
|
const l = {};
|
|
2771
3246
|
if (n.colors && typeof n.colors == "object")
|
|
2772
|
-
for (const [p,
|
|
2773
|
-
l[p] =
|
|
3247
|
+
for (const [p, x] of Object.entries(n.colors))
|
|
3248
|
+
l[p] = x;
|
|
2774
3249
|
const o = [], a = {
|
|
2775
3250
|
dark: ["#0f172a", "#1e293b", "#334155", "#475569"],
|
|
2776
3251
|
light: ["#f1f5f9", "#e0f2fe", "#dbeafe", "#ede9fe"]
|
|
2777
3252
|
}, c = {
|
|
2778
3253
|
dark: ["#334155", "#475569", "#64748b", "#94a3b8"],
|
|
2779
3254
|
light: ["#94a3b8", "#7dd3fc", "#93c5fd", "#c4b5fd"]
|
|
2780
|
-
},
|
|
2781
|
-
Array.isArray(n.tiers) && n.tiers.forEach((p,
|
|
3255
|
+
}, f = n.theme || "dark";
|
|
3256
|
+
Array.isArray(n.tiers) && n.tiers.forEach((p, x) => {
|
|
2782
3257
|
if (typeof p == "string") {
|
|
2783
|
-
const m =
|
|
3258
|
+
const m = Ra(p);
|
|
2784
3259
|
m && o.push({
|
|
2785
3260
|
name: m.name,
|
|
2786
3261
|
elevation: m.elevation,
|
|
2787
|
-
floorColor: a[
|
|
2788
|
-
floorOpacity:
|
|
2789
|
-
borderColor: c[
|
|
3262
|
+
floorColor: a[f][x] || a[f][0],
|
|
3263
|
+
floorOpacity: x === 0 ? 0.95 : 0.7 - x * 0.1,
|
|
3264
|
+
borderColor: c[f][x] || c[f][0]
|
|
2790
3265
|
});
|
|
2791
3266
|
} else if (p && typeof p == "object") {
|
|
2792
3267
|
const m = p;
|
|
2793
3268
|
o.push({
|
|
2794
|
-
name: m.name || `Tier ${
|
|
2795
|
-
elevation: m.elevation ||
|
|
2796
|
-
floorColor: m.floorColor || a[
|
|
2797
|
-
floorOpacity: m.floorOpacity ?? (
|
|
2798
|
-
borderColor: m.borderColor || c[
|
|
3269
|
+
name: m.name || `Tier ${x}`,
|
|
3270
|
+
elevation: m.elevation || x * 150,
|
|
3271
|
+
floorColor: m.floorColor || a[f][x],
|
|
3272
|
+
floorOpacity: m.floorOpacity ?? (x === 0 ? 0.95 : 0.7 - x * 0.1),
|
|
3273
|
+
borderColor: m.borderColor || c[f][x]
|
|
2799
3274
|
});
|
|
2800
3275
|
}
|
|
2801
3276
|
});
|
|
2802
3277
|
const u = [];
|
|
2803
3278
|
if (n.nodes && typeof n.nodes == "object" && !Array.isArray(n.nodes)) {
|
|
2804
3279
|
const p = n.nodes;
|
|
2805
|
-
for (const [
|
|
2806
|
-
const y = parseInt(
|
|
3280
|
+
for (const [x, m] of Object.entries(p)) {
|
|
3281
|
+
const y = parseInt(x, 10);
|
|
2807
3282
|
if (!(isNaN(y) || !Array.isArray(m))) {
|
|
2808
|
-
for (const
|
|
2809
|
-
if (typeof
|
|
2810
|
-
const
|
|
2811
|
-
|
|
2812
|
-
} else if (
|
|
2813
|
-
const
|
|
3283
|
+
for (const v of m)
|
|
3284
|
+
if (typeof v == "string") {
|
|
3285
|
+
const k = Pa(v, y, l);
|
|
3286
|
+
k && u.push(k);
|
|
3287
|
+
} else if (v && typeof v == "object") {
|
|
3288
|
+
const k = v;
|
|
2814
3289
|
u.push({
|
|
2815
3290
|
tier: y,
|
|
2816
|
-
label:
|
|
2817
|
-
color: l[
|
|
2818
|
-
x:
|
|
2819
|
-
y:
|
|
2820
|
-
width:
|
|
2821
|
-
depth:
|
|
2822
|
-
height:
|
|
2823
|
-
opacity:
|
|
2824
|
-
blur:
|
|
2825
|
-
translucent:
|
|
3291
|
+
label: k.label || "",
|
|
3292
|
+
color: l[k.color] || k.color || "slate",
|
|
3293
|
+
x: k.x || 0,
|
|
3294
|
+
y: k.y || 0,
|
|
3295
|
+
width: k.width || 100,
|
|
3296
|
+
depth: k.depth || 80,
|
|
3297
|
+
height: k.height || 40,
|
|
3298
|
+
opacity: k.opacity,
|
|
3299
|
+
blur: k.blur,
|
|
3300
|
+
translucent: k.translucent
|
|
2826
3301
|
});
|
|
2827
3302
|
}
|
|
2828
3303
|
}
|
|
2829
3304
|
}
|
|
2830
3305
|
}
|
|
2831
|
-
const
|
|
3306
|
+
const d = [];
|
|
2832
3307
|
if (Array.isArray(n.pillars)) {
|
|
2833
3308
|
for (const p of n.pillars)
|
|
2834
3309
|
if (typeof p == "string") {
|
|
2835
|
-
const
|
|
2836
|
-
|
|
2837
|
-
x: parseInt(
|
|
2838
|
-
y: parseInt(
|
|
2839
|
-
fromTier: parseInt(
|
|
2840
|
-
toTier: parseInt(
|
|
3310
|
+
const x = p.match(/^(-?\d+),(-?\d+)\s+(\d+)->(\d+)$/);
|
|
3311
|
+
x && d.push({
|
|
3312
|
+
x: parseInt(x[1], 10),
|
|
3313
|
+
y: parseInt(x[2], 10),
|
|
3314
|
+
fromTier: parseInt(x[3], 10),
|
|
3315
|
+
toTier: parseInt(x[4], 10)
|
|
2841
3316
|
});
|
|
2842
3317
|
} else if (p && typeof p == "object") {
|
|
2843
|
-
const
|
|
2844
|
-
|
|
2845
|
-
x:
|
|
2846
|
-
y:
|
|
2847
|
-
fromTier:
|
|
2848
|
-
toTier:
|
|
3318
|
+
const x = p;
|
|
3319
|
+
d.push({
|
|
3320
|
+
x: x.x || 0,
|
|
3321
|
+
y: x.y || 0,
|
|
3322
|
+
fromTier: x.fromTier || 0,
|
|
3323
|
+
toTier: x.toTier || 1
|
|
2849
3324
|
});
|
|
2850
3325
|
}
|
|
2851
3326
|
}
|
|
@@ -2853,51 +3328,51 @@ function Bo(e) {
|
|
|
2853
3328
|
title: n.title || "Untitled",
|
|
2854
3329
|
style: n.style || void 0,
|
|
2855
3330
|
description: n.description || "",
|
|
2856
|
-
theme:
|
|
3331
|
+
theme: f,
|
|
2857
3332
|
canvas: r,
|
|
2858
|
-
origin:
|
|
3333
|
+
origin: t,
|
|
2859
3334
|
cornerRadius: n.corner ?? n.cornerRadius ?? 14,
|
|
2860
3335
|
tiers: o,
|
|
2861
|
-
floorSize:
|
|
3336
|
+
floorSize: i,
|
|
2862
3337
|
nodes: u,
|
|
2863
|
-
pillars:
|
|
3338
|
+
pillars: d.length > 0 ? d : void 0
|
|
2864
3339
|
};
|
|
2865
3340
|
}
|
|
2866
|
-
function
|
|
3341
|
+
function Ua(e) {
|
|
2867
3342
|
const n = [];
|
|
2868
3343
|
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("");
|
|
2869
3344
|
const r = {};
|
|
2870
|
-
e.nodes.forEach((
|
|
2871
|
-
r[
|
|
3345
|
+
e.nodes.forEach((t) => {
|
|
3346
|
+
r[t.color] = (r[t.color] || 0) + 1;
|
|
2872
3347
|
});
|
|
2873
|
-
const
|
|
2874
|
-
return
|
|
2875
|
-
const l =
|
|
2876
|
-
n.push(` ${l}: &${l} ${
|
|
2877
|
-
}), n.push("")), n.push("tiers:"), e.tiers.forEach((
|
|
2878
|
-
n.push(` - ${
|
|
2879
|
-
}), n.push(""), n.push("nodes:"), e.tiers.forEach((
|
|
3348
|
+
const i = Object.entries(r).filter(([, t]) => t >= 2).map(([t]) => t);
|
|
3349
|
+
return i.length > 0 && (n.push("colors:"), i.forEach((t) => {
|
|
3350
|
+
const l = t.slice(0, 3);
|
|
3351
|
+
n.push(` ${l}: &${l} ${t}`);
|
|
3352
|
+
}), n.push("")), n.push("tiers:"), e.tiers.forEach((t) => {
|
|
3353
|
+
n.push(` - ${t.name} @ ${t.elevation}`);
|
|
3354
|
+
}), n.push(""), n.push("nodes:"), e.tiers.forEach((t, l) => {
|
|
2880
3355
|
const o = e.nodes.filter((a) => a.tier === l);
|
|
2881
|
-
o.length !== 0 && (n.push(` ${l}: # ${
|
|
3356
|
+
o.length !== 0 && (n.push(` ${l}: # ${t.name}`), o.forEach((a) => {
|
|
2882
3357
|
let c = a.color;
|
|
2883
|
-
|
|
2884
|
-
const
|
|
2885
|
-
a.opacity !== void 0 &&
|
|
2886
|
-
const u =
|
|
2887
|
-
n.push(` - ${
|
|
3358
|
+
i.includes(a.color) && (c = `*${a.color.slice(0, 3)}`);
|
|
3359
|
+
const f = [];
|
|
3360
|
+
a.opacity !== void 0 && f.push(`opacity=${a.opacity}`), a.blur !== void 0 && f.push(`blur=${a.blur}`), a.translucent && f.push("translucent=true");
|
|
3361
|
+
const u = f.length > 0 ? ` { ${f.join(" ")} }` : "", d = `${a.width}x${a.depth}x${a.height}`, p = `${a.x},${a.y}`, x = a.label.padEnd(12), m = c.padEnd(8);
|
|
3362
|
+
n.push(` - ${x} ${m} ${p.padEnd(8)} ${d}${u}`);
|
|
2888
3363
|
}));
|
|
2889
|
-
}), e.pillars && e.pillars.length > 0 && (n.push(""), n.push("pillars:"), e.pillars.forEach((
|
|
2890
|
-
n.push(` - ${
|
|
3364
|
+
}), e.pillars && e.pillars.length > 0 && (n.push(""), n.push("pillars:"), e.pillars.forEach((t) => {
|
|
3365
|
+
n.push(` - ${t.x},${t.y} ${t.fromTier}->${t.toTier}`);
|
|
2891
3366
|
})), n.join(`
|
|
2892
3367
|
`);
|
|
2893
3368
|
}
|
|
2894
3369
|
export {
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
3370
|
+
Ba as ArcDiagram,
|
|
3371
|
+
Ua as configToYaml,
|
|
3372
|
+
Ya as getColorShading,
|
|
3373
|
+
xe as isoBox,
|
|
3374
|
+
w as isoToScreen,
|
|
3375
|
+
Wa as parseYamlConfig,
|
|
3376
|
+
Ha as renderToElement,
|
|
3377
|
+
ho as renderToString
|
|
2903
3378
|
};
|