@mapsindoors/map-template 1.99.11 → 1.99.12

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.
@@ -736,7 +736,7 @@ function oH() {
736
736
  } };
737
737
  }
738
738
  }
739
- function Ge(v) {
739
+ function Ye(v) {
740
740
  v._valueTracker || (v._valueTracker = Ke(v));
741
741
  }
742
742
  function lt(v) {
@@ -3697,10 +3697,10 @@ Error generating stack: ` + ge.message + `
3697
3697
  }
3698
3698
  switch (L) {
3699
3699
  case "input":
3700
- Ge(H), Gt(H, ge, !0);
3700
+ Ye(H), Gt(H, ge, !0);
3701
3701
  break;
3702
3702
  case "textarea":
3703
- Ge(H), Xn(H);
3703
+ Ye(H), Xn(H);
3704
3704
  break;
3705
3705
  case "select":
3706
3706
  case "option":
@@ -3762,10 +3762,10 @@ Error generating stack: ` + ge.message + `
3762
3762
  }
3763
3763
  switch (L) {
3764
3764
  case "input":
3765
- Ge(v), Gt(v, H, !1);
3765
+ Ye(v), Gt(v, H, !1);
3766
3766
  break;
3767
3767
  case "textarea":
3768
- Ge(v), Xn(v);
3768
+ Ye(v), Xn(v);
3769
3769
  break;
3770
3770
  case "option":
3771
3771
  H.value != null && v.setAttribute("value", "" + je(H.value));
@@ -4585,7 +4585,7 @@ Error generating stack: ` + ge.message + `
4585
4585
  (As !== v || qi !== w) && (os = null, co = gn() + 500, Re(v, w));
4586
4586
  do
4587
4587
  try {
4588
- Ye();
4588
+ Ge();
4589
4589
  break;
4590
4590
  } catch (yt) {
4591
4591
  Ce(v, yt);
@@ -4863,7 +4863,7 @@ Error generating stack: ` + ge.message + `
4863
4863
  function Ue() {
4864
4864
  for (; rs !== null; ) tt(rs);
4865
4865
  }
4866
- function Ye() {
4866
+ function Ge() {
4867
4867
  for (; rs !== null && !St(); ) tt(rs);
4868
4868
  }
4869
4869
  function tt(v) {
@@ -6294,11 +6294,11 @@ var WH = ZH(function(e) {
6294
6294
  Y.prototype.modifyHash = function(Ot, Tt, tn) {
6295
6295
  return Ke(tn, Ot, Tt, this);
6296
6296
  };
6297
- var Ge = s.modify = function(Ot, Tt, tn) {
6297
+ var Ye = s.modify = function(Ot, Tt, tn) {
6298
6298
  return Ke(Ot, tn._config.hash(Tt), Tt, tn);
6299
6299
  };
6300
6300
  Y.prototype.modify = function(Ot, Tt) {
6301
- return Ge(Tt, Ot, this);
6301
+ return Ye(Tt, Ot, this);
6302
6302
  };
6303
6303
  var lt = s.setHash = function(Ot, Tt, tn, Ft) {
6304
6304
  return Ke(A(tn), Ot, Tt, Ft);
@@ -8539,8 +8539,8 @@ function I8(e) {
8539
8539
  if (lt != null)
8540
8540
  return lt.loadingLoadable.contents;
8541
8541
  }
8542
- const [Ke, Ge] = ce(Y, me, be);
8543
- if (Ke.state !== "loading" && ee(Y, me, be, Ke, Ge), Ke.state === "hasError")
8542
+ const [Ke, Ye] = ce(Y, me, be);
8543
+ if (Ke.state !== "loading" && ee(Y, me, be, Ke, Ye), Ke.state === "hasError")
8544
8544
  throw Ke.contents;
8545
8545
  return Ke.contents;
8546
8546
  }).catch((je) => {
@@ -8555,8 +8555,8 @@ function I8(e) {
8555
8555
  function Me(Y, G, me, Ae) {
8556
8556
  var be, De, je, et;
8557
8557
  if (ht(Y, Ae) || G.version === ((be = Y.getState()) === null || be === void 0 || (De = be.currentTree) === null || De === void 0 ? void 0 : De.version) || G.version === ((je = Y.getState()) === null || je === void 0 || (et = je.nextTree) === null || et === void 0 ? void 0 : et.version)) {
8558
- var Ke, Ge, lt;
8559
- FG(s, me, Y, (Ke = (Ge = Y.getState()) === null || Ge === void 0 || (lt = Ge.nextTree) === null || lt === void 0 ? void 0 : lt.version) !== null && Ke !== void 0 ? Ke : Y.getState().currentTree.version);
8558
+ var Ke, Ye, lt;
8559
+ FG(s, me, Y, (Ke = (Ye = Y.getState()) === null || Ye === void 0 || (lt = Ye.nextTree) === null || lt === void 0 ? void 0 : lt.version) !== null && Ke !== void 0 ? Ke : Y.getState().currentTree.version);
8560
8560
  }
8561
8561
  for (const ft of me)
8562
8562
  _.add(ft);
@@ -8567,7 +8567,7 @@ function I8(e) {
8567
8567
  be = !1;
8568
8568
  };
8569
8569
  let je, et = !1, Ke;
8570
- const Ge = {
8570
+ const Ye = {
8571
8571
  loadingDepKey: null,
8572
8572
  loadingDepPromise: null
8573
8573
  }, lt = /* @__PURE__ */ new Map();
@@ -8581,7 +8581,7 @@ function I8(e) {
8581
8581
  case "hasError":
8582
8582
  throw Bt.contents;
8583
8583
  case "loading":
8584
- throw Ge.loadingDepKey = Mt, Ge.loadingDepPromise = Bt.contents, Bt.contents;
8584
+ throw Ye.loadingDepKey = Mt, Ye.loadingDepPromise = Bt.contents, Bt.contents;
8585
8585
  }
8586
8586
  throw Ur("Invalid Loadable state");
8587
8587
  }
@@ -8602,9 +8602,9 @@ function I8(e) {
8602
8602
  je = c({
8603
8603
  get: ft,
8604
8604
  getCallback: jt
8605
- }), je = QG(je) ? ft(je) : je, jG(je) && (je.state === "hasError" && (et = !0), je = je.contents), Jo(je) ? je = ne(Y, je, G, lt, me, Ge).finally(De) : De(), je = je instanceof w8 ? je.value : je;
8605
+ }), je = QG(je) ? ft(je) : je, jG(je) && (je.state === "hasError" && (et = !0), je = je.contents), Jo(je) ? je = ne(Y, je, G, lt, me, Ye).finally(De) : De(), je = je instanceof w8 ? je.value : je;
8606
8606
  } catch (Mt) {
8607
- je = Mt, Jo(je) ? je = ve(Y, je, G, lt, me, Ge).finally(De) : (et = !0, De());
8607
+ je = Mt, Jo(je) ? je = ve(Y, je, G, lt, me, Ye).finally(De) : (et = !0, De());
8608
8608
  }
8609
8609
  return et ? Ke = zv(je) : Jo(je) ? Ke = RG(je) : Ke = _M(je), Ae = !1, $e(Y, me, lt), Me(Y, G, new Set(lt.keys()), me), [Ke, lt];
8610
8610
  }
@@ -8765,13 +8765,13 @@ function I8(e) {
8765
8765
  function Ke(lt) {
8766
8766
  et(lt, UG);
8767
8767
  }
8768
- const Ge = y({
8768
+ const Ye = y({
8769
8769
  set: et,
8770
8770
  get: je,
8771
8771
  reset: Ke
8772
8772
  }, Ae);
8773
- if (Ge !== void 0)
8774
- throw Jo(Ge) ? Ur("Recoil: Async selector sets are not currently supported.") : Ur("Recoil: selector set should be a void function.");
8773
+ if (Ye !== void 0)
8774
+ throw Jo(Ye) ? Ur("Recoil: Async selector sets are not currently supported.") : Ur("Recoil: selector set should be a void function.");
8775
8775
  return be = !0, De;
8776
8776
  },
8777
8777
  init: U,
@@ -8933,9 +8933,9 @@ function iZ(e) {
8933
8933
  De || (oc(), De = be);
8934
8934
  const je = (Ae = be.atomValues.get(n)) !== null && Ae !== void 0 ? Ae : _;
8935
8935
  if (je.state === "hasValue") {
8936
- var et, Ke, Ge, lt;
8936
+ var et, Ke, Ye, lt;
8937
8937
  const ft = je.contents, jt = (et = De.atomValues.get(n)) !== null && et !== void 0 ? et : _, Mt = jt.state === "hasValue" ? jt.contents : sm;
8938
- ((Ke = Lt) === null || Ke === void 0 ? void 0 : Ke.effect) !== P || ((Ge = Lt) === null || Ge === void 0 ? void 0 : Ge.value) !== ft ? X(ft, Mt, !be.atomValues.has(n)) : ((lt = Lt) === null || lt === void 0 ? void 0 : lt.effect) === P && (Lt = null);
8938
+ ((Ke = Lt) === null || Ke === void 0 ? void 0 : Ke.effect) !== P || ((Ye = Lt) === null || Ye === void 0 ? void 0 : Ye.value) !== ft ? X(ft, Mt, !be.atomValues.has(n)) : ((lt = Lt) === null || lt === void 0 ? void 0 : lt.effect) === P && (Lt = null);
8939
8939
  }
8940
8940
  }, n);
8941
8941
  T.set(K, [...(Y = T.get(K)) !== null && Y !== void 0 ? Y : [], G]);
@@ -10496,9 +10496,9 @@ var Q6, $6, wM, H0, Bv = { exports: {} }, $8 = e2((Q6 || (Q6 = 1, $6 = Bv.export
10496
10496
  var De = !1;
10497
10497
  if (Ae && (De = ze._nextBeginningIndexes[me - 1] === me), P) var je = j, et = X;
10498
10498
  else je = z, et = E;
10499
- var Ke = 0, Ge = 0;
10500
- for (be = 1; be < wt; ++be) je[be] - je[be - 1] != 1 && (Ke -= je[be], ++Ge);
10501
- if (Ke -= (je[wt - 1] - je[0] - (wt - 1) + 12) * Ge, je[0] !== 0 && (Ke -= je[0] * je[0] * 0.2), P) {
10499
+ var Ke = 0, Ye = 0;
10500
+ for (be = 1; be < wt; ++be) je[be] - je[be - 1] != 1 && (Ke -= je[be], ++Ye);
10501
+ if (Ke -= (je[wt - 1] - je[0] - (wt - 1) + 12) * Ye, je[0] !== 0 && (Ke -= je[0] * je[0] * 0.2), P) {
10502
10502
  var lt = 1;
10503
10503
  for (be = Y[0]; be < Lt; be = Y[be]) ++lt;
10504
10504
  lt > 24 && (Ke *= 10 * (lt - 24));
@@ -10580,19 +10580,19 @@ var Q6, $6, wM, H0, Bv = { exports: {} }, $8 = e2((Q6 || (Q6 = 1, $6 = Bv.export
10580
10580
  return (Qe & ze._bitflags) !== Qe ? ce : d(we, ze);
10581
10581
  }, go: (Ee, ze, we) => {
10582
10582
  if (Ee == "farzher") return [{ target: "farzher was here (^-^*)/", score: 0, _indexes: [0], obj: ze ? ze[0] : ce }];
10583
- if (!Ee) return we && we.all ? ((Ke, Ge, lt) => {
10583
+ if (!Ee) return we && we.all ? ((Ke, Ye, lt) => {
10584
10584
  var ft = [];
10585
- ft.total = Ge.length;
10585
+ ft.total = Ye.length;
10586
10586
  var jt = lt && lt.limit || he;
10587
10587
  if (lt && lt.key) {
10588
- for (var Mt = 0; Mt < Ge.length; Mt++) if ((In = $(Bt = Ge[Mt], lt.key)) && (ee(In) || (In = s(In)), In.score = fe, In._indexes.len = 0, ft.push({ target: In.target, _targetLower: "", _targetLowerCodes: ce, _nextBeginningIndexes: ce, _bitflags: 0, score: In.score, _indexes: ce, obj: Bt }), ft.length >= jt)) return ft;
10589
- } else if (lt && lt.keys) for (Mt = 0; Mt < Ge.length; Mt++) {
10590
- for (var Bt = Ge[Mt], mn = new Array(lt.keys.length), Gt = lt.keys.length - 1; Gt >= 0; --Gt) (In = $(Bt, lt.keys[Gt])) ? (ee(In) || (In = s(In)), In.score = fe, In._indexes.len = 0, mn[Gt] = In) : mn[Gt] = ce;
10588
+ for (var Mt = 0; Mt < Ye.length; Mt++) if ((In = $(Bt = Ye[Mt], lt.key)) && (ee(In) || (In = s(In)), In.score = fe, In._indexes.len = 0, ft.push({ target: In.target, _targetLower: "", _targetLowerCodes: ce, _nextBeginningIndexes: ce, _bitflags: 0, score: In.score, _indexes: ce, obj: Bt }), ft.length >= jt)) return ft;
10589
+ } else if (lt && lt.keys) for (Mt = 0; Mt < Ye.length; Mt++) {
10590
+ for (var Bt = Ye[Mt], mn = new Array(lt.keys.length), Gt = lt.keys.length - 1; Gt >= 0; --Gt) (In = $(Bt, lt.keys[Gt])) ? (ee(In) || (In = s(In)), In.score = fe, In._indexes.len = 0, mn[Gt] = In) : mn[Gt] = ce;
10591
10591
  if (mn.obj = Bt, mn.score = fe, ft.push(mn), ft.length >= jt) return ft;
10592
10592
  }
10593
- else for (Mt = 0; Mt < Ge.length; Mt++) {
10593
+ else for (Mt = 0; Mt < Ye.length; Mt++) {
10594
10594
  var In;
10595
- if ((In = Ge[Mt]) && (ee(In) || (In = s(In)), In.score = fe, In._indexes.len = 0, ft.push(In), ft.length >= jt)) return ft;
10595
+ if ((In = Ye[Mt]) && (ee(In) || (In = s(In)), In.score = fe, In._indexes.len = 0, ft.push(In), ft.length >= jt)) return ft;
10596
10596
  }
10597
10597
  return ft;
10598
10598
  })(0, ze, we) : ae;
@@ -10618,7 +10618,7 @@ var Q6, $6, wM, H0, Bv = { exports: {} }, $8 = e2((Q6 || (Q6 = 1, $6 = Bv.export
10618
10618
  if (typeof ze == "function") return ((E, P) => {
10619
10619
  if (E === ce) return ce;
10620
10620
  var X = E.target, Y = X.length, G = E._indexes;
10621
- G = G.slice(0, G.len).sort(((Ke, Ge) => Ke - Ge));
10621
+ G = G.slice(0, G.len).sort(((Ke, Ye) => Ke - Ye));
10622
10622
  for (var me = "", Ae = 0, be = 0, De = !1, je = (E = [], 0); je < Y; ++je) {
10623
10623
  var et = X[je];
10624
10624
  if (G[be] === je) {
@@ -11256,13 +11256,13 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
11256
11256
  return P(this, Y, arguments.length > 1 ? arguments[1] : void 0);
11257
11257
  };
11258
11258
  }, 283: function(se, pe, E) {
11259
- var P = E(9504), X = E(9039), Y = E(4901), G = E(9297), me = E(3724), Ae = E(350).CONFIGURABLE, be = E(3706), De = E(1181), je = De.enforce, et = De.get, Ke = String, Ge = Object.defineProperty, lt = P("".slice), ft = P("".replace), jt = P([].join), Mt = me && !X((function() {
11260
- return Ge((function() {
11259
+ var P = E(9504), X = E(9039), Y = E(4901), G = E(9297), me = E(3724), Ae = E(350).CONFIGURABLE, be = E(3706), De = E(1181), je = De.enforce, et = De.get, Ke = String, Ye = Object.defineProperty, lt = P("".slice), ft = P("".replace), jt = P([].join), Mt = me && !X((function() {
11260
+ return Ye((function() {
11261
11261
  }), "length", { value: 8 }).length !== 8;
11262
11262
  })), Bt = String(String).split("String"), mn = se.exports = function(Gt, In, yn) {
11263
- lt(Ke(In), 0, 7) === "Symbol(" && (In = "[" + ft(Ke(In), /^Symbol\(([^)]*)\).*$/, "$1") + "]"), yn && yn.getter && (In = "get " + In), yn && yn.setter && (In = "set " + In), (!G(Gt, "name") || Ae && Gt.name !== In) && (me ? Ge(Gt, "name", { value: In, configurable: !0 }) : Gt.name = In), Mt && yn && G(yn, "arity") && Gt.length !== yn.arity && Ge(Gt, "length", { value: yn.arity });
11263
+ lt(Ke(In), 0, 7) === "Symbol(" && (In = "[" + ft(Ke(In), /^Symbol\(([^)]*)\).*$/, "$1") + "]"), yn && yn.getter && (In = "get " + In), yn && yn.setter && (In = "set " + In), (!G(Gt, "name") || Ae && Gt.name !== In) && (me ? Ye(Gt, "name", { value: In, configurable: !0 }) : Gt.name = In), Mt && yn && G(yn, "arity") && Gt.length !== yn.arity && Ye(Gt, "length", { value: yn.arity });
11264
11264
  try {
11265
- yn && G(yn, "constructor") && yn.constructor ? me && Ge(Gt, "prototype", { writable: !1 }) : Gt.prototype && (Gt.prototype = void 0);
11265
+ yn && G(yn, "constructor") && yn.constructor ? me && Ye(Gt, "prototype", { writable: !1 }) : Gt.prototype && (Gt.prototype = void 0);
11266
11266
  } catch {
11267
11267
  }
11268
11268
  var ln = je(Gt);
@@ -11300,7 +11300,7 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
11300
11300
  }, 566: function(se, pe, E) {
11301
11301
  var P = E(9504), X = E(9306), Y = E(34), G = E(9297), me = E(7680), Ae = E(616), be = Function, De = P([].concat), je = P([].join), et = {};
11302
11302
  se.exports = Ae ? be.bind : function(Ke) {
11303
- var Ge = X(this), lt = Ge.prototype, ft = me(arguments, 1), jt = function() {
11303
+ var Ye = X(this), lt = Ye.prototype, ft = me(arguments, 1), jt = function() {
11304
11304
  var Mt = De(ft, me(arguments));
11305
11305
  return this instanceof jt ? (function(Bt, mn, Gt) {
11306
11306
  if (!G(et, mn)) {
@@ -11308,7 +11308,7 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
11308
11308
  et[mn] = be("C,a", "return new C(" + je(In, ",") + ")");
11309
11309
  }
11310
11310
  return et[mn](Bt, Gt);
11311
- })(Ge, Mt.length, Mt) : Ge.apply(Ke, Mt);
11311
+ })(Ye, Mt.length, Mt) : Ye.apply(Ke, Mt);
11312
11312
  };
11313
11313
  return Y(lt) && (jt.prototype = lt), jt;
11314
11314
  };
@@ -11364,7 +11364,7 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
11364
11364
  return (X > 0 ? E : pe)(X);
11365
11365
  };
11366
11366
  }, 744: function(se, pe, E) {
11367
- var P = E(9565), X = E(9504), Y = E(9228), G = E(8551), me = E(34), Ae = E(7750), be = E(2293), De = E(7829), je = E(8014), et = E(655), Ke = E(5966), Ge = E(6682), lt = E(8429), ft = E(9039), jt = lt.UNSUPPORTED_Y, Mt = Math.min, Bt = X([].push), mn = X("".slice), Gt = !ft((function() {
11367
+ var P = E(9565), X = E(9504), Y = E(9228), G = E(8551), me = E(34), Ae = E(7750), be = E(2293), De = E(7829), je = E(8014), et = E(655), Ke = E(5966), Ye = E(6682), lt = E(8429), ft = E(9039), jt = lt.UNSUPPORTED_Y, Mt = Math.min, Bt = X([].push), mn = X("".slice), Gt = !ft((function() {
11368
11368
  var yn = /(?:)/, ln = yn.exec;
11369
11369
  yn.exec = function() {
11370
11370
  return ln.apply(this, arguments);
@@ -11387,10 +11387,10 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
11387
11387
  }
11388
11388
  var Zn = be(Ct, RegExp), Sn = Ct.unicode, mi = new Zn(jt ? "^(?:" + Ct.source + ")" : Ct, (Ct.ignoreCase ? "i" : "") + (Ct.multiline ? "m" : "") + (Ct.unicode ? "u" : "") + (jt ? "g" : "y")), di = Xn === void 0 ? 4294967295 : Xn >>> 0;
11389
11389
  if (di === 0) return [];
11390
- if (Xt.length === 0) return Ge(mi, Xt) === null ? [Xt] : [];
11390
+ if (Xt.length === 0) return Ye(mi, Xt) === null ? [Xt] : [];
11391
11391
  for (var vi = 0, yi = 0, Ot = []; yi < Xt.length; ) {
11392
11392
  mi.lastIndex = jt ? 0 : yi;
11393
- var Tt, tn = Ge(mi, jt ? mn(Xt, yi) : Xt);
11393
+ var Tt, tn = Ye(mi, jt ? mn(Xt, yi) : Xt);
11394
11394
  if (tn === null || (Tt = Mt(je(mi.lastIndex + (jt ? yi : 0)), Xt.length)) === vi) yi = De(Xt, yi, Sn);
11395
11395
  else {
11396
11396
  if (Bt(Ot, mn(Xt, vi, yi)), Ot.length === di) return Ot;
@@ -11416,7 +11416,7 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
11416
11416
  return P(G) && ((me = G[Y]) !== void 0 ? !!me : X(G) === "RegExp");
11417
11417
  };
11418
11418
  }, 825: function(se, pe, E) {
11419
- var P = E(6518), X = E(7751), Y = E(8745), G = E(566), me = E(5548), Ae = E(8551), be = E(34), De = E(2360), je = E(9039), et = X("Reflect", "construct"), Ke = Object.prototype, Ge = [].push, lt = je((function() {
11419
+ var P = E(6518), X = E(7751), Y = E(8745), G = E(566), me = E(5548), Ae = E(8551), be = E(34), De = E(2360), je = E(9039), et = X("Reflect", "construct"), Ke = Object.prototype, Ye = [].push, lt = je((function() {
11420
11420
  function Mt() {
11421
11421
  }
11422
11422
  return !(et((function() {
@@ -11443,7 +11443,7 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
11443
11443
  return new Mt(Bt[0], Bt[1], Bt[2], Bt[3]);
11444
11444
  }
11445
11445
  var Gt = [null];
11446
- return Y(Ge, Gt, Bt), new (Y(G, Mt, Gt))();
11446
+ return Y(Ye, Gt, Bt), new (Y(G, Mt, Gt))();
11447
11447
  }
11448
11448
  var In = mn.prototype, yn = De(be(In) ? In : Ke), ln = Y(Mt, yn, Bt);
11449
11449
  return be(ln) ? ln : yn;
@@ -11455,19 +11455,19 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
11455
11455
  };
11456
11456
  }, 926: function(se, pe, E) {
11457
11457
  var P = E(9306), X = E(8981), Y = E(7055), G = E(6198), me = TypeError, Ae = "Reduce of empty array with no initial value", be = function(De) {
11458
- return function(je, et, Ke, Ge) {
11458
+ return function(je, et, Ke, Ye) {
11459
11459
  var lt = X(je), ft = Y(lt), jt = G(lt);
11460
11460
  if (P(et), jt === 0 && Ke < 2) throw new me(Ae);
11461
11461
  var Mt = De ? jt - 1 : 0, Bt = De ? -1 : 1;
11462
11462
  if (Ke < 2) for (; ; ) {
11463
11463
  if (Mt in ft) {
11464
- Ge = ft[Mt], Mt += Bt;
11464
+ Ye = ft[Mt], Mt += Bt;
11465
11465
  break;
11466
11466
  }
11467
11467
  if (Mt += Bt, De ? Mt < 0 : jt <= Mt) throw new me(Ae);
11468
11468
  }
11469
- for (; De ? Mt >= 0 : jt > Mt; Mt += Bt) Mt in ft && (Ge = et(Ge, ft[Mt], Mt, lt));
11470
- return Ge;
11469
+ for (; De ? Mt >= 0 : jt > Mt; Mt += Bt) Mt in ft && (Ye = et(Ye, ft[Mt], Mt, lt));
11470
+ return Ye;
11471
11471
  };
11472
11472
  };
11473
11473
  se.exports = { left: be(!1), right: be(!0) };
@@ -11492,7 +11492,7 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
11492
11492
  return P(Y, X);
11493
11493
  };
11494
11494
  }, 1088: function(se, pe, E) {
11495
- var P = E(6518), X = E(9565), Y = E(6395), G = E(350), me = E(4901), Ae = E(3994), be = E(2787), De = E(2967), je = E(687), et = E(6699), Ke = E(6840), Ge = E(8227), lt = E(6269), ft = E(7657), jt = G.PROPER, Mt = G.CONFIGURABLE, Bt = ft.IteratorPrototype, mn = ft.BUGGY_SAFARI_ITERATORS, Gt = Ge("iterator"), In = "keys", yn = "values", ln = "entries", Vn = function() {
11495
+ var P = E(6518), X = E(9565), Y = E(6395), G = E(350), me = E(4901), Ae = E(3994), be = E(2787), De = E(2967), je = E(687), et = E(6699), Ke = E(6840), Ye = E(8227), lt = E(6269), ft = E(7657), jt = G.PROPER, Mt = G.CONFIGURABLE, Bt = ft.IteratorPrototype, mn = ft.BUGGY_SAFARI_ITERATORS, Gt = Ye("iterator"), In = "keys", yn = "values", ln = "entries", Vn = function() {
11496
11496
  return this;
11497
11497
  };
11498
11498
  se.exports = function(ei, Qn, Xn, Ct, Xt, Yn, Zn) {
@@ -11519,11 +11519,11 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
11519
11519
  return Y && !Zn || Tt[Gt] === Ft || Ke(Tt, Gt, Ft, { name: Xt }), lt[Qn] = Ft, mi;
11520
11520
  };
11521
11521
  }, 1181: function(se, pe, E) {
11522
- var P, X, Y, G = E(8622), me = E(4576), Ae = E(34), be = E(6699), De = E(9297), je = E(7629), et = E(6119), Ke = E(421), Ge = "Object already initialized", lt = me.TypeError;
11522
+ var P, X, Y, G = E(8622), me = E(4576), Ae = E(34), be = E(6699), De = E(9297), je = E(7629), et = E(6119), Ke = E(421), Ye = "Object already initialized", lt = me.TypeError;
11523
11523
  if (G || je.state) {
11524
11524
  var ft = je.state || (je.state = new me.WeakMap());
11525
11525
  ft.get = ft.get, ft.has = ft.has, ft.set = ft.set, P = function(Mt, Bt) {
11526
- if (ft.has(Mt)) throw new lt(Ge);
11526
+ if (ft.has(Mt)) throw new lt(Ye);
11527
11527
  return Bt.facade = Mt, ft.set(Mt, Bt), Bt;
11528
11528
  }, X = function(Mt) {
11529
11529
  return ft.get(Mt) || {};
@@ -11533,7 +11533,7 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
11533
11533
  } else {
11534
11534
  var jt = et("state");
11535
11535
  Ke[jt] = !0, P = function(Mt, Bt) {
11536
- if (De(Mt, jt)) throw new lt(Ge);
11536
+ if (De(Mt, jt)) throw new lt(Ye);
11537
11537
  return Bt.facade = Mt, be(Mt, jt, Bt), Bt;
11538
11538
  }, X = function(Mt) {
11539
11539
  return De(Mt, jt) ? Mt[jt] : {};
@@ -11556,7 +11556,7 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
11556
11556
  }, 1278: function(se, pe, E) {
11557
11557
  var P = E(6518), X = E(3724), Y = E(5031), G = E(5397), me = E(7347), Ae = E(4659);
11558
11558
  P({ target: "Object", stat: !0, sham: !X }, { getOwnPropertyDescriptors: function(be) {
11559
- for (var De, je, et = G(be), Ke = me.f, Ge = Y(et), lt = {}, ft = 0; Ge.length > ft; ) (je = Ke(et, De = Ge[ft++])) !== void 0 && Ae(lt, De, je);
11559
+ for (var De, je, et = G(be), Ke = me.f, Ye = Y(et), lt = {}, ft = 0; Ye.length > ft; ) (je = Ke(et, De = Ye[ft++])) !== void 0 && Ae(lt, De, je);
11560
11560
  return lt;
11561
11561
  } });
11562
11562
  }, 1291: function(se, pe, E) {
@@ -11610,12 +11610,12 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
11610
11610
  } });
11611
11611
  }, 1761: function(se, pe, E) {
11612
11612
  var P = E(9565), X = E(9228), Y = E(8551), G = E(34), me = E(8014), Ae = E(655), be = E(7750), De = E(5966), je = E(7829), et = E(6682);
11613
- X("match", (function(Ke, Ge, lt) {
11613
+ X("match", (function(Ke, Ye, lt) {
11614
11614
  return [function(ft) {
11615
11615
  var jt = be(this), Mt = G(ft) ? De(ft, Ke) : void 0;
11616
11616
  return Mt ? P(Mt, ft, jt) : new RegExp(ft)[Ke](Ae(jt));
11617
11617
  }, function(ft) {
11618
- var jt = Y(this), Mt = Ae(ft), Bt = lt(Ge, jt, Mt);
11618
+ var jt = Y(this), Mt = Ae(ft), Bt = lt(Ye, jt, Mt);
11619
11619
  if (Bt.done) return Bt.value;
11620
11620
  if (!jt.global) return et(jt, Mt);
11621
11621
  var mn = jt.unicode;
@@ -11630,10 +11630,10 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
11630
11630
  }, 1828: function(se, pe, E) {
11631
11631
  var P = E(9504), X = E(9297), Y = E(5397), G = E(9617).indexOf, me = E(421), Ae = P([].push);
11632
11632
  se.exports = function(be, De) {
11633
- var je, et = Y(be), Ke = 0, Ge = [];
11634
- for (je in et) !X(me, je) && X(et, je) && Ae(Ge, je);
11635
- for (; De.length > Ke; ) X(et, je = De[Ke++]) && (~G(Ge, je) || Ae(Ge, je));
11636
- return Ge;
11633
+ var je, et = Y(be), Ke = 0, Ye = [];
11634
+ for (je in et) !X(me, je) && X(et, je) && Ae(Ye, je);
11635
+ for (; De.length > Ke; ) X(et, je = De[Ke++]) && (~G(Ye, je) || Ae(Ye, je));
11636
+ return Ye;
11637
11637
  };
11638
11638
  }, 1951: function(se, pe, E) {
11639
11639
  var P = E(8227);
@@ -11691,7 +11691,7 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
11691
11691
  return De === void 0 || Y(be = P(De)[G]) ? Ae : X(be);
11692
11692
  };
11693
11693
  }, 2360: function(se, pe, E) {
11694
- var P, X = E(8551), Y = E(6801), G = E(8727), me = E(421), Ae = E(397), be = E(4055), De = E(6119), je = "prototype", et = "script", Ke = De("IE_PROTO"), Ge = function() {
11694
+ var P, X = E(8551), Y = E(6801), G = E(8727), me = E(421), Ae = E(397), be = E(4055), De = E(6119), je = "prototype", et = "script", Ke = De("IE_PROTO"), Ye = function() {
11695
11695
  }, lt = function(Mt) {
11696
11696
  return "<" + et + ">" + Mt + "</" + et + ">";
11697
11697
  }, ft = function(Mt) {
@@ -11710,12 +11710,12 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
11710
11710
  };
11711
11711
  me[Ke] = !0, se.exports = Object.create || function(Mt, Bt) {
11712
11712
  var mn;
11713
- return Mt !== null ? (Ge[je] = X(Mt), mn = new Ge(), Ge[je] = null, mn[Ke] = Mt) : mn = jt(), Bt === void 0 ? mn : Y.f(mn, Bt);
11713
+ return Mt !== null ? (Ye[je] = X(Mt), mn = new Ye(), Ye[je] = null, mn[Ke] = Mt) : mn = jt(), Bt === void 0 ? mn : Y.f(mn, Bt);
11714
11714
  };
11715
11715
  }, 2478: function(se, pe, E) {
11716
11716
  var P = E(9504), X = E(8981), Y = Math.floor, G = P("".charAt), me = P("".replace), Ae = P("".slice), be = /\$([$&'`]|\d{1,2}|<[^>]*>)/g, De = /\$([$&'`]|\d{1,2})/g;
11717
- se.exports = function(je, et, Ke, Ge, lt, ft) {
11718
- var jt = Ke + je.length, Mt = Ge.length, Bt = De;
11717
+ se.exports = function(je, et, Ke, Ye, lt, ft) {
11718
+ var jt = Ke + je.length, Mt = Ye.length, Bt = De;
11719
11719
  return lt !== void 0 && (lt = X(lt), Bt = be), me(ft, Bt, (function(mn, Gt) {
11720
11720
  var In;
11721
11721
  switch (G(Gt, 0)) {
@@ -11735,9 +11735,9 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
11735
11735
  if (yn === 0) return mn;
11736
11736
  if (yn > Mt) {
11737
11737
  var ln = Y(yn / 10);
11738
- return ln === 0 ? mn : ln <= Mt ? Ge[ln - 1] === void 0 ? G(Gt, 1) : Ge[ln - 1] + G(Gt, 1) : mn;
11738
+ return ln === 0 ? mn : ln <= Mt ? Ye[ln - 1] === void 0 ? G(Gt, 1) : Ye[ln - 1] + G(Gt, 1) : mn;
11739
11739
  }
11740
- In = Ge[yn - 1];
11740
+ In = Ye[yn - 1];
11741
11741
  }
11742
11742
  return In === void 0 ? "" : In;
11743
11743
  }));
@@ -11774,9 +11774,9 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
11774
11774
  var P = E(9565), X = E(34), Y = E(757), G = E(5966), me = E(4270), Ae = E(8227), be = TypeError, De = Ae("toPrimitive");
11775
11775
  se.exports = function(je, et) {
11776
11776
  if (!X(je) || Y(je)) return je;
11777
- var Ke, Ge = G(je, De);
11778
- if (Ge) {
11779
- if (et === void 0 && (et = "default"), Ke = P(Ge, je, et), !X(Ke) || Y(Ke)) return Ke;
11777
+ var Ke, Ye = G(je, De);
11778
+ if (Ye) {
11779
+ if (et === void 0 && (et = "default"), Ke = P(Ye, je, et), !X(Ke) || Y(Ke)) return Ke;
11780
11780
  throw new be("Can't convert object to primitive value");
11781
11781
  }
11782
11782
  return et === void 0 && (et = "number"), me(je, et);
@@ -11801,11 +11801,11 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
11801
11801
  var P = E(4576).navigator, X = P && P.userAgent;
11802
11802
  se.exports = X ? String(X) : "";
11803
11803
  }, 2892: function(se, pe, E) {
11804
- var P = E(6518), X = E(6395), Y = E(3724), G = E(4576), me = E(9167), Ae = E(9504), be = E(2796), De = E(9297), je = E(3167), et = E(1625), Ke = E(757), Ge = E(2777), lt = E(9039), ft = E(8480).f, jt = E(7347).f, Mt = E(4913).f, Bt = E(1240), mn = E(3802).trim, Gt = "Number", In = G[Gt], yn = me[Gt], ln = In.prototype, Vn = G.TypeError, ei = Ae("".slice), Qn = Ae("".charCodeAt), Xn = be(Gt, !In(" 0o1") || !In("0b1") || In("+0x1")), Ct = function(Yn) {
11804
+ var P = E(6518), X = E(6395), Y = E(3724), G = E(4576), me = E(9167), Ae = E(9504), be = E(2796), De = E(9297), je = E(3167), et = E(1625), Ke = E(757), Ye = E(2777), lt = E(9039), ft = E(8480).f, jt = E(7347).f, Mt = E(4913).f, Bt = E(1240), mn = E(3802).trim, Gt = "Number", In = G[Gt], yn = me[Gt], ln = In.prototype, Vn = G.TypeError, ei = Ae("".slice), Qn = Ae("".charCodeAt), Xn = be(Gt, !In(" 0o1") || !In("0b1") || In("+0x1")), Ct = function(Yn) {
11805
11805
  var Zn, Sn = arguments.length < 1 ? 0 : In((function(mi) {
11806
- var di = Ge(mi, "number");
11806
+ var di = Ye(mi, "number");
11807
11807
  return typeof di == "bigint" ? di : (function(vi) {
11808
- var yi, Ot, Tt, tn, Ft, dn, Tn, An, Rn = Ge(vi, "number");
11808
+ var yi, Ot, Tt, tn, Ft, dn, Tn, An, Rn = Ye(vi, "number");
11809
11809
  if (Ke(Rn)) throw new Vn("Cannot convert a Symbol value to a number");
11810
11810
  if (typeof Rn == "string" && Rn.length > 2) {
11811
11811
  if (Rn = mn(Rn), (yi = Qn(Rn, 0)) === 43 || yi === 45) {
@@ -11840,14 +11840,14 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
11840
11840
  };
11841
11841
  X && yn && Xt(me[Gt], yn), (Xn || X) && Xt(me[Gt], In);
11842
11842
  }, 2953: function(se, pe, E) {
11843
- var P = E(4576), X = E(7400), Y = E(9296), G = E(3792), me = E(6699), Ae = E(687), be = E(8227)("iterator"), De = G.values, je = function(Ke, Ge) {
11843
+ var P = E(4576), X = E(7400), Y = E(9296), G = E(3792), me = E(6699), Ae = E(687), be = E(8227)("iterator"), De = G.values, je = function(Ke, Ye) {
11844
11844
  if (Ke) {
11845
11845
  if (Ke[be] !== De) try {
11846
11846
  me(Ke, be, De);
11847
11847
  } catch {
11848
11848
  Ke[be] = De;
11849
11849
  }
11850
- if (Ae(Ke, Ge, !0), X[Ge]) {
11850
+ if (Ae(Ke, Ye, !0), X[Ye]) {
11851
11851
  for (var lt in G) if (Ke[lt] !== G[lt]) try {
11852
11852
  me(Ke, lt, G[lt]);
11853
11853
  } catch {
@@ -11871,7 +11871,7 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
11871
11871
  };
11872
11872
  })() : void 0);
11873
11873
  }, 3110: function(se, pe, E) {
11874
- var P = E(6518), X = E(7751), Y = E(8745), G = E(9565), me = E(9504), Ae = E(9039), be = E(4901), De = E(757), je = E(7680), et = E(6933), Ke = E(4495), Ge = String, lt = X("JSON", "stringify"), ft = me(/./.exec), jt = me("".charAt), Mt = me("".charCodeAt), Bt = me("".replace), mn = me(1 .toString), Gt = /[\uD800-\uDFFF]/g, In = /^[\uD800-\uDBFF]$/, yn = /^[\uDC00-\uDFFF]$/, ln = !Ke || Ae((function() {
11874
+ var P = E(6518), X = E(7751), Y = E(8745), G = E(9565), me = E(9504), Ae = E(9039), be = E(4901), De = E(757), je = E(7680), et = E(6933), Ke = E(4495), Ye = String, lt = X("JSON", "stringify"), ft = me(/./.exec), jt = me("".charAt), Mt = me("".charCodeAt), Bt = me("".replace), mn = me(1 .toString), Gt = /[\uD800-\uDFFF]/g, In = /^[\uD800-\uDBFF]$/, yn = /^[\uDC00-\uDFFF]$/, ln = !Ke || Ae((function() {
11875
11875
  var Xn = X("Symbol")("stringify detection");
11876
11876
  return lt([Xn]) !== "[null]" || lt({ a: Xn }) !== "{}" || lt(Object(Xn)) !== "{}";
11877
11877
  })), Vn = Ae((function() {
@@ -11879,7 +11879,7 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
11879
11879
  })), ei = function(Xn, Ct) {
11880
11880
  var Xt = je(arguments), Yn = et(Ct);
11881
11881
  if (be(Yn) || Xn !== void 0 && !De(Xn)) return Xt[1] = function(Zn, Sn) {
11882
- if (be(Yn) && (Sn = G(Yn, this, Ge(Zn), Sn)), !De(Sn)) return Sn;
11882
+ if (be(Yn) && (Sn = G(Yn, this, Ye(Zn), Sn)), !De(Sn)) return Sn;
11883
11883
  }, Y(lt, null, Xt);
11884
11884
  }, Qn = function(Xn, Ct, Xt) {
11885
11885
  var Yn = jt(Xt, Ct - 1), Zn = jt(Xt, Ct + 1);
@@ -11928,7 +11928,7 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
11928
11928
  };
11929
11929
  }, 3517: function(se, pe, E) {
11930
11930
  var P = E(9504), X = E(9039), Y = E(4901), G = E(6955), me = E(7751), Ae = E(3706), be = function() {
11931
- }, De = me("Reflect", "construct"), je = /^\s*(?:class|function)\b/, et = P(je.exec), Ke = !je.test(be), Ge = function(ft) {
11931
+ }, De = me("Reflect", "construct"), je = /^\s*(?:class|function)\b/, et = P(je.exec), Ke = !je.test(be), Ye = function(ft) {
11932
11932
  if (!Y(ft)) return !1;
11933
11933
  try {
11934
11934
  return De(be, [], ft), !0;
@@ -11951,10 +11951,10 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
11951
11951
  };
11952
11952
  lt.sham = !0, se.exports = !De || X((function() {
11953
11953
  var ft;
11954
- return Ge(Ge.call) || !Ge(Object) || !Ge((function() {
11954
+ return Ye(Ye.call) || !Ye(Object) || !Ye((function() {
11955
11955
  ft = !0;
11956
11956
  })) || ft;
11957
- })) ? lt : Ge;
11957
+ })) ? lt : Ye;
11958
11958
  }, 3607: function(se, pe, E) {
11959
11959
  var P = E(2839).match(/AppleWebKit\/(\d+)\./);
11960
11960
  se.exports = !!P && +P[1];
@@ -11993,11 +11993,11 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
11993
11993
  var P = E(2839);
11994
11994
  se.exports = /MSIE|Trident/.test(P);
11995
11995
  }, 3792: function(se, pe, E) {
11996
- var P = E(5397), X = E(6469), Y = E(6269), G = E(1181), me = E(4913).f, Ae = E(1088), be = E(2529), De = E(6395), je = E(3724), et = "Array Iterator", Ke = G.set, Ge = G.getterFor(et);
11996
+ var P = E(5397), X = E(6469), Y = E(6269), G = E(1181), me = E(4913).f, Ae = E(1088), be = E(2529), De = E(6395), je = E(3724), et = "Array Iterator", Ke = G.set, Ye = G.getterFor(et);
11997
11997
  se.exports = Ae(Array, "Array", (function(ft, jt) {
11998
11998
  Ke(this, { type: et, target: P(ft), index: 0, kind: jt });
11999
11999
  }), (function() {
12000
- var ft = Ge(this), jt = ft.target, Mt = ft.index++;
12000
+ var ft = Ye(this), jt = ft.target, Mt = ft.index++;
12001
12001
  if (!jt || Mt >= jt.length) return ft.target = null, be(void 0, !0);
12002
12002
  switch (ft.kind) {
12003
12003
  case "keys":
@@ -12055,7 +12055,7 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
12055
12055
  return me !== void 0 && (X.Array === me || G[Y] === me);
12056
12056
  };
12057
12057
  }, 4213: function(se, pe, E) {
12058
- var P = E(3724), X = E(9504), Y = E(9565), G = E(9039), me = E(1072), Ae = E(3717), be = E(8773), De = E(8981), je = E(7055), et = Object.assign, Ke = Object.defineProperty, Ge = X([].concat);
12058
+ var P = E(3724), X = E(9504), Y = E(9565), G = E(9039), me = E(1072), Ae = E(3717), be = E(8773), De = E(8981), je = E(7055), et = Object.assign, Ke = Object.defineProperty, Ye = X([].concat);
12059
12059
  se.exports = !et || G((function() {
12060
12060
  if (P && et({ b: 1 }, et(Ke({}, "a", { enumerable: !0, get: function() {
12061
12061
  Ke(this, "b", { value: 3, enumerable: !1 });
@@ -12065,7 +12065,7 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
12065
12065
  ft[Bt] = Bt;
12066
12066
  })), et({}, lt)[jt] !== 7 || me(et({}, ft)).join("") !== Mt;
12067
12067
  })) ? function(lt, ft) {
12068
- for (var jt = De(lt), Mt = arguments.length, Bt = 1, mn = Ae.f, Gt = be.f; Mt > Bt; ) for (var In, yn = je(arguments[Bt++]), ln = mn ? Ge(me(yn), mn(yn)) : me(yn), Vn = ln.length, ei = 0; Vn > ei; ) In = ln[ei++], P && !Y(Gt, yn, In) || (jt[In] = yn[In]);
12068
+ for (var jt = De(lt), Mt = arguments.length, Bt = 1, mn = Ae.f, Gt = be.f; Mt > Bt; ) for (var In, yn = je(arguments[Bt++]), ln = mn ? Ye(me(yn), mn(yn)) : me(yn), Vn = ln.length, ei = 0; Vn > ei; ) In = ln[ei++], P && !Y(Gt, yn, In) || (jt[In] = yn[In]);
12069
12069
  return jt;
12070
12070
  } : et;
12071
12071
  }, 4215: function(se, pe, E) {
@@ -12132,7 +12132,7 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
12132
12132
  for (De = je, be = G[je]; De && me(G[De - 1], be) > 0; ) G[De] = G[--De];
12133
12133
  De !== je++ && (G[De] = be);
12134
12134
  }
12135
- else for (var et = X(Ae / 2), Ke = Y(P(G, 0, et), me), Ge = Y(P(G, et), me), lt = Ke.length, ft = Ge.length, jt = 0, Mt = 0; jt < lt || Mt < ft; ) G[jt + Mt] = jt < lt && Mt < ft ? me(Ke[jt], Ge[Mt]) <= 0 ? Ke[jt++] : Ge[Mt++] : jt < lt ? Ke[jt++] : Ge[Mt++];
12135
+ else for (var et = X(Ae / 2), Ke = Y(P(G, 0, et), me), Ye = Y(P(G, et), me), lt = Ke.length, ft = Ye.length, jt = 0, Mt = 0; jt < lt || Mt < ft; ) G[jt + Mt] = jt < lt && Mt < ft ? me(Ke[jt], Ye[Mt]) <= 0 ? Ke[jt++] : Ye[Mt++] : jt < lt ? Ke[jt++] : Ye[Mt++];
12136
12136
  return G;
12137
12137
  };
12138
12138
  se.exports = Y;
@@ -12158,10 +12158,10 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
12158
12158
  return Ae.length = be;
12159
12159
  };
12160
12160
  }, 4554: function(se, pe, E) {
12161
- var P = E(6518), X = E(8981), Y = E(5610), G = E(1291), me = E(6198), Ae = E(4527), be = E(6837), De = E(1469), je = E(4659), et = E(4606), Ke = E(597)("splice"), Ge = Math.max, lt = Math.min;
12161
+ var P = E(6518), X = E(8981), Y = E(5610), G = E(1291), me = E(6198), Ae = E(4527), be = E(6837), De = E(1469), je = E(4659), et = E(4606), Ke = E(597)("splice"), Ye = Math.max, lt = Math.min;
12162
12162
  P({ target: "Array", proto: !0, forced: !Ke }, { splice: function(ft, jt) {
12163
12163
  var Mt, Bt, mn, Gt, In, yn, ln = X(this), Vn = me(ln), ei = Y(ft, Vn), Qn = arguments.length;
12164
- for (Qn === 0 ? Mt = Bt = 0 : Qn === 1 ? (Mt = 0, Bt = Vn - ei) : (Mt = Qn - 2, Bt = lt(Ge(G(jt), 0), Vn - ei)), be(Vn + Mt - Bt), mn = De(ln, Bt), Gt = 0; Gt < Bt; Gt++) (In = ei + Gt) in ln && je(mn, Gt, ln[In]);
12164
+ for (Qn === 0 ? Mt = Bt = 0 : Qn === 1 ? (Mt = 0, Bt = Vn - ei) : (Mt = Qn - 2, Bt = lt(Ye(G(jt), 0), Vn - ei)), be(Vn + Mt - Bt), mn = De(ln, Bt), Gt = 0; Gt < Bt; Gt++) (In = ei + Gt) in ln && je(mn, Gt, ln[In]);
12165
12165
  if (mn.length = Bt, Mt < Bt) {
12166
12166
  for (Gt = ei; Gt < Vn - Bt; Gt++) yn = Gt + Mt, (In = Gt + Bt) in ln ? ln[yn] = ln[In] : et(ln, yn);
12167
12167
  for (Gt = Vn; Gt > Vn - Bt + Mt; Gt--) et(ln, Gt - 1);
@@ -12197,22 +12197,22 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
12197
12197
  P ? X.f(G, me, Y(0, Ae)) : G[me] = Ae;
12198
12198
  };
12199
12199
  }, 4782: function(se, pe, E) {
12200
- var P = E(6518), X = E(4376), Y = E(3517), G = E(34), me = E(5610), Ae = E(6198), be = E(5397), De = E(4659), je = E(8227), et = E(597), Ke = E(7680), Ge = et("slice"), lt = je("species"), ft = Array, jt = Math.max;
12201
- P({ target: "Array", proto: !0, forced: !Ge }, { slice: function(Mt, Bt) {
12200
+ var P = E(6518), X = E(4376), Y = E(3517), G = E(34), me = E(5610), Ae = E(6198), be = E(5397), De = E(4659), je = E(8227), et = E(597), Ke = E(7680), Ye = et("slice"), lt = je("species"), ft = Array, jt = Math.max;
12201
+ P({ target: "Array", proto: !0, forced: !Ye }, { slice: function(Mt, Bt) {
12202
12202
  var mn, Gt, In, yn = be(this), ln = Ae(yn), Vn = me(Mt, ln), ei = me(Bt === void 0 ? ln : Bt, ln);
12203
12203
  if (X(yn) && ((Y(mn = yn.constructor) && (mn === ft || X(mn.prototype)) || G(mn) && (mn = mn[lt]) === null) && (mn = void 0), mn === ft || mn === void 0)) return Ke(yn, Vn, ei);
12204
12204
  for (Gt = new (mn === void 0 ? ft : mn)(jt(ei - Vn, 0)), In = 0; Vn < ei; Vn++, In++) Vn in yn && De(Gt, In, yn[Vn]);
12205
12205
  return Gt.length = In, Gt;
12206
12206
  } });
12207
12207
  }, 4864: function(se, pe, E) {
12208
- var P = E(3724), X = E(4576), Y = E(9504), G = E(2796), me = E(3167), Ae = E(6699), be = E(2360), De = E(8480).f, je = E(1625), et = E(788), Ke = E(655), Ge = E(1034), lt = E(8429), ft = E(1056), jt = E(6840), Mt = E(9039), Bt = E(9297), mn = E(1181).enforce, Gt = E(7633), In = E(8227), yn = E(3635), ln = E(8814), Vn = In("match"), ei = X.RegExp, Qn = ei.prototype, Xn = X.SyntaxError, Ct = Y(Qn.exec), Xt = Y("".charAt), Yn = Y("".replace), Zn = Y("".indexOf), Sn = Y("".slice), mi = /^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/, di = /a/g, vi = /a/g, yi = new ei(di) !== di, Ot = lt.MISSED_STICKY, Tt = lt.UNSUPPORTED_Y;
12208
+ var P = E(3724), X = E(4576), Y = E(9504), G = E(2796), me = E(3167), Ae = E(6699), be = E(2360), De = E(8480).f, je = E(1625), et = E(788), Ke = E(655), Ye = E(1034), lt = E(8429), ft = E(1056), jt = E(6840), Mt = E(9039), Bt = E(9297), mn = E(1181).enforce, Gt = E(7633), In = E(8227), yn = E(3635), ln = E(8814), Vn = In("match"), ei = X.RegExp, Qn = ei.prototype, Xn = X.SyntaxError, Ct = Y(Qn.exec), Xt = Y("".charAt), Yn = Y("".replace), Zn = Y("".indexOf), Sn = Y("".slice), mi = /^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/, di = /a/g, vi = /a/g, yi = new ei(di) !== di, Ot = lt.MISSED_STICKY, Tt = lt.UNSUPPORTED_Y;
12209
12209
  if (G("RegExp", P && (!yi || Ot || yn || ln || Mt((function() {
12210
12210
  return vi[Vn] = !1, ei(di) !== di || ei(vi) === vi || String(ei(di, "i")) !== "/a/i";
12211
12211
  }))))) {
12212
12212
  for (var tn = function(Tn, An) {
12213
12213
  var Rn, Cn, li, Ki, pr, sr, xr = je(Qn, this), Dr = et(Tn), Vt = An === void 0, Qr = [], Zi = Tn;
12214
12214
  if (!xr && Dr && Vt && Tn.constructor === tn) return Tn;
12215
- if ((Dr || je(Qn, Tn)) && (Tn = Tn.source, Vt && (An = Ge(Zi))), Tn = Tn === void 0 ? "" : Ke(Tn), An = An === void 0 ? "" : Ke(An), Zi = Tn, yn && "dotAll" in di && (Cn = !!An && Zn(An, "s") > -1) && (An = Yn(An, /s/g, "")), Rn = An, Ot && "sticky" in di && (li = !!An && Zn(An, "y") > -1) && Tt && (An = Yn(An, /y/g, "")), ln && (Ki = (function(Xi) {
12215
+ if ((Dr || je(Qn, Tn)) && (Tn = Tn.source, Vt && (An = Ye(Zi))), Tn = Tn === void 0 ? "" : Ke(Tn), An = An === void 0 ? "" : Ke(An), Zi = Tn, yn && "dotAll" in di && (Cn = !!An && Zn(An, "s") > -1) && (An = Yn(An, /s/g, "")), Rn = An, Ot && "sticky" in di && (li = !!An && Zn(An, "y") > -1) && Tt && (An = Yn(An, /y/g, "")), ln && (Ki = (function(Xi) {
12216
12216
  for (var si, Cr = Xi.length, Lr = 0, Lo = "", mt = [], de = be(null), ye = !1, Fe = !1, it = 0, Ze = ""; Lr <= Cr; Lr++) {
12217
12217
  if ((si = Xt(Xi, Lr)) === "\\") si += Xt(Xi, ++Lr);
12218
12218
  else if (si === "]") ye = !1;
@@ -12253,19 +12253,19 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
12253
12253
  };
12254
12254
  }, 4913: function(se, pe, E) {
12255
12255
  var P = E(3724), X = E(5917), Y = E(8686), G = E(8551), me = E(6969), Ae = TypeError, be = Object.defineProperty, De = Object.getOwnPropertyDescriptor, je = "enumerable", et = "configurable", Ke = "writable";
12256
- pe.f = P ? Y ? function(Ge, lt, ft) {
12257
- if (G(Ge), lt = me(lt), G(ft), typeof Ge == "function" && lt === "prototype" && "value" in ft && Ke in ft && !ft[Ke]) {
12258
- var jt = De(Ge, lt);
12259
- jt && jt[Ke] && (Ge[lt] = ft.value, ft = { configurable: et in ft ? ft[et] : jt[et], enumerable: je in ft ? ft[je] : jt[je], writable: !1 });
12260
- }
12261
- return be(Ge, lt, ft);
12262
- } : be : function(Ge, lt, ft) {
12263
- if (G(Ge), lt = me(lt), G(ft), X) try {
12264
- return be(Ge, lt, ft);
12256
+ pe.f = P ? Y ? function(Ye, lt, ft) {
12257
+ if (G(Ye), lt = me(lt), G(ft), typeof Ye == "function" && lt === "prototype" && "value" in ft && Ke in ft && !ft[Ke]) {
12258
+ var jt = De(Ye, lt);
12259
+ jt && jt[Ke] && (Ye[lt] = ft.value, ft = { configurable: et in ft ? ft[et] : jt[et], enumerable: je in ft ? ft[je] : jt[je], writable: !1 });
12260
+ }
12261
+ return be(Ye, lt, ft);
12262
+ } : be : function(Ye, lt, ft) {
12263
+ if (G(Ye), lt = me(lt), G(ft), X) try {
12264
+ return be(Ye, lt, ft);
12265
12265
  } catch {
12266
12266
  }
12267
12267
  if ("get" in ft || "set" in ft) throw new Ae("Accessors not supported");
12268
- return "value" in ft && (Ge[lt] = ft.value), Ge;
12268
+ return "value" in ft && (Ye[lt] = ft.value), Ye;
12269
12269
  };
12270
12270
  }, 5031: function(se, pe, E) {
12271
12271
  var P = E(7751), X = E(9504), Y = E(8480), G = E(3717), me = E(8551), Ae = X([].concat);
@@ -12285,11 +12285,11 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
12285
12285
  return P(X(Y));
12286
12286
  };
12287
12287
  }, 5440: function(se, pe, E) {
12288
- var P = E(8745), X = E(9565), Y = E(9504), G = E(9228), me = E(9039), Ae = E(8551), be = E(4901), De = E(34), je = E(1291), et = E(8014), Ke = E(655), Ge = E(7750), lt = E(7829), ft = E(5966), jt = E(2478), Mt = E(6682), Bt = E(8227)("replace"), mn = Math.max, Gt = Math.min, In = Y([].concat), yn = Y([].push), ln = Y("".indexOf), Vn = Y("".slice), ei = "a".replace(/./, "$0") === "$0", Qn = !!/./[Bt] && /./[Bt]("a", "$0") === "";
12288
+ var P = E(8745), X = E(9565), Y = E(9504), G = E(9228), me = E(9039), Ae = E(8551), be = E(4901), De = E(34), je = E(1291), et = E(8014), Ke = E(655), Ye = E(7750), lt = E(7829), ft = E(5966), jt = E(2478), Mt = E(6682), Bt = E(8227)("replace"), mn = Math.max, Gt = Math.min, In = Y([].concat), yn = Y([].push), ln = Y("".indexOf), Vn = Y("".slice), ei = "a".replace(/./, "$0") === "$0", Qn = !!/./[Bt] && /./[Bt]("a", "$0") === "";
12289
12289
  G("replace", (function(Xn, Ct, Xt) {
12290
12290
  var Yn = Qn ? "$" : "$0";
12291
12291
  return [function(Zn, Sn) {
12292
- var mi = Ge(this), di = De(Zn) ? ft(Zn, Bt) : void 0;
12292
+ var mi = Ye(this), di = De(Zn) ? ft(Zn, Bt) : void 0;
12293
12293
  return di ? X(di, Zn, mi, Sn) : X(Ct, Ke(mi), Zn, Sn);
12294
12294
  }, function(Zn, Sn) {
12295
12295
  var mi = Ae(this), di = Ke(Zn);
@@ -12403,13 +12403,13 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
12403
12403
  }, 6518: function(se, pe, E) {
12404
12404
  var P = E(4576), X = E(7347).f, Y = E(6699), G = E(6840), me = E(9433), Ae = E(7740), be = E(2796);
12405
12405
  se.exports = function(De, je) {
12406
- var et, Ke, Ge, lt, ft, jt = De.target, Mt = De.global, Bt = De.stat;
12406
+ var et, Ke, Ye, lt, ft, jt = De.target, Mt = De.global, Bt = De.stat;
12407
12407
  if (et = Mt ? P : Bt ? P[jt] || me(jt, {}) : P[jt] && P[jt].prototype) for (Ke in je) {
12408
- if (lt = je[Ke], Ge = De.dontCallGetSet ? (ft = X(et, Ke)) && ft.value : et[Ke], !be(Mt ? Ke : jt + (Bt ? "." : "#") + Ke, De.forced) && Ge !== void 0) {
12409
- if (typeof lt == typeof Ge) continue;
12410
- Ae(lt, Ge);
12408
+ if (lt = je[Ke], Ye = De.dontCallGetSet ? (ft = X(et, Ke)) && ft.value : et[Ke], !be(Mt ? Ke : jt + (Bt ? "." : "#") + Ke, De.forced) && Ye !== void 0) {
12409
+ if (typeof lt == typeof Ye) continue;
12410
+ Ae(lt, Ye);
12411
12411
  }
12412
- (De.sham || Ge && Ge.sham) && Y(lt, "sham", !0), G(et, Ke, lt, De);
12412
+ (De.sham || Ye && Ye.sham) && Y(lt, "sham", !0), G(et, Ke, lt, De);
12413
12413
  }
12414
12414
  };
12415
12415
  }, 6682: function(se, pe, E) {
@@ -12439,7 +12439,7 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
12439
12439
  }
12440
12440
  };
12441
12441
  }, 6761: function(se, pe, E) {
12442
- var P = E(6518), X = E(4576), Y = E(9565), G = E(9504), me = E(6395), Ae = E(3724), be = E(4495), De = E(9039), je = E(9297), et = E(1625), Ke = E(8551), Ge = E(5397), lt = E(6969), ft = E(655), jt = E(6980), Mt = E(2360), Bt = E(1072), mn = E(8480), Gt = E(298), In = E(3717), yn = E(7347), ln = E(4913), Vn = E(6801), ei = E(8773), Qn = E(6840), Xn = E(2106), Ct = E(5745), Xt = E(6119), Yn = E(421), Zn = E(3392), Sn = E(8227), mi = E(1951), di = E(511), vi = E(8242), yi = E(687), Ot = E(1181), Tt = E(9213).forEach, tn = Xt("hidden"), Ft = "Symbol", dn = "prototype", Tn = Ot.set, An = Ot.getterFor(Ft), Rn = Object[dn], Cn = X.Symbol, li = Cn && Cn[dn], Ki = X.RangeError, pr = X.TypeError, sr = X.QObject, xr = yn.f, Dr = ln.f, Vt = Gt.f, Qr = ei.f, Zi = G([].push), Xi = Ct("symbols"), si = Ct("op-symbols"), Cr = Ct("wks"), Lr = !sr || !sr[dn] || !sr[dn].findChild, Lo = function(Ve, st, xt) {
12442
+ var P = E(6518), X = E(4576), Y = E(9565), G = E(9504), me = E(6395), Ae = E(3724), be = E(4495), De = E(9039), je = E(9297), et = E(1625), Ke = E(8551), Ye = E(5397), lt = E(6969), ft = E(655), jt = E(6980), Mt = E(2360), Bt = E(1072), mn = E(8480), Gt = E(298), In = E(3717), yn = E(7347), ln = E(4913), Vn = E(6801), ei = E(8773), Qn = E(6840), Xn = E(2106), Ct = E(5745), Xt = E(6119), Yn = E(421), Zn = E(3392), Sn = E(8227), mi = E(1951), di = E(511), vi = E(8242), yi = E(687), Ot = E(1181), Tt = E(9213).forEach, tn = Xt("hidden"), Ft = "Symbol", dn = "prototype", Tn = Ot.set, An = Ot.getterFor(Ft), Rn = Object[dn], Cn = X.Symbol, li = Cn && Cn[dn], Ki = X.RangeError, pr = X.TypeError, sr = X.QObject, xr = yn.f, Dr = ln.f, Vt = Gt.f, Qr = ei.f, Zi = G([].push), Xi = Ct("symbols"), si = Ct("op-symbols"), Cr = Ct("wks"), Lr = !sr || !sr[dn] || !sr[dn].findChild, Lo = function(Ve, st, xt) {
12443
12443
  var St = xr(Rn, st);
12444
12444
  St && delete Rn[st], Dr(Ve, st, xt), St && Ve !== Rn && Dr(Rn, st, St);
12445
12445
  }, mt = Ae && De((function() {
@@ -12455,7 +12455,7 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
12455
12455
  return Ke(xt), je(Xi, St) ? (xt.enumerable ? (je(Ve, tn) && Ve[tn][St] && (Ve[tn][St] = !1), xt = Mt(xt, { enumerable: jt(0, !1) })) : (je(Ve, tn) || Dr(Ve, tn, jt(1, Mt(null))), Ve[tn][St] = !0), mt(Ve, St, xt)) : Dr(Ve, St, xt);
12456
12456
  }, Fe = function(Ve, st) {
12457
12457
  Ke(Ve);
12458
- var xt = Ge(st), St = Bt(xt).concat(It(xt));
12458
+ var xt = Ye(st), St = Bt(xt).concat(It(xt));
12459
12459
  return Tt(St, (function(Ht) {
12460
12460
  Ae && !Y(it, xt, Ht) || ye(Ve, Ht, xt[Ht]);
12461
12461
  })), Ve;
@@ -12463,18 +12463,18 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
12463
12463
  var st = lt(Ve), xt = Y(Qr, this, st);
12464
12464
  return !(this === Rn && je(Xi, st) && !je(si, st)) && (!(xt || !je(this, st) || !je(Xi, st) || je(this, tn) && this[tn][st]) || xt);
12465
12465
  }, Ze = function(Ve, st) {
12466
- var xt = Ge(Ve), St = lt(st);
12466
+ var xt = Ye(Ve), St = lt(st);
12467
12467
  if (xt !== Rn || !je(Xi, St) || je(si, St)) {
12468
12468
  var Ht = xr(xt, St);
12469
12469
  return !Ht || !je(Xi, St) || je(xt, tn) && xt[tn][St] || (Ht.enumerable = !0), Ht;
12470
12470
  }
12471
12471
  }, ut = function(Ve) {
12472
- var st = Vt(Ge(Ve)), xt = [];
12472
+ var st = Vt(Ye(Ve)), xt = [];
12473
12473
  return Tt(st, (function(St) {
12474
12474
  je(Xi, St) || je(Yn, St) || Zi(xt, St);
12475
12475
  })), xt;
12476
12476
  }, It = function(Ve) {
12477
- var st = Ve === Rn, xt = Vt(st ? si : Ge(Ve)), St = [];
12477
+ var st = Ve === Rn, xt = Vt(st ? si : Ye(Ve)), St = [];
12478
12478
  return Tt(xt, (function(Ht) {
12479
12479
  !je(Xi, Ht) || st && !je(Rn, Ht) || Zi(St, Xi[Ht]);
12480
12480
  })), St;
@@ -12514,7 +12514,7 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
12514
12514
  var P = E(3724), X = E(8686), Y = E(4913), G = E(8551), me = E(5397), Ae = E(1072);
12515
12515
  pe.f = P && !X ? Object.defineProperties : function(be, De) {
12516
12516
  G(be);
12517
- for (var je, et = me(De), Ke = Ae(De), Ge = Ke.length, lt = 0; Ge > lt; ) Y.f(be, je = Ke[lt++], et[je]);
12517
+ for (var je, et = me(De), Ke = Ae(De), Ye = Ke.length, lt = 0; Ye > lt; ) Y.f(be, je = Ke[lt++], et[je]);
12518
12518
  return be;
12519
12519
  };
12520
12520
  }, 6823: function(se) {
@@ -12548,14 +12548,14 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
12548
12548
  return me;
12549
12549
  };
12550
12550
  }, 6910: function(se, pe, E) {
12551
- var P = E(6518), X = E(9504), Y = E(9306), G = E(8981), me = E(6198), Ae = E(4606), be = E(655), De = E(9039), je = E(4488), et = E(4598), Ke = E(3709), Ge = E(3763), lt = E(9519), ft = E(3607), jt = [], Mt = X(jt.sort), Bt = X(jt.push), mn = De((function() {
12551
+ var P = E(6518), X = E(9504), Y = E(9306), G = E(8981), me = E(6198), Ae = E(4606), be = E(655), De = E(9039), je = E(4488), et = E(4598), Ke = E(3709), Ye = E(3763), lt = E(9519), ft = E(3607), jt = [], Mt = X(jt.sort), Bt = X(jt.push), mn = De((function() {
12552
12552
  jt.sort(void 0);
12553
12553
  })), Gt = De((function() {
12554
12554
  jt.sort(null);
12555
12555
  })), In = et("sort"), yn = !De((function() {
12556
12556
  if (lt) return lt < 70;
12557
12557
  if (!(Ke && Ke > 3)) {
12558
- if (Ge) return !0;
12558
+ if (Ye) return !0;
12559
12559
  if (ft) return ft < 603;
12560
12560
  var ln, Vn, ei, Qn, Xn = "";
12561
12561
  for (ln = 65; ln < 76; ln++) {
@@ -12604,11 +12604,11 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
12604
12604
  var Ke = be[et];
12605
12605
  typeof Ke == "string" ? Ae(je, Ke) : typeof Ke != "number" && G(Ke) !== "Number" && G(Ke) !== "String" || Ae(je, me(Ke));
12606
12606
  }
12607
- var Ge = je.length, lt = !0;
12607
+ var Ye = je.length, lt = !0;
12608
12608
  return function(ft, jt) {
12609
12609
  if (lt) return lt = !1, jt;
12610
12610
  if (X(this)) return jt;
12611
- for (var Mt = 0; Mt < Ge; Mt++) if (je[Mt] === ft) return jt;
12611
+ for (var Mt = 0; Mt < Ye; Mt++) if (je[Mt] === ft) return jt;
12612
12612
  };
12613
12613
  }
12614
12614
  };
@@ -12618,9 +12618,9 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
12618
12618
  })()) === "Arguments";
12619
12619
  se.exports = P ? Y : function(be) {
12620
12620
  var De, je, et;
12621
- return be === void 0 ? "Undefined" : be === null ? "Null" : typeof (je = (function(Ke, Ge) {
12621
+ return be === void 0 ? "Undefined" : be === null ? "Null" : typeof (je = (function(Ke, Ye) {
12622
12622
  try {
12623
- return Ke[Ge];
12623
+ return Ke[Ye];
12624
12624
  } catch {
12625
12625
  }
12626
12626
  })(De = me(be), G)) == "string" ? je : Ae ? Y(De) : (et = Y(De)) === "Object" && X(De.callee) ? "Arguments" : et;
@@ -12646,8 +12646,8 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
12646
12646
  return Y(Ae) === "String" ? me(Ae, "") : G(Ae);
12647
12647
  } : G;
12648
12648
  }, 7323: function(se, pe, E) {
12649
- var P, X, Y = E(9565), G = E(9504), me = E(655), Ae = E(7979), be = E(8429), De = E(5745), je = E(2360), et = E(1181).get, Ke = E(3635), Ge = E(8814), lt = De("native-string-replace", String.prototype.replace), ft = RegExp.prototype.exec, jt = ft, Mt = G("".charAt), Bt = G("".indexOf), mn = G("".replace), Gt = G("".slice), In = (X = /b*/g, Y(ft, P = /a/, "a"), Y(ft, X, "a"), P.lastIndex !== 0 || X.lastIndex !== 0), yn = be.BROKEN_CARET, ln = /()??/.exec("")[1] !== void 0;
12650
- (In || ln || yn || Ke || Ge) && (jt = function(Vn) {
12649
+ var P, X, Y = E(9565), G = E(9504), me = E(655), Ae = E(7979), be = E(8429), De = E(5745), je = E(2360), et = E(1181).get, Ke = E(3635), Ye = E(8814), lt = De("native-string-replace", String.prototype.replace), ft = RegExp.prototype.exec, jt = ft, Mt = G("".charAt), Bt = G("".indexOf), mn = G("".replace), Gt = G("".slice), In = (X = /b*/g, Y(ft, P = /a/, "a"), Y(ft, X, "a"), P.lastIndex !== 0 || X.lastIndex !== 0), yn = be.BROKEN_CARET, ln = /()??/.exec("")[1] !== void 0;
12650
+ (In || ln || yn || Ke || Ye) && (jt = function(Vn) {
12651
12651
  var ei, Qn, Xn, Ct, Xt, Yn, Zn, Sn = this, mi = et(Sn), di = me(Vn), vi = mi.raw;
12652
12652
  if (vi) return vi.lastIndex = Sn.lastIndex, ei = Y(jt, vi, di), Sn.lastIndex = vi.lastIndex, ei;
12653
12653
  var yi = mi.groups, Ot = yn && Sn.sticky, Tt = Y(Ae, Sn), tn = Sn.source, Ft = 0, dn = di;
@@ -12702,11 +12702,11 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
12702
12702
  } });
12703
12703
  };
12704
12704
  }, 7657: function(se, pe, E) {
12705
- var P, X, Y, G = E(9039), me = E(4901), Ae = E(34), be = E(2360), De = E(2787), je = E(6840), et = E(8227), Ke = E(6395), Ge = et("iterator"), lt = !1;
12705
+ var P, X, Y, G = E(9039), me = E(4901), Ae = E(34), be = E(2360), De = E(2787), je = E(6840), et = E(8227), Ke = E(6395), Ye = et("iterator"), lt = !1;
12706
12706
  [].keys && ("next" in (Y = [].keys()) ? (X = De(De(Y))) !== Object.prototype && (P = X) : lt = !0), !Ae(P) || G((function() {
12707
12707
  var ft = {};
12708
- return P[Ge].call(ft) !== ft;
12709
- })) ? P = {} : Ke && (P = be(P)), me(P[Ge]) || je(P, Ge, (function() {
12708
+ return P[Ye].call(ft) !== ft;
12709
+ })) ? P = {} : Ke && (P = be(P)), me(P[Ye]) || je(P, Ye, (function() {
12710
12710
  return this;
12711
12711
  })), se.exports = { IteratorPrototype: P, BUGGY_SAFARI_ITERATORS: lt };
12712
12712
  }, 7680: function(se, pe, E) {
@@ -12716,8 +12716,8 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
12716
12716
  var P = E(9297), X = E(5031), Y = E(7347), G = E(4913);
12717
12717
  se.exports = function(me, Ae, be) {
12718
12718
  for (var De = X(Ae), je = G.f, et = Y.f, Ke = 0; Ke < De.length; Ke++) {
12719
- var Ge = De[Ke];
12720
- P(me, Ge) || be && P(be, Ge) || je(me, Ge, et(Ae, Ge));
12719
+ var Ye = De[Ke];
12720
+ P(me, Ye) || be && P(be, Ye) || je(me, Ye, et(Ae, Ye));
12721
12721
  }
12722
12722
  };
12723
12723
  }, 7750: function(se, pe, E) {
@@ -12737,8 +12737,8 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
12737
12737
  G(String, "String", (function(je) {
12738
12738
  be(this, { type: Ae, string: X(je), index: 0 });
12739
12739
  }), (function() {
12740
- var je, et = De(this), Ke = et.string, Ge = et.index;
12741
- return Ge >= Ke.length ? me(void 0, !0) : (je = P(Ke, Ge), et.index += je.length, me(je, !1));
12740
+ var je, et = De(this), Ke = et.string, Ye = et.index;
12741
+ return Ye >= Ke.length ? me(void 0, !0) : (je = P(Ke, Ye), et.index += je.length, me(je, !1));
12742
12742
  }));
12743
12743
  }, 7812: function(se, pe, E) {
12744
12744
  var P = E(6518), X = E(9297), Y = E(757), G = E(6823), me = E(5745), Ae = E(1296), be = me("symbol-to-string-registry");
@@ -12753,8 +12753,8 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
12753
12753
  };
12754
12754
  }, 7916: function(se, pe, E) {
12755
12755
  var P = E(6080), X = E(9565), Y = E(8981), G = E(6319), me = E(4209), Ae = E(3517), be = E(6198), De = E(4659), je = E(81), et = E(851), Ke = Array;
12756
- se.exports = function(Ge) {
12757
- var lt = Y(Ge), ft = Ae(this), jt = arguments.length, Mt = jt > 1 ? arguments[1] : void 0, Bt = Mt !== void 0;
12756
+ se.exports = function(Ye) {
12757
+ var lt = Y(Ye), ft = Ae(this), jt = arguments.length, Mt = jt > 1 ? arguments[1] : void 0, Bt = Mt !== void 0;
12758
12758
  Bt && (Mt = P(Mt, jt > 2 ? arguments[2] : void 0));
12759
12759
  var mn, Gt, In, yn, ln, Vn, ei = et(lt), Qn = 0;
12760
12760
  if (!ei || this === Ke && me(ei)) for (mn = be(lt), Gt = ft ? new this(mn) : Ke(mn); mn > Qn; Qn++) Vn = Bt ? Mt(lt[Qn], Qn) : lt[Qn], De(Gt, Qn, Vn);
@@ -12776,8 +12776,8 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
12776
12776
  }, 8183: function(se, pe, E) {
12777
12777
  var P = E(9504), X = E(1291), Y = E(655), G = E(7750), me = P("".charAt), Ae = P("".charCodeAt), be = P("".slice), De = function(je) {
12778
12778
  return function(et, Ke) {
12779
- var Ge, lt, ft = Y(G(et)), jt = X(Ke), Mt = ft.length;
12780
- return jt < 0 || jt >= Mt ? je ? "" : void 0 : (Ge = Ae(ft, jt)) < 55296 || Ge > 56319 || jt + 1 === Mt || (lt = Ae(ft, jt + 1)) < 56320 || lt > 57343 ? je ? me(ft, jt) : Ge : je ? be(ft, jt, jt + 2) : lt - 56320 + (Ge - 55296 << 10) + 65536;
12779
+ var Ye, lt, ft = Y(G(et)), jt = X(Ke), Mt = ft.length;
12780
+ return jt < 0 || jt >= Mt ? je ? "" : void 0 : (Ye = Ae(ft, jt)) < 55296 || Ye > 56319 || jt + 1 === Mt || (lt = Ae(ft, jt + 1)) < 56320 || lt > 57343 ? je ? me(ft, jt) : Ye : je ? be(ft, jt, jt + 2) : lt - 56320 + (Ye - 55296 << 10) + 65536;
12781
12781
  };
12782
12782
  };
12783
12783
  se.exports = { codeAt: De(!1), charAt: De(!0) };
@@ -12813,7 +12813,7 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
12813
12813
  return P(Y, X);
12814
12814
  };
12815
12815
  }, 8543: function(se, pe, E) {
12816
- var P = E(6518), X = E(9565), Y = E(7476), G = E(3994), me = E(2529), Ae = E(7750), be = E(8014), De = E(655), je = E(8551), et = E(34), Ke = E(2195), Ge = E(788), lt = E(1034), ft = E(5966), jt = E(6840), Mt = E(9039), Bt = E(8227), mn = E(2293), Gt = E(7829), In = E(6682), yn = E(1181), ln = E(6395), Vn = Bt("matchAll"), ei = "RegExp String", Qn = ei + " Iterator", Xn = yn.set, Ct = yn.getterFor(Qn), Xt = RegExp.prototype, Yn = TypeError, Zn = Y("".indexOf), Sn = Y("".matchAll), mi = !!Sn && !Mt((function() {
12816
+ var P = E(6518), X = E(9565), Y = E(7476), G = E(3994), me = E(2529), Ae = E(7750), be = E(8014), De = E(655), je = E(8551), et = E(34), Ke = E(2195), Ye = E(788), lt = E(1034), ft = E(5966), jt = E(6840), Mt = E(9039), Bt = E(8227), mn = E(2293), Gt = E(7829), In = E(6682), yn = E(1181), ln = E(6395), Vn = Bt("matchAll"), ei = "RegExp String", Qn = ei + " Iterator", Xn = yn.set, Ct = yn.getterFor(Qn), Xt = RegExp.prototype, Yn = TypeError, Zn = Y("".indexOf), Sn = Y("".matchAll), mi = !!Sn && !Mt((function() {
12817
12817
  Sn("a", /./);
12818
12818
  })), di = G((function(yi, Ot, Tt, tn) {
12819
12819
  Xn(this, { type: Qn, regexp: yi, string: Ot, global: Tt, unicode: tn, done: !1 });
@@ -12829,7 +12829,7 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
12829
12829
  P({ target: "String", proto: !0, forced: mi }, { matchAll: function(yi) {
12830
12830
  var Ot, Tt, tn, Ft, dn = Ae(this);
12831
12831
  if (et(yi)) {
12832
- if (Ge(yi) && (Ot = De(Ae(lt(yi))), !~Zn(Ot, "g"))) throw new Yn("`.matchAll` does not allow non-global regexes");
12832
+ if (Ye(yi) && (Ot = De(Ae(lt(yi))), !~Zn(Ot, "g"))) throw new Yn("`.matchAll` does not allow non-global regexes");
12833
12833
  if (mi) return Sn(dn, yi);
12834
12834
  if ((tn = ft(yi, Vn)) === void 0 && ln && Ke(yi) === "RegExp" && (tn = vi), tn) return X(tn, yi, dn);
12835
12835
  } else if (mi) return Sn(dn, yi);
@@ -12856,7 +12856,7 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
12856
12856
  }), "prototype", { value: 42, writable: !1 }).prototype !== 42;
12857
12857
  }));
12858
12858
  }, 8706: function(se, pe, E) {
12859
- var P = E(6518), X = E(9039), Y = E(4376), G = E(34), me = E(8981), Ae = E(6198), be = E(6837), De = E(4659), je = E(1469), et = E(597), Ke = E(8227), Ge = E(9519), lt = Ke("isConcatSpreadable"), ft = Ge >= 51 || !X((function() {
12859
+ var P = E(6518), X = E(9039), Y = E(4376), G = E(34), me = E(8981), Ae = E(6198), be = E(6837), De = E(4659), je = E(1469), et = E(597), Ke = E(8227), Ye = E(9519), lt = Ke("isConcatSpreadable"), ft = Ye >= 51 || !X((function() {
12860
12860
  var Mt = [];
12861
12861
  return Mt[lt] = !1, Mt.concat()[0] !== Mt;
12862
12862
  })), jt = function(Mt) {
@@ -12918,7 +12918,7 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
12918
12918
  se.exports = P;
12919
12919
  }, 9213: function(se, pe, E) {
12920
12920
  var P = E(6080), X = E(9504), Y = E(7055), G = E(8981), me = E(6198), Ae = E(1469), be = X([].push), De = function(je) {
12921
- var et = je === 1, Ke = je === 2, Ge = je === 3, lt = je === 4, ft = je === 6, jt = je === 7, Mt = je === 5 || ft;
12921
+ var et = je === 1, Ke = je === 2, Ye = je === 3, lt = je === 4, ft = je === 6, jt = je === 7, Mt = je === 5 || ft;
12922
12922
  return function(Bt, mn, Gt, In) {
12923
12923
  for (var yn, ln, Vn = G(Bt), ei = Y(Vn), Qn = me(ei), Xn = P(mn, Gt), Ct = 0, Xt = In || Ae, Yn = et ? Xt(Bt, Qn) : Ke || jt ? Xt(Bt, 0) : void 0; Qn > Ct; Ct++) if ((Mt || Ct in ei) && (ln = Xn(yn = ei[Ct], Ct, Vn), je)) if (et) Yn[Ct] = ln;
12924
12924
  else if (ln) switch (je) {
@@ -12937,14 +12937,14 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
12937
12937
  case 7:
12938
12938
  be(Yn, yn);
12939
12939
  }
12940
- return ft ? -1 : Ge || lt ? lt : Yn;
12940
+ return ft ? -1 : Ye || lt ? lt : Yn;
12941
12941
  };
12942
12942
  };
12943
12943
  se.exports = { forEach: De(0), map: De(1), filter: De(2), some: De(3), every: De(4), find: De(5), findIndex: De(6), filterReject: De(7) };
12944
12944
  }, 9228: function(se, pe, E) {
12945
12945
  E(7495);
12946
12946
  var P = E(9565), X = E(6840), Y = E(7323), G = E(9039), me = E(8227), Ae = E(6699), be = me("species"), De = RegExp.prototype;
12947
- se.exports = function(je, et, Ke, Ge) {
12947
+ se.exports = function(je, et, Ke, Ye) {
12948
12948
  var lt = me(je), ft = !G((function() {
12949
12949
  var mn = {};
12950
12950
  return mn[lt] = function() {
@@ -12965,7 +12965,7 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
12965
12965
  }));
12966
12966
  X(String.prototype, je, Bt[0]), X(De, lt, Bt[1]);
12967
12967
  }
12968
- Ge && Ae(De[lt], "sham", !0);
12968
+ Ye && Ae(De[lt], "sham", !0);
12969
12969
  };
12970
12970
  }, 9296: function(se, pe, E) {
12971
12971
  var P = E(4055)("span").classList, X = P && P.constructor && P.constructor.prototype;
@@ -12999,15 +12999,15 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
12999
12999
  return G;
13000
13000
  };
13001
13001
  }, 9463: function(se, pe, E) {
13002
- var P = E(6518), X = E(3724), Y = E(4576), G = E(9504), me = E(9297), Ae = E(4901), be = E(1625), De = E(655), je = E(2106), et = E(7740), Ke = Y.Symbol, Ge = Ke && Ke.prototype;
13003
- if (X && Ae(Ke) && (!("description" in Ge) || Ke().description !== void 0)) {
13002
+ var P = E(6518), X = E(3724), Y = E(4576), G = E(9504), me = E(9297), Ae = E(4901), be = E(1625), De = E(655), je = E(2106), et = E(7740), Ke = Y.Symbol, Ye = Ke && Ke.prototype;
13003
+ if (X && Ae(Ke) && (!("description" in Ye) || Ke().description !== void 0)) {
13004
13004
  var lt = {}, ft = function() {
13005
- var yn = arguments.length < 1 || arguments[0] === void 0 ? void 0 : De(arguments[0]), ln = be(Ge, this) ? new Ke(yn) : yn === void 0 ? Ke() : Ke(yn);
13005
+ var yn = arguments.length < 1 || arguments[0] === void 0 ? void 0 : De(arguments[0]), ln = be(Ye, this) ? new Ke(yn) : yn === void 0 ? Ke() : Ke(yn);
13006
13006
  return yn === "" && (lt[ln] = !0), ln;
13007
13007
  };
13008
- et(ft, Ke), ft.prototype = Ge, Ge.constructor = ft;
13009
- var jt = String(Ke("description detection")) === "Symbol(description detection)", Mt = G(Ge.valueOf), Bt = G(Ge.toString), mn = /^Symbol\((.*)\)[^)]+$/, Gt = G("".replace), In = G("".slice);
13010
- je(Ge, "description", { configurable: !0, get: function() {
13008
+ et(ft, Ke), ft.prototype = Ye, Ye.constructor = ft;
13009
+ var jt = String(Ke("description detection")) === "Symbol(description detection)", Mt = G(Ye.valueOf), Bt = G(Ye.toString), mn = /^Symbol\((.*)\)[^)]+$/, Gt = G("".replace), In = G("".slice);
13010
+ je(Ye, "description", { configurable: !0, get: function() {
13011
13011
  var yn = Mt(this);
13012
13012
  if (me(lt, yn)) return "";
13013
13013
  var ln = Bt(yn), Vn = jt ? In(ln, 7, -1) : Gt(ln, mn, "$1");
@@ -13055,10 +13055,10 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
13055
13055
  return function(Ae, be, De) {
13056
13056
  var je = P(Ae), et = Y(je);
13057
13057
  if (et === 0) return !me && -1;
13058
- var Ke, Ge = X(De, et);
13058
+ var Ke, Ye = X(De, et);
13059
13059
  if (me && be != be) {
13060
- for (; et > Ge; ) if ((Ke = je[Ge++]) != Ke) return !0;
13061
- } else for (; et > Ge; Ge++) if ((me || Ge in je) && je[Ge] === be) return me || Ge || 0;
13060
+ for (; et > Ye; ) if ((Ke = je[Ye++]) != Ke) return !0;
13061
+ } else for (; et > Ye; Ye++) if ((me || Ye in je) && je[Ye] === be) return me || Ye || 0;
13062
13062
  return !me && -1;
13063
13063
  };
13064
13064
  };
@@ -13145,16 +13145,16 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
13145
13145
  var pe = "classList", E = "prototype", P = se.Element[E], X = Object, Y = String[E].trim || function() {
13146
13146
  return this.replace(/^\s+|\s+$/g, "");
13147
13147
  }, G = Array[E].indexOf || function(Ke) {
13148
- for (var Ge = 0, lt = this.length; Ge < lt; Ge++) if (Ge in this && this[Ge] === Ke) return Ge;
13148
+ for (var Ye = 0, lt = this.length; Ye < lt; Ye++) if (Ye in this && this[Ye] === Ke) return Ye;
13149
13149
  return -1;
13150
- }, me = function(Ke, Ge) {
13151
- this.name = Ke, this.code = DOMException[Ke], this.message = Ge;
13152
- }, Ae = function(Ke, Ge) {
13153
- if (Ge === "") throw new me("SYNTAX_ERR", "The token must not be empty.");
13154
- if (/\s/.test(Ge)) throw new me("INVALID_CHARACTER_ERR", "The token must not contain space characters.");
13155
- return G.call(Ke, Ge);
13150
+ }, me = function(Ke, Ye) {
13151
+ this.name = Ke, this.code = DOMException[Ke], this.message = Ye;
13152
+ }, Ae = function(Ke, Ye) {
13153
+ if (Ye === "") throw new me("SYNTAX_ERR", "The token must not be empty.");
13154
+ if (/\s/.test(Ye)) throw new me("INVALID_CHARACTER_ERR", "The token must not contain space characters.");
13155
+ return G.call(Ke, Ye);
13156
13156
  }, be = function(Ke) {
13157
- for (var Ge = Y.call(Ke.getAttribute("class") || ""), lt = Ge ? Ge.split(/\s+/) : [], ft = 0, jt = lt.length; ft < jt; ft++) this.push(lt[ft]);
13157
+ for (var Ye = Y.call(Ke.getAttribute("class") || ""), lt = Ye ? Ye.split(/\s+/) : [], ft = 0, jt = lt.length; ft < jt; ft++) this.push(lt[ft]);
13158
13158
  this._updateClassName = function() {
13159
13159
  Ke.setAttribute("class", this.toString());
13160
13160
  };
@@ -13166,23 +13166,23 @@ var Y6, G6 = { exports: {} }, JW = (Y6 || (Y6 = 1, G6.exports = (function() {
13166
13166
  }, De.contains = function(Ke) {
13167
13167
  return ~Ae(this, Ke + "");
13168
13168
  }, De.add = function() {
13169
- var Ke, Ge = arguments, lt = 0, ft = Ge.length, jt = !1;
13169
+ var Ke, Ye = arguments, lt = 0, ft = Ye.length, jt = !1;
13170
13170
  do
13171
- ~Ae(this, Ke = Ge[lt] + "") || (this.push(Ke), jt = !0);
13171
+ ~Ae(this, Ke = Ye[lt] + "") || (this.push(Ke), jt = !0);
13172
13172
  while (++lt < ft);
13173
13173
  jt && this._updateClassName();
13174
13174
  }, De.remove = function() {
13175
- var Ke, Ge, lt = arguments, ft = 0, jt = lt.length, Mt = !1;
13175
+ var Ke, Ye, lt = arguments, ft = 0, jt = lt.length, Mt = !1;
13176
13176
  do
13177
- for (Ge = Ae(this, Ke = lt[ft] + ""); ~Ge; ) this.splice(Ge, 1), Mt = !0, Ge = Ae(this, Ke);
13177
+ for (Ye = Ae(this, Ke = lt[ft] + ""); ~Ye; ) this.splice(Ye, 1), Mt = !0, Ye = Ae(this, Ke);
13178
13178
  while (++ft < jt);
13179
13179
  Mt && this._updateClassName();
13180
- }, De.toggle = function(Ke, Ge) {
13181
- var lt = this.contains(Ke), ft = lt ? Ge !== !0 && "remove" : Ge !== !1 && "add";
13182
- return ft && this[ft](Ke), Ge === !0 || Ge === !1 ? Ge : !lt;
13183
- }, De.replace = function(Ke, Ge) {
13180
+ }, De.toggle = function(Ke, Ye) {
13181
+ var lt = this.contains(Ke), ft = lt ? Ye !== !0 && "remove" : Ye !== !1 && "add";
13182
+ return ft && this[ft](Ke), Ye === !0 || Ye === !1 ? Ye : !lt;
13183
+ }, De.replace = function(Ke, Ye) {
13184
13184
  var lt = Ae(Ke + "");
13185
- ~lt && (this.splice(lt, 1, Ge), this._updateClassName());
13185
+ ~lt && (this.splice(lt, 1, Ye), this._updateClassName());
13186
13186
  }, De.toString = function() {
13187
13187
  return this.join(" ");
13188
13188
  }, X.defineProperty) {
@@ -13324,19 +13324,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
13324
13324
  throw new TypeError(`Invalid attempt to iterate non-iterable instance.
13325
13325
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
13326
13326
  }
13327
- var et, Ke = !0, Ge = !1;
13327
+ var et, Ke = !0, Ye = !1;
13328
13328
  return { s: function() {
13329
13329
  be = be.call(Ae);
13330
13330
  }, n: function() {
13331
13331
  var lt = be.next();
13332
13332
  return Ke = lt.done, lt;
13333
13333
  }, e: function(lt) {
13334
- Ge = !0, et = lt;
13334
+ Ye = !0, et = lt;
13335
13335
  }, f: function() {
13336
13336
  try {
13337
13337
  Ke || be.return == null || be.return();
13338
13338
  } finally {
13339
- if (Ge) throw et;
13339
+ if (Ye) throw et;
13340
13340
  }
13341
13341
  } };
13342
13342
  })(Object.getOwnPropertyNames(P.prototype));
@@ -13404,18 +13404,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
13404
13404
  if (!be) return;
13405
13405
  G = be, me = "{".concat(X, "}");
13406
13406
  }
13407
- var De, je, et, Ke, Ge = function(ft) {
13407
+ var De, je, et, Ke, Ye = function(ft) {
13408
13408
  ft.style.background = P.physicalKeyboardHighlightBgColor || "#dadce4", ft.style.color = P.physicalKeyboardHighlightTextColor || "black";
13409
13409
  };
13410
13410
  if (G) if (Array.isArray(G)) {
13411
13411
  if (G.forEach((function(ft) {
13412
- return Ge(ft);
13412
+ return Ye(ft);
13413
13413
  })), P.physicalKeyboardHighlightPress) if (P.physicalKeyboardHighlightPressUsePointerEvents) (De = G[0]) === null || De === void 0 || (je = De.onpointerdown) === null || je === void 0 || je.call(De, E);
13414
13414
  else if (P.physicalKeyboardHighlightPressUseClick) {
13415
13415
  var lt;
13416
13416
  (lt = G[0]) === null || lt === void 0 || lt.click();
13417
13417
  } else Y.handleButtonClicked(me, E);
13418
- } else Ge(G), P.physicalKeyboardHighlightPress && (P.physicalKeyboardHighlightPressUsePointerEvents ? (et = G) === null || et === void 0 || (Ke = et.onpointerdown) === null || Ke === void 0 || Ke.call(et, E) : P.physicalKeyboardHighlightPressUseClick ? G.click() : Y.handleButtonClicked(me, E));
13418
+ } else Ye(G), P.physicalKeyboardHighlightPress && (P.physicalKeyboardHighlightPressUsePointerEvents ? (et = G) === null || et === void 0 || (Ke = et.onpointerdown) === null || Ke === void 0 || Ke.call(et, E) : P.physicalKeyboardHighlightPressUseClick ? G.click() : Y.handleButtonClicked(me, E));
13419
13419
  }));
13420
13420
  } }, { key: "handleHighlightKeyUp", value: function(E) {
13421
13421
  var P = this.getOptions();
@@ -13504,10 +13504,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
13504
13504
  je && X.renderPage({ candidateListPages: Y, targetElement: G, pageIndex: me - 1, nbPages: Ae, onItemSelected: be });
13505
13505
  };
13506
13506
  this.options.useTouchEvents ? et.ontouchstart = Ke : et.onclick = Ke, this.candidateBoxElement.appendChild(et), this.candidateBoxElement.appendChild(De);
13507
- var Ge = me < Ae - 1, lt = document.createElement("div");
13508
- lt.classList.add("hg-candidate-box-next"), Ge && lt.classList.add("hg-candidate-box-btn-active");
13507
+ var Ye = me < Ae - 1, lt = document.createElement("div");
13508
+ lt.classList.add("hg-candidate-box-next"), Ye && lt.classList.add("hg-candidate-box-btn-active");
13509
13509
  var ft = function() {
13510
- Ge && X.renderPage({ candidateListPages: Y, targetElement: G, pageIndex: me + 1, nbPages: Ae, onItemSelected: be });
13510
+ Ye && X.renderPage({ candidateListPages: Y, targetElement: G, pageIndex: me + 1, nbPages: Ae, onItemSelected: be });
13511
13511
  };
13512
13512
  this.options.useTouchEvents ? lt.ontouchstart = ft : lt.onclick = ft, this.candidateBoxElement.appendChild(lt), G.prepend(this.candidateBoxElement);
13513
13513
  } }], pe && K(se.prototype, pe), Object.defineProperty(se, "prototype", { writable: !1 }), se;
@@ -13576,14 +13576,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
13576
13576
  var ht = (function() {
13577
13577
  return se = function E(P, X) {
13578
13578
  var Y = this;
13579
- if ((function(Ke, Ge) {
13580
- if (!(Ke instanceof Ge)) throw new TypeError("Cannot call a class as a function");
13581
- })(this, E), $e(this, "input", void 0), $e(this, "options", void 0), $e(this, "utilities", void 0), $e(this, "caretPosition", void 0), $e(this, "caretPositionEnd", void 0), $e(this, "keyboardDOM", void 0), $e(this, "keyboardPluginClasses", void 0), $e(this, "keyboardDOMClass", void 0), $e(this, "buttonElements", void 0), $e(this, "currentInstanceName", void 0), $e(this, "allKeyboardInstances", void 0), $e(this, "keyboardInstanceNames", void 0), $e(this, "isFirstKeyboardInstance", void 0), $e(this, "physicalKeyboard", void 0), $e(this, "modules", void 0), $e(this, "activeButtonClass", void 0), $e(this, "holdInteractionTimeout", void 0), $e(this, "holdTimeout", void 0), $e(this, "isMouseHold", void 0), $e(this, "initialized", void 0), $e(this, "candidateBox", void 0), $e(this, "keyboardRowsDOM", void 0), $e(this, "defaultName", "default"), $e(this, "activeInputElement", null), $e(this, "handleParams", (function(Ke, Ge) {
13579
+ if ((function(Ke, Ye) {
13580
+ if (!(Ke instanceof Ye)) throw new TypeError("Cannot call a class as a function");
13581
+ })(this, E), $e(this, "input", void 0), $e(this, "options", void 0), $e(this, "utilities", void 0), $e(this, "caretPosition", void 0), $e(this, "caretPositionEnd", void 0), $e(this, "keyboardDOM", void 0), $e(this, "keyboardPluginClasses", void 0), $e(this, "keyboardDOMClass", void 0), $e(this, "buttonElements", void 0), $e(this, "currentInstanceName", void 0), $e(this, "allKeyboardInstances", void 0), $e(this, "keyboardInstanceNames", void 0), $e(this, "isFirstKeyboardInstance", void 0), $e(this, "physicalKeyboard", void 0), $e(this, "modules", void 0), $e(this, "activeButtonClass", void 0), $e(this, "holdInteractionTimeout", void 0), $e(this, "holdTimeout", void 0), $e(this, "isMouseHold", void 0), $e(this, "initialized", void 0), $e(this, "candidateBox", void 0), $e(this, "keyboardRowsDOM", void 0), $e(this, "defaultName", "default"), $e(this, "activeInputElement", null), $e(this, "handleParams", (function(Ke, Ye) {
13582
13582
  var lt, ft, jt;
13583
- if (typeof Ke == "string") lt = Ke.split(".").join(""), ft = document.querySelector(".".concat(lt)), jt = Ge;
13583
+ if (typeof Ke == "string") lt = Ke.split(".").join(""), ft = document.querySelector(".".concat(lt)), jt = Ye;
13584
13584
  else if (Ke instanceof HTMLDivElement) {
13585
13585
  if (!Ke.className) throw console.warn("Any DOM element passed as parameter must have a class."), new Error("KEYBOARD_DOM_CLASS_ERROR");
13586
- lt = Ke.className.split(" ")[0], ft = Ke, jt = Ge;
13586
+ lt = Ke.className.split(" ")[0], ft = Ke, jt = Ye;
13587
13587
  } else lt = "simple-keyboard", ft = document.querySelector(".".concat(lt)), jt = Ke;
13588
13588
  return { keyboardDOMClass: lt, keyboardDOM: ft, options: jt };
13589
13589
  })), $e(this, "getOptions", (function() {
@@ -13592,19 +13592,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
13592
13592
  return Y.caretPosition;
13593
13593
  })), $e(this, "getCaretPositionEnd", (function() {
13594
13594
  return Y.caretPositionEnd;
13595
- })), $e(this, "registerModule", (function(Ke, Ge) {
13596
- Y.modules[Ke] || (Y.modules[Ke] = {}), Ge(Y.modules[Ke]);
13595
+ })), $e(this, "registerModule", (function(Ke, Ye) {
13596
+ Y.modules[Ke] || (Y.modules[Ke] = {}), Ye(Y.modules[Ke]);
13597
13597
  })), $e(this, "getKeyboardClassString", (function() {
13598
- for (var Ke = arguments.length, Ge = new Array(Ke), lt = 0; lt < Ke; lt++) Ge[lt] = arguments[lt];
13599
- return [Y.keyboardDOMClass].concat(Ge).filter((function(ft) {
13598
+ for (var Ke = arguments.length, Ye = new Array(Ke), lt = 0; lt < Ke; lt++) Ye[lt] = arguments[lt];
13599
+ return [Y.keyboardDOMClass].concat(Ye).filter((function(ft) {
13600
13600
  return !!ft;
13601
13601
  })).join(" ");
13602
13602
  })), typeof window < "u") {
13603
13603
  var G = this.handleParams(P, X), me = G.keyboardDOMClass, Ae = G.keyboardDOM, be = G.options, De = be === void 0 ? {} : be;
13604
13604
  this.utilities = new j({ getOptions: this.getOptions, getCaretPosition: this.getCaretPosition, getCaretPositionEnd: this.getCaretPositionEnd, dispatch: this.dispatch }), this.caretPosition = null, this.caretPositionEnd = null, this.keyboardDOM = Ae, this.options = (function(Ke) {
13605
- for (var Ge = 1; Ge < arguments.length; Ge++) {
13606
- var lt = arguments[Ge] != null ? arguments[Ge] : {};
13607
- Ge % 2 ? we(Object(lt), !0).forEach((function(ft) {
13605
+ for (var Ye = 1; Ye < arguments.length; Ye++) {
13606
+ var lt = arguments[Ye] != null ? arguments[Ye] : {};
13607
+ Ye % 2 ? we(Object(lt), !0).forEach((function(ft) {
13608
13608
  $e(Ke, ft, lt[ft]);
13609
13609
  })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(Ke, Object.getOwnPropertyDescriptors(lt)) : we(Object(lt)).forEach((function(ft) {
13610
13610
  Object.defineProperty(Ke, ft, Object.getOwnPropertyDescriptor(lt, ft));
@@ -13642,7 +13642,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
13642
13642
  this.candidateBox && this.candidateBox.show({ candidateValue: P, targetElement: X, onSelect: function(G, me) {
13643
13643
  var Ae = Y.options, be = Ae.layoutCandidatesCaseSensitiveMatch, De = Ae.enableLayoutCandidatesKeyPress, je = G;
13644
13644
  Ae.disableCandidateNormalization || (je = G.normalize("NFD")), typeof Y.options.beforeInputUpdate == "function" && Y.options.beforeInputUpdate(Y);
13645
- var et = Y.getInput(Y.options.inputName, !0), Ke = Y.getCaretPositionEnd() || 0, Ge = et.substring(0, Ke || 0) || et, lt = new RegExp("".concat(Y.utilities.escapeRegex(E), "$"), be ? "g" : "gi"), ft = Ge.replace(lt, je), jt = et.replace(Ge, ft), Mt = (Ke || et.length) + (ft.length - Ge.length);
13645
+ var et = Y.getInput(Y.options.inputName, !0), Ke = Y.getCaretPositionEnd() || 0, Ye = et.substring(0, Ke || 0) || et, lt = new RegExp("".concat(Y.utilities.escapeRegex(E), "$"), be ? "g" : "gi"), ft = Ye.replace(lt, je), jt = et.replace(Ye, ft), Mt = (Ke || et.length) + (ft.length - Ye.length);
13646
13646
  Mt < 0 && (Mt = 0), Y.setInput(jt, Y.options.inputName, !0), Y.setCaretPosition(Mt), De && typeof Y.options.onKeyPress == "function" && Y.options.onKeyPress(G, me), typeof Y.options.onChange == "function" && Y.options.onChange(Y.getInput(Y.options.inputName, !0), me), typeof Y.options.onChangeAll == "function" && Y.options.onChangeAll(Y.getAllInputs(), me);
13647
13647
  } });
13648
13648
  } }, { key: "handleButtonClicked", value: function(E, P) {
@@ -13850,14 +13850,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
13850
13850
  return me.length && X.forEach((function(be, De) {
13851
13851
  var je = Y[De];
13852
13852
  if (!(je && je > be)) return !1;
13853
- var et = be - Ae, Ke = je - Ae, Ge = document.createElement("div");
13854
- Ge.className += "hg-button-container";
13853
+ var et = be - Ae, Ke = je - Ae, Ye = document.createElement("div");
13854
+ Ye.className += "hg-button-container";
13855
13855
  var lt = "".concat(G.options.layoutName, "-r").concat(P, "c").concat(De);
13856
- Ge.setAttribute("data-skUID", lt);
13856
+ Ye.setAttribute("data-skUID", lt);
13857
13857
  var ft = me.splice(et, Ke - et + 1);
13858
13858
  Ae += Ke - et, ft.forEach((function(jt) {
13859
- return Ge.appendChild(jt);
13860
- })), me.splice(et, 0, Ge), E.innerHTML = "", me.forEach((function(jt) {
13859
+ return Ye.appendChild(jt);
13860
+ })), me.splice(et, 0, Ye), E.innerHTML = "", me.forEach((function(jt) {
13861
13861
  return E.appendChild(jt);
13862
13862
  })), G.options.debug && console.log("rowDOMContainer", ft, et, Ke, Ae + 1);
13863
13863
  })), E;
@@ -13867,41 +13867,41 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
13867
13867
  var P = "hg-layout-".concat(this.options.layoutName), X = this.options.layout || { default: ["` 1 2 3 4 5 6 7 8 9 0 - = {bksp}", "{tab} q w e r t y u i o p [ ] \\", "{lock} a s d f g h j k l ; ' {enter}", "{shift} z x c v b n m , . / {shift}", ".com @ {space}"], shift: ["~ ! @ # $ % ^ & * ( ) _ + {bksp}", "{tab} Q W E R T Y U I O P { } |", '{lock} A S D F G H J K L : " {enter}', "{shift} Z X C V B N M < > ? {shift}", ".com @ {space}"] }, Y = this.options.useTouchEvents || !1, G = this.options.useMouseEvents || !1, me = this.options.disableRowButtonContainers;
13868
13868
  this.keyboardDOM.className = this.getKeyboardClassString(this.options.theme, P, this.keyboardPluginClasses, Y ? "hg-touch-events" : ""), this.keyboardDOM.setAttribute("data-skInstance", this.currentInstanceName), this.keyboardRowsDOM = document.createElement("div"), this.keyboardRowsDOM.className = "hg-rows", X[this.options.layoutName || this.defaultName].forEach((function(Ae, be) {
13869
13869
  var De = Ae.split(" ");
13870
- E.options.excludeFromLayout && E.options.excludeFromLayout[E.options.layoutName || E.defaultName] && (De = De.filter((function(Ge) {
13871
- return E.options.excludeFromLayout && !E.options.excludeFromLayout[E.options.layoutName || E.defaultName].includes(Ge);
13870
+ E.options.excludeFromLayout && E.options.excludeFromLayout[E.options.layoutName || E.defaultName] && (De = De.filter((function(Ye) {
13871
+ return E.options.excludeFromLayout && !E.options.excludeFromLayout[E.options.layoutName || E.defaultName].includes(Ye);
13872
13872
  })));
13873
13873
  var je = document.createElement("div");
13874
13874
  je.className += "hg-row";
13875
13875
  var et = [], Ke = [];
13876
- De.forEach((function(Ge, lt) {
13877
- var ft, jt = !me && typeof Ge == "string" && Ge.length > 1 && Ge.indexOf("[") === 0, Mt = !me && typeof Ge == "string" && Ge.length > 1 && Ge.indexOf("]") === Ge.length - 1;
13878
- jt && (et.push(lt), Ge = Ge.replace(/\[/g, "")), Mt && (Ke.push(lt), Ge = Ge.replace(/\]/g, ""));
13879
- var Bt = E.utilities.getButtonClass(Ge), mn = E.utilities.getButtonDisplayName(Ge, E.options.display, E.options.mergeDisplay), Gt = document.createElement(E.options.useButtonTag ? "button" : "div");
13880
- Gt.className += "hg-button ".concat(Bt), (ft = Gt.classList).add.apply(ft, Oe(E.getButtonThemeClasses(Ge))), E.setDOMButtonAttributes(Ge, (function(ln, Vn) {
13876
+ De.forEach((function(Ye, lt) {
13877
+ var ft, jt = !me && typeof Ye == "string" && Ye.length > 1 && Ye.indexOf("[") === 0, Mt = !me && typeof Ye == "string" && Ye.length > 1 && Ye.indexOf("]") === Ye.length - 1;
13878
+ jt && (et.push(lt), Ye = Ye.replace(/\[/g, "")), Mt && (Ke.push(lt), Ye = Ye.replace(/\]/g, ""));
13879
+ var Bt = E.utilities.getButtonClass(Ye), mn = E.utilities.getButtonDisplayName(Ye, E.options.display, E.options.mergeDisplay), Gt = document.createElement(E.options.useButtonTag ? "button" : "div");
13880
+ Gt.className += "hg-button ".concat(Bt), (ft = Gt.classList).add.apply(ft, Oe(E.getButtonThemeClasses(Ye))), E.setDOMButtonAttributes(Ye, (function(ln, Vn) {
13881
13881
  Gt.setAttribute(ln, Vn);
13882
13882
  })), E.activeButtonClass = "hg-activeButton", !E.utilities.pointerEventsSupported() || Y || G ? Y ? (Gt.ontouchstart = function(ln) {
13883
- E.handleButtonClicked(Ge, ln), E.handleButtonMouseDown(Ge, ln);
13883
+ E.handleButtonClicked(Ye, ln), E.handleButtonMouseDown(Ye, ln);
13884
13884
  }, Gt.ontouchend = function(ln) {
13885
- E.handleButtonMouseUp(Ge, ln);
13885
+ E.handleButtonMouseUp(Ye, ln);
13886
13886
  }, Gt.ontouchcancel = function(ln) {
13887
- E.handleButtonMouseUp(Ge, ln);
13887
+ E.handleButtonMouseUp(Ye, ln);
13888
13888
  }) : (Gt.onclick = function(ln) {
13889
- E.setMouseHold(!1), typeof E.options.onKeyReleased == "function" || E.options.useMouseEvents && E.options.clickOnMouseDown || E.handleButtonClicked(Ge, ln);
13889
+ E.setMouseHold(!1), typeof E.options.onKeyReleased == "function" || E.options.useMouseEvents && E.options.clickOnMouseDown || E.handleButtonClicked(Ye, ln);
13890
13890
  }, Gt.onmousedown = function(ln) {
13891
- (typeof E.options.onKeyReleased == "function" || E.options.useMouseEvents && E.options.clickOnMouseDown) && !E.isMouseHold && E.handleButtonClicked(Ge, ln), E.handleButtonMouseDown(Ge, ln);
13891
+ (typeof E.options.onKeyReleased == "function" || E.options.useMouseEvents && E.options.clickOnMouseDown) && !E.isMouseHold && E.handleButtonClicked(Ye, ln), E.handleButtonMouseDown(Ye, ln);
13892
13892
  }, Gt.onmouseup = function(ln) {
13893
- E.handleButtonMouseUp(Ge, ln);
13893
+ E.handleButtonMouseUp(Ye, ln);
13894
13894
  }) : (Gt.onpointerdown = function(ln) {
13895
- E.handleButtonClicked(Ge, ln), E.handleButtonMouseDown(Ge, ln);
13895
+ E.handleButtonClicked(Ye, ln), E.handleButtonMouseDown(Ye, ln);
13896
13896
  }, Gt.onpointerup = function(ln) {
13897
- E.handleButtonMouseUp(Ge, ln);
13897
+ E.handleButtonMouseUp(Ye, ln);
13898
13898
  }, Gt.onpointercancel = function(ln) {
13899
- E.handleButtonMouseUp(Ge, ln);
13900
- }), Gt.setAttribute("data-skBtn", Ge);
13899
+ E.handleButtonMouseUp(Ye, ln);
13900
+ }), Gt.setAttribute("data-skBtn", Ye);
13901
13901
  var In = "".concat(E.options.layoutName, "-r").concat(be, "b").concat(lt);
13902
13902
  Gt.setAttribute("data-skBtnUID", In);
13903
13903
  var yn = document.createElement("span");
13904
- yn.innerHTML = mn, Gt.appendChild(yn), E.buttonElements[Ge] || (E.buttonElements[Ge] = []), E.buttonElements[Ge].push(Gt), je.appendChild(Gt);
13904
+ yn.innerHTML = mn, Gt.appendChild(yn), E.buttonElements[Ye] || (E.buttonElements[Ye] = []), E.buttonElements[Ye].push(Gt), je.appendChild(Gt);
13905
13905
  })), je = E.parseRowDOMContainers(je, be, et, Ke), E.keyboardRowsDOM.appendChild(je);
13906
13906
  })), this.keyboardDOM.appendChild(this.keyboardRowsDOM), this.onRender(), this.initialized || (this.initialized = !0, !this.utilities.pointerEventsSupported() || Y || G ? Y ? (document.ontouchend = function(Ae) {
13907
13907
  return E.handleButtonMouseUp(void 0, Ae);
@@ -17238,9 +17238,9 @@ const zK = Gr(class extends Yr {
17238
17238
  if (Ke) throw new RangeError("The format string mustn't contain `".concat(Ke.fullToken, "` and `").concat(be, "` at the same time"));
17239
17239
  } else if (je.incompatibleTokens === "*" && ht.length > 0) throw new RangeError("The format string mustn't contain `".concat(be, "` and any other token at the same time"));
17240
17240
  ht.push({ token: De, fullToken: be });
17241
- var Ge = je.run(ve, be, Oe.match, Qe);
17242
- if (!Ge) return { v: /* @__PURE__ */ new Date(NaN) };
17243
- $e.push(Ge.setter), ve = Ge.rest;
17241
+ var Ye = je.run(ve, be, Oe.match, Qe);
17242
+ if (!Ye) return { v: /* @__PURE__ */ new Date(NaN) };
17243
+ $e.push(Ye.setter), ve = Ye.rest;
17244
17244
  } else {
17245
17245
  if (De.match(LK)) throw new RangeError("Format string contains an unescaped latin alphabet character `" + De + "`");
17246
17246
  if (be === "''" ? be = "'" : De === "'" && (be = (function(lt) {
@@ -17786,7 +17786,7 @@ const QK = Gr(class extends Yr {
17786
17786
  }, [1, "mi-metric-card", { label: [1], value: [1], tip: [1], spinner: [4], error: [1], showToolTip: [32] }]), ZK = GK;
17787
17787
  var kN, zN, ON, Si, fx = { exports: {} }, WK = fx.exports, n3 = (kN || (kN = 1, (function(e, n) {
17788
17788
  (function(s, c) {
17789
- var d = "user-agent", y = "", _ = "function", o = "undefined", T = "object", A = "string", z = "browser", j = "cpu", U = "device", $ = "engine", ee = "os", he = "result", fe = "name", ae = "type", K = "vendor", ne = "version", ve = "architecture", Me = "major", ce = "model", Oe = "console", Ee = "mobile", ze = "tablet", we = "smarttv", Qe = "wearable", $e = "xr", Be = "embedded", ht = "inapp", wt = "brands", Lt = "formFactors", se = "fullVersionList", pe = "platform", E = "platformVersion", P = "bitness", X = "sec-ch-ua", Y = X + "-full-version-list", G = X + "-arch", me = X + "-" + P, Ae = X + "-form-factors", be = X + "-" + Ee, De = X + "-" + ce, je = X + "-" + pe, et = je + "-version", Ke = [wt, se, Ee, ce, pe, E, ve, Lt, P], Ge = "Amazon", lt = "Apple", ft = "ASUS", jt = "BlackBerry", Mt = "Google", Bt = "Huawei", mn = "Lenovo", Gt = "Honor", In = "LG", yn = "Microsoft", ln = "Motorola", Vn = "Nvidia", ei = "OnePlus", Qn = "OPPO", Xn = "Samsung", Ct = "Sharp", Xt = "Sony", Yn = "Xiaomi", Zn = "Zebra", Sn = "Chrome", mi = "Chromium", di = "Chromecast", vi = "Firefox", yi = "Opera", Ot = "Facebook", Tt = "Sogou", tn = "Mobile ", Ft = " Browser", dn = "Windows", Tn = typeof s !== o, An = Tn && s.navigator ? s.navigator : c, Rn = An && An.userAgentData ? An.userAgentData : c, Cn = function(Ve) {
17789
+ var d = "user-agent", y = "", _ = "function", o = "undefined", T = "object", A = "string", z = "browser", j = "cpu", U = "device", $ = "engine", ee = "os", he = "result", fe = "name", ae = "type", K = "vendor", ne = "version", ve = "architecture", Me = "major", ce = "model", Oe = "console", Ee = "mobile", ze = "tablet", we = "smarttv", Qe = "wearable", $e = "xr", Be = "embedded", ht = "inapp", wt = "brands", Lt = "formFactors", se = "fullVersionList", pe = "platform", E = "platformVersion", P = "bitness", X = "sec-ch-ua", Y = X + "-full-version-list", G = X + "-arch", me = X + "-" + P, Ae = X + "-form-factors", be = X + "-" + Ee, De = X + "-" + ce, je = X + "-" + pe, et = je + "-version", Ke = [wt, se, Ee, ce, pe, E, ve, Lt, P], Ye = "Amazon", lt = "Apple", ft = "ASUS", jt = "BlackBerry", Mt = "Google", Bt = "Huawei", mn = "Lenovo", Gt = "Honor", In = "LG", yn = "Microsoft", ln = "Motorola", Vn = "Nvidia", ei = "OnePlus", Qn = "OPPO", Xn = "Samsung", Ct = "Sharp", Xt = "Sony", Yn = "Xiaomi", Zn = "Zebra", Sn = "Chrome", mi = "Chromium", di = "Chromecast", vi = "Firefox", yi = "Opera", Ot = "Facebook", Tt = "Sogou", tn = "Mobile ", Ft = " Browser", dn = "Windows", Tn = typeof s !== o, An = Tn && s.navigator ? s.navigator : c, Rn = An && An.userAgentData ? An.userAgentData : c, Cn = function(Ve) {
17790
17790
  for (var st = {}, xt = 0; xt < Ve.length; xt++) st[Ve[xt].toUpperCase()] = Ve[xt];
17791
17791
  return st;
17792
17792
  }, li = function(Ve, st) {
@@ -17833,7 +17833,7 @@ var kN, zN, ON, Si, fx = { exports: {} }, WK = fx.exports, n3 = (kN || (kN = 1,
17833
17833
  for (var St = 0; St < st[xt].length; St++) if (li(st[xt][St], Ve)) return xt === "?" ? c : xt;
17834
17834
  } else if (li(st[xt], Ve)) return xt === "?" ? c : xt;
17835
17835
  return st.hasOwnProperty("*") ? st["*"] : Ve;
17836
- }, Lr = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, Lo = { embedded: "Automotive", mobile: "Mobile", tablet: ["Tablet", "EInk"], smarttv: "TV", wearable: "Watch", xr: ["VR", "XR"], "?": ["Desktop", "Unknown"], "*": c }, mt = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [ne, [fe, tn + "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [ne, [fe, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [fe, ne], [/opios[\/ ]+([\w\.]+)/i], [ne, [fe, yi + " Mini"]], [/\bop(?:rg)?x\/([\w\.]+)/i], [ne, [fe, yi + " GX"]], [/\bopr\/([\w\.]+)/i], [ne, [fe, yi]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [ne, [fe, "Baidu"]], [/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i], [ne, [fe, "Maxthon"]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i, /(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:lg |qute)browser)\/([-\w\.]+)/i, /(heytap|ovi|115|surf)browser\/([\d\.]+)/i, /(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i], [fe, ne], [/quark(?:pc)?\/([-\w\.]+)/i], [ne, [fe, "Quark"]], [/\bddg\/([\w\.]+)/i], [ne, [fe, "DuckDuckGo"]], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [ne, [fe, "UCBrowser"]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [ne, [fe, "WeChat"]], [/konqueror\/([\w\.]+)/i], [ne, [fe, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [ne, [fe, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [ne, [fe, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [ne, [fe, "Smart " + mn + Ft]], [/(avast|avg)\/([\w\.]+)/i], [[fe, /(.+)/, "$1 Secure" + Ft], ne], [/\bfocus\/([\w\.]+)/i], [ne, [fe, vi + " Focus"]], [/\bopt\/([\w\.]+)/i], [ne, [fe, yi + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [ne, [fe, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [ne, [fe, "Dolphin"]], [/coast\/([\w\.]+)/i], [ne, [fe, yi + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [ne, [fe, "MIUI" + Ft]], [/fxios\/([\w\.-]+)/i], [ne, [fe, tn + vi]], [/\bqihoobrowser\/?([\w\.]*)/i], [ne, [fe, "360"]], [/\b(qq)\/([\w\.]+)/i], [[fe, /(.+)/, "$1Browser"], ne], [/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i], [[fe, /(.+)/, "$1" + Ft], ne], [/samsungbrowser\/([\w\.]+)/i], [ne, [fe, Xn + " Internet"]], [/metasr[\/ ]?([\d\.]+)/i], [ne, [fe, Tt + " Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[fe, Tt + " Mobile"], ne], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i], [fe, ne], [/(lbbrowser|rekonq)/i], [fe], [/ome\/([\w\.]+) \w* ?(iron) saf/i, /ome\/([\w\.]+).+qihu (360)[es]e/i], [ne, fe], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[fe, Ot], ne, [ae, ht]], [/(Klarna)\/([\w\.]+)/i, /(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /(daum)apps[\/ ]([\w\.]+)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(alipay)client\/([\w\.]+)/i, /(twitter)(?:and| f.+e\/([\w\.]+))/i, /(instagram|snapchat)[\/ ]([-\w\.]+)/i], [fe, ne, [ae, ht]], [/\bgsa\/([\w\.]+) .*safari\//i], [ne, [fe, "GSA"], [ae, ht]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [ne, [fe, "TikTok"], [ae, ht]], [/\[(linkedin)app\]/i], [fe, [ae, ht]], [/(chromium)[\/ ]([-\w\.]+)/i], [fe, ne], [/headlesschrome(?:\/([\w\.]+)| )/i], [ne, [fe, Sn + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[fe, Sn + " WebView"], ne], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [ne, [fe, "Android" + Ft]], [/chrome\/([\w\.]+) mobile/i], [ne, [fe, tn + "Chrome"]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [fe, ne], [/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i], [ne, [fe, tn + "Safari"]], [/iphone .*mobile(?:\/\w+ | ?)safari/i], [[fe, tn + "Safari"]], [/version\/([\w\.\,]+) .*(safari)/i], [ne, fe], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [fe, [ne, "1"]], [/(webkit|khtml)\/([\w\.]+)/i], [fe, ne], [/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i], [[fe, tn + vi], ne], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[fe, "Netscape"], ne], [/(wolvic|librewolf)\/([\w\.]+)/i], [fe, ne], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [ne, [fe, vi + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /\b(links) \(([\w\.]+)/i], [fe, [ne, /_/g, "."]], [/(cobalt)\/([\w\.]+)/i], [fe, [ne, /[^\d\.]+./, y]]], cpu: [[/\b((amd|x|x86[-_]?|wow|win)64)\b/i], [[ve, "amd64"]], [/(ia32(?=;))/i, /\b((i[346]|x)86)(pc)?\b/i], [[ve, "ia32"]], [/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i], [[ve, "arm64"]], [/\b(arm(v[67])?ht?n?[fl]p?)\b/i], [[ve, "armhf"]], [/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i], [[ve, "arm"]], [/((ppc|powerpc)(64)?)( mac|;|\))/i], [[ve, /ower/, y, xr]], [/ sun4\w[;\)]/i], [[ve, "sparc"]], [/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i], [[ve, xr]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [ce, [K, Xn], [ae, ze]], [/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]((?!sm-[lr])[-\w]+)/i, /sec-(sgh\w+)/i], [ce, [K, Xn], [ae, Ee]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [ce, [K, lt], [ae, Ee]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [ce, [K, lt], [ae, ze]], [/(macintosh);/i], [ce, [K, lt]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [ce, [K, Ct], [ae, Ee]], [/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i], [ce, [K, Gt], [ae, ze]], [/honor([-\w ]+)[;\)]/i], [ce, [K, Gt], [ae, Ee]], [/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i], [ce, [K, Bt], [ae, ze]], [/(?:huawei)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [ce, [K, Bt], [ae, Ee]], [/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i, /\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i], [[ce, /_/g, " "], [K, Yn], [ae, ze]], [/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i, / ([\w ]+) miui\/v?\d/i], [[ce, /_/g, " "], [K, Yn], [ae, Ee]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [ce, [K, Qn], [ae, Ee]], [/\b(opd2(\d{3}a?))(?: bui|\))/i], [ce, [K, Cr, { OnePlus: ["304", "403", "203"], "*": Qn }], [ae, ze]], [/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i], [ce, [K, "BLU"], [ae, Ee]], [/; vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [ce, [K, "Vivo"], [ae, Ee]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [ce, [K, "Realme"], [ae, Ee]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [ce, [K, ln], [ae, Ee]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [ce, [K, ln], [ae, ze]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [ce, [K, In], [ae, ze]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch))(\w+)/i, /\blg-?([\d\w]+) bui/i], [ce, [K, In], [ae, Ee]], [/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i, /lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i], [ce, [K, mn], [ae, ze]], [/(nokia) (t[12][01])/i], [K, ce, [ae, ze]], [/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i, /nokia[-_ ]?(([-\w\. ]*))/i], [[ce, /_/g, " "], [ae, Ee], [K, "Nokia"]], [/(pixel (c|tablet))\b/i], [ce, [K, Mt], [ae, ze]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [ce, [K, Mt], [ae, Ee]], [/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [ce, [K, Xt], [ae, Ee]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[ce, "Xperia Tablet"], [K, Xt], [ae, ze]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [ce, [K, ei], [ae, Ee]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [ce, [K, Ge], [ae, ze]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[ce, /(.+)/g, "Fire Phone $1"], [K, Ge], [ae, Ee]], [/(playbook);[-\w\),; ]+(rim)/i], [ce, K, [ae, ze]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [ce, [K, jt], [ae, Ee]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [ce, [K, ft], [ae, ze]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [ce, [K, ft], [ae, Ee]], [/(nexus 9)/i], [ce, [K, "HTC"], [ae, ze]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [K, [ce, /_/g, " "], [ae, Ee]], [/tcl (xess p17aa)/i, /droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i], [ce, [K, "TCL"], [ae, ze]], [/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i], [ce, [K, "TCL"], [ae, Ee]], [/(itel) ((\w+))/i], [[K, xr], ce, [ae, Cr, { tablet: ["p10001l", "w7001"], "*": "mobile" }]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [ce, [K, "Acer"], [ae, ze]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [ce, [K, "Meizu"], [ae, Ee]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [ce, [K, "Ulefone"], [ae, Ee]], [/; (energy ?\w+)(?: bui|\))/i, /; energizer ([\w ]+)(?: bui|\))/i], [ce, [K, "Energizer"], [ae, Ee]], [/; cat (b35);/i, /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i], [ce, [K, "Cat"], [ae, Ee]], [/((?:new )?andromax[\w- ]+)(?: bui|\))/i], [ce, [K, "Smartfren"], [ae, Ee]], [/droid.+; (a(?:015|06[35]|142p?))/i], [ce, [K, "Nothing"], [ae, Ee]], [/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i, /archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i], [ce, [K, "Archos"], [ae, ze]], [/archos ([\w ]+)( b|\))/i, /; (ac[3-6]\d\w{2,8})( b|\))/i], [ce, [K, "Archos"], [ae, Ee]], [/(imo) (tab \w+)/i, /(infinix) (x1101b?)/i], [K, ce, [ae, ze]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i, /; (blu|hmd|imo|tcl)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i, /(hp) ([\w ]+\w)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i, /(oppo) ?([\w ]+) bui/i], [K, ce, [ae, Ee]], [/(kobo)\s(ereader|touch)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i], [K, ce, [ae, ze]], [/(surface duo)/i], [ce, [K, yn], [ae, ze]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [ce, [K, "Fairphone"], [ae, Ee]], [/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i], [ce, [K, Vn], [ae, ze]], [/(sprint) (\w+)/i], [K, ce, [ae, Ee]], [/(kin\.[onetw]{3})/i], [[ce, /\./g, " "], [K, yn], [ae, Ee]], [/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [ce, [K, Zn], [ae, ze]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [ce, [K, Zn], [ae, Ee]], [/smart-tv.+(samsung)/i], [K, [ae, we]], [/hbbtv.+maple;(\d+)/i], [[ce, /^/, "SmartTV"], [K, Xn], [ae, we]], [/tcast.+(lg)e?. ([-\w]+)/i], [K, ce, [ae, we]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[K, In], [ae, we]], [/(apple) ?tv/i], [K, [ce, lt + " TV"], [ae, we]], [/crkey.*devicetype\/chromecast/i], [[ce, di + " Third Generation"], [K, Mt], [ae, we]], [/crkey.*devicetype\/([^/]*)/i], [[ce, /^/, "Chromecast "], [K, Mt], [ae, we]], [/fuchsia.*crkey/i], [[ce, di + " Nest Hub"], [K, Mt], [ae, we]], [/crkey/i], [[ce, di], [K, Mt], [ae, we]], [/(portaltv)/i], [ce, [K, Ot], [ae, we]], [/droid.+aft(\w+)( bui|\))/i], [ce, [K, Ge], [ae, we]], [/(shield \w+ tv)/i], [ce, [K, Vn], [ae, we]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [ce, [K, Ct], [ae, we]], [/(bravia[\w ]+)( bui|\))/i], [ce, [K, Xt], [ae, we]], [/(mi(tv|box)-?\w+) bui/i], [ce, [K, Yn], [ae, we]], [/Hbbtv.*(technisat) (.*);/i], [K, ce, [ae, we]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[K, Xi], [ce, Xi], [ae, we]], [/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i], [ce, [ae, we]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[ae, we]], [/(ouya)/i, /(nintendo) (\w+)/i], [K, ce, [ae, Oe]], [/droid.+; (shield)( bui|\))/i], [ce, [K, Vn], [ae, Oe]], [/(playstation \w+)/i], [ce, [K, Xt], [ae, Oe]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [ce, [K, yn], [ae, Oe]], [/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i], [ce, [K, Xn], [ae, Qe]], [/((pebble))app/i, /(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i], [K, ce, [ae, Qe]], [/(ow(?:19|20)?we?[1-3]{1,3})/i], [ce, [K, Qn], [ae, Qe]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [ce, [K, lt], [ae, Qe]], [/(opwwe\d{3})/i], [ce, [K, ei], [ae, Qe]], [/(moto 360)/i], [ce, [K, ln], [ae, Qe]], [/(smartwatch 3)/i], [ce, [K, Xt], [ae, Qe]], [/(g watch r)/i], [ce, [K, In], [ae, Qe]], [/droid.+; (wt63?0{2,3})\)/i], [ce, [K, Zn], [ae, Qe]], [/droid.+; (glass) \d/i], [ce, [K, Mt], [ae, $e]], [/(pico) (4|neo3(?: link|pro)?)/i], [K, ce, [ae, $e]], [/(quest( \d| pro)?s?).+vr/i], [ce, [K, Ot], [ae, $e]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [K, [ae, Be]], [/(aeobc)\b/i], [ce, [K, Ge], [ae, Be]], [/(homepod).+mac os/i], [ce, [K, lt], [ae, Be]], [/windows iot/i], [[ae, Be]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+?(mobile|vr|\d) safari/i], [ce, [ae, Cr, { mobile: "Mobile", xr: "VR", "*": ze }]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[ae, ze]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[ae, Ee]], [/droid .+?; ([\w\. -]+)( bui|\))/i], [ce, [K, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [ne, [fe, "EdgeHTML"]], [/(arkweb)\/([\w\.]+)/i], [fe, ne], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [ne, [fe, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [fe, ne], [/ladybird\//i], [[fe, "LibWeb"]], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [ne, fe]], os: [[/microsoft (windows) (vista|xp)/i], [fe, ne], [/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i], [fe, [ne, Cr, Lr]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[ne, Cr, Lr], [fe, dn]], [/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[ne, /_/g, "."], [fe, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[fe, "macOS"], [ne, /_/g, "."]], [/android ([\d\.]+).*crkey/i], [ne, [fe, di + " Android"]], [/fuchsia.*crkey\/([\d\.]+)/i], [ne, [fe, di + " Fuchsia"]], [/crkey\/([\d\.]+).*devicetype\/smartspeaker/i], [ne, [fe, di + " SmartSpeaker"]], [/linux.*crkey\/([\d\.]+)/i], [ne, [fe, di + " Linux"]], [/crkey\/([\d\.]+)/i], [ne, [fe, di]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [ne, fe], [/(ubuntu) ([\w\.]+) like android/i], [[fe, /(.+)/, "$1 Touch"], ne], [/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/\.; ]?([\d\.]*)/i], [fe, ne], [/\(bb(10);/i], [ne, [fe, jt]], [/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i], [ne, [fe, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [ne, [fe, vi + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [ne, [fe, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [ne, [fe, "watchOS"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[fe, "Chrome OS"], ne], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) (\w+)/i, /(xbox); +xbox ([^\);]+)/i, /(pico) .+os([\w\.]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [fe, ne], [/(sunos) ?([\w\.\d]*)/i], [[fe, "Solaris"], ne], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [fe, ne]] }, de = (function() {
17836
+ }, Lr = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, Lo = { embedded: "Automotive", mobile: "Mobile", tablet: ["Tablet", "EInk"], smarttv: "TV", wearable: "Watch", xr: ["VR", "XR"], "?": ["Desktop", "Unknown"], "*": c }, mt = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [ne, [fe, tn + "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [ne, [fe, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [fe, ne], [/opios[\/ ]+([\w\.]+)/i], [ne, [fe, yi + " Mini"]], [/\bop(?:rg)?x\/([\w\.]+)/i], [ne, [fe, yi + " GX"]], [/\bopr\/([\w\.]+)/i], [ne, [fe, yi]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [ne, [fe, "Baidu"]], [/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i], [ne, [fe, "Maxthon"]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i, /(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:lg |qute)browser)\/([-\w\.]+)/i, /(heytap|ovi|115|surf)browser\/([\d\.]+)/i, /(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i], [fe, ne], [/quark(?:pc)?\/([-\w\.]+)/i], [ne, [fe, "Quark"]], [/\bddg\/([\w\.]+)/i], [ne, [fe, "DuckDuckGo"]], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [ne, [fe, "UCBrowser"]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [ne, [fe, "WeChat"]], [/konqueror\/([\w\.]+)/i], [ne, [fe, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [ne, [fe, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [ne, [fe, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [ne, [fe, "Smart " + mn + Ft]], [/(avast|avg)\/([\w\.]+)/i], [[fe, /(.+)/, "$1 Secure" + Ft], ne], [/\bfocus\/([\w\.]+)/i], [ne, [fe, vi + " Focus"]], [/\bopt\/([\w\.]+)/i], [ne, [fe, yi + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [ne, [fe, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [ne, [fe, "Dolphin"]], [/coast\/([\w\.]+)/i], [ne, [fe, yi + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [ne, [fe, "MIUI" + Ft]], [/fxios\/([\w\.-]+)/i], [ne, [fe, tn + vi]], [/\bqihoobrowser\/?([\w\.]*)/i], [ne, [fe, "360"]], [/\b(qq)\/([\w\.]+)/i], [[fe, /(.+)/, "$1Browser"], ne], [/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i], [[fe, /(.+)/, "$1" + Ft], ne], [/samsungbrowser\/([\w\.]+)/i], [ne, [fe, Xn + " Internet"]], [/metasr[\/ ]?([\d\.]+)/i], [ne, [fe, Tt + " Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[fe, Tt + " Mobile"], ne], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i], [fe, ne], [/(lbbrowser|rekonq)/i], [fe], [/ome\/([\w\.]+) \w* ?(iron) saf/i, /ome\/([\w\.]+).+qihu (360)[es]e/i], [ne, fe], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[fe, Ot], ne, [ae, ht]], [/(Klarna)\/([\w\.]+)/i, /(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /(daum)apps[\/ ]([\w\.]+)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(alipay)client\/([\w\.]+)/i, /(twitter)(?:and| f.+e\/([\w\.]+))/i, /(instagram|snapchat)[\/ ]([-\w\.]+)/i], [fe, ne, [ae, ht]], [/\bgsa\/([\w\.]+) .*safari\//i], [ne, [fe, "GSA"], [ae, ht]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [ne, [fe, "TikTok"], [ae, ht]], [/\[(linkedin)app\]/i], [fe, [ae, ht]], [/(chromium)[\/ ]([-\w\.]+)/i], [fe, ne], [/headlesschrome(?:\/([\w\.]+)| )/i], [ne, [fe, Sn + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[fe, Sn + " WebView"], ne], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [ne, [fe, "Android" + Ft]], [/chrome\/([\w\.]+) mobile/i], [ne, [fe, tn + "Chrome"]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [fe, ne], [/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i], [ne, [fe, tn + "Safari"]], [/iphone .*mobile(?:\/\w+ | ?)safari/i], [[fe, tn + "Safari"]], [/version\/([\w\.\,]+) .*(safari)/i], [ne, fe], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [fe, [ne, "1"]], [/(webkit|khtml)\/([\w\.]+)/i], [fe, ne], [/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i], [[fe, tn + vi], ne], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[fe, "Netscape"], ne], [/(wolvic|librewolf)\/([\w\.]+)/i], [fe, ne], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [ne, [fe, vi + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /\b(links) \(([\w\.]+)/i], [fe, [ne, /_/g, "."]], [/(cobalt)\/([\w\.]+)/i], [fe, [ne, /[^\d\.]+./, y]]], cpu: [[/\b((amd|x|x86[-_]?|wow|win)64)\b/i], [[ve, "amd64"]], [/(ia32(?=;))/i, /\b((i[346]|x)86)(pc)?\b/i], [[ve, "ia32"]], [/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i], [[ve, "arm64"]], [/\b(arm(v[67])?ht?n?[fl]p?)\b/i], [[ve, "armhf"]], [/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i], [[ve, "arm"]], [/((ppc|powerpc)(64)?)( mac|;|\))/i], [[ve, /ower/, y, xr]], [/ sun4\w[;\)]/i], [[ve, "sparc"]], [/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i], [[ve, xr]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [ce, [K, Xn], [ae, ze]], [/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]((?!sm-[lr])[-\w]+)/i, /sec-(sgh\w+)/i], [ce, [K, Xn], [ae, Ee]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [ce, [K, lt], [ae, Ee]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [ce, [K, lt], [ae, ze]], [/(macintosh);/i], [ce, [K, lt]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [ce, [K, Ct], [ae, Ee]], [/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i], [ce, [K, Gt], [ae, ze]], [/honor([-\w ]+)[;\)]/i], [ce, [K, Gt], [ae, Ee]], [/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i], [ce, [K, Bt], [ae, ze]], [/(?:huawei)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [ce, [K, Bt], [ae, Ee]], [/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i, /\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i], [[ce, /_/g, " "], [K, Yn], [ae, ze]], [/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i, / ([\w ]+) miui\/v?\d/i], [[ce, /_/g, " "], [K, Yn], [ae, Ee]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [ce, [K, Qn], [ae, Ee]], [/\b(opd2(\d{3}a?))(?: bui|\))/i], [ce, [K, Cr, { OnePlus: ["304", "403", "203"], "*": Qn }], [ae, ze]], [/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i], [ce, [K, "BLU"], [ae, Ee]], [/; vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [ce, [K, "Vivo"], [ae, Ee]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [ce, [K, "Realme"], [ae, Ee]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [ce, [K, ln], [ae, Ee]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [ce, [K, ln], [ae, ze]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [ce, [K, In], [ae, ze]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch))(\w+)/i, /\blg-?([\d\w]+) bui/i], [ce, [K, In], [ae, Ee]], [/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i, /lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i], [ce, [K, mn], [ae, ze]], [/(nokia) (t[12][01])/i], [K, ce, [ae, ze]], [/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i, /nokia[-_ ]?(([-\w\. ]*))/i], [[ce, /_/g, " "], [ae, Ee], [K, "Nokia"]], [/(pixel (c|tablet))\b/i], [ce, [K, Mt], [ae, ze]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [ce, [K, Mt], [ae, Ee]], [/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [ce, [K, Xt], [ae, Ee]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[ce, "Xperia Tablet"], [K, Xt], [ae, ze]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [ce, [K, ei], [ae, Ee]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [ce, [K, Ye], [ae, ze]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[ce, /(.+)/g, "Fire Phone $1"], [K, Ye], [ae, Ee]], [/(playbook);[-\w\),; ]+(rim)/i], [ce, K, [ae, ze]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [ce, [K, jt], [ae, Ee]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [ce, [K, ft], [ae, ze]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [ce, [K, ft], [ae, Ee]], [/(nexus 9)/i], [ce, [K, "HTC"], [ae, ze]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [K, [ce, /_/g, " "], [ae, Ee]], [/tcl (xess p17aa)/i, /droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i], [ce, [K, "TCL"], [ae, ze]], [/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i], [ce, [K, "TCL"], [ae, Ee]], [/(itel) ((\w+))/i], [[K, xr], ce, [ae, Cr, { tablet: ["p10001l", "w7001"], "*": "mobile" }]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [ce, [K, "Acer"], [ae, ze]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [ce, [K, "Meizu"], [ae, Ee]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [ce, [K, "Ulefone"], [ae, Ee]], [/; (energy ?\w+)(?: bui|\))/i, /; energizer ([\w ]+)(?: bui|\))/i], [ce, [K, "Energizer"], [ae, Ee]], [/; cat (b35);/i, /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i], [ce, [K, "Cat"], [ae, Ee]], [/((?:new )?andromax[\w- ]+)(?: bui|\))/i], [ce, [K, "Smartfren"], [ae, Ee]], [/droid.+; (a(?:015|06[35]|142p?))/i], [ce, [K, "Nothing"], [ae, Ee]], [/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i, /archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i], [ce, [K, "Archos"], [ae, ze]], [/archos ([\w ]+)( b|\))/i, /; (ac[3-6]\d\w{2,8})( b|\))/i], [ce, [K, "Archos"], [ae, Ee]], [/(imo) (tab \w+)/i, /(infinix) (x1101b?)/i], [K, ce, [ae, ze]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i, /; (blu|hmd|imo|tcl)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i, /(hp) ([\w ]+\w)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i, /(oppo) ?([\w ]+) bui/i], [K, ce, [ae, Ee]], [/(kobo)\s(ereader|touch)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i], [K, ce, [ae, ze]], [/(surface duo)/i], [ce, [K, yn], [ae, ze]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [ce, [K, "Fairphone"], [ae, Ee]], [/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i], [ce, [K, Vn], [ae, ze]], [/(sprint) (\w+)/i], [K, ce, [ae, Ee]], [/(kin\.[onetw]{3})/i], [[ce, /\./g, " "], [K, yn], [ae, Ee]], [/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [ce, [K, Zn], [ae, ze]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [ce, [K, Zn], [ae, Ee]], [/smart-tv.+(samsung)/i], [K, [ae, we]], [/hbbtv.+maple;(\d+)/i], [[ce, /^/, "SmartTV"], [K, Xn], [ae, we]], [/tcast.+(lg)e?. ([-\w]+)/i], [K, ce, [ae, we]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[K, In], [ae, we]], [/(apple) ?tv/i], [K, [ce, lt + " TV"], [ae, we]], [/crkey.*devicetype\/chromecast/i], [[ce, di + " Third Generation"], [K, Mt], [ae, we]], [/crkey.*devicetype\/([^/]*)/i], [[ce, /^/, "Chromecast "], [K, Mt], [ae, we]], [/fuchsia.*crkey/i], [[ce, di + " Nest Hub"], [K, Mt], [ae, we]], [/crkey/i], [[ce, di], [K, Mt], [ae, we]], [/(portaltv)/i], [ce, [K, Ot], [ae, we]], [/droid.+aft(\w+)( bui|\))/i], [ce, [K, Ye], [ae, we]], [/(shield \w+ tv)/i], [ce, [K, Vn], [ae, we]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [ce, [K, Ct], [ae, we]], [/(bravia[\w ]+)( bui|\))/i], [ce, [K, Xt], [ae, we]], [/(mi(tv|box)-?\w+) bui/i], [ce, [K, Yn], [ae, we]], [/Hbbtv.*(technisat) (.*);/i], [K, ce, [ae, we]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[K, Xi], [ce, Xi], [ae, we]], [/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i], [ce, [ae, we]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[ae, we]], [/(ouya)/i, /(nintendo) (\w+)/i], [K, ce, [ae, Oe]], [/droid.+; (shield)( bui|\))/i], [ce, [K, Vn], [ae, Oe]], [/(playstation \w+)/i], [ce, [K, Xt], [ae, Oe]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [ce, [K, yn], [ae, Oe]], [/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i], [ce, [K, Xn], [ae, Qe]], [/((pebble))app/i, /(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i], [K, ce, [ae, Qe]], [/(ow(?:19|20)?we?[1-3]{1,3})/i], [ce, [K, Qn], [ae, Qe]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [ce, [K, lt], [ae, Qe]], [/(opwwe\d{3})/i], [ce, [K, ei], [ae, Qe]], [/(moto 360)/i], [ce, [K, ln], [ae, Qe]], [/(smartwatch 3)/i], [ce, [K, Xt], [ae, Qe]], [/(g watch r)/i], [ce, [K, In], [ae, Qe]], [/droid.+; (wt63?0{2,3})\)/i], [ce, [K, Zn], [ae, Qe]], [/droid.+; (glass) \d/i], [ce, [K, Mt], [ae, $e]], [/(pico) (4|neo3(?: link|pro)?)/i], [K, ce, [ae, $e]], [/(quest( \d| pro)?s?).+vr/i], [ce, [K, Ot], [ae, $e]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [K, [ae, Be]], [/(aeobc)\b/i], [ce, [K, Ye], [ae, Be]], [/(homepod).+mac os/i], [ce, [K, lt], [ae, Be]], [/windows iot/i], [[ae, Be]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+?(mobile|vr|\d) safari/i], [ce, [ae, Cr, { mobile: "Mobile", xr: "VR", "*": ze }]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[ae, ze]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[ae, Ee]], [/droid .+?; ([\w\. -]+)( bui|\))/i], [ce, [K, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [ne, [fe, "EdgeHTML"]], [/(arkweb)\/([\w\.]+)/i], [fe, ne], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [ne, [fe, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [fe, ne], [/ladybird\//i], [[fe, "LibWeb"]], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [ne, fe]], os: [[/microsoft (windows) (vista|xp)/i], [fe, ne], [/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i], [fe, [ne, Cr, Lr]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[ne, Cr, Lr], [fe, dn]], [/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[ne, /_/g, "."], [fe, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[fe, "macOS"], [ne, /_/g, "."]], [/android ([\d\.]+).*crkey/i], [ne, [fe, di + " Android"]], [/fuchsia.*crkey\/([\d\.]+)/i], [ne, [fe, di + " Fuchsia"]], [/crkey\/([\d\.]+).*devicetype\/smartspeaker/i], [ne, [fe, di + " SmartSpeaker"]], [/linux.*crkey\/([\d\.]+)/i], [ne, [fe, di + " Linux"]], [/crkey\/([\d\.]+)/i], [ne, [fe, di]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [ne, fe], [/(ubuntu) ([\w\.]+) like android/i], [[fe, /(.+)/, "$1 Touch"], ne], [/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/\.; ]?([\d\.]*)/i], [fe, ne], [/\(bb(10);/i], [ne, [fe, jt]], [/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i], [ne, [fe, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [ne, [fe, vi + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [ne, [fe, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [ne, [fe, "watchOS"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[fe, "Chrome OS"], ne], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) (\w+)/i, /(xbox); +xbox ([^\);]+)/i, /(pico) .+os([\w\.]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [fe, ne], [/(sunos) ?([\w\.\d]*)/i], [[fe, "Solaris"], ne], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [fe, ne]] }, de = (function() {
17837
17837
  var Ve = { init: {}, isIgnore: {}, isIgnoreRgx: {}, toString: {} };
17838
17838
  return Vt.call(Ve.init, [[z, [fe, ne, Me, ae]], [j, [ve]], [U, [ae, ce, K]], [$, [fe, ne]], [ee, [fe, ne]]]), Vt.call(Ve.isIgnore, [[z, [ne, Me]], [$, [ne]], [ee, [ne]]]), Vt.call(Ve.isIgnoreRgx, [[z, / ?browser$/i], [ee, / ?os$/i]]), Vt.call(Ve.toString, [[z, [fe, ne]], [j, [ve]], [U, [K, ce]], [$, [fe, ne]], [ee, [fe, ne]]]), Ve;
17839
17839
  })(), ye = function(Ve, st) {
@@ -24558,12 +24558,12 @@ function FO({ onLocationClick: e, onMapPositionKnown: n, useMapProviderModule: s
24558
24558
  }, [G]), _e.useEffect(() => {
24559
24559
  if (!ae || !wt) return;
24560
24560
  const De = () => {
24561
- const Ge = Me || ce;
24562
- if (Oe || !Ge || Ge.length === 0) {
24561
+ const Ye = Me || ce;
24562
+ if (Oe || !Ye || Ye.length === 0) {
24563
24563
  ae.highlight?.([]);
24564
24564
  return;
24565
24565
  }
24566
- const lt = Ge.map((ft) => ft.id);
24566
+ const lt = Ye.map((ft) => ft.id);
24567
24567
  ht || !ae.highlight ? ae.filter(lt) : ae.highlight(lt);
24568
24568
  }, je = () => {
24569
24569
  Ae(ae), De();
@@ -24571,12 +24571,14 @@ function FO({ onLocationClick: e, onMapPositionKnown: n, useMapProviderModule: s
24571
24571
  ae.on("floor_changed", je);
24572
24572
  const et = ae.getMap();
24573
24573
  let Ke;
24574
- if (et) {
24575
- if (he === Xo.Mapbox && typeof et.on == "function")
24576
- et.on("idle", De), Ke = () => et.off?.("idle", De);
24574
+ if (De(), et) {
24575
+ if (he === Xo.Mapbox && typeof et.once == "function")
24576
+ et.once("idle", De), Ke = () => et.off?.("idle", De);
24577
24577
  else if (he === Xo.Google && typeof et.addListener == "function") {
24578
- const Ge = et.addListener("idle", De);
24579
- Ke = () => Ge.remove();
24578
+ const Ye = et.addListener("idle", () => {
24579
+ Ye.remove(), De();
24580
+ });
24581
+ Ke = () => Ye.remove();
24580
24582
  }
24581
24583
  }
24582
24584
  return () => {
@@ -24602,9 +24604,9 @@ function FO({ onLocationClick: e, onMapPositionKnown: n, useMapProviderModule: s
24602
24604
  }), De.setDisplayRule(["MI_BUILDING_OUTLINE"], { visible: !1 }), De.on("click", (ft) => e(ft)), De.once("building_changed", () => me(De)), K(De), window.mapsIndoorsInstance = De;
24603
24605
  const Ke = new CustomEvent("mapsIndoorsInstanceAvailable");
24604
24606
  window.dispatchEvent(Ke);
24605
- let Ge;
24606
- he === Xo.Google ? Ge = new window.mapsindoors.directions.GoogleMapsProvider() : he === Xo.Mapbox && (Ge = new window.mapsindoors.directions.MapboxProvider(ee));
24607
- const lt = new window.mapsindoors.services.DirectionsService(Ge);
24607
+ let Ye;
24608
+ he === Xo.Google ? Ye = new window.mapsindoors.directions.GoogleMapsProvider() : he === Xo.Mapbox && (Ye = new window.mapsindoors.directions.MapboxProvider(ee));
24609
+ const lt = new window.mapsindoors.services.DirectionsService(Ye);
24608
24610
  ve(lt), K(De), je.nodeName === "MI-MY-POSITION" ? (je.addEventListener("position_received", (ft) => {
24609
24611
  ft.detail.accurate === !0 && ne(ft.detail.position);
24610
24612
  }), je.addEventListener("position_error", () => {
@@ -31225,11 +31227,11 @@ var $f = {
31225
31227
  ), Ke = O0(
31226
31228
  Y,
31227
31229
  (Ct) => Ct + 2 >= X ? "hidden" : "visible"
31228
- ), Ge = _e.useMemo(() => he && se > 0 ? Joe({ sheetHeight: se, snapPointsProp: he }) : [], [se, he?.join("")]), lt = za((Ct) => {
31230
+ ), Ye = _e.useMemo(() => he && se > 0 ? Joe({ sheetHeight: se, snapPointsProp: he }) : [], [se, he?.join("")]), lt = za((Ct) => {
31229
31231
  E(Ct), Ee?.(Ct);
31230
- }), ft = za((Ct) => he && Ge ? Ct < 0 || Ct >= Ge.length ? (console.warn(
31231
- `Invalid snap index ${Ct}. Snap points are: [${he.join(", ")}] and their computed values are: [${Ge.map((Xt) => Xt.snapValue).join(", ")}]`
31232
- ), null) : Ge[Ct] : null), jt = za(async (Ct) => {
31232
+ }), ft = za((Ct) => he && Ye ? Ct < 0 || Ct >= Ye.length ? (console.warn(
31233
+ `Invalid snap index ${Ct}. Snap points are: [${he.join(", ")}] and their computed values are: [${Ye.map((Xt) => Xt.snapValue).join(", ")}]`
31234
+ ), null) : Ye[Ct] : null), jt = za(async (Ct) => {
31233
31235
  if (!he) {
31234
31236
  console.warn("Snapping is not possible without `snapPoints` prop.");
31235
31237
  return;
@@ -31251,7 +31253,7 @@ var $f = {
31251
31253
  isEnabled: z && e,
31252
31254
  containerRef: Lt,
31253
31255
  onWillOpenKeyboard: async () => {
31254
- const Ct = Ge[Ge.length - 1];
31256
+ const Ct = Ye[Ye.length - 1];
31255
31257
  Ct && Ct.snapIndex !== pe && (await gy(Y, Ct.snapValueY, je), lt(Ct.snapIndex));
31256
31258
  },
31257
31259
  onDidOpenKeyboard: (Ct) => {
@@ -31284,12 +31286,12 @@ var $f = {
31284
31286
  info: Xt,
31285
31287
  sheetHeight: se,
31286
31288
  dragCloseThreshold: o,
31287
- snapPoints: Ge,
31289
+ snapPoints: Ye,
31288
31290
  dragVelocityThreshold: T
31289
31291
  });
31290
31292
  let Sn = Zn.yTo;
31291
31293
  if (d && Sn + 1 >= se) {
31292
- const mi = Ge.find((di) => di.snapValue > 0);
31294
+ const mi = Ye.find((di) => di.snapValue > 0);
31293
31295
  mi ? (Sn = mi.snapValueY, lt(mi.snapIndex)) : Sn = Yn;
31294
31296
  } else Zn.snapIndex !== void 0 && lt(Zn.snapIndex);
31295
31297
  gy(Y, Sn, je), Sn + 1 >= se && !d && Me(), Ae.set(0);
@@ -31298,7 +31300,7 @@ var $f = {
31298
31300
  y: Y,
31299
31301
  detent: c,
31300
31302
  sheetHeight: se,
31301
- snapPoints: Ge,
31303
+ snapPoints: Ye,
31302
31304
  rootId: j,
31303
31305
  startThreshold: U
31304
31306
  }), Woe({
@@ -31338,7 +31340,7 @@ var $f = {
31338
31340
  }, Qn = {
31339
31341
  height: se,
31340
31342
  currentSnap: pe,
31341
- snapPoints: Ge,
31343
+ snapPoints: Ye,
31342
31344
  snapTo: jt,
31343
31345
  y: Y,
31344
31346
  yInverted: G,
@@ -32358,7 +32360,7 @@ pC.propTypes = {
32358
32360
  onOpenChat: _t.func
32359
32361
  };
32360
32362
  function pC({ onSetSize: e, isOpen: n, isSheetExpanded: s, onOpenChat: c }) {
32361
- const d = Mn(ng), { t: y } = No(), _ = _e.useRef(), o = _e.useRef(), T = _e.useRef(), A = _e.useRef(), z = _e.useRef(), j = 100, [U, $] = Rr(b2), ee = Mn(_2), he = Mn(Uc), fe = Mn(uR), [ae, K] = _e.useState(!1), [ne, ve] = Rr(fC), [Me, ce] = _e.useState(), Oe = Mn(ra), Ee = Mn(q0), ze = Wi(c_), we = Wi(Ah), Qe = Wi(u_), $e = Wi(l2), [Be, ht] = Rr(vu), wt = Mn(Sm), Lt = ma(), se = Mn(Fc), [pe, E] = _e.useState(!1), P = Mn(dC), { setInitialMessage: X } = oR(), { enabled: Y } = lR(), G = Nd(), me = Wi(w2), [Ae, be] = _e.useState(!1), De = Mn(pR), je = Mn(x2), et = Mn(n1), Ke = Mn(M2), [Ge, lt] = _e.useState(!1), [ft, jt] = _e.useState(!1), Mt = _e.useRef(!1), Bt = _e.useRef([]), [mn, Gt] = _e.useState([]), [In, yn] = _e.useState(!1);
32363
+ const d = Mn(ng), { t: y } = No(), _ = _e.useRef(), o = _e.useRef(), T = _e.useRef(), A = _e.useRef(), z = _e.useRef(), j = 100, [U, $] = Rr(b2), ee = Mn(_2), he = Mn(Uc), fe = Mn(uR), [ae, K] = _e.useState(!1), [ne, ve] = Rr(fC), [Me, ce] = _e.useState(), Oe = Mn(ra), Ee = Mn(q0), ze = Wi(c_), we = Wi(Ah), Qe = Wi(u_), $e = Wi(l2), [Be, ht] = Rr(vu), wt = Mn(Sm), Lt = ma(), se = Mn(Fc), [pe, E] = _e.useState(!1), P = Mn(dC), { setInitialMessage: X } = oR(), { enabled: Y } = lR(), G = Nd(), me = Wi(w2), [Ae, be] = _e.useState(!1), De = Mn(pR), je = Mn(x2), et = Mn(n1), Ke = Mn(M2), [Ye, lt] = _e.useState(!1), [ft, jt] = _e.useState(!1), Mt = _e.useRef(!1), Bt = _e.useRef([]), [mn, Gt] = _e.useState([]), [In, yn] = _e.useState(!1);
32362
32364
  function ln() {
32363
32365
  Bt.current.length === 0 ? (ve(null), $([]), ze([]), lt(!0), A.current?.getValue()?.trim() ? A.current.triggerSearch() : A.current && (Mt.current = !0, A.current.clear()), Bt.current.pop()) : (Bt.current.pop(), ve(Bt.current[0]));
32364
32366
  }
@@ -32404,7 +32406,7 @@ function pC({ onSetSize: e, isOpen: n, isSheetExpanded: s, onOpenChat: c }) {
32404
32406
  });
32405
32407
  }
32406
32408
  function Xt() {
32407
- if (A.current && Ge) {
32409
+ if (A.current && Ye) {
32408
32410
  const Ft = A.current.getValue(), dn = Ft ? Ft.length : 0;
32409
32411
  jt(dn > 2);
32410
32412
  } else
@@ -32517,7 +32519,7 @@ function pC({ onSetSize: e, isOpen: n, isSheetExpanded: s, onOpenChat: c }) {
32517
32519
  }, [d]), _e.useEffect(() => {
32518
32520
  n && (K(!1), lt(!1), jt(!1), $([]), A.current && (Mt.current = !0, A.current.clear()));
32519
32521
  }, [n, $]), _e.useEffect(() => {
32520
- if (!Y || !P || !Ge || !ft)
32522
+ if (!Y || !P || !Ye || !ft)
32521
32523
  return;
32522
32524
  const Ft = (dn) => {
32523
32525
  if (dn.key === "Enter" && c) {
@@ -32529,7 +32531,7 @@ function pC({ onSetSize: e, isOpen: n, isSheetExpanded: s, onOpenChat: c }) {
32529
32531
  return P.addEventListener("keydown", Ft), () => {
32530
32532
  P && P.removeEventListener("keydown", Ft);
32531
32533
  };
32532
- }, [Y, P, Ge, ft, c, X]), /* @__PURE__ */ Pe.jsxs(
32534
+ }, [Y, P, Ye, ft, c, X]), /* @__PURE__ */ Pe.jsxs(
32533
32535
  "div",
32534
32536
  {
32535
32537
  className: "search",
@@ -32557,7 +32559,7 @@ function pC({ onSetSize: e, isOpen: n, isSheetExpanded: s, onOpenChat: c }) {
32557
32559
  )
32558
32560
  ] })
32559
32561
  ] }),
32560
- Y && Ge && ft && /* @__PURE__ */ Pe.jsxs(
32562
+ Y && Ye && ft && /* @__PURE__ */ Pe.jsxs(
32561
32563
  "button",
32562
32564
  {
32563
32565
  className: "search__ask-ai-button",
@@ -32577,7 +32579,7 @@ function pC({ onSetSize: e, isOpen: n, isSheetExpanded: s, onOpenChat: c }) {
32577
32579
  ]
32578
32580
  }
32579
32581
  ),
32580
- (tn() || Ge || s) && !ae && ee.length > 0 && U.length === 0 && /* @__PURE__ */ Pe.jsx(
32582
+ (tn() || Ye || s) && !ae && ee.length > 0 && U.length === 0 && /* @__PURE__ */ Pe.jsx(
32581
32583
  RI,
32582
32584
  {
32583
32585
  onSetSize: e,
@@ -32985,14 +32987,14 @@ function yC({ onBack: e, onStartWayfinding: n, onSetSize: s, onStartDirections:
32985
32987
  typeof s == "function" && s(Bt);
32986
32988
  }
32987
32989
  function et() {
32988
- j === !1 ? (Ke(), je(Cm.MAX)) : Ge();
32990
+ j === !1 ? (Ke(), je(Cm.MAX)) : Ye();
32989
32991
  }
32990
32992
  function Ke() {
32991
32993
  requestAnimationFrame(() => {
32992
32994
  U(!0), lt(), ae.current = !0;
32993
32995
  });
32994
32996
  }
32995
- function Ge() {
32997
+ function Ye() {
32996
32998
  U(!1), ft(), ae.current = !1;
32997
32999
  }
32998
33000
  function lt() {
@@ -33306,7 +33308,7 @@ xC.propTypes = {
33306
33308
  isActive: _t.bool
33307
33309
  };
33308
33310
  function xC({ onStartDirections: e, onBack: n, directionsToLocation: s, directionsFromLocation: c, onSetSize: d, isActive: y }) {
33309
- const { t: _ } = No(), o = _e.useRef(), T = _e.useRef(), A = _e.useRef(), z = _e.useRef(), j = _e.useRef(!1), U = Mn(i2), $ = Mn(W0), ee = Mn(Ah), he = Mn(q0), fe = Mn(Uc), [ae, K] = Rr(TR), [ne, ve] = Rr(c2), [Me, ce] = _e.useState(), [Oe, Ee] = _e.useState(!1), ze = Wi(m_), [we, Qe] = _e.useState(!0), [$e, Be] = _e.useState(!1), [ht, wt] = _e.useState([]), [Lt, se] = _e.useState(), [pe, E] = _e.useState(), P = Mn(l1), [X, Y] = _e.useState(!1), [G, me] = Rr(a1), [Ae, be] = _e.useState(!1), De = Mn(r2), je = Mn(Lse), [et, Ke, Ge, lt] = gR(pe, Lt, U, G, P), ft = Mn(gC), jt = Mn(ng), Mt = Mn(ra), Bt = Mn(l_), mn = Mn(Fc), Gt = Mn(mC), In = Mn(vu), yn = Mn(M2), ln = Wi(K0), Vn = typeof navigator.share == "function", ei = typeof navigator.clipboard?.writeText == "function", Qn = _O("(pointer: coarse)");
33311
+ const { t: _ } = No(), o = _e.useRef(), T = _e.useRef(), A = _e.useRef(), z = _e.useRef(), j = _e.useRef(!1), U = Mn(i2), $ = Mn(W0), ee = Mn(Ah), he = Mn(q0), fe = Mn(Uc), [ae, K] = Rr(TR), [ne, ve] = Rr(c2), [Me, ce] = _e.useState(), [Oe, Ee] = _e.useState(!1), ze = Wi(m_), [we, Qe] = _e.useState(!0), [$e, Be] = _e.useState(!1), [ht, wt] = _e.useState([]), [Lt, se] = _e.useState(), [pe, E] = _e.useState(), P = Mn(l1), [X, Y] = _e.useState(!1), [G, me] = Rr(a1), [Ae, be] = _e.useState(!1), De = Mn(r2), je = Mn(Lse), [et, Ke, Ye, lt] = gR(pe, Lt, U, G, P), ft = Mn(gC), jt = Mn(ng), Mt = Mn(ra), Bt = Mn(l_), mn = Mn(Fc), Gt = Mn(mC), In = Mn(vu), yn = Mn(M2), ln = Wi(K0), Vn = typeof navigator.share == "function", ei = typeof navigator.clipboard?.writeText == "function", Qn = _O("(pointer: coarse)");
33310
33312
  function Xn(Cn) {
33311
33313
  return he === Xo.Google && Cn.properties.type === "google_places" ? Dse(Cn) : he === Xo.Mapbox && Cn.properties.type === "mapbox_places" ? Nse(Cn, De) : Promise.resolve(Cn);
33312
33314
  }
@@ -33481,7 +33483,7 @@ function xC({ onStartDirections: e, onBack: n, directionsToLocation: s, directio
33481
33483
  ] })
33482
33484
  ] })
33483
33485
  ] }),
33484
- !Ge && /* @__PURE__ */ Pe.jsx("p", { className: "wayfinding__error", role: "status", "aria-live": "polite", children: _("No route found") }),
33486
+ !Ye && /* @__PURE__ */ Pe.jsx("p", { className: "wayfinding__error", role: "status", "aria-live": "polite", children: _("No route found") }),
33485
33487
  !we && !Ae && /* @__PURE__ */ Pe.jsx("p", { className: "wayfinding__error", role: "status", "aria-live": "polite", children: _("Nothing was found") }),
33486
33488
  $ && Ae && /* @__PURE__ */ Pe.jsxs("button", { type: "button", className: "wayfinding__use-current-position", onClick: () => Zn(), children: [
33487
33489
  /* @__PURE__ */ Pe.jsx(Ese, {}),
@@ -33502,7 +33504,7 @@ function xC({ onStartDirections: e, onBack: n, directionsToLocation: s, directio
33502
33504
  ),
33503
33505
  X && /* @__PURE__ */ Pe.jsx("img", { className: "wayfinding__google", alt: "Powered by Google", src: Ase })
33504
33506
  ] }) }),
33505
- !$e && !Ae && Ge && !X && pe && Lt && /* @__PURE__ */ Pe.jsxs("div", { className: "wayfinding__details", ref: T, children: [
33507
+ !$e && !Ae && Ye && !X && pe && Lt && /* @__PURE__ */ Pe.jsxs("div", { className: "wayfinding__details", ref: T, children: [
33506
33508
  /* @__PURE__ */ Pe.jsxs("div", { className: "wayfinding__settings", children: [
33507
33509
  /* @__PURE__ */ Pe.jsxs("div", { className: "wayfinding__toggles", children: [
33508
33510
  /* @__PURE__ */ Pe.jsx(vC, {}),
@@ -33758,14 +33760,14 @@ function bC({ isOpen: e, onBack: n, onSetSize: s, onRouteFinished: c }) {
33758
33760
  if (o(null), e && $) {
33759
33761
  z($.totalTime);
33760
33762
  const Ke = Math.min(window.innerHeight, window.innerWidth) * 0.06;
33761
- jl?.setRoute(null), jl = null, Promise.all([se(Ke), pe(Ke)]).then(([Ge, lt]) => {
33763
+ jl?.setRoute(null), jl = null, Promise.all([se(Ke), pe(Ke)]).then(([Ye, lt]) => {
33762
33764
  const ft = wt?.appSettings?.disableKioskStepMove === "true", jt = wt?.appSettings?.disableDesktopStepMove === "true", Mt = we && ft || ce && !jt;
33763
33765
  jl = new window.mapsindoors.directions.DirectionsRenderer({
33764
33766
  mapsIndoors: j,
33765
33767
  fitBounds: Mt,
33766
33768
  fitBoundsPadding: Mt ? void 0 : {
33767
33769
  top: Ke,
33768
- bottom: Ge,
33770
+ bottom: Ye,
33769
33771
  left: lt,
33770
33772
  right: Ke
33771
33773
  }
@@ -33779,16 +33781,16 @@ function bC({ isOpen: e, onBack: n, onSetSize: s, onRouteFinished: c }) {
33779
33781
  };
33780
33782
  }, [e, $, j, U, ht, wt, Me]);
33781
33783
  function se(Ke) {
33782
- return new Promise((Ge) => {
33784
+ return new Promise((Ye) => {
33783
33785
  if (ce)
33784
- ve ? X0().then((lt) => Ge(lt)) : Ge(Ke);
33786
+ ve ? X0().then((lt) => Ye(lt)) : Ye(Ke);
33785
33787
  else
33786
- return qp().then((lt) => Ge(lt));
33788
+ return qp().then((lt) => Ye(lt));
33787
33789
  });
33788
33790
  }
33789
33791
  function pe(Ke) {
33790
- return new Promise((Ge) => {
33791
- ce ? ve ? Ge(Ke) : Sd().then((lt) => Ge(lt)) : Ge(Ke);
33792
+ return new Promise((Ye) => {
33793
+ ce ? ve ? Ye(Ke) : Sd().then((lt) => Ye(lt)) : Ye(Ke);
33792
33794
  });
33793
33795
  }
33794
33796
  _e.useEffect(() => {
@@ -33797,9 +33799,9 @@ function bC({ isOpen: e, onBack: n, onSetSize: s, onRouteFinished: c }) {
33797
33799
  we && !$ && Oe(null);
33798
33800
  }, [$, we, Oe]);
33799
33801
  function E() {
33800
- return $ ? $.directionsResult.legs.reduce((Ke, Ge) => {
33801
- for (const lt in Ge.steps) {
33802
- const ft = Ge.steps[lt];
33802
+ return $ ? $.directionsResult.legs.reduce((Ke, Ye) => {
33803
+ for (const lt in Ye.steps) {
33804
+ const ft = Ye.steps[lt];
33803
33805
  Ke.push(ft);
33804
33806
  }
33805
33807
  return Ke;
@@ -33826,8 +33828,8 @@ function bC({ isOpen: e, onBack: n, onSetSize: s, onRouteFinished: c }) {
33826
33828
  he(0), ne(!1);
33827
33829
  }
33828
33830
  function be(Ke) {
33829
- const Ge = j?.getMapView?.(), lt = Ge?.getMap?.();
33830
- !j || !Ge || !lt || (Lt === "mapbox" ? lt.setMinZoom(Ke) : Lt === "google" && lt.setOptions({ minZoom: Ke }));
33831
+ const Ye = j?.getMapView?.(), lt = Ye?.getMap?.();
33832
+ !j || !Ye || !lt || (Lt === "mapbox" ? lt.setMinZoom(Ke) : Lt === "google" && lt.setOptions({ minZoom: Ke }));
33831
33833
  }
33832
33834
  function De() {
33833
33835
  Ae(), me(), n();
@@ -37775,13 +37777,13 @@ function xce(e, n, s) {
37775
37777
  function X(be) {
37776
37778
  return De;
37777
37779
  function De(je) {
37778
- const et = je !== null && be[je], Ke = je !== null && be.null, Ge = [
37780
+ const et = je !== null && be[je], Ke = je !== null && be.null, Ye = [
37779
37781
  // To do: add more extension tests.
37780
37782
  /* c8 ignore next 2 */
37781
37783
  ...Array.isArray(et) ? et : et ? [et] : [],
37782
37784
  ...Array.isArray(Ke) ? Ke : Ke ? [Ke] : []
37783
37785
  ];
37784
- return Y(Ge)(je);
37786
+ return Y(Ye)(je);
37785
37787
  }
37786
37788
  }
37787
37789
  function Y(be) {
@@ -37972,10 +37974,10 @@ function Ece(e) {
37972
37974
  blockQuote: y(Ke),
37973
37975
  characterEscape: ze,
37974
37976
  characterReference: ze,
37975
- codeFenced: y(Ge),
37977
+ codeFenced: y(Ye),
37976
37978
  codeFencedFenceInfo: _,
37977
37979
  codeFencedFenceMeta: _,
37978
- codeIndented: y(Ge, _),
37980
+ codeIndented: y(Ye, _),
37979
37981
  codeText: y(lt, _),
37980
37982
  codeTextData: ze,
37981
37983
  data: ze,
@@ -38371,7 +38373,7 @@ function Ece(e) {
38371
38373
  children: []
38372
38374
  };
38373
38375
  }
38374
- function Ge() {
38376
+ function Ye() {
38375
38377
  return {
38376
38378
  type: "code",
38377
38379
  lang: null,
@@ -42967,10 +42969,10 @@ function UC({ isVisible: e, onClose: n, onSearchResults: s, onShowRoute: c }) {
42967
42969
  try {
42968
42970
  Hz && console.log("ChatWindow: Fetching full location objects for IDs:", be);
42969
42971
  const je = be.map(
42970
- (Ge) => window.mapsindoors.services.LocationsService.getLocation(Ge)
42971
- ), Ke = (await Promise.allSettled(je)).filter((Ge) => Ge.status === "fulfilled" && Ge.value !== null).map((Ge) => Ge.value);
42972
- return Hz && console.log("ChatWindow: Successfully fetched locations:", Ke), Me((Ge) => {
42973
- const lt = [...Ge], ft = lt.findIndex((jt) => jt.id === De);
42972
+ (Ye) => window.mapsindoors.services.LocationsService.getLocation(Ye)
42973
+ ), Ke = (await Promise.allSettled(je)).filter((Ye) => Ye.status === "fulfilled" && Ye.value !== null).map((Ye) => Ye.value);
42974
+ return Hz && console.log("ChatWindow: Successfully fetched locations:", Ke), Me((Ye) => {
42975
+ const lt = [...Ye], ft = lt.findIndex((jt) => jt.id === De);
42974
42976
  return ft >= 0 && (lt[ft] = { ...lt[ft], locations: Ke }), lt;
42975
42977
  }), Ke;
42976
42978
  } catch (je) {
@@ -42995,15 +42997,15 @@ function UC({ isVisible: e, onClose: n, onSearchResults: s, onShowRoute: c }) {
42995
42997
  longitude: o.coords.longitude,
42996
42998
  floor: o.floorIndex?.toString()
42997
42999
  }, et.timezone = Intl.DateTimeFormat().resolvedOptions().timeZone), T) {
42998
- const Ke = A.find((Ge) => Ge.name.toLowerCase() === T.toLowerCase());
43000
+ const Ke = A.find((Ye) => Ye.name.toLowerCase() === T.toLowerCase());
42999
43001
  et.venue = {
43000
43002
  name: T
43001
43003
  }, Ke?.id && (et.venue.venueId = Ke.id);
43002
43004
  }
43003
43005
  try {
43004
43006
  const Ke = crypto.randomUUID();
43005
- Lt.current = Ke, Be(""), Me((Ge) => [
43006
- ...Ge,
43007
+ Lt.current = Ke, Be(""), Me((Ye) => [
43008
+ ...Ye,
43007
43009
  {
43008
43010
  id: Ke,
43009
43011
  text: "",
@@ -43013,33 +43015,33 @@ function UC({ isVisible: e, onClose: n, onSearchResults: s, onShowRoute: c }) {
43013
43015
  }
43014
43016
  ]), await fe(_, De, {
43015
43017
  extra: et,
43016
- onUpdate: ({ text: Ge, isThought: lt }) => {
43018
+ onUpdate: ({ text: Ye, isThought: lt }) => {
43017
43019
  if (lt)
43018
- Be(Ge);
43020
+ Be(Ye);
43019
43021
  else {
43020
43022
  const ft = Lt.current;
43021
43023
  Me((jt) => {
43022
43024
  const Mt = [...jt], Bt = Mt.findIndex((mn) => mn.id === ft);
43023
43025
  return Bt >= 0 && (Mt[Bt] = {
43024
43026
  ...Mt[Bt],
43025
- text: (Mt[Bt].text || "") + Ge
43027
+ text: (Mt[Bt].text || "") + Ye
43026
43028
  }), Mt;
43027
43029
  });
43028
43030
  }
43029
43031
  },
43030
- onComplete: (Ge) => {
43031
- if (Ge && Ge.error) {
43032
+ onComplete: (Ye) => {
43033
+ if (Ye && Ye.error) {
43032
43034
  const lt = Lt.current;
43033
43035
  Me((ft) => {
43034
43036
  const jt = [...ft], Mt = jt.findIndex((Bt) => Bt.id === lt);
43035
43037
  return Mt >= 0 && (jt[Mt] = {
43036
43038
  ...jt[Mt],
43037
- text: Ge.response === "SESSION_LIMIT_MESSAGE" ? d("Session limit message") : Ge.response || d("An error occurred"),
43039
+ text: Ye.response === "SESSION_LIMIT_MESSAGE" ? d("Session limit message") : Ye.response || d("An error occurred"),
43038
43040
  error: !0
43039
43041
  }), jt;
43040
43042
  });
43041
- } else if (Ge) {
43042
- const { searchResultIds: lt, directionsLocationIds: ft, distanceResults: jt } = Ge;
43043
+ } else if (Ye) {
43044
+ const { searchResultIds: lt, directionsLocationIds: ft, distanceResults: jt } = Ye;
43043
43045
  if (ft || jt?.length > 0) {
43044
43046
  const Mt = {};
43045
43047
  ft && (Mt.directionsLocationIds = ft, Mt.canShowRoute = !0, Mt.routeDirections = ft), jt?.length > 0 && (Mt.distanceResults = jt), Me((Bt) => {
@@ -43055,8 +43057,8 @@ function UC({ isVisible: e, onClose: n, onSearchResults: s, onShowRoute: c }) {
43055
43057
  }
43056
43058
  });
43057
43059
  } catch {
43058
- Me((Ge) => [
43059
- ...Ge,
43060
+ Me((Ye) => [
43061
+ ...Ye,
43060
43062
  {
43061
43063
  id: crypto.randomUUID(),
43062
43064
  text: "Sorry, I encountered an error processing your request.",
@@ -45241,7 +45243,7 @@ WP.propTypes = {
45241
45243
  kioskReloadTime: _t.number
45242
45244
  };
45243
45245
  function WP({ apiKey: e, gmApiKey: n, mapboxAccessToken: s, venue: c, locationId: d, primaryColor: y, logo: _, appUserRoles: o, directionsFrom: T, directionsTo: A, externalIDs: z, tileStyle: j, startZoomLevel: U, bearing: $, pitch: ee, gmMapId: he, useMapProviderModule: fe, kioskOriginLocationId: ae, language: K, supportsUrlParameters: ne, useKeyboard: ve, timeout: Me, miTransitionLevel: ce, category: Oe, searchAllVenues: Ee, hideNonMatches: ze, showRoadNames: we, showExternalIDs: Qe, searchExternalLocations: $e, center: Be, useAppTitle: ht, showMapMarkers: wt, mapboxMapStyle: Lt, devicePosition: se, enableKioskFullReload: pe, kioskReloadTime: E }) {
45244
- const [P, X] = _e.useState(!1), [Y, G] = _e.useState({ brandingColor: y }), me = Wi(l_), Ae = Wi(IT), be = Wi(r2), [De, je] = Rr(J0), et = Wi(l2), [Ke, Ge] = Rr(n1), [lt, ft] = Rr(Ah), jt = Mn(_2), Mt = Wi(a2), [Bt, mn] = Rr(Uc), Gt = Wi(AT), In = Wi(Tfe), yn = Mn(ra), [ln, Vn] = Rr(Sm), ei = Wi(Fc), Qn = Wi(CT), Xn = Wi(CO), Ct = SO(), [Xt, Yn] = _e.useState(!1), [Zn, Sn] = _e.useState(void 0);
45246
+ const [P, X] = _e.useState(!1), [Y, G] = _e.useState({ brandingColor: y }), me = Wi(l_), Ae = Wi(IT), be = Wi(r2), [De, je] = Rr(J0), et = Wi(l2), [Ke, Ye] = Rr(n1), [lt, ft] = Rr(Ah), jt = Mn(_2), Mt = Wi(a2), [Bt, mn] = Rr(Uc), Gt = Wi(AT), In = Wi(Tfe), yn = Mn(ra), [ln, Vn] = Rr(Sm), ei = Wi(Fc), Qn = Wi(CT), Xn = Wi(CO), Ct = SO(), [Xt, Yn] = _e.useState(!1), [Zn, Sn] = _e.useState(void 0);
45245
45247
  ape(Xt, Zn);
45246
45248
  const mi = Wi(mC), di = Wi(uR), vi = Wi(Xfe), yi = Wi(fC), Ot = Wi(x2), Tt = Wi(dR), tn = Wi(jO), Ft = Wi(y_), dn = Wi(npe), Tn = Wi(gC), An = Wi(AO), [Rn, Cn] = _e.useState(), li = _e.useRef(), Ki = Wi(TR), [pr, sr] = Rr(c2), [xr, Dr] = Rr(__), [Vt, Qr] = _e.useState(!0), [Zi, Xi] = _e.useState(!0), si = Yz(T), Cr = Yz(A), [Lr, Lo] = _e.useState(!1), mt = Wi(o2), [de, ye] = Rr(c_), [Fe, it] = _e.useState(), [Ze, ut] = Rr(ng), It = Wi(IO), Ve = Wi(wO), st = Wi(TO), xt = Wi(TT), St = Wi(s2), Ht = ma(), gn = Ife(), [Pn, Dn, Nn, Jn, ii, Vi] = wfe(), [Ri, cr] = _e.useState(!1), Ir = Mn(w2), [Bi, Ar] = _e.useState(0), [Jr, dr] = epe(), Er = ipe(), Vr = Wi(K0), zi = Mn(q0), so = Nd(), jo = so && (Ze?.appSettings?.disableRightClick === !0 || Ze?.appSettings?.disableRightClick === "true");
45247
45249
  _e.useEffect(() => {
@@ -45275,7 +45277,7 @@ function WP({ apiKey: e, gmApiKey: n, mapboxAccessToken: s, venue: c, locationId
45275
45277
  ...To,
45276
45278
  image: Ze.venueImages?.[To.name.toLowerCase()]
45277
45279
  }));
45278
- Ge(Gi), et([]);
45280
+ Ye(Gi), et([]);
45279
45281
  }), lt && window.mapsindoors.services.LocationsService.getLocation(lt.id).then((br) => ft(br)), (!es.language || es.language !== ni) && (es.isInitialized ? es.changeLanguage(ni) : xJ(ni));
45280
45282
  }
45281
45283
  }, [ln, K, Ri, Ze]), _e.useEffect(() => {
@@ -45297,13 +45299,13 @@ function WP({ apiKey: e, gmApiKey: n, mapboxAccessToken: s, venue: c, locationId
45297
45299
  displayName: To.venueInfo?.name || To.name,
45298
45300
  image: To.image
45299
45301
  }));
45300
- Ge(Gi), et(ni);
45302
+ Ye(Gi), et(ni);
45301
45303
  } else {
45302
45304
  const Gi = ni.map((ao) => ({
45303
45305
  ...ao,
45304
45306
  image: br.venueImages?.[ao.name.toLowerCase()]
45305
45307
  }));
45306
- Ge(Gi);
45308
+ Ye(Gi);
45307
45309
  const To = c ?? br.appSettings?.venue ?? [...Gi].sort((ao, Vc) => ao.name.localeCompare(Vc.name))[0]?.name, Vs = Gi.find((ao) => ao.name.toLowerCase() === To?.toLowerCase());
45308
45310
  if (Vs) {
45309
45311
  const ao = await window.mapsindoors.services.VenuesService.getVenue(Vs.id);
@@ -45752,7 +45754,7 @@ function Mpe(e, n = {}) {
45752
45754
  return vpe(e, n, { mount: xpe, update: bpe, unmount: wpe });
45753
45755
  }
45754
45756
  function Ipe() {
45755
- return "1.99.10";
45757
+ return "1.99.11";
45756
45758
  }
45757
45759
  const Tpe = Mpe(qP, {
45758
45760
  props: {
@@ -45946,7 +45948,7 @@ function Spe() {
45946
45948
  function Ke(a, t) {
45947
45949
  return a[0] * t[0] + a[1] * t[1] + a[2] * t[2];
45948
45950
  }
45949
- function Ge(a, t, i) {
45951
+ function Ye(a, t, i) {
45950
45952
  var l = t[0], h = t[1], p = t[2], m = i[0], b = i[1], M = i[2];
45951
45953
  return a[0] = h * M - p * b, a[1] = p * m - l * M, a[2] = l * b - h * m, a;
45952
45954
  }
@@ -46011,11 +46013,11 @@ function Spe() {
46011
46013
  Be(), ln();
46012
46014
  var Sn, mi, di, vi = ei, yi = (Sn = Be(), mi = Lt(1, 0, 0), di = Lt(0, 1, 0), function(a, t, i) {
46013
46015
  var l = Ke(t, i);
46014
- return l < -0.999999 ? (Ge(Sn, mi, t), yn(Sn) < 1e-6 && Ge(Sn, di, t), et(Sn, Sn), (function(h, p, m) {
46016
+ return l < -0.999999 ? (Ye(Sn, mi, t), yn(Sn) < 1e-6 && Ye(Sn, di, t), et(Sn, Sn), (function(h, p, m) {
46015
46017
  m *= 0.5;
46016
46018
  var b = Math.sin(m);
46017
46019
  h[0] = b * p[0], h[1] = b * p[1], h[2] = b * p[2], h[3] = Math.cos(m);
46018
- })(a, Sn, Math.PI), a) : l > 0.999999 ? (a[0] = 0, a[1] = 0, a[2] = 0, a[3] = 1, a) : (Ge(Sn, t, i), a[0] = Sn[0], a[1] = Sn[1], a[2] = Sn[2], a[3] = 1 + l, vi(a, a));
46020
+ })(a, Sn, Math.PI), a) : l > 0.999999 ? (a[0] = 0, a[1] = 0, a[2] = 0, a[3] = 1, a) : (Ye(Sn, t, i), a[0] = Sn[0], a[1] = Sn[1], a[2] = Sn[2], a[3] = 1 + l, vi(a, a));
46019
46021
  });
46020
46022
  function Ot() {
46021
46023
  var a = new A(2);
@@ -51455,7 +51457,7 @@ ${JSON.stringify(h, null, 2)}
51455
51457
  function Ue(a, t, i, l = Re) {
51456
51458
  return i = si(i), [a * Math.sin(i) * l, -t * l, a * Math.cos(i) * l];
51457
51459
  }
51458
- function Ye(a, t, i) {
51460
+ function Ge(a, t, i) {
51459
51461
  return Ue(Math.cos(si(a)), Math.sin(si(a)), t, i);
51460
51462
  }
51461
51463
  const tt = 63710088e-1, gt = 2 * Math.PI * tt;
@@ -51482,7 +51484,7 @@ ${JSON.stringify(h, null, 2)}
51482
51484
  return new zt({ lng: this.lng - l, lat: this.lat - i }, { lng: this.lng + l, lat: this.lat + i });
51483
51485
  }
51484
51486
  toEcef(t) {
51485
- return Ye(this.lat, this.lng, Re + t * Re / tt);
51487
+ return Ge(this.lat, this.lng, Re + t * Re / tt);
51486
51488
  }
51487
51489
  static convert(t) {
51488
51490
  if (t instanceof ct) return t;
@@ -51994,7 +51996,7 @@ ${JSON.stringify(h, null, 2)}
51994
51996
  return (R = N)[0] = (F = N)[0] * (Q = [O, O, h ? 1 / N[3] : O, O])[0], R[1] = F[1] * Q[1], R[2] = F[2] * Q[2], R[3] = F[3] * Q[3], R;
51995
51997
  var R, F, Q;
51996
51998
  }), b = [[0, 1, 2], [6, 5, 4], [0, 3, 7], [2, 1, 5], [3, 2, 6], [0, 4, 5]].map((S) => {
51997
- const N = et([], Ge([], Gt([], m[S[0]], m[S[1]]), Gt([], m[S[2]], m[S[1]]))), O = -Ke(N, m[S[1]]);
51999
+ const N = et([], Ye([], Gt([], m[S[0]], m[S[1]]), Gt([], m[S[2]], m[S[1]]))), O = -Ke(N, m[S[1]]);
51998
52000
  return N.concat(O);
51999
52001
  }), M = [];
52000
52002
  for (let S = 0; S < m.length; S++) M.push([m[S][0], m[S][1], m[S][2]]);
@@ -52004,7 +52006,7 @@ ${JSON.stringify(h, null, 2)}
52004
52006
  for (let h = 0; h < i.length; h++) if (!w(t, i[h])) return 0;
52005
52007
  for (let h = 0; h < this.planes.length; h++) if (!w(t, this.planes[h])) return 0;
52006
52008
  for (const h of l) for (const p of this.frustumEdges) {
52007
- const m = Ge([], h, p), b = wt(m);
52009
+ const m = Ye([], h, p), b = wt(m);
52008
52010
  if (b === 0) continue;
52009
52011
  G(m, m, 1 / b);
52010
52012
  const M = Eo(this.points, this.points[0], m), S = Eo(t, this.points[0], m);
@@ -52143,7 +52145,7 @@ ${JSON.stringify(h, null, 2)}
52143
52145
  const l = this.getClosestEdge(t);
52144
52146
  if (!l) return Lt(0, 0, 1);
52145
52147
  const h = l[0], p = this.edges[h], m = this.edgeProps[h].vec, b = Lt(m[0], m[1], (this.vertices[p.b].height - this.vertices[p.a].height) * i), M = Lt(b[1], -b[0], 0);
52146
- Ge(M, M, b);
52148
+ Ye(M, M, b);
52147
52149
  const S = wt(M);
52148
52150
  return S > 0 ? G(M, M, 1 / S) : se(M, 0, 0, 1);
52149
52151
  }
@@ -52637,7 +52639,7 @@ ${JSON.stringify(h, null, 2)}
52637
52639
  }
52638
52640
  function y1(a, t, i, l) {
52639
52641
  const h = 1 << i.z, p = (a / wn + i.x) / h;
52640
- return Ye(Nt((t / wn + i.y) / h), dt(p), l);
52642
+ return Ge(Nt((t / wn + i.y) / h), dt(p), l);
52641
52643
  }
52642
52644
  function S_({ min: a, max: t }) {
52643
52645
  return 16383 / Math.max(t[0] - a[0], t[1] - a[1], t[2] - a[2]);
@@ -52668,9 +52670,9 @@ ${JSON.stringify(h, null, 2)}
52668
52670
  return Fe(5, 6, a);
52669
52671
  }
52670
52672
  function eS(a, t) {
52671
- const i = Ye(t.lat, t.lng), l = (function(Q) {
52672
- const W = Ye(Q._center.lat, Q._center.lng);
52673
- let J = Ge([], Lt(0, 1, 0), W);
52673
+ const i = Ge(t.lat, t.lng), l = (function(Q) {
52674
+ const W = Ge(Q._center.lat, Q._center.lng);
52675
+ let J = Ye([], Lt(0, 1, 0), W);
52674
52676
  const ie = ze([], -Q.angle, W);
52675
52677
  J = ft(J, J, ie), ze(ie, -Q._pitch, J);
52676
52678
  const xe = et([], W);
@@ -53278,7 +53280,7 @@ ${JSON.stringify(h, null, 2)}
53278
53280
  if (se(xe, rn.coord.x, rn.coord.y, M * rn.height), se(ue, Et.coord.x, Et.coord.y, M * Et.height), mn(xe, ue)) continue;
53279
53281
  Gt(Se, ue, xe), et(Se, Se);
53280
53282
  const Wt = J(nt, Yt.a) || Se, en = J(Xe, Yt.b) || Se;
53281
- se(Ne, Wt[1], -Wt[0], 0), et(Ne, Ne), se(Le, en[1], -en[0], 0), et(Le, Le), Ge(nt, Ne, Wt), et(rt, nt), Ge(nt, Le, en), et(qe, nt), pe(Je[0], xe, G(nt, Gt(nt, Ne, rt), S)), pe(Je[1], xe, G(nt, pe(nt, Ne, rt), S)), pe(Je[2], xe, G(nt, rt, S)), Je[3] = xe, pe(kt[0], ue, G(nt, Gt(nt, Le, qe), S)), pe(kt[1], ue, G(nt, pe(nt, Le, qe), S)), pe(kt[2], ue, G(nt, qe, S)), kt[3] = ue, ie = this.addFeatureSection(Yt.featureInfo.featureIndex, ie, this.bridgeFeatureSections, t);
53283
+ se(Ne, Wt[1], -Wt[0], 0), et(Ne, Ne), se(Le, en[1], -en[0], 0), et(Le, Le), Ye(nt, Ne, Wt), et(rt, nt), Ye(nt, Le, en), et(qe, nt), pe(Je[0], xe, G(nt, Gt(nt, Ne, rt), S)), pe(Je[1], xe, G(nt, pe(nt, Ne, rt), S)), pe(Je[2], xe, G(nt, rt, S)), Je[3] = xe, pe(kt[0], ue, G(nt, Gt(nt, Le, qe), S)), pe(kt[1], ue, G(nt, pe(nt, Le, qe), S)), pe(kt[2], ue, G(nt, qe, S)), kt[3] = ue, ie = this.addFeatureSection(Yt.featureInfo.featureIndex, ie, this.bridgeFeatureSections, t);
53282
53284
  const on = t.addVertex(Je[0], Ne, m), fn = t.addVertex(Je[1], Ne, m), jn = t.addVertex(kt[0], Le, m), bn = t.addVertex(kt[1], Le, m);
53283
53285
  t.addTriangle(on, fn, jn), t.addTriangle(fn, bn, jn);
53284
53286
  const xn = t.addVertex(Je[1], rt, m), pn = t.addVertex(Je[2], rt, m), kn = t.addVertex(kt[1], qe, m), $n = t.addVertex(kt[2], qe, m);
@@ -55387,10 +55389,10 @@ ${JSON.stringify(h, null, 2)}
55387
55389
  function Z_(a, t, i, l, h, p, m, b) {
55388
55390
  const M = [i[0] - t[0], i[1] - t[1], 0], S = [l[0] - t[0], l[1] - t[1], 0];
55389
55391
  if (wt(M) < 1e-12 || wt(S) < 1e-12) return Xt(a);
55390
- const N = Ge([], M, S);
55392
+ const N = Ye([], M, S);
55391
55393
  et(N, N), E(S, l, t), M[2] = (p - h) * b, S[2] = (m - h) * b;
55392
55394
  const O = M;
55393
- return Ge(O, M, S), et(O, O), yi(a, N, O);
55395
+ return Ye(O, M, S), et(O, O), yi(a, N, O);
55394
55396
  }
55395
55397
  function W_(a, t, i = !1) {
55396
55398
  const l = Lf(t.zoom), h = (function(p, m, b) {
@@ -55400,13 +55402,13 @@ ${JSON.stringify(h, null, 2)}
55400
55402
  const Se = G_(m.projection, m.zoom, m.width, m.height, 1024);
55401
55403
  J = W * m.projection.pixelSpaceConversion(m.center.lat, M, Se);
55402
55404
  }
55403
- const ie = Ye(N, O);
55405
+ const ie = Ge(N, O);
55404
55406
  pe(ie, ie, G([], et([], ie), F * J * S[2]));
55405
55407
  const xe = (function(Se) {
55406
55408
  const Ne = [Se[0], Se[1], Se[2]];
55407
55409
  let Le = [0, 1, 0];
55408
- const rt = Ge([], Le, Ne);
55409
- return Ge(Le, Ne, rt), De(Le) === 0 && (Le = [0, 1, 0], Ge(rt, Ne, Le)), et(rt, rt), et(Le, Le), et(Ne, Ne), [rt[0], rt[1], rt[2], 0, Le[0], Le[1], Le[2], 0, Ne[0], Ne[1], Ne[2], 0, Se[0], Se[1], Se[2], 1];
55410
+ const rt = Ye([], Le, Ne);
55411
+ return Ye(Le, Ne, rt), De(Le) === 0 && (Le = [0, 1, 0], Ye(rt, Ne, Le)), et(rt, rt), et(Le, Le), et(Ne, Ne), [rt[0], rt[1], rt[2], 0, Le[0], Le[1], Le[2], 0, Ne[0], Ne[1], Ne[2], 0, Se[0], Se[1], Se[2], 1];
55410
55412
  })(ie);
55411
55413
  ve(R, R, [J, J, J * F]), ne(R, R, [-S[0], -S[1], -S[2]]);
55412
55414
  const ue = K([], m.globeMatrix, xe);
@@ -55487,7 +55489,7 @@ ${JSON.stringify(h, null, 2)}
55487
55489
  const Pt = H.projectAabbCorners(nt, Xe), $t = vt(1, Je.lat) * qe.worldSize, Kt = (function(pn, kn) {
55488
55490
  const $n = [0, 0, 1], oi = [{ corners: [0, 1, 3, 2], dotProductWithUp: 0 }, { corners: [1, 5, 2, 6], dotProductWithUp: 0 }, { corners: [0, 4, 1, 5], dotProductWithUp: 0 }, { corners: [2, 6, 3, 7], dotProductWithUp: 0 }, { corners: [4, 7, 5, 6], dotProductWithUp: 0 }, { corners: [0, 3, 4, 7], dotProductWithUp: 0 }];
55489
55491
  for (const Wn of oi) {
55490
- const Mi = pn[Wn.corners[0]], nr = pn[Wn.corners[1]], Ii = pn[Wn.corners[2]], or = [nr[0] - Mi[0], nr[1] - Mi[1], kn * (nr[2] - Mi[2])], ki = Ge(or, or, [Ii[0] - Mi[0], Ii[1] - Mi[1], kn * (Ii[2] - Mi[2])]);
55492
+ const Mi = pn[Wn.corners[0]], nr = pn[Wn.corners[1]], Ii = pn[Wn.corners[2]], or = [nr[0] - Mi[0], nr[1] - Mi[1], kn * (nr[2] - Mi[2])], ki = Ye(or, or, [Ii[0] - Mi[0], Ii[1] - Mi[1], kn * (Ii[2] - Mi[2])]);
55491
55493
  et(ki, ki), Wn.dotProductWithUp = Ke(ki, $n);
55492
55494
  }
55493
55495
  return oi.sort((Wn, Mi) => Wn.dotProductWithUp - Mi.dotProductWithUp), oi[0].corners;
@@ -58767,7 +58769,7 @@ ${JSON.stringify(h, null, 2)}
58767
58769
  return ft(h, h, _1(pd(l))), { x: h[0], y: h[1], z: h[2] };
58768
58770
  }
58769
58771
  locationPoint(t, i, l) {
58770
- const h = Ye(i.lat, i.lng), p = et([], h), m = l ? t._centerAltitude + l : t.elevation ? t.elevation.getAtPointOrZero(t.locationCoordinate(i), t._centerAltitude) : t._centerAltitude;
58772
+ const h = Ge(i.lat, i.lng), p = et([], h), m = l ? t._centerAltitude + l : t.elevation ? t.elevation.getAtPointOrZero(t.locationCoordinate(i), t._centerAltitude) : t._centerAltitude;
58771
58773
  me(h, h, p, vt(1, 0) * wn * m);
58772
58774
  const b = fe(new Float64Array(16));
58773
58775
  return K(b, t.pixelMatrix, t.globeMatrix), ft(h, h, b), new Vt(h[0], h[1]);
@@ -62850,7 +62852,7 @@ ${JSON.stringify(h, null, 2)}
62850
62852
  }, o.bX = ph, o.bY = ou, o.bZ = co, o.b_ = os, o.ba = Oe, o.bb = ee, o.bc = function(a, t) {
62851
62853
  const { x: i, y: l } = a.point, h = JC(i, l, a.worldSize / a._pixelsPerMercatorPixel, 0, 0);
62852
62854
  return K(h, h, L2(pd(t)));
62853
- }, o.bd = z, o.be = Bt, o.bf = Ae, o.bg = me, o.bh = Ge, o.bi = Ke, o.bj = Xm, o.bk = Ll, o.bl = Sw, o.bm = function(a, t, i, l, h) {
62855
+ }, o.bd = z, o.be = Bt, o.bf = Ae, o.bg = me, o.bh = Ye, o.bi = Ke, o.bj = Xm, o.bk = Ll, o.bl = Sw, o.bm = function(a, t, i, l, h) {
62854
62856
  const p = 5 * t + 2;
62855
62857
  a.float32[p + 0] = i, a.float32[p + 1] = l, a.float32[p + 2] = h;
62856
62858
  }, o.bn = t0, o.bo = Tt, o.bp = Tn, o.bq = Ft, o.br = pr, o.bs = it, o.bt = function(a, t, i, l) {
@@ -63283,7 +63285,7 @@ ${JSON.stringify(h, null, 2)}
63283
63285
  return !!document.fullscreenElement || !!document.webkitFullscreenElement;
63284
63286
  }, o.eP = de, o.eQ = nn, o.eR = function(a, t, i) {
63285
63287
  return a[0] = t[0] / i[0], a[1] = t[1] / i[1], a[2] = t[2] / i[2], a;
63286
- }, o.eS = In, o.eT = Ye, o.eU = De, o.eV = se, o.eW = function([a, t, i]) {
63288
+ }, o.eS = In, o.eT = Ge, o.eU = De, o.eV = se, o.eW = function([a, t, i]) {
63287
63289
  const l = Math.hypot(a, t, i), h = Math.atan2(a, i), p = 0.5 * Math.PI - Math.acos(-t / l);
63288
63290
  return new ct(Cr(h), Cr(p));
63289
63291
  }, o.eX = ei, o.eY = lw, o.eZ = function(a) {
@@ -64194,7 +64196,7 @@ ${JSON.stringify(h, null, 2)}
64194
64196
  function Ke(mt, de) {
64195
64197
  return (de << 3) + (7 & mt);
64196
64198
  }
64197
- function Ge(mt) {
64199
+ function Ye(mt) {
64198
64200
  return mt << 1 ^ mt >> 31;
64199
64201
  }
64200
64202
  function lt(mt, de) {
@@ -64204,7 +64206,7 @@ ${JSON.stringify(h, null, 2)}
64204
64206
  de.writeVarint(Ke(1, ye.length));
64205
64207
  for (const ut of ye) {
64206
64208
  const It = ut[0] - it, Ve = ut[1] - Ze;
64207
- de.writeVarint(Ge(It)), de.writeVarint(Ge(Ve)), it += It, Ze += Ve;
64209
+ de.writeVarint(Ye(It)), de.writeVarint(Ye(Ve)), it += It, Ze += Ve;
64208
64210
  }
64209
64211
  } else for (const ut of ye) {
64210
64212
  if (ut.length === 0) continue;
@@ -64213,7 +64215,7 @@ ${JSON.stringify(h, null, 2)}
64213
64215
  for (let Ve = 0; Ve < It; Ve++) {
64214
64216
  Ve === 1 && de.writeVarint(Ke(2, It - 1));
64215
64217
  const st = ut[Ve][0] - it, xt = ut[Ve][1] - Ze;
64216
- de.writeVarint(Ge(st)), de.writeVarint(Ge(xt)), it += st, Ze += xt;
64218
+ de.writeVarint(Ye(st)), de.writeVarint(Ye(xt)), it += st, Ze += xt;
64217
64219
  }
64218
64220
  Fe === 3 && de.writeVarint(Ke(7, 1));
64219
64221
  }
@@ -65368,7 +65370,7 @@ ${JSON.stringify(h, null, 2)}
65368
65370
  this.postEvent(r, u, () => {
65369
65371
  }, f);
65370
65372
  }
65371
- }(), je = De.postStyleLoadEvent.bind(De), et = new Y({ attributes: [{ name: "maps/js/layer-animations/style-with-appearances" }] }), Ke = et.postMetricsEvent.bind(et), Ge = new Y({ attributes: [{ name: "maps/js/layer-animations/runtime-appearances" }] }), lt = Ge.postMetricsEvent.bind(Ge), ft = new class extends X {
65373
+ }(), je = De.postStyleLoadEvent.bind(De), et = new Y({ attributes: [{ name: "maps/js/layer-animations/style-with-appearances" }] }), Ke = et.postMetricsEvent.bind(et), Ye = new Y({ attributes: [{ name: "maps/js/layer-animations/runtime-appearances" }] }), lt = Ye.postMetricsEvent.bind(Ye), ft = new class extends X {
65372
65374
  constructor() {
65373
65375
  super("gljs.performance");
65374
65376
  }
@@ -65997,14 +65999,14 @@ Use an identity property function instead: ${le}.`)];
65997
65999
  const ot = [];
65998
66000
  return ot.push(...vi({ key: We.key, value: We.object.condition, valueSpec: o.a8.appearance.condition, expressionContext: "appearance" })), ot;
65999
66001
  })(Object.assign({ layer: oe, layerType: Te }, at)), properties: (at) => (function(We) {
66000
- const ot = [], { styleSpec: Ue, layer: Ye, layerType: tt } = We, gt = Ue[`paint_${tt}`], ct = Ue[`layout_${tt}`], zt = We.object[We.objectKey];
66002
+ const ot = [], { styleSpec: Ue, layer: Ge, layerType: tt } = We, gt = Ue[`paint_${tt}`], ct = Ue[`layout_${tt}`], zt = We.object[We.objectKey];
66001
66003
  for (const At in zt) {
66002
66004
  const qt = At in gt ? "paint" : At in ct ? "layout" : void 0;
66003
66005
  if (!qt) {
66004
66006
  ot.push(new o.V(We.key, At, `unknown property "${At}" for layer type "${tt}"`));
66005
66007
  continue;
66006
66008
  }
66007
- const Qt = Object.assign({}, We, { key: `${We.key}.${At}`, object: zt, objectKey: At, layer: Ye, layerType: tt, value: zt[At], valueSpec: qt === "paint" ? gt[At] : ct[At] });
66009
+ const Qt = Object.assign({}, We, { key: `${We.key}.${At}`, object: zt, objectKey: At, layer: Ge, layerType: tt, value: zt[At], valueSpec: qt === "paint" ? gt[At] : ct[At] });
66008
66010
  ot.push(...dn(Qt, qt));
66009
66011
  }
66010
66012
  return ot;
@@ -66592,10 +66594,10 @@ Use an identity property function instead: ${le}.`)];
66592
66594
  o.aE(k, k, D), o.aE(B, B, D), o.aE(V, V, D);
66593
66595
  const q = new o.P(k[0] / k[3], k[1] / k[3]), Z = new o.P(B[0] / B[3], B[1] / B[3]), te = o.aG(I, q) && k[3] < V[3], le = o.aG(I, Z) && B[3] < V[3];
66594
66596
  if (!te && !le) return null;
66595
- const oe = (function(ot, Ue, Ye) {
66597
+ const oe = (function(ot, Ue, Ge) {
66596
66598
  for (let tt = 1; tt < ot.length; tt++) {
66597
66599
  const gt = Ro(Ue.pointCoordinate3D(ot[tt - 1]).x), ct = Ro(Ue.pointCoordinate3D(ot[tt]).x);
66598
- if (Ye < 0) {
66600
+ if (Ge < 0) {
66599
66601
  if (gt < ct) return { idx: tt, t: -gt / (ct - 1 - gt) };
66600
66602
  } else if (ct < gt) return { idx: tt, t: (1 - gt) / (ct + 1 - gt) };
66601
66603
  }
@@ -66893,7 +66895,7 @@ Use an identity property function instead: ${le}.`)];
66893
66895
  if (new Uint32Array(Ie.buffer)[ot] === 4294967295) return null;
66894
66896
  let Ue = [];
66895
66897
  Ue = Te ? [] : new oe.data.constructor(We);
66896
- for (let Ye = 0; Ye < We; Ye++) Ue[Ye] = Math.round(1e12 * (Ie[We * ot + Ye] * at + Ce)) / 1e12;
66898
+ for (let Ge = 0; Ge < We; Ge++) Ue[Ge] = Math.round(1e12 * (Ie[We * ot + Ge] * at + Ce)) / 1e12;
66897
66899
  return Ue;
66898
66900
  })([Math.min(Math.max(-C, Math.floor((q - D) * I)), I - 1 + C), Math.min(Math.max(-C, Math.floor((Z - k) * I)), I - 1 + C)], g, { scaled: x });
66899
66901
  }
@@ -68370,9 +68372,9 @@ Use an identity property function instead: ${le}.`)];
68370
68372
  const ke = f.lineVertexArray, Re = g ? f.text.placedSymbolArray : f.icon.placedSymbolArray, Ce = u.transform.width / u.transform.height;
68371
68373
  let at, We = !1;
68372
68374
  for (let ot = 0; ot < Re.length; ot++) {
68373
- const Ue = Re.get(ot), { numGlyphs: Ye, writingMode: tt } = Ue;
68375
+ const Ue = Re.get(ot), { numGlyphs: Ge, writingMode: tt } = Ue;
68374
68376
  if (tt !== o.bk.vertical || We || at === o.bk.horizontal || (We = !0), at = tt, (Ue.hidden || tt === o.bk.vertical) && !We) {
68375
- zh(Ye, Te);
68377
+ zh(Ge, Te);
68376
68378
  continue;
68377
68379
  }
68378
68380
  We = !1;
@@ -68386,25 +68388,25 @@ Use an identity property function instead: ${le}.`)];
68386
68388
  }
68387
68389
  const dt = [At, qt, Qt, 1];
68388
68390
  if (o.aE(dt, dt, r), !fc(dt, oe)) {
68389
- zh(Ye, Te);
68391
+ zh(Ge, Te);
68390
68392
  continue;
68391
68393
  }
68392
68394
  const Nt = dt[3], Rt = Lh(u.transform.getCameraToCenterDistance(q.projection), Nt), Ut = o.bl(Z, te, Ue), vn = C ? Ut / Rt : Ut * Rt, un = zs(At, qt, Qt, x);
68393
68395
  if (un[3] <= 0) {
68394
- zh(Ye, Te);
68396
+ zh(Ge, Te);
68395
68397
  continue;
68396
68398
  }
68397
68399
  let nn = {};
68398
68400
  const Jt = o.ap(f.layers[0].layout.get("text-max-angle")), Fn = Math.cos(Jt), Gn = C ? null : vt, En = Su(Ue, vn, !1, D, r, x, I, f.glyphOffsetArray, ke, Te, Ie, un, gt, nn, Ce, Gn, q.projection, B, C, Fn);
68399
- We = En.useVertical, Gn && En.needsFlipping && (nn = {}), (En.notEnoughRoom || We || En.needsFlipping && Su(Ue, vn, !0, D, r, x, I, f.glyphOffsetArray, ke, Te, Ie, un, gt, nn, Ce, Gn, q.projection, B, C, Fn).notEnoughRoom) && zh(Ye, Te);
68401
+ We = En.useVertical, Gn && En.needsFlipping && (nn = {}), (En.notEnoughRoom || We || En.needsFlipping && Su(Ue, vn, !0, D, r, x, I, f.glyphOffsetArray, ke, Te, Ie, un, gt, nn, Ce, Gn, q.projection, B, C, Fn).notEnoughRoom) && zh(Ge, Te);
68400
68402
  }
68401
68403
  g ? (f.text.dynamicLayoutVertexBuffer.updateData(Te), Ie && f.text.globeExtVertexBuffer && f.text.globeExtVertexBuffer.updateData(Ie)) : (f.icon.dynamicLayoutVertexBuffer.updateData(Te), Ie && f.icon.globeExtVertexBuffer && f.icon.globeExtVertexBuffer.updateData(Ie));
68402
68404
  }
68403
68405
  function Od(f, r, u, g, x, I, C, D, k, B, V, q, Z, te, le, oe, Te) {
68404
68406
  const { lineStartIndex: Ie, glyphStartIndex: ke, segment: Re } = D, Ce = ke + D.numGlyphs, at = Ie + D.lineLength, We = r.getoffsetX(ke), ot = r.getoffsetX(Ce - 1), Ue = np(f * We, u, g, x, I, C, Re, Ie, at, k, B, V, q, Z, !0, te, le, oe, Te);
68405
68407
  if (!Ue) return null;
68406
- const Ye = np(f * ot, u, g, x, I, C, Re, Ie, at, k, B, V, q, Z, !0, te, le, oe, Te);
68407
- return Ye ? { first: Ue, last: Ye } : null;
68408
+ const Ge = np(f * ot, u, g, x, I, C, Re, Ie, at, k, B, V, q, Z, !0, te, le, oe, Te);
68409
+ return Ge ? { first: Ue, last: Ge } : null;
68408
68410
  }
68409
68411
  function kh(f, r, u, g) {
68410
68412
  return f === o.bk.horizontal && Math.abs(g) > Math.abs(u) ? { useVertical: !0 } : f === o.bk.vertical ? g > 0 ? { needsFlipping: !0 } : null : r !== 0 && (function(x, I) {
@@ -68412,7 +68414,7 @@ Use an identity property function instead: ${le}.`)];
68412
68414
  })(u, g) ? r === 1 ? { needsFlipping: !0 } : null : u < 0 ? { needsFlipping: !0 } : null;
68413
68415
  }
68414
68416
  function Su(f, r, u, g, x, I, C, D, k, B, V, q, Z, te, le, oe, Te, Ie, ke, Re) {
68415
- const Ce = r / 24, at = f.lineOffsetX * Ce, We = f.lineOffsetY * Ce, { lineStartIndex: ot, glyphStartIndex: Ue, numGlyphs: Ye, segment: tt, writingMode: gt, flipState: ct } = f, zt = ot + f.lineLength, At = (qt) => {
68417
+ const Ce = r / 24, at = f.lineOffsetX * Ce, We = f.lineOffsetY * Ce, { lineStartIndex: ot, glyphStartIndex: Ue, numGlyphs: Ge, segment: tt, writingMode: gt, flipState: ct } = f, zt = ot + f.lineLength, At = (qt) => {
68416
68418
  if (V) {
68417
68419
  const [Nt, Rt, Ut] = qt.up, vn = B.length;
68418
68420
  o.bm(V, vn + 0, Nt, Rt, Ut), o.bm(V, vn + 1, Nt, Rt, Ut), o.bm(V, vn + 2, Nt, Rt, Ut), o.bm(V, vn + 3, Nt, Rt, Ut);
@@ -68420,7 +68422,7 @@ Use an identity property function instead: ${le}.`)];
68420
68422
  const [Qt, vt, dt] = qt.point;
68421
68423
  o.bn(B, Qt, vt, dt, qt.angle);
68422
68424
  };
68423
- if (Ye > 1) {
68425
+ if (Ge > 1) {
68424
68426
  const qt = Od(Ce, D, at, We, u, q, Z, f, k, I, te, oe, !1, Te, Ie, ke, Re);
68425
68427
  if (!qt) return { notEnoughRoom: !0 };
68426
68428
  if (g && !u) {
@@ -68430,7 +68432,7 @@ Use an identity property function instead: ${le}.`)];
68430
68432
  if (f.flipState = vn && vn.needsFlipping ? 1 : 2, vn) return vn;
68431
68433
  }
68432
68434
  At(qt.first);
68433
- for (let Qt = Ue + 1; Qt < Ue + Ye - 1; Qt++) {
68435
+ for (let Qt = Ue + 1; Qt < Ue + Ge - 1; Qt++) {
68434
68436
  const vt = np(Ce * D.getoffsetX(Qt), at, We, u, q, Z, tt, ot, zt, k, I, te, oe, !1, !1, Te, Ie, ke, Re);
68435
68437
  if (!vt) return B.length -= 4 * (Qt - Ue), { notEnoughRoom: !0 };
68436
68438
  At(vt);
@@ -68461,23 +68463,23 @@ Use an identity property function instead: ${le}.`)];
68461
68463
  const Re = g ? f - r : f + r;
68462
68464
  let Ce = Re > 0 ? 1 : -1, at = 0;
68463
68465
  g && (Ce *= -1, at = Math.PI), Ce < 0 && (at += Math.PI);
68464
- let We = D + C + (Ce > 0 ? 0 : 1) | 0, ot = x, Ue = x, Ye = 0, tt = 0;
68466
+ let We = D + C + (Ce > 0 ? 0 : 1) | 0, ot = x, Ue = x, Ge = 0, tt = 0;
68465
68467
  const gt = Math.abs(Re), ct = [], zt = [];
68466
68468
  let At = I, qt = At, Qt = o.be([]);
68467
- const vt = () => tp(qt, At, Ue, gt - Ye + 1, V, Z, oe, Te.canonical);
68468
- for (; Ye + tt <= gt; ) {
68469
+ const vt = () => tp(qt, At, Ue, gt - Ge + 1, V, Z, oe, Te.canonical);
68470
+ for (; Ge + tt <= gt; ) {
68469
68471
  if (We += Ce, We < D || We >= k) return null;
68470
68472
  if (Ue = ot, qt = At, ct.push(Ue), te && zt.push(qt), At = new o.P(B.getx(We), B.gety(We)), ot = q[We], !ot) {
68471
68473
  const Gn = er(At, Te.canonical, V, oe, Z);
68472
68474
  ot = Gn[3] > 0 ? q[We] = Gn : vt();
68473
68475
  }
68474
- Ye += tt;
68476
+ Ge += tt;
68475
68477
  const Jt = o.ax([], ot, Ue), Fn = o.bf(Ue, ot);
68476
68478
  if (u && Fn > 0 && tt > 0 && o.bi(Qt, Jt) / (tt * Fn) < ke) return null;
68477
68479
  tt = Fn, Qt = Jt;
68478
68480
  }
68479
68481
  le && Z && (q[We] && (ot = vt(), tt = o.bf(Ue, ot), Qt = o.ax([], ot, Ue)), q[We] = ot);
68480
- const dt = (gt - Ye) / tt, Nt = At.sub(qt)._mult(dt)._add(qt), Rt = o.bg([], Ue, Qt, dt);
68482
+ const dt = (gt - Ge) / tt, Nt = At.sub(qt)._mult(dt)._add(qt), Rt = o.bg([], Ue, Qt, dt);
68481
68483
  let Ut = [0, 0, 1], vn = Qt[0], un = Qt[1];
68482
68484
  if (Ie && (Ut = oe.upVector(Te.canonical, Nt.x, Nt.y), Ut[0] !== 0 || Ut[1] !== 0 || Ut[2] !== 1)) {
68483
68485
  const Jt = [Ut[2], 0, -Ut[0]], Fn = o.bh([], Ut, Jt);
@@ -68524,19 +68526,19 @@ Use an identity property function instead: ${le}.`)];
68524
68526
  const qt = o.bt(At[0], At[1], o.an / (2 * Math.PI), 1);
68525
68527
  o.aE(qt, qt, I), Z = o.am(Z, qt[0], at), te = o.am(te, qt[1], at), le = o.am(le, qt[2], at);
68526
68528
  }
68527
- const We = this.projectAndGetPerspectiveRatio(V, Z, te, le, g.tileID, Re.name === "globe" || !!Ie || this.transform.pitch > 0, Re), ot = B * We.perspectiveRatio, Ue = (g.x1 * u + D.x - g.padding) * ot + We.point.x, Ye = (g.y1 * u + D.y - g.padding) * ot + We.point.y, tt = (g.x2 * u + D.x + g.padding) * ot + We.point.x, gt = (g.y2 * u + D.y + g.padding) * ot + We.point.y, ct = We.perspectiveRatio <= 0.55 || We.occluded;
68528
- return !this.isInsideGrid(Ue, Ye, tt, gt) || !k && this.grid.hitTest(Ue, Ye, tt, gt, q) || ct ? { box: [], offscreen: !1, occluded: We.occluded } : { box: [Ue, Ye, tt, gt], offscreen: this.isOffscreen(Ue, Ye, tt, gt), occluded: !1 };
68529
+ const We = this.projectAndGetPerspectiveRatio(V, Z, te, le, g.tileID, Re.name === "globe" || !!Ie || this.transform.pitch > 0, Re), ot = B * We.perspectiveRatio, Ue = (g.x1 * u + D.x - g.padding) * ot + We.point.x, Ge = (g.y1 * u + D.y - g.padding) * ot + We.point.y, tt = (g.x2 * u + D.x + g.padding) * ot + We.point.x, gt = (g.y2 * u + D.y + g.padding) * ot + We.point.y, ct = We.perspectiveRatio <= 0.55 || We.occluded;
68530
+ return !this.isInsideGrid(Ue, Ge, tt, gt) || !k && this.grid.hitTest(Ue, Ge, tt, gt, q) || ct ? { box: [], offscreen: !1, occluded: We.occluded } : { box: [Ue, Ge, tt, gt], offscreen: this.isOffscreen(Ue, Ge, tt, gt), occluded: !1 };
68529
68531
  }
68530
68532
  placeCollisionCircles(r, u, g, x, I, C, D, k, B, V, q, Z, te, le, oe, Te) {
68531
68533
  const Ie = [], ke = this.transform.elevation, Re = r.getProjection(), Ce = r.elevationType === "road", at = !!ke || Ce, We = o.bu.getAtTileOffsetFunc(Te, this.transform.center.lat, this.transform.worldSize, Re), ot = new o.P(g.tileAnchorX, g.tileAnchorY), Ue = new o.P(g.tileAnchorX, g.tileAnchorY);
68532
- let { x: Ye, y: tt, z: gt } = Re.projectTilePoint(Ue.x, Ue.y, Te.canonical), ct = null;
68534
+ let { x: Ge, y: tt, z: gt } = Re.projectTilePoint(Ue.x, Ue.y, Te.canonical), ct = null;
68533
68535
  if (at) {
68534
68536
  const Fn = Ce ? r.getElevationFeatureForText(x) : null;
68535
68537
  ct = { getElevation: We, elevation: ke, elevationFeature: Fn };
68536
68538
  const [Gn, En, zn] = We(ot, ke, Fn);
68537
- Ye += Gn, tt += En, gt += zn;
68539
+ Ge += Gn, tt += En, gt += zn;
68538
68540
  }
68539
- const zt = Re.name === "globe", At = this.projectAndGetPerspectiveRatio(k, Ye, tt, gt, Te, zt || !!ke || this.transform.pitch > 0, Re), { perspectiveRatio: qt } = At, Qt = (Z ? D / qt : D * qt) / o.by, vt = zs(Ye, tt, gt, B), dt = g.lineOffsetX * Qt, Nt = g.lineOffsetY * Qt, Rt = o.ap(r.layers[0].layout.get("text-max-angle")), Ut = Math.cos(Rt), vn = At.signedDistanceFromCamera > 0 ? Od(Qt, C, dt, Nt, Ce && g.flipState === 1, vt, Ue, g, I, B, {}, at && !Z ? ct : null, Z && at, Re, Te, Z, Ut) : null;
68541
+ const zt = Re.name === "globe", At = this.projectAndGetPerspectiveRatio(k, Ge, tt, gt, Te, zt || !!ke || this.transform.pitch > 0, Re), { perspectiveRatio: qt } = At, Qt = (Z ? D / qt : D * qt) / o.by, vt = zs(Ge, tt, gt, B), dt = g.lineOffsetX * Qt, Nt = g.lineOffsetY * Qt, Rt = o.ap(r.layers[0].layout.get("text-max-angle")), Ut = Math.cos(Rt), vn = At.signedDistanceFromCamera > 0 ? Od(Qt, C, dt, Nt, Ce && g.flipState === 1, vt, Ue, g, I, B, {}, at && !Z ? ct : null, Z && at, Re, Te, Z, Ut) : null;
68540
68542
  let un = !1, nn = !1, Jt = !0;
68541
68543
  if (vn && !At.occluded) {
68542
68544
  const Fn = 0.5 * le * qt + oe, Gn = new o.P(-100, -100), En = new o.P(this.screenRightBoundary, this.screenBottomBoundary), zn = new zd(), { first: ri, last: _i } = vn, pi = ri.path.length;
@@ -68678,15 +68680,15 @@ Use an identity property function instead: ${le}.`)];
68678
68680
  const ke = k.get("text-pitch-alignment") === "map", Re = k.get("text-rotation-alignment") === "map";
68679
68681
  u.compileFilter(u.options);
68680
68682
  const Ce = u.dynamicFilter(), at = u.dynamicFilterNeedsFeature(), We = u.dynamicFilterNeedsGeometry(), ot = this.transform.calculatePixelsToTileUnitsMatrix(g), Ue = Wa(le, g.tileID.canonical, ke, Re, this.transform, C.getProjection(), ot);
68681
- let Ye = null;
68683
+ let Ge = null;
68682
68684
  const tt = C.getProjection().createInversionMatrix(this.transform, g.tileID.canonical);
68683
68685
  if (ke) {
68684
68686
  const Nt = ws(le, g.tileID.canonical, ke, Re, this.transform, C.getProjection(), ot);
68685
- Ye = o.aD([], this.transform.labelPlaneMatrix, Nt);
68687
+ Ge = o.aD([], this.transform.labelPlaneMatrix, Nt);
68686
68688
  }
68687
68689
  let gt = null;
68688
68690
  Ce && g.latestFeatureIndex && (gt = { unwrappedTileID: te, dynamicFilter: Ce, dynamicFilterNeedsFeature: at, needGeometry: We }), this.retainedQueryData[C.bucketInstanceId] = new fr(C.bucketInstanceId, D, C.sourceLayerIndex, C.index, g.tileID);
68689
- const [ct, zt] = C.layers[0].layout.get("text-size-scale-range"), At = o.aC(I, ct, zt), [qt, Qt] = k.get("icon-size-scale-range"), vt = o.aC(I, qt, Qt), dt = { bucket: C, layout: k, paint: B, posMatrix: le, invMatrix: tt, mercatorCenter: [o.aH(this.transform.center.lng), o.aL(this.transform.center.lat)], textLabelPlaneMatrix: Ue, labelToScreenMatrix: Ye, clippingData: gt, scale: q, textPixelRatio: Z, holdingForFade: g.holdingForFade(), collisionBoxArray: V, partiallyEvaluatedTextSize: o.bj(C.textSizeData, this.transform.zoom, At), partiallyEvaluatedIconSize: o.bj(C.iconSizeData, this.transform.zoom, vt), collisionGroup: this.collisionGroups.get(C.sourceID), latestFeatureIndex: g.latestFeatureIndex };
68691
+ const [ct, zt] = C.layers[0].layout.get("text-size-scale-range"), At = o.aC(I, ct, zt), [qt, Qt] = k.get("icon-size-scale-range"), vt = o.aC(I, qt, Qt), dt = { bucket: C, layout: k, paint: B, posMatrix: le, invMatrix: tt, mercatorCenter: [o.aH(this.transform.center.lng), o.aL(this.transform.center.lat)], textLabelPlaneMatrix: Ue, labelToScreenMatrix: Ge, clippingData: gt, scale: q, textPixelRatio: Z, holdingForFade: g.holdingForFade(), collisionBoxArray: V, partiallyEvaluatedTextSize: o.bj(C.textSizeData, this.transform.zoom, At), partiallyEvaluatedIconSize: o.bj(C.iconSizeData, this.transform.zoom, vt), collisionGroup: this.collisionGroups.get(C.sourceID), latestFeatureIndex: g.latestFeatureIndex };
68690
68692
  if (x) for (const Nt of C.sortKeyRanges) {
68691
68693
  const { sortKey: Rt, symbolInstanceStart: Ut, symbolInstanceEnd: vn } = Nt;
68692
68694
  r.push({ sortKey: Rt, symbolInstanceStart: Ut, symbolInstanceEnd: vn, parameters: dt });
@@ -68694,21 +68696,21 @@ Use an identity property function instead: ${le}.`)];
68694
68696
  else r.push({ symbolInstanceStart: 0, symbolInstanceEnd: C.symbolInstances.length, parameters: dt });
68695
68697
  }
68696
68698
  attemptAnchorPlacement(r, u, g, x, I, C, D, k, B, V, q, Z, te, le, oe, Te, Ie, ke, Re, Ce, at) {
68697
- const { textOffset0: We, textOffset1: ot, crossTileID: Ue } = oe, Ye = [We, ot], tt = Hs(r, C, D, Ye, k), gt = this.collisionIndex.placeCollisionBox(Ie, k, u, g, x, I, $c(tt.x, tt.y, B, V, this.transform.angle), le, q, Z, te.predicate);
68699
+ const { textOffset0: We, textOffset1: ot, crossTileID: Ue } = oe, Ge = [We, ot], tt = Hs(r, C, D, Ge, k), gt = this.collisionIndex.placeCollisionBox(Ie, k, u, g, x, I, $c(tt.x, tt.y, B, V, this.transform.angle), le, q, Z, te.predicate);
68698
68700
  if (Re) {
68699
68701
  const ct = Ie.getSymbolInstanceIconSize(at, this.transform.zoom, oe.placedIconSymbolIndex);
68700
68702
  if (this.collisionIndex.placeCollisionBox(Ie, ct, Re, g, x, I, $c(tt.x, tt.y, B, V, this.transform.angle), le, q, Z, te.predicate).box.length === 0) return;
68701
68703
  }
68702
68704
  if (gt.box.length > 0) {
68703
68705
  let ct;
68704
- return this.prevPlacement && this.prevPlacement.variableOffsets[Ue] && this.prevPlacement.placements[Ue] && this.prevPlacement.placements[Ue].text && (ct = this.prevPlacement.variableOffsets[Ue].anchor), this.variableOffsets[Ue] = { textOffset: Ye, width: C, height: D, anchor: r, textScale: k, prevAnchor: ct }, this.markUsedJustification(Ie, r, oe, ke), Ie.allowVerticalPlacement && (this.markUsedOrientation(Ie, ke, oe), this.placedOrientations[Ue] = ke), { shift: tt, placedGlyphBoxes: gt };
68706
+ return this.prevPlacement && this.prevPlacement.variableOffsets[Ue] && this.prevPlacement.placements[Ue] && this.prevPlacement.placements[Ue].text && (ct = this.prevPlacement.variableOffsets[Ue].anchor), this.variableOffsets[Ue] = { textOffset: Ge, width: C, height: D, anchor: r, textScale: k, prevAnchor: ct }, this.markUsedJustification(Ie, r, oe, ke), Ie.allowVerticalPlacement && (this.markUsedOrientation(Ie, ke, oe), this.placedOrientations[Ue] = ke), { shift: tt, placedGlyphBoxes: gt };
68705
68707
  }
68706
68708
  }
68707
68709
  placeLayerBucketPart(r, u, g, x, I = 1) {
68708
- const { bucket: C, layout: D, paint: k, posMatrix: B, textLabelPlaneMatrix: V, labelToScreenMatrix: q, clippingData: Z, textPixelRatio: te, mercatorCenter: le, invMatrix: oe, holdingForFade: Te, collisionBoxArray: Ie, partiallyEvaluatedTextSize: ke, partiallyEvaluatedIconSize: Re, collisionGroup: Ce, latestFeatureIndex: at } = r.parameters, We = D.get("text-optional"), ot = D.get("icon-optional"), Ue = D.get("text-allow-overlap"), Ye = D.get("icon-allow-overlap"), tt = D.get("text-rotation-alignment") === "map", gt = D.get("icon-rotation-alignment") === "map", ct = D.get("text-pitch-alignment") === "map", zt = k.get("symbol-z-offset"), At = D.get("symbol-elevation-reference") === "sea", qt = D.get("symbol-placement"), [Qt, vt] = D.get("text-size-scale-range"), [dt, Nt] = D.get("icon-size-scale-range"), Rt = o.aC(I, Qt, vt), Ut = o.aC(I, dt, Nt), vn = D.get("text-variable-anchor"), un = tt && qt !== "point", nn = gt && qt !== "point", Jt = vn && C.hasTextData(), Fn = C.hasIconTextFit() && Jt && C.hasIconData();
68710
+ const { bucket: C, layout: D, paint: k, posMatrix: B, textLabelPlaneMatrix: V, labelToScreenMatrix: q, clippingData: Z, textPixelRatio: te, mercatorCenter: le, invMatrix: oe, holdingForFade: Te, collisionBoxArray: Ie, partiallyEvaluatedTextSize: ke, partiallyEvaluatedIconSize: Re, collisionGroup: Ce, latestFeatureIndex: at } = r.parameters, We = D.get("text-optional"), ot = D.get("icon-optional"), Ue = D.get("text-allow-overlap"), Ge = D.get("icon-allow-overlap"), tt = D.get("text-rotation-alignment") === "map", gt = D.get("icon-rotation-alignment") === "map", ct = D.get("text-pitch-alignment") === "map", zt = k.get("symbol-z-offset"), At = D.get("symbol-elevation-reference") === "sea", qt = D.get("symbol-placement"), [Qt, vt] = D.get("text-size-scale-range"), [dt, Nt] = D.get("icon-size-scale-range"), Rt = o.aC(I, Qt, vt), Ut = o.aC(I, dt, Nt), vn = D.get("text-variable-anchor"), un = tt && qt !== "point", nn = gt && qt !== "point", Jt = vn && C.hasTextData(), Fn = C.hasIconTextFit() && Jt && C.hasIconData();
68709
68711
  this.transform.setProjection(C.projection);
68710
68712
  const Gn = Jt || un, En = nn || Fn;
68711
- let zn = Ue && (Ye || !C.hasIconData() || ot), ri = Ye && (Ue || !C.hasTextData() || We);
68713
+ let zn = Ue && (Ge || !C.hasIconData() || ot), ri = Ge && (Ue || !C.hasTextData() || We);
68712
68714
  const _i = !zt.isConstant();
68713
68715
  !C.collisionArrays && Ie && C.deserializeCollisionBoxes(Ie), g && x && C.updateCollisionDebugBuffers(this.transform.zoom, Ie, Rt, Ut);
68714
68716
  const pi = (ti, Ni, gi) => {
@@ -68759,7 +68761,7 @@ Use an identity property function instead: ${le}.`)];
68759
68761
  Dt.indexOf(Ln.anchor) > 0 && (Dt = Dt.filter((Un) => Un !== Ln.anchor), Dt.unshift(Ln.anchor));
68760
68762
  }
68761
68763
  const sn = (Ln, Un, bi) => {
68762
- const Ci = C.getSymbolInstanceTextSize(ke, ti, this.transform.zoom, Ni), Ai = (Ln.x2 - Ln.x1) * Ci + 2 * Ln.padding, wo = (Ln.y2 - Ln.y1) * Ci + 2 * Ln.padding, an = ti.hasIconTextFit && !Ye ? Un : null;
68764
+ const Ci = C.getSymbolInstanceTextSize(ke, ti, this.transform.zoom, Ni), Ai = (Ln.x2 - Ln.x1) * Ci + 2 * Ln.padding, wo = (Ln.y2 - Ln.y1) * Ci + 2 * Ln.padding, an = ti.hasIconTextFit && !Ge ? Un : null;
68763
68765
  an && w(an);
68764
68766
  let Zt = { box: [], offscreen: !1, occluded: !1 };
68765
68767
  const _n = Ue ? 2 * Dt.length : Dt.length;
@@ -68800,7 +68802,7 @@ Use an identity property function instead: ${le}.`)];
68800
68802
  const He = (yt) => {
68801
68803
  w(yt);
68802
68804
  const Dt = ti.hasIconTextFit && rr ? $c(rr.x, rr.y, tt, ct, this.transform.angle) : new o.P(0, 0), sn = C.getSymbolInstanceIconSize(Re, this.transform.zoom, ti.placedIconSymbolIndex);
68803
- return this.collisionIndex.placeCollisionBox(C, sn, yt, le, oe, En, Dt, Ye, te, B, Ce.predicate);
68805
+ return this.collisionIndex.placeCollisionBox(C, sn, yt, le, oe, En, Dt, Ge, te, B, Ce.predicate);
68804
68806
  };
68805
68807
  Br && Br.box && Br.box.length && gi.verticalIconBox ? (Pi = He(gi.verticalIconBox), Ti = Pi.box.length > 0) : (Pi = He(gi.iconBox), Ti = Pi.box.length > 0), wi = wi && Pi.offscreen, Pr = Pi.occluded;
68806
68808
  }
@@ -68875,16 +68877,16 @@ Use an identity property function instead: ${le}.`)];
68875
68877
  r.hasTextData() && r.text.opacityVertexArray.clear(), r.hasIconData() && r.icon.opacityVertexArray.clear(), r.hasIconCollisionBoxData() && r.iconCollisionBox.collisionVertexArray.clear(), r.hasTextCollisionBoxData() && r.textCollisionBox.collisionVertexArray.clear();
68876
68878
  const B = r.layers[0].layout, V = r.layers[0].paint, q = !!r.layers[0].dynamicFilter(), Z = new Du(null, 0, !1, !1, !0), te = B.get("text-allow-overlap"), le = B.get("icon-allow-overlap"), oe = B.get("text-variable-anchor"), Te = B.get("text-rotation-alignment") === "map", Ie = B.get("text-pitch-alignment") === "map", ke = V.get("symbol-z-offset"), Re = B.get("symbol-elevation-reference") === "sea", Ce = !ke.isConstant(), at = new Du(null, 0, te && (le || !r.hasIconData() || B.get("icon-optional")), le && (te || !r.hasTextData() || B.get("text-optional")), !0);
68877
68879
  !r.collisionArrays && x && (r.hasIconCollisionBoxData() || r.hasTextCollisionBoxData()) && r.deserializeCollisionBoxes(x);
68878
- const We = (Ue, Ye, tt) => {
68879
- for (let gt = 0; gt < Ye / 4; gt++) Ue.opacityVertexArray.emplaceBack(tt);
68880
+ const We = (Ue, Ge, tt) => {
68881
+ for (let gt = 0; gt < Ge / 4; gt++) Ue.opacityVertexArray.emplaceBack(tt);
68880
68882
  };
68881
68883
  let ot = 0;
68882
68884
  C && r.updateReplacement(D, C), this.collisionIndex.clearClippedSymbolsForBucket(r.bucketInstanceId);
68883
68885
  for (let Ue = 0; Ue < r.symbolInstances.length; Ue++) {
68884
- const Ye = r.symbolInstances.get(Ue), { numHorizontalGlyphVertices: tt, numVerticalGlyphVertices: gt, crossTileID: ct, numIconVertices: zt, tileAnchorX: At, tileAnchorY: qt } = Ye;
68886
+ const Ge = r.symbolInstances.get(Ue), { numHorizontalGlyphVertices: tt, numVerticalGlyphVertices: gt, crossTileID: ct, numIconVertices: zt, tileAnchorX: At, tileAnchorY: qt } = Ge;
68885
68887
  let Qt = null;
68886
68888
  const vt = this.retainedQueryData[r.bucketInstanceId];
68887
- Ce && Ye && vt && (Qt = g.latestFeatureIndex.loadFeature({ featureIndex: Ye.featureIndex, bucketIndex: vt.bucketIndex, sourceLayerIndex: vt.sourceLayerIndex, layoutVertexArrayOffset: 0 }));
68889
+ Ce && Ge && vt && (Qt = g.latestFeatureIndex.loadFeature({ featureIndex: Ge.featureIndex, bucketIndex: vt.bucketIndex, sourceLayerIndex: vt.sourceLayerIndex, layoutVertexArrayOffset: 0 }));
68888
68890
  const dt = ke.evaluate(Qt, {}), Nt = u.has(ct);
68889
68891
  let Rt = this.opacities[ct];
68890
68892
  Nt ? Rt = Z : Rt || (Rt = at, this.opacities[ct] = Rt), u.add(ct);
@@ -68896,19 +68898,19 @@ Use an identity property function instead: ${le}.`)];
68896
68898
  const En = o.bB(At, qt, D.canonical, Gn.footprintTileId.canonical);
68897
68899
  if (Fn = o.bC(En, Gn.footprint), Fn) break;
68898
68900
  }
68899
- if (Fn && this.collisionIndex.markSymbolAsClipped(r.bucketInstanceId, Ye.featureIndex), Ut) {
68901
+ if (Fn && this.collisionIndex.markSymbolAsClipped(r.bucketInstanceId, Ge.featureIndex), Ut) {
68900
68902
  const Gn = Fn ? mc : Oh(Rt.text);
68901
68903
  We(r.text, tt, nn ? mc : Gn), We(r.text, gt, Jt ? mc : Gn);
68902
- const En = Rt.text.isHidden(), { leftJustifiedTextSymbolIndex: zn, centerJustifiedTextSymbolIndex: ri, rightJustifiedTextSymbolIndex: _i, verticalPlacedTextSymbolIndex: pi } = Ye, Ei = r.text.placedSymbolArray, ti = En || nn ? 1 : 0;
68904
+ const En = Rt.text.isHidden(), { leftJustifiedTextSymbolIndex: zn, centerJustifiedTextSymbolIndex: ri, rightJustifiedTextSymbolIndex: _i, verticalPlacedTextSymbolIndex: pi } = Ge, Ei = r.text.placedSymbolArray, ti = En || nn ? 1 : 0;
68903
68905
  zn >= 0 && (Ei.get(zn).hidden = ti), ri >= 0 && (Ei.get(ri).hidden = ti), _i >= 0 && (Ei.get(_i).hidden = ti), pi >= 0 && (Ei.get(pi).hidden = En || Jt ? 1 : 0);
68904
68906
  const Ni = this.variableOffsets[ct];
68905
- Ni && this.markUsedJustification(r, Ni.anchor, Ye, un);
68907
+ Ni && this.markUsedJustification(r, Ni.anchor, Ge, un);
68906
68908
  const gi = this.placedOrientations[ct];
68907
- gi && (this.markUsedJustification(r, "left", Ye, gi), this.markUsedOrientation(r, gi, Ye));
68909
+ gi && (this.markUsedJustification(r, "left", Ge, gi), this.markUsedOrientation(r, gi, Ge));
68908
68910
  }
68909
68911
  if (vn) {
68910
- const Gn = Fn ? mc : Oh(Rt.icon), { placedIconSymbolIndex: En, verticalPlacedIconSymbolIndex: zn } = Ye, ri = r.icon.placedSymbolArray, _i = Rt.icon.isHidden() ? 1 : 0;
68911
- En >= 0 && (We(r.icon, zt, nn ? mc : Gn), ri.get(En).hidden = _i), zn >= 0 && (We(r.icon, Ye.numVerticalIconVertices, Jt ? mc : Gn), ri.get(zn).hidden = _i);
68912
+ const Gn = Fn ? mc : Oh(Rt.icon), { placedIconSymbolIndex: En, verticalPlacedIconSymbolIndex: zn } = Ge, ri = r.icon.placedSymbolArray, _i = Rt.icon.isHidden() ? 1 : 0;
68913
+ En >= 0 && (We(r.icon, zt, nn ? mc : Gn), ri.get(En).hidden = _i), zn >= 0 && (We(r.icon, Ge.numVerticalIconVertices, Jt ? mc : Gn), ri.get(zn).hidden = _i);
68912
68914
  }
68913
68915
  if (r.hasIconCollisionBoxData() || r.hasTextCollisionBoxData()) {
68914
68916
  const Gn = r.collisionArrays[Ue];
@@ -68922,7 +68924,7 @@ Use an identity property function instead: ${le}.`)];
68922
68924
  q && (zn = !Rt.clipped), Gn.textBox && gc(r.textCollisionBox.collisionVertexArray, Rt.text.placed, !zn || nn, dt, Re, En.x, En.y), Gn.verticalTextBox && gc(r.textCollisionBox.collisionVertexArray, Rt.text.placed, !zn || Jt, dt, Re, En.x, En.y);
68923
68925
  }
68924
68926
  const ri = zn && !!(!Jt && Gn.verticalIconBox);
68925
- Gn.iconBox && gc(r.iconCollisionBox.collisionVertexArray, Rt.icon.placed, ri, dt, Re, Ye.hasIconTextFit ? En.x : 0, Ye.hasIconTextFit ? En.y : 0), Gn.verticalIconBox && gc(r.iconCollisionBox.collisionVertexArray, Rt.icon.placed, !ri, dt, Re, Ye.hasIconTextFit ? En.x : 0, Ye.hasIconTextFit ? En.y : 0);
68927
+ Gn.iconBox && gc(r.iconCollisionBox.collisionVertexArray, Rt.icon.placed, ri, dt, Re, Ge.hasIconTextFit ? En.x : 0, Ge.hasIconTextFit ? En.y : 0), Gn.verticalIconBox && gc(r.iconCollisionBox.collisionVertexArray, Rt.icon.placed, !ri, dt, Re, Ge.hasIconTextFit ? En.x : 0, Ge.hasIconTextFit ? En.y : 0);
68926
68928
  }
68927
68929
  }
68928
68930
  }
@@ -69572,8 +69574,8 @@ Use an identity property function instead: ${le}.`)];
69572
69574
  const te = Z.canonical, le = Z.overscaledZ, oe = Z.wrap, Te = 1 << te.z, Ie = te.x + 1 < Te, ke = te.x > 0, Re = te.y + 1 < Te, Ce = te.y > 0, at = Z.wrap - (ke ? 0 : 1), We = Z.wrap + (Ie ? 0 : 1), ot = ke ? te.x - 1 : Te - 1, Ue = Ie ? te.x + 1 : 0;
69573
69575
  if (C) g[0] < 0 ? (B(le, We, te.z, Ue, te.y), g[1] < 0 && Re && (B(le, oe, te.z, te.x, te.y + 1), B(le, We, te.z, Ue, te.y + 1)), g[1] > 0 && Ce && (B(le, oe, te.z, te.x, te.y - 1), B(le, We, te.z, Ue, te.y - 1))) : g[0] > 0 ? (B(le, at, te.z, ot, te.y), g[1] < 0 && Re && (B(le, oe, te.z, te.x, te.y + 1), B(le, at, te.z, ot, te.y + 1)), g[1] > 0 && Ce && (B(le, oe, te.z, te.x, te.y - 1), B(le, at, te.z, ot, te.y - 1))) : g[1] < 0 && Re ? B(le, oe, te.z, te.x, te.y + 1) : Ce && B(le, oe, te.z, te.x, te.y - 1);
69574
69576
  else {
69575
- const Ye = Z.visibleQuadrants;
69576
- 1 & Ye && (B(le, at, te.z, ot, te.y), Ce && (B(le, oe, te.z, te.x, te.y - 1), B(le, at, te.z, ot, te.y - 1))), 2 & Ye && (B(le, We, te.z, Ue, te.y), Ce && (B(le, oe, te.z, te.x, te.y - 1), B(le, We, te.z, Ue, te.y - 1))), 4 & Ye && (B(le, at, te.z, ot, te.y), Re && (B(le, oe, te.z, te.x, te.y + 1), B(le, at, te.z, ot, te.y + 1))), 8 & Ye && (B(le, We, te.z, Ue, te.y), Re && (B(le, oe, te.z, te.x, te.y + 1), B(le, We, te.z, Ue, te.y + 1)));
69577
+ const Ge = Z.visibleQuadrants;
69578
+ 1 & Ge && (B(le, at, te.z, ot, te.y), Ce && (B(le, oe, te.z, te.x, te.y - 1), B(le, at, te.z, ot, te.y - 1))), 2 & Ge && (B(le, We, te.z, Ue, te.y), Ce && (B(le, oe, te.z, te.x, te.y - 1), B(le, We, te.z, Ue, te.y - 1))), 4 & Ge && (B(le, at, te.z, ot, te.y), Re && (B(le, oe, te.z, te.x, te.y + 1), B(le, at, te.z, ot, te.y + 1))), 8 & Ge && (B(le, We, te.z, Ue, te.y), Re && (B(le, oe, te.z, te.x, te.y + 1), B(le, We, te.z, Ue, te.y + 1)));
69577
69579
  }
69578
69580
  }
69579
69581
  const V = [];
@@ -69594,14 +69596,14 @@ Use an identity property function instead: ${le}.`)];
69594
69596
  const ot = o.ck(Re, ke, Ce, at, We);
69595
69597
  I.has(ot) || (x.push(new o.aR(ke, Re, Ce, at, We)), I.add(ot));
69596
69598
  }, D = r.reduce((ke, Re) => Math.max(ke, Re.overscaledZ), g), k = 1 << g, B = [new o.P(0, 0), new o.P(o.an, 0), new o.P(o.an, o.an), new o.P(0, o.an)], V = new o.P(0, 0), q = new o.P(0, 0), Z = (ke, Re) => {
69597
- const Ce = Math.floor(ke[0]), at = Math.floor(ke[1]), We = (ke[0] - Ce) * o.an, ot = (ke[1] - at) * o.an, Ue = Math.floor(Re[0]), Ye = Math.floor(Re[1]), tt = (Re[0] - Ue) * o.an, gt = (Re[1] - Ye) * o.an;
69599
+ const Ce = Math.floor(ke[0]), at = Math.floor(ke[1]), We = (ke[0] - Ce) * o.an, ot = (ke[1] - at) * o.an, Ue = Math.floor(Re[0]), Ge = Math.floor(Re[1]), tt = (Re[0] - Ue) * o.an, gt = (Re[1] - Ge) * o.an;
69598
69600
  for (let ct = -1; ct <= 1; ct++) {
69599
69601
  const zt = Ce + ct;
69600
69602
  if (!(zt < 0 || zt >= k)) {
69601
69603
  V.x = We - ct * o.an, q.x = tt - (zt - Ue) * o.an;
69602
69604
  for (let At = -1; At <= 1; At++) {
69603
69605
  const qt = at + At;
69604
- V.y = ot - At * o.an, q.y = gt - (qt - Ye) * o.an, o.cI(V, q, B) && C(D, 0, g, zt, qt);
69606
+ V.y = ot - At * o.an, q.y = gt - (qt - Ge) * o.an, o.cI(V, q, B) && C(D, 0, g, zt, qt);
69605
69607
  }
69606
69608
  }
69607
69609
  }
@@ -69625,16 +69627,16 @@ Use an identity property function instead: ${le}.`)];
69625
69627
  _findExtensionTilesInQuad(r, u, g, x) {
69626
69628
  const I = [], C = /* @__PURE__ */ new Set();
69627
69629
  for (const Ue of r) C.add(Ue.key);
69628
- const D = r.reduce((Ue, Ye) => Math.max(Ue, Ye.overscaledZ), u), k = 1 << u, B = [new o.P(g[0][0], g[0][1]), new o.P(g[1][0], g[1][1]), new o.P(g[3][0], g[3][1]), new o.P(g[2][0], g[2][1]), new o.P(g[0][0], g[0][1])], V = g[0][0], q = g[1][0], Z = g[2][0], te = g[3][0], le = g[0][1], oe = g[1][1], Te = g[2][1], Ie = g[3][1], ke = Math.max(0, Math.floor(Math.min(V, q, Z, te))), Re = Math.min(k - 1, Math.ceil(Math.max(V, q, Z, te)) - 1), Ce = Math.max(0, Math.floor(Math.min(le, oe, Te, Ie))), at = Math.min(k - 1, Math.ceil(Math.max(le, oe, Te, Ie)) - 1);
69629
- for (let Ue = Ce; Ue <= at; Ue++) for (let Ye = ke; Ye <= Re; Ye++) {
69630
- if (!o.av(B, Ye, Ue, Ye + 1, Ue + 1)) continue;
69631
- const tt = o.ck(0, D, u, Ye, Ue);
69632
- C.has(tt) || (I.push(new o.aR(D, 0, u, Ye, Ue)), C.add(tt));
69630
+ const D = r.reduce((Ue, Ge) => Math.max(Ue, Ge.overscaledZ), u), k = 1 << u, B = [new o.P(g[0][0], g[0][1]), new o.P(g[1][0], g[1][1]), new o.P(g[3][0], g[3][1]), new o.P(g[2][0], g[2][1]), new o.P(g[0][0], g[0][1])], V = g[0][0], q = g[1][0], Z = g[2][0], te = g[3][0], le = g[0][1], oe = g[1][1], Te = g[2][1], Ie = g[3][1], ke = Math.max(0, Math.floor(Math.min(V, q, Z, te))), Re = Math.min(k - 1, Math.ceil(Math.max(V, q, Z, te)) - 1), Ce = Math.max(0, Math.floor(Math.min(le, oe, Te, Ie))), at = Math.min(k - 1, Math.ceil(Math.max(le, oe, Te, Ie)) - 1);
69631
+ for (let Ue = Ce; Ue <= at; Ue++) for (let Ge = ke; Ge <= Re; Ge++) {
69632
+ if (!o.av(B, Ge, Ue, Ge + 1, Ue + 1)) continue;
69633
+ const tt = o.ck(0, D, u, Ge, Ue);
69634
+ C.has(tt) || (I.push(new o.aR(D, 0, u, Ge, Ue)), C.add(tt));
69633
69635
  }
69634
69636
  const We = x[0], ot = x[1];
69635
- return I.sort((Ue, Ye) => {
69636
- const tt = Ue.canonical.x + 0.5 - We, gt = Ue.canonical.y + 0.5 - ot, ct = Ye.canonical.x + 0.5 - We, zt = Ye.canonical.y + 0.5 - ot;
69637
- return tt * tt + gt * gt - (ct * ct + zt * zt) || Ue.canonical.x - Ye.canonical.x || Ue.canonical.y - Ye.canonical.y;
69637
+ return I.sort((Ue, Ge) => {
69638
+ const tt = Ue.canonical.x + 0.5 - We, gt = Ue.canonical.y + 0.5 - ot, ct = Ge.canonical.x + 0.5 - We, zt = Ge.canonical.y + 0.5 - ot;
69639
+ return tt * tt + gt * gt - (ct * ct + zt * zt) || Ue.canonical.x - Ge.canonical.x || Ue.canonical.y - Ge.canonical.y;
69638
69640
  }), I;
69639
69641
  }
69640
69642
  coveringTiles(r) {
@@ -69652,7 +69654,7 @@ Use an identity property function instead: ${le}.`)];
69652
69654
  const We = r.isTerrainDEM ? -at : this._elevation ? this._elevation.getMinElevationBelowMSL() : 0, ot = this.projection.isReprojectedInTileSpace ? o.cm(this) : 1, Ue = (dt) => {
69653
69655
  const Rt = new o.ag(dt.x + 25e-6, dt.y, dt.z), Ut = new o.ag(dt.x, dt.y + 25e-6, dt.z), vn = dt.toLngLat(), un = Rt.toLngLat(), nn = Ut.toLngLat(), Jt = this.locationCoordinate(vn), Fn = this.locationCoordinate(un), Gn = this.locationCoordinate(nn), En = Math.hypot(Fn.x - Jt.x, Fn.y - Jt.y), zn = Math.hypot(Gn.x - Jt.x, Gn.y - Jt.y);
69654
69656
  return Math.sqrt(En * zn) * ot / 25e-6;
69655
- }, Ye = (dt) => {
69657
+ }, Ge = (dt) => {
69656
69658
  const Nt = at, Rt = We;
69657
69659
  return { aabb: o.cp(this, B, 0, 0, 0, dt, Rt, Nt, this.projection), zoom: 0, x: 0, y: 0, minZ: Rt, maxZ: Nt, wrap: dt, fullyVisible: !1 };
69658
69660
  }, tt = [];
@@ -69696,8 +69698,8 @@ Use an identity property function instead: ${le}.`)];
69696
69698
  const En = dt.aabb.closestPoint(V);
69697
69699
  return En[0] === V[0] && En[1] === V[1];
69698
69700
  };
69699
- if (this.renderWorldCopies) for (let dt = 1; dt <= 3; dt++) tt.push(Ye(-dt)), tt.push(Ye(dt));
69700
- for (tt.push(Ye(0)); tt.length > 0; ) {
69701
+ if (this.renderWorldCopies) for (let dt = 1; dt <= 3; dt++) tt.push(Ge(-dt)), tt.push(Ge(dt));
69702
+ for (tt.push(Ge(0)); tt.length > 0; ) {
69701
69703
  const dt = tt.pop(), Nt = dt.x, Rt = dt.y;
69702
69704
  let Ut = dt.fullyVisible;
69703
69705
  const vn = () => this.projection.name === "globe" && (dt.y === 0 || dt.y === (1 << dt.zoom) - 1);
@@ -69867,8 +69869,8 @@ Use an identity property function instead: ${le}.`)];
69867
69869
  const { top: r, left: u } = this._edgeInsets, g = this.height - this._edgeInsets.bottom, x = this.width - this._edgeInsets.right, I = this.pointLocation3D(new o.P(u, r)), C = this.pointLocation3D(new o.P(x, r)), D = this.pointLocation3D(new o.P(x, g)), k = this.pointLocation3D(new o.P(u, g));
69868
69870
  let B = Math.min(I.lng, C.lng, D.lng, k.lng), V = Math.max(I.lng, C.lng, D.lng, k.lng), q = Math.min(I.lat, C.lat, D.lat, k.lat), Z = Math.max(I.lat, C.lat, D.lat, k.lat);
69869
69871
  const te = Math.pow(2, -this.zoom) / 16 * 270, le = this.projection.name === "globe" ? 1 : 4, oe = (Te, Ie, ke, Re, Ce) => {
69870
- const at = (Te + ke) / 2, We = (Ie + Re) / 2, ot = new o.P(at, We), { lng: Ue, lat: Ye } = this.pointLocation3D(ot), tt = Math.max(0, B - Ue, q - Ye, Ue - V, Ye - Z);
69871
- B = Math.min(B, Ue), V = Math.max(V, Ue), q = Math.min(q, Ye), Z = Math.max(Z, Ye), (Ce < le || tt > te) && (oe(Te, Ie, at, We, Ce + 1), oe(at, We, ke, Re, Ce + 1));
69872
+ const at = (Te + ke) / 2, We = (Ie + Re) / 2, ot = new o.P(at, We), { lng: Ue, lat: Ge } = this.pointLocation3D(ot), tt = Math.max(0, B - Ue, q - Ge, Ue - V, Ge - Z);
69873
+ B = Math.min(B, Ue), V = Math.max(V, Ue), q = Math.min(q, Ge), Z = Math.max(Z, Ge), (Ce < le || tt > te) && (oe(Te, Ie, at, We, Ce + 1), oe(at, We, ke, Re, Ce + 1));
69872
69874
  };
69873
69875
  if (oe(u, r, x, r, 1), oe(x, r, x, g, 1), oe(x, g, u, g, 1), oe(u, g, u, r, 1), this.projection.name === "globe") {
69874
69876
  const [Te, Ie] = o.cw(this);
@@ -70004,20 +70006,20 @@ Use an identity property function instead: ${le}.`)];
70004
70006
  let D;
70005
70007
  const k = this._camera.getCameraToClipPerspective(this._fov, this.width / this.height, this._nearZ, this._farZ);
70006
70008
  if (k[8] = 2 * -r.x / this.width, k[9] = 2 * r.y / this.height, this.isOrthographic) {
70007
- let Ye = 0.5 * this.height / Math.tan(this._fov / 2) * 1 * Math.tan(0.5 * this._fov), tt = Ye * this.aspect, gt = -tt, ct = -Ye;
70008
- tt -= r.x, gt -= r.x, Ye += r.y, ct += r.y, D = this._camera.getCameraToClipOrthographic(gt, tt, ct, Ye, this._nearZ + this._nearClipOffset, this._farZ), ((zt, At, qt, Qt) => {
70009
+ let Ge = 0.5 * this.height / Math.tan(this._fov / 2) * 1 * Math.tan(0.5 * this._fov), tt = Ge * this.aspect, gt = -tt, ct = -Ge;
70010
+ tt -= r.x, gt -= r.x, Ge += r.y, ct += r.y, D = this._camera.getCameraToClipOrthographic(gt, tt, ct, Ge, this._nearZ + this._nearClipOffset, this._farZ), ((zt, At, qt, Qt) => {
70009
70011
  for (let vt = 0; vt < 16; vt++) zt[vt] = o.am(At[vt], qt[vt], Qt);
70010
70012
  })(D, D, k, o.cL(this.pitch >= yc ? 1 : this.pitch / yc));
70011
70013
  } else D = k;
70012
70014
  const B = o.cz([], k, C);
70013
70015
  let V = o.cz([], D, C);
70014
70016
  if (this.projection.isReprojectedInTileSpace) {
70015
- const Ye = this.locationCoordinate(this.center), tt = o.b9([]);
70016
- o.bx(tt, tt, [Ye.x * this.worldSize, Ye.y * this.worldSize, 0]), o.aD(tt, tt, o.cA(this)), o.bx(tt, tt, [-Ye.x * this.worldSize, -Ye.y * this.worldSize, 0]), o.aD(V, V, tt), o.aD(B, B, tt), this.inverseAdjustmentMatrix = o.cB(this);
70017
+ const Ge = this.locationCoordinate(this.center), tt = o.b9([]);
70018
+ o.bx(tt, tt, [Ge.x * this.worldSize, Ge.y * this.worldSize, 0]), o.aD(tt, tt, o.cA(this)), o.bx(tt, tt, [-Ge.x * this.worldSize, -Ge.y * this.worldSize, 0]), o.aD(V, V, tt), o.aD(B, B, tt), this.inverseAdjustmentMatrix = o.cB(this);
70017
70019
  } else this.inverseAdjustmentMatrix = [1, 0, 0, 1];
70018
70020
  if (this.mercatorMatrix = o.cC([], V, [this.worldSize, this.worldSize, this.worldSize / I, 1]), this.projMatrix = V, this.invProjMatrix = o.b7(new Float64Array(16), this.projMatrix), u) {
70019
- const Ye = this._camera.getCameraToClipPerspective(this._fov, this.width / this.height, this._nearZ, 1 / 0);
70020
- Ye[8] = 2 * -r.x / this.width, Ye[9] = 2 * r.y / this.height, this.expandedFarZProjMatrix = o.cz([], Ye, C);
70021
+ const Ge = this._camera.getCameraToClipPerspective(this._fov, this.width / this.height, this._nearZ, 1 / 0);
70022
+ Ge[8] = 2 * -r.x / this.width, Ge[9] = 2 * r.y / this.height, this.expandedFarZProjMatrix = o.cz([], Ge, C);
70021
70023
  } else this.expandedFarZProjMatrix = this.projMatrix;
70022
70024
  const q = o.b7([], D);
70023
70025
  this.frustumCorners = o.cD.fromInvProjectionMatrix(q, this.horizonLineFromTop(), this.height), this.cameraFrustum = o.cl.fromInvProjectionMatrix(this.invProjMatrix, this.worldSize, 0, !u);
@@ -70031,8 +70033,8 @@ Use an identity property function instead: ${le}.`)];
70031
70033
  if (o.bx(Ue, Ue, [We > 0.5 ? We - 1 : We, ot > 0.5 ? ot - 1 : ot, 0]), this.alignedProjMatrix = Ue, V = o.bb(), o.cC(V, V, [this.width / 2, -this.height / 2, 1]), o.bx(V, V, [1, -1, 0]), this.labelPlaneMatrix = V, V = o.bb(), o.cC(V, V, [1, -1, 1]), o.bx(V, V, [-1, -1, 0]), o.cC(V, V, [2 / this.width, 2 / this.height, 1]), this.glCoordMatrix = V, this.pixelMatrix = o.aD(new Float64Array(16), this.labelPlaneMatrix, B), this._calcFogMatrices(), this._distanceTileDataCache = {}, V = o.b7(new Float64Array(16), this.pixelMatrix), !V) throw new Error("failed to invert matrix");
70032
70034
  if (this.pixelMatrixInverse = V, this.projection.name === "globe" || this.mercatorFromTransition) {
70033
70035
  this.globeMatrix = o.cF(this);
70034
- const Ye = [this.globeMatrix[12], this.globeMatrix[13], this.globeMatrix[14]];
70035
- this.globeCenterInViewSpace = o.ah(Ye, Ye, C), this.globeRadius = this.worldSize / 2 / Math.PI - 1;
70036
+ const Ge = [this.globeMatrix[12], this.globeMatrix[13], this.globeMatrix[14]];
70037
+ this.globeCenterInViewSpace = o.ah(Ge, Ge, C), this.globeRadius = this.worldSize / 2 / Math.PI - 1;
70036
70038
  } else this.globeMatrix = V;
70037
70039
  this._projMatrixCache = {}, this._alignedProjMatrixCache = {}, this._pixelsToTileUnitsCache = {}, this._expandedProjMatrixCache = {};
70038
70040
  }
@@ -70368,9 +70370,9 @@ Use an identity property function instead: ${le}.`)];
70368
70370
  }
70369
70371
  }
70370
70372
  Ce *= x / (x - 1);
70371
- const ot = Math.acos(r[2]), Ue = Math.atan2(-r[0], -r[1]), Ye = new Zc();
70372
- Ye.position = Re, Ye.setPitchBearing(ot, Ue);
70373
- const tt = Ye.getWorldToCamera(k, Ie), gt = Ce * k, ct = Math.min(f._mercatorZfromZoom(17) * k * -2, -2 * gt), zt = Ye.getCameraToClipOrthographic(-gt, gt, -gt, gt, ct, (gt + I * Ie) / r[2]), At = new Float64Array(16);
70373
+ const ot = Math.acos(r[2]), Ue = Math.atan2(-r[0], -r[1]), Ge = new Zc();
70374
+ Ge.position = Re, Ge.setPitchBearing(ot, Ue);
70375
+ const tt = Ge.getWorldToCamera(k, Ie), gt = Ce * k, ct = Math.min(f._mercatorZfromZoom(17) * k * -2, -2 * gt), zt = Ge.getCameraToClipOrthographic(-gt, gt, -gt, gt, ct, (gt + I * Ie) / r[2]), At = new Float64Array(16);
70374
70376
  o.aD(At, zt, tt);
70375
70377
  const qt = o.cQ(Math.floor(1e6 * Re[0]) / 1e6 * k, Math.floor(1e6 * Re[1]) / 1e6 * k, 0), Qt = 0.5 * x, vt = [0, 0, 0];
70376
70378
  o.ah(vt, qt, At), o.bJ(vt, vt, Qt);
@@ -71211,9 +71213,9 @@ Use an identity property function instead: ${le}.`)];
71211
71213
  let at, We, ot, Ue;
71212
71214
  for (at = 0, We = 0; at < Te.length; at++) ot = Te[at], Re.hasOwnProperty(ot) ? We++ : (oe.push({ command: Ji.removeImport, args: [ot] }), Ce.splice(Ce.indexOf(ot, We), 1));
71213
71215
  for (at = 0, We = 0; at < Ie.length; at++) ot = Ie[Ie.length - 1 - at], Ce[Ce.length - 1 - at] !== ot && (ke.hasOwnProperty(ot) ? (oe.push({ command: Ji.removeImport, args: [ot] }), Ce.splice(Ce.lastIndexOf(ot, Ce.length - We), 1)) : We++, Ue = Ce[Ce.length - at], oe.push({ command: Ji.addImport, args: [Re[ot], Ue] }), Ce.splice(Ce.length - at, 0, ot));
71214
- for (const Ye of le) {
71215
- const tt = ke[Ye.id];
71216
- tt && (delete tt.data, o.b6(tt, Ye) || oe.push({ command: Ji.updateImport, args: [Ye.id, Ye] }));
71216
+ for (const Ge of le) {
71217
+ const tt = ke[Ge.id];
71218
+ tt && (delete tt.data, o.b6(tt, Ge) || oe.push({ command: Ji.updateImport, args: [Ge.id, Ge] }));
71217
71219
  }
71218
71220
  })(C.imports, D.imports, k), o.b6(C.transition, D.transition) || k.push({ command: Ji.setTransition, args: [D.transition] }), o.b6(C.light, D.light) || k.push({ command: Ji.setLight, args: [D.light] }), o.b6(C.fog, D.fog) || k.push({ command: Ji.setFog, args: [D.fog] }), o.b6(C.snow, D.snow) || k.push({ command: Ji.setSnow, args: [D.snow] }), o.b6(C.rain, D.rain) || k.push({ command: Ji.setRain, args: [D.rain] }), o.b6(C.projection, D.projection) || k.push({ command: Ji.setProjection, args: [D.projection] }), o.b6(C.lights, D.lights) || k.push({ command: Ji.setLights, args: [D.lights] }), o.b6(C.camera, D.camera) || k.push({ command: Ji.setCamera, args: [D.camera] }), o.b6(C.iconsets, D.iconsets) || (function(te, le, oe) {
71219
71221
  let Te;
@@ -71242,12 +71244,12 @@ Use an identity property function instead: ${le}.`)];
71242
71244
  Z && B[Z.source] && (k.push({ command: Ji.setTerrain, args: [void 0] }), Z = void 0), k = k.concat(V), o.b6(Z, D.terrain) || k.push({ command: Ji.setTerrain, args: [D.terrain] }), (function(te, le, oe) {
71243
71245
  le = le || [];
71244
71246
  const Te = (te = te || []).map(uc), Ie = le.map(uc), ke = te.reduce(Cu, {}), Re = le.reduce(Cu, {}), Ce = Te.slice(), at = /* @__PURE__ */ Object.create(null);
71245
- let We, ot, Ue, Ye, tt, gt, ct;
71247
+ let We, ot, Ue, Ge, tt, gt, ct;
71246
71248
  for (We = 0, ot = 0; We < Te.length; We++) Ue = Te[We], Re.hasOwnProperty(Ue) ? ot++ : (oe.push({ command: Ji.removeLayer, args: [Ue] }), Ce.splice(Ce.indexOf(Ue, ot), 1));
71247
71249
  for (We = 0, ot = 0; We < Ie.length; We++) Ue = Ie[Ie.length - 1 - We], Ce[Ce.length - 1 - We] !== Ue && (ke.hasOwnProperty(Ue) ? (oe.push({ command: Ji.removeLayer, args: [Ue] }), Ce.splice(Ce.lastIndexOf(Ue, Ce.length - ot), 1)) : ot++, gt = Ce[Ce.length - We], oe.push({ command: Ji.addLayer, args: [Re[Ue], gt] }), Ce.splice(Ce.length - We, 0, Ue), at[Ue] = !0);
71248
- for (We = 0; We < Ie.length; We++) if (Ue = Ie[We], Ye = ke[Ue], tt = Re[Ue], !at[Ue] && !o.b6(Ye, tt)) if (o.b6(Ye.source, tt.source) && o.b6(Ye["source-layer"], tt["source-layer"]) && o.b6(Ye.type, tt.type)) {
71249
- for (ct in Ul(Ye.layout, tt.layout, oe, Ue, null, Ji.setLayoutProperty), Ul(Ye.paint, tt.paint, oe, Ue, null, Ji.setPaintProperty), o.b6(Ye.slot, tt.slot) || oe.push({ command: Ji.setSlot, args: [Ue, tt.slot] }), o.b6(Ye.filter, tt.filter) || oe.push({ command: Ji.setFilter, args: [Ue, tt.filter] }), o.b6(Ye.minzoom, tt.minzoom) && o.b6(Ye.maxzoom, tt.maxzoom) || oe.push({ command: Ji.setLayerZoomRange, args: [Ue, tt.minzoom, tt.maxzoom] }), Ye) Ye.hasOwnProperty(ct) && ct !== "layout" && ct !== "paint" && ct !== "filter" && ct !== "metadata" && ct !== "minzoom" && ct !== "maxzoom" && ct !== "slot" && (ct.indexOf("paint.") === 0 ? Ul(Ye[ct], tt[ct], oe, Ue, ct.slice(6), Ji.setPaintProperty) : o.b6(Ye[ct], tt[ct]) || oe.push({ command: Ji.setLayerProperty, args: [Ue, ct, tt[ct]] }));
71250
- for (ct in tt) tt.hasOwnProperty(ct) && !Ye.hasOwnProperty(ct) && ct !== "layout" && ct !== "paint" && ct !== "filter" && ct !== "metadata" && ct !== "minzoom" && ct !== "maxzoom" && ct !== "slot" && (ct.indexOf("paint.") === 0 ? Ul(Ye[ct], tt[ct], oe, Ue, ct.slice(6), Ji.setPaintProperty) : o.b6(Ye[ct], tt[ct]) || oe.push({ command: Ji.setLayerProperty, args: [Ue, ct, tt[ct]] }));
71250
+ for (We = 0; We < Ie.length; We++) if (Ue = Ie[We], Ge = ke[Ue], tt = Re[Ue], !at[Ue] && !o.b6(Ge, tt)) if (o.b6(Ge.source, tt.source) && o.b6(Ge["source-layer"], tt["source-layer"]) && o.b6(Ge.type, tt.type)) {
71251
+ for (ct in Ul(Ge.layout, tt.layout, oe, Ue, null, Ji.setLayoutProperty), Ul(Ge.paint, tt.paint, oe, Ue, null, Ji.setPaintProperty), o.b6(Ge.slot, tt.slot) || oe.push({ command: Ji.setSlot, args: [Ue, tt.slot] }), o.b6(Ge.filter, tt.filter) || oe.push({ command: Ji.setFilter, args: [Ue, tt.filter] }), o.b6(Ge.minzoom, tt.minzoom) && o.b6(Ge.maxzoom, tt.maxzoom) || oe.push({ command: Ji.setLayerZoomRange, args: [Ue, tt.minzoom, tt.maxzoom] }), Ge) Ge.hasOwnProperty(ct) && ct !== "layout" && ct !== "paint" && ct !== "filter" && ct !== "metadata" && ct !== "minzoom" && ct !== "maxzoom" && ct !== "slot" && (ct.indexOf("paint.") === 0 ? Ul(Ge[ct], tt[ct], oe, Ue, ct.slice(6), Ji.setPaintProperty) : o.b6(Ge[ct], tt[ct]) || oe.push({ command: Ji.setLayerProperty, args: [Ue, ct, tt[ct]] }));
71252
+ for (ct in tt) tt.hasOwnProperty(ct) && !Ge.hasOwnProperty(ct) && ct !== "layout" && ct !== "paint" && ct !== "filter" && ct !== "metadata" && ct !== "minzoom" && ct !== "maxzoom" && ct !== "slot" && (ct.indexOf("paint.") === 0 ? Ul(Ge[ct], tt[ct], oe, Ue, ct.slice(6), Ji.setPaintProperty) : o.b6(Ge[ct], tt[ct]) || oe.push({ command: Ji.setLayerProperty, args: [Ue, ct, tt[ct]] }));
71251
71253
  } else oe.push({ command: Ji.removeLayer, args: [Ue] }), gt = Ce[Ce.lastIndexOf(Ue) + 1], oe.push({ command: Ji.addLayer, args: [tt, gt] });
71252
71254
  })(q, D.layers, k);
71253
71255
  } catch (B) {
@@ -75648,7 +75650,7 @@ uniform ${k} ${B} u_${V};
75648
75650
  const Z = f.getOrCreateProgram("hillshade", { overrideFog: V, defines: q });
75649
75651
  D.activeTexture.set(k.TEXTURE0), k.bindTexture(k.TEXTURE_2D, B.colorAttachment0.get());
75650
75652
  const te = ((Ie, ke, Re, Ce) => {
75651
- const at = Re.paint.get("hillshade-shadow-color"), We = Re.paint.get("hillshade-shadow-color-use-theme").constantOr("default") === "none", ot = Re.paint.get("hillshade-highlight-color"), Ue = Re.paint.get("hillshade-highlight-color-use-theme").constantOr("default") === "none", Ye = Re.paint.get("hillshade-accent-color"), tt = Re.paint.get("hillshade-accent-color-use-theme").constantOr("default") === "none", gt = Re.paint.get("hillshade-emissive-strength");
75653
+ const at = Re.paint.get("hillshade-shadow-color"), We = Re.paint.get("hillshade-shadow-color-use-theme").constantOr("default") === "none", ot = Re.paint.get("hillshade-highlight-color"), Ue = Re.paint.get("hillshade-highlight-color-use-theme").constantOr("default") === "none", Ge = Re.paint.get("hillshade-accent-color"), tt = Re.paint.get("hillshade-accent-color-use-theme").constantOr("default") === "none", gt = Re.paint.get("hillshade-emissive-strength");
75652
75654
  let ct = o.ap(Re.paint.get("hillshade-illumination-direction"));
75653
75655
  if (Re.paint.get("hillshade-illumination-anchor") === "viewport") ct -= Ie.transform.angle;
75654
75656
  else if (Ie.style && Ie.style.enable3dLights() && Ie.style.directionalLight) {
@@ -75656,7 +75658,7 @@ uniform ${k} ${B} u_${V};
75656
75658
  ct = o.ap(qt[1]);
75657
75659
  }
75658
75660
  const zt = !Ie.options.moving;
75659
- return { u_matrix: Ce || Ie.transform.calculateProjMatrix(ke.tileID.toUnwrapped(), zt), u_image: 0, u_latrange: up(0, ke.tileID), u_light: [Re.paint.get("hillshade-exaggeration"), ct], u_shadow: at.toPremultipliedRenderColor(We ? null : Re.lut), u_highlight: ot.toPremultipliedRenderColor(Ue ? null : Re.lut), u_emissive_strength: gt, u_accent: Ye.toPremultipliedRenderColor(tt ? null : Re.lut) };
75661
+ return { u_matrix: Ce || Ie.transform.calculateProjMatrix(ke.tileID.toUnwrapped(), zt), u_image: 0, u_latrange: up(0, ke.tileID), u_light: [Re.paint.get("hillshade-exaggeration"), ct], u_shadow: at.toPremultipliedRenderColor(We ? null : Re.lut), u_highlight: ot.toPremultipliedRenderColor(Ue ? null : Re.lut), u_emissive_strength: gt, u_accent: Ge.toPremultipliedRenderColor(tt ? null : Re.lut) };
75660
75662
  })(f, u, g, f.terrain ? r.projMatrix : null);
75661
75663
  f.uploadCommonUniforms(D, Z, r.toUnwrapped());
75662
75664
  const { tileBoundsBuffer: le, tileBoundsIndexBuffer: oe, tileBoundsSegments: Te } = f.getTileBoundsBuffers(u);
@@ -76355,7 +76357,7 @@ This leads to lower resolution of hillshade. For full hillshade resolution but h
76355
76357
  Te = B.getOrCreateProgram("globeRaster", { defines: qt, overrideFog: Qt }), Ie = At;
76356
76358
  }, at = B.colorModeForRenderPass(), We = new Hn(oe.LEQUAL, Hn.ReadWrite, B.depthRangeFor3D);
76357
76359
  bo.update(te);
76358
- const ot = o.dq(ke), Ue = [o.aH(ke.center.lng), o.aL(ke.center.lat)], Ye = B.globeSharedBuffers, tt = [ke.width * o.o.devicePixelRatio, ke.height * o.o.devicePixelRatio], gt = Float32Array.from(ke.globeMatrix), ct = { useDenormalizedUpVectorScale: !0 };
76360
+ const ot = o.dq(ke), Ue = [o.aH(ke.center.lng), o.aL(ke.center.lat)], Ge = B.globeSharedBuffers, tt = [ke.width * o.o.devicePixelRatio, ke.height * o.o.devicePixelRatio], gt = Float32Array.from(ke.globeMatrix), ct = { useDenormalizedUpVectorScale: !0 };
76359
76361
  {
76360
76362
  const zt = B.transform, At = Qu(zt.zoom, V.exaggeration(), V.sourceCache._source.tileSize);
76361
76363
  Ie = -1;
@@ -76366,17 +76368,17 @@ This leads to lower resolution of hillshade. For full hillshade resolution but h
76366
76368
  const Ut = bo.getMorphValuesForProxy(Qt.key), vn = Ut ? 1 : 0;
76367
76369
  Ut && Object.assign(ct, { morphing: { srcDemTile: Ut.from, dstDemTile: Ut.to, phase: o.dn(Ut.phase) } });
76368
76370
  const un = o.dr(Qt.canonical), nn = o.ds(un.getCenter().lat), Jt = o.dt(Qt.canonical, un, nn, zt.worldSize / zt._pixelsPerMercatorPixel), Fn = o.du(o.dv(Qt.canonical)), Gn = B.emissiveMode === "mrt-fallback" ? 1 : 0, En = Mc(zt.expandedFarZProjMatrix, gt, ot, Fn, o.al(zt.zoom), Ue, zt.frustumCorners.TL, zt.frustumCorners.TR, zt.frustumCorners.BR, zt.frustumCorners.BL, zt.globeCenterInViewSpace, zt.globeRadius, tt, At, zt._farZ, Gn, Jt);
76369
- if (Ce(Qt, vn), Te && (V.setupElevationDraw(vt, Te, ct), B.uploadCommonUniforms(le, Te, Qt.toUnwrapped()), Ye)) {
76370
- const [zn, ri, _i] = Ye.getGridBuffers(nn, At !== 0);
76371
+ if (Ce(Qt, vn), Te && (V.setupElevationDraw(vt, Te, ct), B.uploadCommonUniforms(le, Te, Qt.toUnwrapped()), Ge)) {
76372
+ const [zn, ri, _i] = Ge.getGridBuffers(nn, At !== 0);
76371
76373
  Te.draw(B, qt, We, dt, at, ai.backCCW, En, "globe_raster", zn, ri, _i);
76372
76374
  }
76373
76375
  }
76374
76376
  }
76375
- if (Ye && (B.renderDefaultNorthPole || B.renderDefaultSouthPole)) {
76377
+ if (Ge && (B.renderDefaultNorthPole || B.renderDefaultSouthPole)) {
76376
76378
  const zt = ["GLOBE_POLES", "PROJECTION_GLOBE_VIEW"];
76377
76379
  Re && zt.push("CUSTOM_ANTIALIASING"), Te = B.getOrCreateProgram("globeRaster", { defines: zt });
76378
76380
  for (const At of Z) {
76379
- const { x: qt, y: Qt, z: vt } = At.canonical, dt = Qt === 0, Nt = Qt === (1 << vt) - 1, [Rt, Ut, vn, un] = Ye.getPoleBuffers(vt, !1);
76381
+ const { x: qt, y: Qt, z: vt } = At.canonical, dt = Qt === 0, Nt = Qt === (1 << vt) - 1, [Rt, Ut, vn, un] = Ge.getPoleBuffers(vt, !1);
76380
76382
  if (un && (dt || Nt)) {
76381
76383
  const nn = q.getTile(At);
76382
76384
  ef(B, nn.emissiveTexture), le.activeTexture.set(oe.TEXTURE0), nn.texture && nn.texture.bind(oe.LINEAR, oe.CLAMP_TO_EDGE);
@@ -76406,14 +76408,14 @@ This leads to lower resolution of hillshade. For full hillshade resolution but h
76406
76408
  Z = -1;
76407
76409
  const at = V.TRIANGLES, [We, ot] = [I.gridIndexBuffer, I.gridSegments];
76408
76410
  for (const Ue of D) {
76409
- const Ye = C.getTile(Ue), tt = fi.disabled, gt = I.prevTerrainTileForTile[Ue.key], ct = I.terrainTileForTile[Ue.key];
76410
- pp(gt, ct) && bo.newMorphing(Ue.key, gt, ct, k, 250), ef(x, Ye.emissiveTexture), B.activeTexture.set(V.TEXTURE0), Ye.texture && Ye.texture.bind(V.LINEAR, V.CLAMP_TO_EDGE);
76411
+ const Ge = C.getTile(Ue), tt = fi.disabled, gt = I.prevTerrainTileForTile[Ue.key], ct = I.terrainTileForTile[Ue.key];
76412
+ pp(gt, ct) && bo.newMorphing(Ue.key, gt, ct, k, 250), ef(x, Ge.emissiveTexture), B.activeTexture.set(V.TEXTURE0), Ge.texture && Ge.texture.bind(V.LINEAR, V.CLAMP_TO_EDGE);
76411
76413
  const zt = bo.getMorphValuesForProxy(Ue.key), At = zt ? 1 : 0;
76412
76414
  let qt;
76413
76415
  zt && (qt = { morphing: { srcDemTile: zt.from, dstDemTile: zt.to, phase: o.dn(zt.phase) } });
76414
76416
  const Qt = x.emissiveMode === "mrt-fallback" ? 1 : 0, vt = Yh(Ue.projMatrix, Jd(Ue.canonical, ke.renderWorldCopies) ? Re / 10 : Re, Ce, Qt);
76415
76417
  if (oe(At), !q) continue;
76416
- I.setupElevationDraw(Ye, q, qt);
76418
+ I.setupElevationDraw(Ge, q, qt);
76417
76419
  const dt = Ue.toUnwrapped();
76418
76420
  te && te.setupShadows(dt, q), x.uploadCommonUniforms(B, q, dt, null, le), q.draw(x, at, Ie, tt, Te, ai.backCCW, vt, "terrain_raster", I.gridBuffer, We, ot);
76419
76421
  }
@@ -76876,14 +76878,14 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
76876
76878
  const Ie = r.context, ke = Ie.gl;
76877
76879
  if (this.failedToCreate) return;
76878
76880
  Ie.program.set(this.program), Ie.setDepthMode(g), Ie.setStencilMode(x), Ie.setColorMode(I), Ie.setCullFace(C);
76879
- for (const [Ue, Ye] of this.fixedUniformsEntries) Ye.set(this.program, Ue, D[Ue]);
76881
+ for (const [Ue, Ge] of this.fixedUniformsEntries) Ge.set(this.program, Ue, D[Ue]);
76880
76882
  le && le.setUniforms(this.program, Ie, this.binderUniforms, Z, { zoom: te });
76881
76883
  const Re = { [ke.POINTS]: 1, [ke.LINES]: 2, [ke.TRIANGLES]: 3, [ke.LINE_STRIP]: 1 }[u];
76882
76884
  this.checkUniforms(k, "RENDER_SHADOWS", this.shadowUniforms);
76883
76885
  const Ce = oe || [], at = le ? le.getPaintVertexBuffers() : [], We = u === ke.TRIANGLES && V, ot = Te && Te > 0 ? 1 : void 0;
76884
76886
  for (const Ue of q.get()) {
76885
- const Ye = Ue.vaos || (Ue.vaos = {});
76886
- if ((Ye[k] || (Ye[k] = new Bu())).bind(Ie, this, B, at, V, Ue.vertexOffset, Ce, ot), this.forceManualRenderingForInstanceIDShaders) {
76887
+ const Ge = Ue.vaos || (Ue.vaos = {});
76888
+ if ((Ge[k] || (Ge[k] = new Bu())).bind(Ie, this, B, at, V, Ue.vertexOffset, Ce, ot), this.forceManualRenderingForInstanceIDShaders) {
76887
76889
  const tt = Te || 1;
76888
76890
  for (let gt = 0; gt < tt; ++gt) this.instancingUniforms.u_instanceID.set(this.program, "u_instanceID", gt), V ? ke.drawElements(u, Ue.primitiveLength * Re, ke.UNSIGNED_SHORT, Ue.primitiveOffset * Re * 2) : ke.drawArrays(u, Ue.vertexOffset, Ue.vertexLength);
76889
76891
  } else Te && Te > 1 ? ke.drawElementsInstanced(u, Ue.primitiveLength * Re, ke.UNSIGNED_SHORT, Ue.primitiveOffset * Re * 2, Te) : V ? ke.drawElements(u, Ue.primitiveLength * Re, ke.UNSIGNED_SHORT, Ue.primitiveOffset * Re * 2) : ke.drawArrays(u, Ue.vertexOffset, Ue.vertexLength);
@@ -76898,8 +76900,8 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
76898
76900
  const tf = { terrain: 0, flat: 1 }, yg = o.bb(), gp = (f, r, u, g, x, I, C, D, k, B, V, q, Z, te, le, oe, Te, Ie, ke = [0, 0, 1]) => {
76899
76901
  const Re = r.style.light, Ce = Re.properties.get("position"), at = [Ce.x, Ce.y, Ce.z], We = o.dE();
76900
76902
  Re.properties.get("anchor") === "viewport" && (o.dF(We, -r.transform.angle), o.dG(at, at, We));
76901
- const ot = Re.properties.get("color").toPremultipliedRenderColor(null), Ue = r.transform, Ye = { u_matrix: f, u_lightpos: at, u_lightintensity: Re.properties.get("intensity"), u_lightcolor: [ot.r, ot.g, ot.b], u_vertical_gradient: +u, u_opacity: g, u_tile_id: [0, 0, 0], u_zoom_transition: 0, u_inv_rot_matrix: yg, u_merc_center: [0, 0], u_up_dir: [0, 0, 0], u_height_lift: 0, u_height_type: tf[B], u_base_type: tf[V], u_ao: x, u_edge_radius: I, u_width_scale: C, u_flood_light_color: le, u_vertical_scale: oe, u_flood_light_intensity: Te, u_ground_shadow_factor: Ie, u_front_cutoff_params: ke };
76902
- return Ue.projection.name === "globe" && (Ye.u_tile_id = [D.canonical.x, D.canonical.y, 1 << D.canonical.z], Ye.u_zoom_transition = q, Ye.u_inv_rot_matrix = te, Ye.u_merc_center = Z, Ye.u_up_dir = Ue.projection.upVector(new o.cn(0, 0, 0), Z[0] * o.an, Z[1] * o.an), Ye.u_height_lift = k), Ye;
76903
+ const ot = Re.properties.get("color").toPremultipliedRenderColor(null), Ue = r.transform, Ge = { u_matrix: f, u_lightpos: at, u_lightintensity: Re.properties.get("intensity"), u_lightcolor: [ot.r, ot.g, ot.b], u_vertical_gradient: +u, u_opacity: g, u_tile_id: [0, 0, 0], u_zoom_transition: 0, u_inv_rot_matrix: yg, u_merc_center: [0, 0], u_up_dir: [0, 0, 0], u_height_lift: 0, u_height_type: tf[B], u_base_type: tf[V], u_ao: x, u_edge_radius: I, u_width_scale: C, u_flood_light_color: le, u_vertical_scale: oe, u_flood_light_intensity: Te, u_ground_shadow_factor: Ie, u_front_cutoff_params: ke };
76904
+ return Ue.projection.name === "globe" && (Ge.u_tile_id = [D.canonical.x, D.canonical.y, 1 << D.canonical.z], Ge.u_zoom_transition = q, Ge.u_inv_rot_matrix = te, Ge.u_merc_center = Z, Ge.u_up_dir = Ue.projection.upVector(new o.cn(0, 0, 0), Z[0] * o.an, Z[1] * o.an), Ge.u_height_lift = k), Ge;
76903
76905
  }, Ba = (f, r, u, g, x, I) => ({ u_matrix: f, u_edge_radius: r, u_width_scale: u, u_vertical_scale: g, u_height_type: tf[x], u_base_type: tf[I] }), Fa = (f, r, u, g, x, I, C, D, k, B, V, q, Z, te, le, oe, Te, Ie) => {
76904
76906
  const ke = gp(f, r, u, g, x, I, C, D, B, V, q, Z, te, le, oe, Te, 1, [0, 0, 0]), Re = { u_height_factor: -Math.pow(2, D.overscaledZ) / k.tileSize / 8 };
76905
76907
  return Object.assign(ke, Xc(r, k, Ie), Re);
@@ -76935,8 +76937,8 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
76935
76937
  return [(2 * u + 1) / 3, (-Math.sqrt(3) * r - u + 1) / 3, (Math.sqrt(3) * r - u + 1) / 3];
76936
76938
  }
76937
76939
  const Zo = 0.05, Ku = (f, r, u, g, x, I, C, D, k, B, V, q) => ({ u_matrix: f, u_normalize_matrix: r, u_globe_matrix: u, u_merc_matrix: g, u_grid_matrix: x, u_tl_parent: I, u_scale_parent: B, u_fade_t: V.mix, u_opacity: V.opacity, u_image0: 0, u_image1: 1, u_raster_elevation: q, u_zoom_transition: C, u_merc_center: D, u_cutoff_params: k }), vg = (f, r, u, g, x, I, C, D, k, B) => ({ u_particle_texture: f, u_particle_texture_side_len: r, u_tile_offset: u, u_velocity: g, u_color_ramp: I, u_velocity_res: x, u_max_speed: C, u_uv_offset: D, u_data_scale: [255 * k[0], 255 * k[1]], u_data_offset: B, u_particle_pos_scale: 1.1, u_particle_pos_offset: [Zo, Zo] }), xg = (f, r, u, g, x, I, C, D, k, B) => ({ u_particle_texture: f, u_particle_texture_side_len: r, u_velocity: u, u_velocity_res: g, u_max_speed: x, u_speed_factor: I, u_reset_rate: C, u_rand_seed: Math.random(), u_uv_offset: D, u_data_scale: [255 * k[0], 255 * k[1]], u_data_offset: B, u_particle_pos_scale: 1.1, u_particle_pos_offset: [Zo, Zo] }), $l = o.bb(), xl = (f, r, u, g, x, I, C, D, k, B, V, q, Z, te, le, oe, Te, Ie, ke, Re, Ce, at, We, ot) => {
76938
- const Ue = x.transform, Ye = { u_is_size_zoom_constant: +(f === "constant" || f === "source"), u_is_size_feature_constant: +(f === "constant" || f === "camera"), u_size_t: r ? r.uSizeT : 0, u_size: r ? r.uSize : 0, u_camera_to_center_distance: Ue.getCameraToCenterDistance(ke), u_rotate_symbol: +u, u_aspect_ratio: Ue.width / Ue.height, u_fade_change: x.options.fadeDuration ? x.symbolFadeChange : 1, u_matrix: I, u_label_plane_matrix: C, u_coord_matrix: D, u_is_text: +B, u_elevation_from_sea: k ? 1 : 0, u_pitch_with_map: +g, u_texsize: V, u_texsize_icon: q, u_texture: 0, u_texture_icon: 1, u_tile_id: [0, 0, 0], u_zoom_transition: 0, u_inv_rot_matrix: $l, u_merc_center: [0, 0], u_camera_forward: [0, 0, 0], u_ecef_origin: [0, 0, 0], u_tile_matrix: $l, u_up_vector: [0, -1, 0], u_color_adj_mat: at, u_icon_transition: We || 0, u_gamma_scale: g ? x.transform.getCameraToCenterDistance(ke) * Math.cos(x.terrain ? 0 : x.transform._pitch) : 1, u_device_pixel_ratio: o.o.devicePixelRatio, u_is_halo: 1, u_scale_factor: ot || 1, u_ground_shadow_factor: Re, u_inv_matrix: o.b7(o.bb(), C), u_normal_scale: Ce, u_lutTexture: 10, u_zoom: Ue.zoom - Math.floor(Ue.zoom), u_spp_fill_np_color: [0, 0, 0, 1], u_spp_halo_np_color: [0, 0, 0, 0], u_spp_opacity: 1, u_spp_halo_width: 0, u_spp_halo_blur: 0, u_spp_emissive_strength: 0, u_spp_occlusion_opacity: 1, u_spp_z_offset: 0, u_spp_translate_rotation: [1, 0] };
76939
- return ke.name === "globe" && (Ye.u_tile_id = [te.canonical.x, te.canonical.y, 1 << te.canonical.z], Ye.u_zoom_transition = le, Ye.u_inv_rot_matrix = Te, Ye.u_merc_center = oe, Ye.u_camera_forward = Ue._camera.forward(), Ye.u_ecef_origin = o.dL(Ue.globeMatrix, te.toUnwrapped()), Ye.u_tile_matrix = Float32Array.from(Ue.globeMatrix), Ye.u_up_vector = Ie), Ye;
76940
+ const Ue = x.transform, Ge = { u_is_size_zoom_constant: +(f === "constant" || f === "source"), u_is_size_feature_constant: +(f === "constant" || f === "camera"), u_size_t: r ? r.uSizeT : 0, u_size: r ? r.uSize : 0, u_camera_to_center_distance: Ue.getCameraToCenterDistance(ke), u_rotate_symbol: +u, u_aspect_ratio: Ue.width / Ue.height, u_fade_change: x.options.fadeDuration ? x.symbolFadeChange : 1, u_matrix: I, u_label_plane_matrix: C, u_coord_matrix: D, u_is_text: +B, u_elevation_from_sea: k ? 1 : 0, u_pitch_with_map: +g, u_texsize: V, u_texsize_icon: q, u_texture: 0, u_texture_icon: 1, u_tile_id: [0, 0, 0], u_zoom_transition: 0, u_inv_rot_matrix: $l, u_merc_center: [0, 0], u_camera_forward: [0, 0, 0], u_ecef_origin: [0, 0, 0], u_tile_matrix: $l, u_up_vector: [0, -1, 0], u_color_adj_mat: at, u_icon_transition: We || 0, u_gamma_scale: g ? x.transform.getCameraToCenterDistance(ke) * Math.cos(x.terrain ? 0 : x.transform._pitch) : 1, u_device_pixel_ratio: o.o.devicePixelRatio, u_is_halo: 1, u_scale_factor: ot || 1, u_ground_shadow_factor: Re, u_inv_matrix: o.b7(o.bb(), C), u_normal_scale: Ce, u_lutTexture: 10, u_zoom: Ue.zoom - Math.floor(Ue.zoom), u_spp_fill_np_color: [0, 0, 0, 1], u_spp_halo_np_color: [0, 0, 0, 0], u_spp_opacity: 1, u_spp_halo_width: 0, u_spp_halo_blur: 0, u_spp_emissive_strength: 0, u_spp_occlusion_opacity: 1, u_spp_z_offset: 0, u_spp_translate_rotation: [1, 0] };
76941
+ return ke.name === "globe" && (Ge.u_tile_id = [te.canonical.x, te.canonical.y, 1 << te.canonical.z], Ge.u_zoom_transition = le, Ge.u_inv_rot_matrix = Te, Ge.u_merc_center = oe, Ge.u_camera_forward = Ue._camera.forward(), Ge.u_ecef_origin = o.dL(Ue.globeMatrix, te.toUnwrapped()), Ge.u_tile_matrix = Float32Array.from(Ue.globeMatrix), Ge.u_up_vector = Ie), Ge;
76940
76942
  }, Xu = (f, r, u, g) => ({ u_matrix: f, u_emissive_strength: r, u_opacity: u, u_color: g }), Sc = (f, r, u, g, x, I, C, D, k) => Object.assign((function(B, V, q, Z, te, le) {
76941
76943
  const { width: oe, height: Te } = Z.imageManager.getPixelSize(V), Ie = Math.pow(2, le.tileID.overscaledZ), ke = le.tileSize * Math.pow(2, Z.transform.tileZoom) / Ie, Re = ke * (le.tileID.canonical.x + le.tileID.wrap * Ie), Ce = ke * le.tileID.canonical.y;
76942
76944
  return { u_image: 0, u_pattern_tl: q.tl, u_pattern_br: q.br, u_texsize: [oe, Te], u_pattern_size: q.displaySize, u_pattern_units_to_pixels: te ? [Z.transform.width, -1 * Z.transform.height] : [1 / o.aA(le, 1, Z.transform.tileZoom), 1 / o.aA(le, 1, Z.transform.tileZoom)], u_pixel_coord_upper: [Re >> 16, Ce >> 16], u_pixel_coord_lower: [65535 & Re, 65535 & Ce] };
@@ -77100,9 +77102,9 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
77100
77102
  const D = f.context, k = D.gl, B = f.transform, V = [o.aH(B.center.lng), o.aL(B.center.lat)], q = u.layout.get("symbol-placement"), Z = u.layout.get("text-variable-anchor"), te = u.layout.get("icon-rotation-alignment") === "map", le = u.layout.get("text-rotation-alignment") === "map", oe = q !== "point", Te = [];
77101
77103
  let Ie = 0, ke = 0;
77102
77104
  for (let Ue = 0; Ue < g.length; Ue++) {
77103
- const Ye = g[Ue], tt = r.getTile(Ye), gt = tt.getBucket(u);
77105
+ const Ge = g[Ue], tt = r.getTile(Ge), gt = tt.getBucket(u);
77104
77106
  if (!gt) continue;
77105
- const ct = gt.getProjection().createInversionMatrix(B, Ye.canonical), zt = [], At = hc(Ye, gt, B), qt = !C && te && oe, Qt = C && le && oe, vt = Z && gt.hasTextData(), dt = gt.hasIconTextFit() && vt && gt.hasIconData(), Nt = qt || Qt || C && vt || dt, Rt = gt.projection.name === "globe", Ut = Rt ? o.al(B.zoom) : 0;
77107
+ const ct = gt.getProjection().createInversionMatrix(B, Ge.canonical), zt = [], At = hc(Ge, gt, B), qt = !C && te && oe, Qt = C && le && oe, vt = Z && gt.hasTextData(), dt = gt.hasIconTextFit() && vt && gt.hasIconData(), Nt = qt || Qt || C && vt || dt, Rt = gt.projection.name === "globe", Ut = Rt ? o.al(B.zoom) : 0;
77106
77108
  Rt && (zt.push("PROJECTION_GLOBE_VIEW"), Nt && zt.push("PROJECTED_POS_ON_VIEWPORT"));
77107
77109
  const vn = f.getOrCreateProgram("collisionBox", { defines: zt });
77108
77110
  let un = At;
@@ -77114,21 +77116,21 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
77114
77116
  }
77115
77117
  if (!nn) continue;
77116
77118
  f.terrain && f.terrain.setupElevationDraw(tt, vn);
77117
- const Fn = Rt ? [Ye.canonical.x, Ye.canonical.y, 1 << Ye.canonical.z] : [0, 0, 0];
77119
+ const Fn = Rt ? [Ge.canonical.x, Ge.canonical.y, 1 << Ge.canonical.z] : [0, 0, 0];
77118
77120
  vn.draw(f, k.LINES, Hn.disabled, fi.disabled, f.colorModeForRenderPass(), ai.disabled, Rm(un, ct, B, Ut, V, tt, Fn, gt.getProjection()), u.id, nn.layoutVertexBuffer, nn.indexBuffer, nn.segments, null, B.zoom, null, [nn.collisionVertexBuffer, nn.collisionVertexBufferExt]);
77119
77121
  }
77120
77122
  if (!C || !Te.length) return;
77121
77123
  const Re = f.getOrCreateProgram("collisionCircle"), Ce = new o.dP();
77122
77124
  Ce.resize(4 * Ie), Ce._trim();
77123
77125
  let at = 0;
77124
- for (const Ue of Te) for (let Ye = 0; Ye < Ue.circleArray.length / 4; Ye++) {
77125
- const tt = 4 * Ye, gt = Ue.circleArray[tt + 0], ct = Ue.circleArray[tt + 1], zt = Ue.circleArray[tt + 2], At = Ue.circleArray[tt + 3];
77126
+ for (const Ue of Te) for (let Ge = 0; Ge < Ue.circleArray.length / 4; Ge++) {
77127
+ const tt = 4 * Ge, gt = Ue.circleArray[tt + 0], ct = Ue.circleArray[tt + 1], zt = Ue.circleArray[tt + 2], At = Ue.circleArray[tt + 3];
77126
77128
  Ce.emplace(at++, gt, ct, zt, At, 0), Ce.emplace(at++, gt, ct, zt, At, 1), Ce.emplace(at++, gt, ct, zt, At, 2), Ce.emplace(at++, gt, ct, zt, At, 3);
77127
77129
  }
77128
77130
  (!eu || eu.length < 2 * Ie) && (eu = (function(Ue) {
77129
- const Ye = 2 * Ue, tt = new o.dC();
77130
- tt.resize(Ye), tt._trim();
77131
- for (let gt = 0; gt < Ye; gt++) {
77131
+ const Ge = 2 * Ue, tt = new o.dC();
77132
+ tt.resize(Ge), tt._trim();
77133
+ for (let gt = 0; gt < Ge; gt++) {
77132
77134
  const ct = 6 * gt;
77133
77135
  tt.uint16[ct + 0] = 4 * gt + 0, tt.uint16[ct + 1] = 4 * gt + 1, tt.uint16[ct + 2] = 4 * gt + 2, tt.uint16[ct + 3] = 4 * gt + 2, tt.uint16[ct + 4] = 4 * gt + 3, tt.uint16[ct + 5] = 4 * gt + 0;
77134
77136
  }
@@ -77136,8 +77138,8 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
77136
77138
  })(Ie));
77137
77139
  const We = D.createIndexBuffer(eu, !0), ot = D.createVertexBuffer(Ce, o.dQ.members, !0);
77138
77140
  for (const Ue of Te) {
77139
- const Ye = Is(Ue.transform, Ue.invTransform, B, Ue.projection);
77140
- Re.draw(f, k.TRIANGLES, Hn.disabled, fi.disabled, f.colorModeForRenderPass(), ai.disabled, Ye, u.id, ot, We, o.dy.simpleSegment(0, 2 * Ue.circleOffset, Ue.circleArray.length, Ue.circleArray.length / 2), null, B.zoom);
77141
+ const Ge = Is(Ue.transform, Ue.invTransform, B, Ue.projection);
77142
+ Re.draw(f, k.TRIANGLES, Hn.disabled, fi.disabled, f.colorModeForRenderPass(), ai.disabled, Ge, u.id, ot, We, o.dy.simpleSegment(0, 2 * Ue.circleOffset, Ue.circleArray.length, Ue.circleArray.length / 2), null, B.zoom);
77141
77143
  }
77142
77144
  ot.destroy(), We.destroy();
77143
77145
  }
@@ -77158,18 +77160,18 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
77158
77160
  for (let ke = 0; ke < V.length; ke++) {
77159
77161
  const Re = V.get(ke), { tileAnchorX: Ce, tileAnchorY: at, numGlyphs: We } = Re, ot = Re.hidden || !Re.crossTileID || f.allowVerticalPlacement && !Re.placedOrientation ? null : g[Re.crossTileID];
77160
77162
  if (ot) {
77161
- let Ue = 0, Ye = 0, tt = 0;
77163
+ let Ue = 0, Ge = 0, tt = 0;
77162
77164
  const gt = f.elevationType === "road";
77163
77165
  if (Te || gt) {
77164
77166
  const Rt = gt ? f.getElevationFeatureForText(ke) : null, Ut = o.bu.getAtTileOffset(C, new o.P(Ce, at), Te, Rt), [vn, un, nn] = le.upVector(C.canonical, Ce, at);
77165
- Ue = Ut * vn * Ie, Ye = Ut * un * Ie, tt = Ut * nn * Ie;
77167
+ Ue = Ut * vn * Ie, Ge = Ut * un * Ie, tt = Ut * nn * Ie;
77166
77168
  }
77167
- let [ct, zt, At, qt] = zs(Re.projectedAnchorX + Ue, Re.projectedAnchorY + Ye, Re.projectedAnchorZ + tt, u ? oe : I);
77169
+ let [ct, zt, At, qt] = zs(Re.projectedAnchorX + Ue, Re.projectedAnchorY + Ge, Re.projectedAnchorZ + tt, u ? oe : I);
77168
77170
  const Qt = Lh(x.getCameraToCenterDistance(le), qt);
77169
77171
  let vt = o.bl(f.textSizeData, k, Re) * Qt / o.by;
77170
77172
  u && (vt *= f.tilePixelRatio / D);
77171
77173
  const dt = nl(ot, vt);
77172
- u ? ({ x: ct, y: zt, z: At } = le.projectTilePoint(Ce + dt.x, at + dt.y, C.canonical), [ct, zt, At] = zs(ct + Ue, zt + Ye, At + tt, I)) : (r && dt._rotate(-x.angle), ct += dt.x, zt += dt.y, At = 0);
77174
+ u ? ({ x: ct, y: zt, z: At } = le.projectTilePoint(Ce + dt.x, at + dt.y, C.canonical), [ct, zt, At] = zs(ct + Ue, zt + Ge, At + tt, I)) : (r && dt._rotate(-x.angle), ct += dt.x, zt += dt.y, At = 0);
77173
77175
  const Nt = f.allowVerticalPlacement && Re.placedOrientation === o.bk.vertical ? Math.PI / 2 : 0;
77174
77176
  for (let Rt = 0; Rt < We; Rt++) o.bn(q, ct, zt, At, Nt);
77175
77177
  B && Re.associatedIconIndex >= 0 && (te[Re.associatedIconIndex] = { x: ct, y: zt, z: At, angle: Nt });
@@ -77182,8 +77184,8 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
77182
77184
  const Ce = ke.get(Re), { numGlyphs: at } = Ce, We = te[Re];
77183
77185
  if (Ce.hidden || !We) zh(at, Z);
77184
77186
  else {
77185
- const { x: ot, y: Ue, z: Ye, angle: tt } = We;
77186
- for (let gt = 0; gt < at; gt++) o.bn(Z, ot, Ue, Ye, tt);
77187
+ const { x: ot, y: Ue, z: Ge, angle: tt } = We;
77188
+ for (let gt = 0; gt < at; gt++) o.bn(Z, ot, Ue, Ge, tt);
77187
77189
  }
77188
77190
  }
77189
77191
  f.icon.dynamicLayoutVertexBuffer.updateData(Z);
@@ -77191,13 +77193,13 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
77191
77193
  f.text.dynamicLayoutVertexBuffer.updateData(q);
77192
77194
  }
77193
77195
  function af(f, r, u, g, x, I, C = {}) {
77194
- const D = u.paint.get("icon-translate"), k = u.paint.get("text-translate"), B = u.paint.get("icon-translate-anchor"), V = u.paint.get("text-translate-anchor"), q = u.layout.get("icon-rotation-alignment"), Z = u.layout.get("text-rotation-alignment"), te = u.layout.get("icon-pitch-alignment"), le = u.layout.get("text-pitch-alignment"), oe = u.layout.get("icon-keep-upright"), Te = u.layout.get("text-keep-upright"), Ie = u.paint.get("icon-color-saturation"), ke = u.paint.get("icon-color-contrast"), Re = u.paint.get("icon-color-brightness-min"), Ce = u.paint.get("icon-color-brightness-max"), at = u.layout.get("symbol-elevation-reference") === "sea", We = u.layout.get("icon-image-use-theme") === "none", ot = f.context, Ue = ot.gl, Ye = f.transform, tt = q === "map", gt = Z === "map", ct = te === "map", zt = le === "map", At = u.layout.get("symbol-sort-key").constantOr(1) !== void 0;
77196
+ const D = u.paint.get("icon-translate"), k = u.paint.get("text-translate"), B = u.paint.get("icon-translate-anchor"), V = u.paint.get("text-translate-anchor"), q = u.layout.get("icon-rotation-alignment"), Z = u.layout.get("text-rotation-alignment"), te = u.layout.get("icon-pitch-alignment"), le = u.layout.get("text-pitch-alignment"), oe = u.layout.get("icon-keep-upright"), Te = u.layout.get("text-keep-upright"), Ie = u.paint.get("icon-color-saturation"), ke = u.paint.get("icon-color-contrast"), Re = u.paint.get("icon-color-brightness-min"), Ce = u.paint.get("icon-color-brightness-max"), at = u.layout.get("symbol-elevation-reference") === "sea", We = u.layout.get("icon-image-use-theme") === "none", ot = f.context, Ue = ot.gl, Ge = f.transform, tt = q === "map", gt = Z === "map", ct = te === "map", zt = le === "map", At = u.layout.get("symbol-sort-key").constantOr(1) !== void 0;
77195
77197
  let qt = !1;
77196
- const Qt = f.depthModeForSublayer(0, Hn.ReadOnly), vt = new Hn(f.context.gl.LEQUAL, Hn.ReadOnly, f.depthRangeFor3D), dt = [o.aH(Ye.center.lng), o.aL(Ye.center.lat)], Nt = u.layout.get("text-variable-anchor"), Rt = Ye.projection.name === "globe", Ut = [], vn = [0, -1, 0];
77198
+ const Qt = f.depthModeForSublayer(0, Hn.ReadOnly), vt = new Hn(f.context.gl.LEQUAL, Hn.ReadOnly, f.depthRangeFor3D), dt = [o.aH(Ge.center.lng), o.aL(Ge.center.lat)], Nt = u.layout.get("text-variable-anchor"), Rt = Ge.projection.name === "globe", Ut = [], vn = [0, -1, 0];
77197
77199
  for (const un of g) {
77198
77200
  const nn = r.getTile(un), Jt = nn.getBucket(u);
77199
77201
  if (!Jt || Jt.projection.name === "mercator" && Rt || Jt.fullyClipped) continue;
77200
- const Fn = Jt.projection.name === "globe", Gn = Fn ? o.al(Ye.zoom) : 0, En = dc(un, Jt.getProjection(), Ye), zn = Ye.calculatePixelsToTileUnitsMatrix(nn), ri = Nt && Jt.hasTextData(), _i = Jt.hasIconTextFit() && ri && Jt.hasIconData(), pi = Jt.getProjection().createInversionMatrix(Ye, un.canonical), Ei = (1 << nn.tileID.canonical.z) * o.an / f.transform.worldSize, ti = (rr) => {
77202
+ const Fn = Jt.projection.name === "globe", Gn = Fn ? o.al(Ge.zoom) : 0, En = dc(un, Jt.getProjection(), Ge), zn = Ge.calculatePixelsToTileUnitsMatrix(nn), ri = Nt && Jt.hasTextData(), _i = Jt.hasIconTextFit() && ri && Jt.hasIconData(), pi = Jt.getProjection().createInversionMatrix(Ge, un.canonical), Ei = (1 << nn.tileID.canonical.z) * o.an / f.transform.worldSize, ti = (rr) => {
77201
77203
  let xi = [0, 0, 0];
77202
77204
  if (rr) {
77203
77205
  const Br = f.style.directionalLight, wr = f.style.ambientLight;
@@ -77210,7 +77212,7 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
77210
77212
  const xi = Math.floor(f.context.maxUniformBlockSize / 4), Br = Math.floor(xi / 4);
77211
77213
  rr.push(`MAX_UBO_SIZE_VEC4 ${Br}u`);
77212
77214
  }, gi = (rr) => {
77213
- Ye.depthOcclusionForSymbolsAndCircles && (u.hasOcclusionOpacityProperties || f.terrain) && (rr.push("DEPTH_D24"), rr.push("DEPTH_OCCLUSION"));
77215
+ Ge.depthOcclusionForSymbolsAndCircles && (u.hasOcclusionOpacityProperties || f.terrain) && (rr.push("DEPTH_D24"), rr.push("DEPTH_OCCLUSION"));
77214
77216
  }, tr = (rr) => {
77215
77217
  u.lut && !We && (u.lut.texture || (u.lut.texture = new o.dR(f.context, u.lut.image, [u.lut.image.height, u.lut.image.height, u.lut.image.height], ot.gl.RGBA8)), ot.activeTexture.set(ot.gl.TEXTURE0 + 10), u.lut.texture && u.lut.texture.bind(ot.gl.LINEAR, ot.gl.CLAMP_TO_EDGE), rr.push("APPLY_LUT_ON_GPU"));
77216
77218
  }, gr = () => {
@@ -77218,12 +77220,12 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
77218
77220
  gi(xi), tr(xi);
77219
77221
  const Br = rr || _i, wr = Jt.elevationType === "road", no = f.shadowRenderer, Pi = wr && ct && !!no && no.enabled, vr = ti(Pi), Eo = wr && ct && !f.terrain ? vt : Qt, Ho = u.paint.get("icon-image-cross-fade");
77220
77222
  f.terrainRenderModeElevated() && ct && xi.push("PITCH_WITH_MAP_TERRAIN"), Fn && (xi.push("PROJECTION_GLOBE_VIEW"), Br && xi.push("PROJECTED_POS_ON_VIEWPORT")), Ho > 0 && Jt.hasAnySecondaryIcon && xi.push("ICON_TRANSITION"), !Jt.icon.zOffsetVertexBuffer || wr && f.terrain || xi.push("Z_OFFSET"), Ie === 0 && ke === 0 && Re === 0 && Ce === 1 || xi.push("COLOR_ADJUSTMENT"), Jt.sdfIcons && xi.push("RENDER_SDF"), Pi && xi.push("RENDER_SHADOWS", "NORMAL_OFFSET"), wr && ct && !f.terrain && Jt.icon.orientationVertexBuffer && xi.push("ELEVATED_ROADS"), Ni(xi);
77221
- const v = ot.disableSymbolUBO ? Jt.icon.programConfigurations.get(u.id) : null, w = f.getOrCreateProgram("symbol", { config: v, defines: xi }), L = nn.imageAtlasTexture ? nn.imageAtlasTexture.size : [0, 0], H = Jt.iconSizeData, re = o.bj(H, Ye.zoom), ge = ct || !Ye.isOrthographic, He = hl(En, nn.tileID.canonical, ct, tt, Ye, Jt.getProjection(), zn), yt = ws(En, nn.tileID.canonical, ct, tt, Ye, Jt.getProjection(), zn), Dt = Jt.icon.uboBinder && Jt.icon.uboBinder.cachedHeader && 256 & Jt.icon.uboBinder.cachedHeader.dataDrivenMask ? [0, 0] : D, sn = f.translatePosMatrix(yt, nn, Dt, B, !0), Bn = f.translatePosMatrix(En, nn, Dt, B), Ln = Br ? Xh : He, Un = tt && !ct && !rr;
77223
+ const v = ot.disableSymbolUBO ? Jt.icon.programConfigurations.get(u.id) : null, w = f.getOrCreateProgram("symbol", { config: v, defines: xi }), L = nn.imageAtlasTexture ? nn.imageAtlasTexture.size : [0, 0], H = Jt.iconSizeData, re = o.bj(H, Ge.zoom), ge = ct || !Ge.isOrthographic, He = hl(En, nn.tileID.canonical, ct, tt, Ge, Jt.getProjection(), zn), yt = ws(En, nn.tileID.canonical, ct, tt, Ge, Jt.getProjection(), zn), Dt = Jt.icon.uboBinder && Jt.icon.uboBinder.cachedHeader && 256 & Jt.icon.uboBinder.cachedHeader.dataDrivenMask ? [0, 0] : D, sn = f.translatePosMatrix(yt, nn, Dt, B, !0), Bn = f.translatePosMatrix(En, nn, Dt, B), Ln = Br ? Xh : He, Un = tt && !ct && !rr;
77222
77224
  let bi = vn;
77223
- !Rt && !Ye.mercatorFromTransition || tt || (bi = bl(Ye));
77225
+ !Rt && !Ge.mercatorFromTransition || tt || (bi = bl(Ge));
77224
77226
  const Ci = Fn ? bi : vn, Ai = u.getColorAdjustmentMatrix(Ie, ke, Re, Ce), wo = xl(H.kind, re, Un, ct, f, Bn, Ln, sn, at, !1, L, [0, 0], 0, un, Gn, dt, pi, Ci, Jt.getProjection(), vr, Ei, Ai, Ho, null), an = nn.imageAtlasTexture ? nn.imageAtlasTexture : null, Zt = u.layout.get("icon-size").constantOr(0) !== 1 || Jt.iconsNeedLinear, _n = Jt.sdfIcons || f.options.rotating || f.options.zooming || Zt || ge ? Ue.LINEAR : Ue.NEAREST, qn = Jt.sdfIcons && u.paint.get("icon-halo-width").constantOr(1) !== 0, Li = f.terrain && ct && rr ? o.b7(o.bb(), He) : Xh;
77225
77227
  if (rr && Jt.icon) {
77226
- const $i = o.bu.getAtTileOffsetFunc(un, Ye.center.lat, Ye.worldSize, Jt.getProjection()), Yi = Wa(En, nn.tileID.canonical, ct, tt, Ye, Jt.getProjection(), zn), ar = u.layout.get("icon-size-scale-range"), Bo = o.aC(f.scaleFactor, ar[0], ar[1]);
77228
+ const $i = o.bu.getAtTileOffsetFunc(un, Ge.center.lat, Ge.worldSize, Jt.getProjection()), Yi = Wa(En, nn.tileID.canonical, ct, tt, Ge, Jt.getProjection(), zn), ar = u.layout.get("icon-size-scale-range"), Bo = o.aC(f.scaleFactor, ar[0], ar[1]);
77227
77229
  _a(Jt, En, f, !1, Yi, yt, ct, oe, $i, un, Bo);
77228
77230
  }
77229
77231
  return { program: w, buffers: Jt.icon, uniformValues: wo, atlasTexture: an, atlasTextureIcon: null, atlasInterpolation: _n, atlasInterpolationIcon: null, isSDF: Jt.sdfIcons, hasHalo: qn, depthMode: Eo, tile: nn, renderWithShadows: Pi, labelPlaneMatrixInv: Li };
@@ -77233,13 +77235,13 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
77233
77235
  const Ho = ot.disableSymbolUBO ? Jt.text.programConfigurations.get(u.id) : null, v = f.getOrCreateProgram("symbol", { config: Ho, defines: xi });
77234
77236
  let w, L = [0, 0], H = null;
77235
77237
  const re = Jt.textSizeData;
77236
- Jt.iconsInText && (L = nn.imageAtlasTexture ? nn.imageAtlasTexture.size : [0, 0], H = nn.imageAtlasTexture ? nn.imageAtlasTexture : null, w = zt || !Ye.isOrthographic || f.options.rotating || f.options.zooming || re.kind === "composite" || re.kind === "camera" ? Ue.LINEAR : Ue.NEAREST);
77237
- const ge = nn.glyphAtlasTexture ? nn.glyphAtlasTexture.size : [0, 0], He = u.layout.get("text-size-scale-range"), yt = o.aC(f.scaleFactor, He[0], He[1]), Dt = o.bj(re, Ye.zoom, yt), sn = hl(En, nn.tileID.canonical, zt, gt, Ye, Jt.getProjection(), zn), Bn = ws(En, nn.tileID.canonical, zt, gt, Ye, Jt.getProjection(), zn), Ln = Jt.text.uboBinder && Jt.text.uboBinder.cachedHeader && 256 & Jt.text.uboBinder.cachedHeader.dataDrivenMask ? [0, 0] : k, Un = f.translatePosMatrix(Bn, nn, Ln, V, !0), bi = f.translatePosMatrix(En, nn, Ln, V), Ci = Br ? Xh : sn, Ai = gt && !zt && !rr;
77238
+ Jt.iconsInText && (L = nn.imageAtlasTexture ? nn.imageAtlasTexture.size : [0, 0], H = nn.imageAtlasTexture ? nn.imageAtlasTexture : null, w = zt || !Ge.isOrthographic || f.options.rotating || f.options.zooming || re.kind === "composite" || re.kind === "camera" ? Ue.LINEAR : Ue.NEAREST);
77239
+ const ge = nn.glyphAtlasTexture ? nn.glyphAtlasTexture.size : [0, 0], He = u.layout.get("text-size-scale-range"), yt = o.aC(f.scaleFactor, He[0], He[1]), Dt = o.bj(re, Ge.zoom, yt), sn = hl(En, nn.tileID.canonical, zt, gt, Ge, Jt.getProjection(), zn), Bn = ws(En, nn.tileID.canonical, zt, gt, Ge, Jt.getProjection(), zn), Ln = Jt.text.uboBinder && Jt.text.uboBinder.cachedHeader && 256 & Jt.text.uboBinder.cachedHeader.dataDrivenMask ? [0, 0] : k, Un = f.translatePosMatrix(Bn, nn, Ln, V, !0), bi = f.translatePosMatrix(En, nn, Ln, V), Ci = Br ? Xh : sn, Ai = gt && !zt && !rr;
77238
77240
  let wo = vn;
77239
- !Rt && !Ye.mercatorFromTransition || gt || (wo = bl(Ye));
77241
+ !Rt && !Ge.mercatorFromTransition || gt || (wo = bl(Ge));
77240
77242
  const an = xl(re.kind, Dt, Ai, zt, f, bi, Ci, Un, at, !0, ge, L, 0, un, Gn, dt, pi, Fn ? wo : vn, Jt.getProjection(), vr, Ei, null, null, yt), Zt = nn.glyphAtlasTexture ? nn.glyphAtlasTexture : null, _n = Ue.LINEAR, qn = u.paint.get("text-halo-width").constantOr(1) !== 0, Li = f.terrain && zt && rr ? o.b7(o.bb(), sn) : Xh;
77241
77243
  if (rr && Jt.text) {
77242
- const $i = o.bu.getAtTileOffsetFunc(un, Ye.center.lat, Ye.worldSize, Jt.getProjection()), Yi = Wa(En, nn.tileID.canonical, zt, gt, Ye, Jt.getProjection(), zn);
77244
+ const $i = o.bu.getAtTileOffsetFunc(un, Ge.center.lat, Ge.worldSize, Jt.getProjection()), Yi = Wa(En, nn.tileID.canonical, zt, gt, Ge, Jt.getProjection(), zn);
77243
77245
  _a(Jt, En, f, !0, Yi, Bn, zt, Te, $i, un, yt);
77244
77246
  }
77245
77247
  return { program: v, buffers: Jt.text, uniformValues: an, atlasTexture: Zt, atlasTextureIcon: H, atlasInterpolation: _n, atlasInterpolationIcon: w, isSDF: !0, hasHalo: qn, depthMode: Eo, tile: nn, renderWithShadows: Pi, labelPlaneMatrixInv: Li };
@@ -77254,7 +77256,7 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
77254
77256
  qt && Ut.sort((un, nn) => un.sortKey - nn.sortKey);
77255
77257
  for (const un of Ut) {
77256
77258
  const nn = un.state;
77257
- if (nn) if (f.terrain ? f.terrain.setupElevationDraw(nn.tile, nn.program, { useDepthForOcclusion: Ye.depthOcclusionForSymbolsAndCircles, labelPlaneMatrixInv: nn.labelPlaneMatrixInv }) : f.setupDepthForOcclusion(Ye.depthOcclusionForSymbolsAndCircles, nn.program), ot.activeTexture.set(Ue.TEXTURE0), nn.atlasTexture && nn.atlasTexture.bind(nn.atlasInterpolation, Ue.CLAMP_TO_EDGE, !0), nn.atlasTextureIcon && (ot.activeTexture.set(Ue.TEXTURE1), nn.atlasTextureIcon && nn.atlasTextureIcon.bind(nn.atlasInterpolationIcon, Ue.CLAMP_TO_EDGE, !0)), nn.renderWithShadows && f.shadowRenderer.setupShadows(nn.tile.tileID.toUnwrapped(), nn.program, "vector-tile"), f.uploadCommonLightUniforms(f.context, nn.program), nn.hasHalo) {
77259
+ if (nn) if (f.terrain ? f.terrain.setupElevationDraw(nn.tile, nn.program, { useDepthForOcclusion: Ge.depthOcclusionForSymbolsAndCircles, labelPlaneMatrixInv: nn.labelPlaneMatrixInv }) : f.setupDepthForOcclusion(Ge.depthOcclusionForSymbolsAndCircles, nn.program), ot.activeTexture.set(Ue.TEXTURE0), nn.atlasTexture && nn.atlasTexture.bind(nn.atlasInterpolation, Ue.CLAMP_TO_EDGE, !0), nn.atlasTextureIcon && (ot.activeTexture.set(Ue.TEXTURE1), nn.atlasTextureIcon && nn.atlasTextureIcon.bind(nn.atlasInterpolationIcon, Ue.CLAMP_TO_EDGE, !0)), nn.renderWithShadows && f.shadowRenderer.setupShadows(nn.tile.tileID.toUnwrapped(), nn.program, "vector-tile"), f.uploadCommonLightUniforms(f.context, nn.program), nn.hasHalo) {
77258
77260
  const Jt = nn.uniformValues;
77259
77261
  Jt.u_is_halo = 1, lf(nn.buffers, un.segments, u, f, nn.program, nn.depthMode, x, I, Jt, 2), Jt.u_is_halo = 0;
77260
77262
  } else {
@@ -77286,7 +77288,7 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
77286
77288
  function Ac(f, r, u, g, x, I) {
77287
77289
  const C = u.paint.get("line-width"), D = u.paint.get("line-emissive-strength").isConstant(), k = u.paint.get("line-emissive-strength").constantOr(0), B = u.paint.get("line-occlusion-opacity"), V = u.layout.get("line-elevation-reference"), q = u.layout.get("line-width-unit") === "meters", Z = V === "sea", te = !(!f.terrain || !f.terrain.enabled), le = f.context, oe = le.gl;
77288
77290
  if (u.hasElevatedBuckets && f.transform.projection.name === "globe") return;
77289
- const Te = u.layout.get("line-cross-slope"), Ie = Te !== void 0, ke = Te < 1, Re = x || f.colorModeForDrapableLayerRenderPass(D ? k : null), Ce = f.terrain && f.terrain.renderingToTexture || I, at = Ce ? 1 : o.o.devicePixelRatio, We = u.paint.get("line-dasharray"), ot = We.constantOr(1), Ue = u.layout.get("line-cap"), Ye = We.constantOr(null), tt = Ue.constantOr(null), gt = u.paint.get("line-pattern"), ct = gt.constantOr(1), zt = u.paint.get("line-pattern-cross-fade"), At = gt.constantOr(null), qt = u.paint.get("line-opacity").constantOr(1);
77291
+ const Te = u.layout.get("line-cross-slope"), Ie = Te !== void 0, ke = Te < 1, Re = x || f.colorModeForDrapableLayerRenderPass(D ? k : null), Ce = f.terrain && f.terrain.renderingToTexture || I, at = Ce ? 1 : o.o.devicePixelRatio, We = u.paint.get("line-dasharray"), ot = We.constantOr(1), Ue = u.layout.get("line-cap"), Ge = We.constantOr(null), tt = Ue.constantOr(null), gt = u.paint.get("line-pattern"), ct = gt.constantOr(1), zt = u.paint.get("line-pattern-cross-fade"), At = gt.constantOr(null), qt = u.paint.get("line-opacity").constantOr(1);
77290
77292
  let Qt = !ct && qt !== 1 || f.depthOcclusion && B > 0 && B < 1;
77291
77293
  const vt = u.paint.get("line-gradient"), dt = ct ? "linePattern" : "line", Nt = o.dU(u);
77292
77294
  let Rt;
@@ -77316,8 +77318,8 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
77316
77318
  }
77317
77319
  zt > 0 && (Or || gr.getPatternTransitionVertexBuffer("line-pattern")) && ti.push("LINE_PATTERN_TRANSITION"), Ei.elevationGroundScaleVertexBuffer && ti.push("ELEVATION_GROUND_SCALE");
77318
77320
  const Sr = f.isTileAffectedByFog(_i), ir = f.getOrCreateProgram(dt, { config: gr, defines: ti, overrideFog: Sr });
77319
- if (!ct && Ye && tt && pi.lineAtlas) {
77320
- const Pi = pi.lineAtlas.getDash(Ye, tt);
77321
+ if (!ct && Ge && tt && pi.lineAtlas) {
77322
+ const Pi = pi.lineAtlas.getDash(Ge, tt);
77321
77323
  Pi && gr.setConstantPatternPositions(Pi);
77322
77324
  }
77323
77325
  gi && Ni.setupShadows(pi.tileID.toUnwrapped(), ir, "vector-tile");
@@ -77409,10 +77411,10 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
77409
77411
  const Ie = Te === "road", ke = f.painter.shadowRenderer, Re = Ie && !!ke && ke.enabled, Ce = new Hn(x.context.gl.LEQUAL, Hn.ReadOnly, x.depthRangeFor3D);
77410
77412
  let at = [0, 0, 0];
77411
77413
  if (Re) {
77412
- const Ye = x.style.directionalLight, tt = x.style.ambientLight;
77413
- Ye && tt && (at = dl(x.style, Ye, tt));
77414
+ const Ge = x.style.directionalLight, tt = x.style.ambientLight;
77415
+ Ge && tt && (at = dl(x.style, Ge, tt));
77414
77416
  }
77415
- const We = te && te.constantOr(1), ot = x.terrain && x.terrain.renderingToTexture, Ue = (Ye, tt) => {
77417
+ const We = te && te.constantOr(1), ot = x.terrain && x.terrain.renderingToTexture, Ue = (Ge, tt) => {
77416
77418
  let gt, ct, zt, At, qt;
77417
77419
  tt ? (gt = We && !C.getPaintProperty("fill-outline-color") ? "fillOutlinePattern" : "fillOutline", zt = Z.LINES) : (gt = We ? "fillPattern" : "fill", zt = Z.TRIANGLES);
77418
77420
  for (const Qt of D) {
@@ -77440,7 +77442,7 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
77440
77442
  ct = gt === "fillOutlinePattern" && We ? Yu(Fn, Gn, x, vt, zn, at, le) : _g(Fn, Gn, zn, at);
77441
77443
  } else At = Nt.indexBuffer, qt = Nt.triangleSegments, ct = We ? ba(Fn, Gn, x, vt, at, le) : po(Fn, Gn, at);
77442
77444
  x.uploadCommonUniforms(x.context, Jt, Qt.toUnwrapped());
77443
- let En = Ye;
77445
+ let En = Ge;
77444
77446
  (B === "road" && !V || B === "offset") && (En = Ce), Jt.draw(x, zt, En, g || x.stencilModeForClipping(Qt), k, ai.disabled, ct, C.id, Nt.layoutVertexBuffer, At, qt, C.paint, x.transform.zoom, Rt, un);
77445
77447
  }
77446
77448
  };
@@ -77448,7 +77450,7 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
77448
77450
  }
77449
77451
  function wl(f, r, u, g, x, I, C, D) {
77450
77452
  u.resetLayerRenderingStats(f);
77451
- const k = f.context, B = k.gl, V = f.transform, q = u.paint.get("fill-extrusion-pattern"), Z = u.paint.get("fill-extrusion-pattern-cross-fade"), te = q.constantOr(null), le = q.constantOr(1), oe = u.paint.get("fill-extrusion-opacity"), Te = f.style.enable3dLights(), Ie = u.paint.get(Te && !le ? "fill-extrusion-ambient-occlusion-wall-radius" : "fill-extrusion-ambient-occlusion-radius"), ke = [u.paint.get("fill-extrusion-ambient-occlusion-intensity"), Ie], Re = u.layout.get("fill-extrusion-edge-radius"), Ce = Re > 0 && !u.paint.get("fill-extrusion-rounded-roof"), at = Ce ? 0 : Re, We = V.projection.name === "globe" ? o.e1() : 0, ot = V.projection.name === "globe", Ue = ot ? o.al(V.zoom) : 0, Ye = [o.aH(V.center.lng), o.aL(V.center.lat)], tt = u.paint.get("fill-extrusion-flood-light-color-use-theme").constantOr("default") === "none", gt = u.paint.get("fill-extrusion-flood-light-color").toNonPremultipliedRenderColor(tt ? null : u.lut).toArray01().slice(0, 3), ct = u.paint.get("fill-extrusion-flood-light-intensity"), zt = u.paint.get("fill-extrusion-vertical-scale"), At = u.paint.get("fill-extrusion-line-width").constantOr(1) !== 0, qt = u.paint.get("fill-extrusion-height-alignment"), Qt = u.paint.get("fill-extrusion-base-alignment"), vt = Po(f, u.paint.get("fill-extrusion-cutoff-fade-range")), dt = u.paint.get("fill-extrusion-front-cutoff"), Nt = Jh(V.pitch, dt, !!f.terrain), Rt = Nt[2] < 1;
77453
+ const k = f.context, B = k.gl, V = f.transform, q = u.paint.get("fill-extrusion-pattern"), Z = u.paint.get("fill-extrusion-pattern-cross-fade"), te = q.constantOr(null), le = q.constantOr(1), oe = u.paint.get("fill-extrusion-opacity"), Te = f.style.enable3dLights(), Ie = u.paint.get(Te && !le ? "fill-extrusion-ambient-occlusion-wall-radius" : "fill-extrusion-ambient-occlusion-radius"), ke = [u.paint.get("fill-extrusion-ambient-occlusion-intensity"), Ie], Re = u.layout.get("fill-extrusion-edge-radius"), Ce = Re > 0 && !u.paint.get("fill-extrusion-rounded-roof"), at = Ce ? 0 : Re, We = V.projection.name === "globe" ? o.e1() : 0, ot = V.projection.name === "globe", Ue = ot ? o.al(V.zoom) : 0, Ge = [o.aH(V.center.lng), o.aL(V.center.lat)], tt = u.paint.get("fill-extrusion-flood-light-color-use-theme").constantOr("default") === "none", gt = u.paint.get("fill-extrusion-flood-light-color").toNonPremultipliedRenderColor(tt ? null : u.lut).toArray01().slice(0, 3), ct = u.paint.get("fill-extrusion-flood-light-intensity"), zt = u.paint.get("fill-extrusion-vertical-scale"), At = u.paint.get("fill-extrusion-line-width").constantOr(1) !== 0, qt = u.paint.get("fill-extrusion-height-alignment"), Qt = u.paint.get("fill-extrusion-base-alignment"), vt = Po(f, u.paint.get("fill-extrusion-cutoff-fade-range")), dt = u.paint.get("fill-extrusion-front-cutoff"), Nt = Jh(V.pitch, dt, !!f.terrain), Rt = Nt[2] < 1;
77452
77454
  Rt && (f.maxFrontCutoffRawStart = Math.max(f.maxFrontCutoffRawStart, dt[0]));
77453
77455
  const Ut = [];
77454
77456
  let vn;
@@ -77487,7 +77489,7 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
77487
77489
  Sr = Ba(wi, at, Or, zt, qt, Qt);
77488
77490
  } else {
77489
77491
  const wi = f.translatePosMatrix(ri.expandedProjMatrix, _i, u.paint.get("fill-extrusion-translate"), u.paint.get("fill-extrusion-translate-anchor")), Tr = V.projection.createInversionMatrix(V, ri.canonical);
77490
- Sr = le ? Fa(wi, f, gr, oe, ke, at, Or, ri, _i, We, qt, Qt, Ue, Ye, Tr, gt, zt, Z) : gp(wi, f, gr, oe, ke, at, Or, ri, We, qt, Qt, Ue, Ye, Tr, gt, zt, ct, Gn, Nt);
77492
+ Sr = le ? Fa(wi, f, gr, oe, ke, at, Or, ri, _i, We, qt, Qt, Ue, Ge, Tr, gt, zt, Z) : gp(wi, f, gr, oe, ke, at, Or, ri, We, qt, Qt, Ue, Ge, Tr, gt, zt, ct, Gn, Nt);
77491
77493
  }
77492
77494
  f.uploadCommonUniforms(k, tr, ri.toUnwrapped(), null, vt);
77493
77495
  let ir = pi.segments;
@@ -77512,11 +77514,11 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
77512
77514
  return [-0.5 * (1 - I) + r[0] * I, r[1], r[2]];
77513
77515
  }
77514
77516
  function ca(f, r, u, g, x, I, C, D, k, B, V, q, Z, te, le, oe, Te, Ie, ke, Re, Ce) {
77515
- const at = r.context, We = at.gl, ot = r.transform, Ue = r.transform.zoom, Ye = [], tt = f.translate, gt = f.translateAnchor, ct = f.edgeRadius, zt = Po(r, f.cutoffFadeRange);
77516
- V === "clear" ? (Ye.push("CLEAR_SUBPASS"), Re && (Ye.push("CLEAR_FROM_TEXTURE"), at.activeTexture.set(We.TEXTURE0), Re.bind(We.LINEAR, We.CLAMP_TO_EDGE))) : V === "sdf" ? Ye.push("SDF_SUBPASS") : V === "emissive" && (Ye.push("USE_MRT1"), at.activeTexture.set(We.TEXTURE0), Re.bind(We.LINEAR, We.CLAMP_TO_EDGE)), Ie && Ye.push("HAS_CENTROID"), zt.shouldRenderCutoff && Ye.push("RENDER_CUTOFF");
77517
+ const at = r.context, We = at.gl, ot = r.transform, Ue = r.transform.zoom, Ge = [], tt = f.translate, gt = f.translateAnchor, ct = f.edgeRadius, zt = Po(r, f.cutoffFadeRange);
77518
+ V === "clear" ? (Ge.push("CLEAR_SUBPASS"), Re && (Ge.push("CLEAR_FROM_TEXTURE"), at.activeTexture.set(We.TEXTURE0), Re.bind(We.LINEAR, We.CLAMP_TO_EDGE))) : V === "sdf" ? Ge.push("SDF_SUBPASS") : V === "emissive" && (Ge.push("USE_MRT1"), at.activeTexture.set(We.TEXTURE0), Re.bind(We.LINEAR, We.CLAMP_TO_EDGE)), Ie && Ge.push("HAS_CENTROID"), zt.shouldRenderCutoff && Ge.push("RENDER_CUTOFF");
77517
77519
  const At = (qt, Qt, vt, dt, Nt) => {
77518
- let Rt = Ye;
77519
- Qt.groundRadiusBuffer != null && (Rt = Ye.concat("HAS_ATTRIBUTE_a_flood_light_ground_radius"));
77520
+ let Rt = Ge;
77521
+ Qt.groundRadiusBuffer != null && (Rt = Ge.concat("HAS_ATTRIBUTE_a_flood_light_ground_radius"));
77520
77522
  const Ut = Qt.programConfigurations.get(g.id), vn = r.isTileAffectedByFog(qt), un = r.getOrCreateProgram("fillExtrusionGroundEffect", { config: Ut, defines: Rt, overrideFog: vn }), nn = /* @__PURE__ */ ((Fn, Gn, En, zn, ri, _i, pi, Ei, ti, Ni, gi) => ({ u_matrix: Gn, u_opacity: En, u_ao_pass: zn ? 1 : 0, u_meter_to_tile: ri, u_ao: _i, u_flood_light_intensity: pi, u_flood_light_color: Ei, u_attenuation: ti, u_edge_radius: Ni, u_fb: 0, u_fb_size: gi, u_dynamic_offset: 1 }))(0, dt, q, B, Nt, [Z, te * Nt], le, oe, Te, Ue >= 17 ? 0 : ct * Nt, Re ? Re.size[0] : 0), Jt = [];
77521
77523
  Ie && Jt.push(Qt.hiddenByLandmarkVertexBuffer), Qt.groundRadiusBuffer != null && Jt.push(Qt.groundRadiusBuffer), r.uploadCommonUniforms(at, un, qt.toUnwrapped(), null, zt), un.draw(r, at.gl.TRIANGLES, I, C, D, k, nn, g.id, Qt.vertexBuffer, Qt.indexBuffer, vt, g.paint, Ue, Ut, Jt);
77522
77524
  };
@@ -77565,7 +77567,7 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
77565
77567
  }
77566
77568
  }, Z = [0, 0, 0], te = (Ie, ke) => (Z[0] = Math.min(Ie.min.y, ke.min.y), Z[1] = Math.max(Ie.max.y, ke.max.y), Z[2] = o.an - ke.min.x > Ie.max.x ? ke.min.x - o.an : Ie.max.x, Z), le = (Ie, ke) => (Z[0] = Math.min(Ie.min.x, ke.min.x), Z[1] = Math.max(Ie.max.x, ke.max.x), Z[2] = o.an - ke.min.y > Ie.max.y ? ke.min.y - o.an : Ie.max.y, Z), oe = [(Ie, ke) => te(Ie, ke), (Ie, ke) => te(ke, Ie), (Ie, ke) => le(Ie, ke), (Ie, ke) => le(ke, Ie)], Te = (Ie, ke, Re, Ce, at, We, ot) => {
77567
77569
  if (!I) return 0;
77568
- const Ue = [[We ? Re : Ie, We ? Ie : Re, 0], [We ? Re : ke, We ? ke : Re, 0]], Ye = ot < 0 ? o.an + ot : ot, tt = [We ? Ye : (Ie + ke) / 2, We ? (Ie + ke) / 2 : Ye, 0];
77570
+ const Ue = [[We ? Re : Ie, We ? Ie : Re, 0], [We ? Re : ke, We ? ke : Re, 0]], Ge = ot < 0 ? o.an + ot : ot, tt = [We ? Ge : (Ie + ke) / 2, We ? (Ie + ke) / 2 : Ge, 0];
77569
77571
  return Re === 0 && ot < 0 || Re !== 0 && ot > 0 ? I.getForTilePoints(at, [tt], !0, Ce) : Ue.push(tt), I.getForTilePoints(u, Ue, !0, D), Math.max(Ue[0][2], Ue[1][2], tt[2]) / I.exaggeration();
77570
77572
  };
77571
77573
  for (let Ie = 0; Ie < 4; Ie++) {
@@ -77577,7 +77579,7 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
77577
77579
  if (!(at && at.dem || C) || (I && at && at.dem && g.borderDEMTileTimestamp[Ie] !== at.dem._timestamp && (g.borderDoneWithNeighborZ[Ie] = -1, g.borderDEMTileTimestamp[Ie] = at.dem._timestamp), g.borderDoneWithNeighborZ[Ie] === Ce.canonical.z)) continue;
77578
77580
  Ce.centroidVertexArray.length === 0 && Ce.createCentroidsBuffer();
77579
77581
  const We = (Ie < 2 ? 1 : 5) - Ie, ot = Ce.borderDoneWithNeighborZ[We] !== g.canonical.z, Ue = Ce.borderFeatureIndices[We];
77580
- let Ye = 0;
77582
+ let Ge = 0;
77581
77583
  if (g.canonical.z !== Ce.canonical.z) {
77582
77584
  for (const zt of ke) g.showCentroid(g.featuresOnBorder[zt]);
77583
77585
  if (ot) for (const zt of Ue) Ce.showCentroid(Ce.featuresOnBorder[zt]);
@@ -77614,24 +77616,24 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
77614
77616
  if (gt.has(zt)) continue;
77615
77617
  const At = g.featuresOnBorder[zt], qt = g.centroidData[At.centroidDataIndex], Qt = At.borders[Ie];
77616
77618
  let vt;
77617
- for (; Ye < Ue.length; ) {
77618
- if (ct.has(Ye)) {
77619
- Ye++;
77619
+ for (; Ge < Ue.length; ) {
77620
+ if (ct.has(Ge)) {
77621
+ Ge++;
77620
77622
  continue;
77621
77623
  }
77622
- vt = Ce.featuresOnBorder[Ue[Ye]];
77624
+ vt = Ce.featuresOnBorder[Ue[Ge]];
77623
77625
  const dt = vt.borders[We];
77624
77626
  if (dt[1] > Qt[0] + 3 || dt[0] > Qt[0] - 3) break;
77625
- Ce.showCentroid(vt), Ye++;
77627
+ Ce.showCentroid(vt), Ge++;
77626
77628
  }
77627
- if (vt && Ye < Ue.length) {
77628
- let dt = Ye, Nt = 0;
77629
- for (; ; ) if (ct.has(Ye)) {
77630
- if (++Ye === Ue.length) break;
77631
- vt = Ce.featuresOnBorder[Ue[Ye]];
77629
+ if (vt && Ge < Ue.length) {
77630
+ let dt = Ge, Nt = 0;
77631
+ for (; ; ) if (ct.has(Ge)) {
77632
+ if (++Ge === Ue.length) break;
77633
+ vt = Ce.featuresOnBorder[Ue[Ge]];
77632
77634
  } else {
77633
- if (vt.borders[We][0] > Qt[1] - 3 || (Nt++, ++Ye === Ue.length)) break;
77634
- vt = Ce.featuresOnBorder[Ue[Ye]];
77635
+ if (vt.borders[We][0] > Qt[1] - 3 || (Nt++, ++Ge === Ue.length)) break;
77636
+ vt = Ce.featuresOnBorder[Ue[Ge]];
77635
77637
  }
77636
77638
  for (; dt < Ue.length && ct.has(dt); ) dt++;
77637
77639
  if (dt >= Ue.length) {
@@ -77642,7 +77644,7 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
77642
77644
  let Rt = !1;
77643
77645
  if (Nt >= 1) {
77644
77646
  const un = vt.borders[We];
77645
- Math.abs(Qt[0] - un[0]) < 3 && Math.abs(Qt[1] - un[1]) < 3 && (Nt = 1, Rt = !0, Ye = dt + 1);
77647
+ Math.abs(Qt[0] - un[0]) < 3 && Math.abs(Qt[1] - un[1]) < 3 && (Nt = 1, Rt = !0, Ge = dt + 1);
77646
77648
  } else if (Nt === 0) {
77647
77649
  g.showCentroid(At);
77648
77650
  continue;
@@ -77650,7 +77652,7 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
77650
77652
  const Ut = Ce.centroidData[vt.centroidDataIndex];
77651
77653
  C && Rt && k(qt, Ut);
77652
77654
  const vn = At.intersectsCount() > 1 || vt.intersectsCount() > 1;
77653
- if (Nt > 1) Ye = dt, qt.centroidXY = Ut.centroidXY = new o.P(0, 0);
77655
+ if (Nt > 1) Ge = dt, qt.centroidXY = Ut.centroidXY = new o.P(0, 0);
77654
77656
  else if (at && at.dem && !vn) {
77655
77657
  const un = oe[Ie](qt, Ut), nn = Ie % 2 ? o.an - 1 : 0, Jt = Te(un[0], Math.min(o.an - 1, un[1]), nn, at, Re, Ie < 2, un[2]);
77656
77658
  qt.centroidXY = Ut.centroidXY = B(Jt);
@@ -77702,24 +77704,24 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
77702
77704
  else {
77703
77705
  const Ue = r.transform.calculatePosMatrix(oe.toUnwrapped(), r.transform.worldSize);
77704
77706
  o.cC(Ue, Ue, [1, 1, f.verticalScale]);
77705
- const Ye = o.bb();
77706
- o.cC(Ye, Ue, [1, -1, 1 / V]), o.b7(Ye, Ye), o.e6(Ye, Ye);
77707
+ const Ge = o.bb();
77708
+ o.cC(Ge, Ue, [1, -1, 1 / V]), o.b7(Ge, Ge), o.e6(Ge, Ge);
77707
77709
  const tt = r.transform.getFreeCameraOptions().position, gt = 1 << oe.canonical.z;
77708
- if (at = Tc(We, Ye, f.opacity, f.facadeAOIntensity, [((tt.x - oe.wrap) * gt - oe.canonical.x) * o.an, (tt.y * gt - oe.canonical.y) * o.an, tt.z * gt * o.an], Ie.tileToMeter, f.facadeEmissiveChance, f.floodLightColor, f.floodLightIntensity, le), Ce = r.getOrCreateProgram("building", { config: ke, defines: I, overrideFog: !1 }), f.depthOnly === !0) Re = Ce;
77710
+ if (at = Tc(We, Ge, f.opacity, f.facadeAOIntensity, [((tt.x - oe.wrap) * gt - oe.canonical.x) * o.an, (tt.y * gt - oe.canonical.y) * o.an, tt.z * gt * o.an], Ie.tileToMeter, f.facadeEmissiveChance, f.floodLightColor, f.floodLightIntensity, le), Ce = r.getOrCreateProgram("building", { config: ke, defines: I, overrideFog: !1 }), f.depthOnly === !0) Re = Ce;
77709
77711
  else {
77710
77712
  const ct = I.concat(["BUILDING_FAUX_FACADE", "HAS_ATTRIBUTE_a_faux_facade_color_emissive"]);
77711
77713
  Re = r.getOrCreateProgram("building", { config: ke, defines: ct, overrideFog: !1 });
77712
77714
  }
77713
77715
  B && (B.setupShadowsFromMatrix(Ue, Ce, !0), Re !== Ce && B.setupShadowsFromMatrix(Ue, Re, !0));
77714
77716
  }
77715
- const ot = (Ue, Ye) => {
77717
+ const ot = (Ue, Ge) => {
77716
77718
  if (k) {
77717
77719
  const tt = Ue.entranceBloom;
77718
- Ye.draw(r, C.gl.TRIANGLES, f.depthMode, fi.disabled, f.blendMode, ai.disabled, at, g.id, tt.layoutVertexBuffer, tt.indexBuffer, tt.segmentsBucket, g.paint, r.transform.zoom, ke, [tt.layoutAttenuationBuffer, tt.layoutColorBuffer]);
77720
+ Ge.draw(r, C.gl.TRIANGLES, f.depthMode, fi.disabled, f.blendMode, ai.disabled, at, g.id, tt.layoutVertexBuffer, tt.indexBuffer, tt.segmentsBucket, g.paint, r.transform.zoom, ke, [tt.layoutAttenuationBuffer, tt.layoutColorBuffer]);
77719
77721
  } else {
77720
77722
  const tt = Ue.segmentsBucket;
77721
77723
  let gt = [Ue.layoutNormalBuffer, Ue.layoutCentroidBuffer, Ue.layoutColorBuffer, Ue.layoutFloodLightDataBuffer];
77722
- Ue.layoutFacadePaintBuffer && (gt = gt.concat([Ue.layoutFacadeDataBuffer, Ue.layoutFacadeVerticalRangeBuffer, Ue.layoutFacadePaintBuffer])), Ye.draw(r, C.gl.TRIANGLES, f.depthMode, fi.disabled, f.blendMode, D ? ai.disabled : ai.backCW, at, g.id, Ue.layoutVertexBuffer, Ue.indexBuffer, tt, g.paint, r.transform.zoom, ke, gt);
77724
+ Ue.layoutFacadePaintBuffer && (gt = gt.concat([Ue.layoutFacadeDataBuffer, Ue.layoutFacadeVerticalRangeBuffer, Ue.layoutFacadePaintBuffer])), Ge.draw(r, C.gl.TRIANGLES, f.depthMode, fi.disabled, f.blendMode, D ? ai.disabled : ai.backCW, at, g.id, Ue.layoutVertexBuffer, Ue.indexBuffer, tt, g.paint, r.transform.zoom, ke, gt);
77723
77725
  }
77724
77726
  };
77725
77727
  r.uploadCommonUniforms(C, Ce, oe.toUnwrapped(), null, q), Ie.buildingWithoutFacade && ot(Ie.buildingWithoutFacade, Ce), Ie.buildingWithFacade && (Re !== Ce && r.uploadCommonUniforms(C, Re, oe.toUnwrapped(), null, q), ot(Ie.buildingWithFacade, Re));
@@ -77748,11 +77750,11 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
77748
77750
  ke.push("GLOBE_POLES");
77749
77751
  const Re = new Hn(oe.LEQUAL, Hn.ReadWrite, u.depthRangeFor3D), Ce = Float32Array.from(u.transform.expandedFarZProjMatrix), at = Float32Array.from(o.du(o.dv(new o.cn(0, 0, 0))));
77750
77752
  u.terrain && u.terrain.prepareDrawTile(), le.activeTexture.set(oe.TEXTURE0), Z.bind(Te, oe.CLAMP_TO_EDGE), le.activeTexture.set(oe.TEXTURE1), Z.bind(Te, oe.CLAMP_TO_EDGE), "useMipmap" in Z && le.extTextureFilterAnisotropic && u.transform.pitch > 20 && oe.texParameterf(oe.TEXTURE_2D, le.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT, le.extTextureFilterAnisotropicMax);
77751
- const [We, ot, Ue, Ye] = r ? V.getPoleBuffers(r.canonical.z, !1) : V.getPoleBuffers(0, !0), tt = x.paint.get("raster-elevation");
77753
+ const [We, ot, Ue, Ge] = r ? V.getPoleBuffers(r.canonical.z, !1) : V.getPoleBuffers(0, !0), tt = x.paint.get("raster-elevation");
77752
77754
  let gt;
77753
77755
  f ? (gt = We, u.renderDefaultNorthPole = tt !== 0) : (gt = ot, u.renderDefaultSouthPole = tt !== 0);
77754
77756
  const ct = cf(C.mix), zt = ((qt, Qt, vt, dt, Nt, Rt, Ut, vn, un, nn, Jt, Fn, Gn, En) => _p(qt, Qt, vt, dt, new Float32Array(16), new Float32Array(9), [0, 0], Nt, [0, 0], [0, 0, 0, 0], 1, { opacity: 1, mix: 0 }, Ut, [0, 0], un, 2, Jt, Fn, Gn, 1, 0, En))(u, Ce, at, te, o.al(u.transform.zoom), 0, x, 0, tt, 0, ct, C.offset, C.range, I), At = u.getOrCreateProgram("raster", { defines: ke });
77755
- u.uploadCommonUniforms(le, At, null), At.draw(u, oe.TRIANGLES, Re, k, Ie, D, zt, x.id, gt, Ue, Ye);
77757
+ u.uploadCommonUniforms(le, At, null), At.draw(u, oe.TRIANGLES, Re, k, Ie, D, zt, x.id, gt, Ue, Ge);
77756
77758
  }
77757
77759
  function Do(f) {
77758
77760
  if (f.isOrthographic) return [0, 0, 0, 0];
@@ -77828,8 +77830,8 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
77828
77830
  Nt.clearRect(0, 0, vt.width, vt.height), Nt.shadowColor = "white", Nt.shadowBlur = 2, Nt.lineWidth = 1.5, Nt.strokeStyle = "white", Nt.textBaseline = "top", Nt.font = "bold 36px Open Sans, sans-serif", Nt.fillText(Qt, 5, 5), Nt.strokeText(Qt, 5, 5), qt.debugOverlayTexture.update(vt), qt.debugOverlayTexture.bind(dt.LINEAR, dt.CLAMP_TO_EDGE);
77829
77831
  })(f, At);
77830
77832
  }
77831
- const ot = r.getTile(u).tileSize, Ue = 512 / Math.min(ot, 512) * (u.overscaledZ / k.zoom) * 0.5, Ye = oe._tileDebugTextBuffer || f.debugBuffer, tt = oe._tileDebugTextIndexBuffer || f.quadTriangleIndexBuffer, gt = oe._tileDebugTextSegments || f.debugSegments;
77832
- le.draw(f, B.TRIANGLES, Te, Ie, ui.alphaBlended, ai.disabled, Jc(Z, o.aq.transparent.toPremultipliedRenderColor(null), Ue), Re, Ye, tt, gt, null, null, null, [oe._globeTileDebugTextBuffer]);
77833
+ const ot = r.getTile(u).tileSize, Ue = 512 / Math.min(ot, 512) * (u.overscaledZ / k.zoom) * 0.5, Ge = oe._tileDebugTextBuffer || f.debugBuffer, tt = oe._tileDebugTextIndexBuffer || f.quadTriangleIndexBuffer, gt = oe._tileDebugTextSegments || f.debugSegments;
77834
+ le.draw(f, B.TRIANGLES, Te, Ie, ui.alphaBlended, ai.disabled, Jc(Z, o.aq.transparent.toPremultipliedRenderColor(null), Ue), Re, Ge, tt, gt, null, null, null, [oe._globeTileDebugTextBuffer]);
77833
77835
  }
77834
77836
  function id(f, r, u, g) {
77835
77837
  rd(f, 0, r + u / 2, f.transform.width, u, g);
@@ -77903,10 +77905,10 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
77903
77905
  const g = r.context, x = g.gl, I = r.transform, C = new Hn(x.LEQUAL, Hn.ReadOnly, [0, 1]), D = o.al(I.zoom), k = r.style.getLut(u.scope), B = u.properties.get("color-use-theme") === "none", V = u.properties.get("color").toNonPremultipliedRenderColor(B ? null : k), q = u.properties.get("high-color-use-theme") === "none", Z = u.properties.get("high-color").toNonPremultipliedRenderColor(q ? null : k), te = u.properties.get("space-color-use-theme") === "none", le = u.properties.get("space-color").toNonPremultipliedRenderColor(te ? null : k), oe = 5e-4, Te = o.ej(u.properties.get("horizon-blend"), 0, 1, oe, 0.25), Ie = o.dp(r, g, I) && Te === oe ? I.worldSize / (2 * Math.PI * 1.025) - 1 : I.globeRadius, ke = r.frameCounter / 1e3 % 1, Re = o.ai(I.globeCenterInViewSpace), Ce = Math.sqrt(Math.pow(Re, 2) - Math.pow(Ie, 2)), at = Math.acos(Ce / Re), We = (ot) => {
77904
77906
  const Ue = I.projection.name === "globe" ? ["PROJECTION_GLOBE_VIEW", "FOG"] : ["FOG"];
77905
77907
  ot && Ue.push("ALPHA_PASS");
77906
- const Ye = r.getOrCreateProgram("globeAtmosphere", { defines: Ue }), tt = ((ct, zt, At, qt, Qt, vt, dt, Nt, Rt, Ut, vn, un) => ({ u_frustum_tl: ct, u_frustum_tr: zt, u_frustum_br: At, u_frustum_bl: qt, u_horizon: Qt, u_transition: vt, u_fadeout_range: dt, u_atmosphere_fog_color: Nt.toArray01(), u_high_color: Rt.toArray01(), u_space_color: Ut.toArray01(), u_temporal_offset: vn, u_horizon_angle: un }))(I.frustumCorners.TL, I.frustumCorners.TR, I.frustumCorners.BR, I.frustumCorners.BL, I.frustumCorners.horizon, D, Te, V, Z, le, ke, at);
77907
- r.uploadCommonUniforms(g, Ye);
77908
+ const Ge = r.getOrCreateProgram("globeAtmosphere", { defines: Ue }), tt = ((ct, zt, At, qt, Qt, vt, dt, Nt, Rt, Ut, vn, un) => ({ u_frustum_tl: ct, u_frustum_tr: zt, u_frustum_br: At, u_frustum_bl: qt, u_horizon: Qt, u_transition: vt, u_fadeout_range: dt, u_atmosphere_fog_color: Nt.toArray01(), u_high_color: Rt.toArray01(), u_space_color: Ut.toArray01(), u_temporal_offset: vn, u_horizon_angle: un }))(I.frustumCorners.TL, I.frustumCorners.TR, I.frustumCorners.BR, I.frustumCorners.BL, I.frustumCorners.horizon, D, Te, V, Z, le, ke, at);
77909
+ r.uploadCommonUniforms(g, Ge);
77908
77910
  const gt = this.atmosphereBuffer;
77909
- gt && Ye.draw(r, x.TRIANGLES, C, fi.disabled, ot ? this.colorModeWriteAlpha : this.colorModeAlphaBlendedWriteRGB, ai.backCW, tt, ot ? "atmosphere_glow_alpha" : "atmosphere_glow", gt.vertexBuffer, gt.indexBuffer, gt.segments);
77911
+ gt && Ge.draw(r, x.TRIANGLES, C, fi.disabled, ot ? this.colorModeWriteAlpha : this.colorModeAlphaBlendedWriteRGB, ai.backCW, tt, ot ? "atmosphere_glow_alpha" : "atmosphere_glow", gt.vertexBuffer, gt.indexBuffer, gt.segments);
77910
77912
  };
77911
77913
  We(!1), We(!0);
77912
77914
  }
@@ -77980,9 +77982,9 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
77980
77982
  at && (at.useNormalOffset = !1), ur(Re.defines, Ce, V, r, Te ? null : u.lut);
77981
77983
  let We = null;
77982
77984
  if (te) {
77983
- const Ye = ff(f.nodeModelMatrix, r.transform);
77984
- if (We = new Float32Array(Ye), B.projection.name !== "globe") {
77985
- const tt = V.aabb.min, gt = V.aabb.max, [ct, zt] = te.getOpacityForBounds(Ye, tt[0], tt[1], gt[0], gt[1]);
77985
+ const Ge = ff(f.nodeModelMatrix, r.transform);
77986
+ if (We = new Float32Array(Ge), B.projection.name !== "globe") {
77987
+ const tt = V.aabb.min, gt = V.aabb.max, [ct, zt] = te.getOpacityForBounds(Ge, tt[0], tt[1], gt[0], gt[1]);
77986
77988
  Re.overrideFog = ct >= ii || zt >= ii;
77987
77989
  }
77988
77990
  }
@@ -78036,8 +78038,8 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
78036
78038
  for (let ct = 0; ct < tt.length; ct++) gt = (gt << 5) - gt + tt.charCodeAt(ct) | 0;
78037
78039
  return gt;
78038
78040
  })(Ce) : We;
78039
- const ot = o.eb(at), Ue = o.eb(at + 1), Ye = o.eb(at + 2);
78040
- return q.footprintDebugMesh = { vertexBuffer: Ie, indexBuffer: ke, segments: Re, color: new o.aq(ot, Ue, Ye, 0.5) }, q.footprintDebugMesh;
78041
+ const ot = o.eb(at), Ue = o.eb(at + 1), Ge = o.eb(at + 2);
78042
+ return q.footprintDebugMesh = { vertexBuffer: Ie, indexBuffer: ke, segments: Re, color: new o.aq(ot, Ue, Ge, 0.5) }, q.footprintDebugMesh;
78041
78043
  })(f, u);
78042
78044
  if (!x) return;
78043
78045
  const I = f.context, C = I.gl, D = f.getOrCreateProgram("debug"), k = x.color, B = Hn.disabled;
@@ -78108,8 +78110,8 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
78108
78110
  if (Ce.shouldRenderCutoff && le.push("RENDER_CUTOFF"), k && B) Te = f.getOrCreateProgram("modelDepth", { defines: le }), Ie = Kh(C.shadowTileMatrix, C.shadowTileMatrix, Float32Array.from(u.globalMatrix)), ke = ui.disabled;
78109
78111
  else {
78110
78112
  ur(le, oe, te, f, r.paint.get("model-color-use-theme").constantOr("default") === "none" ? null : r.lut), Te = f.getOrCreateProgram("model", { defines: le, overrideFog: q });
78111
- const We = te.material, ot = We.pbrMetallicRoughness, Ue = r.paint.get("model-opacity").constantOr(1), Ye = r.paint.get("model-emissive-strength").constantOr(0);
78112
- Ie = Ma(I.expandedProjMatrix, Float32Array.from(u.globalMatrix), new Float32Array(16), null, f, Ue, ot.baseColorFactor, We.emissiveFactor, ot.metallicFactor, ot.roughnessFactor, We, Ye, r, x), B && (C.shadowUniformsInitialized ? Te.setShadowUniformValues(D, B.getShadowUniformValues()) : (B.setupShadows(I.toUnwrapped(), Te, "model-tile"), C.shadowUniformsInitialized = !0)), ke = Ce.shouldRenderCutoff || Ue < 1 || We.alphaMode !== "OPAQUE" ? ui.alphaBlended : ui.unblended;
78113
+ const We = te.material, ot = We.pbrMetallicRoughness, Ue = r.paint.get("model-opacity").constantOr(1), Ge = r.paint.get("model-emissive-strength").constantOr(0);
78114
+ Ie = Ma(I.expandedProjMatrix, Float32Array.from(u.globalMatrix), new Float32Array(16), null, f, Ue, ot.baseColorFactor, We.emissiveFactor, ot.metallicFactor, ot.roughnessFactor, We, Ge, r, x), B && (C.shadowUniformsInitialized ? Te.setShadowUniformValues(D, B.getShadowUniformValues()) : (B.setupShadows(I.toUnwrapped(), Te, "model-tile"), C.shadowUniformsInitialized = !0)), ke = Ce.shouldRenderCutoff || Ue < 1 || We.alphaMode !== "OPAQUE" ? ui.alphaBlended : ui.unblended;
78113
78115
  }
78114
78116
  f.uploadCommonUniforms(D, Te, I.toUnwrapped(), null, Ce);
78115
78117
  const at = te.material.doubleSided ? ai.disabled : ai.backCCW;
@@ -78295,10 +78297,10 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
78295
78297
  const Z = r.getOrCreateProgram("rainParticle");
78296
78298
  r.uploadCommonUniforms(B, Z), B.activeTexture.set(V.TEXTURE0), this.screenTexture.bind(V.LINEAR, V.CLAMP_TO_EDGE);
78297
78299
  const te = [I.color.r, I.color.g, I.color.b, I.color.a], le = (oe, Te) => {
78298
- const Ie = _f(this._movement.getPosition(), oe), ke = I.dropletSizeX, Re = I.dropletSizeX * I.dropletSizeYScale, Ce = r.width / 2, at = r.height / 2, We = Wl(0, I.screenThinning.start, 0, 1, I.screenThinning.intensity), ot = Wl(1e-3, I.screenThinning.range, 0, 1, I.screenThinning.intensity), Ue = Wl(0, I.screenThinning.particleOffset, 0, 1, I.screenThinning.intensity), Ye = (tt = { modelview: k.modelviewMatrix, projection: k.projectionMatrix, time: this._accumulatedTimeFromStart, camPos: Ie, velocityConeAperture: I.velocityConeAperture, velocity: I.velocity, boxSize: oe, rainDropletSize: [ke, Re], distortionStrength: I.distortionStrength, rainDirection: C, color: te, screenSize: [q.width, q.height], thinningCenterPos: [Ce, at], thinningShape: [We, ot, Math.pow(10, I.screenThinning.fadePower)], thinningAffectedRatio: I.screenThinning.affectedRatio, thinningParticleOffset: Ue, shapeDirectionalPower: I.shapeDirPower, shapeNormalPower: I.shapeNormalPower, mode: Te ? 0 : 1 }, { u_modelview: Float32Array.from(tt.modelview), u_projection: Float32Array.from(tt.projection), u_time: tt.time, u_cam_pos: tt.camPos, u_texScreen: 0, u_velocityConeAperture: tt.velocityConeAperture, u_velocity: tt.velocity, u_boxSize: tt.boxSize, u_rainDropletSize: tt.rainDropletSize, u_distortionStrength: tt.distortionStrength, u_rainDirection: tt.rainDirection, u_color: tt.color, u_screenSize: tt.screenSize, u_thinningCenterPos: tt.thinningCenterPos, u_thinningShape: tt.thinningShape, u_thinningAffectedRatio: tt.thinningAffectedRatio, u_thinningParticleOffset: tt.thinningParticleOffset, u_shapeDirectionalPower: tt.shapeDirectionalPower, u_shapeNormalPower: tt.shapeNormalPower, u_mode: tt.mode });
78300
+ const Ie = _f(this._movement.getPosition(), oe), ke = I.dropletSizeX, Re = I.dropletSizeX * I.dropletSizeYScale, Ce = r.width / 2, at = r.height / 2, We = Wl(0, I.screenThinning.start, 0, 1, I.screenThinning.intensity), ot = Wl(1e-3, I.screenThinning.range, 0, 1, I.screenThinning.intensity), Ue = Wl(0, I.screenThinning.particleOffset, 0, 1, I.screenThinning.intensity), Ge = (tt = { modelview: k.modelviewMatrix, projection: k.projectionMatrix, time: this._accumulatedTimeFromStart, camPos: Ie, velocityConeAperture: I.velocityConeAperture, velocity: I.velocity, boxSize: oe, rainDropletSize: [ke, Re], distortionStrength: I.distortionStrength, rainDirection: C, color: te, screenSize: [q.width, q.height], thinningCenterPos: [Ce, at], thinningShape: [We, ot, Math.pow(10, I.screenThinning.fadePower)], thinningAffectedRatio: I.screenThinning.affectedRatio, thinningParticleOffset: Ue, shapeDirectionalPower: I.shapeDirPower, shapeNormalPower: I.shapeNormalPower, mode: Te ? 0 : 1 }, { u_modelview: Float32Array.from(tt.modelview), u_projection: Float32Array.from(tt.projection), u_time: tt.time, u_cam_pos: tt.camPos, u_texScreen: 0, u_velocityConeAperture: tt.velocityConeAperture, u_velocity: tt.velocity, u_boxSize: tt.boxSize, u_rainDropletSize: tt.rainDropletSize, u_distortionStrength: tt.distortionStrength, u_rainDirection: tt.rainDirection, u_color: tt.color, u_screenSize: tt.screenSize, u_thinningCenterPos: tt.thinningCenterPos, u_thinningShape: tt.thinningShape, u_thinningAffectedRatio: tt.thinningAffectedRatio, u_thinningParticleOffset: tt.thinningParticleOffset, u_shapeDirectionalPower: tt.shapeDirectionalPower, u_shapeNormalPower: tt.shapeNormalPower, u_mode: tt.mode });
78299
78301
  var tt;
78300
78302
  const gt = Math.round(I.intensity * this.particlesCount), ct = o.dy.simpleSegment(0, 0, 4 * gt, 2 * gt);
78301
- Z.draw(r, V.TRIANGLES, Hn.disabled, fi.disabled, ui.alphaBlended, ai.disabled, Ye, "rain_particles", this.particlesVx, this.particlesIdx, ct);
78303
+ Z.draw(r, V.TRIANGLES, Hn.disabled, fi.disabled, ui.alphaBlended, ai.disabled, Ge, "rain_particles", this.particlesVx, this.particlesIdx, ct);
78302
78304
  };
78303
78305
  I.distortionStrength > 0 && le(I.boxSize, !0), le(I.boxSize, !1), this._vignette.draw(r, D);
78304
78306
  }
@@ -78336,8 +78338,8 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
78336
78338
  r.uploadCommonUniforms(B, Z), ((te, le, oe) => {
78337
78339
  const Te = _f(this._movement.getPosition(), te), Ie = q.width / 2, ke = q.height / 2, Re = Wl(0, oe.screenThinning.start, 0, 1, oe.screenThinning.intensity), Ce = Wl(1e-3, oe.screenThinning.range, 0, 1, oe.screenThinning.intensity), at = Wl(0, oe.screenThinning.particleOffset, 0, 1, oe.screenThinning.intensity), We = (ot = { modelview: k.modelviewMatrix, projection: k.projectionMatrix, time: this._accumulatedTimeFromStart, camPos: Te, velocityConeAperture: oe.velocityConeAperture, velocity: oe.velocity, horizontalOscillationRadius: oe.horizontalOscillationRadius, horizontalOscillationRate: oe.horizontalOscillationRate, boxSize: te, billboardSize: 1 * oe.billboardSize, simpleShapeParameters: [oe.shapeFadeStart, oe.shapeFadePower], screenSize: [q.width, q.height], thinningCenterPos: [Ie, ke], thinningShape: [Re, Ce, Math.pow(10, oe.screenThinning.fadePower)], thinningAffectedRatio: oe.screenThinning.affectedRatio, thinningParticleOffset: at, color: [oe.color.r, oe.color.g, oe.color.b, oe.color.a], direction: g }, { u_modelview: Float32Array.from(ot.modelview), u_projection: Float32Array.from(ot.projection), u_time: ot.time, u_cam_pos: ot.camPos, u_velocityConeAperture: ot.velocityConeAperture, u_velocity: ot.velocity, u_horizontalOscillationRadius: ot.horizontalOscillationRadius, u_horizontalOscillationRate: ot.horizontalOscillationRate, u_boxSize: ot.boxSize, u_billboardSize: ot.billboardSize, u_simpleShapeParameters: ot.simpleShapeParameters, u_screenSize: ot.screenSize, u_thinningCenterPos: ot.thinningCenterPos, u_thinningShape: ot.thinningShape, u_thinningAffectedRatio: ot.thinningAffectedRatio, u_thinningParticleOffset: ot.thinningParticleOffset, u_particleColor: ot.color, u_direction: ot.direction });
78338
78340
  var ot;
78339
- const Ue = Math.round(oe.intensity * this.particlesCount), Ye = o.dy.simpleSegment(0, 0, 4 * Ue, 2 * Ue);
78340
- this.particlesVx && this.particlesIdx && Z.draw(r, V.TRIANGLES, Hn.disabled, fi.disabled, ui.alphaBlended, ai.disabled, We, "snow_particles", this.particlesVx, this.particlesIdx, Ye);
78341
+ const Ue = Math.round(oe.intensity * this.particlesCount), Ge = o.dy.simpleSegment(0, 0, 4 * Ue, 2 * Ue);
78342
+ this.particlesVx && this.particlesIdx && Z.draw(r, V.TRIANGLES, Hn.disabled, fi.disabled, ui.alphaBlended, ai.disabled, We, "snow_particles", this.particlesVx, this.particlesIdx, Ge);
78341
78343
  })(u.boxSize, 0, u), this._vignette.draw(r, x);
78342
78344
  }
78343
78345
  }
@@ -78347,10 +78349,10 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
78347
78349
  D && (function(Z, te, le, oe, Te, Ie, ke, Re) {
78348
78350
  const Ce = te.transform, at = Te === "map", We = Ie === "map";
78349
78351
  for (const ot of Z) {
78350
- const Ue = oe.getTile(ot), Ye = Ue.getBucket(le);
78351
- if (!Ye || !Ye.text || !Ye.text.segments.get().length) continue;
78352
- const tt = o.bj(Ye.textSizeData, Ce.zoom, Re), gt = dc(ot, Ye.getProjection(), Ce), ct = Ce.calculatePixelsToTileUnitsMatrix(Ue), zt = hl(gt, Ue.tileID.canonical, We, at, Ce, Ye.getProjection(), ct), At = Ye.hasIconTextFit() && Ye.hasIconData();
78353
- tt && sf(Ye, at, We, ke, Ce, zt, ot, Math.pow(2, Ce.zoom - Ue.tileID.overscaledZ), tt, At);
78352
+ const Ue = oe.getTile(ot), Ge = Ue.getBucket(le);
78353
+ if (!Ge || !Ge.text || !Ge.text.segments.get().length) continue;
78354
+ const tt = o.bj(Ge.textSizeData, Ce.zoom, Re), gt = dc(ot, Ge.getProjection(), Ce), ct = Ce.calculatePixelsToTileUnitsMatrix(Ue), zt = hl(gt, Ue.tileID.canonical, We, at, Ce, Ge.getProjection(), ct), At = Ge.hasIconTextFit() && Ge.hasIconData();
78355
+ tt && sf(Ge, at, We, ke, Ce, zt, ot, Math.pow(2, Ce.zoom - Ue.tileID.overscaledZ), tt, At);
78354
78356
  }
78355
78357
  })(g, f, u, r, u.layout.get("text-rotation-alignment"), u.layout.get("text-pitch-alignment"), x, B);
78356
78358
  const V = u.paint.get("icon-opacity").constantOr(1) !== 0, q = u.paint.get("text-opacity").constantOr(1) !== 0;
@@ -78361,11 +78363,11 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
78361
78363
  if (x.constantOr(1) === 0 && (I.constantOr(1) === 0 || C.constantOr(1) === 0)) return;
78362
78364
  const B = f.context, V = B.gl, q = f.transform, Z = !(!f.terrain || !f.terrain.enabled), te = u.layout.get("circle-elevation-reference"), le = f.depthModeForSublayer(0, Hn.ReadOnly), oe = new Hn(f.context.gl.LEQUAL, Hn.ReadOnly, f.depthRangeFor3D), Te = te === "none" || Z ? le : oe, Ie = fi.disabled, ke = f.colorModeForDrapableLayerRenderPass(k), Re = q.projection.name === "globe", Ce = [o.aH(q.center.lng), o.aL(q.center.lat)], at = [];
78363
78365
  for (let ot = 0; ot < g.length; ot++) {
78364
- const Ue = g[ot], Ye = r.getTile(Ue), tt = Ye.getBucket(u);
78366
+ const Ue = g[ot], Ge = r.getTile(Ue), tt = Ge.getBucket(u);
78365
78367
  if (!tt || tt.projection.name !== q.projection.name) continue;
78366
78368
  const gt = tt.programConfigurations.get(u.id), ct = tt.layoutVertexBuffer, zt = tt.globeExtVertexBuffer, At = tt.indexBuffer, qt = o.dS(u), Qt = [zt], vt = f.isTileAffectedByFog(Ue);
78367
78369
  Re && qt.push("PROJECTION_GLOBE_VIEW"), qt.push("DEPTH_D24"), f.terrain && q.depthOcclusionForSymbolsAndCircles && qt.push("DEPTH_OCCLUSION"), tt.hasElevation && !f.terrain && (qt.push("ELEVATED_ROADS"), Qt.push(tt.elevatedLayoutVertexBuffer));
78368
- const dt = f.getOrCreateProgram("circle", { config: gt, defines: qt, overrideFog: vt }), Nt = q.projection.createInversionMatrix(q, Ue.canonical), Rt = { programConfiguration: gt, program: dt, layoutVertexBuffer: ct, dynamicBuffers: Qt, indexBuffer: At, uniformValues: o.dT(f, Ue, Ye, Nt, Ce, u), tile: Ye };
78370
+ const dt = f.getOrCreateProgram("circle", { config: gt, defines: qt, overrideFog: vt }), Nt = q.projection.createInversionMatrix(q, Ue.canonical), Rt = { programConfiguration: gt, program: dt, layoutVertexBuffer: ct, dynamicBuffers: Qt, indexBuffer: At, uniformValues: o.dT(f, Ue, Ge, Nt, Ce, u), tile: Ge };
78369
78371
  if (D) {
78370
78372
  const Ut = tt.segments.get();
78371
78373
  for (const vn of Ut) at.push({ segments: new o.dy([vn]), sortKey: vn.sortKey, state: Rt });
@@ -78374,8 +78376,8 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
78374
78376
  D && at.sort((ot, Ue) => ot.sortKey - Ue.sortKey);
78375
78377
  const We = { useDepthForOcclusion: q.depthOcclusionForSymbolsAndCircles };
78376
78378
  for (const ot of at) {
78377
- const { programConfiguration: Ue, program: Ye, layoutVertexBuffer: tt, dynamicBuffers: gt, indexBuffer: ct, uniformValues: zt, tile: At } = ot.state, qt = ot.segments;
78378
- f.terrain && f.terrain.setupElevationDraw(At, Ye, We), f.uploadCommonUniforms(B, Ye, At.tileID.toUnwrapped()), Ye.draw(f, V.TRIANGLES, Te, Ie, ke, ai.disabled, zt, u.id, tt, ct, qt, u.paint, q.zoom, Ue, gt);
78379
+ const { programConfiguration: Ue, program: Ge, layoutVertexBuffer: tt, dynamicBuffers: gt, indexBuffer: ct, uniformValues: zt, tile: At } = ot.state, qt = ot.segments;
78380
+ f.terrain && f.terrain.setupElevationDraw(At, Ge, We), f.uploadCommonUniforms(B, Ge, At.tileID.toUnwrapped()), Ge.draw(f, V.TRIANGLES, Te, Ie, ke, ai.disabled, zt, u.id, tt, ct, qt, u.paint, q.zoom, Ue, gt);
78379
78381
  }
78380
78382
  }, heatmap: function(f, r, u, g) {
78381
78383
  if (u.paint.get("heatmap-opacity") !== 0) if (f.renderPass === "offscreen") {
@@ -78419,8 +78421,8 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
78419
78421
  const We = B.lineBlendDrapeFbo;
78420
78422
  if (!We) return;
78421
78423
  Z.activeTexture.set(te.TEXTURE0), te.bindTexture(te.TEXTURE_2D, We.colorAttachment0.get());
78422
- const ot = q === "additive" ? 1 : B.paint.get("line-opacity").constantOr(1), Ue = B.paint.get("line-emissive-strength").constantOr(0), Ye = q === "additive" ? D.colorModeForDrapableLayerRenderPass(Ue) : Yl[q].colorMode;
78423
- D.getOrCreateProgram("lineBlendComposite").draw(D, te.TRIANGLES, Hn.disabled, fi.disabled, Ye, ai.disabled, Gu(0, ot, Yl[q].compositeUniformValue), B.id, D.viewportBuffer, D.quadTriangleIndexBuffer, D.viewportSegments, B.paint, D.transform.zoom);
78424
+ const ot = q === "additive" ? 1 : B.paint.get("line-opacity").constantOr(1), Ue = B.paint.get("line-emissive-strength").constantOr(0), Ge = q === "additive" ? D.colorModeForDrapableLayerRenderPass(Ue) : Yl[q].colorMode;
78425
+ D.getOrCreateProgram("lineBlendComposite").draw(D, te.TRIANGLES, Hn.disabled, fi.disabled, Ge, ai.disabled, Gu(0, ot, Yl[q].compositeUniformValue), B.id, D.viewportBuffer, D.quadTriangleIndexBuffer, D.viewportSegments, B.paint, D.transform.zoom);
78424
78426
  })(f, r, u, g, C) : f.renderPass === "offscreen" ? void (function(D, k, B, V, q) {
78425
78427
  const Z = D.context, te = Math.ceil(D.width), le = Math.ceil(D.height);
78426
78428
  B.lineBlendFbo = Ju.createWithTexture(Z, B.lineBlendFbo, te, le, !0), B.lineBlendStencil = B.lineBlendFbo._stencilRbo, Z.clear({ color: Yl[q].clearColor, depth: 1, stencil: 0 });
@@ -78451,10 +78453,10 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
78451
78453
  const Ue = ot.elevatedStructures;
78452
78454
  if (!Ue || !Ue.shadowCasterSegments || Ue.shadowCasterSegments.segments[0].primitiveLength === 0) continue;
78453
78455
  oe.prepareDrawTile();
78454
- const Ye = ot.bufferData.programConfigurations.get(Ie.id), tt = oe.isTileAffectedByFog(at), gt = oe.getOrCreateProgram("elevatedStructuresDepth", { config: Ye, overrideFog: tt }), ct = Ce.calculateShadowPassMatrixFromTile(We.tileID.toUnwrapped());
78456
+ const Ge = ot.bufferData.programConfigurations.get(Ie.id), tt = oe.isTileAffectedByFog(at), gt = oe.getOrCreateProgram("elevatedStructuresDepth", { config: Ge, overrideFog: tt }), ct = Ce.calculateShadowPassMatrixFromTile(We.tileID.toUnwrapped());
78455
78457
  oe.uploadCommonUniforms(oe.context, gt, at.toUnwrapped());
78456
78458
  const zt = mp(ct, 0);
78457
- gt.draw(oe, Re.TRIANGLES, Ce.getShadowPassDepthMode(), fi.disabled, ui.disabled, ai.disabled, zt, Ie.id, Ue.vertexBuffer, Ue.indexBuffer, Ue.shadowCasterSegments, Ie.paint, oe.transform.zoom, Ye);
78459
+ gt.draw(oe, Re.TRIANGLES, Ce.getShadowPassDepthMode(), fi.disabled, ui.disabled, ai.disabled, zt, Ie.id, Ue.vertexBuffer, Ue.indexBuffer, Ue.shadowCasterSegments, Ie.paint, oe.transform.zoom, Ge);
78458
78460
  }
78459
78461
  })(Z));
78460
78462
  const te = f.emissiveMode === "mrt-fallback";
@@ -78463,10 +78465,10 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
78463
78465
  const le = !q && f.renderPass === "translucent";
78464
78466
  le && Ta(f, r, u, g, "geometry"), Ec(Z, !0, te, fi.disabled), le && (function(oe) {
78465
78467
  const { painter: Te, sourceCache: Ie, layer: ke, coords: Re, colorMode: Ce } = oe, at = Te.context.gl, We = oe.painter.shadowRenderer, ot = !!We && We.enabled, Ue = new Hn(Te.context.gl.LEQUAL, Hn.ReadOnly, Te.depthRangeFor3D);
78466
- let Ye = [0, 0, 0];
78468
+ let Ge = [0, 0, 0];
78467
78469
  if (ot) {
78468
78470
  const gt = Te.style.directionalLight, ct = Te.style.ambientLight;
78469
- gt && ct && (Ye = dl(Te.style, gt, ct));
78471
+ gt && ct && (Ge = dl(Te.style, gt, ct));
78470
78472
  }
78471
78473
  const tt = (gt) => {
78472
78474
  for (const ct of Re) {
@@ -78481,7 +78483,7 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
78481
78483
  ot && Nt.push("RENDER_SHADOWS", "NORMAL_OFFSET");
78482
78484
  const Rt = Te.getOrCreateProgram("elevatedStructures", { config: vt, overrideFog: dt, defines: Nt }), Ut = Te.translatePosMatrix(ct.projMatrix, zt, ke.paint.get("fill-translate"), ke.paint.get("fill-translate-anchor"));
78483
78485
  ot && We.setupShadows(zt.tileID.toUnwrapped(), Rt, "vector-tile");
78484
- const vn = yp(Ut, Ye);
78486
+ const vn = yp(Ut, Ge);
78485
78487
  Te.uploadCommonUniforms(Te.context, Rt, ct.toUnwrapped()), Rt.draw(Te, at.TRIANGLES, Ue, fi.disabled, Ce, ai.backCCW, vn, ke.id, qt.vertexBuffer, qt.indexBuffer, Qt, ke.paint, Te.transform.zoom, vt, [qt.vertexBufferNormal]);
78486
78488
  }
78487
78489
  };
@@ -78513,21 +78515,21 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
78513
78515
  x === 1 && Z ? wl(f, r, u, g, le, fi.disabled, ui.unblended, V) : (wl(f, r, u, g, le, fi.disabled, ui.disabled, V), wl(f, r, u, g, le, f.stencilModeFor3D(), f.colorModeForRenderPass(), V), f.resetStencilClippingMasks());
78514
78516
  }
78515
78517
  if (f.style.enable3dLights() && Z && (!D && f.transform.projection.name !== "globe" || k)) {
78516
- const le = u.paint.get("fill-extrusion-opacity"), oe = u.paint.get("fill-extrusion-ambient-occlusion-intensity"), Te = u.paint.get("fill-extrusion-ambient-occlusion-ground-radius"), Ie = u.paint.get("fill-extrusion-flood-light-intensity"), ke = u.paint.get("fill-extrusion-flood-light-color-use-theme").constantOr("default") === "none", Re = u.paint.get("fill-extrusion-flood-light-color").toNonPremultipliedRenderColor(ke ? null : u.lut).toArray01().slice(0, 3), Ce = oe > 0 && Te > 0, at = Ie > 0, We = (Ye, tt, gt) => (1 - gt) * Ye + gt * tt, ot = new Nc();
78518
+ const le = u.paint.get("fill-extrusion-opacity"), oe = u.paint.get("fill-extrusion-ambient-occlusion-intensity"), Te = u.paint.get("fill-extrusion-ambient-occlusion-ground-radius"), Ie = u.paint.get("fill-extrusion-flood-light-intensity"), ke = u.paint.get("fill-extrusion-flood-light-color-use-theme").constantOr("default") === "none", Re = u.paint.get("fill-extrusion-flood-light-color").toNonPremultipliedRenderColor(ke ? null : u.lut).toArray01().slice(0, 3), Ce = oe > 0 && Te > 0, at = Ie > 0, We = (Ge, tt, gt) => (1 - gt) * Ge + gt * tt, ot = new Nc();
78517
78519
  ot.translate = u.paint.get("fill-extrusion-translate"), ot.translateAnchor = u.paint.get("fill-extrusion-translate-anchor"), ot.edgeRadius = u.layout.get("fill-extrusion-edge-radius"), ot.cutoffFadeRange = u.paint.get("fill-extrusion-cutoff-fade-range");
78518
- const Ue = (Ye) => {
78519
- const tt = f.depthModeForSublayer(1, Hn.ReadOnly, C.LEQUAL, !0), gt = u.paint.get(Ye ? "fill-extrusion-ambient-occlusion-ground-attenuation" : "fill-extrusion-flood-light-ground-attenuation"), ct = We(0.1, 3, gt), zt = f._showOverdrawInspector;
78520
+ const Ue = (Ge) => {
78521
+ const tt = f.depthModeForSublayer(1, Hn.ReadOnly, C.LEQUAL, !0), gt = u.paint.get(Ge ? "fill-extrusion-ambient-occlusion-ground-attenuation" : "fill-extrusion-flood-light-ground-attenuation"), ct = We(0.1, 3, gt), zt = f._showOverdrawInspector;
78520
78522
  if (!zt) {
78521
78523
  const At = new fi({ func: C.ALWAYS, mask: 255 }, 255, 255, C.KEEP, C.KEEP, C.REPLACE), qt = new ui([C.ONE, C.ONE, C.ONE, C.ONE], o.aq.transparent, [!1, !1, !1, !0], C.MIN);
78522
- ca(ot, f, r, u, g, tt, At, qt, ai.disabled, Ye, "sdf", le, oe, Te, Ie, Re, ct, V, !1);
78524
+ ca(ot, f, r, u, g, tt, At, qt, ai.disabled, Ge, "sdf", le, oe, Te, Ie, Re, ct, V, !1);
78523
78525
  }
78524
78526
  {
78525
78527
  const At = zt ? fi.disabled : new fi({ func: C.EQUAL, mask: 255 }, 255, 255, C.KEEP, C.DECR, C.DECR), qt = zt ? f.colorModeForRenderPass() : new ui([C.ONE_MINUS_DST_ALPHA, C.DST_ALPHA, C.ONE, C.ONE], o.aq.transparent, [!0, !0, !0, !0]);
78526
- ca(ot, f, r, u, g, tt, At, qt, ai.disabled, Ye, "color", le, oe, Te, Ie, Re, ct, V, !1);
78528
+ ca(ot, f, r, u, g, tt, At, qt, ai.disabled, Ge, "color", le, oe, Te, Ie, Re, ct, V, !1);
78527
78529
  }
78528
78530
  };
78529
78531
  if (k) {
78530
- const Ye = () => {
78532
+ const Ge = () => {
78531
78533
  const gt = D.drapeBufferSize[0], ct = D.drapeBufferSize[1];
78532
78534
  let zt = D.framebufferCopyTexture;
78533
78535
  return zt && (!zt || zt.size[0] === gt && zt.size[1] === ct) || (zt && zt.destroy(), zt = D.framebufferCopyTexture = new o.T(I, new o.q({ width: gt, height: ct }), C.RGBA8)), zt.bind(C.LINEAR, C.CLAMP_TO_EDGE), C.copyTexSubImage2D(C.TEXTURE_2D, 0, 0, 0, 0, 0, gt, ct), zt;
@@ -78541,7 +78543,7 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
78541
78543
  const vt = new fi({ func: C.ALWAYS, mask: 255 }, 255, 255, C.KEEP, C.KEEP, C.REPLACE), dt = new ui([C.ONE, C.ONE, C.ONE, C.ONE], o.aq.transparent, [!1, !1, !1, !0], C.MIN);
78542
78544
  ca(ot, f, r, u, g, At, vt, dt, ai.disabled, gt, "sdf", le, oe, Te, Ie, Re, Qt, V, ct);
78543
78545
  }
78544
- B && !gt && (zt = Ye());
78546
+ B && !gt && (zt = Ge());
78545
78547
  {
78546
78548
  const vt = gt ? C.ZERO : C.ONE_MINUS_DST_ALPHA, dt = new fi({ func: C.EQUAL, mask: 255 }, 255, 255, C.KEEP, C.DECR, C.DECR), Nt = new ui([vt, C.DST_ALPHA, C.ONE_MINUS_DST_ALPHA, C.ZERO], o.aq.transparent, [!0, !0, !0, !0]);
78547
78549
  ca(ot, f, r, u, g, At, dt, Nt, ai.disabled, gt, "color", le, oe, Te, Ie, Re, Qt, V, ct);
@@ -78557,7 +78559,7 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
78557
78559
  };
78558
78560
  if (Ce || at) {
78559
78561
  let gt;
78560
- f.prepareDrawTile(), B && !Ce || (gt = Ye()), Ce && tt(!0, !1, gt), at && tt(!1, !0, gt);
78562
+ f.prepareDrawTile(), B && !Ce || (gt = Ge()), Ce && tt(!0, !1, gt), at && tt(!1, !0, gt);
78561
78563
  }
78562
78564
  } else Ce && Ue(!0), at && Ue(!1), (Ce || at) && f.resetStencilClippingMasks();
78563
78565
  }
@@ -78616,13 +78618,13 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
78616
78618
  if (C === 0) return;
78617
78619
  const D = f.transform.projection.name === "globe", k = u.paint.get("raster-elevation") !== 0, B = k && D, V = f.terrain && f.terrain.exaggeration() > 0 && k && u.paint.get("raster-elevation-reference") === "ground", q = !D && V;
78618
78620
  if (f.renderElevatedRasterBackface && !B) return;
78619
- const Z = f.context, te = Z.gl, le = r.getSource(), oe = (function(Ye, tt, gt, ct, zt) {
78620
- const At = tt.paint.get("raster-color"), qt = Ye.type === "raster-array", Qt = [], vt = tt.paint.get("raster-resampling"), dt = tt.paint.get("raster-color-mix");
78621
+ const Z = f.context, te = Z.gl, le = r.getSource(), oe = (function(Ge, tt, gt, ct, zt) {
78622
+ const At = tt.paint.get("raster-color"), qt = Ge.type === "raster-array", Qt = [], vt = tt.paint.get("raster-resampling"), dt = tt.paint.get("raster-color-mix");
78621
78623
  let Nt = tt.paint.get("raster-color-range");
78622
78624
  const Rt = [dt[0], dt[1], dt[2], 0], Ut = dt[3];
78623
78625
  let vn = vt === "nearest" ? ct.NEAREST : ct.LINEAR;
78624
- if (qt && (Qt.push("RASTER_ARRAY"), At || Qt.push("RASTER_COLOR"), vt === "linear" && Qt.push("RASTER_ARRAY_LINEAR"), vn = ct.NEAREST, !Nt && Ye.rasterLayers)) {
78625
- const un = Ye.rasterLayers.find(({ id: nn }) => nn === tt.sourceLayer);
78626
+ if (qt && (Qt.push("RASTER_ARRAY"), At || Qt.push("RASTER_COLOR"), vt === "linear" && Qt.push("RASTER_ARRAY_LINEAR"), vn = ct.NEAREST, !Nt && Ge.rasterLayers)) {
78627
+ const un = Ge.rasterLayers.find(({ id: nn }) => nn === tt.sourceLayer);
78626
78628
  un && un.fields && un.fields.range && (Nt = un.fields.range);
78627
78629
  }
78628
78630
  if (Nt = Nt || [0, 1], At) {
@@ -78635,14 +78637,14 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
78635
78637
  if (le instanceof o.aV && !g.length && !D) return;
78636
78638
  const Te = u.paint.get("raster-emissive-strength"), Ie = f.colorModeForDrapableLayerRenderPass(Te), ke = f.terrain && f.terrain.renderingToTexture, Re = !f.options.moving, Ce = u.paint.get("raster-resampling") === "nearest" ? te.NEAREST : te.LINEAR;
78637
78639
  if (le instanceof o.aV && !g.length && (le.onNorthPole || le.onSouthPole)) {
78638
- const Ye = k ? f.stencilModeFor3D() : fi.disabled;
78639
- return void Gl(!!le.onNorthPole, null, f, r, u, Te, oe, ai.disabled, Ye);
78640
+ const Ge = k ? f.stencilModeFor3D() : fi.disabled;
78641
+ return void Gl(!!le.onNorthPole, null, f, r, u, Te, oe, ai.disabled, Ge);
78640
78642
  }
78641
78643
  if (!g.length) return;
78642
78644
  const [at, We] = le instanceof o.aV || ke ? [{}, g] : f.stencilConfigForOverlap(g), ot = We[We.length - 1].overscaledZ;
78643
78645
  B && oe.defines.push("PROJECTION_GLOBE_VIEW"), k && oe.defines.push("RENDER_CUTOFF", "ELEVATED"), V && oe.defines.push("ELEVATION_REFERENCE_GROUND");
78644
- const Ue = (Ye, tt, gt) => {
78645
- for (const ct of Ye) {
78646
+ const Ue = (Ge, tt, gt) => {
78647
+ for (const ct of Ge) {
78646
78648
  const zt = ct.toUnwrapped(), At = r.getTile(ct);
78647
78649
  if (ke && (!At || !At.hasData())) continue;
78648
78650
  Z.activeTexture.set(te.TEXTURE0);
@@ -78687,7 +78689,7 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
78687
78689
  Sr.draw(f, te.TRIANGLES, Ut, un, Ie, ai.disabled, gr, u.id, ir, Ti, wi);
78688
78690
  }
78689
78691
  }
78690
- if (!(le instanceof o.aV) && B) for (const ct of Ye) {
78692
+ if (!(le instanceof o.aV) && B) for (const ct of Ge) {
78691
78693
  const zt = ct.canonical.y === (1 << ct.canonical.z) - 1;
78692
78694
  ct.canonical.y === 0 && Gl(!0, ct, f, r, u, Te, oe, tt, gt || fi.disabled), zt && Gl(!1, ct, f, r, u, Te, oe, tt === ai.frontCW ? ai.backCW : ai.frontCW, gt || fi.disabled);
78693
78695
  }
@@ -78704,8 +78706,8 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
78704
78706
  const Re = (function(Ce) {
78705
78707
  const at = Ce * Ce, We = new Uint8Array(4 * at), ot = 0.9090909090909091;
78706
78708
  for (let Ue = 0; Ue < at; Ue++) {
78707
- const Ye = ot * (o.eb(2 * Ue + 0) + Zo), tt = ot * (o.eb(2 * Ue + 1) + Zo), gt = 255 * Ye % 1, ct = 255 * tt % 1, zt = gt, At = tt - ct / 255, qt = ct;
78708
- We[4 * Ue + 0] = 255 * (Ye - gt / 255), We[4 * Ue + 1] = 255 * zt, We[4 * Ue + 2] = 255 * At, We[4 * Ue + 3] = 255 * qt;
78709
+ const Ge = ot * (o.eb(2 * Ue + 0) + Zo), tt = ot * (o.eb(2 * Ue + 1) + Zo), gt = 255 * Ge % 1, ct = 255 * tt % 1, zt = gt, At = tt - ct / 255, qt = ct;
78710
+ We[4 * Ue + 0] = 255 * (Ge - gt / 255), We[4 * Ue + 1] = 255 * zt, We[4 * Ue + 2] = 255 * At, We[4 * Ue + 3] = 255 * qt;
78709
78711
  }
78710
78712
  return We;
78711
78713
  })(te);
@@ -78724,12 +78726,12 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
78724
78726
  ot || (ot = k.tileFramebuffer = V.createFramebuffer(We[0], We[1], 1, null));
78725
78727
  let Ue = Ce.rasterParticleState;
78726
78728
  Ue || (Ue = Ce.rasterParticleState = new uf(V, Re, We, le));
78727
- const Ye = Ue.update(k.lastInvalidatedAt);
78729
+ const Ge = Ue.update(k.lastInvalidatedAt);
78728
78730
  Ue.particleTextureDimension !== te && Ue.updateParticleTexture(Re, le);
78729
78731
  const tt = Ue.targetColorTexture;
78730
78732
  Ue.targetColorTexture = Ue.backgroundColorTexture, Ue.backgroundColorTexture = tt;
78731
78733
  const gt = Ue.particleTexture0;
78732
- Ue.particleTexture0 = Ue.particleTexture1, Ue.particleTexture1 = gt, Te.push([Re, at, Ue, Ye]);
78734
+ Ue.particleTexture0 = Ue.particleTexture1, Ue.particleTexture1 = gt, Te.push([Re, at, Ue, Ge]);
78733
78735
  }
78734
78736
  if (Te.length === 0) return;
78735
78737
  const Ie = o.o.now(), ke = k.previousDrawTimestamp ? 1e-3 * (Ie - k.previousDrawTimestamp) : 0.0167;
@@ -78741,17 +78743,17 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
78741
78743
  V.bindFramebuffer.set(k.tileFramebuffer.framebuffer), (function(Re, Ce, at) {
78742
78744
  const We = Re.context, ot = We.gl, Ue = Ce.tileFramebuffer;
78743
78745
  We.activeTexture.set(ot.TEXTURE0);
78744
- const Ye = { u_texture: 0, u_opacity: 1.05 * (gt = Ce.paint.get("raster-particle-fade-opacity-factor")) / (gt + 0.05) }, tt = Re.getOrCreateProgram("rasterParticleTexture", { defines: [], overrideFog: !1 });
78746
+ const Ge = { u_texture: 0, u_opacity: 1.05 * (gt = Ce.paint.get("raster-particle-fade-opacity-factor")) / (gt + 0.05) }, tt = Re.getOrCreateProgram("rasterParticleTexture", { defines: [], overrideFog: !1 });
78745
78747
  var gt;
78746
78748
  for (const ct of at) {
78747
78749
  const [, , zt, At] = ct;
78748
- Ue.colorAttachment0.set(zt.targetColorTexture.texture), We.viewport.set([0, 0, Ue.width, Ue.height]), We.clear({ color: o.aq.transparent }), At && (zt.backgroundColorTexture.bind(ot.NEAREST, ot.CLAMP_TO_EDGE), tt.draw(Re, ot.TRIANGLES, Hn.disabled, fi.disabled, ui.alphaBlended, ai.disabled, Ye, Ce.id, Re.viewportBuffer, Re.quadTriangleIndexBuffer, Re.viewportSegments));
78750
+ Ue.colorAttachment0.set(zt.targetColorTexture.texture), We.viewport.set([0, 0, Ue.width, Ue.height]), We.clear({ color: o.aq.transparent }), At && (zt.backgroundColorTexture.bind(ot.NEAREST, ot.CLAMP_TO_EDGE), tt.draw(Re, ot.TRIANGLES, Hn.disabled, fi.disabled, ui.alphaBlended, ai.disabled, Ge, Ce.id, Re.viewportBuffer, Re.quadTriangleIndexBuffer, Re.viewportSegments));
78749
78751
  }
78750
78752
  })(C, k, Te), (function(Re, Ce, at, We) {
78751
- const ot = Re.context, Ue = ot.gl, Ye = at.tileFramebuffer, tt = Re.transform.projection.name === "globe", gt = at.paint.get("raster-particle-max-speed");
78753
+ const ot = Re.context, Ue = ot.gl, Ge = at.tileFramebuffer, tt = Re.transform.projection.name === "globe", gt = at.paint.get("raster-particle-max-speed");
78752
78754
  for (const ct of We) {
78753
78755
  const [zt, At, qt] = ct;
78754
- ot.activeTexture.set(Ue.TEXTURE0 + 0), At.texture.bind(Ue.LINEAR, Ue.CLAMP_TO_EDGE), Ye.colorAttachment0.set(qt.targetColorTexture.texture);
78756
+ ot.activeTexture.set(Ue.TEXTURE0 + 0), At.texture.bind(Ue.LINEAR, Ue.CLAMP_TO_EDGE), Ge.colorAttachment0.set(qt.targetColorTexture.texture);
78755
78757
  const Qt = Re.getOrCreateProgram("rasterParticleDraw", { defines: At.defines, overrideFog: !1 });
78756
78758
  ot.activeTexture.set(Ue.TEXTURE0 + 1);
78757
78759
  const vt = At.scalarData ? [] : [0, 1, 2, 3].map((Rt) => o.d$[Rt](zt));
@@ -78769,7 +78771,7 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
78769
78771
  }
78770
78772
  }
78771
78773
  })(C, D, k, Te), V.bindFramebuffer.set(k.particleFramebuffer.framebuffer), (function(Re, Ce, at, We) {
78772
- const ot = Re.context, Ue = ot.gl, Ye = Ce.paint.get("raster-particle-max-speed"), tt = We * Ce.paint.get("raster-particle-speed-factor") * 0.15, gt = (function(zt) {
78774
+ const ot = Re.context, Ue = ot.gl, Ge = Ce.paint.get("raster-particle-max-speed"), tt = We * Ce.paint.get("raster-particle-speed-factor") * 0.15, gt = (function(zt) {
78773
78775
  return Math.pow(zt, 6);
78774
78776
  })(0.01 + 1 * Ce.paint.get("raster-particle-reset-rate-factor")), ct = Ce.particleFramebuffer;
78775
78777
  ot.viewport.set([0, 0, ct.width, ct.height]);
@@ -78778,7 +78780,7 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
78778
78780
  ot.activeTexture.set(Ue.TEXTURE0 + 0), At.texture.bind(Ue.LINEAR, Ue.CLAMP_TO_EDGE), ot.activeTexture.set(Ue.TEXTURE0 + 1);
78779
78781
  const Qt = qt.particleTexture0;
78780
78782
  Qt.bind(Ue.NEAREST, Ue.CLAMP_TO_EDGE);
78781
- const vt = xg(1, Qt.size[0], 0, At.texture.size, Ye, tt, gt, At.textureOffset, At.scale, At.offset);
78783
+ const vt = xg(1, Qt.size[0], 0, At.texture.size, Ge, tt, gt, At.textureOffset, At.scale, At.offset);
78782
78784
  ct.colorAttachment0.set(qt.particleTexture1.texture), ot.clear({ color: o.aq.transparent }), Re.getOrCreateProgram("rasterParticleUpdate", { defines: At.defines }).draw(Re, Ue.TRIANGLES, Hn.disabled, fi.disabled, ui.unblended, ai.disabled, vt, Ce.id, Re.viewportBuffer, Re.quadTriangleIndexBuffer, Re.viewportSegments);
78783
78785
  }
78784
78786
  })(C, k, Te, ke);
@@ -78793,9 +78795,9 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
78793
78795
  if (!We.rasterParticleState) continue;
78794
78796
  const ot = We.rasterParticleState, Ue = 100;
78795
78797
  We.registerFadeDuration(Ue);
78796
- const Ye = D.findLoadedParent(Ce, 0), tt = Hl(We, Ye, D, C.transform, Ue);
78798
+ const Ge = D.findLoadedParent(Ce, 0), tt = Hl(We, Ge, D, C.transform, Ue);
78797
78799
  let gt, ct;
78798
- C.terrain && C.terrain.prepareDrawTile(), V.activeTexture.set(q.TEXTURE0), ot.targetColorTexture.bind(q.LINEAR, q.CLAMP_TO_EDGE), V.activeTexture.set(q.TEXTURE1), Ye && Ye.rasterParticleState ? (Ye.rasterParticleState.targetColorTexture.bind(q.LINEAR, q.CLAMP_TO_EDGE), gt = Math.pow(2, Ye.tileID.overscaledZ - We.tileID.overscaledZ), ct = [We.tileID.canonical.x * gt % 1, We.tileID.canonical.y * gt % 1]) : ot.targetColorTexture.bind(q.LINEAR, q.CLAMP_TO_EDGE);
78800
+ C.terrain && C.terrain.prepareDrawTile(), V.activeTexture.set(q.TEXTURE0), ot.targetColorTexture.bind(q.LINEAR, q.CLAMP_TO_EDGE), V.activeTexture.set(q.TEXTURE1), Ge && Ge.rasterParticleState ? (Ge.rasterParticleState.targetColorTexture.bind(q.LINEAR, q.CLAMP_TO_EDGE), gt = Math.pow(2, Ge.tileID.overscaledZ - We.tileID.overscaledZ), ct = [We.tileID.canonical.x * gt % 1, We.tileID.canonical.y * gt % 1]) : ot.targetColorTexture.bind(q.LINEAR, q.CLAMP_TO_EDGE);
78799
78801
  const zt = oe ? Float32Array.from(C.transform.expandedFarZProjMatrix) : C.transform.calculateProjMatrix(at, le), At = C.transform, qt = ih(At), Qt = o.dr(Ce.canonical), vt = o.ds(Qt.getCenter().lat);
78800
78802
  let dt, Nt, Rt, Ut, vn;
78801
78803
  oe ? (dt = Float32Array.from(o.du(o.dv(Ce.canonical))), Nt = Float32Array.from(At.globeMatrix), Rt = Float32Array.from(o.dq(At)), Ut = [o.aH(At.center.lng), o.aL(At.center.lat)], vn = Float32Array.from(o.dt(Ce.canonical, Qt, vt, At.worldSize / At._pixelsPerMercatorPixel))) : (dt = new Float32Array(16), Nt = new Float32Array(9), Rt = new Float32Array(16), Ut = [0, 0], vn = new Float32Array(9));
@@ -78827,16 +78829,16 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
78827
78829
  at || (Ce = f.getBackgroundTiles(), at = Object.values(Ce).map((ot) => ot.tileID)), te && (B.activeTexture.set(V.TEXTURE0), f.imageManager.bind(f.context, u.scope));
78828
78830
  const We = [];
78829
78831
  if (f.terrain && f.terrain.renderingToTexture && f.emissiveMode === "mrt-fallback" && We.push("USE_MRT1"), k) {
78830
- const ot = f.getOrCreateProgram(Re, { overrideFog: !1, overrideRtt: !0, defines: We }), Ue = new Float32Array(o.b9([])), Ye = new o.aR(0, 0, 0, 0, 0), tt = te ? Sc(Ue, D, C, f, 0, u.scope, le, k, { tileID: Ye, tileSize: Z }) : Xu(Ue, D, C, x.toPremultipliedRenderColor(I ? null : u.lut));
78832
+ const ot = f.getOrCreateProgram(Re, { overrideFog: !1, overrideRtt: !0, defines: We }), Ue = new Float32Array(o.b9([])), Ge = new o.aR(0, 0, 0, 0, 0), tt = te ? Sc(Ue, D, C, f, 0, u.scope, le, k, { tileID: Ge, tileSize: Z }) : Xu(Ue, D, C, x.toPremultipliedRenderColor(I ? null : u.lut));
78831
78833
  return void ot.draw(f, V.TRIANGLES, Ie, Te, ke, ai.disabled, tt, u.id, f.viewportBuffer, f.quadTriangleIndexBuffer, f.viewportSegments);
78832
78834
  }
78833
78835
  for (const ot of at) {
78834
- const Ue = f.isTileAffectedByFog(ot), Ye = f.getOrCreateProgram(Re, { overrideFog: Ue, defines: We }), tt = ot.toUnwrapped(), gt = g ? ot.projMatrix : f.transform.calculateProjMatrix(tt);
78836
+ const Ue = f.isTileAffectedByFog(ot), Ge = f.getOrCreateProgram(Re, { overrideFog: Ue, defines: We }), tt = ot.toUnwrapped(), gt = g ? ot.projMatrix : f.transform.calculateProjMatrix(tt);
78835
78837
  f.prepareDrawTile();
78836
78838
  const ct = r ? r.getTile(ot) : Ce ? Ce[ot.key] : new o.b0(ot, Z, q.zoom, f), zt = te ? Sc(gt, D, C, f, 0, u.scope, le, k, { tileID: ot, tileSize: Z }) : Xu(gt, D, C, x.toPremultipliedRenderColor(I ? null : u.lut));
78837
- f.uploadCommonUniforms(B, Ye, tt);
78839
+ f.uploadCommonUniforms(B, Ge, tt);
78838
78840
  const { tileBoundsBuffer: At, tileBoundsIndexBuffer: qt, tileBoundsSegments: Qt } = f.getTileBoundsBuffers(ct);
78839
- Ye.draw(f, V.TRIANGLES, Ie, Te, ke, ai.disabled, zt, u.id, At, qt, Qt);
78841
+ Ge.draw(f, V.TRIANGLES, Ie, Te, ke, ai.disabled, zt, u.id, At, qt, Qt);
78840
78842
  }
78841
78843
  }, sky: function(f, r, u) {
78842
78844
  const g = f._atmosphere ? o.al(f.transform.zoom) : 1, x = u.paint.get("sky-opacity") * g;
@@ -78909,7 +78911,7 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
78909
78911
  }, Z = r.getSource();
78910
78912
  if (f.renderPass === "light-beam" && Z.type !== "batched-model") return;
78911
78913
  if (Z.type === "vector" || Z.type === "geojson") return (function(Ce, at, We, ot, Ue) {
78912
- const Ye = Ce.transform, tt = Ye.projection.name === "globe", gt = Ye.getFreeCameraOptions().position;
78914
+ const Ge = Ce.transform, tt = Ge.projection.name === "globe", gt = Ge.getFreeCameraOptions().position;
78913
78915
  if (!Ce.modelManager) return;
78914
78916
  const ct = Ce.modelManager;
78915
78917
  We.modelManager = ct;
@@ -78918,17 +78920,17 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
78918
78920
  const At = We._unevaluatedLayout._values["model-id"], qt = Object.assign({}, We.layout.get("model-id").parameters), Qt = Ce.style.order.indexOf(We.fqid), vt = We.paint.get("model-opacity").constantOr(1);
78919
78921
  for (const dt of ot) {
78920
78922
  const Nt = at.getTile(dt).getBucket(We);
78921
- if (!Nt || Nt.projection.name !== Ye.projection.name) continue;
78923
+ if (!Nt || Nt.projection.name !== Ge.projection.name) continue;
78922
78924
  const Rt = Nt.getModelUris();
78923
78925
  if (Rt && !Nt.modelsRequested && (ct.addModelsFromBucket(Rt, Ue), Nt.modelsRequested = !0), tt) qt.zoom = dt.overscaledZ;
78924
78926
  else {
78925
- const En = sh(dt, Ye);
78927
+ const En = sh(dt, Ge);
78926
78928
  qt.zoom = En;
78927
78929
  }
78928
78930
  const Ut = At.possiblyEvaluate(qt);
78929
78931
  if (hn(Ce, Nt, dt), cn.shadowUniformsInitialized = !1, cn.useSingleShadowCascade = !!zt && zt.getMaxCascadeForTile(dt.toUnwrapped()) === 0, Ce.renderPass === "shadow" && zt) {
78930
78932
  if (Ce.currentShadowCascade === 1 && Nt.isInsideFirstShadowMapFrustum) continue;
78931
- const En = Ye.calculatePosMatrix(dt.toUnwrapped(), Ye.worldSize);
78933
+ const En = Ge.calculatePosMatrix(dt.toUnwrapped(), Ge.worldSize);
78932
78934
  if (cn.tileMatrix.set(En), cn.shadowTileMatrix = Float32Array.from(zt.calculateShadowPassMatrixFromMatrix(En)), cn.aabb.min = [0, 0, 0], cn.aabb.max[0] = cn.aabb.max[1] = o.an, cn.aabb.max[2] = 0, Dg(Nt, cn, Ce, We.scope)) continue;
78933
78935
  }
78934
78936
  const vn = 1 << dt.canonical.z, un = [((gt.x - dt.wrap) * vn - dt.canonical.x) * o.an, (gt.y * vn - dt.canonical.y) * o.an, gt.z * vn * o.an];
@@ -78965,11 +78967,11 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
78965
78967
  if (!Z.loaded()) return;
78966
78968
  if (Z.type === "batched-model") return (function(Ce, at, We, ot) {
78967
78969
  We.resetLayerRenderingStats(Ce);
78968
- const Ue = Ce.context, Ye = Ce.transform, tt = Ce.style.fog, gt = Ce.shadowRenderer;
78969
- if (Ye.projection.name !== "mercator") return void o.w(`Drawing 3D landmark models for ${Ye.projection.name} projection is not yet implemented`);
78970
- const ct = Ce.transform.getFreeCameraOptions().position, zt = o.bJ([], [ct.x, ct.y, ct.z], Ce.transform.worldSize), At = o.eo([], zt), qt = o.b9([]), Qt = o.e2(Ye.center.lat, Ye.zoom), vt = o.bP([], [1, 1, 1 / Qt]);
78970
+ const Ue = Ce.context, Ge = Ce.transform, tt = Ce.style.fog, gt = Ce.shadowRenderer;
78971
+ if (Ge.projection.name !== "mercator") return void o.w(`Drawing 3D landmark models for ${Ge.projection.name} projection is not yet implemented`);
78972
+ const ct = Ce.transform.getFreeCameraOptions().position, zt = o.bJ([], [ct.x, ct.y, ct.z], Ce.transform.worldSize), At = o.eo([], zt), qt = o.b9([]), Qt = o.e2(Ge.center.lat, Ge.zoom), vt = o.bP([], [1, 1, 1 / Qt]);
78971
78973
  o.bx(qt, qt, At);
78972
- const dt = We.paint.get("model-opacity").constantOr(1), Nt = new Hn(Ue.gl.LEQUAL, Hn.ReadWrite, Ce.depthRangeFor3D), Rt = new Hn(Ue.gl.LEQUAL, Hn.ReadOnly, Ce.depthRangeFor3D), Ut = new o.cU([1 / 0, 1 / 0, 1 / 0], [-1 / 0, -1 / 0, -1 / 0]), vn = Ce.renderPass === "shadow", un = vn && gt ? gt.getCurrentCascadeFrustum() : Ye.getFrustum(Ye.scaleZoom(Ye.worldSize)), nn = We.paint.get("model-front-cutoff"), Jt = nn[2] < 1, Fn = Po(Ce, We.paint.get("model-cutoff-fade-range")), Gn = We.getLayerRenderingStats();
78974
+ const dt = We.paint.get("model-opacity").constantOr(1), Nt = new Hn(Ue.gl.LEQUAL, Hn.ReadWrite, Ce.depthRangeFor3D), Rt = new Hn(Ue.gl.LEQUAL, Hn.ReadOnly, Ce.depthRangeFor3D), Ut = new o.cU([1 / 0, 1 / 0, 1 / 0], [-1 / 0, -1 / 0, -1 / 0]), vn = Ce.renderPass === "shadow", un = vn && gt ? gt.getCurrentCascadeFrustum() : Ge.getFrustum(Ge.scaleZoom(Ge.worldSize)), nn = We.paint.get("model-front-cutoff"), Jt = nn[2] < 1, Fn = Po(Ce, We.paint.get("model-cutoff-fade-range")), Gn = We.getLayerRenderingStats();
78973
78975
  (function(En, zn, ri, _i) {
78974
78976
  const pi = En.terrain ? En.terrain.exaggeration() : 0, Ei = En.transform.zoom;
78975
78977
  for (const ti of _i) {
@@ -78986,7 +78988,7 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
78986
78988
  if (!tr || !tr.uploaded) continue;
78987
78989
  let gr = !1;
78988
78990
  gt && (gr = gt.getMaxCascadeForTile(gi.toUnwrapped()) === 0);
78989
- const Or = Ye.calculatePosMatrix(gi.toUnwrapped(), Ye.worldSize), Sr = tr.modelTraits;
78991
+ const Or = Ge.calculatePosMatrix(gi.toUnwrapped(), Ge.worldSize), Sr = tr.modelTraits;
78990
78992
  !vn && Jt && (o.b7(pi, Or), o.ah(Ei, zt, pi), ti.x = Ei[0], ti.y = Ei[1]);
78991
78993
  const ir = [];
78992
78994
  tr.setFilter(We.filter);
@@ -79006,10 +79008,10 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
79006
79008
  }
79007
79009
  const xi = [...Or], Br = 1 / o.cS(gi.canonical), wr = wi.anchor ? wi.anchor[0] : 0, no = wi.anchor ? wi.anchor[1] : 0;
79008
79010
  o.bx(xi, xi, [wr * (rr[0] - 1) + Ti.evaluatedTranslation[0] * Br, no * (rr[1] - 1) + Ti.evaluatedTranslation[1] * Br, Tr + Ti.evaluatedTranslation[2]]), o.c4(rr, o.ew) || o.cC(xi, xi, rr);
79009
- const Pi = o.aD([], xi, wi.globalMatrix), vr = o.aD([], Ye.expandedFarZProjMatrix, Pi), Eo = o.aD([], Ye.expandedFarZProjMatrix, xi), Ho = o.aE([], [wr, no, Tr, 1], vr)[2];
79011
+ const Pi = o.aD([], xi, wi.globalMatrix), vr = o.aD([], Ge.expandedFarZProjMatrix, Pi), Eo = o.aD([], Ge.expandedFarZProjMatrix, xi), Ho = o.aE([], [wr, no, Tr, 1], vr)[2];
79010
79012
  wi.hidden = !1;
79011
79013
  let v = dt;
79012
- vn || (Jt && (v *= Ti.cameraCollisionOpacity, v *= Ip(xi, Ye, Ti.aabb, nn)), v *= yf(Fn, Ho)), v !== 0 ? ir.push({ nodeInfo: Ti, depth: Ho, opacity: v, wvpForNode: vr, wvpForTile: Eo, nodeModelMatrix: Pi, tileModelMatrix: xi }) : wi.hidden = !0;
79014
+ vn || (Jt && (v *= Ti.cameraCollisionOpacity, v *= Ip(xi, Ge, Ti.aabb, nn)), v *= yf(Fn, Ho)), v !== 0 ? ir.push({ nodeInfo: Ti, depth: Ho, opacity: v, wvpForNode: vr, wvpForTile: Eo, nodeModelMatrix: Pi, tileModelMatrix: xi }) : wi.hidden = !0;
79013
79015
  }
79014
79016
  vn || ir.sort((Ti, wi) => !Jt || Ti.opacity === 1 && wi.opacity === 1 ? Ti.depth < wi.depth ? -1 : 1 : Ti.opacity === 1 ? -1 : wi.opacity === 1 ? 1 : Ti.depth > wi.depth ? -1 : 1);
79015
79017
  for (const Ti of ir) {
@@ -79041,7 +79043,7 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
79041
79043
  let L = null;
79042
79044
  if (tt) {
79043
79045
  const Dt = ff(Ti.nodeModelMatrix, Ce.transform);
79044
- if (L = new Float32Array(Dt), Ye.projection.name !== "globe") {
79046
+ if (L = new Float32Array(Dt), Ge.projection.name !== "globe") {
79045
79047
  const sn = vr.aabb.min, Bn = vr.aabb.max, [Ln, Un] = tt.getOpacityForBounds(Dt, sn[0], sn[1], Bn[0], Bn[1]);
79046
79048
  v.overrideFog = Ln >= ii || Un >= ii;
79047
79049
  }
@@ -79073,8 +79075,8 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
79073
79075
  const Ie = [], ke = [];
79074
79076
  let Re = 0;
79075
79077
  for (const Ce of te) {
79076
- const at = r.getFeatureState("", Ce.id), We = { type: "Unknown", id: Ce.id, properties: Ce.featureProperties }, ot = u.paint.get("model-rotation").evaluate(We, at), Ue = u.paint.get("model-scale").evaluate(We, at), Ye = u.paint.get("model-translation").evaluate(We, at), tt = u.paint.get("model-opacity").evaluate(We, at);
79077
- mf(u, Ce.id, at, Ce.featureProperties, Ce.nodeOverrideNames, Ce.nodeOverrides), nu(u, Ce.id, at, Ce.featureProperties, Ce.materialOverrideNames, Ce.materialOverrides), Ce.nodeOverrides.size > 0 && Ce.computeBoundsAndApplyParent(), Ce.computeModelMatrix(f, ot, Ue, Ye, D, C, !1);
79078
+ const at = r.getFeatureState("", Ce.id), We = { type: "Unknown", id: Ce.id, properties: Ce.featureProperties }, ot = u.paint.get("model-rotation").evaluate(We, at), Ue = u.paint.get("model-scale").evaluate(We, at), Ge = u.paint.get("model-translation").evaluate(We, at), tt = u.paint.get("model-opacity").evaluate(We, at);
79079
+ mf(u, Ce.id, at, Ce.featureProperties, Ce.nodeOverrideNames, Ce.nodeOverrides), nu(u, Ce.id, at, Ce.featureProperties, Ce.materialOverrideNames, Ce.materialOverrides), Ce.nodeOverrides.size > 0 && Ce.computeBoundsAndApplyParent(), Ce.computeModelMatrix(f, ot, Ue, Ge, D, C, !1);
79078
79080
  const gt = o.b9([]), ct = o.e2(Ce.position.lat, f.transform.zoom), zt = o.bP([], [1, 1, 1 / ct]);
79079
79081
  o.bx(gt, gt, Te), le.push({ zScaleMatrix: zt, negCameraPosMatrix: gt });
79080
79082
  for (const At of Ce.nodes) gf(f, At, Ce.matrix, f.transform.expandedFarZProjMatrix, Re, Ie, ke, Ce.materialOverrides, tt);
@@ -79082,11 +79084,11 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
79082
79084
  }
79083
79085
  if (Ie.sort((Ce, at) => at.depth - Ce.depth), f.renderPass !== "shadow") {
79084
79086
  if (f._debugParams.show3DModelFootprints) {
79085
- const Ce = f.transform.projMatrix, at = /* @__PURE__ */ new Map(), We = (Ue, Ye) => {
79087
+ const Ce = f.transform.projMatrix, at = /* @__PURE__ */ new Map(), We = (Ue, Ge) => {
79086
79088
  if (Ue.footprint) {
79087
79089
  const tt = Ue.id || Ue.name || "footprint";
79088
79090
  if (!at.has(tt)) {
79089
- const gt = o.aD([], Ce, Ye);
79091
+ const gt = o.aD([], Ce, Ge);
79090
79092
  at.set(tt, { node: Ue, mvp: gt });
79091
79093
  }
79092
79094
  }
@@ -79095,8 +79097,8 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
79095
79097
  for (const Ue of Ie) We(Ue.node, Ue.modelMatrix);
79096
79098
  const ot = Array.from(at.keys()).sort();
79097
79099
  for (const Ue of ot) {
79098
- const { node: Ye, mvp: tt } = at.get(Ue);
79099
- Mp(f, 0, Ye, tt);
79100
+ const { node: Ge, mvp: tt } = at.get(Ue);
79101
+ Mp(f, 0, Ge, tt);
79100
79102
  }
79101
79103
  }
79102
79104
  Zl(f, u, Ie, ke, le), q();
@@ -79371,8 +79373,8 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
79371
79373
  }
79372
79374
  }
79373
79375
  this.transform.projection.name !== "globe" || this.globeSharedBuffers || (this.globeSharedBuffers = new o.eL(this.context)), this.style.fog && this.transform.projection.supportsFog ? (this._atmosphere || (this._atmosphere = new Sg(this)), this._atmosphere.update(this)) : this._atmosphere && (this._atmosphere.destroy(), this._atmosphere = void 0);
79374
- const Ue = this._debugParams.forceEnablePrecipitation || !(!this.style || !this.style.snow), Ye = this._debugParams.forceEnablePrecipitation || !(!this.style || !this.style.rain);
79375
- if (Ue && !this._snow && (this._snow = new ha(this)), !Ue && this._snow && (this._snow.destroy(), delete this._snow), Ye && !this._rain && (this._rain = new ad(this)), !Ye && this._rain && (this._rain.destroy(), delete this._rain), this._snow && this._snow.update(this), this._rain && this._rain.update(this), V) {
79376
+ const Ue = this._debugParams.forceEnablePrecipitation || !(!this.style || !this.style.snow), Ge = this._debugParams.forceEnablePrecipitation || !(!this.style || !this.style.rain);
79377
+ if (Ue && !this._snow && (this._snow = new ha(this)), !Ue && this._snow && (this._snow.destroy(), delete this._snow), Ge && !this._rain && (this._rain = new ad(this)), !Ge && this._rain && (this._rain.destroy(), delete this._rain), this._snow && this._snow.update(this), this._rain && this._rain.update(this), V) {
79376
79378
  this.buildingTileBorderManager || (this.buildingTileBorderManager = new il());
79377
79379
  const vt = this.style.getLayerSourceCache(V);
79378
79380
  this.buildingTileBorderManager.updateBorders(vt, V);
@@ -79633,8 +79635,8 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
79633
79635
  const D = C.getOpacity(this.transform.pitch), k = ((B, V, q, Z, te, le, oe, Te, Ie, ke, Re, Ce) => {
79634
79636
  const at = B.transform, We = V.properties.get("color-use-theme") === "none", ot = V.properties.get("color").toNonPremultipliedRenderColor(We ? null : B.style.getLut(V.scope)).toArray01();
79635
79637
  ot[3] = Z;
79636
- const Ue = B.frameCounter / 1e3 % 1, [Ye, tt] = V.properties.get("vertical-range");
79637
- return { u_fog_matrix: q ? at.calculateFogTileMatrix(q) : Ce || B.identityMat, u_fog_range: V.getFovAdjustedRange(at._fov), u_fog_color: ot, u_fog_horizon_blend: V.properties.get("horizon-blend"), u_fog_vertical_limit: [Math.min(Ye, tt), tt], u_fog_temporal_offset: Ue, u_frustum_tl: te, u_frustum_tr: le, u_frustum_br: oe, u_frustum_bl: Te, u_globe_pos: Ie, u_globe_radius: ke, u_viewport: Re, u_globe_transition: o.al(at.zoom), u_is_globe: +(at.projection.name === "globe") };
79638
+ const Ue = B.frameCounter / 1e3 % 1, [Ge, tt] = V.properties.get("vertical-range");
79639
+ return { u_fog_matrix: q ? at.calculateFogTileMatrix(q) : Ce || B.identityMat, u_fog_range: V.getFovAdjustedRange(at._fov), u_fog_color: ot, u_fog_horizon_blend: V.properties.get("horizon-blend"), u_fog_vertical_limit: [Math.min(Ge, tt), tt], u_fog_temporal_offset: Ue, u_frustum_tl: te, u_frustum_tr: le, u_frustum_br: oe, u_frustum_bl: Te, u_globe_pos: Ie, u_globe_radius: ke, u_viewport: Re, u_globe_transition: o.al(at.zoom), u_is_globe: +(at.projection.name === "globe") };
79638
79640
  })(this, C, g, D, this.transform.frustumCorners.TL, this.transform.frustumCorners.TR, this.transform.frustumCorners.BR, this.transform.frustumCorners.BL, this.transform.globeCenterInViewSpace, this.transform.globeRadius, [this.transform.width * o.o.devicePixelRatio, this.transform.height * o.o.devicePixelRatio], x);
79639
79641
  u.setFogUniformValues(r, k);
79640
79642
  }
@@ -80912,7 +80914,7 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
80912
80914
  const ot = this._extendAABB(Re, D, k, x);
80913
80915
  if (!ot) return void o.w("Map cannot fit within canvas with the given bounds, padding, and/or offset.");
80914
80916
  Re = ot, o.ah(Ce, Ce, at);
80915
- const Ue = 0.5 * (Re.max[2] - Re.min[2]), Ye = this._minimumAABBFrustumDistance(D, Re), tt = o.bJ([], [0, 0, 1], Ue), gt = o.cT(tt, Ce, tt), ct = Ye + (D.pitch === 0 ? 0 : o.bf(Ce, gt)), zt = D.globeCenterInViewSpace, At = o.ax([], Ce, [zt[0], zt[1], zt[2]]);
80917
+ const Ue = 0.5 * (Re.max[2] - Re.min[2]), Ge = this._minimumAABBFrustumDistance(D, Re), tt = o.bJ([], [0, 0, 1], Ue), gt = o.cT(tt, Ce, tt), ct = Ge + (D.pitch === 0 ? 0 : o.bf(Ce, gt)), zt = D.globeCenterInViewSpace, At = o.ax([], Ce, [zt[0], zt[1], zt[2]]);
80916
80918
  o.ay(At, At), o.bJ(At, At, ct);
80917
80919
  const qt = o.cT([], Ce, At);
80918
80920
  o.ah(qt, qt, We);
@@ -80940,9 +80942,9 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
80940
80942
  const ot = this._extendAABB(Ce, D, k, x);
80941
80943
  if (!ot) return void o.w("Map cannot fit within canvas with the given bounds, padding, and/or offset.");
80942
80944
  Ce = ot;
80943
- const Ue = 0.5 * o.ax([], Ce.max, Ce.min)[2], Ye = this._minimumAABBFrustumDistance(D, Ce), tt = [0, 0, 1, 0];
80945
+ const Ue = 0.5 * o.ax([], Ce.max, Ce.min)[2], Ge = this._minimumAABBFrustumDistance(D, Ce), tt = [0, 0, 1, 0];
80944
80946
  o.aE(tt, tt, at), o.eX(tt, tt);
80945
- const gt = o.bJ([], tt, Ye + Ue), ct = o.cT([], Ce.center, gt);
80947
+ const gt = o.bJ([], tt, Ge + Ue), ct = o.cT([], Ce.center, gt);
80946
80948
  o.ah(Ce.center, Ce.center, We), o.ah(ct, ct, We);
80947
80949
  const zt = D.unproject(new o.P(Ce.center[0], Ce.center[1])), At = o.eY(D.projection, zt), qt = Math.pow(2, At), Qt = Math.min(D._zoomFromMercatorZ(ct[2] * D.pixelsPerMeter * qt / D.worldSize), k.maxZoom);
80948
80950
  return D.mercatorFromTransition && Qt < 0.5 * (o.cJ + o.cv) ? (D.setProjection({ name: "globe" }), D.zoom = Qt, this._cameraForBounds(D, u, g, x, I, C)) : { center: zt, zoom: Qt, bearing: x, pitch: I };
@@ -81013,8 +81015,8 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
81013
81015
  const tt = this._emulate(Ue, r.duration, g);
81014
81016
  return this._preloadTiles(tt), this;
81015
81017
  }
81016
- const Ye = { moving: this._moving, zooming: this._zooming, rotating: this._rotating, pitching: this._pitching };
81017
- return this._zooming = Re, this._rotating = Ce, this._pitching = at, this._padding = We, this._easeId = r.easeId, this._prepareEase(u, r.noMoveStart, Ye), this._ease(Ue(g), (tt) => {
81018
+ const Ge = { moving: this._moving, zooming: this._zooming, rotating: this._rotating, pitching: this._pitching };
81019
+ return this._zooming = Re, this._rotating = Ce, this._pitching = at, this._padding = We, this._easeId = r.easeId, this._prepareEase(u, r.noMoveStart, Ge), this._ease(Ue(g), (tt) => {
81018
81020
  g.cameraElevationReference === "sea" && g.recenterOnTerrain(), this._afterEase(u, tt);
81019
81021
  }, r), this;
81020
81022
  }
@@ -81052,7 +81054,7 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
81052
81054
  const Ut = (at * at - Ce * Ce + (Rt ? -1 : 1) * ot * ot * We * We) / (2 * (Rt ? at : Ce) * ot * We);
81053
81055
  return Math.log(Math.sqrt(Ut * Ut + 1) - Ut);
81054
81056
  }
81055
- function Ye(Rt) {
81057
+ function Ge(Rt) {
81056
81058
  return (Math.exp(Rt) - Math.exp(-Rt)) / 2;
81057
81059
  }
81058
81060
  function tt(Rt) {
@@ -81062,7 +81064,7 @@ ${(x ? x.defines() : []).concat(C.map((oe) => `#define ${oe}`)).join(`
81062
81064
  let ct = function(Rt) {
81063
81065
  return tt(gt) / tt(gt + Re * Rt);
81064
81066
  }, zt = function(Rt) {
81065
- return Ce * ((tt(gt) * (Ye(Ut = gt + Re * Rt) / tt(Ut)) - Ye(gt)) / ot) / We;
81067
+ return Ce * ((tt(gt) * (Ge(Ut = gt + Re * Rt) / tt(Ut)) - Ge(gt)) / ot) / We;
81066
81068
  var Ut;
81067
81069
  }, At = (Ue(1) - gt) / Re;
81068
81070
  if (Math.abs(We) < 1e-6 || !isFinite(At)) {