@mappedin/viewer 0.24.5-eabdff2.0 → 0.24.5

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.24.5](https://github.com/MappedIn/viewer/compare/viewer-v0.24.4...viewer-v0.24.5) (2024-07-19)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **SRV-1339:** allow setting external padding ([#266](https://github.com/MappedIn/viewer/issues/266)) ([95196f8](https://github.com/MappedIn/viewer/commit/95196f8d05960e11701f8dec20f668ad415fe998))
9
+ * **SRV-1364:** do not call reset zoom twice on load ([#269](https://github.com/MappedIn/viewer/issues/269)) ([901661e](https://github.com/MappedIn/viewer/commit/901661e2dd85383330c24e56cb5e3899b48e9291))
10
+
3
11
  ## [0.24.4](https://github.com/MappedIn/viewer/compare/viewer-v0.24.3...viewer-v0.24.4) (2024-07-17)
4
12
 
5
13
 
package/dist/index.js CHANGED
@@ -3186,7 +3186,7 @@ function uW(r) {
3186
3186
  function zI(r) {
3187
3187
  W8.current === r && (sn($2), sn(W8));
3188
3188
  }
3189
- var _n = Zu(0);
3189
+ var Cn = Zu(0);
3190
3190
  function Pv(r) {
3191
3191
  for (var e = r; e !== null; ) {
3192
3192
  if (e.tag === 13) {
@@ -3757,8 +3757,8 @@ function WM(r) {
3757
3757
  return { baseLanes: r, cachePool: null, transitions: null };
3758
3758
  }
3759
3759
  function $W(r, e, t) {
3760
- var i = e.pendingProps, n = _n.current, a = !1, o = (e.flags & 128) !== 0, s;
3761
- if ((s = o) || (s = r !== null && r.memoizedState === null ? !1 : (n & 2) !== 0), s ? (a = !0, e.flags &= -129) : (r === null || r.memoizedState !== null) && (n |= 1), Wi(_n, n & 1), r === null)
3760
+ var i = e.pendingProps, n = Cn.current, a = !1, o = (e.flags & 128) !== 0, s;
3761
+ if ((s = o) || (s = r !== null && r.memoizedState === null ? !1 : (n & 2) !== 0), s ? (a = !0, e.flags &= -129) : (r === null || r.memoizedState !== null) && (n |= 1), Wi(Cn, n & 1), r === null)
3762
3762
  return NM(e), r = e.memoizedState, r !== null && (r = r.dehydrated, r !== null) ? (e.mode & 1 ? r.data === "$!" ? e.lanes = 8 : e.lanes = 1073741824 : e.lanes = 1, null) : (o = i.children, r = i.fallback, a ? (i = e.mode, a = e.child, o = { mode: "hidden", children: o }, !(i & 1) && a !== null ? (a.childLanes = 0, a.pendingProps = o) : a = DC(o, i, 0, null), r = sh(r, i, t, null), a.return = e, r.return = e, a.sibling = r, e.child = a, e.child.memoizedState = WM(t), e.memoizedState = GM, r) : WI(e, o));
3763
3763
  if (n = r.memoizedState, n !== null && (s = n.dehydrated, s !== null))
3764
3764
  return vve(r, e, o, i, s, n, t);
@@ -3840,7 +3840,7 @@ function qw(r, e, t, i, n) {
3840
3840
  }
3841
3841
  function OW(r, e, t) {
3842
3842
  var i = e.pendingProps, n = i.revealOrder, a = i.tail;
3843
- if (wa(r, e, i.children, t), i = _n.current, i & 2)
3843
+ if (wa(r, e, i.children, t), i = Cn.current, i & 2)
3844
3844
  i = i & 1 | 2, e.flags |= 128;
3845
3845
  else {
3846
3846
  if (r !== null && r.flags & 128)
@@ -3865,7 +3865,7 @@ function OW(r, e, t) {
3865
3865
  }
3866
3866
  i &= 1;
3867
3867
  }
3868
- if (Wi(_n, i), !(e.mode & 1))
3868
+ if (Wi(Cn, i), !(e.mode & 1))
3869
3869
  e.memoizedState = null;
3870
3870
  else
3871
3871
  switch (n) {
@@ -3927,8 +3927,8 @@ function _ve(r, e, t) {
3927
3927
  break;
3928
3928
  case 13:
3929
3929
  if (i = e.memoizedState, i !== null)
3930
- return i.dehydrated !== null ? (Wi(_n, _n.current & 1), e.flags |= 128, null) : t & e.child.childLanes ? $W(r, e, t) : (Wi(_n, _n.current & 1), r = Kl(r, e, t), r !== null ? r.sibling : null);
3931
- Wi(_n, _n.current & 1);
3930
+ return i.dehydrated !== null ? (Wi(Cn, Cn.current & 1), e.flags |= 128, null) : t & e.child.childLanes ? $W(r, e, t) : (Wi(Cn, Cn.current & 1), r = Kl(r, e, t), r !== null ? r.sibling : null);
3931
+ Wi(Cn, Cn.current & 1);
3932
3932
  break;
3933
3933
  case 19:
3934
3934
  if (i = (t & e.childLanes) !== 0, r.flags & 128) {
@@ -3936,7 +3936,7 @@ function _ve(r, e, t) {
3936
3936
  return OW(r, e, t);
3937
3937
  e.flags |= 128;
3938
3938
  }
3939
- if (n = e.memoizedState, n !== null && (n.rendering = null, n.tail = null, n.lastEffect = null), Wi(_n, _n.current), i)
3939
+ if (n = e.memoizedState, n !== null && (n.rendering = null, n.tail = null, n.lastEffect = null), Wi(Cn, Cn.current), i)
3940
3940
  break;
3941
3941
  return null;
3942
3942
  case 22:
@@ -4253,7 +4253,7 @@ function Cve(r, e, t) {
4253
4253
  }
4254
4254
  return ta(e), null;
4255
4255
  case 13:
4256
- if (sn(_n), i = e.memoizedState, r === null || r.memoizedState !== null && r.memoizedState.dehydrated !== null) {
4256
+ if (sn(Cn), i = e.memoizedState, r === null || r.memoizedState !== null && r.memoizedState.dehydrated !== null) {
4257
4257
  if (dn && Ao !== null && e.mode & 1 && !(e.flags & 128))
4258
4258
  rW(), Vp(), e.flags |= 98560, a = !1;
4259
4259
  else if (a = o7(e), i !== null && i.dehydrated !== null) {
@@ -4271,7 +4271,7 @@ function Cve(r, e, t) {
4271
4271
  if (!a)
4272
4272
  return e.flags & 65536 ? e : null;
4273
4273
  }
4274
- return e.flags & 128 ? (e.lanes = t, e) : (i = i !== null, i !== (r !== null && r.memoizedState !== null) && i && (e.child.flags |= 8192, e.mode & 1 && (r === null || _n.current & 1 ? C0 === 0 && (C0 = 3) : QI())), e.updateQueue !== null && (e.flags |= 4), ta(e), null);
4274
+ return e.flags & 128 ? (e.lanes = t, e) : (i = i !== null, i !== (r !== null && r.memoizedState !== null) && i && (e.child.flags |= 8192, e.mode & 1 && (r === null || Cn.current & 1 ? C0 === 0 && (C0 = 3) : QI())), e.updateQueue !== null && (e.flags |= 4), ta(e), null);
4275
4275
  case 4:
4276
4276
  return zp(), qM(r, e), r === null && j8(e.stateNode.containerInfo), ta(e), null;
4277
4277
  case 10:
@@ -4279,7 +4279,7 @@ function Cve(r, e, t) {
4279
4279
  case 17:
4280
4280
  return ao(e.type) && bv(), ta(e), null;
4281
4281
  case 19:
4282
- if (sn(_n), a = e.memoizedState, a === null)
4282
+ if (sn(Cn), a = e.memoizedState, a === null)
4283
4283
  return ta(e), null;
4284
4284
  if (i = (e.flags & 128) !== 0, o = a.rendering, o === null)
4285
4285
  if (i)
@@ -4290,7 +4290,7 @@ function Cve(r, e, t) {
4290
4290
  if (o = Pv(r), o !== null) {
4291
4291
  for (e.flags |= 128, C6(a, !1), i = o.updateQueue, i !== null && (e.updateQueue = i, e.flags |= 4), e.subtreeFlags = 0, i = t, t = e.child; t !== null; )
4292
4292
  a = t, r = i, a.flags &= 14680066, o = a.alternate, o === null ? (a.childLanes = 0, a.lanes = r, a.child = null, a.subtreeFlags = 0, a.memoizedProps = null, a.memoizedState = null, a.updateQueue = null, a.dependencies = null, a.stateNode = null) : (a.childLanes = o.childLanes, a.lanes = o.lanes, a.child = o.child, a.subtreeFlags = 0, a.deletions = null, a.memoizedProps = o.memoizedProps, a.memoizedState = o.memoizedState, a.updateQueue = o.updateQueue, a.type = o.type, r = o.dependencies, a.dependencies = r === null ? null : { lanes: r.lanes, firstContext: r.firstContext }), t = t.sibling;
4293
- return Wi(_n, _n.current & 1 | 2), e.child;
4293
+ return Wi(Cn, Cn.current & 1 | 2), e.child;
4294
4294
  }
4295
4295
  r = r.sibling;
4296
4296
  }
@@ -4305,7 +4305,7 @@ function Cve(r, e, t) {
4305
4305
  2 * Un() - a.renderingStartTime > Hp && t !== 1073741824 && (e.flags |= 128, i = !0, C6(a, !1), e.lanes = 4194304);
4306
4306
  a.isBackwards ? (o.sibling = e.child, e.child = o) : (t = a.last, t !== null ? t.sibling = o : e.child = o, a.last = o);
4307
4307
  }
4308
- return a.tail !== null ? (e = a.tail, a.rendering = e, a.tail = e.sibling, a.renderingStartTime = Un(), e.sibling = null, t = _n.current, Wi(_n, i ? t & 1 | 2 : t & 1), e) : (ta(e), null);
4308
+ return a.tail !== null ? (e = a.tail, a.rendering = e, a.tail = e.sibling, a.renderingStartTime = Un(), e.sibling = null, t = Cn.current, Wi(Cn, i ? t & 1 | 2 : t & 1), e) : (ta(e), null);
4309
4309
  case 22:
4310
4310
  case 23:
4311
4311
  return JI(), i = e.memoizedState !== null, r !== null && r.memoizedState !== null !== i && (e.flags |= 8192), i && e.mode & 1 ? Co & 1073741824 && (ta(e), e.subtreeFlags & 6 && (e.flags |= 8192)) : ta(e), null;
@@ -4325,14 +4325,14 @@ function xve(r, e) {
4325
4325
  case 5:
4326
4326
  return zI(e), null;
4327
4327
  case 13:
4328
- if (sn(_n), r = e.memoizedState, r !== null && r.dehydrated !== null) {
4328
+ if (sn(Cn), r = e.memoizedState, r !== null && r.dehydrated !== null) {
4329
4329
  if (e.alternate === null)
4330
4330
  throw Error(ft(340));
4331
4331
  Vp();
4332
4332
  }
4333
4333
  return r = e.flags, r & 65536 ? (e.flags = r & -65537 | 128, e) : null;
4334
4334
  case 19:
4335
- return sn(_n), null;
4335
+ return sn(Cn), null;
4336
4336
  case 4:
4337
4337
  return zp(), null;
4338
4338
  case 10:
@@ -5263,10 +5263,10 @@ function oh(r, e) {
5263
5263
  zp();
5264
5264
  break;
5265
5265
  case 13:
5266
- sn(_n);
5266
+ sn(Cn);
5267
5267
  break;
5268
5268
  case 19:
5269
- sn(_n);
5269
+ sn(Cn);
5270
5270
  break;
5271
5271
  case 10:
5272
5272
  OI(i.type._context);
@@ -9786,7 +9786,7 @@ Gv.exports;
9786
9786
  }
9787
9787
  return J;
9788
9788
  }
9789
- function yn(re) {
9789
+ function vn(re) {
9790
9790
  return k0(function(pe, J) {
9791
9791
  var se = -1, Le = J.length, et = Le > 1 ? J[Le - 1] : void 0, Tt = Le > 2 ? J[2] : void 0;
9792
9792
  for (et = re.length > 3 && typeof et == "function" ? (Le--, et) : void 0, Tt && D(J[0], J[1], Tt) && (et = Le < 3 ? void 0 : et, Le = 1), pe = Object(pe); ++se < Le; ) {
@@ -9945,7 +9945,7 @@ Gv.exports;
9945
9945
  function ic(re) {
9946
9946
  return Ki(re) ? Ke(re, !0) : Vi(re);
9947
9947
  }
9948
- var d6 = yn(function(re, pe, J) {
9948
+ var d6 = vn(function(re, pe, J) {
9949
9949
  Mr(re, pe, J);
9950
9950
  });
9951
9951
  function nc(re) {
@@ -10520,13 +10520,13 @@ var Yp = {
10520
10520
  shallow: cxe
10521
10521
  };
10522
10522
  function Kp(r, e, t) {
10523
- return CX(r) ? r : Array.isArray(r) ? wn.array(r, {
10523
+ return CX(r) ? r : Array.isArray(r) ? mn.array(r, {
10524
10524
  name: t
10525
- }) : Jl(r) ? wn.object(r, void 0, {
10525
+ }) : Jl(r) ? mn.object(r, void 0, {
10526
10526
  name: t
10527
- }) : N5(r) ? wn.map(r, {
10527
+ }) : N5(r) ? mn.map(r, {
10528
10528
  name: t
10529
- }) : e9(r) ? wn.set(r, {
10529
+ }) : e9(r) ? mn.set(r, {
10530
10530
  name: t
10531
10531
  }) : typeof r == "function" && !_k(r) && !Jv(r) ? Rq(r) ? of(r) : af(t, r) : r;
10532
10532
  }
@@ -10534,22 +10534,22 @@ function dxe(r, e, t) {
10534
10534
  if (r == null || sf(r) || KC(r) || Zh(r) || B5(r))
10535
10535
  return r;
10536
10536
  if (Array.isArray(r))
10537
- return wn.array(r, {
10537
+ return mn.array(r, {
10538
10538
  name: t,
10539
10539
  deep: !1
10540
10540
  });
10541
10541
  if (Jl(r))
10542
- return wn.object(r, void 0, {
10542
+ return mn.object(r, void 0, {
10543
10543
  name: t,
10544
10544
  deep: !1
10545
10545
  });
10546
10546
  if (N5(r))
10547
- return wn.map(r, {
10547
+ return mn.map(r, {
10548
10548
  name: t,
10549
10549
  deep: !1
10550
10550
  });
10551
10551
  if (e9(r))
10552
- return wn.set(r, {
10552
+ return mn.set(r, {
10553
10553
  name: t,
10554
10554
  deep: !1
10555
10555
  });
@@ -10731,7 +10731,7 @@ function Pxe(r, e, t, i) {
10731
10731
  var c = (s = this.options_) != null && s.autoBind ? af.bound : af;
10732
10732
  return c.make_(r, e, t, i);
10733
10733
  }
10734
- var h = ((n = this.options_) == null ? void 0 : n.deep) === !1 ? wn.ref : wn;
10734
+ var h = ((n = this.options_) == null ? void 0 : n.deep) === !1 ? mn.ref : mn;
10735
10735
  if (typeof t.value == "function" && (a = this.options_) != null && a.autoBind) {
10736
10736
  var p;
10737
10737
  t.value = t.value.bind((p = r.proxy_) != null ? p : r.target_);
@@ -10751,7 +10751,7 @@ function Ixe(r, e, t, i) {
10751
10751
  var o;
10752
10752
  t.value = t.value.bind((o = r.proxy_) != null ? o : r.target_);
10753
10753
  }
10754
- var s = ((a = this.options_) == null ? void 0 : a.deep) === !1 ? wn.ref : wn;
10754
+ var s = ((a = this.options_) == null ? void 0 : a.deep) === !1 ? mn.ref : mn;
10755
10755
  return s.extend_(r, e, t, i);
10756
10756
  }
10757
10757
  var kxe = "observable", Rxe = "observable.ref", Dxe = "observable.shallow", $xe = "observable.struct", Uq = {
@@ -10787,7 +10787,7 @@ function Gq(r, e, t) {
10787
10787
  t9(r, e, jq);
10788
10788
  return;
10789
10789
  }
10790
- return CX(r) ? r : Jl(r) ? wn.object(r, e, t) : Array.isArray(r) ? wn.array(r, e) : N5(r) ? wn.map(r, e) : e9(r) ? wn.set(r, e) : typeof r == "object" && r !== null ? r : wn.box(r, e);
10790
+ return CX(r) ? r : Jl(r) ? mn.object(r, e, t) : Array.isArray(r) ? mn.array(r, e) : N5(r) ? mn.map(r, e) : e9(r) ? mn.set(r, e) : typeof r == "object" && r !== null ? r : mn.box(r, e);
10791
10791
  }
10792
10792
  Pq(Gq, Zq);
10793
10793
  var Bxe = {
@@ -10814,7 +10814,7 @@ var Bxe = {
10814
10814
  shallow: /* @__PURE__ */ F2(Fxe),
10815
10815
  deep: Zq,
10816
10816
  struct: /* @__PURE__ */ F2(Vxe)
10817
- }, wn = /* @__PURE__ */ Pq(Gq, Bxe), Wq = "computed", Hxe = "computed.struct", qq = /* @__PURE__ */ gk(Wq), Uxe = /* @__PURE__ */ gk(Hxe, {
10817
+ }, mn = /* @__PURE__ */ Pq(Gq, Bxe), Wq = "computed", Hxe = "computed.struct", qq = /* @__PURE__ */ gk(Wq), Uxe = /* @__PURE__ */ gk(Hxe, {
10818
10818
  equals: Yp.structural
10819
10819
  }), Jp = function(e, t) {
10820
10820
  if (wh(t))
@@ -12992,8 +12992,8 @@ t_.exports;
12992
12992
  function fi(ce) {
12993
12993
  return Ss(ce) && cr(ce) == s;
12994
12994
  }
12995
- function yn(ce, Ie, re, pe, J) {
12996
- return ce === Ie ? !0 : ce == null || Ie == null || !Ss(ce) && !Ss(Ie) ? ce !== ce && Ie !== Ie : zo(ce, Ie, re, pe, yn, J);
12995
+ function vn(ce, Ie, re, pe, J) {
12996
+ return ce === Ie ? !0 : ce == null || Ie == null || !Ss(ce) && !Ss(Ie) ? ce !== ce && Ie !== Ie : zo(ce, Ie, re, pe, vn, J);
12997
12997
  }
12998
12998
  function zo(ce, Ie, re, pe, J, se) {
12999
12999
  var Le = Tn(ce), et = Tn(Ie), Tt = Le ? l : Oe(ce), yt = et ? l : Oe(Ie);
@@ -13217,7 +13217,7 @@ t_.exports;
13217
13217
  }
13218
13218
  var Bo = Me || nc;
13219
13219
  function J0(ce, Ie) {
13220
- return yn(ce, Ie);
13220
+ return vn(ce, Ie);
13221
13221
  }
13222
13222
  function Na(ce) {
13223
13223
  if (!bs(ce))
@@ -13438,7 +13438,7 @@ class Gwe {
13438
13438
  this.history = e, this.base = this.getPath(t ?? "/"), this._path = this.getPath(e.location.pathname), _s(
13439
13439
  this,
13440
13440
  {
13441
- history: wn.ref
13441
+ history: mn.ref
13442
13442
  },
13443
13443
  { autoBind: !0 }
13444
13444
  ), this.disposer = this.history.listen(this.update), this.update({ location: this.history.location, action: qc.Push }), this.go(this.path, this.params, { replace: !0 });
@@ -17995,12 +17995,12 @@ var GSe = typeof performance < "u" && performance && performance.now ? performan
17995
17995
  return matchMedia ? (_b == null && (_b = matchMedia("(prefers-reduced-motion: reduce)")), _b.matches) : !1;
17996
17996
  } };
17997
17997
  B();
17998
- var WSe = yr(di(), 1), _c = class vn {
17998
+ var WSe = yr(di(), 1), _c = class _n {
17999
17999
  static testProp(e) {
18000
- if (!vn.docStyle)
18000
+ if (!_n.docStyle)
18001
18001
  return e[0];
18002
18002
  for (let t = 0; t < e.length; t++)
18003
- if (e[t] in vn.docStyle)
18003
+ if (e[t] in _n.docStyle)
18004
18004
  return e[t];
18005
18005
  return e[0];
18006
18006
  }
@@ -18012,13 +18012,13 @@ var WSe = yr(di(), 1), _c = class vn {
18012
18012
  return window.document.createElementNS(e, t);
18013
18013
  }
18014
18014
  static disableDrag() {
18015
- vn.docStyle && vn.selectProp && (vn.userSelect = vn.docStyle[vn.selectProp], vn.docStyle[vn.selectProp] = "none");
18015
+ _n.docStyle && _n.selectProp && (_n.userSelect = _n.docStyle[_n.selectProp], _n.docStyle[_n.selectProp] = "none");
18016
18016
  }
18017
18017
  static enableDrag() {
18018
- vn.docStyle && vn.selectProp && (vn.docStyle[vn.selectProp] = vn.userSelect);
18018
+ _n.docStyle && _n.selectProp && (_n.docStyle[_n.selectProp] = _n.userSelect);
18019
18019
  }
18020
18020
  static setTransform(e, t) {
18021
- e.style[vn.transformProp] = t;
18021
+ e.style[_n.transformProp] = t;
18022
18022
  }
18023
18023
  static addEventListener(e, t, i, n = {}) {
18024
18024
  "passive" in n ? e.addEventListener(t, i, n) : e.addEventListener(t, i, n.capture);
@@ -18027,11 +18027,11 @@ var WSe = yr(di(), 1), _c = class vn {
18027
18027
  "passive" in n ? e.removeEventListener(t, i, n) : e.removeEventListener(t, i, n.capture);
18028
18028
  }
18029
18029
  static suppressClickInternal(e) {
18030
- e.preventDefault(), e.stopPropagation(), window.removeEventListener("click", vn.suppressClickInternal, !0);
18030
+ e.preventDefault(), e.stopPropagation(), window.removeEventListener("click", _n.suppressClickInternal, !0);
18031
18031
  }
18032
18032
  static suppressClick() {
18033
- window.addEventListener("click", vn.suppressClickInternal, !0), window.setTimeout(() => {
18034
- window.removeEventListener("click", vn.suppressClickInternal, !0);
18033
+ window.addEventListener("click", _n.suppressClickInternal, !0), window.setTimeout(() => {
18034
+ window.removeEventListener("click", _n.suppressClickInternal, !0);
18035
18035
  }, 0);
18036
18036
  }
18037
18037
  static getScale(e) {
@@ -18043,13 +18043,13 @@ var WSe = yr(di(), 1), _c = class vn {
18043
18043
  return new WSe.default((i.clientX - n.left) / t.x - e.clientLeft, (i.clientY - n.top) / t.y - e.clientTop);
18044
18044
  }
18045
18045
  static mousePos(e, t) {
18046
- let i = vn.getScale(e);
18047
- return vn.getPoint(e, i, t);
18046
+ let i = _n.getScale(e);
18047
+ return _n.getPoint(e, i, t);
18048
18048
  }
18049
18049
  static touchPos(e, t) {
18050
- let i = [], n = vn.getScale(e);
18050
+ let i = [], n = _n.getScale(e);
18051
18051
  for (let a = 0; a < t.length; a++)
18052
- i.push(vn.getPoint(e, n, t[a]));
18052
+ i.push(_n.getPoint(e, n, t[a]));
18053
18053
  return i;
18054
18054
  }
18055
18055
  static mouseButton(e) {
@@ -21323,10 +21323,10 @@ function hR(r) {
21323
21323
  return t ? [new pt(e, t, "constants have been deprecated as of v8")] : [];
21324
21324
  }
21325
21325
  d(hR, "validateConstants");
21326
- function Cn(r) {
21326
+ function xn(r) {
21327
21327
  return r instanceof Number || r instanceof String || r instanceof Boolean ? r.valueOf() : r;
21328
21328
  }
21329
- d(Cn, "unbundle");
21329
+ d(xn, "unbundle");
21330
21330
  function zu(r) {
21331
21331
  if (Array.isArray(r))
21332
21332
  return r.map(zu);
@@ -21336,7 +21336,7 @@ function zu(r) {
21336
21336
  e[t] = zu(r[t]);
21337
21337
  return e;
21338
21338
  }
21339
- return Cn(r);
21339
+ return xn(r);
21340
21340
  }
21341
21341
  d(zu, "deepUnbundle");
21342
21342
  function Io(r) {
@@ -21386,7 +21386,7 @@ function vx(r) {
21386
21386
  }
21387
21387
  d(vx, "validateNumber");
21388
21388
  function dR(r) {
21389
- let e = r.valueSpec, t = Cn(r.value.type), i, n = {}, a, o, s = t !== "categorical" && r.value.property === void 0, l = !s, u = si(r.value.stops) === "array" && si(r.value.stops[0]) === "array" && si(r.value.stops[0][0]) === "object", c = Io({ key: r.key, value: r.value, valueSpec: r.styleSpec.function, validateSpec: r.validateSpec, style: r.style, styleSpec: r.styleSpec, objectElementValidators: { stops: h, default: m } });
21389
+ let e = r.valueSpec, t = xn(r.value.type), i, n = {}, a, o, s = t !== "categorical" && r.value.property === void 0, l = !s, u = si(r.value.stops) === "array" && si(r.value.stops[0]) === "array" && si(r.value.stops[0][0]) === "object", c = Io({ key: r.key, value: r.value, valueSpec: r.styleSpec.function, validateSpec: r.validateSpec, style: r.style, styleSpec: r.styleSpec, objectElementValidators: { stops: h, default: m } });
21390
21390
  return t === "identity" && s && c.push(new pt(r.key, r.value, 'missing required property "property"')), t !== "identity" && !r.value.stops && c.push(new pt(r.key, r.value, 'missing required property "stops"')), t === "exponential" && r.valueSpec.expression && !fx(r.valueSpec) && c.push(new pt(r.key, r.value, "exponential functions not supported")), r.styleSpec.$version >= 8 && (l && !Th(r.valueSpec) ? c.push(new pt(r.key, r.value, "property functions not supported")) : s && !oR(r.valueSpec) && c.push(new pt(r.key, r.value, "zoom functions not supported"))), (t === "categorical" || u) && r.value.property === void 0 && c.push(new pt(r.key, r.value, '"property" property is required')), c;
21391
21391
  function h(_) {
21392
21392
  if (t === "identity")
@@ -21407,15 +21407,15 @@ function dR(r) {
21407
21407
  return [new pt(x, v, "object stop key must have zoom")];
21408
21408
  if (v[0].value === void 0)
21409
21409
  return [new pt(x, v, "object stop key must have value")];
21410
- if (o && o > Cn(v[0].zoom))
21410
+ if (o && o > xn(v[0].zoom))
21411
21411
  return [new pt(x, v[0].zoom, "stop zoom values must appear in ascending order")];
21412
- Cn(v[0].zoom) !== o && (o = Cn(v[0].zoom), a = void 0, n = {}), g = g.concat(Io({ key: `${x}[0]`, value: v[0], valueSpec: { zoom: {} }, validateSpec: _.validateSpec, style: _.style, styleSpec: _.styleSpec, objectElementValidators: { zoom: vx, value: f } }));
21412
+ xn(v[0].zoom) !== o && (o = xn(v[0].zoom), a = void 0, n = {}), g = g.concat(Io({ key: `${x}[0]`, value: v[0], valueSpec: { zoom: {} }, validateSpec: _.validateSpec, style: _.style, styleSpec: _.styleSpec, objectElementValidators: { zoom: vx, value: f } }));
21413
21413
  } else
21414
21414
  g = g.concat(f({ key: `${x}[0]`, value: v[0], valueSpec: {}, validateSpec: _.validateSpec, style: _.style, styleSpec: _.styleSpec }, v));
21415
21415
  return Z5(zu(v[1])) ? g.concat([new pt(`${x}[1]`, v[1], "expressions are not allowed in function stops.")]) : g.concat(_.validateSpec({ key: `${x}[1]`, value: v[1], valueSpec: e, validateSpec: _.validateSpec, style: _.style, styleSpec: _.styleSpec }));
21416
21416
  }
21417
21417
  function f(_, g) {
21418
- let v = si(_.value), x = Cn(_.value), C = _.value !== null ? _.value : g;
21418
+ let v = si(_.value), x = xn(_.value), C = _.value !== null ? _.value : g;
21419
21419
  if (!i)
21420
21420
  i = v;
21421
21421
  else if (v !== i)
@@ -21465,7 +21465,7 @@ function $Q(r) {
21465
21465
  d($Q, "validateColor");
21466
21466
  function l5(r) {
21467
21467
  let e = r.key, t = r.value, i = r.valueSpec, n = [];
21468
- return Array.isArray(i.values) ? i.values.indexOf(Cn(t)) === -1 && n.push(new pt(e, t, `expected one of [${i.values.join(", ")}], ${JSON.stringify(t)} found`)) : Object.keys(i.values).indexOf(Cn(t)) === -1 && n.push(new pt(e, t, `expected one of [${Object.keys(i.values).join(", ")}], ${JSON.stringify(t)} found`)), n;
21468
+ return Array.isArray(i.values) ? i.values.indexOf(xn(t)) === -1 && n.push(new pt(e, t, `expected one of [${i.values.join(", ")}], ${JSON.stringify(t)} found`)) : Object.keys(i.values).indexOf(xn(t)) === -1 && n.push(new pt(e, t, `expected one of [${Object.keys(i.values).join(", ")}], ${JSON.stringify(t)} found`)), n;
21469
21469
  }
21470
21470
  d(l5, "validateEnum");
21471
21471
  function _x(r) {
@@ -21479,12 +21479,12 @@ function pR(r) {
21479
21479
  let i = r.styleSpec, n, a = [];
21480
21480
  if (e.length < 1)
21481
21481
  return [new pt(t, e, "filter array must have at least 1 element")];
21482
- switch (a = a.concat(l5({ key: `${t}[0]`, value: e[0], valueSpec: i.filter_operator, style: r.style, styleSpec: r.styleSpec })), Cn(e[0])) {
21482
+ switch (a = a.concat(l5({ key: `${t}[0]`, value: e[0], valueSpec: i.filter_operator, style: r.style, styleSpec: r.styleSpec })), xn(e[0])) {
21483
21483
  case "<":
21484
21484
  case "<=":
21485
21485
  case ">":
21486
21486
  case ">=":
21487
- e.length >= 2 && Cn(e[1]) === "$type" && a.push(new pt(t, e, `"$type" cannot be use with operator "${e[0]}"`));
21487
+ e.length >= 2 && xn(e[1]) === "$type" && a.push(new pt(t, e, `"$type" cannot be use with operator "${e[0]}"`));
21488
21488
  case "==":
21489
21489
  case "!=":
21490
21490
  e.length !== 3 && a.push(new pt(t, e, `filter array for operator "${e[0]}" must have 3 elements`));
@@ -21492,7 +21492,7 @@ function pR(r) {
21492
21492
  case "!in":
21493
21493
  e.length >= 2 && (n = si(e[1]), n !== "string" && a.push(new pt(`${t}[1]`, e[1], `string expected, ${n} found`)));
21494
21494
  for (let o = 2; o < e.length; o++)
21495
- n = si(e[o]), Cn(e[1]) === "$type" ? a = a.concat(l5({ key: `${t}[${o}]`, value: e[o], valueSpec: i.geometry_type, style: r.style, styleSpec: r.styleSpec })) : n !== "string" && n !== "number" && n !== "boolean" && a.push(new pt(`${t}[${o}]`, e[o], `string, number, or boolean expected, ${n} found`));
21495
+ n = si(e[o]), xn(e[1]) === "$type" ? a = a.concat(l5({ key: `${t}[${o}]`, value: e[o], valueSpec: i.geometry_type, style: r.style, styleSpec: r.styleSpec })) : n !== "string" && n !== "number" && n !== "boolean" && a.push(new pt(`${t}[${o}]`, e[o], `string, number, or boolean expected, ${n} found`));
21496
21496
  break;
21497
21497
  case "any":
21498
21498
  case "all":
@@ -21523,7 +21523,7 @@ function fR(r, e) {
21523
21523
  return [new pt(t, o, `"${s}" does not support interpolation syntax
21524
21524
  Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(h[1])} }\`.`)];
21525
21525
  let p = [];
21526
- return r.layerType === "symbol" && (s === "text-field" && n && !n.glyphs && p.push(new pt(t, o, 'use of "text-field" requires a style "glyphs" property')), s === "text-font" && C9(zu(o)) && Cn(o.type) === "identity" && p.push(new pt(t, o, '"text-font" does not support identity functions'))), p.concat(i({ key: r.key, value: o, valueSpec: c, style: n, styleSpec: a, expressionContext: "property", propertyType: e, propertyKey: s }));
21526
+ return r.layerType === "symbol" && (s === "text-field" && n && !n.glyphs && p.push(new pt(t, o, 'use of "text-field" requires a style "glyphs" property')), s === "text-font" && C9(zu(o)) && xn(o.type) === "identity" && p.push(new pt(t, o, '"text-font" does not support identity functions'))), p.concat(i({ key: r.key, value: o, valueSpec: c, style: n, styleSpec: a, expressionContext: "property", propertyType: e, propertyKey: s }));
21527
21527
  }
21528
21528
  d(fR, "validateProperty");
21529
21529
  function mR(r) {
@@ -21537,12 +21537,12 @@ d(gR, "validateLayoutProperty");
21537
21537
  function yR(r) {
21538
21538
  let e = [], t = r.value, i = r.key, n = r.style, a = r.styleSpec;
21539
21539
  !t.type && !t.ref && e.push(new pt(i, t, 'either "type" or "ref" is required'));
21540
- let o = Cn(t.type), s = Cn(t.ref);
21540
+ let o = xn(t.type), s = xn(t.ref);
21541
21541
  if (t.id) {
21542
- let l = Cn(t.id);
21542
+ let l = xn(t.id);
21543
21543
  for (let u = 0; u < r.arrayIndex; u++) {
21544
21544
  let c = n.layers[u];
21545
- Cn(c.id) === l && e.push(new pt(i, t.id, `duplicate layer id "${t.id}", previously used at line ${c.id.__line__}`));
21545
+ xn(c.id) === l && e.push(new pt(i, t.id, `duplicate layer id "${t.id}", previously used at line ${c.id.__line__}`));
21546
21546
  }
21547
21547
  }
21548
21548
  if ("ref" in t) {
@@ -21551,13 +21551,13 @@ function yR(r) {
21551
21551
  });
21552
21552
  let l;
21553
21553
  n.layers.forEach((u) => {
21554
- Cn(u.id) === s && (l = u);
21555
- }), l ? l.ref ? e.push(new pt(i, t.ref, "ref cannot reference another ref layer")) : o = Cn(l.type) : e.push(new pt(i, t.ref, `ref layer "${s}" not found`));
21554
+ xn(u.id) === s && (l = u);
21555
+ }), l ? l.ref ? e.push(new pt(i, t.ref, "ref cannot reference another ref layer")) : o = xn(l.type) : e.push(new pt(i, t.ref, `ref layer "${s}" not found`));
21556
21556
  } else if (o !== "background")
21557
21557
  if (!t.source)
21558
21558
  e.push(new pt(i, t, 'missing required property "source"'));
21559
21559
  else {
21560
- let l = n.sources && n.sources[t.source], u = l && Cn(l.type);
21560
+ let l = n.sources && n.sources[t.source], u = l && xn(l.type);
21561
21561
  l ? u === "vector" && o === "raster" ? e.push(new pt(i, t.source, `layer "${t.id}" requires a raster source`)) : u !== "raster-dem" && o === "hillshade" ? e.push(new pt(i, t.source, `layer "${t.id}" requires a raster-dem source`)) : u === "raster" && o !== "raster" ? e.push(new pt(i, t.source, `layer "${t.id}" requires a vector source`)) : u === "vector" && !t["source-layer"] ? e.push(new pt(i, t, `layer "${t.id}" must specify a "source-layer"`)) : u === "raster-dem" && o !== "hillshade" ? e.push(new pt(i, t.source, "raster-dem source can only be used with layer type 'hillshade'.")) : o === "line" && t.paint && t.paint["line-gradient"] && (u !== "geojson" || !l.lineMetrics) && e.push(new pt(i, t, `layer "${t.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)) : e.push(new pt(i, t.source, `source "${t.source}" not found`));
21562
21562
  }
21563
21563
  return e = e.concat(Io({ key: i, value: t, valueSpec: a.layer, style: r.style, styleSpec: r.styleSpec, validateSpec: r.validateSpec, objectElementValidators: { "*"() {
@@ -21587,7 +21587,7 @@ function OQ(r) {
21587
21587
  return s;
21588
21588
  if (l !== "object")
21589
21589
  return s.push(new pt("source_raster_dem", i, `object expected, ${l} found`)), s;
21590
- let u = Cn(i.encoding) === "custom", c = ["redFactor", "greenFactor", "blueFactor", "baseShift"], h = r.value.encoding ? `"${r.value.encoding}"` : "Default";
21590
+ let u = xn(i.encoding) === "custom", c = ["redFactor", "greenFactor", "blueFactor", "baseShift"], h = r.value.encoding ? `"${r.value.encoding}"` : "Default";
21591
21591
  for (let p in i)
21592
21592
  !u && c.includes(p) ? s.push(new pt(p, i[p], `In "${t}": "${p}" is only valid when "encoding" is set to "custom". ${h} encoding found`)) : a[p] ? s = s.concat(r.validateSpec({ key: p, value: i[p], valueSpec: a[p], validateSpec: r.validateSpec, style: o, styleSpec: n })) : s.push(new pt(p, i[p], `unknown property "${p}"`));
21593
21593
  return s;
@@ -21598,7 +21598,7 @@ function vR(r) {
21598
21598
  let e = r.value, t = r.key, i = r.styleSpec, n = r.style, a = r.validateSpec;
21599
21599
  if (!e.type)
21600
21600
  return [new pt(t, e, '"type" is required')];
21601
- let o = Cn(e.type), s;
21601
+ let o = xn(e.type), s;
21602
21602
  switch (o) {
21603
21603
  case "vector":
21604
21604
  case "raster":
@@ -21732,7 +21732,7 @@ var Hz = { "*"() {
21732
21732
  }, array: yx, boolean: DQ, number: vx, color: $Q, constants: hR, enum: l5, filter: _x, function: dR, layer: yR, object: Io, source: vR, light: _R, sky: CR, terrain: xR, projection: HQ, string: Bu, formatted: VQ, resolvedImage: NQ, padding: zQ, variableAnchorOffsetCollection: BQ, sprite: wR };
21733
21733
  function _p(r) {
21734
21734
  let e = r.value, t = r.valueSpec, i = r.styleSpec;
21735
- return r.validateSpec = _p, t.expression && C9(Cn(e)) ? dR(r) : t.expression && Z5(zu(e)) ? Ah(r) : t.type && Hz[t.type] ? Hz[t.type](r) : Io(Eh({}, r, { valueSpec: t.type ? i[t.type] : t }));
21735
+ return r.validateSpec = _p, t.expression && C9(xn(e)) ? dR(r) : t.expression && Z5(zu(e)) ? Ah(r) : t.type && Hz[t.type] ? Hz[t.type](r) : Io(Eh({}, r, { valueSpec: t.type ? i[t.type] : t }));
21736
21736
  }
21737
21737
  d(_p, "validate");
21738
21738
  function bR(r) {
@@ -22476,14 +22476,14 @@ var x9 = gee, CLe = 128, xLe = 5, yee = class {
22476
22476
  };
22477
22477
  d(yee, "StructArray");
22478
22478
  var En = yee;
22479
- function gn(r, e = 1) {
22479
+ function yn(r, e = 1) {
22480
22480
  let t = 0, i = 0, n = r.map((o) => {
22481
22481
  let s = vee(o.type), l = t = wE(t, Math.max(e, s)), u = o.components || 1;
22482
22482
  return i = Math.max(i, s), t += s * u, { name: o.name, type: o.type, components: u, offset: l };
22483
22483
  }), a = wE(t, Math.max(i, e));
22484
22484
  return { members: n, size: a, alignment: e };
22485
22485
  }
22486
- d(gn, "createLayout");
22486
+ d(yn, "createLayout");
22487
22487
  function vee(r) {
22488
22488
  return _Le[r].BYTES_PER_ELEMENT;
22489
22489
  }
@@ -23224,7 +23224,7 @@ var bE = Pte, Ite = class extends ZR {
23224
23224
  d(Ite, "LineStripIndexArray");
23225
23225
  var $Le = Ite;
23226
23226
  B();
23227
- var OLe = gn([{ name: "a_pos", components: 2, type: "Int16" }], 4), { members: FLe, size: tot, alignment: rot } = OLe;
23227
+ var OLe = yn([{ name: "a_pos", components: 2, type: "Int16" }], 4), { members: FLe, size: tot, alignment: rot } = OLe;
23228
23228
  B();
23229
23229
  var kte = class u4 {
23230
23230
  constructor(e = []) {
@@ -23257,7 +23257,7 @@ function SE(r, e) {
23257
23257
  }
23258
23258
  d(SE, "packUint8ToFloat");
23259
23259
  B();
23260
- var __ = gn([{ name: "a_pattern_from", components: 4, type: "Uint16" }, { name: "a_pattern_to", components: 4, type: "Uint16" }, { name: "a_pixel_ratio_from", components: 1, type: "Uint16" }, { name: "a_pixel_ratio_to", components: 1, type: "Uint16" }]);
23260
+ var __ = yn([{ name: "a_pattern_from", components: 4, type: "Uint16" }, { name: "a_pattern_to", components: 4, type: "Uint16" }, { name: "a_pixel_ratio_from", components: 1, type: "Uint16" }, { name: "a_pixel_ratio_to", components: 1, type: "Uint16" }]);
23261
23261
  B();
23262
23262
  var VLe = yr(wY(), 1), Rte = class Dte {
23263
23263
  constructor() {
@@ -25127,11 +25127,11 @@ var OD = L0e, T0e = class A0e {
25127
25127
  }
25128
25128
  };
25129
25129
  d(T0e, "RGBAImage");
25130
- var xn = T0e;
25130
+ var wn = T0e;
25131
25131
  kt("AlphaImage", OD);
25132
- kt("RGBAImage", xn);
25132
+ kt("RGBAImage", wn);
25133
25133
  function FD(r) {
25134
- let e = {}, t = r.resolution || 256, i = r.clips ? r.clips.length : 1, n = r.image || new xn({ width: t, height: i });
25134
+ let e = {}, t = r.resolution || 256, i = r.clips ? r.clips.length : 1, n = r.image || new wn({ width: t, height: i });
25135
25135
  if (!IY(t))
25136
25136
  throw new Error(`width is not a power of 2 - ${t}`);
25137
25137
  let a = d((o, s, l) => {
@@ -25199,7 +25199,7 @@ var AEe = I0e;
25199
25199
  B();
25200
25200
  B();
25201
25201
  B();
25202
- var PEe = gn([{ name: "a_pos", components: 2, type: "Int16" }], 4), { members: IEe, size: bot, alignment: Sot } = PEe, kEe = yr(bY(), 1);
25202
+ var PEe = yn([{ name: "a_pos", components: 2, type: "Int16" }], 4), { members: IEe, size: bot, alignment: Sot } = PEe, kEe = yr(bY(), 1);
25203
25203
  B();
25204
25204
  B();
25205
25205
  function k0e(r, e, t, i, n) {
@@ -25380,7 +25380,7 @@ var FEe = F0e;
25380
25380
  B();
25381
25381
  B();
25382
25382
  B();
25383
- var VEe = gn([{ name: "a_pos", components: 2, type: "Int16" }, { name: "a_normal_ed", components: 4, type: "Int16" }], 4), NEe = gn([{ name: "a_centroid", components: 2, type: "Int16" }], 4), { members: zEe, size: Eot, alignment: Tot } = VEe, BEe = yr(bY(), 1), HEe = yr(ex(), 1), UEe = HEe.default.VectorTileFeature.types, jEe = 500, Cb = Math.pow(2, 13);
25383
+ var VEe = yn([{ name: "a_pos", components: 2, type: "Int16" }, { name: "a_normal_ed", components: 4, type: "Int16" }], 4), NEe = yn([{ name: "a_centroid", components: 2, type: "Int16" }], 4), { members: zEe, size: Eot, alignment: Tot } = VEe, BEe = yr(bY(), 1), HEe = yr(ex(), 1), UEe = HEe.default.VectorTileFeature.types, jEe = 500, Cb = Math.pow(2, 13);
25384
25384
  function Ud(r, e, t, i, n, a, o, s) {
25385
25385
  r.emplaceBack(e, t, Math.floor(i * Cb) * 2 + o, n * Cb * 2, a * Cb * 2, Math.round(s));
25386
25386
  }
@@ -25564,9 +25564,9 @@ d(Z0e, "projectQueryGeometry");
25564
25564
  B();
25565
25565
  B();
25566
25566
  B();
25567
- var qEe = gn([{ name: "a_pos_normal", components: 2, type: "Int16" }, { name: "a_data", components: 4, type: "Uint8" }], 4), { members: XEe, size: Iot, alignment: kot } = qEe;
25567
+ var qEe = yn([{ name: "a_pos_normal", components: 2, type: "Int16" }, { name: "a_data", components: 4, type: "Uint8" }], 4), { members: XEe, size: Iot, alignment: kot } = qEe;
25568
25568
  B();
25569
- var YEe = gn([{ name: "a_uv_x", components: 1, type: "Float32" }, { name: "a_split_index", components: 1, type: "Float32" }]), { members: KEe, size: Rot, alignment: Dot } = YEe, JEe = yr(ex(), 1), QEe = JEe.default.VectorTileFeature.types, eB = 63, eTe = Math.cos(75 / 2 * (Math.PI / 180)), tTe = 15, rTe = 20, iTe = 15, G0e = 1 / 2, tB = Math.pow(2, iTe - 1) / G0e, W0e = class {
25569
+ var YEe = yn([{ name: "a_uv_x", components: 1, type: "Float32" }, { name: "a_split_index", components: 1, type: "Float32" }]), { members: KEe, size: Rot, alignment: Dot } = YEe, JEe = yr(ex(), 1), QEe = JEe.default.VectorTileFeature.types, eB = 63, eTe = Math.cos(75 / 2 * (Math.PI / 180)), tTe = 15, rTe = 20, iTe = 15, G0e = 1 / 2, tB = Math.pow(2, iTe - 1) / G0e, W0e = class {
25570
25570
  constructor(e) {
25571
25571
  this.zoom = e.zoom, this.overscaling = e.overscaling, this.layers = e.layers, this.layerIds = this.layers.map((t) => t.id), this.index = e.index, this.hasPattern = !1, this.patternFeatures = [], this.lineClipsArray = [], this.gradients = {}, this.layers.forEach((t) => {
25572
25572
  this.gradients[t.id] = {};
@@ -25777,17 +25777,17 @@ d(DE, "getLineWidth");
25777
25777
  B();
25778
25778
  B();
25779
25779
  B();
25780
- var lTe = gn([{ name: "a_pos_offset", components: 4, type: "Int16" }, { name: "a_data", components: 4, type: "Uint16" }, { name: "a_pixeloffset", components: 4, type: "Int16" }], 4), uTe = gn([{ name: "a_projected_pos", components: 3, type: "Float32" }], 4);
25781
- gn([{ name: "a_fade_opacity", components: 1, type: "Uint32" }], 4);
25782
- var cTe = gn([{ name: "a_placed", components: 2, type: "Uint8" }, { name: "a_shift", components: 2, type: "Float32" }]);
25783
- gn([{ type: "Int16", name: "anchorPointX" }, { type: "Int16", name: "anchorPointY" }, { type: "Int16", name: "x1" }, { type: "Int16", name: "y1" }, { type: "Int16", name: "x2" }, { type: "Int16", name: "y2" }, { type: "Uint32", name: "featureIndex" }, { type: "Uint16", name: "sourceLayerIndex" }, { type: "Uint16", name: "bucketIndex" }]);
25784
- var aB = gn([{ name: "a_pos", components: 2, type: "Int16" }, { name: "a_anchor_pos", components: 2, type: "Int16" }, { name: "a_extrude", components: 2, type: "Int16" }], 4), hTe = gn([{ name: "a_pos", components: 2, type: "Float32" }, { name: "a_radius", components: 1, type: "Float32" }, { name: "a_flags", components: 2, type: "Int16" }], 4);
25785
- gn([{ name: "triangle", components: 3, type: "Uint16" }]);
25786
- gn([{ type: "Int16", name: "anchorX" }, { type: "Int16", name: "anchorY" }, { type: "Uint16", name: "glyphStartIndex" }, { type: "Uint16", name: "numGlyphs" }, { type: "Uint32", name: "vertexStartIndex" }, { type: "Uint32", name: "lineStartIndex" }, { type: "Uint32", name: "lineLength" }, { type: "Uint16", name: "segment" }, { type: "Uint16", name: "lowerSize" }, { type: "Uint16", name: "upperSize" }, { type: "Float32", name: "lineOffsetX" }, { type: "Float32", name: "lineOffsetY" }, { type: "Uint8", name: "writingMode" }, { type: "Uint8", name: "placedOrientation" }, { type: "Uint8", name: "hidden" }, { type: "Uint32", name: "crossTileID" }, { type: "Int16", name: "associatedIconIndex" }]);
25787
- gn([{ type: "Int16", name: "anchorX" }, { type: "Int16", name: "anchorY" }, { type: "Int16", name: "rightJustifiedTextSymbolIndex" }, { type: "Int16", name: "centerJustifiedTextSymbolIndex" }, { type: "Int16", name: "leftJustifiedTextSymbolIndex" }, { type: "Int16", name: "verticalPlacedTextSymbolIndex" }, { type: "Int16", name: "placedIconSymbolIndex" }, { type: "Int16", name: "verticalPlacedIconSymbolIndex" }, { type: "Uint16", name: "key" }, { type: "Uint16", name: "textBoxStartIndex" }, { type: "Uint16", name: "textBoxEndIndex" }, { type: "Uint16", name: "verticalTextBoxStartIndex" }, { type: "Uint16", name: "verticalTextBoxEndIndex" }, { type: "Uint16", name: "iconBoxStartIndex" }, { type: "Uint16", name: "iconBoxEndIndex" }, { type: "Uint16", name: "verticalIconBoxStartIndex" }, { type: "Uint16", name: "verticalIconBoxEndIndex" }, { type: "Uint16", name: "featureIndex" }, { type: "Uint16", name: "numHorizontalGlyphVertices" }, { type: "Uint16", name: "numVerticalGlyphVertices" }, { type: "Uint16", name: "numIconVertices" }, { type: "Uint16", name: "numVerticalIconVertices" }, { type: "Uint16", name: "useRuntimeCollisionCircles" }, { type: "Uint32", name: "crossTileID" }, { type: "Float32", name: "textBoxScale" }, { type: "Float32", name: "collisionCircleDiameter" }, { type: "Uint16", name: "textAnchorOffsetStartIndex" }, { type: "Uint16", name: "textAnchorOffsetEndIndex" }]);
25788
- gn([{ type: "Float32", name: "offsetX" }]);
25789
- gn([{ type: "Int16", name: "x" }, { type: "Int16", name: "y" }, { type: "Int16", name: "tileUnitDistanceFromAnchor" }]);
25790
- gn([{ type: "Uint16", name: "textAnchor" }, { type: "Float32", components: 2, name: "textOffset" }]);
25780
+ var lTe = yn([{ name: "a_pos_offset", components: 4, type: "Int16" }, { name: "a_data", components: 4, type: "Uint16" }, { name: "a_pixeloffset", components: 4, type: "Int16" }], 4), uTe = yn([{ name: "a_projected_pos", components: 3, type: "Float32" }], 4);
25781
+ yn([{ name: "a_fade_opacity", components: 1, type: "Uint32" }], 4);
25782
+ var cTe = yn([{ name: "a_placed", components: 2, type: "Uint8" }, { name: "a_shift", components: 2, type: "Float32" }]);
25783
+ yn([{ type: "Int16", name: "anchorPointX" }, { type: "Int16", name: "anchorPointY" }, { type: "Int16", name: "x1" }, { type: "Int16", name: "y1" }, { type: "Int16", name: "x2" }, { type: "Int16", name: "y2" }, { type: "Uint32", name: "featureIndex" }, { type: "Uint16", name: "sourceLayerIndex" }, { type: "Uint16", name: "bucketIndex" }]);
25784
+ var aB = yn([{ name: "a_pos", components: 2, type: "Int16" }, { name: "a_anchor_pos", components: 2, type: "Int16" }, { name: "a_extrude", components: 2, type: "Int16" }], 4), hTe = yn([{ name: "a_pos", components: 2, type: "Float32" }, { name: "a_radius", components: 1, type: "Float32" }, { name: "a_flags", components: 2, type: "Int16" }], 4);
25785
+ yn([{ name: "triangle", components: 3, type: "Uint16" }]);
25786
+ yn([{ type: "Int16", name: "anchorX" }, { type: "Int16", name: "anchorY" }, { type: "Uint16", name: "glyphStartIndex" }, { type: "Uint16", name: "numGlyphs" }, { type: "Uint32", name: "vertexStartIndex" }, { type: "Uint32", name: "lineStartIndex" }, { type: "Uint32", name: "lineLength" }, { type: "Uint16", name: "segment" }, { type: "Uint16", name: "lowerSize" }, { type: "Uint16", name: "upperSize" }, { type: "Float32", name: "lineOffsetX" }, { type: "Float32", name: "lineOffsetY" }, { type: "Uint8", name: "writingMode" }, { type: "Uint8", name: "placedOrientation" }, { type: "Uint8", name: "hidden" }, { type: "Uint32", name: "crossTileID" }, { type: "Int16", name: "associatedIconIndex" }]);
25787
+ yn([{ type: "Int16", name: "anchorX" }, { type: "Int16", name: "anchorY" }, { type: "Int16", name: "rightJustifiedTextSymbolIndex" }, { type: "Int16", name: "centerJustifiedTextSymbolIndex" }, { type: "Int16", name: "leftJustifiedTextSymbolIndex" }, { type: "Int16", name: "verticalPlacedTextSymbolIndex" }, { type: "Int16", name: "placedIconSymbolIndex" }, { type: "Int16", name: "verticalPlacedIconSymbolIndex" }, { type: "Uint16", name: "key" }, { type: "Uint16", name: "textBoxStartIndex" }, { type: "Uint16", name: "textBoxEndIndex" }, { type: "Uint16", name: "verticalTextBoxStartIndex" }, { type: "Uint16", name: "verticalTextBoxEndIndex" }, { type: "Uint16", name: "iconBoxStartIndex" }, { type: "Uint16", name: "iconBoxEndIndex" }, { type: "Uint16", name: "verticalIconBoxStartIndex" }, { type: "Uint16", name: "verticalIconBoxEndIndex" }, { type: "Uint16", name: "featureIndex" }, { type: "Uint16", name: "numHorizontalGlyphVertices" }, { type: "Uint16", name: "numVerticalGlyphVertices" }, { type: "Uint16", name: "numIconVertices" }, { type: "Uint16", name: "numVerticalIconVertices" }, { type: "Uint16", name: "useRuntimeCollisionCircles" }, { type: "Uint32", name: "crossTileID" }, { type: "Float32", name: "textBoxScale" }, { type: "Float32", name: "collisionCircleDiameter" }, { type: "Uint16", name: "textAnchorOffsetStartIndex" }, { type: "Uint16", name: "textAnchorOffsetEndIndex" }]);
25788
+ yn([{ type: "Float32", name: "offsetX" }]);
25789
+ yn([{ type: "Int16", name: "x" }, { type: "Int16", name: "y" }, { type: "Int16", name: "tileUnitDistanceFromAnchor" }]);
25790
+ yn([{ type: "Uint16", name: "textAnchor" }, { type: "Float32", components: 2, name: "textOffset" }]);
25791
25791
  var I7 = yr(di(), 1);
25792
25792
  B();
25793
25793
  function K0e(r, e, t) {
@@ -25912,14 +25912,14 @@ var BD = aae, oae = class {
25912
25912
  this.haveRenderCallbacks = [];
25913
25913
  let a = [];
25914
25914
  this.addImages(e, i, a), this.addImages(t, n, a);
25915
- let { w: o, h: s } = zD(a), l = new xn({ width: o || 1, height: s || 1 });
25915
+ let { w: o, h: s } = zD(a), l = new wn({ width: o || 1, height: s || 1 });
25916
25916
  for (let u in e) {
25917
25917
  let c = e[u], h = i[u].paddedRect;
25918
- xn.copy(c.data, l, { x: 0, y: 0 }, { x: h.x + Qo, y: h.y + Qo }, c.data);
25918
+ wn.copy(c.data, l, { x: 0, y: 0 }, { x: h.x + Qo, y: h.y + Qo }, c.data);
25919
25919
  }
25920
25920
  for (let u in t) {
25921
25921
  let c = t[u], h = n[u].paddedRect, p = h.x + Qo, f = h.y + Qo, m = c.data.width, _ = c.data.height;
25922
- xn.copy(c.data, l, { x: 0, y: 0 }, { x: p, y: f }, c.data), xn.copy(c.data, l, { x: 0, y: _ - 1 }, { x: p, y: f - 1 }, { width: m, height: 1 }), xn.copy(c.data, l, { x: 0, y: 0 }, { x: p, y: f + _ }, { width: m, height: 1 }), xn.copy(c.data, l, { x: m - 1, y: 0 }, { x: p - 1, y: f }, { width: 1, height: _ }), xn.copy(c.data, l, { x: 0, y: 0 }, { x: p + m, y: f }, { width: 1, height: _ });
25922
+ wn.copy(c.data, l, { x: 0, y: 0 }, { x: p, y: f }, c.data), wn.copy(c.data, l, { x: 0, y: _ - 1 }, { x: p, y: f - 1 }, { width: m, height: 1 }), wn.copy(c.data, l, { x: 0, y: 0 }, { x: p, y: f + _ }, { width: m, height: 1 }), wn.copy(c.data, l, { x: m - 1, y: 0 }, { x: p - 1, y: f }, { width: 1, height: _ }), wn.copy(c.data, l, { x: 0, y: 0 }, { x: p + m, y: f }, { width: 1, height: _ });
25923
25923
  }
25924
25924
  this.image = l, this.iconPositions = i, this.patternPositions = n;
25925
25925
  }
@@ -26542,7 +26542,7 @@ function bae(r) {
26542
26542
  d(bae, "renderStyleImage");
26543
26543
  var k7 = 1, Sae = class extends K0 {
26544
26544
  constructor() {
26545
- super(), this.images = {}, this.updatedImages = {}, this.callbackDispatchedThisFrame = {}, this.loaded = !1, this.requestors = [], this.patterns = {}, this.atlasImage = new xn({ width: 1, height: 1 }), this.dirty = !0;
26545
+ super(), this.images = {}, this.updatedImages = {}, this.callbackDispatchedThisFrame = {}, this.loaded = !1, this.requestors = [], this.patterns = {}, this.atlasImage = new wn({ width: 1, height: 1 }), this.dirty = !0;
26546
26546
  }
26547
26547
  isLoaded() {
26548
26548
  return this.loaded;
@@ -26558,7 +26558,7 @@ var k7 = 1, Sae = class extends K0 {
26558
26558
  let t = this.images[e];
26559
26559
  if (t && !t.data && t.spriteData) {
26560
26560
  let i = t.spriteData;
26561
- t.data = new xn({ width: i.width, height: i.height }, i.context.getImageData(i.x, i.y, i.width, i.height).data), t.spriteData = null;
26561
+ t.data = new wn({ width: i.width, height: i.height }, i.context.getImageData(i.x, i.y, i.width, i.height).data), t.spriteData = null;
26562
26562
  }
26563
26563
  return t;
26564
26564
  }
@@ -26650,7 +26650,7 @@ var k7 = 1, Sae = class extends K0 {
26650
26650
  n.resize({ width: t || 1, height: i || 1 });
26651
26651
  for (let a in this.patterns) {
26652
26652
  let { bin: o } = this.patterns[a], s = o.x + k7, l = o.y + k7, u = this.getImage(a).data, c = u.width, h = u.height;
26653
- xn.copy(u, n, { x: 0, y: 0 }, { x: s, y: l }, { width: c, height: h }), xn.copy(u, n, { x: 0, y: h - 1 }, { x: s, y: l - 1 }, { width: c, height: 1 }), xn.copy(u, n, { x: 0, y: 0 }, { x: s, y: l + h }, { width: c, height: 1 }), xn.copy(u, n, { x: c - 1, y: 0 }, { x: s - 1, y: l }, { width: 1, height: h }), xn.copy(u, n, { x: 0, y: 0 }, { x: s + c, y: l }, { width: 1, height: h });
26653
+ wn.copy(u, n, { x: 0, y: 0 }, { x: s, y: l }, { width: c, height: h }), wn.copy(u, n, { x: 0, y: h - 1 }, { x: s, y: l - 1 }, { width: c, height: 1 }), wn.copy(u, n, { x: 0, y: 0 }, { x: s, y: l + h }, { width: c, height: 1 }), wn.copy(u, n, { x: c - 1, y: 0 }, { x: s - 1, y: l }, { width: 1, height: h }), wn.copy(u, n, { x: 0, y: 0 }, { x: s + c, y: l }, { width: 1, height: h });
26654
26654
  }
26655
26655
  this.dirty = !0;
26656
26656
  }
@@ -27716,7 +27716,7 @@ var uoe = class {
27716
27716
  return e * this.redFactor + t * this.greenFactor + i * this.blueFactor - this.baseShift;
27717
27717
  }
27718
27718
  getPixels() {
27719
- return new xn({ width: this.stride, height: this.stride }, new Uint8Array(this.data.buffer));
27719
+ return new wn({ width: this.stride, height: this.stride }, new Uint8Array(this.data.buffer));
27720
27720
  }
27721
27721
  backfillBorder(e, t, i) {
27722
27722
  if (this.dim !== e.dim)
@@ -27781,7 +27781,7 @@ var coe = class extends XD {
27781
27781
  if (typeof VideoFrame < "u" && TY()) {
27782
27782
  let t = e.width + 2, i = e.height + 2;
27783
27783
  try {
27784
- return new xn({ width: t, height: i }, await zY(e, -1, -1, t, i));
27784
+ return new wn({ width: t, height: i }, await zY(e, -1, -1, t, i));
27785
27785
  } catch {
27786
27786
  }
27787
27787
  }
@@ -27881,7 +27881,7 @@ var poe = doe;
27881
27881
  B();
27882
27882
  B();
27883
27883
  B();
27884
- var $x = gn([{ name: "a_pos", type: "Int16", components: 2 }, { name: "a_texture_pos", type: "Int16", components: 2 }]), foe = class extends K0 {
27884
+ var $x = yn([{ name: "a_pos", type: "Int16", components: 2 }, { name: "a_texture_pos", type: "Int16", components: 2 }]), foe = class extends K0 {
27885
27885
  constructor(e, t, i, n) {
27886
27886
  super(), this.id = e, this.dispatcher = i, this.coordinates = t.coordinates, this.type = "image", this.minzoom = 0, this.maxzoom = 22, this.tileSize = 512, this.tiles = {}, this._loaded = !1, this.setEventedParent(n), this.options = t;
27887
27887
  }
@@ -30832,7 +30832,7 @@ d(ose, "Style");
30832
30832
  var tT = ose;
30833
30833
  B();
30834
30834
  B();
30835
- var Mb = gn([{ name: "a_pos", type: "Int16", components: 2 }]);
30835
+ var Mb = yn([{ name: "a_pos", type: "Int16", components: 2 }]);
30836
30836
  B();
30837
30837
  B();
30838
30838
  var wAe = `#ifdef GL_ES
@@ -35172,7 +35172,7 @@ var dT = ((r) => (r.create = "create", r.load = "load", r.fullLoad = "fullLoad",
35172
35172
  } };
35173
35173
  B();
35174
35174
  B();
35175
- var Jke = gn([{ name: "a_pos3d", type: "Int16", components: 3 }]);
35175
+ var Jke = yn([{ name: "a_pos3d", type: "Int16", components: 3 }]);
35176
35176
  B();
35177
35177
  var t1e = class extends K0 {
35178
35178
  constructor(e) {
@@ -35261,8 +35261,8 @@ var Qke = t1e, r1e = class {
35261
35261
  }
35262
35262
  getTerrainData(e) {
35263
35263
  if (!this._emptyDemTexture) {
35264
- let n = this.painter.context, a = new xn({ width: 1, height: 1 }, new Uint8Array(1 * 4));
35265
- this._emptyDepthTexture = new m0(n, a, n.gl.RGBA, { premultiply: !1 }), this._emptyDemUnpack = [0, 0, 0, 0], this._emptyDemTexture = new m0(n, new xn({ width: 1, height: 1 }), n.gl.RGBA, { premultiply: !1 }), this._emptyDemTexture.bind(n.gl.NEAREST, n.gl.CLAMP_TO_EDGE), this._emptyDemMatrix = Ft.identity([]);
35264
+ let n = this.painter.context, a = new wn({ width: 1, height: 1 }, new Uint8Array(1 * 4));
35265
+ this._emptyDepthTexture = new m0(n, a, n.gl.RGBA, { premultiply: !1 }), this._emptyDemUnpack = [0, 0, 0, 0], this._emptyDemTexture = new m0(n, new wn({ width: 1, height: 1 }), n.gl.RGBA, { premultiply: !1 }), this._emptyDemTexture.bind(n.gl.NEAREST, n.gl.CLAMP_TO_EDGE), this._emptyDemMatrix = Ft.identity([]);
35266
35266
  }
35267
35267
  let t = this.sourceCache.getSourceTile(e, !0);
35268
35268
  if (t && t.dem && (!t.demTexture || t.needsTerrainPrepare)) {
@@ -35290,7 +35290,7 @@ var Qke = t1e, r1e = class {
35290
35290
  for (let a = 0, o = 0; a < this._coordsTextureSize; a++)
35291
35291
  for (let s = 0; s < this._coordsTextureSize; s++, o += 4)
35292
35292
  t[o + 0] = s & 255, t[o + 1] = a & 255, t[o + 2] = s >> 8 << 4 | a >> 8, t[o + 3] = 0;
35293
- let i = new xn({ width: this._coordsTextureSize, height: this._coordsTextureSize }, new Uint8Array(t.buffer)), n = new m0(e, i, e.gl.RGBA, { premultiply: !1 });
35293
+ let i = new wn({ width: this._coordsTextureSize, height: this._coordsTextureSize }, new Uint8Array(t.buffer)), n = new m0(e, i, e.gl.RGBA, { premultiply: !1 });
35294
35294
  return n.bind(e.gl.NEAREST, e.gl.CLAMP_TO_EDGE), this._coordsTexture = n, n;
35295
35295
  }
35296
35296
  pointCoordinate(e) {
@@ -35817,13 +35817,13 @@ var iRe = { "AttributionControl.ToggleAttribution": "Toggle attribution", "Attri
35817
35817
  let u = 0;
35818
35818
  if (t instanceof HTMLImageElement || N2(t)) {
35819
35819
  let { width: c, height: h, data: p } = ei.getImageData(t);
35820
- this.style.addImage(e, { data: new xn({ width: c, height: h }, p), pixelRatio: n, stretchX: o, stretchY: s, content: l, sdf: a, version: u });
35820
+ this.style.addImage(e, { data: new wn({ width: c, height: h }, p), pixelRatio: n, stretchX: o, stretchY: s, content: l, sdf: a, version: u });
35821
35821
  } else {
35822
35822
  if (t.width === void 0 || t.height === void 0)
35823
35823
  return this.fire(new hr(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));
35824
35824
  {
35825
35825
  let { width: c, height: h, data: p } = t, f = t;
35826
- return this.style.addImage(e, { data: new xn({ width: c, height: h }, new Uint8Array(p)), pixelRatio: n, stretchX: o, stretchY: s, content: l, sdf: a, version: u, userImage: f }), f.onAdd && f.onAdd(this, e), this;
35826
+ return this.style.addImage(e, { data: new wn({ width: c, height: h }, new Uint8Array(p)), pixelRatio: n, stretchX: o, stretchY: s, content: l, sdf: a, version: u, userImage: f }), f.onAdd && f.onAdd(this, e), this;
35827
35827
  }
35828
35828
  }
35829
35829
  }
@@ -48186,7 +48186,7 @@ var ide = class {
48186
48186
  De.version === ur.__version ? (ur.needsLights && ur.lightsStateVersion !== k0.state.version || ur.outputColorSpace !== bt || Se.isBatchedMesh && ur.batching === !1 || !Se.isBatchedMesh && ur.batching === !0 || Se.isInstancedMesh && ur.instancing === !1 || !Se.isInstancedMesh && ur.instancing === !0 || Se.isSkinnedMesh && ur.skinning === !1 || !Se.isSkinnedMesh && ur.skinning === !0 || Se.isInstancedMesh && ur.instancingColor === !0 && Se.instanceColor === null || Se.isInstancedMesh && ur.instancingColor === !1 && Se.instanceColor !== null || Se.isInstancedMesh && ur.instancingMorph === !0 && Se.morphTexture === null || Se.isInstancedMesh && ur.instancingMorph === !1 && Se.morphTexture !== null || ur.envMap !== Bt || De.fog === !0 && ur.fog !== Ke || ur.numClippingPlanes !== void 0 && (ur.numClippingPlanes !== qe.numPlanes || ur.numIntersection !== qe.numIntersection) || ur.vertexAlphas !== jt || ur.vertexTangents !== Qt || ur.morphTargets !== Gt || ur.morphNormals !== Yr || ur.morphColors !== Tr || ur.toneMapping !== $r || Be.isWebGL2 === !0 && ur.morphTargetsCount !== Mr) && (Ri = !0) : (Ri = !0, ur.__version = De.version);
48187
48187
  let Fn = ur.currentProgram;
48188
48188
  Ri === !0 && (Fn = Ne(De, xe, Se));
48189
- let Xn = !1, Yn = !1, cr = !1, fi = Fn.getUniforms(), yn = ur.uniforms;
48189
+ let Xn = !1, Yn = !1, cr = !1, fi = Fn.getUniforms(), vn = ur.uniforms;
48190
48190
  if (He.useProgram(Fn.program) && (Xn = !0, Yn = !0, cr = !0), De.id !== T && (T = De.id, Yn = !0), Xn || $ !== oe) {
48191
48191
  fi.setValue(ae, "projectionMatrix", oe.projectionMatrix), fi.setValue(ae, "viewMatrix", oe.matrixWorldInverse);
48192
48192
  let Yi = fi.map.cameraPosition;
@@ -48199,7 +48199,7 @@ var ide = class {
48199
48199
  }
48200
48200
  Se.isBatchedMesh && (fi.setOptional(ae, Se, "batchingTexture"), fi.setValue(ae, "batchingTexture", Se._matricesTexture, nt));
48201
48201
  let zo = Pe.morphAttributes;
48202
- if ((zo.position !== void 0 || zo.normal !== void 0 || zo.color !== void 0 && Be.isWebGL2 === !0) && at.update(Se, Pe, Fn), (Yn || ur.receiveShadow !== Se.receiveShadow) && (ur.receiveShadow = Se.receiveShadow, fi.setValue(ae, "receiveShadow", Se.receiveShadow)), De.isMeshGouraudMaterial && De.envMap !== null && (yn.envMap.value = Bt, yn.flipEnvMap.value = Bt.isCubeTexture && Bt.isRenderTargetTexture === !1 ? -1 : 1), Yn && (fi.setValue(ae, "toneMappingExposure", C.toneMappingExposure), ur.needsLights && vr(yn, cr), Ke && De.fog === !0 && Ge.refreshFogUniforms(yn, Ke), Ge.refreshMaterialUniforms(yn, De, Q, Y, G), Hg.upload(ae, Ve(ur), yn, nt)), De.isShaderMaterial && De.uniformsNeedUpdate === !0 && (Hg.upload(ae, Ve(ur), yn, nt), De.uniformsNeedUpdate = !1), De.isSpriteMaterial && fi.setValue(ae, "center", Se.center), fi.setValue(ae, "modelViewMatrix", Se.modelViewMatrix), fi.setValue(ae, "normalMatrix", Se.normalMatrix), fi.setValue(ae, "modelMatrix", Se.matrixWorld), De.isShaderMaterial || De.isRawShaderMaterial) {
48202
+ if ((zo.position !== void 0 || zo.normal !== void 0 || zo.color !== void 0 && Be.isWebGL2 === !0) && at.update(Se, Pe, Fn), (Yn || ur.receiveShadow !== Se.receiveShadow) && (ur.receiveShadow = Se.receiveShadow, fi.setValue(ae, "receiveShadow", Se.receiveShadow)), De.isMeshGouraudMaterial && De.envMap !== null && (vn.envMap.value = Bt, vn.flipEnvMap.value = Bt.isCubeTexture && Bt.isRenderTargetTexture === !1 ? -1 : 1), Yn && (fi.setValue(ae, "toneMappingExposure", C.toneMappingExposure), ur.needsLights && vr(vn, cr), Ke && De.fog === !0 && Ge.refreshFogUniforms(vn, Ke), Ge.refreshMaterialUniforms(vn, De, Q, Y, G), Hg.upload(ae, Ve(ur), vn, nt)), De.isShaderMaterial && De.uniformsNeedUpdate === !0 && (Hg.upload(ae, Ve(ur), vn, nt), De.uniformsNeedUpdate = !1), De.isSpriteMaterial && fi.setValue(ae, "center", Se.center), fi.setValue(ae, "modelViewMatrix", Se.modelViewMatrix), fi.setValue(ae, "normalMatrix", Se.normalMatrix), fi.setValue(ae, "modelMatrix", Se.matrixWorld), De.isShaderMaterial || De.isRawShaderMaterial) {
48203
48203
  let Yi = De.uniformsGroups;
48204
48204
  for (let R0 = 0, y = Yi.length; R0 < y; R0++)
48205
48205
  if (Be.isWebGL2) {
@@ -49863,7 +49863,7 @@ function Hu(r, e) {
49863
49863
  e || (e = r);
49864
49864
  let t = r, i;
49865
49865
  do
49866
- if (i = !1, !t.steiner && (P9(t, t.next) || mn(t.prev, t, t.next) === 0)) {
49866
+ if (i = !1, !t.steiner && (P9(t, t.next) || gn(t.prev, t, t.next) === 0)) {
49867
49867
  if (w5(t), t = e = t.prev, t === t.next)
49868
49868
  break;
49869
49869
  i = !0;
@@ -49892,11 +49892,11 @@ function C5(r, e, t, i, n, a, o) {
49892
49892
  d(C5, "earcutLinked");
49893
49893
  function u3e(r) {
49894
49894
  let e = r.prev, t = r, i = r.next;
49895
- if (mn(e, t, i) >= 0)
49895
+ if (gn(e, t, i) >= 0)
49896
49896
  return !1;
49897
49897
  let n = e.x, a = t.x, o = i.x, s = e.y, l = t.y, u = i.y, c = n < a ? n < o ? n : o : a < o ? a : o, h = s < l ? s < u ? s : u : l < u ? l : u, p = n > a ? n > o ? n : o : a > o ? a : o, f = s > l ? s > u ? s : u : l > u ? l : u, m = i.next;
49898
49898
  for (; m !== e; ) {
49899
- if (m.x >= c && m.x <= p && m.y >= h && m.y <= f && rh(n, s, a, l, o, u, m.x, m.y) && mn(m.prev, m, m.next) >= 0)
49899
+ if (m.x >= c && m.x <= p && m.y >= h && m.y <= f && rh(n, s, a, l, o, u, m.x, m.y) && gn(m.prev, m, m.next) >= 0)
49900
49900
  return !1;
49901
49901
  m = m.next;
49902
49902
  }
@@ -49905,21 +49905,21 @@ function u3e(r) {
49905
49905
  d(u3e, "isEar");
49906
49906
  function c3e(r, e, t, i) {
49907
49907
  let n = r.prev, a = r, o = r.next;
49908
- if (mn(n, a, o) >= 0)
49908
+ if (gn(n, a, o) >= 0)
49909
49909
  return !1;
49910
49910
  let s = n.x, l = a.x, u = o.x, c = n.y, h = a.y, p = o.y, f = s < l ? s < u ? s : u : l < u ? l : u, m = c < h ? c < p ? c : p : h < p ? h : p, _ = s > l ? s > u ? s : u : l > u ? l : u, g = c > h ? c > p ? c : p : h > p ? h : p, v = V_(f, m, e, t, i), x = V_(_, g, e, t, i), C = r.prevZ, b = r.nextZ;
49911
49911
  for (; C && C.z >= v && b && b.z <= x; ) {
49912
- if (C.x >= f && C.x <= _ && C.y >= m && C.y <= g && C !== n && C !== o && rh(s, c, l, h, u, p, C.x, C.y) && mn(C.prev, C, C.next) >= 0 || (C = C.prevZ, b.x >= f && b.x <= _ && b.y >= m && b.y <= g && b !== n && b !== o && rh(s, c, l, h, u, p, b.x, b.y) && mn(b.prev, b, b.next) >= 0))
49912
+ if (C.x >= f && C.x <= _ && C.y >= m && C.y <= g && C !== n && C !== o && rh(s, c, l, h, u, p, C.x, C.y) && gn(C.prev, C, C.next) >= 0 || (C = C.prevZ, b.x >= f && b.x <= _ && b.y >= m && b.y <= g && b !== n && b !== o && rh(s, c, l, h, u, p, b.x, b.y) && gn(b.prev, b, b.next) >= 0))
49913
49913
  return !1;
49914
49914
  b = b.nextZ;
49915
49915
  }
49916
49916
  for (; C && C.z >= v; ) {
49917
- if (C.x >= f && C.x <= _ && C.y >= m && C.y <= g && C !== n && C !== o && rh(s, c, l, h, u, p, C.x, C.y) && mn(C.prev, C, C.next) >= 0)
49917
+ if (C.x >= f && C.x <= _ && C.y >= m && C.y <= g && C !== n && C !== o && rh(s, c, l, h, u, p, C.x, C.y) && gn(C.prev, C, C.next) >= 0)
49918
49918
  return !1;
49919
49919
  C = C.prevZ;
49920
49920
  }
49921
49921
  for (; b && b.z <= x; ) {
49922
- if (b.x >= f && b.x <= _ && b.y >= m && b.y <= g && b !== n && b !== o && rh(s, c, l, h, u, p, b.x, b.y) && mn(b.prev, b, b.next) >= 0)
49922
+ if (b.x >= f && b.x <= _ && b.y >= m && b.y <= g && b !== n && b !== o && rh(s, c, l, h, u, p, b.x, b.y) && gn(b.prev, b, b.next) >= 0)
49923
49923
  return !1;
49924
49924
  b = b.nextZ;
49925
49925
  }
@@ -49993,7 +49993,7 @@ function g3e(r, e) {
49993
49993
  }
49994
49994
  d(g3e, "findHoleBridge");
49995
49995
  function y3e(r, e) {
49996
- return mn(r.prev, r, e.prev) < 0 && mn(e.next, r, r.next) < 0;
49996
+ return gn(r.prev, r, e.prev) < 0 && gn(e.next, r, r.next) < 0;
49997
49997
  }
49998
49998
  d(y3e, "sectorContainsSector");
49999
49999
  function v3e(r, e, t, i) {
@@ -50036,19 +50036,19 @@ function rh(r, e, t, i, n, a, o, s) {
50036
50036
  }
50037
50037
  d(rh, "pointInTriangle");
50038
50038
  function x3e(r, e) {
50039
- return r.next.i !== e.i && r.prev.i !== e.i && !w3e(r, e) && (x5(r, e) && x5(e, r) && b3e(r, e) && (mn(r.prev, r, e.prev) || mn(r, e.prev, e)) || P9(r, e) && mn(r.prev, r, r.next) > 0 && mn(e.prev, e, e.next) > 0);
50039
+ return r.next.i !== e.i && r.prev.i !== e.i && !w3e(r, e) && (x5(r, e) && x5(e, r) && b3e(r, e) && (gn(r.prev, r, e.prev) || gn(r, e.prev, e)) || P9(r, e) && gn(r.prev, r, r.next) > 0 && gn(e.prev, e, e.next) > 0);
50040
50040
  }
50041
50041
  d(x3e, "isValidDiagonal");
50042
- function mn(r, e, t) {
50042
+ function gn(r, e, t) {
50043
50043
  return (e.y - r.y) * (t.x - e.x) - (e.x - r.x) * (t.y - e.y);
50044
50044
  }
50045
- d(mn, "area");
50045
+ d(gn, "area");
50046
50046
  function P9(r, e) {
50047
50047
  return r.x === e.x && r.y === e.y;
50048
50048
  }
50049
50049
  d(P9, "equals");
50050
50050
  function F$(r, e, t, i) {
50051
- let n = E4(mn(r, e, t)), a = E4(mn(r, e, i)), o = E4(mn(t, i, r)), s = E4(mn(t, i, e));
50051
+ let n = E4(gn(r, e, t)), a = E4(gn(r, e, i)), o = E4(gn(t, i, r)), s = E4(gn(t, i, e));
50052
50052
  return !!(n !== a && o !== s || n === 0 && L4(r, t, e) || a === 0 && L4(r, i, e) || o === 0 && L4(t, r, i) || s === 0 && L4(t, e, i));
50053
50053
  }
50054
50054
  d(F$, "intersects");
@@ -50071,7 +50071,7 @@ function w3e(r, e) {
50071
50071
  }
50072
50072
  d(w3e, "intersectsPolygon");
50073
50073
  function x5(r, e) {
50074
- return mn(r.prev, r, r.next) < 0 ? mn(r, e, r.next) >= 0 && mn(r, r.prev, e) >= 0 : mn(r, e, r.prev) < 0 || mn(r, r.next, e) < 0;
50074
+ return gn(r.prev, r, r.next) < 0 ? gn(r, e, r.next) >= 0 && gn(r, r.prev, e) >= 0 : gn(r, e, r.prev) < 0 || gn(r, r.next, e) < 0;
50075
50075
  }
50076
50076
  d(x5, "locallyInside");
50077
50077
  function b3e(r, e) {
@@ -55343,7 +55343,7 @@ var UVe = mt((r, e) => {
55343
55343
  return Le;
55344
55344
  }
55345
55345
  d(fi, "copyObject");
55346
- function yn(J) {
55346
+ function vn(J) {
55347
55347
  return k0(function(se, Le) {
55348
55348
  var et = -1, Tt = Le.length, yt = Tt > 1 ? Le[Tt - 1] : void 0, Wt = Tt > 2 ? Le[2] : void 0;
55349
55349
  for (yt = J.length > 3 && typeof yt == "function" ? (Tt--, yt) : void 0, Wt && N(Le[0], Le[1], Wt) && (yt = Tt < 3 ? void 0 : yt, Tt = 1), se = Object(se); ++et < Tt; ) {
@@ -55353,7 +55353,7 @@ var UVe = mt((r, e) => {
55353
55353
  return se;
55354
55354
  });
55355
55355
  }
55356
- d(yn, "createAssigner");
55356
+ d(vn, "createAssigner");
55357
55357
  function zo(J) {
55358
55358
  return function(se, Le, et) {
55359
55359
  for (var Tt = -1, yt = Object(se), Wt = et(se), Xt = Wt.length; Xt--; ) {
@@ -55536,7 +55536,7 @@ var UVe = mt((r, e) => {
55536
55536
  return Tn(J) ? Ke(J, !0) : Vi(J);
55537
55537
  }
55538
55538
  d(nc, "keysIn");
55539
- var ce = yn(function(J, se, Le, et) {
55539
+ var ce = vn(function(J, se, Le, et) {
55540
55540
  Mr(J, se, Le, et);
55541
55541
  });
55542
55542
  function Ie(J) {
@@ -57369,7 +57369,7 @@ var UVe = mt((r, e) => {
57369
57369
  }
57370
57370
  this.m_IntersectList.length = 0;
57371
57371
  };
57372
- var yn = d(function(y) {
57372
+ var vn = d(function(y) {
57373
57373
  return y < 0 ? Math.ceil(y - 0.5) : Math.round(y);
57374
57374
  }, "R1"), zo = d(function(y) {
57375
57375
  return y < 0 ? Math.ceil(y - 0.5) : Math.floor(y + 0.5);
@@ -57378,7 +57378,7 @@ var UVe = mt((r, e) => {
57378
57378
  }, "R3"), R0 = d(function(y) {
57379
57379
  return y < 0 ? (y -= 0.5, y < -2147483648 ? Math.ceil(y) : y | 0) : (y += 0.5, y > 2147483647 ? Math.floor(y) : y | 0);
57380
57380
  }, "R4");
57381
- s.msie ? i.Clipper.Round = yn : s.chromium ? i.Clipper.Round = Yi : s.safari ? i.Clipper.Round = R0 : i.Clipper.Round = zo, i.Clipper.TopX = function(y, w) {
57381
+ s.msie ? i.Clipper.Round = vn : s.chromium ? i.Clipper.Round = Yi : s.safari ? i.Clipper.Round = R0 : i.Clipper.Round = zo, i.Clipper.TopX = function(y, w) {
57382
57382
  return w == y.Top.Y ? y.Top.X : y.Bot.X + i.Clipper.Round(y.Dx * (w - y.Bot.Y));
57383
57383
  }, i.Clipper.prototype.IntersectPoint = function(y, w, E) {
57384
57384
  E.X = 0, E.Y = 0;
@@ -65890,7 +65890,7 @@ const YHe = [s2, G2, Dn, Z2, Uu, kr, $a], M8e = [s2, Z2], L8e = async (r, e) =>
65890
65890
  }
65891
65891
  return await WHe(t);
65892
65892
  };
65893
- var KHe = { BASE_URL: "/map", MODE: "production", DEV: !1, PROD: !0, SSR: !1, APP_VERSION: "0.24.4", OUTDOOR_MAPS_KEY: "f8fd42d9e1c2751f", POSTHOG_KEY: "phc_vZrwt3z6JmdPnErvTgZoazTAGlCRMiz6c2NqWtBt8qz", POSTHOG_HOST: "https://ph-api.mappedin.com", IMAGE_PROXY_HOST: "https://image-proxy-staging.mappedin.net" };
65893
+ var KHe = { BASE_URL: "/map", MODE: "production", DEV: !1, PROD: !0, SSR: !1, APP_VERSION: "0.24.5", OUTDOOR_MAPS_KEY: "f8fd42d9e1c2751f", POSTHOG_KEY: "phc_sRrjUwz9zicl4GeXtSnwcuKMr50SB76ma6NVi6zlPou", POSTHOG_HOST: "https://ph-api.mappedin.com", IMAGE_PROXY_HOST: "https://image-proxy.mappedin.com" };
65894
65894
  const JHe = async (r, e, t) => {
65895
65895
  const i = `${e ?? KHe.FETCH_MVF_AZURE_FUNCTION_HOST}?venue=${r}&version=2.0.0`, { url: n } = await fetch(i).then((c) => c.json()), a = await fetch(n).then((c) => c.arrayBuffer()), o = new Uint8Array(a), s = await eO(o), l = Q$(s);
65896
65896
  return typeof (t == null ? void 0 : t.onMVFParsed) == "function" && t.onMVFParsed(l), L8e(l, t);
@@ -67218,7 +67218,7 @@ class jGe {
67218
67218
  {
67219
67219
  reactionDisposers: !1,
67220
67220
  rootStore: !1,
67221
- theme: wn.struct,
67221
+ theme: mn.struct,
67222
67222
  lightTheme: !1,
67223
67223
  darkTheme: !1
67224
67224
  },
@@ -71207,7 +71207,7 @@ const bXe = (r, e) => (Pd != null || (U6 == null && globalThis.OffscreenCanvas !
71207
71207
  const i = {
71208
71208
  fit: "fit",
71209
71209
  ...t
71210
- }, n = "https://image-proxy-staging.mappedin.net", a = MXe[e], o = encodeURIComponent(r);
71210
+ }, n = "https://image-proxy.mappedin.com", a = MXe[e], o = encodeURIComponent(r);
71211
71211
  return `${n}/resize:${i.fit}:${a}:${a}:0/plain/${o}`.replaceAll(/\/+/g, "/").replace("/", "//");
71212
71212
  }, jfe = Uh`
71213
71213
  cursor: pointer;
@@ -71725,7 +71725,7 @@ class kXe {
71725
71725
  rootStore: !1,
71726
71726
  mapStore: !1,
71727
71727
  reactionDisposers: !1,
71728
- directions: wn.ref
71728
+ directions: mn.ref
71729
71729
  },
71730
71730
  { autoBind: !0, deep: !1 }
71731
71731
  ), this.reactionDisposers.push(
@@ -71925,6 +71925,11 @@ class zXe {
71925
71925
  * enough for most purposes
71926
71926
  */
71927
71927
  W(this, "defaultCameraByFloorId", {});
71928
+ /**
71929
+ * Some additional padding that can be set from the outside (i.e. self-serve editor) to affect how the camera moves.
71930
+ * It is added the default padding in every state.
71931
+ */
71932
+ W(this, "externalPadding", {});
71928
71933
  W(this, "zoom", 0);
71929
71934
  W(this, "isCameraMoving", !1);
71930
71935
  W(this, "isUserInteracting", !1);
@@ -71934,7 +71939,8 @@ class zXe {
71934
71939
  rootStore: !1,
71935
71940
  mapStore: !1,
71936
71941
  reactionDisposers: !1,
71937
- cameraChangeTimeout: !1
71942
+ cameraChangeTimeout: !1,
71943
+ externalPadding: mn.struct
71938
71944
  },
71939
71945
  { autoBind: !0, deep: !1 }
71940
71946
  ), this.reactionDisposers.push(
@@ -71943,15 +71949,17 @@ class zXe {
71943
71949
  this.rootStore.selectedPlaces,
71944
71950
  this.mapStore.directions.directions,
71945
71951
  this.mapStore.initialized,
71946
- this.rootStore.uiStore.metadataCardVisible
71952
+ this.rootStore.uiStore.metadataCardVisible,
71953
+ this.externalPadding
71947
71954
  ],
71948
71955
  () => this.updateCamera()
71949
71956
  )
71950
71957
  ), this.reactionDisposers.push(
71951
71958
  Gn(
71952
- () => this.rootStore.currentFloor,
71953
- () => {
71954
- setTimeout(() => {
71959
+ () => [this.rootStore.currentFloor, this.mapStore.initialized],
71960
+ (i, n) => {
71961
+ const [, a] = i, [, o] = n;
71962
+ a && !o ? this.updateCamera(!0) : setTimeout(() => {
71955
71963
  this.updateCamera(!0);
71956
71964
  }, Gfe * 0.5);
71957
71965
  }
@@ -71967,12 +71975,18 @@ class zXe {
71967
71975
  left: 0
71968
71976
  };
71969
71977
  const e = Nj[this.rootStore.state] ?? Nj[Gr.START], t = { ...this.rootStore.isAppMobile ? e.mobile : e.desktop };
71970
- return this.rootStore.isAppMobile && this.rootStore.uiStore.levelSelectorVisible && (t.bottom += 50), this.rootStore.uiStore.metadataCardVisible && (this.rootStore.isAppMobile ? t.bottom += 450 : t.right += ah), t;
71978
+ this.rootStore.isAppMobile && this.rootStore.uiStore.levelSelectorVisible && (t.bottom += 50), this.rootStore.uiStore.metadataCardVisible && (this.rootStore.isAppMobile ? t.bottom += 450 : t.right += ah);
71979
+ for (const i of Object.keys(t))
71980
+ t[i] += this.externalPadding[i] ?? 0;
71981
+ return t;
71971
71982
  }
71972
71983
  get defaultZoom() {
71973
71984
  var e;
71974
71985
  return this.rootStore.currentFloor == null ? 0 : ((e = this.defaultCameraByFloorId[this.rootStore.currentFloor.id]) == null ? void 0 : e.zoomLevel) ?? 0;
71975
71986
  }
71987
+ setExternalPadding(e) {
71988
+ this.externalPadding = e ?? {};
71989
+ }
71976
71990
  handleCameraChange(e) {
71977
71991
  if (e == null)
71978
71992
  return;
@@ -72282,7 +72296,7 @@ class ZXe {
72282
72296
  this.rootStore = e, this.mapStore = t, _s(
72283
72297
  this,
72284
72298
  {
72285
- cursorPosition: wn.struct,
72299
+ cursorPosition: mn.struct,
72286
72300
  rootStore: !1,
72287
72301
  mapStore: !1,
72288
72302
  reactionDisposers: !1
@@ -72384,7 +72398,7 @@ class GXe {
72384
72398
  this.rootStore = e, _s(
72385
72399
  this,
72386
72400
  {
72387
- mapView: wn.ref,
72401
+ mapView: mn.ref,
72388
72402
  rootStore: !1,
72389
72403
  markers: !1,
72390
72404
  geometries: !1,
@@ -72503,20 +72517,20 @@ class GXe {
72503
72517
  a.Camera.setMinZoomLevel(this.rootStore.uiStore.theme.map.minZoom), a.Camera.setMaxZoomLevel(this.rootStore.uiStore.theme.map.maxZoom), a.Camera.set({
72504
72518
  pitch: this.rootStore.uiStore.theme.map.initialTilt,
72505
72519
  bearing: this.rootStore.uiStore.theme.map.initialRotation
72506
- }), await this.camera.resetZoom();
72520
+ });
72507
72521
  for (const o of this.rootStore.geometries)
72508
72522
  a.updateState(o, {
72509
72523
  hoverColor: this.rootStore.uiStore.theme.colors.map.geometry.hover
72510
72524
  });
72511
72525
  return a.on("click", this.handleFloorClick), a.on("camera-change", this.camera.handleCameraChange), a.on("user-interaction-start", this.camera.handleUserInteractionStart), a.on("user-interaction-end", this.camera.handleUserInteractionEnd), a.on("floor-change", this.handleFloorChange), a.on("outdoor-view-loaded", this.setOutdoorViewLoaded), setTimeout(
72512
72526
  ru(() => {
72513
- this.outdoorViewTimedOut = !0, ci.warn("Outdoor view timed out!");
72527
+ this.outdoorViewLoaded || (this.outdoorViewTimedOut = !0, ci.warn("Outdoor view timed out!"));
72514
72528
  }),
72515
72529
  3e3
72516
72530
  ), new Promise(
72517
72531
  (o) => requestAnimationFrame(() => {
72518
72532
  Ql(() => {
72519
- this.mapView = a, this.camera.resetZoom(), o();
72533
+ this.mapView = a, o();
72520
72534
  });
72521
72535
  })
72522
72536
  );
@@ -74249,7 +74263,7 @@ class Zj {
74249
74263
  * never changes, so it should be fine. This is necessary to solve a bug where departures never recomputes
74250
74264
  * if it observes mapStore when it is flagged as non-observable.
74251
74265
  */
74252
- mapStore: wn.ref,
74266
+ mapStore: mn.ref,
74253
74267
  reactionDisposers: !1,
74254
74268
  selectedPlaces: Jp.struct,
74255
74269
  departures: Jp.struct
@@ -77854,8 +77868,8 @@ var ZO = {}, UP = { exports: {} };
77854
77868
  var De = Pe.value;
77855
77869
  De < 128 && ge.push(z(De));
77856
77870
  }
77857
- } catch (yn) {
77858
- nr = !0, oe = yn;
77871
+ } catch (vn) {
77872
+ nr = !0, oe = vn;
77859
77873
  } finally {
77860
77874
  try {
77861
77875
  !vr && xe.return && xe.return();
@@ -77872,8 +77886,8 @@ var ZO = {}, UP = { exports: {} };
77872
77886
  var Yr = Gt.value;
77873
77887
  Yr >= Ve && Yr < _t && (_t = Yr);
77874
77888
  }
77875
- } catch (yn) {
77876
- Bt = !0, jt = yn;
77889
+ } catch (vn) {
77890
+ Bt = !0, jt = vn;
77877
77891
  } finally {
77878
77892
  try {
77879
77893
  !bt && Qt.return && Qt.return();
@@ -77904,8 +77918,8 @@ var ZO = {}, UP = { exports: {} };
77904
77918
  ge.push(z(U(Fn, 0))), Vt = j(Dt, Tr, Ke == Se), Dt = 0, ++Ke;
77905
77919
  }
77906
77920
  }
77907
- } catch (yn) {
77908
- Vi = !0, Mr = yn;
77921
+ } catch (vn) {
77922
+ Vi = !0, Mr = vn;
77909
77923
  } finally {
77910
77924
  try {
77911
77925
  !$r && ur.return && ur.return();
@@ -86560,7 +86574,7 @@ const P7e = mw((r) => {
86560
86574
  /* @__PURE__ */ X.jsx(Aq, { children: /* @__PURE__ */ X.jsx(TF, { ...e }) })
86561
86575
  ), t;
86562
86576
  }, I7e = (r = {}) => {
86563
- const e = "phc_vZrwt3z6JmdPnErvTgZoazTAGlCRMiz6c2NqWtBt8qz", t = "https://ph-api.mappedin.com";
86577
+ const e = "phc_sRrjUwz9zicl4GeXtSnwcuKMr50SB76ma6NVi6zlPou", t = "https://ph-api.mappedin.com";
86564
86578
  xSe(r.captureEnabled ?? !0);
86565
86579
  const i = mf();
86566
86580
  if (!i.__loaded && e != null && t != null) {
@@ -86579,7 +86593,7 @@ const P7e = mw((r) => {
86579
86593
  }
86580
86594
  }, k7e = () => {
86581
86595
  let r = document.querySelector("meta[name=app-version]");
86582
- r == null && (r = document.createElement("meta"), r.name = "app-version", document.head.appendChild(r)), r.content = "0.24.4";
86596
+ r == null && (r = document.createElement("meta"), r.name = "app-version", document.head.appendChild(r)), r.content = "0.24.5";
86583
86597
  let e = document.querySelector("meta[name=viewport]");
86584
86598
  e == null && (e = document.createElement("meta"), e.name = "viewport", document.head.appendChild(e)), e.content = "width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no";
86585
86599
  }, R7e = (r) => {
@@ -4,6 +4,12 @@ import { MapView, Place, TCameraAnimationOptions, TEvents } from '../../../lib/s
4
4
  export declare const ZOOM_FACTOR = 1.025;
5
5
  export declare const TILT_FACTOR = 1.05;
6
6
  export declare const CAMERA_ANIMATION_OPTIONS: TCameraAnimationOptions;
7
+ type TPadding = {
8
+ top: number;
9
+ right: number;
10
+ bottom: number;
11
+ left: number;
12
+ };
7
13
  declare class CameraController {
8
14
  private rootStore;
9
15
  private mapStore;
@@ -14,6 +20,11 @@ declare class CameraController {
14
20
  * enough for most purposes
15
21
  */
16
22
  private defaultCameraByFloorId;
23
+ /**
24
+ * Some additional padding that can be set from the outside (i.e. self-serve editor) to affect how the camera moves.
25
+ * It is added the default padding in every state.
26
+ */
27
+ private externalPadding;
17
28
  zoom: number;
18
29
  isCameraMoving: boolean;
19
30
  isUserInteracting: boolean;
@@ -23,6 +34,7 @@ declare class CameraController {
23
34
  });
24
35
  private getPadding;
25
36
  get defaultZoom(): number;
37
+ setExternalPadding(padding: Partial<TPadding> | undefined): void;
26
38
  handleCameraChange(payload?: TEvents['camera-change']): void;
27
39
  handleUserInteractionStart(): void;
28
40
  handleUserInteractionEnd(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mappedin/viewer",
3
- "version": "0.24.5-eabdff2.0",
3
+ "version": "0.24.5",
4
4
  "type": "module",
5
5
  "browser": "./dist/index.js",
6
6
  "license": "UNLICENSED",