@eyeon/map 2.0.39 → 2.0.43
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/MapViewer.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/chunks/MapViewer.js +3317 -2824
- package/dist/chunks/MapViewer.js.map +1 -1
- package/dist/chunks/responsive.js +1903 -1685
- package/dist/chunks/responsive.js.map +1 -1
- package/dist/chunks/wheelZoom.js +37 -37
- package/dist/core/hostChrome.d.ts +7 -4
- package/dist/core/hostChrome.d.ts.map +1 -1
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +254 -239
- package/dist/core/routing/pathfinding.d.ts +7 -1
- package/dist/core/routing/pathfinding.d.ts.map +1 -1
- package/dist/core/types.d.ts +7 -0
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/verticalTransport.d.ts +37 -0
- package/dist/core/verticalTransport.d.ts.map +1 -0
- package/dist/core/websiteModal.d.ts +95 -7
- package/dist/core/websiteModal.d.ts.map +1 -1
- package/dist/editor/MapEditor.d.ts.map +1 -1
- package/dist/editor/connectorAssignments.d.ts +42 -5
- package/dist/editor/connectorAssignments.d.ts.map +1 -1
- package/dist/editor/index.css +703 -150
- package/dist/editor/index.js +4544 -4239
- package/dist/editor/index.js.map +1 -1
- package/dist/editor/labels.d.ts +21 -5
- package/dist/editor/labels.d.ts.map +1 -1
- package/dist/editor/panels/ConnectorAssign.d.ts +3 -1
- package/dist/editor/panels/ConnectorAssign.d.ts.map +1 -1
- package/dist/editor/panels/FloorsPanel.d.ts.map +1 -1
- package/dist/editor/panels/Inspector.d.ts +8 -3
- package/dist/editor/panels/Inspector.d.ts.map +1 -1
- package/dist/editor/panels/LeftRail.d.ts.map +1 -1
- package/dist/viewer/MapViewer.d.ts +7 -0
- package/dist/viewer/MapViewer.d.ts.map +1 -1
- package/dist/viewer/camera.d.ts +21 -0
- package/dist/viewer/camera.d.ts.map +1 -1
- package/dist/viewer/components/CameraRig.d.ts +6 -1
- package/dist/viewer/components/CameraRig.d.ts.map +1 -1
- package/dist/viewer/components/MapScene.d.ts +3 -1
- package/dist/viewer/components/MapScene.d.ts.map +1 -1
- package/dist/viewer/index.css +599 -150
- package/dist/viewer/index.js +1 -1
- package/dist/viewer/ui/MapControls.d.ts.map +1 -1
- package/dist/viewer/ui/WebsiteSidebar.d.ts +50 -0
- package/dist/viewer/ui/WebsiteSidebar.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/viewer/ui/WebsiteInfoModal.d.ts +0 -11
- package/dist/viewer/ui/WebsiteInfoModal.d.ts.map +0 -1
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
const Lt = "transparent",
|
|
1
|
+
import Ee from "ngraph.graph";
|
|
2
|
+
import Le from "ngraph.path";
|
|
3
|
+
const Lt = "transparent", Dt = "#94a3b8", Ne = 0.28, Kt = 32, Te = 48, mt = 56;
|
|
4
4
|
function W(t) {
|
|
5
|
-
const
|
|
6
|
-
return
|
|
5
|
+
const e = (t ?? "").trim().toLowerCase();
|
|
6
|
+
return e === Lt || e === "none";
|
|
7
7
|
}
|
|
8
|
-
function
|
|
9
|
-
const
|
|
10
|
-
if (
|
|
8
|
+
function Yt(t) {
|
|
9
|
+
const e = t.replace("#", "").trim();
|
|
10
|
+
if (e.length === 3) {
|
|
11
11
|
const i = [
|
|
12
|
-
parseInt(
|
|
13
|
-
parseInt(
|
|
14
|
-
parseInt(
|
|
12
|
+
parseInt(e[0] + e[0], 16),
|
|
13
|
+
parseInt(e[1] + e[1], 16),
|
|
14
|
+
parseInt(e[2] + e[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 (e.length !== 6) return null;
|
|
19
|
+
const n = parseInt(e.slice(0, 2), 16), r = parseInt(e.slice(2, 4), 16), o = parseInt(e.slice(4, 6), 16);
|
|
20
|
+
return [n, r, o].some((i) => Number.isNaN(i)) ? null : [n, r, o];
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function $t(t, e, n) {
|
|
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(e)}${r(n)}`;
|
|
25
25
|
}
|
|
26
|
-
function
|
|
27
|
-
const
|
|
28
|
-
return r ?
|
|
26
|
+
function lo(t, e = Dt) {
|
|
27
|
+
const n = W(t) ? e : t, r = Yt(n) ?? Yt(e);
|
|
28
|
+
return r ? Me(r) : Dt;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
const r = Math.max(t,
|
|
32
|
-
if (r <
|
|
33
|
-
return
|
|
34
|
-
let o = 1 -
|
|
35
|
-
return r - Math.max(i, c, a) <
|
|
30
|
+
function Me([t, e, n]) {
|
|
31
|
+
const r = Math.max(t, e, n);
|
|
32
|
+
if (r < Te)
|
|
33
|
+
return $t(t + mt, e + mt, n + mt);
|
|
34
|
+
let o = 1 - Ne, i = t * o, c = e * o, a = n * o;
|
|
35
|
+
return r - Math.max(i, c, a) < Kt && (o = (r - Kt) / r, i = t * o, c = e * o, a = n * o), $t(i, c, a);
|
|
36
36
|
}
|
|
37
|
-
const
|
|
37
|
+
const ce = "#E9F7FC", we = [
|
|
38
38
|
"green-area",
|
|
39
39
|
"water-area",
|
|
40
40
|
"parking-lane",
|
|
41
41
|
"parking-icon",
|
|
42
42
|
"walking-path"
|
|
43
|
-
],
|
|
43
|
+
], Pe = {
|
|
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
|
+
}, Fe = 2, ae = {
|
|
50
50
|
"green-area": {
|
|
51
51
|
fill: "#C4DDAB",
|
|
52
52
|
// Same band as other artwork. Parking lanes are pulled under green areas
|
|
@@ -70,69 +70,69 @@ const cn = "#E9F7FC", Tn = [
|
|
|
70
70
|
extrudeHeight: 1
|
|
71
71
|
},
|
|
72
72
|
"walking-path": {
|
|
73
|
-
fill:
|
|
73
|
+
fill: ce,
|
|
74
74
|
renderOrder: 2,
|
|
75
75
|
extrudeHeight: 1
|
|
76
76
|
}
|
|
77
77
|
};
|
|
78
|
-
function
|
|
79
|
-
const
|
|
80
|
-
return
|
|
78
|
+
function U(t) {
|
|
79
|
+
const e = ae[t];
|
|
80
|
+
return e.fill ?? e.stroke ?? "";
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function De() {
|
|
83
83
|
return {
|
|
84
|
-
GREEN_AREA_COLOR:
|
|
85
|
-
WATER_COLOR:
|
|
86
|
-
PARKING_LANE_COLOR:
|
|
87
|
-
PARKING_ICON_COLOR:
|
|
88
|
-
WALKABLE_COLOR:
|
|
84
|
+
GREEN_AREA_COLOR: U("green-area"),
|
|
85
|
+
WATER_COLOR: U("water-area"),
|
|
86
|
+
PARKING_LANE_COLOR: U("parking-lane"),
|
|
87
|
+
PARKING_ICON_COLOR: U("parking-icon"),
|
|
88
|
+
WALKABLE_COLOR: U("walking-path")
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
91
|
const pt = {
|
|
92
92
|
amenity: "#444444",
|
|
93
93
|
kiosk: "#444444",
|
|
94
94
|
connector: "#0763b1"
|
|
95
|
-
},
|
|
95
|
+
}, uo = {
|
|
96
96
|
amenity: "AMENITY_ICON_COLOR",
|
|
97
97
|
kiosk: "KIOSK_ICON_COLOR",
|
|
98
98
|
connector: "CONNECTOR_ICON_COLOR"
|
|
99
99
|
};
|
|
100
|
-
function
|
|
100
|
+
function Ke() {
|
|
101
101
|
return {
|
|
102
102
|
AMENITY_ICON_COLOR: pt.amenity,
|
|
103
103
|
KIOSK_ICON_COLOR: pt.kiosk,
|
|
104
104
|
CONNECTOR_ICON_COLOR: pt.connector
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function le(t) {
|
|
108
108
|
return t.toLowerCase().replace(/[-_]+/g, " ").replace(/\s+/g, " ").trim();
|
|
109
109
|
}
|
|
110
|
-
function
|
|
111
|
-
const
|
|
112
|
-
return !!(t ===
|
|
110
|
+
function Ye(t, e) {
|
|
111
|
+
const n = le(e);
|
|
112
|
+
return !!(t === n || t.startsWith(`${n} `) || t === `${n}s` || t.startsWith(`${n}s `));
|
|
113
113
|
}
|
|
114
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 e = le(t);
|
|
117
|
+
if (!e) return null;
|
|
118
|
+
const n = [...we].sort((r, o) => o.length - r.length);
|
|
119
|
+
for (const r of n)
|
|
120
|
+
if (Ye(e, r)) return r;
|
|
121
121
|
return null;
|
|
122
122
|
}
|
|
123
|
-
function
|
|
124
|
-
const r =
|
|
123
|
+
function $e(t, e, n) {
|
|
124
|
+
const r = Pe[e];
|
|
125
125
|
if (!r) return t;
|
|
126
|
-
const o =
|
|
126
|
+
const o = n == null ? void 0 : n[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 ft(t,
|
|
130
|
-
const
|
|
131
|
-
return
|
|
129
|
+
function ft(t, e) {
|
|
130
|
+
const n = ut(t);
|
|
131
|
+
return n ? $e(ae[n], n, e) : null;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
var
|
|
135
|
-
return ((
|
|
133
|
+
function fo(t) {
|
|
134
|
+
var e;
|
|
135
|
+
return ((e = ft(t)) == null ? void 0 : e.renderOrder) ?? Fe;
|
|
136
136
|
}
|
|
137
137
|
function it(t) {
|
|
138
138
|
return ut(t) === "parking-lane";
|
|
@@ -140,51 +140,51 @@ function it(t) {
|
|
|
140
140
|
function st(t) {
|
|
141
141
|
return ut(t) === "parking-icon";
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function Rt(t) {
|
|
144
144
|
return ut(t) === "green-area";
|
|
145
145
|
}
|
|
146
|
-
function
|
|
147
|
-
const
|
|
148
|
-
if (
|
|
149
|
-
const o = it(t.layerName), i = it(
|
|
150
|
-
return o && a ? -1 : c && i ? 1 : t.index -
|
|
146
|
+
function ho(t, e) {
|
|
147
|
+
const n = st(t.layerName), r = st(e.layerName);
|
|
148
|
+
if (n !== r) return n ? 1 : -1;
|
|
149
|
+
const o = it(t.layerName), i = it(e.layerName), c = Rt(t.layerName), a = Rt(e.layerName);
|
|
150
|
+
return o && a ? -1 : c && i ? 1 : t.index - e.index;
|
|
151
151
|
}
|
|
152
|
-
function
|
|
153
|
-
const
|
|
152
|
+
function yo(t, e) {
|
|
153
|
+
const n = t.map((s, f) => ({
|
|
154
154
|
item: s,
|
|
155
|
-
index:
|
|
156
|
-
layerName:
|
|
157
|
-
})), r =
|
|
155
|
+
index: f,
|
|
156
|
+
layerName: e(s)
|
|
157
|
+
})), r = n.filter((s) => st(s.layerName)), o = n.filter((s) => it(s.layerName)), i = n.filter(
|
|
158
158
|
(s) => !st(s.layerName) && !it(s.layerName)
|
|
159
|
-
), c = i.findIndex((s) =>
|
|
159
|
+
), c = i.findIndex((s) => Rt(s.layerName));
|
|
160
160
|
return [...c >= 0 ? [
|
|
161
161
|
...i.slice(0, c),
|
|
162
162
|
...o,
|
|
163
163
|
...i.slice(c)
|
|
164
|
-
] : [...i, ...o].sort((s,
|
|
164
|
+
] : [...i, ...o].sort((s, f) => s.index - f.index), ...r].map((s) => s.item);
|
|
165
165
|
}
|
|
166
|
-
function
|
|
167
|
-
const
|
|
166
|
+
function Be(t, e) {
|
|
167
|
+
const n = (e == null ? void 0 : e.omitStaticLayers) === !0, r = /* @__PURE__ */ new Set();
|
|
168
168
|
for (const o of t) {
|
|
169
169
|
const i = o.sourceSvgId;
|
|
170
|
-
i && (
|
|
170
|
+
i && (n && ft(i) || r.add(i));
|
|
171
171
|
}
|
|
172
172
|
return r;
|
|
173
173
|
}
|
|
174
|
-
function
|
|
175
|
-
return
|
|
176
|
-
t.flatMap((
|
|
174
|
+
function mo(t) {
|
|
175
|
+
return Be(
|
|
176
|
+
t.flatMap((e) => [...e.shapes]),
|
|
177
177
|
{ omitStaticLayers: !0 }
|
|
178
178
|
);
|
|
179
179
|
}
|
|
180
|
-
const
|
|
181
|
-
function
|
|
180
|
+
const po = ["escalator", "elevator"];
|
|
181
|
+
function Ge(t) {
|
|
182
182
|
return t === "escalator" || t === "elevator";
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function ze(t) {
|
|
185
185
|
return t === "google" ? "google" : "transparent";
|
|
186
186
|
}
|
|
187
|
-
const
|
|
187
|
+
const V = {
|
|
188
188
|
MAP_STYLE: "2D",
|
|
189
189
|
SURROUNDINGS: "transparent",
|
|
190
190
|
MAP_BACKGROUND_COLOR: "#FFFFFF",
|
|
@@ -203,26 +203,26 @@ const U = {
|
|
|
203
203
|
OVERLAY_COLOR: "#000000",
|
|
204
204
|
OVERLAY_OPACITY: 0.15,
|
|
205
205
|
PARKING_ZONE_COLOR: "#cbd5e1",
|
|
206
|
-
...
|
|
207
|
-
...
|
|
206
|
+
...De(),
|
|
207
|
+
...Ke(),
|
|
208
208
|
KIOSK_SIZE: 12,
|
|
209
209
|
ZOOM_STEP: 0.5,
|
|
210
210
|
CAMERA_MAX_DISTANCE: 2e3,
|
|
211
211
|
CAMERA_MIN_DISTANCE: 50
|
|
212
|
-
},
|
|
213
|
-
function
|
|
214
|
-
const
|
|
215
|
-
return !Number.isFinite(
|
|
212
|
+
}, Xe = "#f5f5f5", He = /* @__PURE__ */ new Set(["#f8fafc", "#f1efea"]), Ue = "#86efac", Ve = "#7dd3fc", We = "#e2e8f0", Ze = 500, je = 100;
|
|
213
|
+
function ue(t) {
|
|
214
|
+
const e = typeof t == "number" ? t : Number(t);
|
|
215
|
+
return !Number.isFinite(e) || e <= 0 ? 0 : Math.min(e, Ze);
|
|
216
216
|
}
|
|
217
|
-
function
|
|
218
|
-
const
|
|
219
|
-
return !Number.isFinite(
|
|
217
|
+
function qe(t) {
|
|
218
|
+
const e = typeof t == "number" ? t : Number(t);
|
|
219
|
+
return !Number.isFinite(e) || e <= 0 ? V.ROUTE_THICKNESS : Math.min(e, je);
|
|
220
220
|
}
|
|
221
|
-
function
|
|
222
|
-
const
|
|
223
|
-
return
|
|
221
|
+
function Qe(...t) {
|
|
222
|
+
const e = Object.assign({}, V, ...t.filter(Boolean));
|
|
223
|
+
return e.SURROUNDINGS = ze(e.SURROUNDINGS), e.MAP_BACKGROUND_COLOR.toLowerCase() === Xe && (e.MAP_BACKGROUND_COLOR = V.MAP_BACKGROUND_COLOR), He.has(e.WALKABLE_COLOR.toLowerCase()) && (e.WALKABLE_COLOR = ce), e.GREEN_AREA_COLOR.toLowerCase() === Ue && (e.GREEN_AREA_COLOR = V.GREEN_AREA_COLOR), e.WATER_COLOR.toLowerCase() === Ve && (e.WATER_COLOR = V.WATER_COLOR), e.STORE_DEFAULT_COLOR.toLowerCase() === We && (e.STORE_DEFAULT_COLOR = V.STORE_DEFAULT_COLOR), e.STORE_RADIUS = ue(e.STORE_RADIUS), e.ROUTE_THICKNESS = qe(e.ROUTE_THICKNESS), e;
|
|
224
224
|
}
|
|
225
|
-
const
|
|
225
|
+
const Je = [
|
|
226
226
|
"unit",
|
|
227
227
|
"amenity",
|
|
228
228
|
"kiosk_screen",
|
|
@@ -230,82 +230,82 @@ const Qn = [
|
|
|
230
230
|
"entrance",
|
|
231
231
|
"parking_zone",
|
|
232
232
|
"custom"
|
|
233
|
-
],
|
|
233
|
+
], Ct = 1e4, xo = 2.5, tn = {
|
|
234
234
|
lat: 39.8283,
|
|
235
235
|
lng: -98.5795,
|
|
236
236
|
zoom: 4,
|
|
237
237
|
heading: 0
|
|
238
238
|
};
|
|
239
|
-
function
|
|
239
|
+
function en(t) {
|
|
240
240
|
if (!t || typeof t != "object") return null;
|
|
241
|
-
const
|
|
242
|
-
if (![
|
|
243
|
-
const c = (i % 360 + 360) % 360, a = Number(
|
|
241
|
+
const e = t, n = Number(e.lat), r = Number(e.lng), o = Number(e.zoom), i = Number(e.heading);
|
|
242
|
+
if (![n, r, o, i].every((l) => Number.isFinite(l)) || n < -90 || n > 90 || r < -180 || r > 180 || o < 1 || o > 21) return null;
|
|
243
|
+
const c = (i % 360 + 360) % 360, a = Number(e.anchorZoom), s = Number(e.anchorX), f = Number(e.anchorY), y = Number.isFinite(a) && a > 0 ? {
|
|
244
244
|
anchorZoom: Math.round(a * 1e3) / 1e3,
|
|
245
245
|
anchorX: Number.isFinite(s) ? s : 0,
|
|
246
|
-
anchorY: Number.isFinite(
|
|
246
|
+
anchorY: Number.isFinite(f) ? f : 0
|
|
247
247
|
} : {};
|
|
248
248
|
return {
|
|
249
|
-
lat:
|
|
249
|
+
lat: n,
|
|
250
250
|
lng: r,
|
|
251
251
|
zoom: Math.round(o * 100) / 100,
|
|
252
252
|
heading: Math.round(c * 10) / 10,
|
|
253
253
|
...y
|
|
254
254
|
};
|
|
255
255
|
}
|
|
256
|
-
function
|
|
257
|
-
return Math.abs(t.lat -
|
|
256
|
+
function fe(t, e) {
|
|
257
|
+
return Math.abs(t.lat - e.lat) < 2e-5 && Math.abs(t.lng - e.lng) < 2e-5 && Math.abs(t.zoom - e.zoom) < 1e-3 && Math.abs(t.heading - e.heading) < 0.05;
|
|
258
258
|
}
|
|
259
|
-
function
|
|
260
|
-
const
|
|
261
|
-
return
|
|
259
|
+
function nn(t, e) {
|
|
260
|
+
const n = t.anchorZoom != null && t.anchorZoom > 0, r = e.anchorZoom != null && e.anchorZoom > 0;
|
|
261
|
+
return n !== r ? !1 : !n || !r || t.anchorZoom == null || e.anchorZoom == null ? !0 : Math.abs(t.anchorZoom - e.anchorZoom) < 1e-3 && Math.abs((t.anchorX ?? 0) - (e.anchorX ?? 0)) < 0.05 && Math.abs((t.anchorY ?? 0) - (e.anchorY ?? 0)) < 0.05;
|
|
262
262
|
}
|
|
263
|
-
function
|
|
264
|
-
return
|
|
263
|
+
function bo(t, e) {
|
|
264
|
+
return fe(t, e) && nn(t, e);
|
|
265
265
|
}
|
|
266
|
-
function
|
|
267
|
-
return
|
|
266
|
+
function Io(t) {
|
|
267
|
+
return fe(t, tn);
|
|
268
268
|
}
|
|
269
|
-
const ct = "entrance",
|
|
270
|
-
function
|
|
269
|
+
const ct = "entrance", go = 24, rn = 8;
|
|
270
|
+
function on(t) {
|
|
271
271
|
var o;
|
|
272
272
|
if (!t) return !1;
|
|
273
|
-
const
|
|
274
|
-
return
|
|
273
|
+
const e = t.trim();
|
|
274
|
+
return e ? e === ct ? !0 : ((o = (e.split(/[?#]/, 1)[0] ?? e).split("/").filter(Boolean).pop()) == null ? void 0 : o.toLowerCase()) === ct : !1;
|
|
275
275
|
}
|
|
276
|
-
function
|
|
277
|
-
var
|
|
278
|
-
return t.kind !== "entrance" ? !1 :
|
|
276
|
+
function sn(t) {
|
|
277
|
+
var e;
|
|
278
|
+
return t.kind !== "entrance" ? !1 : on((e = t.label) == null ? void 0 : e.imageKey) ? !0 : t.origin === "manual" && !t.sourceSvgId;
|
|
279
279
|
}
|
|
280
|
-
function
|
|
281
|
-
var
|
|
282
|
-
return !
|
|
280
|
+
function de(t) {
|
|
281
|
+
var e;
|
|
282
|
+
return !sn(t) || ((e = t.label) == null ? void 0 : e.imageKey) === ct ? t.label : {
|
|
283
283
|
...t.label ?? {},
|
|
284
284
|
imageKey: ct
|
|
285
285
|
};
|
|
286
286
|
}
|
|
287
|
-
function
|
|
288
|
-
const r =
|
|
289
|
-
return
|
|
290
|
-
...
|
|
291
|
-
kind:
|
|
287
|
+
function _o(t, e, n) {
|
|
288
|
+
const r = e != null ? { ...t, ...e } : { ...t ?? {} };
|
|
289
|
+
return de({
|
|
290
|
+
...n,
|
|
291
|
+
kind: n.kind ?? "unit",
|
|
292
292
|
label: r
|
|
293
293
|
}) ?? r;
|
|
294
294
|
}
|
|
295
|
-
function
|
|
296
|
-
return Math.max(
|
|
295
|
+
function Oo(t) {
|
|
296
|
+
return Math.max(rn, t);
|
|
297
297
|
}
|
|
298
|
-
const
|
|
299
|
-
function
|
|
300
|
-
return t === "left" || t === "right" ? t :
|
|
298
|
+
const ko = ["left", "center", "right"], cn = "center";
|
|
299
|
+
function Ao(t) {
|
|
300
|
+
return t === "left" || t === "right" ? t : cn;
|
|
301
301
|
}
|
|
302
|
-
function
|
|
303
|
-
return
|
|
302
|
+
function So(t, e) {
|
|
303
|
+
return e === "left" ? t.minX : e === "right" ? t.maxX : (t.minX + t.maxX) / 2;
|
|
304
304
|
}
|
|
305
|
-
function
|
|
305
|
+
function Ro(t) {
|
|
306
306
|
return t === "left" ? "start" : t === "right" ? "end" : "middle";
|
|
307
307
|
}
|
|
308
|
-
const dt = 12,
|
|
308
|
+
const dt = 12, an = dt, ln = 4, un = [
|
|
309
309
|
"retail_name",
|
|
310
310
|
"retail_logo",
|
|
311
311
|
"retail_text",
|
|
@@ -314,58 +314,58 @@ const dt = 12, se = dt, ce = 4, ae = [
|
|
|
314
314
|
"connector",
|
|
315
315
|
"custom_text",
|
|
316
316
|
"custom_image"
|
|
317
|
-
],
|
|
318
|
-
function Z(t,
|
|
319
|
-
const
|
|
320
|
-
return Number.isFinite(
|
|
317
|
+
], fn = new Set(un);
|
|
318
|
+
function Z(t, e) {
|
|
319
|
+
const n = typeof t == "number" ? t : Number(t);
|
|
320
|
+
return Number.isFinite(n) ? n : e;
|
|
321
321
|
}
|
|
322
|
-
const
|
|
323
|
-
function
|
|
324
|
-
const
|
|
325
|
-
if (
|
|
322
|
+
const dn = /^(?:|[+\-]|[+\-]?\.(?:0*)?)$/;
|
|
323
|
+
function hn(t) {
|
|
324
|
+
const e = t.trim();
|
|
325
|
+
if (dn.test(e))
|
|
326
326
|
return { render: 0, complete: !1 };
|
|
327
|
-
const
|
|
328
|
-
return Number.isFinite(
|
|
327
|
+
const n = Number(e);
|
|
328
|
+
return Number.isFinite(n) ? { render: n, complete: !0 } : { render: 0, complete: !1 };
|
|
329
329
|
}
|
|
330
|
-
function
|
|
331
|
-
const
|
|
332
|
-
return
|
|
330
|
+
function Co(t) {
|
|
331
|
+
const e = hn(t);
|
|
332
|
+
return e.complete ? { display: String(e.render), render: e.render } : { display: "0", render: 0 };
|
|
333
333
|
}
|
|
334
334
|
function D(t) {
|
|
335
335
|
if (t == null) return null;
|
|
336
|
-
const
|
|
337
|
-
return
|
|
336
|
+
const e = String(t).trim();
|
|
337
|
+
return e || null;
|
|
338
338
|
}
|
|
339
|
-
function
|
|
339
|
+
function yn(t) {
|
|
340
340
|
if (t == null) return null;
|
|
341
|
-
const
|
|
342
|
-
return
|
|
341
|
+
const e = String(t);
|
|
342
|
+
return e === "" ? null : e;
|
|
343
343
|
}
|
|
344
344
|
function xt(t) {
|
|
345
345
|
if (t == null || t === "") return null;
|
|
346
|
-
const
|
|
347
|
-
return Number.isFinite(
|
|
346
|
+
const e = Number(t);
|
|
347
|
+
return Number.isFinite(e) ? e : null;
|
|
348
348
|
}
|
|
349
|
-
function
|
|
350
|
-
return typeof t == "string" &&
|
|
349
|
+
function mn(t) {
|
|
350
|
+
return typeof t == "string" && fn.has(t);
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function Nt(t) {
|
|
353
353
|
return t === "amenity" ? "amenity" : t === "kiosk_screen" ? "kiosk" : t === "connector" ? "connector" : t === "custom" ? "custom_text" : "retail_name";
|
|
354
354
|
}
|
|
355
|
-
function
|
|
356
|
-
const
|
|
357
|
-
if (!
|
|
355
|
+
function pn(t) {
|
|
356
|
+
const e = t == null ? void 0 : t.trim();
|
|
357
|
+
if (!e) return !1;
|
|
358
358
|
try {
|
|
359
|
-
const
|
|
360
|
-
return
|
|
359
|
+
const n = new URL(e);
|
|
360
|
+
return n.protocol === "http:" || n.protocol === "https:";
|
|
361
361
|
} catch {
|
|
362
362
|
return !1;
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function vo(t) {
|
|
366
366
|
return t === "amenity" ? "amenity" : t === "kiosk_screen" ? "kiosk" : t === "unit" || t === "parking_zone" ? "retailer" : "none";
|
|
367
367
|
}
|
|
368
|
-
function
|
|
368
|
+
function Eo(t, e) {
|
|
369
369
|
return {
|
|
370
370
|
shapeId: t,
|
|
371
371
|
targetType: "none",
|
|
@@ -376,7 +376,7 @@ function ko(t, n) {
|
|
|
376
376
|
unitNumber: null,
|
|
377
377
|
customLabel: null,
|
|
378
378
|
customImageKey: null,
|
|
379
|
-
layerType:
|
|
379
|
+
layerType: Nt(e),
|
|
380
380
|
size: dt,
|
|
381
381
|
rotate: 0,
|
|
382
382
|
offsetX: 0,
|
|
@@ -385,8 +385,8 @@ function ko(t, n) {
|
|
|
385
385
|
textColor: null
|
|
386
386
|
};
|
|
387
387
|
}
|
|
388
|
-
function
|
|
389
|
-
const
|
|
388
|
+
function Lo(t, e = "unit") {
|
|
389
|
+
const n = t.layerType ?? t.layer_type, r = t.unitStatus ?? t.unit_status ?? "vacant";
|
|
390
390
|
return {
|
|
391
391
|
shapeId: Z(
|
|
392
392
|
t.shapeId ?? t.shape_id,
|
|
@@ -406,13 +406,13 @@ function So(t, n = "unit") {
|
|
|
406
406
|
unitNumber: D(
|
|
407
407
|
t.unitNumber ?? t.unit_number
|
|
408
408
|
),
|
|
409
|
-
customLabel:
|
|
409
|
+
customLabel: yn(
|
|
410
410
|
t.customLabel ?? t.custom_label
|
|
411
411
|
),
|
|
412
412
|
customImageKey: D(
|
|
413
413
|
t.customImageKey ?? t.custom_image_key
|
|
414
414
|
),
|
|
415
|
-
layerType:
|
|
415
|
+
layerType: mn(n) ? n : Nt(e),
|
|
416
416
|
size: Z(t.size, dt),
|
|
417
417
|
rotate: Z(t.rotate, 0),
|
|
418
418
|
offsetX: Z(
|
|
@@ -429,185 +429,185 @@ function So(t, n = "unit") {
|
|
|
429
429
|
textColor: D(
|
|
430
430
|
t.textColor ?? t.text_color
|
|
431
431
|
),
|
|
432
|
-
align:
|
|
432
|
+
align: xn(t.align)
|
|
433
433
|
};
|
|
434
434
|
}
|
|
435
|
-
function
|
|
435
|
+
function xn(t) {
|
|
436
436
|
if (t === "left" || t === "right" || t === "center") return t;
|
|
437
437
|
}
|
|
438
|
-
function
|
|
439
|
-
const
|
|
440
|
-
return
|
|
438
|
+
function No(t, e) {
|
|
439
|
+
const n = (t.location ?? "").trim();
|
|
440
|
+
return e && n && n !== "-" ? `${t.name} (${n})` : t.name;
|
|
441
441
|
}
|
|
442
|
-
function
|
|
442
|
+
function Bt(t, e) {
|
|
443
443
|
var r;
|
|
444
|
-
const
|
|
445
|
-
return W(
|
|
444
|
+
const n = (r = t == null ? void 0 : t.bgColor) == null ? void 0 : r.trim();
|
|
445
|
+
return W(n) ? "transparent" : n || e;
|
|
446
446
|
}
|
|
447
|
-
function
|
|
447
|
+
function Tt(t) {
|
|
448
448
|
return t === "amenity" || t === "kiosk_screen" || t === "connector";
|
|
449
449
|
}
|
|
450
|
-
function
|
|
451
|
-
return
|
|
450
|
+
function To(t, e) {
|
|
451
|
+
return Tt(t) ? Lt : e;
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function Mo(t, e) {
|
|
454
454
|
var r;
|
|
455
|
-
const
|
|
456
|
-
return W(
|
|
455
|
+
const n = (r = t == null ? void 0 : t.textColor) == null ? void 0 : r.trim();
|
|
456
|
+
return W(n) ? "transparent" : n || e;
|
|
457
457
|
}
|
|
458
|
-
function
|
|
459
|
-
const r = (t == null ? void 0 : t.layerType) ?? (
|
|
460
|
-
return r === "kiosk" ?
|
|
458
|
+
function bn(t, e, n) {
|
|
459
|
+
const r = (t == null ? void 0 : t.layerType) ?? (n ? Nt(n) : void 0);
|
|
460
|
+
return r === "kiosk" ? e.KIOSK_ICON_COLOR : r === "amenity" ? e.AMENITY_ICON_COLOR : r === "connector" ? e.CONNECTOR_ICON_COLOR : e.STORE_TEXT_COLOR;
|
|
461
461
|
}
|
|
462
|
-
function
|
|
462
|
+
function wo(t, e, n, r) {
|
|
463
463
|
var i;
|
|
464
|
-
const o = (i =
|
|
465
|
-
return W(o) ? "transparent" : o ||
|
|
464
|
+
const o = (i = n ?? (t == null ? void 0 : t.textColor)) == null ? void 0 : i.trim();
|
|
465
|
+
return W(o) ? "transparent" : o || bn(t, e, r);
|
|
466
466
|
}
|
|
467
|
-
function
|
|
468
|
-
const
|
|
469
|
-
if (!
|
|
470
|
-
const
|
|
471
|
-
return Number.isSafeInteger(
|
|
467
|
+
function Po(t) {
|
|
468
|
+
const e = t.trim();
|
|
469
|
+
if (!e || !/^\d+$/.test(e)) return null;
|
|
470
|
+
const n = Number(e);
|
|
471
|
+
return Number.isSafeInteger(n) && n > 0 ? n : null;
|
|
472
472
|
}
|
|
473
|
-
function
|
|
473
|
+
function Fo(t, e) {
|
|
474
474
|
var o;
|
|
475
|
-
const
|
|
476
|
-
if (
|
|
475
|
+
const n = e == null ? void 0 : e.trim();
|
|
476
|
+
if (n) return n;
|
|
477
477
|
const r = (o = t == null ? void 0 : t.customLabel) == null ? void 0 : o.trim();
|
|
478
478
|
return r || ((t == null ? void 0 : t.amenityId) != null ? `Amenity ${t.amenityId}` : null);
|
|
479
479
|
}
|
|
480
|
-
function
|
|
480
|
+
function Do(t, e) {
|
|
481
481
|
var o;
|
|
482
|
-
const
|
|
483
|
-
if (
|
|
484
|
-
const r =
|
|
482
|
+
const n = (o = t == null ? void 0 : t.customLabel) == null ? void 0 : o.trim();
|
|
483
|
+
if (n) return n;
|
|
484
|
+
const r = e == null ? void 0 : e.trim();
|
|
485
485
|
return r || ((t == null ? void 0 : t.kioskId) != null ? `Kiosk ${t.kioskId}` : null);
|
|
486
486
|
}
|
|
487
|
-
function
|
|
488
|
-
var
|
|
489
|
-
return t ? t.targetType === "retailer" ? t.retailerId != null : t.targetType === "amenity" ? t.amenityId != null || !!((
|
|
487
|
+
function T(t) {
|
|
488
|
+
var e, n, r;
|
|
489
|
+
return t ? t.targetType === "retailer" ? t.retailerId != null : t.targetType === "amenity" ? t.amenityId != null || !!((e = t.customLabel) != null && e.trim()) : t.targetType === "kiosk" ? t.kioskId != null || !!((n = t.customLabel) != null && n.trim()) : t.targetType === "none" && t.layerType === "custom_text" ? !!((r = t.customLabel) != null && r.trim()) : t.targetType === "none" && t.layerType === "custom_image" ? pn(t.customImageKey) : !1 : !1;
|
|
490
490
|
}
|
|
491
|
-
const
|
|
491
|
+
const In = /* @__PURE__ */ new Set([
|
|
492
492
|
"unit",
|
|
493
493
|
"parking_zone",
|
|
494
494
|
"amenity",
|
|
495
495
|
"kiosk_screen",
|
|
496
496
|
"custom"
|
|
497
497
|
]);
|
|
498
|
-
function
|
|
498
|
+
function he(t, e, n) {
|
|
499
499
|
var r, o;
|
|
500
|
-
return t.kind === "label" ? t.label : t.kind === "entrance" ?
|
|
500
|
+
return t.kind === "label" ? t.label : t.kind === "entrance" ? de(t) ?? t.label : t.kind === "connector" || (e == null ? void 0 : e.layerType) === "connector" ? e ? zt(
|
|
501
501
|
{ style: t.style ?? {}, label: t.label },
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
).label : t.label :
|
|
502
|
+
e,
|
|
503
|
+
n
|
|
504
|
+
).label : t.label : In.has(t.kind) ? !e || !T(e) ? !((r = t.label) != null && r.text) && !((o = t.label) != null && o.imageKey) ? t.label : {
|
|
505
505
|
...t.label,
|
|
506
506
|
text: void 0,
|
|
507
507
|
imageKey: void 0
|
|
508
|
-
} :
|
|
508
|
+
} : zt(
|
|
509
509
|
{ style: t.style ?? {}, label: t.label },
|
|
510
|
-
|
|
511
|
-
|
|
510
|
+
e,
|
|
511
|
+
n
|
|
512
512
|
).label : t.label;
|
|
513
513
|
}
|
|
514
|
-
function
|
|
515
|
-
if (
|
|
514
|
+
function gn(t, e) {
|
|
515
|
+
if (T(t)) {
|
|
516
516
|
if (t.layerType === "retail_text" || t.layerType === "custom_text")
|
|
517
517
|
return t.customLabel ?? void 0;
|
|
518
518
|
if (t.layerType === "retail_name")
|
|
519
|
-
return (
|
|
519
|
+
return (e == null ? void 0 : e.name) ?? t.customLabel ?? void 0;
|
|
520
520
|
}
|
|
521
521
|
}
|
|
522
|
-
function
|
|
523
|
-
if (!(!
|
|
524
|
-
return
|
|
522
|
+
function ye(t, e, n) {
|
|
523
|
+
if (!(!T(t) || !t) && !(t.layerType !== "retail_logo" && t.layerType !== "custom_image"))
|
|
524
|
+
return On(t, e) ?? D(n == null ? void 0 : n.imageKey) ?? void 0;
|
|
525
525
|
}
|
|
526
|
-
function
|
|
527
|
-
var
|
|
528
|
-
if (!(!
|
|
526
|
+
function Ko(t, e) {
|
|
527
|
+
var n, r;
|
|
528
|
+
if (!(!T(t) || !t)) {
|
|
529
529
|
if (t.layerType === "kiosk") return "kiosk";
|
|
530
530
|
if (t.layerType === "amenity")
|
|
531
|
-
return ((
|
|
531
|
+
return ((n = e == null ? void 0 : e.find((o) => o.id === t.amenityId)) == null ? void 0 : n.code) ?? ((r = t.customLabel) == null ? void 0 : r.trim()) ?? void 0;
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
|
-
function
|
|
535
|
-
const
|
|
536
|
-
return (
|
|
534
|
+
function _n(t, e) {
|
|
535
|
+
const n = Number.isFinite(t) && t > 0 ? t : dt;
|
|
536
|
+
return (e == null ? void 0 : e.layerType) === "retail_logo" || (e == null ? void 0 : e.layerType) === "custom_image" ? n * ln : n;
|
|
537
537
|
}
|
|
538
|
-
function
|
|
539
|
-
const
|
|
538
|
+
function Yo(t) {
|
|
539
|
+
const e = t.assignment, n = t.label;
|
|
540
540
|
return {
|
|
541
|
-
size:
|
|
542
|
-
(
|
|
541
|
+
size: _n(
|
|
542
|
+
(e == null ? void 0 : e.size) ?? (n == null ? void 0 : n.size) ?? an
|
|
543
543
|
),
|
|
544
|
-
rotate: (
|
|
545
|
-
offsetX: (
|
|
546
|
-
offsetY: (
|
|
547
|
-
iconColor: (
|
|
544
|
+
rotate: (e == null ? void 0 : e.rotate) ?? (n == null ? void 0 : n.rotate) ?? 0,
|
|
545
|
+
offsetX: (e == null ? void 0 : e.offsetX) ?? (n == null ? void 0 : n.offsetX) ?? 0,
|
|
546
|
+
offsetY: (e == null ? void 0 : e.offsetY) ?? (n == null ? void 0 : n.offsetY) ?? 0,
|
|
547
|
+
iconColor: (e == null ? void 0 : e.textColor) ?? (n == null ? void 0 : n.color) ?? null
|
|
548
548
|
};
|
|
549
549
|
}
|
|
550
|
-
function
|
|
551
|
-
var
|
|
552
|
-
return
|
|
550
|
+
function $o(t, e) {
|
|
551
|
+
var n;
|
|
552
|
+
return T(t) ? (t == null ? void 0 : t.layerType) === "kiosk" || (t == null ? void 0 : t.layerType) === "amenity" || ye(t, null, e) ? !0 : !!((n = e == null ? void 0 : e.text) != null && n.trim()) : !1;
|
|
553
553
|
}
|
|
554
|
-
function
|
|
555
|
-
if (
|
|
554
|
+
function On(t, e) {
|
|
555
|
+
if (T(t)) {
|
|
556
556
|
if (t.layerType === "retail_logo")
|
|
557
|
-
return D(
|
|
557
|
+
return D(e == null ? void 0 : e.logoKey) ?? D(e == null ? void 0 : e.logoUrl) ?? D(t.customImageKey) ?? void 0;
|
|
558
558
|
if (t.layerType === "custom_image")
|
|
559
559
|
return D(t.customImageKey) ?? void 0;
|
|
560
560
|
}
|
|
561
561
|
}
|
|
562
562
|
function bt(t) {
|
|
563
563
|
if (t.length === 0) return "";
|
|
564
|
-
const
|
|
565
|
-
return t.every((
|
|
564
|
+
const e = t[0];
|
|
565
|
+
return t.every((n) => n === e) ? e : "";
|
|
566
566
|
}
|
|
567
|
-
function
|
|
567
|
+
function Gt(t) {
|
|
568
568
|
if (t.length === 0) return !1;
|
|
569
|
-
const
|
|
570
|
-
return t.some((
|
|
569
|
+
const e = t[0];
|
|
570
|
+
return t.some((n) => n !== e);
|
|
571
571
|
}
|
|
572
|
-
function
|
|
573
|
-
const
|
|
572
|
+
function Bo(t) {
|
|
573
|
+
const e = t.map((r) => r.bgColor ?? ""), n = t.map((r) => r.textColor ?? "");
|
|
574
574
|
return {
|
|
575
575
|
size: bt(t.map((r) => r.size)),
|
|
576
|
-
bgColor: bt(
|
|
577
|
-
textColor: bt(
|
|
578
|
-
bgColorMixed:
|
|
579
|
-
textColorMixed:
|
|
576
|
+
bgColor: bt(e),
|
|
577
|
+
textColor: bt(n),
|
|
578
|
+
bgColorMixed: Gt(e),
|
|
579
|
+
textColorMixed: Gt(n)
|
|
580
580
|
};
|
|
581
581
|
}
|
|
582
|
-
function
|
|
582
|
+
function Go(t, e) {
|
|
583
583
|
return {
|
|
584
584
|
...t,
|
|
585
|
-
...
|
|
586
|
-
...
|
|
587
|
-
...
|
|
585
|
+
...e.size != null ? { size: e.size } : {},
|
|
586
|
+
...e.bgColor !== void 0 ? { bgColor: e.bgColor } : {},
|
|
587
|
+
...e.textColor !== void 0 ? { textColor: e.textColor } : {}
|
|
588
588
|
};
|
|
589
589
|
}
|
|
590
|
-
function
|
|
591
|
-
const r =
|
|
590
|
+
function zt(t, e, n) {
|
|
591
|
+
const r = ye(e, n, t.label), o = T(e) ? r ? void 0 : gn(e, n) ?? t.label.text : void 0;
|
|
592
592
|
return {
|
|
593
593
|
style: {
|
|
594
594
|
...t.style,
|
|
595
|
-
fill:
|
|
595
|
+
fill: e.bgColor ?? void 0
|
|
596
596
|
},
|
|
597
597
|
label: {
|
|
598
598
|
...t.label,
|
|
599
599
|
text: o,
|
|
600
600
|
imageKey: r,
|
|
601
|
-
size: Number.isFinite(
|
|
602
|
-
rotate: Number.isFinite(
|
|
603
|
-
offsetX: Number.isFinite(
|
|
604
|
-
offsetY: Number.isFinite(
|
|
605
|
-
color:
|
|
606
|
-
...
|
|
601
|
+
size: Number.isFinite(e.size) ? e.size : 0,
|
|
602
|
+
rotate: Number.isFinite(e.rotate) ? e.rotate : 0,
|
|
603
|
+
offsetX: Number.isFinite(e.offsetX) ? e.offsetX : 0,
|
|
604
|
+
offsetY: Number.isFinite(e.offsetY) ? e.offsetY : 0,
|
|
605
|
+
color: e.textColor ?? void 0,
|
|
606
|
+
...e.align ? { align: e.align } : {}
|
|
607
607
|
}
|
|
608
608
|
};
|
|
609
609
|
}
|
|
610
|
-
const
|
|
610
|
+
const kn = [
|
|
611
611
|
"floorplate",
|
|
612
612
|
"walkable",
|
|
613
613
|
"decor",
|
|
@@ -616,107 +616,107 @@ const _e = [
|
|
|
616
616
|
"water",
|
|
617
617
|
"parking_zone"
|
|
618
618
|
];
|
|
619
|
-
function
|
|
619
|
+
function An(t) {
|
|
620
620
|
return t === "void";
|
|
621
621
|
}
|
|
622
|
-
function
|
|
623
|
-
return
|
|
622
|
+
function zo(t) {
|
|
623
|
+
return kn.includes(t);
|
|
624
624
|
}
|
|
625
|
-
function
|
|
626
|
-
return
|
|
625
|
+
function me(t) {
|
|
626
|
+
return An(t.kind) && !t.orphanedAt;
|
|
627
627
|
}
|
|
628
|
-
function
|
|
629
|
-
return (t.shapes ?? []).some(
|
|
628
|
+
function Sn(t) {
|
|
629
|
+
return (t.shapes ?? []).some(me);
|
|
630
630
|
}
|
|
631
|
-
function
|
|
632
|
-
var
|
|
633
|
-
const
|
|
631
|
+
function Xo(t) {
|
|
632
|
+
var n;
|
|
633
|
+
const e = [];
|
|
634
634
|
for (const r of t.shapes ?? [])
|
|
635
|
-
if (
|
|
636
|
-
for (const o of ((
|
|
637
|
-
o.length >= 3 &&
|
|
638
|
-
return
|
|
635
|
+
if (me(r))
|
|
636
|
+
for (const o of ((n = r.geometry) == null ? void 0 : n.polygons) ?? [])
|
|
637
|
+
o.length >= 3 && e.push(o);
|
|
638
|
+
return e;
|
|
639
639
|
}
|
|
640
|
-
function
|
|
641
|
-
let
|
|
642
|
-
for (let
|
|
643
|
-
|
|
644
|
-
return
|
|
640
|
+
function Xt(t) {
|
|
641
|
+
let e = 0;
|
|
642
|
+
for (let n = 0, r = t.length - 1; n < t.length; r = n++)
|
|
643
|
+
e += t[r].x * t[n].y - t[n].x * t[r].y;
|
|
644
|
+
return e / 2;
|
|
645
645
|
}
|
|
646
|
-
function
|
|
646
|
+
function Rn(t) {
|
|
647
647
|
return t.slice().reverse();
|
|
648
648
|
}
|
|
649
|
-
function
|
|
650
|
-
const
|
|
651
|
-
return
|
|
649
|
+
function Cn(t, e) {
|
|
650
|
+
const n = Xt(t), r = Xt(e);
|
|
651
|
+
return n === 0 || r === 0 ? e : Math.sign(n) === Math.sign(r) ? Rn(e) : e;
|
|
652
652
|
}
|
|
653
|
-
function
|
|
654
|
-
let
|
|
653
|
+
function Ht(t) {
|
|
654
|
+
let e = 1 / 0, n = 1 / 0, r = -1 / 0, o = -1 / 0;
|
|
655
655
|
for (const i of t)
|
|
656
|
-
i.x <
|
|
657
|
-
return { minX:
|
|
656
|
+
i.x < e && (e = i.x), i.y < n && (n = i.y), i.x > r && (r = i.x), i.y > o && (o = i.y);
|
|
657
|
+
return { minX: e, minY: n, maxX: r, maxY: o };
|
|
658
658
|
}
|
|
659
|
-
function
|
|
660
|
-
const
|
|
661
|
-
return
|
|
659
|
+
function vn(t, e) {
|
|
660
|
+
const n = Ht(t), r = Ht(e);
|
|
661
|
+
return n.minX <= r.maxX && n.maxX >= r.minX && n.minY <= r.maxY && n.maxY >= r.minY;
|
|
662
662
|
}
|
|
663
|
-
function
|
|
664
|
-
return
|
|
663
|
+
function Ho(t, e) {
|
|
664
|
+
return e.filter((n) => n.length >= 3 && vn(t, n)).map((n) => Cn(t, n));
|
|
665
665
|
}
|
|
666
|
-
const
|
|
667
|
-
function
|
|
668
|
-
return t.ordering -
|
|
666
|
+
const Uo = "#e8eef4", Vo = "#64748b", Wo = "#475569";
|
|
667
|
+
function En(t, e) {
|
|
668
|
+
return t.ordering - e.ordering || t.levelIndex - e.levelIndex;
|
|
669
669
|
}
|
|
670
|
-
function
|
|
670
|
+
function X(t) {
|
|
671
671
|
return t.kind === "outdoor";
|
|
672
672
|
}
|
|
673
|
-
function
|
|
674
|
-
const
|
|
675
|
-
return !r ||
|
|
673
|
+
function Ln(t, e) {
|
|
674
|
+
const n = t.filter(X), r = e == null ? null : t.find((o) => o.id === e) ?? null;
|
|
675
|
+
return !r || X(r) || n.some((o) => o.id === r.id) ? n : [...n, r];
|
|
676
676
|
}
|
|
677
|
-
function
|
|
678
|
-
if (
|
|
679
|
-
const
|
|
677
|
+
function Nn(t, e) {
|
|
678
|
+
if (e == null) return [];
|
|
679
|
+
const n = ht(t), r = n.findIndex((c) => c.id === e);
|
|
680
680
|
if (r < 0) return [];
|
|
681
681
|
const o = [];
|
|
682
|
-
let i =
|
|
683
|
-
for (let c = r; c <
|
|
684
|
-
const a =
|
|
682
|
+
let i = n[r];
|
|
683
|
+
for (let c = r; c < n.length - 1 && Sn(i); c++) {
|
|
684
|
+
const a = n[c + 1];
|
|
685
685
|
if (!a) break;
|
|
686
686
|
o.unshift(a), i = a;
|
|
687
687
|
}
|
|
688
688
|
return o;
|
|
689
689
|
}
|
|
690
|
-
function
|
|
691
|
-
return
|
|
690
|
+
function Zo(t, e) {
|
|
691
|
+
return Nn(t, e).at(-1) ?? null;
|
|
692
692
|
}
|
|
693
|
-
function
|
|
694
|
-
const r = t.find((i) => i.id ===
|
|
695
|
-
if (!r || !
|
|
696
|
-
const o =
|
|
697
|
-
return o && !
|
|
693
|
+
function jo(t, e, n) {
|
|
694
|
+
const r = t.find((i) => i.id === n);
|
|
695
|
+
if (!r || !X(r)) return n;
|
|
696
|
+
const o = e == null ? null : t.find((i) => i.id === e) ?? null;
|
|
697
|
+
return o && !X(o) ? o.id : wn(t) ?? n;
|
|
698
698
|
}
|
|
699
699
|
function ht(t) {
|
|
700
|
-
return t.filter((
|
|
700
|
+
return t.filter((e) => e.kind === "floor").slice().sort(En);
|
|
701
701
|
}
|
|
702
|
-
function
|
|
702
|
+
function qo(t) {
|
|
703
703
|
return ht(t);
|
|
704
704
|
}
|
|
705
|
-
function
|
|
705
|
+
function Qo(t) {
|
|
706
706
|
return ht(t).length > 1;
|
|
707
707
|
}
|
|
708
|
-
function
|
|
709
|
-
return t.some((
|
|
708
|
+
function Tn(t) {
|
|
709
|
+
return t.some((e) => e.kind === "floor");
|
|
710
710
|
}
|
|
711
|
-
function
|
|
712
|
-
return t.some(
|
|
711
|
+
function Mn(t) {
|
|
712
|
+
return t.some(X);
|
|
713
713
|
}
|
|
714
|
-
const
|
|
715
|
-
function
|
|
716
|
-
var
|
|
717
|
-
return ((
|
|
714
|
+
const Jo = "This map doesn’t have any floors yet.";
|
|
715
|
+
function wn(t) {
|
|
716
|
+
var e, n;
|
|
717
|
+
return ((e = ht(t).at(-1)) == null ? void 0 : e.id) ?? ((n = t[0]) == null ? void 0 : n.id) ?? null;
|
|
718
718
|
}
|
|
719
|
-
function
|
|
719
|
+
function Ut(t) {
|
|
720
720
|
return {
|
|
721
721
|
minX: t.x,
|
|
722
722
|
minY: t.y,
|
|
@@ -727,39 +727,39 @@ function Ht(t) {
|
|
|
727
727
|
size: Math.max(t.width, t.height, 100)
|
|
728
728
|
};
|
|
729
729
|
}
|
|
730
|
-
function
|
|
731
|
-
const
|
|
730
|
+
function Pn(t, e) {
|
|
731
|
+
const n = e.scale || 1, r = (e.rotate || 0) * Math.PI / 180, o = Math.cos(r), i = Math.sin(r), c = t.x * n, a = t.y * n;
|
|
732
732
|
return {
|
|
733
|
-
x: c * o - a * i + (
|
|
734
|
-
y: c * i + a * o + (
|
|
733
|
+
x: c * o - a * i + (e.translateX || 0),
|
|
734
|
+
y: c * i + a * o + (e.translateY || 0)
|
|
735
735
|
};
|
|
736
736
|
}
|
|
737
|
-
function
|
|
738
|
-
const
|
|
737
|
+
function Fn(t, e) {
|
|
738
|
+
const n = [
|
|
739
739
|
{ x: t.minX, y: t.minY },
|
|
740
740
|
{ x: t.maxX, y: t.minY },
|
|
741
741
|
{ x: t.minX, y: t.maxY },
|
|
742
742
|
{ x: t.maxX, y: t.maxY }
|
|
743
|
-
].map((a) =>
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
743
|
+
].map((a) => e ? Pn(a, e) : a), r = Math.min(
|
|
744
|
+
n[0].x,
|
|
745
|
+
n[1].x,
|
|
746
|
+
n[2].x,
|
|
747
|
+
n[3].x
|
|
748
748
|
), o = Math.min(
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
749
|
+
n[0].y,
|
|
750
|
+
n[1].y,
|
|
751
|
+
n[2].y,
|
|
752
|
+
n[3].y
|
|
753
753
|
), i = Math.max(
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
754
|
+
n[0].x,
|
|
755
|
+
n[1].x,
|
|
756
|
+
n[2].x,
|
|
757
|
+
n[3].x
|
|
758
758
|
), c = Math.max(
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
759
|
+
n[0].y,
|
|
760
|
+
n[1].y,
|
|
761
|
+
n[2].y,
|
|
762
|
+
n[3].y
|
|
763
763
|
);
|
|
764
764
|
return {
|
|
765
765
|
minX: r,
|
|
@@ -771,40 +771,40 @@ function we(t, n) {
|
|
|
771
771
|
size: Math.max(i - r, c - o, 100)
|
|
772
772
|
};
|
|
773
773
|
}
|
|
774
|
-
function
|
|
775
|
-
const
|
|
774
|
+
function Vt(t, e) {
|
|
775
|
+
const n = Math.min(t.minX, e.minX), r = Math.min(t.minY, e.minY), o = Math.max(t.maxX, e.maxX), i = Math.max(t.maxY, e.maxY);
|
|
776
776
|
return {
|
|
777
|
-
minX:
|
|
777
|
+
minX: n,
|
|
778
778
|
minY: r,
|
|
779
779
|
maxX: o,
|
|
780
780
|
maxY: i,
|
|
781
|
-
cx: (
|
|
781
|
+
cx: (n + o) / 2,
|
|
782
782
|
cy: (r + i) / 2,
|
|
783
|
-
size: Math.max(o -
|
|
783
|
+
size: Math.max(o - n, i - r, 100)
|
|
784
784
|
};
|
|
785
785
|
}
|
|
786
|
-
function
|
|
787
|
-
let r =
|
|
788
|
-
for (const o of
|
|
786
|
+
function ti(t, e, n) {
|
|
787
|
+
let r = n ? Ut(n) : null;
|
|
788
|
+
for (const o of Ln(t, e)) {
|
|
789
789
|
if (o.viewbox) {
|
|
790
|
-
const i =
|
|
791
|
-
r = r ?
|
|
790
|
+
const i = Ut(o.viewbox);
|
|
791
|
+
r = r ? Vt(r, i) : i;
|
|
792
792
|
}
|
|
793
793
|
for (const i of o.shapes) {
|
|
794
|
-
const c =
|
|
795
|
-
r = r ?
|
|
794
|
+
const c = Fn(i.bbox);
|
|
795
|
+
r = r ? Vt(r, c) : c;
|
|
796
796
|
}
|
|
797
797
|
}
|
|
798
798
|
return r ?? { minX: 0, minY: 0, maxX: 500, maxY: 500, cx: 250, cy: 250, size: 500 };
|
|
799
799
|
}
|
|
800
|
-
function
|
|
801
|
-
if (!t && !
|
|
802
|
-
if (!t) return
|
|
803
|
-
if (!
|
|
804
|
-
const
|
|
805
|
-
return { x:
|
|
800
|
+
function ei(t, e) {
|
|
801
|
+
if (!t && !e) return { x: 0, y: 0, width: 1e3, height: 800 };
|
|
802
|
+
if (!t) return e;
|
|
803
|
+
if (!e) return t;
|
|
804
|
+
const n = Math.min(t.x, e.x), r = Math.min(t.y, e.y), o = Math.max(t.x + t.width, e.x + e.width), i = Math.max(t.y + t.height, e.y + e.height);
|
|
805
|
+
return { x: n, y: r, width: o - n, height: i - r };
|
|
806
806
|
}
|
|
807
|
-
function
|
|
807
|
+
function ni(t) {
|
|
808
808
|
return t === "PORTAL" ? "editor" : "viewer";
|
|
809
809
|
}
|
|
810
810
|
const It = {
|
|
@@ -815,10 +815,11 @@ const It = {
|
|
|
815
815
|
kioskOrigin: !1,
|
|
816
816
|
fetchDraft: !1,
|
|
817
817
|
storeModal: !1,
|
|
818
|
+
sidebar: !1,
|
|
818
819
|
hoverTooltip: !1
|
|
819
|
-
},
|
|
820
|
+
}, Dn = {
|
|
820
821
|
/** v1 WP_SITE / MapBox HOST WEBSITE. */
|
|
821
|
-
WEBSITE: { ...It,
|
|
822
|
+
WEBSITE: { ...It, sidebar: !0, hoverTooltip: !0 },
|
|
822
823
|
/** Assign mode: click shapes, no public directory chrome. */
|
|
823
824
|
PORTAL_ASSIGN: It,
|
|
824
825
|
DISPLAY_APP: {
|
|
@@ -827,56 +828,56 @@ const It = {
|
|
|
827
828
|
hoverTooltip: !0
|
|
828
829
|
}
|
|
829
830
|
};
|
|
830
|
-
function
|
|
831
|
-
return
|
|
831
|
+
function pe(t) {
|
|
832
|
+
return Dn[t];
|
|
832
833
|
}
|
|
833
|
-
function
|
|
834
|
+
function ri(t) {
|
|
834
835
|
return t !== "WEBSITE";
|
|
835
836
|
}
|
|
836
|
-
function
|
|
837
|
+
function oi(t) {
|
|
837
838
|
return t !== "PORTAL";
|
|
838
839
|
}
|
|
839
|
-
function
|
|
840
|
+
function Kn(t) {
|
|
840
841
|
return t === "WEBSITE" || t === "DISPLAY_APP";
|
|
841
842
|
}
|
|
842
|
-
function
|
|
843
|
-
return
|
|
843
|
+
function ii(t, e) {
|
|
844
|
+
return Tn(e) ? !0 : Kn(t) ? !1 : Mn(e);
|
|
844
845
|
}
|
|
845
|
-
function
|
|
846
|
-
for (const
|
|
847
|
-
const
|
|
848
|
-
if (
|
|
846
|
+
function Wt(...t) {
|
|
847
|
+
for (const e of t) {
|
|
848
|
+
const n = e == null ? void 0 : e.trim();
|
|
849
|
+
if (n) return n;
|
|
849
850
|
}
|
|
850
851
|
return null;
|
|
851
852
|
}
|
|
852
|
-
function
|
|
853
|
-
return
|
|
853
|
+
function si(t) {
|
|
854
|
+
return pe(t).hoverTooltip;
|
|
854
855
|
}
|
|
855
|
-
function
|
|
856
|
-
var r, o, i, c, a, s,
|
|
856
|
+
function ci(t, e = [], n = []) {
|
|
857
|
+
var r, o, i, c, a, s, f;
|
|
857
858
|
if (t.kind === "unit") {
|
|
858
|
-
const y = (r = t.assignment) == null ? void 0 : r.retailerId, l = y != null ?
|
|
859
|
-
return
|
|
859
|
+
const y = (r = t.assignment) == null ? void 0 : r.retailerId, l = y != null ? e.find((b) => b.id === y) : void 0;
|
|
860
|
+
return Wt(
|
|
860
861
|
l == null ? void 0 : l.name,
|
|
861
862
|
(o = t.assignment) == null ? void 0 : o.customLabel,
|
|
862
863
|
(i = t.label) == null ? void 0 : i.text
|
|
863
864
|
);
|
|
864
865
|
}
|
|
865
866
|
if (t.kind === "amenity") {
|
|
866
|
-
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(),
|
|
867
|
-
return
|
|
867
|
+
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(), b = y != null ? n.find((h) => h.id === y) : void 0, u = l ? n.find((h) => h.code === l) : void 0;
|
|
868
|
+
return Wt(b == null ? void 0 : b.name, u == null ? void 0 : u.name, l, (f = t.label) == null ? void 0 : f.text);
|
|
868
869
|
}
|
|
869
870
|
return null;
|
|
870
871
|
}
|
|
871
|
-
function
|
|
872
|
+
function Yn(t, e, n) {
|
|
872
873
|
var r;
|
|
873
|
-
return t === "DISPLAY_APP" &&
|
|
874
|
+
return t === "DISPLAY_APP" && e != null && n.kind === "kiosk_screen" && !n.orphanedAt && ((r = n.assignment) == null ? void 0 : r.kioskId) === e;
|
|
874
875
|
}
|
|
875
|
-
function
|
|
876
|
+
function ai(t, e, n) {
|
|
876
877
|
var r;
|
|
877
878
|
for (const o of t.levels) {
|
|
878
879
|
const i = o.shapes.find(
|
|
879
|
-
(c) =>
|
|
880
|
+
(c) => Yn(e, n, c)
|
|
880
881
|
);
|
|
881
882
|
if (i)
|
|
882
883
|
return {
|
|
@@ -887,455 +888,284 @@ function ei(t, n, e) {
|
|
|
887
888
|
}
|
|
888
889
|
return null;
|
|
889
890
|
}
|
|
890
|
-
function
|
|
891
|
+
function li(t) {
|
|
891
892
|
var o, i;
|
|
892
|
-
const
|
|
893
|
+
const e = ((o = t.kioskOrigin) == null ? void 0 : o.anchorId) ?? null;
|
|
893
894
|
if (t.kind === "chrome")
|
|
894
895
|
return {
|
|
895
|
-
fromAnchorId:
|
|
896
|
+
fromAnchorId: e,
|
|
896
897
|
toAnchorId: null,
|
|
897
898
|
nextLevelId: null,
|
|
898
899
|
resetCamera: !0
|
|
899
900
|
};
|
|
900
|
-
const
|
|
901
|
+
const n = ((i = t.kioskOrigin) == null ? void 0 : i.levelId) ?? t.defaultLevelId, r = n != null && n !== t.activeLevelId;
|
|
901
902
|
return {
|
|
902
|
-
fromAnchorId:
|
|
903
|
+
fromAnchorId: e,
|
|
903
904
|
toAnchorId: null,
|
|
904
|
-
nextLevelId: r ?
|
|
905
|
+
nextLevelId: r ? n : null,
|
|
905
906
|
resetCamera: !r
|
|
906
907
|
};
|
|
907
908
|
}
|
|
908
|
-
function
|
|
909
|
-
if (typeof t != "string") return null;
|
|
910
|
-
const n = t.trim();
|
|
911
|
-
return n || null;
|
|
912
|
-
}
|
|
913
|
-
function tt(t) {
|
|
914
|
-
const n = typeof t == "number" ? t : Number(t);
|
|
915
|
-
return Number.isFinite(n) && n > 0 ? n : null;
|
|
916
|
-
}
|
|
917
|
-
function nt(t) {
|
|
918
|
-
return !t || typeof t != "object" ? null : O(t.url);
|
|
919
|
-
}
|
|
920
|
-
function oi(t, n) {
|
|
921
|
-
var e;
|
|
922
|
-
return !n || !pn(t).storeModal ? !1 : n.kind === "unit" ? ((e = n.assignment) == null ? void 0 : e.retailerId) != null : n.kind === "amenity" ? M(n.assignment) : !1;
|
|
923
|
-
}
|
|
924
|
-
function Ke(t, n) {
|
|
925
|
-
for (const e of t.levels) {
|
|
926
|
-
const r = e.shapes.find((o) => o.id === n);
|
|
927
|
-
if (r) return { level: e, shape: r };
|
|
928
|
-
}
|
|
929
|
-
return null;
|
|
930
|
-
}
|
|
931
|
-
function Ye(t, n) {
|
|
932
|
-
var r, o, i, c;
|
|
933
|
-
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;
|
|
934
|
-
return O((o = t.assignment) == null ? void 0 : o.customLabel) || O(e == null ? void 0 : e.name) || O((i = t.label) == null ? void 0 : i.text) || O((c = t.assignment) == null ? void 0 : c.unitNumber) || t.key;
|
|
935
|
-
}
|
|
936
|
-
function ii(t, n) {
|
|
937
|
-
var i, c;
|
|
938
|
-
const e = Ke(t, n);
|
|
939
|
-
if (!e) return null;
|
|
940
|
-
const r = e.shape.kind === "amenity" ? "amenity" : "store", o = e.level.anchors.find((a) => a.shapeId === n);
|
|
941
|
-
return {
|
|
942
|
-
shapeId: n,
|
|
943
|
-
levelId: e.level.id,
|
|
944
|
-
anchorId: (o == null ? void 0 : o.id) ?? null,
|
|
945
|
-
kind: r,
|
|
946
|
-
retailerId: ((i = e.shape.assignment) == null ? void 0 : i.retailerId) ?? null,
|
|
947
|
-
amenityId: ((c = e.shape.assignment) == null ? void 0 : c.amenityId) ?? null,
|
|
948
|
-
name: Ye(e.shape, t.amenities),
|
|
949
|
-
isExterior: V(e.level)
|
|
950
|
-
};
|
|
951
|
-
}
|
|
952
|
-
const $e = "Directions are unavailable for this location.";
|
|
953
|
-
function Be(t) {
|
|
954
|
-
return t ? t.isExterior || t.anchorId == null : !0;
|
|
955
|
-
}
|
|
956
|
-
function si(t, n) {
|
|
957
|
-
const e = Be(n), r = t !== "DISPLAY_APP";
|
|
958
|
-
return {
|
|
959
|
-
showFromRetailers: r && !e,
|
|
960
|
-
showMapIt: r,
|
|
961
|
-
mapItDisabled: e,
|
|
962
|
-
mapItTooltip: r && e ? $e : null
|
|
963
|
-
};
|
|
964
|
-
}
|
|
965
|
-
function Ge(t) {
|
|
909
|
+
function ui(t, e) {
|
|
966
910
|
const n = /* @__PURE__ */ new Map();
|
|
967
|
-
for (const
|
|
968
|
-
(
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
function ci(t, n) {
|
|
976
|
-
var i, c, a, s;
|
|
977
|
-
const e = Ge(n ?? t.retailers), r = /* @__PURE__ */ new Map();
|
|
978
|
-
for (const h of t.levels)
|
|
979
|
-
for (const y of h.shapes) {
|
|
980
|
-
const l = (i = y.assignment) == null ? void 0 : i.retailerId;
|
|
981
|
-
if (l == null || y.kind !== "unit") continue;
|
|
982
|
-
const x = e.get(l), u = h.anchors.find((m) => m.shapeId === y.id), d = {
|
|
983
|
-
id: l,
|
|
984
|
-
name: O(x == null ? void 0 : x.name) || O((c = y.label) == null ? void 0 : c.text) || O((a = y.assignment) == null ? void 0 : a.customLabel) || `Store ${l}`,
|
|
985
|
-
location: O(x == null ? void 0 : x.location) || O((s = y.assignment) == null ? void 0 : s.unitNumber),
|
|
986
|
-
phone: O(x == null ? void 0 : x.phone),
|
|
987
|
-
description: O(x == null ? void 0 : x.description),
|
|
988
|
-
logoUrl: ze(x, y),
|
|
989
|
-
globalRetailerId: (x == null ? void 0 : x.globalRetailerId) ?? null,
|
|
990
|
-
shapeId: y.id,
|
|
991
|
-
levelId: h.id,
|
|
992
|
-
anchorId: (u == null ? void 0 : u.id) ?? null
|
|
993
|
-
}, f = r.get(l);
|
|
994
|
-
(!f || f.anchorId == null && d.anchorId != null) && r.set(l, d);
|
|
995
|
-
}
|
|
996
|
-
return Array.from(r.values()).sort((h, y) => h.name.localeCompare(y.name));
|
|
997
|
-
}
|
|
998
|
-
function ai(t, n) {
|
|
999
|
-
const e = /* @__PURE__ */ new Map();
|
|
1000
|
-
for (const r of t)
|
|
1001
|
-
r.globalRetailerId != null && e.set(r.globalRetailerId, (e.get(r.globalRetailerId) ?? 0) + 1);
|
|
1002
|
-
return t.filter((r) => r.id !== n && r.anchorId != null).map((r) => {
|
|
1003
|
-
const o = r.globalRetailerId != null && (e.get(r.globalRetailerId) ?? 0) > 1 && r.location;
|
|
1004
|
-
return {
|
|
1005
|
-
value: String(r.id),
|
|
1006
|
-
label: o ? `${r.name} (${r.location})` : r.name
|
|
1007
|
-
};
|
|
1008
|
-
});
|
|
1009
|
-
}
|
|
1010
|
-
function li(t, n) {
|
|
1011
|
-
return (t == null ? void 0 : t.anchorId) == null || (n == null ? void 0 : n.anchorId) == null ? null : {
|
|
1012
|
-
fromAnchorId: t.anchorId,
|
|
1013
|
-
toAnchorId: n.anchorId,
|
|
1014
|
-
toLevelId: n.levelId
|
|
1015
|
-
};
|
|
1016
|
-
}
|
|
1017
|
-
function ui(t) {
|
|
1018
|
-
const n = t.replace(/\D/g, "").slice(-10);
|
|
1019
|
-
return n.length === 10 ? `${n.slice(0, 3)}.${n.slice(3, 6)}.${n.slice(-4)}` : t;
|
|
1020
|
-
}
|
|
1021
|
-
function fi(t) {
|
|
1022
|
-
if (!t || typeof t != "object") return null;
|
|
1023
|
-
const n = t, e = n.global_retailer && typeof n.global_retailer == "object" ? n.global_retailer : null, r = tt(n.id);
|
|
1024
|
-
if (r == null) return null;
|
|
1025
|
-
const o = O(e == null ? void 0 : e.name) || O(n.name) || `Retailer ${r}`;
|
|
1026
|
-
return {
|
|
1027
|
-
id: r,
|
|
1028
|
-
name: o,
|
|
1029
|
-
location: O(n.location),
|
|
1030
|
-
phone: O(n.retailer_phone) || O(n.phone),
|
|
1031
|
-
description: O(e == null ? void 0 : e.description) || O(n.description) || O(n.local_description),
|
|
1032
|
-
logoUrl: nt(e == null ? void 0 : e.media) || nt(e == null ? void 0 : e.featured_image) || nt(n.media) || nt(n.featured_image) || O(n.logoUrl) || O(n.logo),
|
|
1033
|
-
logoKey: O(n.logoKey),
|
|
1034
|
-
globalRetailerId: tt(e == null ? void 0 : e.id) || tt(n.global_retailer_id) || tt(n.globalRetailerId)
|
|
911
|
+
for (const o of e) {
|
|
912
|
+
if (o.connectorId == null) continue;
|
|
913
|
+
let i = n.get(o.connectorId);
|
|
914
|
+
i || (i = /* @__PURE__ */ new Set(), n.set(o.connectorId, i)), i.add(o.levelId);
|
|
915
|
+
}
|
|
916
|
+
const r = {
|
|
917
|
+
escalator: !1,
|
|
918
|
+
elevator: !1
|
|
1035
919
|
};
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
function Xe(t) {
|
|
1041
|
-
return t === "PORTAL_ASSIGN";
|
|
1042
|
-
}
|
|
1043
|
-
function He(t) {
|
|
1044
|
-
return xn(t);
|
|
1045
|
-
}
|
|
1046
|
-
function di(t, n) {
|
|
1047
|
-
return He(n) ? M(t.assignment) : !0;
|
|
1048
|
-
}
|
|
1049
|
-
function Ue(t) {
|
|
1050
|
-
const n = (t.sourceSvgId ?? t.key ?? "").trim().toLowerCase().replace(/_/g, "-");
|
|
1051
|
-
return n === "escalator" || n.startsWith("escalator-") ? "escalator" : n === "elevator" || n.startsWith("elevator-") ? "elevator" : null;
|
|
1052
|
-
}
|
|
1053
|
-
function Ve(t, n) {
|
|
1054
|
-
return Ue(t) ? n.has(t.id) : t.kind === "amenity" || t.kind === "kiosk_screen" ? M(t.assignment) : !0;
|
|
1055
|
-
}
|
|
1056
|
-
function hi(t, n, e) {
|
|
1057
|
-
return xn(n) ? Ve(t, e) : !0;
|
|
1058
|
-
}
|
|
1059
|
-
const bn = "#e2e8f0";
|
|
1060
|
-
function yi(t) {
|
|
1061
|
-
if (!t) return !1;
|
|
1062
|
-
const n = t.toLowerCase();
|
|
1063
|
-
return n === "amenity" || n.startsWith("amenity-");
|
|
1064
|
-
}
|
|
1065
|
-
function We(t) {
|
|
1066
|
-
var e;
|
|
1067
|
-
return ((e = t == null ? void 0 : t.GREEN_AREA_COLOR) == null ? void 0 : e.trim()) || H("green-area");
|
|
1068
|
-
}
|
|
1069
|
-
function Ze(t, n) {
|
|
1070
|
-
return t === "amenity" ? We(n) : bn;
|
|
1071
|
-
}
|
|
1072
|
-
function je(t, n, e, r) {
|
|
1073
|
-
if (t === "walkable") return n.WALKABLE_COLOR;
|
|
1074
|
-
if (Mt(t))
|
|
1075
|
-
return $t(r, Lt);
|
|
1076
|
-
if (t === "unit" || t === "custom")
|
|
1077
|
-
return $t(r, n.STORE_DEFAULT_COLOR);
|
|
1078
|
-
if (e) return e;
|
|
1079
|
-
switch (t) {
|
|
1080
|
-
case "wall":
|
|
1081
|
-
case "boundary":
|
|
1082
|
-
return n.WALL_COLOR;
|
|
1083
|
-
case "parking_zone":
|
|
1084
|
-
return n.PARKING_ZONE_COLOR;
|
|
1085
|
-
case "green_area":
|
|
1086
|
-
return n.GREEN_AREA_COLOR;
|
|
1087
|
-
case "water":
|
|
1088
|
-
return n.WATER_COLOR;
|
|
1089
|
-
case "floorplate":
|
|
1090
|
-
return n.BASE_COLOR;
|
|
1091
|
-
case "void":
|
|
1092
|
-
return "#00000000";
|
|
1093
|
-
default:
|
|
1094
|
-
return bn;
|
|
920
|
+
for (const o of t) {
|
|
921
|
+
if (o.kind !== "escalator" && o.kind !== "elevator") continue;
|
|
922
|
+
const i = n.get(o.id);
|
|
923
|
+
!i || i.size < 2 || (r[o.kind] = !0);
|
|
1095
924
|
}
|
|
925
|
+
return r;
|
|
1096
926
|
}
|
|
1097
|
-
function
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
return /^https?:\/\//i.test(t.trim());
|
|
927
|
+
function fi(t, e) {
|
|
928
|
+
var r;
|
|
929
|
+
if (!t || e == null) return null;
|
|
930
|
+
const n = (r = t.graph) == null ? void 0 : r.nodes.find((o) => o.id === e);
|
|
931
|
+
if (n) return n.levelId;
|
|
932
|
+
for (const o of t.levels ?? [])
|
|
933
|
+
if (o.anchors.some((i) => i.id === e)) return o.id;
|
|
934
|
+
return null;
|
|
1106
935
|
}
|
|
1107
|
-
function
|
|
1108
|
-
|
|
936
|
+
function di(t) {
|
|
937
|
+
const { fromLevelId: e, toLevelId: n, availability: r } = t;
|
|
938
|
+
return e == null || n == null || e === n ? !1 : r.escalator && r.elevator;
|
|
1109
939
|
}
|
|
1110
|
-
function
|
|
1111
|
-
return t.map((
|
|
940
|
+
function hi(t, e) {
|
|
941
|
+
return t.map((n) => ({ x: n.x, y: e - n.y }));
|
|
1112
942
|
}
|
|
1113
|
-
function
|
|
1114
|
-
const
|
|
1115
|
-
return Math.hypot(
|
|
943
|
+
function N(t, e) {
|
|
944
|
+
const n = t.x - e.x, r = t.y - e.y;
|
|
945
|
+
return Math.hypot(n, r);
|
|
1116
946
|
}
|
|
1117
|
-
function
|
|
947
|
+
function $n(t) {
|
|
1118
948
|
if (t.length === 0)
|
|
1119
949
|
return { minX: 0, minY: 0, maxX: 0, maxY: 0 };
|
|
1120
|
-
let
|
|
950
|
+
let e = t[0].x, n = t[0].y, r = t[0].x, o = t[0].y;
|
|
1121
951
|
for (let i = 1; i < t.length; i++) {
|
|
1122
952
|
const c = t[i];
|
|
1123
|
-
c.x <
|
|
953
|
+
c.x < e && (e = c.x), c.y < n && (n = c.y), c.x > r && (r = c.x), c.y > o && (o = c.y);
|
|
1124
954
|
}
|
|
1125
|
-
return { minX:
|
|
955
|
+
return { minX: e, minY: n, maxX: r, maxY: o };
|
|
1126
956
|
}
|
|
1127
|
-
function
|
|
957
|
+
function yi(t, e) {
|
|
1128
958
|
return {
|
|
1129
|
-
minX: Math.min(t.minX,
|
|
1130
|
-
minY: Math.min(t.minY,
|
|
1131
|
-
maxX: Math.max(t.maxX,
|
|
1132
|
-
maxY: Math.max(t.maxY,
|
|
959
|
+
minX: Math.min(t.minX, e.minX),
|
|
960
|
+
minY: Math.min(t.minY, e.minY),
|
|
961
|
+
maxX: Math.max(t.maxX, e.maxX),
|
|
962
|
+
maxY: Math.max(t.maxY, e.maxY)
|
|
1133
963
|
};
|
|
1134
964
|
}
|
|
1135
|
-
function
|
|
965
|
+
function Bn(t) {
|
|
1136
966
|
if (t.length === 0) return { x: 0, y: 0 };
|
|
1137
|
-
let
|
|
967
|
+
let e = 0, n = 0;
|
|
1138
968
|
for (const r of t)
|
|
1139
|
-
|
|
1140
|
-
return { x:
|
|
969
|
+
e += r.x, n += r.y;
|
|
970
|
+
return { x: e / t.length, y: n / t.length };
|
|
1141
971
|
}
|
|
1142
|
-
function
|
|
1143
|
-
let
|
|
1144
|
-
for (let r = 0, o =
|
|
1145
|
-
const i =
|
|
1146
|
-
c > t.y != s > t.y && t.x < (a - i) * (t.y - c) / (s - c + Number.EPSILON) + i && (
|
|
972
|
+
function Gn(t, e) {
|
|
973
|
+
let n = !1;
|
|
974
|
+
for (let r = 0, o = e.length - 1; r < e.length; o = r++) {
|
|
975
|
+
const i = e[r].x, c = e[r].y, a = e[o].x, s = e[o].y;
|
|
976
|
+
c > t.y != s > t.y && t.x < (a - i) * (t.y - c) / (s - c + Number.EPSILON) + i && (n = !n);
|
|
1147
977
|
}
|
|
1148
|
-
return
|
|
978
|
+
return n;
|
|
1149
979
|
}
|
|
1150
|
-
function
|
|
1151
|
-
return
|
|
980
|
+
function mi(t, e) {
|
|
981
|
+
return e.some((n) => Gn(t, n));
|
|
1152
982
|
}
|
|
1153
|
-
function at(t,
|
|
1154
|
-
const r =
|
|
983
|
+
function at(t, e, n) {
|
|
984
|
+
const r = n.x - e.x, o = n.y - e.y, i = r * r + o * o;
|
|
1155
985
|
if (i === 0)
|
|
1156
|
-
return { point: { ...
|
|
1157
|
-
let c = ((t.x -
|
|
986
|
+
return { point: { ...e }, t: 0, distance: N(t, e) };
|
|
987
|
+
let c = ((t.x - e.x) * r + (t.y - e.y) * o) / i;
|
|
1158
988
|
c = Math.max(0, Math.min(1, c));
|
|
1159
|
-
const a = { x:
|
|
1160
|
-
return { point: a, t: c, distance:
|
|
1161
|
-
}
|
|
1162
|
-
function
|
|
1163
|
-
if (
|
|
1164
|
-
let
|
|
1165
|
-
for (let r = 0; r <
|
|
1166
|
-
const o = at(t,
|
|
1167
|
-
(!
|
|
989
|
+
const a = { x: e.x + c * r, y: e.y + c * o };
|
|
990
|
+
return { point: a, t: c, distance: N(t, a) };
|
|
991
|
+
}
|
|
992
|
+
function pi(t, e) {
|
|
993
|
+
if (e.length < 2) return null;
|
|
994
|
+
let n = null;
|
|
995
|
+
for (let r = 0; r < e.length - 1; r++) {
|
|
996
|
+
const o = at(t, e[r], e[r + 1]);
|
|
997
|
+
(!n || o.distance < n.distance) && (n = { point: o.point, segmentIndex: r, distance: o.distance });
|
|
1168
998
|
}
|
|
1169
|
-
return
|
|
999
|
+
return n;
|
|
1170
1000
|
}
|
|
1171
|
-
function lt(t,
|
|
1001
|
+
function lt(t, e, n, r, o = 8) {
|
|
1172
1002
|
const i = [];
|
|
1173
1003
|
for (let c = 0; c <= o; c++) {
|
|
1174
1004
|
const a = c / o, s = 1 - a;
|
|
1175
1005
|
i.push({
|
|
1176
|
-
x: s * s * s * t.x + 3 * s * s * a *
|
|
1177
|
-
y: s * s * s * t.y + 3 * s * s * a *
|
|
1006
|
+
x: s * s * s * t.x + 3 * s * s * a * e.x + 3 * s * a * a * n.x + a * a * a * r.x,
|
|
1007
|
+
y: s * s * s * t.y + 3 * s * s * a * e.y + 3 * s * a * a * n.y + a * a * a * r.y
|
|
1178
1008
|
});
|
|
1179
1009
|
}
|
|
1180
1010
|
return i;
|
|
1181
1011
|
}
|
|
1182
|
-
function
|
|
1012
|
+
function Zt(t, e, n, r = 6) {
|
|
1183
1013
|
const o = [];
|
|
1184
1014
|
for (let i = 0; i <= r; i++) {
|
|
1185
1015
|
const c = i / r, a = 1 - c;
|
|
1186
1016
|
o.push({
|
|
1187
|
-
x: a * a * t.x + 2 * a * c *
|
|
1188
|
-
y: a * a * t.y + 2 * a * c *
|
|
1017
|
+
x: a * a * t.x + 2 * a * c * e.x + c * c * n.x,
|
|
1018
|
+
y: a * a * t.y + 2 * a * c * e.y + c * c * n.y
|
|
1189
1019
|
});
|
|
1190
1020
|
}
|
|
1191
1021
|
return o;
|
|
1192
1022
|
}
|
|
1193
|
-
const
|
|
1194
|
-
function
|
|
1023
|
+
const zn = 8;
|
|
1024
|
+
function Xn(t, e, n, r, o, i, c) {
|
|
1195
1025
|
if (t.x === c.x && t.y === c.y) return [{ ...t }];
|
|
1196
|
-
let a = Math.abs(
|
|
1026
|
+
let a = Math.abs(e), s = Math.abs(n);
|
|
1197
1027
|
if (a === 0 || s === 0 || !Number.isFinite(a) || !Number.isFinite(s))
|
|
1198
1028
|
return [{ ...t }, { ...c }];
|
|
1199
|
-
const
|
|
1029
|
+
const f = r % 360 * Math.PI / 180, y = Math.cos(f), l = Math.sin(f), b = (t.x - c.x) / 2, u = (t.y - c.y) / 2, h = y * b + l * u, d = -l * b + y * u, m = h * h / (a * a) + d * d / (s * s);
|
|
1200
1030
|
if (m > 1) {
|
|
1201
1031
|
const P = Math.sqrt(m);
|
|
1202
1032
|
a *= P, s *= P;
|
|
1203
1033
|
}
|
|
1204
|
-
const
|
|
1205
|
-
let
|
|
1206
|
-
!i &&
|
|
1207
|
-
const $ = Math.abs(
|
|
1034
|
+
const x = a * a, I = s * s, p = x * I - x * d * d - I * h * h, g = x * d * d + I * h * h, _ = Math.sqrt(Math.max(0, p / g)) * (o === i ? -1 : 1), A = _ * a * d / s, k = -_ * s * h / a, S = y * A - l * k + (t.x + c.x) / 2, v = l * A + y * k + (t.y + c.y) / 2, C = (h - A) / a, K = (d - k) / s, M = (-h - A) / a, Y = (-d - k) / s, E = Math.atan2(K, C);
|
|
1035
|
+
let R = Math.atan2(C * Y - K * M, C * M + K * Y);
|
|
1036
|
+
!i && R > 0 ? R -= 2 * Math.PI : i && R < 0 && (R += 2 * Math.PI);
|
|
1037
|
+
const $ = Math.abs(R) / (Math.PI / 2) * zn, B = Math.max(1, Math.round($)), w = [{ ...t }];
|
|
1208
1038
|
for (let P = 1; P <= B; P++) {
|
|
1209
|
-
const Q =
|
|
1039
|
+
const Q = E + R * P / B, J = Math.cos(Q), Ft = Math.sin(Q);
|
|
1210
1040
|
w.push({
|
|
1211
|
-
x:
|
|
1212
|
-
y:
|
|
1041
|
+
x: S + a * y * J - s * l * Ft,
|
|
1042
|
+
y: v + a * l * J + s * y * Ft
|
|
1213
1043
|
});
|
|
1214
1044
|
}
|
|
1215
1045
|
return w[w.length - 1] = { ...c }, w;
|
|
1216
1046
|
}
|
|
1217
|
-
const
|
|
1218
|
-
function
|
|
1219
|
-
const
|
|
1220
|
-
let
|
|
1221
|
-
for (;
|
|
1222
|
-
const i = t[
|
|
1223
|
-
if (
|
|
1224
|
-
|
|
1047
|
+
const Hn = /[\s,]/;
|
|
1048
|
+
function xe(t) {
|
|
1049
|
+
const e = [];
|
|
1050
|
+
let n = 0, r = "", o = 0;
|
|
1051
|
+
for (; n < t.length; ) {
|
|
1052
|
+
const i = t[n];
|
|
1053
|
+
if (Hn.test(i)) {
|
|
1054
|
+
n++;
|
|
1225
1055
|
continue;
|
|
1226
1056
|
}
|
|
1227
1057
|
if (i >= "a" && i <= "z" || i >= "A" && i <= "Z") {
|
|
1228
|
-
r = i, o = 0,
|
|
1058
|
+
r = i, o = 0, e.push(i), n++;
|
|
1229
1059
|
continue;
|
|
1230
1060
|
}
|
|
1231
1061
|
const c = r === "A" || r === "a" ? o % 7 : -1;
|
|
1232
1062
|
if ((c === 3 || c === 4) && (i === "0" || i === "1")) {
|
|
1233
|
-
|
|
1063
|
+
e.push(i), n++, o++;
|
|
1234
1064
|
continue;
|
|
1235
1065
|
}
|
|
1236
|
-
const a =
|
|
1066
|
+
const a = n;
|
|
1237
1067
|
let s = 0;
|
|
1238
|
-
for ((i === "+" || i === "-") &&
|
|
1239
|
-
|
|
1240
|
-
if (t[
|
|
1241
|
-
for (
|
|
1242
|
-
|
|
1243
|
-
if (s > 0 && (t[
|
|
1244
|
-
const
|
|
1245
|
-
if (
|
|
1246
|
-
for (;
|
|
1068
|
+
for ((i === "+" || i === "-") && n++; n < t.length && t[n] >= "0" && t[n] <= "9"; )
|
|
1069
|
+
n++, s++;
|
|
1070
|
+
if (t[n] === ".")
|
|
1071
|
+
for (n++; n < t.length && t[n] >= "0" && t[n] <= "9"; )
|
|
1072
|
+
n++, s++;
|
|
1073
|
+
if (s > 0 && (t[n] === "e" || t[n] === "E")) {
|
|
1074
|
+
const f = n;
|
|
1075
|
+
if (n++, (t[n] === "+" || t[n] === "-") && n++, n < t.length && t[n] >= "0" && t[n] <= "9")
|
|
1076
|
+
for (; n < t.length && t[n] >= "0" && t[n] <= "9"; ) n++;
|
|
1247
1077
|
else
|
|
1248
|
-
|
|
1078
|
+
n = f;
|
|
1249
1079
|
}
|
|
1250
1080
|
if (s === 0) {
|
|
1251
|
-
|
|
1081
|
+
n = a + 1;
|
|
1252
1082
|
continue;
|
|
1253
1083
|
}
|
|
1254
|
-
|
|
1084
|
+
e.push(t.slice(a, n)), o++;
|
|
1255
1085
|
}
|
|
1256
|
-
return
|
|
1086
|
+
return e;
|
|
1257
1087
|
}
|
|
1258
|
-
function
|
|
1259
|
-
const
|
|
1260
|
-
let r = [], o = 0, i = 0, c = 0, a = 0, s = null,
|
|
1261
|
-
const l = () => Number(
|
|
1262
|
-
for (;
|
|
1263
|
-
const
|
|
1264
|
-
switch (/[a-zA-Z]/.test(
|
|
1088
|
+
function be(t) {
|
|
1089
|
+
const e = xe(t), n = [];
|
|
1090
|
+
let r = [], o = 0, i = 0, c = 0, a = 0, s = null, f = 0, y = "";
|
|
1091
|
+
const l = () => Number(e[f++]);
|
|
1092
|
+
for (; f < e.length; ) {
|
|
1093
|
+
const b = e[f];
|
|
1094
|
+
switch (/[a-zA-Z]/.test(b) && (y = b, f++), y) {
|
|
1265
1095
|
case "M":
|
|
1266
1096
|
case "m": {
|
|
1267
|
-
const u = y === "m",
|
|
1268
|
-
o = u ? o +
|
|
1097
|
+
const u = y === "m", h = l(), d = l();
|
|
1098
|
+
o = u ? o + h : h, i = u ? i + d : d, r.length > 0 && n.push(r), r = [{ x: o, y: i }], c = o, a = i, s = null, y = u ? "l" : "L";
|
|
1269
1099
|
break;
|
|
1270
1100
|
}
|
|
1271
1101
|
case "L":
|
|
1272
1102
|
case "l": {
|
|
1273
|
-
const u = y === "l",
|
|
1274
|
-
o = u ? o +
|
|
1103
|
+
const u = y === "l", h = l(), d = l();
|
|
1104
|
+
o = u ? o + h : h, i = u ? i + d : d, r.push({ x: o, y: i }), s = null;
|
|
1275
1105
|
break;
|
|
1276
1106
|
}
|
|
1277
1107
|
case "H":
|
|
1278
1108
|
case "h": {
|
|
1279
|
-
const u = y === "h",
|
|
1280
|
-
o = u ? o +
|
|
1109
|
+
const u = y === "h", h = l();
|
|
1110
|
+
o = u ? o + h : h, r.push({ x: o, y: i }), s = null;
|
|
1281
1111
|
break;
|
|
1282
1112
|
}
|
|
1283
1113
|
case "V":
|
|
1284
1114
|
case "v": {
|
|
1285
|
-
const u = y === "v",
|
|
1286
|
-
i = u ? i +
|
|
1115
|
+
const u = y === "v", h = l();
|
|
1116
|
+
i = u ? i + h : h, r.push({ x: o, y: i }), s = null;
|
|
1287
1117
|
break;
|
|
1288
1118
|
}
|
|
1289
1119
|
case "C":
|
|
1290
1120
|
case "c": {
|
|
1291
|
-
const u = y === "c",
|
|
1121
|
+
const u = y === "c", h = u ? o + l() : l(), d = u ? i + l() : l(), m = u ? o + l() : l(), x = u ? i + l() : l(), I = u ? o + l() : l(), p = u ? i + l() : l(), g = lt(
|
|
1292
1122
|
{ x: o, y: i },
|
|
1293
|
-
{ x:
|
|
1294
|
-
{ x: m, y:
|
|
1123
|
+
{ x: h, y: d },
|
|
1124
|
+
{ x: m, y: x },
|
|
1295
1125
|
{ x: I, y: p }
|
|
1296
1126
|
);
|
|
1297
|
-
r.push(...g.slice(1)), s = { x: m, y:
|
|
1127
|
+
r.push(...g.slice(1)), s = { x: m, y: x }, o = I, i = p;
|
|
1298
1128
|
break;
|
|
1299
1129
|
}
|
|
1300
1130
|
case "Q":
|
|
1301
1131
|
case "q": {
|
|
1302
|
-
const u = y === "q",
|
|
1132
|
+
const u = y === "q", h = u ? o + l() : l(), d = u ? i + l() : l(), m = u ? o + l() : l(), x = u ? i + l() : l(), I = Zt(
|
|
1303
1133
|
{ x: o, y: i },
|
|
1304
|
-
{ x:
|
|
1305
|
-
{ x: m, y:
|
|
1134
|
+
{ x: h, y: d },
|
|
1135
|
+
{ x: m, y: x }
|
|
1306
1136
|
);
|
|
1307
|
-
r.push(...I.slice(1)), s = { x:
|
|
1137
|
+
r.push(...I.slice(1)), s = { x: h, y: d }, o = m, i = x;
|
|
1308
1138
|
break;
|
|
1309
1139
|
}
|
|
1310
1140
|
case "S":
|
|
1311
1141
|
case "s": {
|
|
1312
|
-
const u = y === "s",
|
|
1142
|
+
const u = y === "s", h = s ? 2 * o - s.x : o, d = s ? 2 * i - s.y : i, m = u ? o + l() : l(), x = u ? i + l() : l(), I = u ? o + l() : l(), p = u ? i + l() : l(), g = lt(
|
|
1313
1143
|
{ x: o, y: i },
|
|
1314
|
-
{ x:
|
|
1315
|
-
{ x: m, y:
|
|
1144
|
+
{ x: h, y: d },
|
|
1145
|
+
{ x: m, y: x },
|
|
1316
1146
|
{ x: I, y: p }
|
|
1317
1147
|
);
|
|
1318
|
-
r.push(...g.slice(1)), s = { x: m, y:
|
|
1148
|
+
r.push(...g.slice(1)), s = { x: m, y: x }, o = I, i = p;
|
|
1319
1149
|
break;
|
|
1320
1150
|
}
|
|
1321
1151
|
case "T":
|
|
1322
1152
|
case "t": {
|
|
1323
|
-
const u = y === "t",
|
|
1153
|
+
const u = y === "t", h = s ? 2 * o - s.x : o, d = s ? 2 * i - s.y : i, m = u ? o + l() : l(), x = u ? i + l() : l(), I = Zt(
|
|
1324
1154
|
{ x: o, y: i },
|
|
1325
|
-
{ x:
|
|
1326
|
-
{ x: m, y:
|
|
1155
|
+
{ x: h, y: d },
|
|
1156
|
+
{ x: m, y: x }
|
|
1327
1157
|
);
|
|
1328
|
-
r.push(...I.slice(1)), s = { x:
|
|
1158
|
+
r.push(...I.slice(1)), s = { x: h, y: d }, o = m, i = x;
|
|
1329
1159
|
break;
|
|
1330
1160
|
}
|
|
1331
1161
|
case "A":
|
|
1332
1162
|
case "a": {
|
|
1333
|
-
const u = y === "a",
|
|
1163
|
+
const u = y === "a", h = l(), d = l(), m = l(), x = l() !== 0, I = l() !== 0, p = u ? o + l() : l(), g = u ? i + l() : l(), _ = Xn(
|
|
1334
1164
|
{ x: o, y: i },
|
|
1165
|
+
h,
|
|
1335
1166
|
d,
|
|
1336
|
-
f,
|
|
1337
1167
|
m,
|
|
1338
|
-
|
|
1168
|
+
x,
|
|
1339
1169
|
I,
|
|
1340
1170
|
{ x: p, y: g }
|
|
1341
1171
|
);
|
|
@@ -1344,304 +1174,939 @@ function gn(t) {
|
|
|
1344
1174
|
}
|
|
1345
1175
|
case "Z":
|
|
1346
1176
|
case "z": {
|
|
1347
|
-
r.push({ x: c, y: a }),
|
|
1177
|
+
r.push({ x: c, y: a }), n.push(r), r = [], o = c, i = a, s = null;
|
|
1348
1178
|
break;
|
|
1349
1179
|
}
|
|
1350
1180
|
default:
|
|
1351
|
-
|
|
1181
|
+
f++;
|
|
1352
1182
|
break;
|
|
1353
1183
|
}
|
|
1354
1184
|
}
|
|
1355
|
-
return r.length > 0 &&
|
|
1185
|
+
return r.length > 0 && n.push(r), n;
|
|
1356
1186
|
}
|
|
1357
|
-
function
|
|
1358
|
-
const
|
|
1187
|
+
function Un(t) {
|
|
1188
|
+
const e = t.match(
|
|
1359
1189
|
/^\s*M\s*(-?\d*\.?\d+(?:e[-+]?\d+)?)[\s,]+(-?\d*\.?\d+(?:e[-+]?\d+)?)/i
|
|
1360
1190
|
);
|
|
1361
|
-
if (!
|
|
1362
|
-
const
|
|
1363
|
-
return Number.isFinite(
|
|
1191
|
+
if (!e) return null;
|
|
1192
|
+
const n = Number(e[1]), r = Number(e[2]);
|
|
1193
|
+
return Number.isFinite(n) && Number.isFinite(r) ? { x: n, y: r } : null;
|
|
1364
1194
|
}
|
|
1365
|
-
function
|
|
1195
|
+
function Vn(t) {
|
|
1366
1196
|
var o, i;
|
|
1367
|
-
const
|
|
1368
|
-
if (!
|
|
1369
|
-
const
|
|
1370
|
-
return !
|
|
1371
|
-
}
|
|
1372
|
-
function
|
|
1373
|
-
if (!
|
|
1374
|
-
const
|
|
1375
|
-
return
|
|
1376
|
-
}
|
|
1377
|
-
function
|
|
1378
|
-
const
|
|
1197
|
+
const e = (o = t.paths[0]) == null ? void 0 : o.d;
|
|
1198
|
+
if (!e || t.polygons.length === 0) return !1;
|
|
1199
|
+
const n = Un(e), r = (i = t.polygons[0]) == null ? void 0 : i[0];
|
|
1200
|
+
return !n || !r ? !1 : Math.abs(n.x - r.x) > 0.01 || Math.abs(n.y - r.y) > 0.01;
|
|
1201
|
+
}
|
|
1202
|
+
function Ie(t) {
|
|
1203
|
+
if (!Vn(t)) return t;
|
|
1204
|
+
const e = t.paths.flatMap((n) => be(n.d));
|
|
1205
|
+
return e.length === 0 ? t : { paths: t.paths, polygons: e };
|
|
1206
|
+
}
|
|
1207
|
+
function Wn(t) {
|
|
1208
|
+
const e = t.map((r) => ({
|
|
1379
1209
|
d: r,
|
|
1380
1210
|
closed: /z/i.test(r)
|
|
1381
|
-
})),
|
|
1382
|
-
return { paths:
|
|
1211
|
+
})), n = t.flatMap((r) => be(r));
|
|
1212
|
+
return { paths: e, polygons: n };
|
|
1383
1213
|
}
|
|
1384
|
-
function
|
|
1385
|
-
const
|
|
1386
|
-
return
|
|
1387
|
-
}
|
|
1388
|
-
function
|
|
1389
|
-
return
|
|
1390
|
-
}
|
|
1391
|
-
function
|
|
1392
|
-
const o =
|
|
1393
|
-
if (c === 0) return { ...
|
|
1394
|
-
const s = Math.atan2(i, o) * 180 / Math.PI -
|
|
1395
|
-
let
|
|
1396
|
-
for (const
|
|
1397
|
-
const u = Math.round(s /
|
|
1398
|
-
|
|
1214
|
+
function Mt(t) {
|
|
1215
|
+
const e = t.polygons.flat();
|
|
1216
|
+
return $n(e);
|
|
1217
|
+
}
|
|
1218
|
+
function Zn(t) {
|
|
1219
|
+
return Bn(t.polygons.flat());
|
|
1220
|
+
}
|
|
1221
|
+
function xi(t, e, n = 0, r = [15, 45, 90]) {
|
|
1222
|
+
const o = e.x - t.x, i = e.y - t.y, c = Math.hypot(o, i);
|
|
1223
|
+
if (c === 0) return { ...e };
|
|
1224
|
+
const s = Math.atan2(i, o) * 180 / Math.PI - n;
|
|
1225
|
+
let f = s, y = 1 / 0;
|
|
1226
|
+
for (const b of r) {
|
|
1227
|
+
const u = Math.round(s / b) * b, h = Math.abs(s - u);
|
|
1228
|
+
h < y && (y = h, f = u);
|
|
1399
1229
|
}
|
|
1400
|
-
const l = (
|
|
1230
|
+
const l = (f + n) * Math.PI / 180;
|
|
1401
1231
|
return {
|
|
1402
1232
|
x: t.x + Math.cos(l) * c,
|
|
1403
1233
|
y: t.y + Math.sin(l) * c
|
|
1404
1234
|
};
|
|
1405
1235
|
}
|
|
1406
|
-
function
|
|
1407
|
-
return Math.atan2(
|
|
1236
|
+
function bi(t, e) {
|
|
1237
|
+
return Math.atan2(e.y - t.y, e.x - t.x) * 180 / Math.PI;
|
|
1408
1238
|
}
|
|
1409
|
-
function
|
|
1239
|
+
function jn(t) {
|
|
1410
1240
|
if (!t) return null;
|
|
1411
|
-
const
|
|
1412
|
-
return
|
|
1241
|
+
const e = t.trim().split(/[\s,]+/).map(Number);
|
|
1242
|
+
return e.length !== 4 || e.some((n) => Number.isNaN(n)) ? null : { x: e[0], y: e[1], width: e[2], height: e[3] };
|
|
1413
1243
|
}
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
"fill-opacity": "fill-opacity",
|
|
1417
|
-
stroke: "stroke",
|
|
1418
|
-
"stroke-width": "stroke-width",
|
|
1419
|
-
"stroke-opacity": "stroke-opacity",
|
|
1420
|
-
opacity: "opacity"
|
|
1421
|
-
};
|
|
1422
|
-
function ur(t) {
|
|
1423
|
-
const n = {};
|
|
1424
|
-
for (const e of t.split(";")) {
|
|
1425
|
-
const r = e.indexOf(":");
|
|
1426
|
-
if (r === -1) continue;
|
|
1427
|
-
const o = e.slice(0, r).trim().toLowerCase(), i = e.slice(r + 1).trim();
|
|
1428
|
-
o && i && (n[o] = i);
|
|
1429
|
-
}
|
|
1430
|
-
return n;
|
|
1244
|
+
function z(t, e, n) {
|
|
1245
|
+
return { x: t.x + (e.x - t.x) * n, y: t.y + (e.y - t.y) * n };
|
|
1431
1246
|
}
|
|
1432
|
-
function
|
|
1433
|
-
|
|
1434
|
-
for (const r of e.matchAll(/([^{]+)\{([^}]*)\}/g)) {
|
|
1435
|
-
const o = r[1].split(",").map((c) => c.trim()), i = ur(r[2]);
|
|
1436
|
-
for (const c of o) {
|
|
1437
|
-
const a = c.match(/^\.([a-zA-Z0-9_-]+)$/);
|
|
1438
|
-
if (!a) continue;
|
|
1439
|
-
const s = a[1];
|
|
1440
|
-
n.set(s, {
|
|
1441
|
-
...n.get(s) || {},
|
|
1442
|
-
...i
|
|
1443
|
-
});
|
|
1444
|
-
}
|
|
1445
|
-
}
|
|
1446
|
-
return n;
|
|
1247
|
+
function tt(t, e) {
|
|
1248
|
+
return { x: t.x + e.x, y: t.y + e.y };
|
|
1447
1249
|
}
|
|
1448
|
-
function
|
|
1449
|
-
|
|
1450
|
-
for (const r of t.split(/\s+/).map((o) => o.trim()).filter(Boolean))
|
|
1451
|
-
Object.assign(e, n.get(r) || {});
|
|
1452
|
-
return e;
|
|
1250
|
+
function jt(t, e) {
|
|
1251
|
+
return { x: t.x - e.x, y: t.y - e.y };
|
|
1453
1252
|
}
|
|
1454
|
-
function
|
|
1455
|
-
|
|
1456
|
-
for (const o of e.matchAll(/<style\b[^>]*>([\s\S]*?)<\/style>/gi))
|
|
1457
|
-
n.push(o[1]);
|
|
1458
|
-
if (n.length === 0) return t;
|
|
1459
|
-
const r = /* @__PURE__ */ new Map();
|
|
1460
|
-
for (const o of n)
|
|
1461
|
-
for (const [i, c] of fr(o))
|
|
1462
|
-
r.set(i, { ...r.get(i) || {}, ...c });
|
|
1463
|
-
return r.size === 0 ? t : t.replace(
|
|
1464
|
-
/<(path|polygon|polyline|line|rect|g|circle|ellipse)\b([^>]*)>/gi,
|
|
1465
|
-
(o, i, c) => {
|
|
1466
|
-
const a = /\/\s*$/.test(c), s = c.replace(/\/\s*$/, ""), h = s.match(/\bclass\s*=\s*["']([^"']*)["']/i);
|
|
1467
|
-
if (!h) return o;
|
|
1468
|
-
const y = dr(h[1], r);
|
|
1469
|
-
let l = s;
|
|
1470
|
-
for (const [x, u] of Object.entries(y)) {
|
|
1471
|
-
const d = lr[x];
|
|
1472
|
-
d && (new RegExp(`\\b${d}\\s*=`, "i").test(l) || (l += ` ${d}="${u}"`));
|
|
1473
|
-
}
|
|
1474
|
-
return `<${i}${l}${a ? " /" : ""}>`;
|
|
1475
|
-
}
|
|
1476
|
-
);
|
|
1253
|
+
function gt(t, e) {
|
|
1254
|
+
return { x: t.x * e, y: t.y * e };
|
|
1477
1255
|
}
|
|
1478
|
-
function
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1256
|
+
function q(t) {
|
|
1257
|
+
const e = t == null ? void 0 : t.curve;
|
|
1258
|
+
if (!(e != null && e.c1) || !(e != null && e.c2)) return null;
|
|
1259
|
+
const n = Number(e.c1.x), r = Number(e.c1.y), o = Number(e.c2.x), i = Number(e.c2.y);
|
|
1260
|
+
return [n, r, o, i].every((c) => Number.isFinite(c)) ? {
|
|
1261
|
+
c1: { x: n, y: r },
|
|
1262
|
+
c2: { x: o, y: i }
|
|
1263
|
+
} : null;
|
|
1482
1264
|
}
|
|
1483
|
-
function
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1265
|
+
function Ii(t) {
|
|
1266
|
+
const e = q(t);
|
|
1267
|
+
return e || ([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(
|
|
1268
|
+
(r) => r == null || !Number.isFinite(Number(r))
|
|
1269
|
+
) ? null : {
|
|
1270
|
+
c1: { x: Number(t.c1_x), y: Number(t.c1_y) },
|
|
1271
|
+
c2: { x: Number(t.c2_x), y: Number(t.c2_y) }
|
|
1272
|
+
});
|
|
1490
1273
|
}
|
|
1491
|
-
|
|
1492
|
-
function j(t, n) {
|
|
1274
|
+
function qn(t) {
|
|
1493
1275
|
return {
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
c: t.a * n.c + t.c * n.d,
|
|
1497
|
-
d: t.b * n.c + t.d * n.d,
|
|
1498
|
-
e: t.a * n.e + t.c * n.f + t.e,
|
|
1499
|
-
f: t.b * n.e + t.d * n.f + t.f
|
|
1276
|
+
c1: { x: t.c2.x, y: t.c2.y },
|
|
1277
|
+
c2: { x: t.c1.x, y: t.c1.y }
|
|
1500
1278
|
};
|
|
1501
1279
|
}
|
|
1502
|
-
function
|
|
1280
|
+
function gi(t, e, n) {
|
|
1281
|
+
const r = z(t, e, 0.5), o = gt(jt(n, r), 4 / 3), i = jt(e, t);
|
|
1503
1282
|
return {
|
|
1504
|
-
|
|
1505
|
-
|
|
1283
|
+
c1: tt(tt(t, gt(i, 1 / 3)), o),
|
|
1284
|
+
c2: tt(tt(t, gt(i, 2 / 3)), o)
|
|
1506
1285
|
};
|
|
1507
1286
|
}
|
|
1508
|
-
function
|
|
1509
|
-
return
|
|
1287
|
+
function _i(t, e, n) {
|
|
1288
|
+
return e === 1 ? { ...t, c1: { x: n.x, y: n.y } } : { ...t, c2: { x: n.x, y: n.y } };
|
|
1510
1289
|
}
|
|
1511
|
-
function
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1290
|
+
function Oi(t, e, n) {
|
|
1291
|
+
const r = q(t);
|
|
1292
|
+
if (!r) return null;
|
|
1293
|
+
const o = t.fromAnchorId === e, i = t.toAnchorId === e;
|
|
1294
|
+
return !o && !i ? null : {
|
|
1295
|
+
c1: o ? { x: r.c1.x + n.x, y: r.c1.y + n.y } : { x: r.c1.x, y: r.c1.y },
|
|
1296
|
+
c2: i ? { x: r.c2.x + n.x, y: r.c2.y + n.y } : { x: r.c2.x, y: r.c2.y }
|
|
1297
|
+
};
|
|
1517
1298
|
}
|
|
1518
|
-
function
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
if (n.length < 1) return null;
|
|
1531
|
-
const e = pr(n[0]);
|
|
1532
|
-
if (n.length < 3) return e;
|
|
1533
|
-
const r = n[1], o = n[2];
|
|
1534
|
-
return j(
|
|
1535
|
-
j(_t(r, o), e),
|
|
1536
|
-
_t(-r, -o)
|
|
1537
|
-
);
|
|
1299
|
+
function ki(t, e, n) {
|
|
1300
|
+
const r = q(t);
|
|
1301
|
+
if (!r) return null;
|
|
1302
|
+
const o = e.get(t.fromAnchorId), i = e.get(t.toAnchorId), c = n.get(t.fromAnchorId), a = n.get(t.toAnchorId);
|
|
1303
|
+
return !o || !i || !c || !a ? r : {
|
|
1304
|
+
c1: {
|
|
1305
|
+
x: r.c1.x + c.x - o.x,
|
|
1306
|
+
y: r.c1.y + c.y - o.y
|
|
1307
|
+
},
|
|
1308
|
+
c2: {
|
|
1309
|
+
x: r.c2.x + a.x - i.x,
|
|
1310
|
+
y: r.c2.y + a.y - i.y
|
|
1538
1311
|
}
|
|
1539
|
-
|
|
1540
|
-
return n.length < 1 ? null : { a: 1, b: 0, c: Math.tan(n[0] * Math.PI / 180), d: 1, e: 0, f: 0 };
|
|
1541
|
-
case "skewy":
|
|
1542
|
-
return n.length < 1 ? null : { a: 1, b: Math.tan(n[0] * Math.PI / 180), c: 0, d: 1, e: 0, f: 0 };
|
|
1543
|
-
default:
|
|
1544
|
-
return null;
|
|
1545
|
-
}
|
|
1312
|
+
};
|
|
1546
1313
|
}
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
if (!t) return Et;
|
|
1550
|
-
let n = Et;
|
|
1551
|
-
jt.lastIndex = 0;
|
|
1552
|
-
let e;
|
|
1553
|
-
for (; (e = jt.exec(t)) !== null; ) {
|
|
1554
|
-
const r = e[1].toLowerCase(), o = e[2].trim().split(/[\s,]+/).filter(Boolean).map(Number);
|
|
1555
|
-
if (o.some((c) => Number.isNaN(c))) continue;
|
|
1556
|
-
const i = xr(r, o);
|
|
1557
|
-
i && (n = j(n, i));
|
|
1558
|
-
}
|
|
1559
|
-
return n;
|
|
1314
|
+
function Ai(t, e, n) {
|
|
1315
|
+
return n ? `M ${t.x} ${t.y} C ${n.c1.x} ${n.c1.y} ${n.c2.x} ${n.c2.y} ${e.x} ${e.y}` : `M ${t.x} ${t.y} L ${e.x} ${e.y}`;
|
|
1560
1316
|
}
|
|
1561
|
-
function
|
|
1562
|
-
if (!
|
|
1563
|
-
const
|
|
1564
|
-
|
|
1317
|
+
function ge(t, e, n) {
|
|
1318
|
+
if (!n) return N(t, e);
|
|
1319
|
+
const r = lt(t, n.c1, n.c2, e, 16);
|
|
1320
|
+
let o = 0;
|
|
1321
|
+
for (let i = 1; i < r.length; i += 1)
|
|
1322
|
+
o += N(r[i - 1], r[i]);
|
|
1323
|
+
return o;
|
|
1565
1324
|
}
|
|
1566
|
-
function
|
|
1567
|
-
|
|
1568
|
-
|
|
1325
|
+
function Qn(t, e, n, r) {
|
|
1326
|
+
if (!r) return at(t, e, n);
|
|
1327
|
+
const o = lt(e, r.c1, r.c2, n, 24), i = Math.max(o.length - 1, 1);
|
|
1328
|
+
let c = {
|
|
1329
|
+
point: { x: e.x, y: e.y },
|
|
1330
|
+
t: 0,
|
|
1331
|
+
distance: N(t, e)
|
|
1332
|
+
};
|
|
1333
|
+
for (let a = 1; a < o.length; a += 1) {
|
|
1334
|
+
const s = at(t, o[a - 1], o[a]);
|
|
1335
|
+
s.distance < c.distance && (c = {
|
|
1336
|
+
point: s.point,
|
|
1337
|
+
t: (a - 1 + s.t) / i,
|
|
1338
|
+
distance: s.distance
|
|
1339
|
+
});
|
|
1340
|
+
}
|
|
1341
|
+
return c;
|
|
1342
|
+
}
|
|
1343
|
+
function Jn(t, e, n, r, o) {
|
|
1344
|
+
const i = z(t, e, o), c = z(e, n, o), a = z(n, r, o), s = z(i, c, o), f = z(c, a, o), y = z(s, f, o);
|
|
1345
|
+
return {
|
|
1346
|
+
left: { c1: i, c2: s },
|
|
1347
|
+
right: { c1: f, c2: a },
|
|
1348
|
+
point: y
|
|
1349
|
+
};
|
|
1350
|
+
}
|
|
1351
|
+
function Si(t, e, n, r) {
|
|
1352
|
+
if (!n)
|
|
1353
|
+
return { point: at(r, t, e).point, left: null, right: null };
|
|
1354
|
+
const o = Qn(r, t, e, n), i = Math.min(1, Math.max(0, o.t)), c = Jn(t, n.c1, n.c2, e, i);
|
|
1355
|
+
return { point: c.point, left: c.left, right: c.right };
|
|
1356
|
+
}
|
|
1357
|
+
function tr(t, e, n) {
|
|
1358
|
+
const r = t.connectorId ?? e.connectorId;
|
|
1359
|
+
return r == null ? void 0 : n.get(r);
|
|
1360
|
+
}
|
|
1361
|
+
function er(t, e, n, r) {
|
|
1362
|
+
var o;
|
|
1363
|
+
return e.levelId === n.levelId ? !0 : t.kind !== "connector" ? !1 : Ge(
|
|
1364
|
+
(o = tr(e, n, r)) == null ? void 0 : o.kind
|
|
1365
|
+
);
|
|
1366
|
+
}
|
|
1367
|
+
function nr(t, e, n = []) {
|
|
1368
|
+
const r = Ee(), o = new Map(t.map((f) => [f.id, f])), i = new Map(n.map((f) => [f.id, f])), c = t.map((f) => ({
|
|
1369
|
+
id: f.id,
|
|
1370
|
+
levelId: f.levelId,
|
|
1371
|
+
x: f.x,
|
|
1372
|
+
y: f.y,
|
|
1373
|
+
kind: f.kind,
|
|
1374
|
+
shapeId: f.shapeId,
|
|
1375
|
+
connectorId: f.connectorId
|
|
1376
|
+
}));
|
|
1377
|
+
for (const f of c)
|
|
1378
|
+
r.addNode(f.id, f);
|
|
1379
|
+
const a = [];
|
|
1380
|
+
for (const f of e) {
|
|
1381
|
+
const y = o.get(f.fromAnchorId), l = o.get(f.toAnchorId);
|
|
1382
|
+
if (!y || !l || !er(f, y, l, i)) continue;
|
|
1383
|
+
const b = q(f);
|
|
1384
|
+
let u = f.weight;
|
|
1385
|
+
u == null && (u = ge(y, l, b), y.levelId !== l.levelId && (u += Ct));
|
|
1386
|
+
let h = f.accessible;
|
|
1387
|
+
if (f.kind === "connector" && y.connectorId != null) {
|
|
1388
|
+
const m = i.get(y.connectorId);
|
|
1389
|
+
m && (h = m.accessible);
|
|
1390
|
+
}
|
|
1391
|
+
const d = {
|
|
1392
|
+
id: f.id,
|
|
1393
|
+
from: f.fromAnchorId,
|
|
1394
|
+
to: f.toAnchorId,
|
|
1395
|
+
weight: u,
|
|
1396
|
+
directed: f.directed,
|
|
1397
|
+
accessible: h,
|
|
1398
|
+
kind: f.kind,
|
|
1399
|
+
curve: b
|
|
1400
|
+
};
|
|
1401
|
+
a.push(d), r.addLink(f.fromAnchorId, f.toAnchorId, d), f.directed || r.addLink(f.toAnchorId, f.fromAnchorId, d);
|
|
1402
|
+
}
|
|
1403
|
+
const s = new Map(n.map((f) => [f.id, f.kind]));
|
|
1404
|
+
return { graph: r, nodes: c, edges: a, anchorById: o, connectorKindById: s };
|
|
1405
|
+
}
|
|
1406
|
+
function rr(t, e, n, r) {
|
|
1407
|
+
const o = t.anchorById.get(e), i = t.anchorById.get(n);
|
|
1408
|
+
if (!o || !i || o.levelId === i.levelId) return !1;
|
|
1409
|
+
const c = o.connectorId ?? i.connectorId;
|
|
1410
|
+
return c == null ? !0 : t.connectorKindById.get(c) !== r;
|
|
1411
|
+
}
|
|
1412
|
+
function or(t, e, n, r = {}) {
|
|
1413
|
+
const { graph: o, anchorById: i } = t;
|
|
1414
|
+
if (!i.has(e) || !i.has(n))
|
|
1415
|
+
return null;
|
|
1416
|
+
const a = Le.nba(o, {
|
|
1417
|
+
oriented: !0,
|
|
1418
|
+
distance(h, d, m) {
|
|
1419
|
+
const x = m.data;
|
|
1420
|
+
return r.verticalTransport && rr(
|
|
1421
|
+
t,
|
|
1422
|
+
h.id,
|
|
1423
|
+
d.id,
|
|
1424
|
+
r.verticalTransport
|
|
1425
|
+
) || r.accessibleOnly && x && !x.accessible ? Number.POSITIVE_INFINITY : (x == null ? void 0 : x.weight) ?? 1;
|
|
1426
|
+
},
|
|
1427
|
+
heuristic(h, d) {
|
|
1428
|
+
const m = i.get(h.id), x = i.get(d.id);
|
|
1429
|
+
if (!m || !x) return 0;
|
|
1430
|
+
let I = N(m, x);
|
|
1431
|
+
return m.levelId !== x.levelId && (I += Ct), I;
|
|
1432
|
+
}
|
|
1433
|
+
}).find(e, n);
|
|
1434
|
+
if (!a || a.length === 0) return null;
|
|
1435
|
+
const f = a.reverse().map((h) => h.id), y = [], l = [], b = [];
|
|
1436
|
+
let u = 0;
|
|
1437
|
+
for (let h = 0; h < f.length; h++) {
|
|
1438
|
+
const d = i.get(f[h]);
|
|
1439
|
+
if (y.push({ x: d.x, y: d.y, levelId: d.levelId }), h > 0) {
|
|
1440
|
+
const m = f[h - 1], x = i.get(m), I = ir(t, m, f[h]);
|
|
1441
|
+
l.push(I), u += ge(x, d, I), x.levelId !== d.levelId && (u += Ct, b.push({
|
|
1442
|
+
fromLevelId: x.levelId,
|
|
1443
|
+
toLevelId: d.levelId,
|
|
1444
|
+
connectorId: d.connectorId ?? x.connectorId
|
|
1445
|
+
}));
|
|
1446
|
+
}
|
|
1447
|
+
}
|
|
1448
|
+
return { anchorIds: f, points: y, curves: l, totalWeight: u, levelChanges: b };
|
|
1449
|
+
}
|
|
1450
|
+
function ir(t, e, n) {
|
|
1451
|
+
const r = t.edges.find(
|
|
1452
|
+
(i) => i.from === e && i.to === n || !i.directed && i.from === n && i.to === e
|
|
1453
|
+
), o = q(r);
|
|
1454
|
+
return !o || !r ? null : r.from === e ? o : qn(o);
|
|
1455
|
+
}
|
|
1456
|
+
function vt(t) {
|
|
1457
|
+
const e = /* @__PURE__ */ new Set(), n = [];
|
|
1458
|
+
for (const r of t)
|
|
1459
|
+
!Number.isFinite(r) || e.has(r) || (e.add(r), n.push(r));
|
|
1460
|
+
return n;
|
|
1461
|
+
}
|
|
1462
|
+
function Ri(t, e) {
|
|
1463
|
+
return t.filter((n) => n.shapeId === e).map((n) => n.id);
|
|
1464
|
+
}
|
|
1465
|
+
function sr(t, e) {
|
|
1466
|
+
const n = [];
|
|
1467
|
+
for (const r of t) {
|
|
1468
|
+
const o = /* @__PURE__ */ new Set();
|
|
1469
|
+
for (const i of r.shapes)
|
|
1470
|
+
e(i) && o.add(i.id);
|
|
1471
|
+
if (o.size !== 0)
|
|
1472
|
+
for (const i of r.anchors)
|
|
1473
|
+
i.shapeId != null && o.has(i.shapeId) && n.push(i.id);
|
|
1474
|
+
}
|
|
1475
|
+
return n;
|
|
1476
|
+
}
|
|
1477
|
+
function cr(t, e) {
|
|
1478
|
+
const n = t.anchorById.get(e);
|
|
1479
|
+
if (!n) return [];
|
|
1480
|
+
if (n.shapeId == null) return [e];
|
|
1481
|
+
const r = t.nodes.filter((o) => o.shapeId === n.shapeId).map((o) => o.id);
|
|
1482
|
+
return r.length > 0 ? r : [e];
|
|
1483
|
+
}
|
|
1484
|
+
function qt(t, e) {
|
|
1485
|
+
const n = /* @__PURE__ */ new Set();
|
|
1486
|
+
for (const r of vt(e))
|
|
1487
|
+
for (const o of cr(t, r))
|
|
1488
|
+
n.add(o);
|
|
1489
|
+
return [...n];
|
|
1490
|
+
}
|
|
1491
|
+
function ar(t, e, n, r = {}) {
|
|
1492
|
+
const o = vt(e), i = vt(n);
|
|
1493
|
+
if (o.length === 0 || i.length === 0) return null;
|
|
1494
|
+
let c = null;
|
|
1495
|
+
for (const a of o)
|
|
1496
|
+
for (const s of i) {
|
|
1497
|
+
const f = or(t, a, s, r);
|
|
1498
|
+
f && (!c || f.totalWeight < c.totalWeight) && (c = f);
|
|
1499
|
+
}
|
|
1500
|
+
return c;
|
|
1501
|
+
}
|
|
1502
|
+
function lr(t, e, n, r = {}) {
|
|
1503
|
+
return ar(
|
|
1504
|
+
t,
|
|
1505
|
+
qt(t, e),
|
|
1506
|
+
qt(t, n),
|
|
1507
|
+
r
|
|
1508
|
+
);
|
|
1509
|
+
}
|
|
1510
|
+
function ur(t, e, n, r = {}) {
|
|
1511
|
+
return lr(
|
|
1512
|
+
t,
|
|
1513
|
+
[e],
|
|
1514
|
+
n,
|
|
1515
|
+
r
|
|
1516
|
+
);
|
|
1517
|
+
}
|
|
1518
|
+
function O(t) {
|
|
1519
|
+
if (typeof t != "string") return null;
|
|
1520
|
+
const e = t.trim();
|
|
1521
|
+
return e || null;
|
|
1522
|
+
}
|
|
1523
|
+
function et(t) {
|
|
1524
|
+
const e = typeof t == "number" ? t : Number(t);
|
|
1525
|
+
return Number.isFinite(e) && e > 0 ? e : null;
|
|
1526
|
+
}
|
|
1527
|
+
function nt(t) {
|
|
1528
|
+
return !t || typeof t != "object" ? null : O(t.url);
|
|
1529
|
+
}
|
|
1530
|
+
function Ci(t, e) {
|
|
1531
|
+
var r;
|
|
1532
|
+
const n = pe(t);
|
|
1533
|
+
return !e || !n.storeModal && !n.sidebar ? !1 : e.kind === "unit" ? ((r = e.assignment) == null ? void 0 : r.retailerId) != null : e.kind === "amenity" ? T(e.assignment) : !1;
|
|
1534
|
+
}
|
|
1535
|
+
function vi(t) {
|
|
1536
|
+
return t === "directions";
|
|
1537
|
+
}
|
|
1538
|
+
function fr(t, e) {
|
|
1539
|
+
for (const n of t.levels) {
|
|
1540
|
+
const r = n.shapes.find((o) => o.id === e);
|
|
1541
|
+
if (r) return { level: n, shape: r };
|
|
1542
|
+
}
|
|
1543
|
+
return null;
|
|
1544
|
+
}
|
|
1545
|
+
function dr(t, e) {
|
|
1546
|
+
var r, o, i, c;
|
|
1547
|
+
const n = ((r = t.assignment) == null ? void 0 : r.amenityId) != null ? e == null ? void 0 : e.find((a) => a.id === t.assignment.amenityId) : void 0;
|
|
1548
|
+
return O((o = t.assignment) == null ? void 0 : o.customLabel) || O(n == null ? void 0 : n.name) || O((i = t.label) == null ? void 0 : i.text) || O((c = t.assignment) == null ? void 0 : c.unitNumber) || t.key;
|
|
1549
|
+
}
|
|
1550
|
+
function wt(t, e, n) {
|
|
1551
|
+
var i;
|
|
1552
|
+
const r = e.anchors.find((c) => c.shapeId === n);
|
|
1553
|
+
if (r) return r.id;
|
|
1554
|
+
const o = (i = t.graph) == null ? void 0 : i.nodes.find(
|
|
1555
|
+
(c) => c.shapeId === n && c.levelId === e.id
|
|
1556
|
+
);
|
|
1557
|
+
return (o == null ? void 0 : o.id) ?? null;
|
|
1558
|
+
}
|
|
1559
|
+
function Ei(t, e) {
|
|
1560
|
+
var o, i;
|
|
1561
|
+
const n = fr(t, e);
|
|
1562
|
+
if (!n) return null;
|
|
1563
|
+
const r = n.shape.kind === "amenity" ? "amenity" : "store";
|
|
1564
|
+
return {
|
|
1565
|
+
shapeId: e,
|
|
1566
|
+
levelId: n.level.id,
|
|
1567
|
+
anchorId: wt(t, n.level, e),
|
|
1568
|
+
kind: r,
|
|
1569
|
+
retailerId: ((o = n.shape.assignment) == null ? void 0 : o.retailerId) ?? null,
|
|
1570
|
+
amenityId: ((i = n.shape.assignment) == null ? void 0 : i.amenityId) ?? null,
|
|
1571
|
+
name: dr(n.shape, t.amenities),
|
|
1572
|
+
isExterior: X(n.level)
|
|
1573
|
+
};
|
|
1574
|
+
}
|
|
1575
|
+
const _e = "Directions are unavailable for this location.", Li = "No route is available between these locations.";
|
|
1576
|
+
function hr(t) {
|
|
1577
|
+
return t ? t.isExterior || t.anchorId == null : !0;
|
|
1578
|
+
}
|
|
1579
|
+
function Ni(t, e) {
|
|
1580
|
+
const n = hr(e), r = t !== "DISPLAY_APP";
|
|
1581
|
+
return {
|
|
1582
|
+
showFromRetailers: r && !n,
|
|
1583
|
+
showMapIt: r,
|
|
1584
|
+
mapItDisabled: n,
|
|
1585
|
+
mapItTooltip: r && n ? _e : null
|
|
1586
|
+
};
|
|
1587
|
+
}
|
|
1588
|
+
function yr(t) {
|
|
1589
|
+
const e = /* @__PURE__ */ new Map();
|
|
1590
|
+
for (const n of t ?? [])
|
|
1591
|
+
(n == null ? void 0 : n.id) != null && e.set(n.id, n);
|
|
1592
|
+
return e;
|
|
1593
|
+
}
|
|
1594
|
+
function mr(t, e) {
|
|
1595
|
+
var n, r;
|
|
1596
|
+
return O(t == null ? void 0 : t.logoUrl) || O(t == null ? void 0 : t.logoKey) || O((n = e.label) == null ? void 0 : n.imageKey) || O((r = e.assignment) == null ? void 0 : r.customImageKey);
|
|
1597
|
+
}
|
|
1598
|
+
function Ti(t, e) {
|
|
1599
|
+
var c, a, s, f;
|
|
1600
|
+
const n = yr(e ?? t.retailers), r = /* @__PURE__ */ new Map();
|
|
1601
|
+
for (const y of n.values())
|
|
1602
|
+
y.globalRetailerId != null && r.set(y.globalRetailerId, (r.get(y.globalRetailerId) ?? 0) + 1);
|
|
1603
|
+
const o = [], i = /* @__PURE__ */ new Set();
|
|
1604
|
+
for (const y of t.levels)
|
|
1605
|
+
for (const l of y.shapes) {
|
|
1606
|
+
const b = (c = l.assignment) == null ? void 0 : c.retailerId;
|
|
1607
|
+
if (b == null || l.kind !== "unit") continue;
|
|
1608
|
+
const u = n.get(b);
|
|
1609
|
+
i.add(b), o.push({
|
|
1610
|
+
id: b,
|
|
1611
|
+
name: O(u == null ? void 0 : u.name) || O((a = l.label) == null ? void 0 : a.text) || O((s = l.assignment) == null ? void 0 : s.customLabel) || `Store ${b}`,
|
|
1612
|
+
location: O(u == null ? void 0 : u.location) || O((f = l.assignment) == null ? void 0 : f.unitNumber),
|
|
1613
|
+
phone: O(u == null ? void 0 : u.phone),
|
|
1614
|
+
description: O(u == null ? void 0 : u.description),
|
|
1615
|
+
logoUrl: mr(u, l),
|
|
1616
|
+
globalRetailerId: (u == null ? void 0 : u.globalRetailerId) ?? null,
|
|
1617
|
+
slug: O(u == null ? void 0 : u.slug),
|
|
1618
|
+
multipleLocations: (u == null ? void 0 : u.globalRetailerId) != null && (r.get(u.globalRetailerId) ?? 0) > 1,
|
|
1619
|
+
shapeId: l.id,
|
|
1620
|
+
levelId: y.id,
|
|
1621
|
+
levelName: y.name,
|
|
1622
|
+
anchorId: wt(t, y, l.id)
|
|
1623
|
+
});
|
|
1624
|
+
}
|
|
1625
|
+
for (const y of n.values()) {
|
|
1626
|
+
if (i.has(y.id)) continue;
|
|
1627
|
+
const l = O(y.name);
|
|
1628
|
+
l && o.push({
|
|
1629
|
+
id: y.id,
|
|
1630
|
+
name: l,
|
|
1631
|
+
location: O(y.location),
|
|
1632
|
+
phone: O(y.phone),
|
|
1633
|
+
description: O(y.description),
|
|
1634
|
+
logoUrl: O(y.logoUrl) || O(y.logoKey),
|
|
1635
|
+
globalRetailerId: y.globalRetailerId ?? null,
|
|
1636
|
+
slug: O(y.slug),
|
|
1637
|
+
multipleLocations: y.globalRetailerId != null && (r.get(y.globalRetailerId) ?? 0) > 1,
|
|
1638
|
+
shapeId: null,
|
|
1639
|
+
levelId: null,
|
|
1640
|
+
levelName: "",
|
|
1641
|
+
anchorId: null
|
|
1642
|
+
});
|
|
1643
|
+
}
|
|
1644
|
+
return o.sort((y, l) => {
|
|
1645
|
+
const b = y.name.localeCompare(l.name);
|
|
1646
|
+
return b !== 0 ? b : y.levelName.localeCompare(l.levelName);
|
|
1647
|
+
});
|
|
1648
|
+
}
|
|
1649
|
+
function Mi(t, e, n) {
|
|
1650
|
+
if (n != null) {
|
|
1651
|
+
const r = t.find((o) => o.shapeId === n);
|
|
1652
|
+
if (r) return r;
|
|
1653
|
+
}
|
|
1654
|
+
return t.find((r) => r.id === e && r.anchorId != null) ?? t.find((r) => r.id === e);
|
|
1655
|
+
}
|
|
1656
|
+
function wi(t, e) {
|
|
1657
|
+
const n = /* @__PURE__ */ new Map();
|
|
1658
|
+
for (const r of t)
|
|
1659
|
+
r.globalRetailerId != null && n.set(r.globalRetailerId, (n.get(r.globalRetailerId) ?? 0) + 1);
|
|
1660
|
+
return t.filter((r) => r.id !== e && r.anchorId != null).map((r) => {
|
|
1661
|
+
const o = r.globalRetailerId != null && (n.get(r.globalRetailerId) ?? 0) > 1 && r.location;
|
|
1662
|
+
return {
|
|
1663
|
+
value: String(r.id),
|
|
1664
|
+
label: o ? `${r.name} (${r.location})` : r.name
|
|
1665
|
+
};
|
|
1666
|
+
});
|
|
1667
|
+
}
|
|
1668
|
+
function Pi(t, e) {
|
|
1669
|
+
return (t == null ? void 0 : t.anchorId) == null || (e == null ? void 0 : e.anchorId) == null ? null : {
|
|
1670
|
+
fromAnchorId: t.anchorId,
|
|
1671
|
+
toAnchorId: e.anchorId,
|
|
1672
|
+
toLevelId: e.levelId
|
|
1673
|
+
};
|
|
1674
|
+
}
|
|
1675
|
+
function Fi(t, e) {
|
|
1676
|
+
const n = e.trim().toLowerCase();
|
|
1677
|
+
return n ? t.filter(
|
|
1678
|
+
(r) => {
|
|
1679
|
+
var o;
|
|
1680
|
+
return r.name.toLowerCase().includes(n) || (((o = r.location) == null ? void 0 : o.toLowerCase().includes(n)) ?? !1) || r.levelName.toLowerCase().includes(n);
|
|
1681
|
+
}
|
|
1682
|
+
) : [];
|
|
1683
|
+
}
|
|
1684
|
+
function Di(t, e) {
|
|
1685
|
+
var o;
|
|
1686
|
+
const n = t.amenities.find((i) => i.id === e);
|
|
1687
|
+
if (!n) return null;
|
|
1688
|
+
const r = [];
|
|
1689
|
+
for (const i of t.levels)
|
|
1690
|
+
for (const c of i.shapes) {
|
|
1691
|
+
if (c.kind !== "amenity" || ((o = c.assignment) == null ? void 0 : o.amenityId) !== e) continue;
|
|
1692
|
+
const a = wt(t, i, c.id);
|
|
1693
|
+
r.push({
|
|
1694
|
+
levelId: i.id,
|
|
1695
|
+
name: i.name,
|
|
1696
|
+
shapeId: c.id,
|
|
1697
|
+
anchorId: a
|
|
1698
|
+
});
|
|
1699
|
+
}
|
|
1700
|
+
return {
|
|
1701
|
+
amenityId: e,
|
|
1702
|
+
name: n.name,
|
|
1703
|
+
code: n.code,
|
|
1704
|
+
floors: r
|
|
1705
|
+
};
|
|
1706
|
+
}
|
|
1707
|
+
function Ki(t, e) {
|
|
1708
|
+
return e ? e.floors.some((n) => {
|
|
1709
|
+
if (n.anchorId == null) return !1;
|
|
1710
|
+
const r = t.levels.find((o) => o.id === n.levelId);
|
|
1711
|
+
return r != null && !X(r);
|
|
1712
|
+
}) : !1;
|
|
1713
|
+
}
|
|
1714
|
+
function Yi(t) {
|
|
1715
|
+
return {
|
|
1716
|
+
showFromRetailers: t,
|
|
1717
|
+
showMapIt: !0,
|
|
1718
|
+
mapItDisabled: !t,
|
|
1719
|
+
mapItTooltip: t ? null : _e
|
|
1720
|
+
};
|
|
1721
|
+
}
|
|
1722
|
+
function $i(t, e) {
|
|
1723
|
+
return sr(
|
|
1724
|
+
t.levels,
|
|
1725
|
+
(n) => {
|
|
1726
|
+
var r;
|
|
1727
|
+
return n.kind === "amenity" && ((r = n.assignment) == null ? void 0 : r.amenityId) === e;
|
|
1728
|
+
}
|
|
1729
|
+
);
|
|
1730
|
+
}
|
|
1731
|
+
function pr(t, e, n, r) {
|
|
1732
|
+
if (e == null || n.length === 0) return null;
|
|
1733
|
+
const o = ur(
|
|
1734
|
+
t,
|
|
1735
|
+
e,
|
|
1736
|
+
[...n],
|
|
1737
|
+
r
|
|
1738
|
+
), i = o == null ? void 0 : o.anchorIds.at(-1);
|
|
1739
|
+
return i == null ? null : { fromAnchorId: e, toAnchorId: i };
|
|
1740
|
+
}
|
|
1741
|
+
function xr(t, e, n, r, o) {
|
|
1742
|
+
if (e.length === 0) return null;
|
|
1743
|
+
const i = new Set(e), c = i.has(n), a = i.has(r);
|
|
1744
|
+
if (c === a) return null;
|
|
1745
|
+
const f = pr(
|
|
1746
|
+
t,
|
|
1747
|
+
c ? r : n,
|
|
1748
|
+
e,
|
|
1749
|
+
o
|
|
1750
|
+
);
|
|
1751
|
+
return f ? c ? {
|
|
1752
|
+
fromAnchorId: f.toAnchorId,
|
|
1753
|
+
toAnchorId: f.fromAnchorId
|
|
1754
|
+
} : f : null;
|
|
1755
|
+
}
|
|
1756
|
+
function Bi(t) {
|
|
1757
|
+
let e = t.fromAnchorId, n = t.toAnchorId;
|
|
1758
|
+
const r = (i, c) => {
|
|
1759
|
+
const a = t.levelOf(i), s = t.levelOf(c);
|
|
1760
|
+
return a != null && s != null && a !== s;
|
|
1761
|
+
};
|
|
1762
|
+
if (t.allowChoice && t.compiled && e != null && n != null && t.amenityAnchorIds.length > 0 && r(e, n)) {
|
|
1763
|
+
const i = xr(
|
|
1764
|
+
t.compiled,
|
|
1765
|
+
t.amenityAnchorIds,
|
|
1766
|
+
e,
|
|
1767
|
+
n,
|
|
1768
|
+
{
|
|
1769
|
+
accessibleOnly: t.accessibleOnly,
|
|
1770
|
+
verticalTransport: t.verticalTransport
|
|
1771
|
+
}
|
|
1772
|
+
);
|
|
1773
|
+
i && (e = i.fromAnchorId, n = i.toAnchorId);
|
|
1774
|
+
}
|
|
1775
|
+
const o = { accessibleOnly: t.accessibleOnly };
|
|
1776
|
+
return t.allowChoice && r(e, n) && (o.verticalTransport = t.verticalTransport), { fromAnchorId: e, toAnchorId: n, options: o };
|
|
1777
|
+
}
|
|
1778
|
+
function Gi(t) {
|
|
1779
|
+
const e = t.replace(/\D/g, "").slice(-10);
|
|
1780
|
+
return e.length === 10 ? `${e.slice(0, 3)}.${e.slice(3, 6)}.${e.slice(-4)}` : t;
|
|
1781
|
+
}
|
|
1782
|
+
function zi(t) {
|
|
1783
|
+
if (!t || typeof t != "object") return null;
|
|
1784
|
+
const e = t, n = e.global_retailer && typeof e.global_retailer == "object" ? e.global_retailer : null, r = et(e.id);
|
|
1785
|
+
if (r == null) return null;
|
|
1786
|
+
const o = O(n == null ? void 0 : n.name) || O(e.name) || `Retailer ${r}`;
|
|
1787
|
+
return {
|
|
1788
|
+
id: r,
|
|
1789
|
+
name: o,
|
|
1790
|
+
location: O(e.location),
|
|
1791
|
+
phone: O(e.retailer_phone) || O(e.phone),
|
|
1792
|
+
description: O(n == null ? void 0 : n.description) || O(e.description) || O(e.local_description),
|
|
1793
|
+
logoUrl: nt(n == null ? void 0 : n.media) || nt(n == null ? void 0 : n.featured_image) || nt(e.media) || nt(e.featured_image) || O(e.logoUrl) || O(e.logo),
|
|
1794
|
+
logoKey: O(e.logoKey),
|
|
1795
|
+
globalRetailerId: et(n == null ? void 0 : n.id) || et(e.global_retailer_id) || et(e.globalRetailerId),
|
|
1796
|
+
slug: O(n == null ? void 0 : n.slug) || O(e.slug)
|
|
1797
|
+
};
|
|
1798
|
+
}
|
|
1799
|
+
function Xi(t, e, n = !1) {
|
|
1800
|
+
var c;
|
|
1801
|
+
const r = (c = t.slug) == null ? void 0 : c.trim(), o = e == null ? void 0 : e.trim();
|
|
1802
|
+
if (!r || !o) return null;
|
|
1803
|
+
const i = `${o.replace(/\/+$/, "")}/${encodeURIComponent(r)}`;
|
|
1804
|
+
return n && t.multipleLocations ? `${i}/${t.id}` : i;
|
|
1805
|
+
}
|
|
1806
|
+
function Oe(t) {
|
|
1807
|
+
return t === "WEBSITE" || t === "DISPLAY_APP";
|
|
1808
|
+
}
|
|
1809
|
+
function br(t) {
|
|
1810
|
+
return t === "PORTAL_ASSIGN";
|
|
1811
|
+
}
|
|
1812
|
+
function Ir(t) {
|
|
1813
|
+
return Oe(t);
|
|
1814
|
+
}
|
|
1815
|
+
function Hi(t, e) {
|
|
1816
|
+
return Ir(e) ? T(t.assignment) : !0;
|
|
1817
|
+
}
|
|
1818
|
+
function gr(t) {
|
|
1819
|
+
const e = (t.sourceSvgId ?? t.key ?? "").trim().toLowerCase().replace(/_/g, "-");
|
|
1820
|
+
return e === "escalator" || e.startsWith("escalator-") ? "escalator" : e === "elevator" || e.startsWith("elevator-") ? "elevator" : null;
|
|
1821
|
+
}
|
|
1822
|
+
function _r(t, e) {
|
|
1823
|
+
return gr(t) ? e.has(t.id) : t.kind === "amenity" || t.kind === "kiosk_screen" ? T(t.assignment) : !0;
|
|
1824
|
+
}
|
|
1825
|
+
function Ui(t, e, n) {
|
|
1826
|
+
return Oe(e) ? _r(t, n) : !0;
|
|
1827
|
+
}
|
|
1828
|
+
const ke = "#e2e8f0";
|
|
1829
|
+
function Vi(t) {
|
|
1830
|
+
if (!t) return !1;
|
|
1831
|
+
const e = t.toLowerCase();
|
|
1832
|
+
return e === "amenity" || e.startsWith("amenity-");
|
|
1833
|
+
}
|
|
1834
|
+
function Or(t) {
|
|
1835
|
+
var n;
|
|
1836
|
+
return ((n = t == null ? void 0 : t.GREEN_AREA_COLOR) == null ? void 0 : n.trim()) || U("green-area");
|
|
1837
|
+
}
|
|
1838
|
+
function kr(t, e) {
|
|
1839
|
+
return t === "amenity" ? Or(e) : ke;
|
|
1840
|
+
}
|
|
1841
|
+
function Ar(t, e, n, r) {
|
|
1842
|
+
if (t === "walkable") return e.WALKABLE_COLOR;
|
|
1843
|
+
if (Tt(t))
|
|
1844
|
+
return Bt(r, Lt);
|
|
1845
|
+
if (t === "unit" || t === "custom")
|
|
1846
|
+
return Bt(r, e.STORE_DEFAULT_COLOR);
|
|
1847
|
+
if (n) return n;
|
|
1848
|
+
switch (t) {
|
|
1849
|
+
case "wall":
|
|
1850
|
+
case "boundary":
|
|
1851
|
+
return e.WALL_COLOR;
|
|
1852
|
+
case "parking_zone":
|
|
1853
|
+
return e.PARKING_ZONE_COLOR;
|
|
1854
|
+
case "green_area":
|
|
1855
|
+
return e.GREEN_AREA_COLOR;
|
|
1856
|
+
case "water":
|
|
1857
|
+
return e.WATER_COLOR;
|
|
1858
|
+
case "floorplate":
|
|
1859
|
+
return e.BASE_COLOR;
|
|
1860
|
+
case "void":
|
|
1861
|
+
return "#00000000";
|
|
1862
|
+
default:
|
|
1863
|
+
return ke;
|
|
1864
|
+
}
|
|
1865
|
+
}
|
|
1866
|
+
function Wi(t, e, n, r, o) {
|
|
1867
|
+
const i = Ar(t, e, r, o);
|
|
1868
|
+
return br(n) && Tt(t) && W(i) ? kr(t, e) : i;
|
|
1869
|
+
}
|
|
1870
|
+
function Zi(t, e) {
|
|
1871
|
+
return t === "amenity" ? 1 : e ?? 1;
|
|
1872
|
+
}
|
|
1873
|
+
function Sr(t) {
|
|
1874
|
+
return /^https?:\/\//i.test(t.trim());
|
|
1875
|
+
}
|
|
1876
|
+
function ji(t, e) {
|
|
1877
|
+
return !e || !Sr(t) ? t : e + encodeURIComponent(t);
|
|
1878
|
+
}
|
|
1879
|
+
const Rr = {
|
|
1880
|
+
fill: "fill",
|
|
1881
|
+
"fill-opacity": "fill-opacity",
|
|
1882
|
+
stroke: "stroke",
|
|
1883
|
+
"stroke-width": "stroke-width",
|
|
1884
|
+
"stroke-opacity": "stroke-opacity",
|
|
1885
|
+
opacity: "opacity"
|
|
1886
|
+
};
|
|
1887
|
+
function Cr(t) {
|
|
1888
|
+
const e = {};
|
|
1889
|
+
for (const n of t.split(";")) {
|
|
1890
|
+
const r = n.indexOf(":");
|
|
1891
|
+
if (r === -1) continue;
|
|
1892
|
+
const o = n.slice(0, r).trim().toLowerCase(), i = n.slice(r + 1).trim();
|
|
1893
|
+
o && i && (e[o] = i);
|
|
1894
|
+
}
|
|
1895
|
+
return e;
|
|
1569
1896
|
}
|
|
1570
|
-
function
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1897
|
+
function vr(t) {
|
|
1898
|
+
const e = /* @__PURE__ */ new Map(), n = t.replace(/\/\*[\s\S]*?\*\//g, "");
|
|
1899
|
+
for (const r of n.matchAll(/([^{]+)\{([^}]*)\}/g)) {
|
|
1900
|
+
const o = r[1].split(",").map((c) => c.trim()), i = Cr(r[2]);
|
|
1901
|
+
for (const c of o) {
|
|
1902
|
+
const a = c.match(/^\.([a-zA-Z0-9_-]+)$/);
|
|
1903
|
+
if (!a) continue;
|
|
1904
|
+
const s = a[1];
|
|
1905
|
+
e.set(s, {
|
|
1906
|
+
...e.get(s) || {},
|
|
1907
|
+
...i
|
|
1908
|
+
});
|
|
1909
|
+
}
|
|
1910
|
+
}
|
|
1911
|
+
return e;
|
|
1912
|
+
}
|
|
1913
|
+
function Er(t, e) {
|
|
1914
|
+
const n = {};
|
|
1915
|
+
for (const r of t.split(/\s+/).map((o) => o.trim()).filter(Boolean))
|
|
1916
|
+
Object.assign(n, e.get(r) || {});
|
|
1917
|
+
return n;
|
|
1918
|
+
}
|
|
1919
|
+
function Lr(t) {
|
|
1920
|
+
const e = [], n = t.replace(/<!--[\s\S]*?-->/g, "");
|
|
1921
|
+
for (const o of n.matchAll(/<style\b[^>]*>([\s\S]*?)<\/style>/gi))
|
|
1922
|
+
e.push(o[1]);
|
|
1923
|
+
if (e.length === 0) return t;
|
|
1924
|
+
const r = /* @__PURE__ */ new Map();
|
|
1925
|
+
for (const o of e)
|
|
1926
|
+
for (const [i, c] of vr(o))
|
|
1927
|
+
r.set(i, { ...r.get(i) || {}, ...c });
|
|
1928
|
+
return r.size === 0 ? t : t.replace(
|
|
1929
|
+
/<(path|polygon|polyline|line|rect|g|circle|ellipse)\b([^>]*)>/gi,
|
|
1930
|
+
(o, i, c) => {
|
|
1931
|
+
const a = /\/\s*$/.test(c), s = c.replace(/\/\s*$/, ""), f = s.match(/\bclass\s*=\s*["']([^"']*)["']/i);
|
|
1932
|
+
if (!f) return o;
|
|
1933
|
+
const y = Er(f[1], r);
|
|
1934
|
+
let l = s;
|
|
1935
|
+
for (const [b, u] of Object.entries(y)) {
|
|
1936
|
+
const h = Rr[b];
|
|
1937
|
+
h && (new RegExp(`\\b${h}\\s*=`, "i").test(l) || (l += ` ${h}="${u}"`));
|
|
1938
|
+
}
|
|
1939
|
+
return `<${i}${l}${a ? " /" : ""}>`;
|
|
1940
|
+
}
|
|
1941
|
+
);
|
|
1942
|
+
}
|
|
1943
|
+
function Qt(t) {
|
|
1944
|
+
var a, s, f, y, l;
|
|
1945
|
+
const e = {}, n = (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 = (f = t.match(/\bstroke-width\s*=\s*["']?(-?[\d.]+)/i)) == null ? void 0 : f[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];
|
|
1946
|
+
return n && n.toLowerCase() !== "none" && (e.fill = n), r && r.toLowerCase() !== "none" && (e.stroke = r), o != null && !Number.isNaN(Number(o)) && (e.strokeWidth = Number(o)), i != null && !Number.isNaN(Number(i)) ? e.opacity = Number(i) : c != null && !Number.isNaN(Number(c)) && (e.opacity = Number(c)), e;
|
|
1947
|
+
}
|
|
1948
|
+
function _t(t, e) {
|
|
1949
|
+
return {
|
|
1950
|
+
fill: e.fill ?? t.fill,
|
|
1951
|
+
stroke: e.stroke ?? t.stroke,
|
|
1952
|
+
strokeWidth: e.strokeWidth ?? t.strokeWidth,
|
|
1953
|
+
opacity: e.opacity ?? t.opacity
|
|
1954
|
+
};
|
|
1955
|
+
}
|
|
1956
|
+
const Et = { a: 1, b: 0, c: 0, d: 1, e: 0, f: 0 };
|
|
1957
|
+
function j(t, e) {
|
|
1958
|
+
return {
|
|
1959
|
+
a: t.a * e.a + t.c * e.b,
|
|
1960
|
+
b: t.b * e.a + t.d * e.b,
|
|
1961
|
+
c: t.a * e.c + t.c * e.d,
|
|
1962
|
+
d: t.b * e.c + t.d * e.d,
|
|
1963
|
+
e: t.a * e.e + t.c * e.f + t.e,
|
|
1964
|
+
f: t.b * e.e + t.d * e.f + t.f
|
|
1965
|
+
};
|
|
1966
|
+
}
|
|
1967
|
+
function Nr(t, e) {
|
|
1968
|
+
return {
|
|
1969
|
+
x: t.a * e.x + t.c * e.y + t.e,
|
|
1970
|
+
y: t.b * e.x + t.d * e.y + t.f
|
|
1971
|
+
};
|
|
1972
|
+
}
|
|
1973
|
+
function Tr(t, e = 1e-9) {
|
|
1974
|
+
return Math.abs(t.a - 1) < e && Math.abs(t.b) < e && Math.abs(t.c) < e && Math.abs(t.d - 1) < e && Math.abs(t.e) < e && Math.abs(t.f) < e;
|
|
1975
|
+
}
|
|
1976
|
+
function Ot(t, e) {
|
|
1977
|
+
return { a: 1, b: 0, c: 0, d: 1, e: t, f: e };
|
|
1978
|
+
}
|
|
1979
|
+
function Mr(t) {
|
|
1980
|
+
const e = t * Math.PI / 180, n = Math.cos(e), r = Math.sin(e);
|
|
1981
|
+
return { a: n, b: r, c: -r, d: n, e: 0, f: 0 };
|
|
1982
|
+
}
|
|
1983
|
+
function wr(t, e) {
|
|
1984
|
+
switch (t) {
|
|
1985
|
+
case "matrix":
|
|
1986
|
+
return e.length < 6 ? null : { a: e[0], b: e[1], c: e[2], d: e[3], e: e[4], f: e[5] };
|
|
1987
|
+
case "translate":
|
|
1988
|
+
return e.length < 1 ? null : Ot(e[0], e[1] ?? 0);
|
|
1989
|
+
case "scale": {
|
|
1990
|
+
if (e.length < 1) return null;
|
|
1991
|
+
const n = e[0], r = e[1] ?? n;
|
|
1992
|
+
return { a: n, b: 0, c: 0, d: r, e: 0, f: 0 };
|
|
1993
|
+
}
|
|
1994
|
+
case "rotate": {
|
|
1995
|
+
if (e.length < 1) return null;
|
|
1996
|
+
const n = Mr(e[0]);
|
|
1997
|
+
if (e.length < 3) return n;
|
|
1998
|
+
const r = e[1], o = e[2];
|
|
1999
|
+
return j(
|
|
2000
|
+
j(Ot(r, o), n),
|
|
2001
|
+
Ot(-r, -o)
|
|
2002
|
+
);
|
|
2003
|
+
}
|
|
2004
|
+
case "skewx":
|
|
2005
|
+
return e.length < 1 ? null : { a: 1, b: 0, c: Math.tan(e[0] * Math.PI / 180), d: 1, e: 0, f: 0 };
|
|
2006
|
+
case "skewy":
|
|
2007
|
+
return e.length < 1 ? null : { a: 1, b: Math.tan(e[0] * Math.PI / 180), c: 0, d: 1, e: 0, f: 0 };
|
|
2008
|
+
default:
|
|
2009
|
+
return null;
|
|
2010
|
+
}
|
|
2011
|
+
}
|
|
2012
|
+
const Jt = /([a-zA-Z]+)\s*\(([^)]*)\)/g;
|
|
2013
|
+
function te(t) {
|
|
2014
|
+
if (!t) return Et;
|
|
2015
|
+
let e = Et;
|
|
2016
|
+
Jt.lastIndex = 0;
|
|
2017
|
+
let n;
|
|
2018
|
+
for (; (n = Jt.exec(t)) !== null; ) {
|
|
2019
|
+
const r = n[1].toLowerCase(), o = n[2].trim().split(/[\s,]+/).filter(Boolean).map(Number);
|
|
2020
|
+
if (o.some((c) => Number.isNaN(c))) continue;
|
|
2021
|
+
const i = wr(r, o);
|
|
2022
|
+
i && (e = j(e, i));
|
|
2023
|
+
}
|
|
2024
|
+
return e;
|
|
2025
|
+
}
|
|
2026
|
+
function H(t) {
|
|
2027
|
+
if (!Number.isFinite(t)) return "0";
|
|
2028
|
+
const e = Math.round(t * 1e4) / 1e4;
|
|
2029
|
+
return Object.is(e, -0) ? "0" : String(e);
|
|
2030
|
+
}
|
|
2031
|
+
function Pr(t, e, n, r) {
|
|
2032
|
+
const o = r * Math.PI / 180, i = Math.cos(o), c = Math.sin(o), a = i * e, s = c * e, f = -c * n, y = i * n, l = t.a * a + t.c * s, b = t.b * a + t.d * s, u = t.a * f + t.c * y, h = t.b * f + t.d * y, d = (l + h) / 2, m = (l - h) / 2, x = (b + u) / 2, I = (b - u) / 2, p = Math.hypot(d, I), g = Math.hypot(m, x), _ = Math.abs(p + g), A = Math.abs(p - g), k = Math.atan2(x, m), v = (Math.atan2(I, d) + k) / 2 * (180 / Math.PI);
|
|
2033
|
+
return { rx: _, ry: A, phiDeg: v };
|
|
2034
|
+
}
|
|
2035
|
+
function Fr(t, e) {
|
|
2036
|
+
if (!t || Tr(e)) return t;
|
|
2037
|
+
const n = xe(t), r = [], o = e.a * e.d - e.b * e.c < 0;
|
|
2038
|
+
let i = 0, c = "", a = 0, s = 0, f = 0, y = 0;
|
|
1574
2039
|
const l = () => {
|
|
1575
|
-
const
|
|
1576
|
-
return Number.isNaN(
|
|
1577
|
-
},
|
|
1578
|
-
r.push(
|
|
1579
|
-
}, u = (
|
|
1580
|
-
const m =
|
|
2040
|
+
const h = Number(n[i++]);
|
|
2041
|
+
return Number.isNaN(h) ? 0 : h;
|
|
2042
|
+
}, b = (h, ...d) => {
|
|
2043
|
+
r.push(h + (d.length ? " " + d.map(H).join(" ") : ""));
|
|
2044
|
+
}, u = (h, d) => {
|
|
2045
|
+
const m = Nr(e, { x: h, y: d });
|
|
1581
2046
|
return [m.x, m.y];
|
|
1582
2047
|
};
|
|
1583
|
-
for (; i <
|
|
1584
|
-
const
|
|
1585
|
-
switch (/[a-zA-Z]/.test(
|
|
2048
|
+
for (; i < n.length; ) {
|
|
2049
|
+
const h = n[i];
|
|
2050
|
+
switch (/[a-zA-Z]/.test(h) && (c = h, i++), c) {
|
|
1586
2051
|
case "M":
|
|
1587
2052
|
case "m": {
|
|
1588
|
-
const
|
|
1589
|
-
a =
|
|
2053
|
+
const d = c === "m", m = l(), x = l();
|
|
2054
|
+
a = d ? a + m : m, s = d ? s + x : x, f = a, y = s, b("M", ...u(a, s)), c = d ? "l" : "L";
|
|
1590
2055
|
break;
|
|
1591
2056
|
}
|
|
1592
2057
|
case "L":
|
|
1593
2058
|
case "l": {
|
|
1594
|
-
const
|
|
1595
|
-
a =
|
|
2059
|
+
const d = c === "l", m = l(), x = l();
|
|
2060
|
+
a = d ? a + m : m, s = d ? s + x : x, b("L", ...u(a, s));
|
|
1596
2061
|
break;
|
|
1597
2062
|
}
|
|
1598
2063
|
case "H":
|
|
1599
2064
|
case "h": {
|
|
1600
|
-
const
|
|
1601
|
-
a =
|
|
2065
|
+
const d = c === "h", m = l();
|
|
2066
|
+
a = d ? a + m : m, b("L", ...u(a, s));
|
|
1602
2067
|
break;
|
|
1603
2068
|
}
|
|
1604
2069
|
case "V":
|
|
1605
2070
|
case "v": {
|
|
1606
|
-
const
|
|
1607
|
-
s =
|
|
2071
|
+
const d = c === "v", m = l();
|
|
2072
|
+
s = d ? s + m : m, b("L", ...u(a, s));
|
|
1608
2073
|
break;
|
|
1609
2074
|
}
|
|
1610
2075
|
case "C":
|
|
1611
2076
|
case "c": {
|
|
1612
|
-
const
|
|
1613
|
-
|
|
2077
|
+
const d = c === "c", m = d ? a + l() : l(), x = d ? s + l() : l(), I = d ? a + l() : l(), p = d ? s + l() : l(), g = d ? a + l() : l(), _ = d ? s + l() : l();
|
|
2078
|
+
b("C", ...u(m, x), ...u(I, p), ...u(g, _)), a = g, s = _;
|
|
1614
2079
|
break;
|
|
1615
2080
|
}
|
|
1616
2081
|
case "S":
|
|
1617
2082
|
case "s": {
|
|
1618
|
-
const
|
|
1619
|
-
|
|
2083
|
+
const d = c === "s", m = d ? a + l() : l(), x = d ? s + l() : l(), I = d ? a + l() : l(), p = d ? s + l() : l();
|
|
2084
|
+
b("S", ...u(m, x), ...u(I, p)), a = I, s = p;
|
|
1620
2085
|
break;
|
|
1621
2086
|
}
|
|
1622
2087
|
case "Q":
|
|
1623
2088
|
case "q": {
|
|
1624
|
-
const
|
|
1625
|
-
|
|
2089
|
+
const d = c === "q", m = d ? a + l() : l(), x = d ? s + l() : l(), I = d ? a + l() : l(), p = d ? s + l() : l();
|
|
2090
|
+
b("Q", ...u(m, x), ...u(I, p)), a = I, s = p;
|
|
1626
2091
|
break;
|
|
1627
2092
|
}
|
|
1628
2093
|
case "T":
|
|
1629
2094
|
case "t": {
|
|
1630
|
-
const
|
|
1631
|
-
|
|
2095
|
+
const d = c === "t", m = d ? a + l() : l(), x = d ? s + l() : l();
|
|
2096
|
+
b("T", ...u(m, x)), a = m, s = x;
|
|
1632
2097
|
break;
|
|
1633
2098
|
}
|
|
1634
2099
|
case "A":
|
|
1635
2100
|
case "a": {
|
|
1636
|
-
const
|
|
2101
|
+
const d = c === "a", m = l(), x = l(), I = l(), p = l(), g = l(), _ = d ? a + l() : l(), A = d ? s + l() : l(), k = Pr(e, m, x, I), [S, v] = u(_, A);
|
|
1637
2102
|
r.push(
|
|
1638
|
-
`A ${
|
|
1639
|
-
), a = _, s =
|
|
2103
|
+
`A ${H(k.rx)} ${H(k.ry)} ${H(k.phiDeg)} ${p ? 1 : 0} ${(g ? 1 : 0) ^ (o ? 1 : 0)} ${H(S)} ${H(v)}`
|
|
2104
|
+
), a = _, s = A;
|
|
1640
2105
|
break;
|
|
1641
2106
|
}
|
|
1642
2107
|
case "Z":
|
|
1643
2108
|
case "z": {
|
|
1644
|
-
r.push("Z"), a =
|
|
2109
|
+
r.push("Z"), a = f, s = y;
|
|
1645
2110
|
break;
|
|
1646
2111
|
}
|
|
1647
2112
|
default:
|
|
@@ -1651,7 +2116,7 @@ function Ir(t, n) {
|
|
|
1651
2116
|
}
|
|
1652
2117
|
return r.join(" ");
|
|
1653
2118
|
}
|
|
1654
|
-
const
|
|
2119
|
+
const Dr = [
|
|
1655
2120
|
{ prefix: "walkable", kind: "walkable" },
|
|
1656
2121
|
{ prefix: "void", kind: "void" },
|
|
1657
2122
|
{ prefix: "unit", kind: "unit" },
|
|
@@ -1678,7 +2143,7 @@ const gr = [
|
|
|
1678
2143
|
{ prefix: "parking-icon", kind: "parking_icon" },
|
|
1679
2144
|
{ prefix: "walking-path", kind: "walkable" },
|
|
1680
2145
|
{ prefix: "water", kind: "water" }
|
|
1681
|
-
],
|
|
2146
|
+
], Kr = [
|
|
1682
2147
|
{ prefix: "parking-zone", kind: "parking_zone" },
|
|
1683
2148
|
{ prefix: "parking-lane", kind: "parking_zone" },
|
|
1684
2149
|
{ prefix: "parking-icon", kind: "parking_icon" },
|
|
@@ -1699,103 +2164,103 @@ const gr = [
|
|
|
1699
2164
|
{ prefix: "elevator-", kind: "connector" },
|
|
1700
2165
|
{ prefix: "stairs-", kind: "connector" }
|
|
1701
2166
|
];
|
|
1702
|
-
function
|
|
1703
|
-
const
|
|
1704
|
-
return
|
|
2167
|
+
function ee(t) {
|
|
2168
|
+
const e = yt(t);
|
|
2169
|
+
return e === "route path" || e.startsWith("route path ");
|
|
1705
2170
|
}
|
|
1706
|
-
function
|
|
2171
|
+
function Ae(t) {
|
|
1707
2172
|
return /^routes?( \d+)?$/.test(yt(t));
|
|
1708
2173
|
}
|
|
1709
|
-
function
|
|
1710
|
-
const
|
|
1711
|
-
return
|
|
2174
|
+
function ne(t, e) {
|
|
2175
|
+
const n = t.toLowerCase();
|
|
2176
|
+
return n === "line" || n === "polyline" ? !0 : !(n !== "path" || !e || /[zZ]/.test(e) || /[csqtaCSQTA]/.test(e));
|
|
1712
2177
|
}
|
|
1713
|
-
const
|
|
1714
|
-
...
|
|
2178
|
+
const Yr = [
|
|
2179
|
+
...Je,
|
|
1715
2180
|
"walkable",
|
|
1716
2181
|
"void"
|
|
1717
|
-
],
|
|
1718
|
-
function
|
|
1719
|
-
if (
|
|
2182
|
+
], $r = 8;
|
|
2183
|
+
function Br(t, e = "floor") {
|
|
2184
|
+
if (Ce(t))
|
|
1720
2185
|
return { kind: null, guessed: !1 };
|
|
1721
|
-
const
|
|
2186
|
+
const n = t.toLowerCase(), r = e === "base" ? Kr : Dr;
|
|
1722
2187
|
for (const { prefix: o, kind: i } of r)
|
|
1723
|
-
if (
|
|
2188
|
+
if (n === o || n.startsWith(o))
|
|
1724
2189
|
return { kind: i, guessed: !1 };
|
|
1725
|
-
return
|
|
2190
|
+
return n.startsWith("interactive") ? { kind: "unit", guessed: !0 } : { kind: null, guessed: !1 };
|
|
1726
2191
|
}
|
|
1727
2192
|
function yt(t) {
|
|
1728
2193
|
return t.toLowerCase().replace(/[-_]+/g, " ").replace(/\s+/g, " ").trim();
|
|
1729
2194
|
}
|
|
1730
|
-
function
|
|
2195
|
+
function Pt(t) {
|
|
1731
2196
|
return /non[-_ ]?interactive/i.test(t);
|
|
1732
2197
|
}
|
|
1733
|
-
function
|
|
1734
|
-
return
|
|
2198
|
+
function Se(t) {
|
|
2199
|
+
return Pt(t) ? !1 : /^interactive( items)?( \d+)?$/.test(yt(t));
|
|
1735
2200
|
}
|
|
1736
|
-
function
|
|
1737
|
-
const
|
|
1738
|
-
return
|
|
2201
|
+
function Re(t) {
|
|
2202
|
+
const e = yt(t);
|
|
2203
|
+
return e === "stores" || e === "store layer" || e === "units" || e === "unit layer";
|
|
1739
2204
|
}
|
|
1740
|
-
function
|
|
1741
|
-
return
|
|
2205
|
+
function Ce(t) {
|
|
2206
|
+
return Se(t) || Pt(t) || Re(t) || Ae(t);
|
|
1742
2207
|
}
|
|
1743
|
-
function
|
|
2208
|
+
function kt(t) {
|
|
1744
2209
|
return t.interactiveContainer || t.nonInteractiveContainer || t.storeFolder || t.routeContainer;
|
|
1745
2210
|
}
|
|
1746
|
-
function F(t,
|
|
1747
|
-
const
|
|
1748
|
-
return
|
|
2211
|
+
function F(t, e) {
|
|
2212
|
+
const n = t.match(new RegExp(`\\b${e}\\s*=\\s*["']([^"']*)["']`, "i"));
|
|
2213
|
+
return n ? n[1] : null;
|
|
1749
2214
|
}
|
|
1750
|
-
function G(t,
|
|
1751
|
-
const
|
|
1752
|
-
return
|
|
2215
|
+
function G(t, e) {
|
|
2216
|
+
const n = t.match(new RegExp(`\\b${e}\\s*=\\s*["']?(-?[\\d.]+)`, "i"));
|
|
2217
|
+
return n ? Number(n[1]) : 0;
|
|
1753
2218
|
}
|
|
1754
|
-
function
|
|
2219
|
+
function re(t) {
|
|
1755
2220
|
return /\bdata-interactive\s*=\s*["']?(true|1|yes)/i.test(t);
|
|
1756
2221
|
}
|
|
1757
|
-
function
|
|
2222
|
+
function Gr(t) {
|
|
1758
2223
|
return [F(t, "id"), F(t, "data-name")].filter(
|
|
1759
|
-
(
|
|
2224
|
+
(e) => !!e
|
|
1760
2225
|
);
|
|
1761
2226
|
}
|
|
1762
|
-
function
|
|
1763
|
-
return t.some(
|
|
2227
|
+
function zr(t) {
|
|
2228
|
+
return t.some(Pt) ? { interactiveContainer: !1, nonInteractiveContainer: !0, storeFolder: !1 } : t.some(Se) ? { interactiveContainer: !0, nonInteractiveContainer: !1, storeFolder: !1 } : t.some(Re) ? { interactiveContainer: !1, nonInteractiveContainer: !1, storeFolder: !0 } : { interactiveContainer: !1, nonInteractiveContainer: !1, storeFolder: !1 };
|
|
1764
2229
|
}
|
|
1765
|
-
function
|
|
1766
|
-
const
|
|
1767
|
-
if (
|
|
1768
|
-
let
|
|
1769
|
-
for (let r = 2; r <
|
|
1770
|
-
|
|
1771
|
-
return
|
|
2230
|
+
function Xr(t) {
|
|
2231
|
+
const e = t.trim().split(/[\s,]+/).map(Number);
|
|
2232
|
+
if (e.length < 4) return "";
|
|
2233
|
+
let n = `M ${e[0]} ${e[1]}`;
|
|
2234
|
+
for (let r = 2; r < e.length; r += 2)
|
|
2235
|
+
n += ` L ${e[r]} ${e[r + 1]}`;
|
|
2236
|
+
return n += " Z", n;
|
|
1772
2237
|
}
|
|
1773
|
-
function
|
|
1774
|
-
return `M ${t} ${
|
|
2238
|
+
function Hr(t, e, n, r) {
|
|
2239
|
+
return `M ${t} ${e} L ${n} ${r}`;
|
|
1775
2240
|
}
|
|
1776
|
-
function
|
|
2241
|
+
function Ur(t, e) {
|
|
1777
2242
|
if (t === "path")
|
|
1778
|
-
return F(
|
|
2243
|
+
return F(e, "d") ?? void 0;
|
|
1779
2244
|
if (t === "polygon" || t === "polyline") {
|
|
1780
|
-
const
|
|
1781
|
-
return
|
|
2245
|
+
const n = F(e, "points");
|
|
2246
|
+
return n ? Xr(n) : void 0;
|
|
1782
2247
|
}
|
|
1783
2248
|
if (t === "line")
|
|
1784
|
-
return
|
|
1785
|
-
G(
|
|
1786
|
-
G(
|
|
1787
|
-
G(
|
|
1788
|
-
G(
|
|
2249
|
+
return Hr(
|
|
2250
|
+
G(e, "x1"),
|
|
2251
|
+
G(e, "y1"),
|
|
2252
|
+
G(e, "x2"),
|
|
2253
|
+
G(e, "y2")
|
|
1789
2254
|
);
|
|
1790
2255
|
if (t === "rect") {
|
|
1791
|
-
const
|
|
1792
|
-
return `M ${
|
|
2256
|
+
const n = G(e, "x"), r = G(e, "y"), o = G(e, "width"), i = G(e, "height");
|
|
2257
|
+
return `M ${n} ${r} L ${n + o} ${r} L ${n + o} ${r + i} L ${n} ${r + i} Z`;
|
|
1793
2258
|
}
|
|
1794
2259
|
}
|
|
1795
|
-
function
|
|
1796
|
-
const
|
|
2260
|
+
function Vr(t) {
|
|
2261
|
+
const e = Lr(t).replace(/<!--[\s\S]*?-->/g, ""), n = e.match(/viewBox\s*=\s*["']([^"']+)["']/i), r = jn(n == null ? void 0 : n[1]), o = [], i = [], c = [], a = [];
|
|
1797
2262
|
let s = 0;
|
|
1798
|
-
const
|
|
2263
|
+
const f = () => a.some((p) => p.routeContainer), y = () => {
|
|
1799
2264
|
for (let g = a.length - 1; g >= 0; g--) {
|
|
1800
2265
|
const _ = a[g].style;
|
|
1801
2266
|
if (_.fill || _.stroke || _.strokeWidth != null || _.opacity != null)
|
|
@@ -1803,7 +2268,7 @@ function Lr(t) {
|
|
|
1803
2268
|
}
|
|
1804
2269
|
let p = {};
|
|
1805
2270
|
for (const g of a)
|
|
1806
|
-
p =
|
|
2271
|
+
p = _t(p, g.style);
|
|
1807
2272
|
return p;
|
|
1808
2273
|
}, l = () => {
|
|
1809
2274
|
for (let p = a.length - 1; p >= 0; p--) {
|
|
@@ -1811,124 +2276,124 @@ function Lr(t) {
|
|
|
1811
2276
|
if (a[p].interactiveContainer || a[p].storeFolder) return !0;
|
|
1812
2277
|
}
|
|
1813
2278
|
return !1;
|
|
1814
|
-
},
|
|
2279
|
+
}, b = () => a.length > 0 ? a[a.length - 1].matrix : Et, u = () => {
|
|
1815
2280
|
for (let p = a.length - 1; p >= 0; p--) {
|
|
1816
2281
|
const g = a[p];
|
|
1817
|
-
if (!
|
|
2282
|
+
if (!kt(g) && g.id) {
|
|
1818
2283
|
g.hasNamedChild = !0;
|
|
1819
2284
|
return;
|
|
1820
2285
|
}
|
|
1821
2286
|
}
|
|
1822
|
-
},
|
|
2287
|
+
}, h = () => {
|
|
1823
2288
|
for (let p = a.length - 1; p >= 0; p--) {
|
|
1824
2289
|
const g = a[p];
|
|
1825
|
-
if (!
|
|
2290
|
+
if (!kt(g) && g.id)
|
|
1826
2291
|
return g;
|
|
1827
2292
|
}
|
|
1828
2293
|
return null;
|
|
1829
|
-
},
|
|
2294
|
+
}, d = (p) => {
|
|
1830
2295
|
if (p.routeContainer) {
|
|
1831
2296
|
for (const g of p.collectedPaths)
|
|
1832
|
-
|
|
2297
|
+
ne("path", g) && m("path", g);
|
|
1833
2298
|
return;
|
|
1834
2299
|
}
|
|
1835
|
-
|
|
2300
|
+
kt(p) || !p.id || p.collectedPaths.length === 0 || (p.hasNamedChild && c.push(
|
|
1836
2301
|
`Group ${p.id} mixes named children with ${p.collectedPaths.length} unnamed path(s); the unnamed paths were merged into a single shape "${p.id}" — give them ids if they are separate shapes`
|
|
1837
2302
|
), o.push({
|
|
1838
2303
|
id: p.id,
|
|
1839
2304
|
tag: "g",
|
|
1840
2305
|
d: p.collectedPaths.join(" "),
|
|
1841
2306
|
interactive: p.inInteractive,
|
|
1842
|
-
style:
|
|
2307
|
+
style: _t(y(), p.style)
|
|
1843
2308
|
}));
|
|
1844
2309
|
}, m = (p, g) => {
|
|
1845
2310
|
if (!g) return;
|
|
1846
2311
|
const _ = p === "polyline" || p === "polygon" || p === "path" ? g.replace(/\s*Z\s*$/i, "") : g;
|
|
1847
2312
|
i.includes(_) || i.push(_);
|
|
1848
|
-
},
|
|
2313
|
+
}, x = /<(\/?)(path|polygon|polyline|line|rect|g)\b([^>]*)(\/?)>/gi;
|
|
1849
2314
|
let I;
|
|
1850
|
-
for (; (I =
|
|
1851
|
-
const p = I[1] === "/", g = I[2].toLowerCase(), _ = I[3] ?? "",
|
|
2315
|
+
for (; (I = x.exec(e)) !== null; ) {
|
|
2316
|
+
const p = I[1] === "/", g = I[2].toLowerCase(), _ = I[3] ?? "", A = I[4] === "/" || /\/\s*$/.test(_);
|
|
1852
2317
|
if (p) {
|
|
1853
2318
|
if (g === "g") {
|
|
1854
|
-
const
|
|
1855
|
-
|
|
2319
|
+
const R = a.pop();
|
|
2320
|
+
R && d(R);
|
|
1856
2321
|
}
|
|
1857
2322
|
continue;
|
|
1858
2323
|
}
|
|
1859
2324
|
if (g === "g") {
|
|
1860
|
-
const
|
|
1861
|
-
|
|
2325
|
+
const R = F(_, "id"), $ = Gr(_), { interactiveContainer: B, nonInteractiveContainer: w, storeFolder: P } = zr($), Q = l();
|
|
2326
|
+
R && u();
|
|
1862
2327
|
const J = {
|
|
1863
|
-
id:
|
|
2328
|
+
id: R,
|
|
1864
2329
|
interactiveContainer: B,
|
|
1865
2330
|
nonInteractiveContainer: w,
|
|
1866
2331
|
storeFolder: P,
|
|
1867
|
-
inInteractive: B || P ||
|
|
2332
|
+
inInteractive: B || P || re(_) || Q && !w,
|
|
1868
2333
|
collectedPaths: [],
|
|
1869
|
-
style:
|
|
1870
|
-
matrix: j(
|
|
2334
|
+
style: Qt(_),
|
|
2335
|
+
matrix: j(b(), te(F(_, "transform"))),
|
|
1871
2336
|
hasNamedChild: !1,
|
|
1872
|
-
routeContainer: $.some(
|
|
2337
|
+
routeContainer: $.some(Ae) || f()
|
|
1873
2338
|
};
|
|
1874
|
-
|
|
2339
|
+
A || a.push(J);
|
|
1875
2340
|
continue;
|
|
1876
2341
|
}
|
|
1877
|
-
const k = F(_, "id"),
|
|
1878
|
-
if (
|
|
1879
|
-
|
|
2342
|
+
const k = F(_, "id"), S = Ur(g, _), v = j(b(), te(F(_, "transform"))), C = S && Fr(S, v), K = re(_) || l(), M = _t(y(), Qt(_)), Y = F(_, "data-name");
|
|
2343
|
+
if (f()) {
|
|
2344
|
+
ne(g, S) && m(g, C);
|
|
1880
2345
|
continue;
|
|
1881
2346
|
}
|
|
1882
|
-
if (k != null &&
|
|
2347
|
+
if (k != null && ee(k) || Y != null && ee(Y))
|
|
1883
2348
|
continue;
|
|
1884
2349
|
if (k) {
|
|
1885
|
-
u(),
|
|
2350
|
+
u(), C && o.push({ id: k, tag: g, d: C, interactive: K, style: M });
|
|
1886
2351
|
continue;
|
|
1887
2352
|
}
|
|
1888
|
-
if (!
|
|
1889
|
-
const
|
|
1890
|
-
|
|
2353
|
+
if (!C) continue;
|
|
2354
|
+
const E = h();
|
|
2355
|
+
E ? (E.collectedPaths.push(C), !E.style.fill && M.fill && (E.style = M)) : K && (s += 1, o.push({
|
|
1891
2356
|
id: `interactive-anon-${s}`,
|
|
1892
2357
|
tag: g,
|
|
1893
|
-
d:
|
|
2358
|
+
d: C,
|
|
1894
2359
|
interactive: !0,
|
|
1895
|
-
style:
|
|
2360
|
+
style: M
|
|
1896
2361
|
}));
|
|
1897
2362
|
}
|
|
1898
2363
|
for (; a.length > 0; )
|
|
1899
|
-
|
|
2364
|
+
d(a.pop());
|
|
1900
2365
|
return { viewbox: r, elements: o, routePathDs: i, warnings: c };
|
|
1901
2366
|
}
|
|
1902
|
-
function
|
|
2367
|
+
function Wr(t) {
|
|
1903
2368
|
return t.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "").slice(0, 80);
|
|
1904
2369
|
}
|
|
1905
|
-
function
|
|
2370
|
+
function Zr(t, e) {
|
|
1906
2371
|
var o, i, c, a;
|
|
1907
|
-
const
|
|
1908
|
-
return
|
|
2372
|
+
const n = ft(e), r = {};
|
|
2373
|
+
return n != null && n.fill ? r.fill = n.fill : (o = t.style) != null && o.fill && (r.fill = t.style.fill), n != null && n.stroke ? r.stroke = n.stroke : (i = t.style) != null && i.stroke && (r.stroke = t.style.stroke), (n == null ? void 0 : n.strokeWidth) != null ? r.strokeWidth = n.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), (n == null ? void 0 : n.extrudeHeight) != null && (r.extrudeHeight = n.extrudeHeight), r;
|
|
1909
2374
|
}
|
|
1910
|
-
function
|
|
1911
|
-
return t == null &&
|
|
2375
|
+
function jr(t, e) {
|
|
2376
|
+
return t == null && e == null ? !0 : t == null || e == null ? !1 : Math.abs(t.x - e.x) < 0.01 && Math.abs(t.y - e.y) < 0.01 && Math.abs(t.width - e.width) < 0.01 && Math.abs(t.height - e.height) < 0.01;
|
|
1912
2377
|
}
|
|
1913
|
-
function
|
|
1914
|
-
const r =
|
|
1915
|
-
let
|
|
1916
|
-
const
|
|
1917
|
-
|
|
2378
|
+
function qi(t, e = "floor", n = {}) {
|
|
2379
|
+
const r = Vr(t), o = [], i = [], c = [], a = [...r.warnings], s = [];
|
|
2380
|
+
let f = 0, y = 0, l = 0;
|
|
2381
|
+
const b = n.previousViewbox != null && r.viewbox != null && !jr(n.previousViewbox, r.viewbox);
|
|
2382
|
+
b && a.push(
|
|
1918
2383
|
"SVG viewBox differs from the stored artboard — re-upload blocked until the designer restores the original viewBox"
|
|
1919
2384
|
);
|
|
1920
2385
|
for (const u of r.elements) {
|
|
1921
|
-
if (
|
|
1922
|
-
let { kind:
|
|
1923
|
-
u.interactive && !
|
|
2386
|
+
if (Ce(u.id)) continue;
|
|
2387
|
+
let { kind: h, guessed: d } = Br(u.id, e);
|
|
2388
|
+
u.interactive && !h && (h = "unit", d = !0);
|
|
1924
2389
|
const m = {
|
|
1925
2390
|
sourceSvgId: u.id,
|
|
1926
|
-
kind:
|
|
1927
|
-
guessed:
|
|
2391
|
+
kind: h,
|
|
2392
|
+
guessed: d
|
|
1928
2393
|
};
|
|
1929
|
-
if (!
|
|
1930
|
-
if (i.push(u.id),
|
|
1931
|
-
|
|
2394
|
+
if (!h)
|
|
2395
|
+
if (i.push(u.id), e === "floor")
|
|
2396
|
+
h = "decor", m.kind = "decor", m.message = "No matching prefix; imported as decor (floor mode)";
|
|
1932
2397
|
else {
|
|
1933
2398
|
m.message = "No matching prefix; skipped (outdoor decor stays in SVG)", o.push(m);
|
|
1934
2399
|
continue;
|
|
@@ -1937,9 +2402,9 @@ function Si(t, n = "floor", e = {}) {
|
|
|
1937
2402
|
a.push(`Element ${u.id} has no drawable geometry`);
|
|
1938
2403
|
continue;
|
|
1939
2404
|
}
|
|
1940
|
-
if (
|
|
2405
|
+
if (e === "base") {
|
|
1941
2406
|
const p = ft(u.id) != null;
|
|
1942
|
-
if (!(!p && (
|
|
2407
|
+
if (!(!p && (Yr.includes(h) || !!u.interactive))) {
|
|
1943
2408
|
o.push({
|
|
1944
2409
|
...m,
|
|
1945
2410
|
message: p ? "Static decoration — rendered from outdoor SVG" : "Decoration — not persisted; rendered from outdoor SVG"
|
|
@@ -1947,25 +2412,25 @@ function Si(t, n = "floor", e = {}) {
|
|
|
1947
2412
|
continue;
|
|
1948
2413
|
}
|
|
1949
2414
|
}
|
|
1950
|
-
|
|
1951
|
-
const
|
|
2415
|
+
d && (c.push(m), m.message = m.message ?? "Guessed kind from interactive/fallback rule"), o.push(m), h === "walkable" && f++, h === "void" && y++, h === "unit" && l++;
|
|
2416
|
+
const x = Wn([u.d]), I = Mt(x);
|
|
1952
2417
|
s.push({
|
|
1953
|
-
key:
|
|
1954
|
-
kind:
|
|
1955
|
-
geometry:
|
|
2418
|
+
key: Wr(u.id),
|
|
2419
|
+
kind: h,
|
|
2420
|
+
geometry: x,
|
|
1956
2421
|
bbox: I,
|
|
1957
2422
|
sourceSvgId: u.id,
|
|
1958
|
-
style:
|
|
2423
|
+
style: Zr(u, u.id)
|
|
1959
2424
|
});
|
|
1960
2425
|
}
|
|
1961
|
-
return
|
|
2426
|
+
return e === "floor" && f === 0 && a.push(
|
|
1962
2427
|
"No walkable layer found — auto-skeleton will be unavailable for this level"
|
|
1963
2428
|
), {
|
|
1964
2429
|
report: {
|
|
1965
2430
|
classified: o,
|
|
1966
2431
|
unrecognized: i,
|
|
1967
2432
|
guessed: c,
|
|
1968
|
-
walkableCount:
|
|
2433
|
+
walkableCount: f,
|
|
1969
2434
|
voidCount: y,
|
|
1970
2435
|
unitCount: l,
|
|
1971
2436
|
warnings: a
|
|
@@ -1973,49 +2438,49 @@ function Si(t, n = "floor", e = {}) {
|
|
|
1973
2438
|
shapes: s,
|
|
1974
2439
|
viewbox: r.viewbox,
|
|
1975
2440
|
routePathDs: r.routePathDs,
|
|
1976
|
-
viewBoxChanged:
|
|
2441
|
+
viewBoxChanged: b
|
|
1977
2442
|
};
|
|
1978
2443
|
}
|
|
1979
|
-
function
|
|
1980
|
-
const o = r.driftThreshold ??
|
|
1981
|
-
|
|
2444
|
+
function Qi(t, e, n, r = {}) {
|
|
2445
|
+
const o = r.driftThreshold ?? $r, i = new Map(
|
|
2446
|
+
e.filter((s) => s.sourceSvgId).map((s) => [s.sourceSvgId, s])
|
|
1982
2447
|
), c = /* @__PURE__ */ new Set(), a = [];
|
|
1983
2448
|
for (const s of t) {
|
|
1984
|
-
const
|
|
1985
|
-
if (c.add(s.sourceSvgId), !
|
|
2449
|
+
const f = i.get(s.sourceSvgId);
|
|
2450
|
+
if (c.add(s.sourceSvgId), !f)
|
|
1986
2451
|
a.push({
|
|
1987
2452
|
sourceSvgId: s.sourceSvgId,
|
|
1988
2453
|
change: "added",
|
|
1989
2454
|
newKind: s.kind
|
|
1990
2455
|
});
|
|
1991
|
-
else if (
|
|
2456
|
+
else if (f.kind !== s.kind)
|
|
1992
2457
|
a.push({
|
|
1993
2458
|
sourceSvgId: s.sourceSvgId,
|
|
1994
2459
|
change: "kind_changed",
|
|
1995
|
-
existingShapeId:
|
|
1996
|
-
existingKind:
|
|
2460
|
+
existingShapeId: f.id,
|
|
2461
|
+
existingKind: f.kind,
|
|
1997
2462
|
newKind: s.kind,
|
|
1998
|
-
preserve: { key:
|
|
1999
|
-
geometryLocked:
|
|
2463
|
+
preserve: { key: f.key, assignment: !0, anchors: !0 },
|
|
2464
|
+
geometryLocked: f.geometryLocked
|
|
2000
2465
|
});
|
|
2001
2466
|
else {
|
|
2002
2467
|
let y = "unchanged";
|
|
2003
|
-
if (
|
|
2004
|
-
const l = (
|
|
2005
|
-
Math.hypot(u.x - l, u.y -
|
|
2468
|
+
if (f.bbox) {
|
|
2469
|
+
const l = (f.bbox.minX + f.bbox.maxX) / 2, b = (f.bbox.minY + f.bbox.maxY) / 2, u = Zn(s.geometry);
|
|
2470
|
+
Math.hypot(u.x - l, u.y - b) > o && (y = "moved");
|
|
2006
2471
|
}
|
|
2007
2472
|
a.push({
|
|
2008
2473
|
sourceSvgId: s.sourceSvgId,
|
|
2009
2474
|
change: y,
|
|
2010
|
-
existingShapeId:
|
|
2011
|
-
existingKind:
|
|
2475
|
+
existingShapeId: f.id,
|
|
2476
|
+
existingKind: f.kind,
|
|
2012
2477
|
newKind: s.kind,
|
|
2013
|
-
preserve: { key:
|
|
2014
|
-
geometryLocked:
|
|
2478
|
+
preserve: { key: f.key, assignment: !0, anchors: !0 },
|
|
2479
|
+
geometryLocked: f.geometryLocked
|
|
2015
2480
|
});
|
|
2016
2481
|
}
|
|
2017
2482
|
}
|
|
2018
|
-
for (const s of
|
|
2483
|
+
for (const s of e)
|
|
2019
2484
|
s.sourceSvgId && !c.has(s.sourceSvgId) && a.push({
|
|
2020
2485
|
sourceSvgId: s.sourceSvgId,
|
|
2021
2486
|
change: "removed",
|
|
@@ -2026,356 +2491,94 @@ function Ai(t, n, e, r = {}) {
|
|
|
2026
2491
|
return {
|
|
2027
2492
|
items: a,
|
|
2028
2493
|
shapes: t,
|
|
2029
|
-
viewbox:
|
|
2494
|
+
viewbox: n
|
|
2030
2495
|
};
|
|
2031
2496
|
}
|
|
2032
|
-
const L = 1e-6,
|
|
2033
|
-
function
|
|
2034
|
-
return Math.abs(t.x -
|
|
2497
|
+
const L = 1e-6, qr = 15 * Math.PI / 180, Qr = 1e-3, rt = Math.PI * 2;
|
|
2498
|
+
function oe(t, e) {
|
|
2499
|
+
return Math.abs(t.x - e.x) < L && Math.abs(t.y - e.y) < L;
|
|
2035
2500
|
}
|
|
2036
|
-
function
|
|
2037
|
-
return { x: t.x +
|
|
2501
|
+
function At(t, e) {
|
|
2502
|
+
return { x: t.x + e.x, y: t.y + e.y };
|
|
2038
2503
|
}
|
|
2039
|
-
function
|
|
2040
|
-
return { x: t.x -
|
|
2504
|
+
function ie(t, e) {
|
|
2505
|
+
return { x: t.x - e.x, y: t.y - e.y };
|
|
2041
2506
|
}
|
|
2042
|
-
function
|
|
2043
|
-
return { x: t.x *
|
|
2507
|
+
function ot(t, e) {
|
|
2508
|
+
return { x: t.x * e, y: t.y * e };
|
|
2044
2509
|
}
|
|
2045
|
-
function St(t,
|
|
2510
|
+
function St(t, e, n) {
|
|
2046
2511
|
return {
|
|
2047
|
-
x: t.x + Math.cos(
|
|
2048
|
-
y: t.y + Math.sin(
|
|
2512
|
+
x: t.x + Math.cos(n) * e,
|
|
2513
|
+
y: t.y + Math.sin(n) * e
|
|
2049
2514
|
};
|
|
2050
2515
|
}
|
|
2051
|
-
function
|
|
2052
|
-
const
|
|
2053
|
-
for (const
|
|
2054
|
-
const r =
|
|
2055
|
-
r &&
|
|
2516
|
+
function Jr(t) {
|
|
2517
|
+
const e = [];
|
|
2518
|
+
for (const n of t) {
|
|
2519
|
+
const r = e[e.length - 1];
|
|
2520
|
+
r && oe(r, n) || e.push(n);
|
|
2056
2521
|
}
|
|
2057
|
-
return
|
|
2522
|
+
return e.length >= 2 && oe(e[0], e[e.length - 1]) && e.pop(), e;
|
|
2058
2523
|
}
|
|
2059
|
-
function
|
|
2060
|
-
const
|
|
2061
|
-
if (r.length < 3 ||
|
|
2062
|
-
const o = r.length, i = new Array(o), c = new Array(o), a = new Array(o), s = new Array(o),
|
|
2524
|
+
function Ji(t, e) {
|
|
2525
|
+
const n = ue(e), r = Jr(t);
|
|
2526
|
+
if (r.length < 3 || n <= 0) return t;
|
|
2527
|
+
const o = r.length, i = new Array(o), c = new Array(o), a = new Array(o), s = new Array(o), f = new Array(o).fill(0), y = new Array(o).fill(0), l = new Array(o).fill(!1);
|
|
2063
2528
|
for (let u = 0; u < o; u++) {
|
|
2064
|
-
const
|
|
2065
|
-
if (a[u] = I,
|
|
2529
|
+
const h = r[(u - 1 + o) % o], d = r[u], m = r[(u + 1) % o], x = N(h, d), I = N(d, m);
|
|
2530
|
+
if (a[u] = I, x < L || I < L) {
|
|
2066
2531
|
i[u] = { x: 1, y: 0 }, c[u] = { x: 1, y: 0 }, s[u] = 0;
|
|
2067
2532
|
continue;
|
|
2068
2533
|
}
|
|
2069
|
-
i[u] =
|
|
2534
|
+
i[u] = ot(ie(d, h), 1 / x), c[u] = ot(ie(m, d), 1 / I);
|
|
2070
2535
|
const p = 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;
|
|
2071
2536
|
s[u] = Math.atan2(p, g);
|
|
2072
2537
|
const _ = Math.abs(s[u]);
|
|
2073
|
-
if (_ <
|
|
2074
|
-
const
|
|
2075
|
-
if (k < L ||
|
|
2076
|
-
const
|
|
2077
|
-
|
|
2538
|
+
if (_ < qr) continue;
|
|
2539
|
+
const A = Math.PI - _, k = Math.tan(A / 2);
|
|
2540
|
+
if (k < L || A <= L || A >= Math.PI - L) continue;
|
|
2541
|
+
const S = n / k;
|
|
2542
|
+
f[u] = S, y[u] = S, l[u] = !0;
|
|
2078
2543
|
}
|
|
2079
2544
|
for (let u = 0; u < o; u++) {
|
|
2080
|
-
const
|
|
2081
|
-
if (
|
|
2082
|
-
const
|
|
2083
|
-
y[u] *=
|
|
2545
|
+
const h = (u + 1) % o, d = y[u] + f[h], m = Math.max(0, a[u] - Qr);
|
|
2546
|
+
if (d <= m || d <= L) continue;
|
|
2547
|
+
const x = m / d;
|
|
2548
|
+
y[u] *= x, f[h] *= x;
|
|
2084
2549
|
}
|
|
2085
|
-
const
|
|
2550
|
+
const b = [];
|
|
2086
2551
|
for (let u = 0; u < o; u++) {
|
|
2087
|
-
const
|
|
2088
|
-
if (!l[u] || I < L ||
|
|
2089
|
-
|
|
2552
|
+
const h = r[u], d = Math.min(f[u], y[u]), m = Math.abs(s[u]), x = Math.PI - m, I = d * Math.tan(x / 2);
|
|
2553
|
+
if (!l[u] || I < L || d < L) {
|
|
2554
|
+
b.push({ ...h });
|
|
2090
2555
|
continue;
|
|
2091
2556
|
}
|
|
2092
|
-
const p =
|
|
2557
|
+
const p = At(h, ot(i[u], -d)), g = At(h, ot(c[u], d)), _ = s[u] > 0 ? 1 : -1, A = At(p, {
|
|
2093
2558
|
x: -i[u].y * _ * I,
|
|
2094
2559
|
y: i[u].x * _ * I
|
|
2095
|
-
}), k = Math.atan2(p.y -
|
|
2096
|
-
for (let $ = 0; $ <=
|
|
2097
|
-
const B = $ /
|
|
2098
|
-
|
|
2099
|
-
}
|
|
2100
|
-
}
|
|
2101
|
-
return x;
|
|
2102
|
-
}
|
|
2103
|
-
function z(t, n, e) {
|
|
2104
|
-
return { x: t.x + (n.x - t.x) * e, y: t.y + (n.y - t.y) * e };
|
|
2105
|
-
}
|
|
2106
|
-
function ot(t, n) {
|
|
2107
|
-
return { x: t.x + n.x, y: t.y + n.y };
|
|
2108
|
-
}
|
|
2109
|
-
function rn(t, n) {
|
|
2110
|
-
return { x: t.x - n.x, y: t.y - n.y };
|
|
2111
|
-
}
|
|
2112
|
-
function At(t, n) {
|
|
2113
|
-
return { x: t.x * n, y: t.y * n };
|
|
2114
|
-
}
|
|
2115
|
-
function q(t) {
|
|
2116
|
-
const n = t == null ? void 0 : t.curve;
|
|
2117
|
-
if (!(n != null && n.c1) || !(n != null && n.c2)) return null;
|
|
2118
|
-
const e = Number(n.c1.x), r = Number(n.c1.y), o = Number(n.c2.x), i = Number(n.c2.y);
|
|
2119
|
-
return [e, r, o, i].every((c) => Number.isFinite(c)) ? {
|
|
2120
|
-
c1: { x: e, y: r },
|
|
2121
|
-
c2: { x: o, y: i }
|
|
2122
|
-
} : null;
|
|
2123
|
-
}
|
|
2124
|
-
function Ri(t) {
|
|
2125
|
-
const n = q(t);
|
|
2126
|
-
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(
|
|
2127
|
-
(r) => r == null || !Number.isFinite(Number(r))
|
|
2128
|
-
) ? null : {
|
|
2129
|
-
c1: { x: Number(t.c1_x), y: Number(t.c1_y) },
|
|
2130
|
-
c2: { x: Number(t.c2_x), y: Number(t.c2_y) }
|
|
2131
|
-
});
|
|
2132
|
-
}
|
|
2133
|
-
function Dr(t) {
|
|
2134
|
-
return {
|
|
2135
|
-
c1: { x: t.c2.x, y: t.c2.y },
|
|
2136
|
-
c2: { x: t.c1.x, y: t.c1.y }
|
|
2137
|
-
};
|
|
2138
|
-
}
|
|
2139
|
-
function Ei(t, n, e) {
|
|
2140
|
-
const r = z(t, n, 0.5), o = At(rn(e, r), 4 / 3), i = rn(n, t);
|
|
2141
|
-
return {
|
|
2142
|
-
c1: ot(ot(t, At(i, 1 / 3)), o),
|
|
2143
|
-
c2: ot(ot(t, At(i, 2 / 3)), o)
|
|
2144
|
-
};
|
|
2145
|
-
}
|
|
2146
|
-
function Ni(t, n, e) {
|
|
2147
|
-
return n === 1 ? { ...t, c1: { x: e.x, y: e.y } } : { ...t, c2: { x: e.x, y: e.y } };
|
|
2148
|
-
}
|
|
2149
|
-
function Li(t, n, e) {
|
|
2150
|
-
const r = q(t);
|
|
2151
|
-
if (!r) return null;
|
|
2152
|
-
const o = t.fromAnchorId === n, i = t.toAnchorId === n;
|
|
2153
|
-
return !o && !i ? null : {
|
|
2154
|
-
c1: o ? { x: r.c1.x + e.x, y: r.c1.y + e.y } : { x: r.c1.x, y: r.c1.y },
|
|
2155
|
-
c2: i ? { x: r.c2.x + e.x, y: r.c2.y + e.y } : { x: r.c2.x, y: r.c2.y }
|
|
2156
|
-
};
|
|
2157
|
-
}
|
|
2158
|
-
function vi(t, n, e) {
|
|
2159
|
-
const r = q(t);
|
|
2160
|
-
if (!r) return null;
|
|
2161
|
-
const o = n.get(t.fromAnchorId), i = n.get(t.toAnchorId), c = e.get(t.fromAnchorId), a = e.get(t.toAnchorId);
|
|
2162
|
-
return !o || !i || !c || !a ? r : {
|
|
2163
|
-
c1: {
|
|
2164
|
-
x: r.c1.x + c.x - o.x,
|
|
2165
|
-
y: r.c1.y + c.y - o.y
|
|
2166
|
-
},
|
|
2167
|
-
c2: {
|
|
2168
|
-
x: r.c2.x + a.x - i.x,
|
|
2169
|
-
y: r.c2.y + a.y - i.y
|
|
2170
|
-
}
|
|
2171
|
-
};
|
|
2172
|
-
}
|
|
2173
|
-
function Mi(t, n, e) {
|
|
2174
|
-
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}`;
|
|
2175
|
-
}
|
|
2176
|
-
function Cn(t, n, e) {
|
|
2177
|
-
if (!e) return v(t, n);
|
|
2178
|
-
const r = lt(t, e.c1, e.c2, n, 16);
|
|
2179
|
-
let o = 0;
|
|
2180
|
-
for (let i = 1; i < r.length; i += 1)
|
|
2181
|
-
o += v(r[i - 1], r[i]);
|
|
2182
|
-
return o;
|
|
2183
|
-
}
|
|
2184
|
-
function Kr(t, n, e, r) {
|
|
2185
|
-
if (!r) return at(t, n, e);
|
|
2186
|
-
const o = lt(n, r.c1, r.c2, e, 24), i = Math.max(o.length - 1, 1);
|
|
2187
|
-
let c = {
|
|
2188
|
-
point: { x: n.x, y: n.y },
|
|
2189
|
-
t: 0,
|
|
2190
|
-
distance: v(t, n)
|
|
2191
|
-
};
|
|
2192
|
-
for (let a = 1; a < o.length; a += 1) {
|
|
2193
|
-
const s = at(t, o[a - 1], o[a]);
|
|
2194
|
-
s.distance < c.distance && (c = {
|
|
2195
|
-
point: s.point,
|
|
2196
|
-
t: (a - 1 + s.t) / i,
|
|
2197
|
-
distance: s.distance
|
|
2198
|
-
});
|
|
2199
|
-
}
|
|
2200
|
-
return c;
|
|
2201
|
-
}
|
|
2202
|
-
function Yr(t, n, e, r, o) {
|
|
2203
|
-
const i = z(t, n, o), c = z(n, e, o), a = z(e, r, o), s = z(i, c, o), h = z(c, a, o), y = z(s, h, o);
|
|
2204
|
-
return {
|
|
2205
|
-
left: { c1: i, c2: s },
|
|
2206
|
-
right: { c1: h, c2: a },
|
|
2207
|
-
point: y
|
|
2208
|
-
};
|
|
2209
|
-
}
|
|
2210
|
-
function Ti(t, n, e, r) {
|
|
2211
|
-
if (!e)
|
|
2212
|
-
return { point: at(r, t, n).point, left: null, right: null };
|
|
2213
|
-
const o = Kr(r, t, n, e), i = Math.min(1, Math.max(0, o.t)), c = Yr(t, e.c1, e.c2, n, i);
|
|
2214
|
-
return { point: c.point, left: c.left, right: c.right };
|
|
2215
|
-
}
|
|
2216
|
-
function $r(t, n, e) {
|
|
2217
|
-
const r = t.connectorId ?? n.connectorId;
|
|
2218
|
-
return r == null ? void 0 : e.get(r);
|
|
2219
|
-
}
|
|
2220
|
-
function Br(t, n, e, r) {
|
|
2221
|
-
var o;
|
|
2222
|
-
return n.levelId === e.levelId ? !0 : t.kind !== "connector" ? !1 : Bn(
|
|
2223
|
-
(o = $r(n, e, r)) == null ? void 0 : o.kind
|
|
2224
|
-
);
|
|
2225
|
-
}
|
|
2226
|
-
function Gr(t, n, e = []) {
|
|
2227
|
-
const r = En(), o = new Map(t.map((s) => [s.id, s])), i = new Map(e.map((s) => [s.id, s])), c = t.map((s) => ({
|
|
2228
|
-
id: s.id,
|
|
2229
|
-
levelId: s.levelId,
|
|
2230
|
-
x: s.x,
|
|
2231
|
-
y: s.y,
|
|
2232
|
-
kind: s.kind,
|
|
2233
|
-
shapeId: s.shapeId,
|
|
2234
|
-
connectorId: s.connectorId
|
|
2235
|
-
}));
|
|
2236
|
-
for (const s of c)
|
|
2237
|
-
r.addNode(s.id, s);
|
|
2238
|
-
const a = [];
|
|
2239
|
-
for (const s of n) {
|
|
2240
|
-
const h = o.get(s.fromAnchorId), y = o.get(s.toAnchorId);
|
|
2241
|
-
if (!h || !y || !Br(s, h, y, i)) continue;
|
|
2242
|
-
const l = q(s);
|
|
2243
|
-
let x = s.weight;
|
|
2244
|
-
x == null && (x = Cn(h, y, l), h.levelId !== y.levelId && (x += Rt));
|
|
2245
|
-
let u = s.accessible;
|
|
2246
|
-
if (s.kind === "connector" && h.connectorId != null) {
|
|
2247
|
-
const f = i.get(h.connectorId);
|
|
2248
|
-
f && (u = f.accessible);
|
|
2560
|
+
}), k = Math.atan2(p.y - A.y, p.x - A.x), S = Math.atan2(g.y - A.y, g.x - A.x), v = (S - k + rt) % rt, C = (k - S + rt) % rt, K = St(A, I, k + v / 2), M = St(A, I, k - C / 2), Y = N(K, h) <= N(M, h), E = Y ? v : C, R = Math.max(8, Math.min(28, Math.ceil(E * I / 2)));
|
|
2561
|
+
for (let $ = 0; $ <= R; $++) {
|
|
2562
|
+
const B = $ / R, w = Y ? k + E * B : k - E * B;
|
|
2563
|
+
b.push(St(A, I, w));
|
|
2249
2564
|
}
|
|
2250
|
-
const d = {
|
|
2251
|
-
id: s.id,
|
|
2252
|
-
from: s.fromAnchorId,
|
|
2253
|
-
to: s.toAnchorId,
|
|
2254
|
-
weight: x,
|
|
2255
|
-
directed: s.directed,
|
|
2256
|
-
accessible: u,
|
|
2257
|
-
kind: s.kind,
|
|
2258
|
-
curve: l
|
|
2259
|
-
};
|
|
2260
|
-
a.push(d), r.addLink(s.fromAnchorId, s.toAnchorId, d), s.directed || r.addLink(s.toAnchorId, s.fromAnchorId, d);
|
|
2261
2565
|
}
|
|
2262
|
-
return
|
|
2566
|
+
return b;
|
|
2263
2567
|
}
|
|
2264
|
-
function
|
|
2265
|
-
const
|
|
2266
|
-
if (!i.has(n) || !i.has(e))
|
|
2267
|
-
return null;
|
|
2268
|
-
const a = Nn.nba(o, {
|
|
2269
|
-
oriented: !0,
|
|
2270
|
-
distance(d, f, m) {
|
|
2271
|
-
const b = m.data;
|
|
2272
|
-
return r.accessibleOnly && b && !b.accessible ? Number.POSITIVE_INFINITY : (b == null ? void 0 : b.weight) ?? 1;
|
|
2273
|
-
},
|
|
2274
|
-
heuristic(d, f) {
|
|
2275
|
-
const m = i.get(d.id), b = i.get(f.id);
|
|
2276
|
-
if (!m || !b) return 0;
|
|
2277
|
-
let I = v(m, b);
|
|
2278
|
-
return m.levelId !== b.levelId && (I += Rt), I;
|
|
2279
|
-
}
|
|
2280
|
-
}).find(n, e);
|
|
2281
|
-
if (!a || a.length === 0) return null;
|
|
2282
|
-
const h = a.reverse().map((d) => d.id), y = [], l = [], x = [];
|
|
2283
|
-
let u = 0;
|
|
2284
|
-
for (let d = 0; d < h.length; d++) {
|
|
2285
|
-
const f = i.get(h[d]);
|
|
2286
|
-
if (y.push({ x: f.x, y: f.y, levelId: f.levelId }), d > 0) {
|
|
2287
|
-
const m = h[d - 1], b = i.get(m), I = Xr(t, m, h[d]);
|
|
2288
|
-
l.push(I), u += Cn(b, f, I), b.levelId !== f.levelId && (u += Rt, x.push({
|
|
2289
|
-
fromLevelId: b.levelId,
|
|
2290
|
-
toLevelId: f.levelId,
|
|
2291
|
-
connectorId: f.connectorId ?? b.connectorId
|
|
2292
|
-
}));
|
|
2293
|
-
}
|
|
2294
|
-
}
|
|
2295
|
-
return { anchorIds: h, points: y, curves: l, totalWeight: u, levelChanges: x };
|
|
2296
|
-
}
|
|
2297
|
-
function Xr(t, n, e) {
|
|
2298
|
-
const r = t.edges.find(
|
|
2299
|
-
(i) => i.from === n && i.to === e || !i.directed && i.from === e && i.to === n
|
|
2300
|
-
), o = q(r);
|
|
2301
|
-
return !o || !r ? null : r.from === n ? o : Dr(o);
|
|
2302
|
-
}
|
|
2303
|
-
function Nt(t) {
|
|
2304
|
-
const n = /* @__PURE__ */ new Set(), e = [];
|
|
2305
|
-
for (const r of t)
|
|
2306
|
-
!Number.isFinite(r) || n.has(r) || (n.add(r), e.push(r));
|
|
2307
|
-
return e;
|
|
2308
|
-
}
|
|
2309
|
-
function wi(t, n) {
|
|
2310
|
-
return t.filter((e) => e.shapeId === n).map((e) => e.id);
|
|
2311
|
-
}
|
|
2312
|
-
function Pi(t, n) {
|
|
2313
|
-
const e = [];
|
|
2314
|
-
for (const r of t) {
|
|
2315
|
-
const o = /* @__PURE__ */ new Set();
|
|
2316
|
-
for (const i of r.shapes)
|
|
2317
|
-
n(i) && o.add(i.id);
|
|
2318
|
-
if (o.size !== 0)
|
|
2319
|
-
for (const i of r.anchors)
|
|
2320
|
-
i.shapeId != null && o.has(i.shapeId) && e.push(i.id);
|
|
2321
|
-
}
|
|
2322
|
-
return e;
|
|
2323
|
-
}
|
|
2324
|
-
function Hr(t, n) {
|
|
2325
|
-
const e = t.anchorById.get(n);
|
|
2326
|
-
if (!e) return [];
|
|
2327
|
-
if (e.shapeId == null) return [n];
|
|
2328
|
-
const r = t.nodes.filter((o) => o.shapeId === e.shapeId).map((o) => o.id);
|
|
2329
|
-
return r.length > 0 ? r : [n];
|
|
2330
|
-
}
|
|
2331
|
-
function on(t, n) {
|
|
2332
|
-
const e = /* @__PURE__ */ new Set();
|
|
2333
|
-
for (const r of Nt(n))
|
|
2334
|
-
for (const o of Hr(t, r))
|
|
2335
|
-
e.add(o);
|
|
2336
|
-
return [...e];
|
|
2337
|
-
}
|
|
2338
|
-
function Ur(t, n, e, r = {}) {
|
|
2339
|
-
const o = Nt(n), i = Nt(e);
|
|
2340
|
-
if (o.length === 0 || i.length === 0) return null;
|
|
2341
|
-
let c = null;
|
|
2342
|
-
for (const a of o)
|
|
2343
|
-
for (const s of i) {
|
|
2344
|
-
const h = zr(t, a, s, r);
|
|
2345
|
-
h && (!c || h.totalWeight < c.totalWeight) && (c = h);
|
|
2346
|
-
}
|
|
2347
|
-
return c;
|
|
2348
|
-
}
|
|
2349
|
-
function Vr(t, n, e, r = {}) {
|
|
2350
|
-
return Ur(
|
|
2351
|
-
t,
|
|
2352
|
-
on(t, n),
|
|
2353
|
-
on(t, e),
|
|
2354
|
-
r
|
|
2355
|
-
);
|
|
2356
|
-
}
|
|
2357
|
-
function Fi(t, n, e, r = {}) {
|
|
2358
|
-
return Vr(
|
|
2359
|
-
t,
|
|
2360
|
-
[n],
|
|
2361
|
-
e,
|
|
2362
|
-
r
|
|
2363
|
-
);
|
|
2364
|
-
}
|
|
2365
|
-
function Di(t) {
|
|
2366
|
-
const n = qn(t.theme), e = new Map(
|
|
2568
|
+
function ts(t) {
|
|
2569
|
+
const e = Qe(t.theme), n = new Map(
|
|
2367
2570
|
t.assignments.map((s) => [s.shapeId, s])
|
|
2368
2571
|
), r = new Map(
|
|
2369
2572
|
(t.retailers ?? []).map((s) => [s.id, s])
|
|
2370
|
-
), o = t.resolveSvgUrl ?? ((s) => s), i = t.levels.filter((s) => s.isActive).sort((s,
|
|
2371
|
-
const
|
|
2372
|
-
const
|
|
2573
|
+
), o = t.resolveSvgUrl ?? ((s) => s), i = t.levels.filter((s) => s.isActive).sort((s, f) => s.ordering - f.ordering).map((s) => {
|
|
2574
|
+
const f = t.shapes.filter((l) => l.levelId === s.id).map((l) => {
|
|
2575
|
+
const b = Ie(l.geometry), u = n.get(l.id) ?? null, h = (u == null ? void 0 : u.retailerId) != null ? r.get(u.retailerId) ?? null : null, d = h && !t.persistMediaKeys ? { ...h, logoKey: null } : h;
|
|
2373
2576
|
return {
|
|
2374
2577
|
...l,
|
|
2375
|
-
geometry:
|
|
2376
|
-
bbox:
|
|
2578
|
+
geometry: b,
|
|
2579
|
+
bbox: b === l.geometry ? l.bbox : Mt(b),
|
|
2377
2580
|
assignment: u,
|
|
2378
|
-
label:
|
|
2581
|
+
label: he(l, u, d)
|
|
2379
2582
|
};
|
|
2380
2583
|
}), y = t.anchors.filter((l) => l.levelId === s.id);
|
|
2381
2584
|
return {
|
|
@@ -2388,10 +2591,10 @@ function Di(t) {
|
|
|
2388
2591
|
sourceSvgUrl: o(s.sourceSvgKey) ?? s.sourceSvgUrl ?? null,
|
|
2389
2592
|
viewbox: s.sourceViewbox,
|
|
2390
2593
|
transform: s.transform,
|
|
2391
|
-
shapes:
|
|
2594
|
+
shapes: f,
|
|
2392
2595
|
anchors: y
|
|
2393
2596
|
};
|
|
2394
|
-
}), { nodes: c, edges: a } =
|
|
2597
|
+
}), { nodes: c, edges: a } = nr(
|
|
2395
2598
|
t.anchors,
|
|
2396
2599
|
t.edges,
|
|
2397
2600
|
t.connectors
|
|
@@ -2402,7 +2605,7 @@ function Di(t) {
|
|
|
2402
2605
|
revisionNumber: t.revisionNumber,
|
|
2403
2606
|
centerId: t.centerId,
|
|
2404
2607
|
mapId: t.mapId,
|
|
2405
|
-
theme:
|
|
2608
|
+
theme: e,
|
|
2406
2609
|
baseSvgUrl: t.baseSvgUrl,
|
|
2407
2610
|
baseViewbox: t.baseViewbox,
|
|
2408
2611
|
buildings: t.buildings,
|
|
@@ -2410,93 +2613,93 @@ function Di(t) {
|
|
|
2410
2613
|
connectors: t.connectors,
|
|
2411
2614
|
amenities: t.amenities.filter((s) => s.isActive),
|
|
2412
2615
|
retailers: (t.retailers ?? []).map(
|
|
2413
|
-
(s) =>
|
|
2616
|
+
(s) => to(s, !!t.persistMediaKeys)
|
|
2414
2617
|
),
|
|
2415
2618
|
graph: { nodes: c, edges: a },
|
|
2416
2619
|
responsiveOverrides: t.responsiveOverrides,
|
|
2417
|
-
georeference:
|
|
2620
|
+
georeference: en(t.georeference),
|
|
2418
2621
|
publishedAt: t.publishedAt ?? (/* @__PURE__ */ new Date()).toISOString()
|
|
2419
2622
|
};
|
|
2420
2623
|
}
|
|
2421
|
-
function
|
|
2624
|
+
function to(t, e) {
|
|
2422
2625
|
return {
|
|
2423
2626
|
id: t.id,
|
|
2424
2627
|
name: t.name,
|
|
2425
2628
|
location: t.location ?? null,
|
|
2426
|
-
logoUrl:
|
|
2427
|
-
logoKey:
|
|
2629
|
+
logoUrl: e ? null : t.logoUrl ?? null,
|
|
2630
|
+
logoKey: e ? t.logoKey ?? null : null,
|
|
2428
2631
|
phone: t.phone ?? null,
|
|
2429
2632
|
description: t.description ?? null,
|
|
2430
2633
|
globalRetailerId: t.globalRetailerId ?? null
|
|
2431
2634
|
};
|
|
2432
2635
|
}
|
|
2433
|
-
function
|
|
2434
|
-
let
|
|
2435
|
-
const
|
|
2636
|
+
function es(t) {
|
|
2637
|
+
let e = !1;
|
|
2638
|
+
const n = t.levels.map((r) => {
|
|
2436
2639
|
let o = !1;
|
|
2437
2640
|
const i = r.shapes.map((c) => {
|
|
2438
|
-
const a =
|
|
2439
|
-
return !
|
|
2641
|
+
const a = Ie(c.geometry), s = he(c, c.assignment), f = a !== c.geometry, y = s !== c.label;
|
|
2642
|
+
return !f && !y ? c : (o = !0, {
|
|
2440
2643
|
...c,
|
|
2441
2644
|
geometry: a,
|
|
2442
|
-
bbox:
|
|
2645
|
+
bbox: f ? Mt(a) : c.bbox,
|
|
2443
2646
|
label: s
|
|
2444
2647
|
});
|
|
2445
2648
|
});
|
|
2446
|
-
return o ? (
|
|
2649
|
+
return o ? (e = !0, { ...r, shapes: i }) : r;
|
|
2447
2650
|
});
|
|
2448
|
-
return
|
|
2651
|
+
return e ? { ...t, levels: n } : t;
|
|
2449
2652
|
}
|
|
2450
|
-
const
|
|
2653
|
+
const ns = [
|
|
2451
2654
|
"admin_portal",
|
|
2452
2655
|
"desktop",
|
|
2453
2656
|
"tablet",
|
|
2454
2657
|
"mobile",
|
|
2455
2658
|
"display_app"
|
|
2456
|
-
],
|
|
2659
|
+
], rs = [
|
|
2457
2660
|
{ id: "admin_portal", label: "Admin Portal" },
|
|
2458
2661
|
{ id: "desktop", label: "Desktop" },
|
|
2459
2662
|
{ id: "tablet", label: "Tablet" },
|
|
2460
2663
|
{ id: "mobile", label: "Mobile" },
|
|
2461
2664
|
{ id: "display_app", label: "Kiosk App" }
|
|
2462
|
-
],
|
|
2463
|
-
function
|
|
2665
|
+
], eo = 1024, no = 767;
|
|
2666
|
+
function os(t) {
|
|
2464
2667
|
return t === "admin_portal" || t === "display_app" || t === "desktop" || t === "tablet" || t === "mobile";
|
|
2465
2668
|
}
|
|
2466
|
-
function
|
|
2467
|
-
return t === "PORTAL_ASSIGN" ? "admin_portal" : t === "DISPLAY_APP" ? "display_app" :
|
|
2669
|
+
function is(t, e) {
|
|
2670
|
+
return t === "PORTAL_ASSIGN" ? "admin_portal" : t === "DISPLAY_APP" ? "display_app" : e > eo ? "desktop" : e > no ? "tablet" : "mobile";
|
|
2468
2671
|
}
|
|
2469
|
-
function
|
|
2470
|
-
return `${t ?? "none"}:${
|
|
2672
|
+
function ro(t, e) {
|
|
2673
|
+
return `${t ?? "none"}:${e}`;
|
|
2471
2674
|
}
|
|
2472
|
-
function
|
|
2473
|
-
return `${
|
|
2675
|
+
function ss(t, e, n) {
|
|
2676
|
+
return `${n ? "capture" : "viewer"}:${ro(t, e)}`;
|
|
2474
2677
|
}
|
|
2475
|
-
function
|
|
2678
|
+
function se(t) {
|
|
2476
2679
|
return t ? t.x === 0 && t.y === 0 && t.z === 0 : !0;
|
|
2477
2680
|
}
|
|
2478
|
-
function
|
|
2479
|
-
var
|
|
2681
|
+
function ve(t) {
|
|
2682
|
+
var n;
|
|
2480
2683
|
if (!t) return !0;
|
|
2481
|
-
const
|
|
2482
|
-
return typeof
|
|
2684
|
+
const e = (n = t.camera) == null ? void 0 : n.zoom;
|
|
2685
|
+
return typeof e == "number" && Number.isFinite(e) && e > 0 ? !1 : se(t.camera) && se(t.controls);
|
|
2483
2686
|
}
|
|
2484
|
-
function
|
|
2485
|
-
if (!(t != null && t.length) ||
|
|
2687
|
+
function cs(t, e, n) {
|
|
2688
|
+
if (!(t != null && t.length) || e == null) return null;
|
|
2486
2689
|
const r = t.find(
|
|
2487
|
-
(o) => o.levelId ===
|
|
2690
|
+
(o) => o.levelId === e && o.device === n
|
|
2488
2691
|
);
|
|
2489
|
-
return !r ||
|
|
2692
|
+
return !r || ve(r) ? null : r;
|
|
2490
2693
|
}
|
|
2491
|
-
function
|
|
2492
|
-
const
|
|
2694
|
+
function as(t) {
|
|
2695
|
+
const e = t.camera.zoom;
|
|
2493
2696
|
return {
|
|
2494
|
-
zoom: typeof
|
|
2697
|
+
zoom: typeof e == "number" && Number.isFinite(e) && e > 0 ? e : 0,
|
|
2495
2698
|
position: [t.camera.x, t.camera.y, t.camera.z],
|
|
2496
2699
|
target: [t.controls.x, t.controls.y, t.controls.z]
|
|
2497
2700
|
};
|
|
2498
2701
|
}
|
|
2499
|
-
function
|
|
2702
|
+
function ls(t) {
|
|
2500
2703
|
return {
|
|
2501
2704
|
camera: {
|
|
2502
2705
|
x: t.position[0],
|
|
@@ -2511,295 +2714,310 @@ function Ui(t) {
|
|
|
2511
2714
|
}
|
|
2512
2715
|
};
|
|
2513
2716
|
}
|
|
2514
|
-
const
|
|
2717
|
+
const oo = {
|
|
2515
2718
|
x: 0,
|
|
2516
2719
|
y: 0,
|
|
2517
2720
|
z: 0,
|
|
2518
2721
|
zoom: 0
|
|
2519
|
-
},
|
|
2520
|
-
function
|
|
2722
|
+
}, io = { x: 0, y: 0, z: 0 };
|
|
2723
|
+
function us(t, e) {
|
|
2521
2724
|
return {
|
|
2522
2725
|
levelId: t,
|
|
2523
|
-
device:
|
|
2524
|
-
camera: { ...
|
|
2525
|
-
controls: { ...
|
|
2726
|
+
device: e,
|
|
2727
|
+
camera: { ...oo },
|
|
2728
|
+
controls: { ...io }
|
|
2526
2729
|
};
|
|
2527
2730
|
}
|
|
2528
|
-
function
|
|
2529
|
-
const
|
|
2530
|
-
id:
|
|
2531
|
-
mapId:
|
|
2532
|
-
levelId:
|
|
2533
|
-
device:
|
|
2534
|
-
camera:
|
|
2535
|
-
controls:
|
|
2731
|
+
function so(t, e) {
|
|
2732
|
+
const n = {
|
|
2733
|
+
id: e.id ?? 0,
|
|
2734
|
+
mapId: e.mapId ?? 0,
|
|
2735
|
+
levelId: e.levelId,
|
|
2736
|
+
device: e.device,
|
|
2737
|
+
camera: e.camera,
|
|
2738
|
+
controls: e.controls
|
|
2536
2739
|
}, r = t.findIndex(
|
|
2537
|
-
(i) => i.levelId ===
|
|
2740
|
+
(i) => i.levelId === e.levelId && i.device === e.device
|
|
2538
2741
|
);
|
|
2539
|
-
if (r < 0) return [...t,
|
|
2742
|
+
if (r < 0) return [...t, n];
|
|
2540
2743
|
const o = t.slice();
|
|
2541
2744
|
return o[r] = {
|
|
2542
2745
|
...t[r],
|
|
2543
|
-
...
|
|
2544
|
-
id:
|
|
2545
|
-
mapId:
|
|
2746
|
+
...n,
|
|
2747
|
+
id: e.id ?? t[r].id,
|
|
2748
|
+
mapId: e.mapId ?? t[r].mapId
|
|
2546
2749
|
}, o;
|
|
2547
2750
|
}
|
|
2548
|
-
function
|
|
2549
|
-
let
|
|
2550
|
-
for (const r of
|
|
2551
|
-
if (
|
|
2552
|
-
|
|
2751
|
+
function fs(t, e) {
|
|
2752
|
+
let n = t;
|
|
2753
|
+
for (const r of e) {
|
|
2754
|
+
if (ve(r)) {
|
|
2755
|
+
n = n.filter(
|
|
2553
2756
|
(o) => !(o.levelId === r.levelId && o.device === r.device)
|
|
2554
2757
|
);
|
|
2555
2758
|
continue;
|
|
2556
2759
|
}
|
|
2557
|
-
|
|
2760
|
+
n = so(n, r);
|
|
2558
2761
|
}
|
|
2559
|
-
return
|
|
2762
|
+
return n;
|
|
2560
2763
|
}
|
|
2561
2764
|
export {
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2765
|
+
bn as $,
|
|
2766
|
+
un as A,
|
|
2767
|
+
Fo as B,
|
|
2768
|
+
an as C,
|
|
2566
2769
|
dt as D,
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2770
|
+
oo as E,
|
|
2771
|
+
Ct as F,
|
|
2772
|
+
Or as G,
|
|
2773
|
+
fi as H,
|
|
2774
|
+
uo as I,
|
|
2775
|
+
bi as J,
|
|
2776
|
+
Go as K,
|
|
2777
|
+
ko as L,
|
|
2778
|
+
Jo as M,
|
|
2779
|
+
Pn as N,
|
|
2780
|
+
Uo as O,
|
|
2781
|
+
Nr as P,
|
|
2782
|
+
Xn as Q,
|
|
2783
|
+
eo as R,
|
|
2784
|
+
kn as S,
|
|
2582
2785
|
Lt as T,
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
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
|
-
|
|
2786
|
+
lt as U,
|
|
2787
|
+
po as V,
|
|
2788
|
+
ce as W,
|
|
2789
|
+
Zt as X,
|
|
2790
|
+
hn as Y,
|
|
2791
|
+
gn as Z,
|
|
2792
|
+
T as _,
|
|
2793
|
+
go as a,
|
|
2794
|
+
sn as a$,
|
|
2795
|
+
ye as a0,
|
|
2796
|
+
_n as a1,
|
|
2797
|
+
$o as a2,
|
|
2798
|
+
To as a3,
|
|
2799
|
+
Ko as a4,
|
|
2800
|
+
zt as a5,
|
|
2801
|
+
$n as a6,
|
|
2802
|
+
yi as a7,
|
|
2803
|
+
gi as a8,
|
|
2804
|
+
ti as a9,
|
|
2805
|
+
Ji as aA,
|
|
2806
|
+
ur as aB,
|
|
2807
|
+
or as aC,
|
|
2808
|
+
fr as aD,
|
|
2809
|
+
cs as aE,
|
|
2810
|
+
ar as aF,
|
|
2811
|
+
lr as aG,
|
|
2812
|
+
ai as aH,
|
|
2813
|
+
hi as aI,
|
|
2814
|
+
qo as aJ,
|
|
2815
|
+
ht as aK,
|
|
2816
|
+
Gi as aL,
|
|
2817
|
+
Mt as aM,
|
|
2818
|
+
Zn as aN,
|
|
2819
|
+
Tn as aO,
|
|
2820
|
+
Mn as aP,
|
|
2821
|
+
Cn as aQ,
|
|
2822
|
+
Ho as aR,
|
|
2823
|
+
qi as aS,
|
|
2824
|
+
Lr as aT,
|
|
2825
|
+
me as aU,
|
|
2826
|
+
Vi as aV,
|
|
2827
|
+
mn as aW,
|
|
2828
|
+
Io as aX,
|
|
2829
|
+
os as aY,
|
|
2830
|
+
ve as aZ,
|
|
2831
|
+
se as a_,
|
|
2832
|
+
Wn as aa,
|
|
2833
|
+
Bo as ab,
|
|
2834
|
+
de as ac,
|
|
2835
|
+
Bn as ad,
|
|
2836
|
+
Oo as ae,
|
|
2837
|
+
qe as af,
|
|
2838
|
+
ue as ag,
|
|
2839
|
+
Br as ah,
|
|
2840
|
+
Co as ai,
|
|
2841
|
+
En as aj,
|
|
2842
|
+
ho as ak,
|
|
2843
|
+
ts as al,
|
|
2844
|
+
nr as am,
|
|
2845
|
+
Yo as an,
|
|
2846
|
+
lo as ao,
|
|
2847
|
+
Nt as ap,
|
|
2848
|
+
vo as aq,
|
|
2849
|
+
wn as ar,
|
|
2850
|
+
is as as,
|
|
2851
|
+
Qi as at,
|
|
2852
|
+
ki as au,
|
|
2853
|
+
N as av,
|
|
2854
|
+
us as aw,
|
|
2855
|
+
Eo as ax,
|
|
2856
|
+
Vt as ay,
|
|
2857
|
+
qt as az,
|
|
2858
|
+
cn as b,
|
|
2859
|
+
Bt as b$,
|
|
2860
|
+
on as b0,
|
|
2861
|
+
Vn as b1,
|
|
2862
|
+
pn as b2,
|
|
2863
|
+
Tr as b3,
|
|
2864
|
+
Se as b4,
|
|
2865
|
+
Ce as b5,
|
|
2866
|
+
oi as b6,
|
|
2867
|
+
Pt as b7,
|
|
2868
|
+
X as b8,
|
|
2869
|
+
Ae as b9,
|
|
2870
|
+
le as bA,
|
|
2871
|
+
es as bB,
|
|
2872
|
+
zi as bC,
|
|
2873
|
+
fo as bD,
|
|
2874
|
+
mo as bE,
|
|
2875
|
+
as as bF,
|
|
2876
|
+
Yt as bG,
|
|
2877
|
+
Po as bH,
|
|
2878
|
+
en as bI,
|
|
2879
|
+
Lo as bJ,
|
|
2880
|
+
Vr as bK,
|
|
2881
|
+
te as bL,
|
|
2882
|
+
jn as bM,
|
|
2883
|
+
be as bN,
|
|
2884
|
+
Gn as bO,
|
|
2885
|
+
mi as bP,
|
|
2886
|
+
Ht as bQ,
|
|
2887
|
+
Xt as bR,
|
|
2888
|
+
vn as bS,
|
|
2889
|
+
ls as bT,
|
|
2890
|
+
Qn as bU,
|
|
2891
|
+
at as bV,
|
|
2892
|
+
he as bW,
|
|
2893
|
+
Qt as bX,
|
|
2894
|
+
ji as bY,
|
|
2895
|
+
ft as bZ,
|
|
2896
|
+
ut as b_,
|
|
2897
|
+
ne as ba,
|
|
2898
|
+
ee as bb,
|
|
2899
|
+
zo as bc,
|
|
2900
|
+
Re as bd,
|
|
2901
|
+
W as be,
|
|
2902
|
+
Tt as bf,
|
|
2903
|
+
Ge as bg,
|
|
2904
|
+
Yn as bh,
|
|
2905
|
+
An as bi,
|
|
2906
|
+
Do as bj,
|
|
2907
|
+
So as bk,
|
|
2908
|
+
Ro as bl,
|
|
2909
|
+
Sn as bm,
|
|
2910
|
+
ni as bn,
|
|
2911
|
+
sr as bo,
|
|
2912
|
+
_o as bp,
|
|
2913
|
+
_t as bq,
|
|
2914
|
+
fs as br,
|
|
2915
|
+
Qe as bs,
|
|
2713
2916
|
_i as bt,
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2917
|
+
j as bu,
|
|
2918
|
+
pi as bv,
|
|
2919
|
+
Zo as bw,
|
|
2920
|
+
Ie as bx,
|
|
2921
|
+
Ao as by,
|
|
2922
|
+
yt as bz,
|
|
2923
|
+
V as c,
|
|
2924
|
+
Bi as c$,
|
|
2925
|
+
wo as c0,
|
|
2926
|
+
Mo as c1,
|
|
2927
|
+
Ar as c2,
|
|
2928
|
+
Wi as c3,
|
|
2929
|
+
ro as c4,
|
|
2930
|
+
ss as c5,
|
|
2931
|
+
No as c6,
|
|
2932
|
+
Nn as c7,
|
|
2933
|
+
qn as c8,
|
|
2934
|
+
Rn as c9,
|
|
2935
|
+
so as cA,
|
|
2936
|
+
ui as cB,
|
|
2937
|
+
Ut as cC,
|
|
2938
|
+
ri as cD,
|
|
2939
|
+
ii as cE,
|
|
2940
|
+
pe as cF,
|
|
2941
|
+
Oe as cG,
|
|
2942
|
+
Ir as cH,
|
|
2943
|
+
ci as cI,
|
|
2944
|
+
jo as cJ,
|
|
2945
|
+
Ln as cK,
|
|
2946
|
+
Kn as cL,
|
|
2947
|
+
li as cM,
|
|
2948
|
+
_r as cN,
|
|
2949
|
+
Zi as cO,
|
|
2950
|
+
Hi as cP,
|
|
2951
|
+
Ui as cQ,
|
|
2952
|
+
si as cR,
|
|
2953
|
+
br as cS,
|
|
2954
|
+
Xo as cT,
|
|
2955
|
+
$i as cU,
|
|
2956
|
+
Di as cV,
|
|
2957
|
+
xr as cW,
|
|
2958
|
+
Ki as cX,
|
|
2959
|
+
Yi as cY,
|
|
2960
|
+
Ci as cZ,
|
|
2961
|
+
Ei as c_,
|
|
2962
|
+
$t as ca,
|
|
2963
|
+
Ii as cb,
|
|
2964
|
+
q as cc,
|
|
2965
|
+
ge as cd,
|
|
2966
|
+
Ai as ce,
|
|
2967
|
+
bo as cf,
|
|
2968
|
+
Fn as cg,
|
|
2969
|
+
Ri as ch,
|
|
2970
|
+
Oi as ci,
|
|
2971
|
+
Sr as cj,
|
|
2972
|
+
Qo as ck,
|
|
2973
|
+
cr as cl,
|
|
2974
|
+
xi as cm,
|
|
2975
|
+
yo as cn,
|
|
2976
|
+
Si as co,
|
|
2977
|
+
kr as cp,
|
|
2978
|
+
Ke as cq,
|
|
2979
|
+
U as cr,
|
|
2980
|
+
De as cs,
|
|
2981
|
+
ze as ct,
|
|
2982
|
+
Be as cu,
|
|
2983
|
+
xe as cv,
|
|
2984
|
+
Fr as cw,
|
|
2985
|
+
ei as cx,
|
|
2986
|
+
vt as cy,
|
|
2987
|
+
Jr as cz,
|
|
2988
|
+
xo as d,
|
|
2989
|
+
hr as d0,
|
|
2990
|
+
wi as d1,
|
|
2991
|
+
Ni as d2,
|
|
2992
|
+
vi as d3,
|
|
2993
|
+
pr as d4,
|
|
2994
|
+
Pi as d5,
|
|
2995
|
+
Mi as d6,
|
|
2996
|
+
Ti as d7,
|
|
2997
|
+
Fi as d8,
|
|
2998
|
+
Xi as d9,
|
|
2999
|
+
di as da,
|
|
3000
|
+
_e as e,
|
|
3001
|
+
io as f,
|
|
2784
3002
|
ct as g,
|
|
2785
3003
|
Et as h,
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
3004
|
+
$r as i,
|
|
3005
|
+
Yr as j,
|
|
3006
|
+
Je as k,
|
|
3007
|
+
rn as l,
|
|
3008
|
+
Wo as m,
|
|
3009
|
+
Vo as n,
|
|
3010
|
+
Fe as o,
|
|
3011
|
+
ns as p,
|
|
3012
|
+
rs as q,
|
|
3013
|
+
no as r,
|
|
3014
|
+
ln as s,
|
|
3015
|
+
Li as t,
|
|
3016
|
+
ke as u,
|
|
3017
|
+
pt as v,
|
|
3018
|
+
we as w,
|
|
3019
|
+
ae as x,
|
|
3020
|
+
Pe as y,
|
|
3021
|
+
er as z
|
|
2804
3022
|
};
|
|
2805
3023
|
//# sourceMappingURL=responsive.js.map
|