@eyeon/map 2.0.32 → 2.0.36
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/assets/index.css +1 -1
- package/dist/chunks/MapViewer.js +1 -1
- package/dist/chunks/responsive.js +1027 -1017
- package/dist/chunks/responsive.js.map +1 -1
- package/dist/chunks/wheelZoom.js +1 -1
- package/dist/core/index.js +75 -74
- package/dist/core/routing/routeCurve.d.ts +8 -0
- package/dist/core/routing/routeCurve.d.ts.map +1 -1
- package/dist/editor/MapEditor.d.ts.map +1 -1
- package/dist/editor/canvas/EditorCanvas.d.ts.map +1 -1
- package/dist/editor/canvas/editorHover.d.ts +9 -2
- package/dist/editor/canvas/editorHover.d.ts.map +1 -1
- package/dist/editor/draftOps.d.ts.map +1 -1
- package/dist/editor/index.css +3 -3
- package/dist/editor/index.js +4373 -4348
- package/dist/editor/index.js.map +1 -1
- package/dist/editor/routeStubs.d.ts +0 -5
- package/dist/editor/routeStubs.d.ts.map +1 -1
- package/dist/editor/tools.d.ts +6 -0
- package/dist/editor/tools.d.ts.map +1 -1
- package/dist/viewer/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
const Nt = "transparent", Ft = "#94a3b8",
|
|
1
|
+
import Rn from "ngraph.graph";
|
|
2
|
+
import En from "ngraph.path";
|
|
3
|
+
const Nt = "transparent", Ft = "#94a3b8", Ln = 0.28, Dt = 32, Nn = 48, pt = 56;
|
|
4
4
|
function W(t) {
|
|
5
|
-
const
|
|
6
|
-
return
|
|
5
|
+
const n = (t ?? "").trim().toLowerCase();
|
|
6
|
+
return n === Nt || n === "none";
|
|
7
7
|
}
|
|
8
8
|
function Kt(t) {
|
|
9
|
-
const
|
|
10
|
-
if (
|
|
9
|
+
const n = t.replace("#", "").trim();
|
|
10
|
+
if (n.length === 3) {
|
|
11
11
|
const i = [
|
|
12
|
-
parseInt(
|
|
13
|
-
parseInt(
|
|
14
|
-
parseInt(
|
|
12
|
+
parseInt(n[0] + n[0], 16),
|
|
13
|
+
parseInt(n[1] + n[1], 16),
|
|
14
|
+
parseInt(n[2] + n[2], 16)
|
|
15
15
|
];
|
|
16
16
|
return i.some((c) => Number.isNaN(c)) ? null : i;
|
|
17
17
|
}
|
|
18
|
-
if (
|
|
19
|
-
const
|
|
20
|
-
return [
|
|
18
|
+
if (n.length !== 6) return null;
|
|
19
|
+
const e = parseInt(n.slice(0, 2), 16), r = parseInt(n.slice(2, 4), 16), o = parseInt(n.slice(4, 6), 16);
|
|
20
|
+
return [e, r, o].some((i) => Number.isNaN(i)) ? null : [e, r, o];
|
|
21
21
|
}
|
|
22
|
-
function Yt(t,
|
|
22
|
+
function Yt(t, n, e) {
|
|
23
23
|
const r = (o) => Math.max(0, Math.min(255, Math.round(o))).toString(16).padStart(2, "0");
|
|
24
|
-
return `#${r(t)}${r(
|
|
24
|
+
return `#${r(t)}${r(n)}${r(e)}`;
|
|
25
25
|
}
|
|
26
|
-
function Qr(t,
|
|
27
|
-
const
|
|
28
|
-
return r ?
|
|
26
|
+
function Qr(t, n = Ft) {
|
|
27
|
+
const e = W(t) ? n : t, r = Kt(e) ?? Kt(n);
|
|
28
|
+
return r ? vn(r) : Ft;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
const r = Math.max(t,
|
|
32
|
-
if (r <
|
|
33
|
-
return Yt(t + pt,
|
|
34
|
-
let o = 1 -
|
|
35
|
-
return r - Math.max(i, c, a) < Dt && (o = (r - Dt) / r, i = t * o, c =
|
|
30
|
+
function vn([t, n, e]) {
|
|
31
|
+
const r = Math.max(t, n, e);
|
|
32
|
+
if (r < Nn)
|
|
33
|
+
return Yt(t + pt, n + pt, e + pt);
|
|
34
|
+
let o = 1 - Ln, i = t * o, c = n * o, a = e * o;
|
|
35
|
+
return r - Math.max(i, c, a) < Dt && (o = (r - Dt) / r, i = t * o, c = n * o, a = e * o), Yt(i, c, a);
|
|
36
36
|
}
|
|
37
|
-
const
|
|
37
|
+
const cn = "#E9F7FC", Tn = [
|
|
38
38
|
"green-area",
|
|
39
39
|
"water-area",
|
|
40
40
|
"parking-lane",
|
|
41
41
|
"parking-icon",
|
|
42
42
|
"walking-path"
|
|
43
|
-
],
|
|
43
|
+
], Mn = {
|
|
44
44
|
"green-area": "GREEN_AREA_COLOR",
|
|
45
45
|
"water-area": "WATER_COLOR",
|
|
46
46
|
"parking-lane": "PARKING_LANE_COLOR",
|
|
47
47
|
"parking-icon": "PARKING_ICON_COLOR",
|
|
48
48
|
"walking-path": "WALKABLE_COLOR"
|
|
49
|
-
},
|
|
49
|
+
}, wn = 2, an = {
|
|
50
50
|
"green-area": {
|
|
51
51
|
fill: "#C4DDAB",
|
|
52
52
|
// Same band as other artwork. Parking lanes are pulled under green areas
|
|
@@ -70,16 +70,16 @@ const se = "#E9F7FC", ve = [
|
|
|
70
70
|
extrudeHeight: 1
|
|
71
71
|
},
|
|
72
72
|
"walking-path": {
|
|
73
|
-
fill:
|
|
73
|
+
fill: cn,
|
|
74
74
|
renderOrder: 2,
|
|
75
75
|
extrudeHeight: 1
|
|
76
76
|
}
|
|
77
77
|
};
|
|
78
78
|
function X(t) {
|
|
79
|
-
const
|
|
80
|
-
return
|
|
79
|
+
const n = an[t];
|
|
80
|
+
return n.fill ?? n.stroke ?? "";
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function Pn() {
|
|
83
83
|
return {
|
|
84
84
|
GREEN_AREA_COLOR: X("green-area"),
|
|
85
85
|
WATER_COLOR: X("water-area"),
|
|
@@ -97,65 +97,65 @@ const xt = {
|
|
|
97
97
|
kiosk: "KIOSK_ICON_COLOR",
|
|
98
98
|
connector: "CONNECTOR_ICON_COLOR"
|
|
99
99
|
};
|
|
100
|
-
function
|
|
100
|
+
function Fn() {
|
|
101
101
|
return {
|
|
102
102
|
AMENITY_ICON_COLOR: xt.amenity,
|
|
103
103
|
KIOSK_ICON_COLOR: xt.kiosk,
|
|
104
104
|
CONNECTOR_ICON_COLOR: xt.connector
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function ln(t) {
|
|
108
108
|
return t.toLowerCase().replace(/[-_]+/g, " ").replace(/\s+/g, " ").trim();
|
|
109
109
|
}
|
|
110
|
-
function
|
|
111
|
-
const
|
|
112
|
-
return !!(t ===
|
|
110
|
+
function Dn(t, n) {
|
|
111
|
+
const e = ln(n);
|
|
112
|
+
return !!(t === e || t.startsWith(`${e} `) || t === `${e}s` || t.startsWith(`${e}s `));
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function ut(t) {
|
|
115
115
|
if (!t) return null;
|
|
116
|
-
const
|
|
117
|
-
if (!
|
|
118
|
-
const
|
|
119
|
-
for (const r of
|
|
120
|
-
if (
|
|
116
|
+
const n = ln(t);
|
|
117
|
+
if (!n) return null;
|
|
118
|
+
const e = [...Tn].sort((r, o) => o.length - r.length);
|
|
119
|
+
for (const r of e)
|
|
120
|
+
if (Dn(n, r)) return r;
|
|
121
121
|
return null;
|
|
122
122
|
}
|
|
123
|
-
function
|
|
124
|
-
const r =
|
|
123
|
+
function Kn(t, n, e) {
|
|
124
|
+
const r = Mn[n];
|
|
125
125
|
if (!r) return t;
|
|
126
|
-
const o =
|
|
126
|
+
const o = e == null ? void 0 : e[r];
|
|
127
127
|
return typeof o != "string" ? t : W(o) ? t.fill ? { ...t, fill: "transparent" } : t.stroke ? { ...t, stroke: "transparent" } : t : o.trim() ? t.fill ? { ...t, fill: o } : t.stroke ? { ...t, stroke: o } : t : t;
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
const
|
|
131
|
-
return
|
|
129
|
+
function ft(t, n) {
|
|
130
|
+
const e = ut(t);
|
|
131
|
+
return e ? Kn(an[e], e, n) : null;
|
|
132
132
|
}
|
|
133
133
|
function to(t) {
|
|
134
|
-
var
|
|
135
|
-
return ((
|
|
136
|
-
}
|
|
137
|
-
function ot(t) {
|
|
138
|
-
return lt(t) === "parking-lane";
|
|
134
|
+
var n;
|
|
135
|
+
return ((n = ft(t)) == null ? void 0 : n.renderOrder) ?? wn;
|
|
139
136
|
}
|
|
140
137
|
function it(t) {
|
|
141
|
-
return
|
|
138
|
+
return ut(t) === "parking-lane";
|
|
139
|
+
}
|
|
140
|
+
function st(t) {
|
|
141
|
+
return ut(t) === "parking-icon";
|
|
142
142
|
}
|
|
143
143
|
function Ct(t) {
|
|
144
|
-
return
|
|
144
|
+
return ut(t) === "green-area";
|
|
145
145
|
}
|
|
146
|
-
function
|
|
147
|
-
const
|
|
148
|
-
if (
|
|
149
|
-
const o =
|
|
150
|
-
return o && a ? -1 : c && i ? 1 : t.index -
|
|
146
|
+
function no(t, n) {
|
|
147
|
+
const e = st(t.layerName), r = st(n.layerName);
|
|
148
|
+
if (e !== r) return e ? 1 : -1;
|
|
149
|
+
const o = it(t.layerName), i = it(n.layerName), c = Ct(t.layerName), a = Ct(n.layerName);
|
|
150
|
+
return o && a ? -1 : c && i ? 1 : t.index - n.index;
|
|
151
151
|
}
|
|
152
|
-
function
|
|
153
|
-
const
|
|
152
|
+
function eo(t, n) {
|
|
153
|
+
const e = t.map((s, h) => ({
|
|
154
154
|
item: s,
|
|
155
155
|
index: h,
|
|
156
|
-
layerName:
|
|
157
|
-
})), r =
|
|
158
|
-
(s) => !
|
|
156
|
+
layerName: n(s)
|
|
157
|
+
})), r = e.filter((s) => st(s.layerName)), o = e.filter((s) => it(s.layerName)), i = e.filter(
|
|
158
|
+
(s) => !st(s.layerName) && !it(s.layerName)
|
|
159
159
|
), c = i.findIndex((s) => Ct(s.layerName));
|
|
160
160
|
return [...c >= 0 ? [
|
|
161
161
|
...i.slice(0, c),
|
|
@@ -163,22 +163,22 @@ function no(t, e) {
|
|
|
163
163
|
...i.slice(c)
|
|
164
164
|
] : [...i, ...o].sort((s, h) => s.index - h.index), ...r].map((s) => s.item);
|
|
165
165
|
}
|
|
166
|
-
function
|
|
167
|
-
const
|
|
166
|
+
function Yn(t, n) {
|
|
167
|
+
const e = (n == null ? void 0 : n.omitStaticLayers) === !0, r = /* @__PURE__ */ new Set();
|
|
168
168
|
for (const o of t) {
|
|
169
169
|
const i = o.sourceSvgId;
|
|
170
|
-
i && (
|
|
170
|
+
i && (e && ft(i) || r.add(i));
|
|
171
171
|
}
|
|
172
172
|
return r;
|
|
173
173
|
}
|
|
174
174
|
function ro(t) {
|
|
175
|
-
return
|
|
176
|
-
t.flatMap((
|
|
175
|
+
return Yn(
|
|
176
|
+
t.flatMap((n) => [...n.shapes]),
|
|
177
177
|
{ omitStaticLayers: !0 }
|
|
178
178
|
);
|
|
179
179
|
}
|
|
180
180
|
const oo = ["escalator", "elevator"];
|
|
181
|
-
function
|
|
181
|
+
function $n(t) {
|
|
182
182
|
return t === "escalator" || t === "elevator";
|
|
183
183
|
}
|
|
184
184
|
const U = {
|
|
@@ -199,26 +199,26 @@ const U = {
|
|
|
199
199
|
OVERLAY_COLOR: "#000000",
|
|
200
200
|
OVERLAY_OPACITY: 0.15,
|
|
201
201
|
PARKING_ZONE_COLOR: "#cbd5e1",
|
|
202
|
-
...
|
|
203
|
-
...
|
|
202
|
+
...Pn(),
|
|
203
|
+
...Fn(),
|
|
204
204
|
KIOSK_SIZE: 12,
|
|
205
205
|
ZOOM_STEP: 0.5,
|
|
206
206
|
CAMERA_MAX_DISTANCE: 2e3,
|
|
207
207
|
CAMERA_MIN_DISTANCE: 50
|
|
208
|
-
},
|
|
209
|
-
function
|
|
210
|
-
const
|
|
211
|
-
return !Number.isFinite(
|
|
208
|
+
}, Bn = "#f5f5f5", zn = /* @__PURE__ */ new Set(["#f8fafc", "#f1efea"]), Gn = "#86efac", Hn = "#7dd3fc", Xn = "#e2e8f0", Un = 500, Vn = 100;
|
|
209
|
+
function un(t) {
|
|
210
|
+
const n = typeof t == "number" ? t : Number(t);
|
|
211
|
+
return !Number.isFinite(n) || n <= 0 ? 0 : Math.min(n, Un);
|
|
212
212
|
}
|
|
213
|
-
function
|
|
214
|
-
const
|
|
215
|
-
return !Number.isFinite(
|
|
213
|
+
function Wn(t) {
|
|
214
|
+
const n = typeof t == "number" ? t : Number(t);
|
|
215
|
+
return !Number.isFinite(n) || n <= 0 ? U.ROUTE_THICKNESS : Math.min(n, Vn);
|
|
216
216
|
}
|
|
217
|
-
function
|
|
218
|
-
const
|
|
219
|
-
return
|
|
217
|
+
function Zn(...t) {
|
|
218
|
+
const n = Object.assign({}, U, ...t.filter(Boolean));
|
|
219
|
+
return n.MAP_BACKGROUND_COLOR.toLowerCase() === Bn && (n.MAP_BACKGROUND_COLOR = U.MAP_BACKGROUND_COLOR), zn.has(n.WALKABLE_COLOR.toLowerCase()) && (n.WALKABLE_COLOR = cn), n.GREEN_AREA_COLOR.toLowerCase() === Gn && (n.GREEN_AREA_COLOR = U.GREEN_AREA_COLOR), n.WATER_COLOR.toLowerCase() === Hn && (n.WATER_COLOR = U.WATER_COLOR), n.STORE_DEFAULT_COLOR.toLowerCase() === Xn && (n.STORE_DEFAULT_COLOR = U.STORE_DEFAULT_COLOR), n.STORE_RADIUS = un(n.STORE_RADIUS), n.ROUTE_THICKNESS = Wn(n.ROUTE_THICKNESS), n;
|
|
220
220
|
}
|
|
221
|
-
const
|
|
221
|
+
const jn = [
|
|
222
222
|
"unit",
|
|
223
223
|
"amenity",
|
|
224
224
|
"kiosk_screen",
|
|
@@ -226,46 +226,46 @@ const Ze = [
|
|
|
226
226
|
"entrance",
|
|
227
227
|
"parking_zone",
|
|
228
228
|
"custom"
|
|
229
|
-
], Rt = 1e4, io = 2.5,
|
|
230
|
-
function
|
|
229
|
+
], Rt = 1e4, io = 2.5, ct = "entrance", so = 24, qn = 8;
|
|
230
|
+
function Qn(t) {
|
|
231
231
|
var o;
|
|
232
232
|
if (!t) return !1;
|
|
233
|
-
const
|
|
234
|
-
return
|
|
233
|
+
const n = t.trim();
|
|
234
|
+
return n ? n === ct ? !0 : ((o = (n.split(/[?#]/, 1)[0] ?? n).split("/").filter(Boolean).pop()) == null ? void 0 : o.toLowerCase()) === ct : !1;
|
|
235
235
|
}
|
|
236
|
-
function
|
|
237
|
-
var
|
|
238
|
-
return t.kind !== "entrance" ? !1 :
|
|
236
|
+
function Jn(t) {
|
|
237
|
+
var n;
|
|
238
|
+
return t.kind !== "entrance" ? !1 : Qn((n = t.label) == null ? void 0 : n.imageKey) ? !0 : t.origin === "manual" && !t.sourceSvgId;
|
|
239
239
|
}
|
|
240
|
-
function
|
|
241
|
-
var
|
|
242
|
-
return !
|
|
240
|
+
function fn(t) {
|
|
241
|
+
var n;
|
|
242
|
+
return !Jn(t) || ((n = t.label) == null ? void 0 : n.imageKey) === ct ? t.label : {
|
|
243
243
|
...t.label ?? {},
|
|
244
|
-
imageKey:
|
|
244
|
+
imageKey: ct
|
|
245
245
|
};
|
|
246
246
|
}
|
|
247
|
-
function co(t,
|
|
248
|
-
const r =
|
|
249
|
-
return
|
|
250
|
-
...
|
|
251
|
-
kind:
|
|
247
|
+
function co(t, n, e) {
|
|
248
|
+
const r = n != null ? { ...t, ...n } : { ...t ?? {} };
|
|
249
|
+
return fn({
|
|
250
|
+
...e,
|
|
251
|
+
kind: e.kind ?? "unit",
|
|
252
252
|
label: r
|
|
253
253
|
}) ?? r;
|
|
254
254
|
}
|
|
255
255
|
function ao(t) {
|
|
256
|
-
return Math.max(
|
|
256
|
+
return Math.max(qn, t);
|
|
257
257
|
}
|
|
258
|
-
const lo = ["left", "center", "right"],
|
|
258
|
+
const lo = ["left", "center", "right"], te = "center";
|
|
259
259
|
function uo(t) {
|
|
260
|
-
return t === "left" || t === "right" ? t :
|
|
260
|
+
return t === "left" || t === "right" ? t : te;
|
|
261
261
|
}
|
|
262
|
-
function fo(t,
|
|
263
|
-
return
|
|
262
|
+
function fo(t, n) {
|
|
263
|
+
return n === "left" ? t.minX : n === "right" ? t.maxX : (t.minX + t.maxX) / 2;
|
|
264
264
|
}
|
|
265
265
|
function ho(t) {
|
|
266
266
|
return t === "left" ? "start" : t === "right" ? "end" : "middle";
|
|
267
267
|
}
|
|
268
|
-
const
|
|
268
|
+
const dt = 12, ne = dt, ee = 4, re = [
|
|
269
269
|
"retail_name",
|
|
270
270
|
"retail_logo",
|
|
271
271
|
"retail_text",
|
|
@@ -274,50 +274,50 @@ const ft = 12, tn = ft, en = 4, nn = [
|
|
|
274
274
|
"connector",
|
|
275
275
|
"custom_text",
|
|
276
276
|
"custom_image"
|
|
277
|
-
],
|
|
278
|
-
function Z(t,
|
|
279
|
-
const
|
|
280
|
-
return Number.isFinite(
|
|
277
|
+
], oe = new Set(re);
|
|
278
|
+
function Z(t, n) {
|
|
279
|
+
const e = typeof t == "number" ? t : Number(t);
|
|
280
|
+
return Number.isFinite(e) ? e : n;
|
|
281
281
|
}
|
|
282
|
-
const
|
|
283
|
-
function
|
|
284
|
-
const
|
|
285
|
-
if (
|
|
282
|
+
const ie = /^(?:|[+\-]|[+\-]?\.(?:0*)?)$/;
|
|
283
|
+
function se(t) {
|
|
284
|
+
const n = t.trim();
|
|
285
|
+
if (ie.test(n))
|
|
286
286
|
return { render: 0, complete: !1 };
|
|
287
|
-
const
|
|
288
|
-
return Number.isFinite(
|
|
287
|
+
const e = Number(n);
|
|
288
|
+
return Number.isFinite(e) ? { render: e, complete: !0 } : { render: 0, complete: !1 };
|
|
289
289
|
}
|
|
290
290
|
function yo(t) {
|
|
291
|
-
const
|
|
292
|
-
return
|
|
291
|
+
const n = se(t);
|
|
292
|
+
return n.complete ? { display: String(n.render), render: n.render } : { display: "0", render: 0 };
|
|
293
293
|
}
|
|
294
294
|
function D(t) {
|
|
295
295
|
if (t == null) return null;
|
|
296
|
-
const
|
|
297
|
-
return
|
|
296
|
+
const n = String(t).trim();
|
|
297
|
+
return n || null;
|
|
298
298
|
}
|
|
299
|
-
function
|
|
299
|
+
function ce(t) {
|
|
300
300
|
if (t == null) return null;
|
|
301
|
-
const
|
|
302
|
-
return
|
|
301
|
+
const n = String(t);
|
|
302
|
+
return n === "" ? null : n;
|
|
303
303
|
}
|
|
304
304
|
function mt(t) {
|
|
305
305
|
if (t == null || t === "") return null;
|
|
306
|
-
const
|
|
307
|
-
return Number.isFinite(
|
|
306
|
+
const n = Number(t);
|
|
307
|
+
return Number.isFinite(n) ? n : null;
|
|
308
308
|
}
|
|
309
|
-
function
|
|
310
|
-
return typeof t == "string" &&
|
|
309
|
+
function ae(t) {
|
|
310
|
+
return typeof t == "string" && oe.has(t);
|
|
311
311
|
}
|
|
312
312
|
function vt(t) {
|
|
313
313
|
return t === "amenity" ? "amenity" : t === "kiosk_screen" ? "kiosk" : t === "connector" ? "connector" : t === "custom" ? "custom_text" : "retail_name";
|
|
314
314
|
}
|
|
315
|
-
function
|
|
316
|
-
const
|
|
317
|
-
if (!
|
|
315
|
+
function le(t) {
|
|
316
|
+
const n = t == null ? void 0 : t.trim();
|
|
317
|
+
if (!n) return !1;
|
|
318
318
|
try {
|
|
319
|
-
const
|
|
320
|
-
return
|
|
319
|
+
const e = new URL(n);
|
|
320
|
+
return e.protocol === "http:" || e.protocol === "https:";
|
|
321
321
|
} catch {
|
|
322
322
|
return !1;
|
|
323
323
|
}
|
|
@@ -325,7 +325,7 @@ function ln(t) {
|
|
|
325
325
|
function po(t) {
|
|
326
326
|
return t === "amenity" ? "amenity" : t === "kiosk_screen" ? "kiosk" : t === "unit" || t === "parking_zone" ? "retailer" : "none";
|
|
327
327
|
}
|
|
328
|
-
function xo(t,
|
|
328
|
+
function xo(t, n) {
|
|
329
329
|
return {
|
|
330
330
|
shapeId: t,
|
|
331
331
|
targetType: "none",
|
|
@@ -336,8 +336,8 @@ function xo(t, e) {
|
|
|
336
336
|
unitNumber: null,
|
|
337
337
|
customLabel: null,
|
|
338
338
|
customImageKey: null,
|
|
339
|
-
layerType: vt(
|
|
340
|
-
size:
|
|
339
|
+
layerType: vt(n),
|
|
340
|
+
size: dt,
|
|
341
341
|
rotate: 0,
|
|
342
342
|
offsetX: 0,
|
|
343
343
|
offsetY: 0,
|
|
@@ -345,8 +345,8 @@ function xo(t, e) {
|
|
|
345
345
|
textColor: null
|
|
346
346
|
};
|
|
347
347
|
}
|
|
348
|
-
function mo(t,
|
|
349
|
-
const
|
|
348
|
+
function mo(t, n = "unit") {
|
|
349
|
+
const e = t.layerType ?? t.layer_type, r = t.unitStatus ?? t.unit_status ?? "vacant";
|
|
350
350
|
return {
|
|
351
351
|
shapeId: Z(
|
|
352
352
|
t.shapeId ?? t.shape_id,
|
|
@@ -366,14 +366,14 @@ function mo(t, e = "unit") {
|
|
|
366
366
|
unitNumber: D(
|
|
367
367
|
t.unitNumber ?? t.unit_number
|
|
368
368
|
),
|
|
369
|
-
customLabel:
|
|
369
|
+
customLabel: ce(
|
|
370
370
|
t.customLabel ?? t.custom_label
|
|
371
371
|
),
|
|
372
372
|
customImageKey: D(
|
|
373
373
|
t.customImageKey ?? t.custom_image_key
|
|
374
374
|
),
|
|
375
|
-
layerType:
|
|
376
|
-
size: Z(t.size,
|
|
375
|
+
layerType: ae(e) ? e : vt(n),
|
|
376
|
+
size: Z(t.size, dt),
|
|
377
377
|
rotate: Z(t.rotate, 0),
|
|
378
378
|
offsetX: Z(
|
|
379
379
|
t.offsetX ?? t.offset_x,
|
|
@@ -389,185 +389,185 @@ function mo(t, e = "unit") {
|
|
|
389
389
|
textColor: D(
|
|
390
390
|
t.textColor ?? t.text_color
|
|
391
391
|
),
|
|
392
|
-
align:
|
|
392
|
+
align: ue(t.align)
|
|
393
393
|
};
|
|
394
394
|
}
|
|
395
|
-
function
|
|
395
|
+
function ue(t) {
|
|
396
396
|
if (t === "left" || t === "right" || t === "center") return t;
|
|
397
397
|
}
|
|
398
|
-
function bo(t,
|
|
399
|
-
const
|
|
400
|
-
return
|
|
398
|
+
function bo(t, n) {
|
|
399
|
+
const e = (t.location ?? "").trim();
|
|
400
|
+
return n && e && e !== "-" ? `${t.name} (${e})` : t.name;
|
|
401
401
|
}
|
|
402
|
-
function $t(t,
|
|
402
|
+
function $t(t, n) {
|
|
403
403
|
var r;
|
|
404
|
-
const
|
|
405
|
-
return W(
|
|
404
|
+
const e = (r = t == null ? void 0 : t.bgColor) == null ? void 0 : r.trim();
|
|
405
|
+
return W(e) ? "transparent" : e || n;
|
|
406
406
|
}
|
|
407
407
|
function Tt(t) {
|
|
408
408
|
return t === "amenity" || t === "kiosk_screen" || t === "connector";
|
|
409
409
|
}
|
|
410
|
-
function Io(t,
|
|
411
|
-
return Tt(t) ? Nt :
|
|
410
|
+
function Io(t, n) {
|
|
411
|
+
return Tt(t) ? Nt : n;
|
|
412
412
|
}
|
|
413
|
-
function go(t,
|
|
413
|
+
function go(t, n) {
|
|
414
414
|
var r;
|
|
415
|
-
const
|
|
416
|
-
return W(
|
|
415
|
+
const e = (r = t == null ? void 0 : t.textColor) == null ? void 0 : r.trim();
|
|
416
|
+
return W(e) ? "transparent" : e || n;
|
|
417
417
|
}
|
|
418
|
-
function
|
|
419
|
-
const r = (t == null ? void 0 : t.layerType) ?? (
|
|
420
|
-
return r === "kiosk" ?
|
|
418
|
+
function fe(t, n, e) {
|
|
419
|
+
const r = (t == null ? void 0 : t.layerType) ?? (e ? vt(e) : void 0);
|
|
420
|
+
return r === "kiosk" ? n.KIOSK_ICON_COLOR : r === "amenity" ? n.AMENITY_ICON_COLOR : r === "connector" ? n.CONNECTOR_ICON_COLOR : n.STORE_TEXT_COLOR;
|
|
421
421
|
}
|
|
422
|
-
function _o(t,
|
|
422
|
+
function _o(t, n, e, r) {
|
|
423
423
|
var i;
|
|
424
|
-
const o = (i =
|
|
425
|
-
return W(o) ? "transparent" : o ||
|
|
424
|
+
const o = (i = e ?? (t == null ? void 0 : t.textColor)) == null ? void 0 : i.trim();
|
|
425
|
+
return W(o) ? "transparent" : o || fe(t, n, r);
|
|
426
426
|
}
|
|
427
427
|
function ko(t) {
|
|
428
|
-
const
|
|
429
|
-
if (!
|
|
430
|
-
const
|
|
431
|
-
return Number.isSafeInteger(
|
|
428
|
+
const n = t.trim();
|
|
429
|
+
if (!n || !/^\d+$/.test(n)) return null;
|
|
430
|
+
const e = Number(n);
|
|
431
|
+
return Number.isSafeInteger(e) && e > 0 ? e : null;
|
|
432
432
|
}
|
|
433
|
-
function Oo(t,
|
|
433
|
+
function Oo(t, n) {
|
|
434
434
|
var o;
|
|
435
|
-
const
|
|
436
|
-
if (
|
|
435
|
+
const e = n == null ? void 0 : n.trim();
|
|
436
|
+
if (e) return e;
|
|
437
437
|
const r = (o = t == null ? void 0 : t.customLabel) == null ? void 0 : o.trim();
|
|
438
438
|
return r || ((t == null ? void 0 : t.amenityId) != null ? `Amenity ${t.amenityId}` : null);
|
|
439
439
|
}
|
|
440
|
-
function So(t,
|
|
440
|
+
function So(t, n) {
|
|
441
441
|
var o;
|
|
442
|
-
const
|
|
443
|
-
if (
|
|
444
|
-
const r =
|
|
442
|
+
const e = (o = t == null ? void 0 : t.customLabel) == null ? void 0 : o.trim();
|
|
443
|
+
if (e) return e;
|
|
444
|
+
const r = n == null ? void 0 : n.trim();
|
|
445
445
|
return r || ((t == null ? void 0 : t.kioskId) != null ? `Kiosk ${t.kioskId}` : null);
|
|
446
446
|
}
|
|
447
447
|
function T(t) {
|
|
448
|
-
var
|
|
449
|
-
return t ? t.targetType === "retailer" ? t.retailerId != null : t.targetType === "amenity" ? t.amenityId != null || !!((
|
|
448
|
+
var n, e, r;
|
|
449
|
+
return t ? t.targetType === "retailer" ? t.retailerId != null : t.targetType === "amenity" ? t.amenityId != null || !!((n = t.customLabel) != null && n.trim()) : t.targetType === "kiosk" ? t.kioskId != null || !!((e = t.customLabel) != null && e.trim()) : t.targetType === "none" && t.layerType === "custom_text" ? !!((r = t.customLabel) != null && r.trim()) : t.targetType === "none" && t.layerType === "custom_image" ? le(t.customImageKey) : !1 : !1;
|
|
450
450
|
}
|
|
451
|
-
const
|
|
451
|
+
const de = /* @__PURE__ */ new Set([
|
|
452
452
|
"unit",
|
|
453
453
|
"parking_zone",
|
|
454
454
|
"amenity",
|
|
455
455
|
"kiosk_screen",
|
|
456
456
|
"custom"
|
|
457
457
|
]);
|
|
458
|
-
function
|
|
458
|
+
function dn(t, n, e) {
|
|
459
459
|
var r, o;
|
|
460
|
-
return t.kind === "label" ? t.label : t.kind === "entrance" ?
|
|
460
|
+
return t.kind === "label" ? t.label : t.kind === "entrance" ? fn(t) ?? t.label : t.kind === "connector" || (n == null ? void 0 : n.layerType) === "connector" ? n ? zt(
|
|
461
461
|
{ style: t.style ?? {}, label: t.label },
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
).label : t.label :
|
|
462
|
+
n,
|
|
463
|
+
e
|
|
464
|
+
).label : t.label : de.has(t.kind) ? !n || !T(n) ? !((r = t.label) != null && r.text) && !((o = t.label) != null && o.imageKey) ? t.label : {
|
|
465
465
|
...t.label,
|
|
466
466
|
text: void 0,
|
|
467
467
|
imageKey: void 0
|
|
468
468
|
} : zt(
|
|
469
469
|
{ style: t.style ?? {}, label: t.label },
|
|
470
|
-
|
|
471
|
-
|
|
470
|
+
n,
|
|
471
|
+
e
|
|
472
472
|
).label : t.label;
|
|
473
473
|
}
|
|
474
|
-
function
|
|
474
|
+
function he(t, n) {
|
|
475
475
|
if (T(t)) {
|
|
476
476
|
if (t.layerType === "retail_text" || t.layerType === "custom_text")
|
|
477
477
|
return t.customLabel ?? void 0;
|
|
478
478
|
if (t.layerType === "retail_name")
|
|
479
|
-
return (
|
|
479
|
+
return (n == null ? void 0 : n.name) ?? t.customLabel ?? void 0;
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
|
-
function
|
|
482
|
+
function hn(t, n, e) {
|
|
483
483
|
if (!(!T(t) || !t) && !(t.layerType !== "retail_logo" && t.layerType !== "custom_image"))
|
|
484
|
-
return
|
|
484
|
+
return pe(t, n) ?? D(e == null ? void 0 : e.imageKey) ?? void 0;
|
|
485
485
|
}
|
|
486
|
-
function Ao(t,
|
|
487
|
-
var
|
|
486
|
+
function Ao(t, n) {
|
|
487
|
+
var e, r;
|
|
488
488
|
if (!(!T(t) || !t)) {
|
|
489
489
|
if (t.layerType === "kiosk") return "kiosk";
|
|
490
490
|
if (t.layerType === "amenity")
|
|
491
|
-
return ((
|
|
491
|
+
return ((e = n == null ? void 0 : n.find((o) => o.id === t.amenityId)) == null ? void 0 : e.code) ?? ((r = t.customLabel) == null ? void 0 : r.trim()) ?? void 0;
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
|
-
function
|
|
495
|
-
const
|
|
496
|
-
return (
|
|
494
|
+
function ye(t, n) {
|
|
495
|
+
const e = Number.isFinite(t) && t > 0 ? t : dt;
|
|
496
|
+
return (n == null ? void 0 : n.layerType) === "retail_logo" || (n == null ? void 0 : n.layerType) === "custom_image" ? e * ee : e;
|
|
497
497
|
}
|
|
498
498
|
function Co(t) {
|
|
499
|
-
const
|
|
499
|
+
const n = t.assignment, e = t.label;
|
|
500
500
|
return {
|
|
501
|
-
size:
|
|
502
|
-
(
|
|
501
|
+
size: ye(
|
|
502
|
+
(n == null ? void 0 : n.size) ?? (e == null ? void 0 : e.size) ?? ne
|
|
503
503
|
),
|
|
504
|
-
rotate: (
|
|
505
|
-
offsetX: (
|
|
506
|
-
offsetY: (
|
|
507
|
-
iconColor: (
|
|
504
|
+
rotate: (n == null ? void 0 : n.rotate) ?? (e == null ? void 0 : e.rotate) ?? 0,
|
|
505
|
+
offsetX: (n == null ? void 0 : n.offsetX) ?? (e == null ? void 0 : e.offsetX) ?? 0,
|
|
506
|
+
offsetY: (n == null ? void 0 : n.offsetY) ?? (e == null ? void 0 : e.offsetY) ?? 0,
|
|
507
|
+
iconColor: (n == null ? void 0 : n.textColor) ?? (e == null ? void 0 : e.color) ?? null
|
|
508
508
|
};
|
|
509
509
|
}
|
|
510
|
-
function Ro(t,
|
|
511
|
-
var
|
|
512
|
-
return T(t) ? (t == null ? void 0 : t.layerType) === "kiosk" || (t == null ? void 0 : t.layerType) === "amenity" ||
|
|
510
|
+
function Ro(t, n) {
|
|
511
|
+
var e;
|
|
512
|
+
return T(t) ? (t == null ? void 0 : t.layerType) === "kiosk" || (t == null ? void 0 : t.layerType) === "amenity" || hn(t, null, n) ? !0 : !!((e = n == null ? void 0 : n.text) != null && e.trim()) : !1;
|
|
513
513
|
}
|
|
514
|
-
function
|
|
514
|
+
function pe(t, n) {
|
|
515
515
|
if (T(t)) {
|
|
516
516
|
if (t.layerType === "retail_logo")
|
|
517
|
-
return D(
|
|
517
|
+
return D(n == null ? void 0 : n.logoKey) ?? D(n == null ? void 0 : n.logoUrl) ?? D(t.customImageKey) ?? void 0;
|
|
518
518
|
if (t.layerType === "custom_image")
|
|
519
519
|
return D(t.customImageKey) ?? void 0;
|
|
520
520
|
}
|
|
521
521
|
}
|
|
522
522
|
function bt(t) {
|
|
523
523
|
if (t.length === 0) return "";
|
|
524
|
-
const
|
|
525
|
-
return t.every((
|
|
524
|
+
const n = t[0];
|
|
525
|
+
return t.every((e) => e === n) ? n : "";
|
|
526
526
|
}
|
|
527
527
|
function Bt(t) {
|
|
528
528
|
if (t.length === 0) return !1;
|
|
529
|
-
const
|
|
530
|
-
return t.some((
|
|
529
|
+
const n = t[0];
|
|
530
|
+
return t.some((e) => e !== n);
|
|
531
531
|
}
|
|
532
532
|
function Eo(t) {
|
|
533
|
-
const
|
|
533
|
+
const n = t.map((r) => r.bgColor ?? ""), e = t.map((r) => r.textColor ?? "");
|
|
534
534
|
return {
|
|
535
535
|
size: bt(t.map((r) => r.size)),
|
|
536
|
-
bgColor: bt(
|
|
537
|
-
textColor: bt(
|
|
538
|
-
bgColorMixed: Bt(
|
|
539
|
-
textColorMixed: Bt(
|
|
536
|
+
bgColor: bt(n),
|
|
537
|
+
textColor: bt(e),
|
|
538
|
+
bgColorMixed: Bt(n),
|
|
539
|
+
textColorMixed: Bt(e)
|
|
540
540
|
};
|
|
541
541
|
}
|
|
542
|
-
function Lo(t,
|
|
542
|
+
function Lo(t, n) {
|
|
543
543
|
return {
|
|
544
544
|
...t,
|
|
545
|
-
...
|
|
546
|
-
...
|
|
547
|
-
...
|
|
545
|
+
...n.size != null ? { size: n.size } : {},
|
|
546
|
+
...n.bgColor !== void 0 ? { bgColor: n.bgColor } : {},
|
|
547
|
+
...n.textColor !== void 0 ? { textColor: n.textColor } : {}
|
|
548
548
|
};
|
|
549
549
|
}
|
|
550
|
-
function zt(t,
|
|
551
|
-
const r =
|
|
550
|
+
function zt(t, n, e) {
|
|
551
|
+
const r = hn(n, e, t.label), o = T(n) ? r ? void 0 : he(n, e) ?? t.label.text : void 0;
|
|
552
552
|
return {
|
|
553
553
|
style: {
|
|
554
554
|
...t.style,
|
|
555
|
-
fill:
|
|
555
|
+
fill: n.bgColor ?? void 0
|
|
556
556
|
},
|
|
557
557
|
label: {
|
|
558
558
|
...t.label,
|
|
559
559
|
text: o,
|
|
560
560
|
imageKey: r,
|
|
561
|
-
size: Number.isFinite(
|
|
562
|
-
rotate: Number.isFinite(
|
|
563
|
-
offsetX: Number.isFinite(
|
|
564
|
-
offsetY: Number.isFinite(
|
|
565
|
-
color:
|
|
566
|
-
...
|
|
561
|
+
size: Number.isFinite(n.size) ? n.size : 0,
|
|
562
|
+
rotate: Number.isFinite(n.rotate) ? n.rotate : 0,
|
|
563
|
+
offsetX: Number.isFinite(n.offsetX) ? n.offsetX : 0,
|
|
564
|
+
offsetY: Number.isFinite(n.offsetY) ? n.offsetY : 0,
|
|
565
|
+
color: n.textColor ?? void 0,
|
|
566
|
+
...n.align ? { align: n.align } : {}
|
|
567
567
|
}
|
|
568
568
|
};
|
|
569
569
|
}
|
|
570
|
-
const
|
|
570
|
+
const xe = [
|
|
571
571
|
"floorplate",
|
|
572
572
|
"walkable",
|
|
573
573
|
"decor",
|
|
@@ -576,105 +576,105 @@ const xn = [
|
|
|
576
576
|
"water",
|
|
577
577
|
"parking_zone"
|
|
578
578
|
];
|
|
579
|
-
function
|
|
579
|
+
function me(t) {
|
|
580
580
|
return t === "void";
|
|
581
581
|
}
|
|
582
582
|
function No(t) {
|
|
583
|
-
return
|
|
583
|
+
return xe.includes(t);
|
|
584
584
|
}
|
|
585
|
-
function
|
|
586
|
-
return
|
|
585
|
+
function yn(t) {
|
|
586
|
+
return me(t.kind) && !t.orphanedAt;
|
|
587
587
|
}
|
|
588
|
-
function
|
|
589
|
-
return (t.shapes ?? []).some(
|
|
588
|
+
function be(t) {
|
|
589
|
+
return (t.shapes ?? []).some(yn);
|
|
590
590
|
}
|
|
591
591
|
function vo(t) {
|
|
592
|
-
var
|
|
593
|
-
const
|
|
592
|
+
var e;
|
|
593
|
+
const n = [];
|
|
594
594
|
for (const r of t.shapes ?? [])
|
|
595
|
-
if (
|
|
596
|
-
for (const o of ((
|
|
597
|
-
o.length >= 3 &&
|
|
598
|
-
return
|
|
595
|
+
if (yn(r))
|
|
596
|
+
for (const o of ((e = r.geometry) == null ? void 0 : e.polygons) ?? [])
|
|
597
|
+
o.length >= 3 && n.push(o);
|
|
598
|
+
return n;
|
|
599
599
|
}
|
|
600
600
|
function Gt(t) {
|
|
601
|
-
let
|
|
602
|
-
for (let
|
|
603
|
-
|
|
604
|
-
return
|
|
601
|
+
let n = 0;
|
|
602
|
+
for (let e = 0, r = t.length - 1; e < t.length; r = e++)
|
|
603
|
+
n += t[r].x * t[e].y - t[e].x * t[r].y;
|
|
604
|
+
return n / 2;
|
|
605
605
|
}
|
|
606
|
-
function
|
|
606
|
+
function Ie(t) {
|
|
607
607
|
return t.slice().reverse();
|
|
608
608
|
}
|
|
609
|
-
function
|
|
610
|
-
const
|
|
611
|
-
return
|
|
609
|
+
function ge(t, n) {
|
|
610
|
+
const e = Gt(t), r = Gt(n);
|
|
611
|
+
return e === 0 || r === 0 ? n : Math.sign(e) === Math.sign(r) ? Ie(n) : n;
|
|
612
612
|
}
|
|
613
613
|
function Ht(t) {
|
|
614
|
-
let
|
|
614
|
+
let n = 1 / 0, e = 1 / 0, r = -1 / 0, o = -1 / 0;
|
|
615
615
|
for (const i of t)
|
|
616
|
-
i.x <
|
|
617
|
-
return { minX:
|
|
616
|
+
i.x < n && (n = i.x), i.y < e && (e = i.y), i.x > r && (r = i.x), i.y > o && (o = i.y);
|
|
617
|
+
return { minX: n, minY: e, maxX: r, maxY: o };
|
|
618
618
|
}
|
|
619
|
-
function
|
|
620
|
-
const
|
|
621
|
-
return
|
|
619
|
+
function _e(t, n) {
|
|
620
|
+
const e = Ht(t), r = Ht(n);
|
|
621
|
+
return e.minX <= r.maxX && e.maxX >= r.minX && e.minY <= r.maxY && e.maxY >= r.minY;
|
|
622
622
|
}
|
|
623
|
-
function To(t,
|
|
624
|
-
return
|
|
623
|
+
function To(t, n) {
|
|
624
|
+
return n.filter((e) => e.length >= 3 && _e(t, e)).map((e) => ge(t, e));
|
|
625
625
|
}
|
|
626
626
|
const Mo = "#e8eef4", wo = "#64748b", Po = "#475569";
|
|
627
|
-
function
|
|
628
|
-
return t.ordering -
|
|
627
|
+
function ke(t, n) {
|
|
628
|
+
return t.ordering - n.ordering || t.levelIndex - n.levelIndex;
|
|
629
629
|
}
|
|
630
630
|
function V(t) {
|
|
631
631
|
return t.kind === "outdoor";
|
|
632
632
|
}
|
|
633
|
-
function
|
|
634
|
-
const
|
|
635
|
-
return !r || V(r) ||
|
|
633
|
+
function Oe(t, n) {
|
|
634
|
+
const e = t.filter(V), r = n == null ? null : t.find((o) => o.id === n) ?? null;
|
|
635
|
+
return !r || V(r) || e.some((o) => o.id === r.id) ? e : [...e, r];
|
|
636
636
|
}
|
|
637
|
-
function
|
|
638
|
-
if (
|
|
639
|
-
const
|
|
637
|
+
function Se(t, n) {
|
|
638
|
+
if (n == null) return [];
|
|
639
|
+
const e = ht(t), r = e.findIndex((c) => c.id === n);
|
|
640
640
|
if (r < 0) return [];
|
|
641
641
|
const o = [];
|
|
642
|
-
let i =
|
|
643
|
-
for (let c = r; c <
|
|
644
|
-
const a =
|
|
642
|
+
let i = e[r];
|
|
643
|
+
for (let c = r; c < e.length - 1 && be(i); c++) {
|
|
644
|
+
const a = e[c + 1];
|
|
645
645
|
if (!a) break;
|
|
646
646
|
o.unshift(a), i = a;
|
|
647
647
|
}
|
|
648
648
|
return o;
|
|
649
649
|
}
|
|
650
|
-
function Fo(t,
|
|
651
|
-
return
|
|
650
|
+
function Fo(t, n) {
|
|
651
|
+
return Se(t, n).at(-1) ?? null;
|
|
652
652
|
}
|
|
653
|
-
function Do(t,
|
|
654
|
-
const r = t.find((i) => i.id ===
|
|
655
|
-
if (!r || !V(r)) return
|
|
656
|
-
const o =
|
|
657
|
-
return o && !V(o) ? o.id :
|
|
653
|
+
function Do(t, n, e) {
|
|
654
|
+
const r = t.find((i) => i.id === e);
|
|
655
|
+
if (!r || !V(r)) return e;
|
|
656
|
+
const o = n == null ? null : t.find((i) => i.id === n) ?? null;
|
|
657
|
+
return o && !V(o) ? o.id : Re(t) ?? e;
|
|
658
658
|
}
|
|
659
|
-
function
|
|
660
|
-
return t.filter((
|
|
659
|
+
function ht(t) {
|
|
660
|
+
return t.filter((n) => n.kind === "floor").slice().sort(ke);
|
|
661
661
|
}
|
|
662
662
|
function Ko(t) {
|
|
663
|
-
return
|
|
663
|
+
return ht(t);
|
|
664
664
|
}
|
|
665
665
|
function Yo(t) {
|
|
666
|
-
return
|
|
666
|
+
return ht(t).length > 1;
|
|
667
667
|
}
|
|
668
|
-
function
|
|
669
|
-
return t.some((
|
|
668
|
+
function Ae(t) {
|
|
669
|
+
return t.some((n) => n.kind === "floor");
|
|
670
670
|
}
|
|
671
|
-
function
|
|
671
|
+
function Ce(t) {
|
|
672
672
|
return t.some(V);
|
|
673
673
|
}
|
|
674
674
|
const $o = "This map doesn’t have any floors yet.";
|
|
675
|
-
function
|
|
676
|
-
var
|
|
677
|
-
return ((
|
|
675
|
+
function Re(t) {
|
|
676
|
+
var n, e;
|
|
677
|
+
return ((n = ht(t).at(-1)) == null ? void 0 : n.id) ?? ((e = t[0]) == null ? void 0 : e.id) ?? null;
|
|
678
678
|
}
|
|
679
679
|
function Xt(t) {
|
|
680
680
|
return {
|
|
@@ -687,39 +687,39 @@ function Xt(t) {
|
|
|
687
687
|
size: Math.max(t.width, t.height, 100)
|
|
688
688
|
};
|
|
689
689
|
}
|
|
690
|
-
function
|
|
691
|
-
const
|
|
690
|
+
function Ee(t, n) {
|
|
691
|
+
const e = n.scale || 1, r = (n.rotate || 0) * Math.PI / 180, o = Math.cos(r), i = Math.sin(r), c = t.x * e, a = t.y * e;
|
|
692
692
|
return {
|
|
693
|
-
x: c * o - a * i + (
|
|
694
|
-
y: c * i + a * o + (
|
|
693
|
+
x: c * o - a * i + (n.translateX || 0),
|
|
694
|
+
y: c * i + a * o + (n.translateY || 0)
|
|
695
695
|
};
|
|
696
696
|
}
|
|
697
|
-
function
|
|
698
|
-
const
|
|
697
|
+
function Le(t, n) {
|
|
698
|
+
const e = [
|
|
699
699
|
{ x: t.minX, y: t.minY },
|
|
700
700
|
{ x: t.maxX, y: t.minY },
|
|
701
701
|
{ x: t.minX, y: t.maxY },
|
|
702
702
|
{ x: t.maxX, y: t.maxY }
|
|
703
|
-
].map((a) =>
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
703
|
+
].map((a) => n ? Ee(a, n) : a), r = Math.min(
|
|
704
|
+
e[0].x,
|
|
705
|
+
e[1].x,
|
|
706
|
+
e[2].x,
|
|
707
|
+
e[3].x
|
|
708
708
|
), o = Math.min(
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
709
|
+
e[0].y,
|
|
710
|
+
e[1].y,
|
|
711
|
+
e[2].y,
|
|
712
|
+
e[3].y
|
|
713
713
|
), i = Math.max(
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
714
|
+
e[0].x,
|
|
715
|
+
e[1].x,
|
|
716
|
+
e[2].x,
|
|
717
|
+
e[3].x
|
|
718
718
|
), c = Math.max(
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
719
|
+
e[0].y,
|
|
720
|
+
e[1].y,
|
|
721
|
+
e[2].y,
|
|
722
|
+
e[3].y
|
|
723
723
|
);
|
|
724
724
|
return {
|
|
725
725
|
minX: r,
|
|
@@ -731,38 +731,38 @@ function Ln(t, e) {
|
|
|
731
731
|
size: Math.max(i - r, c - o, 100)
|
|
732
732
|
};
|
|
733
733
|
}
|
|
734
|
-
function Ut(t,
|
|
735
|
-
const
|
|
734
|
+
function Ut(t, n) {
|
|
735
|
+
const e = Math.min(t.minX, n.minX), r = Math.min(t.minY, n.minY), o = Math.max(t.maxX, n.maxX), i = Math.max(t.maxY, n.maxY);
|
|
736
736
|
return {
|
|
737
|
-
minX:
|
|
737
|
+
minX: e,
|
|
738
738
|
minY: r,
|
|
739
739
|
maxX: o,
|
|
740
740
|
maxY: i,
|
|
741
|
-
cx: (
|
|
741
|
+
cx: (e + o) / 2,
|
|
742
742
|
cy: (r + i) / 2,
|
|
743
|
-
size: Math.max(o -
|
|
743
|
+
size: Math.max(o - e, i - r, 100)
|
|
744
744
|
};
|
|
745
745
|
}
|
|
746
|
-
function Bo(t,
|
|
747
|
-
let r =
|
|
748
|
-
for (const o of
|
|
746
|
+
function Bo(t, n, e) {
|
|
747
|
+
let r = e ? Xt(e) : null;
|
|
748
|
+
for (const o of Oe(t, n)) {
|
|
749
749
|
if (o.viewbox) {
|
|
750
750
|
const i = Xt(o.viewbox);
|
|
751
751
|
r = r ? Ut(r, i) : i;
|
|
752
752
|
}
|
|
753
753
|
for (const i of o.shapes) {
|
|
754
|
-
const c =
|
|
754
|
+
const c = Le(i.bbox);
|
|
755
755
|
r = r ? Ut(r, c) : c;
|
|
756
756
|
}
|
|
757
757
|
}
|
|
758
758
|
return r ?? { minX: 0, minY: 0, maxX: 500, maxY: 500, cx: 250, cy: 250, size: 500 };
|
|
759
759
|
}
|
|
760
|
-
function zo(t,
|
|
761
|
-
if (!t && !
|
|
762
|
-
if (!t) return
|
|
763
|
-
if (!
|
|
764
|
-
const
|
|
765
|
-
return { x:
|
|
760
|
+
function zo(t, n) {
|
|
761
|
+
if (!t && !n) return { x: 0, y: 0, width: 1e3, height: 800 };
|
|
762
|
+
if (!t) return n;
|
|
763
|
+
if (!n) return t;
|
|
764
|
+
const e = Math.min(t.x, n.x), r = Math.min(t.y, n.y), o = Math.max(t.x + t.width, n.x + n.width), i = Math.max(t.y + t.height, n.y + n.height);
|
|
765
|
+
return { x: e, y: r, width: o - e, height: i - r };
|
|
766
766
|
}
|
|
767
767
|
function Go(t) {
|
|
768
768
|
return t === "PORTAL" ? "editor" : "viewer";
|
|
@@ -776,7 +776,7 @@ const It = {
|
|
|
776
776
|
fetchDraft: !1,
|
|
777
777
|
storeModal: !1,
|
|
778
778
|
hoverTooltip: !1
|
|
779
|
-
},
|
|
779
|
+
}, Ne = {
|
|
780
780
|
/** v1 WP_SITE / MapBox HOST WEBSITE. */
|
|
781
781
|
WEBSITE: { ...It, storeModal: !0, hoverTooltip: !0 },
|
|
782
782
|
/** Assign mode: click shapes, no public directory chrome. */
|
|
@@ -787,8 +787,8 @@ const It = {
|
|
|
787
787
|
hoverTooltip: !0
|
|
788
788
|
}
|
|
789
789
|
};
|
|
790
|
-
function
|
|
791
|
-
return
|
|
790
|
+
function pn(t) {
|
|
791
|
+
return Ne[t];
|
|
792
792
|
}
|
|
793
793
|
function Ho(t) {
|
|
794
794
|
return t !== "WEBSITE";
|
|
@@ -796,26 +796,26 @@ function Ho(t) {
|
|
|
796
796
|
function Xo(t) {
|
|
797
797
|
return t !== "PORTAL";
|
|
798
798
|
}
|
|
799
|
-
function
|
|
799
|
+
function ve(t) {
|
|
800
800
|
return t === "WEBSITE" || t === "DISPLAY_APP";
|
|
801
801
|
}
|
|
802
|
-
function Uo(t,
|
|
803
|
-
return
|
|
802
|
+
function Uo(t, n) {
|
|
803
|
+
return Ae(n) ? !0 : ve(t) ? !1 : Ce(n);
|
|
804
804
|
}
|
|
805
805
|
function Vt(...t) {
|
|
806
|
-
for (const
|
|
807
|
-
const
|
|
808
|
-
if (
|
|
806
|
+
for (const n of t) {
|
|
807
|
+
const e = n == null ? void 0 : n.trim();
|
|
808
|
+
if (e) return e;
|
|
809
809
|
}
|
|
810
810
|
return null;
|
|
811
811
|
}
|
|
812
812
|
function Vo(t) {
|
|
813
|
-
return
|
|
813
|
+
return pn(t).hoverTooltip;
|
|
814
814
|
}
|
|
815
|
-
function Wo(t,
|
|
815
|
+
function Wo(t, n = [], e = []) {
|
|
816
816
|
var r, o, i, c, a, s, h;
|
|
817
817
|
if (t.kind === "unit") {
|
|
818
|
-
const y = (r = t.assignment) == null ? void 0 : r.retailerId, l = y != null ?
|
|
818
|
+
const y = (r = t.assignment) == null ? void 0 : r.retailerId, l = y != null ? n.find((m) => m.id === y) : void 0;
|
|
819
819
|
return Vt(
|
|
820
820
|
l == null ? void 0 : l.name,
|
|
821
821
|
(o = t.assignment) == null ? void 0 : o.customLabel,
|
|
@@ -823,20 +823,20 @@ function Wo(t, e = [], n = []) {
|
|
|
823
823
|
);
|
|
824
824
|
}
|
|
825
825
|
if (t.kind === "amenity") {
|
|
826
|
-
const y = (c = t.assignment) == null ? void 0 : c.amenityId, l = (s = (a = t.assignment) == null ? void 0 : a.customLabel) == null ? void 0 : s.trim(), m = y != null ?
|
|
826
|
+
const y = (c = t.assignment) == null ? void 0 : c.amenityId, l = (s = (a = t.assignment) == null ? void 0 : a.customLabel) == null ? void 0 : s.trim(), m = y != null ? e.find((d) => d.id === y) : void 0, u = l ? e.find((d) => d.code === l) : void 0;
|
|
827
827
|
return Vt(m == null ? void 0 : m.name, u == null ? void 0 : u.name, l, (h = t.label) == null ? void 0 : h.text);
|
|
828
828
|
}
|
|
829
829
|
return null;
|
|
830
830
|
}
|
|
831
|
-
function
|
|
831
|
+
function Te(t, n, e) {
|
|
832
832
|
var r;
|
|
833
|
-
return t === "DISPLAY_APP" &&
|
|
833
|
+
return t === "DISPLAY_APP" && n != null && e.kind === "kiosk_screen" && !e.orphanedAt && ((r = e.assignment) == null ? void 0 : r.kioskId) === n;
|
|
834
834
|
}
|
|
835
|
-
function Zo(t,
|
|
835
|
+
function Zo(t, n, e) {
|
|
836
836
|
var r;
|
|
837
837
|
for (const o of t.levels) {
|
|
838
838
|
const i = o.shapes.find(
|
|
839
|
-
(c) =>
|
|
839
|
+
(c) => Te(n, e, c)
|
|
840
840
|
);
|
|
841
841
|
if (i)
|
|
842
842
|
return {
|
|
@@ -849,103 +849,103 @@ function Zo(t, e, n) {
|
|
|
849
849
|
}
|
|
850
850
|
function jo(t) {
|
|
851
851
|
var o, i;
|
|
852
|
-
const
|
|
852
|
+
const n = ((o = t.kioskOrigin) == null ? void 0 : o.anchorId) ?? null;
|
|
853
853
|
if (t.kind === "chrome")
|
|
854
854
|
return {
|
|
855
|
-
fromAnchorId:
|
|
855
|
+
fromAnchorId: n,
|
|
856
856
|
toAnchorId: null,
|
|
857
857
|
nextLevelId: null,
|
|
858
858
|
resetCamera: !0
|
|
859
859
|
};
|
|
860
|
-
const
|
|
860
|
+
const e = ((i = t.kioskOrigin) == null ? void 0 : i.levelId) ?? t.defaultLevelId, r = e != null && e !== t.activeLevelId;
|
|
861
861
|
return {
|
|
862
|
-
fromAnchorId:
|
|
862
|
+
fromAnchorId: n,
|
|
863
863
|
toAnchorId: null,
|
|
864
|
-
nextLevelId: r ?
|
|
864
|
+
nextLevelId: r ? e : null,
|
|
865
865
|
resetCamera: !r
|
|
866
866
|
};
|
|
867
867
|
}
|
|
868
868
|
function k(t) {
|
|
869
869
|
if (typeof t != "string") return null;
|
|
870
|
-
const
|
|
871
|
-
return
|
|
872
|
-
}
|
|
873
|
-
function J(t) {
|
|
874
|
-
const e = typeof t == "number" ? t : Number(t);
|
|
875
|
-
return Number.isFinite(e) && e > 0 ? e : null;
|
|
870
|
+
const n = t.trim();
|
|
871
|
+
return n || null;
|
|
876
872
|
}
|
|
877
873
|
function tt(t) {
|
|
874
|
+
const n = typeof t == "number" ? t : Number(t);
|
|
875
|
+
return Number.isFinite(n) && n > 0 ? n : null;
|
|
876
|
+
}
|
|
877
|
+
function nt(t) {
|
|
878
878
|
return !t || typeof t != "object" ? null : k(t.url);
|
|
879
879
|
}
|
|
880
|
-
function qo(t,
|
|
881
|
-
var
|
|
882
|
-
return !
|
|
880
|
+
function qo(t, n) {
|
|
881
|
+
var e;
|
|
882
|
+
return !n || !pn(t).storeModal ? !1 : n.kind === "unit" ? ((e = n.assignment) == null ? void 0 : e.retailerId) != null : n.kind === "amenity" ? T(n.assignment) : !1;
|
|
883
883
|
}
|
|
884
|
-
function
|
|
885
|
-
for (const
|
|
886
|
-
const r =
|
|
887
|
-
if (r) return { level:
|
|
884
|
+
function Me(t, n) {
|
|
885
|
+
for (const e of t.levels) {
|
|
886
|
+
const r = e.shapes.find((o) => o.id === n);
|
|
887
|
+
if (r) return { level: e, shape: r };
|
|
888
888
|
}
|
|
889
889
|
return null;
|
|
890
890
|
}
|
|
891
|
-
function
|
|
891
|
+
function we(t, n) {
|
|
892
892
|
var r, o, i, c;
|
|
893
|
-
const
|
|
894
|
-
return k((o = t.assignment) == null ? void 0 : o.customLabel) || k(
|
|
893
|
+
const e = ((r = t.assignment) == null ? void 0 : r.amenityId) != null ? n == null ? void 0 : n.find((a) => a.id === t.assignment.amenityId) : void 0;
|
|
894
|
+
return k((o = t.assignment) == null ? void 0 : o.customLabel) || k(e == null ? void 0 : e.name) || k((i = t.label) == null ? void 0 : i.text) || k((c = t.assignment) == null ? void 0 : c.unitNumber) || t.key;
|
|
895
895
|
}
|
|
896
|
-
function Qo(t,
|
|
896
|
+
function Qo(t, n) {
|
|
897
897
|
var i, c;
|
|
898
|
-
const
|
|
899
|
-
if (!
|
|
900
|
-
const r =
|
|
898
|
+
const e = Me(t, n);
|
|
899
|
+
if (!e) return null;
|
|
900
|
+
const r = e.shape.kind === "amenity" ? "amenity" : "store", o = e.level.anchors.find((a) => a.shapeId === n);
|
|
901
901
|
return {
|
|
902
|
-
shapeId:
|
|
903
|
-
levelId:
|
|
902
|
+
shapeId: n,
|
|
903
|
+
levelId: e.level.id,
|
|
904
904
|
anchorId: (o == null ? void 0 : o.id) ?? null,
|
|
905
905
|
kind: r,
|
|
906
|
-
retailerId: ((i =
|
|
907
|
-
amenityId: ((c =
|
|
908
|
-
name:
|
|
909
|
-
isExterior: V(
|
|
906
|
+
retailerId: ((i = e.shape.assignment) == null ? void 0 : i.retailerId) ?? null,
|
|
907
|
+
amenityId: ((c = e.shape.assignment) == null ? void 0 : c.amenityId) ?? null,
|
|
908
|
+
name: we(e.shape, t.amenities),
|
|
909
|
+
isExterior: V(e.level)
|
|
910
910
|
};
|
|
911
911
|
}
|
|
912
|
-
const
|
|
913
|
-
function
|
|
912
|
+
const Pe = "Directions are unavailable for this location.";
|
|
913
|
+
function Fe(t) {
|
|
914
914
|
return t ? t.isExterior || t.anchorId == null : !0;
|
|
915
915
|
}
|
|
916
|
-
function Jo(t,
|
|
917
|
-
const
|
|
916
|
+
function Jo(t, n) {
|
|
917
|
+
const e = Fe(n), r = t !== "DISPLAY_APP";
|
|
918
918
|
return {
|
|
919
|
-
showFromRetailers: r && !
|
|
919
|
+
showFromRetailers: r && !e,
|
|
920
920
|
showMapIt: r,
|
|
921
|
-
mapItDisabled:
|
|
922
|
-
mapItTooltip: r &&
|
|
921
|
+
mapItDisabled: e,
|
|
922
|
+
mapItTooltip: r && e ? Pe : null
|
|
923
923
|
};
|
|
924
924
|
}
|
|
925
|
-
function
|
|
926
|
-
const
|
|
927
|
-
for (const
|
|
928
|
-
(
|
|
929
|
-
return
|
|
925
|
+
function De(t) {
|
|
926
|
+
const n = /* @__PURE__ */ new Map();
|
|
927
|
+
for (const e of t ?? [])
|
|
928
|
+
(e == null ? void 0 : e.id) != null && n.set(e.id, e);
|
|
929
|
+
return n;
|
|
930
930
|
}
|
|
931
|
-
function
|
|
932
|
-
var
|
|
933
|
-
return k(t == null ? void 0 : t.logoUrl) || k(t == null ? void 0 : t.logoKey) || k((
|
|
931
|
+
function Ke(t, n) {
|
|
932
|
+
var e, r;
|
|
933
|
+
return k(t == null ? void 0 : t.logoUrl) || k(t == null ? void 0 : t.logoKey) || k((e = n.label) == null ? void 0 : e.imageKey) || k((r = n.assignment) == null ? void 0 : r.customImageKey);
|
|
934
934
|
}
|
|
935
|
-
function ti(t,
|
|
935
|
+
function ti(t, n) {
|
|
936
936
|
var i, c, a, s;
|
|
937
|
-
const
|
|
937
|
+
const e = De(n ?? t.retailers), r = /* @__PURE__ */ new Map();
|
|
938
938
|
for (const h of t.levels)
|
|
939
939
|
for (const y of h.shapes) {
|
|
940
940
|
const l = (i = y.assignment) == null ? void 0 : i.retailerId;
|
|
941
941
|
if (l == null || y.kind !== "unit") continue;
|
|
942
|
-
const m =
|
|
942
|
+
const m = e.get(l), u = h.anchors.find((p) => p.shapeId === y.id), d = {
|
|
943
943
|
id: l,
|
|
944
944
|
name: k(m == null ? void 0 : m.name) || k((c = y.label) == null ? void 0 : c.text) || k((a = y.assignment) == null ? void 0 : a.customLabel) || `Store ${l}`,
|
|
945
945
|
location: k(m == null ? void 0 : m.location) || k((s = y.assignment) == null ? void 0 : s.unitNumber),
|
|
946
946
|
phone: k(m == null ? void 0 : m.phone),
|
|
947
947
|
description: k(m == null ? void 0 : m.description),
|
|
948
|
-
logoUrl:
|
|
948
|
+
logoUrl: Ke(m, y),
|
|
949
949
|
globalRetailerId: (m == null ? void 0 : m.globalRetailerId) ?? null,
|
|
950
950
|
shapeId: y.id,
|
|
951
951
|
levelId: h.id,
|
|
@@ -955,205 +955,205 @@ function ti(t, e) {
|
|
|
955
955
|
}
|
|
956
956
|
return Array.from(r.values()).sort((h, y) => h.name.localeCompare(y.name));
|
|
957
957
|
}
|
|
958
|
-
function
|
|
959
|
-
const
|
|
958
|
+
function ni(t, n) {
|
|
959
|
+
const e = /* @__PURE__ */ new Map();
|
|
960
960
|
for (const r of t)
|
|
961
|
-
r.globalRetailerId != null &&
|
|
962
|
-
return t.filter((r) => r.id !==
|
|
963
|
-
const o = r.globalRetailerId != null && (
|
|
961
|
+
r.globalRetailerId != null && e.set(r.globalRetailerId, (e.get(r.globalRetailerId) ?? 0) + 1);
|
|
962
|
+
return t.filter((r) => r.id !== n && r.anchorId != null).map((r) => {
|
|
963
|
+
const o = r.globalRetailerId != null && (e.get(r.globalRetailerId) ?? 0) > 1 && r.location;
|
|
964
964
|
return {
|
|
965
965
|
value: String(r.id),
|
|
966
966
|
label: o ? `${r.name} (${r.location})` : r.name
|
|
967
967
|
};
|
|
968
968
|
});
|
|
969
969
|
}
|
|
970
|
-
function
|
|
971
|
-
return (t == null ? void 0 : t.anchorId) == null || (
|
|
970
|
+
function ei(t, n) {
|
|
971
|
+
return (t == null ? void 0 : t.anchorId) == null || (n == null ? void 0 : n.anchorId) == null ? null : {
|
|
972
972
|
fromAnchorId: t.anchorId,
|
|
973
|
-
toAnchorId:
|
|
974
|
-
toLevelId:
|
|
973
|
+
toAnchorId: n.anchorId,
|
|
974
|
+
toLevelId: n.levelId
|
|
975
975
|
};
|
|
976
976
|
}
|
|
977
977
|
function ri(t) {
|
|
978
|
-
const
|
|
979
|
-
return
|
|
978
|
+
const n = t.replace(/\D/g, "").slice(-10);
|
|
979
|
+
return n.length === 10 ? `${n.slice(0, 3)}.${n.slice(3, 6)}.${n.slice(-4)}` : t;
|
|
980
980
|
}
|
|
981
981
|
function oi(t) {
|
|
982
982
|
if (!t || typeof t != "object") return null;
|
|
983
|
-
const
|
|
983
|
+
const n = t, e = n.global_retailer && typeof n.global_retailer == "object" ? n.global_retailer : null, r = tt(n.id);
|
|
984
984
|
if (r == null) return null;
|
|
985
|
-
const o = k(
|
|
985
|
+
const o = k(e == null ? void 0 : e.name) || k(n.name) || `Retailer ${r}`;
|
|
986
986
|
return {
|
|
987
987
|
id: r,
|
|
988
988
|
name: o,
|
|
989
|
-
location: k(
|
|
990
|
-
phone: k(
|
|
991
|
-
description: k(
|
|
992
|
-
logoUrl:
|
|
993
|
-
logoKey: k(
|
|
994
|
-
globalRetailerId:
|
|
989
|
+
location: k(n.location),
|
|
990
|
+
phone: k(n.retailer_phone) || k(n.phone),
|
|
991
|
+
description: k(e == null ? void 0 : e.description) || k(n.description) || k(n.local_description),
|
|
992
|
+
logoUrl: nt(e == null ? void 0 : e.media) || nt(e == null ? void 0 : e.featured_image) || nt(n.media) || nt(n.featured_image) || k(n.logoUrl) || k(n.logo),
|
|
993
|
+
logoKey: k(n.logoKey),
|
|
994
|
+
globalRetailerId: tt(e == null ? void 0 : e.id) || tt(n.global_retailer_id) || tt(n.globalRetailerId)
|
|
995
995
|
};
|
|
996
996
|
}
|
|
997
|
-
function
|
|
997
|
+
function xn(t) {
|
|
998
998
|
return t === "WEBSITE" || t === "DISPLAY_APP";
|
|
999
999
|
}
|
|
1000
|
-
function
|
|
1000
|
+
function Ye(t) {
|
|
1001
1001
|
return t === "PORTAL_ASSIGN";
|
|
1002
1002
|
}
|
|
1003
|
-
function $
|
|
1004
|
-
return
|
|
1003
|
+
function $e(t) {
|
|
1004
|
+
return xn(t);
|
|
1005
1005
|
}
|
|
1006
|
-
function ii(t,
|
|
1007
|
-
return $n
|
|
1006
|
+
function ii(t, n) {
|
|
1007
|
+
return $e(n) ? T(t.assignment) : !0;
|
|
1008
1008
|
}
|
|
1009
|
-
function
|
|
1010
|
-
const
|
|
1011
|
-
return
|
|
1009
|
+
function Be(t) {
|
|
1010
|
+
const n = (t.sourceSvgId ?? t.key ?? "").trim().toLowerCase().replace(/_/g, "-");
|
|
1011
|
+
return n === "escalator" || n.startsWith("escalator-") ? "escalator" : n === "elevator" || n.startsWith("elevator-") ? "elevator" : null;
|
|
1012
1012
|
}
|
|
1013
|
-
function
|
|
1014
|
-
return
|
|
1013
|
+
function ze(t, n) {
|
|
1014
|
+
return Be(t) ? n.has(t.id) : t.kind === "amenity" || t.kind === "kiosk_screen" ? T(t.assignment) : !0;
|
|
1015
1015
|
}
|
|
1016
|
-
function si(t,
|
|
1017
|
-
return
|
|
1016
|
+
function si(t, n, e) {
|
|
1017
|
+
return xn(n) ? ze(t, e) : !0;
|
|
1018
1018
|
}
|
|
1019
|
-
const
|
|
1019
|
+
const mn = "#e2e8f0";
|
|
1020
1020
|
function ci(t) {
|
|
1021
1021
|
if (!t) return !1;
|
|
1022
|
-
const
|
|
1023
|
-
return
|
|
1022
|
+
const n = t.toLowerCase();
|
|
1023
|
+
return n === "amenity" || n.startsWith("amenity-");
|
|
1024
1024
|
}
|
|
1025
|
-
function
|
|
1026
|
-
var
|
|
1027
|
-
return ((
|
|
1025
|
+
function Ge(t) {
|
|
1026
|
+
var e;
|
|
1027
|
+
return ((e = t == null ? void 0 : t.GREEN_AREA_COLOR) == null ? void 0 : e.trim()) || X("green-area");
|
|
1028
1028
|
}
|
|
1029
|
-
function
|
|
1030
|
-
return t === "amenity" ?
|
|
1029
|
+
function He(t, n) {
|
|
1030
|
+
return t === "amenity" ? Ge(n) : mn;
|
|
1031
1031
|
}
|
|
1032
|
-
function
|
|
1033
|
-
if (t === "walkable") return
|
|
1032
|
+
function Xe(t, n, e, r) {
|
|
1033
|
+
if (t === "walkable") return n.WALKABLE_COLOR;
|
|
1034
1034
|
if (Tt(t))
|
|
1035
1035
|
return $t(r, Nt);
|
|
1036
1036
|
if (t === "unit" || t === "custom")
|
|
1037
|
-
return $t(r,
|
|
1038
|
-
if (
|
|
1037
|
+
return $t(r, n.STORE_DEFAULT_COLOR);
|
|
1038
|
+
if (e) return e;
|
|
1039
1039
|
switch (t) {
|
|
1040
1040
|
case "wall":
|
|
1041
1041
|
case "boundary":
|
|
1042
|
-
return
|
|
1042
|
+
return n.WALL_COLOR;
|
|
1043
1043
|
case "parking_zone":
|
|
1044
|
-
return
|
|
1044
|
+
return n.PARKING_ZONE_COLOR;
|
|
1045
1045
|
case "green_area":
|
|
1046
|
-
return
|
|
1046
|
+
return n.GREEN_AREA_COLOR;
|
|
1047
1047
|
case "water":
|
|
1048
|
-
return
|
|
1048
|
+
return n.WATER_COLOR;
|
|
1049
1049
|
case "floorplate":
|
|
1050
|
-
return
|
|
1050
|
+
return n.BASE_COLOR;
|
|
1051
1051
|
case "void":
|
|
1052
1052
|
return "#00000000";
|
|
1053
1053
|
default:
|
|
1054
|
-
return
|
|
1054
|
+
return mn;
|
|
1055
1055
|
}
|
|
1056
1056
|
}
|
|
1057
|
-
function ai(t,
|
|
1058
|
-
const i =
|
|
1059
|
-
return
|
|
1057
|
+
function ai(t, n, e, r, o) {
|
|
1058
|
+
const i = Xe(t, n, r, o);
|
|
1059
|
+
return Ye(e) && Tt(t) && W(i) ? He(t, n) : i;
|
|
1060
1060
|
}
|
|
1061
|
-
function li(t,
|
|
1062
|
-
return t === "amenity" ? 1 :
|
|
1061
|
+
function li(t, n) {
|
|
1062
|
+
return t === "amenity" ? 1 : n ?? 1;
|
|
1063
1063
|
}
|
|
1064
|
-
function
|
|
1064
|
+
function Ue(t) {
|
|
1065
1065
|
return /^https?:\/\//i.test(t.trim());
|
|
1066
1066
|
}
|
|
1067
|
-
function ui(t,
|
|
1068
|
-
return !
|
|
1067
|
+
function ui(t, n) {
|
|
1068
|
+
return !n || !Ue(t) ? t : n + encodeURIComponent(t);
|
|
1069
1069
|
}
|
|
1070
|
-
function fi(t,
|
|
1071
|
-
return t.map((
|
|
1070
|
+
function fi(t, n) {
|
|
1071
|
+
return t.map((e) => ({ x: e.x, y: n - e.y }));
|
|
1072
1072
|
}
|
|
1073
|
-
function v(t,
|
|
1074
|
-
const
|
|
1075
|
-
return Math.hypot(
|
|
1073
|
+
function v(t, n) {
|
|
1074
|
+
const e = t.x - n.x, r = t.y - n.y;
|
|
1075
|
+
return Math.hypot(e, r);
|
|
1076
1076
|
}
|
|
1077
|
-
function
|
|
1077
|
+
function Ve(t) {
|
|
1078
1078
|
if (t.length === 0)
|
|
1079
1079
|
return { minX: 0, minY: 0, maxX: 0, maxY: 0 };
|
|
1080
|
-
let
|
|
1080
|
+
let n = t[0].x, e = t[0].y, r = t[0].x, o = t[0].y;
|
|
1081
1081
|
for (let i = 1; i < t.length; i++) {
|
|
1082
1082
|
const c = t[i];
|
|
1083
|
-
c.x <
|
|
1083
|
+
c.x < n && (n = c.x), c.y < e && (e = c.y), c.x > r && (r = c.x), c.y > o && (o = c.y);
|
|
1084
1084
|
}
|
|
1085
|
-
return { minX:
|
|
1085
|
+
return { minX: n, minY: e, maxX: r, maxY: o };
|
|
1086
1086
|
}
|
|
1087
|
-
function di(t,
|
|
1087
|
+
function di(t, n) {
|
|
1088
1088
|
return {
|
|
1089
|
-
minX: Math.min(t.minX,
|
|
1090
|
-
minY: Math.min(t.minY,
|
|
1091
|
-
maxX: Math.max(t.maxX,
|
|
1092
|
-
maxY: Math.max(t.maxY,
|
|
1089
|
+
minX: Math.min(t.minX, n.minX),
|
|
1090
|
+
minY: Math.min(t.minY, n.minY),
|
|
1091
|
+
maxX: Math.max(t.maxX, n.maxX),
|
|
1092
|
+
maxY: Math.max(t.maxY, n.maxY)
|
|
1093
1093
|
};
|
|
1094
1094
|
}
|
|
1095
|
-
function
|
|
1095
|
+
function We(t) {
|
|
1096
1096
|
if (t.length === 0) return { x: 0, y: 0 };
|
|
1097
|
-
let
|
|
1097
|
+
let n = 0, e = 0;
|
|
1098
1098
|
for (const r of t)
|
|
1099
|
-
|
|
1100
|
-
return { x:
|
|
1099
|
+
n += r.x, e += r.y;
|
|
1100
|
+
return { x: n / t.length, y: e / t.length };
|
|
1101
1101
|
}
|
|
1102
|
-
function
|
|
1103
|
-
let
|
|
1104
|
-
for (let r = 0, o =
|
|
1105
|
-
const i =
|
|
1106
|
-
c > t.y != s > t.y && t.x < (a - i) * (t.y - c) / (s - c + Number.EPSILON) + i && (
|
|
1102
|
+
function Ze(t, n) {
|
|
1103
|
+
let e = !1;
|
|
1104
|
+
for (let r = 0, o = n.length - 1; r < n.length; o = r++) {
|
|
1105
|
+
const i = n[r].x, c = n[r].y, a = n[o].x, s = n[o].y;
|
|
1106
|
+
c > t.y != s > t.y && t.x < (a - i) * (t.y - c) / (s - c + Number.EPSILON) + i && (e = !e);
|
|
1107
1107
|
}
|
|
1108
|
-
return
|
|
1108
|
+
return e;
|
|
1109
1109
|
}
|
|
1110
|
-
function hi(t,
|
|
1111
|
-
return
|
|
1110
|
+
function hi(t, n) {
|
|
1111
|
+
return n.some((e) => Ze(t, e));
|
|
1112
1112
|
}
|
|
1113
|
-
function
|
|
1114
|
-
const r =
|
|
1113
|
+
function at(t, n, e) {
|
|
1114
|
+
const r = e.x - n.x, o = e.y - n.y, i = r * r + o * o;
|
|
1115
1115
|
if (i === 0)
|
|
1116
|
-
return { point: { ...
|
|
1117
|
-
let c = ((t.x -
|
|
1116
|
+
return { point: { ...n }, t: 0, distance: v(t, n) };
|
|
1117
|
+
let c = ((t.x - n.x) * r + (t.y - n.y) * o) / i;
|
|
1118
1118
|
c = Math.max(0, Math.min(1, c));
|
|
1119
|
-
const a = { x:
|
|
1119
|
+
const a = { x: n.x + c * r, y: n.y + c * o };
|
|
1120
1120
|
return { point: a, t: c, distance: v(t, a) };
|
|
1121
1121
|
}
|
|
1122
|
-
function yi(t,
|
|
1123
|
-
if (
|
|
1124
|
-
let
|
|
1125
|
-
for (let r = 0; r <
|
|
1126
|
-
const o =
|
|
1127
|
-
(!
|
|
1122
|
+
function yi(t, n) {
|
|
1123
|
+
if (n.length < 2) return null;
|
|
1124
|
+
let e = null;
|
|
1125
|
+
for (let r = 0; r < n.length - 1; r++) {
|
|
1126
|
+
const o = at(t, n[r], n[r + 1]);
|
|
1127
|
+
(!e || o.distance < e.distance) && (e = { point: o.point, segmentIndex: r, distance: o.distance });
|
|
1128
1128
|
}
|
|
1129
|
-
return
|
|
1129
|
+
return e;
|
|
1130
1130
|
}
|
|
1131
|
-
function
|
|
1131
|
+
function lt(t, n, e, r, o = 8) {
|
|
1132
1132
|
const i = [];
|
|
1133
1133
|
for (let c = 0; c <= o; c++) {
|
|
1134
1134
|
const a = c / o, s = 1 - a;
|
|
1135
1135
|
i.push({
|
|
1136
|
-
x: s * s * s * t.x + 3 * s * s * a *
|
|
1137
|
-
y: s * s * s * t.y + 3 * s * s * a *
|
|
1136
|
+
x: s * s * s * t.x + 3 * s * s * a * n.x + 3 * s * a * a * e.x + a * a * a * r.x,
|
|
1137
|
+
y: s * s * s * t.y + 3 * s * s * a * n.y + 3 * s * a * a * e.y + a * a * a * r.y
|
|
1138
1138
|
});
|
|
1139
1139
|
}
|
|
1140
1140
|
return i;
|
|
1141
1141
|
}
|
|
1142
|
-
function Wt(t,
|
|
1142
|
+
function Wt(t, n, e, r = 6) {
|
|
1143
1143
|
const o = [];
|
|
1144
1144
|
for (let i = 0; i <= r; i++) {
|
|
1145
1145
|
const c = i / r, a = 1 - c;
|
|
1146
1146
|
o.push({
|
|
1147
|
-
x: a * a * t.x + 2 * a * c *
|
|
1148
|
-
y: a * a * t.y + 2 * a * c *
|
|
1147
|
+
x: a * a * t.x + 2 * a * c * n.x + c * c * e.x,
|
|
1148
|
+
y: a * a * t.y + 2 * a * c * n.y + c * c * e.y
|
|
1149
1149
|
});
|
|
1150
1150
|
}
|
|
1151
1151
|
return o;
|
|
1152
1152
|
}
|
|
1153
|
-
const
|
|
1154
|
-
function
|
|
1153
|
+
const je = 8;
|
|
1154
|
+
function qe(t, n, e, r, o, i, c) {
|
|
1155
1155
|
if (t.x === c.x && t.y === c.y) return [{ ...t }];
|
|
1156
|
-
let a = Math.abs(
|
|
1156
|
+
let a = Math.abs(n), s = Math.abs(e);
|
|
1157
1157
|
if (a === 0 || s === 0 || !Number.isFinite(a) || !Number.isFinite(s))
|
|
1158
1158
|
return [{ ...t }, { ...c }];
|
|
1159
1159
|
const h = r % 360 * Math.PI / 180, y = Math.cos(h), l = Math.sin(h), m = (t.x - c.x) / 2, u = (t.y - c.y) / 2, d = y * m + l * u, f = -l * m + y * u, p = d * d / (a * a) + f * f / (s * s);
|
|
@@ -1164,68 +1164,68 @@ function qn(t, e, n, r, o, i, c) {
|
|
|
1164
1164
|
const b = a * a, I = s * s, x = b * I - b * f * f - I * d * d, g = b * f * f + I * d * d, _ = Math.sqrt(Math.max(0, x / g)) * (o === i ? -1 : 1), S = _ * a * f / s, O = -_ * s * d / a, A = y * S - l * O + (t.x + c.x) / 2, E = l * S + y * O + (t.y + c.y) / 2, R = (d - S) / a, K = (f - O) / s, M = (-d - S) / a, Y = (-f - O) / s, L = Math.atan2(K, R);
|
|
1165
1165
|
let C = Math.atan2(R * Y - K * M, R * M + K * Y);
|
|
1166
1166
|
!i && C > 0 ? C -= 2 * Math.PI : i && C < 0 && (C += 2 * Math.PI);
|
|
1167
|
-
const $ = Math.abs(C) / (Math.PI / 2) *
|
|
1167
|
+
const $ = Math.abs(C) / (Math.PI / 2) * je, B = Math.max(1, Math.round($)), w = [{ ...t }];
|
|
1168
1168
|
for (let P = 1; P <= B; P++) {
|
|
1169
|
-
const
|
|
1169
|
+
const Q = L + C * P / B, J = Math.cos(Q), Pt = Math.sin(Q);
|
|
1170
1170
|
w.push({
|
|
1171
|
-
x: A + a * y *
|
|
1172
|
-
y: E + a * l *
|
|
1171
|
+
x: A + a * y * J - s * l * Pt,
|
|
1172
|
+
y: E + a * l * J + s * y * Pt
|
|
1173
1173
|
});
|
|
1174
1174
|
}
|
|
1175
1175
|
return w[w.length - 1] = { ...c }, w;
|
|
1176
1176
|
}
|
|
1177
|
-
const
|
|
1178
|
-
function
|
|
1179
|
-
const
|
|
1180
|
-
let
|
|
1181
|
-
for (;
|
|
1182
|
-
const i = t[
|
|
1183
|
-
if (
|
|
1184
|
-
|
|
1177
|
+
const Qe = /[\s,]/;
|
|
1178
|
+
function bn(t) {
|
|
1179
|
+
const n = [];
|
|
1180
|
+
let e = 0, r = "", o = 0;
|
|
1181
|
+
for (; e < t.length; ) {
|
|
1182
|
+
const i = t[e];
|
|
1183
|
+
if (Qe.test(i)) {
|
|
1184
|
+
e++;
|
|
1185
1185
|
continue;
|
|
1186
1186
|
}
|
|
1187
1187
|
if (i >= "a" && i <= "z" || i >= "A" && i <= "Z") {
|
|
1188
|
-
r = i, o = 0,
|
|
1188
|
+
r = i, o = 0, n.push(i), e++;
|
|
1189
1189
|
continue;
|
|
1190
1190
|
}
|
|
1191
1191
|
const c = r === "A" || r === "a" ? o % 7 : -1;
|
|
1192
1192
|
if ((c === 3 || c === 4) && (i === "0" || i === "1")) {
|
|
1193
|
-
|
|
1193
|
+
n.push(i), e++, o++;
|
|
1194
1194
|
continue;
|
|
1195
1195
|
}
|
|
1196
|
-
const a =
|
|
1196
|
+
const a = e;
|
|
1197
1197
|
let s = 0;
|
|
1198
|
-
for ((i === "+" || i === "-") &&
|
|
1199
|
-
|
|
1200
|
-
if (t[
|
|
1201
|
-
for (
|
|
1202
|
-
|
|
1203
|
-
if (s > 0 && (t[
|
|
1204
|
-
const h =
|
|
1205
|
-
if (
|
|
1206
|
-
for (;
|
|
1198
|
+
for ((i === "+" || i === "-") && e++; e < t.length && t[e] >= "0" && t[e] <= "9"; )
|
|
1199
|
+
e++, s++;
|
|
1200
|
+
if (t[e] === ".")
|
|
1201
|
+
for (e++; e < t.length && t[e] >= "0" && t[e] <= "9"; )
|
|
1202
|
+
e++, s++;
|
|
1203
|
+
if (s > 0 && (t[e] === "e" || t[e] === "E")) {
|
|
1204
|
+
const h = e;
|
|
1205
|
+
if (e++, (t[e] === "+" || t[e] === "-") && e++, e < t.length && t[e] >= "0" && t[e] <= "9")
|
|
1206
|
+
for (; e < t.length && t[e] >= "0" && t[e] <= "9"; ) e++;
|
|
1207
1207
|
else
|
|
1208
|
-
|
|
1208
|
+
e = h;
|
|
1209
1209
|
}
|
|
1210
1210
|
if (s === 0) {
|
|
1211
|
-
|
|
1211
|
+
e = a + 1;
|
|
1212
1212
|
continue;
|
|
1213
1213
|
}
|
|
1214
|
-
|
|
1214
|
+
n.push(t.slice(a, e)), o++;
|
|
1215
1215
|
}
|
|
1216
|
-
return
|
|
1216
|
+
return n;
|
|
1217
1217
|
}
|
|
1218
|
-
function
|
|
1219
|
-
const
|
|
1218
|
+
function In(t) {
|
|
1219
|
+
const n = bn(t), e = [];
|
|
1220
1220
|
let r = [], o = 0, i = 0, c = 0, a = 0, s = null, h = 0, y = "";
|
|
1221
|
-
const l = () => Number(
|
|
1222
|
-
for (; h <
|
|
1223
|
-
const m =
|
|
1221
|
+
const l = () => Number(n[h++]);
|
|
1222
|
+
for (; h < n.length; ) {
|
|
1223
|
+
const m = n[h];
|
|
1224
1224
|
switch (/[a-zA-Z]/.test(m) && (y = m, h++), y) {
|
|
1225
1225
|
case "M":
|
|
1226
1226
|
case "m": {
|
|
1227
1227
|
const u = y === "m", d = l(), f = l();
|
|
1228
|
-
o = u ? o + d : d, i = u ? i + f : f, r.length > 0 &&
|
|
1228
|
+
o = u ? o + d : d, i = u ? i + f : f, r.length > 0 && e.push(r), r = [{ x: o, y: i }], c = o, a = i, s = null, y = u ? "l" : "L";
|
|
1229
1229
|
break;
|
|
1230
1230
|
}
|
|
1231
1231
|
case "L":
|
|
@@ -1248,7 +1248,7 @@ function be(t) {
|
|
|
1248
1248
|
}
|
|
1249
1249
|
case "C":
|
|
1250
1250
|
case "c": {
|
|
1251
|
-
const u = y === "c", d = u ? o + l() : l(), f = u ? i + l() : l(), p = u ? o + l() : l(), b = u ? i + l() : l(), I = u ? o + l() : l(), x = u ? i + l() : l(), g =
|
|
1251
|
+
const u = y === "c", d = u ? o + l() : l(), f = u ? i + l() : l(), p = u ? o + l() : l(), b = u ? i + l() : l(), I = u ? o + l() : l(), x = u ? i + l() : l(), g = lt(
|
|
1252
1252
|
{ x: o, y: i },
|
|
1253
1253
|
{ x: d, y: f },
|
|
1254
1254
|
{ x: p, y: b },
|
|
@@ -1269,7 +1269,7 @@ function be(t) {
|
|
|
1269
1269
|
}
|
|
1270
1270
|
case "S":
|
|
1271
1271
|
case "s": {
|
|
1272
|
-
const u = y === "s", d = s ? 2 * o - s.x : o, f = s ? 2 * i - s.y : i, p = u ? o + l() : l(), b = u ? i + l() : l(), I = u ? o + l() : l(), x = u ? i + l() : l(), g =
|
|
1272
|
+
const u = y === "s", d = s ? 2 * o - s.x : o, f = s ? 2 * i - s.y : i, p = u ? o + l() : l(), b = u ? i + l() : l(), I = u ? o + l() : l(), x = u ? i + l() : l(), g = lt(
|
|
1273
1273
|
{ x: o, y: i },
|
|
1274
1274
|
{ x: d, y: f },
|
|
1275
1275
|
{ x: p, y: b },
|
|
@@ -1290,7 +1290,7 @@ function be(t) {
|
|
|
1290
1290
|
}
|
|
1291
1291
|
case "A":
|
|
1292
1292
|
case "a": {
|
|
1293
|
-
const u = y === "a", d = l(), f = l(), p = l(), b = l() !== 0, I = l() !== 0, x = u ? o + l() : l(), g = u ? i + l() : l(), _ =
|
|
1293
|
+
const u = y === "a", d = l(), f = l(), p = l(), b = l() !== 0, I = l() !== 0, x = u ? o + l() : l(), g = u ? i + l() : l(), _ = qe(
|
|
1294
1294
|
{ x: o, y: i },
|
|
1295
1295
|
d,
|
|
1296
1296
|
f,
|
|
@@ -1304,7 +1304,7 @@ function be(t) {
|
|
|
1304
1304
|
}
|
|
1305
1305
|
case "Z":
|
|
1306
1306
|
case "z": {
|
|
1307
|
-
r.push({ x: c, y: a }),
|
|
1307
|
+
r.push({ x: c, y: a }), e.push(r), r = [], o = c, i = a, s = null;
|
|
1308
1308
|
break;
|
|
1309
1309
|
}
|
|
1310
1310
|
default:
|
|
@@ -1312,64 +1312,64 @@ function be(t) {
|
|
|
1312
1312
|
break;
|
|
1313
1313
|
}
|
|
1314
1314
|
}
|
|
1315
|
-
return r.length > 0 &&
|
|
1315
|
+
return r.length > 0 && e.push(r), e;
|
|
1316
1316
|
}
|
|
1317
|
-
function
|
|
1318
|
-
const
|
|
1317
|
+
function Je(t) {
|
|
1318
|
+
const n = t.match(
|
|
1319
1319
|
/^\s*M\s*(-?\d*\.?\d+(?:e[-+]?\d+)?)[\s,]+(-?\d*\.?\d+(?:e[-+]?\d+)?)/i
|
|
1320
1320
|
);
|
|
1321
|
-
if (!
|
|
1322
|
-
const
|
|
1323
|
-
return Number.isFinite(
|
|
1321
|
+
if (!n) return null;
|
|
1322
|
+
const e = Number(n[1]), r = Number(n[2]);
|
|
1323
|
+
return Number.isFinite(e) && Number.isFinite(r) ? { x: e, y: r } : null;
|
|
1324
1324
|
}
|
|
1325
1325
|
function tr(t) {
|
|
1326
1326
|
var o, i;
|
|
1327
|
-
const
|
|
1328
|
-
if (!
|
|
1329
|
-
const
|
|
1330
|
-
return !
|
|
1327
|
+
const n = (o = t.paths[0]) == null ? void 0 : o.d;
|
|
1328
|
+
if (!n || t.polygons.length === 0) return !1;
|
|
1329
|
+
const e = Je(n), r = (i = t.polygons[0]) == null ? void 0 : i[0];
|
|
1330
|
+
return !e || !r ? !1 : Math.abs(e.x - r.x) > 0.01 || Math.abs(e.y - r.y) > 0.01;
|
|
1331
1331
|
}
|
|
1332
|
-
function
|
|
1332
|
+
function gn(t) {
|
|
1333
1333
|
if (!tr(t)) return t;
|
|
1334
|
-
const
|
|
1335
|
-
return
|
|
1334
|
+
const n = t.paths.flatMap((e) => In(e.d));
|
|
1335
|
+
return n.length === 0 ? t : { paths: t.paths, polygons: n };
|
|
1336
1336
|
}
|
|
1337
|
-
function
|
|
1338
|
-
const
|
|
1337
|
+
function nr(t) {
|
|
1338
|
+
const n = t.map((r) => ({
|
|
1339
1339
|
d: r,
|
|
1340
1340
|
closed: /z/i.test(r)
|
|
1341
|
-
})),
|
|
1342
|
-
return { paths:
|
|
1341
|
+
})), e = t.flatMap((r) => In(r));
|
|
1342
|
+
return { paths: n, polygons: e };
|
|
1343
1343
|
}
|
|
1344
1344
|
function Mt(t) {
|
|
1345
|
-
const
|
|
1346
|
-
return
|
|
1345
|
+
const n = t.polygons.flat();
|
|
1346
|
+
return Ve(n);
|
|
1347
1347
|
}
|
|
1348
|
-
function
|
|
1349
|
-
return
|
|
1348
|
+
function er(t) {
|
|
1349
|
+
return We(t.polygons.flat());
|
|
1350
1350
|
}
|
|
1351
|
-
function pi(t,
|
|
1352
|
-
const o =
|
|
1353
|
-
if (c === 0) return { ...
|
|
1354
|
-
const s = Math.atan2(i, o) * 180 / Math.PI -
|
|
1351
|
+
function pi(t, n, e = 0, r = [15, 45, 90]) {
|
|
1352
|
+
const o = n.x - t.x, i = n.y - t.y, c = Math.hypot(o, i);
|
|
1353
|
+
if (c === 0) return { ...n };
|
|
1354
|
+
const s = Math.atan2(i, o) * 180 / Math.PI - e;
|
|
1355
1355
|
let h = s, y = 1 / 0;
|
|
1356
1356
|
for (const m of r) {
|
|
1357
1357
|
const u = Math.round(s / m) * m, d = Math.abs(s - u);
|
|
1358
1358
|
d < y && (y = d, h = u);
|
|
1359
1359
|
}
|
|
1360
|
-
const l = (h +
|
|
1360
|
+
const l = (h + e) * Math.PI / 180;
|
|
1361
1361
|
return {
|
|
1362
1362
|
x: t.x + Math.cos(l) * c,
|
|
1363
1363
|
y: t.y + Math.sin(l) * c
|
|
1364
1364
|
};
|
|
1365
1365
|
}
|
|
1366
|
-
function xi(t,
|
|
1367
|
-
return Math.atan2(
|
|
1366
|
+
function xi(t, n) {
|
|
1367
|
+
return Math.atan2(n.y - t.y, n.x - t.x) * 180 / Math.PI;
|
|
1368
1368
|
}
|
|
1369
1369
|
function rr(t) {
|
|
1370
1370
|
if (!t) return null;
|
|
1371
|
-
const
|
|
1372
|
-
return
|
|
1371
|
+
const n = t.trim().split(/[\s,]+/).map(Number);
|
|
1372
|
+
return n.length !== 4 || n.some((e) => Number.isNaN(e)) ? null : { x: n[0], y: n[1], width: n[2], height: n[3] };
|
|
1373
1373
|
}
|
|
1374
1374
|
const or = {
|
|
1375
1375
|
fill: "fill",
|
|
@@ -1380,44 +1380,44 @@ const or = {
|
|
|
1380
1380
|
opacity: "opacity"
|
|
1381
1381
|
};
|
|
1382
1382
|
function ir(t) {
|
|
1383
|
-
const
|
|
1384
|
-
for (const
|
|
1385
|
-
const r =
|
|
1383
|
+
const n = {};
|
|
1384
|
+
for (const e of t.split(";")) {
|
|
1385
|
+
const r = e.indexOf(":");
|
|
1386
1386
|
if (r === -1) continue;
|
|
1387
|
-
const o =
|
|
1388
|
-
o && i && (
|
|
1387
|
+
const o = e.slice(0, r).trim().toLowerCase(), i = e.slice(r + 1).trim();
|
|
1388
|
+
o && i && (n[o] = i);
|
|
1389
1389
|
}
|
|
1390
|
-
return
|
|
1390
|
+
return n;
|
|
1391
1391
|
}
|
|
1392
1392
|
function sr(t) {
|
|
1393
|
-
const
|
|
1394
|
-
for (const r of
|
|
1393
|
+
const n = /* @__PURE__ */ new Map(), e = t.replace(/\/\*[\s\S]*?\*\//g, "");
|
|
1394
|
+
for (const r of e.matchAll(/([^{]+)\{([^}]*)\}/g)) {
|
|
1395
1395
|
const o = r[1].split(",").map((c) => c.trim()), i = ir(r[2]);
|
|
1396
1396
|
for (const c of o) {
|
|
1397
1397
|
const a = c.match(/^\.([a-zA-Z0-9_-]+)$/);
|
|
1398
1398
|
if (!a) continue;
|
|
1399
1399
|
const s = a[1];
|
|
1400
|
-
|
|
1401
|
-
...
|
|
1400
|
+
n.set(s, {
|
|
1401
|
+
...n.get(s) || {},
|
|
1402
1402
|
...i
|
|
1403
1403
|
});
|
|
1404
1404
|
}
|
|
1405
1405
|
}
|
|
1406
|
-
return
|
|
1406
|
+
return n;
|
|
1407
1407
|
}
|
|
1408
|
-
function cr(t,
|
|
1409
|
-
const
|
|
1408
|
+
function cr(t, n) {
|
|
1409
|
+
const e = {};
|
|
1410
1410
|
for (const r of t.split(/\s+/).map((o) => o.trim()).filter(Boolean))
|
|
1411
|
-
Object.assign(
|
|
1412
|
-
return
|
|
1411
|
+
Object.assign(e, n.get(r) || {});
|
|
1412
|
+
return e;
|
|
1413
1413
|
}
|
|
1414
1414
|
function ar(t) {
|
|
1415
|
-
const
|
|
1416
|
-
for (const o of
|
|
1417
|
-
|
|
1418
|
-
if (
|
|
1415
|
+
const n = [], e = t.replace(/<!--[\s\S]*?-->/g, "");
|
|
1416
|
+
for (const o of e.matchAll(/<style\b[^>]*>([\s\S]*?)<\/style>/gi))
|
|
1417
|
+
n.push(o[1]);
|
|
1418
|
+
if (n.length === 0) return t;
|
|
1419
1419
|
const r = /* @__PURE__ */ new Map();
|
|
1420
|
-
for (const o of
|
|
1420
|
+
for (const o of n)
|
|
1421
1421
|
for (const [i, c] of sr(o))
|
|
1422
1422
|
r.set(i, { ...r.get(i) || {}, ...c });
|
|
1423
1423
|
return r.size === 0 ? t : t.replace(
|
|
@@ -1437,69 +1437,69 @@ function ar(t) {
|
|
|
1437
1437
|
}
|
|
1438
1438
|
function Zt(t) {
|
|
1439
1439
|
var a, s, h, y, l;
|
|
1440
|
-
const
|
|
1441
|
-
return
|
|
1440
|
+
const n = {}, e = (a = t.match(/\bfill\s*=\s*["']([^"']*)["']/i)) == null ? void 0 : a[1], r = (s = t.match(/\bstroke\s*=\s*["']([^"']*)["']/i)) == null ? void 0 : s[1], o = (h = t.match(/\bstroke-width\s*=\s*["']?(-?[\d.]+)/i)) == null ? void 0 : h[1], i = (y = t.match(/\bopacity\s*=\s*["']?(-?[\d.]+)/i)) == null ? void 0 : y[1], c = (l = t.match(/\bfill-opacity\s*=\s*["']?(-?[\d.]+)/i)) == null ? void 0 : l[1];
|
|
1441
|
+
return e && e.toLowerCase() !== "none" && (n.fill = e), r && r.toLowerCase() !== "none" && (n.stroke = r), o != null && !Number.isNaN(Number(o)) && (n.strokeWidth = Number(o)), i != null && !Number.isNaN(Number(i)) ? n.opacity = Number(i) : c != null && !Number.isNaN(Number(c)) && (n.opacity = Number(c)), n;
|
|
1442
1442
|
}
|
|
1443
|
-
function gt(t,
|
|
1443
|
+
function gt(t, n) {
|
|
1444
1444
|
return {
|
|
1445
|
-
fill:
|
|
1446
|
-
stroke:
|
|
1447
|
-
strokeWidth:
|
|
1448
|
-
opacity:
|
|
1445
|
+
fill: n.fill ?? t.fill,
|
|
1446
|
+
stroke: n.stroke ?? t.stroke,
|
|
1447
|
+
strokeWidth: n.strokeWidth ?? t.strokeWidth,
|
|
1448
|
+
opacity: n.opacity ?? t.opacity
|
|
1449
1449
|
};
|
|
1450
1450
|
}
|
|
1451
1451
|
const Et = { a: 1, b: 0, c: 0, d: 1, e: 0, f: 0 };
|
|
1452
|
-
function j(t,
|
|
1452
|
+
function j(t, n) {
|
|
1453
1453
|
return {
|
|
1454
|
-
a: t.a *
|
|
1455
|
-
b: t.b *
|
|
1456
|
-
c: t.a *
|
|
1457
|
-
d: t.b *
|
|
1458
|
-
e: t.a *
|
|
1459
|
-
f: t.b *
|
|
1454
|
+
a: t.a * n.a + t.c * n.b,
|
|
1455
|
+
b: t.b * n.a + t.d * n.b,
|
|
1456
|
+
c: t.a * n.c + t.c * n.d,
|
|
1457
|
+
d: t.b * n.c + t.d * n.d,
|
|
1458
|
+
e: t.a * n.e + t.c * n.f + t.e,
|
|
1459
|
+
f: t.b * n.e + t.d * n.f + t.f
|
|
1460
1460
|
};
|
|
1461
1461
|
}
|
|
1462
|
-
function lr(t,
|
|
1462
|
+
function lr(t, n) {
|
|
1463
1463
|
return {
|
|
1464
|
-
x: t.a *
|
|
1465
|
-
y: t.b *
|
|
1464
|
+
x: t.a * n.x + t.c * n.y + t.e,
|
|
1465
|
+
y: t.b * n.x + t.d * n.y + t.f
|
|
1466
1466
|
};
|
|
1467
1467
|
}
|
|
1468
|
-
function ur(t,
|
|
1469
|
-
return Math.abs(t.a - 1) <
|
|
1468
|
+
function ur(t, n = 1e-9) {
|
|
1469
|
+
return Math.abs(t.a - 1) < n && Math.abs(t.b) < n && Math.abs(t.c) < n && Math.abs(t.d - 1) < n && Math.abs(t.e) < n && Math.abs(t.f) < n;
|
|
1470
1470
|
}
|
|
1471
|
-
function _t(t,
|
|
1472
|
-
return { a: 1, b: 0, c: 0, d: 1, e: t, f:
|
|
1471
|
+
function _t(t, n) {
|
|
1472
|
+
return { a: 1, b: 0, c: 0, d: 1, e: t, f: n };
|
|
1473
1473
|
}
|
|
1474
1474
|
function fr(t) {
|
|
1475
|
-
const
|
|
1476
|
-
return { a:
|
|
1475
|
+
const n = t * Math.PI / 180, e = Math.cos(n), r = Math.sin(n);
|
|
1476
|
+
return { a: e, b: r, c: -r, d: e, e: 0, f: 0 };
|
|
1477
1477
|
}
|
|
1478
|
-
function dr(t,
|
|
1478
|
+
function dr(t, n) {
|
|
1479
1479
|
switch (t) {
|
|
1480
1480
|
case "matrix":
|
|
1481
|
-
return
|
|
1481
|
+
return n.length < 6 ? null : { a: n[0], b: n[1], c: n[2], d: n[3], e: n[4], f: n[5] };
|
|
1482
1482
|
case "translate":
|
|
1483
|
-
return
|
|
1483
|
+
return n.length < 1 ? null : _t(n[0], n[1] ?? 0);
|
|
1484
1484
|
case "scale": {
|
|
1485
|
-
if (
|
|
1486
|
-
const
|
|
1487
|
-
return { a:
|
|
1485
|
+
if (n.length < 1) return null;
|
|
1486
|
+
const e = n[0], r = n[1] ?? e;
|
|
1487
|
+
return { a: e, b: 0, c: 0, d: r, e: 0, f: 0 };
|
|
1488
1488
|
}
|
|
1489
1489
|
case "rotate": {
|
|
1490
|
-
if (
|
|
1491
|
-
const
|
|
1492
|
-
if (
|
|
1493
|
-
const r =
|
|
1490
|
+
if (n.length < 1) return null;
|
|
1491
|
+
const e = fr(n[0]);
|
|
1492
|
+
if (n.length < 3) return e;
|
|
1493
|
+
const r = n[1], o = n[2];
|
|
1494
1494
|
return j(
|
|
1495
|
-
j(_t(r, o),
|
|
1495
|
+
j(_t(r, o), e),
|
|
1496
1496
|
_t(-r, -o)
|
|
1497
1497
|
);
|
|
1498
1498
|
}
|
|
1499
1499
|
case "skewx":
|
|
1500
|
-
return
|
|
1500
|
+
return n.length < 1 ? null : { a: 1, b: 0, c: Math.tan(n[0] * Math.PI / 180), d: 1, e: 0, f: 0 };
|
|
1501
1501
|
case "skewy":
|
|
1502
|
-
return
|
|
1502
|
+
return n.length < 1 ? null : { a: 1, b: Math.tan(n[0] * Math.PI / 180), c: 0, d: 1, e: 0, f: 0 };
|
|
1503
1503
|
default:
|
|
1504
1504
|
return null;
|
|
1505
1505
|
}
|
|
@@ -1507,41 +1507,41 @@ function dr(t, e) {
|
|
|
1507
1507
|
const jt = /([a-zA-Z]+)\s*\(([^)]*)\)/g;
|
|
1508
1508
|
function qt(t) {
|
|
1509
1509
|
if (!t) return Et;
|
|
1510
|
-
let
|
|
1510
|
+
let n = Et;
|
|
1511
1511
|
jt.lastIndex = 0;
|
|
1512
|
-
let
|
|
1513
|
-
for (; (
|
|
1514
|
-
const r =
|
|
1512
|
+
let e;
|
|
1513
|
+
for (; (e = jt.exec(t)) !== null; ) {
|
|
1514
|
+
const r = e[1].toLowerCase(), o = e[2].trim().split(/[\s,]+/).filter(Boolean).map(Number);
|
|
1515
1515
|
if (o.some((c) => Number.isNaN(c))) continue;
|
|
1516
1516
|
const i = dr(r, o);
|
|
1517
|
-
i && (
|
|
1517
|
+
i && (n = j(n, i));
|
|
1518
1518
|
}
|
|
1519
|
-
return
|
|
1519
|
+
return n;
|
|
1520
1520
|
}
|
|
1521
1521
|
function H(t) {
|
|
1522
1522
|
if (!Number.isFinite(t)) return "0";
|
|
1523
|
-
const
|
|
1524
|
-
return Object.is(
|
|
1523
|
+
const n = Math.round(t * 1e4) / 1e4;
|
|
1524
|
+
return Object.is(n, -0) ? "0" : String(n);
|
|
1525
1525
|
}
|
|
1526
|
-
function hr(t,
|
|
1527
|
-
const o = r * Math.PI / 180, i = Math.cos(o), c = Math.sin(o), a = i *
|
|
1526
|
+
function hr(t, n, e, r) {
|
|
1527
|
+
const o = r * Math.PI / 180, i = Math.cos(o), c = Math.sin(o), a = i * n, s = c * n, h = -c * e, y = i * e, l = t.a * a + t.c * s, m = t.b * a + t.d * s, u = t.a * h + t.c * y, d = t.b * h + t.d * y, f = (l + d) / 2, p = (l - d) / 2, b = (m + u) / 2, I = (m - u) / 2, x = Math.hypot(f, I), g = Math.hypot(p, b), _ = Math.abs(x + g), S = Math.abs(x - g), O = Math.atan2(b, p), E = (Math.atan2(I, f) + O) / 2 * (180 / Math.PI);
|
|
1528
1528
|
return { rx: _, ry: S, phiDeg: E };
|
|
1529
1529
|
}
|
|
1530
|
-
function yr(t,
|
|
1531
|
-
if (!t || ur(
|
|
1532
|
-
const
|
|
1530
|
+
function yr(t, n) {
|
|
1531
|
+
if (!t || ur(n)) return t;
|
|
1532
|
+
const e = bn(t), r = [], o = n.a * n.d - n.b * n.c < 0;
|
|
1533
1533
|
let i = 0, c = "", a = 0, s = 0, h = 0, y = 0;
|
|
1534
1534
|
const l = () => {
|
|
1535
|
-
const d = Number(
|
|
1535
|
+
const d = Number(e[i++]);
|
|
1536
1536
|
return Number.isNaN(d) ? 0 : d;
|
|
1537
1537
|
}, m = (d, ...f) => {
|
|
1538
1538
|
r.push(d + (f.length ? " " + f.map(H).join(" ") : ""));
|
|
1539
1539
|
}, u = (d, f) => {
|
|
1540
|
-
const p = lr(
|
|
1540
|
+
const p = lr(n, { x: d, y: f });
|
|
1541
1541
|
return [p.x, p.y];
|
|
1542
1542
|
};
|
|
1543
|
-
for (; i <
|
|
1544
|
-
const d =
|
|
1543
|
+
for (; i < e.length; ) {
|
|
1544
|
+
const d = e[i];
|
|
1545
1545
|
switch (/[a-zA-Z]/.test(d) && (c = d, i++), c) {
|
|
1546
1546
|
case "M":
|
|
1547
1547
|
case "m": {
|
|
@@ -1593,7 +1593,7 @@ function yr(t, e) {
|
|
|
1593
1593
|
}
|
|
1594
1594
|
case "A":
|
|
1595
1595
|
case "a": {
|
|
1596
|
-
const f = c === "a", p = l(), b = l(), I = l(), x = l(), g = l(), _ = f ? a + l() : l(), S = f ? s + l() : l(), O = hr(
|
|
1596
|
+
const f = c === "a", p = l(), b = l(), I = l(), x = l(), g = l(), _ = f ? a + l() : l(), S = f ? s + l() : l(), O = hr(n, p, b, I), [A, E] = u(_, S);
|
|
1597
1597
|
r.push(
|
|
1598
1598
|
`A ${H(O.rx)} ${H(O.ry)} ${H(O.phiDeg)} ${x ? 1 : 0} ${(g ? 1 : 0) ^ (o ? 1 : 0)} ${H(A)} ${H(E)}`
|
|
1599
1599
|
), a = _, s = S;
|
|
@@ -1660,100 +1660,100 @@ const pr = [
|
|
|
1660
1660
|
{ prefix: "stairs-", kind: "connector" }
|
|
1661
1661
|
];
|
|
1662
1662
|
function Qt(t) {
|
|
1663
|
-
const
|
|
1664
|
-
return
|
|
1663
|
+
const n = yt(t);
|
|
1664
|
+
return n === "route path" || n.startsWith("route path ");
|
|
1665
1665
|
}
|
|
1666
|
-
function
|
|
1667
|
-
return /^routes?( \d+)?$/.test(
|
|
1666
|
+
function _n(t) {
|
|
1667
|
+
return /^routes?( \d+)?$/.test(yt(t));
|
|
1668
1668
|
}
|
|
1669
|
-
function Jt(t,
|
|
1670
|
-
const
|
|
1671
|
-
return
|
|
1669
|
+
function Jt(t, n) {
|
|
1670
|
+
const e = t.toLowerCase();
|
|
1671
|
+
return e === "line" || e === "polyline" ? !0 : !(e !== "path" || !n || /[zZ]/.test(n) || /[csqtaCSQTA]/.test(n));
|
|
1672
1672
|
}
|
|
1673
1673
|
const mr = [
|
|
1674
|
-
...
|
|
1674
|
+
...jn,
|
|
1675
1675
|
"walkable",
|
|
1676
1676
|
"void"
|
|
1677
1677
|
], br = 8;
|
|
1678
|
-
function Ir(t,
|
|
1679
|
-
if (
|
|
1678
|
+
function Ir(t, n = "floor") {
|
|
1679
|
+
if (Sn(t))
|
|
1680
1680
|
return { kind: null, guessed: !1 };
|
|
1681
|
-
const
|
|
1681
|
+
const e = t.toLowerCase(), r = n === "base" ? xr : pr;
|
|
1682
1682
|
for (const { prefix: o, kind: i } of r)
|
|
1683
|
-
if (
|
|
1683
|
+
if (e === o || e.startsWith(o))
|
|
1684
1684
|
return { kind: i, guessed: !1 };
|
|
1685
|
-
return
|
|
1685
|
+
return e.startsWith("interactive") ? { kind: "unit", guessed: !0 } : { kind: null, guessed: !1 };
|
|
1686
1686
|
}
|
|
1687
|
-
function
|
|
1687
|
+
function yt(t) {
|
|
1688
1688
|
return t.toLowerCase().replace(/[-_]+/g, " ").replace(/\s+/g, " ").trim();
|
|
1689
1689
|
}
|
|
1690
1690
|
function wt(t) {
|
|
1691
1691
|
return /non[-_ ]?interactive/i.test(t);
|
|
1692
1692
|
}
|
|
1693
|
-
function
|
|
1694
|
-
return wt(t) ? !1 : /^interactive( items)?( \d+)?$/.test(
|
|
1693
|
+
function kn(t) {
|
|
1694
|
+
return wt(t) ? !1 : /^interactive( items)?( \d+)?$/.test(yt(t));
|
|
1695
1695
|
}
|
|
1696
|
-
function
|
|
1697
|
-
const
|
|
1698
|
-
return
|
|
1696
|
+
function On(t) {
|
|
1697
|
+
const n = yt(t);
|
|
1698
|
+
return n === "stores" || n === "store layer" || n === "units" || n === "unit layer";
|
|
1699
1699
|
}
|
|
1700
|
-
function
|
|
1701
|
-
return
|
|
1700
|
+
function Sn(t) {
|
|
1701
|
+
return kn(t) || wt(t) || On(t) || _n(t);
|
|
1702
1702
|
}
|
|
1703
1703
|
function kt(t) {
|
|
1704
1704
|
return t.interactiveContainer || t.nonInteractiveContainer || t.storeFolder || t.routeContainer;
|
|
1705
1705
|
}
|
|
1706
|
-
function F(t,
|
|
1707
|
-
const
|
|
1708
|
-
return
|
|
1706
|
+
function F(t, n) {
|
|
1707
|
+
const e = t.match(new RegExp(`\\b${n}\\s*=\\s*["']([^"']*)["']`, "i"));
|
|
1708
|
+
return e ? e[1] : null;
|
|
1709
1709
|
}
|
|
1710
|
-
function z(t,
|
|
1711
|
-
const
|
|
1712
|
-
return
|
|
1710
|
+
function z(t, n) {
|
|
1711
|
+
const e = t.match(new RegExp(`\\b${n}\\s*=\\s*["']?(-?[\\d.]+)`, "i"));
|
|
1712
|
+
return e ? Number(e[1]) : 0;
|
|
1713
1713
|
}
|
|
1714
|
-
function
|
|
1714
|
+
function tn(t) {
|
|
1715
1715
|
return /\bdata-interactive\s*=\s*["']?(true|1|yes)/i.test(t);
|
|
1716
1716
|
}
|
|
1717
1717
|
function gr(t) {
|
|
1718
1718
|
return [F(t, "id"), F(t, "data-name")].filter(
|
|
1719
|
-
(
|
|
1719
|
+
(n) => !!n
|
|
1720
1720
|
);
|
|
1721
1721
|
}
|
|
1722
1722
|
function _r(t) {
|
|
1723
|
-
return t.some(wt) ? { interactiveContainer: !1, nonInteractiveContainer: !0, storeFolder: !1 } : t.some(
|
|
1723
|
+
return t.some(wt) ? { interactiveContainer: !1, nonInteractiveContainer: !0, storeFolder: !1 } : t.some(kn) ? { interactiveContainer: !0, nonInteractiveContainer: !1, storeFolder: !1 } : t.some(On) ? { interactiveContainer: !1, nonInteractiveContainer: !1, storeFolder: !0 } : { interactiveContainer: !1, nonInteractiveContainer: !1, storeFolder: !1 };
|
|
1724
1724
|
}
|
|
1725
1725
|
function kr(t) {
|
|
1726
|
-
const
|
|
1727
|
-
if (
|
|
1728
|
-
let
|
|
1729
|
-
for (let r = 2; r <
|
|
1730
|
-
|
|
1731
|
-
return
|
|
1726
|
+
const n = t.trim().split(/[\s,]+/).map(Number);
|
|
1727
|
+
if (n.length < 4) return "";
|
|
1728
|
+
let e = `M ${n[0]} ${n[1]}`;
|
|
1729
|
+
for (let r = 2; r < n.length; r += 2)
|
|
1730
|
+
e += ` L ${n[r]} ${n[r + 1]}`;
|
|
1731
|
+
return e += " Z", e;
|
|
1732
1732
|
}
|
|
1733
|
-
function Or(t,
|
|
1734
|
-
return `M ${t} ${
|
|
1733
|
+
function Or(t, n, e, r) {
|
|
1734
|
+
return `M ${t} ${n} L ${e} ${r}`;
|
|
1735
1735
|
}
|
|
1736
|
-
function Sr(t,
|
|
1736
|
+
function Sr(t, n) {
|
|
1737
1737
|
if (t === "path")
|
|
1738
|
-
return F(
|
|
1738
|
+
return F(n, "d") ?? void 0;
|
|
1739
1739
|
if (t === "polygon" || t === "polyline") {
|
|
1740
|
-
const
|
|
1741
|
-
return
|
|
1740
|
+
const e = F(n, "points");
|
|
1741
|
+
return e ? kr(e) : void 0;
|
|
1742
1742
|
}
|
|
1743
1743
|
if (t === "line")
|
|
1744
1744
|
return Or(
|
|
1745
|
-
z(
|
|
1746
|
-
z(
|
|
1747
|
-
z(
|
|
1748
|
-
z(
|
|
1745
|
+
z(n, "x1"),
|
|
1746
|
+
z(n, "y1"),
|
|
1747
|
+
z(n, "x2"),
|
|
1748
|
+
z(n, "y2")
|
|
1749
1749
|
);
|
|
1750
1750
|
if (t === "rect") {
|
|
1751
|
-
const
|
|
1752
|
-
return `M ${
|
|
1751
|
+
const e = z(n, "x"), r = z(n, "y"), o = z(n, "width"), i = z(n, "height");
|
|
1752
|
+
return `M ${e} ${r} L ${e + o} ${r} L ${e + o} ${r + i} L ${e} ${r + i} Z`;
|
|
1753
1753
|
}
|
|
1754
1754
|
}
|
|
1755
1755
|
function Ar(t) {
|
|
1756
|
-
const
|
|
1756
|
+
const n = ar(t).replace(/<!--[\s\S]*?-->/g, ""), e = n.match(/viewBox\s*=\s*["']([^"']+)["']/i), r = rr(e == null ? void 0 : e[1]), o = [], i = [], c = [], a = [];
|
|
1757
1757
|
let s = 0;
|
|
1758
1758
|
const h = () => a.some((x) => x.routeContainer), y = () => {
|
|
1759
1759
|
for (let g = a.length - 1; g >= 0; g--) {
|
|
@@ -1807,7 +1807,7 @@ function Ar(t) {
|
|
|
1807
1807
|
i.includes(_) || i.push(_);
|
|
1808
1808
|
}, b = /<(\/?)(path|polygon|polyline|line|rect|g)\b([^>]*)(\/?)>/gi;
|
|
1809
1809
|
let I;
|
|
1810
|
-
for (; (I = b.exec(
|
|
1810
|
+
for (; (I = b.exec(n)) !== null; ) {
|
|
1811
1811
|
const x = I[1] === "/", g = I[2].toLowerCase(), _ = I[3] ?? "", S = I[4] === "/" || /\/\s*$/.test(_);
|
|
1812
1812
|
if (x) {
|
|
1813
1813
|
if (g === "g") {
|
|
@@ -1817,24 +1817,24 @@ function Ar(t) {
|
|
|
1817
1817
|
continue;
|
|
1818
1818
|
}
|
|
1819
1819
|
if (g === "g") {
|
|
1820
|
-
const C = F(_, "id"), $ = gr(_), { interactiveContainer: B, nonInteractiveContainer: w, storeFolder: P } = _r($),
|
|
1820
|
+
const C = F(_, "id"), $ = gr(_), { interactiveContainer: B, nonInteractiveContainer: w, storeFolder: P } = _r($), Q = l();
|
|
1821
1821
|
C && u();
|
|
1822
|
-
const
|
|
1822
|
+
const J = {
|
|
1823
1823
|
id: C,
|
|
1824
1824
|
interactiveContainer: B,
|
|
1825
1825
|
nonInteractiveContainer: w,
|
|
1826
1826
|
storeFolder: P,
|
|
1827
|
-
inInteractive: B || P ||
|
|
1827
|
+
inInteractive: B || P || tn(_) || Q && !w,
|
|
1828
1828
|
collectedPaths: [],
|
|
1829
1829
|
style: Zt(_),
|
|
1830
1830
|
matrix: j(m(), qt(F(_, "transform"))),
|
|
1831
1831
|
hasNamedChild: !1,
|
|
1832
|
-
routeContainer: $.some(
|
|
1832
|
+
routeContainer: $.some(_n) || h()
|
|
1833
1833
|
};
|
|
1834
|
-
S || a.push(
|
|
1834
|
+
S || a.push(J);
|
|
1835
1835
|
continue;
|
|
1836
1836
|
}
|
|
1837
|
-
const O = F(_, "id"), A = Sr(g, _), E = j(m(), qt(F(_, "transform"))), R = A && yr(A, E), K =
|
|
1837
|
+
const O = F(_, "id"), A = Sr(g, _), E = j(m(), qt(F(_, "transform"))), R = A && yr(A, E), K = tn(_) || l(), M = gt(y(), Zt(_)), Y = F(_, "data-name");
|
|
1838
1838
|
if (h()) {
|
|
1839
1839
|
Jt(g, A) && p(g, R);
|
|
1840
1840
|
continue;
|
|
@@ -1862,24 +1862,24 @@ function Ar(t) {
|
|
|
1862
1862
|
function Cr(t) {
|
|
1863
1863
|
return t.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "").slice(0, 80);
|
|
1864
1864
|
}
|
|
1865
|
-
function Rr(t,
|
|
1865
|
+
function Rr(t, n) {
|
|
1866
1866
|
var o, i, c, a;
|
|
1867
|
-
const
|
|
1868
|
-
return
|
|
1867
|
+
const e = ft(n), r = {};
|
|
1868
|
+
return e != null && e.fill ? r.fill = e.fill : (o = t.style) != null && o.fill && (r.fill = t.style.fill), e != null && e.stroke ? r.stroke = e.stroke : (i = t.style) != null && i.stroke && (r.stroke = t.style.stroke), (e == null ? void 0 : e.strokeWidth) != null ? r.strokeWidth = e.strokeWidth : ((c = t.style) == null ? void 0 : c.strokeWidth) != null && (r.strokeWidth = t.style.strokeWidth), ((a = t.style) == null ? void 0 : a.opacity) != null && (r.opacity = t.style.opacity), (e == null ? void 0 : e.extrudeHeight) != null && (r.extrudeHeight = e.extrudeHeight), r;
|
|
1869
1869
|
}
|
|
1870
|
-
function Er(t,
|
|
1871
|
-
return t == null &&
|
|
1870
|
+
function Er(t, n) {
|
|
1871
|
+
return t == null && n == null ? !0 : t == null || n == null ? !1 : Math.abs(t.x - n.x) < 0.01 && Math.abs(t.y - n.y) < 0.01 && Math.abs(t.width - n.width) < 0.01 && Math.abs(t.height - n.height) < 0.01;
|
|
1872
1872
|
}
|
|
1873
|
-
function mi(t,
|
|
1873
|
+
function mi(t, n = "floor", e = {}) {
|
|
1874
1874
|
const r = Ar(t), o = [], i = [], c = [], a = [...r.warnings], s = [];
|
|
1875
1875
|
let h = 0, y = 0, l = 0;
|
|
1876
|
-
const m =
|
|
1876
|
+
const m = e.previousViewbox != null && r.viewbox != null && !Er(e.previousViewbox, r.viewbox);
|
|
1877
1877
|
m && a.push(
|
|
1878
1878
|
"SVG viewBox differs from the stored artboard — re-upload blocked until the designer restores the original viewBox"
|
|
1879
1879
|
);
|
|
1880
1880
|
for (const u of r.elements) {
|
|
1881
|
-
if (
|
|
1882
|
-
let { kind: d, guessed: f } = Ir(u.id,
|
|
1881
|
+
if (Sn(u.id)) continue;
|
|
1882
|
+
let { kind: d, guessed: f } = Ir(u.id, n);
|
|
1883
1883
|
u.interactive && !d && (d = "unit", f = !0);
|
|
1884
1884
|
const p = {
|
|
1885
1885
|
sourceSvgId: u.id,
|
|
@@ -1887,7 +1887,7 @@ function mi(t, e = "floor", n = {}) {
|
|
|
1887
1887
|
guessed: f
|
|
1888
1888
|
};
|
|
1889
1889
|
if (!d)
|
|
1890
|
-
if (i.push(u.id),
|
|
1890
|
+
if (i.push(u.id), n === "floor")
|
|
1891
1891
|
d = "decor", p.kind = "decor", p.message = "No matching prefix; imported as decor (floor mode)";
|
|
1892
1892
|
else {
|
|
1893
1893
|
p.message = "No matching prefix; skipped (outdoor decor stays in SVG)", o.push(p);
|
|
@@ -1897,8 +1897,8 @@ function mi(t, e = "floor", n = {}) {
|
|
|
1897
1897
|
a.push(`Element ${u.id} has no drawable geometry`);
|
|
1898
1898
|
continue;
|
|
1899
1899
|
}
|
|
1900
|
-
if (
|
|
1901
|
-
const x =
|
|
1900
|
+
if (n === "base") {
|
|
1901
|
+
const x = ft(u.id) != null;
|
|
1902
1902
|
if (!(!x && (mr.includes(d) || !!u.interactive))) {
|
|
1903
1903
|
o.push({
|
|
1904
1904
|
...p,
|
|
@@ -1908,7 +1908,7 @@ function mi(t, e = "floor", n = {}) {
|
|
|
1908
1908
|
}
|
|
1909
1909
|
}
|
|
1910
1910
|
f && (c.push(p), p.message = p.message ?? "Guessed kind from interactive/fallback rule"), o.push(p), d === "walkable" && h++, d === "void" && y++, d === "unit" && l++;
|
|
1911
|
-
const b =
|
|
1911
|
+
const b = nr([u.d]), I = Mt(b);
|
|
1912
1912
|
s.push({
|
|
1913
1913
|
key: Cr(u.id),
|
|
1914
1914
|
kind: d,
|
|
@@ -1918,7 +1918,7 @@ function mi(t, e = "floor", n = {}) {
|
|
|
1918
1918
|
style: Rr(u, u.id)
|
|
1919
1919
|
});
|
|
1920
1920
|
}
|
|
1921
|
-
return
|
|
1921
|
+
return n === "floor" && h === 0 && a.push(
|
|
1922
1922
|
"No walkable layer found — auto-skeleton will be unavailable for this level"
|
|
1923
1923
|
), {
|
|
1924
1924
|
report: {
|
|
@@ -1936,9 +1936,9 @@ function mi(t, e = "floor", n = {}) {
|
|
|
1936
1936
|
viewBoxChanged: m
|
|
1937
1937
|
};
|
|
1938
1938
|
}
|
|
1939
|
-
function bi(t,
|
|
1939
|
+
function bi(t, n, e, r = {}) {
|
|
1940
1940
|
const o = r.driftThreshold ?? br, i = new Map(
|
|
1941
|
-
|
|
1941
|
+
n.filter((s) => s.sourceSvgId).map((s) => [s.sourceSvgId, s])
|
|
1942
1942
|
), c = /* @__PURE__ */ new Set(), a = [];
|
|
1943
1943
|
for (const s of t) {
|
|
1944
1944
|
const h = i.get(s.sourceSvgId);
|
|
@@ -1961,7 +1961,7 @@ function bi(t, e, n, r = {}) {
|
|
|
1961
1961
|
else {
|
|
1962
1962
|
let y = "unchanged";
|
|
1963
1963
|
if (h.bbox) {
|
|
1964
|
-
const l = (h.bbox.minX + h.bbox.maxX) / 2, m = (h.bbox.minY + h.bbox.maxY) / 2, u =
|
|
1964
|
+
const l = (h.bbox.minX + h.bbox.maxX) / 2, m = (h.bbox.minY + h.bbox.maxY) / 2, u = er(s.geometry);
|
|
1965
1965
|
Math.hypot(u.x - l, u.y - m) > o && (y = "moved");
|
|
1966
1966
|
}
|
|
1967
1967
|
a.push({
|
|
@@ -1975,7 +1975,7 @@ function bi(t, e, n, r = {}) {
|
|
|
1975
1975
|
});
|
|
1976
1976
|
}
|
|
1977
1977
|
}
|
|
1978
|
-
for (const s of
|
|
1978
|
+
for (const s of n)
|
|
1979
1979
|
s.sourceSvgId && !c.has(s.sourceSvgId) && a.push({
|
|
1980
1980
|
sourceSvgId: s.sourceSvgId,
|
|
1981
1981
|
change: "removed",
|
|
@@ -1986,39 +1986,39 @@ function bi(t, e, n, r = {}) {
|
|
|
1986
1986
|
return {
|
|
1987
1987
|
items: a,
|
|
1988
1988
|
shapes: t,
|
|
1989
|
-
viewbox:
|
|
1989
|
+
viewbox: e
|
|
1990
1990
|
};
|
|
1991
1991
|
}
|
|
1992
1992
|
const N = 1e-6, Lr = 15 * Math.PI / 180, Nr = 1e-3, et = Math.PI * 2;
|
|
1993
|
-
function
|
|
1994
|
-
return Math.abs(t.x -
|
|
1993
|
+
function nn(t, n) {
|
|
1994
|
+
return Math.abs(t.x - n.x) < N && Math.abs(t.y - n.y) < N;
|
|
1995
1995
|
}
|
|
1996
|
-
function Ot(t,
|
|
1997
|
-
return { x: t.x +
|
|
1996
|
+
function Ot(t, n) {
|
|
1997
|
+
return { x: t.x + n.x, y: t.y + n.y };
|
|
1998
1998
|
}
|
|
1999
|
-
function
|
|
2000
|
-
return { x: t.x -
|
|
1999
|
+
function en(t, n) {
|
|
2000
|
+
return { x: t.x - n.x, y: t.y - n.y };
|
|
2001
2001
|
}
|
|
2002
|
-
function
|
|
2003
|
-
return { x: t.x *
|
|
2002
|
+
function rt(t, n) {
|
|
2003
|
+
return { x: t.x * n, y: t.y * n };
|
|
2004
2004
|
}
|
|
2005
|
-
function St(t,
|
|
2005
|
+
function St(t, n, e) {
|
|
2006
2006
|
return {
|
|
2007
|
-
x: t.x + Math.cos(
|
|
2008
|
-
y: t.y + Math.sin(
|
|
2007
|
+
x: t.x + Math.cos(e) * n,
|
|
2008
|
+
y: t.y + Math.sin(e) * n
|
|
2009
2009
|
};
|
|
2010
2010
|
}
|
|
2011
2011
|
function vr(t) {
|
|
2012
|
-
const
|
|
2013
|
-
for (const
|
|
2014
|
-
const r =
|
|
2015
|
-
r &&
|
|
2012
|
+
const n = [];
|
|
2013
|
+
for (const e of t) {
|
|
2014
|
+
const r = n[n.length - 1];
|
|
2015
|
+
r && nn(r, e) || n.push(e);
|
|
2016
2016
|
}
|
|
2017
|
-
return
|
|
2017
|
+
return n.length >= 2 && nn(n[0], n[n.length - 1]) && n.pop(), n;
|
|
2018
2018
|
}
|
|
2019
|
-
function Ii(t,
|
|
2020
|
-
const
|
|
2021
|
-
if (r.length < 3 ||
|
|
2019
|
+
function Ii(t, n) {
|
|
2020
|
+
const e = un(n), r = vr(t);
|
|
2021
|
+
if (r.length < 3 || e <= 0) return t;
|
|
2022
2022
|
const o = r.length, i = new Array(o), c = new Array(o), a = new Array(o), s = new Array(o), h = new Array(o).fill(0), y = new Array(o).fill(0), l = new Array(o).fill(!1);
|
|
2023
2023
|
for (let u = 0; u < o; u++) {
|
|
2024
2024
|
const d = r[(u - 1 + o) % o], f = r[u], p = r[(u + 1) % o], b = v(d, f), I = v(f, p);
|
|
@@ -2026,14 +2026,14 @@ function Ii(t, e) {
|
|
|
2026
2026
|
i[u] = { x: 1, y: 0 }, c[u] = { x: 1, y: 0 }, s[u] = 0;
|
|
2027
2027
|
continue;
|
|
2028
2028
|
}
|
|
2029
|
-
i[u] =
|
|
2029
|
+
i[u] = rt(en(f, d), 1 / b), c[u] = rt(en(p, f), 1 / I);
|
|
2030
2030
|
const x = i[u].x * c[u].y - i[u].y * c[u].x, g = i[u].x * c[u].x + i[u].y * c[u].y;
|
|
2031
2031
|
s[u] = Math.atan2(x, g);
|
|
2032
2032
|
const _ = Math.abs(s[u]);
|
|
2033
2033
|
if (_ < Lr) continue;
|
|
2034
2034
|
const S = Math.PI - _, O = Math.tan(S / 2);
|
|
2035
2035
|
if (O < N || S <= N || S >= Math.PI - N) continue;
|
|
2036
|
-
const A =
|
|
2036
|
+
const A = e / O;
|
|
2037
2037
|
h[u] = A, y[u] = A, l[u] = !0;
|
|
2038
2038
|
}
|
|
2039
2039
|
for (let u = 0; u < o; u++) {
|
|
@@ -2049,7 +2049,7 @@ function Ii(t, e) {
|
|
|
2049
2049
|
m.push({ ...d });
|
|
2050
2050
|
continue;
|
|
2051
2051
|
}
|
|
2052
|
-
const x = Ot(d,
|
|
2052
|
+
const x = Ot(d, rt(i[u], -f)), g = Ot(d, rt(c[u], f)), _ = s[u] > 0 ? 1 : -1, S = Ot(x, {
|
|
2053
2053
|
x: -i[u].y * _ * I,
|
|
2054
2054
|
y: i[u].x * _ * I
|
|
2055
2055
|
}), O = Math.atan2(x.y - S.y, x.x - S.x), A = Math.atan2(g.y - S.y, g.x - S.x), E = (A - O + et) % et, R = (O - A + et) % et, K = St(S, I, O + E / 2), M = St(S, I, O - R / 2), Y = v(K, d) <= v(M, d), L = Y ? E : R, C = Math.max(8, Math.min(28, Math.ceil(L * I / 2)));
|
|
@@ -2060,56 +2060,65 @@ function Ii(t, e) {
|
|
|
2060
2060
|
}
|
|
2061
2061
|
return m;
|
|
2062
2062
|
}
|
|
2063
|
-
function G(t,
|
|
2064
|
-
return { x: t.x + (
|
|
2063
|
+
function G(t, n, e) {
|
|
2064
|
+
return { x: t.x + (n.x - t.x) * e, y: t.y + (n.y - t.y) * e };
|
|
2065
2065
|
}
|
|
2066
|
-
function
|
|
2067
|
-
return { x: t.x +
|
|
2066
|
+
function ot(t, n) {
|
|
2067
|
+
return { x: t.x + n.x, y: t.y + n.y };
|
|
2068
2068
|
}
|
|
2069
|
-
function
|
|
2070
|
-
return { x: t.x -
|
|
2069
|
+
function rn(t, n) {
|
|
2070
|
+
return { x: t.x - n.x, y: t.y - n.y };
|
|
2071
2071
|
}
|
|
2072
|
-
function At(t,
|
|
2073
|
-
return { x: t.x *
|
|
2072
|
+
function At(t, n) {
|
|
2073
|
+
return { x: t.x * n, y: t.y * n };
|
|
2074
2074
|
}
|
|
2075
|
-
function
|
|
2076
|
-
const
|
|
2077
|
-
if (!(
|
|
2078
|
-
const
|
|
2079
|
-
return [
|
|
2080
|
-
c1: { x:
|
|
2075
|
+
function q(t) {
|
|
2076
|
+
const n = t == null ? void 0 : t.curve;
|
|
2077
|
+
if (!(n != null && n.c1) || !(n != null && n.c2)) return null;
|
|
2078
|
+
const e = Number(n.c1.x), r = Number(n.c1.y), o = Number(n.c2.x), i = Number(n.c2.y);
|
|
2079
|
+
return [e, r, o, i].every((c) => Number.isFinite(c)) ? {
|
|
2080
|
+
c1: { x: e, y: r },
|
|
2081
2081
|
c2: { x: o, y: i }
|
|
2082
2082
|
} : null;
|
|
2083
2083
|
}
|
|
2084
|
+
function gi(t) {
|
|
2085
|
+
const n = q(t);
|
|
2086
|
+
return n || ([t == null ? void 0 : t.c1_x, t == null ? void 0 : t.c1_y, t == null ? void 0 : t.c2_x, t == null ? void 0 : t.c2_y].some(
|
|
2087
|
+
(r) => r == null || !Number.isFinite(Number(r))
|
|
2088
|
+
) ? null : {
|
|
2089
|
+
c1: { x: Number(t.c1_x), y: Number(t.c1_y) },
|
|
2090
|
+
c2: { x: Number(t.c2_x), y: Number(t.c2_y) }
|
|
2091
|
+
});
|
|
2092
|
+
}
|
|
2084
2093
|
function Tr(t) {
|
|
2085
2094
|
return {
|
|
2086
2095
|
c1: { x: t.c2.x, y: t.c2.y },
|
|
2087
2096
|
c2: { x: t.c1.x, y: t.c1.y }
|
|
2088
2097
|
};
|
|
2089
2098
|
}
|
|
2090
|
-
function
|
|
2091
|
-
const r = G(t,
|
|
2099
|
+
function _i(t, n, e) {
|
|
2100
|
+
const r = G(t, n, 0.5), o = At(rn(e, r), 4 / 3), i = rn(n, t);
|
|
2092
2101
|
return {
|
|
2093
|
-
c1:
|
|
2094
|
-
c2:
|
|
2102
|
+
c1: ot(ot(t, At(i, 1 / 3)), o),
|
|
2103
|
+
c2: ot(ot(t, At(i, 2 / 3)), o)
|
|
2095
2104
|
};
|
|
2096
2105
|
}
|
|
2097
|
-
function
|
|
2098
|
-
return
|
|
2106
|
+
function ki(t, n, e) {
|
|
2107
|
+
return n === 1 ? { ...t, c1: { x: e.x, y: e.y } } : { ...t, c2: { x: e.x, y: e.y } };
|
|
2099
2108
|
}
|
|
2100
|
-
function
|
|
2101
|
-
const r =
|
|
2109
|
+
function Oi(t, n, e) {
|
|
2110
|
+
const r = q(t);
|
|
2102
2111
|
if (!r) return null;
|
|
2103
|
-
const o = t.fromAnchorId ===
|
|
2112
|
+
const o = t.fromAnchorId === n, i = t.toAnchorId === n;
|
|
2104
2113
|
return !o && !i ? null : {
|
|
2105
|
-
c1: o ? { x: r.c1.x +
|
|
2106
|
-
c2: i ? { x: r.c2.x +
|
|
2114
|
+
c1: o ? { x: r.c1.x + e.x, y: r.c1.y + e.y } : { x: r.c1.x, y: r.c1.y },
|
|
2115
|
+
c2: i ? { x: r.c2.x + e.x, y: r.c2.y + e.y } : { x: r.c2.x, y: r.c2.y }
|
|
2107
2116
|
};
|
|
2108
2117
|
}
|
|
2109
|
-
function
|
|
2110
|
-
const r =
|
|
2118
|
+
function Si(t, n, e) {
|
|
2119
|
+
const r = q(t);
|
|
2111
2120
|
if (!r) return null;
|
|
2112
|
-
const o =
|
|
2121
|
+
const o = n.get(t.fromAnchorId), i = n.get(t.toAnchorId), c = e.get(t.fromAnchorId), a = e.get(t.toAnchorId);
|
|
2113
2122
|
return !o || !i || !c || !a ? r : {
|
|
2114
2123
|
c1: {
|
|
2115
2124
|
x: r.c1.x + c.x - o.x,
|
|
@@ -2121,27 +2130,27 @@ function Oi(t, e, n) {
|
|
|
2121
2130
|
}
|
|
2122
2131
|
};
|
|
2123
2132
|
}
|
|
2124
|
-
function
|
|
2125
|
-
return
|
|
2133
|
+
function Ai(t, n, e) {
|
|
2134
|
+
return e ? `M ${t.x} ${t.y} C ${e.c1.x} ${e.c1.y} ${e.c2.x} ${e.c2.y} ${n.x} ${n.y}` : `M ${t.x} ${t.y} L ${n.x} ${n.y}`;
|
|
2126
2135
|
}
|
|
2127
|
-
function
|
|
2128
|
-
if (!
|
|
2129
|
-
const r =
|
|
2136
|
+
function An(t, n, e) {
|
|
2137
|
+
if (!e) return v(t, n);
|
|
2138
|
+
const r = lt(t, e.c1, e.c2, n, 16);
|
|
2130
2139
|
let o = 0;
|
|
2131
2140
|
for (let i = 1; i < r.length; i += 1)
|
|
2132
2141
|
o += v(r[i - 1], r[i]);
|
|
2133
2142
|
return o;
|
|
2134
2143
|
}
|
|
2135
|
-
function Mr(t,
|
|
2136
|
-
if (!r) return
|
|
2137
|
-
const o =
|
|
2144
|
+
function Mr(t, n, e, r) {
|
|
2145
|
+
if (!r) return at(t, n, e);
|
|
2146
|
+
const o = lt(n, r.c1, r.c2, e, 24), i = Math.max(o.length - 1, 1);
|
|
2138
2147
|
let c = {
|
|
2139
|
-
point: { x:
|
|
2148
|
+
point: { x: n.x, y: n.y },
|
|
2140
2149
|
t: 0,
|
|
2141
|
-
distance: v(t,
|
|
2150
|
+
distance: v(t, n)
|
|
2142
2151
|
};
|
|
2143
2152
|
for (let a = 1; a < o.length; a += 1) {
|
|
2144
|
-
const s =
|
|
2153
|
+
const s = at(t, o[a - 1], o[a]);
|
|
2145
2154
|
s.distance < c.distance && (c = {
|
|
2146
2155
|
point: s.point,
|
|
2147
2156
|
t: (a - 1 + s.t) / i,
|
|
@@ -2150,32 +2159,32 @@ function Mr(t, e, n, r) {
|
|
|
2150
2159
|
}
|
|
2151
2160
|
return c;
|
|
2152
2161
|
}
|
|
2153
|
-
function wr(t,
|
|
2154
|
-
const i = G(t,
|
|
2162
|
+
function wr(t, n, e, r, o) {
|
|
2163
|
+
const i = G(t, n, o), c = G(n, e, o), a = G(e, r, o), s = G(i, c, o), h = G(c, a, o), y = G(s, h, o);
|
|
2155
2164
|
return {
|
|
2156
2165
|
left: { c1: i, c2: s },
|
|
2157
2166
|
right: { c1: h, c2: a },
|
|
2158
2167
|
point: y
|
|
2159
2168
|
};
|
|
2160
2169
|
}
|
|
2161
|
-
function
|
|
2162
|
-
if (!
|
|
2163
|
-
return { point:
|
|
2164
|
-
const o = Mr(r, t,
|
|
2170
|
+
function Ci(t, n, e, r) {
|
|
2171
|
+
if (!e)
|
|
2172
|
+
return { point: at(r, t, n).point, left: null, right: null };
|
|
2173
|
+
const o = Mr(r, t, n, e), i = Math.min(1, Math.max(0, o.t)), c = wr(t, e.c1, e.c2, n, i);
|
|
2165
2174
|
return { point: c.point, left: c.left, right: c.right };
|
|
2166
2175
|
}
|
|
2167
|
-
function Pr(t,
|
|
2168
|
-
const r = t.connectorId ??
|
|
2169
|
-
return r == null ? void 0 :
|
|
2176
|
+
function Pr(t, n, e) {
|
|
2177
|
+
const r = t.connectorId ?? n.connectorId;
|
|
2178
|
+
return r == null ? void 0 : e.get(r);
|
|
2170
2179
|
}
|
|
2171
|
-
function Fr(t,
|
|
2180
|
+
function Fr(t, n, e, r) {
|
|
2172
2181
|
var o;
|
|
2173
|
-
return
|
|
2174
|
-
(o = Pr(
|
|
2182
|
+
return n.levelId === e.levelId ? !0 : t.kind !== "connector" ? !1 : $n(
|
|
2183
|
+
(o = Pr(n, e, r)) == null ? void 0 : o.kind
|
|
2175
2184
|
);
|
|
2176
2185
|
}
|
|
2177
|
-
function Dr(t,
|
|
2178
|
-
const r =
|
|
2186
|
+
function Dr(t, n, e = []) {
|
|
2187
|
+
const r = Rn(), o = new Map(t.map((s) => [s.id, s])), i = new Map(e.map((s) => [s.id, s])), c = t.map((s) => ({
|
|
2179
2188
|
id: s.id,
|
|
2180
2189
|
levelId: s.levelId,
|
|
2181
2190
|
x: s.x,
|
|
@@ -2187,12 +2196,12 @@ function Dr(t, e, n = []) {
|
|
|
2187
2196
|
for (const s of c)
|
|
2188
2197
|
r.addNode(s.id, s);
|
|
2189
2198
|
const a = [];
|
|
2190
|
-
for (const s of
|
|
2199
|
+
for (const s of n) {
|
|
2191
2200
|
const h = o.get(s.fromAnchorId), y = o.get(s.toAnchorId);
|
|
2192
2201
|
if (!h || !y || !Fr(s, h, y, i)) continue;
|
|
2193
|
-
const l =
|
|
2202
|
+
const l = q(s);
|
|
2194
2203
|
let m = s.weight;
|
|
2195
|
-
m == null && (m =
|
|
2204
|
+
m == null && (m = An(h, y, l), h.levelId !== y.levelId && (m += Rt));
|
|
2196
2205
|
let u = s.accessible;
|
|
2197
2206
|
if (s.kind === "connector" && h.connectorId != null) {
|
|
2198
2207
|
const f = i.get(h.connectorId);
|
|
@@ -2212,11 +2221,11 @@ function Dr(t, e, n = []) {
|
|
|
2212
2221
|
}
|
|
2213
2222
|
return { graph: r, nodes: c, edges: a, anchorById: o };
|
|
2214
2223
|
}
|
|
2215
|
-
function Kr(t,
|
|
2224
|
+
function Kr(t, n, e, r = {}) {
|
|
2216
2225
|
const { graph: o, anchorById: i } = t;
|
|
2217
|
-
if (!i.has(
|
|
2226
|
+
if (!i.has(n) || !i.has(e))
|
|
2218
2227
|
return null;
|
|
2219
|
-
const a =
|
|
2228
|
+
const a = En.nba(o, {
|
|
2220
2229
|
oriented: !0,
|
|
2221
2230
|
distance(d, f, p) {
|
|
2222
2231
|
const b = p.data;
|
|
@@ -2228,7 +2237,7 @@ function Kr(t, e, n, r = {}) {
|
|
|
2228
2237
|
let I = v(p, b);
|
|
2229
2238
|
return p.levelId !== b.levelId && (I += Rt), I;
|
|
2230
2239
|
}
|
|
2231
|
-
}).find(
|
|
2240
|
+
}).find(n, e);
|
|
2232
2241
|
if (!a || a.length === 0) return null;
|
|
2233
2242
|
const h = a.reverse().map((d) => d.id), y = [], l = [], m = [];
|
|
2234
2243
|
let u = 0;
|
|
@@ -2236,7 +2245,7 @@ function Kr(t, e, n, r = {}) {
|
|
|
2236
2245
|
const f = i.get(h[d]);
|
|
2237
2246
|
if (y.push({ x: f.x, y: f.y, levelId: f.levelId }), d > 0) {
|
|
2238
2247
|
const p = h[d - 1], b = i.get(p), I = Yr(t, p, h[d]);
|
|
2239
|
-
l.push(I), u +=
|
|
2248
|
+
l.push(I), u += An(b, f, I), b.levelId !== f.levelId && (u += Rt, m.push({
|
|
2240
2249
|
fromLevelId: b.levelId,
|
|
2241
2250
|
toLevelId: f.levelId,
|
|
2242
2251
|
connectorId: f.connectorId ?? b.connectorId
|
|
@@ -2245,49 +2254,49 @@ function Kr(t, e, n, r = {}) {
|
|
|
2245
2254
|
}
|
|
2246
2255
|
return { anchorIds: h, points: y, curves: l, totalWeight: u, levelChanges: m };
|
|
2247
2256
|
}
|
|
2248
|
-
function Yr(t,
|
|
2257
|
+
function Yr(t, n, e) {
|
|
2249
2258
|
const r = t.edges.find(
|
|
2250
|
-
(i) => i.from ===
|
|
2251
|
-
), o =
|
|
2252
|
-
return !o || !r ? null : r.from ===
|
|
2259
|
+
(i) => i.from === n && i.to === e || !i.directed && i.from === e && i.to === n
|
|
2260
|
+
), o = q(r);
|
|
2261
|
+
return !o || !r ? null : r.from === n ? o : Tr(o);
|
|
2253
2262
|
}
|
|
2254
2263
|
function Lt(t) {
|
|
2255
|
-
const
|
|
2264
|
+
const n = /* @__PURE__ */ new Set(), e = [];
|
|
2256
2265
|
for (const r of t)
|
|
2257
|
-
!Number.isFinite(r) ||
|
|
2258
|
-
return
|
|
2266
|
+
!Number.isFinite(r) || n.has(r) || (n.add(r), e.push(r));
|
|
2267
|
+
return e;
|
|
2259
2268
|
}
|
|
2260
|
-
function
|
|
2261
|
-
return t.filter((
|
|
2269
|
+
function Ri(t, n) {
|
|
2270
|
+
return t.filter((e) => e.shapeId === n).map((e) => e.id);
|
|
2262
2271
|
}
|
|
2263
|
-
function
|
|
2264
|
-
const
|
|
2272
|
+
function Ei(t, n) {
|
|
2273
|
+
const e = [];
|
|
2265
2274
|
for (const r of t) {
|
|
2266
2275
|
const o = /* @__PURE__ */ new Set();
|
|
2267
2276
|
for (const i of r.shapes)
|
|
2268
|
-
|
|
2277
|
+
n(i) && o.add(i.id);
|
|
2269
2278
|
if (o.size !== 0)
|
|
2270
2279
|
for (const i of r.anchors)
|
|
2271
|
-
i.shapeId != null && o.has(i.shapeId) &&
|
|
2280
|
+
i.shapeId != null && o.has(i.shapeId) && e.push(i.id);
|
|
2272
2281
|
}
|
|
2273
|
-
return
|
|
2282
|
+
return e;
|
|
2274
2283
|
}
|
|
2275
|
-
function $r(t,
|
|
2276
|
-
const
|
|
2277
|
-
if (!
|
|
2278
|
-
if (
|
|
2279
|
-
const r = t.nodes.filter((o) => o.shapeId ===
|
|
2280
|
-
return r.length > 0 ? r : [
|
|
2284
|
+
function $r(t, n) {
|
|
2285
|
+
const e = t.anchorById.get(n);
|
|
2286
|
+
if (!e) return [];
|
|
2287
|
+
if (e.shapeId == null) return [n];
|
|
2288
|
+
const r = t.nodes.filter((o) => o.shapeId === e.shapeId).map((o) => o.id);
|
|
2289
|
+
return r.length > 0 ? r : [n];
|
|
2281
2290
|
}
|
|
2282
|
-
function
|
|
2283
|
-
const
|
|
2284
|
-
for (const r of Lt(
|
|
2291
|
+
function on(t, n) {
|
|
2292
|
+
const e = /* @__PURE__ */ new Set();
|
|
2293
|
+
for (const r of Lt(n))
|
|
2285
2294
|
for (const o of $r(t, r))
|
|
2286
|
-
|
|
2287
|
-
return [...
|
|
2295
|
+
e.add(o);
|
|
2296
|
+
return [...e];
|
|
2288
2297
|
}
|
|
2289
|
-
function Br(t,
|
|
2290
|
-
const o = Lt(
|
|
2298
|
+
function Br(t, n, e, r = {}) {
|
|
2299
|
+
const o = Lt(n), i = Lt(e);
|
|
2291
2300
|
if (o.length === 0 || i.length === 0) return null;
|
|
2292
2301
|
let c = null;
|
|
2293
2302
|
for (const a of o)
|
|
@@ -2297,36 +2306,36 @@ function Br(t, e, n, r = {}) {
|
|
|
2297
2306
|
}
|
|
2298
2307
|
return c;
|
|
2299
2308
|
}
|
|
2300
|
-
function zr(t,
|
|
2309
|
+
function zr(t, n, e, r = {}) {
|
|
2301
2310
|
return Br(
|
|
2302
2311
|
t,
|
|
2303
|
-
|
|
2304
|
-
|
|
2312
|
+
on(t, n),
|
|
2313
|
+
on(t, e),
|
|
2305
2314
|
r
|
|
2306
2315
|
);
|
|
2307
2316
|
}
|
|
2308
|
-
function
|
|
2317
|
+
function Li(t, n, e, r = {}) {
|
|
2309
2318
|
return zr(
|
|
2310
2319
|
t,
|
|
2311
|
-
[
|
|
2312
|
-
|
|
2320
|
+
[n],
|
|
2321
|
+
e,
|
|
2313
2322
|
r
|
|
2314
2323
|
);
|
|
2315
2324
|
}
|
|
2316
|
-
function
|
|
2317
|
-
const
|
|
2325
|
+
function Ni(t) {
|
|
2326
|
+
const n = Zn(t.theme), e = new Map(
|
|
2318
2327
|
t.assignments.map((s) => [s.shapeId, s])
|
|
2319
2328
|
), r = new Map(
|
|
2320
2329
|
(t.retailers ?? []).map((s) => [s.id, s])
|
|
2321
2330
|
), o = t.resolveSvgUrl ?? ((s) => s), i = t.levels.filter((s) => s.isActive).sort((s, h) => s.ordering - h.ordering).map((s) => {
|
|
2322
2331
|
const h = t.shapes.filter((l) => l.levelId === s.id).map((l) => {
|
|
2323
|
-
const m =
|
|
2332
|
+
const m = gn(l.geometry), u = e.get(l.id) ?? null, d = (u == null ? void 0 : u.retailerId) != null ? r.get(u.retailerId) ?? null : null, f = d && !t.persistMediaKeys ? { ...d, logoKey: null } : d;
|
|
2324
2333
|
return {
|
|
2325
2334
|
...l,
|
|
2326
2335
|
geometry: m,
|
|
2327
2336
|
bbox: m === l.geometry ? l.bbox : Mt(m),
|
|
2328
2337
|
assignment: u,
|
|
2329
|
-
label:
|
|
2338
|
+
label: dn(l, u, f)
|
|
2330
2339
|
};
|
|
2331
2340
|
}), y = t.anchors.filter((l) => l.levelId === s.id);
|
|
2332
2341
|
return {
|
|
@@ -2353,7 +2362,7 @@ function Li(t) {
|
|
|
2353
2362
|
revisionNumber: t.revisionNumber,
|
|
2354
2363
|
centerId: t.centerId,
|
|
2355
2364
|
mapId: t.mapId,
|
|
2356
|
-
theme:
|
|
2365
|
+
theme: n,
|
|
2357
2366
|
baseSvgUrl: t.baseSvgUrl,
|
|
2358
2367
|
baseViewbox: t.baseViewbox,
|
|
2359
2368
|
buildings: t.buildings,
|
|
@@ -2368,24 +2377,24 @@ function Li(t) {
|
|
|
2368
2377
|
publishedAt: t.publishedAt ?? (/* @__PURE__ */ new Date()).toISOString()
|
|
2369
2378
|
};
|
|
2370
2379
|
}
|
|
2371
|
-
function Gr(t,
|
|
2380
|
+
function Gr(t, n) {
|
|
2372
2381
|
return {
|
|
2373
2382
|
id: t.id,
|
|
2374
2383
|
name: t.name,
|
|
2375
2384
|
location: t.location ?? null,
|
|
2376
|
-
logoUrl:
|
|
2377
|
-
logoKey:
|
|
2385
|
+
logoUrl: n ? null : t.logoUrl ?? null,
|
|
2386
|
+
logoKey: n ? t.logoKey ?? null : null,
|
|
2378
2387
|
phone: t.phone ?? null,
|
|
2379
2388
|
description: t.description ?? null,
|
|
2380
2389
|
globalRetailerId: t.globalRetailerId ?? null
|
|
2381
2390
|
};
|
|
2382
2391
|
}
|
|
2383
|
-
function
|
|
2384
|
-
let
|
|
2385
|
-
const
|
|
2392
|
+
function vi(t) {
|
|
2393
|
+
let n = !1;
|
|
2394
|
+
const e = t.levels.map((r) => {
|
|
2386
2395
|
let o = !1;
|
|
2387
2396
|
const i = r.shapes.map((c) => {
|
|
2388
|
-
const a =
|
|
2397
|
+
const a = gn(c.geometry), s = dn(c, c.assignment), h = a !== c.geometry, y = s !== c.label;
|
|
2389
2398
|
return !h && !y ? c : (o = !0, {
|
|
2390
2399
|
...c,
|
|
2391
2400
|
geometry: a,
|
|
@@ -2393,60 +2402,60 @@ function Ni(t) {
|
|
|
2393
2402
|
label: s
|
|
2394
2403
|
});
|
|
2395
2404
|
});
|
|
2396
|
-
return o ? (
|
|
2405
|
+
return o ? (n = !0, { ...r, shapes: i }) : r;
|
|
2397
2406
|
});
|
|
2398
|
-
return
|
|
2407
|
+
return n ? { ...t, levels: e } : t;
|
|
2399
2408
|
}
|
|
2400
|
-
const
|
|
2409
|
+
const Ti = [
|
|
2401
2410
|
"admin_portal",
|
|
2402
2411
|
"desktop",
|
|
2403
2412
|
"tablet",
|
|
2404
2413
|
"mobile",
|
|
2405
2414
|
"display_app"
|
|
2406
|
-
],
|
|
2415
|
+
], Mi = [
|
|
2407
2416
|
{ id: "admin_portal", label: "Admin Portal" },
|
|
2408
2417
|
{ id: "desktop", label: "Desktop" },
|
|
2409
2418
|
{ id: "tablet", label: "Tablet" },
|
|
2410
2419
|
{ id: "mobile", label: "Mobile" },
|
|
2411
2420
|
{ id: "display_app", label: "Kiosk App" }
|
|
2412
2421
|
], Hr = 1024, Xr = 767;
|
|
2413
|
-
function
|
|
2422
|
+
function wi(t) {
|
|
2414
2423
|
return t === "admin_portal" || t === "display_app" || t === "desktop" || t === "tablet" || t === "mobile";
|
|
2415
2424
|
}
|
|
2416
|
-
function
|
|
2417
|
-
return t === "PORTAL_ASSIGN" ? "admin_portal" : t === "DISPLAY_APP" ? "display_app" :
|
|
2425
|
+
function Pi(t, n) {
|
|
2426
|
+
return t === "PORTAL_ASSIGN" ? "admin_portal" : t === "DISPLAY_APP" ? "display_app" : n > Hr ? "desktop" : n > Xr ? "tablet" : "mobile";
|
|
2418
2427
|
}
|
|
2419
|
-
function Ur(t,
|
|
2420
|
-
return `${t ?? "none"}:${
|
|
2428
|
+
function Ur(t, n) {
|
|
2429
|
+
return `${t ?? "none"}:${n}`;
|
|
2421
2430
|
}
|
|
2422
|
-
function
|
|
2423
|
-
return `${
|
|
2431
|
+
function Fi(t, n, e) {
|
|
2432
|
+
return `${e ? "capture" : "viewer"}:${Ur(t, n)}`;
|
|
2424
2433
|
}
|
|
2425
|
-
function
|
|
2434
|
+
function sn(t) {
|
|
2426
2435
|
return t ? t.x === 0 && t.y === 0 && t.z === 0 : !0;
|
|
2427
2436
|
}
|
|
2428
|
-
function
|
|
2429
|
-
var
|
|
2437
|
+
function Cn(t) {
|
|
2438
|
+
var e;
|
|
2430
2439
|
if (!t) return !0;
|
|
2431
|
-
const
|
|
2432
|
-
return typeof
|
|
2440
|
+
const n = (e = t.camera) == null ? void 0 : e.zoom;
|
|
2441
|
+
return typeof n == "number" && Number.isFinite(n) && n > 0 ? !1 : sn(t.camera) && sn(t.controls);
|
|
2433
2442
|
}
|
|
2434
|
-
function
|
|
2435
|
-
if (!(t != null && t.length) ||
|
|
2443
|
+
function Di(t, n, e) {
|
|
2444
|
+
if (!(t != null && t.length) || n == null) return null;
|
|
2436
2445
|
const r = t.find(
|
|
2437
|
-
(o) => o.levelId ===
|
|
2446
|
+
(o) => o.levelId === n && o.device === e
|
|
2438
2447
|
);
|
|
2439
|
-
return !r ||
|
|
2448
|
+
return !r || Cn(r) ? null : r;
|
|
2440
2449
|
}
|
|
2441
|
-
function
|
|
2442
|
-
const
|
|
2450
|
+
function Ki(t) {
|
|
2451
|
+
const n = t.camera.zoom;
|
|
2443
2452
|
return {
|
|
2444
|
-
zoom: typeof
|
|
2453
|
+
zoom: typeof n == "number" && Number.isFinite(n) && n > 0 ? n : 0,
|
|
2445
2454
|
position: [t.camera.x, t.camera.y, t.camera.z],
|
|
2446
2455
|
target: [t.controls.x, t.controls.y, t.controls.z]
|
|
2447
2456
|
};
|
|
2448
2457
|
}
|
|
2449
|
-
function
|
|
2458
|
+
function Yi(t) {
|
|
2450
2459
|
return {
|
|
2451
2460
|
camera: {
|
|
2452
2461
|
x: t.position[0],
|
|
@@ -2467,283 +2476,284 @@ const Vr = {
|
|
|
2467
2476
|
z: 0,
|
|
2468
2477
|
zoom: 0
|
|
2469
2478
|
}, Wr = { x: 0, y: 0, z: 0 };
|
|
2470
|
-
function
|
|
2479
|
+
function $i(t, n) {
|
|
2471
2480
|
return {
|
|
2472
2481
|
levelId: t,
|
|
2473
|
-
device:
|
|
2482
|
+
device: n,
|
|
2474
2483
|
camera: { ...Vr },
|
|
2475
2484
|
controls: { ...Wr }
|
|
2476
2485
|
};
|
|
2477
2486
|
}
|
|
2478
|
-
function Zr(t,
|
|
2479
|
-
const
|
|
2480
|
-
id:
|
|
2481
|
-
mapId:
|
|
2482
|
-
levelId:
|
|
2483
|
-
device:
|
|
2484
|
-
camera:
|
|
2485
|
-
controls:
|
|
2487
|
+
function Zr(t, n) {
|
|
2488
|
+
const e = {
|
|
2489
|
+
id: n.id ?? 0,
|
|
2490
|
+
mapId: n.mapId ?? 0,
|
|
2491
|
+
levelId: n.levelId,
|
|
2492
|
+
device: n.device,
|
|
2493
|
+
camera: n.camera,
|
|
2494
|
+
controls: n.controls
|
|
2486
2495
|
}, r = t.findIndex(
|
|
2487
|
-
(i) => i.levelId ===
|
|
2496
|
+
(i) => i.levelId === n.levelId && i.device === n.device
|
|
2488
2497
|
);
|
|
2489
|
-
if (r < 0) return [...t,
|
|
2498
|
+
if (r < 0) return [...t, e];
|
|
2490
2499
|
const o = t.slice();
|
|
2491
2500
|
return o[r] = {
|
|
2492
2501
|
...t[r],
|
|
2493
|
-
...
|
|
2494
|
-
id:
|
|
2495
|
-
mapId:
|
|
2502
|
+
...e,
|
|
2503
|
+
id: n.id ?? t[r].id,
|
|
2504
|
+
mapId: n.mapId ?? t[r].mapId
|
|
2496
2505
|
}, o;
|
|
2497
2506
|
}
|
|
2498
|
-
function
|
|
2499
|
-
let
|
|
2500
|
-
for (const r of
|
|
2501
|
-
if (
|
|
2502
|
-
|
|
2507
|
+
function Bi(t, n) {
|
|
2508
|
+
let e = t;
|
|
2509
|
+
for (const r of n) {
|
|
2510
|
+
if (Cn(r)) {
|
|
2511
|
+
e = e.filter(
|
|
2503
2512
|
(o) => !(o.levelId === r.levelId && o.device === r.device)
|
|
2504
2513
|
);
|
|
2505
2514
|
continue;
|
|
2506
2515
|
}
|
|
2507
|
-
|
|
2516
|
+
e = Zr(e, r);
|
|
2508
2517
|
}
|
|
2509
|
-
return
|
|
2518
|
+
return e;
|
|
2510
2519
|
}
|
|
2511
2520
|
export {
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2521
|
+
ye as $,
|
|
2522
|
+
re as A,
|
|
2523
|
+
Ge as B,
|
|
2524
|
+
ne as C,
|
|
2525
|
+
dt as D,
|
|
2517
2526
|
Vr as E,
|
|
2518
2527
|
Rt as F,
|
|
2519
2528
|
xi as G,
|
|
2520
2529
|
Lo as H,
|
|
2521
2530
|
Jr as I,
|
|
2522
|
-
|
|
2531
|
+
Ee as J,
|
|
2523
2532
|
lr as K,
|
|
2524
2533
|
lo as L,
|
|
2525
2534
|
$o as M,
|
|
2526
|
-
|
|
2535
|
+
qe as N,
|
|
2527
2536
|
Mo as O,
|
|
2528
|
-
|
|
2537
|
+
lt as P,
|
|
2529
2538
|
Wt as Q,
|
|
2530
2539
|
Hr as R,
|
|
2531
|
-
|
|
2540
|
+
xe as S,
|
|
2532
2541
|
Nt as T,
|
|
2533
|
-
|
|
2542
|
+
se as U,
|
|
2534
2543
|
oo as V,
|
|
2535
|
-
|
|
2536
|
-
|
|
2544
|
+
cn as W,
|
|
2545
|
+
he as X,
|
|
2537
2546
|
T as Y,
|
|
2538
|
-
|
|
2539
|
-
|
|
2547
|
+
fe as Z,
|
|
2548
|
+
hn as _,
|
|
2540
2549
|
so as a,
|
|
2541
|
-
|
|
2550
|
+
le as a$,
|
|
2542
2551
|
Ro as a0,
|
|
2543
2552
|
Io as a1,
|
|
2544
2553
|
Ao as a2,
|
|
2545
2554
|
zt as a3,
|
|
2546
|
-
|
|
2555
|
+
Ve as a4,
|
|
2547
2556
|
di as a5,
|
|
2548
|
-
|
|
2557
|
+
_i as a6,
|
|
2549
2558
|
Bo as a7,
|
|
2550
|
-
|
|
2559
|
+
nr as a8,
|
|
2551
2560
|
Eo as a9,
|
|
2552
2561
|
Kr as aA,
|
|
2553
|
-
|
|
2554
|
-
|
|
2562
|
+
Me as aB,
|
|
2563
|
+
Di as aC,
|
|
2555
2564
|
Br as aD,
|
|
2556
2565
|
zr as aE,
|
|
2557
2566
|
Zo as aF,
|
|
2558
2567
|
fi as aG,
|
|
2559
2568
|
Ko as aH,
|
|
2560
|
-
|
|
2569
|
+
ht as aI,
|
|
2561
2570
|
ri as aJ,
|
|
2562
2571
|
Mt as aK,
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2572
|
+
er as aL,
|
|
2573
|
+
Ae as aM,
|
|
2574
|
+
Ce as aN,
|
|
2575
|
+
ge as aO,
|
|
2567
2576
|
To as aP,
|
|
2568
2577
|
mi as aQ,
|
|
2569
2578
|
ar as aR,
|
|
2570
|
-
|
|
2579
|
+
yn as aS,
|
|
2571
2580
|
ci as aT,
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2581
|
+
ae as aU,
|
|
2582
|
+
wi as aV,
|
|
2583
|
+
Cn as aW,
|
|
2584
|
+
sn as aX,
|
|
2585
|
+
Jn as aY,
|
|
2586
|
+
Qn as aZ,
|
|
2578
2587
|
tr as a_,
|
|
2579
|
-
|
|
2580
|
-
|
|
2588
|
+
fn as aa,
|
|
2589
|
+
We as ab,
|
|
2581
2590
|
ao as ac,
|
|
2582
|
-
|
|
2583
|
-
|
|
2591
|
+
Wn as ad,
|
|
2592
|
+
un as ae,
|
|
2584
2593
|
Ir as af,
|
|
2585
2594
|
yo as ag,
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2595
|
+
ke as ah,
|
|
2596
|
+
no as ai,
|
|
2597
|
+
Ni as aj,
|
|
2589
2598
|
Dr as ak,
|
|
2590
2599
|
Co as al,
|
|
2591
2600
|
Qr as am,
|
|
2592
2601
|
vt as an,
|
|
2593
2602
|
po as ao,
|
|
2594
|
-
|
|
2595
|
-
|
|
2603
|
+
Re as ap,
|
|
2604
|
+
Pi as aq,
|
|
2596
2605
|
bi as ar,
|
|
2597
|
-
|
|
2606
|
+
Si as as,
|
|
2598
2607
|
v as at,
|
|
2599
|
-
|
|
2608
|
+
$i as au,
|
|
2600
2609
|
xo as av,
|
|
2601
2610
|
Ut as aw,
|
|
2602
|
-
|
|
2611
|
+
on as ax,
|
|
2603
2612
|
Ii as ay,
|
|
2604
|
-
|
|
2605
|
-
|
|
2613
|
+
Li as az,
|
|
2614
|
+
te as b,
|
|
2606
2615
|
ai as b$,
|
|
2607
2616
|
ur as b0,
|
|
2608
|
-
|
|
2609
|
-
|
|
2617
|
+
kn as b1,
|
|
2618
|
+
Sn as b2,
|
|
2610
2619
|
Xo as b3,
|
|
2611
2620
|
wt as b4,
|
|
2612
2621
|
V as b5,
|
|
2613
|
-
|
|
2622
|
+
_n as b6,
|
|
2614
2623
|
Jt as b7,
|
|
2615
2624
|
Qt as b8,
|
|
2616
2625
|
No as b9,
|
|
2617
2626
|
to as bA,
|
|
2618
2627
|
ro as bB,
|
|
2619
|
-
|
|
2628
|
+
Ki as bC,
|
|
2620
2629
|
Kt as bD,
|
|
2621
2630
|
ko as bE,
|
|
2622
2631
|
mo as bF,
|
|
2623
2632
|
Ar as bG,
|
|
2624
2633
|
qt as bH,
|
|
2625
2634
|
rr as bI,
|
|
2626
|
-
|
|
2627
|
-
|
|
2635
|
+
In as bJ,
|
|
2636
|
+
Ze as bK,
|
|
2628
2637
|
hi as bL,
|
|
2629
2638
|
Ht as bM,
|
|
2630
2639
|
Gt as bN,
|
|
2631
|
-
|
|
2632
|
-
|
|
2640
|
+
_e as bO,
|
|
2641
|
+
Yi as bP,
|
|
2633
2642
|
Mr as bQ,
|
|
2634
|
-
|
|
2635
|
-
|
|
2643
|
+
at as bR,
|
|
2644
|
+
dn as bS,
|
|
2636
2645
|
Zt as bT,
|
|
2637
2646
|
ui as bU,
|
|
2638
|
-
|
|
2639
|
-
|
|
2647
|
+
ft as bV,
|
|
2648
|
+
ut as bW,
|
|
2640
2649
|
$t as bX,
|
|
2641
2650
|
_o as bY,
|
|
2642
2651
|
go as bZ,
|
|
2643
|
-
|
|
2644
|
-
|
|
2652
|
+
Xe as b_,
|
|
2653
|
+
On as ba,
|
|
2645
2654
|
W as bb,
|
|
2646
2655
|
Tt as bc,
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2656
|
+
$n as bd,
|
|
2657
|
+
Te as be,
|
|
2658
|
+
me as bf,
|
|
2650
2659
|
So as bg,
|
|
2651
2660
|
fo as bh,
|
|
2652
2661
|
ho as bi,
|
|
2653
|
-
|
|
2662
|
+
be as bj,
|
|
2654
2663
|
Go as bk,
|
|
2655
|
-
|
|
2664
|
+
Ei as bl,
|
|
2656
2665
|
co as bm,
|
|
2657
2666
|
gt as bn,
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2667
|
+
Bi as bo,
|
|
2668
|
+
Zn as bp,
|
|
2669
|
+
ki as bq,
|
|
2661
2670
|
j as br,
|
|
2662
2671
|
yi as bs,
|
|
2663
2672
|
Fo as bt,
|
|
2664
|
-
|
|
2673
|
+
gn as bu,
|
|
2665
2674
|
uo as bv,
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2675
|
+
yt as bw,
|
|
2676
|
+
ln as bx,
|
|
2677
|
+
vi as by,
|
|
2669
2678
|
oi as bz,
|
|
2670
2679
|
U as c,
|
|
2671
2680
|
Ur as c0,
|
|
2672
|
-
|
|
2681
|
+
Fi as c1,
|
|
2673
2682
|
bo as c2,
|
|
2674
|
-
|
|
2683
|
+
Se as c3,
|
|
2675
2684
|
Tr as c4,
|
|
2676
|
-
|
|
2685
|
+
Ie as c5,
|
|
2677
2686
|
Yt as c6,
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2687
|
+
gi as c7,
|
|
2688
|
+
q as c8,
|
|
2689
|
+
An as c9,
|
|
2690
|
+
$e as cA,
|
|
2691
|
+
Wo as cB,
|
|
2692
|
+
Do as cC,
|
|
2693
|
+
Oe as cD,
|
|
2694
|
+
ve as cE,
|
|
2695
|
+
jo as cF,
|
|
2696
|
+
ze as cG,
|
|
2697
|
+
li as cH,
|
|
2698
|
+
ii as cI,
|
|
2699
|
+
si as cJ,
|
|
2700
|
+
Vo as cK,
|
|
2701
|
+
Ye as cL,
|
|
2702
|
+
vo as cM,
|
|
2703
|
+
qo as cN,
|
|
2704
|
+
Qo as cO,
|
|
2705
|
+
Fe as cP,
|
|
2706
|
+
ni as cQ,
|
|
2707
|
+
Jo as cR,
|
|
2708
|
+
ei as cS,
|
|
2709
|
+
ti as cT,
|
|
2710
|
+
Ai as ca,
|
|
2711
|
+
Le as cb,
|
|
2712
|
+
Ri as cc,
|
|
2713
|
+
Oi as cd,
|
|
2714
|
+
Ue as ce,
|
|
2715
|
+
Yo as cf,
|
|
2716
|
+
$r as cg,
|
|
2717
|
+
pi as ch,
|
|
2718
|
+
eo as ci,
|
|
2719
|
+
Ci as cj,
|
|
2720
|
+
He as ck,
|
|
2721
|
+
Fn as cl,
|
|
2722
|
+
X as cm,
|
|
2723
|
+
Pn as cn,
|
|
2724
|
+
Yn as co,
|
|
2725
|
+
bn as cp,
|
|
2726
|
+
yr as cq,
|
|
2727
|
+
zo as cr,
|
|
2728
|
+
Lt as cs,
|
|
2729
|
+
vr as ct,
|
|
2730
|
+
Zr as cu,
|
|
2731
|
+
Xt as cv,
|
|
2732
|
+
Ho as cw,
|
|
2733
|
+
Uo as cx,
|
|
2734
|
+
pn as cy,
|
|
2735
|
+
xn as cz,
|
|
2726
2736
|
io as d,
|
|
2727
|
-
|
|
2737
|
+
Pe as e,
|
|
2728
2738
|
Wr as f,
|
|
2729
|
-
|
|
2739
|
+
ct as g,
|
|
2730
2740
|
Et as h,
|
|
2731
2741
|
br as i,
|
|
2732
2742
|
mr as j,
|
|
2733
|
-
|
|
2734
|
-
|
|
2743
|
+
jn as k,
|
|
2744
|
+
qn as l,
|
|
2735
2745
|
Po as m,
|
|
2736
2746
|
wo as n,
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2747
|
+
wn as o,
|
|
2748
|
+
Ti as p,
|
|
2749
|
+
Mi as q,
|
|
2740
2750
|
Xr as r,
|
|
2741
|
-
|
|
2742
|
-
|
|
2751
|
+
ee as s,
|
|
2752
|
+
mn as t,
|
|
2743
2753
|
xt as u,
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2754
|
+
Tn as v,
|
|
2755
|
+
an as w,
|
|
2756
|
+
Mn as x,
|
|
2747
2757
|
Fr as y,
|
|
2748
2758
|
Oo as z
|
|
2749
2759
|
};
|