@eyeon/map 2.0.44 → 2.0.45

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