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