@bemedev/mind-flow 1.3.0 → 1.4.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/lib/index.cjs.js +1 -1
- package/lib/index.es.js +721 -819
- package/lib/output.css +1 -1
- package/lib/server.cjs.js +136 -314
- package/lib/server.es.js +138 -316
- package/lib/ui/Flow.d.ts +3 -3
- package/lib/ui/Flow.d.ts.map +1 -1
- package/lib/ui/components/EditPanel.d.ts.map +1 -1
- package/lib/ui/components/FlowChart.d.ts.map +1 -1
- package/lib/ui/components/FlowChart.types.d.ts +8 -8
- package/lib/ui/components/NodeComponent.d.ts.map +1 -1
- package/lib/ui/components/Panels.d.ts.map +1 -1
- package/package.json +5 -4
- package/src/ui/Flow.tsx +7 -28
- package/src/ui/components/EditPanel.tsx +6 -1
- package/src/ui/components/FlowChart.tsx +65 -23
- package/src/ui/components/FlowChart.types.ts +8 -8
- package/src/ui/components/NodeComponent.tsx +3 -6
- package/src/ui/components/Panels.tsx +38 -15
package/lib/index.es.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { isDefined as e, toArray as t, type as n } from "@bemedev/app/bemedev";
|
|
2
|
-
import { Dynamic as r, addEventListener as i, classList as a, className as o, createComponent as s, delegateEvents as c, effect as l, getNextElement as u, getNextMarker as d, insert as f, memo as p, mergeProps as m, runHydrationEvents as h, setAttribute as g, setStyleProperty as _,
|
|
3
|
-
import { createState as
|
|
4
|
-
import { For as
|
|
5
|
-
import { createMachine as
|
|
6
|
-
import { DragDropProvider as
|
|
2
|
+
import { Dynamic as r, addEventListener as i, classList as a, className as o, createComponent as s, delegateEvents as c, effect as l, getNextElement as u, getNextMarker as d, insert as f, memo as p, mergeProps as m, runHydrationEvents as h, setAttribute as g, setStyleProperty as _, style as v, template as y, use as b } from "solid-js/web";
|
|
3
|
+
import { createState as x } from "@bemedev/app-solidjs";
|
|
4
|
+
import { For as S, Show as C, createComponent as w, createContext as T, createEffect as E, createSignal as D, on as O, onCleanup as k, onMount as A, useContext as j } from "solid-js";
|
|
5
|
+
import { createMachine as M, deepEqual as N, interpret as P, toArray as ee } from "@bemedev/app";
|
|
6
|
+
import { DragDropProvider as F, DragDropSensors as te, DragOverlay as ne, createDraggable as re, useDragDropContext as ie } from "@thisbeyond/solid-dnd";
|
|
7
7
|
//#region src/services/main.machine.data.ts
|
|
8
|
-
var
|
|
8
|
+
var I = 100, L = {
|
|
9
9
|
width: 192,
|
|
10
10
|
height: 50
|
|
11
|
-
},
|
|
12
|
-
x:
|
|
11
|
+
}, ae = L.width, oe = L.height, R = { content: "<Nouveau nœud>" }, se = 1.5, ce = 12, le = 6, ue = 12, de = 18, fe = 18, pe = 10.5, me = -10.5, he = 18, z = {
|
|
12
|
+
x: me,
|
|
13
13
|
y: 18
|
|
14
|
-
},
|
|
14
|
+
}, ge = {
|
|
15
15
|
WIDTH: 5e3,
|
|
16
16
|
HEIGHT: 3500
|
|
17
|
-
},
|
|
18
|
-
x: e +
|
|
17
|
+
}, _e = (e = 0) => ({
|
|
18
|
+
x: e + pe,
|
|
19
19
|
y: 18
|
|
20
|
-
}),
|
|
20
|
+
}), ve = 30, ye = 5, B = {
|
|
21
21
|
horizontal: 55,
|
|
22
22
|
vertical: 40
|
|
23
|
-
},
|
|
23
|
+
}, be = 5, xe = 3, Se = [{
|
|
24
24
|
id: "node-0",
|
|
25
25
|
data: {
|
|
26
26
|
content: "Some text",
|
|
@@ -33,28 +33,28 @@ var se = 100, L = {
|
|
|
33
33
|
}], V = n({
|
|
34
34
|
x: "number",
|
|
35
35
|
y: "number"
|
|
36
|
-
}),
|
|
36
|
+
}), Ce = n(({ use: e }) => ({
|
|
37
37
|
input: e(V),
|
|
38
38
|
output: e(V)
|
|
39
|
-
})),
|
|
39
|
+
})), we = n({
|
|
40
40
|
from: "string",
|
|
41
41
|
to: "string"
|
|
42
|
-
}),
|
|
42
|
+
}), Te = n(({ union: e }) => e("string", "boolean", "number")), Ee = n(({ record: e, use: t }) => e(t(Te))), De = n(({ use: e }) => ({
|
|
43
43
|
position: e(V),
|
|
44
|
-
data: e(
|
|
45
|
-
})),
|
|
44
|
+
data: e(Ee)
|
|
45
|
+
})), Oe = we, ke = n(({ optional: e, use: t }) => ({
|
|
46
46
|
width: "number",
|
|
47
47
|
height: "number",
|
|
48
48
|
output: t(V),
|
|
49
49
|
input: e(t(V)),
|
|
50
50
|
inputOffset: e(t(V)),
|
|
51
51
|
outputOffset: e(t(V))
|
|
52
|
-
})),
|
|
52
|
+
})), Ae = n({
|
|
53
53
|
x0: "number",
|
|
54
54
|
y0: "number",
|
|
55
55
|
x1: "number",
|
|
56
56
|
y1: "number"
|
|
57
|
-
}),
|
|
57
|
+
}), je = n(({ intersection: e, use: t }) => e({ from: "string" }, t(Ae))), Me = n(({ optional: e }) => ({
|
|
58
58
|
self: {
|
|
59
59
|
left: "number",
|
|
60
60
|
top: "number",
|
|
@@ -67,7 +67,7 @@ var se = 100, L = {
|
|
|
67
67
|
height: "number",
|
|
68
68
|
width: "number"
|
|
69
69
|
})
|
|
70
|
-
})),
|
|
70
|
+
})), Ne = /* @__PURE__ */ "fill-transparent cursor-pointer relative stroke-[rgba(168,168,168,0.4)] stroke-3 stroke-[rgba(168,168,168,1)] stroke-4 z-100 stroke-[rgba(168,168,168,0.8)] pointer-events-all w-[100px] h-[100px] bg-white fill-white pointer-events-none absolute top-0 w-full h-full overflow-hidden overflow-auto h-[150vh] w-[2160px] bg-size-[30px_30px] flex flex-col cursor-grab rounded-md shadow-[1px_1px_11px_-6px_rgba(0,0,0,0.75)] select-none transition-[border,box-shadow] duration-200 ease-in-out hover:shadow-[2px_2px_12px_-6px_rgba(0,0,0,0.75)] draggable border border-[#e38c29] z-[100] border-[#e6d4be] z-[1] items-center justify-end -top-[30px] right-0 transition-all space-x-2 opacity-100 w-0 -right-3 opacity-0 w-6 h-6 fill-[#a11111] rounded-full size-6 bg-green-500 p-0.5 hover:bg-green-600 font-bold text-center overflow-visible bg-blue-500 text-white rounded-lg hover:bg-blue-600 justify-center p-3 border-b border-[#f0f0f0] cursor-default z-[-3] -left-[18px] bg-[#e38b29] w-3 h-3 my-3 -right-[18px] cursor-crosshair mt-3".split(" "), Pe = (e, t, n) => Math.min(Math.max(e, t), n), Fe = (e, t) => {
|
|
71
71
|
let n = T(void 0, t);
|
|
72
72
|
return [
|
|
73
73
|
(t) => w(n.Provider, {
|
|
@@ -77,22 +77,22 @@ var se = 100, L = {
|
|
|
77
77
|
}
|
|
78
78
|
}),
|
|
79
79
|
() => {
|
|
80
|
-
let e =
|
|
80
|
+
let e = j(n);
|
|
81
81
|
if (!e) throw Error("useContext must be used within a Provider");
|
|
82
82
|
return e;
|
|
83
83
|
},
|
|
84
84
|
n
|
|
85
85
|
];
|
|
86
|
-
},
|
|
86
|
+
}, Ie = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Le = (e = 21) => {
|
|
87
87
|
let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
|
|
88
|
-
for (; e--;) t +=
|
|
88
|
+
for (; e--;) t += Ie[n[e] & 63];
|
|
89
89
|
return t;
|
|
90
|
-
},
|
|
90
|
+
}, Re = (e, t) => `edge = ${e} => ${t}`, ze = (e) => `node-${e}`, Be = (e, t = {
|
|
91
91
|
width: L.width,
|
|
92
92
|
height: L.height,
|
|
93
93
|
inputOffset: z
|
|
94
94
|
}) => {
|
|
95
|
-
let n = t.width, r = t.height, i = t.outputOffset ??
|
|
95
|
+
let n = t.width, r = t.height, i = t.outputOffset ?? _e(n), a = t.inputOffset ?? z;
|
|
96
96
|
return {
|
|
97
97
|
width: n,
|
|
98
98
|
height: r,
|
|
@@ -107,7 +107,7 @@ var se = 100, L = {
|
|
|
107
107
|
outputOffset: i,
|
|
108
108
|
inputOffset: a
|
|
109
109
|
};
|
|
110
|
-
},
|
|
110
|
+
}, Ve = M({
|
|
111
111
|
initial: "idle",
|
|
112
112
|
on: { SET_BOARD: { actions: ["setBoard"] } },
|
|
113
113
|
states: {
|
|
@@ -193,11 +193,11 @@ var se = 100, L = {
|
|
|
193
193
|
}, {
|
|
194
194
|
eventsMap: n(({ intersection: e, use: t, array: n, optional: r }) => ({
|
|
195
195
|
CONFIGURE: {
|
|
196
|
-
nodes: n(e(t(
|
|
197
|
-
edges: n(e(t(
|
|
198
|
-
defaultData: r(t(
|
|
196
|
+
nodes: n(e(t(De), { id: "string" })),
|
|
197
|
+
edges: n(e(t(Oe), { id: "string" })),
|
|
198
|
+
defaultData: r(t(Ee))
|
|
199
199
|
},
|
|
200
|
-
SET_BOARD: t(
|
|
200
|
+
SET_BOARD: t(Me),
|
|
201
201
|
CONFIGURE_EMPTY: "never",
|
|
202
202
|
MOVE: {
|
|
203
203
|
id: "string",
|
|
@@ -217,7 +217,7 @@ var se = 100, L = {
|
|
|
217
217
|
DESELECT: "never",
|
|
218
218
|
EDIT: "string",
|
|
219
219
|
STOP_EDIT: "never",
|
|
220
|
-
ADD_EDGE: t(
|
|
220
|
+
ADD_EDGE: t(we),
|
|
221
221
|
START_NEW_EDGE: "string",
|
|
222
222
|
MOVE_NEW_EDGE: t(V),
|
|
223
223
|
CLEAR_NEW_EDGE: "never",
|
|
@@ -232,15 +232,15 @@ var se = 100, L = {
|
|
|
232
232
|
},
|
|
233
233
|
SET_NODE_DATA: {
|
|
234
234
|
id: "string",
|
|
235
|
-
data: t(
|
|
235
|
+
data: t(Ee)
|
|
236
236
|
}
|
|
237
237
|
})),
|
|
238
238
|
sync: !0,
|
|
239
239
|
pContext: n(({ union: e, optional: t, record: n, use: r, custom: i }) => ({
|
|
240
240
|
generatedId: e("string", "null"),
|
|
241
241
|
previousZoom: t("number"),
|
|
242
|
-
dimensions: n(r(
|
|
243
|
-
defaultData: t(r(
|
|
242
|
+
dimensions: n(r(ke)),
|
|
243
|
+
defaultData: t(r(Ee)),
|
|
244
244
|
getBoardPosition: i(),
|
|
245
245
|
clampPosition: i(),
|
|
246
246
|
calculateDimensions: i()
|
|
@@ -248,17 +248,17 @@ var se = 100, L = {
|
|
|
248
248
|
context: n(({ optional: e, use: t, array: n, record: r }) => ({
|
|
249
249
|
data: e({
|
|
250
250
|
nodes: n({
|
|
251
|
-
...t(
|
|
251
|
+
...t(De),
|
|
252
252
|
id: "string"
|
|
253
253
|
}),
|
|
254
254
|
edges: n({
|
|
255
|
-
...t(
|
|
255
|
+
...t(Oe),
|
|
256
256
|
id: "string"
|
|
257
257
|
})
|
|
258
258
|
}),
|
|
259
|
-
board: e(t(
|
|
260
|
-
edgesPositions: r(t(
|
|
261
|
-
newEdge: e(t(
|
|
259
|
+
board: e(t(Me)),
|
|
260
|
+
edgesPositions: r(t(Ae)),
|
|
261
|
+
newEdge: e(t(je)),
|
|
262
262
|
selected: e("string"),
|
|
263
263
|
editing: e("string"),
|
|
264
264
|
updatingUI: e("boolean"),
|
|
@@ -273,7 +273,7 @@ var se = 100, L = {
|
|
|
273
273
|
e.generatedId = null;
|
|
274
274
|
}), a({ CONFIGURE: ({ payload: { nodes: e, defaultData: t }, pContext: n }) => {
|
|
275
275
|
n.defaultData = t, e.forEach(({ id: e, position: t }) => {
|
|
276
|
-
n.dimensions[e] =
|
|
276
|
+
n.dimensions[e] = Be(t);
|
|
277
277
|
});
|
|
278
278
|
} })),
|
|
279
279
|
setNodeData: e("data.nodes", { SET_NODE_DATA: ({ context: { data: e }, payload: { id: t, data: n } }) => e?.nodes?.map((e) => e.id === t ? {
|
|
@@ -284,7 +284,7 @@ var se = 100, L = {
|
|
|
284
284
|
}
|
|
285
285
|
} : e) }),
|
|
286
286
|
setBoard: e("board", { SET_BOARD: ({ payload: e }) => e }),
|
|
287
|
-
generateID: a(({ pContext: e }) => e.generatedId =
|
|
287
|
+
generateID: a(({ pContext: e }) => e.generatedId = Le()),
|
|
288
288
|
select: e("selected", { SELECT: ({ payload: e }) => e }),
|
|
289
289
|
clearNewEdge: r("newEdge"),
|
|
290
290
|
deselect: n(r("selected"), r("editing")),
|
|
@@ -304,7 +304,7 @@ var se = 100, L = {
|
|
|
304
304
|
MOVE: ({ context: { data: e, edgesPositions: t }, payload: n, pContext: { dimensions: r } }) => {
|
|
305
305
|
let i = e?.edges, a = r[n.id];
|
|
306
306
|
if (!a) return;
|
|
307
|
-
let o = a.outputOffset ??
|
|
307
|
+
let o = a.outputOffset ?? _e(a.width), s = a.inputOffset ?? z, c = {
|
|
308
308
|
x: n.x + o.x,
|
|
309
309
|
y: n.y + o.y
|
|
310
310
|
}, l = {
|
|
@@ -320,7 +320,7 @@ var se = 100, L = {
|
|
|
320
320
|
let o = r[n.id], s = t[a];
|
|
321
321
|
if (!(!s || !o)) {
|
|
322
322
|
if (e === n.id) {
|
|
323
|
-
let e = o.outputOffset ??
|
|
323
|
+
let e = o.outputOffset ?? _e(o.width), t = n.x + e.x, r = n.y + e.y;
|
|
324
324
|
s.x0 = t, s.y0 = r, o.output = {
|
|
325
325
|
x: t,
|
|
326
326
|
y: r
|
|
@@ -352,7 +352,7 @@ var se = 100, L = {
|
|
|
352
352
|
let a = i[e];
|
|
353
353
|
if (!a) return;
|
|
354
354
|
a.width = t, a.height = n;
|
|
355
|
-
let o = r?.nodes?.find((t) => t.id === e), s =
|
|
355
|
+
let o = r?.nodes?.find((t) => t.id === e), s = _e(t), c = a.inputOffset ?? z;
|
|
356
356
|
a.outputOffset = s, a.inputOffset = c, o ? (a.output = {
|
|
357
357
|
x: o.position.x + s.x,
|
|
358
358
|
y: o.position.y + s.y
|
|
@@ -365,24 +365,24 @@ var se = 100, L = {
|
|
|
365
365
|
};
|
|
366
366
|
} }),
|
|
367
367
|
linkChild: n(e("data.edges", { ADD_CHILD: ({ context: { data: e }, pContext: n, payload: r }) => {
|
|
368
|
-
let i = t.typed(e?.edges), a = n?.generatedId, o =
|
|
368
|
+
let i = t.typed(e?.edges), a = n?.generatedId, o = ze(a), s = Re(r, o);
|
|
369
369
|
return i.push({
|
|
370
370
|
id: s,
|
|
371
371
|
from: r,
|
|
372
372
|
to: o
|
|
373
373
|
}), i;
|
|
374
|
-
} }), e("selected", ({ pContext: { generatedId: e } }) =>
|
|
374
|
+
} }), e("selected", ({ pContext: { generatedId: e } }) => ze(e))),
|
|
375
375
|
linkSibling: n(e("data.edges", { ADD_SIBLING: ({ pContext: e, payload: n, context: { data: r } }) => {
|
|
376
376
|
let i = t.typed(r?.edges), a = e?.generatedId, o = i.find(({ to: e }) => e === n)?.from;
|
|
377
377
|
if (!o) return i;
|
|
378
|
-
let s =
|
|
378
|
+
let s = ze(a), c = Re(o, s);
|
|
379
379
|
return i.push({
|
|
380
380
|
from: o,
|
|
381
381
|
to: s,
|
|
382
382
|
id: c
|
|
383
383
|
}), i;
|
|
384
|
-
} }), e("selected", ({ pContext: { generatedId: e } }) =>
|
|
385
|
-
selectParent: e("selected", ({ pContext: { generatedId: e } }) =>
|
|
384
|
+
} }), e("selected", ({ pContext: { generatedId: e } }) => ze(e))),
|
|
385
|
+
selectParent: e("selected", ({ pContext: { generatedId: e } }) => ze(e)),
|
|
386
386
|
moveNode: e("data.nodes", { MOVE: ({ context: { data: e }, payload: { id: t, x: n, y: r } }) => e?.nodes?.map((e) => e.id === t ? {
|
|
387
387
|
...e,
|
|
388
388
|
position: {
|
|
@@ -392,7 +392,7 @@ var se = 100, L = {
|
|
|
392
392
|
} : e) }),
|
|
393
393
|
delete: n(i("data.edges", { DELETE: ({ id: e, from: t, to: n }, r, { payload: i }) => e !== i && t !== i && n !== i }), i("data.nodes", { DELETE: ({ id: e }, t, { payload: n }) => e !== n }), r("editing")),
|
|
394
394
|
addEdge: n(e("data.edges", { ADD_EDGE: ({ context: e, payload: { from: t, to: n } }) => {
|
|
395
|
-
let r = e.data?.edges ?? [], i =
|
|
395
|
+
let r = e.data?.edges ?? [], i = Re(t, n);
|
|
396
396
|
return r.some((e) => e.id === i) ? r : [...r, {
|
|
397
397
|
id: i,
|
|
398
398
|
from: t,
|
|
@@ -400,7 +400,7 @@ var se = 100, L = {
|
|
|
400
400
|
}];
|
|
401
401
|
} }), r("newEdge")),
|
|
402
402
|
zoom: e("zoom", { ZOOM: ({ context: { zoom: e }, payload: t, pContext: n }) => {
|
|
403
|
-
let r =
|
|
403
|
+
let r = Pe(e + t, .1, 3);
|
|
404
404
|
return n.previousZoom = void 0, r;
|
|
405
405
|
} }),
|
|
406
406
|
toggleZoom: e("zoom", { TOGGLE_ZOOM: ({ context: { zoom: e }, pContext: t }) => {
|
|
@@ -451,8 +451,8 @@ var se = 100, L = {
|
|
|
451
451
|
y1: a
|
|
452
452
|
};
|
|
453
453
|
} })
|
|
454
|
-
} })), [
|
|
455
|
-
let e =
|
|
454
|
+
} })), [He, H] = Fe(() => {
|
|
455
|
+
let e = P(Ve, {
|
|
456
456
|
context: {
|
|
457
457
|
zoom: 1,
|
|
458
458
|
edgesPositions: {},
|
|
@@ -483,8 +483,8 @@ var se = 100, L = {
|
|
|
483
483
|
};
|
|
484
484
|
let s = e.state.context.zoom ?? 1, c = o.scrollLeft / s + B.horizontal, l = Math.max(c, (o.scrollLeft + o.width) / s - B.horizontal - i), u = o.scrollTop / s + B.vertical, d = Math.max(u, (o.scrollTop + o.height) / s - B.vertical - a);
|
|
485
485
|
return {
|
|
486
|
-
x:
|
|
487
|
-
y:
|
|
486
|
+
x: Pe(n, c, l),
|
|
487
|
+
y: Pe(r, u, d)
|
|
488
488
|
};
|
|
489
489
|
},
|
|
490
490
|
calculateDimensions: (e, t = {
|
|
@@ -492,7 +492,7 @@ var se = 100, L = {
|
|
|
492
492
|
height: L.height,
|
|
493
493
|
inputOffset: z
|
|
494
494
|
}) => {
|
|
495
|
-
let n = t.width, r = t.height, i = t.outputOffset ??
|
|
495
|
+
let n = t.width, r = t.height, i = t.outputOffset ?? _e(n), a = t.inputOffset ?? z;
|
|
496
496
|
return {
|
|
497
497
|
width: n,
|
|
498
498
|
height: r,
|
|
@@ -511,8 +511,8 @@ var se = 100, L = {
|
|
|
511
511
|
}
|
|
512
512
|
});
|
|
513
513
|
return e.start(), e;
|
|
514
|
-
}, { name: "FlowContext" }),
|
|
515
|
-
function
|
|
514
|
+
}, { name: "FlowContext" }), Ue = Object.prototype.hasOwnProperty;
|
|
515
|
+
function We(e, t, n) {
|
|
516
516
|
for (n of e.keys()) if (U(n, t)) return n;
|
|
517
517
|
}
|
|
518
518
|
function U(e, t) {
|
|
@@ -527,12 +527,12 @@ function U(e, t) {
|
|
|
527
527
|
}
|
|
528
528
|
if (n === Set) {
|
|
529
529
|
if (e.size !== t.size) return !1;
|
|
530
|
-
for (r of e) if (i = r, i && typeof i == "object" && (i =
|
|
530
|
+
for (r of e) if (i = r, i && typeof i == "object" && (i = We(t, i), !i) || !t.has(i)) return !1;
|
|
531
531
|
return !0;
|
|
532
532
|
}
|
|
533
533
|
if (n === Map) {
|
|
534
534
|
if (e.size !== t.size) return !1;
|
|
535
|
-
for (r of e) if (i = r[0], i && typeof i == "object" && (i =
|
|
535
|
+
for (r of e) if (i = r[0], i && typeof i == "object" && (i = We(t, i), !i) || !U(r[1], t.get(i))) return !1;
|
|
536
536
|
return !0;
|
|
537
537
|
}
|
|
538
538
|
if (n === ArrayBuffer) e = new Uint8Array(e), t = new Uint8Array(t);
|
|
@@ -545,7 +545,7 @@ function U(e, t) {
|
|
|
545
545
|
return r === -1;
|
|
546
546
|
}
|
|
547
547
|
if (!n || typeof e == "object") {
|
|
548
|
-
for (n in r = 0, e) if (
|
|
548
|
+
for (n in r = 0, e) if (Ue.call(e, n) && ++r && !Ue.call(t, n) || !(n in t) || !U(e[n], t[n])) return !1;
|
|
549
549
|
return Object.keys(t).length === r;
|
|
550
550
|
}
|
|
551
551
|
}
|
|
@@ -553,8 +553,8 @@ function U(e, t) {
|
|
|
553
553
|
}
|
|
554
554
|
//#endregion
|
|
555
555
|
//#region src/ui/components/Bounds.tsx
|
|
556
|
-
var
|
|
557
|
-
let e = H(), t =
|
|
556
|
+
var Ge = () => {
|
|
557
|
+
let e = H(), t = x(e, { selector: ({ context: e }) => e.zoom }), n = x(e, { selector: ({ context: e }) => e.board }), [r, { addTransformer: i, removeTransformer: a, onDragStart: o, onDragEnd: s }] = ie(), c = {
|
|
558
558
|
id: "clamp-to-container",
|
|
559
559
|
order: 100,
|
|
560
560
|
callback: (e) => {
|
|
@@ -574,15 +574,15 @@ var Je = () => {
|
|
|
574
574
|
}), s(({ draggable: e }) => {
|
|
575
575
|
a("draggables", e.id, c.id);
|
|
576
576
|
}), null;
|
|
577
|
-
},
|
|
577
|
+
}, Ke = /*#__PURE__*/ y("<svg><path class=\"relative cursor-pointer fill-transparent\"></svg>", !1, !0, !1), qe = /*#__PURE__*/ y("<svg><g cursor=pointer style=pointer-events:all;z-index:30><circle cx=0 cy=0 r=12 fill=\"rgba(168, 168, 168, 1)\"></circle><svg fill=currentColor stroke-width=0 xmlns=http://www.w3.org/2000/svg class=\"h-25 w-25 bg-white fill-white\"width=20 height=20 viewBox=\"0 0 20 20\"color=white x=-10 y=-10><path d=\"M10.185,1.417c-4.741,0-8.583,3.842-8.583,8.583c0,4.74,3.842,8.582,8.583,8.582S18.768,14.74,18.768,10C18.768,5.259,14.926,1.417,10.185,1.417 M10.185,17.68c-4.235,0-7.679-3.445-7.679-7.68c0-4.235,3.444-7.679,7.679-7.679S17.864,5.765,17.864,10C17.864,14.234,14.42,17.68,10.185,17.68 M10.824,10l2.842-2.844c0.178-0.176,0.178-0.46,0-0.637c-0.177-0.178-0.461-0.178-0.637,0l-2.844,2.841L7.341,6.52c-0.176-0.178-0.46-0.178-0.637,0c-0.178,0.176-0.178,0.461,0,0.637L9.546,10l-2.841,2.844c-0.178,0.176-0.178,0.461,0,0.637c0.178,0.178,0.459,0.178,0.637,0l2.844-2.841l2.844,2.841c0.178,0.178,0.459,0.178,0.637,0c0.178-0.176,0.178-0.461,0-0.637L10.824,10z\"></svg>", !1, !0, !1), Je = (e) => e * 100 / 200, Ye = (e) => {
|
|
578
578
|
if (!e) return "";
|
|
579
579
|
let { x0: t, y0: n, x1: r, y1: i } = e;
|
|
580
|
-
return `M ${t} ${n} C ${t +
|
|
581
|
-
},
|
|
582
|
-
let t = H(), n =
|
|
580
|
+
return `M ${t} ${n} C ${t + Je(Math.abs(r - t))} ${n}, ${r - Je(Math.abs(r - t))} ${i}, ${r} ${i}`;
|
|
581
|
+
}, Xe = (e) => {
|
|
582
|
+
let t = H(), n = x(t, {
|
|
583
583
|
selector: ({ context: { newEdge: t, edgesPositions: n } }) => e.isNew ? t : n[e.id],
|
|
584
584
|
equals: U
|
|
585
|
-
}), r =
|
|
585
|
+
}), r = x(t, { selector: (t) => t.context.selected === e.id }), i = () => {
|
|
586
586
|
let e = n();
|
|
587
587
|
return e ? {
|
|
588
588
|
x: e.x0 + (e.x1 - e.x0) / 2,
|
|
@@ -597,7 +597,7 @@ var Je = () => {
|
|
|
597
597
|
return n();
|
|
598
598
|
},
|
|
599
599
|
children: (n) => [(() => {
|
|
600
|
-
var i = u(
|
|
600
|
+
var i = u(Ke);
|
|
601
601
|
return i.$$mousedown = (n) => (n.stopPropagation(), t.send({
|
|
602
602
|
type: "SELECT",
|
|
603
603
|
payload: e.id
|
|
@@ -606,7 +606,7 @@ var Je = () => {
|
|
|
606
606
|
"stroke-[rgba(168,168,168,0.4)] stroke-3 z-200": !!e.isNew,
|
|
607
607
|
"stroke-[rgba(168,168,168,1)] stroke-4 z-100": r() && !e.isNew,
|
|
608
608
|
"stroke-[rgba(168,168,168,0.8)] stroke-3": !r() && !e.isNew
|
|
609
|
-
}, s = e.isNew ? "none" : "all", c =
|
|
609
|
+
}, s = e.isNew ? "none" : "all", c = Ye(n());
|
|
610
610
|
return t.e = a(i, o, t.e), s !== t.t && _(i, "pointer-events", t.t = s), c !== t.a && g(i, "d", t.a = c), t;
|
|
611
611
|
}, {
|
|
612
612
|
e: void 0,
|
|
@@ -618,7 +618,7 @@ var Je = () => {
|
|
|
618
618
|
return r();
|
|
619
619
|
},
|
|
620
620
|
get children() {
|
|
621
|
-
var n = u(
|
|
621
|
+
var n = u(qe);
|
|
622
622
|
return n.$$mousedown = (n) => {
|
|
623
623
|
n.stopPropagation(), t.send({
|
|
624
624
|
type: "DELETE",
|
|
@@ -632,36 +632,36 @@ var Je = () => {
|
|
|
632
632
|
c(["mousedown"]);
|
|
633
633
|
//#endregion
|
|
634
634
|
//#region src/ui/components/EdgesBoard.tsx
|
|
635
|
-
var
|
|
636
|
-
let e = H(), t =
|
|
635
|
+
var Ze = /*#__PURE__*/ y("<svg class=\"pointer-events-none h-full w-full overflow-visible\"><!$><!/><!$><!/>"), Qe = () => {
|
|
636
|
+
let e = H(), t = x(e, { selector: (e) => !!e.context.newEdge }), n = x(e, {
|
|
637
637
|
selector: ({ context: e }) => Object.keys(e.edgesPositions ?? {}),
|
|
638
638
|
equals: (e, t) => e.length === t.length
|
|
639
639
|
});
|
|
640
640
|
return (() => {
|
|
641
|
-
var e = u(
|
|
641
|
+
var e = u(Ze), r = e.firstChild, [i, a] = d(r.nextSibling), o = i.nextSibling, [c, l] = d(o.nextSibling);
|
|
642
642
|
return f(e, s(C, {
|
|
643
643
|
get when() {
|
|
644
644
|
return t();
|
|
645
645
|
},
|
|
646
646
|
get children() {
|
|
647
|
-
return s(
|
|
647
|
+
return s(Xe, {
|
|
648
648
|
id: "__#new-edge#__TEMP",
|
|
649
649
|
isNew: !0
|
|
650
650
|
});
|
|
651
651
|
}
|
|
652
|
-
}), i, a), f(e, s(
|
|
652
|
+
}), i, a), f(e, s(S, {
|
|
653
653
|
get each() {
|
|
654
654
|
return n();
|
|
655
655
|
},
|
|
656
|
-
children: (e) => s(
|
|
656
|
+
children: (e) => s(Xe, { id: e })
|
|
657
657
|
}), c, l), e;
|
|
658
658
|
})();
|
|
659
|
-
},
|
|
659
|
+
}, $e = (e, t) => {
|
|
660
660
|
let n = (n) => {
|
|
661
661
|
e.contains(n.target) || t()?.();
|
|
662
662
|
};
|
|
663
|
-
document.body.addEventListener("click", n),
|
|
664
|
-
},
|
|
663
|
+
document.body.addEventListener("click", n), k(() => document.body.removeEventListener("click", n));
|
|
664
|
+
}, et = (e, t) => {
|
|
665
665
|
let n, r = !1, i = () => {
|
|
666
666
|
n !== void 0 && (clearTimeout(n), n = void 0);
|
|
667
667
|
}, a = () => {
|
|
@@ -685,10 +685,10 @@ var et = /*#__PURE__*/ b("<svg class=\"pointer-events-none h-full w-full overflo
|
|
|
685
685
|
let n = t.relatedTarget;
|
|
686
686
|
!(n && e.contains(n)) && !r && o(t);
|
|
687
687
|
};
|
|
688
|
-
e.addEventListener("mouseleave", c), e.addEventListener("mouseenter", s), e.addEventListener("focusin", l), e.addEventListener("focusout", u),
|
|
688
|
+
e.addEventListener("mouseleave", c), e.addEventListener("mouseenter", s), e.addEventListener("focusin", l), e.addEventListener("focusout", u), k(() => {
|
|
689
689
|
i(), e.removeEventListener("mouseleave", c), e.removeEventListener("mouseenter", s), e.removeEventListener("focusin", l), e.removeEventListener("focusout", u);
|
|
690
690
|
});
|
|
691
|
-
},
|
|
691
|
+
}, tt = (e) => (t) => {
|
|
692
692
|
let n = H(), r = new ResizeObserver((t) => {
|
|
693
693
|
let r = t[0].target;
|
|
694
694
|
if (!r) return;
|
|
@@ -707,10 +707,10 @@ var et = /*#__PURE__*/ b("<svg class=\"pointer-events-none h-full w-full overflo
|
|
|
707
707
|
return r.observe(t), () => {
|
|
708
708
|
r.unobserve(t), r.disconnect();
|
|
709
709
|
};
|
|
710
|
-
},
|
|
711
|
-
let t = H(), n =
|
|
710
|
+
}, nt = /*#__PURE__*/ y("<svg class=\"cursor-pointer overflow-visible rounded-full bg-green-500 p-0.5 text-center font-bold hover:bg-green-600\"viewBox=\"0 0 1024 1024\"preserveAspectRatio=xMaxYMax xmlns=http://www.w3.org/2000/svg fill=white style=pointer-events:all;fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2><g id=background><path d=\"M467.40667,277.66696c-0.05948,-14.53055 5.75527,-22.95613 -8.62044,-20.90487c-112.55699,16.0607 -222.1609,112.14558 -245.06161,239.85765c-46.52056,259.43466 231.33083,443.06705 449.51209,316.97506c117.31668,-67.80002 160.95215,-190.43324 151.34416,-288.29849c-5.92276,-60.32819 -27.80273,-107.95668 -53.44246,-144.25469l59.39269,-42.05363c111.72214,156.309 73.11535,351.55635 -25.06953,459.45565c-184.18877,202.4124 -470.46624,145.52064 -592.95027,-32.92123c-156.18269,-227.53604 -27.15324,-543.64371 261.18883,-582.44416c5.0579,-0.68061 3.56556,-7.04079 3.56442,-8.58985c-0.05594,-76.3354 -0.11021,-76.7687 1.10909,-77.24589c2.06886,-0.80969 151.41433,118.4561 151.92482,118.95524c4.65592,4.55233 -0.99548,7.829 -29.07828,30.50907c-120.49369,97.31245 -120.4977,98.55675 -123.0691,97.87586c-0.43639,-0.11555 -0.80698,-0.31322 -0.74442,-66.91571Z\"></path><path d=\"M316.61562,611.03414c0.11517,-90.16257 -0.25516,-99.92912 0.64739,-101.78856c1.56486,-3.22393 131.99102,0.91032 134.6959,-1.89763c2.21336,-2.2977 -0.59362,-129.97807 1.1376,-132.37034c0.7253,-1.00225 11.10552,-0.99175 12.07474,-0.99077c104.50336,0.10564 104.90098,-0.37811 105.967,0.85765c1.56461,1.81373 0.25596,114.18436 0.67852,129.81412c0.1322,4.88975 3.22386,3.28152 99.72028,3.4563c33.0841,0.05992 36.14259,-1.40368 36.21852,4.50462c0.11713,9.11348 1.41954,110.45369 -0.40274,113.92715c-1.81106,3.45208 -130.39967,-0.42618 -134.48289,1.62075c-2.29035,1.14816 -0.36989,101.12392 -1.11542,130.51904c-0.09548,3.76459 -2.13506,3.20617 -47.84854,3.17365c-69.30253,-0.0493 -69.31099,-0.25627 -69.65762,-0.42191c-3.77927,-1.80595 0.16287,-129.33555 -2.24266,-132.58994c-1.79931,-2.43424 -124.06108,-0.29118 -132.80252,-0.97392c-3.81102,-0.29766 -2.58229,-14.8847 -2.58758,-16.8402Z\">"), rt = /*#__PURE__*/ y("<div class=\"group min-w-48\"><div><svg class=\"cursor-pointer rounded-full fill-[#a11111] opacity-100 transition-all duration-200 ease-in-out\"fill=currentColor stroke-width=2 viewBox=\"4 4 16 16\"style=overflow:visible;pointer-events:all><path d=\"M12 4c-4.419 0-8 3.582-8 8s3.581 8 8 8 8-3.582 8-8-3.581-8-8-8zm3.707 10.293a.999.999 0 11-1.414 1.414L12 13.414l-2.293 2.293a.997.997 0 01-1.414 0 .999.999 0 010-1.414L10.586 12 8.293 9.707a.999.999 0 111.414-1.414L12 10.586l2.293-2.293a.999.999 0 111.414 1.414L13.414 12l2.293 2.293z\"></path></svg><!$><!/><svg class=\"flex cursor-pointer items-center justify-center rounded-lg bg-blue-500 p-0.5 text-center font-bold text-white hover:bg-blue-600\"viewBox=\"0 0 24 24\"stroke=currentColor stroke-width=2 style=pointer-events:all><path d=\"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z\"></path></svg></div><div></div><div id=inputs class=\"pointer-events-none absolute top-0 z-10 flex cursor-default flex-col\"><div data-handle-type=input class=\"cursor-default rounded-full bg-[#e38b29] shadow-md transition-transform duration-150 ease-in-out hover:scale-150\"style=pointer-events:all></div></div><div id=outputs class=\"pointer-events-none absolute top-0 z-10 flex flex-col\"><div data-handle-type=output class=\"cursor-crosshair rounded-full bg-[#e38b29] shadow-md transition-transform duration-150 ease-in-out hover:scale-150\"style=pointer-events:all>"), it = /*#__PURE__*/ y("<div class=\"p-3 select-none\"><!$><!/><!$><!/><!$><!/>"), at = /*#__PURE__*/ y("<span class=\"mb-2 block min-w-max border-b border-[#f0f0f0] pb-2 font-semibold whitespace-nowrap text-red-600 select-none\">"), ot = /*#__PURE__*/ y("<div class=select-none>"), st = /*#__PURE__*/ y("<div><span class=font-semibold><!$><!/>: </span><span>"), ct = (e) => {
|
|
711
|
+
let t = H(), n = x(t, { selector: (e) => e.context.newEdge }), i = re(e.id), o = x(t, {
|
|
712
712
|
selector: ({ context: t }) => {
|
|
713
|
-
let n =
|
|
713
|
+
let n = ee.typed(t.data?.nodes).find((t) => t.id === e.id);
|
|
714
714
|
return {
|
|
715
715
|
x: n?.position.x ?? 0,
|
|
716
716
|
y: n?.position.y ?? 0,
|
|
@@ -718,12 +718,12 @@ var et = /*#__PURE__*/ b("<svg class=\"pointer-events-none h-full w-full overflo
|
|
|
718
718
|
};
|
|
719
719
|
},
|
|
720
720
|
equals: U
|
|
721
|
-
}), c =
|
|
721
|
+
}), c = x(t, { selector: ({ context: t }) => t.selected === e.id }), v = x(t, { selector: ({ context: { data: t } }) => {
|
|
722
722
|
let n = t?.edges;
|
|
723
723
|
return n ? n.some(({ to: t }) => t === e.id) : !1;
|
|
724
724
|
} });
|
|
725
725
|
return (() => {
|
|
726
|
-
var y = u(
|
|
726
|
+
var y = u(rt), x = y.firstChild, w = x.firstChild, T = w.nextSibling, [E, D] = d(T.nextSibling), O = E.nextSibling, k = x.nextSibling, A = k.nextSibling, j = A.firstChild, M = A.nextSibling, N = M.firstChild;
|
|
727
727
|
y.$$dblclick = (n) => {
|
|
728
728
|
n.stopPropagation(), t.send({
|
|
729
729
|
type: "EDIT",
|
|
@@ -734,41 +734,41 @@ var et = /*#__PURE__*/ b("<svg class=\"pointer-events-none h-full w-full overflo
|
|
|
734
734
|
type: "SELECT",
|
|
735
735
|
payload: e.id
|
|
736
736
|
});
|
|
737
|
-
},
|
|
737
|
+
}, b(i, y, () => ({ skipTransform: !0 })), w.$$click = (n) => {
|
|
738
738
|
n.stopPropagation(), t.send({
|
|
739
739
|
type: "DELETE",
|
|
740
740
|
payload: e.id
|
|
741
741
|
});
|
|
742
|
-
}, _(
|
|
742
|
+
}, _(w, "width", "24px"), _(w, "height", "24px"), f(x, s(C, {
|
|
743
743
|
get when() {
|
|
744
744
|
return v();
|
|
745
745
|
},
|
|
746
746
|
get children() {
|
|
747
|
-
var n = u(
|
|
747
|
+
var n = u(nt);
|
|
748
748
|
return n.$$click = () => t.send({
|
|
749
749
|
type: "ADD_SIBLING",
|
|
750
750
|
payload: e.id
|
|
751
751
|
}), _(n, "width", "24px"), _(n, "height", "24px"), h(), n;
|
|
752
752
|
}
|
|
753
|
-
}),
|
|
753
|
+
}), E, D), O.$$click = () => t.send({
|
|
754
754
|
type: "ADD_CHILD",
|
|
755
755
|
payload: e.id
|
|
756
|
-
}), _(
|
|
757
|
-
var
|
|
758
|
-
return typeof
|
|
756
|
+
}), _(O, "width", "24px"), _(O, "height", "24px");
|
|
757
|
+
var P = tt(e.id);
|
|
758
|
+
return typeof P == "function" && b(P, k), f(k, s(C, {
|
|
759
759
|
get when() {
|
|
760
760
|
return e.children;
|
|
761
761
|
},
|
|
762
762
|
get fallback() {
|
|
763
763
|
return (() => {
|
|
764
|
-
var e = u(
|
|
764
|
+
var e = u(it), t = e.firstChild, [n, r] = d(t.nextSibling), i = n.nextSibling, [a, c] = d(i.nextSibling), l = a.nextSibling, [m, h] = d(l.nextSibling);
|
|
765
765
|
return f(e, s(C, {
|
|
766
766
|
get when() {
|
|
767
767
|
return o().data.label;
|
|
768
768
|
},
|
|
769
769
|
keyed: !0,
|
|
770
770
|
children: (e) => (() => {
|
|
771
|
-
var t = u(
|
|
771
|
+
var t = u(at);
|
|
772
772
|
return f(t, () => String(e)), t;
|
|
773
773
|
})()
|
|
774
774
|
}), n, r), f(e, s(C, {
|
|
@@ -777,7 +777,7 @@ var et = /*#__PURE__*/ b("<svg class=\"pointer-events-none h-full w-full overflo
|
|
|
777
777
|
},
|
|
778
778
|
keyed: !0,
|
|
779
779
|
children: (e) => (() => {
|
|
780
|
-
var t = u(
|
|
780
|
+
var t = u(ot);
|
|
781
781
|
return f(t, () => String(e)), t;
|
|
782
782
|
})()
|
|
783
783
|
}), a, c), f(e, s(C, {
|
|
@@ -785,12 +785,12 @@ var et = /*#__PURE__*/ b("<svg class=\"pointer-events-none h-full w-full overflo
|
|
|
785
785
|
return p(() => !o().data.label)() && !o().data.content;
|
|
786
786
|
},
|
|
787
787
|
get children() {
|
|
788
|
-
return s(
|
|
788
|
+
return s(S, {
|
|
789
789
|
get each() {
|
|
790
790
|
return Object.entries(o().data);
|
|
791
791
|
},
|
|
792
792
|
children: ([e, t]) => (() => {
|
|
793
|
-
var n = u(
|
|
793
|
+
var n = u(st), r = n.firstChild, i = r.firstChild, [a, o] = d(i.nextSibling);
|
|
794
794
|
a.nextSibling;
|
|
795
795
|
var s = r.nextSibling;
|
|
796
796
|
return f(r, e, a, o), f(s, () => String(t)), n;
|
|
@@ -805,7 +805,7 @@ var et = /*#__PURE__*/ b("<svg class=\"pointer-events-none h-full w-full overflo
|
|
|
805
805
|
return e.children;
|
|
806
806
|
} }, () => o().data));
|
|
807
807
|
}
|
|
808
|
-
})), _(
|
|
808
|
+
})), _(A, "left", "-18px"), j.$$mouseup = (r) => {
|
|
809
809
|
r.stopPropagation();
|
|
810
810
|
let i = n()?.from;
|
|
811
811
|
i && i !== e.id && t.send({
|
|
@@ -815,14 +815,14 @@ var et = /*#__PURE__*/ b("<svg class=\"pointer-events-none h-full w-full overflo
|
|
|
815
815
|
to: e.id
|
|
816
816
|
}
|
|
817
817
|
}), t.send("CLEAR_NEW_EDGE");
|
|
818
|
-
},
|
|
818
|
+
}, j.$$pointerdown = (e) => e.stopPropagation(), j.$$mousedown = (e) => e.stopPropagation(), _(j, "width", "12px"), _(j, "height", "12px"), _(j, "margin-top", "12px"), _(M, "right", "-18px"), N.$$pointerdown = (e) => {
|
|
819
819
|
e.stopPropagation();
|
|
820
|
-
},
|
|
820
|
+
}, N.$$mousedown = (n) => {
|
|
821
821
|
n.stopPropagation(), t.send("DESELECT"), t.send({
|
|
822
822
|
type: "START_NEW_EDGE",
|
|
823
823
|
payload: e.id
|
|
824
824
|
});
|
|
825
|
-
}, _(
|
|
825
|
+
}, _(N, "width", "12px"), _(N, "height", "12px"), _(N, "margin-top", "12px"), l((t) => {
|
|
826
826
|
var n = {
|
|
827
827
|
"flex flex-col absolute cursor-grab bg-white rounded-md shadow-md select-none transition-[border,box-shadow] duration-200 ease-in-out hover:shadow-lg draggable": !0,
|
|
828
828
|
"border border-[#e38c29] z-100": c(),
|
|
@@ -831,8 +831,8 @@ var et = /*#__PURE__*/ b("<svg class=\"pointer-events-none h-full w-full overflo
|
|
|
831
831
|
"pointer-events-none absolute flex items-center justify-end -top-7.5 right-0 transition-all duration-200 ease-in-out space-x-2": !0,
|
|
832
832
|
"w-full opacity-100": c(),
|
|
833
833
|
"w-0 -right-3 opacity-0 overflow-hidden": !c()
|
|
834
|
-
}, u = e.id, d = e.id
|
|
835
|
-
return t.e = a(y, n, t.e), r !== t.t && _(y, "top", t.t = r), i !== t.a && _(y, "left", t.a = i), s !== t.o && g(y, "id", t.o = s), t.i = a(
|
|
834
|
+
}, u = e.id, d = e.id;
|
|
835
|
+
return t.e = a(y, n, t.e), r !== t.t && _(y, "top", t.t = r), i !== t.a && _(y, "left", t.a = i), s !== t.o && g(y, "id", t.o = s), t.i = a(x, l, t.i), u !== t.n && g(j, "data-node-id", t.n = u), d !== t.s && g(N, "data-node-id", t.s = d), t;
|
|
836
836
|
}, {
|
|
837
837
|
e: void 0,
|
|
838
838
|
t: void 0,
|
|
@@ -840,9 +840,7 @@ var et = /*#__PURE__*/ b("<svg class=\"pointer-events-none h-full w-full overflo
|
|
|
840
840
|
o: void 0,
|
|
841
841
|
i: void 0,
|
|
842
842
|
n: void 0,
|
|
843
|
-
s: void 0
|
|
844
|
-
h: void 0,
|
|
845
|
-
r: void 0
|
|
843
|
+
s: void 0
|
|
846
844
|
}), h(), y;
|
|
847
845
|
})();
|
|
848
846
|
};
|
|
@@ -854,352 +852,118 @@ c([
|
|
|
854
852
|
"mouseup"
|
|
855
853
|
]);
|
|
856
854
|
//#endregion
|
|
857
|
-
//#region src/ui/components/Panels.tsx
|
|
858
|
-
var ft = /*#__PURE__*/ b("<div class=\"absolute top-4 left-4 z-50\">"), pt = /*#__PURE__*/ b("<div class=\"absolute top-4 right-4 z-50\">"), mt = /*#__PURE__*/ b("<div class=\"absolute bottom-4 left-4 z-50\">"), ht = (e) => [
|
|
859
|
-
s(C, {
|
|
860
|
-
get when() {
|
|
861
|
-
return e.topLeft;
|
|
862
|
-
},
|
|
863
|
-
keyed: !0,
|
|
864
|
-
children: (e) => (() => {
|
|
865
|
-
var t = u(ft);
|
|
866
|
-
return f(t, s(e, {})), t;
|
|
867
|
-
})()
|
|
868
|
-
}),
|
|
869
|
-
s(C, {
|
|
870
|
-
get when() {
|
|
871
|
-
return e.topRight;
|
|
872
|
-
},
|
|
873
|
-
keyed: !0,
|
|
874
|
-
children: (e) => (() => {
|
|
875
|
-
var t = u(pt);
|
|
876
|
-
return f(t, s(e, {})), t;
|
|
877
|
-
})()
|
|
878
|
-
}),
|
|
879
|
-
s(C, {
|
|
880
|
-
get when() {
|
|
881
|
-
return e.bottomLeft;
|
|
882
|
-
},
|
|
883
|
-
keyed: !0,
|
|
884
|
-
children: (e) => (() => {
|
|
885
|
-
var t = u(mt);
|
|
886
|
-
return f(t, s(e, {})), t;
|
|
887
|
-
})()
|
|
888
|
-
})
|
|
889
|
-
], gt = /*#__PURE__*/ b("<div class=\"relative h-full w-full overflow-auto\"><!$><!/><div class=\"relative cursor-crosshair overflow-hidden\"><div class=\"relative h-full w-full\"style=\"transform-origin:top left\"><!$><!/><!$><!/><!$><!/>"), _t = /*#__PURE__*/ b("<div class=\"absolute right-4 bottom-4 z-50 flex items-center gap-2 rounded-xl border border-gray-200 bg-white/90 p-2 shadow-lg backdrop-blur-md\"><button type=button class=\"flex size-9 cursor-pointer items-center justify-center rounded-lg bg-gray-100 text-lg font-bold text-gray-700 shadow-sm transition-all duration-150 hover:bg-gray-200 active:scale-95\"title=\"Zoom out\"aria-label=\"Zoom out\">-</button><button type=button class=\"h-9 cursor-pointer rounded-lg px-2 text-xs font-semibold text-gray-700 transition-colors hover:bg-gray-100\"title=\"Reset zoom\"aria-label=\"Reset zoom\"><!$><!/>%</button><button type=button class=\"flex size-9 cursor-pointer items-center justify-center rounded-lg bg-gray-100 text-lg font-bold text-gray-700 shadow-sm transition-all duration-150 hover:bg-gray-200 active:scale-95\"title=\"Zoom in\"aria-label=\"Zoom in\">+</button><div class=\"h-5 w-px bg-gray-300\"></div><button type=button class=\"flex size-9 cursor-pointer items-center justify-center rounded-lg bg-blue-600 text-white shadow transition-all duration-150 hover:bg-blue-700 active:scale-95\"title=\"Add parent node\"aria-label=\"Add parent node\"><svg class=size-5 viewBox=\"0 0 24 24\"fill=currentColor><path d=\"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z\">"), vt = /*#__PURE__*/ b("<div class=\"relative mx-auto h-full w-full overflow-hidden\">"), yt = (e) => {
|
|
890
|
-
let t, [n, r] = O(!1), [i, a] = O({
|
|
891
|
-
x: 0,
|
|
892
|
-
y: 0
|
|
893
|
-
}), [o, c] = O(), p = 0, g = 0, v = H(), y = S(v, {
|
|
894
|
-
selector: (e) => e.context.newEdge,
|
|
895
|
-
equals: U
|
|
896
|
-
}), b = S(v, { selector: (e) => e.context.zoom ?? 1 }), w = () => {
|
|
897
|
-
let e = o();
|
|
898
|
-
if (!e) return;
|
|
899
|
-
let t = e.getBoundingClientRect(), n = () => o()?.parentElement, r = {
|
|
900
|
-
self: {
|
|
901
|
-
left: t.left,
|
|
902
|
-
top: t.top,
|
|
903
|
-
width: e.clientWidth,
|
|
904
|
-
height: e.clientHeight
|
|
905
|
-
},
|
|
906
|
-
parent: n() ? {
|
|
907
|
-
scrollLeft: n().scrollLeft,
|
|
908
|
-
scrollTop: n().scrollTop,
|
|
909
|
-
height: n().clientHeight,
|
|
910
|
-
width: n().clientWidth
|
|
911
|
-
} : void 0
|
|
912
|
-
};
|
|
913
|
-
v.send({
|
|
914
|
-
type: "SET_BOARD",
|
|
915
|
-
payload: r
|
|
916
|
-
});
|
|
917
|
-
}, T = () => {
|
|
918
|
-
let e = t.scrollWidth - t.clientWidth, n = t.scrollHeight - t.clientHeight;
|
|
919
|
-
p = e > 0 ? t.scrollLeft / e : 0, g = n > 0 ? t.scrollTop / n : 0, w();
|
|
920
|
-
};
|
|
921
|
-
E(k(b, () => {
|
|
922
|
-
let e = t.scrollWidth - t.clientWidth, n = t.scrollHeight - t.clientHeight;
|
|
923
|
-
e > 0 && (t.scrollLeft = p * e), n > 0 && (t.scrollTop = g * n);
|
|
924
|
-
}, { defer: !0 })), j(w);
|
|
925
|
-
let D = S(v, { selector: (e) => e.context?.selected }), A = S(v, {
|
|
926
|
-
selector: ({ context: e }) => re.typed(e.data?.nodes).map((e) => e.id),
|
|
927
|
-
equals: (e, t) => e.length === t.length
|
|
928
|
-
}), M = () => `calc((500vw - 265px) * ${b()})`, N = () => `calc((500vh - 425px) * ${b()})`;
|
|
929
|
-
return (() => {
|
|
930
|
-
var o = u(vt);
|
|
931
|
-
return o.addEventListener("wheel", (e) => {
|
|
932
|
-
if (e.ctrlKey || e.metaKey) {
|
|
933
|
-
e.preventDefault(), T();
|
|
934
|
-
let t = e.deltaY < 0 ? .1 : -.1;
|
|
935
|
-
v.send({
|
|
936
|
-
type: "ZOOM",
|
|
937
|
-
payload: t
|
|
938
|
-
});
|
|
939
|
-
}
|
|
940
|
-
}), f(o, s(ie, {
|
|
941
|
-
onDragMove: ({ draggable: { transform: e, node: t, id: n } }) => {
|
|
942
|
-
let r = t.parentElement?.parentElement, i = b(), o = r ? Math.max(0, r.clientWidth / i - t.offsetWidth) : Infinity, s = r ? Math.max(0, r.clientHeight / i - t.offsetHeight) : Infinity, c = t.offsetLeft + e.x / i, l = t.offsetTop + e.y / i, u = Math.min(Math.max(c, 0), o), d = Math.min(Math.max(l, 0), s), f = u - t.offsetLeft, p = d - t.offsetTop;
|
|
943
|
-
t.style.setProperty("transform", `translate3d(${f}px, ${p}px, 0)`), v.send({
|
|
944
|
-
type: "MOVE_IMMEDIATE",
|
|
945
|
-
payload: {
|
|
946
|
-
id: `${n}`,
|
|
947
|
-
x: u,
|
|
948
|
-
y: d
|
|
949
|
-
}
|
|
950
|
-
}), a({
|
|
951
|
-
x: f * i,
|
|
952
|
-
y: p * i
|
|
953
|
-
});
|
|
954
|
-
},
|
|
955
|
-
onDragEnd: ({ draggable: { node: e, id: t } }) => {
|
|
956
|
-
let n = e.parentElement?.parentElement, r = b(), o = n ? Math.max(0, n.clientWidth / r - e.offsetWidth) : Infinity, s = n ? Math.max(0, n.clientHeight / r - e.offsetHeight) : Infinity, c = e.offsetLeft + i().x / r, l = e.offsetTop + i().y / r, u = Math.min(Math.max(c, 0), o), d = Math.min(Math.max(l, 0), s);
|
|
957
|
-
e.style.setProperty("top", d + "px"), e.style.setProperty("left", u + "px"), e.style.removeProperty("transform"), v.send({
|
|
958
|
-
type: "MOVE",
|
|
959
|
-
payload: {
|
|
960
|
-
id: `${t}`,
|
|
961
|
-
x: u,
|
|
962
|
-
y: d
|
|
963
|
-
}
|
|
964
|
-
}), setTimeout(() => {
|
|
965
|
-
a({
|
|
966
|
-
x: 0,
|
|
967
|
-
y: 0
|
|
968
|
-
});
|
|
969
|
-
}, 0);
|
|
970
|
-
},
|
|
971
|
-
get children() {
|
|
972
|
-
return [
|
|
973
|
-
(() => {
|
|
974
|
-
var i = u(gt), a = i.firstChild, [o, p] = d(a.nextSibling), m = o.nextSibling, g = m.firstChild, S = g.firstChild, [C, w] = d(S.nextSibling), E = C.nextSibling, [D, O] = d(E.nextSibling), k = D.nextSibling, [j, te] = d(k.nextSibling);
|
|
975
|
-
return i.addEventListener("scroll", T), x((e) => t = e, i), f(i, s(ae, {}), o, p), m.$$mousedown = (e) => {
|
|
976
|
-
if (y() || e.button !== 0) return;
|
|
977
|
-
v.send("DESELECT"), r(!0);
|
|
978
|
-
let n = e.clientX, i = e.clientY, a = t.scrollLeft, o = t.scrollTop, s = (e) => {
|
|
979
|
-
let r = e.clientX - n, s = e.clientY - i;
|
|
980
|
-
t.scrollLeft = a - r * 3, t.scrollTop = o - s * 3, T();
|
|
981
|
-
}, c = () => {
|
|
982
|
-
window.removeEventListener("mousemove", s), window.removeEventListener("mouseup", c), setTimeout(() => r(!1), 200);
|
|
983
|
-
};
|
|
984
|
-
window.addEventListener("mousemove", s), window.addEventListener("mouseup", c);
|
|
985
|
-
}, x(c, m), f(g, s(Je, {}), C, w), f(g, s(tt, {}), D, O), f(g, s(ee, {
|
|
986
|
-
get each() {
|
|
987
|
-
return A();
|
|
988
|
-
},
|
|
989
|
-
children: (t) => s(dt, {
|
|
990
|
-
id: t,
|
|
991
|
-
get children() {
|
|
992
|
-
return e.component;
|
|
993
|
-
}
|
|
994
|
-
})
|
|
995
|
-
}), j, te), l((e) => {
|
|
996
|
-
var t = !!n(), r = N(), i = M(), a = b();
|
|
997
|
-
return t !== e.e && m.classList.toggle("cursor-grabbing", e.e = t), r !== e.t && _(m, "height", e.t = r), i !== e.a && _(m, "width", e.a = i), a !== e.o && _(g, "scale", e.o = a), e;
|
|
998
|
-
}, {
|
|
999
|
-
e: void 0,
|
|
1000
|
-
t: void 0,
|
|
1001
|
-
a: void 0,
|
|
1002
|
-
o: void 0
|
|
1003
|
-
}), h(), i;
|
|
1004
|
-
})(),
|
|
1005
|
-
s(ht, m(() => e.panels)),
|
|
1006
|
-
(() => {
|
|
1007
|
-
var e = u(_t), t = e.firstChild, n = t.nextSibling, r = n.firstChild, [i, a] = d(r.nextSibling);
|
|
1008
|
-
i.nextSibling;
|
|
1009
|
-
var o = n.nextSibling, s = o.nextSibling.nextSibling;
|
|
1010
|
-
return t.$$click = () => {
|
|
1011
|
-
T(), v.send({
|
|
1012
|
-
type: "ZOOM",
|
|
1013
|
-
payload: -.1
|
|
1014
|
-
});
|
|
1015
|
-
}, n.$$click = () => {
|
|
1016
|
-
T(), v.send("TOGGLE_ZOOM");
|
|
1017
|
-
}, f(n, () => Math.round(b() * 100), i, a), o.$$click = () => {
|
|
1018
|
-
T(), v.send({
|
|
1019
|
-
type: "ZOOM",
|
|
1020
|
-
payload: .1
|
|
1021
|
-
});
|
|
1022
|
-
}, s.$$click = () => v.send("ADD_PARENT"), h(), e;
|
|
1023
|
-
})(),
|
|
1024
|
-
s(C, {
|
|
1025
|
-
get when() {
|
|
1026
|
-
return !D();
|
|
1027
|
-
},
|
|
1028
|
-
get children() {
|
|
1029
|
-
return s(F, { children: "" });
|
|
1030
|
-
}
|
|
1031
|
-
})
|
|
1032
|
-
];
|
|
1033
|
-
}
|
|
1034
|
-
})), o;
|
|
1035
|
-
})();
|
|
1036
|
-
};
|
|
1037
|
-
c(["mousedown", "click"]);
|
|
1038
|
-
//#endregion
|
|
1039
|
-
//#region src/ui/components/FlowChart.tsx
|
|
1040
|
-
var bt = /*#__PURE__*/ b("<div class=\"relative h-full w-full\"><div class=\"h-full w-full\">"), xt = (e) => {
|
|
1041
|
-
let t = e.config?.nodes ?? Te, n = e.config?.edges, r = H(), i = S(r, { selector: (e) => !!e.context.newEdge });
|
|
1042
|
-
return A(r.pause), j(() => {
|
|
1043
|
-
r.resume(), r.send({
|
|
1044
|
-
type: "CONFIGURE",
|
|
1045
|
-
payload: {
|
|
1046
|
-
nodes: t,
|
|
1047
|
-
edges: n ?? [],
|
|
1048
|
-
defaultData: e.defaultData
|
|
1049
|
-
}
|
|
1050
|
-
});
|
|
1051
|
-
}), E(() => {
|
|
1052
|
-
if (!i()) return;
|
|
1053
|
-
let e = (e) => {
|
|
1054
|
-
r.send({
|
|
1055
|
-
type: "MOVE_NEW_EDGE",
|
|
1056
|
-
payload: {
|
|
1057
|
-
x: e.clientX,
|
|
1058
|
-
y: e.clientY
|
|
1059
|
-
}
|
|
1060
|
-
});
|
|
1061
|
-
}, t = (e) => {
|
|
1062
|
-
let t = r.state.context.newEdge?.from;
|
|
1063
|
-
if (t) {
|
|
1064
|
-
let n = (document.elementFromPoint(e.clientX, e.clientY)?.closest("[data-handle-type=\"input\"]"))?.getAttribute("data-node-id");
|
|
1065
|
-
n && n !== t && r.send({
|
|
1066
|
-
type: "ADD_EDGE",
|
|
1067
|
-
payload: {
|
|
1068
|
-
from: t,
|
|
1069
|
-
to: n
|
|
1070
|
-
}
|
|
1071
|
-
});
|
|
1072
|
-
}
|
|
1073
|
-
r.send("CLEAR_NEW_EDGE");
|
|
1074
|
-
};
|
|
1075
|
-
window.addEventListener("pointermove", e), window.addEventListener("pointerup", t), A(() => {
|
|
1076
|
-
window.removeEventListener("pointermove", e), window.removeEventListener("pointerup", t);
|
|
1077
|
-
});
|
|
1078
|
-
}), (() => {
|
|
1079
|
-
var t = u(bt), n = t.firstChild;
|
|
1080
|
-
return f(n, s(yt, {
|
|
1081
|
-
get panels() {
|
|
1082
|
-
return e.panels;
|
|
1083
|
-
},
|
|
1084
|
-
get component() {
|
|
1085
|
-
return e.component;
|
|
1086
|
-
}
|
|
1087
|
-
})), l((e) => _(n, "cursor", i() ? "inherit" : "crosshair")), t;
|
|
1088
|
-
})();
|
|
1089
|
-
};
|
|
1090
|
-
//#endregion
|
|
1091
855
|
//#region ../../node_modules/clsx/dist/clsx.mjs
|
|
1092
|
-
function
|
|
856
|
+
function lt(e) {
|
|
1093
857
|
var t, n, r = "";
|
|
1094
858
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
1095
859
|
else if (typeof e == "object") {
|
|
1096
860
|
if (Array.isArray(e)) {
|
|
1097
861
|
var i = e.length;
|
|
1098
|
-
for (t = 0; t < i; t++) e[t] && (n =
|
|
862
|
+
for (t = 0; t < i; t++) e[t] && (n = lt(e[t])) && (r && (r += " "), r += n);
|
|
1099
863
|
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
1100
864
|
}
|
|
1101
865
|
return r;
|
|
1102
866
|
}
|
|
1103
|
-
function
|
|
1104
|
-
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t =
|
|
867
|
+
function ut() {
|
|
868
|
+
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = lt(e)) && (r && (r += " "), r += t);
|
|
1105
869
|
return r;
|
|
1106
870
|
}
|
|
1107
871
|
//#endregion
|
|
1108
872
|
//#region ../../node_modules/tailwind-merge/dist/bundle-mjs.mjs
|
|
1109
|
-
var
|
|
873
|
+
var dt = (e, t) => {
|
|
1110
874
|
let n = Array(e.length + t.length);
|
|
1111
875
|
for (let t = 0; t < e.length; t++) n[t] = e[t];
|
|
1112
876
|
for (let r = 0; r < t.length; r++) n[e.length + r] = t[r];
|
|
1113
877
|
return n;
|
|
1114
|
-
},
|
|
878
|
+
}, ft = (e, t) => ({
|
|
1115
879
|
classGroupId: e,
|
|
1116
880
|
validator: t
|
|
1117
|
-
}),
|
|
881
|
+
}), pt = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
|
|
1118
882
|
nextPart: e,
|
|
1119
883
|
validators: t,
|
|
1120
884
|
classGroupId: n
|
|
1121
|
-
}),
|
|
1122
|
-
let t =
|
|
885
|
+
}), mt = "-", ht = [], gt = "arbitrary..", _t = (e) => {
|
|
886
|
+
let t = bt(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
|
|
1123
887
|
return {
|
|
1124
888
|
getClassGroupId: (e) => {
|
|
1125
|
-
if (e.startsWith("[") && e.endsWith("]")) return
|
|
1126
|
-
let n = e.split(
|
|
1127
|
-
return
|
|
889
|
+
if (e.startsWith("[") && e.endsWith("]")) return yt(e);
|
|
890
|
+
let n = e.split(mt);
|
|
891
|
+
return vt(n, +(n[0] === "" && n.length > 1), t);
|
|
1128
892
|
},
|
|
1129
893
|
getConflictingClassGroupIds: (e, t) => {
|
|
1130
894
|
if (t) {
|
|
1131
895
|
let t = r[e], i = n[e];
|
|
1132
|
-
return t ? i ?
|
|
896
|
+
return t ? i ? dt(i, t) : t : i || ht;
|
|
1133
897
|
}
|
|
1134
|
-
return n[e] ||
|
|
898
|
+
return n[e] || ht;
|
|
1135
899
|
}
|
|
1136
900
|
};
|
|
1137
|
-
},
|
|
901
|
+
}, vt = (e, t, n) => {
|
|
1138
902
|
if (e.length - t === 0) return n.classGroupId;
|
|
1139
903
|
let r = e[t], i = n.nextPart.get(r);
|
|
1140
904
|
if (i) {
|
|
1141
|
-
let n =
|
|
905
|
+
let n = vt(e, t + 1, i);
|
|
1142
906
|
if (n) return n;
|
|
1143
907
|
}
|
|
1144
908
|
let a = n.validators;
|
|
1145
909
|
if (a === null) return;
|
|
1146
|
-
let o = t === 0 ? e.join(
|
|
910
|
+
let o = t === 0 ? e.join(mt) : e.slice(t).join(mt), s = a.length;
|
|
1147
911
|
for (let e = 0; e < s; e++) {
|
|
1148
912
|
let t = a[e];
|
|
1149
913
|
if (t.validator(o)) return t.classGroupId;
|
|
1150
914
|
}
|
|
1151
|
-
},
|
|
915
|
+
}, yt = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
1152
916
|
let t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
|
|
1153
|
-
return r ?
|
|
1154
|
-
})(),
|
|
917
|
+
return r ? gt + r : void 0;
|
|
918
|
+
})(), bt = (e) => {
|
|
1155
919
|
let { theme: t, classGroups: n } = e;
|
|
1156
|
-
return
|
|
1157
|
-
},
|
|
1158
|
-
let n =
|
|
920
|
+
return xt(n, t);
|
|
921
|
+
}, xt = (e, t) => {
|
|
922
|
+
let n = pt();
|
|
1159
923
|
for (let r in e) {
|
|
1160
924
|
let i = e[r];
|
|
1161
|
-
|
|
925
|
+
St(i, n, r, t);
|
|
1162
926
|
}
|
|
1163
927
|
return n;
|
|
1164
|
-
},
|
|
928
|
+
}, St = (e, t, n, r) => {
|
|
1165
929
|
let i = e.length;
|
|
1166
930
|
for (let a = 0; a < i; a++) {
|
|
1167
931
|
let i = e[a];
|
|
1168
|
-
|
|
932
|
+
Ct(i, t, n, r);
|
|
1169
933
|
}
|
|
1170
|
-
},
|
|
934
|
+
}, Ct = (e, t, n, r) => {
|
|
1171
935
|
if (typeof e == "string") {
|
|
1172
|
-
|
|
936
|
+
wt(e, t, n);
|
|
1173
937
|
return;
|
|
1174
938
|
}
|
|
1175
939
|
if (typeof e == "function") {
|
|
1176
|
-
|
|
940
|
+
Tt(e, t, n, r);
|
|
1177
941
|
return;
|
|
1178
942
|
}
|
|
1179
|
-
|
|
1180
|
-
},
|
|
1181
|
-
let r = e === "" ? t :
|
|
943
|
+
Et(e, t, n, r);
|
|
944
|
+
}, wt = (e, t, n) => {
|
|
945
|
+
let r = e === "" ? t : Dt(t, e);
|
|
1182
946
|
r.classGroupId = n;
|
|
1183
|
-
},
|
|
1184
|
-
if (
|
|
1185
|
-
|
|
947
|
+
}, Tt = (e, t, n, r) => {
|
|
948
|
+
if (Ot(e)) {
|
|
949
|
+
St(e(r), t, n, r);
|
|
1186
950
|
return;
|
|
1187
951
|
}
|
|
1188
|
-
t.validators === null && (t.validators = []), t.validators.push(
|
|
1189
|
-
},
|
|
952
|
+
t.validators === null && (t.validators = []), t.validators.push(ft(n, e));
|
|
953
|
+
}, Et = (e, t, n, r) => {
|
|
1190
954
|
let i = Object.entries(e), a = i.length;
|
|
1191
955
|
for (let e = 0; e < a; e++) {
|
|
1192
956
|
let [a, o] = i[e];
|
|
1193
|
-
|
|
957
|
+
St(o, Dt(t, a), n, r);
|
|
1194
958
|
}
|
|
1195
|
-
},
|
|
1196
|
-
let n = e, r = t.split(
|
|
959
|
+
}, Dt = (e, t) => {
|
|
960
|
+
let n = e, r = t.split(mt), i = r.length;
|
|
1197
961
|
for (let e = 0; e < i; e++) {
|
|
1198
962
|
let t = r[e], i = n.nextPart.get(t);
|
|
1199
|
-
i || (i =
|
|
963
|
+
i || (i = pt(), n.nextPart.set(t, i)), n = i;
|
|
1200
964
|
}
|
|
1201
965
|
return n;
|
|
1202
|
-
},
|
|
966
|
+
}, Ot = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, kt = (e) => {
|
|
1203
967
|
if (e < 1) return {
|
|
1204
968
|
get: () => void 0,
|
|
1205
969
|
set: () => {}
|
|
@@ -1217,19 +981,19 @@ var wt = (e, t) => {
|
|
|
1217
981
|
e in n ? n[e] = t : i(e, t);
|
|
1218
982
|
}
|
|
1219
983
|
};
|
|
1220
|
-
},
|
|
984
|
+
}, At = "!", jt = ":", Mt = [], Nt = (e, t, n, r, i) => ({
|
|
1221
985
|
modifiers: e,
|
|
1222
986
|
hasImportantModifier: t,
|
|
1223
987
|
baseClassName: n,
|
|
1224
988
|
maybePostfixModifierPosition: r,
|
|
1225
989
|
isExternal: i
|
|
1226
|
-
}),
|
|
990
|
+
}), Pt = (e) => {
|
|
1227
991
|
let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {
|
|
1228
992
|
let t = [], n = 0, r = 0, i = 0, a, o = e.length;
|
|
1229
993
|
for (let s = 0; s < o; s++) {
|
|
1230
994
|
let o = e[s];
|
|
1231
995
|
if (n === 0 && r === 0) {
|
|
1232
|
-
if (o ===
|
|
996
|
+
if (o === jt) {
|
|
1233
997
|
t.push(e.slice(i, s)), i = s + 1;
|
|
1234
998
|
continue;
|
|
1235
999
|
}
|
|
@@ -1241,13 +1005,13 @@ var wt = (e, t) => {
|
|
|
1241
1005
|
o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
|
|
1242
1006
|
}
|
|
1243
1007
|
let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
|
|
1244
|
-
s.endsWith(
|
|
1008
|
+
s.endsWith(At) ? (c = s.slice(0, -1), l = !0) : s.startsWith(At) && (c = s.slice(1), l = !0);
|
|
1245
1009
|
let u = a && a > i ? a - i : void 0;
|
|
1246
|
-
return
|
|
1010
|
+
return Nt(t, l, c, u);
|
|
1247
1011
|
};
|
|
1248
1012
|
if (t) {
|
|
1249
|
-
let e = t +
|
|
1250
|
-
r = (t) => t.startsWith(e) ? n(t.slice(e.length)) :
|
|
1013
|
+
let e = t + jt, n = r;
|
|
1014
|
+
r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : Nt(Mt, !1, t, void 0, !0);
|
|
1251
1015
|
}
|
|
1252
1016
|
if (n) {
|
|
1253
1017
|
let e = r;
|
|
@@ -1257,7 +1021,7 @@ var wt = (e, t) => {
|
|
|
1257
1021
|
});
|
|
1258
1022
|
}
|
|
1259
1023
|
return r;
|
|
1260
|
-
},
|
|
1024
|
+
}, Ft = (e) => {
|
|
1261
1025
|
let t = /* @__PURE__ */ new Map();
|
|
1262
1026
|
return e.orderSensitiveModifiers.forEach((e, n) => {
|
|
1263
1027
|
t.set(e, 1e6 + n);
|
|
@@ -1269,18 +1033,18 @@ var wt = (e, t) => {
|
|
|
1269
1033
|
}
|
|
1270
1034
|
return r.length > 0 && (r.sort(), n.push(...r)), n;
|
|
1271
1035
|
};
|
|
1272
|
-
},
|
|
1273
|
-
cache:
|
|
1274
|
-
parseClassName:
|
|
1275
|
-
sortModifiers:
|
|
1276
|
-
postfixLookupClassGroupIds:
|
|
1277
|
-
...
|
|
1278
|
-
}),
|
|
1036
|
+
}, It = (e) => ({
|
|
1037
|
+
cache: kt(e.cacheSize),
|
|
1038
|
+
parseClassName: Pt(e),
|
|
1039
|
+
sortModifiers: Ft(e),
|
|
1040
|
+
postfixLookupClassGroupIds: Lt(e),
|
|
1041
|
+
..._t(e)
|
|
1042
|
+
}), Lt = (e) => {
|
|
1279
1043
|
let t = Object.create(null), n = e.postfixLookupClassGroups;
|
|
1280
1044
|
if (n) for (let e = 0; e < n.length; e++) t[n[e]] = !0;
|
|
1281
1045
|
return t;
|
|
1282
|
-
},
|
|
1283
|
-
let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(
|
|
1046
|
+
}, Rt = /\s+/, zt = (e, t) => {
|
|
1047
|
+
let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(Rt), l = "";
|
|
1284
1048
|
for (let e = c.length - 1; e >= 0; --e) {
|
|
1285
1049
|
let t = c[e], { isExternal: u, modifiers: d, hasImportantModifier: f, baseClassName: p, maybePostfixModifierPosition: m } = n(t);
|
|
1286
1050
|
if (u) {
|
|
@@ -1304,7 +1068,7 @@ var wt = (e, t) => {
|
|
|
1304
1068
|
}
|
|
1305
1069
|
h = !1;
|
|
1306
1070
|
}
|
|
1307
|
-
let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ +
|
|
1071
|
+
let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + At : _, y = v + g;
|
|
1308
1072
|
if (s.indexOf(y) > -1) continue;
|
|
1309
1073
|
s.push(y);
|
|
1310
1074
|
let b = i(g, h);
|
|
@@ -1315,33 +1079,33 @@ var wt = (e, t) => {
|
|
|
1315
1079
|
l = t + (l.length > 0 ? " " + l : l);
|
|
1316
1080
|
}
|
|
1317
1081
|
return l;
|
|
1318
|
-
},
|
|
1082
|
+
}, Bt = (...e) => {
|
|
1319
1083
|
let t = 0, n, r, i = "";
|
|
1320
|
-
for (; t < e.length;) (n = e[t++]) && (r =
|
|
1084
|
+
for (; t < e.length;) (n = e[t++]) && (r = Vt(n)) && (i && (i += " "), i += r);
|
|
1321
1085
|
return i;
|
|
1322
|
-
},
|
|
1086
|
+
}, Vt = (e) => {
|
|
1323
1087
|
if (typeof e == "string") return e;
|
|
1324
1088
|
let t, n = "";
|
|
1325
|
-
for (let r = 0; r < e.length; r++) e[r] && (t =
|
|
1089
|
+
for (let r = 0; r < e.length; r++) e[r] && (t = Vt(e[r])) && (n && (n += " "), n += t);
|
|
1326
1090
|
return n;
|
|
1327
|
-
},
|
|
1328
|
-
let n, r, i, a, o = (o) => (n =
|
|
1091
|
+
}, Ht = (e, ...t) => {
|
|
1092
|
+
let n, r, i, a, o = (o) => (n = It(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
|
|
1329
1093
|
let t = r(e);
|
|
1330
1094
|
if (t) return t;
|
|
1331
|
-
let a =
|
|
1095
|
+
let a = zt(e, n);
|
|
1332
1096
|
return i(e, a), a;
|
|
1333
1097
|
};
|
|
1334
|
-
return a = o, (...e) => a(
|
|
1335
|
-
},
|
|
1336
|
-
let t = (t) => t[e] ||
|
|
1098
|
+
return a = o, (...e) => a(Bt(...e));
|
|
1099
|
+
}, Ut = [], W = (e) => {
|
|
1100
|
+
let t = (t) => t[e] || Ut;
|
|
1337
1101
|
return t.isThemeGetter = !0, t;
|
|
1338
|
-
},
|
|
1339
|
-
let r =
|
|
1102
|
+
}, Wt = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Gt = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Kt = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, qt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Jt = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Yt = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Xt = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Zt = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, G = (e) => Kt.test(e), K = (e) => !!e && !Number.isNaN(Number(e)), q = (e) => !!e && Number.isInteger(Number(e)), Qt = (e) => e.endsWith("%") && K(e.slice(0, -1)), J = (e) => qt.test(e), $t = () => !0, en = (e) => Jt.test(e) && !Yt.test(e), tn = () => !1, nn = (e) => Xt.test(e), rn = (e) => Zt.test(e), an = (e) => !Y(e) && !Z(e), on = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), sn = (e) => Q(e, Cn, tn), Y = (e) => Wt.test(e), X = (e) => Q(e, wn, en), cn = (e) => Q(e, Tn, K), ln = (e) => Q(e, Dn, $t), un = (e) => Q(e, En, tn), dn = (e) => Q(e, xn, tn), fn = (e) => Q(e, Sn, rn), pn = (e) => Q(e, On, nn), Z = (e) => Gt.test(e), mn = (e) => $(e, wn), hn = (e) => $(e, En), gn = (e) => $(e, xn), _n = (e) => $(e, Cn), vn = (e) => $(e, Sn), yn = (e) => $(e, On, !0), bn = (e) => $(e, Dn, !0), Q = (e, t, n) => {
|
|
1103
|
+
let r = Wt.exec(e);
|
|
1340
1104
|
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
1341
1105
|
}, $ = (e, t, n = !1) => {
|
|
1342
|
-
let r =
|
|
1106
|
+
let r = Gt.exec(e);
|
|
1343
1107
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
1344
|
-
},
|
|
1108
|
+
}, xn = (e) => e === "position" || e === "percentage", Sn = (e) => e === "image" || e === "url", Cn = (e) => e === "length" || e === "size" || e === "bg-size", wn = (e) => e === "length", Tn = (e) => e === "number", En = (e) => e === "family-name", Dn = (e) => e === "number" || e === "weight", On = (e) => e === "shadow", kn = /*#__PURE__*/ Ht(() => {
|
|
1345
1109
|
let e = W("color"), t = W("font"), n = W("text"), r = W("font-weight"), i = W("tracking"), a = W("leading"), o = W("breakpoint"), s = W("container"), c = W("spacing"), l = W("radius"), u = W("shadow"), d = W("inset-shadow"), f = W("text-shadow"), p = W("drop-shadow"), m = W("blur"), h = W("perspective"), g = W("aspect"), _ = W("ease"), v = W("animate"), y = () => [
|
|
1346
1110
|
"auto",
|
|
1347
1111
|
"avoid",
|
|
@@ -1375,26 +1139,26 @@ var wt = (e, t) => {
|
|
|
1375
1139
|
"clip",
|
|
1376
1140
|
"visible",
|
|
1377
1141
|
"scroll"
|
|
1378
|
-
],
|
|
1142
|
+
], C = () => [
|
|
1379
1143
|
"auto",
|
|
1380
1144
|
"contain",
|
|
1381
1145
|
"none"
|
|
1382
|
-
],
|
|
1146
|
+
], w = () => [
|
|
1383
1147
|
Z,
|
|
1384
1148
|
Y,
|
|
1385
1149
|
c
|
|
1386
|
-
],
|
|
1150
|
+
], T = () => [
|
|
1387
1151
|
G,
|
|
1388
1152
|
"full",
|
|
1389
1153
|
"auto",
|
|
1390
|
-
...
|
|
1391
|
-
],
|
|
1154
|
+
...w()
|
|
1155
|
+
], E = () => [
|
|
1392
1156
|
q,
|
|
1393
1157
|
"none",
|
|
1394
1158
|
"subgrid",
|
|
1395
1159
|
Z,
|
|
1396
1160
|
Y
|
|
1397
|
-
],
|
|
1161
|
+
], D = () => [
|
|
1398
1162
|
"auto",
|
|
1399
1163
|
{ span: [
|
|
1400
1164
|
"full",
|
|
@@ -1405,19 +1169,19 @@ var wt = (e, t) => {
|
|
|
1405
1169
|
q,
|
|
1406
1170
|
Z,
|
|
1407
1171
|
Y
|
|
1408
|
-
],
|
|
1172
|
+
], O = () => [
|
|
1409
1173
|
q,
|
|
1410
1174
|
"auto",
|
|
1411
1175
|
Z,
|
|
1412
1176
|
Y
|
|
1413
|
-
],
|
|
1177
|
+
], k = () => [
|
|
1414
1178
|
"auto",
|
|
1415
1179
|
"min",
|
|
1416
1180
|
"max",
|
|
1417
1181
|
"fr",
|
|
1418
1182
|
Z,
|
|
1419
1183
|
Y
|
|
1420
|
-
],
|
|
1184
|
+
], A = () => [
|
|
1421
1185
|
"start",
|
|
1422
1186
|
"end",
|
|
1423
1187
|
"center",
|
|
@@ -1428,14 +1192,14 @@ var wt = (e, t) => {
|
|
|
1428
1192
|
"baseline",
|
|
1429
1193
|
"center-safe",
|
|
1430
1194
|
"end-safe"
|
|
1431
|
-
],
|
|
1195
|
+
], j = () => [
|
|
1432
1196
|
"start",
|
|
1433
1197
|
"end",
|
|
1434
1198
|
"center",
|
|
1435
1199
|
"stretch",
|
|
1436
1200
|
"center-safe",
|
|
1437
1201
|
"end-safe"
|
|
1438
|
-
],
|
|
1202
|
+
], M = () => ["auto", ...w()], N = () => [
|
|
1439
1203
|
G,
|
|
1440
1204
|
"auto",
|
|
1441
1205
|
"full",
|
|
@@ -1448,8 +1212,8 @@ var wt = (e, t) => {
|
|
|
1448
1212
|
"min",
|
|
1449
1213
|
"max",
|
|
1450
1214
|
"fit",
|
|
1451
|
-
...
|
|
1452
|
-
],
|
|
1215
|
+
...w()
|
|
1216
|
+
], P = () => [
|
|
1453
1217
|
G,
|
|
1454
1218
|
"screen",
|
|
1455
1219
|
"full",
|
|
@@ -1459,8 +1223,8 @@ var wt = (e, t) => {
|
|
|
1459
1223
|
"min",
|
|
1460
1224
|
"max",
|
|
1461
1225
|
"fit",
|
|
1462
|
-
...
|
|
1463
|
-
],
|
|
1226
|
+
...w()
|
|
1227
|
+
], ee = () => [
|
|
1464
1228
|
G,
|
|
1465
1229
|
"screen",
|
|
1466
1230
|
"full",
|
|
@@ -1471,51 +1235,51 @@ var wt = (e, t) => {
|
|
|
1471
1235
|
"min",
|
|
1472
1236
|
"max",
|
|
1473
1237
|
"fit",
|
|
1474
|
-
...
|
|
1475
|
-
],
|
|
1238
|
+
...w()
|
|
1239
|
+
], F = () => [
|
|
1476
1240
|
e,
|
|
1477
1241
|
Z,
|
|
1478
1242
|
Y
|
|
1479
|
-
],
|
|
1243
|
+
], te = () => [
|
|
1480
1244
|
...b(),
|
|
1481
|
-
|
|
1482
|
-
|
|
1245
|
+
gn,
|
|
1246
|
+
dn,
|
|
1483
1247
|
{ position: [Z, Y] }
|
|
1484
|
-
],
|
|
1248
|
+
], ne = () => ["no-repeat", { repeat: [
|
|
1485
1249
|
"",
|
|
1486
1250
|
"x",
|
|
1487
1251
|
"y",
|
|
1488
1252
|
"space",
|
|
1489
1253
|
"round"
|
|
1490
|
-
] }],
|
|
1254
|
+
] }], re = () => [
|
|
1491
1255
|
"auto",
|
|
1492
1256
|
"cover",
|
|
1493
1257
|
"contain",
|
|
1494
|
-
|
|
1495
|
-
|
|
1258
|
+
_n,
|
|
1259
|
+
sn,
|
|
1496
1260
|
{ size: [Z, Y] }
|
|
1497
|
-
],
|
|
1498
|
-
|
|
1499
|
-
|
|
1261
|
+
], ie = () => [
|
|
1262
|
+
Qt,
|
|
1263
|
+
mn,
|
|
1500
1264
|
X
|
|
1501
|
-
],
|
|
1265
|
+
], I = () => [
|
|
1502
1266
|
"",
|
|
1503
1267
|
"none",
|
|
1504
1268
|
"full",
|
|
1505
1269
|
l,
|
|
1506
1270
|
Z,
|
|
1507
1271
|
Y
|
|
1508
|
-
],
|
|
1272
|
+
], L = () => [
|
|
1509
1273
|
"",
|
|
1510
1274
|
K,
|
|
1511
|
-
|
|
1275
|
+
mn,
|
|
1512
1276
|
X
|
|
1513
|
-
],
|
|
1277
|
+
], ae = () => [
|
|
1514
1278
|
"solid",
|
|
1515
1279
|
"dashed",
|
|
1516
1280
|
"dotted",
|
|
1517
1281
|
"double"
|
|
1518
|
-
],
|
|
1282
|
+
], oe = () => [
|
|
1519
1283
|
"normal",
|
|
1520
1284
|
"multiply",
|
|
1521
1285
|
"screen",
|
|
@@ -1532,23 +1296,23 @@ var wt = (e, t) => {
|
|
|
1532
1296
|
"saturation",
|
|
1533
1297
|
"color",
|
|
1534
1298
|
"luminosity"
|
|
1535
|
-
],
|
|
1299
|
+
], R = () => [
|
|
1536
1300
|
K,
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
],
|
|
1301
|
+
Qt,
|
|
1302
|
+
gn,
|
|
1303
|
+
dn
|
|
1304
|
+
], se = () => [
|
|
1541
1305
|
"",
|
|
1542
1306
|
"none",
|
|
1543
1307
|
m,
|
|
1544
1308
|
Z,
|
|
1545
1309
|
Y
|
|
1546
|
-
],
|
|
1310
|
+
], ce = () => [
|
|
1547
1311
|
"none",
|
|
1548
1312
|
K,
|
|
1549
1313
|
Z,
|
|
1550
1314
|
Y
|
|
1551
|
-
],
|
|
1315
|
+
], le = () => [
|
|
1552
1316
|
"none",
|
|
1553
1317
|
K,
|
|
1554
1318
|
Z,
|
|
@@ -1560,7 +1324,7 @@ var wt = (e, t) => {
|
|
|
1560
1324
|
], de = () => [
|
|
1561
1325
|
G,
|
|
1562
1326
|
"full",
|
|
1563
|
-
...
|
|
1327
|
+
...w()
|
|
1564
1328
|
];
|
|
1565
1329
|
return {
|
|
1566
1330
|
cacheSize: 500,
|
|
@@ -1574,7 +1338,7 @@ var wt = (e, t) => {
|
|
|
1574
1338
|
aspect: ["video"],
|
|
1575
1339
|
blur: [J],
|
|
1576
1340
|
breakpoint: [J],
|
|
1577
|
-
color: [
|
|
1341
|
+
color: [$t],
|
|
1578
1342
|
container: [J],
|
|
1579
1343
|
"drop-shadow": [J],
|
|
1580
1344
|
ease: [
|
|
@@ -1582,7 +1346,7 @@ var wt = (e, t) => {
|
|
|
1582
1346
|
"out",
|
|
1583
1347
|
"in-out"
|
|
1584
1348
|
],
|
|
1585
|
-
font: [
|
|
1349
|
+
font: [an],
|
|
1586
1350
|
"font-weight": [
|
|
1587
1351
|
"thin",
|
|
1588
1352
|
"extralight",
|
|
@@ -1642,7 +1406,7 @@ var wt = (e, t) => {
|
|
|
1642
1406
|
Z,
|
|
1643
1407
|
Y
|
|
1644
1408
|
] }],
|
|
1645
|
-
"container-named": [
|
|
1409
|
+
"container-named": [on],
|
|
1646
1410
|
columns: [{ columns: [
|
|
1647
1411
|
K,
|
|
1648
1412
|
Y,
|
|
@@ -1710,9 +1474,9 @@ var wt = (e, t) => {
|
|
|
1710
1474
|
overflow: [{ overflow: S() }],
|
|
1711
1475
|
"overflow-x": [{ "overflow-x": S() }],
|
|
1712
1476
|
"overflow-y": [{ "overflow-y": S() }],
|
|
1713
|
-
overscroll: [{ overscroll:
|
|
1714
|
-
"overscroll-x": [{ "overscroll-x":
|
|
1715
|
-
"overscroll-y": [{ "overscroll-y":
|
|
1477
|
+
overscroll: [{ overscroll: C() }],
|
|
1478
|
+
"overscroll-x": [{ "overscroll-x": C() }],
|
|
1479
|
+
"overscroll-y": [{ "overscroll-y": C() }],
|
|
1716
1480
|
position: [
|
|
1717
1481
|
"static",
|
|
1718
1482
|
"fixed",
|
|
@@ -1720,23 +1484,23 @@ var wt = (e, t) => {
|
|
|
1720
1484
|
"relative",
|
|
1721
1485
|
"sticky"
|
|
1722
1486
|
],
|
|
1723
|
-
inset: [{ inset:
|
|
1724
|
-
"inset-x": [{ "inset-x":
|
|
1725
|
-
"inset-y": [{ "inset-y":
|
|
1487
|
+
inset: [{ inset: T() }],
|
|
1488
|
+
"inset-x": [{ "inset-x": T() }],
|
|
1489
|
+
"inset-y": [{ "inset-y": T() }],
|
|
1726
1490
|
start: [{
|
|
1727
|
-
"inset-s":
|
|
1728
|
-
start:
|
|
1491
|
+
"inset-s": T(),
|
|
1492
|
+
start: T()
|
|
1729
1493
|
}],
|
|
1730
1494
|
end: [{
|
|
1731
|
-
"inset-e":
|
|
1732
|
-
end:
|
|
1495
|
+
"inset-e": T(),
|
|
1496
|
+
end: T()
|
|
1733
1497
|
}],
|
|
1734
|
-
"inset-bs": [{ "inset-bs":
|
|
1735
|
-
"inset-be": [{ "inset-be":
|
|
1736
|
-
top: [{ top:
|
|
1737
|
-
right: [{ right:
|
|
1738
|
-
bottom: [{ bottom:
|
|
1739
|
-
left: [{ left:
|
|
1498
|
+
"inset-bs": [{ "inset-bs": T() }],
|
|
1499
|
+
"inset-be": [{ "inset-be": T() }],
|
|
1500
|
+
top: [{ top: T() }],
|
|
1501
|
+
right: [{ right: T() }],
|
|
1502
|
+
bottom: [{ bottom: T() }],
|
|
1503
|
+
left: [{ left: T() }],
|
|
1740
1504
|
visibility: [
|
|
1741
1505
|
"visible",
|
|
1742
1506
|
"invisible",
|
|
@@ -1753,7 +1517,7 @@ var wt = (e, t) => {
|
|
|
1753
1517
|
"full",
|
|
1754
1518
|
"auto",
|
|
1755
1519
|
s,
|
|
1756
|
-
...
|
|
1520
|
+
...w()
|
|
1757
1521
|
] }],
|
|
1758
1522
|
"flex-direction": [{ flex: [
|
|
1759
1523
|
"row",
|
|
@@ -1794,14 +1558,14 @@ var wt = (e, t) => {
|
|
|
1794
1558
|
Z,
|
|
1795
1559
|
Y
|
|
1796
1560
|
] }],
|
|
1797
|
-
"grid-cols": [{ "grid-cols":
|
|
1798
|
-
"col-start-end": [{ col:
|
|
1799
|
-
"col-start": [{ "col-start":
|
|
1800
|
-
"col-end": [{ "col-end":
|
|
1801
|
-
"grid-rows": [{ "grid-rows":
|
|
1802
|
-
"row-start-end": [{ row:
|
|
1803
|
-
"row-start": [{ "row-start":
|
|
1804
|
-
"row-end": [{ "row-end":
|
|
1561
|
+
"grid-cols": [{ "grid-cols": E() }],
|
|
1562
|
+
"col-start-end": [{ col: D() }],
|
|
1563
|
+
"col-start": [{ "col-start": O() }],
|
|
1564
|
+
"col-end": [{ "col-end": O() }],
|
|
1565
|
+
"grid-rows": [{ "grid-rows": E() }],
|
|
1566
|
+
"row-start-end": [{ row: D() }],
|
|
1567
|
+
"row-start": [{ "row-start": O() }],
|
|
1568
|
+
"row-end": [{ "row-end": O() }],
|
|
1805
1569
|
"grid-flow": [{ "grid-flow": [
|
|
1806
1570
|
"row",
|
|
1807
1571
|
"col",
|
|
@@ -1809,67 +1573,67 @@ var wt = (e, t) => {
|
|
|
1809
1573
|
"row-dense",
|
|
1810
1574
|
"col-dense"
|
|
1811
1575
|
] }],
|
|
1812
|
-
"auto-cols": [{ "auto-cols":
|
|
1813
|
-
"auto-rows": [{ "auto-rows":
|
|
1814
|
-
gap: [{ gap:
|
|
1815
|
-
"gap-x": [{ "gap-x":
|
|
1816
|
-
"gap-y": [{ "gap-y":
|
|
1817
|
-
"justify-content": [{ justify: [...
|
|
1818
|
-
"justify-items": [{ "justify-items": [...
|
|
1819
|
-
"justify-self": [{ "justify-self": ["auto", ...
|
|
1820
|
-
"align-content": [{ content: ["normal", ...
|
|
1821
|
-
"align-items": [{ items: [...
|
|
1576
|
+
"auto-cols": [{ "auto-cols": k() }],
|
|
1577
|
+
"auto-rows": [{ "auto-rows": k() }],
|
|
1578
|
+
gap: [{ gap: w() }],
|
|
1579
|
+
"gap-x": [{ "gap-x": w() }],
|
|
1580
|
+
"gap-y": [{ "gap-y": w() }],
|
|
1581
|
+
"justify-content": [{ justify: [...A(), "normal"] }],
|
|
1582
|
+
"justify-items": [{ "justify-items": [...j(), "normal"] }],
|
|
1583
|
+
"justify-self": [{ "justify-self": ["auto", ...j()] }],
|
|
1584
|
+
"align-content": [{ content: ["normal", ...A()] }],
|
|
1585
|
+
"align-items": [{ items: [...j(), { baseline: ["", "last"] }] }],
|
|
1822
1586
|
"align-self": [{ self: [
|
|
1823
1587
|
"auto",
|
|
1824
|
-
...
|
|
1588
|
+
...j(),
|
|
1825
1589
|
{ baseline: ["", "last"] }
|
|
1826
1590
|
] }],
|
|
1827
|
-
"place-content": [{ "place-content":
|
|
1828
|
-
"place-items": [{ "place-items": [...
|
|
1829
|
-
"place-self": [{ "place-self": ["auto", ...
|
|
1830
|
-
p: [{ p:
|
|
1831
|
-
px: [{ px:
|
|
1832
|
-
py: [{ py:
|
|
1833
|
-
ps: [{ ps:
|
|
1834
|
-
pe: [{ pe:
|
|
1835
|
-
pbs: [{ pbs:
|
|
1836
|
-
pbe: [{ pbe:
|
|
1837
|
-
pt: [{ pt:
|
|
1838
|
-
pr: [{ pr:
|
|
1839
|
-
pb: [{ pb:
|
|
1840
|
-
pl: [{ pl:
|
|
1841
|
-
m: [{ m:
|
|
1842
|
-
mx: [{ mx:
|
|
1843
|
-
my: [{ my:
|
|
1844
|
-
ms: [{ ms:
|
|
1845
|
-
me: [{ me:
|
|
1846
|
-
mbs: [{ mbs:
|
|
1847
|
-
mbe: [{ mbe:
|
|
1848
|
-
mt: [{ mt:
|
|
1849
|
-
mr: [{ mr:
|
|
1850
|
-
mb: [{ mb:
|
|
1851
|
-
ml: [{ ml:
|
|
1852
|
-
"space-x": [{ "space-x":
|
|
1591
|
+
"place-content": [{ "place-content": A() }],
|
|
1592
|
+
"place-items": [{ "place-items": [...j(), "baseline"] }],
|
|
1593
|
+
"place-self": [{ "place-self": ["auto", ...j()] }],
|
|
1594
|
+
p: [{ p: w() }],
|
|
1595
|
+
px: [{ px: w() }],
|
|
1596
|
+
py: [{ py: w() }],
|
|
1597
|
+
ps: [{ ps: w() }],
|
|
1598
|
+
pe: [{ pe: w() }],
|
|
1599
|
+
pbs: [{ pbs: w() }],
|
|
1600
|
+
pbe: [{ pbe: w() }],
|
|
1601
|
+
pt: [{ pt: w() }],
|
|
1602
|
+
pr: [{ pr: w() }],
|
|
1603
|
+
pb: [{ pb: w() }],
|
|
1604
|
+
pl: [{ pl: w() }],
|
|
1605
|
+
m: [{ m: M() }],
|
|
1606
|
+
mx: [{ mx: M() }],
|
|
1607
|
+
my: [{ my: M() }],
|
|
1608
|
+
ms: [{ ms: M() }],
|
|
1609
|
+
me: [{ me: M() }],
|
|
1610
|
+
mbs: [{ mbs: M() }],
|
|
1611
|
+
mbe: [{ mbe: M() }],
|
|
1612
|
+
mt: [{ mt: M() }],
|
|
1613
|
+
mr: [{ mr: M() }],
|
|
1614
|
+
mb: [{ mb: M() }],
|
|
1615
|
+
ml: [{ ml: M() }],
|
|
1616
|
+
"space-x": [{ "space-x": w() }],
|
|
1853
1617
|
"space-x-reverse": ["space-x-reverse"],
|
|
1854
|
-
"space-y": [{ "space-y":
|
|
1618
|
+
"space-y": [{ "space-y": w() }],
|
|
1855
1619
|
"space-y-reverse": ["space-y-reverse"],
|
|
1856
|
-
size: [{ size:
|
|
1857
|
-
"inline-size": [{ inline: ["auto", ...
|
|
1858
|
-
"min-inline-size": [{ "min-inline": ["auto", ...
|
|
1859
|
-
"max-inline-size": [{ "max-inline": ["none", ...
|
|
1860
|
-
"block-size": [{ block: ["auto", ...
|
|
1861
|
-
"min-block-size": [{ "min-block": ["auto", ...
|
|
1862
|
-
"max-block-size": [{ "max-block": ["none", ...
|
|
1620
|
+
size: [{ size: N() }],
|
|
1621
|
+
"inline-size": [{ inline: ["auto", ...P()] }],
|
|
1622
|
+
"min-inline-size": [{ "min-inline": ["auto", ...P()] }],
|
|
1623
|
+
"max-inline-size": [{ "max-inline": ["none", ...P()] }],
|
|
1624
|
+
"block-size": [{ block: ["auto", ...ee()] }],
|
|
1625
|
+
"min-block-size": [{ "min-block": ["auto", ...ee()] }],
|
|
1626
|
+
"max-block-size": [{ "max-block": ["none", ...ee()] }],
|
|
1863
1627
|
w: [{ w: [
|
|
1864
1628
|
s,
|
|
1865
1629
|
"screen",
|
|
1866
|
-
...
|
|
1630
|
+
...N()
|
|
1867
1631
|
] }],
|
|
1868
1632
|
"min-w": [{ "min-w": [
|
|
1869
1633
|
s,
|
|
1870
1634
|
"screen",
|
|
1871
1635
|
"none",
|
|
1872
|
-
...
|
|
1636
|
+
...N()
|
|
1873
1637
|
] }],
|
|
1874
1638
|
"max-w": [{ "max-w": [
|
|
1875
1639
|
s,
|
|
@@ -1877,36 +1641,36 @@ var wt = (e, t) => {
|
|
|
1877
1641
|
"none",
|
|
1878
1642
|
"prose",
|
|
1879
1643
|
{ screen: [o] },
|
|
1880
|
-
...
|
|
1644
|
+
...N()
|
|
1881
1645
|
] }],
|
|
1882
1646
|
h: [{ h: [
|
|
1883
1647
|
"screen",
|
|
1884
1648
|
"lh",
|
|
1885
|
-
...
|
|
1649
|
+
...N()
|
|
1886
1650
|
] }],
|
|
1887
1651
|
"min-h": [{ "min-h": [
|
|
1888
1652
|
"screen",
|
|
1889
1653
|
"lh",
|
|
1890
1654
|
"none",
|
|
1891
|
-
...
|
|
1655
|
+
...N()
|
|
1892
1656
|
] }],
|
|
1893
1657
|
"max-h": [{ "max-h": [
|
|
1894
1658
|
"screen",
|
|
1895
1659
|
"lh",
|
|
1896
|
-
...
|
|
1660
|
+
...N()
|
|
1897
1661
|
] }],
|
|
1898
1662
|
"font-size": [{ text: [
|
|
1899
1663
|
"base",
|
|
1900
1664
|
n,
|
|
1901
|
-
|
|
1665
|
+
mn,
|
|
1902
1666
|
X
|
|
1903
1667
|
] }],
|
|
1904
1668
|
"font-smoothing": ["antialiased", "subpixel-antialiased"],
|
|
1905
1669
|
"font-style": ["italic", "not-italic"],
|
|
1906
1670
|
"font-weight": [{ font: [
|
|
1907
1671
|
r,
|
|
1908
|
-
|
|
1909
|
-
|
|
1672
|
+
bn,
|
|
1673
|
+
ln
|
|
1910
1674
|
] }],
|
|
1911
1675
|
"font-stretch": [{ "font-stretch": [
|
|
1912
1676
|
"ultra-condensed",
|
|
@@ -1918,12 +1682,12 @@ var wt = (e, t) => {
|
|
|
1918
1682
|
"expanded",
|
|
1919
1683
|
"extra-expanded",
|
|
1920
1684
|
"ultra-expanded",
|
|
1921
|
-
|
|
1685
|
+
Qt,
|
|
1922
1686
|
Y
|
|
1923
1687
|
] }],
|
|
1924
1688
|
"font-family": [{ font: [
|
|
1925
|
-
|
|
1926
|
-
|
|
1689
|
+
hn,
|
|
1690
|
+
un,
|
|
1927
1691
|
t
|
|
1928
1692
|
] }],
|
|
1929
1693
|
"font-features": [{ "font-features": [Y] }],
|
|
@@ -1942,9 +1706,9 @@ var wt = (e, t) => {
|
|
|
1942
1706
|
K,
|
|
1943
1707
|
"none",
|
|
1944
1708
|
Z,
|
|
1945
|
-
|
|
1709
|
+
cn
|
|
1946
1710
|
] }],
|
|
1947
|
-
leading: [{ leading: [a, ...
|
|
1711
|
+
leading: [{ leading: [a, ...w()] }],
|
|
1948
1712
|
"list-image": [{ "list-image": [
|
|
1949
1713
|
"none",
|
|
1950
1714
|
Z,
|
|
@@ -1966,15 +1730,15 @@ var wt = (e, t) => {
|
|
|
1966
1730
|
"start",
|
|
1967
1731
|
"end"
|
|
1968
1732
|
] }],
|
|
1969
|
-
"placeholder-color": [{ placeholder:
|
|
1970
|
-
"text-color": [{ text:
|
|
1733
|
+
"placeholder-color": [{ placeholder: F() }],
|
|
1734
|
+
"text-color": [{ text: F() }],
|
|
1971
1735
|
"text-decoration": [
|
|
1972
1736
|
"underline",
|
|
1973
1737
|
"overline",
|
|
1974
1738
|
"line-through",
|
|
1975
1739
|
"no-underline"
|
|
1976
1740
|
],
|
|
1977
|
-
"text-decoration-style": [{ decoration: [...
|
|
1741
|
+
"text-decoration-style": [{ decoration: [...ae(), "wavy"] }],
|
|
1978
1742
|
"text-decoration-thickness": [{ decoration: [
|
|
1979
1743
|
K,
|
|
1980
1744
|
"from-font",
|
|
@@ -1982,7 +1746,7 @@ var wt = (e, t) => {
|
|
|
1982
1746
|
Z,
|
|
1983
1747
|
X
|
|
1984
1748
|
] }],
|
|
1985
|
-
"text-decoration-color": [{ decoration:
|
|
1749
|
+
"text-decoration-color": [{ decoration: F() }],
|
|
1986
1750
|
"underline-offset": [{ "underline-offset": [
|
|
1987
1751
|
K,
|
|
1988
1752
|
"auto",
|
|
@@ -2006,7 +1770,7 @@ var wt = (e, t) => {
|
|
|
2006
1770
|
"balance",
|
|
2007
1771
|
"pretty"
|
|
2008
1772
|
] }],
|
|
2009
|
-
indent: [{ indent:
|
|
1773
|
+
indent: [{ indent: w() }],
|
|
2010
1774
|
"tab-size": [{ tab: [
|
|
2011
1775
|
q,
|
|
2012
1776
|
Z,
|
|
@@ -2069,9 +1833,9 @@ var wt = (e, t) => {
|
|
|
2069
1833
|
"padding",
|
|
2070
1834
|
"content"
|
|
2071
1835
|
] }],
|
|
2072
|
-
"bg-position": [{ bg:
|
|
2073
|
-
"bg-repeat": [{ bg:
|
|
2074
|
-
"bg-size": [{ bg:
|
|
1836
|
+
"bg-position": [{ bg: te() }],
|
|
1837
|
+
"bg-repeat": [{ bg: ne() }],
|
|
1838
|
+
"bg-size": [{ bg: re() }],
|
|
2075
1839
|
"bg-image": [{ bg: [
|
|
2076
1840
|
"none",
|
|
2077
1841
|
{
|
|
@@ -2101,70 +1865,70 @@ var wt = (e, t) => {
|
|
|
2101
1865
|
Y
|
|
2102
1866
|
]
|
|
2103
1867
|
},
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
] }],
|
|
2107
|
-
"bg-color": [{ bg:
|
|
2108
|
-
"gradient-from-pos": [{ from:
|
|
2109
|
-
"gradient-via-pos": [{ via:
|
|
2110
|
-
"gradient-to-pos": [{ to:
|
|
2111
|
-
"gradient-from": [{ from:
|
|
2112
|
-
"gradient-via": [{ via:
|
|
2113
|
-
"gradient-to": [{ to:
|
|
2114
|
-
rounded: [{ rounded:
|
|
2115
|
-
"rounded-s": [{ "rounded-s":
|
|
2116
|
-
"rounded-e": [{ "rounded-e":
|
|
2117
|
-
"rounded-t": [{ "rounded-t":
|
|
2118
|
-
"rounded-r": [{ "rounded-r":
|
|
2119
|
-
"rounded-b": [{ "rounded-b":
|
|
2120
|
-
"rounded-l": [{ "rounded-l":
|
|
2121
|
-
"rounded-ss": [{ "rounded-ss":
|
|
2122
|
-
"rounded-se": [{ "rounded-se":
|
|
2123
|
-
"rounded-ee": [{ "rounded-ee":
|
|
2124
|
-
"rounded-es": [{ "rounded-es":
|
|
2125
|
-
"rounded-tl": [{ "rounded-tl":
|
|
2126
|
-
"rounded-tr": [{ "rounded-tr":
|
|
2127
|
-
"rounded-br": [{ "rounded-br":
|
|
2128
|
-
"rounded-bl": [{ "rounded-bl":
|
|
2129
|
-
"border-w": [{ border:
|
|
2130
|
-
"border-w-x": [{ "border-x":
|
|
2131
|
-
"border-w-y": [{ "border-y":
|
|
2132
|
-
"border-w-s": [{ "border-s":
|
|
2133
|
-
"border-w-e": [{ "border-e":
|
|
2134
|
-
"border-w-bs": [{ "border-bs":
|
|
2135
|
-
"border-w-be": [{ "border-be":
|
|
2136
|
-
"border-w-t": [{ "border-t":
|
|
2137
|
-
"border-w-r": [{ "border-r":
|
|
2138
|
-
"border-w-b": [{ "border-b":
|
|
2139
|
-
"border-w-l": [{ "border-l":
|
|
2140
|
-
"divide-x": [{ "divide-x":
|
|
1868
|
+
vn,
|
|
1869
|
+
fn
|
|
1870
|
+
] }],
|
|
1871
|
+
"bg-color": [{ bg: F() }],
|
|
1872
|
+
"gradient-from-pos": [{ from: ie() }],
|
|
1873
|
+
"gradient-via-pos": [{ via: ie() }],
|
|
1874
|
+
"gradient-to-pos": [{ to: ie() }],
|
|
1875
|
+
"gradient-from": [{ from: F() }],
|
|
1876
|
+
"gradient-via": [{ via: F() }],
|
|
1877
|
+
"gradient-to": [{ to: F() }],
|
|
1878
|
+
rounded: [{ rounded: I() }],
|
|
1879
|
+
"rounded-s": [{ "rounded-s": I() }],
|
|
1880
|
+
"rounded-e": [{ "rounded-e": I() }],
|
|
1881
|
+
"rounded-t": [{ "rounded-t": I() }],
|
|
1882
|
+
"rounded-r": [{ "rounded-r": I() }],
|
|
1883
|
+
"rounded-b": [{ "rounded-b": I() }],
|
|
1884
|
+
"rounded-l": [{ "rounded-l": I() }],
|
|
1885
|
+
"rounded-ss": [{ "rounded-ss": I() }],
|
|
1886
|
+
"rounded-se": [{ "rounded-se": I() }],
|
|
1887
|
+
"rounded-ee": [{ "rounded-ee": I() }],
|
|
1888
|
+
"rounded-es": [{ "rounded-es": I() }],
|
|
1889
|
+
"rounded-tl": [{ "rounded-tl": I() }],
|
|
1890
|
+
"rounded-tr": [{ "rounded-tr": I() }],
|
|
1891
|
+
"rounded-br": [{ "rounded-br": I() }],
|
|
1892
|
+
"rounded-bl": [{ "rounded-bl": I() }],
|
|
1893
|
+
"border-w": [{ border: L() }],
|
|
1894
|
+
"border-w-x": [{ "border-x": L() }],
|
|
1895
|
+
"border-w-y": [{ "border-y": L() }],
|
|
1896
|
+
"border-w-s": [{ "border-s": L() }],
|
|
1897
|
+
"border-w-e": [{ "border-e": L() }],
|
|
1898
|
+
"border-w-bs": [{ "border-bs": L() }],
|
|
1899
|
+
"border-w-be": [{ "border-be": L() }],
|
|
1900
|
+
"border-w-t": [{ "border-t": L() }],
|
|
1901
|
+
"border-w-r": [{ "border-r": L() }],
|
|
1902
|
+
"border-w-b": [{ "border-b": L() }],
|
|
1903
|
+
"border-w-l": [{ "border-l": L() }],
|
|
1904
|
+
"divide-x": [{ "divide-x": L() }],
|
|
2141
1905
|
"divide-x-reverse": ["divide-x-reverse"],
|
|
2142
|
-
"divide-y": [{ "divide-y":
|
|
1906
|
+
"divide-y": [{ "divide-y": L() }],
|
|
2143
1907
|
"divide-y-reverse": ["divide-y-reverse"],
|
|
2144
1908
|
"border-style": [{ border: [
|
|
2145
|
-
...
|
|
1909
|
+
...ae(),
|
|
2146
1910
|
"hidden",
|
|
2147
1911
|
"none"
|
|
2148
1912
|
] }],
|
|
2149
1913
|
"divide-style": [{ divide: [
|
|
2150
|
-
...
|
|
1914
|
+
...ae(),
|
|
2151
1915
|
"hidden",
|
|
2152
1916
|
"none"
|
|
2153
1917
|
] }],
|
|
2154
|
-
"border-color": [{ border:
|
|
2155
|
-
"border-color-x": [{ "border-x":
|
|
2156
|
-
"border-color-y": [{ "border-y":
|
|
2157
|
-
"border-color-s": [{ "border-s":
|
|
2158
|
-
"border-color-e": [{ "border-e":
|
|
2159
|
-
"border-color-bs": [{ "border-bs":
|
|
2160
|
-
"border-color-be": [{ "border-be":
|
|
2161
|
-
"border-color-t": [{ "border-t":
|
|
2162
|
-
"border-color-r": [{ "border-r":
|
|
2163
|
-
"border-color-b": [{ "border-b":
|
|
2164
|
-
"border-color-l": [{ "border-l":
|
|
2165
|
-
"divide-color": [{ divide:
|
|
1918
|
+
"border-color": [{ border: F() }],
|
|
1919
|
+
"border-color-x": [{ "border-x": F() }],
|
|
1920
|
+
"border-color-y": [{ "border-y": F() }],
|
|
1921
|
+
"border-color-s": [{ "border-s": F() }],
|
|
1922
|
+
"border-color-e": [{ "border-e": F() }],
|
|
1923
|
+
"border-color-bs": [{ "border-bs": F() }],
|
|
1924
|
+
"border-color-be": [{ "border-be": F() }],
|
|
1925
|
+
"border-color-t": [{ "border-t": F() }],
|
|
1926
|
+
"border-color-r": [{ "border-r": F() }],
|
|
1927
|
+
"border-color-b": [{ "border-b": F() }],
|
|
1928
|
+
"border-color-l": [{ "border-l": F() }],
|
|
1929
|
+
"divide-color": [{ divide: F() }],
|
|
2166
1930
|
"outline-style": [{ outline: [
|
|
2167
|
-
...
|
|
1931
|
+
...ae(),
|
|
2168
1932
|
"none",
|
|
2169
1933
|
"hidden"
|
|
2170
1934
|
] }],
|
|
@@ -2176,50 +1940,50 @@ var wt = (e, t) => {
|
|
|
2176
1940
|
"outline-w": [{ outline: [
|
|
2177
1941
|
"",
|
|
2178
1942
|
K,
|
|
2179
|
-
|
|
1943
|
+
mn,
|
|
2180
1944
|
X
|
|
2181
1945
|
] }],
|
|
2182
|
-
"outline-color": [{ outline:
|
|
1946
|
+
"outline-color": [{ outline: F() }],
|
|
2183
1947
|
shadow: [{ shadow: [
|
|
2184
1948
|
"",
|
|
2185
1949
|
"none",
|
|
2186
1950
|
u,
|
|
2187
|
-
|
|
2188
|
-
|
|
1951
|
+
yn,
|
|
1952
|
+
pn
|
|
2189
1953
|
] }],
|
|
2190
|
-
"shadow-color": [{ shadow:
|
|
1954
|
+
"shadow-color": [{ shadow: F() }],
|
|
2191
1955
|
"inset-shadow": [{ "inset-shadow": [
|
|
2192
1956
|
"none",
|
|
2193
1957
|
d,
|
|
2194
|
-
|
|
2195
|
-
|
|
1958
|
+
yn,
|
|
1959
|
+
pn
|
|
2196
1960
|
] }],
|
|
2197
|
-
"inset-shadow-color": [{ "inset-shadow":
|
|
2198
|
-
"ring-w": [{ ring:
|
|
1961
|
+
"inset-shadow-color": [{ "inset-shadow": F() }],
|
|
1962
|
+
"ring-w": [{ ring: L() }],
|
|
2199
1963
|
"ring-w-inset": ["ring-inset"],
|
|
2200
|
-
"ring-color": [{ ring:
|
|
1964
|
+
"ring-color": [{ ring: F() }],
|
|
2201
1965
|
"ring-offset-w": [{ "ring-offset": [K, X] }],
|
|
2202
|
-
"ring-offset-color": [{ "ring-offset":
|
|
2203
|
-
"inset-ring-w": [{ "inset-ring":
|
|
2204
|
-
"inset-ring-color": [{ "inset-ring":
|
|
1966
|
+
"ring-offset-color": [{ "ring-offset": F() }],
|
|
1967
|
+
"inset-ring-w": [{ "inset-ring": L() }],
|
|
1968
|
+
"inset-ring-color": [{ "inset-ring": F() }],
|
|
2205
1969
|
"text-shadow": [{ "text-shadow": [
|
|
2206
1970
|
"none",
|
|
2207
1971
|
f,
|
|
2208
|
-
|
|
2209
|
-
|
|
1972
|
+
yn,
|
|
1973
|
+
pn
|
|
2210
1974
|
] }],
|
|
2211
|
-
"text-shadow-color": [{ "text-shadow":
|
|
1975
|
+
"text-shadow-color": [{ "text-shadow": F() }],
|
|
2212
1976
|
opacity: [{ opacity: [
|
|
2213
1977
|
K,
|
|
2214
1978
|
Z,
|
|
2215
1979
|
Y
|
|
2216
1980
|
] }],
|
|
2217
1981
|
"mix-blend": [{ "mix-blend": [
|
|
2218
|
-
...
|
|
1982
|
+
...oe(),
|
|
2219
1983
|
"plus-darker",
|
|
2220
1984
|
"plus-lighter"
|
|
2221
1985
|
] }],
|
|
2222
|
-
"bg-blend": [{ "bg-blend":
|
|
1986
|
+
"bg-blend": [{ "bg-blend": oe() }],
|
|
2223
1987
|
"mask-clip": [{ "mask-clip": [
|
|
2224
1988
|
"border",
|
|
2225
1989
|
"padding",
|
|
@@ -2235,39 +1999,39 @@ var wt = (e, t) => {
|
|
|
2235
1999
|
"exclude"
|
|
2236
2000
|
] }],
|
|
2237
2001
|
"mask-image-linear-pos": [{ "mask-linear": [K] }],
|
|
2238
|
-
"mask-image-linear-from-pos": [{ "mask-linear-from":
|
|
2239
|
-
"mask-image-linear-to-pos": [{ "mask-linear-to":
|
|
2240
|
-
"mask-image-linear-from-color": [{ "mask-linear-from":
|
|
2241
|
-
"mask-image-linear-to-color": [{ "mask-linear-to":
|
|
2242
|
-
"mask-image-t-from-pos": [{ "mask-t-from":
|
|
2243
|
-
"mask-image-t-to-pos": [{ "mask-t-to":
|
|
2244
|
-
"mask-image-t-from-color": [{ "mask-t-from":
|
|
2245
|
-
"mask-image-t-to-color": [{ "mask-t-to":
|
|
2246
|
-
"mask-image-r-from-pos": [{ "mask-r-from":
|
|
2247
|
-
"mask-image-r-to-pos": [{ "mask-r-to":
|
|
2248
|
-
"mask-image-r-from-color": [{ "mask-r-from":
|
|
2249
|
-
"mask-image-r-to-color": [{ "mask-r-to":
|
|
2250
|
-
"mask-image-b-from-pos": [{ "mask-b-from":
|
|
2251
|
-
"mask-image-b-to-pos": [{ "mask-b-to":
|
|
2252
|
-
"mask-image-b-from-color": [{ "mask-b-from":
|
|
2253
|
-
"mask-image-b-to-color": [{ "mask-b-to":
|
|
2254
|
-
"mask-image-l-from-pos": [{ "mask-l-from":
|
|
2255
|
-
"mask-image-l-to-pos": [{ "mask-l-to":
|
|
2256
|
-
"mask-image-l-from-color": [{ "mask-l-from":
|
|
2257
|
-
"mask-image-l-to-color": [{ "mask-l-to":
|
|
2258
|
-
"mask-image-x-from-pos": [{ "mask-x-from":
|
|
2259
|
-
"mask-image-x-to-pos": [{ "mask-x-to":
|
|
2260
|
-
"mask-image-x-from-color": [{ "mask-x-from":
|
|
2261
|
-
"mask-image-x-to-color": [{ "mask-x-to":
|
|
2262
|
-
"mask-image-y-from-pos": [{ "mask-y-from":
|
|
2263
|
-
"mask-image-y-to-pos": [{ "mask-y-to":
|
|
2264
|
-
"mask-image-y-from-color": [{ "mask-y-from":
|
|
2265
|
-
"mask-image-y-to-color": [{ "mask-y-to":
|
|
2002
|
+
"mask-image-linear-from-pos": [{ "mask-linear-from": R() }],
|
|
2003
|
+
"mask-image-linear-to-pos": [{ "mask-linear-to": R() }],
|
|
2004
|
+
"mask-image-linear-from-color": [{ "mask-linear-from": F() }],
|
|
2005
|
+
"mask-image-linear-to-color": [{ "mask-linear-to": F() }],
|
|
2006
|
+
"mask-image-t-from-pos": [{ "mask-t-from": R() }],
|
|
2007
|
+
"mask-image-t-to-pos": [{ "mask-t-to": R() }],
|
|
2008
|
+
"mask-image-t-from-color": [{ "mask-t-from": F() }],
|
|
2009
|
+
"mask-image-t-to-color": [{ "mask-t-to": F() }],
|
|
2010
|
+
"mask-image-r-from-pos": [{ "mask-r-from": R() }],
|
|
2011
|
+
"mask-image-r-to-pos": [{ "mask-r-to": R() }],
|
|
2012
|
+
"mask-image-r-from-color": [{ "mask-r-from": F() }],
|
|
2013
|
+
"mask-image-r-to-color": [{ "mask-r-to": F() }],
|
|
2014
|
+
"mask-image-b-from-pos": [{ "mask-b-from": R() }],
|
|
2015
|
+
"mask-image-b-to-pos": [{ "mask-b-to": R() }],
|
|
2016
|
+
"mask-image-b-from-color": [{ "mask-b-from": F() }],
|
|
2017
|
+
"mask-image-b-to-color": [{ "mask-b-to": F() }],
|
|
2018
|
+
"mask-image-l-from-pos": [{ "mask-l-from": R() }],
|
|
2019
|
+
"mask-image-l-to-pos": [{ "mask-l-to": R() }],
|
|
2020
|
+
"mask-image-l-from-color": [{ "mask-l-from": F() }],
|
|
2021
|
+
"mask-image-l-to-color": [{ "mask-l-to": F() }],
|
|
2022
|
+
"mask-image-x-from-pos": [{ "mask-x-from": R() }],
|
|
2023
|
+
"mask-image-x-to-pos": [{ "mask-x-to": R() }],
|
|
2024
|
+
"mask-image-x-from-color": [{ "mask-x-from": F() }],
|
|
2025
|
+
"mask-image-x-to-color": [{ "mask-x-to": F() }],
|
|
2026
|
+
"mask-image-y-from-pos": [{ "mask-y-from": R() }],
|
|
2027
|
+
"mask-image-y-to-pos": [{ "mask-y-to": R() }],
|
|
2028
|
+
"mask-image-y-from-color": [{ "mask-y-from": F() }],
|
|
2029
|
+
"mask-image-y-to-color": [{ "mask-y-to": F() }],
|
|
2266
2030
|
"mask-image-radial": [{ "mask-radial": [Z, Y] }],
|
|
2267
|
-
"mask-image-radial-from-pos": [{ "mask-radial-from":
|
|
2268
|
-
"mask-image-radial-to-pos": [{ "mask-radial-to":
|
|
2269
|
-
"mask-image-radial-from-color": [{ "mask-radial-from":
|
|
2270
|
-
"mask-image-radial-to-color": [{ "mask-radial-to":
|
|
2031
|
+
"mask-image-radial-from-pos": [{ "mask-radial-from": R() }],
|
|
2032
|
+
"mask-image-radial-to-pos": [{ "mask-radial-to": R() }],
|
|
2033
|
+
"mask-image-radial-from-color": [{ "mask-radial-from": F() }],
|
|
2034
|
+
"mask-image-radial-to-color": [{ "mask-radial-to": F() }],
|
|
2271
2035
|
"mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
|
|
2272
2036
|
"mask-image-radial-size": [{ "mask-radial": [{
|
|
2273
2037
|
closest: ["side", "corner"],
|
|
@@ -2275,10 +2039,10 @@ var wt = (e, t) => {
|
|
|
2275
2039
|
}] }],
|
|
2276
2040
|
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
|
|
2277
2041
|
"mask-image-conic-pos": [{ "mask-conic": [K] }],
|
|
2278
|
-
"mask-image-conic-from-pos": [{ "mask-conic-from":
|
|
2279
|
-
"mask-image-conic-to-pos": [{ "mask-conic-to":
|
|
2280
|
-
"mask-image-conic-from-color": [{ "mask-conic-from":
|
|
2281
|
-
"mask-image-conic-to-color": [{ "mask-conic-to":
|
|
2042
|
+
"mask-image-conic-from-pos": [{ "mask-conic-from": R() }],
|
|
2043
|
+
"mask-image-conic-to-pos": [{ "mask-conic-to": R() }],
|
|
2044
|
+
"mask-image-conic-from-color": [{ "mask-conic-from": F() }],
|
|
2045
|
+
"mask-image-conic-to-color": [{ "mask-conic-to": F() }],
|
|
2282
2046
|
"mask-mode": [{ mask: [
|
|
2283
2047
|
"alpha",
|
|
2284
2048
|
"luminance",
|
|
@@ -2292,9 +2056,9 @@ var wt = (e, t) => {
|
|
|
2292
2056
|
"stroke",
|
|
2293
2057
|
"view"
|
|
2294
2058
|
] }],
|
|
2295
|
-
"mask-position": [{ mask:
|
|
2296
|
-
"mask-repeat": [{ mask:
|
|
2297
|
-
"mask-size": [{ mask:
|
|
2059
|
+
"mask-position": [{ mask: te() }],
|
|
2060
|
+
"mask-repeat": [{ mask: ne() }],
|
|
2061
|
+
"mask-size": [{ mask: re() }],
|
|
2298
2062
|
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
|
|
2299
2063
|
"mask-image": [{ mask: [
|
|
2300
2064
|
"none",
|
|
@@ -2307,7 +2071,7 @@ var wt = (e, t) => {
|
|
|
2307
2071
|
Z,
|
|
2308
2072
|
Y
|
|
2309
2073
|
] }],
|
|
2310
|
-
blur: [{ blur:
|
|
2074
|
+
blur: [{ blur: se() }],
|
|
2311
2075
|
brightness: [{ brightness: [
|
|
2312
2076
|
K,
|
|
2313
2077
|
Z,
|
|
@@ -2322,10 +2086,10 @@ var wt = (e, t) => {
|
|
|
2322
2086
|
"",
|
|
2323
2087
|
"none",
|
|
2324
2088
|
p,
|
|
2325
|
-
|
|
2326
|
-
|
|
2089
|
+
yn,
|
|
2090
|
+
pn
|
|
2327
2091
|
] }],
|
|
2328
|
-
"drop-shadow-color": [{ "drop-shadow":
|
|
2092
|
+
"drop-shadow-color": [{ "drop-shadow": F() }],
|
|
2329
2093
|
grayscale: [{ grayscale: [
|
|
2330
2094
|
"",
|
|
2331
2095
|
K,
|
|
@@ -2360,7 +2124,7 @@ var wt = (e, t) => {
|
|
|
2360
2124
|
Z,
|
|
2361
2125
|
Y
|
|
2362
2126
|
] }],
|
|
2363
|
-
"backdrop-blur": [{ "backdrop-blur":
|
|
2127
|
+
"backdrop-blur": [{ "backdrop-blur": se() }],
|
|
2364
2128
|
"backdrop-brightness": [{ "backdrop-brightness": [
|
|
2365
2129
|
K,
|
|
2366
2130
|
Z,
|
|
@@ -2405,9 +2169,9 @@ var wt = (e, t) => {
|
|
|
2405
2169
|
Y
|
|
2406
2170
|
] }],
|
|
2407
2171
|
"border-collapse": [{ border: ["collapse", "separate"] }],
|
|
2408
|
-
"border-spacing": [{ "border-spacing":
|
|
2409
|
-
"border-spacing-x": [{ "border-spacing-x":
|
|
2410
|
-
"border-spacing-y": [{ "border-spacing-y":
|
|
2172
|
+
"border-spacing": [{ "border-spacing": w() }],
|
|
2173
|
+
"border-spacing-x": [{ "border-spacing-x": w() }],
|
|
2174
|
+
"border-spacing-y": [{ "border-spacing-y": w() }],
|
|
2411
2175
|
"table-layout": [{ table: ["auto", "fixed"] }],
|
|
2412
2176
|
caption: [{ caption: ["top", "bottom"] }],
|
|
2413
2177
|
transition: [{ transition: [
|
|
@@ -2453,14 +2217,14 @@ var wt = (e, t) => {
|
|
|
2453
2217
|
Y
|
|
2454
2218
|
] }],
|
|
2455
2219
|
"perspective-origin": [{ "perspective-origin": x() }],
|
|
2456
|
-
rotate: [{ rotate:
|
|
2457
|
-
"rotate-x": [{ "rotate-x":
|
|
2458
|
-
"rotate-y": [{ "rotate-y":
|
|
2459
|
-
"rotate-z": [{ "rotate-z":
|
|
2460
|
-
scale: [{ scale:
|
|
2461
|
-
"scale-x": [{ "scale-x":
|
|
2462
|
-
"scale-y": [{ "scale-y":
|
|
2463
|
-
"scale-z": [{ "scale-z":
|
|
2220
|
+
rotate: [{ rotate: ce() }],
|
|
2221
|
+
"rotate-x": [{ "rotate-x": ce() }],
|
|
2222
|
+
"rotate-y": [{ "rotate-y": ce() }],
|
|
2223
|
+
"rotate-z": [{ "rotate-z": ce() }],
|
|
2224
|
+
scale: [{ scale: le() }],
|
|
2225
|
+
"scale-x": [{ "scale-x": le() }],
|
|
2226
|
+
"scale-y": [{ "scale-y": le() }],
|
|
2227
|
+
"scale-z": [{ "scale-z": le() }],
|
|
2464
2228
|
"scale-3d": ["scale-3d"],
|
|
2465
2229
|
skew: [{ skew: ue() }],
|
|
2466
2230
|
"skew-x": [{ "skew-x": ue() }],
|
|
@@ -2485,9 +2249,9 @@ var wt = (e, t) => {
|
|
|
2485
2249
|
Z,
|
|
2486
2250
|
Y
|
|
2487
2251
|
] }],
|
|
2488
|
-
accent: [{ accent:
|
|
2252
|
+
accent: [{ accent: F() }],
|
|
2489
2253
|
appearance: [{ appearance: ["none", "auto"] }],
|
|
2490
|
-
"caret-color": [{ caret:
|
|
2254
|
+
"caret-color": [{ caret: F() }],
|
|
2491
2255
|
"color-scheme": [{ scheme: [
|
|
2492
2256
|
"normal",
|
|
2493
2257
|
"dark",
|
|
@@ -2545,8 +2309,8 @@ var wt = (e, t) => {
|
|
|
2545
2309
|
"x"
|
|
2546
2310
|
] }],
|
|
2547
2311
|
"scroll-behavior": [{ scroll: ["auto", "smooth"] }],
|
|
2548
|
-
"scrollbar-thumb-color": [{ "scrollbar-thumb":
|
|
2549
|
-
"scrollbar-track-color": [{ "scrollbar-track":
|
|
2312
|
+
"scrollbar-thumb-color": [{ "scrollbar-thumb": F() }],
|
|
2313
|
+
"scrollbar-track-color": [{ "scrollbar-track": F() }],
|
|
2550
2314
|
"scrollbar-gutter": [{ "scrollbar-gutter": [
|
|
2551
2315
|
"auto",
|
|
2552
2316
|
"stable",
|
|
@@ -2557,28 +2321,28 @@ var wt = (e, t) => {
|
|
|
2557
2321
|
"thin",
|
|
2558
2322
|
"none"
|
|
2559
2323
|
] }],
|
|
2560
|
-
"scroll-m": [{ "scroll-m":
|
|
2561
|
-
"scroll-mx": [{ "scroll-mx":
|
|
2562
|
-
"scroll-my": [{ "scroll-my":
|
|
2563
|
-
"scroll-ms": [{ "scroll-ms":
|
|
2564
|
-
"scroll-me": [{ "scroll-me":
|
|
2565
|
-
"scroll-mbs": [{ "scroll-mbs":
|
|
2566
|
-
"scroll-mbe": [{ "scroll-mbe":
|
|
2567
|
-
"scroll-mt": [{ "scroll-mt":
|
|
2568
|
-
"scroll-mr": [{ "scroll-mr":
|
|
2569
|
-
"scroll-mb": [{ "scroll-mb":
|
|
2570
|
-
"scroll-ml": [{ "scroll-ml":
|
|
2571
|
-
"scroll-p": [{ "scroll-p":
|
|
2572
|
-
"scroll-px": [{ "scroll-px":
|
|
2573
|
-
"scroll-py": [{ "scroll-py":
|
|
2574
|
-
"scroll-ps": [{ "scroll-ps":
|
|
2575
|
-
"scroll-pe": [{ "scroll-pe":
|
|
2576
|
-
"scroll-pbs": [{ "scroll-pbs":
|
|
2577
|
-
"scroll-pbe": [{ "scroll-pbe":
|
|
2578
|
-
"scroll-pt": [{ "scroll-pt":
|
|
2579
|
-
"scroll-pr": [{ "scroll-pr":
|
|
2580
|
-
"scroll-pb": [{ "scroll-pb":
|
|
2581
|
-
"scroll-pl": [{ "scroll-pl":
|
|
2324
|
+
"scroll-m": [{ "scroll-m": w() }],
|
|
2325
|
+
"scroll-mx": [{ "scroll-mx": w() }],
|
|
2326
|
+
"scroll-my": [{ "scroll-my": w() }],
|
|
2327
|
+
"scroll-ms": [{ "scroll-ms": w() }],
|
|
2328
|
+
"scroll-me": [{ "scroll-me": w() }],
|
|
2329
|
+
"scroll-mbs": [{ "scroll-mbs": w() }],
|
|
2330
|
+
"scroll-mbe": [{ "scroll-mbe": w() }],
|
|
2331
|
+
"scroll-mt": [{ "scroll-mt": w() }],
|
|
2332
|
+
"scroll-mr": [{ "scroll-mr": w() }],
|
|
2333
|
+
"scroll-mb": [{ "scroll-mb": w() }],
|
|
2334
|
+
"scroll-ml": [{ "scroll-ml": w() }],
|
|
2335
|
+
"scroll-p": [{ "scroll-p": w() }],
|
|
2336
|
+
"scroll-px": [{ "scroll-px": w() }],
|
|
2337
|
+
"scroll-py": [{ "scroll-py": w() }],
|
|
2338
|
+
"scroll-ps": [{ "scroll-ps": w() }],
|
|
2339
|
+
"scroll-pe": [{ "scroll-pe": w() }],
|
|
2340
|
+
"scroll-pbs": [{ "scroll-pbs": w() }],
|
|
2341
|
+
"scroll-pbe": [{ "scroll-pbe": w() }],
|
|
2342
|
+
"scroll-pt": [{ "scroll-pt": w() }],
|
|
2343
|
+
"scroll-pr": [{ "scroll-pr": w() }],
|
|
2344
|
+
"scroll-pb": [{ "scroll-pb": w() }],
|
|
2345
|
+
"scroll-pl": [{ "scroll-pl": w() }],
|
|
2582
2346
|
"snap-align": [{ snap: [
|
|
2583
2347
|
"start",
|
|
2584
2348
|
"end",
|
|
@@ -2623,14 +2387,14 @@ var wt = (e, t) => {
|
|
|
2623
2387
|
Z,
|
|
2624
2388
|
Y
|
|
2625
2389
|
] }],
|
|
2626
|
-
fill: [{ fill: ["none", ...
|
|
2390
|
+
fill: [{ fill: ["none", ...F()] }],
|
|
2627
2391
|
"stroke-w": [{ stroke: [
|
|
2628
2392
|
K,
|
|
2629
|
-
|
|
2393
|
+
mn,
|
|
2630
2394
|
X,
|
|
2631
|
-
|
|
2395
|
+
cn
|
|
2632
2396
|
] }],
|
|
2633
|
-
stroke: [{ stroke: ["none", ...
|
|
2397
|
+
stroke: [{ stroke: ["none", ...F()] }],
|
|
2634
2398
|
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
|
|
2635
2399
|
},
|
|
2636
2400
|
conflictingClassGroups: {
|
|
@@ -2819,117 +2583,251 @@ var wt = (e, t) => {
|
|
|
2819
2583
|
});
|
|
2820
2584
|
//#endregion
|
|
2821
2585
|
//#region src/ui/utils.ts
|
|
2822
|
-
function
|
|
2823
|
-
return
|
|
2586
|
+
function An(...e) {
|
|
2587
|
+
return kn(ut(e));
|
|
2824
2588
|
}
|
|
2825
2589
|
//#endregion
|
|
2826
|
-
//#region src/ui/
|
|
2827
|
-
var
|
|
2828
|
-
let
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
}, Kn = /*#__PURE__*/ b("<div>"), qn = (e) => {
|
|
2839
|
-
let t = e.interval ?? 62, n = e.rewind ?? !1, r = e.rewindDelay ?? 500, i = e.children, a = D(() => e.disabled ? e.disabled() : !1, !1), { text: s, type: c, setText: d } = Gn({
|
|
2840
|
-
content: i,
|
|
2841
|
-
min: t,
|
|
2842
|
-
rewind: n,
|
|
2843
|
-
rewindDelay: r
|
|
2590
|
+
//#region src/ui/components/Panels.tsx
|
|
2591
|
+
var jn = /*#__PURE__*/ y("<div>"), Mn = /*#__PURE__*/ y("<div class=\"pointer-events-none absolute inset-0\"><!$><!/><!$><!/><!$><!/>"), Nn = (t) => {
|
|
2592
|
+
let n = e(t.children);
|
|
2593
|
+
return s(C, {
|
|
2594
|
+
get when() {
|
|
2595
|
+
return t.children;
|
|
2596
|
+
},
|
|
2597
|
+
keyed: !0,
|
|
2598
|
+
children: (e) => (() => {
|
|
2599
|
+
var r = u(jn);
|
|
2600
|
+
return r.classList.toggle("z-50", !!n), f(r, s(e, {})), l(() => o(r, An(t.class))), r;
|
|
2601
|
+
})()
|
|
2844
2602
|
});
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
})()
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
var i = u(Zn), a = i.firstChild, c = a.firstChild, p = c.nextSibling, m = a.nextSibling, h = m.firstChild, [_, v] = d(h.nextSibling), y = _.nextSibling, [b, x] = d(y.nextSibling);
|
|
2880
|
-
return g(m, "aria-label", t), f(m, s(qn, {
|
|
2881
|
-
class: "text-lg font-medium text-gray-700 md:text-xl dark:text-gray-300",
|
|
2882
|
-
get interval() {
|
|
2883
|
-
return e.interval ?? 80;
|
|
2603
|
+
}, Pn = (e) => (() => {
|
|
2604
|
+
var t = u(Mn), n = t.firstChild, [r, i] = d(n.nextSibling), a = r.nextSibling, [o, c] = d(a.nextSibling), l = o.nextSibling, [p, m] = d(l.nextSibling);
|
|
2605
|
+
return f(t, s(Nn, {
|
|
2606
|
+
get children() {
|
|
2607
|
+
return e.topLeft;
|
|
2608
|
+
},
|
|
2609
|
+
class: "absolute top-4 left-4"
|
|
2610
|
+
}), r, i), f(t, s(Nn, {
|
|
2611
|
+
get children() {
|
|
2612
|
+
return e.topRight;
|
|
2613
|
+
},
|
|
2614
|
+
class: "absolute top-4 right-4"
|
|
2615
|
+
}), o, c), f(t, s(Nn, {
|
|
2616
|
+
get children() {
|
|
2617
|
+
return e.bottomLeft;
|
|
2618
|
+
},
|
|
2619
|
+
class: "absolute bottom-4 left-4"
|
|
2620
|
+
}), p, m), t;
|
|
2621
|
+
})(), Fn = /*#__PURE__*/ y("<div class=\"relative h-full w-full overflow-auto\"><!$><!/><div class=\"relative cursor-crosshair overflow-hidden\"><div class=\"relative h-full w-full\"style=\"transform-origin:top left\"><!$><!/><!$><!/><!$><!/>"), In = /*#__PURE__*/ y("<div class=\"absolute right-4 bottom-4 z-50 flex items-center gap-2 rounded-xl border border-gray-200 bg-white/90 p-2 shadow-lg backdrop-blur-md\"><button type=button class=\"flex size-9 cursor-pointer items-center justify-center rounded-lg bg-gray-100 text-lg font-bold text-gray-700 shadow-sm transition-all duration-150 hover:bg-gray-200 active:scale-95\"title=\"Zoom out\"aria-label=\"Zoom out\">-</button><button type=button class=\"h-9 cursor-pointer rounded-lg px-2 text-xs font-semibold text-gray-700 transition-colors hover:bg-gray-100\"title=\"Reset zoom\"aria-label=\"Reset zoom\"><!$><!/>%</button><button type=button class=\"flex size-9 cursor-pointer items-center justify-center rounded-lg bg-gray-100 text-lg font-bold text-gray-700 shadow-sm transition-all duration-150 hover:bg-gray-200 active:scale-95\"title=\"Zoom in\"aria-label=\"Zoom in\">+</button><div class=\"h-5 w-px bg-gray-300\"></div><button type=button class=\"flex size-9 cursor-pointer items-center justify-center rounded-lg bg-blue-600 text-white shadow transition-all duration-150 hover:bg-blue-700 active:scale-95\"title=\"Add parent node\"aria-label=\"Add parent node\"><svg class=size-5 viewBox=\"0 0 24 24\"fill=currentColor><path d=\"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z\">"), Ln = /*#__PURE__*/ y("<div class=\"relative mx-auto h-full w-full overflow-hidden\">"), Rn = (e) => {
|
|
2622
|
+
let t, [n, r] = D(!1), [i, a] = D({
|
|
2623
|
+
x: 0,
|
|
2624
|
+
y: 0
|
|
2625
|
+
}), [o, c] = D(), p = 0, g = 0, v = H(), y = x(v, {
|
|
2626
|
+
selector: (e) => e.context.newEdge,
|
|
2627
|
+
equals: U
|
|
2628
|
+
}), w = x(v, { selector: (e) => e.context.zoom ?? 1 }), T = () => {
|
|
2629
|
+
let e = o();
|
|
2630
|
+
if (!e) return;
|
|
2631
|
+
let t = e.getBoundingClientRect(), n = () => o()?.parentElement, r = {
|
|
2632
|
+
self: {
|
|
2633
|
+
left: t.left,
|
|
2634
|
+
top: t.top,
|
|
2635
|
+
width: e.clientWidth,
|
|
2636
|
+
height: e.clientHeight
|
|
2884
2637
|
},
|
|
2885
|
-
|
|
2886
|
-
|
|
2638
|
+
parent: n() ? {
|
|
2639
|
+
scrollLeft: n().scrollLeft,
|
|
2640
|
+
scrollTop: n().scrollTop,
|
|
2641
|
+
height: n().clientHeight,
|
|
2642
|
+
width: n().clientWidth
|
|
2643
|
+
} : void 0
|
|
2644
|
+
};
|
|
2645
|
+
v.send({
|
|
2646
|
+
type: "SET_BOARD",
|
|
2647
|
+
payload: r
|
|
2648
|
+
});
|
|
2649
|
+
}, k = () => {
|
|
2650
|
+
let e = t.scrollWidth - t.clientWidth, n = t.scrollHeight - t.clientHeight;
|
|
2651
|
+
p = e > 0 ? t.scrollLeft / e : 0, g = n > 0 ? t.scrollTop / n : 0, T();
|
|
2652
|
+
};
|
|
2653
|
+
E(O(w, () => {
|
|
2654
|
+
let e = t.scrollWidth - t.clientWidth, n = t.scrollHeight - t.clientHeight;
|
|
2655
|
+
e > 0 && (t.scrollLeft = p * e), n > 0 && (t.scrollTop = g * n);
|
|
2656
|
+
}, { defer: !0 })), A(T);
|
|
2657
|
+
let j = x(v, { selector: (e) => e.context?.selected }), M = x(v, {
|
|
2658
|
+
selector: ({ context: e }) => ee.typed(e.data?.nodes).map((e) => e.id),
|
|
2659
|
+
equals: (e, t) => e.length === t.length
|
|
2660
|
+
}), N = () => `calc((500vw - 265px) * ${w()})`, P = () => `calc((500vh - 425px) * ${w()})`;
|
|
2661
|
+
return (() => {
|
|
2662
|
+
var o = u(Ln);
|
|
2663
|
+
return o.addEventListener("wheel", (e) => {
|
|
2664
|
+
if (e.ctrlKey || e.metaKey) {
|
|
2665
|
+
e.preventDefault(), k();
|
|
2666
|
+
let t = e.deltaY < 0 ? .1 : -.1;
|
|
2667
|
+
v.send({
|
|
2668
|
+
type: "ZOOM",
|
|
2669
|
+
payload: t
|
|
2670
|
+
});
|
|
2671
|
+
}
|
|
2672
|
+
}), f(o, s(F, {
|
|
2673
|
+
onDragMove: ({ draggable: { transform: e, node: t, id: n } }) => {
|
|
2674
|
+
let r = t.parentElement?.parentElement, i = w(), o = r ? Math.max(0, r.clientWidth / i - t.offsetWidth) : Infinity, s = r ? Math.max(0, r.clientHeight / i - t.offsetHeight) : Infinity, c = t.offsetLeft + e.x / i, l = t.offsetTop + e.y / i, u = Math.min(Math.max(c, 0), o), d = Math.min(Math.max(l, 0), s), f = u - t.offsetLeft, p = d - t.offsetTop;
|
|
2675
|
+
t.style.setProperty("transform", `translate3d(${f}px, ${p}px, 0)`), v.send({
|
|
2676
|
+
type: "MOVE_IMMEDIATE",
|
|
2677
|
+
payload: {
|
|
2678
|
+
id: `${n}`,
|
|
2679
|
+
x: u,
|
|
2680
|
+
y: d
|
|
2681
|
+
}
|
|
2682
|
+
}), a({
|
|
2683
|
+
x: f * i,
|
|
2684
|
+
y: p * i
|
|
2685
|
+
});
|
|
2887
2686
|
},
|
|
2888
|
-
|
|
2889
|
-
|
|
2687
|
+
onDragEnd: ({ draggable: { node: e, id: t } }) => {
|
|
2688
|
+
let n = e.parentElement?.parentElement, r = w(), o = n ? Math.max(0, n.clientWidth / r - e.offsetWidth) : Infinity, s = n ? Math.max(0, n.clientHeight / r - e.offsetHeight) : Infinity, c = e.offsetLeft + i().x / r, l = e.offsetTop + i().y / r, u = Math.min(Math.max(c, 0), o), d = Math.min(Math.max(l, 0), s);
|
|
2689
|
+
e.style.setProperty("top", d + "px"), e.style.setProperty("left", u + "px"), e.style.removeProperty("transform"), v.send({
|
|
2690
|
+
type: "MOVE",
|
|
2691
|
+
payload: {
|
|
2692
|
+
id: `${t}`,
|
|
2693
|
+
x: u,
|
|
2694
|
+
y: d
|
|
2695
|
+
}
|
|
2696
|
+
}), setTimeout(() => {
|
|
2697
|
+
a({
|
|
2698
|
+
x: 0,
|
|
2699
|
+
y: 0
|
|
2700
|
+
});
|
|
2701
|
+
}, 0);
|
|
2890
2702
|
},
|
|
2891
|
-
children
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2703
|
+
get children() {
|
|
2704
|
+
return [
|
|
2705
|
+
(() => {
|
|
2706
|
+
var i = u(Fn), a = i.firstChild, [o, p] = d(a.nextSibling), m = o.nextSibling, g = m.firstChild, x = g.firstChild, [C, T] = d(x.nextSibling), E = C.nextSibling, [D, O] = d(E.nextSibling), A = D.nextSibling, [j, ee] = d(A.nextSibling);
|
|
2707
|
+
return i.addEventListener("scroll", k), b((e) => t = e, i), f(i, s(te, {}), o, p), m.$$mousedown = (e) => {
|
|
2708
|
+
if (y() || e.button !== 0) return;
|
|
2709
|
+
v.send("DESELECT"), r(!0);
|
|
2710
|
+
let n = e.clientX, i = e.clientY, a = t.scrollLeft, o = t.scrollTop, s = (e) => {
|
|
2711
|
+
let r = e.clientX - n, s = e.clientY - i;
|
|
2712
|
+
t.scrollLeft = a - r * 3, t.scrollTop = o - s * 3, k();
|
|
2713
|
+
}, c = () => {
|
|
2714
|
+
window.removeEventListener("mousemove", s), window.removeEventListener("mouseup", c), setTimeout(() => r(!1), 200);
|
|
2715
|
+
};
|
|
2716
|
+
window.addEventListener("mousemove", s), window.addEventListener("mouseup", c);
|
|
2717
|
+
}, b(c, m), f(g, s(Ge, {}), C, T), f(g, s(Qe, {}), D, O), f(g, s(S, {
|
|
2718
|
+
get each() {
|
|
2719
|
+
return M();
|
|
2720
|
+
},
|
|
2721
|
+
children: (t) => s(ct, {
|
|
2722
|
+
id: t,
|
|
2723
|
+
get children() {
|
|
2724
|
+
return e.component;
|
|
2725
|
+
}
|
|
2726
|
+
})
|
|
2727
|
+
}), j, ee), l((e) => {
|
|
2728
|
+
var t = !!n(), r = P(), i = N(), a = w();
|
|
2729
|
+
return t !== e.e && m.classList.toggle("cursor-grabbing", e.e = t), r !== e.t && _(m, "height", e.t = r), i !== e.a && _(m, "width", e.a = i), a !== e.o && _(g, "scale", e.o = a), e;
|
|
2730
|
+
}, {
|
|
2731
|
+
e: void 0,
|
|
2732
|
+
t: void 0,
|
|
2733
|
+
a: void 0,
|
|
2734
|
+
o: void 0
|
|
2735
|
+
}), h(), i;
|
|
2736
|
+
})(),
|
|
2737
|
+
s(Pn, m(() => e.panels)),
|
|
2738
|
+
(() => {
|
|
2739
|
+
var e = u(In), t = e.firstChild, n = t.nextSibling, r = n.firstChild, [i, a] = d(r.nextSibling);
|
|
2740
|
+
i.nextSibling;
|
|
2741
|
+
var o = n.nextSibling, s = o.nextSibling.nextSibling;
|
|
2742
|
+
return t.$$click = () => {
|
|
2743
|
+
k(), v.send({
|
|
2744
|
+
type: "ZOOM",
|
|
2745
|
+
payload: -.1
|
|
2746
|
+
});
|
|
2747
|
+
}, n.$$click = () => {
|
|
2748
|
+
k(), v.send("TOGGLE_ZOOM");
|
|
2749
|
+
}, f(n, () => Math.round(w() * 100), i, a), o.$$click = () => {
|
|
2750
|
+
k(), v.send({
|
|
2751
|
+
type: "ZOOM",
|
|
2752
|
+
payload: .1
|
|
2753
|
+
});
|
|
2754
|
+
}, s.$$click = () => v.send("ADD_PARENT"), h(), e;
|
|
2755
|
+
})(),
|
|
2756
|
+
s(C, {
|
|
2757
|
+
get when() {
|
|
2758
|
+
return !j();
|
|
2759
|
+
},
|
|
2760
|
+
get children() {
|
|
2761
|
+
return s(ne, { children: "" });
|
|
2762
|
+
}
|
|
2763
|
+
})
|
|
2764
|
+
];
|
|
2765
|
+
}
|
|
2766
|
+
})), o;
|
|
2903
2767
|
})();
|
|
2904
|
-
}
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2768
|
+
};
|
|
2769
|
+
c(["mousedown", "click"]);
|
|
2770
|
+
//#endregion
|
|
2771
|
+
//#region src/ui/components/FlowChart.tsx
|
|
2772
|
+
var zn = /*#__PURE__*/ y("<div class=\"relative h-full w-full\"><div class=\"h-full w-full\">"), Bn = (e) => {
|
|
2773
|
+
let t = e.config?.nodes ?? Se, n = e.config?.edges, r = H(), i = x(r, { selector: (e) => e.context.newEdge?.from });
|
|
2774
|
+
k(r.pause), A(() => {
|
|
2775
|
+
r.resume(), r.send({
|
|
2776
|
+
type: "CONFIGURE",
|
|
2777
|
+
payload: {
|
|
2778
|
+
nodes: t,
|
|
2779
|
+
edges: n ?? [],
|
|
2780
|
+
defaultData: e.defaultData
|
|
2781
|
+
}
|
|
2782
|
+
});
|
|
2783
|
+
});
|
|
2784
|
+
let a = !1, o = null, c = () => {
|
|
2785
|
+
o && (o.classList.remove("scale-150"), o = null, a = !1);
|
|
2786
|
+
}, d = (e) => {
|
|
2787
|
+
r.send({
|
|
2788
|
+
type: "MOVE_NEW_EDGE",
|
|
2789
|
+
payload: {
|
|
2790
|
+
x: e.clientX,
|
|
2791
|
+
y: e.clientY
|
|
2792
|
+
}
|
|
2793
|
+
});
|
|
2794
|
+
let t = document.elementsFromPoint(e.clientX, e.clientY).map((e) => e.closest(".rounded-full[data-handle-type=\"input\"]")).find((e) => !!(e && e.id !== "inputs"));
|
|
2795
|
+
o && o !== t && c(), t && o !== t && (t.classList.add("scale-150"), o = t, a = !0);
|
|
2796
|
+
}, p = (e) => (t) => {
|
|
2797
|
+
let n = document.elementsFromPoint(t.clientX, t.clientY).map((e) => e.closest(".rounded-full[data-handle-type=\"input\"]")).find((e) => !!(e && e.id !== "inputs")), i = n?.getAttribute("data-node-id");
|
|
2798
|
+
n && i && r.send({
|
|
2799
|
+
type: "ADD_EDGE",
|
|
2800
|
+
payload: {
|
|
2801
|
+
from: e,
|
|
2802
|
+
to: i
|
|
2803
|
+
}
|
|
2804
|
+
}), c(), r.send("CLEAR_NEW_EDGE");
|
|
2805
|
+
};
|
|
2806
|
+
return E(() => {
|
|
2807
|
+
let e = i();
|
|
2808
|
+
if (!e || a) return;
|
|
2809
|
+
let t = p(e);
|
|
2810
|
+
window.addEventListener("pointermove", d), window.addEventListener("pointerup", t), k(() => {
|
|
2811
|
+
c(), window.removeEventListener("pointermove", d), window.removeEventListener("pointerup", t);
|
|
2812
|
+
});
|
|
2813
|
+
}), (() => {
|
|
2814
|
+
var t = u(zn), n = t.firstChild;
|
|
2815
|
+
return f(n, s(Rn, {
|
|
2816
|
+
get panels() {
|
|
2817
|
+
return e.panels;
|
|
2923
2818
|
},
|
|
2924
|
-
get
|
|
2925
|
-
return
|
|
2926
|
-
return s(xt, e);
|
|
2927
|
-
} });
|
|
2819
|
+
get component() {
|
|
2820
|
+
return e.component;
|
|
2928
2821
|
}
|
|
2929
|
-
})), n;
|
|
2822
|
+
})), l((e) => _(n, "cursor", i() ? "inherit" : "crosshair")), t;
|
|
2930
2823
|
})();
|
|
2931
|
-
},
|
|
2932
|
-
|
|
2824
|
+
}, Vn = /*#__PURE__*/ y("<div class=\"relative flex h-full w-full rounded-lg border-2 border-gray-600 bg-white bg-size-[30px_30px]\"style=\"background-image:radial-gradient(circle, #b8b8b8bf 1px, rgba(0, 0, 0, 0) 1px)\">"), Hn = (e) => (() => {
|
|
2825
|
+
var t = u(Vn);
|
|
2826
|
+
return f(t, s(He, { get children() {
|
|
2827
|
+
return s(Bn, e);
|
|
2828
|
+
} })), t;
|
|
2829
|
+
})(), Un = (t = 270) => {
|
|
2830
|
+
let n = H(), r = () => n.send("STOP_EDIT"), [i, a] = D(!1), o = n.sender("SET_NODE_DATA"), s = x(n, {
|
|
2933
2831
|
selector: ({ context: t }) => {
|
|
2934
2832
|
let n = t.editing;
|
|
2935
2833
|
if (!e(n)) return;
|
|
@@ -2939,7 +2837,7 @@ var Wn = (e) => e === "" ? "" : e, Gn = ({ content: e, min: t, ...n }) => {
|
|
|
2939
2837
|
data: r.data
|
|
2940
2838
|
};
|
|
2941
2839
|
},
|
|
2942
|
-
equals:
|
|
2840
|
+
equals: N
|
|
2943
2841
|
});
|
|
2944
2842
|
return {
|
|
2945
2843
|
editing: s,
|
|
@@ -2971,22 +2869,22 @@ var Wn = (e) => e === "" ? "" : e, Gn = ({ content: e, min: t, ...n }) => {
|
|
|
2971
2869
|
closing: i,
|
|
2972
2870
|
directClose: r
|
|
2973
2871
|
};
|
|
2974
|
-
},
|
|
2975
|
-
let t =
|
|
2872
|
+
}, Wn = /*#__PURE__*/ y("<div><div class=\"flex flex-col gap-3\"><!$><!/><!$><!/>"), Gn = /*#__PURE__*/ y("<div class=\"flex items-center justify-between border-b border-gray-100 pb-2\"><div class=\"flex items-center gap-2\"><h3 class=\"text-sm font-bold text-gray-800\">Edit</h3><span class=\"font-mono text-[11px] text-gray-400\"></span></div><button type=button title=\"Close editor\"aria-label=\"Close editor\"class=\"cursor-pointer rounded-full p-1 text-gray-400 hover:bg-gray-100 hover:text-gray-700\"><svg class=size-4 viewBox=\"0 0 24 24\"fill=none stroke=currentColor stroke-width=2><path d=\"M18 6L6 18M6 6l12 12\">"), Kn = (e) => {
|
|
2873
|
+
let t = Un(e.timeout), n = () => e.classList instanceof Function ? e.classList(t) : e.classList;
|
|
2976
2874
|
return s(C, {
|
|
2977
2875
|
get when() {
|
|
2978
2876
|
return t.editing();
|
|
2979
2877
|
},
|
|
2980
2878
|
children: (r) => (() => {
|
|
2981
|
-
var c = u(
|
|
2982
|
-
return
|
|
2879
|
+
var c = u(Wn), p = c.firstChild, m = p.firstChild, [g, _] = d(m.nextSibling), y = g.nextSibling, [x, S] = d(y.nextSibling);
|
|
2880
|
+
return b($e, c, () => t.close), c.$$mousedown = (e) => e.stopPropagation(), f(p, s(C, {
|
|
2983
2881
|
get when() {
|
|
2984
2882
|
return e.header;
|
|
2985
2883
|
},
|
|
2986
2884
|
keyed: !0,
|
|
2987
2885
|
get fallback() {
|
|
2988
2886
|
return (() => {
|
|
2989
|
-
var e = u(
|
|
2887
|
+
var e = u(Gn), n = e.firstChild, a = n.firstChild.nextSibling, o = n.nextSibling;
|
|
2990
2888
|
return f(a, () => r().id), i(o, "click", t.close, !0), h(), e;
|
|
2991
2889
|
})();
|
|
2992
2890
|
},
|
|
@@ -2994,9 +2892,13 @@ var Wn = (e) => e === "" ? "" : e, Gn = ({ content: e, min: t, ...n }) => {
|
|
|
2994
2892
|
id: r().id,
|
|
2995
2893
|
close: t.close
|
|
2996
2894
|
})
|
|
2997
|
-
}), g, _), f(p, () => e.children(t),
|
|
2998
|
-
var
|
|
2999
|
-
|
|
2895
|
+
}), g, _), f(p, () => e.children(t), x, S), l((r) => {
|
|
2896
|
+
var i = An(`w-80 cursor-default rounded-2xl border border-gray-200 bg-white/95 p-4 shadow-xl backdrop-blur-md transition-all ${e.class ?? ""}`), s = {
|
|
2897
|
+
...n(),
|
|
2898
|
+
"pointer-events-none! -z-10": !t.editing(),
|
|
2899
|
+
"pointer-events-all! z-50": !!t.editing()
|
|
2900
|
+
}, l = e.style;
|
|
2901
|
+
return i !== r.e && o(c, r.e = i), r.t = a(c, s, r.t), r.a = v(c, l, r.a), r;
|
|
3000
2902
|
}, {
|
|
3001
2903
|
e: void 0,
|
|
3002
2904
|
t: void 0,
|
|
@@ -3007,4 +2909,4 @@ var Wn = (e) => e === "" ? "" : e, Gn = ({ content: e, min: t, ...n }) => {
|
|
|
3007
2909
|
};
|
|
3008
2910
|
c(["mousedown", "click"]);
|
|
3009
2911
|
//#endregion
|
|
3010
|
-
export { B as BOUNDS_CONSTRAINTS,
|
|
2912
|
+
export { B as BOUNDS_CONSTRAINTS, be as CANVAS_FACTOR, Ne as CLASSES, ge as CONTAINER_DIMENSIONS, R as DEFAULT_DATA, z as DEFAULT_INPUT_OFFSET, me as DEFAULT_INPUT_OFFSET_X, he as DEFAULT_INPUT_OFFSET_Y, Se as DEFAULT_NODES, oe as DEFAULT_NODE_HEIGHT, ae as DEFAULT_NODE_WIDTH, L as DEFAULT_SIZE, Kn as EditPanel, Hn as Flow, Bn as FlowChart, pe as HANDLE_CENTER_X_OFFSET, fe as HANDLE_CENTER_Y, de as HANDLE_CONTAINER_OFFSET_X, ue as HANDLE_MARGIN_TOP, le as HANDLE_RADIUS, ce as HANDLE_SIZE, se as NODE_BORDER_WIDTH, I as PARENT_CHILD_GAP_WIDTH, Pn as Panels, He as Provider, xe as SCROLL_MULTIPLIER, ye as TOOLBAR_BUFFER, ve as TOOLBAR_TOP_OFFSET, Me as board, Pe as clamp, $e as clickOutside, Fe as createContext, Ee as data, ke as dimension, Oe as edgeJSON, we as extremities, _e as getDefaultOutputOffset, et as mouseOut, je as newEdge, Te as nodeDataValue, De as nodeJSON, Ce as nodeOffset, V as point, tt as resize, H as useFlow, Ae as vector };
|