@arach/arc-iso 0.8.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 +824 -811
- package/dist/arc-iso-slim.umd.js +7 -7
- package/dist/arc-iso.es.js +1399 -1386
- package/dist/arc-iso.umd.js +25 -25
- package/dist/index.d.ts +2 -0
- package/package.json +1 -1
package/dist/arc-iso-slim.es.js
CHANGED
|
@@ -1,92 +1,92 @@
|
|
|
1
|
-
import
|
|
2
|
-
const Nt = 30 * (Math.PI / 180),
|
|
3
|
-
function k(t,
|
|
1
|
+
import qt, { useId as $t, forwardRef as Ot, createElement as mt, useMemo as Gt, useState as ft, useEffect as Vt } from "react";
|
|
2
|
+
const Nt = 30 * (Math.PI / 180), Zt = Math.cos(Nt), Jt = Math.sin(Nt);
|
|
3
|
+
function k(t, n, s = 0) {
|
|
4
4
|
return {
|
|
5
|
-
screenX: (t -
|
|
6
|
-
screenY: -(t +
|
|
5
|
+
screenX: (t - n) * Zt,
|
|
6
|
+
screenY: -(t + n) * Jt - s
|
|
7
7
|
// Negated so +X,+Y go UP on screen
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
|
-
function
|
|
11
|
-
let
|
|
12
|
-
t === "y" ? (
|
|
13
|
-
const l = k(
|
|
14
|
-
return `${l.screenX},${l.screenY},${
|
|
10
|
+
function Kt(t = "x") {
|
|
11
|
+
let n = 1, s = 0, a = 0, i = -1;
|
|
12
|
+
t === "y" ? (n = 0, s = 1, a = 1, i = 0) : t === "x-" ? (n = -1, s = 0, a = 0, i = 1) : t === "y-" && (n = 0, s = -1, a = -1, i = 0);
|
|
13
|
+
const l = k(n, s, 0), y = k(a, i, 0);
|
|
14
|
+
return `${l.screenX},${l.screenY},${y.screenX},${y.screenY},0,0`;
|
|
15
15
|
}
|
|
16
|
-
function rt(t,
|
|
17
|
-
const
|
|
16
|
+
function rt(t, n, s, a = 0, i = 0, l = 0) {
|
|
17
|
+
const y = {
|
|
18
18
|
// Bottom face
|
|
19
19
|
frontBottom: k(t, 0, 0),
|
|
20
|
-
rightBottom: k(t,
|
|
21
|
-
backBottom: k(0,
|
|
20
|
+
rightBottom: k(t, n, 0),
|
|
21
|
+
backBottom: k(0, n, 0),
|
|
22
22
|
leftBottom: k(0, 0, 0),
|
|
23
23
|
// Top face
|
|
24
24
|
frontTop: k(t, 0, s),
|
|
25
|
-
rightTop: k(t,
|
|
26
|
-
backTop: k(0,
|
|
25
|
+
rightTop: k(t, n, s),
|
|
26
|
+
backTop: k(0, n, s),
|
|
27
27
|
leftTop: k(0, 0, s)
|
|
28
|
-
}, m = (
|
|
29
|
-
x:
|
|
30
|
-
y:
|
|
31
|
-
}),
|
|
32
|
-
Object.entries(
|
|
33
|
-
), x = (
|
|
34
|
-
if (
|
|
35
|
-
const
|
|
36
|
-
return `M ${
|
|
28
|
+
}, m = ($) => ({
|
|
29
|
+
x: $.screenX + a,
|
|
30
|
+
y: $.screenY + i
|
|
31
|
+
}), u = Object.fromEntries(
|
|
32
|
+
Object.entries(y).map(([$, A]) => [$, m(A)])
|
|
33
|
+
), x = ($, A, P, I) => {
|
|
34
|
+
if (I <= 0) {
|
|
35
|
+
const V = k(0, 0, P), H = k($, 0, P), F = k($, A, P), M = k(0, A, P);
|
|
36
|
+
return `M ${V.screenX + a},${V.screenY + i} L ${H.screenX + a},${H.screenY + i} L ${F.screenX + a},${F.screenY + i} L ${M.screenX + a},${M.screenY + i} Z`;
|
|
37
37
|
}
|
|
38
|
-
const
|
|
39
|
-
for (let
|
|
40
|
-
const
|
|
41
|
-
|
|
38
|
+
const S = Math.min($, A) / 2, L = Math.min(I, S), q = 8, N = [], Y = (V, H, F, M) => {
|
|
39
|
+
for (let D = 0; D <= q; D++) {
|
|
40
|
+
const K = F + (M - F) * (D / q), w = V + L * Math.cos(K), e = H + L * Math.sin(K), p = k(w, e, P);
|
|
41
|
+
N.push(`${p.screenX + a},${p.screenY + i}`);
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
|
-
return
|
|
45
|
-
},
|
|
46
|
-
const
|
|
47
|
-
for (let
|
|
48
|
-
const
|
|
49
|
-
|
|
44
|
+
return Y(L, L, Math.PI, Math.PI * 1.5), Y($ - L, L, Math.PI * 1.5, Math.PI * 2), Y($ - L, A - L, 0, Math.PI * 0.5), Y(L, A - L, Math.PI * 0.5, Math.PI), `M ${N[0]} L ${N.slice(1).join(" L ")} Z`;
|
|
45
|
+
}, c = ($) => `M ${$.map((A) => `${A.x},${A.y}`).join(" L ")} Z`, O = ($, A, P, I, S, L) => {
|
|
46
|
+
const N = [];
|
|
47
|
+
for (let F = 0; F < 6; F++) {
|
|
48
|
+
const M = S + (L - S) * (F / 6), D = S + (L - S) * ((F + 1) / 6), K = (M + D) / 2, w = Math.cos(K), e = Math.sin(K), T = w * -0.577 + e * -0.577 + 0 * 0.577, Q = 0.3 + Math.max(0, T + 0.4) * 0.5, tt = k($ + P * Math.cos(M), A + P * Math.sin(M), 0), z = k($ + P * Math.cos(D), A + P * Math.sin(D), 0), Z = k($ + P * Math.cos(M), A + P * Math.sin(M), I), et = k($ + P * Math.cos(D), A + P * Math.sin(D), I), st = `M ${tt.screenX + a},${tt.screenY + i} L ${z.screenX + a},${z.screenY + i} L ${et.screenX + a},${et.screenY + i} L ${Z.screenX + a},${Z.screenY + i} Z`;
|
|
49
|
+
N.push({ path: st, intensity: Q });
|
|
50
50
|
}
|
|
51
|
-
return
|
|
52
|
-
},
|
|
53
|
-
let
|
|
54
|
-
if (
|
|
55
|
-
const
|
|
56
|
-
{ x: k(0,
|
|
57
|
-
{ x: k(0,
|
|
58
|
-
{ x: k(0,
|
|
59
|
-
{ x: k(0,
|
|
51
|
+
return N;
|
|
52
|
+
}, f = Math.min(l, Math.min(t, n) / 2), E = x(t, n, s, f);
|
|
53
|
+
let d, h, j, g, C, W;
|
|
54
|
+
if (f > 0) {
|
|
55
|
+
const $ = [
|
|
56
|
+
{ x: k(0, f, 0).screenX + a, y: k(0, f, 0).screenY + i },
|
|
57
|
+
{ x: k(0, n - f, 0).screenX + a, y: k(0, n - f, 0).screenY + i },
|
|
58
|
+
{ x: k(0, n - f, s).screenX + a, y: k(0, n - f, s).screenY + i },
|
|
59
|
+
{ x: k(0, f, s).screenX + a, y: k(0, f, s).screenY + i }
|
|
60
60
|
];
|
|
61
|
-
|
|
62
|
-
const
|
|
63
|
-
{ x: k(
|
|
64
|
-
{ x: k(t -
|
|
65
|
-
{ x: k(t -
|
|
66
|
-
{ x: k(
|
|
61
|
+
d = c($);
|
|
62
|
+
const A = [
|
|
63
|
+
{ x: k(f, 0, 0).screenX + a, y: k(f, 0, 0).screenY + i },
|
|
64
|
+
{ x: k(t - f, 0, 0).screenX + a, y: k(t - f, 0, 0).screenY + i },
|
|
65
|
+
{ x: k(t - f, 0, s).screenX + a, y: k(t - f, 0, s).screenY + i },
|
|
66
|
+
{ x: k(f, 0, s).screenX + a, y: k(f, 0, s).screenY + i }
|
|
67
67
|
];
|
|
68
|
-
|
|
68
|
+
h = c(A), j = O(f, f, f, s, Math.PI, Math.PI * 1.5), g = O(t - f, f, f, s, Math.PI * 1.5, Math.PI * 2), C = O(f, n - f, f, s, Math.PI * 0.5, Math.PI), W = O(t - f, n - f, f, s, 0, Math.PI * 0.5);
|
|
69
69
|
} else {
|
|
70
|
-
const
|
|
71
|
-
|
|
70
|
+
const $ = [u.leftBottom, u.backBottom, u.backTop, u.leftTop], A = [u.leftBottom, u.frontBottom, u.frontTop, u.leftTop];
|
|
71
|
+
d = c($), h = c(A), j = [], g = [], C = [], W = [];
|
|
72
72
|
}
|
|
73
|
-
const
|
|
73
|
+
const _ = `M ${u.leftBottom.x},${u.leftBottom.y} L ${u.frontBottom.x},${u.frontBottom.y} L ${u.rightBottom.x},${u.rightBottom.y} L ${u.backBottom.x},${u.backBottom.y} Z`;
|
|
74
74
|
return {
|
|
75
|
-
top:
|
|
76
|
-
left:
|
|
77
|
-
right:
|
|
78
|
-
cornerFrontLeft:
|
|
79
|
-
cornerFrontRight:
|
|
80
|
-
cornerBackLeft:
|
|
81
|
-
cornerBackRight:
|
|
82
|
-
outline:
|
|
75
|
+
top: E,
|
|
76
|
+
left: d,
|
|
77
|
+
right: h,
|
|
78
|
+
cornerFrontLeft: j,
|
|
79
|
+
cornerFrontRight: g,
|
|
80
|
+
cornerBackLeft: C,
|
|
81
|
+
cornerBackRight: W,
|
|
82
|
+
outline: _
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function Qt(t, n = 60, s = 50) {
|
|
86
86
|
return {
|
|
87
|
-
top: `hsl(${t}, ${
|
|
88
|
-
right: `hsl(${t}, ${
|
|
89
|
-
left: `hsl(${t}, ${
|
|
87
|
+
top: `hsl(${t}, ${n}%, ${Math.min(s + 15, 95)}%)`,
|
|
88
|
+
right: `hsl(${t}, ${n}%, ${s}%)`,
|
|
89
|
+
left: `hsl(${t}, ${n}%, ${Math.max(s - 15, 15)}%)`
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
92
|
const jt = {
|
|
@@ -99,19 +99,19 @@ const jt = {
|
|
|
99
99
|
slate: { hue: 220, saturation: 15, lightness: 50 },
|
|
100
100
|
zinc: { hue: 240, saturation: 5, lightness: 50 }
|
|
101
101
|
};
|
|
102
|
-
function
|
|
103
|
-
const
|
|
104
|
-
return
|
|
102
|
+
function jo(t) {
|
|
103
|
+
const n = jt[t] || jt.slate;
|
|
104
|
+
return Qt(n.hue, n.saturation, n.lightness);
|
|
105
105
|
}
|
|
106
106
|
var pt = { exports: {} }, ct = {};
|
|
107
107
|
var Mt;
|
|
108
|
-
function
|
|
108
|
+
function te() {
|
|
109
109
|
if (Mt) return ct;
|
|
110
110
|
Mt = 1;
|
|
111
|
-
var t = /* @__PURE__ */ Symbol.for("react.transitional.element"),
|
|
111
|
+
var t = /* @__PURE__ */ Symbol.for("react.transitional.element"), n = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
112
112
|
function s(a, i, l) {
|
|
113
|
-
var
|
|
114
|
-
if (l !== void 0 && (
|
|
113
|
+
var y = null;
|
|
114
|
+
if (l !== void 0 && (y = "" + l), i.key !== void 0 && (y = "" + i.key), "key" in i) {
|
|
115
115
|
l = {};
|
|
116
116
|
for (var m in i)
|
|
117
117
|
m !== "key" && (l[m] = i[m]);
|
|
@@ -119,251 +119,263 @@ function Jt() {
|
|
|
119
119
|
return i = l.ref, {
|
|
120
120
|
$$typeof: t,
|
|
121
121
|
type: a,
|
|
122
|
-
key:
|
|
122
|
+
key: y,
|
|
123
123
|
ref: i !== void 0 ? i : null,
|
|
124
124
|
props: l
|
|
125
125
|
};
|
|
126
126
|
}
|
|
127
|
-
return ct.Fragment =
|
|
127
|
+
return ct.Fragment = n, ct.jsx = s, ct.jsxs = s, ct;
|
|
128
128
|
}
|
|
129
129
|
var lt = {};
|
|
130
130
|
var wt;
|
|
131
|
-
function
|
|
131
|
+
function ee() {
|
|
132
132
|
return wt || (wt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
133
|
-
function t(
|
|
134
|
-
if (
|
|
135
|
-
if (typeof
|
|
136
|
-
return
|
|
137
|
-
if (typeof
|
|
138
|
-
switch (
|
|
139
|
-
case
|
|
133
|
+
function t(e) {
|
|
134
|
+
if (e == null) return null;
|
|
135
|
+
if (typeof e == "function")
|
|
136
|
+
return e.$$typeof === q ? null : e.displayName || e.name || null;
|
|
137
|
+
if (typeof e == "string") return e;
|
|
138
|
+
switch (e) {
|
|
139
|
+
case j:
|
|
140
140
|
return "Fragment";
|
|
141
|
-
case
|
|
141
|
+
case C:
|
|
142
142
|
return "Profiler";
|
|
143
|
-
case
|
|
143
|
+
case g:
|
|
144
144
|
return "StrictMode";
|
|
145
|
-
case
|
|
145
|
+
case A:
|
|
146
146
|
return "Suspense";
|
|
147
|
-
case
|
|
147
|
+
case P:
|
|
148
148
|
return "SuspenseList";
|
|
149
|
-
case
|
|
149
|
+
case L:
|
|
150
150
|
return "Activity";
|
|
151
151
|
}
|
|
152
|
-
if (typeof
|
|
153
|
-
switch (typeof
|
|
152
|
+
if (typeof e == "object")
|
|
153
|
+
switch (typeof e.tag == "number" && console.error(
|
|
154
154
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
155
|
-
),
|
|
156
|
-
case
|
|
155
|
+
), e.$$typeof) {
|
|
156
|
+
case h:
|
|
157
157
|
return "Portal";
|
|
158
|
-
case
|
|
159
|
-
return
|
|
160
|
-
case
|
|
161
|
-
return (
|
|
162
|
-
case
|
|
163
|
-
var p =
|
|
164
|
-
return
|
|
165
|
-
case
|
|
166
|
-
return p =
|
|
167
|
-
case
|
|
168
|
-
p =
|
|
158
|
+
case _:
|
|
159
|
+
return e.displayName || "Context";
|
|
160
|
+
case W:
|
|
161
|
+
return (e._context.displayName || "Context") + ".Consumer";
|
|
162
|
+
case $:
|
|
163
|
+
var p = e.render;
|
|
164
|
+
return e = e.displayName, e || (e = p.displayName || p.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
165
|
+
case I:
|
|
166
|
+
return p = e.displayName || null, p !== null ? p : t(e.type) || "Memo";
|
|
167
|
+
case S:
|
|
168
|
+
p = e._payload, e = e._init;
|
|
169
169
|
try {
|
|
170
|
-
return t(
|
|
170
|
+
return t(e(p));
|
|
171
171
|
} catch {
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
174
|
return null;
|
|
175
175
|
}
|
|
176
|
-
function e
|
|
177
|
-
return "" +
|
|
176
|
+
function n(e) {
|
|
177
|
+
return "" + e;
|
|
178
178
|
}
|
|
179
|
-
function s(
|
|
179
|
+
function s(e) {
|
|
180
180
|
try {
|
|
181
|
-
e
|
|
181
|
+
n(e);
|
|
182
182
|
var p = !1;
|
|
183
183
|
} catch {
|
|
184
184
|
p = !0;
|
|
185
185
|
}
|
|
186
186
|
if (p) {
|
|
187
187
|
p = console;
|
|
188
|
-
var
|
|
189
|
-
return
|
|
188
|
+
var T = p.error, R = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
189
|
+
return T.call(
|
|
190
190
|
p,
|
|
191
191
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
192
|
-
|
|
193
|
-
), e
|
|
192
|
+
R
|
|
193
|
+
), n(e);
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
function a(
|
|
197
|
-
if (
|
|
198
|
-
if (typeof
|
|
196
|
+
function a(e) {
|
|
197
|
+
if (e === j) return "<>";
|
|
198
|
+
if (typeof e == "object" && e !== null && e.$$typeof === S)
|
|
199
199
|
return "<...>";
|
|
200
200
|
try {
|
|
201
|
-
var p = t(
|
|
201
|
+
var p = t(e);
|
|
202
202
|
return p ? "<" + p + ">" : "<...>";
|
|
203
203
|
} catch {
|
|
204
204
|
return "<...>";
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
207
|
function i() {
|
|
208
|
-
var
|
|
209
|
-
return
|
|
208
|
+
var e = N.A;
|
|
209
|
+
return e === null ? null : e.getOwner();
|
|
210
210
|
}
|
|
211
211
|
function l() {
|
|
212
212
|
return Error("react-stack-top-frame");
|
|
213
213
|
}
|
|
214
|
-
function
|
|
215
|
-
if (
|
|
216
|
-
var p = Object.getOwnPropertyDescriptor(
|
|
214
|
+
function y(e) {
|
|
215
|
+
if (Y.call(e, "key")) {
|
|
216
|
+
var p = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
217
217
|
if (p && p.isReactWarning) return !1;
|
|
218
218
|
}
|
|
219
|
-
return
|
|
219
|
+
return e.key !== void 0;
|
|
220
220
|
}
|
|
221
|
-
function m(
|
|
222
|
-
function
|
|
223
|
-
|
|
221
|
+
function m(e, p) {
|
|
222
|
+
function T() {
|
|
223
|
+
F || (F = !0, console.error(
|
|
224
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)",
|
|
225
225
|
p
|
|
226
226
|
));
|
|
227
227
|
}
|
|
228
|
-
|
|
229
|
-
get:
|
|
228
|
+
T.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
229
|
+
get: T,
|
|
230
230
|
configurable: !0
|
|
231
231
|
});
|
|
232
232
|
}
|
|
233
|
-
function
|
|
234
|
-
var
|
|
235
|
-
return
|
|
233
|
+
function u() {
|
|
234
|
+
var e = t(this.type);
|
|
235
|
+
return M[e] || (M[e] = !0, console.error(
|
|
236
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."
|
|
237
|
-
)),
|
|
237
|
+
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
238
238
|
}
|
|
239
|
-
function x(
|
|
240
|
-
var
|
|
241
|
-
return
|
|
242
|
-
$$typeof:
|
|
243
|
-
type:
|
|
239
|
+
function x(e, p, T, R, Q, tt) {
|
|
240
|
+
var z = T.ref;
|
|
241
|
+
return e = {
|
|
242
|
+
$$typeof: d,
|
|
243
|
+
type: e,
|
|
244
244
|
key: p,
|
|
245
|
-
props:
|
|
246
|
-
_owner:
|
|
247
|
-
}, (
|
|
245
|
+
props: T,
|
|
246
|
+
_owner: R
|
|
247
|
+
}, (z !== void 0 ? z : null) !== null ? Object.defineProperty(e, "ref", {
|
|
248
248
|
enumerable: !1,
|
|
249
|
-
get:
|
|
250
|
-
}) : Object.defineProperty(
|
|
249
|
+
get: u
|
|
250
|
+
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
251
251
|
configurable: !1,
|
|
252
252
|
enumerable: !1,
|
|
253
253
|
writable: !0,
|
|
254
254
|
value: 0
|
|
255
|
-
}), Object.defineProperty(
|
|
255
|
+
}), Object.defineProperty(e, "_debugInfo", {
|
|
256
256
|
configurable: !1,
|
|
257
257
|
enumerable: !1,
|
|
258
258
|
writable: !0,
|
|
259
259
|
value: null
|
|
260
|
-
}), Object.defineProperty(
|
|
260
|
+
}), Object.defineProperty(e, "_debugStack", {
|
|
261
261
|
configurable: !1,
|
|
262
262
|
enumerable: !1,
|
|
263
263
|
writable: !0,
|
|
264
|
-
value:
|
|
265
|
-
}), Object.defineProperty(
|
|
264
|
+
value: Q
|
|
265
|
+
}), Object.defineProperty(e, "_debugTask", {
|
|
266
266
|
configurable: !1,
|
|
267
267
|
enumerable: !1,
|
|
268
268
|
writable: !0,
|
|
269
|
-
value:
|
|
270
|
-
}), Object.freeze && (Object.freeze(
|
|
269
|
+
value: tt
|
|
270
|
+
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
271
271
|
}
|
|
272
|
-
function
|
|
273
|
-
var
|
|
274
|
-
if (
|
|
275
|
-
if (
|
|
276
|
-
if (
|
|
277
|
-
for (
|
|
278
|
-
|
|
279
|
-
Object.freeze && Object.freeze(
|
|
272
|
+
function c(e, p, T, R, Q, tt) {
|
|
273
|
+
var z = p.children;
|
|
274
|
+
if (z !== void 0)
|
|
275
|
+
if (R)
|
|
276
|
+
if (V(z)) {
|
|
277
|
+
for (R = 0; R < z.length; R++)
|
|
278
|
+
O(z[R]);
|
|
279
|
+
Object.freeze && Object.freeze(z);
|
|
280
280
|
} else
|
|
281
281
|
console.error(
|
|
282
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."
|
|
283
283
|
);
|
|
284
|
-
else
|
|
285
|
-
if (
|
|
286
|
-
|
|
287
|
-
var
|
|
288
|
-
return
|
|
284
|
+
else O(z);
|
|
285
|
+
if (Y.call(p, "key")) {
|
|
286
|
+
z = t(e);
|
|
287
|
+
var Z = Object.keys(p).filter(function(st) {
|
|
288
|
+
return st !== "key";
|
|
289
289
|
});
|
|
290
|
-
|
|
290
|
+
R = 0 < Z.length ? "{key: someKey, " + Z.join(": ..., ") + ": ...}" : "{key: someKey}", w[z + R] || (Z = 0 < Z.length ? "{" + Z.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
291
291
|
`A props object containing a "key" prop is being spread into JSX:
|
|
292
292
|
let props = %s;
|
|
293
293
|
<%s {...props} />
|
|
294
294
|
React keys must be passed directly to JSX without using spread:
|
|
295
295
|
let props = %s;
|
|
296
296
|
<%s key={someKey} {...props} />`,
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
),
|
|
297
|
+
R,
|
|
298
|
+
z,
|
|
299
|
+
Z,
|
|
300
|
+
z
|
|
301
|
+
), w[z + R] = !0);
|
|
302
302
|
}
|
|
303
|
-
if (
|
|
304
|
-
|
|
305
|
-
for (var
|
|
306
|
-
|
|
307
|
-
} else
|
|
308
|
-
return
|
|
309
|
-
|
|
310
|
-
typeof
|
|
303
|
+
if (z = null, T !== void 0 && (s(T), z = "" + T), y(p) && (s(p.key), z = "" + p.key), "key" in p) {
|
|
304
|
+
T = {};
|
|
305
|
+
for (var et in p)
|
|
306
|
+
et !== "key" && (T[et] = p[et]);
|
|
307
|
+
} else T = p;
|
|
308
|
+
return z && m(
|
|
309
|
+
T,
|
|
310
|
+
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
311
311
|
), x(
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
312
|
+
e,
|
|
313
|
+
z,
|
|
314
|
+
T,
|
|
315
315
|
i(),
|
|
316
|
-
|
|
317
|
-
|
|
316
|
+
Q,
|
|
317
|
+
tt
|
|
318
318
|
);
|
|
319
319
|
}
|
|
320
|
-
function
|
|
321
|
-
|
|
320
|
+
function O(e) {
|
|
321
|
+
f(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === S && (e._payload.status === "fulfilled" ? f(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
322
322
|
}
|
|
323
|
-
function
|
|
324
|
-
return typeof
|
|
323
|
+
function f(e) {
|
|
324
|
+
return typeof e == "object" && e !== null && e.$$typeof === d;
|
|
325
325
|
}
|
|
326
|
-
var
|
|
326
|
+
var E = qt, d = /* @__PURE__ */ Symbol.for("react.transitional.element"), h = /* @__PURE__ */ Symbol.for("react.portal"), j = /* @__PURE__ */ Symbol.for("react.fragment"), g = /* @__PURE__ */ Symbol.for("react.strict_mode"), C = /* @__PURE__ */ Symbol.for("react.profiler"), W = /* @__PURE__ */ Symbol.for("react.consumer"), _ = /* @__PURE__ */ Symbol.for("react.context"), $ = /* @__PURE__ */ Symbol.for("react.forward_ref"), A = /* @__PURE__ */ Symbol.for("react.suspense"), P = /* @__PURE__ */ Symbol.for("react.suspense_list"), I = /* @__PURE__ */ Symbol.for("react.memo"), S = /* @__PURE__ */ Symbol.for("react.lazy"), L = /* @__PURE__ */ Symbol.for("react.activity"), q = /* @__PURE__ */ Symbol.for("react.client.reference"), N = E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Y = Object.prototype.hasOwnProperty, V = Array.isArray, H = console.createTask ? console.createTask : function() {
|
|
327
327
|
return null;
|
|
328
328
|
};
|
|
329
|
-
|
|
330
|
-
react_stack_bottom_frame: function(
|
|
331
|
-
return
|
|
329
|
+
E = {
|
|
330
|
+
react_stack_bottom_frame: function(e) {
|
|
331
|
+
return e();
|
|
332
332
|
}
|
|
333
333
|
};
|
|
334
|
-
var
|
|
335
|
-
|
|
334
|
+
var F, M = {}, D = E.react_stack_bottom_frame.bind(
|
|
335
|
+
E,
|
|
336
336
|
l
|
|
337
|
-
)(),
|
|
338
|
-
lt.Fragment =
|
|
339
|
-
var
|
|
340
|
-
return
|
|
341
|
-
|
|
337
|
+
)(), K = H(a(l)), w = {};
|
|
338
|
+
lt.Fragment = j, lt.jsx = function(e, p, T) {
|
|
339
|
+
var R = 1e4 > N.recentlyCreatedOwnerStacks++;
|
|
340
|
+
return c(
|
|
341
|
+
e,
|
|
342
342
|
p,
|
|
343
|
-
|
|
343
|
+
T,
|
|
344
344
|
!1,
|
|
345
|
-
|
|
346
|
-
|
|
345
|
+
R ? Error("react-stack-top-frame") : D,
|
|
346
|
+
R ? H(a(e)) : K
|
|
347
347
|
);
|
|
348
|
-
}, lt.jsxs = function(
|
|
349
|
-
var
|
|
350
|
-
return
|
|
351
|
-
|
|
348
|
+
}, lt.jsxs = function(e, p, T) {
|
|
349
|
+
var R = 1e4 > N.recentlyCreatedOwnerStacks++;
|
|
350
|
+
return c(
|
|
351
|
+
e,
|
|
352
352
|
p,
|
|
353
|
-
|
|
353
|
+
T,
|
|
354
354
|
!0,
|
|
355
|
-
|
|
356
|
-
|
|
355
|
+
R ? Error("react-stack-top-frame") : D,
|
|
356
|
+
R ? H(a(e)) : K
|
|
357
357
|
);
|
|
358
358
|
};
|
|
359
359
|
})()), lt;
|
|
360
360
|
}
|
|
361
361
|
var St;
|
|
362
|
-
function
|
|
363
|
-
return St || (St = 1, process.env.NODE_ENV === "production" ? pt.exports =
|
|
362
|
+
function ne() {
|
|
363
|
+
return St || (St = 1, process.env.NODE_ENV === "production" ? pt.exports = te() : pt.exports = ee()), pt.exports;
|
|
364
364
|
}
|
|
365
|
-
var
|
|
366
|
-
const
|
|
365
|
+
var o = ne();
|
|
366
|
+
const Rt = {
|
|
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
|
+
}, Pt = Array.from({ length: 180 }, (t, 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
|
+
})), oe = ["solid", "blueprint", "cyanotype"], gt = '"JetBrains Mono", "IBM Plex Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace', re = 0.78, r = (t) => Math.round(t * re * 10) / 10, Lt = {
|
|
367
379
|
id: "solid",
|
|
368
380
|
name: "Solid",
|
|
369
381
|
description: "Shaded isometric boxes",
|
|
@@ -379,9 +391,9 @@ const te = ["solid", "blueprint", "cyanotype"], $t = '"JetBrains Mono", "IBM Ple
|
|
|
379
391
|
},
|
|
380
392
|
face: { top: "transparent", right: "transparent", left: "transparent" },
|
|
381
393
|
hatchOpacity: { top: 0, right: 0, left: 0 },
|
|
382
|
-
font:
|
|
394
|
+
font: gt,
|
|
383
395
|
strokeWidth: 0.5
|
|
384
|
-
},
|
|
396
|
+
}, se = {
|
|
385
397
|
id: "blueprint",
|
|
386
398
|
name: "Blueprint",
|
|
387
399
|
description: "Sepia engineering plate on parchment",
|
|
@@ -397,9 +409,9 @@ const te = ["solid", "blueprint", "cyanotype"], $t = '"JetBrains Mono", "IBM Ple
|
|
|
397
409
|
},
|
|
398
410
|
face: { top: "#f4ebd7", right: "#e6dabb", left: "#d6c6a2" },
|
|
399
411
|
hatchOpacity: { top: 0.48, right: 0.68, left: 0.92 },
|
|
400
|
-
font:
|
|
412
|
+
font: gt,
|
|
401
413
|
strokeWidth: 1
|
|
402
|
-
},
|
|
414
|
+
}, ae = {
|
|
403
415
|
id: "cyanotype",
|
|
404
416
|
name: "Cyanotype",
|
|
405
417
|
description: "White linework on classic blueprint blue",
|
|
@@ -415,15 +427,15 @@ const te = ["solid", "blueprint", "cyanotype"], $t = '"JetBrains Mono", "IBM Ple
|
|
|
415
427
|
},
|
|
416
428
|
face: { top: "#1b4675", right: "#153a61", left: "#0f2b49" },
|
|
417
429
|
hatchOpacity: { top: 0.46, right: 0.64, left: 0.88 },
|
|
418
|
-
font:
|
|
430
|
+
font: gt,
|
|
419
431
|
strokeWidth: 1
|
|
420
|
-
},
|
|
421
|
-
function
|
|
422
|
-
return
|
|
432
|
+
}, zt = { solid: Lt, blueprint: se, cyanotype: ae };
|
|
433
|
+
function ie(t) {
|
|
434
|
+
return zt[t] || Lt;
|
|
423
435
|
}
|
|
424
|
-
const
|
|
425
|
-
|
|
426
|
-
const
|
|
436
|
+
const ce = oe.filter((t) => zt[t].technical);
|
|
437
|
+
ce[0];
|
|
438
|
+
const le = {
|
|
427
439
|
violet: "cross",
|
|
428
440
|
blue: "lines",
|
|
429
441
|
sky: "dashes",
|
|
@@ -435,10 +447,10 @@ const ae = {
|
|
|
435
447
|
zinc: "plain",
|
|
436
448
|
slate: "plain"
|
|
437
449
|
};
|
|
438
|
-
function
|
|
439
|
-
return
|
|
450
|
+
function Yt(t) {
|
|
451
|
+
return le[t || "zinc"] || "lines";
|
|
440
452
|
}
|
|
441
|
-
const
|
|
453
|
+
const de = {
|
|
442
454
|
plain: "PLAIN",
|
|
443
455
|
lines: "HATCH-A",
|
|
444
456
|
cross: "HATCH-X",
|
|
@@ -446,47 +458,47 @@ const ie = {
|
|
|
446
458
|
dots: "STIPPLE",
|
|
447
459
|
dashes: "BROKEN"
|
|
448
460
|
};
|
|
449
|
-
function Ct(t,
|
|
450
|
-
const l = (
|
|
451
|
-
const
|
|
452
|
-
return { x:
|
|
453
|
-
},
|
|
461
|
+
function Ct(t, n, s, a = 0, i = 0) {
|
|
462
|
+
const l = (g, C, W) => {
|
|
463
|
+
const _ = k(g, C, W);
|
|
464
|
+
return { x: _.screenX + a, y: _.screenY + i };
|
|
465
|
+
}, y = l(0, 0, 0), m = l(t, 0, 0), u = l(t, n, 0), x = l(0, n, 0), c = l(0, 0, s), O = l(t, 0, s), f = l(t, n, s), E = l(0, n, s), d = (g) => `M ${g.map((C) => `${C.x},${C.y}`).join(" L ")} Z`, h = (g, C) => `M ${g.x},${g.y} L ${C.x},${C.y}`, j = [y, m, u, x, c, O, f, E];
|
|
454
466
|
return {
|
|
455
|
-
top:
|
|
456
|
-
right:
|
|
457
|
-
left:
|
|
467
|
+
top: d([c, O, f, E]),
|
|
468
|
+
right: d([y, m, O, c]),
|
|
469
|
+
left: d([y, x, E, c]),
|
|
458
470
|
visible: [
|
|
459
471
|
// silhouette
|
|
460
|
-
|
|
472
|
+
d([y, m, O, f, E, x]),
|
|
461
473
|
// interior creases radiating from the near top corner
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
474
|
+
h(c, O),
|
|
475
|
+
h(c, E),
|
|
476
|
+
h(c, y)
|
|
465
477
|
].join(" "),
|
|
466
|
-
hidden: [
|
|
467
|
-
topCenter: { x: (
|
|
468
|
-
topApex: { x:
|
|
469
|
-
minX: Math.min(...
|
|
470
|
-
minY: Math.min(...
|
|
471
|
-
maxX: Math.max(...
|
|
472
|
-
maxY: Math.max(...
|
|
478
|
+
hidden: [h(u, m), h(u, x), h(u, f)].join(" "),
|
|
479
|
+
topCenter: { x: (c.x + f.x) / 2, y: (c.y + f.y) / 2 },
|
|
480
|
+
topApex: { x: f.x, y: f.y },
|
|
481
|
+
minX: Math.min(...j.map((g) => g.x)),
|
|
482
|
+
minY: Math.min(...j.map((g) => g.y)),
|
|
483
|
+
maxX: Math.max(...j.map((g) => g.x)),
|
|
484
|
+
maxY: Math.max(...j.map((g) => g.y))
|
|
473
485
|
};
|
|
474
486
|
}
|
|
475
487
|
function kt(t) {
|
|
476
488
|
return String(t).padStart(2, "0");
|
|
477
489
|
}
|
|
478
|
-
const
|
|
490
|
+
const he = {
|
|
479
491
|
top: ["n30", "p30"],
|
|
480
492
|
right: ["n30", "v"],
|
|
481
493
|
left: ["p30", "v"]
|
|
482
|
-
},
|
|
494
|
+
}, fe = { n30: -30, p30: 30, v: 90 }, pe = [
|
|
483
495
|
{ key: "line", spacing: 6.2, strokeWidth: 0.55 },
|
|
484
496
|
{ key: "dense", spacing: 3.1, strokeWidth: 0.45 },
|
|
485
497
|
{ key: "dash", spacing: 6.2, strokeWidth: 0.55, dash: "2.6 2.6" }
|
|
486
498
|
], dt = 22;
|
|
487
|
-
function
|
|
488
|
-
const [a, i] =
|
|
489
|
-
switch (
|
|
499
|
+
function Wt(t, n, s) {
|
|
500
|
+
const [a, i] = he[s];
|
|
501
|
+
switch (n) {
|
|
490
502
|
case "plain":
|
|
491
503
|
return [];
|
|
492
504
|
case "lines":
|
|
@@ -503,17 +515,17 @@ function zt(t, e, s) {
|
|
|
503
515
|
return [`${t}-line-${a}`];
|
|
504
516
|
}
|
|
505
517
|
}
|
|
506
|
-
const
|
|
518
|
+
const It = (t) => `${t}-paper`, Ft = (t) => `${t}-grain`, ue = (t, n = "line") => `${t}-arrow-${n}`, ye = (t) => [`${t}-grid-n30`, `${t}-grid-p30`];
|
|
507
519
|
function bt({
|
|
508
520
|
uid: t,
|
|
509
|
-
style:
|
|
521
|
+
style: n,
|
|
510
522
|
/** Extra transform applied to the graph-paper grid, so it can be pinned to
|
|
511
523
|
* panned/zoomed content while the paper itself fills the viewport. */
|
|
512
524
|
gridTransform: s = ""
|
|
513
525
|
}) {
|
|
514
|
-
return /* @__PURE__ */
|
|
515
|
-
|
|
516
|
-
(a) => Object.entries(
|
|
526
|
+
return /* @__PURE__ */ o.jsxs("defs", { children: [
|
|
527
|
+
pe.flatMap(
|
|
528
|
+
(a) => Object.entries(fe).map(([i, l]) => /* @__PURE__ */ o.jsx(
|
|
517
529
|
"pattern",
|
|
518
530
|
{
|
|
519
531
|
id: `${t}-${a.key}-${i}`,
|
|
@@ -521,14 +533,14 @@ function bt({
|
|
|
521
533
|
height: a.spacing,
|
|
522
534
|
patternUnits: "userSpaceOnUse",
|
|
523
535
|
patternTransform: `rotate(${l})`,
|
|
524
|
-
children: /* @__PURE__ */
|
|
536
|
+
children: /* @__PURE__ */ o.jsx(
|
|
525
537
|
"line",
|
|
526
538
|
{
|
|
527
539
|
x1: -1,
|
|
528
540
|
y1: a.spacing / 2,
|
|
529
541
|
x2: a.spacing + 1,
|
|
530
542
|
y2: a.spacing / 2,
|
|
531
|
-
stroke:
|
|
543
|
+
stroke: n.ink.hatch,
|
|
532
544
|
strokeWidth: a.strokeWidth,
|
|
533
545
|
strokeDasharray: a.dash
|
|
534
546
|
}
|
|
@@ -537,11 +549,11 @@ function bt({
|
|
|
537
549
|
`${a.key}-${i}`
|
|
538
550
|
))
|
|
539
551
|
),
|
|
540
|
-
/* @__PURE__ */
|
|
552
|
+
/* @__PURE__ */ o.jsx("pattern", { id: `${t}-dot`, width: 4.5, height: 4.5, patternUnits: "userSpaceOnUse", children: /* @__PURE__ */ o.jsx("circle", { cx: 2.25, cy: 2.25, r: 0.55, fill: n.ink.hatch }) }),
|
|
541
553
|
[
|
|
542
554
|
{ id: `${t}-grid-n30`, angle: -30 },
|
|
543
555
|
{ id: `${t}-grid-p30`, angle: 30 }
|
|
544
|
-
].map(({ id: a, angle: i }) => /* @__PURE__ */
|
|
556
|
+
].map(({ id: a, angle: i }) => /* @__PURE__ */ o.jsx(
|
|
545
557
|
"pattern",
|
|
546
558
|
{
|
|
547
559
|
id: a,
|
|
@@ -549,44 +561,44 @@ function bt({
|
|
|
549
561
|
height: dt,
|
|
550
562
|
patternUnits: "userSpaceOnUse",
|
|
551
563
|
patternTransform: `${s} rotate(${i})`.trim(),
|
|
552
|
-
children: /* @__PURE__ */
|
|
564
|
+
children: /* @__PURE__ */ o.jsx(
|
|
553
565
|
"line",
|
|
554
566
|
{
|
|
555
567
|
x1: -1,
|
|
556
568
|
y1: dt / 2,
|
|
557
569
|
x2: dt + 1,
|
|
558
570
|
y2: dt / 2,
|
|
559
|
-
stroke:
|
|
571
|
+
stroke: n.paper.grid,
|
|
560
572
|
strokeWidth: 0.5
|
|
561
573
|
}
|
|
562
574
|
)
|
|
563
575
|
},
|
|
564
576
|
a
|
|
565
577
|
)),
|
|
566
|
-
/* @__PURE__ */
|
|
567
|
-
/* @__PURE__ */
|
|
568
|
-
/* @__PURE__ */
|
|
578
|
+
/* @__PURE__ */ o.jsxs("linearGradient", { id: It(t), x1: "0", y1: "0", x2: "0.35", y2: "1", children: [
|
|
579
|
+
/* @__PURE__ */ o.jsx("stop", { offset: "0%", stopColor: n.paper.from }),
|
|
580
|
+
/* @__PURE__ */ o.jsx("stop", { offset: "100%", stopColor: n.paper.to })
|
|
569
581
|
] }),
|
|
570
|
-
/* @__PURE__ */
|
|
571
|
-
/* @__PURE__ */
|
|
572
|
-
/* @__PURE__ */
|
|
582
|
+
/* @__PURE__ */ o.jsxs("filter", { id: Ft(t), x: "0%", y: "0%", width: "100%", height: "100%", children: [
|
|
583
|
+
/* @__PURE__ */ o.jsx("feTurbulence", { type: "fractalNoise", baseFrequency: "0.85", numOctaves: 3, stitchTiles: "stitch" }),
|
|
584
|
+
/* @__PURE__ */ o.jsx("feColorMatrix", { type: "saturate", values: "0" })
|
|
573
585
|
] }),
|
|
574
|
-
["line", "accent"].map((a) => /* @__PURE__ */
|
|
586
|
+
["line", "accent"].map((a) => /* @__PURE__ */ o.jsx(
|
|
575
587
|
"marker",
|
|
576
588
|
{
|
|
577
|
-
id:
|
|
589
|
+
id: ue(t, a),
|
|
578
590
|
markerWidth: "10",
|
|
579
591
|
markerHeight: "10",
|
|
580
592
|
refX: "8",
|
|
581
593
|
refY: "4",
|
|
582
594
|
orient: "auto",
|
|
583
595
|
markerUnits: "userSpaceOnUse",
|
|
584
|
-
children: /* @__PURE__ */
|
|
596
|
+
children: /* @__PURE__ */ o.jsx(
|
|
585
597
|
"path",
|
|
586
598
|
{
|
|
587
599
|
d: "M 1 1 L 8 4 L 1 7",
|
|
588
600
|
fill: "none",
|
|
589
|
-
stroke: a === "accent" ?
|
|
601
|
+
stroke: a === "accent" ? n.ink.accent : n.ink.line,
|
|
590
602
|
strokeWidth: 1,
|
|
591
603
|
strokeLinecap: "round",
|
|
592
604
|
strokeLinejoin: "round"
|
|
@@ -597,54 +609,54 @@ function bt({
|
|
|
597
609
|
))
|
|
598
610
|
] });
|
|
599
611
|
}
|
|
600
|
-
function
|
|
612
|
+
function xe({
|
|
601
613
|
style: t,
|
|
602
|
-
rect:
|
|
614
|
+
rect: n,
|
|
603
615
|
pan: s,
|
|
604
616
|
zoom: a = 1,
|
|
605
617
|
className: i = "absolute inset-0 w-full h-full pointer-events-none"
|
|
606
618
|
}) {
|
|
607
|
-
const l =
|
|
608
|
-
return /* @__PURE__ */
|
|
609
|
-
/* @__PURE__ */
|
|
610
|
-
/* @__PURE__ */
|
|
611
|
-
|
|
612
|
-
t.paper.grain > 0 && /* @__PURE__ */
|
|
619
|
+
const l = $t().replace(/:/g, ""), y = s ? `translate(${s.x} ${s.y}) scale(${a})` : a !== 1 ? `scale(${a})` : "", m = n ? { x: n.x, y: n.y, width: n.width, height: n.height } : { x: 0, y: 0, width: "100%", height: "100%" };
|
|
620
|
+
return /* @__PURE__ */ o.jsxs("svg", { className: i, "aria-hidden": "true", children: [
|
|
621
|
+
/* @__PURE__ */ o.jsx(bt, { uid: l, style: t, gridTransform: y }),
|
|
622
|
+
/* @__PURE__ */ o.jsx("rect", { ...m, fill: `url(#${It(l)})` }),
|
|
623
|
+
ye(l).map((u) => /* @__PURE__ */ o.jsx("rect", { ...m, fill: `url(#${u})`, opacity: 0.6 }, u)),
|
|
624
|
+
t.paper.grain > 0 && /* @__PURE__ */ o.jsx("rect", { ...m, filter: `url(#${Ft(l)})`, opacity: t.paper.grain })
|
|
613
625
|
] });
|
|
614
626
|
}
|
|
615
|
-
const ut = r(10),
|
|
616
|
-
function
|
|
627
|
+
const ut = r(10), ke = 9, Tt = (t, n) => t.length > n ? `${t.slice(0, n - 1)}…` : t;
|
|
628
|
+
function me({
|
|
617
629
|
style: t,
|
|
618
|
-
plate:
|
|
630
|
+
plate: n,
|
|
619
631
|
rows: s,
|
|
620
632
|
title: a,
|
|
621
633
|
tally: i,
|
|
622
634
|
className: l = "absolute inset-0 w-full h-full pointer-events-none"
|
|
623
635
|
}) {
|
|
624
|
-
const
|
|
625
|
-
x:
|
|
626
|
-
y:
|
|
627
|
-
width:
|
|
628
|
-
height:
|
|
629
|
-
},
|
|
636
|
+
const y = $t().replace(/:/g, ""), m = s.slice(0, ke), u = s.length - m.length, x = {
|
|
637
|
+
x: n.minX + ut,
|
|
638
|
+
y: n.minY + ut,
|
|
639
|
+
width: n.maxX - n.minX - ut * 2,
|
|
640
|
+
height: n.maxY - n.minY - ut * 2
|
|
641
|
+
}, c = {
|
|
630
642
|
fontFamily: t.font,
|
|
631
643
|
letterSpacing: "0.08em"
|
|
632
|
-
},
|
|
633
|
-
return /* @__PURE__ */
|
|
634
|
-
/* @__PURE__ */
|
|
635
|
-
/* @__PURE__ */
|
|
644
|
+
}, O = r(236), f = r(13), E = r(16), d = E + Math.max(m.length, 1) * f + (u > 0 ? f : 0), h = x.x + r(14), j = x.y + r(14), g = r(264), C = r(74), W = r(126), _ = x.x + x.width - g - r(14), $ = x.y + x.height - C - r(14);
|
|
645
|
+
return /* @__PURE__ */ o.jsxs("svg", { className: l, style: { overflow: "visible" }, "aria-hidden": "true", children: [
|
|
646
|
+
/* @__PURE__ */ o.jsx(bt, { uid: y, style: t }),
|
|
647
|
+
/* @__PURE__ */ o.jsx(
|
|
636
648
|
"rect",
|
|
637
649
|
{
|
|
638
|
-
x:
|
|
639
|
-
y:
|
|
640
|
-
width:
|
|
641
|
-
height:
|
|
650
|
+
x: n.minX,
|
|
651
|
+
y: n.minY,
|
|
652
|
+
width: n.maxX - n.minX,
|
|
653
|
+
height: n.maxY - n.minY,
|
|
642
654
|
fill: "none",
|
|
643
655
|
stroke: t.paper.edge,
|
|
644
656
|
strokeWidth: 1.4
|
|
645
657
|
}
|
|
646
658
|
),
|
|
647
|
-
/* @__PURE__ */
|
|
659
|
+
/* @__PURE__ */ o.jsx(
|
|
648
660
|
"rect",
|
|
649
661
|
{
|
|
650
662
|
x: x.x,
|
|
@@ -662,66 +674,66 @@ function xe({
|
|
|
662
674
|
[x.x + x.width, x.y, -1, 1],
|
|
663
675
|
[x.x, x.y + x.height, 1, -1],
|
|
664
676
|
[x.x + x.width, x.y + x.height, -1, -1]
|
|
665
|
-
].map(([
|
|
677
|
+
].map(([A, P, I, S], L) => /* @__PURE__ */ o.jsx(
|
|
666
678
|
"path",
|
|
667
679
|
{
|
|
668
|
-
d: `M ${
|
|
680
|
+
d: `M ${A + I * r(16)} ${P} L ${A} ${P} L ${A} ${P + S * r(16)}`,
|
|
669
681
|
fill: "none",
|
|
670
682
|
stroke: t.ink.line,
|
|
671
683
|
strokeWidth: 1.2
|
|
672
684
|
},
|
|
673
|
-
|
|
685
|
+
L
|
|
674
686
|
)),
|
|
675
|
-
m.length > 0 && /* @__PURE__ */
|
|
676
|
-
/* @__PURE__ */
|
|
687
|
+
m.length > 0 && /* @__PURE__ */ o.jsxs("g", { children: [
|
|
688
|
+
/* @__PURE__ */ o.jsx(
|
|
677
689
|
"rect",
|
|
678
690
|
{
|
|
679
|
-
x:
|
|
680
|
-
y:
|
|
681
|
-
width:
|
|
682
|
-
height:
|
|
691
|
+
x: h,
|
|
692
|
+
y: j,
|
|
693
|
+
width: O,
|
|
694
|
+
height: d,
|
|
683
695
|
fill: t.paper.from,
|
|
684
696
|
fillOpacity: 0.55,
|
|
685
697
|
stroke: t.ink.line,
|
|
686
698
|
strokeWidth: 0.8
|
|
687
699
|
}
|
|
688
700
|
),
|
|
689
|
-
/* @__PURE__ */
|
|
701
|
+
/* @__PURE__ */ o.jsx(
|
|
690
702
|
"line",
|
|
691
703
|
{
|
|
692
|
-
x1:
|
|
693
|
-
y1:
|
|
694
|
-
x2:
|
|
695
|
-
y2:
|
|
704
|
+
x1: h,
|
|
705
|
+
y1: j + E,
|
|
706
|
+
x2: h + O,
|
|
707
|
+
y2: j + E,
|
|
696
708
|
stroke: t.ink.line,
|
|
697
709
|
strokeWidth: 0.8
|
|
698
710
|
}
|
|
699
711
|
),
|
|
700
|
-
/* @__PURE__ */
|
|
701
|
-
/* @__PURE__ */
|
|
712
|
+
/* @__PURE__ */ o.jsx("text", { x: h + r(8), y: j + r(11), fill: t.ink.text, fontSize: r(8), fontWeight: 600, style: c, children: "COMPONENT INDEX" }),
|
|
713
|
+
/* @__PURE__ */ o.jsxs(
|
|
702
714
|
"text",
|
|
703
715
|
{
|
|
704
|
-
x:
|
|
705
|
-
y:
|
|
716
|
+
x: h + O - r(8),
|
|
717
|
+
y: j + r(11),
|
|
706
718
|
textAnchor: "end",
|
|
707
719
|
fill: t.ink.muted,
|
|
708
720
|
fontSize: r(8),
|
|
709
|
-
style:
|
|
721
|
+
style: c,
|
|
710
722
|
children: [
|
|
711
723
|
kt(s.length),
|
|
712
724
|
" ITEMS"
|
|
713
725
|
]
|
|
714
726
|
}
|
|
715
727
|
),
|
|
716
|
-
m.map((
|
|
717
|
-
const
|
|
718
|
-
return /* @__PURE__ */
|
|
719
|
-
/* @__PURE__ */
|
|
720
|
-
/* @__PURE__ */
|
|
728
|
+
m.map((A, P) => {
|
|
729
|
+
const I = j + E + P * f, S = Yt(A.color), L = Wt(y, S, "top");
|
|
730
|
+
return /* @__PURE__ */ o.jsxs("g", { children: [
|
|
731
|
+
/* @__PURE__ */ o.jsx("text", { x: h + r(8), y: I + r(9.5), fill: t.ink.muted, fontSize: r(7.5), style: c, children: kt(A.n) }),
|
|
732
|
+
/* @__PURE__ */ o.jsx(
|
|
721
733
|
"rect",
|
|
722
734
|
{
|
|
723
|
-
x:
|
|
724
|
-
y:
|
|
735
|
+
x: h + r(28),
|
|
736
|
+
y: I + r(3),
|
|
725
737
|
width: r(14),
|
|
726
738
|
height: r(7),
|
|
727
739
|
fill: t.face.right,
|
|
@@ -729,87 +741,87 @@ function xe({
|
|
|
729
741
|
strokeWidth: 0.4
|
|
730
742
|
}
|
|
731
743
|
),
|
|
732
|
-
|
|
744
|
+
L.map((q) => /* @__PURE__ */ o.jsx(
|
|
733
745
|
"rect",
|
|
734
746
|
{
|
|
735
|
-
x:
|
|
736
|
-
y:
|
|
747
|
+
x: h + r(28),
|
|
748
|
+
y: I + r(3),
|
|
737
749
|
width: r(14),
|
|
738
750
|
height: r(7),
|
|
739
|
-
fill: `url(#${
|
|
751
|
+
fill: `url(#${q})`,
|
|
740
752
|
opacity: 0.85
|
|
741
753
|
},
|
|
742
|
-
|
|
754
|
+
q
|
|
743
755
|
)),
|
|
744
|
-
/* @__PURE__ */
|
|
745
|
-
/* @__PURE__ */
|
|
756
|
+
/* @__PURE__ */ o.jsx("text", { x: h + r(50), y: I + r(9.5), fill: t.ink.text, fontSize: r(7.5), style: c, children: Tt((A.name || "").toUpperCase(), 18) }),
|
|
757
|
+
/* @__PURE__ */ o.jsx(
|
|
746
758
|
"text",
|
|
747
759
|
{
|
|
748
|
-
x:
|
|
749
|
-
y:
|
|
760
|
+
x: h + O - r(8),
|
|
761
|
+
y: I + r(9.5),
|
|
750
762
|
textAnchor: "end",
|
|
751
763
|
fill: t.ink.muted,
|
|
752
764
|
fontSize: r(7),
|
|
753
|
-
style:
|
|
754
|
-
children:
|
|
765
|
+
style: c,
|
|
766
|
+
children: de[S]
|
|
755
767
|
}
|
|
756
768
|
)
|
|
757
|
-
] },
|
|
769
|
+
] }, A.n);
|
|
758
770
|
}),
|
|
759
|
-
|
|
771
|
+
u > 0 && /* @__PURE__ */ o.jsx(
|
|
760
772
|
"text",
|
|
761
773
|
{
|
|
762
|
-
x:
|
|
763
|
-
y:
|
|
774
|
+
x: h + r(8),
|
|
775
|
+
y: j + E + m.length * f + r(9.5),
|
|
764
776
|
fill: t.ink.muted,
|
|
765
777
|
fontSize: r(7.5),
|
|
766
|
-
style:
|
|
767
|
-
children: `+ ${
|
|
778
|
+
style: c,
|
|
779
|
+
children: `+ ${u} NOT LISTED`
|
|
768
780
|
}
|
|
769
781
|
)
|
|
770
782
|
] }),
|
|
771
|
-
/* @__PURE__ */
|
|
772
|
-
/* @__PURE__ */
|
|
783
|
+
/* @__PURE__ */ o.jsxs("g", { children: [
|
|
784
|
+
/* @__PURE__ */ o.jsx(
|
|
773
785
|
"rect",
|
|
774
786
|
{
|
|
775
|
-
x:
|
|
776
|
-
y:
|
|
777
|
-
width:
|
|
778
|
-
height:
|
|
787
|
+
x: _,
|
|
788
|
+
y: $,
|
|
789
|
+
width: g,
|
|
790
|
+
height: C,
|
|
779
791
|
fill: t.paper.from,
|
|
780
792
|
fillOpacity: 0.55,
|
|
781
793
|
stroke: t.ink.line,
|
|
782
794
|
strokeWidth: 0.8
|
|
783
795
|
}
|
|
784
796
|
),
|
|
785
|
-
/* @__PURE__ */
|
|
786
|
-
/* @__PURE__ */
|
|
787
|
-
/* @__PURE__ */
|
|
788
|
-
/* @__PURE__ */
|
|
789
|
-
/* @__PURE__ */
|
|
790
|
-
/* @__PURE__ */
|
|
791
|
-
/* @__PURE__ */
|
|
792
|
-
/* @__PURE__ */
|
|
793
|
-
/* @__PURE__ */
|
|
794
|
-
/* @__PURE__ */
|
|
795
|
-
/* @__PURE__ */
|
|
796
|
-
/* @__PURE__ */
|
|
797
|
-
/* @__PURE__ */
|
|
797
|
+
/* @__PURE__ */ o.jsx("line", { x1: _, y1: $ + r(30), x2: _ + g, y2: $ + r(30), stroke: t.ink.line, strokeWidth: 0.8 }),
|
|
798
|
+
/* @__PURE__ */ o.jsx("line", { x1: _, y1: $ + r(52), x2: _ + g, y2: $ + r(52), stroke: t.ink.line, strokeWidth: 0.5 }),
|
|
799
|
+
/* @__PURE__ */ o.jsx("line", { x1: _ + W, y1: $ + r(30), x2: _ + W, y2: $ + C, stroke: t.ink.line, strokeWidth: 0.5 }),
|
|
800
|
+
/* @__PURE__ */ o.jsx("text", { x: _ + r(9), y: $ + r(12), fill: t.ink.muted, fontSize: r(6.5), style: c, children: "DRAWING TITLE" }),
|
|
801
|
+
/* @__PURE__ */ o.jsx("text", { x: _ + r(9), y: $ + r(24), fill: t.ink.text, fontSize: r(10), fontWeight: 600, style: c, children: Tt((a || "UNTITLED ASSEMBLY").toUpperCase(), 26) }),
|
|
802
|
+
/* @__PURE__ */ o.jsx("text", { x: _ + r(9), y: $ + r(43), fill: t.ink.muted, fontSize: r(6.5), style: c, children: "PROJECTION" }),
|
|
803
|
+
/* @__PURE__ */ o.jsx("text", { x: _ + W - r(9), y: $ + r(43), textAnchor: "end", fill: t.ink.text, fontSize: r(7), style: c, children: "ISOMETRIC 30°" }),
|
|
804
|
+
/* @__PURE__ */ o.jsx("text", { x: _ + r(9), y: $ + r(65), fill: t.ink.muted, fontSize: r(6.5), style: c, children: "SCALE" }),
|
|
805
|
+
/* @__PURE__ */ o.jsx("text", { x: _ + W - r(9), y: $ + r(65), textAnchor: "end", fill: t.ink.text, fontSize: r(7), style: c, children: "1:1" }),
|
|
806
|
+
/* @__PURE__ */ o.jsx("text", { x: _ + W + r(9), y: $ + r(43), fill: t.ink.muted, fontSize: r(6.5), style: c, children: "QTY" }),
|
|
807
|
+
/* @__PURE__ */ o.jsx("text", { x: _ + g - r(9), y: $ + r(43), textAnchor: "end", fill: t.ink.text, fontSize: r(7), style: c, children: i || `${kt(s.length)} CMP` }),
|
|
808
|
+
/* @__PURE__ */ o.jsx("text", { x: _ + W + r(9), y: $ + r(65), fill: t.ink.muted, fontSize: r(6.5), style: c, children: "SHEET" }),
|
|
809
|
+
/* @__PURE__ */ o.jsx("text", { x: _ + g - r(9), y: $ + r(65), textAnchor: "end", fill: t.ink.text, fontSize: r(7), style: c, children: "1 OF 1" })
|
|
798
810
|
] })
|
|
799
811
|
] });
|
|
800
812
|
}
|
|
801
|
-
const
|
|
813
|
+
const $e = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), ge = (t) => t.replace(
|
|
802
814
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
803
|
-
(
|
|
804
|
-
),
|
|
805
|
-
const
|
|
806
|
-
return
|
|
807
|
-
},
|
|
808
|
-
for (const
|
|
809
|
-
if (
|
|
815
|
+
(n, s, a) => a ? a.toUpperCase() : s.toLowerCase()
|
|
816
|
+
), Et = (t) => {
|
|
817
|
+
const n = ge(t);
|
|
818
|
+
return n.charAt(0).toUpperCase() + n.slice(1);
|
|
819
|
+
}, Dt = (...t) => t.filter((n, s, a) => !!n && n.trim() !== "" && a.indexOf(n) === s).join(" ").trim(), be = (t) => {
|
|
820
|
+
for (const n in t)
|
|
821
|
+
if (n.startsWith("aria-") || n === "role" || n === "title")
|
|
810
822
|
return !0;
|
|
811
823
|
};
|
|
812
|
-
var
|
|
824
|
+
var ve = {
|
|
813
825
|
xmlns: "http://www.w3.org/2000/svg",
|
|
814
826
|
width: 24,
|
|
815
827
|
height: 24,
|
|
@@ -820,51 +832,51 @@ var ge = {
|
|
|
820
832
|
strokeLinecap: "round",
|
|
821
833
|
strokeLinejoin: "round"
|
|
822
834
|
};
|
|
823
|
-
const
|
|
835
|
+
const _e = Ot(
|
|
824
836
|
({
|
|
825
837
|
color: t = "currentColor",
|
|
826
|
-
size:
|
|
838
|
+
size: n = 24,
|
|
827
839
|
strokeWidth: s = 2,
|
|
828
840
|
absoluteStrokeWidth: a,
|
|
829
841
|
className: i = "",
|
|
830
842
|
children: l,
|
|
831
|
-
iconNode:
|
|
843
|
+
iconNode: y,
|
|
832
844
|
...m
|
|
833
|
-
},
|
|
845
|
+
}, u) => mt(
|
|
834
846
|
"svg",
|
|
835
847
|
{
|
|
836
|
-
ref:
|
|
837
|
-
...
|
|
838
|
-
width:
|
|
839
|
-
height:
|
|
848
|
+
ref: u,
|
|
849
|
+
...ve,
|
|
850
|
+
width: n,
|
|
851
|
+
height: n,
|
|
840
852
|
stroke: t,
|
|
841
|
-
strokeWidth: a ? Number(s) * 24 / Number(
|
|
842
|
-
className:
|
|
843
|
-
...!l && !
|
|
853
|
+
strokeWidth: a ? Number(s) * 24 / Number(n) : s,
|
|
854
|
+
className: Dt("lucide", i),
|
|
855
|
+
...!l && !be(m) && { "aria-hidden": "true" },
|
|
844
856
|
...m
|
|
845
857
|
},
|
|
846
858
|
[
|
|
847
|
-
...
|
|
859
|
+
...y.map(([x, c]) => mt(x, c)),
|
|
848
860
|
...Array.isArray(l) ? l : [l]
|
|
849
861
|
]
|
|
850
862
|
)
|
|
851
863
|
);
|
|
852
|
-
const
|
|
864
|
+
const b = (t, n) => {
|
|
853
865
|
const s = Ot(
|
|
854
|
-
({ className: a, ...i }, l) => mt(
|
|
866
|
+
({ className: a, ...i }, l) => mt(_e, {
|
|
855
867
|
ref: l,
|
|
856
|
-
iconNode:
|
|
857
|
-
className:
|
|
858
|
-
`lucide-${
|
|
868
|
+
iconNode: n,
|
|
869
|
+
className: Dt(
|
|
870
|
+
`lucide-${$e(Et(t))}`,
|
|
859
871
|
`lucide-${t}`,
|
|
860
872
|
a
|
|
861
873
|
),
|
|
862
874
|
...i
|
|
863
875
|
})
|
|
864
876
|
);
|
|
865
|
-
return s.displayName =
|
|
877
|
+
return s.displayName = Et(t), s;
|
|
866
878
|
};
|
|
867
|
-
const
|
|
879
|
+
const je = [
|
|
868
880
|
[
|
|
869
881
|
"path",
|
|
870
882
|
{
|
|
@@ -872,16 +884,16 @@ const be = [
|
|
|
872
884
|
key: "169zse"
|
|
873
885
|
}
|
|
874
886
|
]
|
|
875
|
-
],
|
|
876
|
-
const
|
|
887
|
+
], Me = b("activity", je);
|
|
888
|
+
const we = [
|
|
877
889
|
["path", { d: "M12 5v14", key: "s699le" }],
|
|
878
890
|
["path", { d: "m19 12-7 7-7-7", key: "1idqje" }]
|
|
879
|
-
],
|
|
880
|
-
const
|
|
891
|
+
], Se = b("arrow-down", we);
|
|
892
|
+
const Ce = [
|
|
881
893
|
["path", { d: "M5 12h14", key: "1ays0h" }],
|
|
882
894
|
["path", { d: "m12 5 7 7-7 7", key: "xquz4c" }]
|
|
883
|
-
],
|
|
884
|
-
const
|
|
895
|
+
], Te = b("arrow-right", Ce);
|
|
896
|
+
const Ee = [
|
|
885
897
|
["path", { d: "M10.268 21a2 2 0 0 0 3.464 0", key: "vwvbt9" }],
|
|
886
898
|
[
|
|
887
899
|
"path",
|
|
@@ -890,8 +902,8 @@ const Se = [
|
|
|
890
902
|
key: "11g9vi"
|
|
891
903
|
}
|
|
892
904
|
]
|
|
893
|
-
],
|
|
894
|
-
const
|
|
905
|
+
], Ae = b("bell", Ee);
|
|
906
|
+
const Oe = [
|
|
895
907
|
[
|
|
896
908
|
"path",
|
|
897
909
|
{
|
|
@@ -901,8 +913,8 @@ const Ee = [
|
|
|
901
913
|
],
|
|
902
914
|
["path", { d: "m3.3 7 8.7 5 8.7-5", key: "g66t2b" }],
|
|
903
915
|
["path", { d: "M12 22V12", key: "d0xqtd" }]
|
|
904
|
-
],
|
|
905
|
-
const
|
|
916
|
+
], Bt = b("box", Oe);
|
|
917
|
+
const Ne = [
|
|
906
918
|
[
|
|
907
919
|
"path",
|
|
908
920
|
{
|
|
@@ -911,13 +923,13 @@ const Te = [
|
|
|
911
923
|
}
|
|
912
924
|
],
|
|
913
925
|
["circle", { cx: "12", cy: "13", r: "3", key: "1vg3eu" }]
|
|
914
|
-
],
|
|
915
|
-
const
|
|
926
|
+
], Re = b("camera", Ne);
|
|
927
|
+
const Pe = [
|
|
916
928
|
["path", { d: "M5 21v-6", key: "1hz6c0" }],
|
|
917
929
|
["path", { d: "M12 21V9", key: "uvy0l4" }],
|
|
918
930
|
["path", { d: "M19 21V3", key: "11j9sm" }]
|
|
919
|
-
],
|
|
920
|
-
const
|
|
931
|
+
], Le = b("chart-no-axes-column-increasing", Pe);
|
|
932
|
+
const ze = [
|
|
921
933
|
[
|
|
922
934
|
"path",
|
|
923
935
|
{
|
|
@@ -926,16 +938,16 @@ const Re = [
|
|
|
926
938
|
}
|
|
927
939
|
],
|
|
928
940
|
["path", { d: "M21.21 15.89A10 10 0 1 1 8 2.83", key: "k2fpak" }]
|
|
929
|
-
],
|
|
930
|
-
const
|
|
931
|
-
const
|
|
941
|
+
], Ye = b("chart-pie", ze);
|
|
942
|
+
const We = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]], Ie = b("circle", We);
|
|
943
|
+
const Fe = [
|
|
932
944
|
["path", { d: "M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z", key: "p7xjir" }]
|
|
933
|
-
],
|
|
934
|
-
const
|
|
945
|
+
], De = b("cloud", Fe);
|
|
946
|
+
const Be = [
|
|
935
947
|
["path", { d: "m16 18 6-6-6-6", key: "eg8j8" }],
|
|
936
948
|
["path", { d: "m8 6-6 6 6 6", key: "ppft3o" }]
|
|
937
|
-
],
|
|
938
|
-
const
|
|
949
|
+
], Xe = b("code", Be);
|
|
950
|
+
const He = [
|
|
939
951
|
["path", { d: "M12 20v2", key: "1lh1kg" }],
|
|
940
952
|
["path", { d: "M12 2v2", key: "tus03m" }],
|
|
941
953
|
["path", { d: "M17 20v2", key: "1rnc9c" }],
|
|
@@ -950,18 +962,18 @@ const De = [
|
|
|
950
962
|
["path", { d: "M7 2v2", key: "1i4yhu" }],
|
|
951
963
|
["rect", { x: "4", y: "4", width: "16", height: "16", rx: "2", key: "1vbyd7" }],
|
|
952
964
|
["rect", { x: "8", y: "8", width: "8", height: "8", rx: "1", key: "z9xiuo" }]
|
|
953
|
-
],
|
|
954
|
-
const
|
|
965
|
+
], Ue = b("cpu", He);
|
|
966
|
+
const qe = [
|
|
955
967
|
["ellipse", { cx: "12", cy: "5", rx: "9", ry: "3", key: "msslwz" }],
|
|
956
968
|
["path", { d: "M3 5V19A9 3 0 0 0 21 19V5", key: "1wlel7" }],
|
|
957
969
|
["path", { d: "M3 12A9 3 0 0 0 21 12", key: "mv7ke4" }]
|
|
958
|
-
],
|
|
959
|
-
const
|
|
970
|
+
], Ge = b("database", qe);
|
|
971
|
+
const Ve = [
|
|
960
972
|
["path", { d: "M12 15V3", key: "m9g1x1" }],
|
|
961
973
|
["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }],
|
|
962
974
|
["path", { d: "m7 10 5 5 5-5", key: "brsn70" }]
|
|
963
|
-
],
|
|
964
|
-
const
|
|
975
|
+
], Ze = b("download", Ve);
|
|
976
|
+
const Je = [
|
|
965
977
|
[
|
|
966
978
|
"path",
|
|
967
979
|
{
|
|
@@ -972,8 +984,8 @@ const Ge = [
|
|
|
972
984
|
["path", { d: "M14 2v5a1 1 0 0 0 1 1h5", key: "wfsgrz" }],
|
|
973
985
|
["path", { d: "M10 12.5 8 15l2 2.5", key: "1tg20x" }],
|
|
974
986
|
["path", { d: "m14 12.5 2 2.5-2 2.5", key: "yinavb" }]
|
|
975
|
-
],
|
|
976
|
-
const
|
|
987
|
+
], Ke = b("file-code", Je);
|
|
988
|
+
const Qe = [
|
|
977
989
|
[
|
|
978
990
|
"path",
|
|
979
991
|
{
|
|
@@ -981,8 +993,8 @@ const Ze = [
|
|
|
981
993
|
key: "1kt360"
|
|
982
994
|
}
|
|
983
995
|
]
|
|
984
|
-
],
|
|
985
|
-
const
|
|
996
|
+
], tn = b("folder", Qe);
|
|
997
|
+
const en = [
|
|
986
998
|
[
|
|
987
999
|
"path",
|
|
988
1000
|
{
|
|
@@ -990,20 +1002,20 @@ const Ke = [
|
|
|
990
1002
|
key: "sc7q7i"
|
|
991
1003
|
}
|
|
992
1004
|
]
|
|
993
|
-
],
|
|
994
|
-
const
|
|
1005
|
+
], nn = b("funnel", en);
|
|
1006
|
+
const on = [
|
|
995
1007
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
996
1008
|
["path", { d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20", key: "13o1zl" }],
|
|
997
1009
|
["path", { d: "M2 12h20", key: "9i4pu4" }]
|
|
998
|
-
],
|
|
999
|
-
const
|
|
1010
|
+
], rn = b("globe", on);
|
|
1011
|
+
const sn = [
|
|
1000
1012
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
1001
1013
|
["path", { d: "M3 9h18", key: "1pudct" }],
|
|
1002
1014
|
["path", { d: "M3 15h18", key: "5xshup" }],
|
|
1003
1015
|
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
1004
1016
|
["path", { d: "M15 3v18", key: "14nvp0" }]
|
|
1005
|
-
],
|
|
1006
|
-
const
|
|
1017
|
+
], an = b("grid-3x3", sn);
|
|
1018
|
+
const cn = [
|
|
1007
1019
|
["line", { x1: "22", x2: "2", y1: "12", y2: "12", key: "1y58io" }],
|
|
1008
1020
|
[
|
|
1009
1021
|
"path",
|
|
@@ -1014,8 +1026,8 @@ const rn = [
|
|
|
1014
1026
|
],
|
|
1015
1027
|
["line", { x1: "6", x2: "6.01", y1: "16", y2: "16", key: "sgf278" }],
|
|
1016
1028
|
["line", { x1: "10", x2: "10.01", y1: "16", y2: "16", key: "1l4acy" }]
|
|
1017
|
-
],
|
|
1018
|
-
const
|
|
1029
|
+
], ln = b("hard-drive", cn);
|
|
1030
|
+
const dn = [
|
|
1019
1031
|
[
|
|
1020
1032
|
"path",
|
|
1021
1033
|
{
|
|
@@ -1023,13 +1035,13 @@ const an = [
|
|
|
1023
1035
|
key: "1xhozi"
|
|
1024
1036
|
}
|
|
1025
1037
|
]
|
|
1026
|
-
],
|
|
1027
|
-
const
|
|
1038
|
+
], hn = b("headphones", dn);
|
|
1039
|
+
const fn = [
|
|
1028
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" }],
|
|
1029
1041
|
["path", { d: "m21 2-9.6 9.6", key: "1j0ho8" }],
|
|
1030
1042
|
["circle", { cx: "7.5", cy: "15.5", r: "5.5", key: "yqb3hr" }]
|
|
1031
|
-
],
|
|
1032
|
-
const
|
|
1043
|
+
], pn = b("key", fn);
|
|
1044
|
+
const un = [
|
|
1033
1045
|
[
|
|
1034
1046
|
"path",
|
|
1035
1047
|
{
|
|
@@ -1051,16 +1063,16 @@ const hn = [
|
|
|
1051
1063
|
key: "kqbvx6"
|
|
1052
1064
|
}
|
|
1053
1065
|
]
|
|
1054
|
-
],
|
|
1055
|
-
const
|
|
1066
|
+
], yn = b("layers", un);
|
|
1067
|
+
const xn = [
|
|
1056
1068
|
["rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2", key: "1w4ew1" }],
|
|
1057
1069
|
["path", { d: "M7 11V7a5 5 0 0 1 10 0v4", key: "fwvmzm" }]
|
|
1058
|
-
],
|
|
1059
|
-
const
|
|
1070
|
+
], kn = b("lock", xn);
|
|
1071
|
+
const mn = [
|
|
1060
1072
|
["path", { d: "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7", key: "132q7q" }],
|
|
1061
1073
|
["rect", { x: "2", y: "4", width: "20", height: "16", rx: "2", key: "izxlao" }]
|
|
1062
|
-
],
|
|
1063
|
-
const
|
|
1074
|
+
], $n = b("mail", mn);
|
|
1075
|
+
const gn = [
|
|
1064
1076
|
[
|
|
1065
1077
|
"path",
|
|
1066
1078
|
{
|
|
@@ -1068,18 +1080,18 @@ const kn = [
|
|
|
1068
1080
|
key: "18887p"
|
|
1069
1081
|
}
|
|
1070
1082
|
]
|
|
1071
|
-
],
|
|
1072
|
-
const
|
|
1083
|
+
], bn = b("message-square", gn);
|
|
1084
|
+
const vn = [
|
|
1073
1085
|
["path", { d: "M12 19v3", key: "npa21l" }],
|
|
1074
1086
|
["path", { d: "M19 10v2a7 7 0 0 1-14 0v-2", key: "1vc78b" }],
|
|
1075
1087
|
["rect", { x: "9", y: "2", width: "6", height: "13", rx: "3", key: "s6n7sd" }]
|
|
1076
|
-
],
|
|
1077
|
-
const
|
|
1088
|
+
], _n = b("mic", vn);
|
|
1089
|
+
const jn = [
|
|
1078
1090
|
["rect", { width: "20", height: "14", x: "2", y: "3", rx: "2", key: "48i651" }],
|
|
1079
1091
|
["line", { x1: "8", x2: "16", y1: "21", y2: "21", key: "1svkeh" }],
|
|
1080
1092
|
["line", { x1: "12", x2: "12", y1: "17", y2: "21", key: "vw1qmm" }]
|
|
1081
|
-
],
|
|
1082
|
-
const
|
|
1093
|
+
], Mn = b("monitor", jn);
|
|
1094
|
+
const wn = [
|
|
1083
1095
|
[
|
|
1084
1096
|
"path",
|
|
1085
1097
|
{
|
|
@@ -1090,12 +1102,12 @@ const _n = [
|
|
|
1090
1102
|
["path", { d: "M12 22V12", key: "d0xqtd" }],
|
|
1091
1103
|
["polyline", { points: "3.29 7 12 12 20.71 7", key: "ousv84" }],
|
|
1092
1104
|
["path", { d: "m7.5 4.27 9 5.15", key: "1c824w" }]
|
|
1093
|
-
],
|
|
1094
|
-
const
|
|
1105
|
+
], Sn = b("package", wn);
|
|
1106
|
+
const Cn = [
|
|
1095
1107
|
["rect", { x: "14", y: "3", width: "5", height: "18", rx: "1", key: "kaeet6" }],
|
|
1096
1108
|
["rect", { x: "5", y: "3", width: "5", height: "18", rx: "1", key: "1wsw3u" }]
|
|
1097
|
-
],
|
|
1098
|
-
const
|
|
1109
|
+
], Tn = b("pause", Cn);
|
|
1110
|
+
const En = [
|
|
1099
1111
|
[
|
|
1100
1112
|
"path",
|
|
1101
1113
|
{
|
|
@@ -1103,30 +1115,30 @@ const Sn = [
|
|
|
1103
1115
|
key: "10ikf1"
|
|
1104
1116
|
}
|
|
1105
1117
|
]
|
|
1106
|
-
],
|
|
1107
|
-
const
|
|
1118
|
+
], An = b("play", En);
|
|
1119
|
+
const On = [
|
|
1108
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" }],
|
|
1109
1121
|
["path", { d: "M21 3v5h-5", key: "1q7to0" }],
|
|
1110
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" }],
|
|
1111
1123
|
["path", { d: "M8 16H3v5", key: "1cv678" }]
|
|
1112
|
-
],
|
|
1113
|
-
const
|
|
1124
|
+
], Nn = b("refresh-cw", On);
|
|
1125
|
+
const Rn = [
|
|
1114
1126
|
["path", { d: "m17 2 4 4-4 4", key: "nntrym" }],
|
|
1115
1127
|
["path", { d: "M3 11v-1a4 4 0 0 1 4-4h14", key: "84bu3i" }],
|
|
1116
1128
|
["path", { d: "m7 22-4-4 4-4", key: "1wqhfi" }],
|
|
1117
1129
|
["path", { d: "M21 13v1a4 4 0 0 1-4 4H3", key: "1rx37r" }]
|
|
1118
|
-
],
|
|
1119
|
-
const
|
|
1130
|
+
], Pn = b("repeat", Rn);
|
|
1131
|
+
const Ln = [
|
|
1120
1132
|
["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
|
|
1121
1133
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
|
|
1122
|
-
],
|
|
1123
|
-
const
|
|
1134
|
+
], zn = b("search", Ln);
|
|
1135
|
+
const Yn = [
|
|
1124
1136
|
["rect", { width: "20", height: "8", x: "2", y: "2", rx: "2", ry: "2", key: "ngkwjq" }],
|
|
1125
1137
|
["rect", { width: "20", height: "8", x: "2", y: "14", rx: "2", ry: "2", key: "iecqi9" }],
|
|
1126
1138
|
["line", { x1: "6", x2: "6.01", y1: "6", y2: "6", key: "16zg32" }],
|
|
1127
1139
|
["line", { x1: "6", x2: "6.01", y1: "18", y2: "18", key: "nzw8ys" }]
|
|
1128
|
-
],
|
|
1129
|
-
const
|
|
1140
|
+
], Wn = b("server", Yn);
|
|
1141
|
+
const In = [
|
|
1130
1142
|
[
|
|
1131
1143
|
"path",
|
|
1132
1144
|
{
|
|
@@ -1135,8 +1147,8 @@ const zn = [
|
|
|
1135
1147
|
}
|
|
1136
1148
|
],
|
|
1137
1149
|
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
1138
|
-
],
|
|
1139
|
-
const
|
|
1150
|
+
], Fn = b("settings", In);
|
|
1151
|
+
const Dn = [
|
|
1140
1152
|
[
|
|
1141
1153
|
"path",
|
|
1142
1154
|
{
|
|
@@ -1144,40 +1156,40 @@ const Wn = [
|
|
|
1144
1156
|
key: "oel41y"
|
|
1145
1157
|
}
|
|
1146
1158
|
]
|
|
1147
|
-
],
|
|
1148
|
-
const
|
|
1159
|
+
], Bn = b("shield", Dn);
|
|
1160
|
+
const Xn = [
|
|
1149
1161
|
["rect", { width: "14", height: "20", x: "5", y: "2", rx: "2", ry: "2", key: "1yt0o3" }],
|
|
1150
1162
|
["path", { d: "M12 18h.01", key: "mhygvu" }]
|
|
1151
|
-
],
|
|
1152
|
-
const
|
|
1163
|
+
], Hn = b("smartphone", Xn);
|
|
1164
|
+
const Un = [
|
|
1153
1165
|
["rect", { width: "16", height: "20", x: "4", y: "2", rx: "2", key: "1nb95v" }],
|
|
1154
1166
|
["path", { d: "M12 6h.01", key: "1vi96p" }],
|
|
1155
1167
|
["circle", { cx: "12", cy: "14", r: "4", key: "1jruaj" }],
|
|
1156
1168
|
["path", { d: "M12 14h.01", key: "1etili" }]
|
|
1157
|
-
],
|
|
1158
|
-
const
|
|
1169
|
+
], qn = b("speaker", Un);
|
|
1170
|
+
const Gn = [
|
|
1159
1171
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }]
|
|
1160
|
-
],
|
|
1161
|
-
const
|
|
1172
|
+
], Vn = b("square", Gn);
|
|
1173
|
+
const Zn = [
|
|
1162
1174
|
["path", { d: "M12 19h8", key: "baeox8" }],
|
|
1163
1175
|
["path", { d: "m4 17 6-6-6-6", key: "1yngyt" }]
|
|
1164
|
-
],
|
|
1165
|
-
const
|
|
1176
|
+
], Jn = b("terminal", Zn);
|
|
1177
|
+
const Kn = [
|
|
1166
1178
|
["path", { d: "M12 3v12", key: "1x0j5s" }],
|
|
1167
1179
|
["path", { d: "m17 8-5-5-5 5", key: "7q97r8" }],
|
|
1168
1180
|
["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }]
|
|
1169
|
-
],
|
|
1170
|
-
const
|
|
1181
|
+
], Qn = b("upload", Kn);
|
|
1182
|
+
const to = [
|
|
1171
1183
|
["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
|
|
1172
1184
|
["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
|
|
1173
|
-
],
|
|
1174
|
-
const
|
|
1185
|
+
], eo = b("user", to);
|
|
1186
|
+
const no = [
|
|
1175
1187
|
["path", { d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2", key: "1yyitq" }],
|
|
1176
1188
|
["path", { d: "M16 3.128a4 4 0 0 1 0 7.744", key: "16gr8j" }],
|
|
1177
1189
|
["path", { d: "M22 21v-2a4 4 0 0 0-3-3.87", key: "kshegd" }],
|
|
1178
1190
|
["circle", { cx: "9", cy: "7", r: "4", key: "nufk8" }]
|
|
1179
|
-
],
|
|
1180
|
-
const
|
|
1191
|
+
], oo = b("users", no);
|
|
1192
|
+
const ro = [
|
|
1181
1193
|
["path", { d: "M12 10v2.2l1.6 1", key: "n3r21l" }],
|
|
1182
1194
|
[
|
|
1183
1195
|
"path",
|
|
@@ -1185,14 +1197,14 @@ const eo = [
|
|
|
1185
1197
|
],
|
|
1186
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" }],
|
|
1187
1199
|
["circle", { cx: "12", cy: "12", r: "6", key: "1vlfrh" }]
|
|
1188
|
-
],
|
|
1189
|
-
const
|
|
1200
|
+
], so = b("watch", ro);
|
|
1201
|
+
const ao = [
|
|
1190
1202
|
["path", { d: "M12 20h.01", key: "zekei9" }],
|
|
1191
1203
|
["path", { d: "M2 8.82a15 15 0 0 1 20 0", key: "dnpr2z" }],
|
|
1192
1204
|
["path", { d: "M5 12.859a10 10 0 0 1 14 0", key: "1x1e6c" }],
|
|
1193
1205
|
["path", { d: "M8.5 16.429a5 5 0 0 1 7 0", key: "1bycff" }]
|
|
1194
|
-
],
|
|
1195
|
-
const
|
|
1206
|
+
], io = b("wifi", ao);
|
|
1207
|
+
const co = [
|
|
1196
1208
|
[
|
|
1197
1209
|
"path",
|
|
1198
1210
|
{
|
|
@@ -1200,118 +1212,118 @@ const so = [
|
|
|
1200
1212
|
key: "1xq2db"
|
|
1201
1213
|
}
|
|
1202
1214
|
]
|
|
1203
|
-
],
|
|
1204
|
-
Monitor:
|
|
1205
|
-
Server:
|
|
1206
|
-
Smartphone:
|
|
1207
|
-
Watch:
|
|
1208
|
-
Cloud:
|
|
1209
|
-
Cpu:
|
|
1210
|
-
Database:
|
|
1211
|
-
HardDrive:
|
|
1212
|
-
Wifi:
|
|
1213
|
-
Globe:
|
|
1214
|
-
User:
|
|
1215
|
-
Users:
|
|
1216
|
-
Lock:
|
|
1217
|
-
Key:
|
|
1218
|
-
Shield:
|
|
1219
|
-
Mic:
|
|
1220
|
-
Camera:
|
|
1221
|
-
Speaker:
|
|
1222
|
-
Headphones:
|
|
1223
|
-
Code:
|
|
1224
|
-
Terminal:
|
|
1225
|
-
FileCode:
|
|
1226
|
-
Folder:
|
|
1227
|
-
Zap:
|
|
1228
|
-
Activity:
|
|
1229
|
-
BarChart:
|
|
1230
|
-
PieChart:
|
|
1231
|
-
ArrowRight:
|
|
1232
|
-
ArrowDown:
|
|
1233
|
-
RefreshCw:
|
|
1234
|
-
Repeat:
|
|
1235
|
-
Box:
|
|
1236
|
-
Package:
|
|
1237
|
-
Layers:
|
|
1238
|
-
Grid:
|
|
1239
|
-
Settings:
|
|
1240
|
-
Bell:
|
|
1241
|
-
Mail:
|
|
1242
|
-
MessageSquare:
|
|
1243
|
-
Search:
|
|
1244
|
-
Filter:
|
|
1245
|
-
Download:
|
|
1246
|
-
Upload:
|
|
1247
|
-
Play:
|
|
1248
|
-
Pause:
|
|
1249
|
-
Square:
|
|
1250
|
-
Circle:
|
|
1215
|
+
], lo = b("zap", co), ho = {
|
|
1216
|
+
Monitor: Mn,
|
|
1217
|
+
Server: Wn,
|
|
1218
|
+
Smartphone: Hn,
|
|
1219
|
+
Watch: so,
|
|
1220
|
+
Cloud: De,
|
|
1221
|
+
Cpu: Ue,
|
|
1222
|
+
Database: Ge,
|
|
1223
|
+
HardDrive: ln,
|
|
1224
|
+
Wifi: io,
|
|
1225
|
+
Globe: rn,
|
|
1226
|
+
User: eo,
|
|
1227
|
+
Users: oo,
|
|
1228
|
+
Lock: kn,
|
|
1229
|
+
Key: pn,
|
|
1230
|
+
Shield: Bn,
|
|
1231
|
+
Mic: _n,
|
|
1232
|
+
Camera: Re,
|
|
1233
|
+
Speaker: qn,
|
|
1234
|
+
Headphones: hn,
|
|
1235
|
+
Code: Xe,
|
|
1236
|
+
Terminal: Jn,
|
|
1237
|
+
FileCode: Ke,
|
|
1238
|
+
Folder: tn,
|
|
1239
|
+
Zap: lo,
|
|
1240
|
+
Activity: Me,
|
|
1241
|
+
BarChart: Le,
|
|
1242
|
+
PieChart: Ye,
|
|
1243
|
+
ArrowRight: Te,
|
|
1244
|
+
ArrowDown: Se,
|
|
1245
|
+
RefreshCw: Nn,
|
|
1246
|
+
Repeat: Pn,
|
|
1247
|
+
Box: Bt,
|
|
1248
|
+
Package: Sn,
|
|
1249
|
+
Layers: yn,
|
|
1250
|
+
Grid: an,
|
|
1251
|
+
Settings: Fn,
|
|
1252
|
+
Bell: Ae,
|
|
1253
|
+
Mail: $n,
|
|
1254
|
+
MessageSquare: bn,
|
|
1255
|
+
Search: zn,
|
|
1256
|
+
Filter: nn,
|
|
1257
|
+
Download: Ze,
|
|
1258
|
+
Upload: Qn,
|
|
1259
|
+
Play: An,
|
|
1260
|
+
Pause: Tn,
|
|
1261
|
+
Square: Vn,
|
|
1262
|
+
Circle: Ie
|
|
1251
1263
|
};
|
|
1252
|
-
function
|
|
1253
|
-
return
|
|
1264
|
+
function fo(t) {
|
|
1265
|
+
return ho[t] || Bt;
|
|
1254
1266
|
}
|
|
1255
|
-
function
|
|
1267
|
+
function po({
|
|
1256
1268
|
uid: t,
|
|
1257
|
-
style:
|
|
1269
|
+
style: n,
|
|
1258
1270
|
box: s,
|
|
1259
1271
|
color: a,
|
|
1260
1272
|
tag: i,
|
|
1261
1273
|
selected: l = !1,
|
|
1262
|
-
opacity:
|
|
1274
|
+
opacity: y,
|
|
1263
1275
|
onClick: m,
|
|
1264
|
-
onPointerDown:
|
|
1276
|
+
onPointerDown: u
|
|
1265
1277
|
}) {
|
|
1266
|
-
const x =
|
|
1278
|
+
const x = Yt(a), c = l ? n.ink.accent : n.ink.line, O = l ? n.ink.accent : n.ink.text, f = [
|
|
1267
1279
|
{ face: "left", path: s.left },
|
|
1268
1280
|
{ face: "right", path: s.right },
|
|
1269
1281
|
{ face: "top", path: s.top }
|
|
1270
1282
|
];
|
|
1271
|
-
return /* @__PURE__ */
|
|
1283
|
+
return /* @__PURE__ */ o.jsxs(
|
|
1272
1284
|
"g",
|
|
1273
1285
|
{
|
|
1274
|
-
className: m ||
|
|
1275
|
-
opacity:
|
|
1286
|
+
className: m || u ? "cursor-pointer" : void 0,
|
|
1287
|
+
opacity: y,
|
|
1276
1288
|
onClick: m,
|
|
1277
|
-
onPointerDown:
|
|
1289
|
+
onPointerDown: u,
|
|
1278
1290
|
children: [
|
|
1279
|
-
|
|
1280
|
-
/* @__PURE__ */
|
|
1281
|
-
|
|
1282
|
-
] },
|
|
1283
|
-
/* @__PURE__ */
|
|
1291
|
+
f.map(({ face: E, path: d }) => /* @__PURE__ */ o.jsxs("g", { children: [
|
|
1292
|
+
/* @__PURE__ */ o.jsx("path", { d, fill: n.face[E] }),
|
|
1293
|
+
Wt(t, x, E).map((h) => /* @__PURE__ */ o.jsx("path", { d, fill: `url(#${h})`, opacity: n.hatchOpacity[E] }, h))
|
|
1294
|
+
] }, E)),
|
|
1295
|
+
/* @__PURE__ */ o.jsx(
|
|
1284
1296
|
"path",
|
|
1285
1297
|
{
|
|
1286
1298
|
d: s.hidden,
|
|
1287
1299
|
fill: "none",
|
|
1288
|
-
stroke:
|
|
1289
|
-
strokeWidth:
|
|
1300
|
+
stroke: n.ink.hidden,
|
|
1301
|
+
strokeWidth: n.strokeWidth * 0.55,
|
|
1290
1302
|
strokeDasharray: "3.5 3",
|
|
1291
1303
|
opacity: 0.85
|
|
1292
1304
|
}
|
|
1293
1305
|
),
|
|
1294
|
-
/* @__PURE__ */
|
|
1306
|
+
/* @__PURE__ */ o.jsx(
|
|
1295
1307
|
"path",
|
|
1296
1308
|
{
|
|
1297
1309
|
d: s.visible,
|
|
1298
1310
|
fill: "none",
|
|
1299
|
-
stroke:
|
|
1300
|
-
strokeWidth: l ?
|
|
1311
|
+
stroke: c,
|
|
1312
|
+
strokeWidth: l ? n.strokeWidth * 1.7 : n.strokeWidth,
|
|
1301
1313
|
strokeLinejoin: "round",
|
|
1302
1314
|
strokeLinecap: "round"
|
|
1303
1315
|
}
|
|
1304
1316
|
),
|
|
1305
|
-
i != null && /* @__PURE__ */
|
|
1317
|
+
i != null && /* @__PURE__ */ o.jsx(
|
|
1306
1318
|
"text",
|
|
1307
1319
|
{
|
|
1308
1320
|
x: s.topCenter.x,
|
|
1309
1321
|
y: s.topCenter.y + r(3),
|
|
1310
1322
|
textAnchor: "middle",
|
|
1311
|
-
fill:
|
|
1323
|
+
fill: O,
|
|
1312
1324
|
fontSize: r(8),
|
|
1313
1325
|
fontWeight: 600,
|
|
1314
|
-
fontFamily:
|
|
1326
|
+
fontFamily: n.font,
|
|
1315
1327
|
style: { letterSpacing: "0.1em" },
|
|
1316
1328
|
pointerEvents: "none",
|
|
1317
1329
|
children: kt(i)
|
|
@@ -1321,47 +1333,47 @@ function lo({
|
|
|
1321
1333
|
}
|
|
1322
1334
|
);
|
|
1323
1335
|
}
|
|
1324
|
-
function
|
|
1336
|
+
function uo({
|
|
1325
1337
|
style: t,
|
|
1326
|
-
box:
|
|
1338
|
+
box: n,
|
|
1327
1339
|
name: s,
|
|
1328
1340
|
subtitle: a,
|
|
1329
1341
|
icon: i,
|
|
1330
1342
|
selected: l = !1,
|
|
1331
|
-
opacity:
|
|
1343
|
+
opacity: y
|
|
1332
1344
|
}) {
|
|
1333
|
-
const m = l ? t.ink.accent : t.ink.line,
|
|
1334
|
-
return /* @__PURE__ */
|
|
1335
|
-
/* @__PURE__ */
|
|
1345
|
+
const m = l ? t.ink.accent : t.ink.line, u = l ? t.ink.accent : t.ink.text, x = i ? fo(i) : null, c = (s || "").toUpperCase(), O = (a || "").toUpperCase(), f = n.minY - r(11), E = f - r(4), d = O ? f - r(15) : f - r(4), h = r(9), j = r(3), g = x ? h + j : 0, C = Math.max(c.length * r(5.6) + g, O.length * r(4.4), r(24)), W = n.topCenter.x + g / 2, _ = W - c.length * r(5.6) / 2 - j - h, $ = d - h + r(1);
|
|
1346
|
+
return /* @__PURE__ */ o.jsxs("g", { pointerEvents: "none", opacity: y, children: [
|
|
1347
|
+
/* @__PURE__ */ o.jsx(
|
|
1336
1348
|
"line",
|
|
1337
1349
|
{
|
|
1338
|
-
x1:
|
|
1339
|
-
y1:
|
|
1340
|
-
x2:
|
|
1341
|
-
y2:
|
|
1350
|
+
x1: n.topCenter.x,
|
|
1351
|
+
y1: n.topCenter.y - r(6),
|
|
1352
|
+
x2: n.topCenter.x,
|
|
1353
|
+
y2: f,
|
|
1342
1354
|
stroke: m,
|
|
1343
1355
|
strokeWidth: t.strokeWidth * 0.6
|
|
1344
1356
|
}
|
|
1345
1357
|
),
|
|
1346
|
-
/* @__PURE__ */
|
|
1358
|
+
/* @__PURE__ */ o.jsx(
|
|
1347
1359
|
"line",
|
|
1348
1360
|
{
|
|
1349
|
-
x1:
|
|
1350
|
-
y1:
|
|
1351
|
-
x2:
|
|
1352
|
-
y2:
|
|
1361
|
+
x1: n.topCenter.x - C / 2,
|
|
1362
|
+
y1: f,
|
|
1363
|
+
x2: n.topCenter.x + C / 2,
|
|
1364
|
+
y2: f,
|
|
1353
1365
|
stroke: m,
|
|
1354
1366
|
strokeWidth: t.strokeWidth * 0.6
|
|
1355
1367
|
}
|
|
1356
1368
|
),
|
|
1357
|
-
x && /* @__PURE__ */
|
|
1358
|
-
/* @__PURE__ */
|
|
1369
|
+
x && /* @__PURE__ */ o.jsx("g", { transform: `translate(${_}, ${$})`, color: u, children: /* @__PURE__ */ o.jsx(x, { width: h, height: h, strokeWidth: 1.75 }) }),
|
|
1370
|
+
/* @__PURE__ */ o.jsx(
|
|
1359
1371
|
"text",
|
|
1360
1372
|
{
|
|
1361
|
-
x:
|
|
1362
|
-
y:
|
|
1373
|
+
x: W,
|
|
1374
|
+
y: d,
|
|
1363
1375
|
textAnchor: "middle",
|
|
1364
|
-
fill:
|
|
1376
|
+
fill: u,
|
|
1365
1377
|
fontSize: r(9.5),
|
|
1366
1378
|
fontWeight: 600,
|
|
1367
1379
|
fontFamily: t.font,
|
|
@@ -1370,14 +1382,14 @@ function ho({
|
|
|
1370
1382
|
paintOrder: "stroke",
|
|
1371
1383
|
strokeLinejoin: "round",
|
|
1372
1384
|
style: { letterSpacing: "0.12em" },
|
|
1373
|
-
children:
|
|
1385
|
+
children: c
|
|
1374
1386
|
}
|
|
1375
1387
|
),
|
|
1376
|
-
|
|
1388
|
+
O && /* @__PURE__ */ o.jsx(
|
|
1377
1389
|
"text",
|
|
1378
1390
|
{
|
|
1379
|
-
x:
|
|
1380
|
-
y:
|
|
1391
|
+
x: n.topCenter.x,
|
|
1392
|
+
y: E,
|
|
1381
1393
|
textAnchor: "middle",
|
|
1382
1394
|
fill: t.ink.muted,
|
|
1383
1395
|
fontSize: r(7.5),
|
|
@@ -1387,12 +1399,12 @@ function ho({
|
|
|
1387
1399
|
paintOrder: "stroke",
|
|
1388
1400
|
strokeLinejoin: "round",
|
|
1389
1401
|
style: { letterSpacing: "0.1em" },
|
|
1390
|
-
children:
|
|
1402
|
+
children: O
|
|
1391
1403
|
}
|
|
1392
1404
|
)
|
|
1393
1405
|
] });
|
|
1394
1406
|
}
|
|
1395
|
-
const
|
|
1407
|
+
const Xt = '"JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace', yo = {
|
|
1396
1408
|
blue: { top: "#3b82f6", side: "#2563eb", front: "#1d4ed8" },
|
|
1397
1409
|
violet: { top: "#8b5cf6", side: "#7c3aed", front: "#6d28d9" },
|
|
1398
1410
|
cyan: { top: "#06b6d4", side: "#0891b2", front: "#0e7490" },
|
|
@@ -1400,7 +1412,7 @@ const Dt = '"JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace', fo =
|
|
|
1400
1412
|
amber: { top: "#f59e0b", side: "#d97706", front: "#b45309" },
|
|
1401
1413
|
rose: { top: "#f43f5e", side: "#e11d48", front: "#be123c" },
|
|
1402
1414
|
slate: { top: "#475569", side: "#334155", front: "#1e293b" }
|
|
1403
|
-
},
|
|
1415
|
+
}, xo = {
|
|
1404
1416
|
blue: { top: "#93c5fd", side: "#60a5fa", front: "#3b82f6" },
|
|
1405
1417
|
violet: { top: "#c4b5fd", side: "#a78bfa", front: "#8b5cf6" },
|
|
1406
1418
|
cyan: { top: "#67e8f9", side: "#22d3ee", front: "#06b6d4" },
|
|
@@ -1409,20 +1421,20 @@ const Dt = '"JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace', fo =
|
|
|
1409
1421
|
rose: { top: "#fda4af", side: "#fb7185", front: "#f43f5e" },
|
|
1410
1422
|
slate: { top: "#e2e8f0", side: "#cbd5e1", front: "#94a3b8" }
|
|
1411
1423
|
};
|
|
1412
|
-
function
|
|
1424
|
+
function yt(t, n, s) {
|
|
1413
1425
|
const a = (x) => {
|
|
1414
|
-
const
|
|
1426
|
+
const c = x.replace("#", "");
|
|
1415
1427
|
return {
|
|
1416
|
-
r: parseInt(
|
|
1417
|
-
g: parseInt(
|
|
1418
|
-
b: parseInt(
|
|
1428
|
+
r: parseInt(c.substring(0, 2), 16),
|
|
1429
|
+
g: parseInt(c.substring(2, 4), 16),
|
|
1430
|
+
b: parseInt(c.substring(4, 6), 16)
|
|
1419
1431
|
};
|
|
1420
|
-
}, i = a(t), l = a(
|
|
1421
|
-
return `rgb(${
|
|
1432
|
+
}, i = a(t), l = a(n), y = Math.round(i.r + (l.r - i.r) * s), m = Math.round(i.g + (l.g - i.g) * s), u = Math.round(i.b + (l.b - i.b) * s);
|
|
1433
|
+
return `rgb(${y},${m},${u})`;
|
|
1422
1434
|
}
|
|
1423
|
-
function
|
|
1424
|
-
const m = k(t,
|
|
1425
|
-
return /* @__PURE__ */
|
|
1435
|
+
function ko({ x: t, y: n, z: s, children: a, fontSize: i = 8, color: l = "#1e293b", shadow: y }) {
|
|
1436
|
+
const m = k(t, n, s);
|
|
1437
|
+
return /* @__PURE__ */ o.jsx("g", { transform: `translate(${m.screenX}, ${m.screenY})`, filter: y, children: /* @__PURE__ */ o.jsx("g", { transform: `matrix(${Kt()})`, children: /* @__PURE__ */ o.jsx(
|
|
1426
1438
|
"text",
|
|
1427
1439
|
{
|
|
1428
1440
|
x: 0,
|
|
@@ -1431,161 +1443,162 @@ function uo({ x: t, y: e, z: s, children: a, fontSize: i = 8, color: l = "#1e293
|
|
|
1431
1443
|
fill: l,
|
|
1432
1444
|
fontSize: i,
|
|
1433
1445
|
fontWeight: 600,
|
|
1434
|
-
fontFamily:
|
|
1446
|
+
fontFamily: Xt,
|
|
1435
1447
|
style: { textTransform: "uppercase", letterSpacing: "0.06em" },
|
|
1436
1448
|
children: a
|
|
1437
1449
|
}
|
|
1438
1450
|
) }) });
|
|
1439
1451
|
}
|
|
1440
|
-
function
|
|
1441
|
-
const x = rt(t,
|
|
1442
|
-
return /* @__PURE__ */
|
|
1443
|
-
m && /* @__PURE__ */
|
|
1444
|
-
/* @__PURE__ */
|
|
1445
|
-
m && /* @__PURE__ */
|
|
1446
|
-
/* @__PURE__ */
|
|
1447
|
-
/* @__PURE__ */
|
|
1452
|
+
function mo({ width: t, depth: n, elevation: s, color: a, opacity: i, borderColor: l, theme: y, isGround: m }) {
|
|
1453
|
+
const x = rt(t, n, m ? 8 : 2, 0, 0), c = k(0, 0, s);
|
|
1454
|
+
return /* @__PURE__ */ o.jsxs("g", { transform: `translate(${c.screenX}, ${c.screenY})`, children: [
|
|
1455
|
+
m && /* @__PURE__ */ o.jsx("g", { transform: "translate(4, 4)", opacity: 0.2, children: /* @__PURE__ */ o.jsx("path", { d: x.top, fill: "#000" }) }),
|
|
1456
|
+
/* @__PURE__ */ o.jsx("path", { d: x.top, fill: a, opacity: i }),
|
|
1457
|
+
m && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
1458
|
+
/* @__PURE__ */ o.jsx("path", { d: x.left, fill: y === "dark" ? "#0f172a" : "#cbd5e1", opacity: 0.8 }),
|
|
1459
|
+
/* @__PURE__ */ o.jsx("path", { d: x.right, fill: y === "dark" ? "#1e293b" : "#94a3b8", opacity: 0.8 })
|
|
1448
1460
|
] }),
|
|
1449
|
-
/* @__PURE__ */
|
|
1461
|
+
/* @__PURE__ */ o.jsx(
|
|
1450
1462
|
"path",
|
|
1451
1463
|
{
|
|
1452
1464
|
d: x.top,
|
|
1453
1465
|
fill: "none",
|
|
1454
|
-
stroke: l || (
|
|
1466
|
+
stroke: l || (y === "dark" ? "#475569" : "#94a3b8"),
|
|
1455
1467
|
strokeWidth: m ? 1.5 : 0.75,
|
|
1456
1468
|
opacity: m ? 1 : 0.6
|
|
1457
1469
|
}
|
|
1458
1470
|
)
|
|
1459
1471
|
] });
|
|
1460
1472
|
}
|
|
1461
|
-
function
|
|
1462
|
-
const { interactive:
|
|
1463
|
-
const
|
|
1464
|
-
return
|
|
1465
|
-
}, [
|
|
1466
|
-
|
|
1467
|
-
m ? (
|
|
1473
|
+
function Mo({ config: t, options: n = {}, className: s, style: a, onNodeClick: i, onLayerClick: l }) {
|
|
1474
|
+
const { interactive: y = !0, animate: m = !0, showLabels: u = !0, expandOnHover: x = !0 } = n, { theme: c, canvas: O, origin: f, tiers: E, floorSize: d, nodes: h, cornerRadius: j = 0 } = t, g = ie(t.style), C = g.technical, W = $t().replace(/:/g, ""), _ = !C && t.material === "retro-print", $ = _ ? Rt : c === "dark" ? yo : xo, A = C ? g.paper.to : _ ? c === "dark" ? "#202624" : "#f4efe6" : c === "dark" ? "#0f172a" : "#fafafa", P = C ? g.ink.text : _ ? "#202a29" : c === "dark" ? "#e2e8f0" : "#1e293b", I = C ? g.ink.muted : _ ? c === "dark" ? "#c5c4b7" : "#505b56" : c === "dark" ? "#64748b" : "#94a3b8", S = Gt(() => {
|
|
1475
|
+
const w = h.map((p, T) => ({ node: p, i: T })).sort((p, T) => p.node.tier - T.node.tier || p.node.y - T.node.y || p.node.x - T.node.x), e = /* @__PURE__ */ new Map();
|
|
1476
|
+
return w.forEach(({ i: p }, T) => e.set(p, T + 1)), e;
|
|
1477
|
+
}, [h]), L = { minX: 16, minY: 16, maxX: O.width - 16, maxY: O.height - 16 }, [q, N] = ft(/* @__PURE__ */ new Set());
|
|
1478
|
+
Vt(() => {
|
|
1479
|
+
m ? (N(/* @__PURE__ */ new Set()), E.forEach((w, e) => {
|
|
1468
1480
|
setTimeout(() => {
|
|
1469
|
-
|
|
1470
|
-
},
|
|
1471
|
-
})) :
|
|
1472
|
-
}, [t.id, m,
|
|
1473
|
-
const [
|
|
1474
|
-
const
|
|
1475
|
-
if (
|
|
1476
|
-
const
|
|
1477
|
-
return
|
|
1481
|
+
N((p) => /* @__PURE__ */ new Set([...p, e]));
|
|
1482
|
+
}, e * 150 + 100);
|
|
1483
|
+
})) : N(new Set(E.map((w, e) => e)));
|
|
1484
|
+
}, [t.id, m, E.length]);
|
|
1485
|
+
const [Y, V] = ft(null), [H, F] = ft(null), [M, D] = ft(null), K = [...h].sort((w, e) => {
|
|
1486
|
+
const p = E[w.tier]?.elevation || 0, T = E[e.tier]?.elevation || 0;
|
|
1487
|
+
if (p !== T) return p - T;
|
|
1488
|
+
const R = w.x + w.width + (w.y + w.depth);
|
|
1489
|
+
return e.x + e.width + (e.y + e.depth) - R;
|
|
1478
1490
|
});
|
|
1479
|
-
return /* @__PURE__ */
|
|
1491
|
+
return /* @__PURE__ */ o.jsx("div", { className: s, style: { display: "inline-block", ...a }, children: /* @__PURE__ */ o.jsxs(
|
|
1480
1492
|
"svg",
|
|
1481
1493
|
{
|
|
1482
|
-
width:
|
|
1483
|
-
height:
|
|
1484
|
-
style: { backgroundColor:
|
|
1494
|
+
width: O.width,
|
|
1495
|
+
height: O.height,
|
|
1496
|
+
style: { backgroundColor: A },
|
|
1485
1497
|
onClick: () => {
|
|
1486
|
-
|
|
1498
|
+
y && (D(null), F(null));
|
|
1487
1499
|
},
|
|
1488
1500
|
children: [
|
|
1489
|
-
/* @__PURE__ */
|
|
1490
|
-
/* @__PURE__ */
|
|
1491
|
-
/* @__PURE__ */
|
|
1501
|
+
/* @__PURE__ */ o.jsxs("defs", { children: [
|
|
1502
|
+
_ && /* @__PURE__ */ o.jsx("pattern", { id: `print-${t.id}`, width: "64", height: "64", patternUnits: "userSpaceOnUse", children: Pt.map((w, e) => /* @__PURE__ */ o.jsx("circle", { cx: w.x, cy: w.y, r: w.r, fill: "#26362e", opacity: 0.32 }, e)) }),
|
|
1503
|
+
/* @__PURE__ */ o.jsx("pattern", { id: `grid-${t.id}`, width: "24", height: "24", patternUnits: "userSpaceOnUse", children: /* @__PURE__ */ o.jsx("circle", { cx: "12", cy: "12", r: "0.5", fill: c === "dark" ? "#1e293b" : "#e2e8f0" }) }),
|
|
1504
|
+
/* @__PURE__ */ o.jsx("filter", { id: `glow-${t.id}`, x: "-20%", y: "-20%", width: "140%", height: "140%", children: /* @__PURE__ */ o.jsx(
|
|
1492
1505
|
"feDropShadow",
|
|
1493
1506
|
{
|
|
1494
1507
|
dx: "0",
|
|
1495
1508
|
dy: "4",
|
|
1496
1509
|
stdDeviation: "8",
|
|
1497
|
-
floodColor:
|
|
1510
|
+
floodColor: c === "dark" ? "#60a5fa" : "#3b82f6",
|
|
1498
1511
|
floodOpacity: "0.3"
|
|
1499
1512
|
}
|
|
1500
1513
|
) }),
|
|
1501
|
-
/* @__PURE__ */
|
|
1502
|
-
/* @__PURE__ */
|
|
1503
|
-
/* @__PURE__ */
|
|
1504
|
-
/* @__PURE__ */
|
|
1514
|
+
/* @__PURE__ */ o.jsxs("radialGradient", { id: `bg-${t.id}`, cx: "48%", cy: "34%", r: "82%", children: [
|
|
1515
|
+
/* @__PURE__ */ o.jsx("stop", { offset: "0%", stopColor: c === "dark" ? "#16203a" : "#ffffff" }),
|
|
1516
|
+
/* @__PURE__ */ o.jsx("stop", { offset: "55%", stopColor: c === "dark" ? "#0e1526" : "#f2f5f9" }),
|
|
1517
|
+
/* @__PURE__ */ o.jsx("stop", { offset: "100%", stopColor: c === "dark" ? "#080d18" : "#e7ecf2" })
|
|
1505
1518
|
] }),
|
|
1506
|
-
/* @__PURE__ */
|
|
1507
|
-
/* @__PURE__ */
|
|
1508
|
-
/* @__PURE__ */
|
|
1509
|
-
/* @__PURE__ */
|
|
1510
|
-
/* @__PURE__ */
|
|
1519
|
+
/* @__PURE__ */ o.jsx("filter", { id: `contact-${t.id}`, x: "-60%", y: "-60%", width: "220%", height: "220%", children: /* @__PURE__ */ o.jsx("feGaussianBlur", { stdDeviation: "5" }) }),
|
|
1520
|
+
/* @__PURE__ */ o.jsxs("linearGradient", { id: `sheen-${t.id}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
1521
|
+
/* @__PURE__ */ o.jsx("stop", { offset: "0%", stopColor: "#ffffff", stopOpacity: "0.18" }),
|
|
1522
|
+
/* @__PURE__ */ o.jsx("stop", { offset: "55%", stopColor: "#ffffff", stopOpacity: "0.04" }),
|
|
1523
|
+
/* @__PURE__ */ o.jsx("stop", { offset: "100%", stopColor: "#ffffff", stopOpacity: "0" })
|
|
1511
1524
|
] }),
|
|
1512
|
-
/* @__PURE__ */
|
|
1513
|
-
/* @__PURE__ */
|
|
1514
|
-
/* @__PURE__ */
|
|
1525
|
+
/* @__PURE__ */ o.jsxs("linearGradient", { id: `shade-${t.id}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
1526
|
+
/* @__PURE__ */ o.jsx("stop", { offset: "0%", stopColor: "#000000", stopOpacity: "0" }),
|
|
1527
|
+
/* @__PURE__ */ o.jsx("stop", { offset: "100%", stopColor: "#000000", stopOpacity: "0.24" })
|
|
1515
1528
|
] }),
|
|
1516
|
-
/* @__PURE__ */
|
|
1529
|
+
/* @__PURE__ */ o.jsx("filter", { id: `label-${t.id}`, x: "-40%", y: "-40%", width: "180%", height: "180%", children: /* @__PURE__ */ o.jsx("feDropShadow", { dx: "0", dy: "0.5", stdDeviation: "0.7", floodColor: "#000000", floodOpacity: "0.7" }) })
|
|
1517
1530
|
] }),
|
|
1518
|
-
|
|
1519
|
-
/* @__PURE__ */
|
|
1520
|
-
/* @__PURE__ */
|
|
1521
|
-
|
|
1531
|
+
C ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
1532
|
+
/* @__PURE__ */ o.jsx(bt, { uid: W, style: g }),
|
|
1533
|
+
/* @__PURE__ */ o.jsx(
|
|
1534
|
+
xe,
|
|
1522
1535
|
{
|
|
1523
|
-
style:
|
|
1524
|
-
rect: { x: 0, y: 0, width:
|
|
1536
|
+
style: g,
|
|
1537
|
+
rect: { x: 0, y: 0, width: O.width, height: O.height },
|
|
1525
1538
|
className: ""
|
|
1526
1539
|
}
|
|
1527
1540
|
)
|
|
1528
|
-
] }) : /* @__PURE__ */
|
|
1529
|
-
/* @__PURE__ */
|
|
1530
|
-
/* @__PURE__ */
|
|
1541
|
+
] }) : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
1542
|
+
/* @__PURE__ */ o.jsx("rect", { width: "100%", height: "100%", fill: _ ? A : `url(#bg-${t.id})` }),
|
|
1543
|
+
/* @__PURE__ */ o.jsx("rect", { width: "100%", height: "100%", fill: `url(#grid-${t.id})`, opacity: "0.5" })
|
|
1531
1544
|
] }),
|
|
1532
|
-
/* @__PURE__ */
|
|
1533
|
-
const
|
|
1534
|
-
return /* @__PURE__ */
|
|
1545
|
+
/* @__PURE__ */ o.jsx("g", { transform: `translate(${f.x}, ${f.y})`, children: E.map((w, e) => {
|
|
1546
|
+
const p = K.filter((v) => v.tier === e), T = q.has(e), R = y && (H === e || H === null && M === null && Y === e), Q = y && (H !== null || Y !== null || M !== null), tt = M?.tier === e, z = Q && !R && !tt, Z = T ? 0 : 60, et = T ? 1 : 0, st = R && x ? { x: 10, y: -34 } : { x: 0, y: 0 }, Ht = R ? 1.03 : 1, ht = k(d.width / 2, d.depth / 2, w.elevation), vt = w.offset || { x: 0, y: 0 };
|
|
1547
|
+
return /* @__PURE__ */ o.jsxs(
|
|
1535
1548
|
"g",
|
|
1536
1549
|
{
|
|
1537
|
-
"data-tier":
|
|
1538
|
-
onMouseEnter: () =>
|
|
1539
|
-
onMouseLeave: () =>
|
|
1540
|
-
onClick: (
|
|
1541
|
-
|
|
1550
|
+
"data-tier": e,
|
|
1551
|
+
onMouseEnter: () => y && V(e),
|
|
1552
|
+
onMouseLeave: () => y && V(null),
|
|
1553
|
+
onClick: (v) => {
|
|
1554
|
+
y && (v.stopPropagation(), D(null), F((B) => B === e ? null : e), l?.(e));
|
|
1542
1555
|
},
|
|
1543
1556
|
style: {
|
|
1544
|
-
transform: `translate(${vt.x +
|
|
1557
|
+
transform: `translate(${vt.x + st.x}px, ${vt.y + st.y}px) translate(${ht.screenX}px, ${ht.screenY + Z}px) scale(${Ht}) translate(${-ht.screenX}px, ${-ht.screenY}px)`,
|
|
1545
1558
|
transition: "transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease-out",
|
|
1546
|
-
opacity:
|
|
1547
|
-
filter:
|
|
1548
|
-
cursor:
|
|
1559
|
+
opacity: et * (z ? 0.35 : 1),
|
|
1560
|
+
filter: R ? `url(#glow-${t.id})` : "none",
|
|
1561
|
+
cursor: y ? "pointer" : "default"
|
|
1549
1562
|
},
|
|
1550
1563
|
children: [
|
|
1551
|
-
|
|
1552
|
-
|
|
1564
|
+
C ? /* @__PURE__ */ o.jsx(
|
|
1565
|
+
$o,
|
|
1553
1566
|
{
|
|
1554
|
-
width:
|
|
1555
|
-
depth:
|
|
1556
|
-
elevation:
|
|
1557
|
-
ink:
|
|
1558
|
-
isGround:
|
|
1567
|
+
width: d.width,
|
|
1568
|
+
depth: d.depth,
|
|
1569
|
+
elevation: e === 0 ? -2 : w.elevation,
|
|
1570
|
+
ink: e === 0 ? g.ink.line : g.ink.hidden,
|
|
1571
|
+
isGround: e === 0
|
|
1559
1572
|
}
|
|
1560
|
-
) : /* @__PURE__ */
|
|
1561
|
-
|
|
1573
|
+
) : /* @__PURE__ */ o.jsx(
|
|
1574
|
+
mo,
|
|
1562
1575
|
{
|
|
1563
|
-
width:
|
|
1564
|
-
depth:
|
|
1565
|
-
elevation:
|
|
1566
|
-
color:
|
|
1567
|
-
opacity:
|
|
1568
|
-
borderColor:
|
|
1569
|
-
theme:
|
|
1570
|
-
isGround:
|
|
1576
|
+
width: d.width,
|
|
1577
|
+
depth: d.depth,
|
|
1578
|
+
elevation: e === 0 ? -2 : w.elevation,
|
|
1579
|
+
color: w.floorColor || (c === "dark" ? "#0f172a" : "#f8fafc"),
|
|
1580
|
+
opacity: w.floorOpacity || (e === 0 ? 0.95 : 0.5),
|
|
1581
|
+
borderColor: w.borderColor,
|
|
1582
|
+
theme: c,
|
|
1583
|
+
isGround: e === 0
|
|
1571
1584
|
}
|
|
1572
1585
|
),
|
|
1573
|
-
|
|
1574
|
-
const
|
|
1575
|
-
return /* @__PURE__ */
|
|
1576
|
-
|
|
1586
|
+
C && p.map((v, B) => {
|
|
1587
|
+
const at = w.elevation + 5, nt = k(v.x, v.y, at), U = Ct(v.width, v.depth, v.height, nt.screenX, nt.screenY), X = M?.tier === e && M?.index === B, ot = y && M !== null && !X;
|
|
1588
|
+
return /* @__PURE__ */ o.jsx(
|
|
1589
|
+
po,
|
|
1577
1590
|
{
|
|
1578
|
-
uid:
|
|
1579
|
-
style:
|
|
1580
|
-
box:
|
|
1581
|
-
color:
|
|
1582
|
-
tag:
|
|
1591
|
+
uid: W,
|
|
1592
|
+
style: g,
|
|
1593
|
+
box: U,
|
|
1594
|
+
color: v.color,
|
|
1595
|
+
tag: S.get(h.indexOf(v)),
|
|
1583
1596
|
selected: X,
|
|
1584
|
-
opacity: (
|
|
1585
|
-
onClick:
|
|
1586
|
-
if (
|
|
1597
|
+
opacity: (v.opacity ?? 1) * (ot ? 0.3 : 1),
|
|
1598
|
+
onClick: y ? () => {
|
|
1599
|
+
if (F(null), D((it) => it && it.tier === e && it.index === B ? null : { tier: e, index: B }), i?.(v, { tier: e, index: B }), v.link)
|
|
1587
1600
|
try {
|
|
1588
|
-
window.open(
|
|
1601
|
+
window.open(v.link, "_blank");
|
|
1589
1602
|
} catch {
|
|
1590
1603
|
}
|
|
1591
1604
|
} : void 0
|
|
@@ -1593,95 +1606,95 @@ function vo({ config: t, options: e = {}, className: s, style: a, onNodeClick: i
|
|
|
1593
1606
|
`tech-${B}`
|
|
1594
1607
|
);
|
|
1595
1608
|
}),
|
|
1596
|
-
|
|
1597
|
-
const
|
|
1598
|
-
return /* @__PURE__ */
|
|
1599
|
-
|
|
1609
|
+
C && u && p.map((v, B) => {
|
|
1610
|
+
const at = w.elevation + 5, nt = k(v.x, v.y, at), U = Ct(v.width, v.depth, v.height, nt.screenX, nt.screenY), X = M?.tier === e && M?.index === B, ot = y && M !== null && !X;
|
|
1611
|
+
return /* @__PURE__ */ o.jsx(
|
|
1612
|
+
uo,
|
|
1600
1613
|
{
|
|
1601
|
-
style:
|
|
1602
|
-
box:
|
|
1603
|
-
name:
|
|
1614
|
+
style: g,
|
|
1615
|
+
box: U,
|
|
1616
|
+
name: v.label,
|
|
1604
1617
|
selected: X,
|
|
1605
1618
|
opacity: ot ? 0.3 : 1
|
|
1606
1619
|
},
|
|
1607
1620
|
`tech-label-${B}`
|
|
1608
1621
|
);
|
|
1609
1622
|
}),
|
|
1610
|
-
!
|
|
1611
|
-
const
|
|
1612
|
-
return /* @__PURE__ */
|
|
1623
|
+
!C && p.map((v, B) => {
|
|
1624
|
+
const at = w.elevation + 5, nt = k(v.x, v.y, at), U = rt(v.width, v.depth, v.height, nt.screenX, nt.screenY, j), X = $[v.color] || $.slate, ot = M?.tier === e && M?.index === B, it = y && M !== null && !ot, _t = k(v.x - 3, v.y - 3, w.elevation), Ut = rt(v.width + 6, v.depth + 6, 0, _t.screenX, _t.screenY, j).top;
|
|
1625
|
+
return /* @__PURE__ */ o.jsxs(
|
|
1613
1626
|
"g",
|
|
1614
1627
|
{
|
|
1615
|
-
"data-node": `${
|
|
1616
|
-
opacity: (
|
|
1617
|
-
onClick:
|
|
1618
|
-
if (
|
|
1628
|
+
"data-node": `${e}-${B}`,
|
|
1629
|
+
opacity: (v.opacity ?? 1) * (it ? 0.3 : 1),
|
|
1630
|
+
onClick: y ? (G) => {
|
|
1631
|
+
if (G.stopPropagation(), F(null), D((J) => J && J.tier === e && J.index === B ? null : { tier: e, index: B }), i?.(v, { tier: e, index: B }), v.link)
|
|
1619
1632
|
try {
|
|
1620
|
-
window.open(
|
|
1633
|
+
window.open(v.link, "_blank");
|
|
1621
1634
|
} catch {
|
|
1622
1635
|
}
|
|
1623
1636
|
} : void 0,
|
|
1624
|
-
style: { cursor:
|
|
1637
|
+
style: { cursor: y ? "pointer" : "default", transition: "opacity 0.3s ease-out" },
|
|
1625
1638
|
children: [
|
|
1626
|
-
/* @__PURE__ */
|
|
1627
|
-
|
|
1639
|
+
/* @__PURE__ */ o.jsx("path", { d: Ut, fill: "#000000", opacity: 0.3, filter: `url(#contact-${t.id})` }),
|
|
1640
|
+
U.cornerBackRight?.map((G, J) => /* @__PURE__ */ o.jsx(
|
|
1628
1641
|
"path",
|
|
1629
1642
|
{
|
|
1630
|
-
d:
|
|
1631
|
-
fill:
|
|
1643
|
+
d: G.path,
|
|
1644
|
+
fill: yt(X.front, X.side, G.intensity)
|
|
1632
1645
|
},
|
|
1633
|
-
`cbr-${
|
|
1646
|
+
`cbr-${J}`
|
|
1634
1647
|
)),
|
|
1635
|
-
|
|
1648
|
+
U.cornerBackLeft?.map((G, J) => /* @__PURE__ */ o.jsx(
|
|
1636
1649
|
"path",
|
|
1637
1650
|
{
|
|
1638
|
-
d:
|
|
1639
|
-
fill:
|
|
1651
|
+
d: G.path,
|
|
1652
|
+
fill: yt(X.side, X.front, G.intensity)
|
|
1640
1653
|
},
|
|
1641
|
-
`cbl-${
|
|
1654
|
+
`cbl-${J}`
|
|
1642
1655
|
)),
|
|
1643
|
-
/* @__PURE__ */
|
|
1644
|
-
/* @__PURE__ */
|
|
1645
|
-
/* @__PURE__ */
|
|
1646
|
-
/* @__PURE__ */
|
|
1647
|
-
|
|
1656
|
+
/* @__PURE__ */ o.jsx("path", { d: U.left, fill: X.side }),
|
|
1657
|
+
/* @__PURE__ */ o.jsx("path", { d: U.left, fill: `url(#${_ ? "print" : "shade"}-${t.id})` }),
|
|
1658
|
+
/* @__PURE__ */ o.jsx("path", { d: U.right, fill: X.front }),
|
|
1659
|
+
/* @__PURE__ */ o.jsx("path", { d: U.right, fill: `url(#${_ ? "print" : "shade"}-${t.id})` }),
|
|
1660
|
+
U.cornerFrontRight?.map((G, J) => /* @__PURE__ */ o.jsx(
|
|
1648
1661
|
"path",
|
|
1649
1662
|
{
|
|
1650
|
-
d:
|
|
1651
|
-
fill:
|
|
1663
|
+
d: G.path,
|
|
1664
|
+
fill: yt(X.front, X.side, G.intensity)
|
|
1652
1665
|
},
|
|
1653
|
-
`cfr-${
|
|
1666
|
+
`cfr-${J}`
|
|
1654
1667
|
)),
|
|
1655
|
-
|
|
1668
|
+
U.cornerFrontLeft?.map((G, J) => /* @__PURE__ */ o.jsx(
|
|
1656
1669
|
"path",
|
|
1657
1670
|
{
|
|
1658
|
-
d:
|
|
1659
|
-
fill:
|
|
1671
|
+
d: G.path,
|
|
1672
|
+
fill: yt(X.front, X.side, G.intensity)
|
|
1660
1673
|
},
|
|
1661
|
-
`cfl-${
|
|
1674
|
+
`cfl-${J}`
|
|
1662
1675
|
)),
|
|
1663
|
-
/* @__PURE__ */
|
|
1664
|
-
/* @__PURE__ */
|
|
1665
|
-
/* @__PURE__ */
|
|
1676
|
+
/* @__PURE__ */ o.jsx("path", { d: U.top, fill: X.top }),
|
|
1677
|
+
/* @__PURE__ */ o.jsx("path", { d: U.top, fill: `url(#${_ ? "print" : "sheen"}-${t.id})` }),
|
|
1678
|
+
/* @__PURE__ */ o.jsx(
|
|
1666
1679
|
"path",
|
|
1667
1680
|
{
|
|
1668
|
-
d:
|
|
1681
|
+
d: U.top,
|
|
1669
1682
|
fill: "none",
|
|
1670
1683
|
stroke: ot ? "#ffffff" : "rgba(255,255,255,0.28)",
|
|
1671
1684
|
strokeWidth: ot ? 1.4 : 0.75,
|
|
1672
1685
|
strokeLinejoin: "round"
|
|
1673
1686
|
}
|
|
1674
1687
|
),
|
|
1675
|
-
|
|
1676
|
-
|
|
1688
|
+
u && v.label && /* @__PURE__ */ o.jsx(
|
|
1689
|
+
ko,
|
|
1677
1690
|
{
|
|
1678
|
-
x:
|
|
1679
|
-
y:
|
|
1680
|
-
z:
|
|
1681
|
-
fontSize:
|
|
1682
|
-
color:
|
|
1683
|
-
shadow: `url(#label-${t.id})`,
|
|
1684
|
-
children:
|
|
1691
|
+
x: v.x + v.width / 2,
|
|
1692
|
+
y: v.y + v.depth / 2,
|
|
1693
|
+
z: at + v.height + 2,
|
|
1694
|
+
fontSize: v.width > 70 ? 9 : 8,
|
|
1695
|
+
color: P,
|
|
1696
|
+
shadow: _ ? void 0 : `url(#label-${t.id})`,
|
|
1697
|
+
children: v.label
|
|
1685
1698
|
}
|
|
1686
1699
|
)
|
|
1687
1700
|
]
|
|
@@ -1689,38 +1702,38 @@ function vo({ config: t, options: e = {}, className: s, style: a, onNodeClick: i
|
|
|
1689
1702
|
B
|
|
1690
1703
|
);
|
|
1691
1704
|
}),
|
|
1692
|
-
|
|
1705
|
+
u && /* @__PURE__ */ o.jsx(
|
|
1693
1706
|
"text",
|
|
1694
1707
|
{
|
|
1695
|
-
x: k(-25,
|
|
1696
|
-
y: k(-25,
|
|
1697
|
-
fill:
|
|
1708
|
+
x: k(-25, d.depth / 2, w.elevation + 15).screenX - 35,
|
|
1709
|
+
y: k(-25, d.depth / 2, w.elevation + 15).screenY,
|
|
1710
|
+
fill: I,
|
|
1698
1711
|
fontSize: 9,
|
|
1699
1712
|
fontWeight: 500,
|
|
1700
|
-
fontFamily:
|
|
1701
|
-
opacity:
|
|
1702
|
-
style: { letterSpacing: "0.05em", textTransform:
|
|
1703
|
-
children:
|
|
1713
|
+
fontFamily: Xt,
|
|
1714
|
+
opacity: C ? 0.9 : 0.6,
|
|
1715
|
+
style: { letterSpacing: "0.05em", textTransform: C ? "uppercase" : "none" },
|
|
1716
|
+
children: w.name
|
|
1704
1717
|
}
|
|
1705
1718
|
)
|
|
1706
1719
|
]
|
|
1707
1720
|
},
|
|
1708
|
-
|
|
1721
|
+
e
|
|
1709
1722
|
);
|
|
1710
1723
|
}) }),
|
|
1711
|
-
|
|
1712
|
-
|
|
1724
|
+
C && /* @__PURE__ */ o.jsx(
|
|
1725
|
+
me,
|
|
1713
1726
|
{
|
|
1714
|
-
style:
|
|
1715
|
-
plate:
|
|
1716
|
-
rows:
|
|
1717
|
-
n:
|
|
1718
|
-
name:
|
|
1719
|
-
subtitle:
|
|
1720
|
-
color:
|
|
1721
|
-
})).sort((
|
|
1727
|
+
style: g,
|
|
1728
|
+
plate: L,
|
|
1729
|
+
rows: h.map((w, e) => ({
|
|
1730
|
+
n: S.get(e) || e + 1,
|
|
1731
|
+
name: w.label,
|
|
1732
|
+
subtitle: E[w.tier]?.name,
|
|
1733
|
+
color: w.color
|
|
1734
|
+
})).sort((w, e) => w.n - e.n),
|
|
1722
1735
|
title: t.title,
|
|
1723
|
-
tally: `${String(
|
|
1736
|
+
tally: `${String(h.length).padStart(2, "0")} CMP / ${String(E.length).padStart(2, "0")} TIER`,
|
|
1724
1737
|
className: ""
|
|
1725
1738
|
}
|
|
1726
1739
|
)
|
|
@@ -1728,12 +1741,12 @@ function vo({ config: t, options: e = {}, className: s, style: a, onNodeClick: i
|
|
|
1728
1741
|
}
|
|
1729
1742
|
) });
|
|
1730
1743
|
}
|
|
1731
|
-
function
|
|
1732
|
-
const l = k(0, 0, s),
|
|
1733
|
-
return /* @__PURE__ */
|
|
1744
|
+
function $o({ width: t, depth: n, elevation: s, ink: a, isGround: i }) {
|
|
1745
|
+
const l = k(0, 0, s), y = rt(t, n, 0, l.screenX, l.screenY).top;
|
|
1746
|
+
return /* @__PURE__ */ o.jsx(
|
|
1734
1747
|
"path",
|
|
1735
1748
|
{
|
|
1736
|
-
d:
|
|
1749
|
+
d: y,
|
|
1737
1750
|
fill: "none",
|
|
1738
1751
|
stroke: a,
|
|
1739
1752
|
strokeWidth: i ? 1 : 0.7,
|
|
@@ -1742,7 +1755,7 @@ function yo({ width: t, depth: e, elevation: s, ink: a, isGround: i }) {
|
|
|
1742
1755
|
}
|
|
1743
1756
|
);
|
|
1744
1757
|
}
|
|
1745
|
-
const At = '"JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace',
|
|
1758
|
+
const At = '"JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace', go = {
|
|
1746
1759
|
blue: { top: "#3b82f6", side: "#2563eb", front: "#1d4ed8" },
|
|
1747
1760
|
violet: { top: "#8b5cf6", side: "#7c3aed", front: "#6d28d9" },
|
|
1748
1761
|
cyan: { top: "#06b6d4", side: "#0891b2", front: "#0e7490" },
|
|
@@ -1750,7 +1763,7 @@ const At = '"JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace', ko =
|
|
|
1750
1763
|
amber: { top: "#f59e0b", side: "#d97706", front: "#b45309" },
|
|
1751
1764
|
rose: { top: "#f43f5e", side: "#e11d48", front: "#be123c" },
|
|
1752
1765
|
slate: { top: "#475569", side: "#334155", front: "#1e293b" }
|
|
1753
|
-
},
|
|
1766
|
+
}, bo = {
|
|
1754
1767
|
blue: { top: "#93c5fd", side: "#60a5fa", front: "#3b82f6" },
|
|
1755
1768
|
violet: { top: "#c4b5fd", side: "#a78bfa", front: "#8b5cf6" },
|
|
1756
1769
|
cyan: { top: "#67e8f9", side: "#22d3ee", front: "#06b6d4" },
|
|
@@ -1759,77 +1772,77 @@ const At = '"JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace', ko =
|
|
|
1759
1772
|
rose: { top: "#fda4af", side: "#fb7185", front: "#f43f5e" },
|
|
1760
1773
|
slate: { top: "#e2e8f0", side: "#cbd5e1", front: "#94a3b8" }
|
|
1761
1774
|
};
|
|
1762
|
-
function
|
|
1775
|
+
function xt(t, n, s) {
|
|
1763
1776
|
const a = (x) => {
|
|
1764
|
-
const
|
|
1777
|
+
const c = x.replace("#", "");
|
|
1765
1778
|
return {
|
|
1766
|
-
r: parseInt(
|
|
1767
|
-
g: parseInt(
|
|
1768
|
-
b: parseInt(
|
|
1779
|
+
r: parseInt(c.substring(0, 2), 16),
|
|
1780
|
+
g: parseInt(c.substring(2, 4), 16),
|
|
1781
|
+
b: parseInt(c.substring(4, 6), 16)
|
|
1769
1782
|
};
|
|
1770
|
-
}, i = a(t), l = a(
|
|
1771
|
-
return `rgb(${
|
|
1783
|
+
}, i = a(t), l = a(n), y = Math.round(i.r + (l.r - i.r) * s), m = Math.round(i.g + (l.g - i.g) * s), u = Math.round(i.b + (l.b - i.b) * s);
|
|
1784
|
+
return `rgb(${y},${m},${u})`;
|
|
1772
1785
|
}
|
|
1773
|
-
function
|
|
1774
|
-
const { theme:
|
|
1775
|
-
const
|
|
1776
|
-
return
|
|
1786
|
+
function vo(t) {
|
|
1787
|
+
const { theme: n, canvas: s, origin: a, tiers: i, floorSize: l, nodes: y, cornerRadius: m = 0 } = t, u = t.material === "retro-print", x = u ? Rt : n === "dark" ? go : bo, c = u ? n === "dark" ? "#202624" : "#f4efe6" : n === "dark" ? "#0f172a" : "#fafafa", O = u ? "#202a29" : n === "dark" ? "#e2e8f0" : "#1e293b", f = u ? n === "dark" ? "#c5c4b7" : "#505b56" : n === "dark" ? "#64748b" : "#94a3b8", E = [...y].sort((h, j) => {
|
|
1788
|
+
const g = i[h.tier]?.elevation || 0, C = i[j.tier]?.elevation || 0;
|
|
1789
|
+
return g !== C ? g - C : j.x + j.width + (j.y + j.depth) - (h.x + h.width + (h.y + h.depth));
|
|
1777
1790
|
});
|
|
1778
|
-
let
|
|
1779
|
-
|
|
1791
|
+
let d = `<svg xmlns="http://www.w3.org/2000/svg" width="${s.width}" height="${s.height}" style="background:${c}">`;
|
|
1792
|
+
d += `<defs>${u ? `<pattern id="print" width="64" height="64" patternUnits="userSpaceOnUse">${Pt.map((h) => `<circle cx="${h.x}" cy="${h.y}" r="${h.r}" fill="#26362e" opacity="0.32"/>`).join("")}</pattern>` : ""}
|
|
1780
1793
|
<pattern id="grid" width="24" height="24" patternUnits="userSpaceOnUse">
|
|
1781
|
-
<circle cx="12" cy="12" r="0.5" fill="${
|
|
1794
|
+
<circle cx="12" cy="12" r="0.5" fill="${n === "dark" ? "#1e293b" : "#e2e8f0"}"/>
|
|
1782
1795
|
</pattern>
|
|
1783
1796
|
<radialGradient id="bg" cx="48%" cy="34%" r="82%">
|
|
1784
|
-
<stop offset="0%" stop-color="${
|
|
1785
|
-
<stop offset="55%" stop-color="${
|
|
1786
|
-
<stop offset="100%" stop-color="${
|
|
1797
|
+
<stop offset="0%" stop-color="${n === "dark" ? "#16203a" : "#ffffff"}"/>
|
|
1798
|
+
<stop offset="55%" stop-color="${n === "dark" ? "#0e1526" : "#f2f5f9"}"/>
|
|
1799
|
+
<stop offset="100%" stop-color="${n === "dark" ? "#080d18" : "#e7ecf2"}"/>
|
|
1787
1800
|
</radialGradient>
|
|
1788
1801
|
<filter id="contact" x="-60%" y="-60%" width="220%" height="220%"><feGaussianBlur stdDeviation="5"/></filter>
|
|
1789
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>
|
|
1790
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>
|
|
1791
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>
|
|
1792
|
-
</defs>`,
|
|
1793
|
-
for (let
|
|
1794
|
-
const
|
|
1795
|
-
|
|
1796
|
-
const
|
|
1797
|
-
|
|
1798
|
-
for (const
|
|
1799
|
-
const
|
|
1800
|
-
|
|
1801
|
-
const
|
|
1802
|
-
if (
|
|
1803
|
-
for (const M of
|
|
1804
|
-
|
|
1805
|
-
if (
|
|
1806
|
-
for (const M of
|
|
1807
|
-
|
|
1808
|
-
if (
|
|
1809
|
-
for (const M of
|
|
1810
|
-
|
|
1811
|
-
if (
|
|
1812
|
-
for (const M of
|
|
1813
|
-
|
|
1814
|
-
if (
|
|
1815
|
-
const M = k(
|
|
1816
|
-
|
|
1805
|
+
</defs>`, d += `<rect width="100%" height="100%" fill="${u ? c : "url(#bg)"}"/>`, d += '<rect width="100%" height="100%" fill="url(#grid)" opacity="0.5"/>', d += `<g transform="translate(${a.x},${a.y})">`;
|
|
1806
|
+
for (let h = 0; h < i.length; h++) {
|
|
1807
|
+
const j = i[h], g = E.filter((S) => S.tier === h), C = j.offset || { x: 0, y: 0 };
|
|
1808
|
+
d += `<g transform="translate(${C.x},${C.y})">`;
|
|
1809
|
+
const W = h === 0 ? 8 : 2, _ = rt(l.width, l.depth, W, 0, 0), $ = k(0, 0, h === 0 ? -2 : j.elevation), A = j.floorColor || (n === "dark" ? "#0f172a" : "#f8fafc"), P = j.floorOpacity || (h === 0 ? 0.95 : 0.5);
|
|
1810
|
+
d += `<g transform="translate(${$.screenX},${$.screenY})">`, h === 0 && (d += `<g transform="translate(4,4)" opacity="0.2"><path d="${_.top}" fill="#000"/></g>`), d += `<path d="${_.top}" fill="${A}" opacity="${P}"/>`, h === 0 && (d += `<path d="${_.left}" fill="${n === "dark" ? "#0f172a" : "#cbd5e1"}" opacity="0.8"/>`, d += `<path d="${_.right}" fill="${n === "dark" ? "#1e293b" : "#94a3b8"}" opacity="0.8"/>`), d += `<path d="${_.top}" fill="none" stroke="${j.borderColor || (n === "dark" ? "#475569" : "#94a3b8")}" stroke-width="${h === 0 ? 1.5 : 0.75}" opacity="${h === 0 ? 1 : 0.6}"/>`, d += "</g>";
|
|
1811
|
+
for (const S of g) {
|
|
1812
|
+
const L = j.elevation + 5, q = k(S.x, S.y, L), N = rt(S.width, S.depth, S.height, q.screenX, q.screenY, m), Y = x[S.color] || x.slate, V = S.opacity ?? 1;
|
|
1813
|
+
d += `<g opacity="${V}">`;
|
|
1814
|
+
const H = k(S.x - 3, S.y - 3, j.elevation), F = rt(S.width + 6, S.depth + 6, 0, H.screenX, H.screenY, m).top;
|
|
1815
|
+
if (d += `<path d="${F}" fill="#000000" opacity="0.3" filter="url(#contact)"/>`, N.cornerBackRight)
|
|
1816
|
+
for (const M of N.cornerBackRight)
|
|
1817
|
+
d += `<path d="${M.path}" fill="${xt(Y.front, Y.side, M.intensity)}"/>`;
|
|
1818
|
+
if (N.cornerBackLeft)
|
|
1819
|
+
for (const M of N.cornerBackLeft)
|
|
1820
|
+
d += `<path d="${M.path}" fill="${xt(Y.side, Y.front, M.intensity)}"/>`;
|
|
1821
|
+
if (d += `<path d="${N.left}" fill="${Y.side}"/>`, d += `<path d="${N.left}" fill="url(#${u ? "print" : "shade"})"/>`, d += `<path d="${N.right}" fill="${Y.front}"/>`, d += `<path d="${N.right}" fill="url(#${u ? "print" : "shade"})"/>`, N.cornerFrontRight)
|
|
1822
|
+
for (const M of N.cornerFrontRight)
|
|
1823
|
+
d += `<path d="${M.path}" fill="${xt(Y.front, Y.side, M.intensity)}"/>`;
|
|
1824
|
+
if (N.cornerFrontLeft)
|
|
1825
|
+
for (const M of N.cornerFrontLeft)
|
|
1826
|
+
d += `<path d="${M.path}" fill="${xt(Y.front, Y.side, M.intensity)}"/>`;
|
|
1827
|
+
if (d += `<path d="${N.top}" fill="${Y.top}"/>`, d += `<path d="${N.top}" fill="url(#${u ? "print" : "sheen"})"/>`, d += `<path d="${N.top}" fill="none" stroke="rgba(255,255,255,0.28)" stroke-width="0.75" stroke-linejoin="round"/>`, S.label) {
|
|
1828
|
+
const M = k(S.x + S.width / 2, S.y + S.depth / 2, L + S.height + 2), D = S.width > 70 ? 9 : 8;
|
|
1829
|
+
d += `<g transform="translate(${M.screenX},${M.screenY})" filter="${u ? "none" : "url(#labelshadow)"}">`, d += '<g transform="matrix(0.866,-0.5,0.866,0.5,0,0)">', d += `<text x="0" y="0" text-anchor="middle" fill="${O}" font-size="${D}" font-weight="600" font-family='${At}' style="text-transform:uppercase;letter-spacing:0.06em">${S.label}</text>`, d += "</g></g>";
|
|
1817
1830
|
}
|
|
1818
|
-
|
|
1831
|
+
d += "</g>";
|
|
1819
1832
|
}
|
|
1820
|
-
const
|
|
1821
|
-
|
|
1833
|
+
const I = k(-25, l.depth / 2, j.elevation + 15);
|
|
1834
|
+
d += `<text x="${I.screenX - 35}" y="${I.screenY}" fill="${f}" font-size="9" font-weight="500" font-family='${At}' opacity="0.6" style="letter-spacing:0.05em">${j.name}</text>`, d += "</g>";
|
|
1822
1835
|
}
|
|
1823
|
-
return
|
|
1836
|
+
return d += "</g></svg>", d;
|
|
1824
1837
|
}
|
|
1825
|
-
function
|
|
1826
|
-
t.innerHTML =
|
|
1838
|
+
function wo(t, n) {
|
|
1839
|
+
t.innerHTML = vo(n);
|
|
1827
1840
|
}
|
|
1828
1841
|
export {
|
|
1829
|
-
|
|
1830
|
-
|
|
1842
|
+
Mo as ArcDiagram,
|
|
1843
|
+
jo as getColorShading,
|
|
1831
1844
|
rt as isoBox,
|
|
1832
1845
|
k as isoToScreen,
|
|
1833
|
-
|
|
1834
|
-
|
|
1846
|
+
wo as renderToElement,
|
|
1847
|
+
vo as renderToString
|
|
1835
1848
|
};
|