@nar-bus/ui-shared 1.13.0 → 1.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -5354,7 +5354,7 @@ const Z3 = "1.17.0", z6 = 64 * 1024, { isFunction: kd } = Ce, p_ = (l) => encode
5354
5354
  }
5355
5355
  }
5356
5356
  Ce.isString(Ie) || (Ie = Ie ? "include" : "omit");
5357
- const pi = O && "credentials" in P.prototype;
5357
+ const mi = O && "credentials" in P.prototype;
5358
5358
  if (Ce.isFormData(ae)) {
5359
5359
  const ht = le.getContentType();
5360
5360
  ht && /^multipart\/form-data/i.test(ht) && !/boundary=/i.test(ht) && le.delete("content-type");
@@ -5367,7 +5367,7 @@ const Z3 = "1.17.0", z6 = 64 * 1024, { isFunction: kd } = Ce, p_ = (l) => encode
5367
5367
  headers: o5(le.normalize()),
5368
5368
  body: ae,
5369
5369
  duplex: "half",
5370
- credentials: pi ? Ie : void 0
5370
+ credentials: mi ? Ie : void 0
5371
5371
  };
5372
5372
  Et = O && new P(pe, br);
5373
5373
  let Sr = await (O ? ot(Et, De) : ot(pe, br));
@@ -6512,17 +6512,17 @@ const k_ = {
6512
6512
  slaThreshold: 0,
6513
6513
  trend30d: [],
6514
6514
  belowSlaGroups: []
6515
- }, hi = (l) => typeof l == "number" && Number.isFinite(l) ? l : 0;
6515
+ }, pi = (l) => typeof l == "number" && Number.isFinite(l) ? l : 0;
6516
6516
  function qA(l) {
6517
6517
  if (!l) return { ...k_ };
6518
6518
  const f = Array.isArray(l.trendDays) ? l.trendDays.map((T) => T == null ? void 0 : T.percent).filter((T) => typeof T == "number" && Number.isFinite(T)) : [], v = Array.isArray(l.belowSlaGroups) ? l.belowSlaGroups.filter(
6519
6519
  (T) => T != null && typeof T.groupName == "string" && T.groupName.length > 0 && typeof T.percent == "number" && Number.isFinite(T.percent)
6520
6520
  ).map((T) => ({ groupName: T.groupName, percent: T.percent })) : [];
6521
6521
  return {
6522
- todayRead: hi(l.readCount),
6523
- todayTarget: hi(l.totalCount),
6524
- todayPercent: hi(l.slaPercent),
6525
- slaThreshold: hi(l.slaTarget),
6522
+ todayRead: pi(l.readCount),
6523
+ todayTarget: pi(l.totalCount),
6524
+ todayPercent: pi(l.slaPercent),
6525
+ slaThreshold: pi(l.slaTarget),
6526
6526
  trend30d: f,
6527
6527
  belowSlaGroups: v
6528
6528
  };
@@ -6563,13 +6563,13 @@ function $A(l) {
6563
6563
  if (!l) return { ...P_ };
6564
6564
  const f = Array.isArray(l.hourlyThroughput) ? l.hourlyThroughput.map((v) => v == null ? void 0 : v.value).filter((v) => typeof v == "number" && Number.isFinite(v)) : [];
6565
6565
  return {
6566
- inboundRate: hi(l.inboundRate),
6567
- completedRate: hi(l.storedRate),
6568
- parseRate: hi(l.parsedRate),
6566
+ inboundRate: pi(l.inboundRate),
6567
+ completedRate: pi(l.storedRate),
6568
+ parseRate: pi(l.parsedRate),
6569
6569
  inboundStatus: c3(l.inboundStatus),
6570
6570
  completedStatus: c3(l.storedStatus),
6571
6571
  parseStatus: c3(l.parsedStatus),
6572
- parseSuccessPercent: hi(l.parsedSuccessPercent),
6572
+ parseSuccessPercent: pi(l.parsedSuccessPercent),
6573
6573
  dlqCount: Fa(l.dlqCount),
6574
6574
  throughput1h: f
6575
6575
  };
@@ -6591,9 +6591,9 @@ function YA(l) {
6591
6591
  failedToday: Fa(l.todayFailed),
6592
6592
  timeoutToday: Fa(l.todayTimeout),
6593
6593
  queued: Fa(l.todayQueued),
6594
- avgResponseP50: hi(l.avgResponseP50),
6595
- avgResponseP95: hi(l.avgResponseP95),
6596
- avgResponseP99: hi(l.avgResponseP99)
6594
+ avgResponseP50: pi(l.avgResponseP50),
6595
+ avgResponseP95: pi(l.avgResponseP95),
6596
+ avgResponseP99: pi(l.avgResponseP99)
6597
6597
  } : { ...N_ };
6598
6598
  }
6599
6599
  const D_ = {
@@ -6657,7 +6657,7 @@ function eS(l) {
6657
6657
  if (!l) return { ...B_ };
6658
6658
  const f = Array.isArray(l.calendars) ? l.calendars.filter((T) => T != null && typeof T == "object").map((T) => ({
6659
6659
  name: typeof T.name == "string" ? T.name : "",
6660
- progress: hi(T.progress),
6660
+ progress: pi(T.progress),
6661
6661
  totalModems: Fa(T.totalModems),
6662
6662
  completedModems: Fa(T.completedModems),
6663
6663
  status: typeof T.status == "string" ? T.status : "",
@@ -9683,7 +9683,7 @@ function SS({
9683
9683
  () => Object.entries(E6).map(([Ct, nr]) => ({
9684
9684
  category: Ct,
9685
9685
  label: Pf[Ct],
9686
- types: nr.map((Qt) => ({ value: Qt, label: a2[Qt] ?? Qt }))
9686
+ types: nr.map((Yt) => ({ value: Yt, label: a2[Yt] ?? Yt }))
9687
9687
  })),
9688
9688
  []
9689
9689
  ), ot = St(() => {
@@ -9692,31 +9692,31 @@ function SS({
9692
9692
  return xt.map((nr) => ({
9693
9693
  ...nr,
9694
9694
  types: nr.types.filter(
9695
- (Qt) => Qt.label.toLowerCase().includes(Ct) || Qt.value.toLowerCase().includes(Ct)
9695
+ (Yt) => Yt.label.toLowerCase().includes(Ct) || Yt.value.toLowerCase().includes(Ct)
9696
9696
  )
9697
9697
  })).filter((nr) => nr.types.length > 0);
9698
- }, [xt, ye]), It = St(() => be ? kf.some((Ct) => E6[Ct].includes(be)) : !1, [be]), Et = be ? j4.includes(be) : !1, gr = be ? kb(be, Y, Pr, lt) : null, kr = be && !Et, Rt = Object.values(Y).some((Ct) => Ct !== ""), Ar = St(() => !be || kr && !Rt && !Et ? !1 : Te ? j.length > 0 : !!lt, [be, kr, Rt, Et, Te, j, lt]), pi = St(
9699
- () => Pb.map(({ value: Ct, labelKey: nr, fallback: Qt }) => ({
9698
+ }, [xt, ye]), It = St(() => be ? kf.some((Ct) => E6[Ct].includes(be)) : !1, [be]), Et = be ? j4.includes(be) : !1, gr = be ? kb(be, Y, Pr, lt) : null, kr = be && !Et, Rt = Object.values(Y).some((Ct) => Ct !== ""), Ar = St(() => !be || kr && !Rt && !Et ? !1 : Te ? j.length > 0 : !!lt, [be, kr, Rt, Et, Te, j, lt]), mi = St(
9699
+ () => Pb.map(({ value: Ct, labelKey: nr, fallback: Yt }) => ({
9700
9700
  value: Ct,
9701
- label: me(nr, { defaultValue: Qt })
9701
+ label: me(nr, { defaultValue: Yt })
9702
9702
  })),
9703
9703
  [me]
9704
9704
  ), br = Kt((Ct) => {
9705
9705
  ae((nr) => {
9706
- const Qt = new Set(nr);
9707
- return Qt.has(Ct) ? Qt.delete(Ct) : Qt.add(Ct), Qt;
9706
+ const Yt = new Set(nr);
9707
+ return Yt.has(Ct) ? Yt.delete(Ct) : Yt.add(Ct), Yt;
9708
9708
  });
9709
9709
  }, []), Sr = Kt((Ct) => {
9710
9710
  pe(Ct), ee({});
9711
9711
  }, []);
9712
9712
  function Pr(Ct, nr) {
9713
- ee((Qt) => ({ ...Qt, [Ct]: nr }));
9713
+ ee((Yt) => ({ ...Yt, [Ct]: nr }));
9714
9714
  }
9715
9715
  const ur = Kt(() => {
9716
9716
  f(), pe(null), Ee(""), ee({}), Ie("NORMAL"), Je(T ? String(T) : ""), rt([]), ae(/* @__PURE__ */ new Set(["METER_READOUT"]));
9717
9717
  }, [f, T]), ht = Kt(async () => {
9718
9718
  if (!be || !lt) return;
9719
- const Ct = It ? Qe.map(Number).filter((Zr) => Zr > 0) : [], nr = Ct.length > 0 ? Ct : It && P ? [P] : [void 0], Qt = nr.length, Yi = [], ba = {};
9719
+ const Ct = It ? Qe.map(Number).filter((Zr) => Zr > 0) : [], nr = Ct.length > 0 ? Ct : It && P ? [P] : [void 0], Yt = nr.length, Yi = [], ba = {};
9720
9720
  for (const [Zr, Qr] of Object.entries(Y))
9721
9721
  if (Qr && (Qr.startsWith("[") || Qr.startsWith("{")))
9722
9722
  try {
@@ -9740,18 +9740,18 @@ function SS({
9740
9740
  } catch {
9741
9741
  }
9742
9742
  }
9743
- const mi = Yi.length;
9744
- if (mi === 0) {
9745
- Qt > 0 && X1.error(
9743
+ const ni = Yi.length;
9744
+ if (ni === 0) {
9745
+ Yt > 0 && X1.error(
9746
9746
  (Ae == null ? void 0 : Ae.failure) ?? "Order creation failed"
9747
9747
  );
9748
9748
  return;
9749
9749
  }
9750
- Qt > 1 && (mi < Qt ? X1.error(
9751
- ((Ae == null ? void 0 : Ae.partial) ?? "{{ok}}/{{total}} orders created").replace("{{ok}}", String(mi)).replace("{{total}}", String(Qt))
9750
+ Yt > 1 && (ni < Yt ? X1.error(
9751
+ ((Ae == null ? void 0 : Ae.partial) ?? "{{ok}}/{{total}} orders created").replace("{{ok}}", String(ni)).replace("{{total}}", String(Yt))
9752
9752
  ) : X1.success(
9753
- ((Ae == null ? void 0 : Ae.success) ?? "{{count}} orders created").replace("{{count}}", String(mi))
9754
- )), W == null || W(Yi[0]), ur();
9753
+ ((Ae == null ? void 0 : Ae.success) ?? "{{count}} orders created").replace("{{count}}", String(ni))
9754
+ )), W == null || W(Yi[0], { count: ni, total: Yt }), ur();
9755
9755
  }, [
9756
9756
  be,
9757
9757
  lt,
@@ -9828,7 +9828,7 @@ function SS({
9828
9828
  onSelectedMeterIdsChange: rt,
9829
9829
  bulkHeaderText: $t,
9830
9830
  priority: le,
9831
- priorityOptions: pi,
9831
+ priorityOptions: mi,
9832
9832
  onPriorityChange: Ie
9833
9833
  }
9834
9834
  )
@@ -10084,10 +10084,10 @@ function Ub({ order: l, headerLabel: f, statusLabel: v }) {
10084
10084
  {
10085
10085
  className: Ke(
10086
10086
  "w-24 text-[length:var(--font-xs)] font-medium",
10087
- l.status === "FAILED" && "text-[var(--color-status-danger)]",
10088
- l.status === "TIMEOUT" && "text-[var(--color-status-warning)]",
10087
+ l.status === "FAILED" && "text-[var(--color-status-danger-text)]",
10088
+ l.status === "TIMEOUT" && "text-[var(--color-status-warning-text)]",
10089
10089
  l.status === "CANCELLED" && "text-[var(--color-text-muted)]",
10090
- l.status === "RETRY" && "text-[var(--color-status-warning)]"
10090
+ l.status === "RETRY" && "text-[var(--color-status-warning-text)]"
10091
10091
  ),
10092
10092
  children: v(l.status)
10093
10093
  }
@@ -10146,7 +10146,7 @@ function jb({
10146
10146
  /* @__PURE__ */ R(mt, { className: "h-4 w-3/4" }),
10147
10147
  /* @__PURE__ */ R(mt, { className: "h-4 w-1/2" }),
10148
10148
  /* @__PURE__ */ R(mt, { className: "h-4 w-2/3" })
10149
- ] }) : l != null && v ? /* @__PURE__ */ R(a0, { label: w, children: /* @__PURE__ */ R("p", { className: "text-[length:var(--font-xs)] text-[var(--color-status-danger)]", children: P }) }) : /* @__PURE__ */ R(Nb, { order: M });
10149
+ ] }) : l != null && v ? /* @__PURE__ */ R(a0, { label: w, children: /* @__PURE__ */ R("p", { className: "text-[length:var(--font-xs)] text-[var(--color-status-danger-text)]", children: P }) }) : /* @__PURE__ */ R(Nb, { order: M });
10150
10150
  }
10151
10151
  function CS({
10152
10152
  open: l,
@@ -10609,7 +10609,7 @@ const rT = [
10609
10609
  }
10610
10610
  ];
10611
10611
  function aT(l, f, v, T) {
10612
- return T ? l >= v ? "var(--color-status-danger)" : l >= f ? "var(--color-status-warning)" : "var(--color-text-secondary)" : l <= v ? "var(--color-status-danger)" : l <= f ? "var(--color-status-warning)" : "var(--color-text-secondary)";
10612
+ return T ? l >= v ? "var(--color-status-danger-text)" : l >= f ? "var(--color-status-warning-text)" : "var(--color-text-secondary)" : l <= v ? "var(--color-status-danger-text)" : l <= f ? "var(--color-status-warning-text)" : "var(--color-text-secondary)";
10613
10613
  }
10614
10614
  function iT(l) {
10615
10615
  return Number.isFinite(l) ? l >= 1e6 ? `${(l / 1e6).toFixed(1)}M` : l >= 1e3 ? `${(l / 1e3).toFixed(0)}K` : String(l) : "—";
@@ -10805,7 +10805,7 @@ function OS({
10805
10805
  W.sumValue,
10806
10806
  "/",
10807
10807
  W.sumTotal,
10808
- /* @__PURE__ */ q("span", { className: "ml-[var(--space-1)]", style: { color: W.rate >= 90 ? "var(--color-status-success)" : W.rate >= 70 ? "var(--color-status-warning)" : "var(--color-status-danger)" }, children: [
10808
+ /* @__PURE__ */ q("span", { className: "ml-[var(--space-1)]", style: { color: W.rate >= 90 ? "var(--color-status-success-text)" : W.rate >= 70 ? "var(--color-status-warning-text)" : "var(--color-status-danger-text)" }, children: [
10809
10809
  "%",
10810
10810
  W.rate
10811
10811
  ] })
@@ -10904,7 +10904,7 @@ function zS({
10904
10904
  size: "sm",
10905
10905
  onClick: M,
10906
10906
  "aria-label": "Sil",
10907
- className: "hover:bg-[var(--color-status-danger)]/10 hover:text-[var(--color-status-danger)]",
10907
+ className: "hover:bg-[var(--color-status-danger)]/10 hover:text-[var(--color-status-danger-text)]",
10908
10908
  children: /* @__PURE__ */ R(K3, { size: 14 })
10909
10909
  }
10910
10910
  ) }),
@@ -10939,7 +10939,7 @@ function FS({ onEdit: l, onDelete: f, extra: v }) {
10939
10939
  size: "sm",
10940
10940
  onClick: f,
10941
10941
  "aria-label": "Sil",
10942
- className: "hover:bg-[var(--color-status-danger)]/10 hover:text-[var(--color-status-danger)]",
10942
+ className: "hover:bg-[var(--color-status-danger)]/10 hover:text-[var(--color-status-danger-text)]",
10943
10943
  children: /* @__PURE__ */ R(K3, { size: 14 })
10944
10944
  }
10945
10945
  ) })
@@ -11866,7 +11866,7 @@ function XS({
11866
11866
  {
11867
11867
  role: "alert",
11868
11868
  "aria-live": "polite",
11869
- className: "w-full text-right text-[length:var(--font-xs)] text-[var(--color-status-danger)]",
11869
+ className: "w-full text-right text-[length:var(--font-xs)] text-[var(--color-status-danger-text)]",
11870
11870
  children: M
11871
11871
  }
11872
11872
  )
@@ -15309,7 +15309,7 @@ function vw() {
15309
15309
  const s = new ve(a, e, r, n);
15310
15310
  return (u) => s.solve(u);
15311
15311
  }
15312
- const pi = Ar(0.25, 0.1, 0.25, 1);
15312
+ const mi = Ar(0.25, 0.1, 0.25, 1);
15313
15313
  function br(a, e, r) {
15314
15314
  return Math.min(r, Math.max(e, a));
15315
15315
  }
@@ -15349,7 +15349,7 @@ function vw() {
15349
15349
  function nr(a) {
15350
15350
  return typeof ImageBitmap < "u" && a instanceof ImageBitmap;
15351
15351
  }
15352
- const Qt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";
15352
+ const Yt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";
15353
15353
  function Yi(a, e, r, n, s) {
15354
15354
  return o(this, void 0, void 0, (function* () {
15355
15355
  if (typeof VideoFrame > "u") throw new Error("VideoFrame not supported");
@@ -15372,7 +15372,7 @@ function vw() {
15372
15372
  }));
15373
15373
  }
15374
15374
  let ba, Ni;
15375
- function mi(a, e, r, n) {
15375
+ function ni(a, e, r, n) {
15376
15376
  return a.addEventListener(e, r, n), { unsubscribe: () => {
15377
15377
  a.removeEventListener(e, r, n);
15378
15378
  } };
@@ -16018,7 +16018,7 @@ function vw() {
16018
16018
  const e = typeof a;
16019
16019
  return a === null ? "" : e === "string" || e === "number" || e === "boolean" ? String(a) : a instanceof vt || a instanceof ua || a instanceof Ea || a instanceof Jr || a instanceof Jt || a instanceof ut || a instanceof ca || a instanceof Ma ? a.toString() : JSON.stringify(a);
16020
16020
  }
16021
- class ni {
16021
+ class si {
16022
16022
  constructor(e, r) {
16023
16023
  this.type = e, this.value = r;
16024
16024
  }
@@ -16028,7 +16028,7 @@ function vw() {
16028
16028
  const n = e[1];
16029
16029
  let s = hr(n);
16030
16030
  const u = r.expectedType;
16031
- return s.kind !== "array" || s.N !== 0 || !u || u.kind !== "array" || typeof u.N == "number" && u.N !== 0 || (s = u), new ni(s, n);
16031
+ return s.kind !== "array" || s.N !== 0 || !u || u.kind !== "array" || typeof u.N == "number" && u.N !== 0 || (s = u), new si(s, n);
16032
16032
  }
16033
16033
  evaluate() {
16034
16034
  return this.value;
@@ -16233,10 +16233,10 @@ function vw() {
16233
16233
  else if (this.checkSubtype(p, _)) return null;
16234
16234
  } else h = n(h, p, r.typeAnnotation || "assert");
16235
16235
  }
16236
- if (!(h instanceof ni) && h.type.kind !== "resolvedImage" && this._isConstant(h)) {
16236
+ if (!(h instanceof si) && h.type.kind !== "resolvedImage" && this._isConstant(h)) {
16237
16237
  const p = new v0();
16238
16238
  try {
16239
- h = new ni(h.type, h.evaluate(p));
16239
+ h = new si(h.type, h.evaluate(p));
16240
16240
  } catch (_) {
16241
16241
  return this.error(_.message), null;
16242
16242
  }
@@ -17210,7 +17210,7 @@ function vw() {
17210
17210
  function Qn(a) {
17211
17211
  return a[1] - a[0] + 1;
17212
17212
  }
17213
- function si(a, e) {
17213
+ function oi(a, e) {
17214
17214
  return a[1] >= a[0] && a[1] < e;
17215
17215
  }
17216
17216
  function C0(a, e) {
@@ -17226,7 +17226,7 @@ function vw() {
17226
17226
  return [[a[0], a[0] + n], [a[0] + n + 1, a[1]]];
17227
17227
  }
17228
17228
  function M0(a, e) {
17229
- if (!si(e, a.length)) return [1 / 0, 1 / 0, -1 / 0, -1 / 0];
17229
+ if (!oi(e, a.length)) return [1 / 0, 1 / 0, -1 / 0, -1 / 0];
17230
17230
  const r = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
17231
17231
  for (let n = e[0]; n <= e[1]; ++n) dn(r, a[n]);
17232
17232
  return r;
@@ -17253,7 +17253,7 @@ function vw() {
17253
17253
  return Math.min(u, h);
17254
17254
  }
17255
17255
  function Au(a, e, r, n, s) {
17256
- if (!si(e, a.length) || !si(n, r.length)) return 1 / 0;
17256
+ if (!oi(e, a.length) || !oi(n, r.length)) return 1 / 0;
17257
17257
  let u = 1 / 0;
17258
17258
  for (let h = e[0]; h < e[1]; ++h) {
17259
17259
  const p = a[h], _ = a[h + 1];
@@ -17266,7 +17266,7 @@ function vw() {
17266
17266
  return u;
17267
17267
  }
17268
17268
  function A2(a, e, r, n, s) {
17269
- if (!si(e, a.length) || !si(n, r.length)) return NaN;
17269
+ if (!oi(e, a.length) || !oi(n, r.length)) return NaN;
17270
17270
  let u = 1 / 0;
17271
17271
  for (let h = e[0]; h <= e[1]; ++h) for (let p = n[0]; p <= n[1]; ++p) if (u = Math.min(u, s.distance(a[h], r[p])), u === 0) return u;
17272
17272
  return u;
@@ -17283,7 +17283,7 @@ function vw() {
17283
17283
  return n;
17284
17284
  }
17285
17285
  function I2(a, e, r, n) {
17286
- if (!si(e, a.length)) return NaN;
17286
+ if (!oi(e, a.length)) return NaN;
17287
17287
  for (let u = e[0]; u <= e[1]; ++u) if (_i(a[u], r, !0)) return 0;
17288
17288
  let s = 1 / 0;
17289
17289
  for (let u = e[0]; u < e[1]; ++u) {
@@ -17336,7 +17336,7 @@ function vw() {
17336
17336
  if (_[0] >= u) continue;
17337
17337
  const y = _[1], E = e ? 50 : 100;
17338
17338
  if (Qn(y) <= E) {
17339
- if (!si(y, a.length)) return NaN;
17339
+ if (!oi(y, a.length)) return NaN;
17340
17340
  if (e) {
17341
17341
  const x = I2(a, y, r, n);
17342
17342
  if (isNaN(x) || x === 0) return x;
@@ -17361,7 +17361,7 @@ function vw() {
17361
17361
  if (_[0] >= h) continue;
17362
17362
  const y = _[1], E = _[2], x = e ? 50 : 100, C = n ? 50 : 100;
17363
17363
  if (Qn(y) <= x && Qn(E) <= C) {
17364
- if (!si(y, a.length) && si(E, r.length)) return NaN;
17364
+ if (!oi(y, a.length) && oi(E, r.length)) return NaN;
17365
17365
  let S;
17366
17366
  if (e && n) S = Au(a, y, r, E, s), h = Math.min(h, S);
17367
17367
  else if (e && !n) {
@@ -17486,7 +17486,7 @@ function vw() {
17486
17486
  return !1;
17487
17487
  }
17488
17488
  }
17489
- const Jn = { "==": b0, "!=": fu, ">": $n, "<": _2, ">=": T0, "<=": Lo, array: wa, at: Mt, boolean: wa, case: Ja, coalesce: ks, collator: Oo, format: un, image: Yn, in: yt, "index-of": Kn, interpolate: _r, "interpolate-hcl": _r, "interpolate-lab": _r, length: ka, let: Zt, literal: ni, match: kt, number: wa, "number-format": zo, object: wa, slice: qn, step: Hn, string: wa, "to-boolean": yi, "to-color": yi, "to-number": yi, "to-string": yi, var: Wn, within: hn, distance: mn, "global-state": Ls };
17489
+ const Jn = { "==": b0, "!=": fu, ">": $n, "<": _2, ">=": T0, "<=": Lo, array: wa, at: Mt, boolean: wa, case: Ja, coalesce: ks, collator: Oo, format: un, image: Yn, in: yt, "index-of": Kn, interpolate: _r, "interpolate-hcl": _r, "interpolate-lab": _r, length: ka, let: Zt, literal: si, match: kt, number: wa, "number-format": zo, object: wa, slice: qn, step: Hn, string: wa, "to-boolean": yi, "to-color": yi, "to-number": yi, "to-string": yi, var: Wn, within: hn, distance: mn, "global-state": Ls };
17490
17490
  class Ua {
17491
17491
  constructor(e, r, n, s) {
17492
17492
  this.name = e, this.type = r, this._evaluate = n, this.args = s;
@@ -17568,7 +17568,7 @@ function vw() {
17568
17568
  const e = a instanceof yi || a instanceof wa;
17569
17569
  let r = !0;
17570
17570
  return a.eachChild(((n) => {
17571
- r = e ? r && Ko(n) : r && n instanceof ni;
17571
+ r = e ? r && Ko(n) : r && n instanceof si;
17572
17572
  })), !!r && qo(a) && Ho(a, ["zoom", "heatmap-density", "elevation", "line-progress", "accumulated", "is-supported-script"]);
17573
17573
  }
17574
17574
  function qo(a) {
@@ -18408,7 +18408,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
18408
18408
  return this._globalStateRefs;
18409
18409
  }
18410
18410
  }
18411
- const qs = Fe, oi = Ga, Pa = oi.light, Hs = oi.sky, Wu = oi.paintProperty, z2 = oi.layoutProperty;
18411
+ const qs = Fe, li = Ga, Pa = li.light, Hs = li.sky, Wu = li.paintProperty, z2 = li.layoutProperty;
18412
18412
  function Ku(a, e) {
18413
18413
  let r = !1;
18414
18414
  if (e != null && e.length) for (const n of e) a.fire(new Fn(new Error(n.message))), r = !0;
@@ -18498,10 +18498,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
18498
18498
  return new vi(e.buffer);
18499
18499
  }
18500
18500
  }
18501
- const li = {};
18501
+ const ci = {};
18502
18502
  function Xe(a, e, r = {}) {
18503
- if (li[a]) throw new Error(`${a} is already registered.`);
18504
- Object.defineProperty(e, "_classRegistryKey", { value: a, writeable: !1 }), li[a] = { klass: e, omit: r.omit || [], shallow: r.shallow || [] };
18503
+ if (ci[a]) throw new Error(`${a} is already registered.`);
18504
+ Object.defineProperty(e, "_classRegistryKey", { value: a, writeable: !1 }), ci[a] = { klass: e, omit: r.omit || [], shallow: r.shallow || [] };
18505
18505
  }
18506
18506
  Xe("Object", Object), Xe("Set", Set), Xe("TransferableGridIndex", vi), Xe("Color", vt), Xe("Error", Error), Xe("AJAXError", On), Xe("ResolvedImage", Ma), Xe("StylePropertyFunction", Jo), Xe("StyleExpression", Fs, { omit: ["_evaluator"] }), Xe("ZoomDependentExpression", Qo), Xe("ZoomConstantExpression", Xo), Xe("CompoundExpression", Ua, { omit: ["_evaluate"] });
18507
18507
  for (const a in Jn) Jn[a]._classRegistryKey || Xe(`Expression_${a}`, Jn[a]);
@@ -18529,15 +18529,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
18529
18529
  if (typeof a != "object") throw new Error("can't serialize object of type " + typeof a);
18530
18530
  const r = $s(a);
18531
18531
  if (!r) throw new Error(`can't serialize object of unregistered class ${a.constructor.name}`);
18532
- if (!li[r]) throw new Error(`${r} is not registered.`);
18533
- const { klass: n } = li[r], s = n.serialize ? n.serialize(a, e) : {};
18532
+ if (!ci[r]) throw new Error(`${r} is not registered.`);
18533
+ const { klass: n } = ci[r], s = n.serialize ? n.serialize(a, e) : {};
18534
18534
  if (n.serialize) {
18535
18535
  if (s === (e == null ? void 0 : e[e.length - 1])) throw new Error("statically serialized object won't survive transfer of $name property");
18536
18536
  } else {
18537
18537
  for (const u in a) {
18538
- if (!a.hasOwnProperty(u) || li[r].omit.includes(u)) continue;
18538
+ if (!a.hasOwnProperty(u) || ci[r].omit.includes(u)) continue;
18539
18539
  const h = a[u];
18540
- s[u] = li[r].shallow.includes(u) ? h : xi(h, e);
18540
+ s[u] = ci[r].shallow.includes(u) ? h : xi(h, e);
18541
18541
  }
18542
18542
  a instanceof Error && (s.message = a.message);
18543
18543
  }
@@ -18549,15 +18549,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
18549
18549
  if (Array.isArray(a)) return a.map(Ys);
18550
18550
  if (typeof a != "object") throw new Error("can't deserialize object of type " + typeof a);
18551
18551
  const e = $s(a) || "Object";
18552
- if (!li[e]) throw new Error(`can't deserialize unregistered class ${e}`);
18553
- const { klass: r } = li[e];
18552
+ if (!ci[e]) throw new Error(`can't deserialize unregistered class ${e}`);
18553
+ const { klass: r } = ci[e];
18554
18554
  if (!r) throw new Error(`can't deserialize unregistered class ${e}`);
18555
18555
  if (r.deserialize) return r.deserialize(a);
18556
18556
  const n = Object.create(r.prototype);
18557
18557
  for (const s of Object.keys(a)) {
18558
18558
  if (s === "$name") continue;
18559
18559
  const u = a[s];
18560
- n[s] = li[e].shallow.includes(s) ? u : Ys(u);
18560
+ n[s] = ci[e].shallow.includes(s) ? u : Ys(u);
18561
18561
  }
18562
18562
  return n;
18563
18563
  }
@@ -19040,7 +19040,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
19040
19040
  return this.visibility && (n.layout || (n.layout = {}), n.layout.visibility = this.visibility), yr(n, ((s, u) => !(s === void 0 || u === "layout" && !Object.keys(s).length || u === "paint" && !Object.keys(s).length)));
19041
19041
  }
19042
19042
  _validate(e, r, n, s, u = {}) {
19043
- return (u == null ? void 0 : u.validate) !== !1 && Ku(this, e.call(oi, { key: r, layerType: this.type, objectKey: n, value: s, styleSpec: Fe, style: { glyphs: !0, sprite: !0 } }));
19043
+ return (u == null ? void 0 : u.validate) !== !1 && Ku(this, e.call(li, { key: r, layerType: this.type, objectKey: n, value: s, styleSpec: Fe, style: { glyphs: !0, sprite: !0 } }));
19044
19044
  }
19045
19045
  is3D() {
19046
19046
  return !1;
@@ -19887,8 +19887,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
19887
19887
  e.r === this.current.r && e.g === this.current.g && e.b === this.current.b && e.a === this.current.a || (this.current = e, this.gl.uniform4f(this.location, e.r, e.g, e.b, e.a));
19888
19888
  }
19889
19889
  }
19890
- const ci = new Float32Array(16);
19891
- function ui(a) {
19890
+ const ui = new Float32Array(16);
19891
+ function di(a) {
19892
19892
  return [at(255 * a.r, 255 * a.g), at(255 * a.b, 255 * a.a)];
19893
19893
  }
19894
19894
  class Na {
@@ -19934,7 +19934,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
19934
19934
  }
19935
19935
  _setPaintValue(e, r, n) {
19936
19936
  if (this.type === "color") {
19937
- const s = ui(n);
19937
+ const s = di(n);
19938
19938
  for (let u = e; u < r; u++) this.paintVertexArray.emplace(u, s[0], s[1]);
19939
19939
  } else {
19940
19940
  for (let s = e; s < r; s++) this.paintVertexArray.emplace(s, n);
@@ -19963,7 +19963,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
19963
19963
  }
19964
19964
  _setPaintValue(e, r, n, s) {
19965
19965
  if (this.type === "color") {
19966
- const u = ui(n), h = ui(s);
19966
+ const u = di(n), h = di(s);
19967
19967
  for (let p = e; p < r; p++) this.paintVertexArray.emplace(p, u[0], u[1], h[0], h[1]);
19968
19968
  } else {
19969
19969
  for (let u = e; u < r; u++) this.paintVertexArray.emplace(u, n, s);
@@ -21578,8 +21578,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
21578
21578
  for (const Oe of S) {
21579
21579
  const ze = [], Pe = [];
21580
21580
  for (const Me of Oe) {
21581
- const Ge = Me.x, He = Me.y, We = B[0] * Ge + B[4] * He + B[12], Ze = B[1] * Ge + B[5] * He + B[13], ct = B[2] * Ge + B[6] * He + B[14], Pt = B[3] * Ge + B[7] * He + B[15], Dt = ct + X, Bt = Pt + J, na = We + he, lr = Ze + ge, Cr = ct + Re, zr = Pt + Se, Xt = new O((We + G) / Bt, (Ze + K) / Bt);
21582
- Xt.z = Dt / Bt, ze.push(Xt);
21581
+ const Ge = Me.x, He = Me.y, We = B[0] * Ge + B[4] * He + B[12], Ze = B[1] * Ge + B[5] * He + B[13], ct = B[2] * Ge + B[6] * He + B[14], Pt = B[3] * Ge + B[7] * He + B[15], Dt = ct + X, Bt = Pt + J, na = We + he, lr = Ze + ge, Cr = ct + Re, zr = Pt + Se, Qt = new O((We + G) / Bt, (Ze + K) / Bt);
21582
+ Qt.z = Dt / Bt, ze.push(Qt);
21583
21583
  const Hr = new O(na / zr, lr / zr);
21584
21584
  Hr.z = Cr / zr, Pe.push(Hr);
21585
21585
  }
@@ -23226,20 +23226,20 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
23226
23226
  let Ze = 0, ct = 0, Pt = 0, Dt = 0;
23227
23227
  const Bt = Pe === "right" ? 1 : Pe === "left" ? 0 : 0.5, na = Lr / We;
23228
23228
  let lr = 0;
23229
- for (const Xt of Se) {
23230
- Xt.trim();
23231
- const Hr = Xt.getMaxScale(), fa = { positionedGlyphs: [], lineOffset: 0 };
23229
+ for (const Qt of Se) {
23230
+ Qt.trim();
23231
+ const Hr = Qt.getMaxScale(), fa = { positionedGlyphs: [], lineOffset: 0 };
23232
23232
  J.positionedLines[lr] = fa;
23233
23233
  const ga = fa.positionedGlyphs;
23234
23234
  let La = 0;
23235
- if (!Xt.length()) {
23235
+ if (!Qt.length()) {
23236
23236
  ct += Oe, ++lr;
23237
23237
  continue;
23238
23238
  }
23239
- const sa = L8(Re, Xt, na);
23239
+ const sa = L8(Re, Qt, na);
23240
23240
  let Oa = 0;
23241
- for (const Fr of Xt.text) {
23242
- const ar = Xt.getSection(Oa), wr = Fr.codePointAt(0), cr = O8(Me, He, wr), Br = { glyph: wr, imageName: null, x: Ze, y: ct + -17, vertical: cr, scale: 1, fontStack: "", sectionIndex: Xt.getSectionIndex(Oa), metrics: null, rect: null };
23241
+ for (const Fr of Qt.text) {
23242
+ const ar = Qt.getSection(Oa), wr = Fr.codePointAt(0), cr = O8(Me, He, wr), Br = { glyph: wr, imageName: null, x: Ze, y: ct + -17, vertical: cr, scale: 1, fontStack: "", sectionIndex: Qt.getSectionIndex(Oa), metrics: null, rect: null };
23243
23243
  let Sn;
23244
23244
  if ("fontStack" in ar) {
23245
23245
  if (Sn = z8(ar, wr, cr, sa, he, ge), !Sn) continue;
@@ -23252,15 +23252,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
23252
23252
  Br.y += gs, Br.scale = ar.scale, Br.metrics = Ic, Br.rect = Ii, ga.push(Br), cr ? (J.verticalizable = !0, Ze += ("imageName" in ar ? Ic.advance : Lr) * ar.scale + Ge) : Ze += Ic.advance * ar.scale + Ge, Oa++;
23253
23253
  }
23254
23254
  ga.length !== 0 && (Pt = Math.max(Ze - Ge, Pt), B8(ga, 0, ga.length - 1, Bt)), Ze = 0, fa.lineOffset = Math.max(La, (Hr - 1) * Lr);
23255
- const di = Oe * Hr + La;
23256
- ct += di, Dt = Math.max(di, Dt), ++lr;
23255
+ const hi = Oe * Hr + La;
23256
+ ct += hi, Dt = Math.max(hi, Dt), ++lr;
23257
23257
  }
23258
23258
  const { horizontalAlign: Cr, verticalAlign: zr } = x1(ze);
23259
- (function(Xt, Hr, fa, ga, La, sa, Oa, di, Fr) {
23259
+ (function(Qt, Hr, fa, ga, La, sa, Oa, hi, Fr) {
23260
23260
  const ar = (Hr - fa) * La;
23261
23261
  let wr = 0;
23262
- wr = sa !== Oa ? -di * ga - -17 : -ga * Fr * Oa + 0.5 * Oa;
23263
- for (const cr of Xt) for (const Br of cr.positionedGlyphs) Br.x += ar, Br.y += wr;
23262
+ wr = sa !== Oa ? -hi * ga - -17 : -ga * Fr * Oa + 0.5 * Oa;
23263
+ for (const cr of Qt) for (const Br of cr.positionedGlyphs) Br.x += ar, Br.y += wr;
23264
23264
  })(J.positionedLines, Bt, Cr, zr, Pt, Dt, Oe, ct, Se.length), J.top += -zr * ct, J.bottom = J.top + ct, J.left += -Cr * Pt, J.right = J.left + Pt;
23265
23265
  })(X, e, r, n, B, h, p, _, x, y, C, D), !(function(J) {
23266
23266
  for (const he of J) if (he.positionedGlyphs.length !== 0) return !1;
@@ -23740,7 +23740,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
23740
23740
  if (n.value.kind === "constant" && n.value.value instanceof Ea) h(n.value.value.sections);
23741
23741
  else if (n.value.kind === "source" || n.value.kind === "composite") {
23742
23742
  const p = (y) => {
23743
- u || (y instanceof ni && hr(y.value) === ws ? h(y.value.sections) : y instanceof un ? h(y.sections) : y.eachChild(p));
23743
+ u || (y instanceof si && hr(y.value) === ws ? h(y.value.sections) : y instanceof un ? h(y.sections) : y.eachChild(p));
23744
23744
  }, _ = n.value;
23745
23745
  _._styleExpression && p(_._styleExpression.expression);
23746
23746
  }
@@ -24605,7 +24605,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
24605
24605
  if (e >= 4) for (let n = a[0]; r < e - 4; r += 4) n = a[r] += n, n = a[r + 1] += n, n = a[r + 2] += n, n = a[r + 3] += n;
24606
24606
  for (; r !== a.length; ) a[r] += a[r - 1], ++r;
24607
24607
  }
24608
- var aa, Ai, lo, Ka, Yt, Or, Ip, ps;
24608
+ var aa, Ai, lo, Ka, Xt, Or, Ip, ps;
24609
24609
  function Ia(a, e) {
24610
24610
  const r = (function(n, s) {
24611
24611
  const u = n[s.get()], h = Object.values(aa)[u >> 4];
@@ -24644,7 +24644,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
24644
24644
  a.VAR_BINARY = "VAR_BINARY", a.GEOMETRIES = "GEOMETRIES", a.PARTS = "PARTS", a.RINGS = "RINGS", a.TRIANGLES = "TRIANGLES", a.SYMBOL = "SYMBOL", a.DICTIONARY = "DICTIONARY";
24645
24645
  })(Ka || (Ka = {})), (function(a) {
24646
24646
  a[a.FLAT = 0] = "FLAT", a[a.CONST = 1] = "CONST", a[a.SEQUENCE = 2] = "SEQUENCE", a[a.DICTIONARY = 3] = "DICTIONARY", a[a.FSST_DICTIONARY = 4] = "FSST_DICTIONARY";
24647
- })(Yt || (Yt = {}));
24647
+ })(Xt || (Xt = {}));
24648
24648
  class Si {
24649
24649
  constructor(e, r) {
24650
24650
  this.values = e, this._size = r;
@@ -24966,12 +24966,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
24966
24966
  }
24967
24967
  function wd(a, e, r, n, s = "int32") {
24968
24968
  const u = a.logicalLevelTechnique1;
24969
- if (u === At.RLE) return a.runs === 1 ? Yt.CONST : Yt.FLAT;
24970
- if (u !== At.DELTA || a.logicalLevelTechnique2 !== At.RLE) return a.numValues === 1 ? Yt.CONST : Yt.FLAT;
24969
+ if (u === At.RLE) return a.runs === 1 ? Xt.CONST : Xt.FLAT;
24970
+ if (u !== At.DELTA || a.logicalLevelTechnique2 !== At.RLE) return a.numValues === 1 ? Xt.CONST : Xt.FLAT;
24971
24971
  const h = e instanceof Si ? e.size() : e;
24972
- if (a.numRleValues !== h) return Yt.FLAT;
24973
- if (a.runs === 1) return Yt.SEQUENCE;
24974
- if (a.runs !== 2) return a.numValues === 1 ? Yt.CONST : Yt.FLAT;
24972
+ if (a.numRleValues !== h) return Xt.FLAT;
24973
+ if (a.runs === 1) return Xt.SEQUENCE;
24974
+ if (a.runs !== 2) return a.numValues === 1 ? Xt.CONST : Xt.FLAT;
24975
24975
  const p = n.get();
24976
24976
  if (a.physicalLevelTechnique === hs.VARINT) return (function(E, x, C) {
24977
24977
  const S = new Tp(x.get());
@@ -24981,9 +24981,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
24981
24981
  }
24982
24982
  const D = ma(E, S, 4);
24983
24983
  return D[2] === 2 && D[3] === 2;
24984
- })(r, n, s) ? Yt.SEQUENCE : a.numValues === 1 ? Yt.CONST : Yt.FLAT;
24984
+ })(r, n, s) ? Xt.SEQUENCE : a.numValues === 1 ? Xt.CONST : Xt.FLAT;
24985
24985
  const _ = n.get(), y = new Int32Array(r.buffer, r.byteOffset + _, 4);
24986
- return n.set(p), y[2] === 2 && y[3] === 2 ? Yt.SEQUENCE : a.numValues === 1 ? Yt.CONST : Yt.FLAT;
24986
+ return n.set(p), y[2] === 2 && y[3] === 2 ? Xt.SEQUENCE : a.numValues === 1 ? Xt.CONST : Xt.FLAT;
24987
24987
  }
24988
24988
  class Pp extends Ed {
24989
24989
  getValueFromBuffer(e) {
@@ -25305,7 +25305,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
25305
25305
  function s7(a, e, r, n, s) {
25306
25306
  const u = Ia(a, r);
25307
25307
  let h, p, _, y;
25308
- if (wd(u, n, a, r) === Yt.CONST) {
25308
+ if (wd(u, n, a, r) === Xt.CONST) {
25309
25309
  const Z = V1(a, r, u);
25310
25310
  let G, K, X, J;
25311
25311
  for (let he = 0; he < e - 1; he++) {
@@ -25556,11 +25556,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
25556
25556
  case 3:
25557
25557
  return (function(D, L, B, V, Z) {
25558
25558
  const G = Ia(D, L), K = wd(G, Z, D, L), X = V.physicalType === 3;
25559
- if (K === Yt.FLAT) {
25559
+ if (K === Xt.FLAT) {
25560
25560
  const he = Ac(Z) ? Z : void 0, ge = X ? B1(D, L, G, 0, he) : qa(D, L, G, 0, he);
25561
25561
  return new C1(B.name, ge, Z);
25562
25562
  }
25563
- if (K === Yt.SEQUENCE) {
25563
+ if (K === Xt.SEQUENCE) {
25564
25564
  const he = Cp(D, L, G);
25565
25565
  return new R1(B.name, he[0], he[1], G.numRleValues);
25566
25566
  }
@@ -25627,7 +25627,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
25627
25627
  case 5:
25628
25628
  return (function(D, L, B, V, Z) {
25629
25629
  const G = Ia(D, L), K = wd(G, V, D, L, "int64"), X = Z.physicalType === 5;
25630
- if (K === Yt.FLAT) {
25630
+ if (K === Xt.FLAT) {
25631
25631
  const he = Ac(V) ? V : void 0, ge = X ? (function(Re, Se, Oe, ze) {
25632
25632
  return (function(Pe, Me, Ge) {
25633
25633
  let He;
@@ -25640,7 +25640,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
25640
25640
  let Bt = 0, na = 0n;
25641
25641
  for (let lr = 0; lr < ct; lr++) {
25642
25642
  const Cr = Number(Ze[lr]), zr = Sa(Ze[lr + ct]);
25643
- for (let Xt = 0; Xt < Cr; Xt++) na += zr, Dt[Bt++] = na;
25643
+ for (let Qt = 0; Qt < Cr; Qt++) na += zr, Dt[Bt++] = na;
25644
25644
  }
25645
25645
  return Dt;
25646
25646
  })(Pe, We.runs, We.numRleValues);
@@ -25678,7 +25678,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
25678
25678
  })(D, L, G, he) : Rp(D, L, G, he);
25679
25679
  return new Pp(B.name, ge, V);
25680
25680
  }
25681
- if (K === Yt.SEQUENCE) {
25681
+ if (K === Xt.SEQUENCE) {
25682
25682
  const he = Mp(D, L, G);
25683
25683
  return new Np(B.name, he[0], he[1], G.numRleValues);
25684
25684
  }
@@ -25894,21 +25894,21 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
25894
25894
  if (!p || p.type !== "logicalType" || p.logicalType !== 0) throw new Error(`ID column must be a logical ID scalar type: ${n}`);
25895
25895
  const _ = p.longID ? 6 : 4, y = typeof u == "number" ? void 0 : u, E = wd(s, u, a, r, _ === 6 ? "int64" : "int32");
25896
25896
  if (_ === 4) switch (E) {
25897
- case Yt.FLAT: {
25897
+ case Xt.FLAT: {
25898
25898
  const x = qa(a, r, s, 0, y);
25899
25899
  return new C1(n, x, u);
25900
25900
  }
25901
- case Yt.SEQUENCE: {
25901
+ case Xt.SEQUENCE: {
25902
25902
  const x = Cp(a, r, s);
25903
25903
  return new R1(n, x[0], x[1], s.numRleValues);
25904
25904
  }
25905
- case Yt.CONST: {
25905
+ case Xt.CONST: {
25906
25906
  const x = V1(a, r, s);
25907
25907
  return new k1(n, x, u, !1);
25908
25908
  }
25909
25909
  }
25910
25910
  switch (E) {
25911
- case Yt.FLAT: {
25911
+ case Xt.FLAT: {
25912
25912
  if (h) {
25913
25913
  const C = (function(S, D, L) {
25914
25914
  const B = (function(V, Z, G) {
@@ -25945,11 +25945,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
25945
25945
  const x = Rp(a, r, s, y);
25946
25946
  return new Pp(n, x, u);
25947
25947
  }
25948
- case Yt.SEQUENCE: {
25948
+ case Xt.SEQUENCE: {
25949
25949
  const x = Mp(a, r, s);
25950
25950
  return new Np(n, x[0], x[1], s.numRleValues);
25951
25951
  }
25952
- case Yt.CONST: {
25952
+ case Xt.CONST: {
25953
25953
  const x = kp(a, r, s);
25954
25954
  return new Gp(n, x, u, !1);
25955
25955
  }
@@ -26342,13 +26342,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
26342
26342
  (u.textFitWidth || u.textFitHeight) && (y = ap(a)), V = Ad(E, 0, Me[0]), G = Ad(x, 0, Me[1]), Z = Ad(E, Me[0], Me[2]), K = Ad(x, Me[1], Me[3]), X = Me[0] - V, he = Me[1] - G, J = Ge - Z, ge = He - K;
26343
26343
  }
26344
26344
  const Re = y.x1, Se = y.y1, Oe = y.x2 - Re, ze = y.y2 - Se, Pe = (Me, Ge, He, We) => {
26345
- const Ze = Sd(Me.stretch - V, Z, Oe, Re), ct = Id(Me.fixed - X, J, Me.stretch, S), Pt = Sd(Ge.stretch - G, K, ze, Se), Dt = Id(Ge.fixed - he, ge, Ge.stretch, D), Bt = Sd(He.stretch - V, Z, Oe, Re), na = Id(He.fixed - X, J, He.stretch, S), lr = Sd(We.stretch - G, K, ze, Se), Cr = Id(We.fixed - he, ge, We.stretch, D), zr = new O(Ze, Pt), Xt = new O(Bt, Pt), Hr = new O(Bt, lr), fa = new O(Ze, lr), ga = new O(ct / h, Dt / h), La = new O(na / h, Cr / h), sa = e * Math.PI / 180;
26345
+ const Ze = Sd(Me.stretch - V, Z, Oe, Re), ct = Id(Me.fixed - X, J, Me.stretch, S), Pt = Sd(Ge.stretch - G, K, ze, Se), Dt = Id(Ge.fixed - he, ge, Ge.stretch, D), Bt = Sd(He.stretch - V, Z, Oe, Re), na = Id(He.fixed - X, J, He.stretch, S), lr = Sd(We.stretch - G, K, ze, Se), Cr = Id(We.fixed - he, ge, We.stretch, D), zr = new O(Ze, Pt), Qt = new O(Bt, Pt), Hr = new O(Bt, lr), fa = new O(Ze, lr), ga = new O(ct / h, Dt / h), La = new O(na / h, Cr / h), sa = e * Math.PI / 180;
26346
26346
  if (sa) {
26347
26347
  const Fr = Math.sin(sa), ar = Math.cos(sa), wr = [ar, -Fr, Fr, ar];
26348
- zr._matMult(wr), Xt._matMult(wr), fa._matMult(wr), Hr._matMult(wr);
26348
+ zr._matMult(wr), Qt._matMult(wr), fa._matMult(wr), Hr._matMult(wr);
26349
26349
  }
26350
- const Oa = Me.stretch + Me.fixed, di = Ge.stretch + Ge.fixed;
26351
- return { tl: zr, tr: Xt, bl: fa, br: Hr, tex: { x: u.paddedRect.x + 1 + Oa, y: u.paddedRect.y + 1 + di, w: He.stretch + He.fixed - Oa, h: We.stretch + We.fixed - di }, writingMode: void 0, glyphOffset: [0, 0], sectionIndex: 0, pixelOffsetTL: ga, pixelOffsetBR: La, minFontScaleX: J / h / Oe, minFontScaleY: ge / h / ze, isSDF: r };
26350
+ const Oa = Me.stretch + Me.fixed, hi = Ge.stretch + Ge.fixed;
26351
+ return { tl: zr, tr: Qt, bl: fa, br: Hr, tex: { x: u.paddedRect.x + 1 + Oa, y: u.paddedRect.y + 1 + hi, w: He.stretch + He.fixed - Oa, h: We.stretch + We.fixed - hi }, writingMode: void 0, glyphOffset: [0, 0], sectionIndex: 0, pixelOffsetTL: ga, pixelOffsetBR: La, minFontScaleX: J / h / Oe, minFontScaleY: ge / h / ze, isSDF: r };
26352
26352
  };
26353
26353
  if (n && (u.stretchX || u.stretchY)) {
26354
26354
  const Me = l6(E, L, S), Ge = l6(x, B, D);
@@ -26583,18 +26583,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
26583
26583
  let Pe;
26584
26584
  n && ze !== "none" && (a.allowVerticalPlacement && r.vertical && (Pe = ip(n, r.vertical, ze, S.get("icon-text-fit-padding"), D, B)), L && (n = ip(n, L, ze, S.get("icon-text-fit-padding"), D, B)));
26585
26585
  const Me = E ? x.line.getGranularityForZoomLevel(E.z) : 1, Ge = (He, We) => {
26586
- We.x < 0 || We.x >= ot || We.y < 0 || We.y >= ot || (function(Ze, ct, Pt, Dt, Bt, na, lr, Cr, zr, Xt, Hr, fa, ga, La, sa, Oa, di, Fr, ar, wr, cr, Br, Sn, Ii, Ic) {
26586
+ We.x < 0 || We.x >= ot || We.y < 0 || We.y >= ot || (function(Ze, ct, Pt, Dt, Bt, na, lr, Cr, zr, Qt, Hr, fa, ga, La, sa, Oa, hi, Fr, ar, wr, cr, Br, Sn, Ii, Ic) {
26587
26587
  const gs = Ze.addToLineVertexArray(ct, Pt);
26588
26588
  let co, Bl, Vl, Ul, p6 = 0, m6 = 0, f6 = 0, g6 = 0, $1 = -1, Y1 = -1;
26589
26589
  const In = {};
26590
26590
  let y6 = Dr("");
26591
26591
  if (Ze.allowVerticalPlacement && Dt.vertical) {
26592
26592
  const ya = Cr.layout.get("text-rotate").evaluate(cr, {}, Ii) + 90;
26593
- Vl = new Cd(zr, ct, Xt, Hr, fa, Dt.vertical, ga, La, sa, ya), lr && (Ul = new Cd(zr, ct, Xt, Hr, fa, lr, di, Fr, sa, ya));
26593
+ Vl = new Cd(zr, ct, Qt, Hr, fa, Dt.vertical, ga, La, sa, ya), lr && (Ul = new Cd(zr, ct, Qt, Hr, fa, lr, hi, Fr, sa, ya));
26594
26594
  }
26595
26595
  if (Bt) {
26596
26596
  const ya = Cr.layout.get("icon-rotate").evaluate(cr, {}), ii = Cr.layout.get("icon-text-fit") !== "none", uo = o6(Bt, ya, Sn, ii), Mi = lr ? o6(lr, ya, Sn, ii) : void 0;
26597
- Bl = new Cd(zr, ct, Xt, Hr, fa, Bt, di, Fr, !1, ya), p6 = 4 * uo.length;
26597
+ Bl = new Cd(zr, ct, Qt, Hr, fa, Bt, hi, Fr, !1, ya), p6 = 4 * uo.length;
26598
26598
  const ho = Ze.iconSizeData;
26599
26599
  let $i = null;
26600
26600
  ho.kind === "source" ? ($i = [wn * Cr.layout.get("icon-size").evaluate(cr, {})], $i[0] > us && dr(`${Ze.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)) : ho.kind === "composite" && ($i = [wn * Br.compositeIconSizes[0].evaluate(cr, {}, Ii), wn * Br.compositeIconSizes[1].evaluate(cr, {}, Ii)], ($i[0] > us || $i[1] > us) && dr(`${Ze.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)), Ze.addSymbols(Ze.icon, uo, $i, wr, ar, cr, w.ax.none, ct, gs.lineStartIndex, gs.lineLength, -1, Ii), $1 = Ze.icon.placedSymbolArray.length - 1, Mi && (m6 = 4 * Mi.length, Ze.addSymbols(Ze.icon, Mi, $i, wr, ar, cr, w.ax.vertical, ct, gs.lineStartIndex, gs.lineLength, -1, Ii), Y1 = Ze.icon.placedSymbolArray.length - 1);
@@ -26605,7 +26605,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
26605
26605
  if (!co) {
26606
26606
  y6 = Dr(ii.text);
26607
26607
  const Mi = Cr.layout.get("text-rotate").evaluate(cr, {}, Ii);
26608
- co = new Cd(zr, ct, Xt, Hr, fa, ii, ga, La, sa, Mi);
26608
+ co = new Cd(zr, ct, Qt, Hr, fa, ii, ga, La, sa, Mi);
26609
26609
  }
26610
26610
  const uo = ii.positionedLines.length === 1;
26611
26611
  if (f6 += d6(Ze, ct, ii, na, Cr, sa, cr, Oa, gs, Dt.vertical ? w.ax.horizontal : w.ax.horizontalOnly, uo ? _6 : [ya], In, $1, Br, Ii), uo) break;
@@ -26625,7 +26625,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
26625
26625
  }
26626
26626
  return [uo, ya.length];
26627
26627
  })(Ze.textAnchorOffsets, j7);
26628
- Ze.symbolInstances.emplaceBack(ct.x, ct.y, In.right >= 0 ? In.right : -1, In.center >= 0 ? In.center : -1, In.left >= 0 ? In.left : -1, In.vertical || -1, $1, Y1, y6, O7, z7, F7, B7, V7, U7, G7, Z7, Xt, f6, g6, p6, m6, v6, 0, ga, Ci, W7, K7);
26628
+ Ze.symbolInstances.emplaceBack(ct.x, ct.y, In.right >= 0 ? In.right : -1, In.center >= 0 ? In.center : -1, In.left >= 0 ? In.left : -1, In.vertical || -1, $1, Y1, y6, O7, z7, F7, B7, V7, U7, G7, Z7, Qt, f6, g6, p6, m6, v6, 0, ga, Ci, W7, K7);
26629
26629
  })(a, We, He, r, n, s, Pe, a.layers[0], a.collisionBoxArray, e.index, e.sourceLayerIndex, a.index, V, [X, X, X, X], ge, _, G, J, Re, D, e, u, y, E, h);
26630
26630
  };
26631
26631
  if (Se === "line") for (const He of Jp(e.geometry, 0, 0, ot, ot)) {
@@ -26662,7 +26662,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
26662
26662
  const Dt = J ? [Pe.x + Pt, Pe.y] : [0, 0];
26663
26663
  let Bt = J ? [0, 0] : [Pe.x + Pt + K[0], Pe.y + K[1] - Ze], na = [0, 0];
26664
26664
  ct && (na = Bt, Bt = [0, 0]);
26665
- const lr = Pe.metrics.isDoubleResolution ? 2 : 1, Cr = (Pe.metrics.left - Ge) * Pe.scale - Pt + Bt[0], zr = (-Pe.metrics.top - Ge) * Pe.scale + Bt[1], Xt = Cr + Me.w / lr * Pe.scale / We, Hr = zr + Me.h / lr * Pe.scale / We, fa = new O(Cr, zr), ga = new O(Xt, zr), La = new O(Cr, Hr), sa = new O(Xt, Hr);
26665
+ const lr = Pe.metrics.isDoubleResolution ? 2 : 1, Cr = (Pe.metrics.left - Ge) * Pe.scale - Pt + Bt[0], zr = (-Pe.metrics.top - Ge) * Pe.scale + Bt[1], Qt = Cr + Me.w / lr * Pe.scale / We, Hr = zr + Me.h / lr * Pe.scale / We, fa = new O(Cr, zr), ga = new O(Qt, zr), La = new O(Cr, Hr), sa = new O(Qt, Hr);
26666
26666
  if (ct) {
26667
26667
  const Fr = new O(-Pt, Pt - -17), ar = -Math.PI / 2, wr = 12 - Pt, cr = new O(22 - wr, -(Pe.imageName ? wr : 0)), Br = new O(...na);
26668
26668
  fa._rotateAround(ar, Fr)._add(cr)._add(Br), ga._rotateAround(ar, Fr)._add(cr)._add(Br), La._rotateAround(ar, Fr)._add(cr)._add(Br), sa._rotateAround(ar, Fr)._add(cr)._add(Br);
@@ -26671,8 +26671,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
26671
26671
  const Fr = Math.sin(Se), ar = Math.cos(Se), wr = [ar, -Fr, Fr, ar];
26672
26672
  fa._matMult(wr), ga._matMult(wr), La._matMult(wr), sa._matMult(wr);
26673
26673
  }
26674
- const Oa = new O(0, 0), di = new O(0, 0);
26675
- Oe.push({ tl: fa, tr: ga, bl: La, br: sa, tex: Me, writingMode: G.writingMode, glyphOffset: Dt, sectionIndex: Pe.sectionIndex, isSDF: He, pixelOffsetTL: Oa, pixelOffsetBR: di, minFontScaleX: 0, minFontScaleY: 0 });
26674
+ const Oa = new O(0, 0), hi = new O(0, 0);
26675
+ Oe.push({ tl: fa, tr: ga, bl: La, br: sa, tex: Me, writingMode: G.writingMode, glyphOffset: Dt, sectionIndex: Pe.sectionIndex, isSDF: He, pixelOffsetTL: Oa, pixelOffsetBR: hi, minFontScaleX: 0, minFontScaleY: 0 });
26676
26676
  }
26677
26677
  return Oe;
26678
26678
  })(0, r, p, s, u, h, n, a.allowVerticalPlacement), B = a.textSizeData;
@@ -26693,7 +26693,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
26693
26693
  } else s[e] = [];
26694
26694
  return s[e].push(n), !1;
26695
26695
  }
26696
- w.$ = eu, w.A = fe, w.B = nl, w.C = Ku, w.D = tt, w.E = Ao, w.F = oi, w.G = function([a, e, r]) {
26696
+ w.$ = eu, w.A = fe, w.B = nl, w.C = Ku, w.D = tt, w.E = Ao, w.F = li, w.G = function([a, e, r]) {
26697
26697
  return e += 90, e *= Math.PI / 180, r *= Math.PI / 180, { x: a * Math.cos(e) * Math.sin(r), y: a * Math.sin(e) * Math.sin(r), z: a * Math.cos(r) };
26698
26698
  }, w.H = Ra, w.I = v1, w.J = jt, w.K = Hs, w.L = function(a) {
26699
26699
  if (Ct == null) {
@@ -26703,7 +26703,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
26703
26703
  return Ct;
26704
26704
  }, w.M = Va, w.N = class {
26705
26705
  constructor(a, e) {
26706
- this.target = a, this.mapId = e, this.resolveRejects = {}, this.tasks = {}, this.taskQueue = [], this.abortControllers = {}, this.messageHandlers = {}, this.invoker = new K8((() => this.process())), this.subscription = mi(this.target, "message", ((r) => this.receive(r)), !1), this.globalScope = $t(self) ? a : window;
26706
+ this.target = a, this.mapId = e, this.resolveRejects = {}, this.tasks = {}, this.taskQueue = [], this.abortControllers = {}, this.messageHandlers = {}, this.invoker = new K8((() => this.process())), this.subscription = ni(this.target, "message", ((r) => this.receive(r)), !1), this.globalScope = $t(self) ? a : window;
26707
26707
  }
26708
26708
  registerMessageHandler(a, e) {
26709
26709
  this.messageHandlers[a] = e;
@@ -26713,7 +26713,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
26713
26713
  }
26714
26714
  sendAsync(a, e) {
26715
26715
  return new Promise(((r, n) => {
26716
- const s = Math.round(1e18 * Math.random()).toString(36).substring(0, 10), u = e ? mi(e.signal, "abort", (() => {
26716
+ const s = Math.round(1e18 * Math.random()).toString(36).substring(0, 10), u = e ? ni(e.signal, "abort", (() => {
26717
26717
  u == null || u.unsubscribe(), delete this.resolveRejects[s];
26718
26718
  const _ = { id: s, type: "<cancel>", origin: location.origin, targetMapId: a.targetMapId, sourceMapId: this.mapId };
26719
26719
  this.target.postMessage(_);
@@ -27116,7 +27116,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
27116
27116
  return new Float64Array(3);
27117
27117
  }, w.c = Di, w.c$ = Bs, w.c0 = class extends ra {
27118
27118
  constructor(a, e) {
27119
- super(a, e), this.current = ci;
27119
+ super(a, e), this.current = ui;
27120
27120
  }
27121
27121
  set(a) {
27122
27122
  if (a[12] !== this.current[12] || a[0] !== this.current[0]) return this.current = a, void this.gl.uniformMatrix4fv(this.location, !1, a);
@@ -27322,7 +27322,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
27322
27322
  const n = xt(e.x - r.x, e.y - r.y), s = xt(a.x - r.x, a.y - r.y);
27323
27323
  var u, h;
27324
27324
  return Qr(Math.atan2(n[0] * s[1] - n[1] * s[0], (u = n)[0] * (h = s)[0] + u[1] * h[1]));
27325
- }, w.cy = pi, w.cz = function(a, e) {
27325
+ }, w.cy = mi, w.cz = function(a, e) {
27326
27326
  var r;
27327
27327
  if (!s0[e]) return !1;
27328
27328
  const n = a == null ? void 0 : a.target, s = ((r = n == null ? void 0 : n.ownerDocument) === null || r === void 0 ? void 0 : r.defaultView) || window;
@@ -27411,15 +27411,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
27411
27411
  })), w.i = $t, w.j = (a) => new Promise(((e, r) => {
27412
27412
  const n = new Image();
27413
27413
  n.onload = () => {
27414
- e(n), URL.revokeObjectURL(n.src), n.onload = null, window.requestAnimationFrame((() => n.src = Qt));
27414
+ e(n), URL.revokeObjectURL(n.src), n.onload = null, window.requestAnimationFrame((() => n.src = Yt));
27415
27415
  }, n.onerror = () => r(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));
27416
27416
  const s = new Blob([new Uint8Array(a)], { type: "image/png" });
27417
- n.src = a.byteLength ? URL.createObjectURL(s) : Qt;
27417
+ n.src = a.byteLength ? URL.createObjectURL(s) : Yt;
27418
27418
  })), w.k = (a, e) => Qi(Pr(a, { type: "json" }), e), w.l = Fn, w.m = Qi, w.n = Ts, w.o = (a, e) => Qi(Pr(a, { type: "arrayBuffer" }), e), w.p = ep, w.q = function(a) {
27419
27419
  return new _d(a).readFields(P8, []);
27420
27420
  }, w.r = function(a) {
27421
27421
  return /[\u02EA\u02EB\u1100-\u11FF\u2E80-\u2FDF\u3000-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFE10-\uFE1F\uFE30-\uFE4F\uFF00-\uFFEF]|\uD81B[\uDFE0-\uDFFF]|[\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFFF]|\uD82C[\uDC00-\uDEFB]|\uD83C[\uDE00-\uDEFF]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79]/gim.test(String.fromCodePoint(a));
27422
- }, w.s = mi, w.t = uc, w.u = da, w.v = qs, w.w = dr, w.x = Fe, w.y = Q0, w.z = Pa;
27422
+ }, w.s = ni, w.t = uc, w.u = da, w.v = qs, w.w = dr, w.x = Fe, w.y = Q0, w.z = Pa;
27423
27423
  })), M("worker", ["./shared"], (function(w) {
27424
27424
  class o {
27425
27425
  constructor(Y, ee) {
@@ -27520,12 +27520,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
27520
27520
  this.inFlightDependencies.push(it), Rt = Ie.sendAsync({ type: "GI", data: { icons: kr, source: this.source, tileID: this.tileID, type: "patterns" } }, it);
27521
27521
  }
27522
27522
  const Ar = lt.dashDependencies;
27523
- let pi = Promise.resolve({});
27523
+ let mi = Promise.resolve({});
27524
27524
  if (Object.keys(Ar).length) {
27525
27525
  const it = new AbortController();
27526
- this.inFlightDependencies.push(it), pi = Ie.sendAsync({ type: "GDA", data: { dashes: Ar } }, it);
27526
+ this.inFlightDependencies.push(it), mi = Ie.sendAsync({ type: "GDA", data: { dashes: Ar } }, it);
27527
27527
  }
27528
- const [br, Sr, Pr, ur] = yield Promise.all([It, gr, Rt, pi]), ht = new O(br), yr = new w.cN(Sr, Pr);
27528
+ const [br, Sr, Pr, ur] = yield Promise.all([It, gr, Rt, mi]), ht = new O(br), yr = new w.cN(Sr, Pr);
27529
27529
  for (const it in rt) {
27530
27530
  const Ht = rt[it];
27531
27531
  Ht instanceof w.af ? (j(Ht.layers, this.zoom, le), w.cO({ bucket: Ht, glyphMap: br, glyphPositions: ht.positions, imageMap: Sr, imagePositions: yr.iconPositions, showCollisionBoxes: this.showCollisionBoxes, canonical: this.tileID.canonical, subdivisionGranularity: lt.subdivisionGranularity })) : Ht.hasDependencies && (Ht instanceof w.cP || Ht instanceof w.cQ || Ht instanceof w.cR) && (j(Ht.layers, this.zoom, le), Ht.addFeatures(lt, this.tileID.canonical, yr.patternPositions, ur));
@@ -28610,7 +28610,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
28610
28610
  return kr || (kr = new Et()), kr;
28611
28611
  }
28612
28612
  Et.workerCount = o.L(globalThis) ? Math.max(Math.min(gr, 3), 1) : 1;
28613
- class pi {
28613
+ class mi {
28614
28614
  constructor(t, i) {
28615
28615
  this.workerPool = t, this.actors = [], this.currentActor = 0, this.id = i;
28616
28616
  const c = this.workerPool.acquire(i);
@@ -28640,7 +28640,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
28640
28640
  }
28641
28641
  }
28642
28642
  function br() {
28643
- return Rt || (Rt = new pi(Ar(), o.M), Rt.registerMessageHandler("GR", ((m, t, i) => o.m(t, i)))), Rt;
28643
+ return Rt || (Rt = new mi(Ar(), o.M), Rt.registerMessageHandler("GR", ((m, t, i) => o.m(t, i)))), Rt;
28644
28644
  }
28645
28645
  function Sr(m, t) {
28646
28646
  const i = o.O();
@@ -29016,7 +29016,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
29016
29016
  }
29017
29017
  return (m.removeAllProperties || t.removeAllProperties) && (i.removeAllProperties = !0), (m.removeProperties || t.removeProperties) && (i.removeProperties = [...m.removeProperties || [], ...t.removeProperties || []]), (m.addOrUpdateProperties || t.addOrUpdateProperties) && (i.addOrUpdateProperties = [...m.addOrUpdateProperties || [], ...t.addOrUpdateProperties || []]), (m.newGeometry || t.newGeometry) && (i.newGeometry = t.newGeometry || m.newGeometry), i;
29018
29018
  }
29019
- function Qt(m) {
29019
+ function Yt(m) {
29020
29020
  var t, i;
29021
29021
  if (!m) return {};
29022
29022
  const c = {};
@@ -29048,7 +29048,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
29048
29048
  }
29049
29049
  return t;
29050
29050
  }
29051
- class mi extends o.E {
29051
+ class ni extends o.E {
29052
29052
  constructor(t, i, c, d) {
29053
29053
  super(), this.id = t, this.type = "geojson", this.minzoom = 0, this.maxzoom = 18, this.tileSize = 512, this.isTileClipped = !0, this.reparseOverscaled = !0, this._removed = !1, this._isUpdatingWorker = !1, this._pendingWorkerUpdate = { data: i.data }, this.actor = c.getActor(), this.setEventedParent(d), this._data = typeof i.data == "string" ? { url: i.data } : { geojson: i.data }, this._options = o.e({}, i), this._collectResourceTiming = i.collectResourceTiming, i.maxzoom !== void 0 && (this.maxzoom = i.maxzoom), i.type && (this.type = i.type), i.attribution && (this.attribution = i.attribution), this.promoteId = i.promoteId, i.clusterMaxZoom !== void 0 && this.maxzoom <= i.clusterMaxZoom && o.w(`The maxzoom value "${this.maxzoom}" is expected to be greater than the clusterMaxZoom value "${i.clusterMaxZoom}".`), this.workerOptions = o.e({ source: this.id, geojsonVtOptions: { buffer: this._pixelsToTileUnits(i.buffer !== void 0 ? i.buffer : 128), tolerance: this._pixelsToTileUnits(i.tolerance !== void 0 ? i.tolerance : 0.375), extent: o.a6, maxZoom: this.maxzoom, lineMetrics: i.lineMetrics || !1, generateId: i.generateId || !1, promoteId: typeof i.promoteId == "string" ? i.promoteId : void 0, cluster: i.cluster || !1, clusterOptions: { maxZoom: this._getClusterMaxZoom(i.clusterMaxZoom), minPoints: Math.max(2, i.clusterMinPoints || 2), extent: o.a6, radius: this._pixelsToTileUnits(i.clusterRadius || 50), log: !1, generateId: i.generateId || !1 } }, clusterProperties: i.clusterProperties, filter: i.filter }, i.workerOptions);
29054
29054
  }
@@ -29079,7 +29079,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
29079
29079
  this._pendingWorkerUpdate.diff = (function(d, g) {
29080
29080
  if (!d) return g || {};
29081
29081
  if (!g) return d || {};
29082
- const b = Qt(d), A = Qt(g);
29082
+ const b = Yt(d), A = Yt(g);
29083
29083
  (function(k, N) {
29084
29084
  N.removeAll && (k.add.clear(), k.update.clear(), k.remove.clear(), N.remove.clear());
29085
29085
  for (const z of N.remove) k.add.delete(z), k.update.delete(z);
@@ -29440,7 +29440,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
29440
29440
  const s0 = {}, Eo = (m) => {
29441
29441
  switch (m) {
29442
29442
  case "geojson":
29443
- return mi;
29443
+ return ni;
29444
29444
  case "image":
29445
29445
  return Zr;
29446
29446
  case "raster":
@@ -30751,14 +30751,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
30751
30751
  Ye.textFeatureIndex ? Gi = Ye.textFeatureIndex : Be.useRuntimeCollisionCircles && (Gi = Be.featureIndex), Ye.verticalTextFeatureIndex && (Zi = Ye.verticalTextFeatureIndex);
30752
30752
  const ra = Ye.textBox;
30753
30753
  if (ra) {
30754
- const ci = (tr) => {
30754
+ const ui = (tr) => {
30755
30755
  let qt = o.ax.horizontal;
30756
30756
  if (d.allowVerticalPlacement && !tr && this.prevPlacement) {
30757
30757
  const Er = this.prevPlacement.placedOrientations[Be.crossTileID];
30758
30758
  Er && (this.placedOrientations[Be.crossTileID] = Er, qt = Er, this.markUsedOrientation(d, qt, Be));
30759
30759
  }
30760
30760
  return qt;
30761
- }, ui = (tr, qt) => {
30761
+ }, di = (tr, qt) => {
30762
30762
  if (d.allowVerticalPlacement && Be.numVerticalGlyphVertices > 0 && Ye.verticalTextBox) {
30763
30763
  for (const Er of d.writingModes) if (Er === o.ax.vertical ? (or = qt(), ha = or) : or = tr(), or == null ? void 0 : or.placeable) break;
30764
30764
  } else or = tr();
@@ -30768,10 +30768,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
30768
30768
  const rr = this.collisionIndex.placeCollisionBox(qt, te, N, Ue, I, ce, re, b, $.predicate, Ve, void 0, et);
30769
30769
  return rr != null && rr.placeable && (this.markUsedOrientation(d, Er, Be), this.placedOrientations[Be.crossTileID] = Er), rr;
30770
30770
  };
30771
- ui((() => tr(ra, o.ax.horizontal)), (() => {
30771
+ di((() => tr(ra, o.ax.horizontal)), (() => {
30772
30772
  const qt = Ye.verticalTextBox;
30773
30773
  return d.allowVerticalPlacement && Be.numVerticalGlyphVertices > 0 && qt ? tr(qt, o.ax.vertical) : { box: null, offscreen: null };
30774
- })), ci(or == null ? void 0 : or.placeable);
30774
+ })), ui(or == null ? void 0 : or.placeable);
30775
30775
  } else {
30776
30776
  let tr = o.aM[(mr = (Ot = this.prevPlacement) === null || Ot === void 0 ? void 0 : Ot.variableOffsets[Be.crossTileID]) === null || mr === void 0 ? void 0 : mr.anchor];
30777
30777
  const qt = (rr, Tn, fl) => {
@@ -30789,11 +30789,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
30789
30789
  }
30790
30790
  return c && !Ki && (Ki = { box: this.collisionIndex.placeCollisionBox(ra, "always", N, Ue, I, ce, re, b, $.predicate, Ve, void 0, et).box, offscreen: !1, placeable: !1, occluded: !1 }), Ki;
30791
30791
  };
30792
- ui((() => qt(ra, Ye.iconBox, o.ax.horizontal)), (() => {
30792
+ di((() => qt(ra, Ye.iconBox, o.ax.horizontal)), (() => {
30793
30793
  const rr = Ye.verticalTextBox;
30794
30794
  return d.allowVerticalPlacement && !(or != null && or.placeable) && Be.numVerticalGlyphVertices > 0 && rr ? qt(rr, Ye.verticalIconBox, o.ax.vertical) : { box: null, occluded: !0, offscreen: null };
30795
30795
  })), or && (Vt = or.placeable, Tr = or.offscreen);
30796
- const Er = ci(or == null ? void 0 : or.placeable);
30796
+ const Er = ui(or == null ? void 0 : or.placeable);
30797
30797
  if (!Vt && this.prevPlacement) {
30798
30798
  const rr = this.prevPlacement.variableOffsets[Be.crossTileID];
30799
30799
  rr && (this.variableOffsets[Be.crossTileID] = rr, this.markUsedJustification(d, rr.anchor, Be, Er));
@@ -30801,12 +30801,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
30801
30801
  }
30802
30802
  }
30803
30803
  if (Kr = or, Vt = Kr == null ? void 0 : Kr.placeable, Tr = Kr == null ? void 0 : Kr.offscreen, Be.useRuntimeCollisionCircles && Be.centerJustifiedTextSymbolIndex >= 0) {
30804
- const ci = d.text.placedSymbolArray.get(Be.centerJustifiedTextSymbolIndex), ui = o.ay(d.textSizeData, U, ci), Na = g.get("text-padding");
30805
- Dr = this.collisionIndex.placeCollisionCircles(te, ci, d.lineVertexArray, d.glyphOffsetArray, ui, I, k, c, ce, $.predicate, Be.collisionCircleDiameter, Na, b, Ve), Dr.circles.length && Dr.collisionDetected && !c && o.w("Collisions detected, but collision boxes are not shown"), Vt = ne || Dr.circles.length > 0 && !Dr.collisionDetected, Tr && (Tr = Dr.offscreen);
30804
+ const ui = d.text.placedSymbolArray.get(Be.centerJustifiedTextSymbolIndex), di = o.ay(d.textSizeData, U, ui), Na = g.get("text-padding");
30805
+ Dr = this.collisionIndex.placeCollisionCircles(te, ui, d.lineVertexArray, d.glyphOffsetArray, di, I, k, c, ce, $.predicate, Be.collisionCircleDiameter, Na, b, Ve), Dr.circles.length && Dr.collisionDetected && !c && o.w("Collisions detected, but collision boxes are not shown"), Vt = ne || Dr.circles.length > 0 && !Dr.collisionDetected, Tr && (Tr = Dr.offscreen);
30806
30806
  }
30807
30807
  if (Ye.iconFeatureIndex && (ji = Ye.iconFeatureIndex), Ye.iconBox) {
30808
- const ci = (ui) => this.collisionIndex.placeCollisionBox(ui, ue, N, Ue, I, ce, re, A, $.predicate, Ve, oe && ea ? ea : void 0, et);
30809
- ha && ha.placeable && Ye.verticalIconBox ? (ta = ci(Ye.verticalIconBox), vr = ta.placeable) : (ta = ci(Ye.iconBox), vr = ta.placeable), Tr && (Tr = ta.offscreen);
30808
+ const ui = (di) => this.collisionIndex.placeCollisionBox(di, ue, N, Ue, I, ce, re, A, $.predicate, Ve, oe && ea ? ea : void 0, et);
30809
+ ha && ha.placeable && Ye.verticalIconBox ? (ta = ui(Ye.verticalIconBox), vr = ta.placeable) : (ta = ui(Ye.iconBox), vr = ta.placeable), Tr && (Tr = ta.offscreen);
30810
30810
  }
30811
30811
  const Ei = Q || Be.numHorizontalGlyphVertices === 0 && Be.numVerticalGlyphVertices === 0, Wi = ie || Be.numIconVertices === 0;
30812
30812
  Ei || Wi ? Wi ? Ei || vr && (vr = Vt) : Vt = vr && Vt : vr = Vt = vr && Vt;
@@ -32288,14 +32288,14 @@ uniform ${N} ${z} u_${F};
32288
32288
  return [t.canonical.x / i, t.canonical.y / i, 1 / i / o.a6, 1 / i / o.a6];
32289
32289
  }
32290
32290
  }
32291
- class ni {
32291
+ class si {
32292
32292
  constructor(t, i) {
32293
32293
  this.min = t, this.max = i, this.center = o.aZ([], o.a_([], this.min, this.max), 0.5);
32294
32294
  }
32295
32295
  quadrant(t) {
32296
32296
  const i = [t % 2 == 0, t < 2], c = o.a$(this.min), d = o.a$(this.max);
32297
32297
  for (let g = 0; g < i.length; g++) c[g] = i[g] ? this.min[g] : this.center[g], d[g] = i[g] ? this.center[g] : this.max[g];
32298
- return d[2] = this.max[2], new ni(c, d);
32298
+ return d[2] = this.max[2], new si(c, d);
32299
32299
  }
32300
32300
  distanceX(t) {
32301
32301
  return Math.max(Math.min(this.max[0], t[0]), this.min[0]) - t[0];
@@ -32334,7 +32334,7 @@ uniform ${N} ${z} u_${F};
32334
32334
  A = (g = z.minElevation) !== null && g !== void 0 ? g : Math.min(0, c), I = (b = z.maxElevation) !== null && b !== void 0 ? b : Math.max(0, c);
32335
32335
  }
32336
32336
  const k = 1 << t.z;
32337
- return new ni([i + t.x / k, t.y / k, A], [i + (t.x + 1) / k, (t.y + 1) / k, I]);
32337
+ return new si([i + t.x / k, t.y / k, A], [i + (t.x + 1) / k, (t.y + 1) / k, I]);
32338
32338
  }
32339
32339
  allowVariableZoom(t, i) {
32340
32340
  const c = t.fov * (Math.abs(Math.cos(t.rollInRadians)) * t.height + Math.abs(Math.sin(t.rollInRadians)) * t.width) / t.height, d = o.al(78.5 - c / 2, 0, 60);
@@ -32392,7 +32392,7 @@ uniform ${N} ${z} u_${F};
32392
32392
  return Q.concat(ie);
32393
32393
  })), N = [Number.POSITIVE_INFINITY, Number.POSITIVE_INFINITY, Number.POSITIVE_INFINITY], z = [Number.NEGATIVE_INFINITY, Number.NEGATIVE_INFINITY, Number.NEGATIVE_INFINITY];
32394
32394
  for (const F of I) for (let U = 0; U < 3; U++) N[U] = Math.min(N[U], F[U]), z[U] = Math.max(z[U], F[U]);
32395
- return new wa(I, k, new ni(N, z));
32395
+ return new wa(I, k, new si(N, z));
32396
32396
  }
32397
32397
  }
32398
32398
  class sn {
@@ -34229,7 +34229,7 @@ uniform ${N} ${z} u_${F};
34229
34229
  const A = this.tileManagers[b].getSource().type;
34230
34230
  A !== "vector" && A !== "geojson" || this.tileManagers[b].reload();
34231
34231
  }
34232
- }, this.map = t, this.dispatcher = new pi(Ar(), t._getMapId()), this.dispatcher.registerMessageHandler("GG", ((b, A) => this.getGlyphs(b, A))), this.dispatcher.registerMessageHandler("GI", ((b, A) => this.getImages(b, A))), this.dispatcher.registerMessageHandler("GDA", ((b, A) => this.getDashes(b, A))), this.imageManager = new _e(), this.imageManager.setEventedParent(this);
34232
+ }, this.map = t, this.dispatcher = new mi(Ar(), t._getMapId()), this.dispatcher.registerMessageHandler("GG", ((b, A) => this.getGlyphs(b, A))), this.dispatcher.registerMessageHandler("GI", ((b, A) => this.getImages(b, A))), this.dispatcher.registerMessageHandler("GDA", ((b, A) => this.getDashes(b, A))), this.imageManager = new _e(), this.imageManager.setEventedParent(this);
34233
34233
  const g = ((c = t._container) === null || c === void 0 ? void 0 : c.lang) || typeof document < "u" && ((d = document.documentElement) === null || d === void 0 ? void 0 : d.lang) || void 0;
34234
34234
  this.glyphManager = new De(t._requestManager, i.localIdeographFontFamily, g), this.lineAtlas = new ot(256, 512), this.crossTileSymbolIndex = new Ea(), this._setInitialValues(), this._resetUpdates(), this.dispatcher.broadcast("SR", o.bO()), Di().on(bs, this._rtlPluginLoaded), this.on("data", ((b) => {
34235
34235
  if (b.dataType !== "source" || b.sourceDataType !== "metadata") return;
@@ -35109,10 +35109,10 @@ uniform ${N} ${z} u_${F};
35109
35109
  }
35110
35110
  const w2 = (m, t, i = 0) => ({ u_image: 0, u_unpack: t.getUnpackVector(), u_dimension: [t.stride, t.stride], u_elevation_stops: 1, u_color_stops: 4, u_color_ramp_size: i, u_opacity: m.paint.get("color-relief-opacity") }), Ds = (m, t, i, c) => {
35111
35111
  const d = m.transform;
35112
- return { u_translation: si(m, t, i), u_ratio: c / o.aK(t, 1, d.zoom), u_device_pixel_ratio: m.pixelRatio, u_units_to_pixels: [1 / d.pixelsToGLUnits[0], 1 / d.pixelsToGLUnits[1]] };
35112
+ return { u_translation: oi(m, t, i), u_ratio: c / o.aK(t, 1, d.zoom), u_device_pixel_ratio: m.pixelRatio, u_units_to_pixels: [1 / d.pixelsToGLUnits[0], 1 / d.pixelsToGLUnits[1]] };
35113
35113
  }, Tu = (m, t, i, c, d) => o.e(Ds(m, t, i, c), { u_image: 0, u_image_height: d }), Eu = (m, t, i, c, d) => {
35114
35114
  const g = m.transform, b = Qn(t, g);
35115
- return { u_translation: si(m, t, i), u_texsize: t.imageAtlasTexture.size, u_ratio: c / o.aK(t, 1, g.zoom), u_device_pixel_ratio: m.pixelRatio, u_image: 0, u_scale: [b, d.fromScale, d.toScale], u_fade: d.t, u_units_to_pixels: [1 / g.pixelsToGLUnits[0], 1 / g.pixelsToGLUnits[1]] };
35115
+ return { u_translation: oi(m, t, i), u_texsize: t.imageAtlasTexture.size, u_ratio: c / o.aK(t, 1, g.zoom), u_device_pixel_ratio: m.pixelRatio, u_image: 0, u_scale: [b, d.fromScale, d.toScale], u_fade: d.t, u_units_to_pixels: [1 / g.pixelsToGLUnits[0], 1 / g.pixelsToGLUnits[1]] };
35116
35116
  }, I0 = (m, t, i, c, d) => {
35117
35117
  const g = Qn(t, m.transform);
35118
35118
  return o.e(Ds(m, t, i, c), { u_tileratio: g, u_crossfade_from: d.fromScale, u_crossfade_to: d.toScale, u_image: 0, u_mix: d.t, u_lineatlas_width: m.lineAtlas.width, u_lineatlas_height: m.lineAtlas.height });
@@ -35123,7 +35123,7 @@ uniform ${N} ${z} u_${F};
35123
35123
  function Qn(m, t) {
35124
35124
  return 1 / o.aK(m, 1, t.tileZoom);
35125
35125
  }
35126
- function si(m, t, i) {
35126
+ function oi(m, t, i) {
35127
35127
  return o.aL(m.transform, t, i.paint.get("line-translate"), i.paint.get("line-translate-anchor"));
35128
35128
  }
35129
35129
  const C0 = (m, t, i, c, d) => {
@@ -35714,14 +35714,14 @@ uniform ${N} ${z} u_${F};
35714
35714
  const rr = i.layout.get("icon-size").constantOr(0) !== 1 || Ye.iconsNeedLinear;
35715
35715
  Kr = Be.imageAtlasTexture, Dr = mr || m.options.rotating || m.options.zooming || rr || vr ? ie.LINEAR : ie.NEAREST, ha = Be.imageAtlasTexture.size;
35716
35716
  }
35717
- const ji = o.aK(Be, 1, m.transform.zoom), ra = Ca(ne, m.transform, ji), Ei = Io(ue, ne, m.transform, ji), Wi = o.aL(te, Be, g, b), ml = te.getProjectionData({ overscaledTileID: qe, applyGlobeMatrix: !F, applyTerrainMatrix: !0 }), ci = Ne && Ye.hasTextData(), ui = i.layout.get("icon-text-fit") !== "none" && ci && Ye.hasIconData();
35717
+ const ji = o.aK(Be, 1, m.transform.zoom), ra = Ca(ne, m.transform, ji), Ei = Io(ue, ne, m.transform, ji), Wi = o.aL(te, Be, g, b), ml = te.getProjectionData({ overscaledTileID: qe, applyGlobeMatrix: !F, applyTerrainMatrix: !0 }), ui = Ne && Ye.hasTextData(), di = i.layout.get("icon-text-fit") !== "none" && ui && Ye.hasIconData();
35718
35718
  if (se) {
35719
35719
  const rr = o.O();
35720
35720
  ft(rr, ra);
35721
35721
  const Tn = m.style.map.terrain ? (wi, sc) => m.style.map.terrain.getElevation(qe, wi, sc) : null, fl = i.layout.get("text-rotation-alignment") === "map";
35722
35722
  Co(Ye, m, d, ra, rr, ue, k, fl, qe.toUnwrapped(), te.width, te.height, Wi, Tn);
35723
35723
  }
35724
- const Na = d && Ne || ui, ja = se || Na ? as : ue ? ra : m.transform.clipSpaceToPixelsMatrix, tr = mr && i.paint.get(d ? "text-halo-width" : "icon-halo-width").constantOr(1) !== 0;
35724
+ const Na = d && Ne || di, ja = se || Na ? as : ue ? ra : m.transform.clipSpaceToPixelsMatrix, tr = mr && i.paint.get(d ? "text-halo-width" : "icon-halo-width").constantOr(1) !== 0;
35725
35725
  let qt;
35726
35726
  qt = mr ? Ye.iconsInText ? k0(Vt.kind, ea, re, ue, se, Na, m, ja, Ei, Wi, ha, Gi, Ue) : R0(Vt.kind, ea, re, ue, se, Na, m, ja, Ei, Wi, d, ha, tr, Ue) : Go(Vt.kind, ea, re, ue, se, Na, m, ja, Ei, Wi, d, ha, Ue);
35727
35727
  const Er = { program: Tr, buffers: at, uniformValues: qt, projectionData: ml, atlasTexture: Kr, atlasTextureIcon: Zi, atlasInterpolation: Dr, atlasInterpolationIcon: ta, isSDF: mr, hasHalo: tr };
@@ -36512,23 +36512,23 @@ ${A.shaderPreludeCode.vertexSource}`, define: A.shaderDefine }, defaultProjectio
36512
36512
  for (const { settings: g } of this._inertiaBuffer) i.zoom += g.zoomDelta || 0, i.bearing += g.bearingDelta || 0, i.pitch += g.pitchDelta || 0, i.roll += g.rollDelta || 0, g.panDelta && i.pan._add(g.panDelta), g.around && (i.around = g.around), g.pinchAround && (i.pinchAround = g.pinchAround);
36513
36513
  const c = this._inertiaBuffer[this._inertiaBuffer.length - 1].time - this._inertiaBuffer[0].time, d = {};
36514
36514
  if (i.pan.mag()) {
36515
- const g = oi(i.pan.mag(), c, o.e({}, Ga, t || {})), b = i.pan.mult(g.amount / i.pan.mag()), A = this._map.cameraHelper.handlePanInertia(b, this._map.transform);
36515
+ const g = li(i.pan.mag(), c, o.e({}, Ga, t || {})), b = i.pan.mult(g.amount / i.pan.mag()), A = this._map.cameraHelper.handlePanInertia(b, this._map.transform);
36516
36516
  d.center = A.easingCenter, d.offset = A.easingOffset, qs(d, g);
36517
36517
  }
36518
36518
  if (i.zoom) {
36519
- const g = oi(i.zoom, c, ti);
36519
+ const g = li(i.zoom, c, ti);
36520
36520
  d.zoom = o.cw(this._map.transform.zoom + g.amount, this._map.getZoomSnap(), g.amount), qs(d, g);
36521
36521
  }
36522
36522
  if (i.bearing) {
36523
- const g = oi(i.bearing, c, ju);
36523
+ const g = li(i.bearing, c, ju);
36524
36524
  d.bearing = this._map.transform.bearing + o.al(g.amount, -179, 179), qs(d, g);
36525
36525
  }
36526
36526
  if (i.pitch) {
36527
- const g = oi(i.pitch, c, ri);
36527
+ const g = li(i.pitch, c, ri);
36528
36528
  d.pitch = this._map.transform.pitch + g.amount, qs(d, g);
36529
36529
  }
36530
36530
  if (i.roll) {
36531
- const g = oi(i.roll, c, L2);
36531
+ const g = li(i.roll, c, L2);
36532
36532
  d.roll = this._map.transform.roll + o.al(g.amount, -179, 179), qs(d, g);
36533
36533
  }
36534
36534
  if (d.zoom || d.bearing) {
@@ -36541,7 +36541,7 @@ ${A.shaderPreludeCode.vertexSource}`, define: A.shaderDefine }, defaultProjectio
36541
36541
  function qs(m, t) {
36542
36542
  (!m.duration || m.duration < t.duration) && (m.duration = t.duration, m.easing = t.easing);
36543
36543
  }
36544
- function oi(m, t, i) {
36544
+ function li(m, t, i) {
36545
36545
  const { maxSpeed: c, linearity: d, deceleration: g } = i, b = o.al(m * d / (t / 1e3), -c, c), A = Math.abs(b) / (g * d);
36546
36546
  return { easing: i.easing, duration: 1e3 * A, amount: b * (A / 2) };
36547
36547
  }
@@ -36688,7 +36688,7 @@ ${A.shaderPreludeCode.vertexSource}`, define: A.shaderDefine }, defaultProjectio
36688
36688
  return this.transform.screenPointToLocation(o.P.convert(t), this._map.terrain);
36689
36689
  }
36690
36690
  }
36691
- class li {
36691
+ class ci {
36692
36692
  constructor(t, i) {
36693
36693
  this._map = t, this._tr = new vi(t), this._el = t.getCanvasContainer(), this._container = t.getContainer(), this._clickTolerance = i.clickTolerance || 1, i.boxZoom && typeof i.boxZoom == "object" && (this._boxZoomEnd = i.boxZoom.boxZoomEnd);
36694
36694
  }
@@ -37514,7 +37514,7 @@ ${A.shaderPreludeCode.vertexSource}`, define: A.shaderDefine }, defaultProjectio
37514
37514
  _addDefaultHandlers(t) {
37515
37515
  const i = this._map, c = i.getCanvasContainer();
37516
37516
  this._add("mapEvent", new z2(i, t));
37517
- const d = i.boxZoom = new li(i, t);
37517
+ const d = i.boxZoom = new ci(i, t);
37518
37518
  this._add("boxZoom", d), t.interactive && t.boxZoom && d.enable();
37519
37519
  const g = i.cooperativeGestures = new nt(i, t.cooperativeGestures);
37520
37520
  this._add("cooperativeGestures", g), t.cooperativeGestures && g.enable();
@@ -39261,7 +39261,7 @@ ${A.shaderPreludeCode.vertexSource}`, define: A.shaderDefine }, defaultProjectio
39261
39261
  return pl(new o.P(0, 0));
39262
39262
  }
39263
39263
  const nc = O;
39264
- w.AJAXError = o.cG, w.EXTENT = o.a6, w.Event = o.n, w.Evented = o.E, w.LngLat = o.W, w.MercatorCoordinate = o.a7, w.Point = o.P, w.addProtocol = o.cH, w.config = o.c, w.removeProtocol = o.cI, w.AttributionControl = Za, w.BoxZoomHandler = li, w.CanvasSource = Xi, w.CooperativeGesturesHandler = nt, w.DoubleClickZoomHandler = J0, w.DragPanHandler = ai, w.DragRotateHandler = Qs, w.EdgeInsets = jn, w.FullscreenControl = class extends o.E {
39264
+ w.AJAXError = o.cG, w.EXTENT = o.a6, w.Event = o.n, w.Evented = o.E, w.LngLat = o.W, w.MercatorCoordinate = o.a7, w.Point = o.P, w.addProtocol = o.cH, w.config = o.c, w.removeProtocol = o.cI, w.AttributionControl = Za, w.BoxZoomHandler = ci, w.CanvasSource = Xi, w.CooperativeGesturesHandler = nt, w.DoubleClickZoomHandler = J0, w.DragPanHandler = ai, w.DragRotateHandler = Qs, w.EdgeInsets = jn, w.FullscreenControl = class extends o.E {
39265
39265
  constructor(m = {}) {
39266
39266
  var t;
39267
39267
  super(), this._onFullscreenChange = () => {
@@ -39305,7 +39305,7 @@ ${A.shaderPreludeCode.vertexSource}`, define: A.shaderDefine }, defaultProjectio
39305
39305
  _togglePseudoFullScreen() {
39306
39306
  this._container.classList.toggle("maplibregl-pseudo-fullscreen"), this._handleFullscreenChange(), this._map.resize();
39307
39307
  }
39308
- }, w.GeoJSONSource = mi, w.GeolocateControl = class extends o.E {
39308
+ }, w.GeoJSONSource = ni, w.GeolocateControl = class extends o.E {
39309
39309
  constructor(m) {
39310
39310
  super(), this._onSuccess = (t) => {
39311
39311
  if (this._map) {