ryugi-artifacts 1.77.0 → 1.78.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.cjs +75 -19
- package/dist/server.cjs +302 -298
- package/dist/viewer/ArtboardLayout-BTys-6Vg.js +13 -0
- package/dist/viewer/Canvas-CWPtxXag.js +1 -0
- package/dist/viewer/PreviewLayout-Dl9CuJaY.js +2 -0
- package/dist/viewer/index.js +2 -2
- package/dist/viewer/index4.css +16 -0
- package/dist/viewer/preview.html +2 -2
- package/dist/viewer/preview.js +1 -1
- package/dist/viewer/view-BJqsLsys.js +2 -0
- package/dist/viewer-lib/{Canvas-B2u5Xu4Q.js → Canvas-CCq4Ko7_.js} +392 -299
- package/dist/viewer-lib/{PhoneArtboardBar-DphUzdTc.js → PhoneArtboardBar-Cll7l0fz.js} +1 -1
- package/dist/viewer-lib/{PreviewView-Cmi8qyst.js → PreviewView-D7cDFhyg.js} +306 -65
- package/dist/viewer-lib/{ReadOnlyWhiteboard-0a1PF9WY.js → ReadOnlyWhiteboard-CmKjtHFJ.js} +59 -59
- package/dist/viewer-lib/{ar-SA-G6X2FPQ2-BxYqMSzi.js → ar-SA-G6X2FPQ2-HZky6mYE.js} +1 -1
- package/dist/viewer-lib/{az-AZ-76LH7QW2-Dq3nTGr-.js → az-AZ-76LH7QW2-Bz6gZGXm.js} +1 -1
- package/dist/viewer-lib/{bg-BG-XCXSNQG7-DskJTtPp.js → bg-BG-XCXSNQG7-Bj6azCuS.js} +1 -1
- package/dist/viewer-lib/{bn-BD-2XOGV67Q-D96UFHku.js → bn-BD-2XOGV67Q-pkZSsKMV.js} +1 -1
- package/dist/viewer-lib/{ca-ES-6MX7JW3Y-CuoxBVI2.js → ca-ES-6MX7JW3Y-DInd8tqd.js} +1 -1
- package/dist/viewer-lib/{chunk-EIO257PC-DeMrLF_7.js → chunk-EIO257PC-A9RZ-nRE.js} +1 -1
- package/dist/viewer-lib/core.js +3 -3
- package/dist/viewer-lib/{cs-CZ-2BRQDIVT-BEk-H_Vk.js → cs-CZ-2BRQDIVT-CQ0UDIDw.js} +1 -1
- package/dist/viewer-lib/{da-DK-5WZEPLOC-B-2tVr18.js → da-DK-5WZEPLOC-rSt6qKPe.js} +1 -1
- package/dist/viewer-lib/{de-DE-XR44H4JA-euPndqvM.js → de-DE-XR44H4JA-DrIjWm0C.js} +1 -1
- package/dist/viewer-lib/document.js +1 -1
- package/dist/viewer-lib/{el-GR-BZB4AONW-BstNT5YB.js → el-GR-BZB4AONW-3kVOQ15p.js} +1 -1
- package/dist/viewer-lib/{en-B4ZKOASM-CLuWsYJe.js → en-B4ZKOASM-sas4DJvS.js} +1 -1
- package/dist/viewer-lib/{es-ES-U4NZUMDT-CNH0TChZ.js → es-ES-U4NZUMDT-DF1DXGeP.js} +1 -1
- package/dist/viewer-lib/{eu-ES-A7QVB2H4-CNpCf9s7.js → eu-ES-A7QVB2H4-CIu5bgjr.js} +1 -1
- package/dist/viewer-lib/{fa-IR-HGAKTJCU-MD2DLnwr.js → fa-IR-HGAKTJCU-Dg12PelN.js} +1 -1
- package/dist/viewer-lib/{fi-FI-Z5N7JZ37-B0x5U-9a.js → fi-FI-Z5N7JZ37-DGfGckr2.js} +1 -1
- package/dist/viewer-lib/{fr-FR-RHASNOE6-CoVvXGyV.js → fr-FR-RHASNOE6-CB3RBQBb.js} +1 -1
- package/dist/viewer-lib/{gl-ES-HMX3MZ6V-BEtAqRTV.js → gl-ES-HMX3MZ6V-srdgH8Yb.js} +1 -1
- package/dist/viewer-lib/{he-IL-6SHJWFNN-JnZeHe4y.js → he-IL-6SHJWFNN-C-u3aIrD.js} +1 -1
- package/dist/viewer-lib/{hi-IN-IWLTKZ5I-BYVAF-an.js → hi-IN-IWLTKZ5I-DnRD5RwM.js} +1 -1
- package/dist/viewer-lib/{hu-HU-A5ZG7DT2-C1g6PvYO.js → hu-HU-A5ZG7DT2-cHUeODPe.js} +1 -1
- package/dist/viewer-lib/{id-ID-SAP4L64H-Dz8s_rEF.js → id-ID-SAP4L64H-BYp8Yosj.js} +1 -1
- package/dist/viewer-lib/{image-GAAHSSAO-Cp_Oy4Lg.js → image-GAAHSSAO-MaHRDtG2.js} +1 -1
- package/dist/viewer-lib/index.js +2352 -2327
- package/dist/viewer-lib/{it-IT-JPQ66NNP-B7NhscKF.js → it-IT-JPQ66NNP-K76B2vDZ.js} +1 -1
- package/dist/viewer-lib/{ja-JP-DBVTYXUO-CAiycqDW.js → ja-JP-DBVTYXUO-DGtajQ1n.js} +1 -1
- package/dist/viewer-lib/{kaa-6HZHGXH3-CAnRls-6.js → kaa-6HZHGXH3-Byq6aZnP.js} +1 -1
- package/dist/viewer-lib/{kab-KAB-ZGHBKWFO-DYWHAmBp.js → kab-KAB-ZGHBKWFO-xFQx0VKj.js} +1 -1
- package/dist/viewer-lib/{kk-KZ-P5N5QNE5-DPoDluwp.js → kk-KZ-P5N5QNE5-DqTYtjE9.js} +1 -1
- package/dist/viewer-lib/{km-KH-HSX4SM5Z-CBiZCJLZ.js → km-KH-HSX4SM5Z-CmHVZ3Pg.js} +1 -1
- package/dist/viewer-lib/{ko-KR-MTYHY66A-MocKQnzV.js → ko-KR-MTYHY66A-pItxT0ea.js} +1 -1
- package/dist/viewer-lib/{ku-TR-6OUDTVRD-CZzY2yy7.js → ku-TR-6OUDTVRD-DJoNwVzF.js} +1 -1
- package/dist/viewer-lib/{lt-LT-XHIRWOB4-Dh-omlnu.js → lt-LT-XHIRWOB4-DG1eQnL9.js} +1 -1
- package/dist/viewer-lib/{lv-LV-5QDEKY6T-DVUeEmOB.js → lv-LV-5QDEKY6T-BAFyGSRK.js} +1 -1
- package/dist/viewer-lib/{mr-IN-CRQNXWMA-BC2TCxWI.js → mr-IN-CRQNXWMA-Dpt8RtYD.js} +1 -1
- package/dist/viewer-lib/{my-MM-5M5IBNSE-D_UqzOnS.js → my-MM-5M5IBNSE-PB-QhewM.js} +1 -1
- package/dist/viewer-lib/{nb-NO-T6EIAALU-DZz9rgcM.js → nb-NO-T6EIAALU-DUOVY3a0.js} +1 -1
- package/dist/viewer-lib/{nl-NL-IS3SIHDZ-Cxx6IDq2.js → nl-NL-IS3SIHDZ-EvHXncDP.js} +1 -1
- package/dist/viewer-lib/{nn-NO-6E72VCQL-DHOwMIp2.js → nn-NO-6E72VCQL-DiLJJ6in.js} +1 -1
- package/dist/viewer-lib/{oc-FR-POXYY2M6-BUCg3oNi.js → oc-FR-POXYY2M6-BcMNlMjU.js} +1 -1
- package/dist/viewer-lib/{pa-IN-N4M65BXN-DlR0Cv0r.js → pa-IN-N4M65BXN-y8F6i_xQ.js} +1 -1
- package/dist/viewer-lib/{percentages-BXMCSKIN-CNHarTCz.js → percentages-BXMCSKIN-BcGLGIbY.js} +1 -1
- package/dist/viewer-lib/{pl-PL-T2D74RX3-DBCTNfwV.js → pl-PL-T2D74RX3-BcJAM87-.js} +1 -1
- package/dist/viewer-lib/{pt-BR-5N22H2LF-BViO6V5P.js → pt-BR-5N22H2LF-B6LXfMUc.js} +1 -1
- package/dist/viewer-lib/{pt-PT-UZXXM6DQ-_-hLEzme.js → pt-PT-UZXXM6DQ-Bp-xUqQ8.js} +1 -1
- package/dist/viewer-lib/{ro-RO-JPDTUUEW-B0pUzZSi.js → ro-RO-JPDTUUEW-BSUxwWXI.js} +1 -1
- package/dist/viewer-lib/{ru-RU-B4JR7IUQ-D5E11KR4.js → ru-RU-B4JR7IUQ-CQdjNcBG.js} +1 -1
- package/dist/viewer-lib/{si-LK-N5RQ5JYF-BFislBlI.js → si-LK-N5RQ5JYF-7CAmmMro.js} +1 -1
- package/dist/viewer-lib/{sk-SK-C5VTKIMK-D-yT3OQf.js → sk-SK-C5VTKIMK-CpC5WEtb.js} +1 -1
- package/dist/viewer-lib/{sl-SI-NN7IZMDC-BB9t_cfT.js → sl-SI-NN7IZMDC-s5Digk56.js} +1 -1
- package/dist/viewer-lib/{stylex-DjVDawxG.css → stylex-B6-Q1VRZ.css} +16 -0
- package/dist/viewer-lib/subset-shared.chunk-DVeVdUoS.js +2 -0
- package/dist/viewer-lib/{subset-worker.chunk-CthWNHJ8.js → subset-worker.chunk-V92b2YKH.js} +2 -2
- package/dist/viewer-lib/{sv-SE-XGPEYMSR-BYTui5Bf.js → sv-SE-XGPEYMSR-D7xx9CF4.js} +1 -1
- package/dist/viewer-lib/{ta-IN-2NMHFXQM-gcIYx9DJ.js → ta-IN-2NMHFXQM-DbRLNuGy.js} +1 -1
- package/dist/viewer-lib/{th-TH-HPSO5L25-DPpIkMiS.js → th-TH-HPSO5L25-FmDN7f8Q.js} +1 -1
- package/dist/viewer-lib/thumbnail.js +281 -1
- package/dist/viewer-lib/{tr-TR-DEFEU3FU-CdZ57PYq.js → tr-TR-DEFEU3FU-C6SMoY6h.js} +1 -1
- package/dist/viewer-lib/types/src/shared/flow.d.ts +24 -0
- package/dist/viewer-lib/types/src/shared/geometry.d.ts +7 -0
- package/dist/viewer-lib/types/src/shared/types.d.ts +7 -1
- package/dist/viewer-lib/types/src/shared/validate.d.ts +1 -0
- package/dist/viewer-lib/types/src/viewer/components/Canvas.d.ts +4 -2
- package/dist/viewer-lib/types/src/viewer/components/CanvasNotes.d.ts +6 -0
- package/dist/viewer-lib/types/src/viewer/components/FlowLayer.d.ts +9 -0
- package/dist/viewer-lib/{uk-UA-QMV73CPH-jb3KN0s9.js → uk-UA-QMV73CPH-UOEzCOen.js} +1 -1
- package/dist/viewer-lib/{vi-VN-M7AON7JQ-DczXZH3K.js → vi-VN-M7AON7JQ-Dxi27jBl.js} +1 -1
- package/dist/viewer-lib/{zh-CN-LNUGB5OW-B7ikml4p.js → zh-CN-LNUGB5OW-BkbG5N7o.js} +1 -1
- package/dist/viewer-lib/{zh-HK-E62DVLB3-GXxZysCg.js → zh-HK-E62DVLB3-Btkkw8Q_.js} +1 -1
- package/dist/viewer-lib/{zh-TW-RAJ6MFWO-CLRCR8wM.js → zh-TW-RAJ6MFWO-BeX560km.js} +1 -1
- package/package.json +1 -1
- package/dist/viewer/ArtboardLayout-C8odRO5-.js +0 -13
- package/dist/viewer/Canvas-Lvx_4l7N.js +0 -1
- package/dist/viewer/PreviewLayout-DxPulKHq.js +0 -2
- package/dist/viewer/view-_lCPxrgM.js +0 -2
- package/dist/viewer-lib/subset-shared.chunk-B_z_wg9E.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { D as e } from "./PreviewView-D7cDFhyg.js";
|
|
2
2
|
import { l as t } from "./RyugiLoader-CspgSQMe.js";
|
|
3
3
|
import { useCallback as n, useSyncExternalStore as r } from "react";
|
|
4
4
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
@@ -90,7 +90,14 @@ function E(e, t) {
|
|
|
90
90
|
h: s - a + 144 + 48
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
|
-
|
|
93
|
+
var D = (e) => Math.ceil(w(e, 40) + 80 + 28 + 16);
|
|
94
|
+
function O(e) {
|
|
95
|
+
if (e.kind === "condition") return {
|
|
96
|
+
x: e.x,
|
|
97
|
+
y: e.y,
|
|
98
|
+
w: D(e.text),
|
|
99
|
+
h: 96
|
|
100
|
+
};
|
|
94
101
|
if (e.kind === "sticky") {
|
|
95
102
|
let t = e.w ?? 240, n = T(e.text, 18, Math.max(1, t - 32));
|
|
96
103
|
return {
|
|
@@ -113,7 +120,7 @@ function D(e) {
|
|
|
113
120
|
h: T(e.text, t, e.w) * n
|
|
114
121
|
};
|
|
115
122
|
}
|
|
116
|
-
function
|
|
123
|
+
function k(e, t) {
|
|
117
124
|
let n = {
|
|
118
125
|
minX: t.x,
|
|
119
126
|
minY: t.y,
|
|
@@ -136,7 +143,7 @@ function ee(e) {
|
|
|
136
143
|
for (let t of e.pages) n(t.id);
|
|
137
144
|
for (let t of Object.values(e.boards)) {
|
|
138
145
|
let e = n(t.page);
|
|
139
|
-
e.bounds =
|
|
146
|
+
e.bounds = k(e.bounds, {
|
|
140
147
|
...t,
|
|
141
148
|
y: t.y - 48,
|
|
142
149
|
h: t.h + 48
|
|
@@ -146,55 +153,288 @@ function ee(e) {
|
|
|
146
153
|
let i = E(r, e.boards);
|
|
147
154
|
if (!i) continue;
|
|
148
155
|
let { page: a, ...o } = i, s = n(a);
|
|
149
|
-
s.groups[t] = o, s.bounds =
|
|
156
|
+
s.groups[t] = o, s.bounds = k(s.bounds, o);
|
|
150
157
|
}
|
|
151
158
|
for (let [t, r] of Object.entries(e.notes ?? {})) {
|
|
152
|
-
let e =
|
|
153
|
-
i.notes[t] = e, i.bounds =
|
|
159
|
+
let e = O(r), i = n(r.page);
|
|
160
|
+
i.notes[t] = e, i.bounds = k(i.bounds, e);
|
|
154
161
|
}
|
|
155
162
|
return { pages: t };
|
|
156
163
|
}
|
|
157
|
-
var
|
|
164
|
+
var A = (e, t) => e.x < t.x + t.w && t.x < e.x + e.w && e.y < t.y + t.h && t.y < e.y + e.h, te = 1.4, ne = 24, re = 160, j = 2400, M = (e) => e.x + e.w / 2, N = (e) => e.y + e.h / 2, P = (e) => e === "left" || e === "right";
|
|
165
|
+
function F(e, t, n) {
|
|
166
|
+
let r = e.boards[n], i = e.notes?.[n];
|
|
167
|
+
return r && i ? null : r?.page === t ? {
|
|
168
|
+
id: n,
|
|
169
|
+
board: !0,
|
|
170
|
+
rect: {
|
|
171
|
+
x: r.x,
|
|
172
|
+
y: r.y - 48,
|
|
173
|
+
w: r.w,
|
|
174
|
+
h: r.h + 48
|
|
175
|
+
}
|
|
176
|
+
} : i?.kind === "condition" && i.page === t ? {
|
|
177
|
+
id: n,
|
|
178
|
+
board: !1,
|
|
179
|
+
rect: O(i)
|
|
180
|
+
} : null;
|
|
181
|
+
}
|
|
182
|
+
function ie(e, t) {
|
|
183
|
+
let n = [...Object.keys(e.boards), ...Object.keys(e.notes ?? {})];
|
|
184
|
+
return [...new Set(n)].flatMap((n) => F(e, t, n) ?? []);
|
|
185
|
+
}
|
|
186
|
+
function I(e, t, n) {
|
|
187
|
+
return t === "left" ? {
|
|
188
|
+
x: e.x,
|
|
189
|
+
y: N(e) + n
|
|
190
|
+
} : t === "right" ? {
|
|
191
|
+
x: e.x + e.w,
|
|
192
|
+
y: N(e) + n
|
|
193
|
+
} : t === "top" ? {
|
|
194
|
+
x: M(e) + n,
|
|
195
|
+
y: e.y
|
|
196
|
+
} : {
|
|
197
|
+
x: M(e) + n,
|
|
198
|
+
y: e.y + e.h
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
function ae(e, t, n) {
|
|
202
|
+
let r = Math.min(e.x, t.x), i = Math.max(e.x, t.x), a = Math.min(e.y, t.y), o = Math.max(e.y, t.y);
|
|
203
|
+
return a === o ? a > n.y && a < n.y + n.h && r < n.x + n.w && i > n.x : r > n.x && r < n.x + n.w && a < n.y + n.h && o > n.y;
|
|
204
|
+
}
|
|
205
|
+
function oe(e, t, n) {
|
|
206
|
+
return t.filter((t) => !n.has(t.id) && e.some((n, r) => r + 1 < e.length && ae(n, e[r + 1], t.rect))).map((e) => e.id);
|
|
207
|
+
}
|
|
208
|
+
function L(e, t, n) {
|
|
209
|
+
let r = I(e.from.rect, e.fromSide, t), i = I(e.to.rect, e.toSide, n);
|
|
210
|
+
if (P(e.fromSide) !== P(e.toSide)) return [
|
|
211
|
+
r,
|
|
212
|
+
P(e.fromSide) ? {
|
|
213
|
+
x: i.x,
|
|
214
|
+
y: r.y
|
|
215
|
+
} : {
|
|
216
|
+
x: r.x,
|
|
217
|
+
y: i.y
|
|
218
|
+
},
|
|
219
|
+
i
|
|
220
|
+
];
|
|
221
|
+
if (P(e.fromSide)) {
|
|
222
|
+
if (Math.abs(r.y - i.y) < .5) return [r, {
|
|
223
|
+
x: i.x,
|
|
224
|
+
y: r.y
|
|
225
|
+
}];
|
|
226
|
+
let e = (r.x + i.x) / 2;
|
|
227
|
+
return [
|
|
228
|
+
r,
|
|
229
|
+
{
|
|
230
|
+
x: e,
|
|
231
|
+
y: r.y
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
x: e,
|
|
235
|
+
y: i.y
|
|
236
|
+
},
|
|
237
|
+
i
|
|
238
|
+
];
|
|
239
|
+
}
|
|
240
|
+
if (Math.abs(r.x - i.x) < .5) return [r, {
|
|
241
|
+
x: r.x,
|
|
242
|
+
y: i.y
|
|
243
|
+
}];
|
|
244
|
+
let a = (r.y + i.y) / 2;
|
|
245
|
+
return [
|
|
246
|
+
r,
|
|
247
|
+
{
|
|
248
|
+
x: r.x,
|
|
249
|
+
y: a
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
x: i.x,
|
|
253
|
+
y: a
|
|
254
|
+
},
|
|
255
|
+
i
|
|
256
|
+
];
|
|
257
|
+
}
|
|
258
|
+
function R(e, t, n) {
|
|
259
|
+
let r = e.rect, i = t.rect, a = M(i) >= M(r), o = N(i) >= N(r);
|
|
260
|
+
if (r.y < i.y + i.h && i.y < r.y + r.h) return a ? ["right", "left"] : ["left", "right"];
|
|
261
|
+
if (r.x < i.x + i.w && i.x < r.x + r.w) return o ? ["bottom", "top"] : ["top", "bottom"];
|
|
262
|
+
let s = [[a ? "right" : "left", o ? "top" : "bottom"], [o ? "bottom" : "top", a ? "left" : "right"]], c = /* @__PURE__ */ new Set([e.id, t.id]), l = ([r, i], a) => {
|
|
263
|
+
let o = L({
|
|
264
|
+
from: e,
|
|
265
|
+
to: t,
|
|
266
|
+
fromSide: r,
|
|
267
|
+
toSide: i
|
|
268
|
+
}, 0, 0), s = r === "top" && e.board || i === "top" && t.board, l = a === +!e.board;
|
|
269
|
+
return oe(o, n, c).length * 100 + (s ? 10 : 0) + +!l;
|
|
270
|
+
};
|
|
271
|
+
return l(s[0], 0) <= l(s[1], 1) ? s[0] : s[1];
|
|
272
|
+
}
|
|
273
|
+
function z(e) {
|
|
274
|
+
let t = /* @__PURE__ */ new Map();
|
|
275
|
+
for (let n of e) for (let [e, r, i, a] of [[
|
|
276
|
+
"from",
|
|
277
|
+
n.from,
|
|
278
|
+
n.fromSide,
|
|
279
|
+
n.to
|
|
280
|
+
], [
|
|
281
|
+
"to",
|
|
282
|
+
n.to,
|
|
283
|
+
n.toSide,
|
|
284
|
+
n.from
|
|
285
|
+
]]) {
|
|
286
|
+
let o = `${r.id}\n${i}`, s = P(i), c = t.get(o) ?? [];
|
|
287
|
+
c.push({
|
|
288
|
+
key: `${n.id}\n${e}`,
|
|
289
|
+
edge: n.id,
|
|
290
|
+
along: s ? N(a.rect) : M(a.rect),
|
|
291
|
+
length: s ? r.rect.h : r.rect.w
|
|
292
|
+
}), t.set(o, c);
|
|
293
|
+
}
|
|
294
|
+
let n = /* @__PURE__ */ new Map();
|
|
295
|
+
for (let e of t.values()) {
|
|
296
|
+
e.sort((e, t) => e.along - t.along || (e.edge < t.edge ? -1 : 1));
|
|
297
|
+
let t = e[0].length, r = Math.min(re, t / (e.length + 1));
|
|
298
|
+
e.forEach((i, a) => {
|
|
299
|
+
n.set(i.key, {
|
|
300
|
+
offset: (a - (e.length - 1) / 2) * r,
|
|
301
|
+
size: e.length,
|
|
302
|
+
limit: t / 2 - r / 2
|
|
303
|
+
});
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
return n;
|
|
307
|
+
}
|
|
308
|
+
function se(e, t, n) {
|
|
309
|
+
let r = e.label?.trim();
|
|
310
|
+
if (!r) return null;
|
|
311
|
+
let i = !e.from.board, a = i ? 28 : 32, o = Math.ceil(w(r, a) + 32), s = Math.ceil(a * te), c = (e, t, r, i) => {
|
|
312
|
+
let a = r ? i - 48 : j, o = {
|
|
313
|
+
x: e - j / 2,
|
|
314
|
+
y: t - s / 2,
|
|
315
|
+
w: j,
|
|
316
|
+
h: s
|
|
317
|
+
};
|
|
318
|
+
for (let { rect: t } of n) {
|
|
319
|
+
if (!A(o, t)) continue;
|
|
320
|
+
let n = t.x >= e ? t.x - e : e >= t.x + t.w ? e - (t.x + t.w) : 0;
|
|
321
|
+
a = Math.min(a, n * 2 - ne);
|
|
322
|
+
}
|
|
323
|
+
return Math.max(0, a);
|
|
324
|
+
}, l = t.slice(0, -1).map((e, n) => {
|
|
325
|
+
let r = t[n + 1];
|
|
326
|
+
return {
|
|
327
|
+
a: e,
|
|
328
|
+
b: r,
|
|
329
|
+
flat: e.y === r.y,
|
|
330
|
+
length: Math.abs(e.x - r.x) + Math.abs(e.y - r.y)
|
|
331
|
+
};
|
|
332
|
+
}).sort((e, t) => t.length - e.length), u = null;
|
|
333
|
+
for (let { a: e, b: t, flat: n, length: a } of l) {
|
|
334
|
+
let l = (e.x + t.x) / 2, d = (e.y + t.y) / 2, f = n || a >= s + 48 ? c(l, d, n, a) : 0, p = {
|
|
335
|
+
text: r,
|
|
336
|
+
branch: i,
|
|
337
|
+
x: l,
|
|
338
|
+
y: d,
|
|
339
|
+
w: o,
|
|
340
|
+
h: s,
|
|
341
|
+
room: f
|
|
342
|
+
};
|
|
343
|
+
if (f >= o) return p;
|
|
344
|
+
(!u || f > u.room) && (u = p);
|
|
345
|
+
}
|
|
346
|
+
return u;
|
|
347
|
+
}
|
|
348
|
+
function B(e, t) {
|
|
349
|
+
let n = Object.entries(e.edges ?? {});
|
|
350
|
+
if (n.length === 0) return [];
|
|
351
|
+
let r = ie(e, t), i = [];
|
|
352
|
+
for (let [a, o] of n) {
|
|
353
|
+
if (o.from === o.to) continue;
|
|
354
|
+
let n = F(e, t, o.from), s = F(e, t, o.to);
|
|
355
|
+
if (!n || !s) continue;
|
|
356
|
+
let [c, l] = R(n, s, r);
|
|
357
|
+
i.push({
|
|
358
|
+
id: a,
|
|
359
|
+
from: n,
|
|
360
|
+
to: s,
|
|
361
|
+
fromSide: c,
|
|
362
|
+
toSide: l,
|
|
363
|
+
label: o.label
|
|
364
|
+
});
|
|
365
|
+
}
|
|
366
|
+
let a = z(i);
|
|
367
|
+
return i.map((e) => {
|
|
368
|
+
let t = a.get(`${e.id}\nfrom`), n = a.get(`${e.id}\nto`), i = t.offset, o = n.offset, s = P(e.fromSide);
|
|
369
|
+
if (s === P(e.toSide) && (s ? Math.abs(N(e.from.rect) - N(e.to.rect)) < .5 : Math.abs(M(e.from.rect) - M(e.to.rect)) < .5) && i !== o) {
|
|
370
|
+
let e = t.size >= n.size, r = e ? i : o;
|
|
371
|
+
Math.abs(r) <= (e ? n : t).limit && (i = r, o = r);
|
|
372
|
+
}
|
|
373
|
+
let c = L(e, i, o);
|
|
374
|
+
return {
|
|
375
|
+
id: e.id,
|
|
376
|
+
points: c,
|
|
377
|
+
label: se(e, c, r)
|
|
378
|
+
};
|
|
379
|
+
});
|
|
380
|
+
}
|
|
381
|
+
function ce(e, t) {
|
|
382
|
+
let n = e[0];
|
|
383
|
+
if (!n) return "";
|
|
384
|
+
let r = [`M${n.x},${n.y}`];
|
|
385
|
+
for (let n = 1; n < e.length; n++) {
|
|
386
|
+
let i = e[n], a = e[n + 1], o = e[n - 1], s = Math.hypot(i.x - o.x, i.y - o.y), c = a ? Math.hypot(a.x - i.x, a.y - i.y) : 0, l = Math.min(t, s / 2, c / 2);
|
|
387
|
+
if (!a || l <= 0) {
|
|
388
|
+
r.push(`L${i.x},${i.y}`);
|
|
389
|
+
continue;
|
|
390
|
+
}
|
|
391
|
+
let u = i.x - (i.x - o.x) / s * l, d = i.y - (i.y - o.y) / s * l, f = i.x + (a.x - i.x) / c * l, p = i.y + (a.y - i.y) / c * l;
|
|
392
|
+
r.push(`L${u},${d}`, `Q${i.x},${i.y} ${f},${p}`);
|
|
393
|
+
}
|
|
394
|
+
return r.join(" ");
|
|
395
|
+
}
|
|
396
|
+
// src/viewer/lib/view.ts
|
|
397
|
+
var le = .02, ue = .9, V = (e) => Math.min(4, Math.max(le, e)), H = (e) => ({
|
|
158
398
|
minX: e.x,
|
|
159
399
|
minY: e.y,
|
|
160
400
|
maxX: e.x + e.w,
|
|
161
401
|
maxY: e.y + e.h
|
|
162
402
|
});
|
|
163
|
-
function
|
|
164
|
-
let r = Math.max(1, t.width - n.left - n.right), i = Math.max(1, t.height - n.top - n.bottom), a = Math.max(1, e.maxX - e.minX), o = Math.max(1, e.maxY - e.minY), s =
|
|
403
|
+
function U(e, t, n) {
|
|
404
|
+
let r = Math.max(1, t.width - n.left - n.right), i = Math.max(1, t.height - n.top - n.bottom), a = Math.max(1, e.maxX - e.minX), o = Math.max(1, e.maxY - e.minY), s = V(Math.min(1, Math.min(r / a, i / o) * ue));
|
|
165
405
|
return {
|
|
166
406
|
k: s,
|
|
167
407
|
x: n.left + (r - a * s) / 2 - e.minX * s,
|
|
168
408
|
y: n.top + (i - o * s) / 2 - e.minY * s
|
|
169
409
|
};
|
|
170
410
|
}
|
|
171
|
-
function
|
|
172
|
-
let i =
|
|
411
|
+
function W(e, t, n, r) {
|
|
412
|
+
let i = V(e.k * t), a = i / e.k;
|
|
173
413
|
return {
|
|
174
414
|
k: i,
|
|
175
415
|
x: n - (n - e.x) * a,
|
|
176
416
|
y: r - (r - e.y) * a
|
|
177
417
|
};
|
|
178
418
|
}
|
|
179
|
-
function
|
|
419
|
+
function de(e, t, n) {
|
|
180
420
|
let r = ([e, t]) => Math.max(1, Math.hypot(t.x - e.x, t.y - e.y)), i = ([e, t]) => ({
|
|
181
421
|
x: (e.x + t.x) / 2,
|
|
182
422
|
y: (e.y + t.y) / 2
|
|
183
|
-
}), a =
|
|
423
|
+
}), a = V(e.k * (r(n) / r(t))), o = a / e.k, s = i(t), c = i(n);
|
|
184
424
|
return {
|
|
185
425
|
k: a,
|
|
186
426
|
x: c.x - (s.x - e.x) * o,
|
|
187
427
|
y: c.y - (s.y - e.y) * o
|
|
188
428
|
};
|
|
189
429
|
}
|
|
190
|
-
function
|
|
191
|
-
return
|
|
430
|
+
function fe(e, t, n, r) {
|
|
431
|
+
return W(e, t / e.k, n, r);
|
|
192
432
|
}
|
|
193
|
-
function
|
|
433
|
+
function pe(e, t, n) {
|
|
194
434
|
let r = e.boards[n];
|
|
195
435
|
if (r) return {
|
|
196
436
|
page: r.page,
|
|
197
|
-
bounds:
|
|
437
|
+
bounds: H({
|
|
198
438
|
...r,
|
|
199
439
|
y: r.y - 48,
|
|
200
440
|
h: r.h + 48
|
|
@@ -204,12 +444,12 @@ function ie(e, t, n) {
|
|
|
204
444
|
let t = r.groups[n] ?? r.notes[n];
|
|
205
445
|
if (t) return {
|
|
206
446
|
page: e,
|
|
207
|
-
bounds:
|
|
447
|
+
bounds: H(t)
|
|
208
448
|
};
|
|
209
449
|
}
|
|
210
450
|
return null;
|
|
211
451
|
}
|
|
212
|
-
function
|
|
452
|
+
function me(e, t) {
|
|
213
453
|
let n = e.w * t.k;
|
|
214
454
|
return n < 48 ? null : {
|
|
215
455
|
left: t.x + e.x * t.k,
|
|
@@ -217,34 +457,34 @@ function ae(e, t) {
|
|
|
217
457
|
width: n
|
|
218
458
|
};
|
|
219
459
|
}
|
|
220
|
-
var
|
|
460
|
+
var G = {
|
|
221
461
|
base: 27,
|
|
222
462
|
follow: .7,
|
|
223
463
|
min: 4,
|
|
224
464
|
hideBelow: .05,
|
|
225
465
|
cap: !0
|
|
226
|
-
},
|
|
466
|
+
}, he = {
|
|
227
467
|
base: 23,
|
|
228
468
|
follow: .85,
|
|
229
469
|
min: 0,
|
|
230
470
|
hideBelow: .11,
|
|
231
471
|
cap: !0
|
|
232
|
-
},
|
|
472
|
+
}, ge = {
|
|
233
473
|
follow: 1,
|
|
234
474
|
min: 24,
|
|
235
475
|
hideBelow: 0,
|
|
236
476
|
cap: !1
|
|
237
477
|
};
|
|
238
|
-
function
|
|
478
|
+
function K(e, t) {
|
|
239
479
|
if (t < e.hideBelow) return null;
|
|
240
480
|
let n = e.base * t ** e.follow;
|
|
241
481
|
return Math.max(e.cap ? Math.min(n, e.base) : n, e.min);
|
|
242
482
|
}
|
|
243
|
-
var
|
|
244
|
-
...
|
|
483
|
+
var _e = (e, t) => K({
|
|
484
|
+
...ge,
|
|
245
485
|
base: e
|
|
246
486
|
}, t) / (e * t);
|
|
247
|
-
function
|
|
487
|
+
function ve(e, t, n) {
|
|
248
488
|
let r = new Set(Object.values(e.groups ?? {}).flatMap((e) => e.boards)), i = Object.values(e.groups ?? {}).flatMap((n) => {
|
|
249
489
|
let r = E(n, e.boards);
|
|
250
490
|
return r && r.page === t ? [r] : [];
|
|
@@ -253,35 +493,35 @@ function z(e, t, n) {
|
|
|
253
493
|
y: n.y - 48,
|
|
254
494
|
w: n.w,
|
|
255
495
|
h: n.h + 48
|
|
256
|
-
}] : []), o = Object.entries(e.notes ?? {}).flatMap(([e, r]) => e !== n && r.page === t ? [
|
|
496
|
+
}] : []), o = Object.entries(e.notes ?? {}).flatMap(([e, r]) => e !== n && r.page === t ? [O(r)] : []);
|
|
257
497
|
return [
|
|
258
498
|
...i,
|
|
259
499
|
...a,
|
|
260
500
|
...o
|
|
261
501
|
];
|
|
262
502
|
}
|
|
263
|
-
function
|
|
503
|
+
function ye(e, t) {
|
|
264
504
|
let n = e.notes?.[t];
|
|
265
505
|
if (!n) return Infinity;
|
|
266
|
-
let r =
|
|
267
|
-
for (let o of
|
|
268
|
-
if (
|
|
506
|
+
let r = O(n), i = r.y + r.h, a = Infinity;
|
|
507
|
+
for (let o of ve(e, n.page, t)) {
|
|
508
|
+
if (A(r, o) || o.x + o.w <= r.x || o.y >= i) continue;
|
|
269
509
|
let e = o.x > r.x ? (o.x - r.x) / r.w : 0, t = o.y + o.h < r.y ? (i - (o.y + o.h)) / r.h : 0;
|
|
270
510
|
a = Math.min(a, Math.max(e, t));
|
|
271
511
|
}
|
|
272
512
|
return a;
|
|
273
513
|
}
|
|
274
|
-
var
|
|
275
|
-
function
|
|
276
|
-
let r =
|
|
514
|
+
var be = (e, t, n) => Math.max(1, Math.min(_e(e, t), n));
|
|
515
|
+
function xe(e, t, n) {
|
|
516
|
+
let r = K(G, t);
|
|
277
517
|
if (r === null) return null;
|
|
278
518
|
let i = (144 * t - n) / 46, a = Math.min(r / 13, i);
|
|
279
|
-
return a * 13 <
|
|
519
|
+
return a * 13 < G.min ? null : {
|
|
280
520
|
scale: a,
|
|
281
521
|
maxWidth: (e.maxX - e.minX) * t / a
|
|
282
522
|
};
|
|
283
523
|
}
|
|
284
|
-
function
|
|
524
|
+
function Se(e, t, n, r) {
|
|
285
525
|
let i = (e, t, n) => 3 * t * e * (1 - e) ** 2 + 3 * n * e ** 2 * (1 - e) + e ** 3, a = (e, t, n) => 3 * t * (1 - e) ** 2 + 6 * (n - t) * e * (1 - e) + 3 * (1 - n) * e ** 2;
|
|
286
526
|
return (o) => {
|
|
287
527
|
if (o <= 0 || o >= 1) return Math.min(1, Math.max(0, o));
|
|
@@ -294,17 +534,17 @@ function U(e, t, n, r) {
|
|
|
294
534
|
return i(s, t, r);
|
|
295
535
|
};
|
|
296
536
|
}
|
|
297
|
-
var
|
|
537
|
+
var Ce = (e, t, n) => ({
|
|
298
538
|
x: e.x + (t.x - e.x) * n,
|
|
299
539
|
y: e.y + (t.y - e.y) * n,
|
|
300
540
|
k: e.k + (t.k - e.k) * n
|
|
301
|
-
}),
|
|
302
|
-
function
|
|
541
|
+
}), q = 3e5, we = 8e3, Te = 1e4, Ee = 1e3, De = 3e4, Oe = 0, J = 1, Y = 2, ke = 3;
|
|
542
|
+
function X(e, t, n, r) {
|
|
303
543
|
let i = t.x + e.x * t.k, a = t.y + e.y * t.k, o = i + e.w * t.k, s = a + e.h * t.k;
|
|
304
544
|
return o > -n.width * r && i < n.width * (1 + r) && s > -n.height * r && a < n.height * (1 + r);
|
|
305
545
|
}
|
|
306
|
-
var
|
|
307
|
-
function
|
|
546
|
+
var Z = (e) => e.phase !== "unloaded";
|
|
547
|
+
function Ae({ now: e = () => performance.now(), idleMs: t = q, readyTimeoutMs: n = we, captureTimeoutMs: r = Te, maxLive: i = 24, minLivePx: a = 96, settleMs: o = Ee, touchHoldMs: s = De, maxSnapshots: c = 600 } = {}) {
|
|
308
548
|
let l = /* @__PURE__ */ new Map(), u = (e, t) => {
|
|
309
549
|
let n = l.get(e.id);
|
|
310
550
|
return n || (n = {
|
|
@@ -341,10 +581,10 @@ function fe({ now: e = () => performance.now(), idleMs: t = G, readyTimeoutMs: n
|
|
|
341
581
|
for (let e of n) {
|
|
342
582
|
let t = u(e, v), n = t.version !== e.version;
|
|
343
583
|
t.version = e.version;
|
|
344
|
-
let i = g.has(e.id), o =
|
|
345
|
-
(s || t.active || n &&
|
|
584
|
+
let i = g.has(e.id), o = X(e, r, h, 0), s = i || o;
|
|
585
|
+
(s || t.active || n && Z(t)) && (t.lastActive = v), t.active = s;
|
|
346
586
|
let c = e.w * r.k >= a, l = t.snapshotVersion === e.version || t.uncapturableVersion === e.version, d = null;
|
|
347
|
-
i ? d =
|
|
587
|
+
i ? d = Oe : o && c ? d = l ? Y : J : c && X(e, r, h, 1) && (d = ke);
|
|
348
588
|
let f = {
|
|
349
589
|
board: e,
|
|
350
590
|
state: t,
|
|
@@ -356,7 +596,7 @@ function fe({ now: e = () => performance.now(), idleMs: t = G, readyTimeoutMs: n
|
|
|
356
596
|
}
|
|
357
597
|
if (!_) {
|
|
358
598
|
C.sort((e, t) => e.rank - t.rank || e.distance - t.distance);
|
|
359
|
-
let e = new Set(C.slice(0, i).map((e) => e.board.id)), n = C.slice(i).some((e) => e.rank <=
|
|
599
|
+
let e = new Set(C.slice(0, i).map((e) => e.board.id)), n = C.slice(i).some((e) => e.rank <= Y);
|
|
360
600
|
for (let n of S) {
|
|
361
601
|
let { state: r, board: i } = n;
|
|
362
602
|
d(r, v), r.phase === "capturing" ? (n.explicit || r.evicting && e.has(i.id)) && (r.phase = "mounted") : r.phase === "mounted" && !r.active && v - r.lastActive >= t && p(n, !1, v, b);
|
|
@@ -364,14 +604,14 @@ function fe({ now: e = () => performance.now(), idleMs: t = G, readyTimeoutMs: n
|
|
|
364
604
|
let r = C.filter((t) => e.has(t.board.id) && t.state.phase === "unloaded"), a = 0, l = 0, u = [];
|
|
365
605
|
for (let t of S) {
|
|
366
606
|
let { state: n, board: r } = t;
|
|
367
|
-
|
|
607
|
+
Z(n) && (a++, !(e.has(r.id) || t.explicit) && (n.phase === "capturing" ? l++ : u.push(t)));
|
|
368
608
|
}
|
|
369
609
|
let m = r.length - (i - a) - l;
|
|
370
610
|
if (m > 0) {
|
|
371
611
|
u.sort((e, t) => Number(e.state.phase === "mounted") - Number(t.state.phase === "mounted") || e.state.lastActive - t.state.lastActive);
|
|
372
612
|
for (let e of u) {
|
|
373
613
|
if (m <= 0) break;
|
|
374
|
-
e.state.phase === "restoring" ? e.state.phase = "unloaded" : p(e, !0, v, b),
|
|
614
|
+
e.state.phase === "restoring" ? e.state.phase = "unloaded" : p(e, !0, v, b), Z(e.state) || a--, m--;
|
|
375
615
|
}
|
|
376
616
|
}
|
|
377
617
|
for (let e of r) {
|
|
@@ -380,7 +620,7 @@ function fe({ now: e = () => performance.now(), idleMs: t = G, readyTimeoutMs: n
|
|
|
380
620
|
}
|
|
381
621
|
if (n) for (let t of C) {
|
|
382
622
|
let { state: n, board: r } = t;
|
|
383
|
-
if (t.rank !==
|
|
623
|
+
if (t.rank !== J || n.phase !== "mounted" || !e.has(r.id)) continue;
|
|
384
624
|
let i = Math.max(n.mountedAt + o, n.lastTouch + s);
|
|
385
625
|
v >= i ? f(t, !1, v, b) : T(i);
|
|
386
626
|
}
|
|
@@ -423,7 +663,7 @@ function fe({ now: e = () => performance.now(), idleMs: t = G, readyTimeoutMs: n
|
|
|
423
663
|
}
|
|
424
664
|
};
|
|
425
665
|
}
|
|
426
|
-
function
|
|
666
|
+
function Q(e, t, n, r = 240) {
|
|
427
667
|
let i = /* @__PURE__ */ new Set();
|
|
428
668
|
for (let a of e) {
|
|
429
669
|
let e = t.x + a.x * t.k, o = t.y + a.y * t.k, s = e + a.w * t.k, c = o + a.h * t.k;
|
|
@@ -431,13 +671,13 @@ function Z(e, t, n, r = 240) {
|
|
|
431
671
|
}
|
|
432
672
|
return i;
|
|
433
673
|
}
|
|
434
|
-
function
|
|
674
|
+
function je(e, t, n = 96) {
|
|
435
675
|
let r = /* @__PURE__ */ new Set();
|
|
436
676
|
for (let i of e) i.w * t < n && r.add(i.id);
|
|
437
677
|
return r;
|
|
438
678
|
}
|
|
439
679
|
// src/viewer/layouts/previewStyles.ts
|
|
440
|
-
var
|
|
680
|
+
var $ = {
|
|
441
681
|
message: {
|
|
442
682
|
kVAEAm: "xixxii4",
|
|
443
683
|
k87sOh: "x13vifvy",
|
|
@@ -478,8 +718,8 @@ var Q = {
|
|
|
478
718
|
kgSjnq: "xcdf9qb",
|
|
479
719
|
$$css: !0
|
|
480
720
|
}
|
|
481
|
-
},
|
|
482
|
-
function
|
|
721
|
+
}, Me = s(() => import("./shims.js").then(() => import("./SnapshotDocument-BSkLVGik.js").then((e) => e.n))), Ne = s(() => import("./Canvas-CCq4Ko7_.js").then((e) => e.n).then(({ Canvas: e }) => ({ default: e }))), Pe = () => () => {}, Fe = () => {}, Ie = /* @__PURE__ */ new Set();
|
|
722
|
+
function Le({ type: t, id: i, data: o, failed: s }) {
|
|
483
723
|
let { t: c } = r(), [f, p] = u(() => ({
|
|
484
724
|
width: innerWidth,
|
|
485
725
|
height: innerHeight
|
|
@@ -492,10 +732,10 @@ function ve({ type: t, id: i, data: o, failed: s }) {
|
|
|
492
732
|
return addEventListener("resize", e), () => removeEventListener("resize", e);
|
|
493
733
|
}, []);
|
|
494
734
|
let m = (t) => /* @__PURE__ */ d("div", {
|
|
495
|
-
...e(
|
|
735
|
+
...e($.message),
|
|
496
736
|
children: t
|
|
497
737
|
}), h = /* @__PURE__ */ d("div", {
|
|
498
|
-
...e(
|
|
738
|
+
...e($.message),
|
|
499
739
|
children: /* @__PURE__ */ d(n, {
|
|
500
740
|
stack: !0,
|
|
501
741
|
label: c("preview.loading"),
|
|
@@ -505,7 +745,7 @@ function ve({ type: t, id: i, data: o, failed: s }) {
|
|
|
505
745
|
if (s) return m(c("preview.unavailable"));
|
|
506
746
|
if (!o) return h;
|
|
507
747
|
if (t === "html") return o.warnings?.length ? m(c("preview.waitingPage")) : /* @__PURE__ */ d("iframe", {
|
|
508
|
-
...e(
|
|
748
|
+
...e($.html),
|
|
509
749
|
sandbox: "allow-scripts",
|
|
510
750
|
src: `${o.contentBase}index.html`,
|
|
511
751
|
tabIndex: -1,
|
|
@@ -515,7 +755,7 @@ function ve({ type: t, id: i, data: o, failed: s }) {
|
|
|
515
755
|
resetKey: o.state,
|
|
516
756
|
children: /* @__PURE__ */ d(a, {
|
|
517
757
|
fallback: h,
|
|
518
|
-
children: /* @__PURE__ */ d(
|
|
758
|
+
children: /* @__PURE__ */ d(Me, {
|
|
519
759
|
contentBase: o.contentBase,
|
|
520
760
|
id: i,
|
|
521
761
|
state: o.state
|
|
@@ -524,31 +764,32 @@ function ve({ type: t, id: i, data: o, failed: s }) {
|
|
|
524
764
|
}) : m(c("preview.waitingDocument"));
|
|
525
765
|
let g = o.canvas, v = g?.activePage ?? g?.pages[0]?.id, y = v ? o.layout?.pages[v]?.bounds : null;
|
|
526
766
|
if (!g || !v || !y) return m(c("preview.waitingCanvas"));
|
|
527
|
-
let b =
|
|
767
|
+
let b = U(y, f, {
|
|
528
768
|
top: 24,
|
|
529
769
|
right: 24,
|
|
530
770
|
bottom: 24,
|
|
531
771
|
left: 24
|
|
532
772
|
}), x = Object.entries(g.boards).filter(([, e]) => e.page === v);
|
|
533
773
|
return /* @__PURE__ */ d("div", {
|
|
534
|
-
...e(
|
|
774
|
+
...e($.canvas),
|
|
535
775
|
children: /* @__PURE__ */ d(_, {
|
|
536
776
|
resetKey: g,
|
|
537
777
|
children: /* @__PURE__ */ d(a, {
|
|
538
778
|
fallback: h,
|
|
539
|
-
children: /* @__PURE__ */ d(
|
|
779
|
+
children: /* @__PURE__ */ d(Ne, {
|
|
540
780
|
boards: x,
|
|
541
781
|
contentBase: o.contentBase,
|
|
542
|
-
frameLoaded:
|
|
543
|
-
frameRef:
|
|
782
|
+
frameLoaded: Fe,
|
|
783
|
+
frameRef: Pe,
|
|
544
784
|
inspecting: !1,
|
|
545
785
|
notes: Object.entries(g.notes ?? {}).filter(([, e]) => e.page === v),
|
|
546
786
|
pending: new Set(o.pending),
|
|
547
|
-
playing:
|
|
787
|
+
playing: Ie,
|
|
548
788
|
replays: {},
|
|
789
|
+
routes: B(g, v),
|
|
549
790
|
versions: o.versions ?? {},
|
|
550
791
|
view: b,
|
|
551
|
-
culled:
|
|
792
|
+
culled: Q(x.map(([e, t]) => ({
|
|
552
793
|
id: e,
|
|
553
794
|
...t
|
|
554
795
|
})), b, f)
|
|
@@ -557,4 +798,4 @@ function ve({ type: t, id: i, data: o, failed: s }) {
|
|
|
557
798
|
})
|
|
558
799
|
});
|
|
559
800
|
}
|
|
560
|
-
export {
|
|
801
|
+
export { h as A, A as C, b as D, y as E, _ as O, E as S, x as T, fe as _, he as a, ee as b, xe as c, de as d, pe as f, W as g, Ce as h, Ae as i, m as j, g as k, me as l, be as m, Q as n, Se as o, ye as p, je as r, U as s, Le as t, K as u, ce as v, O as w, D as x, B as y };
|